@tachybase/plugin-department 0.23.35

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.
Files changed (128) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/common/DepartmentTable.schema.d.ts +50 -0
  6. package/dist/client/common/DepartmentTable.view.d.ts +4 -0
  7. package/dist/client/common/FilterKeys.context.d.ts +10 -0
  8. package/dist/client/common/InternalDepartmentTable.d.ts +5 -0
  9. package/dist/client/common/Request.povider.d.ts +1 -0
  10. package/dist/client/common/UserDepartmentsFieldNotSupport.d.ts +2 -0
  11. package/dist/client/common/scopes/useDepartmentFilterActionProps.d.ts +5 -0
  12. package/dist/client/common/scopes/useFilterActionProps.d.ts +5 -0
  13. package/dist/client/index.d.ts +6 -0
  14. package/dist/client/index.js +12 -0
  15. package/dist/client/locale.d.ts +9 -0
  16. package/dist/client/main-tab/DepartmentIndex.d.ts +5 -0
  17. package/dist/client/main-tab/DepartmentIndex.provider.d.ts +3 -0
  18. package/dist/client/main-tab/DepartmentManagement.component.d.ts +1 -0
  19. package/dist/client/main-tab/DepartmentManagement.schema.d.ts +10 -0
  20. package/dist/client/main-tab/DepartmentManagement.view.d.ts +1 -0
  21. package/dist/client/main-tab/collections/departments.collection.d.ts +128 -0
  22. package/dist/client/main-tab/collections/users.collection.d.ts +189 -0
  23. package/dist/client/main-tab/components/DepartmentSelect.d.ts +1 -0
  24. package/dist/client/main-tab/components/InternalSuperiorDepartmentSelect.d.ts +1 -0
  25. package/dist/client/main-tab/components/SuperiorDepartmentSelect.d.ts +1 -0
  26. package/dist/client/main-tab/context/Department.context.d.ts +23 -0
  27. package/dist/client/main-tab/context/DepartmentsExpanded.context.d.ts +17 -0
  28. package/dist/client/main-tab/departments-block/AddNewDepartment.schema.d.ts +67 -0
  29. package/dist/client/main-tab/departments-block/AddNewDepartment.view.d.ts +1 -0
  30. package/dist/client/main-tab/departments-block/DepartmentOwnersField.component.d.ts +5 -0
  31. package/dist/client/main-tab/departments-block/DepartmentsBlock.d.ts +1 -0
  32. package/dist/client/main-tab/departments-block/DepartmentsSearch.component.d.ts +1 -0
  33. package/dist/client/main-tab/departments-block/DepartmentsTree.component.d.ts +8 -0
  34. package/dist/client/main-tab/departments-block/Request.provider.d.ts +1 -0
  35. package/dist/client/main-tab/departments-block/UnknownOwerns.schema.d.ts +136 -0
  36. package/dist/client/main-tab/departments-block/UnknownOwerns.view.d.ts +1 -0
  37. package/dist/client/main-tab/departments-block/schemas/schemaDepartmentEdit.d.ts +62 -0
  38. package/dist/client/main-tab/departments-block/schemas/schemaDepartmentNewSub.d.ts +57 -0
  39. package/dist/client/main-tab/departments-block/scopes/useCreateDepartment.d.ts +3 -0
  40. package/dist/client/main-tab/departments-block/scopes/useUpdateDepartment.d.ts +3 -0
  41. package/dist/client/main-tab/departments-users-block/AddMembers.schema.d.ts +148 -0
  42. package/dist/client/main-tab/departments-users-block/AddMembers.view.d.ts +1 -0
  43. package/dist/client/main-tab/departments-users-block/DepartmentField.component.d.ts +1 -0
  44. package/dist/client/main-tab/departments-users-block/DepartmentsUsersBlock.d.ts +1 -0
  45. package/dist/client/main-tab/departments-users-block/DepartmentsUsersBlock.schema.d.ts +676 -0
  46. package/dist/client/main-tab/departments-users-block/IsOwnerField.component.d.ts +1 -0
  47. package/dist/client/main-tab/departments-users-block/MemberActions.schema.d.ts +49 -0
  48. package/dist/client/main-tab/departments-users-block/MemberActions.view.d.ts +1 -0
  49. package/dist/client/main-tab/departments-users-block/RowRemoveAction.schema.d.ts +16 -0
  50. package/dist/client/main-tab/departments-users-block/RowRemoveAction.view.d.ts +1 -0
  51. package/dist/client/main-tab/departments-users-block/UserDepartmentsField.component.d.ts +1 -0
  52. package/dist/client/main-tab/departments-users-block/UserSelectDepartment.schema.d.ts +42 -0
  53. package/dist/client/main-tab/departments-users-block/UserSelectDepartment.view.d.ts +1 -0
  54. package/dist/client/main-tab/departments-users-block/scopes/useBulkRemoveMembersAction.d.ts +3 -0
  55. package/dist/client/main-tab/departments-users-block/scopes/useDataSource.d.ts +40 -0
  56. package/dist/client/main-tab/departments-users-block/scopes/useMembersDataSource.d.ts +6 -0
  57. package/dist/client/main-tab/departments-users-block/scopes/usePropsAddMember.d.ts +1 -0
  58. package/dist/client/main-tab/departments-users-block/scopes/useRefreshActionProps.d.ts +3 -0
  59. package/dist/client/main-tab/departments-users-block/scopes/useRemoveMemberAction.d.ts +3 -0
  60. package/dist/client/main-tab/departments-users-block/scopes/useShowTotal.d.ts +1 -0
  61. package/dist/client/main-tab/hooks/useDeepTree.d.ts +14 -0
  62. package/dist/client/main-tab/hooks/useGetDepTree.d.ts +18 -0
  63. package/dist/client/main-tab/kit.d.ts +4 -0
  64. package/dist/client/main-tab/providers/DepartmentsResource.provider.d.ts +3 -0
  65. package/dist/client/main-tab/providers/UserResource.provider.d.ts +3 -0
  66. package/dist/client/role-auth/DepartmentTitle.component.d.ts +1 -0
  67. package/dist/client/role-auth/Departments.d.ts +1 -0
  68. package/dist/client/role-auth/Departments.schema.d.ts +227 -0
  69. package/dist/client/role-auth/kit.d.ts +4 -0
  70. package/dist/client/role-auth/scopes/useAddDepartments.d.ts +3 -0
  71. package/dist/client/role-auth/scopes/useBulkRemoveDepartments.d.ts +3 -0
  72. package/dist/client/role-auth/scopes/useDataSource.d.ts +40 -0
  73. package/dist/client/role-auth/scopes/useDisabled.d.ts +3 -0
  74. package/dist/client/role-auth/scopes/useRemoveDepartment.d.ts +3 -0
  75. package/dist/client/settings/DepartmentOwnersFieldSetting.d.ts +2 -0
  76. package/dist/client/settings/UserDepartmentsFieldSetting.d.ts +2 -0
  77. package/dist/client/settings/UserMainDepartmentFieldSetting.d.ts +2 -0
  78. package/dist/client/settings/items/enableLinkItem.d.ts +2 -0
  79. package/dist/client/settings/items/modeSelectItem.d.ts +2 -0
  80. package/dist/client/settings/items/titleFieldItem.d.ts +2 -0
  81. package/dist/client/utils/getDepartmentStr.d.ts +1 -0
  82. package/dist/client/utils/getUserListByDepartment.d.ts +1 -0
  83. package/dist/externalVersion.js +14 -0
  84. package/dist/index.d.ts +2 -0
  85. package/dist/index.js +39 -0
  86. package/dist/locale/en-US.json +51 -0
  87. package/dist/locale/zh-CN.json +51 -0
  88. package/dist/server/actions/departments.d.ts +5 -0
  89. package/dist/server/actions/departments.js +105 -0
  90. package/dist/server/actions/index.d.ts +2 -0
  91. package/dist/server/actions/index.js +23 -0
  92. package/dist/server/actions/users.d.ts +4 -0
  93. package/dist/server/actions/users.js +142 -0
  94. package/dist/server/collections/departmentRoles.d.ts +2 -0
  95. package/dist/server/collections/departmentRoles.js +27 -0
  96. package/dist/server/collections/departments.d.ts +29 -0
  97. package/dist/server/collections/departments.js +162 -0
  98. package/dist/server/collections/departmentsUsers.d.ts +2 -0
  99. package/dist/server/collections/departmentsUsers.js +43 -0
  100. package/dist/server/collections/roles.d.ts +2 -0
  101. package/dist/server/collections/roles.js +39 -0
  102. package/dist/server/collections/users.d.ts +55 -0
  103. package/dist/server/collections/users.js +87 -0
  104. package/dist/server/index.d.ts +1 -0
  105. package/dist/server/index.js +33 -0
  106. package/dist/server/middlewares/destroy-department-check.d.ts +2 -0
  107. package/dist/server/middlewares/destroy-department-check.js +53 -0
  108. package/dist/server/middlewares/index.d.ts +6 -0
  109. package/dist/server/middlewares/index.js +31 -0
  110. package/dist/server/middlewares/list-users-include-child-department.d.ts +2 -0
  111. package/dist/server/middlewares/list-users-include-child-department.js +77 -0
  112. package/dist/server/middlewares/reset-user-departments-cache.d.ts +2 -0
  113. package/dist/server/middlewares/reset-user-departments-cache.js +39 -0
  114. package/dist/server/middlewares/set-department-owners.d.ts +2 -0
  115. package/dist/server/middlewares/set-department-owners.js +74 -0
  116. package/dist/server/middlewares/set-departments-roles.d.ts +2 -0
  117. package/dist/server/middlewares/set-departments-roles.js +64 -0
  118. package/dist/server/middlewares/set-main-department.d.ts +2 -0
  119. package/dist/server/middlewares/set-main-department.js +105 -0
  120. package/dist/server/middlewares/update-department-isleaf.d.ts +2 -0
  121. package/dist/server/middlewares/update-department-isleaf.js +84 -0
  122. package/dist/server/models/department.d.ts +4 -0
  123. package/dist/server/models/department.js +38 -0
  124. package/dist/server/plugin.d.ts +8 -0
  125. package/dist/server/plugin.js +134 -0
  126. package/package.json +27 -0
  127. package/server.d.ts +2 -0
  128. package/server.js +1 -0
