@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.
- package/.turbo/turbo-build.log +11 -0
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/components/PDFViewer.d.ts +11 -0
- package/dist/client/components/SignatureInput.d.ts +2 -0
- package/dist/client/components/SignaturePad.d.ts +240 -0
- package/dist/client/components/custom-components/CustomAssociatedField.d.ts +2 -0
- package/dist/client/components/custom-components/CustomComponentDispatcher.d.ts +5 -0
- package/dist/client/components/custom-components/CustomField.d.ts +2 -0
- package/dist/client/components/custom-components/ErrorBoundary.d.ts +2 -0
- package/dist/client/components/custom-components/custom-components.d.ts +21 -0
- package/dist/client/components/excel-table/ExcelFile.d.ts +2 -0
- package/dist/client/components/excel-table/Sheet.d.ts +10 -0
- package/dist/client/components/fields/AssociatedField.d.ts +7 -0
- package/dist/client/components/fields/CalcResult.d.ts +1 -0
- package/dist/client/components/fields/Expression.d.ts +3 -0
- package/dist/client/components/index.d.ts +11 -0
- package/dist/client/components/modal-full-screen/ModalFullScreen.d.ts +15 -0
- package/dist/client/components/modal-full-screen/ModalFullScreenChild.d.ts +2 -0
- package/dist/client/features/block-group/GroupBlock.d.ts +4 -0
- package/dist/client/features/block-group/GroupBlockConfigure.d.ts +19 -0
- package/dist/client/features/block-group/GroupBlockInitializer.d.ts +9 -0
- package/dist/client/features/block-group/index.d.ts +4 -0
- package/dist/client/features/custom-components/index.d.ts +5 -0
- package/dist/client/features/departments/common/DepartmentTable.schema.d.ts +50 -0
- package/dist/client/features/departments/common/DepartmentTable.view.d.ts +5 -0
- package/dist/client/features/departments/common/FilterKeys.context.d.ts +10 -0
- package/dist/client/features/departments/common/InternalDepartmentTable.d.ts +6 -0
- package/dist/client/features/departments/common/Request.povider.d.ts +2 -0
- package/dist/client/features/departments/common/UserDepartmentsFieldNotSupport.d.ts +2 -0
- package/dist/client/features/departments/common/scopes/useDepartmentFilterActionProps.d.ts +5 -0
- package/dist/client/features/departments/common/scopes/useFilterActionProps.d.ts +5 -0
- package/dist/client/features/departments/index.d.ts +5 -0
- package/dist/client/features/departments/main-tab/DepartmentIndex.d.ts +6 -0
- package/dist/client/features/departments/main-tab/DepartmentIndex.provider.d.ts +4 -0
- package/dist/client/features/departments/main-tab/DepartmentManagement.component.d.ts +2 -0
- package/dist/client/features/departments/main-tab/DepartmentManagement.schema.d.ts +10 -0
- package/dist/client/features/departments/main-tab/DepartmentManagement.view.d.ts +2 -0
- package/dist/client/features/departments/main-tab/collections/departments.collection.d.ts +128 -0
- package/dist/client/features/departments/main-tab/collections/users.collection.d.ts +189 -0
- package/dist/client/features/departments/main-tab/components/DepartmentSelect.d.ts +2 -0
- package/dist/client/features/departments/main-tab/components/InternalSuperiorDepartmentSelect.d.ts +2 -0
- package/dist/client/features/departments/main-tab/components/SuperiorDepartmentSelect.d.ts +2 -0
- package/dist/client/features/departments/main-tab/context/Department.context.d.ts +23 -0
- package/dist/client/features/departments/main-tab/context/DepartmentsExpanded.context.d.ts +17 -0
- package/dist/client/features/departments/main-tab/departments-block/AddNewDepartment.schema.d.ts +67 -0
- package/dist/client/features/departments/main-tab/departments-block/AddNewDepartment.view.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-block/DepartmentOwnersField.component.d.ts +6 -0
- package/dist/client/features/departments/main-tab/departments-block/DepartmentsBlock.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-block/DepartmentsSearch.component.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-block/DepartmentsTree.component.d.ts +9 -0
- package/dist/client/features/departments/main-tab/departments-block/Request.provider.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-block/UnknownOwerns.schema.d.ts +136 -0
- package/dist/client/features/departments/main-tab/departments-block/UnknownOwerns.view.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-block/schemas/schemaDepartmentEdit.d.ts +62 -0
- package/dist/client/features/departments/main-tab/departments-block/schemas/schemaDepartmentNewSub.d.ts +57 -0
- package/dist/client/features/departments/main-tab/departments-block/scopes/useCreateDepartment.d.ts +3 -0
- package/dist/client/features/departments/main-tab/departments-block/scopes/useUpdateDepartment.d.ts +3 -0
- package/dist/client/features/departments/main-tab/departments-users-block/AddMembers.schema.d.ts +148 -0
- package/dist/client/features/departments/main-tab/departments-users-block/AddMembers.view.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/DepartmentField.component.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/DepartmentsUsersBlock.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/DepartmentsUsersBlock.schema.d.ts +676 -0
- package/dist/client/features/departments/main-tab/departments-users-block/IsOwnerField.component.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/MemberActions.schema.d.ts +49 -0
- package/dist/client/features/departments/main-tab/departments-users-block/MemberActions.view.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/RowRemoveAction.schema.d.ts +16 -0
- package/dist/client/features/departments/main-tab/departments-users-block/RowRemoveAction.view.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/UserDepartmentsField.component.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/UserSelectDepartment.schema.d.ts +42 -0
- package/dist/client/features/departments/main-tab/departments-users-block/UserSelectDepartment.view.d.ts +2 -0
- package/dist/client/features/departments/main-tab/departments-users-block/scopes/useBulkRemoveMembersAction.d.ts +3 -0
- package/dist/client/features/departments/main-tab/departments-users-block/scopes/useDataSource.d.ts +40 -0
- package/dist/client/features/departments/main-tab/departments-users-block/scopes/useMembersDataSource.d.ts +6 -0
- package/dist/client/features/departments/main-tab/departments-users-block/scopes/usePropsAddMember.d.ts +1 -0
- package/dist/client/features/departments/main-tab/departments-users-block/scopes/useRefreshActionProps.d.ts +3 -0
- package/dist/client/features/departments/main-tab/departments-users-block/scopes/useRemoveMemberAction.d.ts +3 -0
- package/dist/client/features/departments/main-tab/departments-users-block/scopes/useShowTotal.d.ts +1 -0
- package/dist/client/features/departments/main-tab/hooks/useDeepTree.d.ts +14 -0
- package/dist/client/features/departments/main-tab/hooks/useGetDepTree.d.ts +18 -0
- package/dist/client/features/departments/main-tab/kit.d.ts +4 -0
- package/dist/client/features/departments/main-tab/providers/DepartmentsResource.provider.d.ts +4 -0
- package/dist/client/features/departments/main-tab/providers/UserResource.provider.d.ts +4 -0
- package/dist/client/features/departments/role-auth/DepartmentTitle.component.d.ts +2 -0
- package/dist/client/features/departments/role-auth/Departments.d.ts +2 -0
- package/dist/client/features/departments/role-auth/Departments.schema.d.ts +227 -0
- package/dist/client/features/departments/role-auth/kit.d.ts +4 -0
- package/dist/client/features/departments/role-auth/scopes/useAddDepartments.d.ts +3 -0
- package/dist/client/features/departments/role-auth/scopes/useBulkRemoveDepartments.d.ts +3 -0
- package/dist/client/features/departments/role-auth/scopes/useDataSource.d.ts +40 -0
- package/dist/client/features/departments/role-auth/scopes/useDisabled.d.ts +3 -0
- package/dist/client/features/departments/role-auth/scopes/useRemoveDepartment.d.ts +3 -0
- package/dist/client/features/departments/settings/DepartmentOwnersFieldSetting.d.ts +2 -0
- package/dist/client/features/departments/settings/UserDepartmentsFieldSetting.d.ts +2 -0
- package/dist/client/features/departments/settings/UserMainDepartmentFieldSetting.d.ts +2 -0
- package/dist/client/features/departments/settings/items/enableLinkItem.d.ts +2 -0
- package/dist/client/features/departments/settings/items/modeSelectItem.d.ts +2 -0
- package/dist/client/features/departments/settings/items/titleFieldItem.d.ts +2 -0
- package/dist/client/features/departments/utils/getDepartmentStr.d.ts +1 -0
- package/dist/client/features/departments/utils/getUserListByDepartment.d.ts +1 -0
- package/dist/client/features/embed/EmbedLayout.d.ts +2 -0
- package/dist/client/features/embed/EmbedPage.d.ts +2 -0
- package/dist/client/features/embed/EmbedSchemaComponent.d.ts +2 -0
- package/dist/client/features/embed/NotAuthorityResult.d.ts +2 -0
- package/dist/client/features/embed/index.d.ts +4 -0
- package/dist/client/features/embed/useEmbedToken.d.ts +1 -0
- package/dist/client/features/embed/usePageSettingsProps.d.ts +4 -0
- package/dist/client/features/field-appends/index.d.ts +4 -0
- package/dist/client/features/field-appends/show-code/Code.interface.d.ts +74 -0
- package/dist/client/features/field-appends/show-code/Code.view.d.ts +3 -0
- package/dist/client/features/field-appends/show-formula/Formula.interface.d.ts +75 -0
- package/dist/client/features/field-appends/show-formula/Formula.view.d.ts +3 -0
- package/dist/client/features/hera-version/HeraVersion.provider.d.ts +4 -0
- package/dist/client/features/hera-version/index.d.ts +4 -0
- package/dist/client/features/mode-highlight/ModeHighlight.provider.d.ts +4 -0
- package/dist/client/features/mode-highlight/index.d.ts +4 -0
- package/dist/client/features/outbound/OutboundLinkActionInitializer.d.ts +6 -0
- package/dist/client/features/outbound/OutboundPage.d.ts +2 -0
- package/dist/client/features/outbound/index.d.ts +4 -0
- package/dist/client/features/outbound/useOutboundActionProps.d.ts +3 -0
- package/dist/client/features/pdf/PDFVIewerBlockInitializer.d.ts +10 -0
- package/dist/client/features/pdf/PDFViewer.d.ts +2 -0
- package/dist/client/features/pdf/index.d.ts +4 -0
- package/dist/client/features/sheet/SheetBlockInitializer.d.ts +8 -0
- package/dist/client/features/sheet/index.d.ts +4 -0
- package/dist/client/hooks/useCustomComponent.d.ts +5 -0
- package/dist/client/hooks/useGetCustomAssociatedComponents.d.ts +4 -0
- package/dist/client/hooks/useGetCustomComponents.d.ts +4 -0
- package/dist/client/hooks/useNotifications.d.ts +2 -0
- package/dist/client/hooks/usePluginVersion.d.ts +1 -0
- package/dist/client/hooks/useTokenConfiguration.d.ts +3 -0
- package/dist/client/index.d.ts +16 -0
- package/dist/client/index.js +93 -0
- package/dist/client/interfaces/AssociatedFieldInterface.d.ts +118 -0
- package/dist/client/interfaces/CalcFieldInterface.d.ts +120 -0
- package/dist/client/interfaces/CustomAssociatedFieldInterface.d.ts +69 -0
- package/dist/client/interfaces/CustomFieldInterface.d.ts +45 -0
- package/dist/client/interfaces/ExcelFieldInterface.d.ts +38 -0
- package/dist/client/interfaces/SignaturePadFieldInterface.d.ts +38 -0
- package/dist/client/interfaces/TstzrangeFieldInterface.d.ts +41 -0
- package/dist/client/interfaces/index.d.ts +6 -0
- package/dist/client/locale.d.ts +9 -0
- package/dist/client/schema-initializer/blocks/SettingBlockInitializer.d.ts +2 -0
- package/dist/client/schema-initializer/index.d.ts +1 -0
- package/dist/client/schema-settings/SchemaSettingsDatePickerType.d.ts +2 -0
- package/dist/client/schema-settings/SchemaSettingsDatePresets.d.ts +11 -0
- package/dist/client/schema-settings/SchemaSettingsSubmitDataType.d.ts +5 -0
- package/dist/client/schema-settings/index.d.ts +4 -0
- package/dist/client/settings-manager-components/LinkManager.d.ts +2 -0
- package/dist/client/settings-manager-components/TokenConfiguration.d.ts +6 -0
- package/dist/client/settings-manager-components/index.d.ts +8 -0
- package/dist/client/utils.d.ts +2 -0
- package/dist/externalVersion.js +21 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.json +94 -0
- package/dist/locale/zh-CN.json +94 -0
- package/dist/node_modules/fs-extra/LICENSE +15 -0
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +161 -0
- package/dist/node_modules/fs-extra/lib/copy/copy.js +177 -0
- package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
- package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
- package/dist/node_modules/fs-extra/lib/fs/index.js +140 -0
- package/dist/node_modules/fs-extra/lib/index.js +1 -0
- package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
- package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
- package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
- package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +158 -0
- package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
- package/dist/node_modules/fs-extra/package.json +1 -0
- package/dist/server/actions/departments.d.ts +5 -0
- package/dist/server/actions/departments.js +105 -0
- package/dist/server/actions/index.d.ts +7 -0
- package/dist/server/actions/index.js +33 -0
- package/dist/server/actions/link-manager-controller.d.ts +6 -0
- package/dist/server/actions/link-manager-controller.js +133 -0
- package/dist/server/actions/plugin-version.d.ts +6 -0
- package/dist/server/actions/plugin-version.js +91 -0
- package/dist/server/actions/robot-controller.d.ts +5 -0
- package/dist/server/actions/robot-controller.js +134 -0
- package/dist/server/actions/system-message-controller.d.ts +5 -0
- package/dist/server/actions/system-message-controller.js +106 -0
- package/dist/server/actions/token-configuration-controller.d.ts +5 -0
- package/dist/server/actions/token-configuration-controller.js +120 -0
- package/dist/server/actions/users.d.ts +4 -0
- package/dist/server/actions/users.js +142 -0
- package/dist/server/collections/departmentRoles.d.ts +2 -0
- package/dist/server/collections/departmentRoles.js +27 -0
- package/dist/server/collections/departments.d.ts +29 -0
- package/dist/server/collections/departments.js +162 -0
- package/dist/server/collections/departmentsUsers.d.ts +2 -0
- package/dist/server/collections/departmentsUsers.js +43 -0
- package/dist/server/collections/link-manage.d.ts +2 -0
- package/dist/server/collections/link-manage.js +42 -0
- package/dist/server/collections/roles.d.ts +2 -0
- package/dist/server/collections/roles.js +39 -0
- package/dist/server/collections/systemSettings.d.ts +2 -0
- package/dist/server/collections/systemSettings.js +33 -0
- package/dist/server/collections/system_message.d.ts +2 -0
- package/dist/server/collections/system_message.js +67 -0
- package/dist/server/collections/token-configuration.d.ts +2 -0
- package/dist/server/collections/token-configuration.js +54 -0
- package/dist/server/collections/users.d.ts +55 -0
- package/dist/server/collections/users.js +87 -0
- package/dist/server/features/departments.d.ts +7 -0
- package/dist/server/features/departments.js +132 -0
- package/dist/server/fields/calc.d.ts +11 -0
- package/dist/server/fields/calc.js +43 -0
- package/dist/server/fields/tstzrange.d.ts +7 -0
- package/dist/server/fields/tstzrange.js +28 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.js +41 -0
- package/dist/server/middlewares/destroy-department-check.d.ts +2 -0
- package/dist/server/middlewares/destroy-department-check.js +53 -0
- package/dist/server/middlewares/index.d.ts +6 -0
- package/dist/server/middlewares/index.js +31 -0
- package/dist/server/middlewares/list-users-include-child-department.d.ts +2 -0
- package/dist/server/middlewares/list-users-include-child-department.js +77 -0
- package/dist/server/middlewares/reset-user-departments-cache.d.ts +2 -0
- package/dist/server/middlewares/reset-user-departments-cache.js +39 -0
- package/dist/server/middlewares/set-department-owners.d.ts +2 -0
- package/dist/server/middlewares/set-department-owners.js +74 -0
- package/dist/server/middlewares/set-departments-roles.d.ts +2 -0
- package/dist/server/middlewares/set-departments-roles.js +64 -0
- package/dist/server/middlewares/set-main-department.d.ts +2 -0
- package/dist/server/middlewares/set-main-department.js +105 -0
- package/dist/server/middlewares/update-department-isleaf.d.ts +2 -0
- package/dist/server/middlewares/update-department-isleaf.js +84 -0
- package/dist/server/models/department.d.ts +4 -0
- package/dist/server/models/department.js +38 -0
- package/dist/server/plugin.d.ts +6 -0
- package/dist/server/plugin.js +111 -0
- package/dist/server/services/plugin-version.d.ts +5 -0
- package/dist/server/services/plugin-version.js +89 -0
- package/dist/server/services/sql-loader.d.ts +10 -0
- package/dist/server/services/sql-loader.js +129 -0
- package/dist/server/services/system-setting-service.d.ts +7 -0
- package/dist/server/services/system-setting-service.js +87 -0
- package/dist/server/utils/curren-formula.d.ts +1 -0
- package/dist/server/utils/curren-formula.js +30 -0
- package/dist/server/utils/multiprocess.d.ts +2 -0
- package/dist/server/utils/multiprocess.js +38 -0
- package/package.json +64 -0
- package/server.d.ts +2 -0
- 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
|
+
[33m[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m[39m
|
|
7
|
+
[4m[95m@hera/plugin-core[39m[24m: [1mmodule-hera[22m build start
|
|
8
|
+
[4m[95m@hera/plugin-core[39m[24m: build plugin client
|
|
9
|
+
[2K[1G[2K[1G[2K[1G[2K[1G[2K[1G[33msrc/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.[39m
|
|
10
|
+
[4m[95m@hera/plugin-core[39m[24m: build plugin server source
|
|
11
|
+
[4m[95m@hera/plugin-core[39m[24m: delete server files
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @tachybase/module-hera
|
package/client.d.ts
ADDED
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,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,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,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,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,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,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,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,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 {};
|