@flatbiz/antd 5.2.0 → 5.2.2

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 (78) hide show
  1. package/dist/ace-editor-groovy/index.d.ts +1 -0
  2. package/dist/ace-editor-java/index.d.ts +1 -0
  3. package/dist/ace-editor-json/index.d.ts +1 -0
  4. package/dist/ace-editor-xml/index.d.ts +1 -0
  5. package/dist/button-operate/index.d.ts +1 -0
  6. package/dist/button-wrapper/index.d.ts +1 -0
  7. package/dist/cascader-wrapper/index.d.ts +2 -1
  8. package/dist/check-list/index.d.ts +1 -0
  9. package/dist/css-node-hover/index.d.ts +1 -0
  10. package/dist/{date-Ce1UUrK-.js → date-BpBhtJIk.js} +2 -7
  11. package/dist/date-BpBhtJIk.js.map +1 -0
  12. package/dist/date-picker-wrapper/index.d.ts +1 -1
  13. package/dist/date-picker-wrapper/index.js +1 -1
  14. package/dist/date-range-picker-wrapper/index.d.ts +1 -0
  15. package/dist/date-range-picker-wrapper-form-item/index.d.ts +1 -0
  16. package/dist/dialog-alert/index.d.ts +1 -0
  17. package/dist/dialog-confirm/index.d.ts +1 -0
  18. package/dist/dialog-drag-modal/index.d.ts +1 -0
  19. package/dist/dialog-drawer/index.d.ts +1 -0
  20. package/dist/dialog-drawer-content/index.d.ts +1 -0
  21. package/dist/dialog-modal/index.d.ts +1 -0
  22. package/dist/{drag-BCuqujyV.js → drag-DAkMrJYP.js} +2 -2
  23. package/dist/{drag-BCuqujyV.js.map → drag-DAkMrJYP.js.map} +1 -1
  24. package/dist/drag-collapse-form-list/index.d.ts +1 -0
  25. package/dist/drag-editable-card/index.d.ts +1 -0
  26. package/dist/drag-editable-table/index.d.ts +1 -0
  27. package/dist/drag-editable-table/index.js +3 -3
  28. package/dist/drag-editable-table-pro/index.d.ts +1 -0
  29. package/dist/drag-form-list/index.d.ts +1 -0
  30. package/dist/drag-table/index.d.ts +1 -0
  31. package/dist/dropdown-menu-wrapper/index.d.ts +1 -0
  32. package/dist/easy-table/index.d.ts +9 -2
  33. package/dist/easy-table/index.js +26 -5
  34. package/dist/easy-table/index.js.map +1 -1
  35. package/dist/editable-card/index.d.ts +1 -0
  36. package/dist/editable-field/index.d.ts +1 -0
  37. package/dist/editable-table/index.d.ts +1 -0
  38. package/dist/editable-table/index.js +2 -2
  39. package/dist/{editable-table-B2dSUXSa.js → editable-table-dRs2-MRK.js} +2 -2
  40. package/dist/{editable-table-B2dSUXSa.js.map → editable-table-dRs2-MRK.js.map} +1 -1
  41. package/dist/editable-table-pro/index.d.ts +1 -0
  42. package/dist/error-boundary-wrapper/index.d.ts +1 -0
  43. package/dist/fba-app/index.d.ts +5 -4
  44. package/dist/fba-utils/index.d.ts +2 -1
  45. package/dist/file-import/index.d.ts +1 -0
  46. package/dist/flex-layout/index.d.ts +1 -1
  47. package/dist/flex-layout-BGtMe7zr.js.map +1 -1
  48. package/dist/form-item-text/index.d.ts +1 -0
  49. package/dist/form-item-wrapper/index.d.ts +1 -0
  50. package/dist/form-list-wrapper/index.d.ts +1 -0
  51. package/dist/index.d.ts +22 -14
  52. package/dist/index.js +3 -3
  53. package/dist/local-loading/index.d.ts +1 -0
  54. package/dist/mention-editor/index.d.ts +1 -0
  55. package/dist/number-range-form-item/index.d.ts +1 -0
  56. package/dist/relation-tree/index.d.ts +1 -0
  57. package/dist/search-form/index.d.ts +1 -0
  58. package/dist/search-menu/index.d.ts +1 -0
  59. package/dist/selector-wrapper/index.d.ts +1 -0
  60. package/dist/selector-wrapper-search/index.d.ts +1 -0
  61. package/dist/selector-wrapper-simple/index.d.ts +1 -0
  62. package/dist/styles/index.d.ts +1 -1
  63. package/dist/switch-confirm-wrapper/index.d.ts +1 -0
  64. package/dist/switch-wrapper/index.d.ts +1 -0
  65. package/dist/table-cell-render/index.d.ts +2 -1
  66. package/dist/tag-wrapper/index.d.ts +1 -0
  67. package/dist/time-range-picker-wrapper-form-item/index.d.ts +1 -0
  68. package/dist/tree-modal/index.d.ts +437 -1
  69. package/dist/tree-modal-selector/index.d.ts +1 -0
  70. package/dist/tree-selector-wrapper/index.d.ts +1 -0
  71. package/dist/tree-wrapper/index.d.ts +1 -0
  72. package/dist/tree-wrapper/index.js +7 -1
  73. package/dist/tree-wrapper/index.js.map +1 -1
  74. package/dist/types/index.d.ts +1 -1
  75. package/dist/upload-wrapper/index.d.ts +1 -0
  76. package/dist/x-mind-preview/index.d.ts +1 -0
  77. package/package.json +1 -1
  78. package/dist/date-Ce1UUrK-.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { DateFormatType, LabelValueItem, TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
1
2
  import { IAllProps } from '@tinymce/tinymce-react';
2
3
  import { AlertProps, ButtonProps, CardProps, CascaderProps, CheckboxProps, CollapseProps, ColorPickerProps, DatePicker, DrawerProps, DropdownProps, FormInstance, FormItemProps, FormListFieldData, FormListOperation, FormProps, GetProps, InputNumber, InputNumberProps, InputProps, MentionProps, ModalProps, PaginationProps, PopconfirmProps, PopoverProps, RadioGroupProps, RowProps, SelectProps, SpaceProps, SwitchProps, TableProps, Tabs, TabsProps, TagProps, TimePickerProps, TimeRangePickerProps, TooltipProps, TreeProps, TreeSelectProps, UploadFile, UploadProps } from 'antd';
3
4
  import { FormListProps } from 'antd/es/form/FormList.js';
@@ -246,7 +247,7 @@ export type TFbaLocale = {
246
247
  cancelText?: string;
247
248
  };
248
249
  };
