@tachybase/module-hera 1.9.8

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 (262) hide show
  1. package/.turbo/turbo-build.log +11 -0
  2. package/README.md +1 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/components/PDFViewer.d.ts +11 -0
  6. package/dist/client/components/SignatureInput.d.ts +2 -0
  7. package/dist/client/components/SignaturePad.d.ts +240 -0
  8. package/dist/client/components/custom-components/CustomAssociatedField.d.ts +2 -0
  9. package/dist/client/components/custom-components/CustomComponentDispatcher.d.ts +5 -0
  10. package/dist/client/components/custom-components/CustomField.d.ts +2 -0
  11. package/dist/client/components/custom-components/ErrorBoundary.d.ts +2 -0
  12. package/dist/client/components/custom-components/custom-components.d.ts +21 -0
  13. package/dist/client/components/excel-table/ExcelFile.d.ts +2 -0
  14. package/dist/client/components/excel-table/Sheet.d.ts +10 -0
  15. package/dist/client/components/fields/AssociatedField.d.ts +7 -0
  16. package/dist/client/components/fields/CalcResult.d.ts +1 -0
  17. package/dist/client/components/fields/Expression.d.ts +3 -0
  18. package/dist/client/components/index.d.ts +11 -0
  19. package/dist/client/components/modal-full-screen/ModalFullScreen.d.ts +15 -0
  20. package/dist/client/components/modal-full-screen/ModalFullScreenChild.d.ts +2 -0
  21. package/dist/client/features/block-group/GroupBlock.d.ts +4 -0
  22. package/dist/client/features/block-group/GroupBlockConfigure.d.ts +19 -0
  23. package/dist/client/features/block-group/GroupBlockInitializer.d.ts +9 -0
  24. package/dist/client/features/block-group/index.d.ts +4 -0
  25. package/dist/client/features/custom-components/index.d.ts +5 -0
  26. package/dist/client/features/departments/common/DepartmentTable.schema.d.ts +50 -0
  27. package/dist/client/features/departments/common/DepartmentTable.view.d.ts +5 -0
  28. package/dist/client/features/departments/common/FilterKeys.context.d.ts +10 -0
  29. package/dist/client/features/departments/common/InternalDepartmentTable.d.ts +6 -0
  30. package/dist/client/features/departments/common/Request.povider.d.ts +2 -0
  31. package/dist/client/features/departments/common/UserDepartmentsFieldNotSupport.d.ts +2 -0
  32. package/dist/client/features/departments/common/scopes/useDepartmentFilterActionProps.d.ts +5 -0
  33. package/dist/client/features/departments/common/scopes/useFilterActionProps.d.ts +5 -0
  34. package/dist/client/features/departments/index.d.ts +5 -0
  35. package/dist/client/features/departments/main-tab/DepartmentIndex.d.ts +6 -0
  36. package/dist/client/features/departments/main-tab/DepartmentIndex.provider.d.ts +4 -0
  37. package/dist/client/features/departments/main-tab/DepartmentManagement.component.d.ts +2 -0
  38. package/dist/client/features/departments/main-tab/DepartmentManagement.schema.d.ts +10 -0
  39. package/dist/client/features/departments/main-tab/DepartmentManagement.view.d.ts +2 -0
  40. package/dist/client/features/departments/main-tab/collections/departments.collection.d.ts +128 -0
  41. package/dist/client/features/departments/main-tab/collections/users.collection.d.ts +189 -0
  42. package/dist/client/features/departments/main-tab/components/DepartmentSelect.d.ts +2 -0
  43. package/dist/client/features/departments/main-tab/components/InternalSuperiorDepartmentSelect.d.ts +2 -0
  44. package/dist/client/features/departments/main-tab/components/SuperiorDepartmentSelect.d.ts +2 -0
  45. package/dist/client/features/departments/main-tab/context/Department.context.d.ts +23 -0
  46. package/dist/client/features/departments/main-tab/context/DepartmentsExpanded.context.d.ts +17 -0
  47. package/dist/client/features/departments/main-tab/departments-block/AddNewDepartment.schema.d.ts +67 -0
  48. package/dist/client/features/departments/main-tab/departments-block/AddNewDepartment.view.d.ts +2 -0
  49. package/dist/client/features/departments/main-tab/departments-block/DepartmentOwnersField.component.d.ts +6 -0
  50. package/dist/client/features/departments/main-tab/departments-block/DepartmentsBlock.d.ts +2 -0
  51. package/dist/client/features/departments/main-tab/departments-block/DepartmentsSearch.component.d.ts +2 -0
  52. package/dist/client/features/departments/main-tab/departments-block/DepartmentsTree.component.d.ts +9 -0
  53. package/dist/client/features/departments/main-tab/departments-block/Request.provider.d.ts +2 -0
  54. package/dist/client/features/departments/main-tab/departments-block/UnknownOwerns.schema.d.ts +136 -0
  55. package/dist/client/features/departments/main-tab/departments-block/UnknownOwerns.view.d.ts +2 -0
  56. package/dist/client/features/departments/main-tab/departments-block/schemas/schemaDepartmentEdit.d.ts +62 -0
  57. package/dist/client/features/departments/main-tab/departments-block/schemas/schemaDepartmentNewSub.d.ts +57 -0
  58. package/dist/client/features/departments/main-tab/departments-block/scopes/useCreateDepartment.d.ts +3 -0
  59. package/dist/client/features/departments/main-tab/departments-block/scopes/useUpdateDepartment.d.ts +3 -0
  60. package/dist/client/features/departments/main-tab/departments-users-block/AddMembers.schema.d.ts +148 -0
  61. package/dist/client/features/departments/main-tab/departments-users-block/AddMembers.view.d.ts +2 -0
  62. package/dist/client/features/departments/main-tab/departments-users-block/DepartmentField.component.d.ts +2 -0
  63. package/dist/client/features/departments/main-tab/departments-users-block/DepartmentsUsersBlock.d.ts +2 -0
  64. package/dist/client/features/departments/main-tab/departments-users-block/DepartmentsUsersBlock.schema.d.ts +676 -0
  65. package/dist/client/features/departments/main-tab/departments-users-block/IsOwnerField.component.d.ts +2 -0
  66. package/dist/client/features/departments/main-tab/departments-users-block/MemberActions.schema.d.ts +49 -0
  67. package/dist/client/features/departments/main-tab/departments-users-block/MemberActions.view.d.ts +2 -0
  68. package/dist/client/features/departments/main-tab/departments-users-block/RowRemoveAction.schema.d.ts +16 -0
  69. package/dist/client/features/departments/main-tab/departments-users-block/RowRemoveAction.view.d.ts +2 -0
  70. package/dist/client/features/departments/main-tab/departments-users-block/UserDepartmentsField.component.d.ts +2 -0
  71. package/dist/client/features/departments/main-tab/departments-users-block/UserSelectDepartment.schema.d.ts +42 -0
  72. package/dist/client/features/departments/main-tab/departments-users-block/UserSelectDepartment.view.d.ts +2 -0
  73. package/dist/client/features/departments/main-tab/departments-users-block/scopes/useBulkRemoveMembersAction.d.ts +3 -0
  74. package/dist/client/features/departments/main-tab/departments-users-block/scopes/useDataSource.d.ts +40 -0
  75. package/dist/client/features/departments/main-tab/departments-users-block/scopes/useMembersDataSource.d.ts +6 -0
  76. package/dist/client/features/departments/main-tab/departments-users-block/scopes/usePropsAddMember.d.ts +1 -0
  77. package/dist/client/features/departments/main-tab/departments-users-block/scopes/useRefreshActionProps.d.ts +3 -0
  78. package/dist/client/features/departments/main-tab/departments-users-block/scopes/useRemoveMemberAction.d.ts +3 -0
  79. package/dist/client/features/departments/main-tab/departments-users-block/scopes/useShowTotal.d.ts +1 -0
  80. package/dist/client/features/departments/main-tab/hooks/useDeepTree.d.ts +14 -0
  81. package/dist/client/features/departments/main-tab/hooks/useGetDepTree.d.ts +18 -0
  82. package/dist/client/features/departments/main-tab/kit.d.ts +4 -0
  83. package/dist/client/features/departments/main-tab/providers/DepartmentsResource.provider.d.ts +4 -0
  84. package/dist/client/features/departments/main-tab/providers/UserResource.provider.d.ts +4 -0
  85. package/dist/client/features/departments/role-auth/DepartmentTitle.component.d.ts +2 -0
  86. package/dist/client/features/departments/role-auth/Departments.d.ts +2 -0
  87. package/dist/client/features/departments/role-auth/Departments.schema.d.ts +227 -0
  88. package/dist/client/features/departments/role-auth/kit.d.ts +4 -0
  89. package/dist/client/features/departments/role-auth/scopes/useAddDepartments.d.ts +3 -0
  90. package/dist/client/features/departments/role-auth/scopes/useBulkRemoveDepartments.d.ts +3 -0
  91. package/dist/client/features/departments/role-auth/scopes/useDataSource.d.ts +40 -0
  92. package/dist/client/features/departments/role-auth/scopes/useDisabled.d.ts +3 -0
  93. package/dist/client/features/departments/role-auth/scopes/useRemoveDepartment.d.ts +3 -0
  94. package/dist/client/features/departments/settings/DepartmentOwnersFieldSetting.d.ts +2 -0
  95. package/dist/client/features/departments/settings/UserDepartmentsFieldSetting.d.ts +2 -0
  96. package/dist/client/features/departments/settings/UserMainDepartmentFieldSetting.d.ts +2 -0
  97. package/dist/client/features/departments/settings/items/enableLinkItem.d.ts +2 -0
  98. package/dist/client/features/departments/settings/items/modeSelectItem.d.ts +2 -0
  99. package/dist/client/features/departments/settings/items/titleFieldItem.d.ts +2 -0
  100. package/dist/client/features/departments/utils/getDepartmentStr.d.ts +1 -0
  101. package/dist/client/features/departments/utils/getUserListByDepartment.d.ts +1 -0
  102. package/dist/client/features/embed/EmbedLayout.d.ts +2 -0
  103. package/dist/client/features/embed/EmbedPage.d.ts +2 -0
  104. package/dist/client/features/embed/EmbedSchemaComponent.d.ts +2 -0
  105. package/dist/client/features/embed/NotAuthorityResult.d.ts +2 -0
  106. package/dist/client/features/embed/index.d.ts +4 -0
  107. package/dist/client/features/embed/useEmbedToken.d.ts +1 -0
  108. package/dist/client/features/embed/usePageSettingsProps.d.ts +4 -0
  109. package/dist/client/features/field-appends/index.d.ts +4 -0
  110. package/dist/client/features/field-appends/show-code/Code.interface.d.ts +74 -0
  111. package/dist/client/features/field-appends/show-code/Code.view.d.ts +3 -0
  112. package/dist/client/features/field-appends/show-formula/Formula.interface.d.ts +75 -0
  113. package/dist/client/features/field-appends/show-formula/Formula.view.d.ts +3 -0
  114. package/dist/client/features/hera-version/HeraVersion.provider.d.ts +4 -0
  115. package/dist/client/features/hera-version/index.d.ts +4 -0
  116. package/dist/client/features/mode-highlight/ModeHighlight.provider.d.ts +4 -0
  117. package/dist/client/features/mode-highlight/index.d.ts +4 -0
  118. package/dist/client/features/outbound/OutboundLinkActionInitializer.d.ts +6 -0
  119. package/dist/client/features/outbound/OutboundPage.d.ts +2 -0
  120. package/dist/client/features/outbound/index.d.ts +4 -0
  121. package/dist/client/features/outbound/useOutboundActionProps.d.ts +3 -0
  122. package/dist/client/features/pdf/PDFVIewerBlockInitializer.d.ts +10 -0
  123. package/dist/client/features/pdf/PDFViewer.d.ts +2 -0
  124. package/dist/client/features/pdf/index.d.ts +4 -0
  125. package/dist/client/features/sheet/SheetBlockInitializer.d.ts +8 -0
  126. package/dist/client/features/sheet/index.d.ts +4 -0
  127. package/dist/client/hooks/useCustomComponent.d.ts +5 -0
  128. package/dist/client/hooks/useGetCustomAssociatedComponents.d.ts +4 -0
  129. package/dist/client/hooks/useGetCustomComponents.d.ts +4 -0
  130. package/dist/client/hooks/useNotifications.d.ts +2 -0
  131. package/dist/client/hooks/usePluginVersion.d.ts +1 -0
  132. package/dist/client/hooks/useTokenConfiguration.d.ts +3 -0
  133. package/dist/client/index.d.ts +16 -0
  134. package/dist/client/index.js +93 -0
  135. package/dist/client/interfaces/AssociatedFieldInterface.d.ts +118 -0
  136. package/dist/client/interfaces/CalcFieldInterface.d.ts +120 -0
  137. package/dist/client/interfaces/CustomAssociatedFieldInterface.d.ts +69 -0
  138. package/dist/client/interfaces/CustomFieldInterface.d.ts +45 -0
  139. package/dist/client/interfaces/ExcelFieldInterface.d.ts +38 -0
  140. package/dist/client/interfaces/SignaturePadFieldInterface.d.ts +38 -0
  141. package/dist/client/interfaces/TstzrangeFieldInterface.d.ts +41 -0
  142. package/dist/client/interfaces/index.d.ts +6 -0
  143. package/dist/client/locale.d.ts +9 -0
  144. package/dist/client/schema-initializer/blocks/SettingBlockInitializer.d.ts +2 -0
  145. package/dist/client/schema-initializer/index.d.ts +1 -0
  146. package/dist/client/schema-settings/SchemaSettingsDatePickerType.d.ts +2 -0
  147. package/dist/client/schema-settings/SchemaSettingsDatePresets.d.ts +11 -0
  148. package/dist/client/schema-settings/SchemaSettingsSubmitDataType.d.ts +5 -0
  149. package/dist/client/schema-settings/index.d.ts +4 -0
  150. package/dist/client/settings-manager-components/LinkManager.d.ts +2 -0
  151. package/dist/client/settings-manager-components/TokenConfiguration.d.ts +6 -0
  152. package/dist/client/settings-manager-components/index.d.ts +8 -0
  153. package/dist/client/utils.d.ts +2 -0
  154. package/dist/externalVersion.js +21 -0
  155. package/dist/index.d.ts +2 -0
  156. package/dist/index.js +39 -0
  157. package/dist/locale/en-US.json +94 -0
  158. package/dist/locale/zh-CN.json +94 -0
  159. package/dist/node_modules/fs-extra/LICENSE +15 -0
  160. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +161 -0
  161. package/dist/node_modules/fs-extra/lib/copy/copy.js +177 -0
  162. package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
  163. package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
  164. package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
  165. package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
  166. package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
  167. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
  168. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
  169. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
  170. package/dist/node_modules/fs-extra/lib/fs/index.js +140 -0
  171. package/dist/node_modules/fs-extra/lib/index.js +1 -0
  172. package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
  173. package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  174. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  175. package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
  176. package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  177. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  178. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  179. package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
  180. package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  181. package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
  182. package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
  183. package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  184. package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
  185. package/dist/node_modules/fs-extra/lib/util/stat.js +158 -0
  186. package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
  187. package/dist/node_modules/fs-extra/package.json +1 -0
  188. package/dist/server/actions/departments.d.ts +5 -0
  189. package/dist/server/actions/departments.js +105 -0
  190. package/dist/server/actions/index.d.ts +7 -0
  191. package/dist/server/actions/index.js +33 -0
  192. package/dist/server/actions/link-manager-controller.d.ts +6 -0
  193. package/dist/server/actions/link-manager-controller.js +133 -0
  194. package/dist/server/actions/plugin-version.d.ts +6 -0
  195. package/dist/server/actions/plugin-version.js +91 -0
  196. package/dist/server/actions/robot-controller.d.ts +5 -0
  197. package/dist/server/actions/robot-controller.js +134 -0
  198. package/dist/server/actions/system-message-controller.d.ts +5 -0
  199. package/dist/server/actions/system-message-controller.js +106 -0
  200. package/dist/server/actions/token-configuration-controller.d.ts +5 -0
  201. package/dist/server/actions/token-configuration-controller.js +120 -0
  202. package/dist/server/actions/users.d.ts +4 -0
  203. package/dist/server/actions/users.js +142 -0
  204. package/dist/server/collections/departmentRoles.d.ts +2 -0
  205. package/dist/server/collections/departmentRoles.js +27 -0
  206. package/dist/server/collections/departments.d.ts +29 -0
  207. package/dist/server/collections/departments.js +162 -0
  208. package/dist/server/collections/departmentsUsers.d.ts +2 -0
  209. package/dist/server/collections/departmentsUsers.js +43 -0
  210. package/dist/server/collections/link-manage.d.ts +2 -0
  211. package/dist/server/collections/link-manage.js +42 -0
  212. package/dist/server/collections/roles.d.ts +2 -0
  213. package/dist/server/collections/roles.js +39 -0
  214. package/dist/server/collections/systemSettings.d.ts +2 -0
  215. package/dist/server/collections/systemSettings.js +33 -0
  216. package/dist/server/collections/system_message.d.ts +2 -0
  217. package/dist/server/collections/system_message.js +67 -0
  218. package/dist/server/collections/token-configuration.d.ts +2 -0
  219. package/dist/server/collections/token-configuration.js +54 -0
  220. package/dist/server/collections/users.d.ts +55 -0
  221. package/dist/server/collections/users.js +87 -0
  222. package/dist/server/features/departments.d.ts +7 -0
  223. package/dist/server/features/departments.js +132 -0
  224. package/dist/server/fields/calc.d.ts +11 -0
  225. package/dist/server/fields/calc.js +43 -0
  226. package/dist/server/fields/tstzrange.d.ts +7 -0
  227. package/dist/server/fields/tstzrange.js +28 -0
  228. package/dist/server/index.d.ts +3 -0
  229. package/dist/server/index.js +41 -0
  230. package/dist/server/middlewares/destroy-department-check.d.ts +2 -0
  231. package/dist/server/middlewares/destroy-department-check.js +53 -0
  232. package/dist/server/middlewares/index.d.ts +6 -0
  233. package/dist/server/middlewares/index.js +31 -0
  234. package/dist/server/middlewares/list-users-include-child-department.d.ts +2 -0
  235. package/dist/server/middlewares/list-users-include-child-department.js +77 -0
  236. package/dist/server/middlewares/reset-user-departments-cache.d.ts +2 -0
  237. package/dist/server/middlewares/reset-user-departments-cache.js +39 -0
  238. package/dist/server/middlewares/set-department-owners.d.ts +2 -0
  239. package/dist/server/middlewares/set-department-owners.js +74 -0
  240. package/dist/server/middlewares/set-departments-roles.d.ts +2 -0
  241. package/dist/server/middlewares/set-departments-roles.js +64 -0
  242. package/dist/server/middlewares/set-main-department.d.ts +2 -0
  243. package/dist/server/middlewares/set-main-department.js +105 -0
  244. package/dist/server/middlewares/update-department-isleaf.d.ts +2 -0
  245. package/dist/server/middlewares/update-department-isleaf.js +84 -0
  246. package/dist/server/models/department.d.ts +4 -0
  247. package/dist/server/models/department.js +38 -0
  248. package/dist/server/plugin.d.ts +6 -0
  249. package/dist/server/plugin.js +111 -0
  250. package/dist/server/services/plugin-version.d.ts +5 -0
  251. package/dist/server/services/plugin-version.js +89 -0
  252. package/dist/server/services/sql-loader.d.ts +10 -0
  253. package/dist/server/services/sql-loader.js +129 -0
  254. package/dist/server/services/system-setting-service.d.ts +7 -0
  255. package/dist/server/services/system-setting-service.js +87 -0
  256. package/dist/server/utils/curren-formula.d.ts +1 -0
  257. package/dist/server/utils/curren-formula.js +30 -0
  258. package/dist/server/utils/multiprocess.d.ts +2 -0
  259. package/dist/server/utils/multiprocess.js +38 -0
  260. package/package.json +64 -0
  261. package/server.d.ts +2 -0
  262. package/server.js +1 -0
