@nocobase/plugin-workflow-json-query 1.9.8 → 2.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +4 -4
- package/dist/node_modules/jmespath/package.json +1 -1
- package/dist/node_modules/jsonata/jsonata-es5.js +1178 -1266
- package/dist/node_modules/jsonata/jsonata-es5.min.js +1 -1
- package/dist/node_modules/jsonata/jsonata.js +1 -1
- package/dist/node_modules/jsonata/jsonata.min.js +1 -1
- package/dist/node_modules/jsonata/package.json +1 -1
- package/dist/node_modules/jsonpath-plus/package.json +1 -1
- package/package.json +3 -3
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@formily/antd-v5"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-query",["react","@formily/antd-v5","@nocobase/client","@ant-design/icons","@nocobase/utils/client","@nocobase/plugin-workflow/client"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-query"]=t(require("react"),require("@formily/antd-v5"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client")):e["@nocobase/plugin-workflow-json-query"]=t(e.react,e["@formily/antd-v5"],e["@nocobase/client"],e["@ant-design/icons"],e["@nocobase/utils/client"],e["@nocobase/plugin-workflow/client"])}(self,function(e,t,n,r,o,i){return function(){"use strict";var a={482:function(e){e.exports=r},632:function(e){e.exports=t},772:function(e){e.exports=n},433:function(e){e.exports=i},584:function(e){e.exports=o},156:function(t){t.exports=e}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return a[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return!function(){u.r(l),u.d(l,{PluginWorkflowJSONQueryClient:function(){return E},default:function(){return _}});var e=u(772),t=u(482),n=u(632),r=u(584),o=u(156),i=u.n(o),a=u(433),c="@nocobase/plugin-workflow-json-query";function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(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 m(){var e=b(["\n &:after {\n content: ':';\n }\n & + a {\n margin-left: 0.25em;\n }\n "]);return m=function(){return e},e}function v(){var e=b(["\n > *:not(:last-child) {\n margin-right: 0.5em;\n }\n button {\n padding: 0;\n }\n "]);return v=function(){return e},e}var h=new r.Registry;function g(){return Array.from(h.getEntities()).reduce(function(e,t){var n=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return e.concat(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}({value:r},o))},[])}function x(t){var n=h.get(t);return n&&n.link?i().createElement(i().Fragment,null,i().createElement("span",{className:(0,e.css)(m())},e.i18n.t("Syntax references")),i().createElement("a",{href:n.link,target:"_blank",rel:"noreferrer"},n.label)):null}h.register("jmespath",{label:"JMESPath",link:"https://jmespath.org/"}),h.register("jsonpathplus",{label:"JSON Path Plus",link:"https://jsonpath-plus.github.io/JSONPath/docs/ts/"}),h.register("jsonata",{label:"JSONata",link:"https://jsonata.org/"});var w=function(r){var o;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");function u(){var r,o,l;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");return o=u,l=arguments,o=f(o),p(r=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=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(o,l||[],f(this).constructor):o.apply(this,l)),"title",'{{t("JSON calculation", { ns: "'.concat(c,'" })}}')),p(r,"type","json-query"),p(r,"group","calculation"),p(r,"description",'{{t("Transforming or calculating values from complex JSON data.", { ns: "'.concat(c,'" })}}')),p(r,"icon",i().createElement(t.NodeExpandOutlined,null)),p(r,"fieldset",{engine:{type:"string",title:'{{t("Query engine", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"Radio.Group",enum:"{{getEngineOptions()}}",required:!0,default:"jmespath"},source:{type:"string",title:'{{t("Data source", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{changeOnSelect:!0},required:!0},expression:{type:"string",title:'{{t("Query expression", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableTextArea",required:!0,"x-reactions":{dependencies:["engine"],fulfill:{state:{visible:"{{$deps[0]}}"},schema:{description:"{{renderEngineReference($deps[0])}}"}}}},model:{type:"array",title:'{{t("Properties mapping", { ns: "'.concat(c,'" })}}'),description:'{{t("If the type of query result is object or array of object, could map the properties which to be accessed in subsequent nodes.", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"ArrayTable",items:{type:"object",properties:{path:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Property key", { ns: "'.concat(c,'" })}}')},properties:{path:{type:"string",name:"path",required:!0,"x-decorator":"FormItem","x-component":"Input"}}},alias:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Alias", { ns: "'.concat(c,'" })}}')},properties:{alias:{type:"string",name:"alias","x-decorator":"FormItem","x-component":"Input"}}},label:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Display label", { ns: "'.concat(c,'" })}}')},properties:{label:{type:"string",name:"label",required:!0,"x-decorator":"FormItem","x-component":"Input"}}},operations:{type:"void","x-component":"ArrayTable.Column","x-component-props":{dataIndex:"operations",fixed:"right",className:(0,e.css)(v())},properties:{remove:{type:"void","x-component":"ArrayTable.Remove"}}}}},properties:{add:{type:"void","x-component":"ArrayTable.Addition","x-component-props":{defaultValue:{}},title:'{{t("Add property", { ns: "'.concat(c,'" })}}')}}}}),p(r,"scope",{renderEngineReference:x,getEngineOptions:g}),p(r,"components",{ArrayTable:n.ArrayTable,WorkflowVariableInput:a.WorkflowVariableInput,WorkflowVariableTextArea:a.WorkflowVariableTextArea}),p(r,"testable",!0),r}return u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),r&&y(u,r),o=[{key:"useVariables",value:function(t,n){var r,o,i=t.key,a=t.title,c=t.config,u=(n.types,n.fieldNames),l=void 0===u?e.defaultFieldNames:u;return p(o={},l.value,i),p(o,l.label,a),p(o,"children",(null==(r=c.model)?void 0:r.length)?c.model.map(function(e){var t;return p(t={},l.value,e.alias||e.path),p(t,l.label,e.label),t}):null),o}}],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)}}(u.prototype,o),u}(a.Instruction);function O(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){n(e);return}c.done?t(u):Promise.resolve(u).then(r,o)}function j(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){O(i,r,o,a,c,"next",e)}function c(e){O(i,r,o,a,c,"throw",e)}a(void 0)})}}function k(e,t,n){return(k=A()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&P(o,n.prototype),o}).apply(null,arguments)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t="function"==typeof Map?new Map:void 0;return(q=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 k(e,arguments,S(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),P(n,e)})(e)}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(A=function(){return!!e})()}function T(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var E=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(e,t){var r,o;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return r=n,o=[e,t],r=S(r),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=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,A()?Reflect.construct(r,o||[],S(this).constructor):r.apply(this,o))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&P(n,e),t=[{key:"beforeLoad",value:function(){return j(function(){return T(this,function(e){return[2]})})()}},{key:"load",value:function(){var e=this;return j(function(){var t,n;return T(this,function(r){return t=e.app.pm.get("workflow"),n=new w,t.instructions.register(n.type,n),[2]})})()}}],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}(q(e.Plugin)),_=E}(),l}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client"),require("@formily/antd-v5")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-query",["react","@nocobase/client","@ant-design/icons","@nocobase/utils/client","@nocobase/plugin-workflow/client","@formily/antd-v5"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-query"]=t(require("react"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/utils/client"),require("@nocobase/plugin-workflow/client"),require("@formily/antd-v5")):e["@nocobase/plugin-workflow-json-query"]=t(e.react,e["@nocobase/client"],e["@ant-design/icons"],e["@nocobase/utils/client"],e["@nocobase/plugin-workflow/client"],e["@formily/antd-v5"])}(self,function(e,t,n,r,o,i){return function(){"use strict";var a={482:function(e){e.exports=n},632:function(e){e.exports=i},772:function(e){e.exports=t},433:function(e){e.exports=o},584:function(e){e.exports=r},156:function(t){t.exports=e}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return a[e](n,n.exports,u),n.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return!function(){u.r(l),u.d(l,{PluginWorkflowJSONQueryClient:function(){return E},default:function(){return _}});var e=u(772),t=u(482),n=u(632),r=u(584),o=u(156),i=u.n(o),a=u(433),c="@nocobase/plugin-workflow-json-query";function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(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 m(){var e=b(["\n &:after {\n content: ':';\n }\n & + a {\n margin-left: 0.25em;\n }\n "]);return m=function(){return e},e}function v(){var e=b(["\n > *:not(:last-child) {\n margin-right: 0.5em;\n }\n button {\n padding: 0;\n }\n "]);return v=function(){return e},e}var h=new r.Registry;function g(){return Array.from(h.getEntities()).reduce(function(e,t){var n=function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,c=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),i.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(c)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return e.concat(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}({value:r},o))},[])}function x(t){var n=h.get(t);return n&&n.link?i().createElement(i().Fragment,null,i().createElement("span",{className:(0,e.css)(m())},e.i18n.t("Syntax references")),i().createElement("a",{href:n.link,target:"_blank",rel:"noreferrer"},n.label)):null}h.register("jmespath",{label:"JMESPath",link:"https://jmespath.org/"}),h.register("jsonpathplus",{label:"JSON Path Plus",link:"https://jsonpath-plus.github.io/JSONPath/docs/ts/"}),h.register("jsonata",{label:"JSONata",link:"https://jsonata.org/"});var w=function(r){var o;if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function");function u(){var r,o,l;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");return o=u,l=arguments,o=f(o),p(r=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=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(o,l||[],f(this).constructor):o.apply(this,l)),"title",'{{t("JSON calculation", { ns: "'.concat(c,'" })}}')),p(r,"type","json-query"),p(r,"group","calculation"),p(r,"description",'{{t("Transforming or calculating values from complex JSON data.", { ns: "'.concat(c,'" })}}')),p(r,"icon",i().createElement(t.NodeExpandOutlined,null)),p(r,"fieldset",{engine:{type:"string",title:'{{t("Query engine", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"Radio.Group",enum:"{{getEngineOptions()}}",required:!0,default:"jmespath"},source:{type:"string",title:'{{t("Data source", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableInput","x-component-props":{changeOnSelect:!0},required:!0},expression:{type:"string",title:'{{t("Query expression", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"WorkflowVariableTextArea",required:!0,"x-reactions":{dependencies:["engine"],fulfill:{state:{visible:"{{$deps[0]}}"},schema:{description:"{{renderEngineReference($deps[0])}}"}}}},model:{type:"array",title:'{{t("Properties mapping", { ns: "'.concat(c,'" })}}'),description:'{{t("If the type of query result is object or array of object, could map the properties which to be accessed in subsequent nodes.", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"ArrayTable",items:{type:"object",properties:{path:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Property key", { ns: "'.concat(c,'" })}}')},properties:{path:{type:"string",name:"path",required:!0,"x-decorator":"FormItem","x-component":"Input"}}},alias:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Alias", { ns: "'.concat(c,'" })}}')},properties:{alias:{type:"string",name:"alias","x-decorator":"FormItem","x-component":"Input"}}},label:{type:"void","x-component":"ArrayTable.Column","x-component-props":{title:'{{t("Display label", { ns: "'.concat(c,'" })}}')},properties:{label:{type:"string",name:"label",required:!0,"x-decorator":"FormItem","x-component":"Input"}}},operations:{type:"void","x-component":"ArrayTable.Column","x-component-props":{dataIndex:"operations",fixed:"right",className:(0,e.css)(v())},properties:{remove:{type:"void","x-component":"ArrayTable.Remove"}}}}},properties:{add:{type:"void","x-component":"ArrayTable.Addition","x-component-props":{defaultValue:{}},title:'{{t("Add property", { ns: "'.concat(c,'" })}}')}}}}),p(r,"scope",{renderEngineReference:x,getEngineOptions:g}),p(r,"components",{ArrayTable:n.ArrayTable,WorkflowVariableInput:a.WorkflowVariableInput,WorkflowVariableTextArea:a.WorkflowVariableTextArea}),p(r,"testable",!0),r}return u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),r&&y(u,r),o=[{key:"useVariables",value:function(t,n){var r,o,i=t.key,a=t.title,c=t.config,u=(n.types,n.fieldNames),l=void 0===u?e.defaultFieldNames:u;return p(o={},l.value,i),p(o,l.label,a),p(o,"children",(null==(r=c.model)?void 0:r.length)?c.model.map(function(e){var t;return p(t={},l.value,e.alias||e.path),p(t,l.label,e.label),t}):null),o}}],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)}}(u.prototype,o),u}(a.Instruction);function O(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){n(e);return}c.done?t(u):Promise.resolve(u).then(r,o)}function j(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){O(i,r,o,a,c,"next",e)}function c(e){O(i,r,o,a,c,"throw",e)}a(void 0)})}}function k(e,t,n){return(k=A()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&P(o,n.prototype),o}).apply(null,arguments)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t="function"==typeof Map?new Map:void 0;return(q=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 k(e,arguments,S(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),P(n,e)})(e)}function A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(A=function(){return!!e})()}function T(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var u=[i,c];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var E=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(e,t){var r,o;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return r=n,o=[e,t],r=S(r),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=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,A()?Reflect.construct(r,o||[],S(this).constructor):r.apply(this,o))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&P(n,e),t=[{key:"beforeLoad",value:function(){return j(function(){return T(this,function(e){return[2]})})()}},{key:"load",value:function(){var e=this;return j(function(){var t,n;return T(this,function(r){return t=e.app.pm.get("workflow"),n=new w,t.instructions.register(n.type,n),[2]})})()}}],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}(q(e.Plugin)),_=E}(),l}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "
|
|
12
|
-
"@nocobase/plugin-workflow": "
|
|
11
|
+
"@nocobase/client": "2.0.0-alpha.41",
|
|
12
|
+
"@nocobase/plugin-workflow": "2.0.0-alpha.41",
|
|
13
13
|
"@ant-design/icons": "5.6.1",
|
|
14
14
|
"@formily/antd-v5": "1.2.3",
|
|
15
|
-
"@nocobase/utils": "
|
|
15
|
+
"@nocobase/utils": "2.0.0-alpha.41",
|
|
16
16
|
"react": "18.2.0",
|
|
17
17
|
"lodash": "4.17.21",
|
|
18
|
-
"@nocobase/server": "
|
|
18
|
+
"@nocobase/server": "2.0.0-alpha.41"
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"jmespath","description":"JMESPath implementation in javascript","version":"0.16.0","author":{"name":"James Saryerwinnie","email":"js@jamesls.com","url":"http://jamesls.com/"},"homepage":"https://github.com/jmespath/jmespath.js","contributors":[],"devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.0","grunt-contrib-uglify":"^0.11.1","grunt-eslint":"^17.3.1","mocha":"^2.1.0"},"dependencies":{},"main":"jmespath.js","directories":{"test":"test"},"engines":{"node":">= 0.6.0"},"repository":{"type":"git","url":"git://github.com/jmespath/jmespath.js"},"bugs":{"url":"http://github.com/jmespath/jmespath.js/issues","mail":""},"license":"Apache-2.0","keywords":["jmespath","jsonpath","json","xpath"],"scripts":{"test":"mocha test/"},"_lastModified":"2025-11-
|
|
1
|
+
{"name":"jmespath","description":"JMESPath implementation in javascript","version":"0.16.0","author":{"name":"James Saryerwinnie","email":"js@jamesls.com","url":"http://jamesls.com/"},"homepage":"https://github.com/jmespath/jmespath.js","contributors":[],"devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.11.0","grunt-contrib-uglify":"^0.11.1","grunt-eslint":"^17.3.1","mocha":"^2.1.0"},"dependencies":{},"main":"jmespath.js","directories":{"test":"test"},"engines":{"node":">= 0.6.0"},"repository":{"type":"git","url":"git://github.com/jmespath/jmespath.js"},"bugs":{"url":"http://github.com/jmespath/jmespath.js/issues","mail":""},"license":"Apache-2.0","keywords":["jmespath","jsonpath","json","xpath"],"scripts":{"test":"mocha test/"},"_lastModified":"2025-11-19T01:24:53.412Z"}
|