@@ -0,0 +1,189 @@
1
+ export declare const collectionUsers: {
2
+ name: string;
3
+ fields: ({
4
+ interface: string;
5
+ type: string;
6
+ name: string;
7
+ primaryKey: boolean;
8
+ autoIncrement: boolean;
9
+ allowNull: boolean;
10
+ uiSchema: {
11
+ type: string;
12
+ title: string;
13
+ 'x-component': string;
14
+ 'x-read-pretty': boolean;
15
+ 'x-validator'?: undefined;
16
+ required?: undefined;
17
+ 'x-component-props'?: undefined;
18
+ };
19
+ unique?: undefined;
20
+ target?: undefined;
21
+ foreignKey?: undefined;
22
+ otherKey?: undefined;
23
+ onDelete?: undefined;
24
+ sourceKey?: undefined;
25
+ targetKey?: undefined;
26
+ through?: undefined;
27
+ throughScope?: undefined;
28
+ } | {
29
+ interface: string;
30
+ type: string;
31
+ name: string;
32
+ uiSchema: {
33
+ type: string;
34
+ title: string;
35
+ 'x-component': string;
36
+ 'x-read-pretty'?: undefined;
37
+ 'x-validator'?: undefined;
38
+ required?: undefined;
39
+ 'x-component-props'?: undefined;
40
+ };
41
+ primaryKey?: undefined;
42
+ autoIncrement?: undefined;
43
+ allowNull?: undefined;
44
+ unique?: undefined;
45
+ target?: undefined;
46
+ foreignKey?: undefined;
47
+ otherKey?: undefined;
48
+ onDelete?: undefined;
49
+ sourceKey?: undefined;
50
+ targetKey?: undefined;
51
+ through?: undefined;
52
+ throughScope?: undefined;
53
+ } | {
54
+ interface: string;
55
+ type: string;
56
+ name: string;
57
+ unique: boolean;
58
+ uiSchema: {
59
+ type: string;
60
+ title: string;
61
+ 'x-component': string;
62
+ 'x-validator': {
63
+ username: boolean;
64
+ };
65
+ required: boolean;
66
+ 'x-read-pretty'?: undefined;
67
+ 'x-component-props'?: undefined;
68
+ };
69
+ primaryKey?: undefined;
70
+ autoIncrement?: undefined;
71
+ allowNull?: undefined;
72
+ target?: undefined;
73
+ foreignKey?: undefined;
74
+ otherKey?: undefined;
75
+ onDelete?: undefined;
76
+ sourceKey?: undefined;
77
+ targetKey?: undefined;
78
+ through?: undefined;
79
+ throughScope?: undefined;
80
+ } | {
81
+ interface: string;
82
+ type: string;
83
+ name: string;
84
+ unique: boolean;
85
+ uiSchema: {
86
+ type: string;
87
+ title: string;
88
+ 'x-component': string;
89
+ 'x-validator': string;
90
+ required: boolean;
91
+ 'x-read-pretty'?: undefined;
92
+ 'x-component-props'?: undefined;
93
+ };
94
+ primaryKey?: undefined;
95
+ autoIncrement?: undefined;
96
+ allowNull?: undefined;
97
+ target?: undefined;
98
+ foreignKey?: undefined;
99
+ otherKey?: undefined;
100
+ onDelete?: undefined;
101
+ sourceKey?: undefined;
102
+ targetKey?: undefined;
103
+ through?: undefined;
104
+ throughScope?: undefined;
105
+ } | {
106
+ interface: string;
107
+ type: string;
108
+ name: string;
109
+ target: string;
110
+ foreignKey: string;
111
+ otherKey: string;
112
+ onDelete: string;
113
+ sourceKey: string;
114
+ targetKey: string;
115
+ through: string;
116
+ uiSchema: {
117
+ type: string;
118
+ title: string;
119
+ 'x-component': string;
120
+ 'x-component-props': {
121
+ multiple: boolean;
122
+ fieldNames: {
123
+ label: string;
124
+ value: string;
125
+ };
126
+ };
127
+ 'x-read-pretty'?: undefined;
128
+ 'x-validator'?: undefined;
129
+ required?: undefined;
130
+ };
131
+ primaryKey?: undefined;
132
+ autoIncrement?: undefined;
133
+ allowNull?: undefined;
134
+ unique?: undefined;
135
+ throughScope?: undefined;
136
+ } | {
137
+ interface: string;
138
+ type: string;
139
+ name: string;
140
+ target: string;
141
+ foreignKey: string;
142
+ otherKey: string;
143
+ onDelete: string;
144
+ sourceKey: string;
145
+ targetKey: string;
146
+ through: string;
147
+ uiSchema: {
148
+ type: string;
149
+ title: string;
150
+ 'x-component': string;
151
+ 'x-read-pretty'?: undefined;
152
+ 'x-validator'?: undefined;
153
+ required?: undefined;
154
+ 'x-component-props'?: undefined;
155
+ };
156
+ primaryKey?: undefined;
157
+ autoIncrement?: undefined;
158
+ allowNull?: undefined;
159
+ unique?: undefined;
160
+ throughScope?: undefined;
161
+ } | {
162
+ interface: string;
163
+ type: string;
164
+ name: string;
165
+ target: string;
166
+ foreignKey: string;
167
+ otherKey: string;
168
+ onDelete: string;
169
+ sourceKey: string;
170
+ targetKey: string;
171
+ through: string;
172
+ throughScope: {
173
+ isMain: boolean;
174
+ };
175
+ uiSchema: {
176
+ type: string;
177
+ title: string;
178
+ 'x-component': string;
179
+ 'x-read-pretty'?: undefined;
180
+ 'x-validator'?: undefined;
181
+ required?: undefined;
182
+ 'x-component-props'?: undefined;
183
+ };
184
+ primaryKey?: undefined;
185
+ autoIncrement?: undefined;
186
+ allowNull?: undefined;
187
+ unique?: undefined;
188
+ })[];
189
+ };
@@ -0,0 +1 @@
1
+ export declare const DepartmentSelect: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const InternalSuperiorDepartmentSelect: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SuperiorDepartmentSelect: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Result } from 'ahooks/es/useRequest/src/types';
3
+ interface departmentType {
4
+ id?: string | number;
5
+ [key: string]: unknown;
6
+ }
7
+ interface contextType {
8
+ user: object;
9
+ setUser?: Function;
10
+ department: departmentType;
11
+ departmentsResource?: {
12
+ service?: Result<any, any>;
13
+ };
14
+ setDepartment?: Function;
15
+ usersResource?: {
16
+ service?: Result<any, any>;
17
+ };
18
+ showChildren?: boolean;
19
+ setShowChildren?: (showChildren: boolean) => void;
20
+ }
21
+ export declare const ProviderContextDepartments: React.Provider<contextType>;
22
+ export declare function useContextDepartments(): contextType;
23
+ export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ interface DepartmentsExpandedProps {
3
+ initData: (C: any) => void;
4
+ treeData: any[];
5
+ setTreeData: React.Dispatch<React.SetStateAction<any[]>>;
6
+ nodeMap: {};
7
+ updateTreeData: (C: any, v: any) => any;
8
+ constructTreeData: (C: any, v: any) => any;
9
+ getChildrenIds: (node: any) => any[];
10
+ loadedKeys: any[];
11
+ setLoadedKeys: React.Dispatch<React.SetStateAction<any[]>>;
12
+ expandedKeys: any[];
13
+ setExpandedKeys: React.Dispatch<React.SetStateAction<any[]>>;
14
+ }
15
+ export declare const ProviderContextDepartmentsExpanded: React.Provider<Partial<DepartmentsExpandedProps>>;
16
+ export declare function useContextDepartmentsExpanded(): Partial<DepartmentsExpandedProps>;
17
+ export {};
@@ -0,0 +1,67 @@
1
+ export declare const getSchemaAddNewDepartment: () => {
2
+ type: string;
3
+ properties: {
4
+ newDepartment: {
5
+ type: string;
6
+ title: string;
7
+ 'x-component': string;
8
+ 'x-component-props': {
9
+ type: string;
10
+ icon: string;
11
+ style: {
12
+ width: string;
13
+ textAlign: string;
14
+ };
15
+ };
16
+ properties: {
17
+ drawer: {
18
+ type: string;
19
+ 'x-component': string;
20
+ 'x-decorator': string;
21
+ title: string;
22
+ properties: {
23
+ title: {
24
+ 'x-component': string;
25
+ 'x-decorator': string;
26
+ required: boolean;
27
+ };
28
+ parent: {
29
+ 'x-component': string;
30
+ 'x-decorator': string;
31
+ 'x-collection-field': string;
32
+ 'x-component-props': {
33
+ component: string;
34
+ };
35
+ };
36
+ roles: {
37
+ 'x-component': string;
38
+ 'x-decorator': string;
39
+ 'x-collection-field': string;
40
+ };
41
+ footer: {
42
+ type: string;
43
+ 'x-component': string;
44
+ properties: {
45
+ cancel: {
46
+ title: string;
47
+ 'x-component': string;
48
+ 'x-component-props': {
49
+ useAction: string;
50
+ };
51
+ };
52
+ submit: {
53
+ title: string;
54
+ 'x-component': string;
55
+ 'x-component-props': {
56
+ type: string;
57
+ useAction: string;
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };
63
+ };
64
+ };
65
+ };
66
+ };
67
+ };
@@ -0,0 +1 @@
1
+ export declare const AddNewDepartment: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 部门编辑表单-负责人
3
+ * @returns 部门负责人字段组件
4
+ */
5
+ export declare const DepartmentOwnersField: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const DepartmentsBlock: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const DepartmentsSearch: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const DepartmentsTree: {
2
+ (): import("react/jsx-runtime").JSX.Element;
3
+ Item: ({ node, setVisible, setDrawer }: {
4
+ node: any;
5
+ setVisible: any;
6
+ setDrawer: any;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ };
@@ -0,0 +1 @@
1
+ export declare const ProviderRequest: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,136 @@
1
+ export declare const schemaUnknownOwerns: {
2
+ type: string;
3
+ properties: {
4
+ drawer: {
5
+ title: string;
6
+ 'x-component': string;
7
+ properties: {
8
+ resource: {
9
+ type: string;
10
+ 'x-decorator': string;
11
+ 'x-component': string;
12
+ properties: {
13
+ actions: {
14
+ type: string;
15
+ 'x-component': string;
16
+ 'x-component-props': {
17
+ style: {
18
+ marginBottom: number;
19
+ };
20
+ };
21
+ properties: {
22
+ filter: {
23
+ type: string;
24
+ title: string;
25
+ default: {
26
+ $and: ({
27
+ username: {
28
+ $includes: string;
29
+ };
30
+ nickname?: undefined;
31
+ } | {
32
+ nickname: {
33
+ $includes: string;
34
+ };
35
+ username?: undefined;
36
+ })[];
37
+ };
38
+ 'x-action': string;
39
+ 'x-component': string;
40
+ 'x-use-component-props': string;
41
+ 'x-component-props': {
42
+ icon: string;
43
+ };
44
+ 'x-align': string;
45
+ };
46
+ };
47
+ };
48
+ table: {
49
+ type: string;
50
+ 'x-component': string;
51
+ 'x-component-props': {
52
+ rowKey: string;
53
+ rowSelection: {
54
+ type: string;
55
+ onChange: string;
56
+ };
57
+ useDataSource: string;
58
+ };
59
+ properties: {
60
+ username: {
61
+ type: string;
62
+ 'x-decorator': string;
63
+ 'x-component': string;
64
+ properties: {
65
+ username: {
66
+ type: string;
67
+ 'x-component': string;
68
+ 'x-read-pretty': boolean;
69
+ };
70
+ };
71
+ };
72
+ nickname: {
73
+ type: string;
74
+ 'x-decorator': string;
75
+ 'x-component': string;
76
+ properties: {
77
+ nickname: {
78
+ type: string;
79
+ 'x-component': string;
80
+ 'x-read-pretty': boolean;
81
+ };
82
+ };
83
+ };
84
+ phone: {
85
+ type: string;
86
+ 'x-decorator': string;
87
+ 'x-component': string;
88
+ properties: {
89
+ phone: {
90
+ type: string;
91
+ 'x-component': string;
92
+ 'x-read-pretty': boolean;
93
+ };
94
+ };
95
+ };
96
+ email: {
97
+ type: string;
98
+ 'x-decorator': string;
99
+ 'x-component': string;
100
+ properties: {
101
+ email: {
102
+ type: string;
103
+ 'x-component': string;
104
+ 'x-read-pretty': boolean;
105
+ };
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
111
+ };
112
+ footer: {
113
+ type: string;
114
+ 'x-component': string;
115
+ properties: {
116
+ cancel: {
117
+ title: string;
118
+ 'x-component': string;
119
+ 'x-component-props': {
120
+ useAction: string;
121
+ };
122
+ };
123
+ confirm: {
124
+ title: string;
125
+ 'x-component': string;
126
+ 'x-component-props': {
127
+ type: string;
128
+ useAction: string;
129
+ };
130
+ };
131
+ };
132
+ };
133
+ };
134
+ };
135
+ };
136
+ };
@@ -0,0 +1 @@
1
+ export declare const ViewUnKnownOwerns: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * 编辑部门表单
3
+ */
4
+ export declare const schemaDepartmentEdit: {
5
+ type: string;
6
+ properties: {
7
+ [x: string]: {
8
+ type: string;
9
+ 'x-component': string;
10
+ 'x-decorator': string;
11
+ 'x-decorator-props': {
12
+ useValues(options: any): import("@tachybase/client").UseRequestResult<unknown>;
13
+ };
14
+ title: string;
15
+ properties: {
16
+ title: {
17
+ 'x-component': string;
18
+ 'x-decorator': string;
19
+ };
20
+ parent: {
21
+ 'x-component': string;
22
+ 'x-decorator': string;
23
+ 'x-collection-field': string;
24
+ 'x-component-props': {
25
+ component: string;
26
+ };
27
+ };
28
+ roles: {
29
+ 'x-component': string;
30
+ 'x-decorator': string;
31
+ 'x-collection-field': string;
32
+ };
33
+ owners: {
34
+ title: string;
35
+ 'x-component': string;
36
+ 'x-decorator': string;
37
+ };
38
+ footer: {
39
+ type: string;
40
+ 'x-component': string;
41
+ properties: {
42
+ cancel: {
43
+ title: string;
44
+ 'x-component': string;
45
+ 'x-component-props': {
46
+ useAction: string;
47
+ };
48
+ };
49
+ submit: {
50
+ title: string;
51
+ 'x-component': string;
52
+ 'x-component-props': {
53
+ type: string;
54
+ useAction: string;
55
+ };
56
+ };
57
+ };
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };
@@ -0,0 +1,57 @@
1
+ /**
2
+ * 新增子部门表单
3
+ */
4
+ export declare const schemaDepartmentNewSub: {
5
+ type: string;
6
+ properties: {
7
+ [x: string]: {
8
+ title: string;
9
+ type: string;
10
+ 'x-component': string;
11
+ 'x-decorator': string;
12
+ 'x-decorator-props': {
13
+ useValues(options: any): import("@tachybase/client").UseRequestResult<unknown>;
14
+ };
15
+ properties: {
16
+ title: {
17
+ 'x-component': string;
18
+ 'x-decorator': string;
19
+ };
20
+ parent: {
21
+ 'x-component': string;
22
+ 'x-decorator': string;
23
+ 'x-collection-field': string;
24
+ 'x-component-props': {
25
+ component: string;
26
+ };
27
+ };
28
+ roles: {
29
+ 'x-component': string;
30
+ 'x-decorator': string;
31
+ 'x-collection-field': string;
32
+ };
33
+ footer: {
34
+ type: string;
35
+ 'x-component': string;
36
+ properties: {
37
+ cancel: {
38
+ title: string;
39
+ 'x-component': string;
40
+ 'x-component-props': {
41
+ useAction: string;
42
+ };
43
+ };
44
+ submit: {
45
+ title: string;
46
+ 'x-component': string;
47
+ 'x-component-props': {
48
+ type: string;
49
+ useAction: string;
50
+ };
51
+ };
52
+ };
53
+ };
54
+ };
55
+ };
56
+ };
57
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useCreateDepartment: () => {
2
+ run(): Promise<void>;
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useUpdateDepartment: () => {
2
+ run(): Promise<void>;
3
+ };