@@ -0,0 +1,11 @@
1
+
2
+ 
3
+ > @hera/plugin-core@1.9.2 build /Users/seal/Documents/projects/tachybase/packages/module-hera
4
+ > tachybase-build --no-dts @hera/plugin-core
5
+
6
+ The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
7
+ @hera/plugin-core: module-hera build start
8
+ @hera/plugin-core: build plugin client
9
+ src/client/components/fields/CalcResult.tsx (174:13): Use of eval in "src/client/components/fields/CalcResult.tsx" is strongly discouraged as it poses security risks and may cause issues with minification.
10
+ @hera/plugin-core: build plugin server source
11
+ @hera/plugin-core: delete server files
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @tachybase/module-hera
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client';
2
+ export { default } from './dist/client';
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface PDFViewerProps {
3
+ file: string;
4
+ width: number;
5
+ }
6
+ interface PDFViewerRef {
7
+ download: () => void;
8
+ print: () => void;
9
+ }
10
+ export declare const PDFViewer: React.ForwardRefExoticComponent<PDFViewerProps & React.RefAttributes<PDFViewerRef>>;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SignatureInput: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,240 @@
1
+ import * as React from 'react';
2
+ import SigPad, { Options, PointGroup, ToSVGOptions } from 'signature_pad';
3
+ type Props = {
4
+ width?: number;
5
+ height?: number;
6
+ options?: Options;
7
+ canvasProps?: {
8
+ [key: string]: string | {
9
+ [key: string]: string;
10
+ };
11
+ };
12
+ } & DefaultProps;
13
+ type DefaultProps = {
14
+ redrawOnResize: boolean;
15
+ debounceInterval: number;
16
+ };
17
+ type State = {
18
+ canvasWidth: number;
19
+ canvasHeight: number;
20
+ };
21
+ /**
22
+ * @class
23
+ * @classdesc Signature pad component.
24
+ * @extends {PureComponent}
25
+ */
26
+ declare class SignaturePad extends React.PureComponent<Props, State> {
27
+ static displayName: string;
28
+ static defaultProps: DefaultProps;
29
+ private canvasRef;
30
+ private signaturePad;
31
+ private callResizeHandler;
32
+ /**
33
+ * Create a new signature pad.
34
+ *
35
+ * @param {Props} props
36
+ */
37
+ constructor(props: Props);
38
+ /**
39
+ * Initialise the signature pad once the canvas element is rendered.
40
+ *
41
+ * @return {void}
42
+ */
43
+ componentDidMount(): void;
44
+ /**
45
+ * Remove the resize event listener and switch the signature pad off on
46
+ * unmount.
47
+ *
48
+ * @return {void}
49
+ */
50
+ componentWillUnmount(): void;
51
+ /**
52
+ * Get the original signature_pad instance.
53
+ *
54
+ * @return {SigPad}
55
+ */
56
+ get instance(): SigPad;
57
+ /**
58
+ * Get the canvas ref.
59
+ *
60
+ * @return {Object}
61
+ */
62
+ get canvas(): React.RefObject<HTMLCanvasElement>;
63
+ /**
64
+ * Set the radius of a single dot.
65
+ *
66
+ * @param {number} dotSize
67
+ * @return {void}
68
+ */
69
+ set dotSize(dotSize: number);
70
+ /**
71
+ * Get the radius of a single dot.
72
+ *
73
+ * @return {number}
74
+ */
75
+ get dotSize(): number;
76
+ /**
77
+ * Set the minimum width of a line.
78
+ *
79
+ * @param {number} minWidth
80
+ * @return {void}
81
+ */
82
+ set minWidth(minWidth: number);
83
+ /**
84
+ * Get the minimum width of a line.
85
+ *
86
+ * @return {number}
87
+ */
88
+ get minWidth(): number;
89
+ /**
90
+ * Get the maximum width of a line.
91
+ *
92
+ * @param {number} maxWidth
93
+ * @return {void}
94
+ */
95
+ set maxWidth(maxWidth: number);
96
+ /**
97
+ * Get the maximum width of a line.
98
+ *
99
+ * @return {number}
100
+ */
101
+ get maxWidth(): number;
102
+ /**
103
+ * Set the throttle for drawing the next point at most once every x ms.
104
+ *
105
+ * @param {number} throttle
106
+ * @return {void}
107
+ */
108
+ set throttle(throttle: number);
109
+ /**
110
+ * Get the throttle for drawing the next point at most once every x ms.
111
+ *
112
+ * @return {number}
113
+ */
114
+ get throttle(): number;
115
+ /**
116
+ * Set the color used to clear the background.
117
+ *
118
+ * @param {string} color
119
+ * @return {void}
120
+ */
121
+ set backgroundColor(color: string);
122
+ /**
123
+ * Get the color used to clear the background.
124
+ *
125
+ * @return {string}
126
+ */
127
+ get backgroundColor(): string;
128
+ /**
129
+ * Set the color used to draw the lines.
130
+ *
131
+ * @param {string} color
132
+ * @return {void}
133
+ */
134
+ set penColor(color: string);
135
+ /**
136
+ * Get the color used to draw the lines.
137
+ *
138
+ * @return {string}
139
+ */
140
+ get penColor(): string;
141
+ /**
142
+ * Set weight used to modify new velocity based on the previous velocity.
143
+ *
144
+ * @param {number} weight
145
+ * @return {void}
146
+ */
147
+ set velocityFilterWeight(weight: number);
148
+ /**
149
+ * Get weight used to modify new velocity based on the previous velocity.
150
+ *
151
+ * @return {number}
152
+ */
153
+ get velocityFilterWeight(): number;
154
+ /**
155
+ * Determine if the canvas is empty.
156
+ *
157
+ * @return {boolean}
158
+ */
159
+ isEmpty(): boolean;
160
+ /**
161
+ * Clear the canvas.
162
+ *
163
+ * @return {void}
164
+ */
165
+ clear(): void;
166
+ /**
167
+ * Draw a signature from a data URL.
168
+ *
169
+ * @param {string} dataUrl
170
+ * @param {object} options
171
+ * @return {void}
172
+ */
173
+ fromDataURL(dataUrl: string, options?: Partial<{
174
+ ratio: number;
175
+ width: number;
176
+ height: number;
177
+ xOffset: number;
178
+ yOffset: number;
179
+ }>): void;
180
+ /**
181
+ * Get the signature data as a data URL.
182
+ *
183
+ * @param {?string} mime
184
+ * @param {?number} encoderOptions
185
+ * @return {string}
186
+ */
187
+ toDataURL(type?: string, encoderOptions?: number): string;
188
+ /**
189
+ * Get the signature data as an SVG string without converting to base64.
190
+ *
191
+ * @param {?ToSVGOptions} svgOptions
192
+ * @return {string}
193
+ */
194
+ toSVG(svgOptions?: ToSVGOptions): string;
195
+ /**
196
+ * Draw a signature from an array of point groups.
197
+ *
198
+ * @param {PointGroup[]} data
199
+ * @return {void}
200
+ */
201
+ fromData(data: PointGroup[]): void;
202
+ /**
203
+ * Get the signature pad data an array of point groups.
204
+ *
205
+ * @return {PointGroup[]}
206
+ */
207
+ toData(): PointGroup[];
208
+ /**
209
+ * Turn the signature pad off.
210
+ *
211
+ * @return {void}
212
+ */
213
+ off(): void;
214
+ /**
215
+ * Turn the signature pad on.
216
+ *
217
+ * @return {void}
218
+ */
219
+ on(): void;
220
+ /**
221
+ * Handle a resize event.
222
+ *
223
+ * @return {void}
224
+ */
225
+ handleResize(): void;
226
+ /**
227
+ * Scale the canvas.
228
+ *
229
+ * @param {HTMLCanvasElement} canvas
230
+ * @return {void}
231
+ */
232
+ scaleCanvas(canvas: HTMLCanvasElement): void;
233
+ /**
234
+ * Render the signature pad component.
235
+ *
236
+ * @return {ReactNode}
237
+ */
238
+ render(): React.ReactNode;
239
+ }
240
+ export default SignaturePad;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CustomAssociatedField: (props: any) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SchemaSettings } from '@tachybase/client';
3
+ export declare const CustomComponentStub: (props: any) => React.JSX.Element;
4
+ export declare const CustomComponentDispatcher: (props: any) => React.JSX.Element;
5
+ export declare const customComponentDispatcherSettings: SchemaSettings<{}>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CustomField: (props: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ErrorBoundaryFallBack: () => React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { ComponentType, MemoExoticComponent } from 'react';
2
+ import { ReactFC } from '@tachybase/schema';
3
+ export interface CustomFunctionComponent<P = {}> extends React.FunctionComponent<P> {
4
+ __componentType: CustomComponentType;
5
+ __componentLabel: string;
6
+ }
7
+ export interface CustomFC<P = {}> extends MemoExoticComponent<ReactFC<P>> {
8
+ __componentType: CustomComponentType;
9
+ __componentLabel: string;
10
+ }
11
+ export declare enum CustomComponentType {
12
+ CUSTOM_FORM_ITEM = "FORM_ITEM",
13
+ CUSTOM_FIELD = "FIELD",
14
+ CUSTOM_ASSOCIATED_FIELD = "ASSOCIATED_FIELD"
15
+ }
16
+ export interface CustomComponentOption {
17
+ label: string;
18
+ name: string;
19
+ type?: CustomComponentType;
20
+ component: ComponentType;
21
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ExcelFile: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export type SheetRef = {
3
+ getData: () => any;
4
+ };
5
+ export type SheetProps = {
6
+ data?: any;
7
+ className?: string;
8
+ };
9
+ declare const ExcelSheet: React.ForwardRefExoticComponent<SheetProps & React.RefAttributes<SheetRef>>;
10
+ export default ExcelSheet;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const useInsertSchema: (component: any) => (ss: any) => void;
3
+ export declare const AssociatedField: React.ForwardRefExoticComponent<Omit<Partial<Omit<Omit<{
4
+ children?: React.ReactNode | undefined;
5
+ }, string | number | symbol> & Omit<any, "ref">, "ref"> & {
6
+ ref?: unknown;
7
+ }>, "ref"> & React.RefAttributes<unknown>>;
@@ -0,0 +1 @@
1
+ export declare const CalcResult: any;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const Expression: (props: any) => React.JSX.Element;
3
+ export default Expression;
@@ -0,0 +1,11 @@
1
+ export * from './PDFViewer';
2
+ export * from './excel-table/Sheet';
3
+ export * from './SignatureInput';
4
+ export * from './SignaturePad';
5
+ export * from './custom-components/CustomAssociatedField';
6
+ export * from './custom-components/CustomComponentDispatcher';
7
+ export * from './custom-components/CustomField';
8
+ export * from './fields/AssociatedField';
9
+ export * from './fields/CalcResult';
10
+ export * from './fields/Expression';
11
+ export * from './excel-table/ExcelFile';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface ModalFullScreenProps {
3
+ className?: string;
4
+ title?: string;
5
+ open?: boolean;
6
+ destroyOnClose?: boolean;
7
+ children?: any;
8
+ onOk?: () => void;
9
+ onCancel?: () => void;
10
+ }
11
+ declare const ModalFullScreen: {
12
+ (props: ModalFullScreenProps): React.ReactPortal;
13
+ displayName: string;
14
+ };
15
+ export default ModalFullScreen;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ModalHeader: (props: any) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const GroupBlock: (props: any) => React.JSX.Element;
3
+ export declare const fieldTransformers: (item: any, data: any, api: any) => string;
4
+ export declare const InternalGroupBlock: (props: any) => React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export declare const GroupBlockConfigure: React.ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & React.RefAttributes<unknown>>;
3
+ export declare const transformers: {
4
+ option: ({
5
+ label: string;
6
+ value: string;
7
+ component: (val: number, locale?: string, isNeedNegative?: boolean) => string;
8
+ childrens?: undefined;
9
+ } | {
10
+ label: string;
11
+ value: string;
12
+ childrens: {
13
+ label: string;
14
+ value: string;
15
+ component: (val: number) => string;
16
+ }[];
17
+ component?: undefined;
18
+ })[];
19
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SchemaSettings, SchemaToolbarProps } from '@tachybase/client';
3
+ export declare const GroupBlockContext: React.Context<any>;
4
+ export declare const GroupBlockProvider: (props: any) => React.JSX.Element;
5
+ export declare const GroupBlockInitializer: () => React.JSX.Element;
6
+ export declare const groupBlockSettings: SchemaSettings<{}>;
7
+ export declare const GroupBlockToolbar: (props: React.JSX.IntrinsicAttributes & SchemaToolbarProps & {
8
+ children?: React.ReactNode;
9
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginGroupBlock extends Plugin {
3
+ load(): Promise<void>;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { Plugin, SchemaSettings } from '@tachybase/client';
2
+ export declare const customFieldComponentFieldSettings: SchemaSettings<{}>;
3
+ export declare class PluginCustomComponents extends Plugin {
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1,50 @@
1
+ export declare const getSchemaDepartmentTable: (params: any) => {
2
+ type: string;
3
+ properties: {
4
+ [x: string]: {
5
+ type: string;
6
+ 'x-component': string;
7
+ 'x-component-props': {
8
+ useDataSource: any;
9
+ };
10
+ properties: {
11
+ actions: {
12
+ type: string;
13
+ 'x-component': string;
14
+ 'x-component-props': {
15
+ style: {
16
+ marginBottom: number;
17
+ };
18
+ };
19
+ properties: {
20
+ filter: {
21
+ type: string;
22
+ title: string;
23
+ default: {
24
+ $and: {
25
+ title: {
26
+ $includes: string;
27
+ };
28
+ }[];
29
+ };
30
+ 'x-action': string;
31
+ 'x-component': string;
32
+ 'x-use-component-props': string;
33
+ 'x-component-props': {
34
+ icon: string;
35
+ };
36
+ 'x-align': string;
37
+ };
38
+ };
39
+ };
40
+ departments: {
41
+ type: string;
42
+ 'x-component': string;
43
+ 'x-component-props': {
44
+ useDisabled: string;
45
+ };
46
+ };
47
+ };
48
+ };
49
+ };
50
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const ViewDepartmentTable: ({ useDataSource, useDisabled }: {
3
+ useDataSource: any;
4
+ useDisabled: any;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface FilterKeysContextProps {
3
+ expandedKeys: any[];
4
+ setExpandedKeys: any;
5
+ hasFilter: any;
6
+ setHasFilter: any;
7
+ }
8
+ export declare const ProviderContextFilterKeys: React.Provider<Partial<FilterKeysContextProps>>;
9
+ export declare function useContextFilterKeys(): Partial<FilterKeysContextProps>;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const InternalDepartmentTable: ({ useDisabled }: {
3
+ useDisabled?: () => {
4
+ disabled: () => boolean;
5
+ };
6
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ProviderRequest: (prop: any) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const UserDepartmentsFieldNotSupport: React.ForwardRefExoticComponent<Partial<unknown> & React.RefAttributes<unknown>>;
@@ -0,0 +1,5 @@
1
+ export declare const useDepartmentFilterActionProps: () => {
2
+ options: any;
3
+ onSubmit(values: any): any;
4
+ onReset(): any;
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const useFilterActionProps: () => {
2
+ options: any[];
3
+ onSubmit: (args: any) => Promise<void>;
4
+ onReset(): void;
5
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class DepartmentsPlugin extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ load(): Promise<void>;
5
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * TODO: 组件名称有待重新确认
4
+ * @returns
5
+ */
6
+ export declare const DepartmentIndex: () => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const ProviderDepartmentIndex: ({ children }: {
3
+ children: any;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DepartmentManagement: () => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare const schemaDepartmentManagement: {
2
+ type: string;
3
+ properties: {
4
+ [x: string]: {
5
+ type: string;
6
+ 'x-decorator': string;
7
+ 'x-component': string;
8
+ };
9
+ };
10
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ViewDepartmentManagement: () => React.JSX.Element;