@nocobase/plugin-data-source-manager 1.3.21-beta → 1.3.23-beta
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.txt +11 -9
- package/dist/client/index.js +2 -2
- package/dist/externalVersion.js +7 -7
- package/package.json +2 -2
package/LICENSE.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Updated Date:
|
|
1
|
+
Updated Date: September 17, 2024
|
|
2
2
|
|
|
3
3
|
NocoBase License Agreement
|
|
4
4
|
|
|
@@ -92,21 +92,23 @@ Except for Third-Party Open Source Software, the Company owns all copyrights, tr
|
|
|
92
92
|
|
|
93
93
|
7.1 It is not allowed to remove or change all intellectual property statements about NocoBase in the code.
|
|
94
94
|
|
|
95
|
-
7.2 It is not allowed to sell, transfer, lease, share, or
|
|
95
|
+
7.2 It is not allowed to sell, transfer, lease, share, or distribute the Commercial License.
|
|
96
96
|
|
|
97
|
-
7.3 It is not allowed to
|
|
97
|
+
7.3 It is not allowed to sell, transfer, lease, share, or distribute any form of no-code, zero-code, low-code platform, or developer tools developed based on Software.
|
|
98
98
|
|
|
99
|
-
7.4 It is not allowed
|
|
99
|
+
7.4 It is not allowed to provide any form of no-code, zero-code, low-code platform SaaS products to the public using the original or modified Software.
|
|
100
100
|
|
|
101
|
-
7.5 It is not allowed
|
|
101
|
+
7.5 It is not allowed for Users with a standard license to sell Upper Layer Application to clients without a commercial license.
|
|
102
102
|
|
|
103
|
-
7.6 It is not allowed to
|
|
103
|
+
7.6 It is not allowed to use reverse engineering, decompilation, and other means to try to discover the source code of Commercial Plugins that have not obtained source code license.
|
|
104
104
|
|
|
105
|
-
7.7 It is not allowed to
|
|
105
|
+
7.7 It is not allowed to disclose the source code of Commercial Plugins to any third party.
|
|
106
106
|
|
|
107
|
-
7.8
|
|
107
|
+
7.8 It is not allowed to publicly sell plugins developed for Software outside of the Marketplace.
|
|
108
108
|
|
|
109
|
-
7.9 If there
|
|
109
|
+
7.9 If there is a violation of the above obligations or the terms of this Agreement, the rights owned by the User will be immediately terminated, the paid fees will not be refunded, and the Company reserves the right to pursue the User's legal responsibility.
|
|
110
|
+
|
|
111
|
+
7.10 If there are other agreements in the contract for the above obligations, the contract agreement shall prevail.
|
|
110
112
|
|
|
111
113
|
=============================================================
|
|
112
114
|
8. Legal Jurisdiction, Interpretation, and Dispute Resolution
|
package/dist/client/index.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
min-width: 50px;
|
|
33
33
|
flex: 0;
|
|
34
34
|
}
|
|
35
|
-
`,bt="Default title for each record",mn=e=>{const t=r.useCompile(),{getInterface:o}=r.useCollectionManager_deprecated(),{t:n}=N.useTranslation(),{setState:i}=r.useResourceActionContext(),{targetKey:s}=e.collectionResource||{},c=r.useRecord(),[l,m]=d.useState(null),{refreshCM:u,isTitleField:g,getTemplate:f}=r.useCollectionManager_deprecated(),{[s]:b,titleField:_,template:T}=c,$=f(T),x=r.useAPIClient(),y=d.useContext(Te),h=[{dataIndex:["uiSchema","title"],title:n("Field display name"),render:p=>a.jsx("div",{style:{marginLeft:7},children:t(p)})},{dataIndex:"name",title:n("Field name")},{dataIndex:"interface",title:n("Field interface"),render:p=>{var C;return a.jsx(v.Tag,{children:t((C=o(p))==null?void 0:C.title)})}},{dataIndex:"titleField",title:n("Title field"),render:function(C,F){const E=k=>D(this,null,function*(){var I;m(F),yield x.request({url:`collections:update?filterByTk=${b}`,method:"post",data:{titleField:k?F.name:"id"}}),(I=y==null?void 0:y.refresh)==null||I.call(y),yield e.refreshAsync(),m(null),u(),v.message.success(n("Saved successfully"))});return g(F)?a.jsx(v.Tooltip,{title:n(bt),placement:"right",overlayInnerStyle:{textAlign:"center"},children:a.jsx(v.Switch,{"aria-label":`switch-title-field-${F.name}`,size:"small",loading:F.name===(l==null?void 0:l.name),checked:F.name===(_||"id"),onChange:E})}):null}},{dataIndex:"description",title:n("Descriptio "),render:p=>a.jsx(r.Input.ReadPretty,{value:p,ellipsis:!0})},{dataIndex:"actions",title:n("Actions"),render:(p,C)=>{const F={confirm:{title:n("Delete record"),content:n("Are you sure you want to delete it?")},useAction:r.useDestroyActionAndRefreshCM,disabled:r.isDeleteButtonDisabled(C)||($==null?void 0:$.forbidDeletion),title:n("Delete")};return a.jsx(r.RecordProvider,{record:C,parent:c,children:a.jsxs(v.Space,{children:[a.jsx(r.EditCollectionField,{role:"button","aria-label":`edit-button-${C.name}`,type:"primary"}),a.jsx(r.Action.Link,A({},F))]})})}}];return a.jsx(v.Table,{rowKey:"name",columns:h,showHeader:!1,pagination:!1,dataSource:e.fields,rowSelection:{type:"checkbox",getCheckboxProps(p){return{"aria-label":`checkbox-${p.name}`}},onChange:p=>{i(C=>j(A({},C),{selectedRowKeys:p}))}},className:pn})},yn=e=>{const t=r.useCompile(),{getInterface:o}=r.useCollectionManager_deprecated(),{targetKey:n}=e.collectionResource||{},i=r.useRecord(),[s,c]=d.useState(null),{t:l}=N.useTranslation(),{refreshCM:m,isTitleField:u}=r.useCollectionManager_deprecated(),{[n]:g,titleField:f,name:b}=i,_=d.useContext(Te),T=r.useAPIClient(),$=[{dataIndex:["uiSchema","rawTitle"],title:l("Field display name"),render:x=>a.jsx("div",{style:{marginLeft:1},children:t(x)})},{dataIndex:"name",title:l("Field name")},{dataIndex:"interface",title:l("Field interface"),render:x=>{var y;return a.jsx(v.Tag,{children:t((y=o(x))==null?void 0:y.title)})}},{dataIndex:"titleField",title:l("Title field"),render(x,y){const h=p=>D(this,null,function*(){var C;c(y),yield T.request({url:`collections:update?filterByTk=${g}`,method:"post",data:{titleField:p?y.name:"id"}}),(C=_==null?void 0:_.refresh)==null||C.call(_),yield e.refreshAsync(),c(null),m(),v.message.success(l("Saved successfully"))});return u(y)?a.jsx(v.Tooltip,{title:l(bt),placement:"right",overlayInnerStyle:{textAlign:"center"},children:a.jsx(v.Switch,{size:"small",loading:y.name===(s==null?void 0:s.name),checked:y.name===(f||"id"),onChange:h})}):null}},{dataIndex:"actions",title:l("Actions"),render:function(y,h){const p={type:"primary",currentCollection:b},C={type:"primary"};return a.jsx(r.RecordProvider,{record:h,parent:i,children:a.jsxs(v.Space,{children:[a.jsx(r.OverridingCollectionField,A({},p)),a.jsx(r.ViewCollectionField,A({},C))]})})}}];return a.jsx(v.Table,{rowKey:"name",columns:$,showHeader:!1,pagination:!1,dataSource:e.fields.filter(x=>x.interface)})},fn=()=>{const e=r.useCompile(),t=P.useField(),{name:o,template:n}=r.useRecord(),{data:{database:i}}=r.useCurrentAppInfo(),{getInterface:s,getInheritCollections:c,getCollection:l,getTemplate:m}=r.useCollectionManager_deprecated(),u=d.useMemo(()=>he.createForm(),[]),g=r.useAttach(u.createArrayField(j(A({},t.props),{basePath:""}))),{t:f}=N.useTranslation(),b=r.useResourceContext(),{refreshAsync:_,data:T}=d.useContext(r.ResourceActionContext),$=m(n),x=c(o),y=[{dataIndex:"title",title:f("Field display name"),render:I=>a.jsx("div",{className:ge.css`
|
|
35
|
+
`,bt="Default title for each record",mn=e=>{const t=r.useCompile(),{getInterface:o}=r.useCollectionManager_deprecated(),{t:n}=N.useTranslation(),{setState:i}=r.useResourceActionContext(),{targetKey:s}=e.collectionResource||{},c=r.useRecord(),[l,m]=d.useState(null),{refreshCM:u,isTitleField:g,getTemplate:f}=r.useCollectionManager_deprecated(),{[s]:b,titleField:_,template:T}=c,$=f(T),x=r.useAPIClient(),y=d.useContext(Te),h=[{dataIndex:["uiSchema","title"],title:n("Field display name"),render:p=>a.jsx("div",{style:{marginLeft:7},children:t(p)})},{dataIndex:"name",title:n("Field name")},{dataIndex:"interface",title:n("Field interface"),render:p=>{var C;return a.jsx(v.Tag,{children:t((C=o(p))==null?void 0:C.title)})}},{dataIndex:"titleField",title:n("Title field"),render:function(C,F){const E=k=>D(this,null,function*(){var I;m(F),yield x.request({url:`collections:update?filterByTk=${b}`,method:"post",data:{titleField:k?F.name:"id"}}),(I=y==null?void 0:y.refresh)==null||I.call(y),yield e.refreshAsync(),m(null),u(),v.message.success(n("Saved successfully"))});return g(F)?a.jsx(v.Tooltip,{title:n(bt),placement:"right",overlayInnerStyle:{textAlign:"center"},children:a.jsx(v.Switch,{"aria-label":`switch-title-field-${F.name}`,size:"small",loading:F.name===(l==null?void 0:l.name),checked:F.name===(_||"id"),onChange:E})}):null}},{dataIndex:"description",title:n("Descriptio "),render:p=>a.jsx(r.Input.ReadPretty,{value:p,ellipsis:!0})},{dataIndex:"actions",title:n("Actions"),render:(p,C)=>{const F={confirm:{title:n("Delete record"),content:n("Are you sure you want to delete it?")},useAction:r.useDestroyActionAndRefreshCM,disabled:r.isDeleteButtonDisabled(C)||($==null?void 0:$.forbidDeletion),title:n("Delete")};return a.jsx(r.RecordProvider,{record:C,parent:c,children:a.jsxs(v.Space,{size:"middle",children:[a.jsx(r.EditCollectionField,{role:"button","aria-label":`edit-button-${C.name}`,type:"primary"}),a.jsx(r.Action.Link,A({},F))]})})}}];return a.jsx(v.Table,{rowKey:"name",columns:h,showHeader:!1,pagination:!1,dataSource:e.fields,rowSelection:{type:"checkbox",getCheckboxProps(p){return{"aria-label":`checkbox-${p.name}`}},onChange:p=>{i(C=>j(A({},C),{selectedRowKeys:p}))}},className:pn})},yn=e=>{const t=r.useCompile(),{getInterface:o}=r.useCollectionManager_deprecated(),{targetKey:n}=e.collectionResource||{},i=r.useRecord(),[s,c]=d.useState(null),{t:l}=N.useTranslation(),{refreshCM:m,isTitleField:u}=r.useCollectionManager_deprecated(),{[n]:g,titleField:f,name:b}=i,_=d.useContext(Te),T=r.useAPIClient(),$=[{dataIndex:["uiSchema","rawTitle"],title:l("Field display name"),render:x=>a.jsx("div",{style:{marginLeft:1},children:t(x)})},{dataIndex:"name",title:l("Field name")},{dataIndex:"interface",title:l("Field interface"),render:x=>{var y;return a.jsx(v.Tag,{children:t((y=o(x))==null?void 0:y.title)})}},{dataIndex:"titleField",title:l("Title field"),render(x,y){const h=p=>D(this,null,function*(){var C;c(y),yield T.request({url:`collections:update?filterByTk=${g}`,method:"post",data:{titleField:p?y.name:"id"}}),(C=_==null?void 0:_.refresh)==null||C.call(_),yield e.refreshAsync(),c(null),m(),v.message.success(l("Saved successfully"))});return u(y)?a.jsx(v.Tooltip,{title:l(bt),placement:"right",overlayInnerStyle:{textAlign:"center"},children:a.jsx(v.Switch,{size:"small",loading:y.name===(s==null?void 0:s.name),checked:y.name===(f||"id"),onChange:h})}):null}},{dataIndex:"actions",title:l("Actions"),render:function(y,h){const p={type:"primary",currentCollection:b},C={type:"primary"};return a.jsx(r.RecordProvider,{record:h,parent:i,children:a.jsxs(v.Space,{children:[a.jsx(r.OverridingCollectionField,A({},p)),a.jsx(r.ViewCollectionField,A({},C))]})})}}];return a.jsx(v.Table,{rowKey:"name",columns:$,showHeader:!1,pagination:!1,dataSource:e.fields.filter(x=>x.interface)})},fn=()=>{const e=r.useCompile(),t=P.useField(),{name:o,template:n}=r.useRecord(),{data:{database:i}}=r.useCurrentAppInfo(),{getInterface:s,getInheritCollections:c,getCollection:l,getTemplate:m}=r.useCollectionManager_deprecated(),u=d.useMemo(()=>he.createForm(),[]),g=r.useAttach(u.createArrayField(j(A({},t.props),{basePath:""}))),{t:f}=N.useTranslation(),b=r.useResourceContext(),{refreshAsync:_,data:T}=d.useContext(r.ResourceActionContext),$=m(n),x=c(o),y=[{dataIndex:"title",title:f("Field display name"),render:I=>a.jsx("div",{className:ge.css`
|
|
36
36
|
font-weight: 500;
|
|
37
37
|
`,children:I})},{dataIndex:"name",title:f("Field name")},{dataIndex:"interface",title:f("Field interface")},{dataIndex:"titleField",title:f("Title field")},{dataIndex:"description",title:f("Description")},{dataIndex:"actions",title:f("Actions")}],h=(T==null?void 0:T.data)||[],p={pf:[],association:[],general:[],system:[]};h.forEach(I=>{if(I.primaryKey||I.isForeignKey)p.pf.push(I);else if(I.interface){const B=s(I.interface);(B==null?void 0:B.group)==="systemInfo"?p.system.push(I):(B==null?void 0:B.group)==="relation"?p.association.push(I):p.general.push(I)}});const C=[{key:"pf",title:f("PK & FK fields"),fields:p.pf},{key:"association",title:f("Association fields"),fields:p.association},{key:"general",title:f("General fields"),fields:p.general},{key:"system",title:f("System fields"),fields:p.system}];C.push(...x.map(I=>{const B=l(I);if(B)return{key:I,title:`${f("Inherited fields")} - `+e(B==null?void 0:B.title),inherit:!0,fields:(B==null?void 0:B.fields)||[]}}).filter(Boolean));const F=d.useMemo(()=>({useAction:()=>r.useBulkDestroyActionAndRefreshCM(!0),title:f("Delete"),icon:"DeleteOutlined",disabled:$==null?void 0:$.forbidDeletion,confirm:{title:f("Delete record"),content:f("Are you sure you want to delete it?")}}),[f]),E={type:"primary",database:i},k={type:"primary"};return a.jsx(P.FormContext.Provider,{value:u,children:a.jsxs(P.FieldContext.Provider,{value:g,children:[a.jsx(vt,{collectionName:o}),a.jsxs(v.Space,{align:"end",className:ge.css`
|
|
38
38
|
justify-content: flex-end;
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`),Kf=(e="main")=>({name:`dataSources/${e}/rolesResourcesScopes`,fields:[{type:"string",name:"name",interface:"input",uiSchema:{title:'{{t("Scope name")}}',type:"string","x-component":"Input",required:!0}}]}),Nf=()=>{const{name:e}=d.useContext(ye),t=r.useFormBlockContext();return d.useEffect(()=>{t.form.setInitialValues({resourceName:e})},[e]),{form:t.form}},Bf=e=>{const{data:t}=r.useCollectionRecord(),{id:o}=t||{},n=j(A({},e),{disabled:[1,2].includes(o)});return a.jsx(r.Action.Link,A({},n))},Vf=e=>{const{data:t}=r.useCollectionRecord(),{id:o}=t||{},n=j(A(A({},e),r.useDestroyActionProps()),{disabled:[1,2].includes(o)});return a.jsx(r.Action.Link,A({},n))},Lf=e=>{const t=Kf(e);return{type:"object",properties:{scope:{"x-component":"RecordPicker","x-component-props":{size:"small",fieldNames:{label:"name",value:"id"},multiple:!1,association:{target:"rolesResourcesScopes"},onChange:"{{ onChange }}"},properties:{selector:{type:"void",title:'{{ t("Select record") }}',"x-component":"RecordPicker.Selector","x-component-props":{className:"nb-record-picker-selector"},properties:{tableBlock:{type:"void","x-decorator":"TableSelectorProvider","x-decorator-props":{collection:t,resource:`dataSources/${e}/rolesResourcesScopes`,action:"list",params:{pageSize:20},useParams(){return{filter:{$or:[{resourceName:d.useContext(ye).name},{resourceName:null}]}}},rowKey:"id"},"x-component":"BlockItem",properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{create:{type:"void",title:'{{ t("Add new") }}',"x-action":"create","x-component":"Action","x-component-props":{icon:"PlusOutlined",openMode:"drawer",type:"primary"},properties:{drawer:{type:"void",title:'{{ t("Add record") }}',"x-component":"Action.Container","x-component-props":{className:"nb-action-popup"},properties:{formBlock:{type:"void","x-decorator":"FormBlockProvider","x-decorator-props":{resource:`dataSources/${e}/rolesResourcesScopes`,collection:t},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":Nf,properties:{name:{type:"string","x-component":"CollectionField","x-decorator":"FormItem"},scope:{type:"object",title:'{{t("Data scope")}}',name:"filter","x-decorator":"FormItem","x-component":r.withDynamicSchemaProps(o=>a.jsx(r.FlagProvider,{isVariableParsedInOtherContext:!0,children:a.jsx(r.Filter,A({},o))})),"x-use-component-props":()=>{const o=d.useContext(ye);return{options:r.useFilterFieldOptions(o.fields)}},"x-component-props":{dynamicComponent:r.VariableInput}},actions:{type:"void","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{create:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCreateActionProps","x-component-props":{type:"primary",htmlType:"submit"}}}}}}}}}}}}}},value:{type:"array","x-component":"TableV2.Selector","x-use-component-props":"useTableSelectorProps","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{column1:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{name:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{ t("Actions") }}',"x-action-column":"actions","x-component":"TableV2.Column",properties:{actions:{type:"void","x-decorator":"DndContext","x-component":"Space","x-component-props":{split:"|"},properties:{edit:{type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-decorator":"ACLActionProvider","x-component":Bf,"x-component-props":{openMode:"drawer",icon:"EditOutlined"},properties:{drawer:{type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"nb-action-popup"},properties:{formBlock:{type:"void","x-decorator":"FormBlockProvider","x-decorator-props":{resource:`dataSources/${e}/rolesResourcesScopes`,collection:t,action:"get",useParams:"{{ useParamsFromRecord }}"},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useFormBlockProps",properties:{name:{type:"string","x-component":"CollectionField","x-decorator":"FormItem"},scope:{type:"object",title:'{{t("Data scope")}}',name:"filter","x-decorator":"FormItem","x-component":r.withDynamicSchemaProps(o=>a.jsx(r.FlagProvider,{isVariableParsedInOtherContext:!0,children:a.jsx(r.Filter,A({},o))})),"x-use-component-props":()=>{const o=d.useContext(ye);return{options:r.useFilterFieldOptions(o.fields)}},"x-component-props":{dynamicComponent:r.VariableInput}},actions:{type:"void","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{update:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useUpdateActionProps","x-component-props":{type:"primary",htmlType:"submit"}}}}}}}}}}}},destroy:{title:'{{ t("Delete") }}',"x-action":"destroy","x-decorator":"ACLActionProvider","x-component-props":{icon:"DeleteOutlined",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}},"x-component":Vf}}}}}}}}},footer:{"x-component":"Action.Container.Footer","x-component-props":{},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{},properties:{submit:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"usePickActionProps","x-component-props":{type:"primary",htmlType:"submit"}}}}}}}}}}}}},Wo=d.createContext(null);Wo.displayName="RolesResourcesScopesSelectedRowKeysContext";const qf=e=>{const[t,o]=d.useState([]);return a.jsx(Wo.Provider,{value:[t,o],children:e.children})},Gf=e=>{var i;const t=d.useMemo(()=>he.createForm({values:{scope:e.value}}),[]),{key:o}=((i=r.useCollectionRecord())==null?void 0:i.parentRecord.data)||{},n=Lf(o);return a.jsx(r.FormProvider,{form:t,children:a.jsx(r.SchemaComponent,{components:{RolesResourcesScopesSelectedRowKeysProvider:qf},scope:{onChange(s){var c;(c=e==null?void 0:e.onChange)==null||c.call(e,s)}},schema:n})})},Uf=e=>{var o;const t={};return(o=e==null?void 0:e.forEach)==null||o.call(e,n=>{n.name&&(t[n.name]=n,t[n.name].scope=J.isEmpty(n.scope)?null:n.scope)}),t},ye=d.createContext({});ye.displayName="RoleResourceCollectionContext";const zf=P.connect(e=>{var x,y;const{styles:t}=jf(),o=h=>{const p=h.map(C=>j(A({},C),{scope:J.isEmpty(C.scope)?null:C.scope}));e.onChange(p)},n=r.useRecord(),i=Ho(),s=n.fields,c=r.useCompile(),{t:l}=N.useTranslation(),m=P.useField(),u=Uf(m.value||[]),g=(h,p)=>{var F;const C=u==null?void 0:u[h];return C?(F=C==null?void 0:C.fields)==null?void 0:F.includes(p):!1},f=i.filter(h=>h.allowConfigureFields),b=s==null?void 0:s.map(h=>{const p=A({},h);for(const C of f)p[C.name]=g(C.name,h.name);return p}),_=h=>{var p;u[h]?delete u[h]:u[h]={name:h,fields:(p=s==null?void 0:s.map)==null?void 0:p.call(s,C=>C.name)},o(Object.values(u))},T=(h,p)=>{u[h]?(u[h].scope=p,o(Object.values(u))):(_(h),u[h].scope=p,o(Object.values(u)))},$={};for(const h of f)$[h.name]=(s==null?void 0:s.length)===((y=(x=u==null?void 0:u[h.name])==null?void 0:x.fields)==null?void 0:y.length);return a.jsx("div",{children:a.jsx(ye.Provider,{value:n,children:a.jsxs(se.FormLayout,{layout:"vertical",children:[a.jsx(se.FormItem,{label:l("Action permission"),children:a.jsx(v.Table,{className:t,size:"small",pagination:!1,columns:[{dataIndex:"displayName",title:l("Action display name"),render:h=>c(h)},{dataIndex:"onNewRecord",title:l("Action type"),render:h=>h?a.jsx(v.Tag,{color:"green",children:l("Action on new records")}):a.jsx(v.Tag,{color:"geekblue",children:l("Action on existing records")})},{dataIndex:"enabled",title:l("Allow"),render:(h,p)=>a.jsx(v.Checkbox,{checked:h,onChange:()=>{_(p.name)}})},{dataIndex:"scope",title:l("Data scope"),render:(h,p)=>!p.onNewRecord&&a.jsx(Gf,{value:h,onChange:C=>{T(p.name,C)}})}],dataSource:i==null?void 0:i.map(h=>{let p=!1,C=null;return u[h.name]&&(p=!0,h.onNewRecord||(C=u[h.name].scope)),j(A({},h),{enabled:p,scope:C})})})}),a.jsx(se.FormItem,{label:l("Field permission"),children:a.jsx(v.Table,{className:t,pagination:!1,dataSource:b,columns:[{dataIndex:["uiSchema","title"],title:l("Field display name"),render:(h,p)=>c(h)||p.name},...f.map(h=>{const p=$==null?void 0:$[h.name];return{dataIndex:h.name,title:a.jsxs(a.Fragment,{children:[a.jsx(v.Checkbox,{checked:p,onChange:()=>{var F;const C=u[h.name]||{name:h.name};p?C.fields=[]:C.fields=(F=s==null?void 0:s.map)==null?void 0:F.call(s,E=>E.name),u[h.name]=C,o(Object.values(u))}}),c(h.displayName)]}),render:(C,F)=>a.jsx(v.Checkbox,{checked:C,onChange:()=>{const E=u[h.name]||{name:h.name},k=E.fields||[];if(C){const I=k.indexOf(F.name);k.splice(I,1)}else k.push(F.name);E.fields=k,u[h.name]=E,o(Object.values(u))}})}})]})})]})})})}),Hf=e=>{var o;if(!e)return{};const t={};return(o=e==null?void 0:e.forEach)==null||o.call(e,n=>{const[i,s]=n.split(":");t[i]=s||"all"}),t},Qo=e=>{const t=[];for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const n=e[o];n==="all"?t.push(o):t.push(`${o}:${n}`)}return t},Wf=P.connect(e=>{const{onChange:t}=e,o=Ho(),n=r.useCompile(),{t:i}=N.useTranslation(),s=P.useField(),c=Hf(s.value);return a.jsx("div",{children:a.jsx(v.Table,{size:"small",pagination:!1,columns:[{dataIndex:"displayName",title:i("Action display name"),render:l=>n(l)},{dataIndex:"onNewRecord",title:i("Action type"),render:l=>l?a.jsx(v.Tag,{color:"green",children:i("Action on new records")}):a.jsx(v.Tag,{color:"geekblue",children:i("Action on existing records")})},{dataIndex:"enabled",title:i("Allow"),render:(l,m)=>a.jsx(v.Checkbox,{checked:l,onChange:u=>{l?delete c[m.name]:c[m.name]="all",t(Qo(c))}})},{dataIndex:"scope",title:i("Data scope"),render:(l,m)=>!m.onNewRecord&&a.jsx(v.Select,{"data-testid":"select-data-scope",popupMatchSelectWidth:!1,size:"small",value:l,options:[{label:i("All records"),value:"all"},{label:i("Own records"),value:"own"}],onChange:u=>{c[m.name]=u,t(Qo(c))}})}],dataSource:o==null?void 0:o.map(l=>{let m="all",u=!1;return c[l.name]&&(u=!0,m=c[l.name]),j(A({},l),{enabled:u,scope:m})})})})}),Qf={type:"object",properties:{[V.uid()]:{"x-component":"DataSourceTable"}}},Se=d.createContext({});Se.displayName="CurrentRolesContext";const Yf=({role:e})=>a.jsx(v.Card,{"data-testid":"acl-pane-card",bordered:!1,children:a.jsx(Se.Provider,{value:e,children:a.jsx(r.SchemaComponent,{components:{MenuConfigure:r.MenuConfigure,RoleConfigure:Ef,RolesResourcesActions:zf,DataSourceTable:kf,StrategyActions:Wf,SettingsCenterConfigure:r.SettingsCenterConfigure,SettingCenterProvider:r.SettingCenterProvider,ResourceActionProvider:r.ResourceActionProvider,RoleRecordProvider:_f},schema:Qf})})});class fe extends r.Plugin{constructor(){super(...arguments);Ro(this,"types",new Map)}load(){return D(this,null,function*(){this.app.pm.get(W).settingsUI.addPermissionsTab(({t:o,TabLayout:n,role:i})=>({key:"dataSource",label:o("Data sources"),children:a.jsx(n,{children:a.jsx(Yf,{role:i})})})),this.app.use(sn),this.app.pluginSettingsManager.add(K,{title:`{{t("Data sources", { ns: "${K}" })}}`,icon:"ClusterOutlined",showTabs:!1,aclSnippet:"pm.data-source-manager*"}),this.app.pluginSettingsManager.add(`${K}.list`,{title:`{{t("Data sources", { ns: "${K}" })}}`,Component:nf,sort:1,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager"}),this.app.pluginSettingsManager.add(`${K}/:name`,{title:a.jsx(Ct,{}),icon:"ClusterOutlined",isTopLevel:!1,sort:100,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager"}),this.app.pluginSettingsManager.add(`${K}/main`,{title:a.jsx(Ct,{}),icon:"ClusterOutlined",isTopLevel:!1,sort:100,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.data-source-main"}),this.app.pluginSettingsManager.add(`${K}/main.collections`,{title:`{{t("Collections", { ns: "${K}" })}}`,Component:Ff,topLevelName:`${K}/main`,pluginKey:K,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.data-source-main"}),this.app.pluginSettingsManager.add(`${K}/:name.collections`,{title:`{{t("Collections", { ns: "${K}" })}}`,Component:Xy,topLevelName:`${K}/:name`,pluginKey:K,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.data-source-main"}),this.app.dataSourceManager.addDataSources(this.getThirdDataSource.bind(this),ft)})}setDataSources(){return D(this,null,function*(){var n;const o=yield this.app.apiClient.request({resource:"dataSources",action:"listEnabled",params:{paginate:!1}});return(n=o==null?void 0:o.data)==null?void 0:n.data})}getThirdDataSource(){return D(this,null,function*(){var n;const o=yield this.app.apiClient.request({resource:"dataSources",action:"listEnabled",params:{paginate:!1,appends:["collections"]}});return(n=o==null?void 0:o.data)==null?void 0:n.data})}registerType(o,n){this.types.set(o,n)}}O.PluginDataSourceManagerClient=fe,O.default=fe,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
59
|
+
`),Kf=(e="main")=>({name:`dataSources/${e}/rolesResourcesScopes`,fields:[{type:"string",name:"name",interface:"input",uiSchema:{title:'{{t("Scope name")}}',type:"string","x-component":"Input",required:!0}}]}),Nf=()=>{const{name:e}=d.useContext(ye),t=r.useFormBlockContext();return d.useEffect(()=>{t.form.setInitialValues({resourceName:e})},[e]),{form:t.form}},Bf=e=>{const{data:t}=r.useCollectionRecord(),{id:o}=t||{},n=j(A({},e),{disabled:[1,2].includes(o)});return a.jsx(r.Action.Link,A({},n))},Vf=e=>{const{data:t}=r.useCollectionRecord(),{id:o}=t||{},n=j(A(A({},e),r.useDestroyActionProps()),{disabled:[1,2].includes(o)});return a.jsx(r.Action.Link,A({},n))},Lf=e=>{const t=Kf(e);return{type:"object",properties:{scope:{"x-component":"RecordPicker","x-component-props":{size:"small",fieldNames:{label:"name",value:"id"},multiple:!1,association:{target:"rolesResourcesScopes"},onChange:"{{ onChange }}"},properties:{selector:{type:"void",title:'{{ t("Select record") }}',"x-component":"RecordPicker.Selector","x-component-props":{className:"nb-record-picker-selector"},properties:{tableBlock:{type:"void","x-decorator":"TableSelectorProvider","x-decorator-props":{collection:t,resource:`dataSources/${e}/rolesResourcesScopes`,action:"list",params:{pageSize:20},useParams(){return{filter:{$or:[{resourceName:d.useContext(ye).name},{resourceName:null}]}}},rowKey:"id"},"x-component":"BlockItem",properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{create:{type:"void",title:'{{ t("Add new") }}',"x-action":"create","x-component":"Action","x-component-props":{icon:"PlusOutlined",openMode:"drawer",type:"primary"},properties:{drawer:{type:"void",title:'{{ t("Add record") }}',"x-component":"Action.Container","x-component-props":{className:"nb-action-popup"},properties:{formBlock:{type:"void","x-decorator":"FormBlockProvider","x-decorator-props":{resource:`dataSources/${e}/rolesResourcesScopes`,collection:t},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":Nf,properties:{name:{type:"string","x-component":"CollectionField","x-decorator":"FormItem"},scope:{type:"object",title:'{{t("Data scope")}}',name:"filter","x-decorator":"FormItem","x-component":r.withDynamicSchemaProps(o=>a.jsx(r.FlagProvider,{isVariableParsedInOtherContext:!0,children:a.jsx(r.Filter,A({},o))})),"x-use-component-props":()=>{const o=d.useContext(ye);return{options:r.useFilterFieldOptions(o.fields)}},"x-component-props":{dynamicComponent:r.VariableInput}},actions:{type:"void","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{create:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCreateActionProps","x-component-props":{type:"primary",htmlType:"submit"}}}}}}}}}}}}}},value:{type:"array","x-component":"TableV2.Selector","x-use-component-props":"useTableSelectorProps","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{column1:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{name:{type:"string","x-component":"CollectionField","x-read-pretty":!0}}},actions:{type:"void",title:'{{ t("Actions") }}',"x-action-column":"actions","x-component":"TableV2.Column",properties:{actions:{type:"void","x-decorator":"DndContext","x-component":"Space","x-component-props":{split:"|"},properties:{edit:{type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-decorator":"ACLActionProvider","x-component":Bf,"x-component-props":{openMode:"drawer",icon:"EditOutlined"},properties:{drawer:{type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"nb-action-popup"},properties:{formBlock:{type:"void","x-decorator":"FormBlockProvider","x-decorator-props":{resource:`dataSources/${e}/rolesResourcesScopes`,collection:t,action:"get",useParams:"{{ useParamsFromRecord }}"},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useFormBlockProps",properties:{name:{type:"string","x-component":"CollectionField","x-decorator":"FormItem"},scope:{type:"object",title:'{{t("Data scope")}}',name:"filter","x-decorator":"FormItem","x-component":r.withDynamicSchemaProps(o=>a.jsx(r.FlagProvider,{isVariableParsedInOtherContext:!0,children:a.jsx(r.Filter,A({},o))})),"x-use-component-props":()=>{const o=d.useContext(ye);return{options:r.useFilterFieldOptions(o.fields)}},"x-component-props":{dynamicComponent:r.VariableInput}},actions:{type:"void","x-component":"ActionBar","x-component-props":{layout:"one-column",style:{marginTop:24}},properties:{update:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useUpdateActionProps","x-component-props":{type:"primary",htmlType:"submit"}}}}}}}}}}}},destroy:{title:'{{ t("Delete") }}',"x-action":"destroy","x-decorator":"ACLActionProvider","x-component-props":{icon:"DeleteOutlined",confirm:{title:"{{t('Delete record')}}",content:"{{t('Are you sure you want to delete it?')}}"}},"x-component":Vf}}}}}}}}},footer:{"x-component":"Action.Container.Footer","x-component-props":{},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{},properties:{submit:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"usePickActionProps","x-component-props":{type:"primary",htmlType:"submit"}}}}}}}}}}}}},Wo=d.createContext(null);Wo.displayName="RolesResourcesScopesSelectedRowKeysContext";const qf=e=>{const[t,o]=d.useState([]);return a.jsx(Wo.Provider,{value:[t,o],children:e.children})},Gf=e=>{var i;const t=d.useMemo(()=>he.createForm({values:{scope:e.value}}),[]),{key:o}=((i=r.useCollectionRecord())==null?void 0:i.parentRecord.data)||{},n=Lf(o);return a.jsx(r.FormProvider,{form:t,children:a.jsx(r.SchemaComponent,{components:{RolesResourcesScopesSelectedRowKeysProvider:qf},scope:{onChange(s){var c;(c=e==null?void 0:e.onChange)==null||c.call(e,s)}},schema:n})})},Uf=e=>{var o;const t={};return(o=e==null?void 0:e.forEach)==null||o.call(e,n=>{n.name&&(t[n.name]=n,t[n.name].scope=J.isEmpty(n.scope)?null:n.scope)}),t},ye=d.createContext({});ye.displayName="RoleResourceCollectionContext";const zf=P.connect(e=>{var x,y;const{styles:t}=jf(),o=h=>{const p=h.map(C=>j(A({},C),{scope:J.isEmpty(C.scope)?null:C.scope}));e.onChange(p)},n=r.useRecord(),i=Ho(),s=n.fields,c=r.useCompile(),{t:l}=N.useTranslation(),m=P.useField(),u=Uf(m.value||[]),g=(h,p)=>{var F;const C=u==null?void 0:u[h];return C?(F=C==null?void 0:C.fields)==null?void 0:F.includes(p):!1},f=i.filter(h=>h.allowConfigureFields),b=s==null?void 0:s.map(h=>{const p=A({},h);for(const C of f)p[C.name]=g(C.name,h.name);return p}),_=h=>{var p;u[h]?delete u[h]:u[h]={name:h,fields:(p=s==null?void 0:s.map)==null?void 0:p.call(s,C=>C.name)},o(Object.values(u))},T=(h,p)=>{u[h]?(u[h].scope=p,o(Object.values(u))):(_(h),u[h].scope=p,o(Object.values(u)))},$={};for(const h of f)$[h.name]=(s==null?void 0:s.length)===((y=(x=u==null?void 0:u[h.name])==null?void 0:x.fields)==null?void 0:y.length);return a.jsx("div",{children:a.jsx(ye.Provider,{value:n,children:a.jsxs(se.FormLayout,{layout:"vertical",children:[a.jsx(se.FormItem,{label:l("Action permission"),children:a.jsx(v.Table,{className:t,size:"small",pagination:!1,columns:[{dataIndex:"displayName",title:l("Action display name"),render:h=>c(h)},{dataIndex:"onNewRecord",title:l("Action type"),render:h=>h?a.jsx(v.Tag,{color:"green",children:l("Action on new records")}):a.jsx(v.Tag,{color:"geekblue",children:l("Action on existing records")})},{dataIndex:"enabled",title:l("Allow"),render:(h,p)=>a.jsx(v.Checkbox,{checked:h,onChange:()=>{_(p.name)}})},{dataIndex:"scope",title:l("Data scope"),render:(h,p)=>!p.onNewRecord&&a.jsx(Gf,{value:h,onChange:C=>{T(p.name,C)}})}],dataSource:i==null?void 0:i.map(h=>{let p=!1,C=null;return u[h.name]&&(p=!0,h.onNewRecord||(C=u[h.name].scope)),j(A({},h),{enabled:p,scope:C})})})}),a.jsx(se.FormItem,{label:l("Field permission"),children:a.jsx(v.Table,{className:t,pagination:!1,dataSource:b,columns:[{dataIndex:["uiSchema","title"],title:l("Field display name"),render:(h,p)=>c(h)||p.name},...f.map(h=>{const p=$==null?void 0:$[h.name];return{dataIndex:h.name,title:a.jsxs(a.Fragment,{children:[a.jsx(v.Checkbox,{checked:p,onChange:()=>{var F;const C=u[h.name]||{name:h.name};p?C.fields=[]:C.fields=(F=s==null?void 0:s.map)==null?void 0:F.call(s,E=>E.name),u[h.name]=C,o(Object.values(u))}}),c(h.displayName)]}),render:(C,F)=>a.jsx(v.Checkbox,{checked:C,onChange:()=>{const E=u[h.name]||{name:h.name},k=E.fields||[];if(C){const I=k.indexOf(F.name);k.splice(I,1)}else k.push(F.name);E.fields=k,u[h.name]=E,o(Object.values(u))}})}})]})})]})})})}),Hf=e=>{var o;if(!e)return{};const t={};return(o=e==null?void 0:e.forEach)==null||o.call(e,n=>{const[i,s]=n.split(":");t[i]=s||"all"}),t},Qo=e=>{const t=[];for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const n=e[o];n==="all"?t.push(o):t.push(`${o}:${n}`)}return t},Wf=P.connect(e=>{const{onChange:t}=e,o=Ho(),n=r.useCompile(),{t:i}=N.useTranslation(),s=P.useField(),c=Hf(s.value);return a.jsx("div",{children:a.jsx(v.Table,{size:"small",pagination:!1,rowKey:"name",columns:[{dataIndex:"displayName",title:i("Action display name"),render:l=>n(l)},{dataIndex:"onNewRecord",title:i("Action type"),render:l=>l?a.jsx(v.Tag,{color:"green",children:i("Action on new records")}):a.jsx(v.Tag,{color:"geekblue",children:i("Action on existing records")})},{dataIndex:"enabled",title:i("Allow"),render:(l,m)=>a.jsx(v.Checkbox,{checked:l,onChange:u=>{l?delete c[m.name]:c[m.name]="all",t(Qo(c))}})},{dataIndex:"scope",title:i("Data scope"),render:(l,m)=>!m.onNewRecord&&a.jsx(v.Select,{"data-testid":"select-data-scope",popupMatchSelectWidth:!1,size:"small",value:l,options:[{label:i("All records"),value:"all"},{label:i("Own records"),value:"own"}],onChange:u=>{c[m.name]=u,t(Qo(c))}})}],dataSource:o==null?void 0:o.map(l=>{let m="all",u=!1;return c[l.name]&&(u=!0,m=c[l.name]),j(A({},l),{enabled:u,scope:m})})})})}),Qf={type:"object",properties:{[V.uid()]:{"x-component":"DataSourceTable"}}},Se=d.createContext({});Se.displayName="CurrentRolesContext";const Yf=({role:e})=>a.jsx(v.Card,{"data-testid":"acl-pane-card",bordered:!1,children:a.jsx(Se.Provider,{value:e,children:a.jsx(r.SchemaComponent,{components:{MenuConfigure:r.MenuConfigure,RoleConfigure:Ef,RolesResourcesActions:zf,DataSourceTable:kf,StrategyActions:Wf,SettingsCenterConfigure:r.SettingsCenterConfigure,SettingCenterProvider:r.SettingCenterProvider,ResourceActionProvider:r.ResourceActionProvider,RoleRecordProvider:_f},schema:Qf})})});class fe extends r.Plugin{constructor(){super(...arguments);Ro(this,"types",new Map)}load(){return D(this,null,function*(){this.app.pm.get(W).settingsUI.addPermissionsTab(({t:o,TabLayout:n,role:i})=>({key:"dataSource",label:o("Data sources"),children:a.jsx(n,{children:a.jsx(Yf,{role:i})})})),this.app.use(sn),this.app.pluginSettingsManager.add(K,{title:`{{t("Data sources", { ns: "${K}" })}}`,icon:"ClusterOutlined",showTabs:!1,aclSnippet:"pm.data-source-manager*"}),this.app.pluginSettingsManager.add(`${K}.list`,{title:`{{t("Data sources", { ns: "${K}" })}}`,Component:nf,sort:1,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager"}),this.app.pluginSettingsManager.add(`${K}/:name`,{title:a.jsx(Ct,{}),icon:"ClusterOutlined",isTopLevel:!1,sort:100,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager"}),this.app.pluginSettingsManager.add(`${K}/main`,{title:a.jsx(Ct,{}),icon:"ClusterOutlined",isTopLevel:!1,sort:100,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.data-source-main"}),this.app.pluginSettingsManager.add(`${K}/main.collections`,{title:`{{t("Collections", { ns: "${K}" })}}`,Component:Ff,topLevelName:`${K}/main`,pluginKey:K,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.data-source-main"}),this.app.pluginSettingsManager.add(`${K}/:name.collections`,{title:`{{t("Collections", { ns: "${K}" })}}`,Component:Xy,topLevelName:`${K}/:name`,pluginKey:K,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.data-source-main"}),this.app.dataSourceManager.addDataSources(this.getThirdDataSource.bind(this),ft)})}setDataSources(){return D(this,null,function*(){var n;const o=yield this.app.apiClient.request({resource:"dataSources",action:"listEnabled",params:{paginate:!1}});return(n=o==null?void 0:o.data)==null?void 0:n.data})}getThirdDataSource(){return D(this,null,function*(){var n;const o=yield this.app.apiClient.request({resource:"dataSources",action:"listEnabled",params:{paginate:!1,appends:["collections"]}});return(n=o==null?void 0:o.data)==null?void 0:n.data})}registerType(o,n){this.types.set(o,n)}}O.PluginDataSourceManagerClient=fe,O.default=fe,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.3.
|
|
11
|
+
"@nocobase/client": "1.3.23-beta",
|
|
12
12
|
"react": "18.2.0",
|
|
13
|
-
"@nocobase/plugin-acl": "1.3.
|
|
14
|
-
"@nocobase/server": "1.3.
|
|
13
|
+
"@nocobase/plugin-acl": "1.3.23-beta",
|
|
14
|
+
"@nocobase/server": "1.3.23-beta",
|
|
15
15
|
"lodash": "4.17.21",
|
|
16
16
|
"@ant-design/icons": "5.2.6",
|
|
17
17
|
"antd": "5.12.8",
|
|
@@ -20,11 +20,11 @@ module.exports = {
|
|
|
20
20
|
"react-i18next": "11.18.6",
|
|
21
21
|
"@formily/react": "2.3.0",
|
|
22
22
|
"@emotion/css": "11.13.0",
|
|
23
|
-
"@nocobase/database": "1.3.
|
|
24
|
-
"@nocobase/utils": "1.3.
|
|
25
|
-
"@nocobase/acl": "1.3.
|
|
23
|
+
"@nocobase/database": "1.3.23-beta",
|
|
24
|
+
"@nocobase/utils": "1.3.23-beta",
|
|
25
|
+
"@nocobase/acl": "1.3.23-beta",
|
|
26
26
|
"sequelize": "6.35.2",
|
|
27
|
-
"@nocobase/test": "1.3.
|
|
27
|
+
"@nocobase/test": "1.3.23-beta",
|
|
28
28
|
"@formily/antd-v5": "1.1.9",
|
|
29
29
|
"@formily/core": "2.3.0",
|
|
30
30
|
"@formily/reactive": "2.3.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-data-source-manager",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.23-beta",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"displayName": "Data source manager",
|
|
6
6
|
"displayName.zh-CN": "数据源管理",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"keywords": [
|
|
18
18
|
"Data model tools"
|
|
19
19
|
],
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "a32ecfe2cde9b7696e7eab88a49eadda8ce1fcb7"
|
|
21
21
|
}
|