@nocobase/plugin-workflow-json-variable-mapping 2.2.0-beta.9 → 3.0.0-alpha.1
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/client-v2.d.ts +2 -0
- package/client-v2.js +3 -0
- package/dist/client/297.86d443a3a3b8fa2c.js +10 -0
- package/dist/client/982.fe8ea1a04f5a58da.js +10 -0
- package/dist/client/JSONVariableMapping.d.ts +2 -154
- package/dist/client/index.js +1 -1
- package/dist/client-v2/297.0558eee44d49b2de.js +10 -0
- package/dist/client-v2/982.6f1d883d5f07dfd9.js +10 -0
- package/dist/client-v2/JSONVariableMapping.d.ts +47 -0
- package/dist/client-v2/components/JSONVariableMappingFieldset.d.ts +11 -0
- package/dist/client-v2/index.d.ts +9 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +11 -0
- package/dist/client-v2/plugin.d.ts +13 -0
- package/dist/client-v2/utils/parseJsonVariables.d.ts +25 -0
- package/dist/externalVersion.js +7 -5
- package/dist/locale/en-US.json +3 -1
- package/dist/locale/zh-CN.json +3 -1
- package/package.json +3 -2
package/client-v2.d.ts
ADDED
package/client-v2.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping||[]).push([["297"],{2056:function(e,r,t){t.d(r,{JSONVariableMappingFieldset:function(){return A}});var n=t(9155),a=t.n(n),o=t(7375),l=t(2059),c=t(3485),i=t(197),s=t(9488),u=t(4557),m=t.n(u),y=t(7694),p="___arr$___";function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function d(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return f(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e&&!Array.isArray(e)}function k(e,r,t,n){return{key:e(),path:r,name:t,paths:n}}function v(e,r,t,n,a){var o=n.parseArray,l=n.keys,c=n.key;if(o){var i=r?"".concat(r,".").concat(c):c;c!==p&&t.push(k(a,i,c,h(l).concat([c]))),O(e,i,t,d(b({},n),{parseArray:o,keys:h(l).concat([c])}),a)}else{var s="".concat(r?r+(c===p?"":"."):"").concat(c?c===p?"[]":c+"[]":"");c!==p&&t.push(k(a,"".concat(r?r+(c===p?"":"."):"").concat(c||""),c,h(l).concat([c]))),e.forEach(function(e){var r=h(l);c&&r.push(c),c!==p&&r.push(p),Array.isArray(e)?v(e,s,t,d(b({},n),{key:p,keys:r}),a):g(e)&&O(e,s,t,d(b({},n),{keys:h(r)}),a)})}return t}function O(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[]},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.randomId,o=n.parseArray,l=n.keys;return Object.keys(e).forEach(function(n){var c=e[n],i=r?"".concat(r,".").concat(n):n;Array.isArray(c)?v(c,r,t,{parseArray:o,keys:l,key:n},a):g(c)?(t.push(k(a,i,n,h(l).concat([n]))),O(c,i,t,{parseArray:o,keys:h(l).concat([n])},a)):t.push(k(a,i,n,h(l).concat([n])))}),t}function A(){var e,r=l.Form.useFormInstance(),t=(0,s.kj)(),u=null!=(e=l.Form.useWatch(["config","variables"],r))?e:[],f=(0,n.useCallback)(function(){var e=r.getFieldValue(["config","example"]),t=!!r.getFieldValue(["config","parseArray"]);r.setFieldValue(["config","variables"],function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.randomId,n=[];return Array.isArray(e)?n=v(e,"",[],{parseArray:r,keys:[],key:p},t):g(e)&&(n=O(e,"",[],{parseArray:r,keys:[]},t)),m()(n,"path")}(e,t))},[r]),b=(0,n.useCallback)(function(){r.setFieldValue(["config","variables"],[])},[r]);return a().createElement(a().Fragment,null,a().createElement(l.Form.Item,{name:["config","dataSource"],label:t("JSON data source"),rules:[{required:!0}]},a().createElement(i.WorkflowTypedVariableInput,{types:[]})),a().createElement(l.Form.Item,{name:["config","example"],label:t("Input example")},a().createElement(c.JsonTextArea,{placeholder:t('Please input JSON example like { "key1": "item1", "key2": "item2" }'),autoSize:{minRows:5,maxRows:10}})),a().createElement(l.Form.Item,{name:["config","parseArray"],valuePropName:"checked",extra:t('If the JSON object contains array items, parse them. eg: { "arrayKey": [ "item1", "item2" ] will be parsed as "arrayKey", "arrayKey.0", "arrayKey.1", if set to false, only "arrayKey" will be parsed.')},a().createElement(l.Checkbox,null,t("Include array index in path"))),a().createElement(l.Form.Item,{extra:t("Please update other node references to the key after clicking the parse button.")},a().createElement(l.Space,null,a().createElement(l.Button,{size:"small",onClick:f},t("Parse")),a().createElement(l.Popconfirm,{title:t("Delete items"),description:t("Are you sure to clear below items?"),onConfirm:b},a().createElement(l.Button,{size:"small",disabled:0===u.length},t("Clear below items"))))),a().createElement(l.Form.List,{name:["config","variables"]},function(e,r){var n=r.remove;return a().createElement(a().Fragment,null,e.map(function(e){return a().createElement(l.Space,{key:e.key,align:"baseline"},a().createElement(l.Form.Item,{name:[e.name,"path"]},a().createElement(l.Input,{disabled:!0,placeholder:t("Key path")})),a().createElement(l.Form.Item,{name:[e.name,"alias"]},a().createElement(l.Input,{placeholder:t("Alias")})),a().createElement(l.Form.Item,null,a().createElement(l.Button,{"aria-label":t("Delete"),icon:a().createElement(o.DeleteOutlined,null),size:"small",type:"text",onClick:function(){return n(e.name)}})))}))}))}}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
(self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping||[]).push([["982"],{7737:function(t,n,r){t.exports=r(3789)(r(5036),"DataView")},5072:function(t,n,r){var e=r(9763),o=r(3879),u=r(8150),i=r(7106),c=r(938);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}f.prototype.clear=e,f.prototype.delete=o,f.prototype.get=u,f.prototype.has=i,f.prototype.set=c,t.exports=f},5332:function(t,n,r){var e=r(3023),o=r(4747),u=r(9978),i=r(6734),c=r(4710);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}f.prototype.clear=e,f.prototype.delete=o,f.prototype.get=u,f.prototype.has=i,f.prototype.set=c,t.exports=f},16:function(t,n,r){t.exports=r(3789)(r(5036),"Map")},1708:function(t,n,r){var e=r(615),o=r(9859),u=r(5170),i=r(8470),c=r(7646);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}f.prototype.clear=e,f.prototype.delete=o,f.prototype.get=u,f.prototype.has=i,f.prototype.set=c,t.exports=f},1767:function(t,n,r){t.exports=r(3789)(r(5036),"Promise")},7802:function(t,n,r){t.exports=r(3789)(r(5036),"Set")},6874:function(t,n,r){var e=r(1708),o=r(9871),u=r(1772);function i(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}i.prototype.add=i.prototype.push=o,i.prototype.has=u,t.exports=i},9310:function(t,n,r){var e=r(5332),o=r(9333),u=r(1893),i=r(9676),c=r(6536),f=r(3336);function a(t){var n=this.__data__=new e(t);this.size=n.size}a.prototype.clear=o,a.prototype.delete=u,a.prototype.get=i,a.prototype.has=c,a.prototype.set=f,t.exports=a},7432:function(t,n,r){t.exports=r(5036).Symbol},181:function(t,n,r){t.exports=r(5036).Uint8Array},20:function(t,n,r){t.exports=r(3789)(r(5036),"WeakMap")},5773:function(t){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=0,u=[];++r<e;){var i=t[r];n(i,r,t)&&(u[o++]=i)}return u}},3574:function(t,n,r){var e=r(2712);t.exports=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}},9106:function(t){t.exports=function(t,n,r){for(var e=-1,o=null==t?0:t.length;++e<o;)if(r(n,t[e]))return!0;return!1}},6272:function(t,n,r){var e=r(8355),o=r(7933),u=r(9464),i=r(5752),c=r(1574),f=r(264),a=Object.prototype.hasOwnProperty;t.exports=function(t,n){var r=u(t),s=!r&&o(t),p=!r&&!s&&i(t),l=!r&&!s&&!p&&f(t),v=r||s||p||l,h=v?e(t.length,String):[],_=h.length;for(var b in t)(n||a.call(t,b))&&!(v&&("length"==b||p&&("offset"==b||"parent"==b)||l&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,_)))&&h.push(b);return h}},6233:function(t){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}},1595:function(t){t.exports=function(t,n){for(var r=-1,e=n.length,o=t.length;++r<e;)t[o+r]=n[r];return t}},119:function(t){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1}},5096:function(t,n,r){var e=r(9679);t.exports=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return -1}},8052:function(t){t.exports=function(t,n,r,e){for(var o=t.length,u=r+(e?1:-1);e?u--:++u<o;)if(n(t[u],u,t))return u;return -1}},3117:function(t,n,r){var e=r(8328),o=r(1966);t.exports=function(t,n){n=e(n,t);for(var r=0,u=n.length;null!=t&&r<u;)t=t[o(n[r++])];return r&&r==u?t:void 0}},4090:function(t,n,r){var e=r(1595),o=r(9464);t.exports=function(t,n,r){var u=n(t);return o(t)?u:e(u,r(t))}},6077:function(t,n,r){var e=r(7432),o=r(4444),u=r(3371),i=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):u(t)}},2282:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},2712:function(t,n,r){var e=r(8052),o=r(1264),u=r(7635);t.exports=function(t,n,r){return n==n?u(t,n,r):e(t,o,r)}},5301:function(t,n,r){var e=r(6077),o=r(4189);t.exports=function(t){return o(t)&&"[object Arguments]"==e(t)}},6161:function(t,n,r){var e=r(4715),o=r(4189);t.exports=function t(n,r,u,i,c){return n===r||(null!=n&&null!=r&&(o(n)||o(r))?e(n,r,u,i,t,c):n!=n&&r!=r)}},4715:function(t,n,r){var e=r(9310),o=r(8832),u=r(391),i=r(2132),c=r(1344),f=r(9464),a=r(5752),s=r(264),p="[object Arguments]",l="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,r,_,b,x){var y=f(t),d=f(n),g=y?l:c(t),j=d?l:c(n);g=g==p?v:g,j=j==p?v:j;var w=g==v,O=j==v,m=g==j;if(m&&a(t)){if(!a(n))return!1;y=!0,w=!1}if(m&&!w)return x||(x=new e),y||s(t)?o(t,n,r,_,b,x):u(t,n,g,r,_,b,x);if(!(1&r)){var A=w&&h.call(t,"__wrapped__"),z=O&&h.call(n,"__wrapped__");if(A||z){var k=A?t.value():t,S=z?n.value():n;return x||(x=new e),b(k,S,r,_,x)}}return!!m&&(x||(x=new e),i(t,n,r,_,b,x))}},2272:function(t,n,r){var e=r(9310),o=r(6161);t.exports=function(t,n,r,u){var i=r.length,c=i,f=!u;if(null==t)return!c;for(t=Object(t);i--;){var a=r[i];if(f&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<c;){var s=(a=r[i])[0],p=t[s],l=a[1];if(f&&a[2]){if(void 0===p&&!(s in t))return!1}else{var v=new e;if(u)var h=u(p,l,s,t,n,v);if(!(void 0===h?o(l,p,3,u,v):h))return!1}}return!0}},1264:function(t){t.exports=function(t){return t!=t}},9950:function(t,n,r){var e=r(6553),o=r(3909),u=r(6130),i=r(2760),c=/^\[object .+?Constructor\]$/,f=Object.prototype,a=Function.prototype.toString,s=f.hasOwnProperty,p=RegExp("^"+a.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!u(t)||o(t))&&(e(t)?p:c).test(i(t))}},8912:function(t,n,r){var e=r(6077),o=r(5841),u=r(4189),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return u(t)&&o(t.length)&&!!i[e(t)]}},2916:function(t,n,r){var e=r(3052),o=r(2273),u=r(515),i=r(9464),c=r(416);t.exports=function(t){return"function"==typeof t?t:null==t?u:"object"==typeof t?i(t)?o(t[0],t[1]):e(t):c(t)}},4829:function(t,n,r){var e=r(2632),o=r(9963),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return o(t);var n=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&n.push(r);return n}},3052:function(t,n,r){var e=r(2272),o=r(3145),u=r(9738);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?u(n[0][0],n[0][1]):function(r){return r===t||e(r,t,n)}}},2273:function(t,n,r){var e=r(6161),o=r(613),u=r(8146),i=r(3297),c=r(1685),f=r(9738),a=r(1966);t.exports=function(t,n){return i(t)&&c(n)?f(a(t),n):function(r){var i=o(r,t);return void 0===i&&i===n?u(r,t):e(n,i,3)}}},4024:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},4822:function(t,n,r){var e=r(3117);t.exports=function(t){return function(n){return e(n,t)}}},8355:function(t){t.exports=function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}},8761:function(t,n,r){var e=r(7432),o=r(6233),u=r(9464),i=r(5733),c=1/0,f=e?e.prototype:void 0,a=f?f.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(u(n))return o(n,t)+"";if(i(n))return a?a.call(n):"";var r=n+"";return"0"==r&&1/n==-c?"-0":r}},7746:function(t){t.exports=function(t){return function(n){return t(n)}}},4900:function(t,n,r){var e=r(6874),o=r(3574),u=r(9106),i=r(4854),c=r(754),f=r(4886);t.exports=function(t,n,r){var a=-1,s=o,p=t.length,l=!0,v=[],h=v;if(r)l=!1,s=u;else if(p>=200){var _=n?null:c(t);if(_)return f(_);l=!1,s=i,h=new e}else h=n?[]:v;t:for(;++a<p;){var b=t[a],x=n?n(b):b;if(b=r||0!==b?b:0,l&&x==x){for(var y=h.length;y--;)if(h[y]===x)continue t;n&&h.push(x),v.push(b)}else s(h,x,r)||(h!==v&&h.push(x),v.push(b))}return v}},4854:function(t){t.exports=function(t,n){return t.has(n)}},8328:function(t,n,r){var e=r(9464),o=r(3297),u=r(5643),i=r(8753);t.exports=function(t,n){return e(t)?t:o(t,n)?[t]:u(i(t))}},4780:function(t,n,r){t.exports=r(5036)["__core-js_shared__"]},754:function(t,n,r){var e=r(7802),o=r(3125),u=r(4886);t.exports=e&&1/u(new e([,-0]))[1]==1/0?function(t){return new e(t)}:o},8832:function(t,n,r){var e=r(6874),o=r(119),u=r(4854);t.exports=function(t,n,r,i,c,f){var a=1&r,s=t.length,p=n.length;if(s!=p&&!(a&&p>s))return!1;var l=f.get(t),v=f.get(n);if(l&&v)return l==n&&v==t;var h=-1,_=!0,b=2&r?new e:void 0;for(f.set(t,n),f.set(n,t);++h<s;){var x=t[h],y=n[h];if(i)var d=a?i(y,x,h,n,t,f):i(x,y,h,t,n,f);if(void 0!==d){if(d)continue;_=!1;break}if(b){if(!o(n,function(t,n){if(!u(b,n)&&(x===t||c(x,t,r,i,f)))return b.push(n)})){_=!1;break}}else if(!(x===y||c(x,y,r,i,f))){_=!1;break}}return f.delete(t),f.delete(n),_}},391:function(t,n,r){var e=r(7432),o=r(181),u=r(9679),i=r(8832),c=r(5860),f=r(4886),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;t.exports=function(t,n,r,e,a,p,l){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)break;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":if(t.byteLength!=n.byteLength||!p(new o(t),new o(n)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return u(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var v=c;case"[object Set]":var h=1&e;if(v||(v=f),t.size!=n.size&&!h)break;var _=l.get(t);if(_)return _==n;e|=2,l.set(t,n);var b=i(v(t),v(n),e,a,p,l);return l.delete(t),b;case"[object Symbol]":if(s)return s.call(t)==s.call(n)}return!1}},2132:function(t,n,r){var e=r(1679),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,r,u,i,c){var f=1&r,a=e(t),s=a.length;if(s!=e(n).length&&!f)return!1;for(var p=s;p--;){var l=a[p];if(!(f?l in n:o.call(n,l)))return!1}var v=c.get(t),h=c.get(n);if(v&&h)return v==n&&h==t;var _=!0;c.set(t,n),c.set(n,t);for(var b=f;++p<s;){var x=t[l=a[p]],y=n[l];if(u)var d=f?u(y,x,l,n,t,c):u(x,y,l,t,n,c);if(!(void 0===d?x===y||i(x,y,r,u,c):d)){_=!1;break}b||(b="constructor"==l)}if(_&&!b){var g=t.constructor,j=n.constructor;g!=j&&"constructor"in t&&"constructor"in n&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(_=!1)}return c.delete(t),c.delete(n),_}},8565:function(t,n,r){t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},1679:function(t,n,r){var e=r(4090),o=r(1809),u=r(9125);t.exports=function(t){return e(t,u,o)}},5930:function(t,n,r){var e=r(29);t.exports=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}},3145:function(t,n,r){var e=r(1685),o=r(9125);t.exports=function(t){for(var n=o(t),r=n.length;r--;){var u=n[r],i=t[u];n[r]=[u,i,e(i)]}return n}},3789:function(t,n,r){var e=r(9950),o=r(8869);t.exports=function(t,n){var r=o(t,n);return e(r)?r:void 0}},4444:function(t,n,r){var e=r(7432),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,c=e?e.toStringTag:void 0;t.exports=function(t){var n=u.call(t,c),r=t[c];try{t[c]=void 0;var e=!0}catch(t){}var o=i.call(t);return e&&(n?t[c]=r:delete t[c]),o}},1809:function(t,n,r){var e=r(5773),o=r(3864),u=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;t.exports=i?function(t){return null==t?[]:e(i(t=Object(t)),function(n){return u.call(t,n)})}:o},1344:function(t,n,r){var e=r(7737),o=r(16),u=r(1767),i=r(7802),c=r(20),f=r(6077),a=r(2760),s="[object Map]",p="[object Promise]",l="[object Set]",v="[object WeakMap]",h="[object DataView]",_=a(e),b=a(o),x=a(u),y=a(i),d=a(c),g=f;(e&&g(new e(new ArrayBuffer(1)))!=h||o&&g(new o)!=s||u&&g(u.resolve())!=p||i&&g(new i)!=l||c&&g(new c)!=v)&&(g=function(t){var n=f(t),r="[object Object]"==n?t.constructor:void 0,e=r?a(r):"";if(e)switch(e){case _:return h;case b:return s;case x:return p;case y:return l;case d:return v}return n}),t.exports=g},8869:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},3773:function(t,n,r){var e=r(8328),o=r(7933),u=r(9464),i=r(1574),c=r(5841),f=r(1966);t.exports=function(t,n,r){n=e(n,t);for(var a=-1,s=n.length,p=!1;++a<s;){var l=f(n[a]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++a!=s?p:!!(s=null==t?0:t.length)&&c(s)&&i(l,s)&&(u(t)||o(t))}},9763:function(t,n,r){var e=r(267);t.exports=function(){this.__data__=e?e(null):{},this.size=0}},3879:function(t){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=!!n,n}},8150:function(t,n,r){var e=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(e){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(n,t)?n[t]:void 0}},7106:function(t,n,r){var e=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return e?void 0!==n[t]:o.call(n,t)}},938:function(t,n,r){var e=r(267);t.exports=function(t,n){var r=this.__data__;return this.size+=+!this.has(t),r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}},1574:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var e=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==e||"symbol"!=e&&n.test(t))&&t>-1&&t%1==0&&t<r}},3297:function(t,n,r){var e=r(9464),o=r(5733),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,n){if(e(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||i.test(t)||!u.test(t)||null!=n&&t in Object(n)}},29:function(t){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},3909:function(t,n,r){var e,o=r(4780),u=(e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";t.exports=function(t){return!!u&&u in t}},2632:function(t){var n=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||n)}},1685:function(t,n,r){var e=r(6130);t.exports=function(t){return t==t&&!e(t)}},3023:function(t){t.exports=function(){this.__data__=[],this.size=0}},4747:function(t,n,r){var e=r(5096),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,r=e(n,t);return!(r<0)&&(r==n.length-1?n.pop():o.call(n,r,1),--this.size,!0)}},9978:function(t,n,r){var e=r(5096);t.exports=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}},6734:function(t,n,r){var e=r(5096);t.exports=function(t){return e(this.__data__,t)>-1}},4710:function(t,n,r){var e=r(5096);t.exports=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}},615:function(t,n,r){var e=r(5072),o=r(5332),u=r(16);t.exports=function(){this.size=0,this.__data__={hash:new e,map:new(u||o),string:new e}}},9859:function(t,n,r){var e=r(5930);t.exports=function(t){var n=e(this,t).delete(t);return this.size-=!!n,n}},5170:function(t,n,r){var e=r(5930);t.exports=function(t){return e(this,t).get(t)}},8470:function(t,n,r){var e=r(5930);t.exports=function(t){return e(this,t).has(t)}},7646:function(t,n,r){var e=r(5930);t.exports=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=+(r.size!=o),this}},5860:function(t){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}},9738:function(t){t.exports=function(t,n){return function(r){return null!=r&&r[t]===n&&(void 0!==n||t in Object(r))}}},5647:function(t,n,r){var e=r(7105);t.exports=function(t){var n=e(t,function(t){return 500===r.size&&r.clear(),t}),r=n.cache;return n}},267:function(t,n,r){t.exports=r(3789)(Object,"create")},9963:function(t,n,r){t.exports=r(2344)(Object.keys,Object)},1172:function(t,n,r){t=r.nmd(t);var e=r(8565),o=n&&!n.nodeType&&n,u=o&&t&&!t.nodeType&&t,i=u&&u.exports===o&&e.process,c=function(){try{var t=u&&u.require&&u.require("util").types;if(t)return t;return i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=c},3371:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},2344:function(t){t.exports=function(t,n){return function(r){return t(n(r))}}},5036:function(t,n,r){var e=r(8565),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=e||o||Function("return this")()},9871:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1772:function(t){t.exports=function(t){return this.__data__.has(t)}},4886:function(t){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t}),r}},9333:function(t,n,r){var e=r(5332);t.exports=function(){this.__data__=new e,this.size=0}},1893:function(t){t.exports=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}},9676:function(t){t.exports=function(t){return this.__data__.get(t)}},6536:function(t){t.exports=function(t){return this.__data__.has(t)}},3336:function(t,n,r){var e=r(5332),o=r(16),u=r(1708);t.exports=function(t,n){var r=this.__data__;if(r instanceof e){var i=r.__data__;if(!o||i.length<199)return i.push([t,n]),this.size=++r.size,this;r=this.__data__=new u(i)}return r.set(t,n),this.size=r.size,this}},7635:function(t){t.exports=function(t,n,r){for(var e=r-1,o=t.length;++e<o;)if(t[e]===n)return e;return -1}},5643:function(t,n,r){var e=r(5647),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;t.exports=e(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,function(t,r,e,o){n.push(e?o.replace(u,"$1"):r||t)}),n})},1966:function(t,n,r){var e=r(5733),o=1/0;t.exports=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-o?"-0":n}},2760:function(t){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},9679:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},613:function(t,n,r){var e=r(3117);t.exports=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}},8146:function(t,n,r){var e=r(2282),o=r(3773);t.exports=function(t,n){return null!=t&&o(t,n,e)}},515:function(t){t.exports=function(t){return t}},7933:function(t,n,r){var e=r(5301),o=r(4189),u=Object.prototype,i=u.hasOwnProperty,c=u.propertyIsEnumerable;t.exports=e(function(){return arguments}())?e:function(t){return o(t)&&i.call(t,"callee")&&!c.call(t,"callee")}},9464:function(t){t.exports=Array.isArray},623:function(t,n,r){var e=r(6553),o=r(5841);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},5752:function(t,n,r){t=r.nmd(t);var e=r(5036),o=r(8042),u=n&&!n.nodeType&&n,i=u&&t&&!t.nodeType&&t,c=i&&i.exports===u?e.Buffer:void 0,f=c?c.isBuffer:void 0;t.exports=f||o},6553:function(t,n,r){var e=r(6077),o=r(6130);t.exports=function(t){if(!o(t))return!1;var n=e(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},5841:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},6130:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},4189:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},5733:function(t,n,r){var e=r(6077),o=r(4189);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==e(t)}},264:function(t,n,r){var e=r(8912),o=r(7746),u=r(1172),i=u&&u.isTypedArray;t.exports=i?o(i):e},9125:function(t,n,r){var e=r(6272),o=r(4829),u=r(623);t.exports=function(t){return u(t)?e(t):o(t)}},7105:function(t,n,r){var e=r(1708);function o(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw TypeError("Expected a function");var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],u=r.cache;if(u.has(o))return u.get(o);var i=t.apply(this,e);return r.cache=u.set(o,i)||u,i};return r.cache=new(o.Cache||e),r}o.Cache=e,t.exports=o},3125:function(t){t.exports=function(){}},416:function(t,n,r){var e=r(4024),o=r(4822),u=r(3297),i=r(1966);t.exports=function(t){return u(t)?e(i(t)):o(t)}},3864:function(t){t.exports=function(){return[]}},8042:function(t){t.exports=function(){return!1}},8753:function(t,n,r){var e=r(8761);t.exports=function(t){return null==t?"":e(t)}},4557:function(t,n,r){var e=r(2916),o=r(4900);t.exports=function(t,n){return t&&t.length?o(t,e(n,2)):[]}}}]);
|
|
@@ -6,158 +6,6 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
export default class extends Instruction {
|
|
12
|
-
title: string;
|
|
13
|
-
type: string;
|
|
14
|
-
group: string;
|
|
15
|
-
description: string;
|
|
16
|
-
icon: React.JSX.Element;
|
|
17
|
-
fieldset: {
|
|
18
|
-
dataSource: {
|
|
19
|
-
type: string;
|
|
20
|
-
title: string;
|
|
21
|
-
'x-decorator': string;
|
|
22
|
-
'x-decorator-props': {};
|
|
23
|
-
'x-component': string;
|
|
24
|
-
'x-component-props': {
|
|
25
|
-
nullable: boolean;
|
|
26
|
-
changeOnSelect: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
example: {
|
|
30
|
-
type: string;
|
|
31
|
-
title: string;
|
|
32
|
-
'x-decorator': string;
|
|
33
|
-
'x-decorator-props': {
|
|
34
|
-
layout: string;
|
|
35
|
-
};
|
|
36
|
-
'x-component': string;
|
|
37
|
-
'x-component-props': {
|
|
38
|
-
placeholder: string;
|
|
39
|
-
autoSize: {
|
|
40
|
-
minRows: number;
|
|
41
|
-
maxRows: number;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
parseArray: {
|
|
46
|
-
type: string;
|
|
47
|
-
description: string;
|
|
48
|
-
'x-decorator': string;
|
|
49
|
-
'x-component': string;
|
|
50
|
-
'x-content': string;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
parseActions: {
|
|
54
|
-
type: string;
|
|
55
|
-
description: string;
|
|
56
|
-
'x-decorator': string;
|
|
57
|
-
'x-component': string;
|
|
58
|
-
properties: {
|
|
59
|
-
parseJsonAction: {
|
|
60
|
-
type: string;
|
|
61
|
-
title: string;
|
|
62
|
-
'x-component': string;
|
|
63
|
-
'x-component-props': {
|
|
64
|
-
useAction: string;
|
|
65
|
-
size: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
clearItems: {
|
|
69
|
-
type: string;
|
|
70
|
-
title: string;
|
|
71
|
-
'x-component': string;
|
|
72
|
-
'x-component-props': {
|
|
73
|
-
useAction: string;
|
|
74
|
-
size: string;
|
|
75
|
-
confirm: {
|
|
76
|
-
title: string;
|
|
77
|
-
content: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
'x-reactions': {
|
|
81
|
-
dependencies: string[];
|
|
82
|
-
fulfill: {
|
|
83
|
-
state: {
|
|
84
|
-
disabled: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
}[];
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
variables: {
|
|
92
|
-
type: string;
|
|
93
|
-
'x-decorator': string;
|
|
94
|
-
'x-decorator-props': {
|
|
95
|
-
layout: string;
|
|
96
|
-
};
|
|
97
|
-
'x-component': string;
|
|
98
|
-
'x-component-props': {
|
|
99
|
-
style: {
|
|
100
|
-
marginTop: number;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
default: any[];
|
|
104
|
-
items: {
|
|
105
|
-
type: string;
|
|
106
|
-
properties: {
|
|
107
|
-
space: {
|
|
108
|
-
type: string;
|
|
109
|
-
'x-component': string;
|
|
110
|
-
properties: {
|
|
111
|
-
path: {
|
|
112
|
-
type: string;
|
|
113
|
-
'x-decorator': string;
|
|
114
|
-
'x-component': string;
|
|
115
|
-
'x-component-props': {
|
|
116
|
-
placeholder: string;
|
|
117
|
-
};
|
|
118
|
-
'x-disabled': boolean;
|
|
119
|
-
};
|
|
120
|
-
alias: {
|
|
121
|
-
type: string;
|
|
122
|
-
'x-decorator': string;
|
|
123
|
-
'x-component': string;
|
|
124
|
-
'x-component-props': {
|
|
125
|
-
placeholder: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
remove: {
|
|
129
|
-
type: string;
|
|
130
|
-
'x-decorator': string;
|
|
131
|
-
'x-component': string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
scope: {
|
|
140
|
-
useParseJsonAction: () => {
|
|
141
|
-
run(): Promise<void>;
|
|
142
|
-
};
|
|
143
|
-
useClearItemsAction: () => {
|
|
144
|
-
run(): Promise<void>;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
components: {
|
|
148
|
-
Space: React.ForwardRefExoticComponent<import("antd").SpaceProps & React.RefAttributes<HTMLDivElement>> & {
|
|
149
|
-
Compact: React.FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
150
|
-
};
|
|
151
|
-
WorkflowVariableInput: typeof WorkflowVariableInput;
|
|
152
|
-
Fieldset: typeof Fieldset;
|
|
153
|
-
};
|
|
154
|
-
useVariables({ key, title, config }: {
|
|
155
|
-
key: any;
|
|
156
|
-
title: any;
|
|
157
|
-
config: any;
|
|
158
|
-
}, options: any): {
|
|
159
|
-
value: any;
|
|
160
|
-
label: any;
|
|
161
|
-
children: any;
|
|
162
|
-
};
|
|
9
|
+
import V2JSONVariableMappingInstruction from '../client-v2/JSONVariableMapping';
|
|
10
|
+
export default class JSONVariableMappingInstruction extends V2JSONVariableMappingInstruction {
|
|
163
11
|
}
|
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(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("react"),require("antd"),require("@formily/react"),require("@formily/shared"),require("react-i18next"),require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-variable-mapping",["@ant-design/icons","@nocobase/plugin-workflow/client","react","antd","@formily/react","@formily/shared","react-i18next","@nocobase/client"],e):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-variable-mapping"]=e(require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("react"),require("antd"),require("@formily/react"),require("@formily/shared"),require("react-i18next"),require("@nocobase/client")):t["@nocobase/plugin-workflow-json-variable-mapping"]=e(t["@ant-design/icons"],t["@nocobase/plugin-workflow/client"],t.react,t.antd,t["@formily/react"],t["@formily/shared"],t["react-i18next"],t["@nocobase/client"])}(self,function(t,e,r,n,o,i,c,a){return function(){var u={7737:function(t,e,r){t.exports=r(3789)(r(5036),"DataView")},5072:function(t,e,r){var n=r(9763),o=r(3879),i=r(8150),c=r(7106),a=r(938);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},5332:function(t,e,r){var n=r(3023),o=r(4747),i=r(9978),c=r(6734),a=r(4710);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},16:function(t,e,r){t.exports=r(3789)(r(5036),"Map")},1708:function(t,e,r){var n=r(615),o=r(9859),i=r(5170),c=r(8470),a=r(7646);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},1767:function(t,e,r){t.exports=r(3789)(r(5036),"Promise")},7802:function(t,e,r){t.exports=r(3789)(r(5036),"Set")},6874:function(t,e,r){var n=r(1708),o=r(9871),i=r(1772);function c(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}c.prototype.add=c.prototype.push=o,c.prototype.has=i,t.exports=c},9310:function(t,e,r){var n=r(5332),o=r(9333),i=r(1893),c=r(9676),a=r(6536),u=r(3336);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=c,s.prototype.has=a,s.prototype.set=u,t.exports=s},7432:function(t,e,r){t.exports=r(5036).Symbol},181:function(t,e,r){t.exports=r(5036).Uint8Array},20:function(t,e,r){t.exports=r(3789)(r(5036),"WeakMap")},5773:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}},3574:function(t,e,r){var n=r(2712);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},9106:function(t){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},6272:function(t,e,r){var n=r(8355),o=r(7933),i=r(9464),c=r(5752),a=r(1574),u=r(264),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&c(t),l=!r&&!f&&!p&&u(t),y=r||f||p||l,v=y?n(t.length,String):[],b=v.length;for(var h in t)(e||s.call(t,h))&&!(y&&("length"==h||p&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||a(h,b)))&&v.push(h);return v}},6233:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},1595:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},119:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},5096:function(t,e,r){var n=r(9679);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},8052:function(t){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},3117:function(t,e,r){var n=r(8328),o=r(1966);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4090:function(t,e,r){var n=r(1595),o=r(9464);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},6077:function(t,e,r){var n=r(7432),o=r(4444),i=r(3371),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},2282:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},2712:function(t,e,r){var n=r(8052),o=r(1264),i=r(7635);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},5301:function(t,e,r){var n=r(6077),o=r(4189);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},6161:function(t,e,r){var n=r(4715),o=r(4189);t.exports=function t(e,r,i,c,a){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,c,t,a):e!=e&&r!=r)}},4715:function(t,e,r){var n=r(9310),o=r(8832),i=r(391),c=r(2132),a=r(1344),u=r(9464),s=r(5752),f=r(264),p="[object Arguments]",l="[object Array]",y="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,b,h,d){var x=u(t),g=u(e),m=x?l:a(t),_=g?l:a(e);m=m==p?y:m,_=_==p?y:_;var j=m==y,w=_==y,O=m==_;if(O&&s(t)){if(!s(e))return!1;x=!0,j=!1}if(O&&!j)return d||(d=new n),x||f(t)?o(t,e,r,b,h,d):i(t,e,m,r,b,h,d);if(!(1&r)){var k=j&&v.call(t,"__wrapped__"),A=w&&v.call(e,"__wrapped__");if(k||A){var S=k?t.value():t,P=A?e.value():e;return d||(d=new n),h(S,P,r,b,d)}}return!!O&&(d||(d=new n),c(t,e,r,b,h,d))}},2272:function(t,e,r){var n=r(9310),o=r(6161);t.exports=function(t,e,r,i){var c=r.length,a=c,u=!i;if(null==t)return!a;for(t=Object(t);c--;){var s=r[c];if(u&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++c<a;){var f=(s=r[c])[0],p=t[f],l=s[1];if(u&&s[2]){if(void 0===p&&!(f in t))return!1}else{var y=new n;if(i)var v=i(p,l,f,t,e,y);if(!(void 0===v?o(l,p,3,i,y):v))return!1}}return!0}},1264:function(t){t.exports=function(t){return t!=t}},9950:function(t,e,r){var n=r(6553),o=r(3909),i=r(6130),c=r(2760),a=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,f=u.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:a).test(c(t))}},8912:function(t,e,r){var n=r(6077),o=r(5841),i=r(4189),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!c[n(t)]}},2916:function(t,e,r){var n=r(3052),o=r(2273),i=r(515),c=r(9464),a=r(416);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?c(t)?o(t[0],t[1]):n(t):a(t)}},4829:function(t,e,r){var n=r(2632),o=r(9963),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3052:function(t,e,r){var n=r(2272),o=r(3145),i=r(9738);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},2273:function(t,e,r){var n=r(6161),o=r(613),i=r(8146),c=r(3297),a=r(1685),u=r(9738),s=r(1966);t.exports=function(t,e){return c(t)&&a(e)?u(s(t),e):function(r){var c=o(r,t);return void 0===c&&c===e?i(r,t):n(e,c,3)}}},4024:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4822:function(t,e,r){var n=r(3117);t.exports=function(t){return function(e){return n(e,t)}}},8355:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},8761:function(t,e,r){var n=r(7432),o=r(6233),i=r(9464),c=r(5733),a=1/0,u=n?n.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(c(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-a?"-0":r}},7746:function(t){t.exports=function(t){return function(e){return t(e)}}},4900:function(t,e,r){var n=r(6874),o=r(3574),i=r(9106),c=r(4854),a=r(754),u=r(4886);t.exports=function(t,e,r){var s=-1,f=o,p=t.length,l=!0,y=[],v=y;if(r)l=!1,f=i;else if(p>=200){var b=e?null:a(t);if(b)return u(b);l=!1,f=c,v=new n}else v=e?[]:y;t:for(;++s<p;){var h=t[s],d=e?e(h):h;if(h=r||0!==h?h:0,l&&d==d){for(var x=v.length;x--;)if(v[x]===d)continue t;e&&v.push(d),y.push(h)}else f(v,d,r)||(v!==y&&v.push(d),y.push(h))}return y}},4854:function(t){t.exports=function(t,e){return t.has(e)}},8328:function(t,e,r){var n=r(9464),o=r(3297),i=r(5643),c=r(8753);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(c(t))}},4780:function(t,e,r){t.exports=r(5036)["__core-js_shared__"]},754:function(t,e,r){var n=r(7802),o=r(3125),i=r(4886);t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o},8832:function(t,e,r){var n=r(6874),o=r(119),i=r(4854);t.exports=function(t,e,r,c,a,u){var s=1&r,f=t.length,p=e.length;if(f!=p&&!(s&&p>f))return!1;var l=u.get(t),y=u.get(e);if(l&&y)return l==e&&y==t;var v=-1,b=!0,h=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++v<f;){var d=t[v],x=e[v];if(c)var g=s?c(x,d,v,e,t,u):c(d,x,v,t,e,u);if(void 0!==g){if(g)continue;b=!1;break}if(h){if(!o(e,function(t,e){if(!i(h,e)&&(d===t||a(d,t,r,c,u)))return h.push(e)})){b=!1;break}}else if(!(d===x||a(d,x,r,c,u))){b=!1;break}}return u.delete(t),u.delete(e),b}},391:function(t,e,r){var n=r(7432),o=r(181),i=r(9679),c=r(8832),a=r(5860),u=r(4886),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!p(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var y=a;case"[object Set]":var v=1&n;if(y||(y=u),t.size!=e.size&&!v)break;var b=l.get(t);if(b)return b==e;n|=2,l.set(t,e);var h=c(y(t),y(e),n,s,p,l);return l.delete(t),h;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},2132:function(t,e,r){var n=r(1679),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,c,a){var u=1&r,s=n(t),f=s.length;if(f!=n(e).length&&!u)return!1;for(var p=f;p--;){var l=s[p];if(!(u?l in e:o.call(e,l)))return!1}var y=a.get(t),v=a.get(e);if(y&&v)return y==e&&v==t;var b=!0;a.set(t,e),a.set(e,t);for(var h=u;++p<f;){var d=t[l=s[p]],x=e[l];if(i)var g=u?i(x,d,l,e,t,a):i(d,x,l,t,e,a);if(!(void 0===g?d===x||c(d,x,r,i,a):g)){b=!1;break}h||(h="constructor"==l)}if(b&&!h){var m=t.constructor,_=e.constructor;m!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(b=!1)}return a.delete(t),a.delete(e),b}},8565:function(t,e,r){t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},1679:function(t,e,r){var n=r(4090),o=r(1809),i=r(9125);t.exports=function(t){return n(t,i,o)}},5930:function(t,e,r){var n=r(29);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},3145:function(t,e,r){var n=r(1685),o=r(9125);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],c=t[i];e[r]=[i,c,n(c)]}return e}},3789:function(t,e,r){var n=r(9950),o=r(8869);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},4444:function(t,e,r){var n=r(7432),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(e?t[a]=r:delete t[a]),o}},1809:function(t,e,r){var n=r(5773),o=r(3864),i=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols;t.exports=c?function(t){return null==t?[]:n(c(t=Object(t)),function(e){return i.call(t,e)})}:o},1344:function(t,e,r){var n=r(7737),o=r(16),i=r(1767),c=r(7802),a=r(20),u=r(6077),s=r(2760),f="[object Map]",p="[object Promise]",l="[object Set]",y="[object WeakMap]",v="[object DataView]",b=s(n),h=s(o),d=s(i),x=s(c),g=s(a),m=u;(n&&m(new n(new ArrayBuffer(1)))!=v||o&&m(new o)!=f||i&&m(i.resolve())!=p||c&&m(new c)!=l||a&&m(new a)!=y)&&(m=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case b:return v;case h:return f;case d:return p;case x:return l;case g:return y}return e}),t.exports=m},8869:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},3773:function(t,e,r){var n=r(8328),o=r(7933),i=r(9464),c=r(1574),a=r(5841),u=r(1966);t.exports=function(t,e,r){e=n(e,t);for(var s=-1,f=e.length,p=!1;++s<f;){var l=u(e[s]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++s!=f?p:!!(f=null==t?0:t.length)&&a(f)&&c(l,f)&&(i(t)||o(t))}},9763:function(t,e,r){var n=r(267);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3879:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},8150:function(t,e,r){var n=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},7106:function(t,e,r){var n=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},938:function(t,e,r){var n=r(267);t.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},1574:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3297:function(t,e,r){var n=r(9464),o=r(5733),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||c.test(t)||!i.test(t)||null!=e&&t in Object(e)}},29:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},3909:function(t,e,r){var n,o=r(4780),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},2632:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},1685:function(t,e,r){var n=r(6130);t.exports=function(t){return t==t&&!n(t)}},3023:function(t){t.exports=function(){this.__data__=[],this.size=0}},4747:function(t,e,r){var n=r(5096),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},9978:function(t,e,r){var n=r(5096);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},6734:function(t,e,r){var n=r(5096);t.exports=function(t){return n(this.__data__,t)>-1}},4710:function(t,e,r){var n=r(5096);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},615:function(t,e,r){var n=r(5072),o=r(5332),i=r(16);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},9859:function(t,e,r){var n=r(5930);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=!!e,e}},5170:function(t,e,r){var n=r(5930);t.exports=function(t){return n(this,t).get(t)}},8470:function(t,e,r){var n=r(5930);t.exports=function(t){return n(this,t).has(t)}},7646:function(t,e,r){var n=r(5930);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=+(r.size!=o),this}},5860:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},9738:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},5647:function(t,e,r){var n=r(7105);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},267:function(t,e,r){t.exports=r(3789)(Object,"create")},9963:function(t,e,r){t.exports=r(2344)(Object.keys,Object)},1172:function(t,e,r){t=r.nmd(t);var n=r(8565),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a},3371:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},2344:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},5036:function(t,e,r){var n=r(8565),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||o||Function("return this")()},9871:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1772:function(t){t.exports=function(t){return this.__data__.has(t)}},4886:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},9333:function(t,e,r){var n=r(5332);t.exports=function(){this.__data__=new n,this.size=0}},1893:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},9676:function(t){t.exports=function(t){return this.__data__.get(t)}},6536:function(t){t.exports=function(t){return this.__data__.has(t)}},3336:function(t,e,r){var n=r(5332),o=r(16),i=r(1708);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},7635:function(t){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return -1}},5643:function(t,e,r){var n=r(5647),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e})},1966:function(t,e,r){var n=r(5733),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},2760:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},9679:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},613:function(t,e,r){var n=r(3117);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},8146:function(t,e,r){var n=r(2282),o=r(3773);t.exports=function(t,e){return null!=t&&o(t,e,n)}},515:function(t){t.exports=function(t){return t}},7933:function(t,e,r){var n=r(5301),o=r(4189),i=Object.prototype,c=i.hasOwnProperty,a=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!a.call(t,"callee")}},9464:function(t){t.exports=Array.isArray},623:function(t,e,r){var n=r(6553),o=r(5841);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},5752:function(t,e,r){t=r.nmd(t);var n=r(5036),o=r(8042),i=e&&!e.nodeType&&e,c=i&&t&&!t.nodeType&&t,a=c&&c.exports===i?n.Buffer:void 0,u=a?a.isBuffer:void 0;t.exports=u||o},6553:function(t,e,r){var n=r(6077),o=r(6130);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5841:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},6130:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},4189:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},5733:function(t,e,r){var n=r(6077),o=r(4189);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},264:function(t,e,r){var n=r(8912),o=r(7746),i=r(1172),c=i&&i.isTypedArray;t.exports=c?o(c):n},9125:function(t,e,r){var n=r(6272),o=r(4829),i=r(623);t.exports=function(t){return i(t)?n(t):o(t)}},7105:function(t,e,r){var n=r(1708);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var c=t.apply(this,n);return r.cache=i.set(o,c)||i,c};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},3125:function(t){t.exports=function(){}},416:function(t,e,r){var n=r(4024),o=r(4822),i=r(3297),c=r(1966);t.exports=function(t){return i(t)?n(c(t)):o(t)}},3864:function(t){t.exports=function(){return[]}},8042:function(t){t.exports=function(){return!1}},8753:function(t,e,r){var n=r(8761);t.exports=function(t){return null==t?"":n(t)}},4557:function(t,e,r){var n=r(2916),o=r(4900);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},7375:function(e){"use strict";e.exports=t},5230:function(t){"use strict";t.exports=o},166:function(t){"use strict";t.exports=i},3342:function(t){"use strict";t.exports=a},1990:function(t){"use strict";t.exports=e},2059:function(t){"use strict";t.exports=n},9155:function(t){"use strict";t.exports=r},5953:function(t){"use strict";t.exports=c}},s={};function f(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={id:t,loaded:!1,exports:{}};return u[t](r,r.exports,f),r.loaded=!0,r.exports}f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,{a:e}),e},f.d=function(t,e){for(var r in e)f.o(e,r)&&!f.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},f.g.importScripts&&(p=f.g.location+"");var p,l=f.g.document;if(!p&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(p=l.currentScript.src),!p)){var y=l.getElementsByTagName("script");if(y.length)for(var v=y.length-1;v>-1&&(!p||!/^http(s?):/.test(p));)p=y[v--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");f.p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var b={};return!function(){"use strict";var t="",e="u">typeof document?document.currentScript:null;if(e&&e.src){var r=e.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");r.indexOf("/static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client/")>=0&&(t=r.replace(/\/[^\/]+$/,"/"))}if(!t){var n=window.__webpack_public_path__||"";n&&("/"!==n.charAt(n.length-1)&&(n+="/"),t=n+"static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client/")}if(!t){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(t=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);t=a>=0?c.slice(0,a+1):"/"}t&&(t=t.replace(RegExp("/"+o+"/?$"),"/")),t||(t="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t+="static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client/"}f.p=t}(),!function(){"use strict";f.r(b),f.d(b,{PluginProTplClient:function(){return C},default:function(){return M}});var t=f(3342),e=f(9155),r=f.n(e),n=f(2059),o=f(7375),i=f(1990);f(5953);var c="workflow-json-variable-mapping",a=f(4557),u=f.n(a),s=f(166),p=f(5230),l="___arr$___";function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){r(t);return}a.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){v(i,n,o,c,a,"next",t)}function a(t){v(i,n,o,c,a,"throw",t)}c(void 0)})}}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function x(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e})(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function g(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t){if(t){if("string"==typeof t)return y(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return y(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t){return t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var s=[a,u];if(r)throw TypeError("Generator is already executing.");for(;c&&(c=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[],key:""},o=n.parseArray,i=n.keys,c=n.key;if(o){var a=e?"".concat(e,".").concat(c):c;c!==l&&r.push({key:(0,s.uid)(),path:a,name:c,paths:g(i).concat([c])}),w(t,a,r,x(d({},n),{parseArray:o,keys:g(i).concat([c])}))}else{var u="".concat(e?e+(c===l?"":"."):"").concat(c?c===l?"[]":c+"[]":"");c!==l&&r.push({key:(0,s.uid)(),path:"".concat(e?e+(c===l?"":"."):"").concat(c||""),name:c,paths:g(i).concat([c])}),t.forEach(function(e,o){var a=g(i);c&&a.push(c),c!==l&&a.push(l),Array.isArray(t[o])?j(e,u,r,x(d({},n),{key:l,keys:a})):Array.isArray(t[o])||"object"!==m(t[o])||null===t[o]||w(t[o],u,r,x(d({},n),{keys:g(a)}))})}return r}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[]};n.parseArray;var o=n.keys;return Object.keys(t).forEach(function(i){var c=e?"".concat(e,".").concat(i):i;Array.isArray(t[i])?j(t[i],e,r,x(d({},n),{keys:o,key:i})):Array.isArray(t[i])||"object"!==m(t[i])||null===t[i]?r.push({key:(0,s.uid)(),path:c,name:i,paths:g(o).concat([i])}):(r.push({key:(0,s.uid)(),path:c,name:i,paths:g(o).concat([i])}),w(t[i],c,r,x(d({},n),{keys:g(o).concat([i])})))}),r}var O=function(){var t=(0,p.useForm)();return{run:function(){return h(function(){var e,r;return _(this,function(n){try{e=[],r=t.values.example,Array.isArray(r)?e=j(r,"",[],{parseArray:t.values.parseArray,keys:[],key:l}):(void 0===r?"undefined":m(r))==="object"&&null!==r&&(e=w(r,"",[],{parseArray:t.values.parseArray,keys:[]})),t.query("variables").take().onInput(u()(e,"path"))}catch(t){console.error(t)}return[2]})})()}}},k=function(){var t=(0,p.useForm)();return{run:function(){return h(function(){return _(this,function(e){return t.query("variables").take().onInput([]),[2]})})()}}};function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(I=function(){return!!t})()}var E=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function a(){var t,e,u;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");return e=a,u=arguments,e=S(e),A(t=function(t,e){var r;if(e&&("object"==((r=e)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,I()?Reflect.construct(e,u||[],S(this).constructor):e.apply(this,u)),"title",'{{t("JSON variable mapping", { ns: "'.concat(c,'" })}}')),A(t,"type","json-variable-mapping"),A(t,"group","control"),A(t,"description",'{{t("Used for mapping any JSON data to structured variables for usage in subsequent nodes.", { ns: "'.concat(c,'" })}}')),A(t,"icon",r().createElement(o.SwapRightOutlined,null)),A(t,"fieldset",{dataSource:{type:"string",title:'{{t("JSON data source", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableInput","x-component-props":{nullable:!1,changeOnSelect:!0}},example:{type:"string",title:'{{t("Input example", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"Input.JSON","x-component-props":{placeholder:'{{t(\'Please input JSON example like { "key1": "item1", "key2": "item2" }\', { ns: "'.concat(c,'" })}}'),autoSize:{minRows:5,maxRows:10}}},parseArray:{type:"boolean",description:'{{t(\'If the JSON object contains array items, parse them. eg: { "arrayKey": [ "item1", "item2" ] will be parsed as "arrayKey", "arrayKey.0", "arrayKey.1", if set to false, only "arrayKey" will be parsed.\', { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"Checkbox","x-content":"{{t('Include array index in path', { ns: \"".concat(c,'" })}}'),default:!1},parseActions:{type:"void",description:"{{t('Please update other node references to the key after clicking the parse button.', { ns: \"".concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"Space",properties:{parseJsonAction:{type:"void",title:"{{t('Parse', { ns: \"".concat(c,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useParseJsonAction }}",size:"small"}},clearItems:{type:"void",title:"{{t('Clear below items', { ns: \"".concat(c,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useClearItemsAction }}",size:"small",confirm:{title:"{{t('Delete items')}}",content:"{{t('Are you sure to clear below items?')}}"}},"x-reactions":[{dependencies:[".variables"],fulfill:{state:{disabled:"{{ $deps[0].length === 0 }}"}}}]}}},variables:{type:"array","x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"ArrayItems","x-component-props":{style:{marginTop:20}},default:[],items:{type:"object",properties:{space:{type:"void","x-component":"Space",properties:{path:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Key path", { ns: "'.concat(c,'" })}}')},"x-disabled":!0},alias:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Alias", { ns: "'.concat(c,'" })}}')}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}}}}),A(t,"scope",{useParseJsonAction:O,useClearItemsAction:k}),A(t,"components",{Space:n.Space,WorkflowVariableInput:i.WorkflowVariableInput,Fieldset:i.Fieldset}),t}return a.prototype=Object.create(t&&t.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),t&&P(a,t),e=[{key:"useVariables",value:function(t,e){var r;return{value:t.key,label:t.title,children:(null!=(r=t.config.variables)?r:[]).map(function(t){var e=t.key,r=t.alias,n=t.path;return{isLeaf:!0,label:r||n,value:e,key:e}})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(a.prototype,e),a}(i.Instruction);function z(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){r(t);return}a.done?e(u):Promise.resolve(u).then(n,o)}function T(t,e,r){return(T=R()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&q(o,r.prototype),o}).apply(null,arguments)}function F(t){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function q(t,e){return(q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $(t){var e="function"==typeof Map?new Map:void 0;return($=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return T(t,arguments,F(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),q(r,t)})(t)}function R(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(R=function(){return!!t})()}var C=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=F(t),function(t,e){var r;if(e&&("object"==((r=e)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,R()?Reflect.construct(t,e||[],F(this).constructor):t.apply(this,e))}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&q(r,t),e=[{key:"load",value:function(){var t;return(t=function(){return function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var s=[a,u];if(r)throw TypeError("Generator is already executing.");for(;c&&(c=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(t){return this.app.pm.get("workflow").registerInstruction("json-variable-mapping",E),[2]})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){z(i,n,o,c,a,"next",t)}function a(t){z(i,n,o,c,a,"throw",t)}c(void 0)})}).call(this)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,e),r}($(t.Plugin)),M=C}(),b}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-variable-mapping",["@nocobase/client-v2","react","antd","@nocobase/plugin-workflow/client-v2","@nocobase/client","@ant-design/icons","@nocobase/flow-engine"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-variable-mapping"]=t(require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@nocobase/client"),require("@ant-design/icons"),require("@nocobase/flow-engine")):e["@nocobase/plugin-workflow-json-variable-mapping"]=t(e["@nocobase/client-v2"],e.react,e.antd,e["@nocobase/plugin-workflow/client-v2"],e["@nocobase/client"],e["@ant-design/icons"],e["@nocobase/flow-engine"])}(self,function(e,t,n,r,o,i,a){return function(){"use strict";var u,c,l,f={9488:function(e,t,n){n.d(t,{MZ:function(){return a},kj:function(){return u}});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}var i="workflow-json-variable-mapping";function a(e,t){return(0,r.tExpr)(e,o({ns:[i,"client"],nsMode:"fallback"},t))}function u(){var e=(0,r.useFlowEngine)();return function(t,n){return e.context.t(t,o({ns:[i,"client"],nsMode:"fallback"},n))}}},7375:function(e){e.exports=i},3342:function(e){e.exports=o},3485:function(t){t.exports=e},7694:function(e){e.exports=a},197:function(e){e.exports=r},2059:function(e){e.exports=n},9155:function(e){e.exports=t}},p={};function s(e){var t=p[e];if(void 0!==t)return t.exports;var n=p[e]={id:e,loaded:!1,exports:{}};return f[e](n,n.exports,s),n.loaded=!0,n.exports}s.m=f,s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce(function(t,n){return s.f[n](e,t),t},[]))},s.u=function(e){return""+e+"."+({297:"86d443a3a3b8fa2c",982:"fe8ea1a04f5a58da"})[e]+".js"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},b={},s.l=function(e,t,n,r){if(b[e])return void b[e].push(t);if(void 0!==n)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var c=a[u];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@nocobase/plugin-workflow-json-variable-mapping:"+n){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@nocobase/plugin-workflow-json-variable-mapping:"+n),o.src=e),b[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=b[e];if(delete b[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},s.g.importScripts&&(d=s.g.location+"");var b,d,y=s.g.document;if(!d&&y&&(y.currentScript&&"SCRIPT"===y.currentScript.tagName.toUpperCase()&&(d=y.currentScript.src),!d)){var v=y.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!d||!/^http(s?):/.test(d));)d=v[g--].src}if(!d)throw Error("Automatic publicPath is not supported in this browser");s.p=d.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u={889:0},s.f.j=function(e,t){var n=s.o(u,e)?u[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=u[e]=[t,r]});t.push(n[2]=r);var o=s.p+s.u(e),i=Error();s.l(o,function(t){if(s.o(u,e)&&(0!==(n=u[e])&&(u[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)}},c=function(e,t){var n,r,o=t[0],i=t[1],a=t[2],c=0;if(o.some(function(e){return 0!==u[e]})){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);a&&a(s)}for(e&&e(t);c<o.length;c++)r=o[c],s.o(u,r)&&u[r]&&u[r][0](),u[r]=0},(l=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping||[]).forEach(c.bind(null,0)),l.push=c.bind(null,l.push.bind(l));var h={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var a=window.location.pathname||"/",u=a.indexOf(i);e=u>=0?a.slice(0,u+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client/"}s.p=e}(),!function(){s.r(h),s.d(h,{PluginProTplClient:function(){return O},default:function(){return j}});var e=s(3342),t=s(9155),n=s.n(t),r=s(7375),o=s(197),i=s(9488);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return(u=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 l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function f(e){return(f=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 b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var d=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return e=t,n=arguments,e=f(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,b()?Reflect.construct(e,n||[],f(this).constructor):e.apply(this,n))}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e),t}(function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function o(){var e,t,c;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return t=o,c=arguments,t=u(t),a(e=function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,l()?Reflect.construct(t,c||[],u(this).constructor):t.apply(this,c)),"title",(0,i.MZ)("JSON variable mapping")),a(e,"type","json-variable-mapping"),a(e,"group","control"),a(e,"description",(0,i.MZ)("Used for mapping any JSON data to structured variables for usage in subsequent nodes.")),a(e,"icon",n().createElement(r.SwapRightOutlined,null)),a(e,"FieldsetLoader",function(){return Promise.all([s.e("982"),s.e("297")]).then(s.bind(s,2056)).then(function(e){return{default:e.JSONVariableMappingFieldset}})}),e}return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&c(o,e),t=[{key:"createDefaultConfig",value:function(){return{parseArray:!1,variables:[]}}},{key:"useVariables",value:function(e,t){var n,r=e.key,o=e.title,i=e.config;return{value:r,label:o,children:(null!=(n=null==i?void 0:i.variables)?n:[]).map(function(e){return{isLeaf:!0,label:e.alias?e.alias:e.path,value:e.key,key:e.key}})}}}],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)}}(o.prototype,t),o}(o.Instruction));function y(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){n(e);return}u.done?t(c):Promise.resolve(c).then(r,o)}function v(e,t,n){return(v=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&w(o,n.prototype),o}).apply(null,arguments)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t="function"==typeof Map?new Map:void 0;return(m=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 v(e,arguments,g(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),w(n,e)})(e)}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}var O=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=g(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,_()?Reflect.construct(e,t||[],g(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&w(n,e),t=[{key:"load",value:function(){var e;return(e=function(){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:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:c(0)}),u(a,"throw",{value:c(1)}),u(a,"return",{value:c(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function c(u){return function(c){var l=[u,c];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){return this.app.pm.get("workflow").registerInstruction("json-variable-mapping",d),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){y(i,r,o,a,u,"next",e)}function u(e){y(i,r,o,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}(m(e.Plugin)),j=O}(),h}()});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping_client_v2=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping_client_v2||[]).push([["297"],{2056:function(e,r,t){t.d(r,{JSONVariableMappingFieldset:function(){return A}});var n=t(9155),a=t.n(n),o=t(7375),l=t(2059),c=t(3485),i=t(197),s=t(9488),u=t(4557),m=t.n(u),y=t(7694),p="___arr$___";function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function d(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return f(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&null!==e&&!Array.isArray(e)}function k(e,r,t,n){return{key:e(),path:r,name:t,paths:n}}function v(e,r,t,n,a){var o=n.parseArray,l=n.keys,c=n.key;if(o){var i=r?"".concat(r,".").concat(c):c;c!==p&&t.push(k(a,i,c,h(l).concat([c]))),O(e,i,t,d(b({},n),{parseArray:o,keys:h(l).concat([c])}),a)}else{var s="".concat(r?r+(c===p?"":"."):"").concat(c?c===p?"[]":c+"[]":"");c!==p&&t.push(k(a,"".concat(r?r+(c===p?"":"."):"").concat(c||""),c,h(l).concat([c]))),e.forEach(function(e){var r=h(l);c&&r.push(c),c!==p&&r.push(p),Array.isArray(e)?v(e,s,t,d(b({},n),{key:p,keys:r}),a):g(e)&&O(e,s,t,d(b({},n),{keys:h(r)}),a)})}return t}function O(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[]},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.randomId,o=n.parseArray,l=n.keys;return Object.keys(e).forEach(function(n){var c=e[n],i=r?"".concat(r,".").concat(n):n;Array.isArray(c)?v(c,r,t,{parseArray:o,keys:l,key:n},a):g(c)?(t.push(k(a,i,n,h(l).concat([n]))),O(c,i,t,{parseArray:o,keys:h(l).concat([n])},a)):t.push(k(a,i,n,h(l).concat([n])))}),t}function A(){var e,r=l.Form.useFormInstance(),t=(0,s.kj)(),u=null!=(e=l.Form.useWatch(["config","variables"],r))?e:[],f=(0,n.useCallback)(function(){var e=r.getFieldValue(["config","example"]),t=!!r.getFieldValue(["config","parseArray"]);r.setFieldValue(["config","variables"],function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.randomId,n=[];return Array.isArray(e)?n=v(e,"",[],{parseArray:r,keys:[],key:p},t):g(e)&&(n=O(e,"",[],{parseArray:r,keys:[]},t)),m()(n,"path")}(e,t))},[r]),b=(0,n.useCallback)(function(){r.setFieldValue(["config","variables"],[])},[r]);return a().createElement(a().Fragment,null,a().createElement(l.Form.Item,{name:["config","dataSource"],label:t("JSON data source"),rules:[{required:!0}]},a().createElement(i.WorkflowTypedVariableInput,{types:[]})),a().createElement(l.Form.Item,{name:["config","example"],label:t("Input example")},a().createElement(c.JsonTextArea,{placeholder:t('Please input JSON example like { "key1": "item1", "key2": "item2" }'),autoSize:{minRows:5,maxRows:10}})),a().createElement(l.Form.Item,{name:["config","parseArray"],valuePropName:"checked",extra:t('If the JSON object contains array items, parse them. eg: { "arrayKey": [ "item1", "item2" ] will be parsed as "arrayKey", "arrayKey.0", "arrayKey.1", if set to false, only "arrayKey" will be parsed.')},a().createElement(l.Checkbox,null,t("Include array index in path"))),a().createElement(l.Form.Item,{extra:t("Please update other node references to the key after clicking the parse button.")},a().createElement(l.Space,null,a().createElement(l.Button,{size:"small",onClick:f},t("Parse")),a().createElement(l.Popconfirm,{title:t("Delete items"),description:t("Are you sure to clear below items?"),onConfirm:b},a().createElement(l.Button,{size:"small",disabled:0===u.length},t("Clear below items"))))),a().createElement(l.Form.List,{name:["config","variables"]},function(e,r){var n=r.remove;return a().createElement(a().Fragment,null,e.map(function(e){return a().createElement(l.Space,{key:e.key,align:"baseline"},a().createElement(l.Form.Item,{name:[e.name,"path"]},a().createElement(l.Input,{disabled:!0,placeholder:t("Key path")})),a().createElement(l.Form.Item,{name:[e.name,"alias"]},a().createElement(l.Input,{placeholder:t("Alias")})),a().createElement(l.Form.Item,null,a().createElement(l.Button,{"aria-label":t("Delete"),icon:a().createElement(o.DeleteOutlined,null),size:"small",type:"text",onClick:function(){return n(e.name)}})))}))}))}}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
(self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping_client_v2=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping_client_v2||[]).push([["982"],{7737:function(t,n,r){t.exports=r(3789)(r(5036),"DataView")},5072:function(t,n,r){var e=r(9763),o=r(3879),u=r(8150),i=r(7106),c=r(938);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}f.prototype.clear=e,f.prototype.delete=o,f.prototype.get=u,f.prototype.has=i,f.prototype.set=c,t.exports=f},5332:function(t,n,r){var e=r(3023),o=r(4747),u=r(9978),i=r(6734),c=r(4710);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}f.prototype.clear=e,f.prototype.delete=o,f.prototype.get=u,f.prototype.has=i,f.prototype.set=c,t.exports=f},16:function(t,n,r){t.exports=r(3789)(r(5036),"Map")},1708:function(t,n,r){var e=r(615),o=r(9859),u=r(5170),i=r(8470),c=r(7646);function f(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}f.prototype.clear=e,f.prototype.delete=o,f.prototype.get=u,f.prototype.has=i,f.prototype.set=c,t.exports=f},1767:function(t,n,r){t.exports=r(3789)(r(5036),"Promise")},7802:function(t,n,r){t.exports=r(3789)(r(5036),"Set")},6874:function(t,n,r){var e=r(1708),o=r(9871),u=r(1772);function i(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}i.prototype.add=i.prototype.push=o,i.prototype.has=u,t.exports=i},9310:function(t,n,r){var e=r(5332),o=r(9333),u=r(1893),i=r(9676),c=r(6536),f=r(3336);function a(t){var n=this.__data__=new e(t);this.size=n.size}a.prototype.clear=o,a.prototype.delete=u,a.prototype.get=i,a.prototype.has=c,a.prototype.set=f,t.exports=a},7432:function(t,n,r){t.exports=r(5036).Symbol},181:function(t,n,r){t.exports=r(5036).Uint8Array},20:function(t,n,r){t.exports=r(3789)(r(5036),"WeakMap")},5773:function(t){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=0,u=[];++r<e;){var i=t[r];n(i,r,t)&&(u[o++]=i)}return u}},3574:function(t,n,r){var e=r(2712);t.exports=function(t,n){return!!(null==t?0:t.length)&&e(t,n,0)>-1}},9106:function(t){t.exports=function(t,n,r){for(var e=-1,o=null==t?0:t.length;++e<o;)if(r(n,t[e]))return!0;return!1}},6272:function(t,n,r){var e=r(8355),o=r(7933),u=r(9464),i=r(5752),c=r(1574),f=r(264),a=Object.prototype.hasOwnProperty;t.exports=function(t,n){var r=u(t),s=!r&&o(t),p=!r&&!s&&i(t),l=!r&&!s&&!p&&f(t),v=r||s||p||l,h=v?e(t.length,String):[],_=h.length;for(var b in t)(n||a.call(t,b))&&!(v&&("length"==b||p&&("offset"==b||"parent"==b)||l&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||c(b,_)))&&h.push(b);return h}},6233:function(t){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}},1595:function(t){t.exports=function(t,n){for(var r=-1,e=n.length,o=t.length;++r<e;)t[o+r]=n[r];return t}},119:function(t){t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1}},5096:function(t,n,r){var e=r(9679);t.exports=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return -1}},8052:function(t){t.exports=function(t,n,r,e){for(var o=t.length,u=r+(e?1:-1);e?u--:++u<o;)if(n(t[u],u,t))return u;return -1}},3117:function(t,n,r){var e=r(8328),o=r(1966);t.exports=function(t,n){n=e(n,t);for(var r=0,u=n.length;null!=t&&r<u;)t=t[o(n[r++])];return r&&r==u?t:void 0}},4090:function(t,n,r){var e=r(1595),o=r(9464);t.exports=function(t,n,r){var u=n(t);return o(t)?u:e(u,r(t))}},6077:function(t,n,r){var e=r(7432),o=r(4444),u=r(3371),i=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):u(t)}},2282:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},2712:function(t,n,r){var e=r(8052),o=r(1264),u=r(7635);t.exports=function(t,n,r){return n==n?u(t,n,r):e(t,o,r)}},5301:function(t,n,r){var e=r(6077),o=r(4189);t.exports=function(t){return o(t)&&"[object Arguments]"==e(t)}},6161:function(t,n,r){var e=r(4715),o=r(4189);t.exports=function t(n,r,u,i,c){return n===r||(null!=n&&null!=r&&(o(n)||o(r))?e(n,r,u,i,t,c):n!=n&&r!=r)}},4715:function(t,n,r){var e=r(9310),o=r(8832),u=r(391),i=r(2132),c=r(1344),f=r(9464),a=r(5752),s=r(264),p="[object Arguments]",l="[object Array]",v="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,r,_,b,x){var y=f(t),d=f(n),g=y?l:c(t),j=d?l:c(n);g=g==p?v:g,j=j==p?v:j;var w=g==v,O=j==v,m=g==j;if(m&&a(t)){if(!a(n))return!1;y=!0,w=!1}if(m&&!w)return x||(x=new e),y||s(t)?o(t,n,r,_,b,x):u(t,n,g,r,_,b,x);if(!(1&r)){var A=w&&h.call(t,"__wrapped__"),z=O&&h.call(n,"__wrapped__");if(A||z){var k=A?t.value():t,S=z?n.value():n;return x||(x=new e),b(k,S,r,_,x)}}return!!m&&(x||(x=new e),i(t,n,r,_,b,x))}},2272:function(t,n,r){var e=r(9310),o=r(6161);t.exports=function(t,n,r,u){var i=r.length,c=i,f=!u;if(null==t)return!c;for(t=Object(t);i--;){var a=r[i];if(f&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<c;){var s=(a=r[i])[0],p=t[s],l=a[1];if(f&&a[2]){if(void 0===p&&!(s in t))return!1}else{var v=new e;if(u)var h=u(p,l,s,t,n,v);if(!(void 0===h?o(l,p,3,u,v):h))return!1}}return!0}},1264:function(t){t.exports=function(t){return t!=t}},9950:function(t,n,r){var e=r(6553),o=r(3909),u=r(6130),i=r(2760),c=/^\[object .+?Constructor\]$/,f=Object.prototype,a=Function.prototype.toString,s=f.hasOwnProperty,p=RegExp("^"+a.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!u(t)||o(t))&&(e(t)?p:c).test(i(t))}},8912:function(t,n,r){var e=r(6077),o=r(5841),u=r(4189),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return u(t)&&o(t.length)&&!!i[e(t)]}},2916:function(t,n,r){var e=r(3052),o=r(2273),u=r(515),i=r(9464),c=r(416);t.exports=function(t){return"function"==typeof t?t:null==t?u:"object"==typeof t?i(t)?o(t[0],t[1]):e(t):c(t)}},4829:function(t,n,r){var e=r(2632),o=r(9963),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return o(t);var n=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&n.push(r);return n}},3052:function(t,n,r){var e=r(2272),o=r(3145),u=r(9738);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?u(n[0][0],n[0][1]):function(r){return r===t||e(r,t,n)}}},2273:function(t,n,r){var e=r(6161),o=r(613),u=r(8146),i=r(3297),c=r(1685),f=r(9738),a=r(1966);t.exports=function(t,n){return i(t)&&c(n)?f(a(t),n):function(r){var i=o(r,t);return void 0===i&&i===n?u(r,t):e(n,i,3)}}},4024:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},4822:function(t,n,r){var e=r(3117);t.exports=function(t){return function(n){return e(n,t)}}},8355:function(t){t.exports=function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}},8761:function(t,n,r){var e=r(7432),o=r(6233),u=r(9464),i=r(5733),c=1/0,f=e?e.prototype:void 0,a=f?f.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(u(n))return o(n,t)+"";if(i(n))return a?a.call(n):"";var r=n+"";return"0"==r&&1/n==-c?"-0":r}},7746:function(t){t.exports=function(t){return function(n){return t(n)}}},4900:function(t,n,r){var e=r(6874),o=r(3574),u=r(9106),i=r(4854),c=r(754),f=r(4886);t.exports=function(t,n,r){var a=-1,s=o,p=t.length,l=!0,v=[],h=v;if(r)l=!1,s=u;else if(p>=200){var _=n?null:c(t);if(_)return f(_);l=!1,s=i,h=new e}else h=n?[]:v;t:for(;++a<p;){var b=t[a],x=n?n(b):b;if(b=r||0!==b?b:0,l&&x==x){for(var y=h.length;y--;)if(h[y]===x)continue t;n&&h.push(x),v.push(b)}else s(h,x,r)||(h!==v&&h.push(x),v.push(b))}return v}},4854:function(t){t.exports=function(t,n){return t.has(n)}},8328:function(t,n,r){var e=r(9464),o=r(3297),u=r(5643),i=r(8753);t.exports=function(t,n){return e(t)?t:o(t,n)?[t]:u(i(t))}},4780:function(t,n,r){t.exports=r(5036)["__core-js_shared__"]},754:function(t,n,r){var e=r(7802),o=r(3125),u=r(4886);t.exports=e&&1/u(new e([,-0]))[1]==1/0?function(t){return new e(t)}:o},8832:function(t,n,r){var e=r(6874),o=r(119),u=r(4854);t.exports=function(t,n,r,i,c,f){var a=1&r,s=t.length,p=n.length;if(s!=p&&!(a&&p>s))return!1;var l=f.get(t),v=f.get(n);if(l&&v)return l==n&&v==t;var h=-1,_=!0,b=2&r?new e:void 0;for(f.set(t,n),f.set(n,t);++h<s;){var x=t[h],y=n[h];if(i)var d=a?i(y,x,h,n,t,f):i(x,y,h,t,n,f);if(void 0!==d){if(d)continue;_=!1;break}if(b){if(!o(n,function(t,n){if(!u(b,n)&&(x===t||c(x,t,r,i,f)))return b.push(n)})){_=!1;break}}else if(!(x===y||c(x,y,r,i,f))){_=!1;break}}return f.delete(t),f.delete(n),_}},391:function(t,n,r){var e=r(7432),o=r(181),u=r(9679),i=r(8832),c=r(5860),f=r(4886),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;t.exports=function(t,n,r,e,a,p,l){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)break;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":if(t.byteLength!=n.byteLength||!p(new o(t),new o(n)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return u(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var v=c;case"[object Set]":var h=1&e;if(v||(v=f),t.size!=n.size&&!h)break;var _=l.get(t);if(_)return _==n;e|=2,l.set(t,n);var b=i(v(t),v(n),e,a,p,l);return l.delete(t),b;case"[object Symbol]":if(s)return s.call(t)==s.call(n)}return!1}},2132:function(t,n,r){var e=r(1679),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,r,u,i,c){var f=1&r,a=e(t),s=a.length;if(s!=e(n).length&&!f)return!1;for(var p=s;p--;){var l=a[p];if(!(f?l in n:o.call(n,l)))return!1}var v=c.get(t),h=c.get(n);if(v&&h)return v==n&&h==t;var _=!0;c.set(t,n),c.set(n,t);for(var b=f;++p<s;){var x=t[l=a[p]],y=n[l];if(u)var d=f?u(y,x,l,n,t,c):u(x,y,l,t,n,c);if(!(void 0===d?x===y||i(x,y,r,u,c):d)){_=!1;break}b||(b="constructor"==l)}if(_&&!b){var g=t.constructor,j=n.constructor;g!=j&&"constructor"in t&&"constructor"in n&&!("function"==typeof g&&g instanceof g&&"function"==typeof j&&j instanceof j)&&(_=!1)}return c.delete(t),c.delete(n),_}},8565:function(t,n,r){t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},1679:function(t,n,r){var e=r(4090),o=r(1809),u=r(9125);t.exports=function(t){return e(t,u,o)}},5930:function(t,n,r){var e=r(29);t.exports=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}},3145:function(t,n,r){var e=r(1685),o=r(9125);t.exports=function(t){for(var n=o(t),r=n.length;r--;){var u=n[r],i=t[u];n[r]=[u,i,e(i)]}return n}},3789:function(t,n,r){var e=r(9950),o=r(8869);t.exports=function(t,n){var r=o(t,n);return e(r)?r:void 0}},4444:function(t,n,r){var e=r(7432),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,c=e?e.toStringTag:void 0;t.exports=function(t){var n=u.call(t,c),r=t[c];try{t[c]=void 0;var e=!0}catch(t){}var o=i.call(t);return e&&(n?t[c]=r:delete t[c]),o}},1809:function(t,n,r){var e=r(5773),o=r(3864),u=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;t.exports=i?function(t){return null==t?[]:e(i(t=Object(t)),function(n){return u.call(t,n)})}:o},1344:function(t,n,r){var e=r(7737),o=r(16),u=r(1767),i=r(7802),c=r(20),f=r(6077),a=r(2760),s="[object Map]",p="[object Promise]",l="[object Set]",v="[object WeakMap]",h="[object DataView]",_=a(e),b=a(o),x=a(u),y=a(i),d=a(c),g=f;(e&&g(new e(new ArrayBuffer(1)))!=h||o&&g(new o)!=s||u&&g(u.resolve())!=p||i&&g(new i)!=l||c&&g(new c)!=v)&&(g=function(t){var n=f(t),r="[object Object]"==n?t.constructor:void 0,e=r?a(r):"";if(e)switch(e){case _:return h;case b:return s;case x:return p;case y:return l;case d:return v}return n}),t.exports=g},8869:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},3773:function(t,n,r){var e=r(8328),o=r(7933),u=r(9464),i=r(1574),c=r(5841),f=r(1966);t.exports=function(t,n,r){n=e(n,t);for(var a=-1,s=n.length,p=!1;++a<s;){var l=f(n[a]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++a!=s?p:!!(s=null==t?0:t.length)&&c(s)&&i(l,s)&&(u(t)||o(t))}},9763:function(t,n,r){var e=r(267);t.exports=function(){this.__data__=e?e(null):{},this.size=0}},3879:function(t){t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=!!n,n}},8150:function(t,n,r){var e=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(e){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(n,t)?n[t]:void 0}},7106:function(t,n,r){var e=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return e?void 0!==n[t]:o.call(n,t)}},938:function(t,n,r){var e=r(267);t.exports=function(t,n){var r=this.__data__;return this.size+=+!this.has(t),r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}},1574:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var e=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==e||"symbol"!=e&&n.test(t))&&t>-1&&t%1==0&&t<r}},3297:function(t,n,r){var e=r(9464),o=r(5733),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,n){if(e(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||i.test(t)||!u.test(t)||null!=n&&t in Object(n)}},29:function(t){t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},3909:function(t,n,r){var e,o=r(4780),u=(e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";t.exports=function(t){return!!u&&u in t}},2632:function(t){var n=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||n)}},1685:function(t,n,r){var e=r(6130);t.exports=function(t){return t==t&&!e(t)}},3023:function(t){t.exports=function(){this.__data__=[],this.size=0}},4747:function(t,n,r){var e=r(5096),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,r=e(n,t);return!(r<0)&&(r==n.length-1?n.pop():o.call(n,r,1),--this.size,!0)}},9978:function(t,n,r){var e=r(5096);t.exports=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}},6734:function(t,n,r){var e=r(5096);t.exports=function(t){return e(this.__data__,t)>-1}},4710:function(t,n,r){var e=r(5096);t.exports=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}},615:function(t,n,r){var e=r(5072),o=r(5332),u=r(16);t.exports=function(){this.size=0,this.__data__={hash:new e,map:new(u||o),string:new e}}},9859:function(t,n,r){var e=r(5930);t.exports=function(t){var n=e(this,t).delete(t);return this.size-=!!n,n}},5170:function(t,n,r){var e=r(5930);t.exports=function(t){return e(this,t).get(t)}},8470:function(t,n,r){var e=r(5930);t.exports=function(t){return e(this,t).has(t)}},7646:function(t,n,r){var e=r(5930);t.exports=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=+(r.size!=o),this}},5860:function(t){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}},9738:function(t){t.exports=function(t,n){return function(r){return null!=r&&r[t]===n&&(void 0!==n||t in Object(r))}}},5647:function(t,n,r){var e=r(7105);t.exports=function(t){var n=e(t,function(t){return 500===r.size&&r.clear(),t}),r=n.cache;return n}},267:function(t,n,r){t.exports=r(3789)(Object,"create")},9963:function(t,n,r){t.exports=r(2344)(Object.keys,Object)},1172:function(t,n,r){t=r.nmd(t);var e=r(8565),o=n&&!n.nodeType&&n,u=o&&t&&!t.nodeType&&t,i=u&&u.exports===o&&e.process,c=function(){try{var t=u&&u.require&&u.require("util").types;if(t)return t;return i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=c},3371:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},2344:function(t){t.exports=function(t,n){return function(r){return t(n(r))}}},5036:function(t,n,r){var e=r(8565),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=e||o||Function("return this")()},9871:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1772:function(t){t.exports=function(t){return this.__data__.has(t)}},4886:function(t){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t){r[++n]=t}),r}},9333:function(t,n,r){var e=r(5332);t.exports=function(){this.__data__=new e,this.size=0}},1893:function(t){t.exports=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}},9676:function(t){t.exports=function(t){return this.__data__.get(t)}},6536:function(t){t.exports=function(t){return this.__data__.has(t)}},3336:function(t,n,r){var e=r(5332),o=r(16),u=r(1708);t.exports=function(t,n){var r=this.__data__;if(r instanceof e){var i=r.__data__;if(!o||i.length<199)return i.push([t,n]),this.size=++r.size,this;r=this.__data__=new u(i)}return r.set(t,n),this.size=r.size,this}},7635:function(t){t.exports=function(t,n,r){for(var e=r-1,o=t.length;++e<o;)if(t[e]===n)return e;return -1}},5643:function(t,n,r){var e=r(5647),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;t.exports=e(function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,function(t,r,e,o){n.push(e?o.replace(u,"$1"):r||t)}),n})},1966:function(t,n,r){var e=r(5733),o=1/0;t.exports=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-o?"-0":n}},2760:function(t){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},9679:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},613:function(t,n,r){var e=r(3117);t.exports=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}},8146:function(t,n,r){var e=r(2282),o=r(3773);t.exports=function(t,n){return null!=t&&o(t,n,e)}},515:function(t){t.exports=function(t){return t}},7933:function(t,n,r){var e=r(5301),o=r(4189),u=Object.prototype,i=u.hasOwnProperty,c=u.propertyIsEnumerable;t.exports=e(function(){return arguments}())?e:function(t){return o(t)&&i.call(t,"callee")&&!c.call(t,"callee")}},9464:function(t){t.exports=Array.isArray},623:function(t,n,r){var e=r(6553),o=r(5841);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},5752:function(t,n,r){t=r.nmd(t);var e=r(5036),o=r(8042),u=n&&!n.nodeType&&n,i=u&&t&&!t.nodeType&&t,c=i&&i.exports===u?e.Buffer:void 0,f=c?c.isBuffer:void 0;t.exports=f||o},6553:function(t,n,r){var e=r(6077),o=r(6130);t.exports=function(t){if(!o(t))return!1;var n=e(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},5841:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},6130:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},4189:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},5733:function(t,n,r){var e=r(6077),o=r(4189);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==e(t)}},264:function(t,n,r){var e=r(8912),o=r(7746),u=r(1172),i=u&&u.isTypedArray;t.exports=i?o(i):e},9125:function(t,n,r){var e=r(6272),o=r(4829),u=r(623);t.exports=function(t){return u(t)?e(t):o(t)}},7105:function(t,n,r){var e=r(1708);function o(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw TypeError("Expected a function");var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],u=r.cache;if(u.has(o))return u.get(o);var i=t.apply(this,e);return r.cache=u.set(o,i)||u,i};return r.cache=new(o.Cache||e),r}o.Cache=e,t.exports=o},3125:function(t){t.exports=function(){}},416:function(t,n,r){var e=r(4024),o=r(4822),u=r(3297),i=r(1966);t.exports=function(t){return u(t)?e(i(t)):o(t)}},3864:function(t){t.exports=function(){return[]}},8042:function(t){t.exports=function(){return!1}},8753:function(t,n,r){var e=r(8761);t.exports=function(t){return null==t?"":e(t)}},4557:function(t,n,r){var e=r(2916),o=r(4900);t.exports=function(t,n){return t&&t.length?o(t,e(n,2)):[]}}}]);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Instruction } from '@nocobase/plugin-workflow/client-v2';
|
|
11
|
+
type VariableConfigItem = {
|
|
12
|
+
key: string;
|
|
13
|
+
alias?: string;
|
|
14
|
+
path: string;
|
|
15
|
+
};
|
|
16
|
+
type NodeConfig = {
|
|
17
|
+
parseArray?: boolean;
|
|
18
|
+
variables?: VariableConfigItem[];
|
|
19
|
+
};
|
|
20
|
+
type NodeLike = {
|
|
21
|
+
key: string;
|
|
22
|
+
title: string;
|
|
23
|
+
config?: NodeConfig;
|
|
24
|
+
};
|
|
25
|
+
type UseVariablesOptions = Record<string, unknown>;
|
|
26
|
+
export default class JSONVariableMappingInstruction extends Instruction {
|
|
27
|
+
title: string;
|
|
28
|
+
type: string;
|
|
29
|
+
group: string;
|
|
30
|
+
description: string;
|
|
31
|
+
icon: React.JSX.Element;
|
|
32
|
+
FieldsetLoader: () => Promise<{
|
|
33
|
+
default: typeof import("./components/JSONVariableMappingFieldset").JSONVariableMappingFieldset;
|
|
34
|
+
}>;
|
|
35
|
+
createDefaultConfig(): NodeConfig;
|
|
36
|
+
useVariables({ key, title, config }: NodeLike, _options?: UseVariablesOptions): {
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
children: {
|
|
40
|
+
isLeaf: boolean;
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
key: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export declare function JSONVariableMappingFieldset(): React.JSX.Element;
|
|
11
|
+
export default JSONVariableMappingFieldset;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export { default } from './plugin';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-variable-mapping/client-v2",["@nocobase/client-v2","react","antd","@nocobase/plugin-workflow/client-v2","@ant-design/icons","@nocobase/flow-engine"],t):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-variable-mapping/client-v2"]=t(require("@nocobase/client-v2"),require("react"),require("antd"),require("@nocobase/plugin-workflow/client-v2"),require("@ant-design/icons"),require("@nocobase/flow-engine")):e["@nocobase/plugin-workflow-json-variable-mapping/client-v2"]=t(e["@nocobase/client-v2"],e.react,e.antd,e["@nocobase/plugin-workflow/client-v2"],e["@ant-design/icons"],e["@nocobase/flow-engine"])}(self,function(e,t,n,r,o,i){return function(){"use strict";var a,u,c,l={9488:function(e,t,n){n.d(t,{MZ:function(){return a},kj:function(){return u}});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}var i="workflow-json-variable-mapping";function a(e,t){return(0,r.tExpr)(e,o({ns:[i,"client"],nsMode:"fallback"},t))}function u(){var e=(0,r.useFlowEngine)();return function(t,n){return e.context.t(t,o({ns:[i,"client"],nsMode:"fallback"},n))}}},7375:function(e){e.exports=o},3485:function(t){t.exports=e},7694:function(e){e.exports=i},197:function(e){e.exports=r},2059:function(e){e.exports=n},9155:function(e){e.exports=t}},f={};function p(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={id:e,loaded:!1,exports:{}};return l[e](n,n.exports,p),n.loaded=!0,n.exports}p.m=l,p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=function(e){return Promise.all(Object.keys(p.f).reduce(function(t,n){return p.f[n](e,t),t},[]))},p.u=function(e){return""+e+"."+({297:"0558eee44d49b2de",982:"6f1d883d5f07dfd9"})[e]+".js"},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s={},p.l=function(e,t,n,r){if(s[e])return void s[e].push(t);if(void 0!==n)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var c=a[u];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@nocobase/plugin-workflow-json-variable-mapping/client-v2:"+n){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.setAttribute("data-rspack","@nocobase/plugin-workflow-json-variable-mapping/client-v2:"+n),o.src=e),s[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(f);var r=s[e];if(delete s[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},p.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},p.g.importScripts&&(b=p.g.location+"");var s,b,v=p.g.document;if(!b&&v&&(v.currentScript&&"SCRIPT"===v.currentScript.tagName.toUpperCase()&&(b=v.currentScript.src),!b)){var d=v.getElementsByTagName("script");if(d.length)for(var y=d.length-1;y>-1&&(!b||!/^http(s?):/.test(b));)b=d[y--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");p.p=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a={889:0},p.f.j=function(e,t){var n=p.o(a,e)?a[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=a[e]=[t,r]});t.push(n[2]=r);var o=p.p+p.u(e),i=Error();p.l(o,function(t){if(p.o(a,e)&&(0!==(n=a[e])&&(a[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)}},u=function(e,t){var n,r,o=t[0],i=t[1],u=t[2],c=0;if(o.some(function(e){return 0!==a[e]})){for(n in i)p.o(i,n)&&(p.m[n]=i[n]);u&&u(p)}for(e&&e(t);c<o.length;c++)r=o[c],p.o(a,r)&&a[r]&&a[r][0](),a[r]=0},(c=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping_client_v2=self.webpackChunk_nocobase_plugin_workflow_json_variable_mapping_client_v2||[]).forEach(u.bind(null,0)),c.push=u.bind(null,c.push.bind(c));var g={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var a=window.location.pathname||"/",u=a.indexOf(i);e=u>=0?a.slice(0,u+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client-v2/"}p.p=e}(),!function(){p.r(g),p.d(g,{default:function(){return w}});var e=p(3485),t=p(9155),n=p.n(t),r=p(7375),o=p(197),i=p(9488);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return(u=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 l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var f=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function o(){var e,t,c;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return t=o,c=arguments,t=u(t),a(e=function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,l()?Reflect.construct(t,c||[],u(this).constructor):t.apply(this,c)),"title",(0,i.MZ)("JSON variable mapping")),a(e,"type","json-variable-mapping"),a(e,"group","control"),a(e,"description",(0,i.MZ)("Used for mapping any JSON data to structured variables for usage in subsequent nodes.")),a(e,"icon",n().createElement(r.SwapRightOutlined,null)),a(e,"FieldsetLoader",function(){return Promise.all([p.e("982"),p.e("297")]).then(p.bind(p,2056)).then(function(e){return{default:e.JSONVariableMappingFieldset}})}),e}return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&c(o,e),t=[{key:"createDefaultConfig",value:function(){return{parseArray:!1,variables:[]}}},{key:"useVariables",value:function(e,t){var n,r=e.key,o=e.title,i=e.config;return{value:r,label:o,children:(null!=(n=null==i?void 0:i.variables)?n:[]).map(function(e){return{isLeaf:!0,label:e.alias?e.alias:e.path,value:e.key,key:e.key}})}}}],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)}}(o.prototype,t),o}(o.Instruction);function s(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){n(e);return}u.done?t(c):Promise.resolve(c).then(r,o)}function b(e,t,n){return(b=h()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&d(o,n.prototype),o}).apply(null,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t="function"==typeof Map?new Map:void 0;return(y=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 b(e,arguments,v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var w=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=v(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,h()?Reflect.construct(e,t||[],v(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&d(n,e),t=[{key:"load",value:function(){var e;return(e=function(){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:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(a,"next",{value:c(0)}),u(a,"throw",{value:c(1)}),u(a,"return",{value:c(2)}),"function"==typeof Symbol&&u(a,Symbol.iterator,{value:function(){return this}}),a;function c(u){return function(c){var l=[u,c];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(e){return this.app.pm.get("workflow").registerInstruction("json-variable-mapping",f),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,u,"next",e)}function u(e){s(i,r,o,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}(y(e.Plugin))}(),g}()});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export declare const NAMESPACE = "workflow-json-variable-mapping";
|
|
10
|
+
export declare function tExpr(key: string, options?: Record<string, unknown>): string;
|
|
11
|
+
export declare function useT(): (key: string, options?: Record<string, unknown>) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { Application, Plugin } from '@nocobase/client-v2';
|
|
10
|
+
export declare class PluginWorkflowJsonVariableMappingClientV2 extends Plugin<Record<string, never>, Application> {
|
|
11
|
+
load(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export default PluginWorkflowJsonVariableMappingClientV2;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
export type JsonVariablePath = {
|
|
10
|
+
key: string;
|
|
11
|
+
path: string;
|
|
12
|
+
name: string;
|
|
13
|
+
paths: string[];
|
|
14
|
+
};
|
|
15
|
+
type ParseOptions = {
|
|
16
|
+
parseArray: boolean;
|
|
17
|
+
keys: string[];
|
|
18
|
+
key: string;
|
|
19
|
+
};
|
|
20
|
+
type KeyFactory = () => string;
|
|
21
|
+
export declare function getObjPaths(obj: Record<string, unknown> | unknown[], prefix?: string, paths?: JsonVariablePath[], options?: Omit<ParseOptions, 'key'> & {
|
|
22
|
+
key?: string;
|
|
23
|
+
}, keyFactory?: KeyFactory): JsonVariablePath[];
|
|
24
|
+
export declare function parseJsonVariables(value: unknown, parseArray: boolean, keyFactory?: KeyFactory): JsonVariablePath[];
|
|
25
|
+
export {};
|
package/dist/externalVersion.js
CHANGED
|
@@ -9,14 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"antd": "5.24.2",
|
|
13
|
-
"@ant-design/icons": "5.6.1",
|
|
14
|
-
"@nocobase/plugin-workflow": "2.2.0-beta.9",
|
|
15
12
|
"lodash": "4.18.1",
|
|
13
|
+
"antd": "5.24.2",
|
|
16
14
|
"@formily/shared": "2.3.7",
|
|
17
15
|
"@formily/core": "2.3.7",
|
|
18
16
|
"@formily/react": "2.3.7",
|
|
19
|
-
"@nocobase/client": "
|
|
17
|
+
"@nocobase/client": "3.0.0-alpha.1",
|
|
18
|
+
"@nocobase/plugin-workflow": "3.0.0-alpha.1",
|
|
19
|
+
"@ant-design/icons": "5.6.1",
|
|
20
|
+
"@nocobase/flow-engine": "3.0.0-alpha.1",
|
|
21
|
+
"@nocobase/client-v2": "3.0.0-alpha.1",
|
|
20
22
|
"react-i18next": "11.18.6",
|
|
21
|
-
"@nocobase/server": "
|
|
23
|
+
"@nocobase/server": "3.0.0-alpha.1"
|
|
22
24
|
};
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Alias": "Alias",
|
|
3
|
+
"Are you sure to clear below items?": "Are you sure to clear below items?",
|
|
3
4
|
"Clear below items": "Clear below items",
|
|
5
|
+
"Delete items": "Delete items",
|
|
4
6
|
"If the JSON object contains array items, parse them. eg: { \"arrayKey\": [ \"item1\", \"item2\" ] will be parsed as \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", if set to false, only \"arrayKey\" will be parsed.": "If the JSON object contains array items, parse them. eg: { \"arrayKey\": [ \"item1\", \"item2\" ] will be parsed as \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", if set to false, only \"arrayKey\" will be parsed.",
|
|
5
7
|
"Include array index in path": "Include array index in path",
|
|
6
8
|
"Input example": "Input example",
|
|
@@ -13,4 +15,4 @@
|
|
|
13
15
|
"Please update other node references to the key after clicking the parse button.": "Please update other node references to the key after clicking the parse button.",
|
|
14
16
|
"Transform a JSON object structure": "Transform a JSON object structure",
|
|
15
17
|
"Used for mapping any JSON data to structured variables for usage in subsequent nodes.": "Used for mapping any JSON data to structured variables for usage in subsequent nodes."
|
|
16
|
-
}
|
|
18
|
+
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Alias": "别名",
|
|
3
|
+
"Are you sure to clear below items?": "确定要清空下列选项吗?",
|
|
3
4
|
"Clear below items": "清空下列选项",
|
|
5
|
+
"Delete items": "删除选项",
|
|
4
6
|
"If the JSON object contains array items, parse them. eg: { \"arrayKey\": [ \"item1\", \"item2\" ] will be parsed as \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", if set to false, only \"arrayKey\" will be parsed.": "如果样例包含数组,例如: { \"arrayKey\": [ \"item1\", \"item2\" ], 则会解析成 \"arrayKey\", \"arrayKey.0\", \"arrayKey.1\", 如果不勾选,则只解析成 \"arrayKey\"。",
|
|
5
7
|
"Include array index in path": "包含数组索引",
|
|
6
8
|
"Input example": "输入样例",
|
|
@@ -13,4 +15,4 @@
|
|
|
13
15
|
"Please update other node references to the key after clicking the parse button.": "请在点击 parse 按钮后更新其它节点对 key 的引用",
|
|
14
16
|
"Transform a JSON object structure": "Transform a JSON object structure",
|
|
15
17
|
"Used for mapping any JSON data to structured variables for usage in subsequent nodes.": "用于将任意 JSON 数据映射为结构化的变量,以供后续节点使用。"
|
|
16
|
-
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-json-variable-mapping",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
4
4
|
"displayName": "Workflow: JSON variable mapping",
|
|
5
5
|
"displayName.zh-CN": "工作流:JSON 变量映射",
|
|
6
6
|
"description": "Used for mapping any JSON data to structured variables for usage in subsequent nodes.",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"@nocobase/client": "2.x",
|
|
11
|
+
"@nocobase/client-v2": "2.x",
|
|
11
12
|
"@nocobase/plugin-workflow": "2.x",
|
|
12
13
|
"@nocobase/plugin-workflow-test": "2.x",
|
|
13
14
|
"@nocobase/server": "2.x",
|
|
@@ -17,5 +18,5 @@
|
|
|
17
18
|
"Workflow"
|
|
18
19
|
],
|
|
19
20
|
"license": "Apache-2.0",
|
|
20
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "22d8be8ece179cfa5c8a4ebb2c896c92bd418e03"
|
|
21
22
|
}
|