@nocobase/plugin-action-export 1.5.0-beta.1 → 1.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client/index.js
CHANGED
|
@@ -7,17 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
(function(a,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("react/jsx-runtime"),require("@formily/shared"),require("@nocobase/client"),require("@formily/react"),require("@formily/antd-v5"),require("react"),require("react-i18next"),require("lodash"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@formily/shared","@nocobase/client","@formily/react","@formily/antd-v5","react","react-i18next","lodash","antd"],d):(a=typeof globalThis!="undefined"?globalThis:a||self,d(a["@nocobase/plugin-action-export"]={},a.jsxRuntime,a["@formily/shared"],a["@nocobase/client"],a["@formily/react"],a["@formily/antd-v5"],a.react,a["react-i18next"],a.lodash,a.antd))})(this,function(a,d,f,s,y,P,w,I,b,T){"use strict";var ae=Object.defineProperty;var Y=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var Q=(a,d,f)=>d in a?ae(a,d,{enumerable:!0,configurable:!0,writable:!0,value:f}):a[d]=f,Z=(a,d)=>{for(var f in d||(d={}))se.call(d,f)&&Q(a,f,d[f]);if(Y)for(var f of Y(d))ie.call(d,f)&&Q(a,f,d[f]);return a};var k=(a,d,f)=>new Promise((s,y)=>{var P=b=>{try{I(f.next(b))}catch(T){y(T)}},w=b=>{try{I(f.throw(b))}catch(T){y(T)}},I=b=>b.done?s(b.value):Promise.resolve(b.value).then(P,w);I((f=f.apply(a,d)).next())});const L=r=>{var u;const e=y.useFieldSchema();(u=e==null?void 0:e["x-component-props"])!=null&&u.nonfilterable;const{getCollectionFields:i}=s.useCollectionManager_deprecated(),m=i(r),v=(p,h)=>{var o;if(!p.interface)return;const t={name:p.name,title:((o=p==null?void 0:p.uiSchema)==null?void 0:o.title)||p.name,schema:p==null?void 0:p.uiSchema};if(!p.target||h>=3)return t;if(p.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(p.type)){const l=i(p.target),n=x(l,h+1).filter(Boolean);t.children=t.children||[],t.children.push(...n)}return t},x=(p,h)=>{const t=[];return p.forEach(o=>{const l=v(o,h);l&&t.push(l)}),t};return x(m,1)},$=r=>r==null?void 0:r.filter(i=>!i.children).map(i=>({dataIndex:[i.name]})),O=()=>{const r=s.useSchemaInitializerItem(),{insert:e}=s.useSchemaInitializer(),{name:i}=s.useCollection_deprecated(),m=L(i),v={type:"void",title:'{{ t("Export") }}',"x-action":"export","x-action-settings":{exportSettings:[]},"x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:export","x-decorator":"ACLActionProvider","x-component":"Action","x-use-component-props":"useExportAction","x-component-props":{icon:"clouddownloadoutlined"}};return d.jsx(s.SchemaInitializerItem,{title:r.title,onClick:()=>{var u;v["x-action-settings"].exportSettings=$(m);const x=f.merge(v||{},r.schema||{});(u=r==null?void 0:r.schemaInitialize)==null||u.call(r,x),e(x)}})},B=()=>{const{name:r}=s.useCollection_deprecated(),e=L(r);return{schema:{type:"void","x-component":"Grid",properties:{exportSettings:{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{className:s.css`
|
|
11
|
-
width: 100%;
|
|
12
|
-
& .ant-space-item:nth-child(2),
|
|
13
|
-
& .ant-space-item:nth-child(3) {
|
|
14
|
-
flex: 1;
|
|
15
|
-
}
|
|
16
|
-
`},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},dataIndex:{type:"array","x-decorator":"FormItem","x-component":s.Cascader,required:!0,enum:e,"x-component-props":{fieldNames:{label:"title",value:"name",children:"children"},changeOnSelect:!1}},title:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{ t("Custom column title") }}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},properties:{add:{type:"void",title:'{{ t("Add exportable field") }}',"x-component":"ArrayItems.Addition","x-component-props":{className:s.css`
|
|
17
|
-
border-color: var(--colorSettings);
|
|
18
|
-
color: var(--colorSettings);
|
|
19
|
-
&.ant-btn-dashed:hover {
|
|
20
|
-
border-color: var(--colorSettings);
|
|
21
|
-
color: var(--colorSettings);
|
|
22
|
-
}
|
|
23
|
-
`}}}}}}}},ee="action-export";function D(){return I.useTranslation([ee,"client"],{nsMode:"fallback"})}const R=()=>{var p,h,t,o,l;const r=y.useField(),e=y.useFieldSchema(),{t:i}=D(),{dn:m}=s.useDesignable(),[v,x]=w.useState(),{schema:u}=B();return w.useEffect(()=>{x(u)},[r.address,(p=e==null?void 0:e["x-action-settings"])==null?void 0:p.exportSettings]),d.jsxs(s.GeneralSchemaDesigner,{disableInitializer:!0,children:[d.jsx(s.SchemaSettingsModalItem,{title:i("Edit button"),schema:{type:"object",title:i("Edit button"),properties:{title:{"x-decorator":"FormItem","x-component":"Input",title:i("Button title"),default:e.title,"x-component-props":{}},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:i("Button icon"),default:(h=e==null?void 0:e["x-component-props"])==null?void 0:h.icon,"x-component-props":{}},type:{"x-decorator":"FormItem","x-component":"Radio.Group",title:i("Button background color"),default:(t=e==null?void 0:e["x-component-props"])!=null&&t.danger?"danger":((o=e==null?void 0:e["x-component-props"])==null?void 0:o.type)==="primary"?"primary":"default",enum:[{value:"default",label:'{{t("Default")}}'},{value:"primary",label:'{{t("Highlight")}}'},{value:"danger",label:'{{t("Danger red")}}'}]}}},onSubmit:({title:n,icon:c,type:g})=>{e.title=n,r.title=n,r.componentProps.icon=c,r.componentProps.danger=g==="danger",r.componentProps.type=g,e["x-component-props"]=e["x-component-props"]||{},e["x-component-props"].icon=c,e["x-component-props"].danger=g==="danger",e["x-component-props"].type=g,m.emit("patch",{schema:{"x-uid":e["x-uid"],title:n,"x-component-props":Z({},e["x-component-props"])}}),m.refresh()}}),d.jsx(s.SchemaSettingsActionModalItem,{title:i("Exportable fields"),schema:v,initialValues:{exportSettings:(l=e==null?void 0:e["x-action-settings"])==null?void 0:l.exportSettings},scope:{t:i},components:{ArrayItems:P.ArrayItems},onSubmit:({exportSettings:n})=>{e["x-action-settings"].exportSettings=n==null?void 0:n.filter(c=>{var g;return(g=c==null?void 0:c.dataIndex)==null?void 0:g.length}).map(c=>({dataIndex:c.dataIndex.map(g=>{var S;return(S=g.name)!=null?S:g}),title:c.title})),m.emit("patch",{schema:{"x-uid":e["x-uid"],"x-action-settings":e["x-action-settings"]}}),m.refresh()}}),d.jsx(s.SchemaSettingsDivider,{}),d.jsx(s.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,breakRemoveOn:n=>n["x-component"]==="Space"||n["x-component"].endsWith("ActionBar"),confirm:{title:i("Delete action")}})]})},q=r=>d.jsx(s.SchemaComponentOptions,{components:{ExportActionInitializer:O,ExportDesigner:R},scope:{useExportAction:z},children:r.children});var j=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},_={exports:{}};(function(r,e){(function(i,m){m()})(j,function(){function i(t,o){return typeof o=="undefined"?o={autoBom:!1}:typeof o!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function m(t,o,l){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){h(n.response,o,l)},n.onerror=function(){console.error("could not download file")},n.send()}function v(t){var o=new XMLHttpRequest;o.open("HEAD",t,!1);try{o.send()}catch(l){}return 200<=o.status&&299>=o.status}function x(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(l){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(o)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof j=="object"&&j.global===j?j:void 0,p=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!p?function(t,o,l){var n=u.URL||u.webkitURL,c=document.createElement("a");o=o||t.name||"download",c.download=o,c.rel="noopener",typeof t=="string"?(c.href=t,c.origin===location.origin?x(c):v(c.href)?m(t,o,l):x(c,c.target="_blank")):(c.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(c.href)},4e4),setTimeout(function(){x(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,o,l){if(o=o||t.name||"download",typeof t!="string")navigator.msSaveOrOpenBlob(i(t,l),o);else if(v(t))m(t,o,l);else{var n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){x(n)})}}:function(t,o,l,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return m(t,o,l);var c=t.type==="application/octet-stream",g=/constructor/i.test(u.HTMLElement)||u.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||c&&g||p)&&typeof FileReader!="undefined"){var C=new FileReader;C.onloadend=function(){var E=C.result;E=S?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=E:location=E,n=null},C.readAsDataURL(t)}else{var H=u.URL||u.webkitURL,F=H.createObjectURL(t);n?n.location=F:location.href=F,n=null,setTimeout(function(){H.revokeObjectURL(F)},4e4)}});u.saveAs=h.saveAs=h,r.exports=h})})(_);var te=_.exports;const z=()=>{var S,C;const{service:r,resource:e,props:i}=s.useBlockRequestContext(),m=s.useCurrentAppInfo(),v=i==null?void 0:i.params.filter,x=y.useFieldSchema(),u=s.useCompile(),{getCollectionJoinField:p}=s.useCollectionManager_deprecated(),{name:h,title:t}=s.useCollection_deprecated(),{t:o}=D(),{modal:l}=T.App.useApp(),n=((C=(S=r.params)==null?void 0:S[1])==null?void 0:C.filters)||{},c=y.useField(),g=w.useMemo(()=>{var F;return(F=m==null?void 0:m.data)!=null&&F.exportLimit?m.data.exportLimit:2e3},[m]);return{onClick(){return k(this,null,function*(){var N,G,W,V;if(c.data=c.data||{},!(yield l.confirm({title:o("Export"),content:o("Export warning",{limit:g}),okText:o("Start export")})))return;c.data.loading=!0;const{exportSettings:E}=b.cloneDeep((N=x==null?void 0:x["x-action-settings"])!=null?N:{});E.forEach(M=>{var X,J;const{uiSchema:A,interface:ce}=(X=p(`${h}.${M.dataIndex.join(".")}`))!=null?X:{};M.enum=(J=A==null?void 0:A.enum)==null?void 0:J.map(K=>({value:K.value,label:K.label})),!M.enum&&(A==null?void 0:A.type)==="boolean"&&(M.enum=[{value:!0,label:o("Yes")},{value:!1,label:o("No")}]),M.defaultTitle=A==null?void 0:A.title});const{data:ne}=yield e.export({title:u(t),appends:(W=(G=r.params[0])==null?void 0:G.appends)==null?void 0:W.join(),filter:s.mergeFilter([...Object.values(n),v]),sort:(V=r.params[0])==null?void 0:V.sort},{method:"post",data:{columns:u(E)},responseType:"blob"}),re=new Blob([ne],{type:"application/x-xls"});c.data.loading=!1,te.saveAs(re,`${u(t)}.xlsx`)})}}},oe=new s.SchemaSettings({name:"actionSettings:export",items:[{name:"editButton",Component:s.ButtonEditor,useComponentProps(){const{buttonEditorProps:r}=s.useSchemaToolbar();return r}},{name:"exportableFields",type:"actionModal",useComponentProps(){var p,h;const r=y.useField(),e=y.useFieldSchema(),{t:i}=I.useTranslation(),{dn:m}=s.useDesignable(),[v,x]=w.useState(),{schema:u}=B();return w.useEffect(()=>{x(u)},[r.address,(p=e==null?void 0:e["x-action-settings"])==null?void 0:p.exportSettings]),{title:i("Exportable fields"),schema:v,initialValues:{exportSettings:(h=e==null?void 0:e["x-action-settings"])==null?void 0:h.exportSettings},components:{ArrayItems:P.ArrayItems},onSubmit:({exportSettings:t})=>{e["x-action-settings"].exportSettings=t==null?void 0:t.filter(o=>{var l;return(l=o==null?void 0:o.dataIndex)==null?void 0:l.length}).map(o=>({dataIndex:o.dataIndex.map(l=>{var n;return(n=l.name)!=null?n:l}),title:o.title})),m.emit("patch",{schema:{"x-uid":e["x-uid"],"x-action-settings":e["x-action-settings"]}}),m.refresh()}}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",useComponentProps(){const{t:r}=I.useTranslation();return{removeParentsIfNoChildren:!0,breakRemoveOn:e=>e["x-component"]==="Space"||e["x-component"].endsWith("ActionBar"),confirm:{title:r("Delete action")}}}}]});class U extends s.Plugin{load(){return k(this,null,function*(){this.app.use(q);const e={title:"{{t('Export')}}",Component:"ExportActionInitializer",schema:{"x-align":"right","x-decorator":"ACLActionProvider","x-acl-action-props":{skipScopeCheck:!0}},useVisible:()=>s.useActionAvailable("export")},i=this.app.schemaInitializerManager.get("table:configureActions");i==null||i.add("enableActions.export",e),this.app.schemaInitializerManager.addItem("gantt:configureActions","enableActions.export",e),this.app.schemaSettingsManager.add(oe)})}}a.ExportActionInitializer=O,a.ExportDesigner=R,a.ExportPluginProvider=q,a.PluginActionExportClient=U,a.default=U,a.useExportAction=z,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("react"),require("@formily/shared"),require("file-saver"),require("@nocobase/client"),require("lodash"),require("antd"),require("@formily/react"),require("@formily/antd-v5")):"function"==typeof define&&define.amd?define("@nocobase/plugin-action-export",["react-i18next","react","@formily/shared","file-saver","@nocobase/client","lodash","antd","@formily/react","@formily/antd-v5"],t):"object"==typeof exports?exports["@nocobase/plugin-action-export"]=t(require("react-i18next"),require("react"),require("@formily/shared"),require("file-saver"),require("@nocobase/client"),require("lodash"),require("antd"),require("@formily/react"),require("@formily/antd-v5")):e["@nocobase/plugin-action-export"]=t(e["react-i18next"],e.react,e["@formily/shared"],e["file-saver"],e["@nocobase/client"],e.lodash,e.antd,e["@formily/react"],e["@formily/antd-v5"])}(self,function(e,t,n,r,o,i,a,l,u){return function(){"use strict";var c={632:function(e){e.exports=u},505:function(e){e.exports=l},875:function(e){e.exports=n},772:function(e){e.exports=o},721:function(e){e.exports=a},346:function(e){e.exports=r},467:function(e){e.exports=i},156:function(e){e.exports=t},238:function(t){t.exports=e}},s={};function p(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return c[e](n,n.exports,p),n.exports}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.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};p.r(f),p.d(f,{ExportPluginProvider:function(){return T},default:function(){return K},ExportDesigner:function(){return k},ExportActionInitializer:function(){return g},PluginActionExportClient:function(){return Y},useExportAction:function(){return D}});var d=p("875"),m=p("772"),v=p("156"),y=p.n(v),b=p("505");function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var h=function(e){var t,n=(0,b.useFieldSchema)();null==n||null===(t=n["x-component-props"])||void 0===t||t.nonfilterable;var r=(0,m.useCollectionManager_deprecated)().getCollectionFields,o=r(e),i=function(e,t){if(!!e.interface){var n={name:e.name,title:(null==e?void 0:null===(o=e.uiSchema)||void 0===o?void 0:o.title)||e.name,schema:null==e?void 0:e.uiSchema};if(!e.target||t>=3)return n;if(e.target&&["hasOne","hasMany","belongsTo","belongsToMany","belongsToArray"].includes(e.type)){var o,i,l,u=a(r(e.target),t+1).filter(Boolean);n.children=n.children||[],(i=n.children).push.apply(i,function(e){if(Array.isArray(e))return x(e)}(l=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n}},a=function(e,t){var n=[];return e.forEach(function(e){var r=i(e,t);r&&n.push(r)}),n};return a(o,1)},g=function(){var e=(0,m.useSchemaInitializerItem)(),t=(0,m.useSchemaInitializer)().insert,n=h((0,m.useCollection_deprecated)().name),r={type:"void",title:'{{ t("Export") }}',"x-action":"export","x-action-settings":{exportSettings:[]},"x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:export","x-decorator":"ACLActionProvider","x-component":"Action","x-use-component-props":"useExportAction","x-component-props":{icon:"clouddownloadoutlined"}};return y().createElement(m.SchemaInitializerItem,{title:e.title,onClick:function(){r["x-action-settings"].exportSettings=null==(o=n)?void 0:o.filter(function(e){return!e.children}).map(function(e){return{dataIndex:[e.name]}});var o,i,a=(0,d.merge)(r||{},e.schema||{});null==e||null===(i=e.schemaInitialize)||void 0===i||i.call(e,a),t(a)}})},S=p("632");function A(e,t){return!t&&(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function I(){var e=A(["\n width: 100%;\n & .ant-space-item:nth-child(2),\n & .ant-space-item:nth-child(3) {\n flex: 1;\n }\n "]);return I=function(){return e},e}function w(){var e=A(["\n border-color: var(--colorSettings);\n color: var(--colorSettings);\n &.ant-btn-dashed:hover {\n border-color: var(--colorSettings);\n color: var(--colorSettings);\n }\n "]);return w=function(){return e},e}var O=function(){var e=h((0,m.useCollection_deprecated)().name);return{schema:{type:"void","x-component":"Grid",properties:{exportSettings:{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{className:(0,m.css)(I())},properties:{sort:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.SortHandle"},dataIndex:{type:"array","x-decorator":"FormItem","x-component":m.Cascader,required:!0,enum:e,"x-component-props":{fieldNames:{label:"title",value:"name",children:"children"},changeOnSelect:!1}},title:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{ t("Custom column title") }}'}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},properties:{add:{type:"void",title:'{{ t("Add exportable field") }}',"x-component":"ArrayItems.Addition","x-component-props":{className:(0,m.css)(w())}}}}}}}},E=p("238");function j(){return(0,E.useTranslation)(["action-export","client"],{nsMode:"fallback"})}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(){var e,t,n,r,o,i,a,l=(0,b.useField)(),u=(0,b.useFieldSchema)(),c=j().t,s=(0,m.useDesignable)().dn;var p=(e=(0,v.useState)(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}}(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.")}()),f=p[0],d=p[1],x=O().schema;return(0,v.useEffect)(function(){d(x)},[l.address,null==u?void 0:null===(n=u["x-action-settings"])||void 0===n?void 0:n.exportSettings]),y().createElement(m.GeneralSchemaDesigner,{disableInitializer:!0},y().createElement(m.SchemaSettingsModalItem,{title:c("Edit button"),schema:{type:"object",title:c("Edit button"),properties:{title:{"x-decorator":"FormItem","x-component":"Input",title:c("Button title"),default:u.title,"x-component-props":{}},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:c("Button icon"),default:null==u?void 0:null===(r=u["x-component-props"])||void 0===r?void 0:r.icon,"x-component-props":{}},type:{"x-decorator":"FormItem","x-component":"Radio.Group",title:c("Button background color"),default:(null==u?void 0:null===(o=u["x-component-props"])||void 0===o?void 0:o.danger)?"danger":(null==u?void 0:null===(i=u["x-component-props"])||void 0===i?void 0:i.type)==="primary"?"primary":"default",enum:[{value:"default",label:'{{t("Default")}}'},{value:"primary",label:'{{t("Highlight")}}'},{value:"danger",label:'{{t("Danger red")}}'}]}}},onSubmit:function(e){var t,n=e.title,r=e.icon,o=e.type;u.title=n,l.title=n,l.componentProps.icon=r,l.componentProps.danger="danger"===o,l.componentProps.type=o,u["x-component-props"]=u["x-component-props"]||{},u["x-component-props"].icon=r,u["x-component-props"].danger="danger"===o,u["x-component-props"].type=o,s.emit("patch",{schema:(C(t={},"x-uid",u["x-uid"]),C(t,"title",n),C(t,"x-component-props",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){C(e,t,n[t])})}return e}({},u["x-component-props"])),t)}),s.refresh()}}),y().createElement(m.SchemaSettingsActionModalItem,{title:c("Exportable fields"),schema:f,initialValues:{exportSettings:null==u?void 0:null===(a=u["x-action-settings"])||void 0===a?void 0:a.exportSettings},scope:{t:c},components:{ArrayItems:S.ArrayItems},onSubmit:function(e){var t,n=e.exportSettings;u["x-action-settings"].exportSettings=null==n?void 0:n.filter(function(e){var t;return null==e?void 0:null===(t=e.dataIndex)||void 0===t?void 0:t.length}).map(function(e){return{dataIndex:e.dataIndex.map(function(e){var t;return null!==(t=e.name)&&void 0!==t?t:e}),title:e.title}}),s.emit("patch",{schema:(C(t={},"x-uid",u["x-uid"]),C(t,"x-action-settings",u["x-action-settings"]),t)}),s.refresh()}}),y().createElement(m.SchemaSettingsDivider,null),y().createElement(m.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,breakRemoveOn:function(e){return"Space"===e["x-component"]||e["x-component"].endsWith("ActionBar")},confirm:{title:c("Delete action")}}))},T=function(e){return y().createElement(m.SchemaComponentOptions,{components:{ExportActionInitializer:g,ExportDesigner:k},scope:{useExportAction:D}},e.children)},F=p("467"),M=p.n(F),q=p("346"),_=p("721");function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function B(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,o)}var D=function(){var e,t,n=(0,m.useBlockRequestContext)(),r=n.service,o=n.resource,i=n.props,a=(0,m.useCurrentAppInfo)(),l=null==i?void 0:i.params.filter,u=(0,b.useFieldSchema)(),c=(0,m.useCompile)(),s=(0,m.useCollectionManager_deprecated)().getCollectionJoinField,p=(0,m.useCollection_deprecated)(),f=p.name,d=p.title,y=j().t,x=_.App.useApp().modal,h=(null===(t=r.params)||void 0===t?void 0:null===(e=t[1])||void 0===e?void 0:e.filters)||{},g=(0,b.useField)(),S=(0,v.useMemo)(function(){var e;return(null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.exportLimit)?a.data.exportLimit:2e3},[a]);return{onClick:function(){var e;return(e=function(){var e,t,n,i,a,p;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(v){switch(v.label){case 0:return g.data=g.data||{},[4,x.confirm({title:y("Export"),content:y("Export warning",{limit:S}),okText:y("Start export")})];case 1:var b;if(!v.sent())return[2];return g.data.loading=!0,(a=M().cloneDeep(null!==(i=null==u?void 0:u["x-action-settings"])&&void 0!==i?i:{}).exportSettings).forEach(function(e){var t,n,r=null!==(n=s("".concat(f,".").concat(e.dataIndex.join("."))))&&void 0!==n?n:{},o=r.uiSchema;r.interface,e.enum=null==o?void 0:null===(t=o.enum)||void 0===t?void 0:t.map(function(e){return{value:e.value,label:e.label}}),!e.enum&&(null==o?void 0:o.type)==="boolean"&&(e.enum=[{value:!0,label:y("Yes")},{value:!1,label:y("No")}]),e.defaultTitle=null==o?void 0:o.title}),[4,o.export({title:c(d),appends:null===(t=r.params[0])||void 0===t?void 0:null===(e=t.appends)||void 0===e?void 0:e.join(),filter:(0,m.mergeFilter)(((function(e){if(Array.isArray(e))return z(e)})(b=Object.values(h))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(b)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}}(b)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([l])),sort:null===(n=r.params[0])||void 0===n?void 0:n.sort},{method:"post",data:{columns:c(a)},responseType:"blob"})];case 2:return p=new Blob([v.sent().data],{type:"application/x-xls"}),g.data.loading=!1,(0,q.saveAs)(p,"".concat(c(d),".xlsx")),[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){B(i,r,o,a,l,"next",e)}function l(e){B(i,r,o,a,l,"throw",e)}a(void 0)})})()}}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G=new m.SchemaSettings({name:"actionSettings:export",items:[{name:"editButton",Component:m.ButtonEditor,useComponentProps:function(){return(0,m.useSchemaToolbar)().buttonEditorProps}},{name:"exportableFields",type:"actionModal",useComponentProps:function(){var e,t,n,r,o=(0,b.useField)(),i=(0,b.useFieldSchema)(),a=(0,E.useTranslation)().t,l=(0,m.useDesignable)().dn;var u=(e=(0,v.useState)(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&null!=o.return&&o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}}(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.")}()),c=u[0],s=u[1],p=O().schema;return(0,v.useEffect)(function(){s(p)},[o.address,null==i?void 0:null===(n=i["x-action-settings"])||void 0===n?void 0:n.exportSettings]),{title:a("Exportable fields"),schema:c,initialValues:{exportSettings:null==i?void 0:null===(r=i["x-action-settings"])||void 0===r?void 0:r.exportSettings},components:{ArrayItems:S.ArrayItems},onSubmit:function(e){var t,n=e.exportSettings;i["x-action-settings"].exportSettings=null==n?void 0:n.filter(function(e){var t;return null==e?void 0:null===(t=e.dataIndex)||void 0===t?void 0:t.length}).map(function(e){return{dataIndex:e.dataIndex.map(function(e){var t;return null!==(t=e.name)&&void 0!==t?t:e}),title:e.title}}),l.emit("patch",{schema:(N(t={},"x-uid",i["x-uid"]),N(t,"x-action-settings",i["x-action-settings"]),t)}),l.refresh()}}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",useComponentProps:function(){return{removeParentsIfNoChildren:!0,breakRemoveOn:function(e){return"Space"===e["x-component"]||e["x-component"].endsWith("ActionBar")},confirm:{title:(0,(0,E.useTranslation)().t)("Delete action")}}}}]});function L(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,o)}function U(e,t,n){return(U=J()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&H(o,n.prototype),o}).apply(null,arguments)}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)}}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t="function"==typeof Map?new Map:void 0;return(W=function(e){var n;if(null===e||(n=e,-1===Function.toString.call(n).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,r)}function r(){return U(e,arguments,V(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),H(r,e)})(e)}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}var Y=function(e){var t,n,r;function o(){var e,t,n;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e=this,t=o,n=arguments,t=V(t),function(e,t){return t&&("object"===function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(t)||"function"==typeof t)?t:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,J()?Reflect.construct(t,n||[],V(e).constructor):t.apply(e,n))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(o,e),t=o,n=[{key:"load",value:function(){var e,t=this;return(e=function(){var e,n;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(r){return t.app.use(T),e={title:"{{t('Export')}}",Component:"ExportActionInitializer",schema:{"x-align":"right","x-decorator":"ACLActionProvider","x-acl-action-props":{skipScopeCheck:!0}},useVisible:function(){return(0,m.useActionAvailable)("export")}},null==(n=t.app.schemaInitializerManager.get("table:configureActions"))||n.add("enableActions.export",e),t.app.schemaInitializerManager.addItem("gantt:configureActions","enableActions.export",e),t.app.schemaSettingsManager.add(G),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){L(i,r,o,a,l,"next",e)}function l(e){L(i,r,o,a,l,"throw",e)}a(void 0)})})()}}],$(t.prototype,n),o}(W(m.Plugin)),K=Y;return f}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -10,15 +10,16 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/react": "2.3.0",
|
|
12
12
|
"@formily/shared": "2.3.2",
|
|
13
|
-
"@nocobase/client": "1.
|
|
13
|
+
"@nocobase/client": "1.6.0-alpha.2",
|
|
14
14
|
"react": "18.2.0",
|
|
15
15
|
"@formily/antd-v5": "1.1.9",
|
|
16
16
|
"react-i18next": "11.18.6",
|
|
17
17
|
"lodash": "4.17.21",
|
|
18
|
+
"file-saver": "2.0.5",
|
|
18
19
|
"antd": "5.12.8",
|
|
19
|
-
"@nocobase/server": "1.
|
|
20
|
-
"@nocobase/data-source-manager": "1.
|
|
21
|
-
"@nocobase/database": "1.
|
|
22
|
-
"@nocobase/actions": "1.
|
|
23
|
-
"async-mutex": "0.
|
|
20
|
+
"@nocobase/server": "1.6.0-alpha.2",
|
|
21
|
+
"@nocobase/data-source-manager": "1.6.0-alpha.2",
|
|
22
|
+
"@nocobase/database": "1.6.0-alpha.2",
|
|
23
|
+
"@nocobase/actions": "1.6.0-alpha.2",
|
|
24
|
+
"async-mutex": "0.5.0"
|
|
24
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"xlsx","version":"0.20.2","author":"sheetjs","description":"SheetJS Spreadsheet data parser and writer","keywords":["excel","xls","xlsx","xlsb","xlsm","ods","csv","dbf","dif","sylk","office","spreadsheet"],"bin":{"xlsx":"./bin/xlsx.njs"},"main":"xlsx.js","module":"xlsx.mjs","unpkg":"dist/xlsx.full.min.js","jsdelivr":"dist/xlsx.full.min.js","types":"types/index.d.ts","exports":{".":{"import":"./xlsx.mjs","require":"./xlsx.js","types":"./types/index.d.ts"},"./xlsx.mjs":{"import":"./xlsx.mjs","types":"./types/index.d.ts"},"./xlsx.js":{"require":"./xlsx.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min.js":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min.js":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min.js":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.zahl":{"import":"./dist/xlsx.zahl.mjs","require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.mjs":{"import":"./dist/xlsx.zahl.mjs","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.js":{"require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/cpexcel":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.js":{"require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full.mjs":{"import":"./dist/cpexcel.full.mjs","types":"./dist/cpexcel.d.ts"}},"browser":{"buffer":false,"crypto":false,"stream":false,"process":false,"fs":false},"sideEffects":false,"dependencies":{},"devDependencies":{"@sheetjs/uglify-js":"~2.7.3","@types/node":"^8.5.9","acorn":"7.4.1","adler-32":"~1.3.1","alex":"8.1.1","blanket":"~1.2.3","cfb":"~1.2.2","codepage":"~1.15.0","commander":"~2.17.1","crc-32":"~1.2.2","dtslint":"^0.1.2","eslint":"7.23.0","eslint-plugin-html":"^6.1.2","eslint-plugin-json":"^2.1.2","exit-on-epipe":"~1.0.1","fflate":"^0.7.1","jsdom":"~11.1.0","markdown-spellcheck":"^1.3.1","mocha":"~2.5.3","sinon":"^1.17.7","ssf":"~0.11.2","typescript":"2.2.0","wmf":"~1.0.1","word":"~0.3.0"},"repository":{"type":"git","url":"https://git.sheetjs.com/SheetJS/sheetjs"},"scripts":{"pretest":"npm run lint","test":"npm run tests-only","pretest-only":"git submodule init && git submodule update","tests-only":"make travis","build":"make","lint":"make fullint","dtslint":"dtslint types"},"config":{"blanket":{"pattern":"xlsx.js"}},"alex":{"allow":["chinese","special","simple","just","crash","wtf","holes"]},"homepage":"https://sheetjs.com/","files":["CHANGELOG.md","LICENSE","README.md","bower.json","package.json","xlsx.js","xlsx.mjs","xlsxworker.js","bin/xlsx.njs","dist/LICENSE","dist/*.mjs","dist/*.js","dist/*.map","dist/*.d.ts","types/index.d.ts","types/tsconfig.json"],"bugs":{"url":"https://git.sheetjs.com/SheetJS/sheetjs/issues"},"license":"Apache-2.0","engines":{"node":">=0.8"},"_lastModified":"2024-12-
|
|
1
|
+
{"name":"xlsx","version":"0.20.2","author":"sheetjs","description":"SheetJS Spreadsheet data parser and writer","keywords":["excel","xls","xlsx","xlsb","xlsm","ods","csv","dbf","dif","sylk","office","spreadsheet"],"bin":{"xlsx":"./bin/xlsx.njs"},"main":"xlsx.js","module":"xlsx.mjs","unpkg":"dist/xlsx.full.min.js","jsdelivr":"dist/xlsx.full.min.js","types":"types/index.d.ts","exports":{".":{"import":"./xlsx.mjs","require":"./xlsx.js","types":"./types/index.d.ts"},"./xlsx.mjs":{"import":"./xlsx.mjs","types":"./types/index.d.ts"},"./xlsx.js":{"require":"./xlsx.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.core.min.js":{"import":"./dist/xlsx.core.min.js","require":"./dist/xlsx.core.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.full.min.js":{"import":"./dist/xlsx.full.min.js","require":"./dist/xlsx.full.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.mini.min.js":{"import":"./dist/xlsx.mini.min.js","require":"./dist/xlsx.mini.min.js","types":"./types/index.d.ts"},"./dist/xlsx.zahl":{"import":"./dist/xlsx.zahl.mjs","require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.mjs":{"import":"./dist/xlsx.zahl.mjs","types":"./dist/zahl.d.ts"},"./dist/xlsx.zahl.js":{"require":"./dist/xlsx.zahl.js","types":"./dist/zahl.d.ts"},"./dist/cpexcel":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.js":{"require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full":{"import":"./dist/cpexcel.full.mjs","require":"./dist/cpexcel.js","types":"./dist/cpexcel.d.ts"},"./dist/cpexcel.full.mjs":{"import":"./dist/cpexcel.full.mjs","types":"./dist/cpexcel.d.ts"}},"browser":{"buffer":false,"crypto":false,"stream":false,"process":false,"fs":false},"sideEffects":false,"dependencies":{},"devDependencies":{"@sheetjs/uglify-js":"~2.7.3","@types/node":"^8.5.9","acorn":"7.4.1","adler-32":"~1.3.1","alex":"8.1.1","blanket":"~1.2.3","cfb":"~1.2.2","codepage":"~1.15.0","commander":"~2.17.1","crc-32":"~1.2.2","dtslint":"^0.1.2","eslint":"7.23.0","eslint-plugin-html":"^6.1.2","eslint-plugin-json":"^2.1.2","exit-on-epipe":"~1.0.1","fflate":"^0.7.1","jsdom":"~11.1.0","markdown-spellcheck":"^1.3.1","mocha":"~2.5.3","sinon":"^1.17.7","ssf":"~0.11.2","typescript":"2.2.0","wmf":"~1.0.1","word":"~0.3.0"},"repository":{"type":"git","url":"https://git.sheetjs.com/SheetJS/sheetjs"},"scripts":{"pretest":"npm run lint","test":"npm run tests-only","pretest-only":"git submodule init && git submodule update","tests-only":"make travis","build":"make","lint":"make fullint","dtslint":"dtslint types"},"config":{"blanket":{"pattern":"xlsx.js"}},"alex":{"allow":["chinese","special","simple","just","crash","wtf","holes"]},"homepage":"https://sheetjs.com/","files":["CHANGELOG.md","LICENSE","README.md","bower.json","package.json","xlsx.js","xlsx.mjs","xlsxworker.js","bin/xlsx.njs","dist/LICENSE","dist/*.mjs","dist/*.js","dist/*.map","dist/*.d.ts","types/index.d.ts","types/tsconfig.json"],"bugs":{"url":"https://git.sheetjs.com/SheetJS/sheetjs/issues"},"license":"Apache-2.0","engines":{"node":">=0.8"},"_lastModified":"2024-12-03T16:00:09.824Z"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "操作:导出记录",
|
|
5
5
|
"description": "Export filtered records to excel, you can configure which fields to export.",
|
|
6
6
|
"description.zh-CN": "导出筛选后的记录到 Excel 中,可以配置导出哪些字段。",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.6.0-alpha.2",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/action-export",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@formily/react": "2.x",
|
|
15
15
|
"@formily/shared": "2.x",
|
|
16
16
|
"@types/node-xlsx": "^0.15.1",
|
|
17
|
-
"async-mutex": "^0.
|
|
17
|
+
"async-mutex": "^0.5.0",
|
|
18
18
|
"file-saver": "^2.0.5",
|
|
19
19
|
"node-xlsx": "^0.16.1",
|
|
20
20
|
"react": "^18.2.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@nocobase/test": "1.x",
|
|
30
30
|
"@nocobase/utils": "1.x"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "08bbc34c21727fc0ad0880f397a42bf7741091ee",
|
|
33
33
|
"keywords": [
|
|
34
34
|
"Actions"
|
|
35
35
|
]
|