249
- export declare const types: any;
250
+ export declare const types: () => void;
250
251
  export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
251
252
  locale?: TLocale;
252
253
  /** 自定义国际化数据 */
@@ -744,7 +745,7 @@ export type CascaderWrapperRefApi = {
744
745
  * 7. serviceConfig.params 参数发生变化时,会重新请求数据
745
746
  * ```
746
747
  */
747
- export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<Omit<CascaderProps<TAny, string | number | symbol, boolean>, "multiple" | "onChange" | "value" | "notFoundContent" | "loading" | "fieldNames" | "options"> & {
748
+ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<Omit<CascaderProps<any, string | number | symbol, boolean>, "multiple" | "onChange" | "value" | "notFoundContent" | "loading" | "fieldNames" | "options"> & {
748
749
  /**
749
750
  * 参数Key映射
750
751
  * ```
@@ -988,7 +989,6 @@ export type DatePickerWrapperProps = Omit<DatePickerType, "value" | "onChange" |
988
989
  * ```
989
990
  */
990
991
  export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => import("react").JSX.Element;
991
- export declare const DatePickerWrapperwwww: (props: DatePickerWrapperProps) => import("react").JSX.Element;
992
992
  export type DateRangePickerType = GetProps<typeof DatePicker.RangePicker>;
993
993
  export type DateRangePickerWrapperProps = Omit<DateRangePickerType, "value" | "onChange" | "onCalendarChange" | "format" | "picker"> & {
994
994
  value?: [
@@ -3108,8 +3108,14 @@ export type EasyTableProps = {
3108
3108
  export type EasyTableRefApi = {
3109
3109
  /** 外部发起请求服务 */
3110
3110
  onRequest: (params?: TPlainObject) => void;
3111
- /** 获取请求参数 */
3111
+ /**
3112
+ * 已经点击查询后的请求参数,不包含实时输入后未点击查询的参数
3113
+ */
3112
3114
  getRequestParams: () => TPlainObject;
3115
+ /**
3116
+ * 实时输入的请求参数
3117
+ */
3118
+ getFilterRealTimeParams: () => TPlainObject;
3113
3119
  /**
3114
3120
  * 清除Form查询条件
3115
3121
  * ```
@@ -3324,7 +3330,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
3324
3330
  * 2. 分页功能已内置处理,不调用 onChange
3325
3331
  * ```
3326
3332
  */
3327
- Table: <T extends TPlainObject>(props: EasyTableTableProps<T>) => import("react").JSX.Element;
3333
+ Table: <T extends import("@flatbiz/utils").TPlainObject>(props: EasyTableTableProps<T>) => import("react").JSX.Element;
3328
3334
  /** 在 EasyTable子组件内才可使用 */
3329
3335
  useEasyTable: () => EasyTableRefApi;
3330
3336
  /** 设置启用初始化请求 */
@@ -3525,7 +3531,7 @@ export declare const FbaApp: ((props: {
3525
3531
  };
3526
3532
  close: () => void;
3527
3533
  useAppDialogDrawer: () => {
3528
- rerenderFooter: (data?: TPlainObject) => void;
3534
+ rerenderFooter: (data?: import("@flatbiz/utils").TPlainObject) => void;
3529
3535
  };
3530
3536
  };
3531
3537
  };
@@ -3536,7 +3542,7 @@ export declare const FbaApp: ((props: {
3536
3542
  };
3537
3543
  close: () => void;
3538
3544
  useAppDialogDrawer: () => {
3539
- rerenderFooter: (data?: TPlainObject) => void;
3545
+ rerenderFooter: (data?: import("@flatbiz/utils").TPlainObject) => void;
3540
3546
  };
3541
3547
  };
3542
3548
  };
@@ -3548,7 +3554,7 @@ export declare const FbaApp: ((props: {
3548
3554
  };
3549
3555
  close: () => void;
3550
3556
  useAppDialogModal: () => {
3551
- rerenderFooter: (data?: TPlainObject) => void;
3557
+ rerenderFooter: (data?: import("@flatbiz/utils").TPlainObject) => void;
3552
3558
  };
3553
3559
  };
3554
3560
  };
@@ -3559,7 +3565,7 @@ export declare const FbaApp: ((props: {
3559
3565
  };
3560
3566
  close: () => void;
3561
3567
  useAppDialogModal: () => {
3562
- rerenderFooter: (data?: TPlainObject) => void;
3568
+ rerenderFooter: (data?: import("@flatbiz/utils").TPlainObject) => void;
3563
3569
  };
3564
3570
  };
3565
3571
  };
@@ -3634,7 +3640,7 @@ export declare const fbaUtils: {
3634
3640
  hasPermission: (name?: string) => boolean;
3635
3641
  getPermissionList: () => string[];
3636
3642
  attachPropertiesToComponent: typeof attachPropertiesToComponent;
3637
- getModelKey: () => any;
3643
+ getModelKey: () => string;
3638
3644
  /**
3639
3645
  * 手动触发Antd Form 的 onValuesChange
3640
3646
  * ```
@@ -3766,7 +3772,7 @@ export type FlexLayoutProps = {
3766
3772
  fullIndex: number | number[];
3767
3773
  /**方向,默认值vertical */
3768
3774
  direction?: "vertical" | "horizontal";
3769
- onClick?: () => void;
3775
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
3770
3776
  style?: CSSProperties;
3771
3777
  /** 间隙尺寸 */
3772
3778
  gap?: number;
@@ -5238,7 +5244,7 @@ export type SplitWrapperProps = SplitProps & {
5238
5244
  * ```
5239
5245
  */
5240
5246
  export declare const SplitWrapper: (props: SplitWrapperProps) => import("react").JSX.Element;
5241
- export declare const styles: any;
5247
+ export declare const styles: () => void;
5242
5248
  export type SvgHttpViewProps = {
5243
5249
  /**
5244
5250
  * svg地址
@@ -5458,7 +5464,7 @@ export declare const tableCellRender: {
5458
5464
  * }
5459
5465
  * ```
5460
5466
  */
5461
- dateCell: (dateFormatType?: DateFormatType, defaultValue?: string) => (value: string | number) => any;
5467
+ dateCell: (dateFormatType?: DateFormatType, defaultValue?: string) => (value: string | number) => string | number | undefined;
5462
5468
  /**
5463
5469
  * table操作栏目渲染
5464
5470
  * ```
@@ -5896,7 +5902,6 @@ export type TipsTitleProps = {
5896
5902
  borderColor?: string;
5897
5903
  };
5898
5904
  export declare const TipsTitle: (props: TipsTitleProps) => import("react").JSX.Element | null;
5899
- export declare const TreeModal: any;
5900
5905
  export type TreeWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
5901
5906
  export type TreeServiceConfig = {
5902
5907
  params?: TPlainObject;
@@ -6213,6 +6218,9 @@ export type TreeModalProps = TreeModalContentProps & {
6213
6218
  modalBodyHeight?: number;
6214
6219
  disabled?: boolean;
6215
6220
  };
6221
+ export declare const TreeModal: ((props: TreeModalProps) => import("react").JSX.Element) & {
6222
+ Content: (props: TreeModalContentProps) => import("react").JSX.Element;
6223
+ };
6216
6224
  export type TreeModalSelectorProps = Omit<TreeModalProps, "children" | "forceRender" | "onChange"> & {
6217
6225
  placeholder?: string;
6218
6226
  /**
package/dist/index.js CHANGED
@@ -158,7 +158,7 @@ export { C as ConfigProviderWrapper } from './config-provider-wrapper-Bxh9JdL4.j
158
158
  export { C as CopyWrapper } from './copy-BSlIwnwz.js';
159
159
  export { C as CssNodeHover } from './css-node-hover-2asP-4iL.js';
160
160
  export { D as DataRender } from './data-render-U7RkK7OY.js';
161
- export { D as DatePickerWrapper, a as DatePickerWrapperwwww } from './date-Ce1UUrK-.js';
161
+ export { D as DatePickerWrapper } from './date-BpBhtJIk.js';
162
162
  export { D as DateRangePickerWrapper } from './date-range-picker-wrapper-DMQLIXbV.js';
163
163
  export { D as DateRangePickerWrapperFormItem } from './form-item-Dr_TlV6t.js';
164
164
  export { D as DeleteNode } from './delete-node-BXaXf6fO.js';
@@ -173,7 +173,7 @@ export { d as dialogPreviewImage } from './preview-image-BCBOv4h_.js';
173
173
  export { D as DragCollapse } from './drag-collapse-DT1RclKl.js';
174
174
  export { D as DragCollapseFormList } from './drag-collapse-DXDZYoVh.js';
175
175
  export { D as DragEditableCard } from './editable-card-fKejL_-j.js';
176
- export { D as DragEditableTable } from './drag-BCuqujyV.js';
176
+ export { D as DragEditableTable } from './drag-DAkMrJYP.js';
177
177
  export { D as DragEditableTablePro } from './drag-BJvkX6wX.js';
178
178
  export { D as DragFormList } from './drag-form-list-km7sbRgX.js';
179
179
  export { D as DragTable } from './drag-table-Dk8HllSn.js';
@@ -184,7 +184,7 @@ export { EasyTable } from './easy-table/index.js';
184
184
  export { E as EditableCard } from './editable-card-CEnfCpHB.js';
185
185
  export { E as EditableField } from './editable-field-DBiVpCRE.js';
186
186
  export { E as EditableFieldProvider } from './editable-field-provider-DqKcZQYP.js';
187
- export { E as EditableTable } from './editable-table-B2dSUXSa.js';
187
+ export { E as EditableTable } from './editable-table-dRs2-MRK.js';
188
188
  export { E as EditableTablePro } from './editable-table-pro-BaPGZ1D-.js';
189
189
  export { E as ErrorBoundaryWrapper } from './error-boundary-D6RX4EQZ.js';
190
190
  export { FbaApp } from './fba-app/index.js';
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { CSSProperties, ReactElement } from 'react';
2
3
 
3
4
  export type LocalLoadingServiceConfig = {
@@ -1,3 +1,4 @@
1
+ import { TAny } from '@flatbiz/utils';
1
2
  import { MentionProps } from 'antd';
2
3
  import { ReactElement } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { FormItemProps, GetProps, InputNumber } from 'antd';
2
3
  import { CSSProperties, ReactElement, ReactNode } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { ReactElement } from 'react';
2
3
 
3
4
  export type RelationProps = {
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { ButtonProps, FormInstance, FormProps, RowProps, SpaceProps } from 'antd';
2
3
  import { CSSProperties, ReactElement, ReactNode } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { TPlainObject } from '@flatbiz/utils';
1
2
  import { SearchProps } from 'antd/lib/input/index.js';
2
3
  import { CSSProperties, ReactElement, ReactNode } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { SelectProps } from 'antd';
2
3
  import { ReactElement } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { SelectProps } from 'antd';
2
3
  import { ReactElement } from 'react';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { SelectProps } from 'antd';
2
3
  import { ReactElement } from 'react';
3
4
 
@@ -1,3 +1,3 @@
1
- export declare const styles: any;
1
+ export declare const styles: () => void;
2
2
 
3
3
  export {};
@@ -1,3 +1,4 @@
1
+ import { TAny } from '@flatbiz/utils';
1
2
  import { PopconfirmProps, SwitchProps } from 'antd';
2
3
 
3
4
  export type SwitchConfirmWrapperValue = string | number | boolean;
@@ -1,3 +1,4 @@
1
+ import { TAny } from '@flatbiz/utils';
1
2
  import { SwitchProps, TooltipProps } from 'antd';
2
3
 
3
4
  export type SwitchWrapperValue = string | number | boolean;
@@ -1,3 +1,4 @@
1
+ import { DateFormatType, TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
1
2
  import { ButtonProps, DropdownProps, FormInstance, ModalProps, PopconfirmProps, SpaceProps } from 'antd';
2
3
  import { ConfigProviderProps } from 'antd/lib/config-provider/index.js';
3
4
  import { CSSProperties, ReactElement, ReactNode } from 'react';
@@ -232,7 +233,7 @@ export declare const tableCellRender: {
232
233
  * }
233
234
  * ```
234
235
  */
235
- dateCell: (dateFormatType?: DateFormatType, defaultValue?: string) => (value: string | number) => any;
236
+ dateCell: (dateFormatType?: DateFormatType, defaultValue?: string) => (value: string | number) => string | number | undefined;
236
237
  /**
237
238
  * table操作栏目渲染
238
239
  * ```
@@ -1,3 +1,4 @@
1
+ import { TAny } from '@flatbiz/utils';
1
2
  import { TagProps } from 'antd';
2
3
 
3
4
  export type TagWrapperProps = Omit<TagProps, "onClick"> & {
@@ -1,3 +1,4 @@
1
+ import { TAny, TPlainObject } from '@flatbiz/utils';
1
2
  import { FormItemProps, TimeRangePickerProps } from 'antd';
2
3
  import { CSSProperties, ReactElement, ReactNode } from 'react';
3
4