@giteeteam/apps-team-components 0.3.4-remove-editor-0.10 → 0.3.13
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/dist/cells/actors/BaseField.d.ts +1 -1
- package/dist/cells/assignee/index.d.ts +2 -2
- package/dist/cells/bind-workspace/BaseField.d.ts +1 -1
- package/dist/cells/board/index.d.ts +1 -1
- package/dist/cells/checkbox/BaseField.d.ts +1 -1
- package/dist/cells/date/BaseField.d.ts +1 -1
- package/dist/cells/date/index.d.ts +1 -1
- package/dist/cells/date-range/BaseField.d.ts +1 -1
- package/dist/cells/date-range/index.d.ts +1 -1
- package/dist/cells/dropdown/BaseField.d.ts +1 -1
- package/dist/cells/dropdown/index.d.ts +1 -1
- package/dist/cells/editor/BaseField.d.ts +29 -0
- package/dist/cells/editor/Field.d.ts +16 -0
- package/dist/cells/editor/config/autoformatRules.d.ts +3 -0
- package/dist/cells/editor/config/index.d.ts +5 -0
- package/dist/cells/editor/config/pluginOptions.d.ts +10 -0
- package/dist/cells/editor/config/withDeserializeHTML.d.ts +64 -0
- package/dist/cells/editor/config/withStyledDraggables.d.ts +2 -0
- package/dist/cells/editor/config/withStyledPlaceHolders.d.ts +2 -0
- package/dist/cells/editor/elements/ImageElement.d.ts +3 -0
- package/dist/cells/editor/elements/MentionElement.d.ts +3 -0
- package/dist/cells/editor/elements/index.d.ts +2 -0
- package/dist/cells/editor/hooks.d.ts +11 -0
- package/dist/cells/editor/index.d.ts +15 -0
- package/dist/cells/editor/plugins/Fullscreen.d.ts +7 -0
- package/dist/cells/editor/plugins/ToolbarButton.d.ts +3 -0
- package/dist/cells/editor/plugins/ToolbarFont.d.ts +12 -0
- package/dist/cells/editor/plugins/ToolbarFontColor.d.ts +7 -0
- package/dist/cells/editor/plugins/ToolbarHistory.d.ts +7 -0
- package/dist/cells/editor/plugins/ToolbarLink.d.ts +4 -0
- package/dist/cells/editor/plugins/ToolbarTable.d.ts +4 -0
- package/dist/cells/editor/plugins/ToolbarUpload.d.ts +4 -0
- package/dist/cells/editor/plugins/Toolbars.d.ts +11 -0
- package/dist/cells/editor/plugins/font-bg-color/createFontBgColorPlugin.d.ts +3 -0
- package/dist/cells/editor/plugins/font-bg-color/defaults.d.ts +2 -0
- package/dist/cells/editor/plugins/font-bg-color/getFontDeserialize.d.ts +2 -0
- package/dist/cells/editor/plugins/font-bg-color/index.d.ts +3 -0
- package/dist/cells/editor/plugins/font-color/createFontColorPlugin.d.ts +3 -0
- package/dist/cells/editor/plugins/font-color/defaults.d.ts +2 -0
- package/dist/cells/editor/plugins/font-color/getFontDeserialize.d.ts +2 -0
- package/dist/cells/editor/plugins/font-color/index.d.ts +3 -0
- package/dist/cells/editor/plugins/font-family/createFontFamilyPlugin.d.ts +3 -0
- package/dist/cells/editor/plugins/font-family/defaults.d.ts +2 -0
- package/dist/cells/editor/plugins/font-family/getFontDeserialize.d.ts +2 -0
- package/dist/cells/editor/plugins/font-family/index.d.ts +3 -0
- package/dist/cells/editor/plugins/font-line-height/createFontLineHeightPlugin.d.ts +3 -0
- package/dist/cells/editor/plugins/font-line-height/defaults.d.ts +2 -0
- package/dist/cells/editor/plugins/font-line-height/getFontDeserialize.d.ts +2 -0
- package/dist/cells/editor/plugins/font-line-height/index.d.ts +3 -0
- package/dist/cells/editor/plugins/font-size/createFontSizePlugin.d.ts +3 -0
- package/dist/cells/editor/plugins/font-size/defaults.d.ts +2 -0
- package/dist/cells/editor/plugins/font-size/getFontDeserialize.d.ts +2 -0
- package/dist/cells/editor/plugins/font-size/index.d.ts +3 -0
- package/dist/cells/editor/plugins/image/createImagePlugin.d.ts +3 -0
- package/dist/cells/editor/plugins/image/getImageDeserialize.d.ts +2 -0
- package/dist/cells/editor/plugins/image/index.d.ts +3 -0
- package/dist/cells/editor/plugins/image/insertImage.d.ts +2 -0
- package/dist/cells/editor/plugins/image/withImageUpload.d.ts +3 -0
- package/dist/cells/editor/plugins/index.d.ts +6 -0
- package/dist/cells/editor/utils.d.ts +13 -0
- package/dist/cells/file/BaseField.d.ts +1 -1
- package/dist/cells/formula/BaseField.d.ts +1 -1
- package/dist/cells/item-group/index.d.ts +1 -1
- package/dist/cells/item-type/index.d.ts +1 -1
- package/dist/cells/long-text/BaseField.d.ts +1 -1
- package/dist/cells/name/index.d.ts +1 -1
- package/dist/cells/number/BaseField.d.ts +1 -1
- package/dist/cells/priority/index.d.ts +2 -2
- package/dist/cells/radio/BaseField.d.ts +1 -1
- package/dist/cells/script/BaseField.d.ts +1 -1
- package/dist/cells/security-level/BaseField.d.ts +1 -1
- package/dist/cells/sprint/index.d.ts +1 -1
- package/dist/cells/status/Field.d.ts +1 -1
- package/dist/cells/tag/BaseField.d.ts +1 -1
- package/dist/cells/text/BaseField.d.ts +1 -1
- package/dist/cells/text/index.d.ts +2 -2
- package/dist/cells/time/BaseField.d.ts +1 -1
- package/dist/cells/time/index.d.ts +1 -1
- package/dist/cells/time-range/BaseField.d.ts +1 -1
- package/dist/cells/time-range/index.d.ts +1 -1
- package/dist/cells/tree/BaseField.d.ts +1 -1
- package/dist/cells/user/BaseField.d.ts +2 -2
- package/dist/cells/user/index.d.ts +1 -1
- package/dist/cells/version/index.d.ts +1 -1
- package/dist/cells/workspace/index.d.ts +1 -1
- package/dist/common/FieldErrorBoundary.d.ts +2 -2
- package/dist/common/UploadFile.d.ts +1 -1
- package/dist/common/base-table/index.d.ts +3 -3
- package/dist/common/date/DatePicker.d.ts +8 -9
- package/dist/common/date/TimePicker.d.ts +3 -5
- package/dist/common/filters/filter-query/IqlExpression.d.ts +1 -1
- package/dist/common/form-field/FormField.d.ts +2 -2
- package/dist/common/plugin/PluginLoadComponent.d.ts +1 -1
- package/dist/common/status-selector/index.d.ts +1 -1
- package/dist/common/structure/hooks.d.ts +2 -2
- package/dist/common/structure/table-components/TableActionMenu.d.ts +3 -3
- package/dist/common/structure/table-components/useTableColumns.d.ts +1 -1
- package/dist/common/structure/table-components/useTableMenu.d.ts +4 -4
- package/dist/common/structure-table/components/DraggableRow.d.ts +1 -1
- package/dist/common/utils.d.ts +2 -2
- package/dist/fields/item-activity/BaseField.d.ts +7 -0
- package/dist/fields/item-activity/Comment.d.ts +7 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/apis/groups/index.d.ts +1 -1
- package/dist/lib/apis/roles/index.d.ts +1 -1
- package/dist/lib/apis/screen/fields.d.ts +1 -1
- package/dist/lib/apis/screen/index.d.ts +3 -3
- package/dist/lib/contexts/LibraryProvider.d.ts +3 -2
- package/dist/lib/contexts/currentUserAndRoles.d.ts +1 -1
- package/dist/lib/contexts/token.d.ts +1 -1
- package/dist/lib/contexts/users.d.ts +1 -1
- package/dist/lib/customFields/hooks.d.ts +1 -1
- package/dist/lib/dayjs.d.ts +1 -1
- package/dist/lib/error/log.d.ts +1 -1
- package/dist/lib/error/utils.d.ts +2 -2
- package/dist/lib/fetch.d.ts +1 -1
- package/dist/lib/forest.d.ts +6 -6
- package/dist/lib/hooks/index.d.ts +2 -2
- package/dist/lib/hooks/useCustomFields.d.ts +1 -1
- package/dist/lib/hooks/useFieldTypes.d.ts +1 -1
- package/dist/lib/hooks/useFields.d.ts +1 -1
- package/dist/lib/hooks/useI18n.d.ts +1 -5
- package/dist/lib/hooks/useItemsInfinite.d.ts +4 -4
- package/dist/lib/hooks/useRemoteComponents.d.ts +3 -3
- package/dist/lib/hooks/useTenants.d.ts +1 -1
- package/dist/lib/hooks/useWorkspaces.d.ts +1 -1
- package/dist/lib/i18n.d.ts +4 -4
- package/dist/lib/kanban/hooks.d.ts +1 -1
- package/dist/lib/locales.d.ts +4 -2
- package/dist/lib/usePluginManifest.d.ts +1 -1
- package/dist/lib/useUser.d.ts +3 -3
- package/dist/lib/workspace.d.ts +2 -0
- package/dist/locales/en/en_US.d.ts +45 -0
- package/dist/locales/en/package/application.d.ts +73 -0
- package/dist/locales/en/package/automation.d.ts +303 -0
- package/dist/locales/en/package/date.d.ts +54 -0
- package/dist/locales/en/package/fields.d.ts +409 -0
- package/dist/locales/en/package/filters.d.ts +89 -0
- package/dist/locales/en/package/formField.d.ts +157 -0
- package/dist/locales/en/package/global.d.ts +318 -0
- package/dist/locales/en/package/item.d.ts +488 -0
- package/dist/locales/en/package/itemTypes.d.ts +154 -0
- package/dist/locales/en/package/lib.d.ts +127 -0
- package/dist/locales/en/package/message.d.ts +251 -0
- package/dist/locales/en/package/pages.d.ts +67 -0
- package/dist/locales/en/package/permission.d.ts +471 -0
- package/dist/locales/en/package/placeholder.d.ts +179 -0
- package/dist/locales/en/package/plugin.d.ts +20 -0
- package/dist/locales/en/package/report.d.ts +150 -0
- package/dist/locales/en/package/reportPlugin.d.ts +183 -0
- package/dist/locales/en/package/screen.d.ts +121 -0
- package/dist/locales/en/package/sections.d.ts +60 -0
- package/dist/locales/en/package/settings.d.ts +194 -0
- package/dist/locales/en/package/sprint.d.ts +52 -0
- package/dist/locales/en/package/users.d.ts +58 -0
- package/dist/locales/en/package/validate.d.ts +138 -0
- package/dist/locales/en/package/views.d.ts +383 -0
- package/dist/locales/en/package/workflow.d.ts +245 -0
- package/dist/locales/en/package/workspace.d.ts +342 -0
- package/dist/locales/zh/package/application.d.ts +73 -0
- package/dist/locales/zh/package/automation.d.ts +303 -0
- package/dist/locales/zh/package/date.d.ts +54 -0
- package/dist/locales/zh/package/fields.d.ts +409 -0
- package/dist/locales/zh/package/filters.d.ts +89 -0
- package/dist/locales/zh/package/formField.d.ts +162 -0
- package/dist/locales/zh/package/global.d.ts +318 -0
- package/dist/locales/zh/package/item.d.ts +489 -0
- package/dist/locales/zh/package/itemTypes.d.ts +153 -0
- package/dist/locales/zh/package/lib.d.ts +127 -0
- package/dist/locales/zh/package/message.d.ts +251 -0
- package/dist/locales/zh/package/pages.d.ts +67 -0
- package/dist/locales/zh/package/permission.d.ts +470 -0
- package/dist/locales/zh/package/placeholder.d.ts +172 -0
- package/dist/locales/zh/package/plugin.d.ts +20 -0
- package/dist/locales/zh/package/report.d.ts +150 -0
- package/dist/locales/zh/package/reportPlugin.d.ts +183 -0
- package/dist/locales/zh/package/screen.d.ts +116 -0
- package/dist/locales/zh/package/sections.d.ts +63 -0
- package/dist/locales/zh/package/settings.d.ts +192 -0
- package/dist/locales/zh/package/sprint.d.ts +52 -0
- package/dist/locales/zh/package/users.d.ts +58 -0
- package/dist/locales/zh/package/validate.d.ts +138 -0
- package/dist/locales/zh/package/views.d.ts +380 -0
- package/dist/locales/zh/package/workflow.d.ts +245 -0
- package/dist/locales/zh/package/workspace.d.ts +344 -0
- package/dist/locales/zh/zh_CN.d.ts +46 -0
- package/dist/main.css +7921 -9852
- package/dist/main.css.map +1 -1
- package/dist/osui/index.d.ts +1 -1
- package/package.json +16 -8
|
@@ -6,7 +6,7 @@ interface selectValue {
|
|
|
6
6
|
label: string;
|
|
7
7
|
value: string | number;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type BaseDropdownProps = SelectProps<any> & FieldProps & {
|
|
10
10
|
value?: string | number;
|
|
11
11
|
options?: selectValue[];
|
|
12
12
|
placeholder?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
-
declare const SprintDropdown: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any
|
|
3
|
+
declare const SprintDropdown: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any> & import("@/fields/base-component/types").FieldProps & {
|
|
4
4
|
value?: string[] | number[];
|
|
5
5
|
options?: import("../dropdown/BaseField").selectValue[];
|
|
6
6
|
placeholder?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldProps } from '@/fields/base-component/types';
|
|
3
3
|
import 'components/common/field.global.less';
|
|
4
|
-
export
|
|
4
|
+
export type StatusProps = FieldProps & {
|
|
5
5
|
headerPosition?: boolean;
|
|
6
6
|
screenMode?: boolean;
|
|
7
7
|
itemId?: string;
|
|
@@ -5,7 +5,7 @@ interface optionsProp {
|
|
|
5
5
|
value: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const useItemsSelect: (options: optionsProp[]) => any;
|
|
8
|
-
export
|
|
8
|
+
export type BaseTagProps = FieldProps & {
|
|
9
9
|
value?: [];
|
|
10
10
|
options?: optionsProp[];
|
|
11
11
|
onChange?: (e: any) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputProps } from '@/osui';
|
|
3
3
|
import { FieldProps } from '@/fields/base-component/types';
|
|
4
|
-
export
|
|
4
|
+
export type BaseFieldProps = InputProps & FieldProps & {
|
|
5
5
|
userData?: any;
|
|
6
6
|
label?: string;
|
|
7
7
|
placeholder?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps } from '@/fields/base-component/types';
|
|
3
3
|
import { BaseFieldProps } from './BaseField';
|
|
4
|
-
export
|
|
4
|
+
export type TextProps = BaseFieldProps & CellProps;
|
|
5
5
|
declare const Text: React.ForwardRefExoticComponent<import("@/osui").InputProps & import("@/fields/base-component/types").FieldProps & {
|
|
6
6
|
userData?: any;
|
|
7
7
|
label?: string;
|
|
@@ -11,6 +11,6 @@ declare const Text: React.ForwardRefExoticComponent<import("@/osui").InputProps
|
|
|
11
11
|
description?: string;
|
|
12
12
|
onChange?: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
13
13
|
onBlur?: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
14
|
-
maxline?:
|
|
14
|
+
maxline?: 2 | 1 | 3 | 4 | 5;
|
|
15
15
|
} & CellProps & React.RefAttributes<any>>;
|
|
16
16
|
export default Text;
|
|
@@ -3,7 +3,7 @@ import { TimePickerProps } from 'antd/es/time-picker';
|
|
|
3
3
|
import { Dayjs } from 'dayjs';
|
|
4
4
|
import { DateValue } from '@/lib/types/dayjs.d';
|
|
5
5
|
import { FieldProps } from '@/fields/base-component/types';
|
|
6
|
-
export
|
|
6
|
+
export type BaseFieldProps = TimePickerProps & FieldProps & {
|
|
7
7
|
value?: DateValue;
|
|
8
8
|
defaultValue?: any;
|
|
9
9
|
range?: Dayjs[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps } from '@/fields/base-component/types';
|
|
3
3
|
import { BaseFieldProps } from './BaseField';
|
|
4
|
-
|
|
4
|
+
type Props = BaseFieldProps & CellProps;
|
|
5
5
|
declare const TimeCell: React.FC<Props>;
|
|
6
6
|
export default TimeCell;
|
|
@@ -3,7 +3,7 @@ import { TimeRangePickerProps } from 'antd/es/time-picker';
|
|
|
3
3
|
import { DateValue } from '@/lib/types/dayjs.d';
|
|
4
4
|
import { FieldProps } from '@/fields/base-component/types';
|
|
5
5
|
import './index.less';
|
|
6
|
-
export
|
|
6
|
+
export type BaseFieldProps = TimeRangePickerProps & FieldProps & {
|
|
7
7
|
width?: number;
|
|
8
8
|
value?: any;
|
|
9
9
|
descPlacement?: string;
|
|
@@ -2,6 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { CellProps } from '@/fields/base-component/types';
|
|
3
3
|
import { BaseFieldProps } from './BaseField';
|
|
4
4
|
import './index.less';
|
|
5
|
-
|
|
5
|
+
type Props = BaseFieldProps & CellProps;
|
|
6
6
|
declare const TimeRangeCell: React.FC<Props>;
|
|
7
7
|
export default TimeRangeCell;
|
|
@@ -6,7 +6,7 @@ interface selectValue {
|
|
|
6
6
|
value: string | number;
|
|
7
7
|
title: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type BaseTreeProps = TreeSelectProps<any> & FieldProps & {
|
|
10
10
|
value?: string;
|
|
11
11
|
options?: selectValue[];
|
|
12
12
|
onChange?: (e: any) => void;
|
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { FieldProps } from '@/fields/base-component/types';
|
|
3
3
|
import { User as UserProps } from '@/lib/types/models';
|
|
4
4
|
import './index.less';
|
|
5
|
-
export
|
|
5
|
+
export type UserType = {
|
|
6
6
|
username: string;
|
|
7
7
|
label: string;
|
|
8
8
|
value: string;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type BaseUserProps = FieldProps & {
|
|
11
11
|
workspaceId?: string;
|
|
12
12
|
fieldTypeKey?: string;
|
|
13
13
|
emptyChild?: React.ReactElement;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { CellProps } from '@/fields/base-component/types';
|
|
3
3
|
import { BaseUserProps } from './BaseField';
|
|
4
4
|
import './index.less';
|
|
5
|
-
export
|
|
5
|
+
export type UserProps = BaseUserProps & CellProps;
|
|
6
6
|
declare const User: React.ForwardRefExoticComponent<import("@/fields/base-component/types").FieldProps & {
|
|
7
7
|
workspaceId?: string;
|
|
8
8
|
fieldTypeKey?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
-
declare const VersionDropdown: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any
|
|
3
|
+
declare const VersionDropdown: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any> & import("@/fields/base-component/types").FieldProps & {
|
|
4
4
|
value?: string[] | number[];
|
|
5
5
|
options?: import("../dropdown/BaseField").selectValue[];
|
|
6
6
|
placeholder?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
-
declare const WorkSpace: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any
|
|
3
|
+
declare const WorkSpace: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any> & import("@/fields/base-component/types").FieldProps & {
|
|
4
4
|
value?: string[] | number[];
|
|
5
5
|
options?: import("../dropdown/BaseField").selectValue[];
|
|
6
6
|
placeholder?: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import BaseTable, { BaseTableProps } from 'react-base-table';
|
|
3
|
-
|
|
3
|
+
type CreateChildCardOptionParam = {
|
|
4
4
|
/** 控制缩进量 */
|
|
5
5
|
depth?: number;
|
|
6
6
|
itemTypeIds: string[];
|
|
7
7
|
onCardCreate: (cardInfo: Record<'name' | 'itemTypeId', string>) => void;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BaseTableRefType<T = unknown> = BaseTable<T> & {
|
|
10
10
|
/** 快速创建子事项 */
|
|
11
11
|
createChildCard: (parentRowKey: string, option: CreateChildCardOptionParam) => void;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type AdvanceBaseTableProps = BaseTableProps;
|
|
14
14
|
declare const AdvanceBaseTable: React.ForwardRefExoticComponent<Pick<AdvanceBaseTableProps, keyof AdvanceBaseTableProps> & React.RefAttributes<BaseTableRefType<unknown>>>;
|
|
15
15
|
export default AdvanceBaseTable;
|
|
16
16
|
export * from 'react-base-table';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import 'antd/lib/date-picker/style/index.less';
|
|
2
|
-
declare const DatePicker: import("
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
TimePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerTimeProps<import("dayjs").Dayjs>, "picker">, unknown>;
|
|
10
|
-
QuarterPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerTimeProps<import("dayjs").Dayjs>, "picker">, unknown>;
|
|
3
|
+
declare const DatePicker: import("react").ComponentClass<import("antd/lib/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, any> & {
|
|
4
|
+
WeekPicker: import("react").ComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerDateProps<import("dayjs").Dayjs>, "picker">, any>;
|
|
5
|
+
MonthPicker: import("react").ComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerDateProps<import("dayjs").Dayjs>, "picker">, any>;
|
|
6
|
+
YearPicker: import("react").ComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerDateProps<import("dayjs").Dayjs>, "picker">, any>;
|
|
7
|
+
RangePicker: import("react").ComponentClass<import("antd/lib/date-picker/generatePicker").RangePickerProps<import("dayjs").Dayjs>, any>;
|
|
8
|
+
TimePicker: import("react").ComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerTimeProps<import("dayjs").Dayjs>, "picker">, any>;
|
|
9
|
+
QuarterPicker: import("react").ComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerTimeProps<import("dayjs").Dayjs>, "picker">, any>;
|
|
11
10
|
};
|
|
12
11
|
export default DatePicker;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickerTimeProps, RangePickerTimeProps } from 'antd/lib/date-picker/generatePicker';
|
|
3
3
|
import { Dayjs } from '@/lib/dayjs';
|
|
4
|
-
export
|
|
5
|
-
declare const RangePicker: React.ForwardRefExoticComponent<Omit<import("rc-picker/lib/RangePicker").RangePickerTimeProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
4
|
+
export type TimeRangePickerProps = RangePickerTimeProps<Dayjs>;
|
|
5
|
+
declare const RangePicker: React.ForwardRefExoticComponent<Omit<import("rc-picker/lib/RangePicker").RangePickerTimeProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "hideHeader" | "components"> & {
|
|
6
6
|
locale?: import("antd/lib/date-picker/generatePicker").PickerLocale;
|
|
7
7
|
size?: import("antd/lib/button").ButtonSize;
|
|
8
|
-
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
9
8
|
bordered?: boolean;
|
|
10
|
-
status?: "" | "warning" | "error";
|
|
11
9
|
} & React.RefAttributes<any>>;
|
|
12
10
|
export interface TimePickerProps extends Omit<PickerTimeProps<Dayjs>, 'picker'> {
|
|
13
11
|
addon?: () => React.ReactNode;
|
|
14
12
|
popupClassName?: string;
|
|
15
13
|
}
|
|
16
14
|
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<any>>;
|
|
17
|
-
|
|
15
|
+
type MergedTimePicker = typeof TimePicker & {
|
|
18
16
|
RangePicker: typeof RangePicker;
|
|
19
17
|
};
|
|
20
18
|
declare const _default: MergedTimePicker;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextAreaProps } from 'antd/lib/input';
|
|
3
3
|
import { IQLExpressionProps } from '@/lib/types/iql';
|
|
4
|
-
|
|
4
|
+
type Props = Omit<TextAreaProps, 'onChange'> & IQLExpressionProps;
|
|
5
5
|
declare const IqlExpression: React.VFC<Props>;
|
|
6
6
|
export default IqlExpression;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './FormField.global.less';
|
|
3
|
-
|
|
3
|
+
type BaseFormFieldInterface = {
|
|
4
4
|
children: any;
|
|
5
5
|
name: string;
|
|
6
6
|
label?: React.ReactNode;
|
|
@@ -9,7 +9,7 @@ declare type BaseFormFieldInterface = {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
style?: any;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type FormFieldWithRest = BaseFormFieldInterface & Record<string, any>;
|
|
13
13
|
declare const FormField: ({ children, name, label, layout, required, style, className, ...rest }: FormFieldWithRest) => any;
|
|
14
14
|
export default FormField;
|
|
15
15
|
export * from './pure-field/FormikEnhance';
|
|
@@ -4,7 +4,7 @@ import { ContextMessage } from '@/lib/ParentMessage';
|
|
|
4
4
|
interface refProps {
|
|
5
5
|
setGlobalState?: (data: any) => void;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type PluginProps = ContextMessage & {
|
|
8
8
|
onRefreshContext?: () => void;
|
|
9
9
|
};
|
|
10
10
|
export declare enum PluginLoadType {
|
|
@@ -5,7 +5,7 @@ import { CustomField } from '@/lib/types/models';
|
|
|
5
5
|
export declare const useChildCardItemTypes: (hierarchy?: any[]) => {
|
|
6
6
|
getChildCardItemTypes(id: string, hierarchy?: ItemTypeSchemeHierarchy[]): ItemTypeSchemeHierarchy[] | undefined;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type UseCreateChildCardFields = (workSpace: string, customFields: any[]) => {
|
|
9
9
|
getFieldInfo: (itemType: string) => Promise<{
|
|
10
10
|
/** 界面方案关联字段 */
|
|
11
11
|
screenFields: CustomField[];
|
|
@@ -16,7 +16,7 @@ declare type UseCreateChildCardFields = (workSpace: string, customFields: any[])
|
|
|
16
16
|
};
|
|
17
17
|
/** 获取子事项创建所需要字段信息 */
|
|
18
18
|
export declare const useChildCardCreatedFields: UseCreateChildCardFields;
|
|
19
|
-
|
|
19
|
+
type UseCreateItem = (workspaceId: string) => {
|
|
20
20
|
createItem: (params: {
|
|
21
21
|
name: string;
|
|
22
22
|
values: Record<string, unknown>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ItemClickResponder } from '../view';
|
|
3
3
|
/** 菜单操作权限 */
|
|
4
|
-
|
|
4
|
+
type AccessType = 'canChildCardCreate';
|
|
5
5
|
/** 菜单操作类型 */
|
|
6
|
-
export
|
|
6
|
+
export type ActionType = 'view' | 'edit' | 'delete' | 'childCardCreate' | 'childCardInlineCreate';
|
|
7
7
|
/** 菜单操作权限判断 */
|
|
8
|
-
export
|
|
8
|
+
export type MenuAccess = Record<AccessType, boolean | (() => boolean)>;
|
|
9
9
|
export type { ItemClickResponder } from '../view';
|
|
10
10
|
interface MenuProps {
|
|
11
11
|
itemId?: string;
|
|
@@ -15,7 +15,7 @@ export interface VCObject extends Parse.Object {
|
|
|
15
15
|
name: string;
|
|
16
16
|
config: any;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type WorkspaceType = {
|
|
19
19
|
objectId: string;
|
|
20
20
|
};
|
|
21
21
|
declare const useTableColumns: (viewType: string, workspace: WorkspaceType) => Response;
|
|
@@ -2,16 +2,16 @@ import React from 'react';
|
|
|
2
2
|
import type { BaseTableRefType } from '@/common/base-table';
|
|
3
3
|
import { ActionType, MenuAccess } from './TableActionMenu';
|
|
4
4
|
/** 菜单处理函数 */
|
|
5
|
-
|
|
5
|
+
type ActionTypeHandlers<T> = Record<ActionType, (params: T) => Promise<void> | void>;
|
|
6
6
|
/** 弹窗菜单依赖 */
|
|
7
|
-
|
|
7
|
+
type UseTableMenuActionDeps = {
|
|
8
8
|
/** 工作空间 id */
|
|
9
9
|
workspaceId: string;
|
|
10
10
|
/** 刷新视图方法 */
|
|
11
11
|
mutate: () => void;
|
|
12
12
|
baseTableRef: React.MutableRefObject<BaseTableRefType>;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type pageProps = 'detail' | 'drawer';
|
|
15
15
|
/** 获取 Table menu actions 事件处理函数 */
|
|
16
16
|
export declare const useTableActionMenuHandlers: <Params extends {
|
|
17
17
|
itemId: string;
|
|
@@ -19,7 +19,7 @@ export declare const useTableActionMenuHandlers: <Params extends {
|
|
|
19
19
|
page?: pageProps;
|
|
20
20
|
}>(handlersReplacement: Partial<ActionTypeHandlers<Params>>, deps: UseTableMenuActionDeps) => ActionTypeHandlers<Params>;
|
|
21
21
|
/** 弹窗渲染依赖函数 */
|
|
22
|
-
|
|
22
|
+
type UseTableActionMenuConfig<T = unknown, ReturnVal = {
|
|
23
23
|
access?: MenuAccess;
|
|
24
24
|
extraData?: any;
|
|
25
25
|
}> = {
|
package/dist/common/utils.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { selectValue } from '@/cells/dropdown/BaseField';
|
|
|
2
2
|
import Parse from '@/lib/parse';
|
|
3
3
|
export declare const defaultFilterOptions: (inputValue: string, option: any) => boolean;
|
|
4
4
|
export declare const dateFormat: (time: string, type?: string) => string;
|
|
5
|
-
export declare const getNameBadge: (name: string) => string | null;
|
|
6
5
|
export declare const isChinese: (text: string) => boolean;
|
|
6
|
+
export declare const getNameBadge: (name: string) => string | null;
|
|
7
7
|
export declare const getBackgroundColor: (s?: string) => {
|
|
8
8
|
background: string;
|
|
9
9
|
};
|
|
@@ -15,7 +15,7 @@ export declare function asString(query: string | string[]): string;
|
|
|
15
15
|
export declare const getPopupContainerFun: (getPopupContainer: (node?: HTMLElement) => HTMLElement, apply: string, page?: string) => HTMLElement;
|
|
16
16
|
export declare const getOptionsByName: (name: string | RegExp, query: Parse.Query) => Promise<Record<'label' | 'value', string>[]>;
|
|
17
17
|
export declare const getOptionsByValues: (values: string[], query?: Parse.Query) => Promise<Record<'label' | 'value', string>[]>;
|
|
18
|
-
|
|
18
|
+
type optionsInitProps = {
|
|
19
19
|
name?: string;
|
|
20
20
|
objectId?: string;
|
|
21
21
|
label?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import DataQuoteCell from './cells/data-quote';
|
|
|
11
11
|
import DateCell from './cells/date';
|
|
12
12
|
import DateRangeCell from './cells/date-range';
|
|
13
13
|
import DropdownCell from './cells/dropdown';
|
|
14
|
+
import EditorCell from './cells/editor';
|
|
14
15
|
import FileCell from './cells/file';
|
|
15
16
|
import FormulaCell from './cells/formula';
|
|
16
17
|
import ItemGroupCell from './cells/item-group';
|
|
@@ -36,10 +37,12 @@ import UpdatedByCell from './cells/updated-by';
|
|
|
36
37
|
import UserCell from './cells/user';
|
|
37
38
|
import VersionCell from './cells/version';
|
|
38
39
|
import './_app.global.less';
|
|
39
|
-
export { ActorsCell, AnnexCell, AssigneeCell, BindWorkspaceCell, BoardCell, CardTypeCell, CheckboxCell, CreatedAtCell, CreatedByCell, DataQuoteCell, DateCell, DateRangeCell, DropdownCell, FileCell, FormulaCell, ItemGroupCell, ItemTypeCell, KeyCell, LongTextCell, NameCell, NumberCell, PriorityCell, RadioCell, ScriptCell, SecurityLevelCell, SprintCell, StatusCell, StoryPointCell, TagCell, TextCell, TimeCell, TimeRangeCell, TreeCell, UpdatedAtCell, UpdatedByCell, UserCell, VersionCell, };
|
|
40
|
+
export { ActorsCell, AnnexCell, AssigneeCell, BindWorkspaceCell, BoardCell, CardTypeCell, CheckboxCell, CreatedAtCell, CreatedByCell, DataQuoteCell, DateCell, DateRangeCell, DropdownCell, EditorCell, FileCell, FormulaCell, ItemGroupCell, ItemTypeCell, KeyCell, LongTextCell, NameCell, NumberCell, PriorityCell, RadioCell, ScriptCell, SecurityLevelCell, SprintCell, StatusCell, StoryPointCell, TagCell, TextCell, TimeCell, TimeRangeCell, TreeCell, UpdatedAtCell, UpdatedByCell, UserCell, VersionCell, };
|
|
41
|
+
export { default as EditorField } from './cells/editor/Field';
|
|
40
42
|
export { default as TableCell } from './cells/tableCellMapping';
|
|
41
43
|
export { default as FilterPanel } from './common/filters/filter-query/FilterPanel';
|
|
42
44
|
export { default as StructureView } from './common/structure/index';
|
|
45
|
+
export { default as CommentPane } from './fields/item-activity/Comment';
|
|
43
46
|
export { LibraryProvider } from './lib/contexts';
|
|
44
47
|
export { useFieldsWithFieldCellProps, useUsedScreenFields } from './lib/customFields/hooks';
|
|
45
48
|
export { useDataQuoteStore } from './lib/hooks/useDataQuoteStore';
|