@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.
Files changed (193) hide show
  1. package/dist/cells/actors/BaseField.d.ts +1 -1
  2. package/dist/cells/assignee/index.d.ts +2 -2
  3. package/dist/cells/bind-workspace/BaseField.d.ts +1 -1
  4. package/dist/cells/board/index.d.ts +1 -1
  5. package/dist/cells/checkbox/BaseField.d.ts +1 -1
  6. package/dist/cells/date/BaseField.d.ts +1 -1
  7. package/dist/cells/date/index.d.ts +1 -1
  8. package/dist/cells/date-range/BaseField.d.ts +1 -1
  9. package/dist/cells/date-range/index.d.ts +1 -1
  10. package/dist/cells/dropdown/BaseField.d.ts +1 -1
  11. package/dist/cells/dropdown/index.d.ts +1 -1
  12. package/dist/cells/editor/BaseField.d.ts +29 -0
  13. package/dist/cells/editor/Field.d.ts +16 -0
  14. package/dist/cells/editor/config/autoformatRules.d.ts +3 -0
  15. package/dist/cells/editor/config/index.d.ts +5 -0
  16. package/dist/cells/editor/config/pluginOptions.d.ts +10 -0
  17. package/dist/cells/editor/config/withDeserializeHTML.d.ts +64 -0
  18. package/dist/cells/editor/config/withStyledDraggables.d.ts +2 -0
  19. package/dist/cells/editor/config/withStyledPlaceHolders.d.ts +2 -0
  20. package/dist/cells/editor/elements/ImageElement.d.ts +3 -0
  21. package/dist/cells/editor/elements/MentionElement.d.ts +3 -0
  22. package/dist/cells/editor/elements/index.d.ts +2 -0
  23. package/dist/cells/editor/hooks.d.ts +11 -0
  24. package/dist/cells/editor/index.d.ts +15 -0
  25. package/dist/cells/editor/plugins/Fullscreen.d.ts +7 -0
  26. package/dist/cells/editor/plugins/ToolbarButton.d.ts +3 -0
  27. package/dist/cells/editor/plugins/ToolbarFont.d.ts +12 -0
  28. package/dist/cells/editor/plugins/ToolbarFontColor.d.ts +7 -0
  29. package/dist/cells/editor/plugins/ToolbarHistory.d.ts +7 -0
  30. package/dist/cells/editor/plugins/ToolbarLink.d.ts +4 -0
  31. package/dist/cells/editor/plugins/ToolbarTable.d.ts +4 -0
  32. package/dist/cells/editor/plugins/ToolbarUpload.d.ts +4 -0
  33. package/dist/cells/editor/plugins/Toolbars.d.ts +11 -0
  34. package/dist/cells/editor/plugins/font-bg-color/createFontBgColorPlugin.d.ts +3 -0
  35. package/dist/cells/editor/plugins/font-bg-color/defaults.d.ts +2 -0
  36. package/dist/cells/editor/plugins/font-bg-color/getFontDeserialize.d.ts +2 -0
  37. package/dist/cells/editor/plugins/font-bg-color/index.d.ts +3 -0
  38. package/dist/cells/editor/plugins/font-color/createFontColorPlugin.d.ts +3 -0
  39. package/dist/cells/editor/plugins/font-color/defaults.d.ts +2 -0
  40. package/dist/cells/editor/plugins/font-color/getFontDeserialize.d.ts +2 -0
  41. package/dist/cells/editor/plugins/font-color/index.d.ts +3 -0
  42. package/dist/cells/editor/plugins/font-family/createFontFamilyPlugin.d.ts +3 -0
  43. package/dist/cells/editor/plugins/font-family/defaults.d.ts +2 -0
  44. package/dist/cells/editor/plugins/font-family/getFontDeserialize.d.ts +2 -0
  45. package/dist/cells/editor/plugins/font-family/index.d.ts +3 -0
  46. package/dist/cells/editor/plugins/font-line-height/createFontLineHeightPlugin.d.ts +3 -0
  47. package/dist/cells/editor/plugins/font-line-height/defaults.d.ts +2 -0
  48. package/dist/cells/editor/plugins/font-line-height/getFontDeserialize.d.ts +2 -0
  49. package/dist/cells/editor/plugins/font-line-height/index.d.ts +3 -0
  50. package/dist/cells/editor/plugins/font-size/createFontSizePlugin.d.ts +3 -0
  51. package/dist/cells/editor/plugins/font-size/defaults.d.ts +2 -0
  52. package/dist/cells/editor/plugins/font-size/getFontDeserialize.d.ts +2 -0
  53. package/dist/cells/editor/plugins/font-size/index.d.ts +3 -0
  54. package/dist/cells/editor/plugins/image/createImagePlugin.d.ts +3 -0
  55. package/dist/cells/editor/plugins/image/getImageDeserialize.d.ts +2 -0
  56. package/dist/cells/editor/plugins/image/index.d.ts +3 -0
  57. package/dist/cells/editor/plugins/image/insertImage.d.ts +2 -0
  58. package/dist/cells/editor/plugins/image/withImageUpload.d.ts +3 -0
  59. package/dist/cells/editor/plugins/index.d.ts +6 -0
  60. package/dist/cells/editor/utils.d.ts +13 -0
  61. package/dist/cells/file/BaseField.d.ts +1 -1
  62. package/dist/cells/formula/BaseField.d.ts +1 -1
  63. package/dist/cells/item-group/index.d.ts +1 -1
  64. package/dist/cells/item-type/index.d.ts +1 -1
  65. package/dist/cells/long-text/BaseField.d.ts +1 -1
  66. package/dist/cells/name/index.d.ts +1 -1
  67. package/dist/cells/number/BaseField.d.ts +1 -1
  68. package/dist/cells/priority/index.d.ts +2 -2
  69. package/dist/cells/radio/BaseField.d.ts +1 -1
  70. package/dist/cells/script/BaseField.d.ts +1 -1
  71. package/dist/cells/security-level/BaseField.d.ts +1 -1
  72. package/dist/cells/sprint/index.d.ts +1 -1
  73. package/dist/cells/status/Field.d.ts +1 -1
  74. package/dist/cells/tag/BaseField.d.ts +1 -1
  75. package/dist/cells/text/BaseField.d.ts +1 -1
  76. package/dist/cells/text/index.d.ts +2 -2
  77. package/dist/cells/time/BaseField.d.ts +1 -1
  78. package/dist/cells/time/index.d.ts +1 -1
  79. package/dist/cells/time-range/BaseField.d.ts +1 -1
  80. package/dist/cells/time-range/index.d.ts +1 -1
  81. package/dist/cells/tree/BaseField.d.ts +1 -1
  82. package/dist/cells/user/BaseField.d.ts +2 -2
  83. package/dist/cells/user/index.d.ts +1 -1
  84. package/dist/cells/version/index.d.ts +1 -1
  85. package/dist/cells/workspace/index.d.ts +1 -1
  86. package/dist/common/FieldErrorBoundary.d.ts +2 -2
  87. package/dist/common/UploadFile.d.ts +1 -1
  88. package/dist/common/base-table/index.d.ts +3 -3
  89. package/dist/common/date/DatePicker.d.ts +8 -9
  90. package/dist/common/date/TimePicker.d.ts +3 -5
  91. package/dist/common/filters/filter-query/IqlExpression.d.ts +1 -1
  92. package/dist/common/form-field/FormField.d.ts +2 -2
  93. package/dist/common/plugin/PluginLoadComponent.d.ts +1 -1
  94. package/dist/common/status-selector/index.d.ts +1 -1
  95. package/dist/common/structure/hooks.d.ts +2 -2
  96. package/dist/common/structure/table-components/TableActionMenu.d.ts +3 -3
  97. package/dist/common/structure/table-components/useTableColumns.d.ts +1 -1
  98. package/dist/common/structure/table-components/useTableMenu.d.ts +4 -4
  99. package/dist/common/structure-table/components/DraggableRow.d.ts +1 -1
  100. package/dist/common/utils.d.ts +2 -2
  101. package/dist/fields/item-activity/BaseField.d.ts +7 -0
  102. package/dist/fields/item-activity/Comment.d.ts +7 -0
  103. package/dist/index.d.ts +4 -1
  104. package/dist/index.js +1 -1
  105. package/dist/index.js.LICENSE.txt +2 -0
  106. package/dist/index.js.map +1 -1
  107. package/dist/lib/apis/groups/index.d.ts +1 -1
  108. package/dist/lib/apis/roles/index.d.ts +1 -1
  109. package/dist/lib/apis/screen/fields.d.ts +1 -1
  110. package/dist/lib/apis/screen/index.d.ts +3 -3
  111. package/dist/lib/contexts/LibraryProvider.d.ts +3 -2
  112. package/dist/lib/contexts/currentUserAndRoles.d.ts +1 -1
  113. package/dist/lib/contexts/token.d.ts +1 -1
  114. package/dist/lib/contexts/users.d.ts +1 -1
  115. package/dist/lib/customFields/hooks.d.ts +1 -1
  116. package/dist/lib/dayjs.d.ts +1 -1
  117. package/dist/lib/error/log.d.ts +1 -1
  118. package/dist/lib/error/utils.d.ts +2 -2
  119. package/dist/lib/fetch.d.ts +1 -1
  120. package/dist/lib/forest.d.ts +6 -6
  121. package/dist/lib/hooks/index.d.ts +2 -2
  122. package/dist/lib/hooks/useCustomFields.d.ts +1 -1
  123. package/dist/lib/hooks/useFieldTypes.d.ts +1 -1
  124. package/dist/lib/hooks/useFields.d.ts +1 -1
  125. package/dist/lib/hooks/useI18n.d.ts +1 -5
  126. package/dist/lib/hooks/useItemsInfinite.d.ts +4 -4
  127. package/dist/lib/hooks/useRemoteComponents.d.ts +3 -3
  128. package/dist/lib/hooks/useTenants.d.ts +1 -1
  129. package/dist/lib/hooks/useWorkspaces.d.ts +1 -1
  130. package/dist/lib/i18n.d.ts +4 -4
  131. package/dist/lib/kanban/hooks.d.ts +1 -1
  132. package/dist/lib/locales.d.ts +4 -2
  133. package/dist/lib/usePluginManifest.d.ts +1 -1
  134. package/dist/lib/useUser.d.ts +3 -3
  135. package/dist/lib/workspace.d.ts +2 -0
  136. package/dist/locales/en/en_US.d.ts +45 -0
  137. package/dist/locales/en/package/application.d.ts +73 -0
  138. package/dist/locales/en/package/automation.d.ts +303 -0
  139. package/dist/locales/en/package/date.d.ts +54 -0
  140. package/dist/locales/en/package/fields.d.ts +409 -0
  141. package/dist/locales/en/package/filters.d.ts +89 -0
  142. package/dist/locales/en/package/formField.d.ts +157 -0
  143. package/dist/locales/en/package/global.d.ts +318 -0
  144. package/dist/locales/en/package/item.d.ts +488 -0
  145. package/dist/locales/en/package/itemTypes.d.ts +154 -0
  146. package/dist/locales/en/package/lib.d.ts +127 -0
  147. package/dist/locales/en/package/message.d.ts +251 -0
  148. package/dist/locales/en/package/pages.d.ts +67 -0
  149. package/dist/locales/en/package/permission.d.ts +471 -0
  150. package/dist/locales/en/package/placeholder.d.ts +179 -0
  151. package/dist/locales/en/package/plugin.d.ts +20 -0
  152. package/dist/locales/en/package/report.d.ts +150 -0
  153. package/dist/locales/en/package/reportPlugin.d.ts +183 -0
  154. package/dist/locales/en/package/screen.d.ts +121 -0
  155. package/dist/locales/en/package/sections.d.ts +60 -0
  156. package/dist/locales/en/package/settings.d.ts +194 -0
  157. package/dist/locales/en/package/sprint.d.ts +52 -0
  158. package/dist/locales/en/package/users.d.ts +58 -0
  159. package/dist/locales/en/package/validate.d.ts +138 -0
  160. package/dist/locales/en/package/views.d.ts +383 -0
  161. package/dist/locales/en/package/workflow.d.ts +245 -0
  162. package/dist/locales/en/package/workspace.d.ts +342 -0
  163. package/dist/locales/zh/package/application.d.ts +73 -0
  164. package/dist/locales/zh/package/automation.d.ts +303 -0
  165. package/dist/locales/zh/package/date.d.ts +54 -0
  166. package/dist/locales/zh/package/fields.d.ts +409 -0
  167. package/dist/locales/zh/package/filters.d.ts +89 -0
  168. package/dist/locales/zh/package/formField.d.ts +162 -0
  169. package/dist/locales/zh/package/global.d.ts +318 -0
  170. package/dist/locales/zh/package/item.d.ts +489 -0
  171. package/dist/locales/zh/package/itemTypes.d.ts +153 -0
  172. package/dist/locales/zh/package/lib.d.ts +127 -0
  173. package/dist/locales/zh/package/message.d.ts +251 -0
  174. package/dist/locales/zh/package/pages.d.ts +67 -0
  175. package/dist/locales/zh/package/permission.d.ts +470 -0
  176. package/dist/locales/zh/package/placeholder.d.ts +172 -0
  177. package/dist/locales/zh/package/plugin.d.ts +20 -0
  178. package/dist/locales/zh/package/report.d.ts +150 -0
  179. package/dist/locales/zh/package/reportPlugin.d.ts +183 -0
  180. package/dist/locales/zh/package/screen.d.ts +116 -0
  181. package/dist/locales/zh/package/sections.d.ts +63 -0
  182. package/dist/locales/zh/package/settings.d.ts +192 -0
  183. package/dist/locales/zh/package/sprint.d.ts +52 -0
  184. package/dist/locales/zh/package/users.d.ts +58 -0
  185. package/dist/locales/zh/package/validate.d.ts +138 -0
  186. package/dist/locales/zh/package/views.d.ts +380 -0
  187. package/dist/locales/zh/package/workflow.d.ts +245 -0
  188. package/dist/locales/zh/package/workspace.d.ts +344 -0
  189. package/dist/locales/zh/zh_CN.d.ts +46 -0
  190. package/dist/main.css +7921 -9852
  191. package/dist/main.css.map +1 -1
  192. package/dist/osui/index.d.ts +1 -1
  193. package/package.json +16 -8
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FieldProps } from '@/fields/base-component/types';
3
- export declare type BaseScriptFieldProps = FieldProps & {
3
+ export type BaseScriptFieldProps = FieldProps & {
4
4
  script?: string;
5
5
  itemValues?: Record<string, unknown>;
6
6
  };
@@ -6,7 +6,7 @@ interface selectValue {
6
6
  label: string;
7
7
  value: string | number;
8
8
  }
9
- export declare type BaseDropdownProps = SelectProps<any> & FieldProps & {
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, import("rc-select/lib/Select").DefaultOptionType> & import("@/fields/base-component/types").FieldProps & {
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 declare type StatusProps = FieldProps & {
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 declare type BaseTagProps = FieldProps & {
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 declare type BaseFieldProps = InputProps & FieldProps & {
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 declare type TextProps = BaseFieldProps & CellProps;
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?: 4 | 3 | 2 | 1 | 5;
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 declare type BaseFieldProps = TimePickerProps & FieldProps & {
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
- declare type Props = BaseFieldProps & CellProps;
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 declare type BaseFieldProps = TimeRangePickerProps & FieldProps & {
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
- declare type Props = BaseFieldProps & CellProps;
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 declare type BaseTreeProps = TreeSelectProps<any> & FieldProps & {
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 declare type UserType = {
5
+ export type UserType = {
6
6
  username: string;
7
7
  label: string;
8
8
  value: string;
9
9
  };
10
- export declare type BaseUserProps = FieldProps & {
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 declare type UserProps = BaseUserProps & CellProps;
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, import("rc-select/lib/Select").DefaultOptionType> & import("@/fields/base-component/types").FieldProps & {
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, import("rc-select/lib/Select").DefaultOptionType> & import("@/fields/base-component/types").FieldProps & {
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,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type MyState = {
2
+ type MyState = {
3
3
  hasError: boolean;
4
4
  };
5
- declare type Props = {
5
+ type Props = {
6
6
  children: ReactNode;
7
7
  errorText?: string;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export declare const EMPTY_FILE_LIST: any[];
3
- declare type annexData = {
3
+ type annexData = {
4
4
  uid: string;
5
5
  name: string;
6
6
  status?: string;
@@ -1,16 +1,16 @@
1
1
  import React from 'react';
2
2
  import BaseTable, { BaseTableProps } from 'react-base-table';
3
- declare type CreateChildCardOptionParam = {
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 declare type BaseTableRefType<T = unknown> = BaseTable<T> & {
9
+ export type BaseTableRefType<T = unknown> = BaseTable<T> & {
10
10
  /** 快速创建子事项 */
11
11
  createChildCard: (parentRowKey: string, option: CreateChildCardOptionParam) => void;
12
12
  };
13
- export declare type AdvanceBaseTableProps = BaseTableProps;
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("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>;
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 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"> & {
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
- declare type MergedTimePicker = typeof TimePicker & {
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
- declare type Props = Omit<TextAreaProps, 'onChange'> & IQLExpressionProps;
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
- declare type BaseFormFieldInterface = {
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
- declare type FormFieldWithRest = BaseFormFieldInterface & Record<string, any>;
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 declare type PluginProps = ContextMessage & {
7
+ export type PluginProps = ContextMessage & {
8
8
  onRefreshContext?: () => void;
9
9
  };
10
10
  export declare enum PluginLoadType {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { SelectProps } from 'antd';
3
- declare type StatusOption = {
3
+ type StatusOption = {
4
4
  label: string;
5
5
  key: string;
6
6
  value: string;
@@ -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
- declare type UseCreateChildCardFields = (workSpace: string, customFields: any[]) => {
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
- declare type UseCreateItem = (workspaceId: string) => {
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
- declare type AccessType = 'canChildCardCreate';
4
+ type AccessType = 'canChildCardCreate';
5
5
  /** 菜单操作类型 */
6
- export declare type ActionType = 'view' | 'edit' | 'delete' | 'childCardCreate' | 'childCardInlineCreate';
6
+ export type ActionType = 'view' | 'edit' | 'delete' | 'childCardCreate' | 'childCardInlineCreate';
7
7
  /** 菜单操作权限判断 */
8
- export declare type MenuAccess = Record<AccessType, boolean | (() => boolean)>;
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 declare type WorkspaceType = {
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
- declare type ActionTypeHandlers<T> = Record<ActionType, (params: T) => Promise<void> | void>;
5
+ type ActionTypeHandlers<T> = Record<ActionType, (params: T) => Promise<void> | void>;
6
6
  /** 弹窗菜单依赖 */
7
- declare type UseTableMenuActionDeps = {
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
- declare type pageProps = 'detail' | 'drawer';
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
- declare type UseTableActionMenuConfig<T = unknown, ReturnVal = {
22
+ type UseTableActionMenuConfig<T = unknown, ReturnVal = {
23
23
  access?: MenuAccess;
24
24
  extraData?: any;
25
25
  }> = {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { TableRowProps } from './Row';
3
- declare type DraggableRowProps = TableRowProps;
3
+ type DraggableRowProps = TableRowProps;
4
4
  declare const DraggableRow: React.FC<DraggableRowProps>;
5
5
  export default DraggableRow;
@@ -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
- declare type optionsInitProps = {
18
+ type optionsInitProps = {
19
19
  name?: string;
20
20
  objectId?: string;
21
21
  label?: string;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface SortElementProps {
3
+ isAscending: boolean;
4
+ changeSort: (value: boolean) => void;
5
+ }
6
+ export declare const SortElement: React.FC<SortElementProps>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface CommentPaneProps {
3
+ itemId: string;
4
+ readonly: boolean;
5
+ }
6
+ declare const CommentPane: React.FC<CommentPaneProps>;
7
+ export default CommentPane;
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';