@tachybase/plugin-action-bulk-edit 1.3.21 → 1.3.22

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.
@@ -1,6 +1,6 @@
1
- (function(s,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("@tachybase/schema"),require("react-i18next"),require("@ant-design/icons"),require("react"),require("@tachybase/utils/client"),require("antd"),require("lodash"),require("react-router-dom"),require("@tachybase/components")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","@tachybase/schema","react-i18next","@ant-design/icons","react","@tachybase/utils/client","antd","lodash","react-router-dom","@tachybase/components"],e):(s=typeof globalThis!="undefined"?globalThis:s||self,e(s["@tachybase/plugin-action-bulk-edit"]={},s["@tachybase/client"],s.jsxRuntime,s["@tachybase/schema"],s["react-i18next"],s["@ant-design/icons"],s.react,s["@tachybase/utils"],s.antd,s.lodash,s["react-router-dom"],s["@tachybase/components"]))})(this,function(s,e,c,d,b,j,k,P,C,I,Z,G){"use strict";var Se=Object.defineProperty,ye=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var Q=(s,e,c)=>e in s?Se(s,e,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[e]=c,T=(s,e)=>{for(var c in e||(e={}))R.call(e,c)&&Q(s,c,e[c]);if(N)for(var c of N(e))X.call(e,c)&&Q(s,c,e[c]);return s},w=(s,e)=>ye(s,be(e));var Y=(s,e)=>{var c={};for(var d in s)R.call(s,d)&&e.indexOf(d)<0&&(c[d]=s[d]);if(s!=null&&N)for(var d of N(s))e.indexOf(d)<0&&X.call(s,d)&&(c[d]=s[d]);return c};var M=(s,e,c)=>new Promise((d,b)=>{var j=C=>{try{P(c.next(C))}catch(I){b(I)}},k=C=>{try{P(c.throw(C))}catch(I){b(I)}},P=C=>C.done?d(C.value):Promise.resolve(C.value).then(j,k);P((c=c.apply(s,e)).next())});function ee(){var r;const{dn:t}=e.useDesignable(),{t:n}=b.useTranslation(),o=d.useFieldSchema();return c.jsx(e.SchemaSettingsSelectItem,{title:n("Data will be updated"),options:[{label:n("Selected"),value:"selected"},{label:n("All"),value:"all"}],value:(r=o==null?void 0:o["x-action-settings"])==null?void 0:r.updateMode,onChange:a=>{o["x-action-settings"].updateMode=a,t.emit("patch",{schema:{"x-uid":o["x-uid"],"x-action-settings":o["x-action-settings"]}}),t.refresh()}})}function te(t={}){const{t:n}=b.useTranslation(),o=d.useFieldSchema();return!((o==null?void 0:o.parent["x-component"])==="CollectionField")&&c.jsxs(c.Fragment,{children:[c.jsx(e.SchemaSettingsDivider,{}),c.jsx(e.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,breakRemoveOn:a=>a["x-component"]==="Space"||a["x-component"].endsWith("ActionBar"),confirm:{title:n("Delete action"),onOk:t.onConfirmOk}})]})}const oe=new e.SchemaSettings({name:"actionSettings:bulkEdit",items:[{name:"editButton",Component:e.ActionDesigner.ButtonEditor,useComponentProps(){const{buttonEditorProps:t}=e.useSchemaToolbar();return t}},{name:"openMode",Component:e.SchemaInitializerOpenModeSchemaItems,useComponentProps(){const t=d.useFieldSchema(),n=["create","update","view","customize:popup","duplicate","customize:create"].includes(t["x-action"]||"");return{openMode:n,openSize:n}}},{name:"updateMode",Component:ee},{name:"remove",sort:100,Component:te,useComponentProps(){const{removeButtonProps:t}=e.useSchemaToolbar();return t}}]}),ne=()=>{const t={type:"void",title:'{{t("Bulk edit")}}',"x-component":"Action","x-action":"customize:bulkEdit","x-action-settings":{updateMode:"selected"},"x-component-props":{openMode:"drawer",icon:"EditOutlined"},properties:{drawer:{type:"void",title:'{{t("Bulk edit")}}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializersForBulkEditFormBlock",properties:{tab1:{type:"void",title:'{{t("Bulk edit")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:bulkEdit:addBlock",properties:{}}}}}}}}}},n=e.useSchemaInitializerItem();return c.jsx(e.BlockInitializer,w(T({},n),{schema:t,item:n}))};function ie(t){const{collectionName:n,association:o,dataSource:r}=t,a=o||n;if(!n||!r)throw new Error("collectionName and dataSource are required");return{type:"void","x-acl-action-props":{skipScopeCheck:!0},"x-acl-action":`${a}:create`,"x-decorator":"FormBlockProvider","x-decorator-props":{dataSource:r,collection:n,association:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:createForm","x-component":"CardItem",properties:{[d.uid()]:{type:"void","x-component":"FormV2","x-use-component-props":"useCreateFormBlockProps",properties:{grid:{type:"void","x-component":"Grid","x-initializer":"bulkEditForm:configureFields",properties:{}},[d.uid()]:{type:"void","x-initializer":"bulkEditForm:configureActions","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}}}}}}}}const re=()=>{const g=e.useSchemaInitializerItem(),{onCreateBlockSchema:n,componentType:o,createBlockSchema:r}=g,a=Y(g,["onCreateBlockSchema","componentType","createBlockSchema"]),{insert:p}=e.useSchemaInitializer(),{getTemplateSchemaByMode:u}=e.useSchemaTemplateManager(),S=e.useBlockAssociationContext(),l=e.useCollection_deprecated();return c.jsx(e.SchemaInitializerItem,w(T({icon:c.jsx(j.FormOutlined,{})},a),{onClick:h=>M(null,[h],function*({item:i}){if(i.template){const m=yield u(i);if(i.template.componentName==="FormItem"){const y=e.createCreateFormBlockUISchema(S?{association:S,dataSource:l.dataSource,templateSchema:m}:{collectionName:l.name,dataSource:l.dataSource,templateSchema:m});i.mode==="reference"&&(y["x-template-key"]=i.template.key),p(y)}else p(m)}else p(ie({association:S,collectionName:l.name,dataSource:l.dataSource}))}),items:e.useRecordCollectionDataSourceItems("FormItem")}))},ae=new e.SchemaInitializer({name:"popup:bulkEdit:addBlock",wrap:e.gridRowColWrap,title:'{{t("Add block")}}',icon:"PlusOutlined",items:[{type:"itemGroup",title:'{{t("Data blocks")}}',name:"dataBlocks",children:[{name:"form",title:'{{t("Form")}}',Component:re}]},{type:"itemGroup",title:'{{t("Other blocks")}}',name:"otherBlocks",children:[{name:"markdown",title:'{{t("Demonstration text")}}',Component:"MarkdownBlockInitializer"}]}]}),se=t=>{const n={title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCustomizeBulkEditActionProps","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:updateSubmit","x-component-props":{type:"primary",htmlType:"submit"}};return c.jsx(e.ActionInitializer,w(T({},t),{schema:n}))},ce=new e.SchemaInitializer({name:"bulkEditForm:configureActions",title:'{{t("Configure actions")}}',icon:"SettingOutlined",items:[{type:"itemGroup",title:'{{t("Enable actions")}}',name:"enableActions",children:[{name:"submit",title:'{{t("Submit")}}',Component:se,schema:{"x-action-settings":{}}}]}]}),de=t=>{const n=d.useField(),o=d.useFieldSchema(),{name:r,interface:a,uiSchema:p}=e.useCollectionField_deprecated(),u=e.useComponent(p==null?void 0:p["x-component"]),S=e.useCompile(),l=(h,m)=>{n[h]=typeof n[h]=="undefined"?m:n[h]},g=()=>{typeof o.required=="undefined"&&(n.required=!!p.required)},i=e.useFormBlockContext();return k.useEffect(()=>{i!=null&&i.field&&(i.field.added=i.field.added||new Set,i.field.added.add(o.name))}),k.useEffect(()=>{if(!p)return;l("content",p["x-content"]),l("description",p.description),l("initialValue",p.default),o["x-disabled"]===!0&&(n.disabled=!0),o["x-read-pretty"]===!0&&(n.readPretty=!0),g(),n.dataSource=p.enum;const h=S(p["x-component-props"])||{},m=d.merge(h,n.componentProps||{});n.componentProps=m},[JSON.stringify(p)]),p?k.createElement(u,t,t.children):null},pe=d.connect(t=>{const n=d.useFieldSchema();return c.jsx(e.CollectionFieldProvider,{name:n.name,children:c.jsx(de,T({},t))})});var B=(t=>(t[t.RemainsTheSame=1]="RemainsTheSame",t[t.ChangedTo=2]="ChangedTo",t[t.Clear=3]="Clear",t[t.AddAttach=4]="AddAttach",t))(B||{});const le=t=>{const{t:n}=b.useTranslation(),o=d.useFieldSchema(),r=d.useField(),[a,p]=k.useState(2),[u,S]=k.useState(null),{getField:l}=e.useCollection_deprecated(),g=l(o.name)||{};k.useEffect(()=>{r.value={[a]:u}},[a,u]);const i=m=>{p(m)},h=m=>{var y,f,v,A;S((A=(v=(y=m==null?void 0:m.target)==null?void 0:y.value)!=null?v:(f=m==null?void 0:m.target)==null?void 0:f.checked)!=null?A:m)};return c.jsxs(C.Space,{className:e.css`
1
+ (function(d,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("@tachybase/schema"),require("react-i18next"),require("@ant-design/icons"),require("react"),require("@tego/client"),require("antd"),require("lodash"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","@tachybase/schema","react-i18next","@ant-design/icons","react","@tego/client","antd","lodash","react-router-dom"],e):(d=typeof globalThis!="undefined"?globalThis:d||self,e(d["@tachybase/plugin-action-bulk-edit"]={},d["@tachybase/client"],d.jsxRuntime,d["@tachybase/schema"],d["react-i18next"],d["@ant-design/icons"],d.react,d["@tego/client"],d.antd,d.lodash,d["react-router-dom"]))})(this,function(d,e,s,c,b,j,k,A,C,I,Y){"use strict";var fe=Object.defineProperty,Se=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var K=(d,e,s)=>e in d?fe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[e]=s,T=(d,e)=>{for(var s in e||(e={}))Q.call(e,s)&&K(d,s,e[s]);if(N)for(var s of N(e))R.call(e,s)&&K(d,s,e[s]);return d},P=(d,e)=>Se(d,ye(e));var X=(d,e)=>{var s={};for(var c in d)Q.call(d,c)&&e.indexOf(c)<0&&(s[c]=d[c]);if(d!=null&&N)for(var c of N(d))e.indexOf(c)<0&&R.call(d,c)&&(s[c]=d[c]);return s};var M=(d,e,s)=>new Promise((c,b)=>{var j=C=>{try{A(s.next(C))}catch(I){b(I)}},k=C=>{try{A(s.throw(C))}catch(I){b(I)}},A=C=>C.done?c(C.value):Promise.resolve(C.value).then(j,k);A((s=s.apply(d,e)).next())});function Z(){var r;const{dn:t}=e.useDesignable(),{t:n}=b.useTranslation(),o=c.useFieldSchema();return s.jsx(e.SchemaSettingsSelectItem,{title:n("Data will be updated"),options:[{label:n("Selected"),value:"selected"},{label:n("All"),value:"all"}],value:(r=o==null?void 0:o["x-action-settings"])==null?void 0:r.updateMode,onChange:a=>{o["x-action-settings"].updateMode=a,t.emit("patch",{schema:{"x-uid":o["x-uid"],"x-action-settings":o["x-action-settings"]}}),t.refresh()}})}function ee(t={}){const{t:n}=b.useTranslation(),o=c.useFieldSchema();return!((o==null?void 0:o.parent["x-component"])==="CollectionField")&&s.jsxs(s.Fragment,{children:[s.jsx(e.SchemaSettingsDivider,{}),s.jsx(e.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,breakRemoveOn:a=>a["x-component"]==="Space"||a["x-component"].endsWith("ActionBar"),confirm:{title:n("Delete action"),onOk:t.onConfirmOk}})]})}const te=new e.SchemaSettings({name:"actionSettings:bulkEdit",items:[{name:"editButton",Component:e.ActionDesigner.ButtonEditor,useComponentProps(){const{buttonEditorProps:t}=e.useSchemaToolbar();return t}},{name:"openMode",Component:e.SchemaInitializerOpenModeSchemaItems,useComponentProps(){const t=c.useFieldSchema(),n=["create","update","view","customize:popup","duplicate","customize:create"].includes(t["x-action"]||"");return{openMode:n,openSize:n}}},{name:"updateMode",Component:Z},{name:"remove",sort:100,Component:ee,useComponentProps(){const{removeButtonProps:t}=e.useSchemaToolbar();return t}}]}),oe=()=>{const t={type:"void",title:'{{t("Bulk edit")}}',"x-component":"Action","x-action":"customize:bulkEdit","x-action-settings":{updateMode:"selected"},"x-component-props":{openMode:"drawer",icon:"EditOutlined"},properties:{drawer:{type:"void",title:'{{t("Bulk edit")}}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializersForBulkEditFormBlock",properties:{tab1:{type:"void",title:'{{t("Bulk edit")}}',"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"popup:bulkEdit:addBlock",properties:{}}}}}}}}}},n=e.useSchemaInitializerItem();return s.jsx(e.BlockInitializer,P(T({},n),{schema:t,item:n}))};function ne(t){const{collectionName:n,association:o,dataSource:r}=t,a=o||n;if(!n||!r)throw new Error("collectionName and dataSource are required");return{type:"void","x-acl-action-props":{skipScopeCheck:!0},"x-acl-action":`${a}:create`,"x-decorator":"FormBlockProvider","x-decorator-props":{dataSource:r,collection:n,association:o},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:createForm","x-component":"CardItem",properties:{[c.uid()]:{type:"void","x-component":"FormV2","x-use-component-props":"useCreateFormBlockProps",properties:{grid:{type:"void","x-component":"Grid","x-initializer":"bulkEditForm:configureFields",properties:{}},[c.uid()]:{type:"void","x-initializer":"bulkEditForm:configureActions","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}}}}}}}}const ie=()=>{const g=e.useSchemaInitializerItem(),{onCreateBlockSchema:n,componentType:o,createBlockSchema:r}=g,a=X(g,["onCreateBlockSchema","componentType","createBlockSchema"]),{insert:p}=e.useSchemaInitializer(),{getTemplateSchemaByMode:u}=e.useSchemaTemplateManager(),S=e.useBlockAssociationContext(),l=e.useCollection_deprecated();return s.jsx(e.SchemaInitializerItem,P(T({icon:s.jsx(j.FormOutlined,{})},a),{onClick:h=>M(null,[h],function*({item:i}){if(i.template){const m=yield u(i);if(i.template.componentName==="FormItem"){const y=e.createCreateFormBlockUISchema(S?{association:S,dataSource:l.dataSource,templateSchema:m}:{collectionName:l.name,dataSource:l.dataSource,templateSchema:m});i.mode==="reference"&&(y["x-template-key"]=i.template.key),p(y)}else p(m)}else p(ne({association:S,collectionName:l.name,dataSource:l.dataSource}))}),items:e.useRecordCollectionDataSourceItems("FormItem")}))},re=new e.SchemaInitializer({name:"popup:bulkEdit:addBlock",wrap:e.gridRowColWrap,title:'{{t("Add block")}}',icon:"PlusOutlined",items:[{type:"itemGroup",title:'{{t("Data blocks")}}',name:"dataBlocks",children:[{name:"form",title:'{{t("Form")}}',Component:ie}]},{type:"itemGroup",title:'{{t("Other blocks")}}',name:"otherBlocks",children:[{name:"markdown",title:'{{t("Demonstration text")}}',Component:"MarkdownBlockInitializer"}]}]}),ae=t=>{const n={title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCustomizeBulkEditActionProps","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:updateSubmit","x-component-props":{type:"primary",htmlType:"submit"}};return s.jsx(e.ActionInitializer,P(T({},t),{schema:n}))},se=new e.SchemaInitializer({name:"bulkEditForm:configureActions",title:'{{t("Configure actions")}}',icon:"SettingOutlined",items:[{type:"itemGroup",title:'{{t("Enable actions")}}',name:"enableActions",children:[{name:"submit",title:'{{t("Submit")}}',Component:ae,schema:{"x-action-settings":{}}}]}]}),ce=t=>{const n=c.useField(),o=c.useFieldSchema(),{name:r,interface:a,uiSchema:p}=e.useCollectionField_deprecated(),u=e.useComponent(p==null?void 0:p["x-component"]),S=e.useCompile(),l=(h,m)=>{n[h]=typeof n[h]=="undefined"?m:n[h]},g=()=>{typeof o.required=="undefined"&&(n.required=!!p.required)},i=e.useFormBlockContext();return k.useEffect(()=>{i!=null&&i.field&&(i.field.added=i.field.added||new Set,i.field.added.add(o.name))}),k.useEffect(()=>{if(!p)return;l("content",p["x-content"]),l("description",p.description),l("initialValue",p.default),o["x-disabled"]===!0&&(n.disabled=!0),o["x-read-pretty"]===!0&&(n.readPretty=!0),g(),n.dataSource=p.enum;const h=S(p["x-component-props"])||{},m=c.merge(h,n.componentProps||{});n.componentProps=m},[JSON.stringify(p)]),p?k.createElement(u,t,t.children):null},de=c.connect(t=>{const n=c.useFieldSchema();return s.jsx(e.CollectionFieldProvider,{name:n.name,children:s.jsx(ce,T({},t))})});var B=(t=>(t[t.RemainsTheSame=1]="RemainsTheSame",t[t.ChangedTo=2]="ChangedTo",t[t.Clear=3]="Clear",t[t.AddAttach=4]="AddAttach",t))(B||{});const pe=t=>{const{t:n}=b.useTranslation(),o=c.useFieldSchema(),r=c.useField(),[a,p]=k.useState(2),[u,S]=k.useState(null),{getField:l}=e.useCollection_deprecated(),g=l(o.name)||{};k.useEffect(()=>{r.value={[a]:u}},[a,u]);const i=m=>{p(m)},h=m=>{var y,f,v,z;S((z=(v=(y=m==null?void 0:m.target)==null?void 0:y.value)!=null?v:(f=m==null?void 0:m.target)==null?void 0:f.checked)!=null?z:m)};return s.jsxs(C.Space,{className:e.css`
2
2
  display: flex;
3
3
  > .ant-space-item {
4
4
  width: 100%;
5
5
  }
6
- `,children:[c.jsxs(C.Select,{defaultValue:a,value:a,onChange:i,children:[c.jsx(C.Select.Option,{value:1,children:n("Remains the same")}),c.jsx(C.Select.Option,{value:2,children:n("Changed to")}),c.jsx(C.Select.Option,{value:3,children:n("Clear")})]}),[2,4].includes(a)&&(g==null?void 0:g.interface)!=="checkbox"&&c.jsx(pe,w(T({},t),{value:u,onChange:h,style:{minWidth:150}})),[2,4].includes(a)&&(g==null?void 0:g.interface)==="checkbox"&&c.jsx(C.Checkbox,{checked:u,onChange:h})]})},me=t=>{const{name:n,fields:o}=e.useCollection_deprecated(),{getInterface:r,getCollection:a}=e.useCollectionManager_deprecated(),p=d.useForm(),{readPretty:u=p.readPretty,block:S="Form"}=t||{},l=e.useRemoveGridFormItem();return k.useMemo(()=>o==null?void 0:o.filter(i=>{var h;return(i==null?void 0:i.interface)&&!((h=i==null?void 0:i.uiSchema)!=null&&h["x-read-pretty"])&&i.interface!=="snapshot"&&i.type!=="sequence"}).map(i=>{var y,f,v;const h=r(i.interface),m={type:"string",name:i.name,title:((y=i==null?void 0:i.uiSchema)==null?void 0:y.title)||i.name,"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:BulkEditFormItem","x-component":"BulkEditField","x-decorator":"FormItem","x-collection-field":`${n}.${i.name}`};return{name:((f=i==null?void 0:i.uiSchema)==null?void 0:f.title)||i.name,type:"item",title:((v=i==null?void 0:i.uiSchema)==null?void 0:v.title)||i.name,Component:"CollectionFieldInitializer",remove:l,schemaInitialize:A=>{var E;(E=h==null?void 0:h.schemaInitialize)==null||E.call(h,A,{field:i,block:S,readPretty:u,targetCollection:a(i.target)})},schema:m}}),[o])},ue=()=>{var A,E,U,V;const t=d.useForm(),{t:n}=b.useTranslation(),{field:o,resource:r,__parent:a}=e.useBlockRequestContext(),p=k.useContext(d.SchemaExpressionScopeContext),u=e.useActionContext(),S=Z.useNavigate(),l=e.useCompile(),g=d.useField(),i=e.useTableBlockContext(),{modal:h}=C.App.useApp(),{rowKey:m}=i,y=(V=(U=(E=(A=i.field)==null?void 0:A.data)==null?void 0:E.selectedRowKeys)!=null?U:p==null?void 0:p.selectedRecordKeys)!=null?V:{},{setVisible:f,fieldSchema:v}=u;return{onClick(){return M(this,null,function*(){var L,W,_,J,D,H,O,K;const{onSuccess:x,skipValidator:ge,updateMode:Ce}=(L=v==null?void 0:v["x-action-settings"])!=null?L:{},{filter:fe}=(_=(W=a.service.params)==null?void 0:W[0])!=null?_:{};ge||(yield t.submit());const z=I.cloneDeep(t.values);g.data=o.data||{},g.data.loading=!0;for(const F in z)if(Object.prototype.hasOwnProperty.call(z,F)){const q=z[F];B.Clear in q?z[F]=null:B.ChangedTo in q?z[F]=q[B.ChangedTo]:B.RemainsTheSame in q&&delete z[F]}try{const F={values:z,filter:fe,forceUpdate:!1};if(Ce==="selected"){if(!(y!=null&&y.length)){C.message.error(n("Please select the records to be updated"));return}F.filter={$and:[{[m||"id"]:{$in:y}}]}}if(F.filter||(F.forceUpdate=!0),yield r.update(F),g.data.loading=!1,r instanceof e.TableFieldResource||(H=(D=(J=a==null?void 0:a.__parent)==null?void 0:J.service)==null?void 0:D.refresh)==null||H.call(D),(K=(O=a==null?void 0:a.service)==null?void 0:O.refresh)==null||K.call(O),f==null||f(!1),!(x!=null&&x.successMessage))return;x!=null&&x.manualClose?h.success({title:l(x==null?void 0:x.successMessage),onOk:()=>M(null,null,function*(){yield t.reset(),x!=null&&x.redirecting&&(x!=null&&x.redirectTo)&&(P.isURL(x.redirectTo)?window.location.href=x.redirectTo:S(x.redirectTo))})}):C.message.success(l(x==null?void 0:x.successMessage))}finally{g.data.loading=!1}})}}},he=new e.SchemaInitializer({name:"bulkEditForm:configureFields",wrap:e.gridRowColWrap,icon:"SettingOutlined",title:'{{t("Configure fields")}}',items:[{name:"displayFields",type:"itemGroup",title:'{{t("Display fields")}}',useChildren:me},{name:"divider",type:"divider"},{name:"addText",title:'{{t("Add text")}}',Component:"BlockItemInitializer",schema:{type:"void","x-editable":!1,"x-decorator":"FormItem","x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:markdown","x-component":"Markdown.Void","x-component-props":{content:'{{t("This is a demo text, **supports Markdown syntax**.")}}'}}}]}),xe=new e.SchemaSettings({name:"fieldSettings:BulkEditFormItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=b.useTranslation();return{title:t("Generic properties")}},useChildren(){return[{name:"editFieldTitle",type:"modal",useComponentProps(){var S;const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=d.useField(),r=d.useFieldSchema(),{getCollectionJoinField:a}=e.useCollectionManager_deprecated(),{dataSource:p}=e.useCollection_deprecated(),u=a(r["x-collection-field"],p);return{title:t("Edit field title"),schema:{type:"object",title:t("Edit field title"),properties:{title:{title:t("Field title"),default:o==null?void 0:o.title,description:`${t("Original field title: ")}${(S=u==null?void 0:u.uiSchema)==null?void 0:S.title}`,"x-decorator":"FormItem","x-component":"Input","x-component-props":{}}}},onSubmit({title:l}){l&&(o.title=l,r.title=l,n.emit("patch",{schema:{"x-uid":r["x-uid"],title:r.title}})),n.refresh()}}}},{name:"displayTitle",type:"switch",useComponentProps(){var a,p;const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=d.useField(),r=d.useFieldSchema();return{title:t("Display title"),checked:(p=(a=r["x-decorator-props"])==null?void 0:a.showTitle)!=null?p:!0,onChange(u){r["x-decorator-props"]=r["x-decorator-props"]||{},r["x-decorator-props"].showTitle=u,o.decoratorProps.showTitle=u,n.emit("patch",{schema:{"x-uid":r["x-uid"],"x-decorator-props":w(T({},r["x-decorator-props"]),{showTitle:u})}}),n.refresh()}}}},{name:"editDescription",type:"modal",useComponentProps(){const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=d.useField(),r=d.useFieldSchema();return{title:t("Edit description"),schema:{type:"object",title:t("Edit description"),properties:{description:{default:o==null?void 0:o.description,"x-decorator":"FormItem","x-component":"Input.TextArea","x-component-props":{}}}},onSubmit({description:a}){o.description=a,r.description=a,n.emit("patch",{schema:{"x-uid":r["x-uid"],description:r.description}}),n.refresh()}}}},{name:"editTooltip",type:"modal",useComponentProps(){var a;const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=d.useField(),r=d.useFieldSchema();return{title:t("Edit tooltip"),schema:{type:"object",title:t("Edit tooltip"),properties:{tooltip:{default:(a=r==null?void 0:r["x-decorator-props"])==null?void 0:a.tooltip,"x-decorator":"FormItem","x-component":"Input.TextArea","x-component-props":{}}}},onSubmit({tooltip:p}){o.decoratorProps.tooltip=p,r["x-decorator-props"]=r["x-decorator-props"]||{},r["x-decorator-props"].tooltip=p,n.emit("patch",{schema:{"x-uid":r["x-uid"],"x-decorator-props":r["x-decorator-props"]}}),n.refresh()}}}},{name:"setValidationRules",type:"modal",useComponentProps(){const{t}=b.useTranslation(),n=d.useField(),o=d.useFieldSchema(),{dn:r,refresh:a}=e.useDesignable(),p=e.useValidateSchema(),{getCollectionJoinField:u}=e.useCollectionManager_deprecated(),{dataSource:S}=e.useCollection_deprecated(),l=u(o["x-collection-field"],S);return{title:t("Set validation rules"),components:{ArrayCollapse:G.ArrayCollapse,FormLayout:G.FormLayout},schema:{type:"object",title:t("Set validation rules"),properties:{rules:{type:"array",default:o==null?void 0:o["x-validator"],"x-component":"ArrayCollapse","x-decorator":"FormItem","x-component-props":{accordion:!0},maxItems:3,items:{type:"object","x-component":"ArrayCollapse.CollapsePanel","x-component-props":{header:'{{ t("Validation rule") }}'},properties:{index:{type:"void","x-component":"ArrayCollapse.Index"},layout:{type:"void","x-component":"FormLayout","x-component-props":{labelStyle:{marginTop:"6px"},labelCol:8,wrapperCol:16},properties:w(T({},p),{message:{type:"string",title:'{{ t("Error message") }}',"x-decorator":"FormItem","x-component":"Input.TextArea","x-component-props":{autoSize:{minRows:2,maxRows:2}}}})},remove:{type:"void","x-component":"ArrayCollapse.Remove"},moveUp:{type:"void","x-component":"ArrayCollapse.MoveUp"},moveDown:{type:"void","x-component":"ArrayCollapse.MoveDown"}}},properties:{add:{type:"void",title:'{{ t("Add validation rule") }}',"x-component":"ArrayCollapse.Addition","x-reactions":{dependencies:["rules"],fulfill:{state:{disabled:"{{$deps[0].length >= 3}}"}}}}}}}},onSubmit(g){var y;const i=[];for(const f of g.rules)i.push(I.pickBy(f,I.identity));const h={"x-uid":o["x-uid"]};if(["percent"].includes(l==null?void 0:l.interface))for(const f of i)(f.maxValue||f.minValue)&&(f.percentMode=!0),f.percentFormat&&(f.percentFormats=!0);const m=I.concat([],((y=l==null?void 0:l.uiSchema)==null?void 0:y["x-validator"])||[],i);n.validator=m,o["x-validator"]=i,h["x-validator"]=i,r.emit("patch",{schema:h}),a()}}},useVisible(){const{form:t}=e.useFormBlockContext(),n=e.useIsFormReadPretty(),o=e.useValidateSchema();return!!(t&&!n&&o)}}]}},{name:"componentOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=b.useTranslation();return{title:t("Specific properties")}},useChildren(){const t=e.useApp(),n=e.useFieldComponentName(),o=t.schemaSettingsManager.get(`fieldSettings:component:${n}`);return(o==null?void 0:o.items)||[]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=b.useTranslation();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:{"x-component":"Grid"}}}}]});class $ extends e.Plugin{load(){return M(this,null,function*(){this.app.addComponents({BulkEditField:le}),this.app.addScopes({useCustomizeBulkEditActionProps:ue}),this.app.schemaSettingsManager.add(oe),this.app.schemaSettingsManager.add(xe),this.app.schemaInitializerManager.add(he),this.app.schemaInitializerManager.add(ae),this.app.schemaInitializerManager.add(ce);const n={type:"item",title:'{{t("Bulk edit")}}',name:"bulkEdit",Component:ne,schema:{"x-align":"right","x-decorator":"ACLActionProvider","x-action":"customize:bulkEdit","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:bulkEdit","x-acl-action":"update","x-acl-action-props":{skipScopeCheck:!0}},useVisible(){const o=e.useCollection();return(o.template!=="view"||(o==null?void 0:o.writableView))&&o.template!=="file"&&o.template!=="sql"}};this.app.schemaInitializerManager.addItem("table:configureActions","customize.bulkEdit",n),this.app.schemaInitializerManager.addItem("gantt:configureActions","customize.bulkEdit",n),this.app.schemaInitializerManager.addItem("map:configureActions","customize.bulkEdit",n)})}}s.PluginActionBulkEditClient=$,s.default=$,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
6
+ `,children:[s.jsxs(C.Select,{defaultValue:a,value:a,onChange:i,children:[s.jsx(C.Select.Option,{value:1,children:n("Remains the same")}),s.jsx(C.Select.Option,{value:2,children:n("Changed to")}),s.jsx(C.Select.Option,{value:3,children:n("Clear")})]}),[2,4].includes(a)&&(g==null?void 0:g.interface)!=="checkbox"&&s.jsx(de,P(T({},t),{value:u,onChange:h,style:{minWidth:150}})),[2,4].includes(a)&&(g==null?void 0:g.interface)==="checkbox"&&s.jsx(C.Checkbox,{checked:u,onChange:h})]})},le=t=>{const{name:n,fields:o}=e.useCollection_deprecated(),{getInterface:r,getCollection:a}=e.useCollectionManager_deprecated(),p=c.useForm(),{readPretty:u=p.readPretty,block:S="Form"}=t||{},l=e.useRemoveGridFormItem();return k.useMemo(()=>o==null?void 0:o.filter(i=>{var h;return(i==null?void 0:i.interface)&&!((h=i==null?void 0:i.uiSchema)!=null&&h["x-read-pretty"])&&i.interface!=="snapshot"&&i.type!=="sequence"}).map(i=>{var y,f,v;const h=r(i.interface),m={type:"string",name:i.name,title:((y=i==null?void 0:i.uiSchema)==null?void 0:y.title)||i.name,"x-toolbar":"FormItemSchemaToolbar","x-settings":"fieldSettings:BulkEditFormItem","x-component":"BulkEditField","x-decorator":"FormItem","x-collection-field":`${n}.${i.name}`};return{name:((f=i==null?void 0:i.uiSchema)==null?void 0:f.title)||i.name,type:"item",title:((v=i==null?void 0:i.uiSchema)==null?void 0:v.title)||i.name,Component:"CollectionFieldInitializer",remove:l,schemaInitialize:z=>{var E;(E=h==null?void 0:h.schemaInitialize)==null||E.call(h,z,{field:i,block:S,readPretty:u,targetCollection:a(i.target)})},schema:m}}),[o])},me=()=>{var z,E,$,U;const t=c.useForm(),{t:n}=b.useTranslation(),{field:o,resource:r,__parent:a}=e.useBlockRequestContext(),p=k.useContext(c.SchemaExpressionScopeContext),u=e.useActionContext(),S=Y.useNavigate(),l=e.useCompile(),g=c.useField(),i=e.useTableBlockContext(),{modal:h}=C.App.useApp(),{rowKey:m}=i,y=(U=($=(E=(z=i.field)==null?void 0:z.data)==null?void 0:E.selectedRowKeys)!=null?$:p==null?void 0:p.selectedRecordKeys)!=null?U:{},{setVisible:f,fieldSchema:v}=u;return{onClick(){return M(this,null,function*(){var V,L,W,_,D,J,O,H;const{onSuccess:x,skipValidator:xe,updateMode:ge}=(V=v==null?void 0:v["x-action-settings"])!=null?V:{},{filter:Ce}=(W=(L=a.service.params)==null?void 0:L[0])!=null?W:{};xe||(yield t.submit());const w=I.cloneDeep(t.values);g.data=o.data||{},g.data.loading=!0;for(const F in w)if(Object.prototype.hasOwnProperty.call(w,F)){const q=w[F];B.Clear in q?w[F]=null:B.ChangedTo in q?w[F]=q[B.ChangedTo]:B.RemainsTheSame in q&&delete w[F]}try{const F={values:w,filter:Ce,forceUpdate:!1};if(ge==="selected"){if(!(y!=null&&y.length)){C.message.error(n("Please select the records to be updated"));return}F.filter={$and:[{[m||"id"]:{$in:y}}]}}if(F.filter||(F.forceUpdate=!0),yield r.update(F),g.data.loading=!1,r instanceof e.TableFieldResource||(J=(D=(_=a==null?void 0:a.__parent)==null?void 0:_.service)==null?void 0:D.refresh)==null||J.call(D),(H=(O=a==null?void 0:a.service)==null?void 0:O.refresh)==null||H.call(O),f==null||f(!1),!(x!=null&&x.successMessage))return;x!=null&&x.manualClose?h.success({title:l(x==null?void 0:x.successMessage),onOk:()=>M(null,null,function*(){yield t.reset(),x!=null&&x.redirecting&&(x!=null&&x.redirectTo)&&(A.isURL(x.redirectTo)?window.location.href=x.redirectTo:S(x.redirectTo))})}):C.message.success(l(x==null?void 0:x.successMessage))}finally{g.data.loading=!1}})}}},ue=new e.SchemaInitializer({name:"bulkEditForm:configureFields",wrap:e.gridRowColWrap,icon:"SettingOutlined",title:'{{t("Configure fields")}}',items:[{name:"displayFields",type:"itemGroup",title:'{{t("Display fields")}}',useChildren:le},{name:"divider",type:"divider"},{name:"addText",title:'{{t("Add text")}}',Component:"BlockItemInitializer",schema:{type:"void","x-editable":!1,"x-decorator":"FormItem","x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:markdown","x-component":"Markdown.Void","x-component-props":{content:'{{t("This is a demo text, **supports Markdown syntax**.")}}'}}}]}),he=new e.SchemaSettings({name:"fieldSettings:BulkEditFormItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=b.useTranslation();return{title:t("Generic properties")}},useChildren(){return[{name:"editFieldTitle",type:"modal",useComponentProps(){var S;const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=c.useField(),r=c.useFieldSchema(),{getCollectionJoinField:a}=e.useCollectionManager_deprecated(),{dataSource:p}=e.useCollection_deprecated(),u=a(r["x-collection-field"],p);return{title:t("Edit field title"),schema:{type:"object",title:t("Edit field title"),properties:{title:{title:t("Field title"),default:o==null?void 0:o.title,description:`${t("Original field title: ")}${(S=u==null?void 0:u.uiSchema)==null?void 0:S.title}`,"x-decorator":"FormItem","x-component":"Input","x-component-props":{}}}},onSubmit({title:l}){l&&(o.title=l,r.title=l,n.emit("patch",{schema:{"x-uid":r["x-uid"],title:r.title}})),n.refresh()}}}},{name:"displayTitle",type:"switch",useComponentProps(){var a,p;const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=c.useField(),r=c.useFieldSchema();return{title:t("Display title"),checked:(p=(a=r["x-decorator-props"])==null?void 0:a.showTitle)!=null?p:!0,onChange(u){r["x-decorator-props"]=r["x-decorator-props"]||{},r["x-decorator-props"].showTitle=u,o.decoratorProps.showTitle=u,n.emit("patch",{schema:{"x-uid":r["x-uid"],"x-decorator-props":P(T({},r["x-decorator-props"]),{showTitle:u})}}),n.refresh()}}}},{name:"editDescription",type:"modal",useComponentProps(){const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=c.useField(),r=c.useFieldSchema();return{title:t("Edit description"),schema:{type:"object",title:t("Edit description"),properties:{description:{default:o==null?void 0:o.description,"x-decorator":"FormItem","x-component":"Input.TextArea","x-component-props":{}}}},onSubmit({description:a}){o.description=a,r.description=a,n.emit("patch",{schema:{"x-uid":r["x-uid"],description:r.description}}),n.refresh()}}}},{name:"editTooltip",type:"modal",useComponentProps(){var a;const{t}=b.useTranslation(),{dn:n}=e.useDesignable(),o=c.useField(),r=c.useFieldSchema();return{title:t("Edit tooltip"),schema:{type:"object",title:t("Edit tooltip"),properties:{tooltip:{default:(a=r==null?void 0:r["x-decorator-props"])==null?void 0:a.tooltip,"x-decorator":"FormItem","x-component":"Input.TextArea","x-component-props":{}}}},onSubmit({tooltip:p}){o.decoratorProps.tooltip=p,r["x-decorator-props"]=r["x-decorator-props"]||{},r["x-decorator-props"].tooltip=p,n.emit("patch",{schema:{"x-uid":r["x-uid"],"x-decorator-props":r["x-decorator-props"]}}),n.refresh()}}}},{name:"setValidationRules",type:"modal",useComponentProps(){const{t}=b.useTranslation(),n=c.useField(),o=c.useFieldSchema(),{dn:r,refresh:a}=e.useDesignable(),p=e.useValidateSchema(),{getCollectionJoinField:u}=e.useCollectionManager_deprecated(),{dataSource:S}=e.useCollection_deprecated(),l=u(o["x-collection-field"],S);return{title:t("Set validation rules"),components:{ArrayCollapse:A.ArrayCollapse,FormLayout:A.FormLayout},schema:{type:"object",title:t("Set validation rules"),properties:{rules:{type:"array",default:o==null?void 0:o["x-validator"],"x-component":"ArrayCollapse","x-decorator":"FormItem","x-component-props":{accordion:!0},maxItems:3,items:{type:"object","x-component":"ArrayCollapse.CollapsePanel","x-component-props":{header:'{{ t("Validation rule") }}'},properties:{index:{type:"void","x-component":"ArrayCollapse.Index"},layout:{type:"void","x-component":"FormLayout","x-component-props":{labelStyle:{marginTop:"6px"},labelCol:8,wrapperCol:16},properties:P(T({},p),{message:{type:"string",title:'{{ t("Error message") }}',"x-decorator":"FormItem","x-component":"Input.TextArea","x-component-props":{autoSize:{minRows:2,maxRows:2}}}})},remove:{type:"void","x-component":"ArrayCollapse.Remove"},moveUp:{type:"void","x-component":"ArrayCollapse.MoveUp"},moveDown:{type:"void","x-component":"ArrayCollapse.MoveDown"}}},properties:{add:{type:"void",title:'{{ t("Add validation rule") }}',"x-component":"ArrayCollapse.Addition","x-reactions":{dependencies:["rules"],fulfill:{state:{disabled:"{{$deps[0].length >= 3}}"}}}}}}}},onSubmit(g){var y;const i=[];for(const f of g.rules)i.push(I.pickBy(f,I.identity));const h={"x-uid":o["x-uid"]};if(["percent"].includes(l==null?void 0:l.interface))for(const f of i)(f.maxValue||f.minValue)&&(f.percentMode=!0),f.percentFormat&&(f.percentFormats=!0);const m=I.concat([],((y=l==null?void 0:l.uiSchema)==null?void 0:y["x-validator"])||[],i);n.validator=m,o["x-validator"]=i,h["x-validator"]=i,r.emit("patch",{schema:h}),a()}}},useVisible(){const{form:t}=e.useFormBlockContext(),n=e.useIsFormReadPretty(),o=e.useValidateSchema();return!!(t&&!n&&o)}}]}},{name:"componentOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=b.useTranslation();return{title:t("Specific properties")}},useChildren(){const t=e.useApp(),n=e.useFieldComponentName(),o=t.schemaSettingsManager.get(`fieldSettings:component:${n}`);return(o==null?void 0:o.items)||[]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=b.useTranslation();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:{"x-component":"Grid"}}}}]});class G extends e.Plugin{load(){return M(this,null,function*(){this.app.addComponents({BulkEditField:pe}),this.app.addScopes({useCustomizeBulkEditActionProps:me}),this.app.schemaSettingsManager.add(te),this.app.schemaSettingsManager.add(he),this.app.schemaInitializerManager.add(ue),this.app.schemaInitializerManager.add(re),this.app.schemaInitializerManager.add(se);const n={type:"item",title:'{{t("Bulk edit")}}',name:"bulkEdit",Component:oe,schema:{"x-align":"right","x-decorator":"ACLActionProvider","x-action":"customize:bulkEdit","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:bulkEdit","x-acl-action":"update","x-acl-action-props":{skipScopeCheck:!0}},useVisible(){const o=e.useCollection();return(o.template!=="view"||(o==null?void 0:o.writableView))&&o.template!=="file"&&o.template!=="sql"}};this.app.schemaInitializerManager.addItem("table:configureActions","customize.bulkEdit",n),this.app.schemaInitializerManager.addItem("gantt:configureActions","customize.bulkEdit",n),this.app.schemaInitializerManager.addItem("map:configureActions","customize.bulkEdit",n)})}}d.PluginActionBulkEditClient=G,d.default=G,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,14 +1,13 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.21",
4
- "@tachybase/schema": "1.3.21",
3
+ "@tachybase/client": "1.3.22",
4
+ "@tachybase/schema": "1.3.39",
5
5
  "antd": "5.22.5",
6
6
  "react-i18next": "15.2.0",
7
- "@ant-design/icons": "5.5.2",
8
- "@tachybase/components": "1.3.21",
7
+ "@ant-design/icons": "5.6.1",
8
+ "@tego/client": "1.3.39",
9
9
  "lodash": "4.17.21",
10
- "@tachybase/utils": "1.3.21",
11
10
  "react-router-dom": "6.28.1",
12
- "@tachybase/server": "1.3.21",
13
- "@tachybase/test": "1.3.21"
11
+ "@tego/server": "1.3.39",
12
+ "@tachybase/test": "1.3.39"
14
13
  };
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginActionBulkEditServer extends Plugin {
3
3
  }
4
4
  export default PluginActionBulkEditServer;
@@ -21,7 +21,7 @@ __export(plugin_exports, {
21
21
  default: () => plugin_default
22
22
  });
23
23
  module.exports = __toCommonJS(plugin_exports);
24
- var import_server = require("@tachybase/server");
24
+ var import_server = require("@tego/server");
25
25
  class PluginActionBulkEditServer extends import_server.Plugin {
26
26
  }
27
27
  var plugin_default = PluginActionBulkEditServer;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-action-bulk-edit",
3
3
  "displayName": "Action: Batch edit",
4
- "version": "1.3.21",
4
+ "version": "1.3.22",
5
5
  "description": "Batch edit all records or selected records.",
6
6
  "keywords": [
7
7
  "Actions"
@@ -10,23 +10,18 @@
10
10
  "main": "dist/server/index.js",
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
- "@ant-design/icons": "^5.5.2",
13
+ "@ant-design/icons": "^5.6.1",
14
+ "@tachybase/schema": "^1.3.39",
15
+ "@tachybase/test": "^1.3.39",
16
+ "@tego/client": "^1.3.39",
17
+ "@tego/server": "^1.3.39",
14
18
  "antd": "5.22.5",
15
19
  "lodash": "4.17.21",
16
- "react-i18next": "^15.2.0",
20
+ "react-i18next": "15.2.0",
17
21
  "react-router-dom": "6.28.1",
18
- "@tachybase/components": "1.3.21",
19
- "@tachybase/schema": "1.3.21"
20
- },
21
- "peerDependencies": {
22
- "@tachybase/client": "1.3.21",
23
- "@tachybase/server": "1.3.21",
24
- "@tachybase/test": "1.3.21",
25
- "@tachybase/utils": "1.3.21"
22
+ "@tachybase/client": "1.3.22"
26
23
  },
27
24
  "description.zh-CN": "对全部数据或选中的数据进行批量编辑。",
28
25
  "displayName.zh-CN": "操作:批量编辑",
29
- "scripts": {
30
- "build": "tachybase-build --no-dts @tachybase/plugin-action-bulk-edit"
31
- }
26
+ "scripts": {}
32
27
  }