@nocobase/plugin-action-duplicate 2.1.0-alpha.4 → 2.1.0-alpha.40
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/LICENSE +201 -661
- package/README.md +79 -10
- package/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client/locale/index.d.ts +2 -1
- package/dist/{client/models → client-v2}/DuplicateActionModel.d.ts +2 -2
- package/dist/client-v2/index.d.ts +14 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +9 -0
- package/dist/externalVersion.js +7 -6
- package/package.json +7 -3
- /package/dist/{client/models → client-v2}/utils.d.ts +0 -0
|
@@ -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("ahooks"),require("@nocobase/client-v2"),require("@formily/core"),require("react"),require("antd"),require("@formily/react"),require("@nocobase/flow-engine"),require("lodash")):"function"==typeof define&&define.amd?define("@nocobase/plugin-action-duplicate/client-v2",["ahooks","@nocobase/client-v2","@formily/core","react","antd","@formily/react","@nocobase/flow-engine","lodash"],t):"object"==typeof exports?exports["@nocobase/plugin-action-duplicate/client-v2"]=t(require("ahooks"),require("@nocobase/client-v2"),require("@formily/core"),require("react"),require("antd"),require("@formily/react"),require("@nocobase/flow-engine"),require("lodash")):e["@nocobase/plugin-action-duplicate/client-v2"]=t(e.ahooks,e["@nocobase/client-v2"],e["@formily/core"],e.react,e.antd,e["@formily/react"],e["@nocobase/flow-engine"],e.lodash)}(self,function(e,t,i,r,n,o,l,s){return function(){"use strict";var a={452:function(e){e.exports=i},230:function(e){e.exports=o},485:function(e){e.exports=t},694:function(e){e.exports=l},625:function(t){t.exports=e},59:function(e){e.exports=n},773:function(e){e.exports=s},155:function(e){e.exports=r}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return a[e](i,i.exports,u),i.exports}u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.g.importScripts&&(h=u.g.location+"");var h,d=u.g.document;if(!h&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(h=d.currentScript.src),!h)){var f=d.getElementsByTagName("script");if(f.length)for(var p=f.length-1;p>-1&&(!h||!/^http(s?):/.test(h));)h=f[p--].src}if(!h)throw Error("Automatic publicPath is not supported in this browser");u.p=h.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var y={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src&&(e=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")),!e){var i=window.__webpack_public_path__||"";i&&("/"!==i.charAt(i.length-1)&&(i+="/"),e=i+"static/plugins/@nocobase/plugin-action-duplicate/dist/client-v2/")}if(!e){if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var r=window.location.pathname||"/",n=r.indexOf("/v2/");e=n>=0?r.slice(0,n+1):"/"}e&&(e=e.replace(/\/v2\/?$/,"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@nocobase/plugin-action-duplicate/dist/client-v2/"}u.p=e}(),!function(){u.r(y),u.d(y,{default:function(){return ei},DuplicateActionModel:function(){return V},PluginActionDuplicateClient:function(){return et}});var e=u(485),t=u(694),i=u(452),r=u(230),n=u(625),o=u(59),l=u(773),s=u(155),a=u.n(s),c="action-duplicate",h={hasSubscribers:!1},d="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,f=new Set,p="object"==typeof process&&process?process:{},b=(Symbol("type"),e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e)),v=e=>b(e)?e<=256?Uint8Array:e<=65536?Uint16Array:e<=0x100000000?Uint32Array:e<=Number.MAX_SAFE_INTEGER?m:null:null,m=class extends Array{constructor(e){super(e),this.fill(0)}},g=class e{heap;length;static #e=!1;static create(t){let i=v(t);if(!i)return[];e.#e=!0;let r=new e(t,i);return e.#e=!1,r}constructor(t,i){if(!e.#e)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},S=class e{#e;#t;#i;#r;#n;#o;#l;#s;get perf(){return this.#s}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#c;#u;#h;#d;#f;#p;#y;#b;#v;#m;#g;#S;#w;#O;#x;#k;#_;#A;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#w,autopurgeTimers:e.#O,sizes:e.#g,keyMap:e.#u,keyList:e.#h,valList:e.#d,next:e.#f,prev:e.#p,get head(){return e.#y},get tail(){return e.#b},free:e.#v,isBackgroundFetch:t=>e.#E(t),backgroundFetch:(t,i,r,n)=>e.#F(t,i,r,n),moveToTail:t=>e.#M(t),indexes:t=>e.#D(t),rindexes:t=>e.#T(t),isStale:t=>e.#j(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#c}get size(){return this.#a}get fetchMethod(){return this.#o}get memoMethod(){return this.#l}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(t){let{max:i=0,ttl:r,ttlResolution:n=1,ttlAutopurge:o,updateAgeOnGet:l,updateAgeOnHas:s,allowStale:a,dispose:c,onInsert:u,disposeAfter:h,noDisposeOnSet:y,noUpdateTTL:m,maxSize:S=0,maxEntrySize:w=0,sizeCalculation:O,fetchMethod:x,memoMethod:k,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:F,ignoreFetchAbort:M,perf:D}=t;if(void 0!==D&&"function"!=typeof D?.now)throw TypeError("perf option must have a now() method if specified");if(this.#s=D??d,0!==i&&!b(i))throw TypeError("max option must be a nonnegative integer");let T=i?v(i):Array;if(!T)throw Error("invalid max value: "+i);if(this.#e=i,this.#t=S,this.maxEntrySize=w||this.#t,this.sizeCalculation=O,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==k&&"function"!=typeof k)throw TypeError("memoMethod must be a function if defined");if(this.#l=k,void 0!==x&&"function"!=typeof x)throw TypeError("fetchMethod must be a function if specified");if(this.#o=x,this.#k=!!x,this.#u=new Map,this.#h=Array.from({length:i}).fill(void 0),this.#d=Array.from({length:i}).fill(void 0),this.#f=new T(i),this.#p=new T(i),this.#y=0,this.#b=0,this.#v=g.create(i),this.#a=0,this.#c=0,"function"==typeof c&&(this.#i=c),"function"==typeof u&&(this.#r=u),"function"==typeof h?(this.#n=h,this.#m=[]):(this.#n=void 0,this.#m=void 0),this.#x=!!this.#i,this.#A=!!this.#r,this.#_=!!this.#n,this.noDisposeOnSet=!!y,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!_,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!F,this.ignoreFetchAbort=!!M,0!==this.maxEntrySize){if(0!==this.#t&&!b(this.#t))throw TypeError("maxSize must be a positive integer if specified");if(!b(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#C()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!s,this.ttlResolution=b(n)||0===n?n:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!b(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#P()}if(0===this.#e&&0===this.ttl&&0===this.#t)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t="LRU_CACHE_UNBOUNDED";(e=>!f.has(e))(t)&&(f.add(t),((e,t,i,r)=>{"function"==typeof p.emitWarning?p.emitWarning(e,t,i,r):console.error(`[${i}] ${t}: ${e}`)})("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,e))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#P(){let e=new m(this.#e),t=new m(this.#e);this.#w=e,this.#S=t;let i=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#O=i,this.#z=(i,n,o=this.#s.now())=>{t[i]=0!==n?o:0,e[i]=n,r(i,n)},this.#R=i=>{t[i]=0!==e[i]?this.#s.now():0,r(i,e[i])};let r=this.ttlAutopurge?(e,t)=>{if(i?.[e]&&(clearTimeout(i[e]),i[e]=void 0),t&&0!==t&&i){let r=setTimeout(()=>{this.#j(e)&&this.#I(this.#h[e],"expire")},t+1);r.unref&&r.unref(),i[e]=r}}:()=>{};this.#q=(i,r)=>{if(e[r]){let l=e[r],s=t[r];if(!l||!s)return;i.ttl=l,i.start=s,i.now=n||o();let a=i.now-s;i.remainingTTL=l-a}};let n=0,o=()=>{let e=this.#s.now();if(this.ttlResolution>0){n=e;let t=setTimeout(()=>n=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=i=>{let r=this.#u.get(i);if(void 0===r)return 0;let l=e[r],s=t[r];return l&&s?l-((n||o())-s):1/0},this.#j=i=>{let r=t[i],l=e[i];return!!l&&!!r&&(n||o())-r>l}}#R=()=>{};#q=()=>{};#z=()=>{};#j=()=>!1;#C(){let e=new m(this.#e);this.#c=0,this.#g=e,this.#L=t=>{this.#c-=e[t],e[t]=0},this.#W=(e,t,i,r)=>{if(this.#E(t))return 0;if(!b(i))if(r){if("function"!=typeof r)throw TypeError("sizeCalculation must be a function");if(!b(i=r(t,e)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#G=(t,i,r)=>{if(e[t]=i,this.#t){let i=this.#t-e[t];for(;this.#c>i;)this.#U(!0)}this.#c+=e[t],r&&(r.entrySize=i,r.totalCalculatedSize=this.#c)}}#L=e=>{};#G=(e,t,i)=>{};#W=(e,t,i,r)=>{if(i||r)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#D({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#b;this.#K(t)&&((e||!this.#j(t))&&(yield t),t!==this.#y);)t=this.#p[t]}*#T({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#y;this.#K(t)&&((e||!this.#j(t))&&(yield t),t!==this.#b);)t=this.#f[t]}#K(e){return void 0!==e&&this.#u.get(this.#h[e])===e}*entries(){for(let e of this.#D())void 0===this.#d[e]||void 0===this.#h[e]||this.#E(this.#d[e])||(yield[this.#h[e],this.#d[e]])}*rentries(){for(let e of this.#T())void 0===this.#d[e]||void 0===this.#h[e]||this.#E(this.#d[e])||(yield[this.#h[e],this.#d[e]])}*keys(){for(let e of this.#D()){let t=this.#h[e];void 0===t||this.#E(this.#d[e])||(yield t)}}*rkeys(){for(let e of this.#T()){let t=this.#h[e];void 0===t||this.#E(this.#d[e])||(yield t)}}*values(){for(let e of this.#D())void 0===this.#d[e]||this.#E(this.#d[e])||(yield this.#d[e])}*rvalues(){for(let e of this.#T())void 0===this.#d[e]||this.#E(this.#d[e])||(yield this.#d[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#D()){let r=this.#d[i],n=this.#E(r)?r.__staleWhileFetching:r;if(void 0!==n&&e(n,this.#h[i],this))return this.#B(this.#h[i],t)}}forEach(e,t=this){for(let i of this.#D()){let r=this.#d[i],n=this.#E(r)?r.__staleWhileFetching:r;void 0!==n&&e.call(t,n,this.#h[i],this)}}rforEach(e,t=this){for(let i of this.#T()){let r=this.#d[i],n=this.#E(r)?r.__staleWhileFetching:r;void 0!==n&&e.call(t,n,this.#h[i],this)}}purgeStale(){let e=!1;for(let t of this.#T({allowStale:!0}))this.#j(t)&&(this.#I(this.#h[t],"expire"),e=!0);return e}info(e){let t=this.#u.get(e);if(void 0===t)return;let i=this.#d[t],r=this.#E(i)?i.__staleWhileFetching:i;if(void 0===r)return;let n={value:r};if(this.#w&&this.#S){let e=this.#w[t],i=this.#S[t];e&&i&&(n.ttl=e-(this.#s.now()-i),n.start=Date.now())}return this.#g&&(n.size=this.#g[t]),n}dump(){let e=[];for(let t of this.#D({allowStale:!0})){let i=this.#h[t],r=this.#d[t],n=this.#E(r)?r.__staleWhileFetching:r;if(void 0===n||void 0===i)continue;let o={value:n};if(this.#w&&this.#S){o.ttl=this.#w[t];let e=this.#s.now()-this.#S[t];o.start=Math.floor(Date.now()-e)}this.#g&&(o.size=this.#g[t]),e.unshift([i,o])}return e}load(e){for(let[t,i]of(this.clear(),e)){if(i.start){let e=Date.now()-i.start;i.start=this.#s.now()-e}this.#$(t,i.value,i)}}set(e,t,i={}){let{status:r=h.hasSubscribers?{}:void 0}=i;i.status=r,r&&(r.op="set",r.key=e,void 0!==t&&(r.value=t));let n=this.#$(e,t,i);return r&&h.hasSubscribers&&h.publish(r),n}#$(e,t,i={}){let{ttl:r=this.ttl,start:n,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:s}=i;if(void 0===t)return s&&(s.set="deleted"),this.delete(e),this;let{noUpdateTTL:a=this.noUpdateTTL}=i;s&&!this.#E(t)&&(s.value=t);let c=this.#W(e,t,i.size||0,l,s);if(this.maxEntrySize&&c>this.maxEntrySize)return this.#I(e,"set"),s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this;let u=0===this.#a?void 0:this.#u.get(e);if(void 0===u)u=0===this.#a?this.#b:0!==this.#v.length?this.#v.pop():this.#a===this.#e?this.#U(!1):this.#a,this.#h[u]=e,this.#d[u]=t,this.#u.set(e,u),this.#f[this.#b]=u,this.#p[u]=this.#b,this.#b=u,this.#a++,this.#G(u,c,s),s&&(s.set="add"),a=!1,this.#A&&this.#r?.(t,e,"add");else{this.#M(u);let i=this.#d[u];if(t!==i){if(this.#k&&this.#E(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:t}=i;void 0!==t&&!o&&(this.#x&&this.#i?.(t,e,"set"),this.#_&&this.#m?.push([t,e,"set"]))}else o||(this.#x&&this.#i?.(i,e,"set"),this.#_&&this.#m?.push([i,e,"set"]));if(this.#L(u),this.#G(u,c,s),this.#d[u]=t,s){s.set="replace";let e=i&&this.#E(i)?i.__staleWhileFetching:i;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update");this.#A&&this.onInsert?.(t,e,t===i?"update":"replace")}if(0===r||this.#w||this.#P(),this.#w&&(a||this.#z(u,r,n),s&&this.#q(s,u)),!o&&this.#_&&this.#m){let e=this.#m,t;for(;t=e?.shift();)this.#n?.(...t)}return this}pop(){try{for(;this.#a;){let e=this.#d[this.#y];if(this.#U(!0),this.#E(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#_&&this.#m){let e=this.#m,t;for(;t=e?.shift();)this.#n?.(...t)}}}#U(e){let t=this.#y,i=this.#h[t],r=this.#d[t];return this.#k&&this.#E(r)?r.__abortController.abort(Error("evicted")):(this.#x||this.#_)&&(this.#x&&this.#i?.(r,i,"evict"),this.#_&&this.#m?.push([r,i,"evict"])),this.#L(t),this.#O?.[t]&&(clearTimeout(this.#O[t]),this.#O[t]=void 0),e&&(this.#h[t]=void 0,this.#d[t]=void 0,this.#v.push(t)),1===this.#a?(this.#y=this.#b=0,this.#v.length=0):this.#y=this.#f[t],this.#u.delete(i),this.#a--,t}has(e,t={}){let{status:i=h.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="has",i.key=e);let r=this.#N(e,t);return h.hasSubscribers&&h.publish(i),r}#N(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:r}=t,n=this.#u.get(e);if(void 0!==n){let e=this.#d[n];if(this.#E(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#j(n))return i&&this.#R(n),r&&(r.has="hit",this.#q(r,n)),!0;r&&(r.has="stale",this.#q(r,n))}else r&&(r.has="miss");return!1}peek(e,t={}){let{status:i=h.hasSubscribers||h.hasSubscribers?{}:void 0}=t;i&&(i.op="peek",i.key=e),t.status=i;let r=this.#V(e,t);return h.hasSubscribers&&h.publish(i),r}#V(e,t){let{status:i,allowStale:r=this.allowStale}=t,n=this.#u.get(e);if(void 0===n||!r&&this.#j(n)){i&&(i.peek=void 0===n?"miss":"stale");return}let o=this.#d[n],l=this.#E(o)?o.__staleWhileFetching:o;return i&&(void 0!==l?(i.peek="hit",i.value=l):i.peek="miss"),l}#F(e,t,i,r){let n=void 0===t?void 0:this.#d[t];if(this.#E(n))return n;let o=new AbortController,{signal:l}=i;l?.addEventListener("abort",()=>o.abort(l.reason),{signal:o.signal});let s={signal:o.signal,options:i,context:r},a=(r,n=!1)=>{let{aborted:l}=o.signal,a=i.ignoreFetchAbort&&void 0!==r,u=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&void 0!==r);if(i.status&&(l&&!n?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),l&&!a&&!n)return c(o.signal.reason,u);let d=this.#d[t];return(d===h||void 0===d&&a&&n)&&(void 0===r?void 0!==h.__staleWhileFetching?this.#d[t]=h.__staleWhileFetching:this.#I(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.#$(e,r,s.options))),r},c=(r,n)=>{let{aborted:l}=o.signal,s=l&&i.allowStaleOnFetchAbort,a=s||i.allowStaleOnFetchRejection,c=a||i.noDeleteOnFetchRejection;if(this.#d[t]===h&&(c&&(n||void 0!==h.__staleWhileFetching)?s||(this.#d[t]=h.__staleWhileFetching):this.#I(e,"fetch")),a)return i.status&&void 0!==h.__staleWhileFetching&&(i.status.returnedStale=!0),h.__staleWhileFetching;if(h.__returned===h)throw r},u=(t,r)=>{let l=this.#o?.(e,n,s);l&&l instanceof Promise&&l.then(e=>t(void 0===e?void 0:e),r),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(t(void 0),i.allowStaleOnFetchAbort&&(t=e=>a(e,!0)))})};i.status&&(i.status.fetchDispatched=!0);let h=new Promise(u).then(a,e=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=e),c(e,!1))),d=Object.assign(h,{__abortController:o,__staleWhileFetching:n,__returned:void 0});return void 0===t?(this.#$(e,d,{...s.options,status:void 0}),t=this.#u.get(e)):this.#d[t]=d,d}#E(e){return!!this.#k&&!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof AbortController}fetch(e,t={}){let i=h.hasSubscribers,{status:r=h.hasSubscribers||h.hasSubscribers?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let n=this.#H(e,t);return r&&(h.hasSubscribers||h.hasSubscribers)&&i&&(r.trace=!0,h.tracePromise(()=>n,r).catch(()=>{})),n}async #H(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:s=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:y=!1,status:b,signal:v}=t;if(b&&(b.op="fetch",b.key=e,y&&(b.forceRefresh=!0)),!this.#k)return b&&(b.fetch="get"),this.#B(e,{allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:b});let m={allowStale:i,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:o,noDisposeOnSet:l,size:s,sizeCalculation:a,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:f,ignoreFetchAbort:d,status:b,signal:v},g=this.#u.get(e);if(void 0===g){b&&(b.fetch="miss");let t=this.#F(e,g,m,p);return t.__returned=t}{let t=this.#d[g];if(this.#E(t)){let e=i&&void 0!==t.__staleWhileFetching;return b&&(b.fetch="inflight",e&&(b.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let n=this.#j(g);if(!y&&!n)return b&&(b.fetch="hit"),this.#M(g),r&&this.#R(g),b&&this.#q(b,g),t;let o=this.#F(e,g,m,p),l=void 0!==o.__staleWhileFetching&&i;return b&&(b.fetch=n?"stale":"refresh",l&&n&&(b.returnedStale=!0)),l?o.__staleWhileFetching:o.__returned=o}}forceFetch(e,t={}){let i=h.hasSubscribers,{status:r=h.hasSubscribers||h.hasSubscribers?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let n=this.#J(e,t);return r&&(h.hasSubscribers||h.hasSubscribers)&&i&&(r.trace=!0,h.tracePromise(()=>n,r).catch(()=>{})),n}async #J(e,t={}){let i=await this.#H(e,t);if(void 0===i)throw Error("fetch() returned undefined");return i}memo(e,t={}){let{status:i=h.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="memo",i.key=e,t.context&&(i.context=t.context));let r=this.#X(e,t);return i&&(i.value=r),h.hasSubscribers&&h.publish(i),r}#X(e,t={}){let i=this.#l;if(!i)throw Error("no memoMethod provided to constructor");let{context:r,status:n,forceRefresh:o,...l}=t;n&&o&&(n.forceRefresh=!0);let s=this.#B(e,l),a=o||void 0===s;if(n&&(n.memo=a?"miss":"hit",a||(n.value=s)),!a)return s;let c=i(e,s,{options:l,context:r});return n&&(n.value=c),this.#$(e,c,l),c}get(e,t={}){let{status:i=h.hasSubscribers?{}:void 0}=t;t.status=i,i&&(i.op="get",i.key=e);let r=this.#B(e,t);return i&&(void 0!==r&&(i.value=r),h.hasSubscribers&&h.publish(i)),r}#B(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:o}=t,l=this.#u.get(e);if(void 0===l){o&&(o.get="miss");return}let s=this.#d[l],a=this.#E(s);return o&&this.#q(o,l),this.#j(l)?a?(o&&(o.get="stale-fetching"),i&&void 0!==s.__staleWhileFetching?(o&&(o.returnedStale=!0),s.__staleWhileFetching):void 0):(n||this.#I(e,"expire"),o&&(o.get="stale"),i?(o&&(o.returnedStale=!0),s):void 0):(o&&(o.get=a?"fetching":"hit"),this.#M(l),r&&this.#R(l),a?s.__staleWhileFetching:s)}#Q(e,t){this.#p[t]=e,this.#f[e]=t}#M(e){e!==this.#b&&(e===this.#y?this.#y=this.#f[e]:this.#Q(this.#p[e],this.#f[e]),this.#Q(this.#b,e),this.#b=e)}delete(e){return this.#I(e,"delete")}#I(e,t){h.hasSubscribers&&h.publish({op:"delete",delete:t,key:e});let i=!1;if(0!==this.#a){let r=this.#u.get(e);if(void 0!==r)if(this.#O?.[r]&&(clearTimeout(this.#O?.[r]),this.#O[r]=void 0),i=!0,1===this.#a)this.#Y(t);else{this.#L(r);let i=this.#d[r];if(this.#E(i)?i.__abortController.abort(Error("deleted")):(this.#x||this.#_)&&(this.#x&&this.#i?.(i,e,t),this.#_&&this.#m?.push([i,e,t])),this.#u.delete(e),this.#h[r]=void 0,this.#d[r]=void 0,r===this.#b)this.#b=this.#p[r];else if(r===this.#y)this.#y=this.#f[r];else{let e=this.#p[r];this.#f[e]=this.#f[r];let t=this.#f[r];this.#p[t]=this.#p[r]}this.#a--,this.#v.push(r)}}if(this.#_&&this.#m?.length){let e=this.#m,t;for(;t=e?.shift();)this.#n?.(...t)}return i}clear(){return this.#Y("delete")}#Y(e){for(let t of this.#T({allowStale:!0})){let i=this.#d[t];if(this.#E(i))i.__abortController.abort(Error("deleted"));else{let r=this.#h[t];this.#x&&this.#i?.(i,r,e),this.#_&&this.#m?.push([i,r,e])}}if(this.#u.clear(),this.#d.fill(void 0),this.#h.fill(void 0),this.#w&&this.#S){for(let e of(this.#w.fill(0),this.#S.fill(0),this.#O??[]))void 0!==e&&clearTimeout(e);this.#O?.fill(void 0)}if(this.#g&&this.#g.fill(0),this.#y=0,this.#b=0,this.#v.length=0,this.#c=0,this.#a=0,this.#_&&this.#m){let e=this.#m,t;for(;t=e?.shift();)this.#n?.(...t)}}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function O(e,t,i,r,n,o,l){try{var s=e[o](l),a=s.value}catch(e){i(e);return}s.done?t(a):Promise.resolve(a).then(r,n)}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){var r;r=i[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function k(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}function _(e){return function(e){if(Array.isArray(e))return w(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 w(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return w(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.")}()}var A=function(e){var t=e.tag,i=e.type,r=e.displayType;return a().createElement("div",null,a().createElement(o.Tag,{color:{reference:"blue",duplicate:"green",preloading:"cyan"}[i]},a().createElement("span",null,t)," ",void 0===r||r?"(".concat({reference:"Reference",duplicate:"Duplicate",preloading:"Preloading"}[i],")"):""))},E=["sort","createdById","createdBy","createdAt","updatedById","updatedBy","updatedAt","password","sequence"];function F(e){var t=e.node,i=e.traverseAssociations,r=e.traverseFields,n=e.systemKeys,o=e.dataSource,l=e.setDataSource,s=function(e,t){for(var i=_(e);i.length;){var r=i.shift();if(r.key===t.key)return r;r.children&&i.push.apply(i,_(r.children))}}(o,t),a=[];return["belongsTo","belongsToMany"].includes(t.field.type)&&(null==t?void 0:t.type)==="reference"?a=i(t.field.target,{exclude:n,prefix:t.key,maxDepth:1}):(["hasOne","hasMany"].includes(t.field.type)||(null==t?void 0:t.type)==="duplicate")&&(a=r(t.field.target,{exclude:["id"].concat(_(n.filter(function(e){return"sort"!==e}))),prefix:t.key,maxDepth:1})),a.length?s.children=a:s.isLeaf=!0,l(_(o)),a}var M=function(e,t,i){arguments.length>3&&void 0!==arguments[3]&&arguments[3];var r=function(o,l){var s=l.exclude,c=void 0===s?[]:s,u=l.depth,h=void 0===u?0:u,d=l.maxDepth,f=l.prefix,p=void 0===f?"":f;return h>d?[]:_(e.getCollection(i,o).fields.values()).map(function(e){if(!c.includes(e.name)&&e.interface&&!(0===h&&["sort","password","sequence"].includes(e.type))){var i,o={type:"duplicate",tag:t(null==(i=e.uiSchema)?void 0:i.title)||e.name},l=k(x({},o),{role:"button",title:a().createElement(A,k(x({},o),{displayType:!0})),key:p?"".concat(p,".").concat(e.name):e.name,isLeaf:!0,field:e});return["belongsTo","belongsToMany"].includes(e.type)?(o.type="reference",l.type="reference",l.title=a().createElement(A,k(x({},o),{type:"reference",displayType:!0})),l.isLeaf=!1,l.children=n(e.target,{depth:h+1,maxDepth:d,prefix:l.key,exclude:E})):["hasOne","hasMany"].includes(e.type)&&(l.isLeaf=!1,l.children=r(e.target,{depth:h+1,maxDepth:d,prefix:l.key,exclude:["id"].concat(_(E.filter(function(e){return"sort"!==e})))})),l}}).filter(Boolean)},n=function(r,o){var l,s=o.prefix,c=o.maxDepth,u=o.depth,h=void 0===u?0:u,d=o.exclude,f=void 0===d?[]:d;return h>c||!e.getCollection(i,r)?[]:_((null==(l=e.getCollection(i,r))?void 0:l.fields.values())||[]).map(function(e){if(e.target&&e.interface&&!f.includes(e.name)){var i,r={type:"preloading",tag:t(null==(i=e.uiSchema)?void 0:i.title)||e.name},o=s?"".concat(s,".").concat(e.name):e.name;return{role:"button",title:a().createElement(A,k(x({},r),{displayType:!0})),key:o,isLeaf:!1,field:e,children:n(e.target,{prefix:o,depth:h+1,maxDepth:c,exclude:f})}}}).filter(Boolean)};return{getEnableFieldTree:function(e){try{return r(e,{exclude:["id"].concat(_(E)),maxDepth:1})}catch(e){return console.error(e),[]}},getOnLoadData:function(e,t){return function(i){return new Promise(function(o){if(i.children.length)return i.children.forEach(function(i){F({node:i,traverseAssociations:n,traverseFields:r,systemKeys:E,dataSource:e,setDataSource:t})}),o(void 0);F({node:i,traverseAssociations:n,traverseFields:r,systemKeys:E,dataSource:e,setDataSource:t}),o(void 0)})}},getOnCheck:function(e){return function(t){e.value=t}}}},D=function(e,t,i,r,n){var o,l=(o=new S({max:50}),function(r,n,c){var u=n.exclude,h=void 0===u?[]:u,d=n.depth,f=void 0===d?0:d,p=n.maxDepth,y=n.prefix,b=void 0===y?"":y,v=n.disabled,m=void 0!==v&&v;if(f>p)return[];var g=Array.isArray(c)?c:[],S=(e.getCollection(i,r)?_(e.getCollection(i,r).fields.values()):[]).map(function(e){if(!h.includes(e.name)&&e.interface&&!["sort","password","sequence"].includes(e.type)){var i,r={type:"duplicate",tag:t(null==(i=e.uiSchema)?void 0:i.title)||e.name},n=k(x({},r),{title:a().createElement(A,r),key:b?"".concat(b,".").concat(e.name):e.name,isLeaf:!0,field:e,disabled:m}),o=g.find(function(e){return(null==e?void 0:e.name)===n.key});if(!["belongsTo","belongsToMany"].includes(e.type)||o&&(null==o?void 0:o.updateAssociation)){if(["hasOne","hasMany"].includes(e.type)||(null==o?void 0:o.updateAssociation)){var c=!1;!["hasOne","hasMany"].includes(e.type)||(null==o?void 0:o.updateAssociation)||(c=!0),n.disabled=!0,n.isLeaf=!1,n.children=l(e.target,{depth:f+1,maxDepth:p,prefix:n.key,exclude:["id"].concat(_(E.filter(function(e){return"sort"!==e}))),disabled:c},g)}}else r.type="reference",n.type="reference",n.title=a().createElement(A,k(x({},r),{type:"reference"})),n.isLeaf=!1,n.children=s(e.target,{depth:f+1,maxDepth:p,prefix:n.key,exclude:E});return n}}).filter(Boolean);return o.set(r+JSON.stringify(g),S),S}),s=function(r,n){var o,l=n.prefix,c=n.maxDepth,u=n.depth,h=void 0===u?0:u,d=n.exclude,f=void 0===d?[]:d;return h>c||!e.getCollection(i,r)?[]:_((null==(o=e.getCollection(i,r))?void 0:o.fields.values())||[]).map(function(e){if(e.target&&e.interface&&!f.includes(e.name)){var i,r={type:"preloading",tag:t(null==(i=e.uiSchema)?void 0:i.title)||e.name},n=l?"".concat(l,".").concat(e.name):e.name;return{title:a().createElement(A,r),key:n,disabled:!0,isLeaf:!1,field:e,children:s(e.target,{prefix:n,depth:h+1,maxDepth:c,exclude:f})}}}).filter(Boolean)};return{run:function(e){var t;return(t=function(){var t,i,o,s;return function(e,t){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(l,"next",{value:a(0)}),s(l,"throw",{value:a(1)}),s(l,"return",{value:a(2)}),"function"==typeof Symbol&&s(l,Symbol.iterator,{value:function(){return this}}),l;function a(s){return function(a){var c=[s,a];if(i)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(a){return(null==e?void 0:e.mapSubModels)?(t=new Set,i=new Set,(o=function(e,r){var n;null==e||null==(n=e.mapSubModels)||n.call(e,r,function(e){var r,n,l;e.collectionField&&!(["hasOne","hasMany"].includes(e.collectionField.type)||(null==(r=e.subModels.field)?void 0:r.updateAssociation))&&i.add(e.fieldPath),e.collectionField&&e.collectionField.isAssociationField()&&(t.add({name:e.fieldPath,updateAssociation:null==(n=e.subModels.field)?void 0:n.updateAssociation}),(null==(l=e.subModels.field)?void 0:l.updateAssociation)&&(e.subModels.field.subModels.grid?o(e.subModels.field.subModels.grid,"items"):e.subModels.field.subModels.subTableColumns?o(e.subModels.field,"subTableColumns"):e.subModels.field.subModels.columns&&o(e.subModels.field,"columns")))})})(e,"items"),s=l(r,{exclude:["id"].concat(_(E)),maxDepth:1},_(t)),null==n||n(s,_(i))):null==n||n([],[]),[2]})},function(){var e=this,i=arguments;return new Promise(function(r,n){var o=t.apply(e,i);function l(e){O(o,r,n,l,s,"next",e)}function s(e){O(o,r,n,l,s,"throw",e)}l(void 0)})})()}}};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function j(e,t,i,r,n,o,l){try{var s=e[o](l),a=s.value}catch(e){i(e);return}s.done?t(a):Promise.resolve(a).then(r,n)}function C(e){return function(){var t=this,i=arguments;return new Promise(function(r,n){var o=e.apply(t,i);function l(e){j(o,r,n,l,s,"next",e)}function s(e){j(o,r,n,l,s,"throw",e)}l(void 0)})}}function P(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){P(e,t,i[t])})}return e}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t.push.apply(t,i)}return t})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],l=!0,s=!1;try{for(n=n.call(e);!(l=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||G(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(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,t){if(e){if("string"==typeof e)return T(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return T(e,t)}}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(U=function(){return!!e})()}function K(e,t){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(l,"next",{value:a(0)}),s(l,"throw",{value:a(1)}),s(l,"return",{value:a(2)}),"function"==typeof Symbol&&s(l,Symbol.iterator,{value:function(){return this}}),l;function a(s){return function(a){var c=[s,a];if(i)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var B=(0,r.connect)(o.Tree,(0,r.mapProps)(function(e,t){var i=e.loadData;(0,s.useEffect)(function(){t.value=e.defaultCheckedKeys||[]},[]);var n=L((0,s.useState)((null==e?void 0:e.treeData)||[]),2),o=n[0],l=n[1],a=L((0,s.useState)(e.defaultCheckedKeys||[]),2),c=a[0],u=a[1],h=function(e){u(e),t.value=e};t.onCheck=h;var d=(0,r.useForm)();return(0,s.useEffect)(function(){var i=e.getEnableFieldTree(d.values.collection);l(i),t.dataSource=i},[d.values.collection]),(0,s.useEffect)(function(){l(t.dataSource)},[t.dataSource]),I(R({},e),{checkedKeys:c,onCheck:h,loadData:i(o,l),treeData:o.map(function(e){if("quickDulicate"===d.values.duplicateMode){var t,i=null==e||null==(t=e.children)?void 0:t.map(function(e){return I(R({},e),{disabled:!1})});return I(R({},e),{disabled:!1,children:i})}return e})})}));function $(i){var r=i.options,o=(0,t.useFlowViewContext)(),l=(0,n.useRequest)(function(){return C(function(){var e;return K(this,function(t){switch(t.label){case 0:return[4,o.engine.loadOrCreateModel(r,{delegateToParent:!1,delegate:o,skipSave:!o.flowSettingsEnabled})];case 1:return e=t.sent(),(null==r?void 0:r.scene)&&(e.actionName=r.scene),[2,e]}})})()},{refreshDeps:[o,r]}),s=l.data;return!l.loading&&(null==s?void 0:s.uid)?a().createElement(t.FlowModelRenderer,{model:s,fallback:a().createElement(e.SkeletonFallback,{style:{margin:16}})}):a().createElement(e.SkeletonFallback,{style:{margin:16}})}function N(e){var i=e.model,r=e.scene,n=(0,t.useFlowContext)(),o=n.view,l=o.Header,s=o.type;i._closeView=n.view.close;var c=n.t("Duplicate record");return a().createElement("div",null,a().createElement(l,{title:"dialog"===s?a().createElement("div",{style:{padding:"".concat(n.themeToken.paddingLG,"px ").concat(n.themeToken.paddingLG,"px 0"),marginBottom:-n.themeToken.marginSM,backgroundColor:"var(--colorBgLayout)"}},c):c}),a().createElement($,{options:{parentId:n.view.inputArgs.parentId,subKey:"deplicate.edit-form-grid-block",async:!0,delegateToParent:!1,subType:"object",use:"BlockGridModel",scene:void 0===r?"create":r}}))}var V=function(e){var i;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,i,n;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return i=r,n=arguments,i=z(i),P(e=function(e,t){var i;if(t&&("object"==((i=t)&&"u">typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,U()?Reflect.construct(i,n||[],z(this).constructor):i.apply(this,n)),"duplicateLoading",!1),P(e,"defaultProps",{type:"link",title:(0,t.tExpr)("Duplicate"),duplicateFields:[]}),e}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&q(r,e),i=[{key:"getAclActionName",value:function(){return"create"}},{key:"onClick",value:function(e){"quickDulicate"===this.props.duplicateMode?this.dispatchEvent("quickCreateClick",R({event:e},this.getInputArgs()),{debounce:!0}):this.dispatchEvent("openDuplicatePopup",R({event:e},this.getInputArgs()),{debounce:!0})}},{key:"getTitle",value:function(){return this.duplicateLoading?this.context.t("Duplicating"):this.props.title||this.context.t("Duplicate")}}],function(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,i),r}(e.ActionModel);function H(e,t){return C(function(){var i,r;return K(this,function(n){switch(n.label){case 0:if(!(null==t?void 0:t.dataId)||(null==(i=t.fields)?void 0:i.length)===0)return[2];return[4,e.runAction("get",{params:{filterByTk:t.dataId,fields:t.fields,isTemplate:!0}})];case 1:return[2,null==(r=n.sent())?void 0:r.data]}})})()}function J(e,t,i,r,n,o,l){try{var s=e[o](l),a=s.value}catch(e){i(e);return}s.done?t(a):Promise.resolve(a).then(r,n)}function X(e,t,i){return(X=ee()?Reflect.construct:function(e,t,i){var r=[null];r.push.apply(r,t);var n=new(Function.bind.apply(e,r));return i&&Y(n,i.prototype),n}).apply(null,arguments)}P(V,"scene",e.ActionSceneEnum.record),V.define({label:(0,t.tExpr)("Duplicate"),sort:60}),V.registerFlow({key:"duplicateModeSettings",steps:{duplicateMode:{title:(0,t.tExpr)("Duplicate mode",{ns:c}),uiSchema:function(e){var t,n,o,s=e.t,c=(e.dataSourceManager.getDataSource("main").collectionManager.getAllCollectionsInheritChain(e.blockModel.collection.name)||[]).map(function(t){var i;return{label:null==(i=e.dataSourceManager.getDataSource("main").collectionManager.getCollection(t))?void 0:i.title,value:t}}),u=(0,l.cloneDeep)((null==(t=e.model.props)?void 0:t.duplicateFields)||[]),h=function(e,t){for(var i=0;i<(null==e?void 0:e.length);i++){var r=e[i],n=r.children,o=function(e,t){if(null==e)return{};var i,r,n,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(n=0,i=Reflect.ownKeys(Object(e));n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}if(o=function(e,t){if(null==e)return{};var i,r,n={},o=Object.getOwnPropertyNames(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}(e,t),Object.getOwnPropertySymbols)for(n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(r,["children"]);t.push(o.key),n&&h(n,t)}return t},d=M(e.dataSourceManager,s,e.blockModel.collection.dataSourceKey),f=d.getEnableFieldTree,p=d.getOnLoadData,y=d.getOnCheck;return e.model.flowEngine.flowSettings.registerScopes({collectionName:(null==(n=e.record)?void 0:n.__collection)||e.blockModel.collection.name,currentCollection:(null==(o=e.record)?void 0:o.__collection)||e.blockModel.collection.name,getOnLoadData:p,getOnCheck:y,treeData:[],duplicateValues:u,onFieldInputValueChange:i.onFieldInputValueChange}),{duplicateMode:{"x-decorator":"FormItem","x-component":"Radio.Group",enum:[{value:"quickDulicate",label:'{{t("Direct duplicate")}}'},{value:"continueduplicate",label:'{{t("Copy into the form and continue to fill in")}}'}]},collection:{type:"string",title:'{{ t("Target collection") }}',required:!0,description:s("If collection inherits, choose inherited collections as templates"),"x-display":c.length>1?"visible":"hidden","x-decorator":"FormItem","x-component":"Select","x-component-props":{options:c},"x-reactions":[{dependencies:[".duplicateMode"],fulfill:{state:{disabled:'{{ $deps[0]==="quickDulicate" }}',value:'{{ $deps[0]==="quickDulicate"? currentCollection:collectionName }}'}}},function(t){if("quickDulicate"===t.form.values.duplicateMode){var i;t.form.setValuesIn("collection",(null==(i=e.record)?void 0:i.__collection)||e.blockModel.collection.name)}}]},syncFromForm:{type:"void",title:'{{ t("Sync from form fields") }}',"x-component":function(){var t,i,n,o,l=null==(i=(n=e.model).getStepParams)||null==(t=i.call(n,"popupSettings","openView"))?void 0:t.uid,c=(0,r.useForm)(),u=D(e.dataSourceManager,e.t,e.blockModel.collection.dataSourceKey,(null==(o=e.record)?void 0:o.__collection)||e.blockModel.collection.name,function(t,i){c.query("duplicateFields").take(function(r){r.dataSource=t,r.componentProps.defaultCheckedKeys=i,r.setInitialValue(i),null==r||r.onCheck(i),e.message.success(s("Sync successfully"))})}).run;return a().createElement("a",{onClick:function(){return C(function(){var t,i,r;return K(this,function(n){switch(n.label){case 0:if(!l)return[3,3];return[4,e.engine.loadModel({parentId:l,refresh:!0})];case 1:return t=n.sent(),[4,e.engine.loadModel({parentId:t.subModels.tabs[0].uid})];case 2:if(!(i=n.sent()))return[2];return u(i.subModels.items[0].subModels.grid),[3,5];case 3:return[4,e.engine.loadModel({parentId:e.model.uid,refresh:!0})];case 4:if(!(r=n.sent()))return[2];u(r.subModels.items[0].subModels.grid),n.label=5;case 5:return[2]}})})()},style:{float:"right",position:"relative",zIndex:1200}},s("Sync from form fields"))},"x-reactions":[{dependencies:[".duplicateMode"],fulfill:{state:{visible:'{{ $deps[0]!=="quickDulicate" }}'}}}]},selectAll:{type:"void",title:'{{ t("Select all") }}',"x-component":function(){var e=(0,r.useForm)();return a().createElement("a",{onClick:function(){e.query("duplicateFields").take(function(e){var t,i=h(e.dataSource,[]);e.componentProps.defaultCheckedKeys=i,e.setInitialValue(i),null==e||null==(t=e.onCheck)||t.call(e,i)})},style:{float:"right",position:"relative",zIndex:1200}},s("Select all"))},"x-reactions":[{dependencies:[".duplicateMode"],fulfill:{state:{visible:'{{ $deps[0]==="quickDulicate"}}'}}}]},unselectAll:{type:"void",title:'{{ t("UnSelect all") }}',"x-component":function(){var e=(0,r.useForm)();return a().createElement("a",{style:{float:"right",position:"relative",zIndex:1200,marginRight:"10px"},onClick:function(){e.query("duplicateFields").take(function(e){e.componentProps.defaultCheckedKeys=[],e.setInitialValue([]),null==e||e.onCheck([])})}},s("UnSelect all"))},"x-reactions":[{dependencies:[".duplicateMode",".duplicateFields"],fulfill:{state:{visible:"{{ $deps[0]===\"quickDulicate\"&&$form.getValuesIn('duplicateFields').length>0 }}"}}}]},duplicateFields:{type:"array",title:'{{ t("Data fields") }}',required:!0,description:s("Only the selected fields will be used as the initialization data for the form"),"x-decorator":"FormItem","x-component":B,"x-component-props":{defaultCheckedKeys:u,treeData:[],checkable:!0,checkStrictly:!0,selectable:!1,loadData:p,onCheck:"{{ getOnCheck($self) }}",getEnableFieldTree:f,rootStyle:{padding:"8px 0",border:"1px solid #d9d9d9",borderRadius:"2px",maxHeight:"30vh",overflow:"auto",margin:"2px 0"}},"x-reactions":[{dependencies:[".collection"],fulfill:{state:{disabled:"{{ !$deps[0] }}"}}}]}}},defaultParams:function(e){var t;return{duplicateMode:"quickDulicate",collection:(null==(t=e.record)?void 0:t.__collection)||e.blockModel.collection.name}},handler:function(e,t){return C(function(){var i,r,n,o,l;return K(this,function(s){return i=t.duplicateMode,r=t.duplicateFields,n=t.collection,o=t.treeData,l=Array.isArray(r)?r:(null==r?void 0:r.checked)||[],e.model.setProps({duplicateMode:i,duplicateFields:l,duplicateCollection:n,treeData:o}),[2]})})()}}}}),V.registerFlow({key:"duplicateSettings",title:(0,t.tExpr)("Duplicate mode settings"),on:"quickCreateClick",steps:{confirm:{use:"confirm",hideInSettings:function(e){var t,i,r;return"quickDulicate"!==(null==(i=(r=e.model).getStepParams)||null==(t=i.call(r,"duplicateModeSettings","duplicateMode"))?void 0:t.duplicateMode)},defaultParams:{enable:!1,title:(0,t.tExpr)("Duplicate record"),content:(0,t.tExpr)("Are you sure you want to duplicate it?")}},duplicate:{handler:function(e,i){return C(function(){var r,n,o,l,s,a,u,h;return K(this,function(d){switch(d.label){case 0:if(!(null==(o=void 0===(n=e.model.props.duplicateFields)?[]:n)?void 0:o.length))return e.message.error(e.t("Please configure the duplicate fields in duplicate mode configuration",{ns:c})),[2];if(e.model.duplicateLoading)return[2];return e.model.duplicateLoading=!0,e.model.rerender(),l=e.blockModel.collection.filterTargetKey,s={dataId:Array.isArray(e.blockModel.collection.filterTargetKey)?(r=Object).assign.apply(r,[{}].concat(W(l.map(function(t){return P({},t,e.record[t])})))):e.record[l]||e.record.id,default:!0,fields:(null==o?void 0:o.filter(function(t){return"string"==typeof t&&W(e.collection.fields.values()).find(function(e){return t.includes(e.name)})}))||[]},a=e.createResource(t.MultiRecordResource),u=e.blockModel.collection.dataSourceKey,a.setDataSourceKey(u),a.setResourceName(e.record.__collection||e.blockModel.collection.name),[4,H(a,s)];case 1:return h=d.sent(),[4,e.blockModel.resource.create(R({},h),i.requestConfig)];case 2:return d.sent(),e.message.success(e.t("Saved successfully")),e.model.duplicateLoading=!1,e.model.rerender(),[2]}})})()}}}}),V.registerFlow({key:"popupSettings",on:{eventName:"openDuplicatePopup"},sort:300,steps:{confirm:{use:"confirm",hideInSettings:function(e){var t,i,r;return"quickDulicate"===(null==(i=(r=e.model).getStepParams)||null==(t=i.call(r,"duplicateModeSettings","duplicateMode"))?void 0:t.duplicateMode)},defaultParams:{enable:!1,title:(0,t.tExpr)("Duplicate record"),content:(0,t.tExpr)("Are you sure you want to duplicate it?")}},openView:{title:(0,t.tExpr)("Edit popup"),hideInSettings:function(e){var t,i,r;return"quickDulicate"===(null==(i=(r=e.model).getStepParams)||null==(t=i.call(r,"duplicateModeSettings","duplicateMode"))?void 0:t.duplicateMode)},use:"openView",defaultParams:{mode:"drawer",size:"medium"},handler:function(e,i){return C(function(){var r,n,o,l,s,u,h,d,f,p,y,b,v,m,g,S,w,O,x,k;return K(this,function(_){switch(_.label){case 0:return[4,e.model.dispatchEvent("beforeRender")];case 1:if(_.sent(),!(null==(s=void 0===(l=e.model.props.duplicateFields)?[]:l)?void 0:s.length))return e.message.error(e.t("Please configure the duplicate fields in duplicate mode configuration",{ns:c})),[2];return u={drawer:{small:"30%",medium:"50%",large:"70%"},dialog:{small:"40%",medium:"50%",large:"80%"},embed:{}},h=(null==(n=e.inputArgs)?void 0:n.mode)||(null==i?void 0:i.mode)||"drawer",d=(null==(o=e.inputArgs)?void 0:o.size)||(null==i?void 0:i.size)||"medium",f=e.blockModel.collection.filterTargetKey,p={dataId:Array.isArray(e.blockModel.collection.filterTargetKey)?(r=Object).assign.apply(r,[{}].concat(W(f.map(function(t){return P({},t,e.record[t])})))):e.record[f]||e.record.id,default:!0,fields:(null==s?void 0:s.filter(function(t){return"string"==typeof t&&W(e.collection.fields.values()).find(function(e){return t.includes(e.name)})}))||[]},y=e.createResource(t.MultiRecordResource),b=e.blockModel.collection.dataSourceKey,y.setDataSourceKey(b),y.setResourceName(e.record.__collection||e.blockModel.collection.name),[4,H(y,p)];case 2:if(v=_.sent(),m="string"==typeof(null==i?void 0:i.popupTemplateUid)?i.popupTemplateUid.trim():"",g="string"==typeof(null==i?void 0:i.uid)?i.uid.trim():"",S=!!m||!!g&&g!==e.model.uid,w=(null==i?void 0:i.viewUid)||e.blockModel.uid,O=(null==i?void 0:i.dataSourceKey)||e.blockModel.collection.dataSourceKey,x=(null==i?void 0:i.collectionName)||e.record.__collection||e.blockModel.collection.name,!S)return[3,4];return k=I(R({},i||{}),{navigation:!1,scene:"new",formData:v,viewUid:w,dataSourceKey:O,collectionName:x}),g&&(k.uid=g),[4,e.runAction("openView",k)];case 3:return _.sent(),[2];case 4:return e.viewer.open({type:h,width:u[h][d],inheritContext:!1,target:e.layoutContentElement,inputArgs:{parentId:e.model.uid,scene:"new",dataSourceKey:O,collectionName:x,formData:v,viewUid:w},content:function(){return a().createElement(N,{model:e.model,scene:"create"})},styles:{content:R({padding:0,backgroundColor:e.model.flowEngine.context.themeToken.colorBgLayout},"embed"===h?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}),body:{padding:0}}}),[2]}})})()}}}}),e.RecordActionGroupModel.registerActionModels({DuplicateActionModel:V});function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t="function"==typeof Map?new Map:void 0;return(Z=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,i)}function i(){return X(e,arguments,Q(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Y(i,e)})(e)}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ee=function(){return!!e})()}var et=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function i(){var e,t;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return e=i,t=arguments,e=Q(e),function(e,t){var i;if(t&&("object"==((i=t)&&"u">typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,ee()?Reflect.construct(e,t||[],Q(this).constructor):e.apply(this,t))}return i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&Y(i,e),t=[{key:"load",value:function(){var e;return(e=function(){return function(e,t){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(l,"next",{value:a(0)}),s(l,"throw",{value:a(1)}),s(l,"return",{value:a(2)}),"function"==typeof Symbol&&s(l,Symbol.iterator,{value:function(){return this}}),l;function a(s){return function(a){var c=[s,a];if(i)throw TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{i=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(e){return this.app.flowEngine.registerModels({DuplicateActionModel:V}),[2]})},function(){var t=this,i=arguments;return new Promise(function(r,n){var o=e.apply(t,i);function l(e){J(o,r,n,l,s,"next",e)}function s(e){J(o,r,n,l,s,"throw",e)}l(void 0)})}).call(this)}}],function(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,t),i}(Z(e.Plugin)),ei=et}(),y}()});
|
|
@@ -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 declare const NAMESPACE = "action-duplicate";
|
package/dist/externalVersion.js
CHANGED
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/core": "2.3.7",
|
|
12
12
|
"@formily/react": "2.3.7",
|
|
13
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
13
|
+
"@nocobase/client": "2.1.0-alpha.40",
|
|
14
14
|
"antd": "5.24.2",
|
|
15
|
-
"lodash": "4.
|
|
15
|
+
"lodash": "4.18.1",
|
|
16
16
|
"react": "18.2.0",
|
|
17
17
|
"react-i18next": "11.18.6",
|
|
18
18
|
"@emotion/css": "11.13.0",
|
|
19
|
-
"@nocobase/
|
|
20
|
-
"@nocobase/
|
|
21
|
-
"
|
|
22
|
-
"@
|
|
19
|
+
"@nocobase/flow-engine": "2.1.0-alpha.40",
|
|
20
|
+
"@nocobase/client-v2": "2.1.0-alpha.40",
|
|
21
|
+
"ahooks": "3.7.8",
|
|
22
|
+
"@nocobase/server": "2.1.0-alpha.40",
|
|
23
|
+
"@nocobase/test": "2.1.0-alpha.40"
|
|
23
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-action-duplicate",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.40",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/action-duplicate",
|
|
6
6
|
"homepage.ru-RU": "https://docs.nocobase.ru/handbook/action-duplicate",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"description": "Duplicate a record, you can either duplicate it into a form and edit it before saving it, or you can duplicate it directly to generate a new record.",
|
|
12
12
|
"description.zh-CN": "复制一条记录,可以复制到表单中编辑后再提交,也可以直接复制并生成一条新记录。",
|
|
13
13
|
"description.ru-RU": "Дублирование записи: можно скопировать запись в форму для редактирования перед сохранением или сразу создать новую запись-дубликат.",
|
|
14
|
-
"license": "
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
15
|
"nocobase": {
|
|
16
16
|
"supportedVersions": [
|
|
17
17
|
"1.x",
|
|
@@ -19,12 +19,16 @@
|
|
|
19
19
|
],
|
|
20
20
|
"editionLevel": 0
|
|
21
21
|
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"lru-cache": "^11.3.5"
|
|
24
|
+
},
|
|
22
25
|
"peerDependencies": {
|
|
23
26
|
"@nocobase/client": "2.x",
|
|
27
|
+
"@nocobase/client-v2": "2.x",
|
|
24
28
|
"@nocobase/server": "2.x",
|
|
25
29
|
"@nocobase/test": "2.x"
|
|
26
30
|
},
|
|
27
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "e73f99dd0abefe847f2e50ff0fea1f41a82fd048",
|
|
28
32
|
"keywords": [
|
|
29
33
|
"Actions"
|
|
30
34
|
]
|
|
File without changes
|