@giteeteam/apps-team-components 0.3.4-remove-editor-0.4
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/README.md +1 -0
- package/dist/cells/actors/BaseField.d.ts +17 -0
- package/dist/cells/actors/index.d.ts +4 -0
- package/dist/cells/annex/index.d.ts +7 -0
- package/dist/cells/assignee/index.d.ts +23 -0
- package/dist/cells/bind-workspace/BaseField.d.ts +15 -0
- package/dist/cells/bind-workspace/index.d.ts +12 -0
- package/dist/cells/board/index.d.ts +22 -0
- package/dist/cells/card-type/index.d.ts +6 -0
- package/dist/cells/checkbox/BaseField.d.ts +14 -0
- package/dist/cells/created-at/index.d.ts +7 -0
- package/dist/cells/created-by/index.d.ts +9 -0
- package/dist/cells/data-quote/index.d.ts +8 -0
- package/dist/cells/data-quote/util.d.ts +9 -0
- package/dist/cells/date/BaseField.d.ts +21 -0
- package/dist/cells/date/index.d.ts +6 -0
- package/dist/cells/date-range/BaseField.d.ts +19 -0
- package/dist/cells/date-range/index.d.ts +6 -0
- package/dist/cells/dropdown/BaseField.d.ts +30 -0
- package/dist/cells/dropdown/index.d.ts +22 -0
- package/dist/cells/file/BaseField.d.ts +15 -0
- package/dist/cells/file/UploadFile.d.ts +19 -0
- package/dist/cells/file/index.d.ts +13 -0
- package/dist/cells/formula/BaseField.d.ts +10 -0
- package/dist/cells/formula/index.d.ts +9 -0
- package/dist/cells/item-group/index.d.ts +22 -0
- package/dist/cells/item-type/index.d.ts +23 -0
- package/dist/cells/key/index.d.ts +6 -0
- package/dist/cells/long-text/BaseField.d.ts +17 -0
- package/dist/cells/long-text/index.d.ts +15 -0
- package/dist/cells/name/index.d.ts +14 -0
- package/dist/cells/number/BaseField.d.ts +24 -0
- package/dist/cells/number/index.d.ts +23 -0
- package/dist/cells/priority/index.d.ts +16 -0
- package/dist/cells/radio/BaseField.d.ts +14 -0
- package/dist/cells/script/BaseField.d.ts +8 -0
- package/dist/cells/script/index.d.ts +7 -0
- package/dist/cells/security-level/BaseField.d.ts +19 -0
- package/dist/cells/sprint/index.d.ts +22 -0
- package/dist/cells/status/Field.d.ts +26 -0
- package/dist/cells/status/Transition.d.ts +15 -0
- package/dist/cells/status/TransitionButton.d.ts +27 -0
- package/dist/cells/status/TransitionPanel.d.ts +15 -0
- package/dist/cells/status/View.d.ts +10 -0
- package/dist/cells/status/hooks.d.ts +3 -0
- package/dist/cells/status/index.d.ts +4 -0
- package/dist/cells/story-point/index.d.ts +23 -0
- package/dist/cells/tableCellMapping.d.ts +23 -0
- package/dist/cells/tag/BaseField.d.ts +22 -0
- package/dist/cells/tag/tag-multiple-select/PopoverPanel.d.ts +4 -0
- package/dist/cells/tag/tag-multiple-select/TagPopoverSelect.d.ts +4 -0
- package/dist/cells/text/BaseField.d.ts +16 -0
- package/dist/cells/text/index.d.ts +16 -0
- package/dist/cells/time/BaseField.d.ts +15 -0
- package/dist/cells/time/index.d.ts +6 -0
- package/dist/cells/time-range/BaseField.d.ts +20 -0
- package/dist/cells/time-range/index.d.ts +7 -0
- package/dist/cells/tree/BaseField.d.ts +15 -0
- package/dist/cells/tree/utils.d.ts +2 -0
- package/dist/cells/updated-at/index.d.ts +7 -0
- package/dist/cells/updated-by/index.d.ts +9 -0
- package/dist/cells/user/BaseField.d.ts +27 -0
- package/dist/cells/user/index.d.ts +21 -0
- package/dist/cells/version/index.d.ts +22 -0
- package/dist/cells/workspace/index.d.ts +22 -0
- package/dist/common/EmptyField.d.ts +6 -0
- package/dist/common/FieldErrorBoundary.d.ts +14 -0
- package/dist/common/OverflowTooltip.d.ts +23 -0
- package/dist/common/UploadFile.d.ts +19 -0
- package/dist/common/base-table/ChildCardInlineCreator.d.ts +9 -0
- package/dist/common/base-table/index.d.ts +16 -0
- package/dist/common/columns-settings/ColumnsSettings.d.ts +5 -0
- package/dist/common/columns-settings/ColumnsSettingsItem.d.ts +4 -0
- package/dist/common/data-source/context.d.ts +2 -0
- package/dist/common/date/DatePicker.d.ts +12 -0
- package/dist/common/date/TimePicker.d.ts +21 -0
- package/dist/common/filters/filter-query/FilterPanel.d.ts +4 -0
- package/dist/common/filters/filter-query/IqlExpression.d.ts +6 -0
- package/dist/common/filters/filter-query/QuerySelector.d.ts +4 -0
- package/dist/common/filters/filter-query/utils.d.ts +18 -0
- package/dist/common/form-field/FormField.d.ts +15 -0
- package/dist/common/form-field/pure-field/FieldLayout.d.ts +5 -0
- package/dist/common/form-field/pure-field/FormikEnhance.d.ts +1 -0
- package/dist/common/form-field/pure-field/PureField.d.ts +8 -0
- package/dist/common/formik-field-touched/FormikFieldTouched.d.ts +2 -0
- package/dist/common/index.d.ts +16 -0
- package/dist/common/item/IssueActionDropdown.d.ts +18 -0
- package/dist/common/item-icon/ItemIcon.d.ts +8 -0
- package/dist/common/plugin/PluginComponents.d.ts +17 -0
- package/dist/common/plugin/PluginErrorContainer.d.ts +15 -0
- package/dist/common/plugin/PluginLoadComponent.d.ts +27 -0
- package/dist/common/search-select/PopoverPanel.d.ts +4 -0
- package/dist/common/search-select/SearchPopoverSelect.d.ts +4 -0
- package/dist/common/status-selector/index.d.ts +9 -0
- package/dist/common/structure/hooks.d.ts +30 -0
- package/dist/common/structure/index.d.ts +11 -0
- package/dist/common/structure/table-components/TableActionMenu.d.ts +18 -0
- package/dist/common/structure/table-components/TableColumnSettings.d.ts +13 -0
- package/dist/common/structure/table-components/TableEmpty.d.ts +6 -0
- package/dist/common/structure/table-components/TableTitleCell.d.ts +16 -0
- package/dist/common/structure/table-components/index.d.ts +11 -0
- package/dist/common/structure/table-components/tableCellMapping.d.ts +23 -0
- package/dist/common/structure/table-components/useCacheColumns.d.ts +13 -0
- package/dist/common/structure/table-components/useTableColumns.d.ts +22 -0
- package/dist/common/structure/table-components/useTableMenu.d.ts +42 -0
- package/dist/common/structure-table/Table.d.ts +4 -0
- package/dist/common/structure-table/components/Action.d.ts +15 -0
- package/dist/common/structure-table/components/Collapse.d.ts +12 -0
- package/dist/common/structure-table/components/CollapseIcon.d.ts +6 -0
- package/dist/common/structure-table/components/DraggableRow.d.ts +5 -0
- package/dist/common/structure-table/components/Handle.d.ts +3 -0
- package/dist/common/structure-table/components/Row.d.ts +25 -0
- package/dist/common/structure-table/components/index.d.ts +6 -0
- package/dist/common/structure-table/index.d.ts +1 -0
- package/dist/common/user-field/UserAvatar.d.ts +13 -0
- package/dist/common/user-field/UserField.d.ts +15 -0
- package/dist/common/user-field/index.d.ts +2 -0
- package/dist/common/utils.d.ts +41 -0
- package/dist/common/workflow/View.d.ts +11 -0
- package/dist/common/workflow/config.d.ts +87 -0
- package/dist/common/workflow/nodes/StartNode.d.ts +10 -0
- package/dist/common/workflow/nodes/TaskNode.d.ts +12 -0
- package/dist/common/workflow/nodes/index.d.ts +2 -0
- package/dist/fields/base-component/BaseLabel.d.ts +10 -0
- package/dist/fields/base-component/utils.d.ts +4 -0
- package/dist/fields/data-quote/util.d.ts +9 -0
- package/dist/fields/item-level/hooks.d.ts +15 -0
- package/dist/fields/item-level/utils.d.ts +25 -0
- package/dist/icons/index.d.ts +48 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +3 -0
- package/dist/index.js.LICENSE.txt +38 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/ParentMessage.d.ts +7 -0
- package/dist/lib/apis/filter/iql.d.ts +6 -0
- package/dist/lib/apis/forest.d.ts +2 -0
- package/dist/lib/apis/groups/index.d.ts +21 -0
- package/dist/lib/apis/roles/index.d.ts +11 -0
- package/dist/lib/apis/screen/fields.d.ts +21 -0
- package/dist/lib/apis/screen/fieldsBehavior.d.ts +10 -0
- package/dist/lib/apis/screen/index.d.ts +20 -0
- package/dist/lib/contexts/LibraryProvider.d.ts +17 -0
- package/dist/lib/contexts/currentUserAndRoles.d.ts +15 -0
- package/dist/lib/contexts/index.d.ts +7 -0
- package/dist/lib/contexts/token.d.ts +13 -0
- package/dist/lib/contexts/users.d.ts +11 -0
- package/dist/lib/contexts/values.d.ts +6 -0
- package/dist/lib/customFields/hooks.d.ts +24 -0
- package/dist/lib/dataQuoteStore.d.ts +2 -0
- package/dist/lib/date.d.ts +19 -0
- package/dist/lib/dayjs.d.ts +4 -0
- package/dist/lib/env.d.ts +2 -0
- package/dist/lib/error/index.d.ts +2 -0
- package/dist/lib/error/log.d.ts +13 -0
- package/dist/lib/error/utils.d.ts +13 -0
- package/dist/lib/events.d.ts +11 -0
- package/dist/lib/fetch.d.ts +49 -0
- package/dist/lib/filters/filter-query/utils.d.ts +18 -0
- package/dist/lib/forest.d.ts +60 -0
- package/dist/lib/global.d.ts +1111 -0
- package/dist/lib/hooks/index.d.ts +13 -0
- package/dist/lib/hooks/useCurrentUser.d.ts +3 -0
- package/dist/lib/hooks/useCustomFields.d.ts +9 -0
- package/dist/lib/hooks/useDataQuoteStore.d.ts +7 -0
- package/dist/lib/hooks/useFieldTypes.d.ts +9 -0
- package/dist/lib/hooks/useFields.d.ts +12 -0
- package/dist/lib/hooks/useI18n.d.ts +5 -0
- package/dist/lib/hooks/useItemsInfinite.d.ts +48 -0
- package/dist/lib/hooks/useRemoteComponents.d.ts +25 -0
- package/dist/lib/hooks/useTenants.d.ts +7 -0
- package/dist/lib/hooks/useToken.d.ts +3 -0
- package/dist/lib/hooks/useUsers.d.ts +8 -0
- package/dist/lib/hooks/useWatchItemUpdate.d.ts +32 -0
- package/dist/lib/hooks/useWorkspaces.d.ts +8 -0
- package/dist/lib/i18n.d.ts +24 -0
- package/dist/lib/iql.d.ts +31 -0
- package/dist/lib/item/hooks.d.ts +31 -0
- package/dist/lib/item/utils.d.ts +34 -0
- package/dist/lib/kanban/hooks.d.ts +8 -0
- package/dist/lib/locales.d.ts +2 -0
- package/dist/lib/models.d.ts +59 -0
- package/dist/lib/parse.d.ts +3 -0
- package/dist/lib/path.d.ts +4 -0
- package/dist/lib/proxima-sdk/components/index.d.ts +2 -0
- package/dist/lib/proxima-sdk/hooks/index.d.ts +4 -0
- package/dist/lib/proxima-sdk/index.d.ts +5 -0
- package/dist/lib/proxima-sdk/lib/index.d.ts +9 -0
- package/dist/lib/proxima-sdk/schema/index.d.ts +2 -0
- package/dist/lib/regExp.d.ts +11 -0
- package/dist/lib/storage.d.ts +7 -0
- package/dist/lib/store.d.ts +14 -0
- package/dist/lib/types/index.d.ts +3 -0
- package/dist/lib/types/parse-models.d.ts +6 -0
- package/dist/lib/useInitialRecoilState.d.ts +3 -0
- package/dist/lib/useParseQuery.d.ts +53 -0
- package/dist/lib/usePluginManifest.d.ts +33 -0
- package/dist/lib/useUser.d.ts +62 -0
- package/dist/lib/useWatchApp.d.ts +4 -0
- package/dist/lib/useWorkspace.d.ts +1 -0
- package/dist/lib/users.d.ts +3 -0
- package/dist/lib/workflow.d.ts +111 -0
- package/dist/main.css +30419 -0
- package/dist/main.css.map +1 -0
- package/dist/osui/index.d.ts +8 -0
- package/package.json +101 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TransitionComponentProps {
|
|
3
|
+
objectId: string;
|
|
4
|
+
itemType: string;
|
|
5
|
+
workspace: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
itemId?: string;
|
|
10
|
+
apply?: string;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
onTransitionSuccess?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: React.NamedExoticComponent<TransitionComponentProps>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ItemResultProps } from '@/lib/types/item';
|
|
3
|
+
import { ConditionType, ListItemType, NodeItemProps } from '@/lib/types/workflow';
|
|
4
|
+
interface FlowButtonProps {
|
|
5
|
+
itemId: string;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
screenId: string;
|
|
9
|
+
item: ItemResultProps;
|
|
10
|
+
authRoles: ListItemType[] | undefined;
|
|
11
|
+
authUsers: ListItemType[] | undefined;
|
|
12
|
+
authGroups: ListItemType[] | undefined;
|
|
13
|
+
authUserFields: ListItemType[] | undefined;
|
|
14
|
+
scriptValidator: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
roleIds: string[];
|
|
17
|
+
groupIds: string[];
|
|
18
|
+
currentTaskId: string;
|
|
19
|
+
conditions?: ConditionType[];
|
|
20
|
+
handleTransition: (updateTask: string, screenId: string, script: string) => void;
|
|
21
|
+
target: NodeItemProps & {
|
|
22
|
+
type?: string;
|
|
23
|
+
};
|
|
24
|
+
hiddenPopover?: () => void;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: React.NamedExoticComponent<FlowButtonProps>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Status } from '@/lib/types/models';
|
|
3
|
+
interface TransitionPanelProps {
|
|
4
|
+
objectId: string;
|
|
5
|
+
itemType: string;
|
|
6
|
+
workspace: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
itemId?: string;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
onTransitionSuccess?: (status: Status) => void;
|
|
12
|
+
setPopoverVisible?: (value: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: React.NamedExoticComponent<TransitionPanelProps>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { workflowDataProps } from '@/lib/types/workflow';
|
|
3
|
+
interface ViewProps {
|
|
4
|
+
name: string;
|
|
5
|
+
objectId: string;
|
|
6
|
+
workflowData: workflowDataProps;
|
|
7
|
+
hiddenPopover?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.NamedExoticComponent<ViewProps>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
+
import '@/common/field.global.less';
|
|
4
|
+
declare const StoryPointCell: React.ForwardRefExoticComponent<import("@/fields/base-component/types").FieldProps & {
|
|
5
|
+
required?: boolean;
|
|
6
|
+
width?: number;
|
|
7
|
+
label?: string;
|
|
8
|
+
value?: number;
|
|
9
|
+
description?: string;
|
|
10
|
+
onChange?: (data: number) => void;
|
|
11
|
+
onBlur?: (e: any) => void;
|
|
12
|
+
descPlacement?: string;
|
|
13
|
+
defaultValue?: number;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
addonBefore?: string;
|
|
16
|
+
addonAfter?: string;
|
|
17
|
+
max?: number;
|
|
18
|
+
min?: number;
|
|
19
|
+
step?: number;
|
|
20
|
+
precision?: number;
|
|
21
|
+
type?: string;
|
|
22
|
+
} & CellProps & React.RefAttributes<any>>;
|
|
23
|
+
export default StoryPointCell;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RegularProps } from '@/fields/base-component/types';
|
|
3
|
+
export interface TableCellProps {
|
|
4
|
+
apply?: string;
|
|
5
|
+
workspaceId?: string;
|
|
6
|
+
itemTypeId?: string;
|
|
7
|
+
type: string;
|
|
8
|
+
text: any;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
property?: any;
|
|
11
|
+
data?: any;
|
|
12
|
+
values?: any;
|
|
13
|
+
dataIndex?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
itemsMutate?: () => void;
|
|
17
|
+
objectId?: string;
|
|
18
|
+
validation?: RegularProps;
|
|
19
|
+
onMount?: () => void;
|
|
20
|
+
overlayClsName?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const TableCell: React.FC<TableCellProps>;
|
|
23
|
+
export default TableCell;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldProps } from '@/fields/base-component/types';
|
|
3
|
+
import { optionValue } from './tag-multiple-select/types';
|
|
4
|
+
interface optionsProp {
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const useItemsSelect: (options: optionsProp[]) => any;
|
|
8
|
+
export declare type BaseTagProps = FieldProps & {
|
|
9
|
+
value?: [];
|
|
10
|
+
options?: optionsProp[];
|
|
11
|
+
onChange?: (e: any) => void;
|
|
12
|
+
onAddTag?: (newOptions: optionValue[], choosed: optionValue[]) => void;
|
|
13
|
+
isCustomized: boolean;
|
|
14
|
+
tagMaxLength: number;
|
|
15
|
+
maximum: number;
|
|
16
|
+
objectId?: string;
|
|
17
|
+
hiddenAdd?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
getPopupContainer?: (node?: HTMLElement) => HTMLElement;
|
|
20
|
+
};
|
|
21
|
+
declare const TagComponent: React.FC<BaseTagProps>;
|
|
22
|
+
export default TagComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from '@/osui';
|
|
3
|
+
import { FieldProps } from '@/fields/base-component/types';
|
|
4
|
+
export declare type BaseFieldProps = InputProps & FieldProps & {
|
|
5
|
+
userData?: any;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
value?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
onChange?: (e: React.MouseEvent) => void;
|
|
12
|
+
onBlur?: (e: React.MouseEvent) => void;
|
|
13
|
+
maxline?: 1 | 2 | 3 | 4 | 5;
|
|
14
|
+
};
|
|
15
|
+
declare const Text: React.FC<BaseFieldProps>;
|
|
16
|
+
export default Text;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
+
import { BaseFieldProps } from './BaseField';
|
|
4
|
+
export declare type TextProps = BaseFieldProps & CellProps;
|
|
5
|
+
declare const Text: React.ForwardRefExoticComponent<import("@/osui").InputProps & import("@/fields/base-component/types").FieldProps & {
|
|
6
|
+
userData?: any;
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
value?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
onChange?: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
13
|
+
onBlur?: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
14
|
+
maxline?: 4 | 3 | 2 | 1 | 5;
|
|
15
|
+
} & CellProps & React.RefAttributes<any>>;
|
|
16
|
+
export default Text;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TimePickerProps } from 'antd/es/time-picker';
|
|
3
|
+
import { Dayjs } from 'dayjs';
|
|
4
|
+
import { DateValue } from '@/lib/types/dayjs.d';
|
|
5
|
+
import { FieldProps } from '@/fields/base-component/types';
|
|
6
|
+
export declare type BaseFieldProps = TimePickerProps & FieldProps & {
|
|
7
|
+
value?: DateValue;
|
|
8
|
+
defaultValue?: any;
|
|
9
|
+
range?: Dayjs[];
|
|
10
|
+
format?: string;
|
|
11
|
+
width?: number;
|
|
12
|
+
onChange?: (time: DateValue, timeString?: string) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const Time: React.FC<BaseFieldProps>;
|
|
15
|
+
export default Time;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TimeRangePickerProps } from 'antd/es/time-picker';
|
|
3
|
+
import { DateValue } from '@/lib/types/dayjs.d';
|
|
4
|
+
import { FieldProps } from '@/fields/base-component/types';
|
|
5
|
+
import './index.less';
|
|
6
|
+
export declare type BaseFieldProps = TimeRangePickerProps & FieldProps & {
|
|
7
|
+
width?: number;
|
|
8
|
+
value?: any;
|
|
9
|
+
descPlacement?: string;
|
|
10
|
+
defaultValue?: string[];
|
|
11
|
+
showTime?: boolean;
|
|
12
|
+
placeholder?: any;
|
|
13
|
+
format?: string;
|
|
14
|
+
separator?: string;
|
|
15
|
+
placeholderStart?: string;
|
|
16
|
+
placeholderEnd?: string;
|
|
17
|
+
onChange?: (time: [DateValue, DateValue], timeString?: string[]) => void;
|
|
18
|
+
};
|
|
19
|
+
declare const TimeRange: React.FC<BaseFieldProps>;
|
|
20
|
+
export default TimeRange;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
+
import { BaseFieldProps } from './BaseField';
|
|
4
|
+
import './index.less';
|
|
5
|
+
declare type Props = BaseFieldProps & CellProps;
|
|
6
|
+
declare const TimeRangeCell: React.FC<Props>;
|
|
7
|
+
export default TimeRangeCell;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TreeSelectProps } from '@/osui';
|
|
3
|
+
import { FieldProps } from '@/fields/base-component/types';
|
|
4
|
+
interface selectValue {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type BaseTreeProps = TreeSelectProps<any> & FieldProps & {
|
|
10
|
+
value?: string;
|
|
11
|
+
options?: selectValue[];
|
|
12
|
+
onChange?: (e: any) => void;
|
|
13
|
+
};
|
|
14
|
+
declare const Tree: React.FC<BaseTreeProps>;
|
|
15
|
+
export default Tree;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CellProps {
|
|
3
|
+
value: any;
|
|
4
|
+
overlayClsName: string;
|
|
5
|
+
onlyAvatar?: boolean;
|
|
6
|
+
hiddenAvatar?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const UpdatedBy: React.ForwardRefExoticComponent<CellProps & React.RefAttributes<any>>;
|
|
9
|
+
export default UpdatedBy;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldProps } from '@/fields/base-component/types';
|
|
3
|
+
import { User as UserProps } from '@/lib/types/models';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export declare type UserType = {
|
|
6
|
+
username: string;
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type BaseUserProps = FieldProps & {
|
|
11
|
+
workspaceId?: string;
|
|
12
|
+
fieldTypeKey?: string;
|
|
13
|
+
emptyChild?: React.ReactElement;
|
|
14
|
+
displayDeletedUser?: boolean;
|
|
15
|
+
userData?: any;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
value?: Array<any>;
|
|
18
|
+
onChange?: (val: any, type?: string) => void;
|
|
19
|
+
mode?: any;
|
|
20
|
+
hasCurrentUser?: boolean;
|
|
21
|
+
extraOptions?: UserType[];
|
|
22
|
+
showUserAvatar?: React.ReactElement;
|
|
23
|
+
getPopupContainer?: (node?: HTMLElement) => HTMLElement;
|
|
24
|
+
};
|
|
25
|
+
export declare const useUserSelect: (userRoles: string[], values?: string[], shouldFetch?: boolean, currentUser?: UserProps, hasCurrentUser?: boolean, extraOptions?: UserType[], fieldTypeKey?: string, workspaceId?: string) => any;
|
|
26
|
+
declare const User: React.FC<BaseUserProps>;
|
|
27
|
+
export default User;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
+
import { BaseUserProps } from './BaseField';
|
|
4
|
+
import './index.less';
|
|
5
|
+
export declare type UserProps = BaseUserProps & CellProps;
|
|
6
|
+
declare const User: React.ForwardRefExoticComponent<import("@/fields/base-component/types").FieldProps & {
|
|
7
|
+
workspaceId?: string;
|
|
8
|
+
fieldTypeKey?: string;
|
|
9
|
+
emptyChild?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
|
+
displayDeletedUser?: boolean;
|
|
11
|
+
userData?: any;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
value?: any[];
|
|
14
|
+
onChange?: (val: any, type?: string) => void;
|
|
15
|
+
mode?: any;
|
|
16
|
+
hasCurrentUser?: boolean;
|
|
17
|
+
extraOptions?: import("./BaseField").UserType[];
|
|
18
|
+
showUserAvatar?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
19
|
+
getPopupContainer?: (node?: HTMLElement) => HTMLElement;
|
|
20
|
+
} & CellProps & React.RefAttributes<any>>;
|
|
21
|
+
export default User;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
+
declare const VersionDropdown: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & import("@/fields/base-component/types").FieldProps & {
|
|
4
|
+
value?: string[] | number[];
|
|
5
|
+
options?: import("../dropdown/BaseField").selectValue[];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
onChange?: (e: any) => void;
|
|
8
|
+
onSelect?: (e: any, option: any) => void;
|
|
9
|
+
onBlur?: (e: any) => void;
|
|
10
|
+
onClear?: () => void;
|
|
11
|
+
fetchOptions?: (keywords: string) => Promise<import("../dropdown/BaseField").selectValue[]>;
|
|
12
|
+
fetchValues?: (values: string[]) => Promise<import("../dropdown/BaseField").selectValue[]>;
|
|
13
|
+
debounceTimeout?: number;
|
|
14
|
+
useChange?: boolean;
|
|
15
|
+
expression?: string;
|
|
16
|
+
display?: string;
|
|
17
|
+
objectId?: string;
|
|
18
|
+
dataQuoteInit?: (dates: import("../dropdown/BaseField").selectValue[] | import("@/lib/types/models").Item[], value: string[], display?: string) => import("../dropdown/BaseField").selectValue[];
|
|
19
|
+
workspaceKey?: string;
|
|
20
|
+
workspace?: string;
|
|
21
|
+
} & CellProps & React.RefAttributes<any>>;
|
|
22
|
+
export default VersionDropdown;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CellProps } from '@/fields/base-component/types';
|
|
3
|
+
declare const WorkSpace: React.ForwardRefExoticComponent<import("@/osui").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & import("@/fields/base-component/types").FieldProps & {
|
|
4
|
+
value?: string[] | number[];
|
|
5
|
+
options?: import("../dropdown/BaseField").selectValue[];
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
onChange?: (e: any) => void;
|
|
8
|
+
onSelect?: (e: any, option: any) => void;
|
|
9
|
+
onBlur?: (e: any) => void;
|
|
10
|
+
onClear?: () => void;
|
|
11
|
+
fetchOptions?: (keywords: string) => Promise<import("../dropdown/BaseField").selectValue[]>;
|
|
12
|
+
fetchValues?: (values: string[]) => Promise<import("../dropdown/BaseField").selectValue[]>;
|
|
13
|
+
debounceTimeout?: number;
|
|
14
|
+
useChange?: boolean;
|
|
15
|
+
expression?: string;
|
|
16
|
+
display?: string;
|
|
17
|
+
objectId?: string;
|
|
18
|
+
dataQuoteInit?: (dates: import("../dropdown/BaseField").selectValue[] | import("../../lib/types/models").Item[], value: string[], display?: string) => import("../dropdown/BaseField").selectValue[];
|
|
19
|
+
workspaceKey?: string;
|
|
20
|
+
workspace?: string;
|
|
21
|
+
} & CellProps & React.RefAttributes<any>>;
|
|
22
|
+
export default WorkSpace;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
declare type MyState = {
|
|
3
|
+
hasError: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare type Props = {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
errorText?: string;
|
|
8
|
+
};
|
|
9
|
+
export default class FieldErrorBoundary extends React.Component<Props, MyState> {
|
|
10
|
+
constructor(props: Props);
|
|
11
|
+
static getDerivedStateFromError(): MyState;
|
|
12
|
+
render(): ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file overtext的时候显示tooltip
|
|
3
|
+
* @author zhaojinpeng
|
|
4
|
+
*/
|
|
5
|
+
import { CSSProperties } from 'react';
|
|
6
|
+
import './OverflowTooltip.global.less';
|
|
7
|
+
interface OverflowTooltip {
|
|
8
|
+
trigger?: 'hover' | 'focus' | 'click' | 'contextMenu';
|
|
9
|
+
className?: string;
|
|
10
|
+
title?: string | React.ReactElement | JSX.Element[];
|
|
11
|
+
label?: string;
|
|
12
|
+
children: any;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
maxline?: 1 | 2 | 3 | 4 | 5;
|
|
15
|
+
mountOnCurrentNode?: boolean;
|
|
16
|
+
overlayClassName?: string;
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
19
|
+
alwaysShowTooltip?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const OverflowTooltip: React.FC<OverflowTooltip>;
|
|
22
|
+
declare const _default: import("react").NamedExoticComponent<OverflowTooltip>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const EMPTY_FILE_LIST: any[];
|
|
3
|
+
declare type annexData = {
|
|
4
|
+
uid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
linkProps?: {
|
|
9
|
+
download: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export interface AnnexProps {
|
|
13
|
+
value?: any[];
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
onChange?: (data: annexData[]) => void;
|
|
16
|
+
desc?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const UploadFile: React.FC<AnnexProps>;
|
|
19
|
+
export default UploadFile;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ChildCardInlineCreator.global.less';
|
|
3
|
+
declare const _default: React.NamedExoticComponent<{
|
|
4
|
+
depth?: number;
|
|
5
|
+
itemTypeIds: string[];
|
|
6
|
+
collapse: () => void;
|
|
7
|
+
onCardCreate?: (card: Record<"name" | "itemTypeId", string>) => void;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import BaseTable, { BaseTableProps } from 'react-base-table';
|
|
3
|
+
declare type CreateChildCardOptionParam = {
|
|
4
|
+
/** 控制缩进量 */
|
|
5
|
+
depth?: number;
|
|
6
|
+
itemTypeIds: string[];
|
|
7
|
+
onCardCreate: (cardInfo: Record<'name' | 'itemTypeId', string>) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare type BaseTableRefType<T = unknown> = BaseTable<T> & {
|
|
10
|
+
/** 快速创建子事项 */
|
|
11
|
+
createChildCard: (parentRowKey: string, option: CreateChildCardOptionParam) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare type AdvanceBaseTableProps = BaseTableProps;
|
|
14
|
+
declare const AdvanceBaseTable: React.ForwardRefExoticComponent<Pick<AdvanceBaseTableProps, keyof AdvanceBaseTableProps> & React.RefAttributes<BaseTableRefType<unknown>>>;
|
|
15
|
+
export default AdvanceBaseTable;
|
|
16
|
+
export * from 'react-base-table';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'antd/lib/date-picker/style/index.less';
|
|
2
|
+
declare const DatePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<import("antd/lib/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs> & {
|
|
3
|
+
status?: "" | "warning" | "error";
|
|
4
|
+
}, unknown> & {
|
|
5
|
+
WeekPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerDateProps<import("dayjs").Dayjs>, "picker">, unknown>;
|
|
6
|
+
MonthPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerDateProps<import("dayjs").Dayjs>, "picker">, unknown>;
|
|
7
|
+
YearPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerDateProps<import("dayjs").Dayjs>, "picker">, unknown>;
|
|
8
|
+
RangePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<import("antd/lib/date-picker/generatePicker").RangePickerProps<import("dayjs").Dayjs>, unknown>;
|
|
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>;
|
|
11
|
+
};
|
|
12
|
+
export default DatePicker;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PickerTimeProps, RangePickerTimeProps } from 'antd/lib/date-picker/generatePicker';
|
|
3
|
+
import { Dayjs } from '@/lib/dayjs';
|
|
4
|
+
export declare type TimeRangePickerProps = RangePickerTimeProps<Dayjs>;
|
|
5
|
+
declare const RangePicker: React.ForwardRefExoticComponent<Omit<import("rc-picker/lib/RangePicker").RangePickerTimeProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
6
|
+
locale?: import("antd/lib/date-picker/generatePicker").PickerLocale;
|
|
7
|
+
size?: import("antd/lib/button").ButtonSize;
|
|
8
|
+
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
9
|
+
bordered?: boolean;
|
|
10
|
+
status?: "" | "warning" | "error";
|
|
11
|
+
} & React.RefAttributes<any>>;
|
|
12
|
+
export interface TimePickerProps extends Omit<PickerTimeProps<Dayjs>, 'picker'> {
|
|
13
|
+
addon?: () => React.ReactNode;
|
|
14
|
+
popupClassName?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<any>>;
|
|
17
|
+
declare type MergedTimePicker = typeof TimePicker & {
|
|
18
|
+
RangePicker: typeof RangePicker;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: MergedTimePicker;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextAreaProps } from 'antd/lib/input';
|
|
3
|
+
import { IQLExpressionProps } from '@/lib/types/iql';
|
|
4
|
+
declare type Props = Omit<TextAreaProps, 'onChange'> & IQLExpressionProps;
|
|
5
|
+
declare const IqlExpression: React.VFC<Props>;
|
|
6
|
+
export default IqlExpression;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const isValid: (component: string, expression: string, value: number | string | any[]) => boolean;
|
|
3
|
+
export declare const isSystemUser: (component: string) => boolean;
|
|
4
|
+
export declare const isUseOptionLabel: (component: string) => boolean;
|
|
5
|
+
export declare const getFitlerOption: (inputValue: string, option: Record<string, any>) => boolean;
|
|
6
|
+
export declare const getSelectOptionValue: (value: {
|
|
7
|
+
value: string;
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
}[]) => {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
13
|
+
export declare const getExprCondition: (component: string, expression: string, value: string | number | any[], key: string) => {
|
|
14
|
+
field: string;
|
|
15
|
+
value: any;
|
|
16
|
+
expr: string;
|
|
17
|
+
condition: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './FormField.global.less';
|
|
3
|
+
declare type BaseFormFieldInterface = {
|
|
4
|
+
children: any;
|
|
5
|
+
name: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
layout?: 'horizontal' | 'vertical';
|
|
8
|
+
required?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: any;
|
|
11
|
+
};
|
|
12
|
+
declare type FormFieldWithRest = BaseFormFieldInterface & Record<string, any>;
|
|
13
|
+
declare const FormField: ({ children, name, label, layout, required, style, className, ...rest }: FormFieldWithRest) => any;
|
|
14
|
+
export default FormField;
|
|
15
|
+
export * from './pure-field/FormikEnhance';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const addErrorMessage: (error: any[] | undefined, message: string, level?: string) => any[];
|