linkmore-design 1.0.56 → 1.0.59

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 (181) hide show
  1. package/dist/Button/index.d.ts +4 -0
  2. package/dist/CardTable/LmCardTable.d.ts +1 -0
  3. package/dist/CustomTableOption/cardSort.d.ts +4 -0
  4. package/dist/CustomTableOption/index.d.ts +1 -0
  5. package/dist/DatePicker/PickerButton.d.ts +2 -0
  6. package/dist/DatePicker/PickerTag.d.ts +2 -0
  7. package/dist/DatePicker/demos/basic.d.ts +2 -0
  8. package/dist/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  9. package/dist/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
  10. package/dist/DatePicker/generatePicker/index.d.ts +106 -0
  11. package/dist/DatePicker/generatePicker/interface.d.ts +12 -0
  12. package/dist/DatePicker/index.d.ts +17 -0
  13. package/dist/DatePicker/style/index.d.ts +1 -0
  14. package/dist/DatePicker/util.d.ts +14 -0
  15. package/dist/Empty/demos/custom.d.ts +2 -0
  16. package/dist/Empty/empty.d.ts +2 -0
  17. package/dist/Empty/index.d.ts +18 -3
  18. package/dist/Empty/simple.d.ts +2 -0
  19. package/dist/Form/container.d.ts +8 -0
  20. package/dist/Form/demos/responsive.d.ts +2 -0
  21. package/dist/Form/index.d.ts +3 -0
  22. package/dist/LmEditTable/demos/basic copy.d.ts +2 -0
  23. package/dist/LmFilter/customFilter/index.d.ts +3 -1
  24. package/dist/LmFilter/filterFns/index.d.ts +4 -1
  25. package/dist/LmFilter/utils.d.ts +1 -1
  26. package/dist/_util/motion.d.ts +8 -0
  27. package/dist/_util/statusUtils.d.ts +6 -0
  28. package/dist/_util/type.d.ts +9 -0
  29. package/dist/_util/warning.d.ts +6 -0
  30. package/dist/index.d.ts +3 -0
  31. package/dist/index.umd.js +10675 -271
  32. package/dist/index.umd.min.js +6 -6
  33. package/es/Button/index.d.ts +4 -0
  34. package/es/Button/index.js +1 -1
  35. package/es/CardTable/LmCardTable.js +4 -1
  36. package/es/CardTable/card/PictureTextRow.js +8 -3
  37. package/es/CardTable/style/index.css +8 -1
  38. package/es/CustomTableOption/cardSort.d.ts +4 -0
  39. package/es/CustomTableOption/cardSort.js +219 -0
  40. package/es/CustomTableOption/columnsSort.js +2 -4
  41. package/es/CustomTableOption/filterSort.js +0 -3
  42. package/es/CustomTableOption/index.d.ts +1 -0
  43. package/es/CustomTableOption/index.js +37 -13
  44. package/es/CustomTableOption/style/index.css +3 -0
  45. package/es/DatePicker/PickerButton.d.ts +2 -0
  46. package/es/DatePicker/PickerButton.js +8 -0
  47. package/es/DatePicker/PickerTag.d.ts +2 -0
  48. package/es/DatePicker/PickerTag.js +7 -0
  49. package/es/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  50. package/es/DatePicker/generatePicker/generateRangePicker.js +142 -0
  51. package/es/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
  52. package/es/DatePicker/generatePicker/generateSinglePicker.js +170 -0
  53. package/es/DatePicker/generatePicker/index.d.ts +106 -0
  54. package/es/DatePicker/generatePicker/index.js +84 -0
  55. package/es/DatePicker/generatePicker/interface.d.ts +12 -0
  56. package/es/DatePicker/generatePicker/interface.js +1 -0
  57. package/es/DatePicker/index.d.ts +17 -0
  58. package/es/DatePicker/index.js +7 -0
  59. package/es/DatePicker/style/index.css +505 -0
  60. package/es/DatePicker/style/index.d.ts +1 -0
  61. package/es/DatePicker/style/index.js +1 -0
  62. package/es/DatePicker/util.d.ts +14 -0
  63. package/es/DatePicker/util.js +111 -0
  64. package/es/Empty/empty.d.ts +2 -0
  65. package/es/Empty/empty.js +55 -0
  66. package/es/Empty/index.d.ts +18 -3
  67. package/es/Empty/index.js +100 -1
  68. package/es/Empty/simple.d.ts +2 -0
  69. package/es/Empty/simple.js +36 -0
  70. package/es/Empty/style/index.css +44 -0
  71. package/es/Form/container.d.ts +8 -0
  72. package/es/Form/container.js +97 -0
  73. package/es/Form/index.d.ts +3 -0
  74. package/es/Form/index.js +13 -1
  75. package/es/Form/style/index.css +35 -0
  76. package/es/IconFont/index.js +1 -1
  77. package/es/LmEditTable/DragHandle.js +1 -1
  78. package/es/LmEditTable/EditTable.js +27 -35
  79. package/es/LmFilter/Controls/index.js +32 -2
  80. package/es/LmFilter/baseFilter/index.js +2 -1
  81. package/es/LmFilter/complexFilter/drawer.js +33 -32
  82. package/es/LmFilter/components/CascaderFilter.js +35 -35
  83. package/es/LmFilter/components/CheckboxFilter.js +13 -21
  84. package/es/LmFilter/components/DateFilter.js +53 -29
  85. package/es/LmFilter/components/DropdownFIlter.js +51 -22
  86. package/es/LmFilter/components/SelectFilter.js +2 -3
  87. package/es/LmFilter/components/index.js +5 -61
  88. package/es/LmFilter/customFilter/index.js +3 -2
  89. package/es/LmFilter/filterFns/index.js +65 -25
  90. package/es/LmFilter/style/style.css +2 -1
  91. package/es/LmFilter/utils.js +63 -14
  92. package/es/LmFilter/wrapper/Filter.js +6 -3
  93. package/es/LmFilter/wrapper/FilterRoot.js +29 -22
  94. package/es/LmTable/Table.js +15 -8
  95. package/es/QuickMenu/index.js +5 -3
  96. package/es/_util/motion.d.ts +8 -0
  97. package/es/_util/motion.js +60 -0
  98. package/es/_util/statusUtils.d.ts +6 -0
  99. package/es/_util/statusUtils.js +12 -0
  100. package/es/_util/type.d.ts +9 -0
  101. package/es/_util/type.js +15 -0
  102. package/es/_util/warning.d.ts +6 -0
  103. package/es/_util/warning.js +17 -0
  104. package/es/index.d.ts +3 -0
  105. package/es/index.js +2 -1
  106. package/es/message/index.d.ts +5 -5
  107. package/lib/Button/index.d.ts +4 -0
  108. package/lib/Button/index.js +1 -1
  109. package/lib/CardTable/LmCardTable.js +4 -1
  110. package/lib/CardTable/card/PictureTextRow.js +8 -3
  111. package/lib/CardTable/style/index.css +8 -1
  112. package/lib/CustomTableOption/cardSort.d.ts +4 -0
  113. package/lib/CustomTableOption/cardSort.js +239 -0
  114. package/lib/CustomTableOption/columnsSort.js +2 -4
  115. package/lib/CustomTableOption/filterSort.js +0 -3
  116. package/lib/CustomTableOption/index.d.ts +1 -0
  117. package/lib/CustomTableOption/index.js +38 -13
  118. package/lib/CustomTableOption/style/index.css +3 -0
  119. package/lib/DatePicker/PickerButton.d.ts +2 -0
  120. package/lib/DatePicker/PickerButton.js +19 -0
  121. package/lib/DatePicker/PickerTag.d.ts +2 -0
  122. package/lib/DatePicker/PickerTag.js +18 -0
  123. package/lib/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  124. package/lib/DatePicker/generatePicker/generateRangePicker.js +168 -0
  125. package/lib/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
  126. package/lib/DatePicker/generatePicker/generateSinglePicker.js +196 -0
  127. package/lib/DatePicker/generatePicker/index.d.ts +106 -0
  128. package/lib/DatePicker/generatePicker/index.js +102 -0
  129. package/lib/DatePicker/generatePicker/interface.d.ts +12 -0
  130. package/lib/DatePicker/generatePicker/interface.js +5 -0
  131. package/lib/DatePicker/index.d.ts +17 -0
  132. package/lib/DatePicker/index.js +21 -0
  133. package/lib/DatePicker/style/index.css +505 -0
  134. package/lib/DatePicker/style/index.d.ts +1 -0
  135. package/lib/DatePicker/style/index.js +3 -0
  136. package/lib/DatePicker/util.d.ts +14 -0
  137. package/lib/DatePicker/util.js +122 -0
  138. package/lib/Empty/empty.d.ts +2 -0
  139. package/lib/Empty/empty.js +66 -0
  140. package/lib/Empty/index.d.ts +18 -3
  141. package/lib/Empty/index.js +107 -1
  142. package/lib/Empty/simple.d.ts +2 -0
  143. package/lib/Empty/simple.js +47 -0
  144. package/lib/Empty/style/index.css +44 -0
  145. package/lib/Form/container.d.ts +8 -0
  146. package/lib/Form/container.js +112 -0
  147. package/lib/Form/index.d.ts +3 -0
  148. package/lib/Form/index.js +14 -1
  149. package/lib/Form/style/index.css +35 -0
  150. package/lib/IconFont/index.js +1 -1
  151. package/lib/LmEditTable/DragHandle.js +1 -1
  152. package/lib/LmEditTable/EditTable.js +26 -36
  153. package/lib/LmFilter/Controls/index.js +32 -2
  154. package/lib/LmFilter/baseFilter/index.js +2 -1
  155. package/lib/LmFilter/complexFilter/drawer.js +33 -32
  156. package/lib/LmFilter/components/CascaderFilter.js +35 -35
  157. package/lib/LmFilter/components/CheckboxFilter.js +13 -21
  158. package/lib/LmFilter/components/DateFilter.js +53 -29
  159. package/lib/LmFilter/components/DropdownFIlter.js +51 -22
  160. package/lib/LmFilter/components/SelectFilter.js +2 -3
  161. package/lib/LmFilter/components/index.js +5 -61
  162. package/lib/LmFilter/customFilter/index.js +3 -2
  163. package/lib/LmFilter/filterFns/index.js +65 -25
  164. package/lib/LmFilter/style/style.css +2 -1
  165. package/lib/LmFilter/utils.js +63 -14
  166. package/lib/LmFilter/wrapper/Filter.js +6 -3
  167. package/lib/LmFilter/wrapper/FilterRoot.js +29 -22
  168. package/lib/LmTable/Table.js +15 -8
  169. package/lib/QuickMenu/index.js +4 -2
  170. package/lib/_util/motion.d.ts +8 -0
  171. package/lib/_util/motion.js +71 -0
  172. package/lib/_util/statusUtils.d.ts +6 -0
  173. package/lib/_util/statusUtils.js +29 -0
  174. package/lib/_util/type.d.ts +9 -0
  175. package/lib/_util/type.js +27 -0
  176. package/lib/_util/warning.d.ts +6 -0
  177. package/lib/_util/warning.js +35 -0
  178. package/lib/index.d.ts +3 -0
  179. package/lib/index.js +9 -1
  180. package/lib/message/index.d.ts +5 -5
  181. package/package.json +1 -1
@@ -1,3 +1,7 @@
1
1
  import { FC } from 'react';
2
+ import type { ButtonProps } from 'antd';
3
+ export interface ILmButtonProps extends ButtonProps {
4
+ hover?: boolean;
5
+ }
2
6
  declare const LMButton: FC<any>;
3
7
  export default LMButton;
@@ -4,6 +4,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<{
4
4
  type?: string;
5
5
  height?: string;
6
6
  virtual?: boolean;
7
+ ellipsis?: boolean;
7
8
  components?: {};
8
9
  dataSource?: any[];
9
10
  cellConfig?: {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ /** order show */
3
+ declare const FilterSort: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
+ export default FilterSort;
@@ -7,6 +7,7 @@ export interface ICustomTableOptionProps {
7
7
  tooltip?: TooltipProps;
8
8
  filter?: Record<string, any>[];
9
9
  columns?: TableProps<any>['columns'];
10
+ card?: TableProps<any>['columns'];
10
11
  onSave?: (data: any) => void;
11
12
  }
12
13
  declare const LMCustomTableOption: React.FC<ICustomTableOptionProps>;
@@ -0,0 +1,2 @@
1
+ import type { ButtonProps } from 'antd';
2
+ export default function PickerButton(props: ButtonProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { ILMTagProps } from '../Tag';
2
+ export default function PickerTag(props: ILMTagProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,4 @@
1
+ import type { GenerateConfig } from 'rc-picker/lib/generate/index';
2
+ import type { RangePickerProps } from '.';
3
+ import type { PickerComponentClass } from './interface';
4
+ export default function generateRangePicker<DateType>(generateConfig: GenerateConfig<DateType>): PickerComponentClass<RangePickerProps<DateType>>;
@@ -0,0 +1,14 @@
1
+ import type { GenerateConfig } from 'rc-picker/lib/generate/index';
2
+ import type { PickerDateProps, PickerProps, PickerTimeProps } from '.';
3
+ import type { InputStatus } from '../../_util/statusUtils';
4
+ import type { PickerComponentClass } from './interface';
5
+ export default function generatePicker<DateType>(generateConfig: GenerateConfig<DateType>): {
6
+ DatePicker: PickerComponentClass<PickerProps<DateType> & {
7
+ status?: InputStatus;
8
+ }, unknown>;
9
+ WeekPicker: PickerComponentClass<Omit<PickerDateProps<DateType>, "picker">, unknown>;
10
+ MonthPicker: PickerComponentClass<Omit<PickerDateProps<DateType>, "picker">, unknown>;
11
+ YearPicker: PickerComponentClass<Omit<PickerDateProps<DateType>, "picker">, unknown>;
12
+ TimePicker: PickerComponentClass<Omit<PickerTimeProps<DateType>, "picker">, unknown>;
13
+ QuarterPicker: PickerComponentClass<Omit<PickerTimeProps<DateType>, "picker">, unknown>;
14
+ };
@@ -0,0 +1,106 @@
1
+ import type { GenerateConfig } from 'rc-picker/lib/generate/index';
2
+ import type { Locale as RcPickerLocale, PickerMode } from 'rc-picker/lib/interface';
3
+ import type { SharedTimeProps } from 'rc-picker/lib/panels/TimePanel';
4
+ import type { PickerBaseProps as RCPickerBaseProps, PickerDateProps as RCPickerDateProps, PickerTimeProps as RCPickerTimeProps } from 'rc-picker/lib/Picker';
5
+ import type { RangePickerBaseProps as RCRangePickerBaseProps, RangePickerDateProps as RCRangePickerDateProps, RangePickerTimeProps as RCRangePickerTimeProps } from 'rc-picker/lib/RangePicker';
6
+ import type { SizeType } from 'antd/es/config-provider/SizeContext';
7
+ import type { TimePickerLocale } from 'antd/es/time-picker';
8
+ import type { InputStatus } from '../../_util/statusUtils';
9
+ import PickerButton from '../PickerButton';
10
+ import PickerTag from '../PickerTag';
11
+ export declare const Components: {
12
+ button: typeof PickerButton;
13
+ rangeItem: typeof PickerTag;
14
+ };
15
+ export declare function getTimeProps<DateType, DisabledTime>(props: {
16
+ format?: string;
17
+ picker?: PickerMode;
18
+ } & Omit<SharedTimeProps<DateType>, 'disabledTime'> & {
19
+ disabledTime?: DisabledTime;
20
+ }): {
21
+ format?: string;
22
+ picker?: PickerMode;
23
+ showNow?: boolean;
24
+ showHour?: boolean;
25
+ showMinute?: boolean;
26
+ showSecond?: boolean;
27
+ use12Hours?: boolean;
28
+ hourStep?: number;
29
+ minuteStep?: number;
30
+ secondStep?: number;
31
+ hideDisabledOptions?: boolean;
32
+ defaultValue?: DateType;
33
+ disabledHours?: () => number[];
34
+ disabledMinutes?: (hour: number) => number[];
35
+ disabledSeconds?: (hour: number, minute: number) => number[];
36
+ disabledTime?: DisabledTime;
37
+ } | {
38
+ showTime: {
39
+ format?: string;
40
+ picker?: PickerMode;
41
+ showNow?: boolean;
42
+ showHour?: boolean;
43
+ showMinute?: boolean;
44
+ showSecond?: boolean;
45
+ use12Hours?: boolean;
46
+ hourStep?: number;
47
+ minuteStep?: number;
48
+ secondStep?: number;
49
+ hideDisabledOptions?: boolean;
50
+ defaultValue?: DateType;
51
+ disabledHours?: () => number[];
52
+ disabledMinutes?: (hour: number) => number[];
53
+ disabledSeconds?: (hour: number, minute: number) => number[];
54
+ disabledTime?: DisabledTime;
55
+ };
56
+ };
57
+ declare const DataPickerPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
58
+ declare type DataPickerPlacement = typeof DataPickerPlacements[number];
59
+ declare type InjectDefaultProps<Props> = Omit<Props, 'locale' | 'generateConfig' | 'hideHeader' | 'components'> & {
60
+ locale?: PickerLocale;
61
+ size?: SizeType;
62
+ placement?: DataPickerPlacement;
63
+ bordered?: boolean;
64
+ status?: InputStatus;
65
+ };
66
+ export declare type PickerLocale = {
67
+ lang: RcPickerLocale & AdditionalPickerLocaleLangProps;
68
+ timePickerLocale: TimePickerLocale;
69
+ } & AdditionalPickerLocaleProps;
70
+ export declare type AdditionalPickerLocaleProps = {
71
+ dateFormat?: string;
72
+ dateTimeFormat?: string;
73
+ weekFormat?: string;
74
+ monthFormat?: string;
75
+ };
76
+ export declare type AdditionalPickerLocaleLangProps = {
77
+ placeholder: string;
78
+ yearPlaceholder?: string;
79
+ quarterPlaceholder?: string;
80
+ monthPlaceholder?: string;
81
+ weekPlaceholder?: string;
82
+ rangeYearPlaceholder?: [string, string];
83
+ rangeQuarterPlaceholder?: [string, string];
84
+ rangeMonthPlaceholder?: [string, string];
85
+ rangeWeekPlaceholder?: [string, string];
86
+ rangePlaceholder?: [string, string];
87
+ };
88
+ export declare type PickerBaseProps<DateType> = InjectDefaultProps<RCPickerBaseProps<DateType>>;
89
+ export declare type PickerDateProps<DateType> = InjectDefaultProps<RCPickerDateProps<DateType>>;
90
+ export declare type PickerTimeProps<DateType> = InjectDefaultProps<RCPickerTimeProps<DateType>>;
91
+ export declare type PickerProps<DateType> = PickerBaseProps<DateType> | PickerDateProps<DateType> | PickerTimeProps<DateType>;
92
+ export declare type RangePickerBaseProps<DateType> = InjectDefaultProps<RCRangePickerBaseProps<DateType>>;
93
+ export declare type RangePickerDateProps<DateType> = InjectDefaultProps<RCRangePickerDateProps<DateType>>;
94
+ export declare type RangePickerTimeProps<DateType> = InjectDefaultProps<RCRangePickerTimeProps<DateType>>;
95
+ export declare type RangePickerProps<DateType> = RangePickerBaseProps<DateType> | RangePickerDateProps<DateType> | RangePickerTimeProps<DateType>;
96
+ declare function generatePicker<DateType>(generateConfig: GenerateConfig<DateType>): import("./interface").PickerComponentClass<PickerProps<DateType> & {
97
+ status?: "" | "warning" | "error";
98
+ }, unknown> & {
99
+ WeekPicker: import("./interface").PickerComponentClass<Omit<PickerDateProps<DateType>, "picker">, unknown>;
100
+ MonthPicker: import("./interface").PickerComponentClass<Omit<PickerDateProps<DateType>, "picker">, unknown>;
101
+ YearPicker: import("./interface").PickerComponentClass<Omit<PickerDateProps<DateType>, "picker">, unknown>;
102
+ RangePicker: import("./interface").PickerComponentClass<RangePickerProps<DateType>, unknown>;
103
+ TimePicker: import("./interface").PickerComponentClass<Omit<PickerTimeProps<DateType>, "picker">, unknown>;
104
+ QuarterPicker: import("./interface").PickerComponentClass<Omit<PickerTimeProps<DateType>, "picker">, unknown>;
105
+ };
106
+ export default generatePicker;
@@ -0,0 +1,12 @@
1
+ import type { Component, ComponentClass, ForwardedRef } from 'react';
2
+ import type { PickerProps, RangePickerProps } from '.';
3
+ export interface CommonPickerMethods {
4
+ focus: () => void;
5
+ blur: () => void;
6
+ }
7
+ export interface PickerComponentClass<P = {}, S = unknown> extends ComponentClass<P, S> {
8
+ new (...args: ConstructorParameters<ComponentClass<P, S>>): InstanceType<ComponentClass<P, S>> & CommonPickerMethods;
9
+ }
10
+ export declare type PickerRef<P> = ForwardedRef<Component<P> & CommonPickerMethods>;
11
+ export declare type DatePickRef<DateType> = PickerRef<PickerProps<DateType>>;
12
+ export declare type RangePickerRef<DateType> = PickerRef<RangePickerProps<DateType>>;
@@ -0,0 +1,17 @@
1
+ import type { Moment } from 'moment';
2
+ import type { PickerDateProps, PickerProps, RangePickerProps as BaseRangePickerProps } from './generatePicker';
3
+ export declare type DatePickerProps = PickerProps<Moment>;
4
+ export declare type MonthPickerProps = Omit<PickerDateProps<Moment>, 'picker'>;
5
+ export declare type WeekPickerProps = Omit<PickerDateProps<Moment>, 'picker'>;
6
+ export declare type RangePickerProps = BaseRangePickerProps<Moment>;
7
+ declare const DatePicker: import("./generatePicker/interface").PickerComponentClass<PickerProps<Moment> & {
8
+ status?: "" | "warning" | "error";
9
+ }, unknown> & {
10
+ WeekPicker: import("./generatePicker/interface").PickerComponentClass<Omit<PickerDateProps<Moment>, "picker">, unknown>;
11
+ MonthPicker: import("./generatePicker/interface").PickerComponentClass<Omit<PickerDateProps<Moment>, "picker">, unknown>;
12
+ YearPicker: import("./generatePicker/interface").PickerComponentClass<Omit<PickerDateProps<Moment>, "picker">, unknown>;
13
+ RangePicker: import("./generatePicker/interface").PickerComponentClass<BaseRangePickerProps<Moment>, unknown>;
14
+ TimePicker: import("./generatePicker/interface").PickerComponentClass<Omit<import("./generatePicker").PickerTimeProps<Moment>, "picker">, unknown>;
15
+ QuarterPicker: import("./generatePicker/interface").PickerComponentClass<Omit<import("./generatePicker").PickerTimeProps<Moment>, "picker">, unknown>;
16
+ };
17
+ export default DatePicker;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,14 @@
1
+ import type { PickerMode } from 'rc-picker/lib/interface';
2
+ import type { DirectionType } from 'antd/es/config-provider';
3
+ import type { SelectCommonPlacement } from '../_util/motion';
4
+ import type { PickerLocale } from './generatePicker';
5
+ export declare function getPlaceholder(picker: PickerMode | undefined, locale: PickerLocale, customizePlaceholder?: string): string;
6
+ export declare function getRangePlaceholder(picker: PickerMode | undefined, locale: PickerLocale, customizePlaceholder?: [string, string]): [string, string];
7
+ export declare function transPlacement2DropdownAlign(direction: DirectionType, placement?: SelectCommonPlacement): {
8
+ points: string[];
9
+ offset: number[];
10
+ overflow: {
11
+ adjustX: number;
12
+ adjustY: number;
13
+ };
14
+ };
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ declare const Empty: () => JSX.Element;
2
+ export default Empty;
@@ -1,7 +1,22 @@
1
- import React from 'react';
2
- import { Empty } from 'antd';
3
- export interface IEmptyProps {
1
+ import * as React from 'react';
2
+ export interface TransferLocale {
3
+ description: string;
4
+ }
5
+ export interface EmptyProps {
6
+ prefixCls?: string;
4
7
  className?: string;
5
8
  style?: React.CSSProperties;
9
+ /** @since 3.16.0 */
10
+ imageStyle?: React.CSSProperties;
11
+ image?: React.ReactNode;
12
+ description?: React.ReactNode;
13
+ children?: React.ReactNode;
14
+ title: string | React.ReactNode;
15
+ }
16
+ interface EmptyType extends React.FC<EmptyProps> {
17
+ PRESENTED_IMAGE_DEFAULT: React.ReactNode;
18
+ PRESENTED_IMAGE_SIMPLE: React.ReactNode;
19
+ AntdEmpty: React.ReactNode;
6
20
  }
21
+ declare const Empty: EmptyType;
7
22
  export default Empty;
@@ -0,0 +1,2 @@
1
+ declare const Simple: () => JSX.Element;
2
+ export default Simple;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface IContainerProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ responsive?: Boolean;
6
+ }
7
+ declare const LMContainer: React.FC<IContainerProps>;
8
+ export default LMContainer;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -3,6 +3,9 @@ import { Form as AntdForm, FormInstance, FormProps, List } from 'antd';
3
3
  import useFormInstance from 'antd/lib/form/hooks/useFormInstance';
4
4
  import { FormProvider } from 'antd/lib/form/context';
5
5
  import { useForm, useWatch } from 'antd/lib/form/Form';
6
+ export interface LmFormProps extends FormProps {
7
+ responsive?: Boolean;
8
+ }
6
9
  declare const Reform: <Values = any>(props: FormProps<Values> & {
7
10
  children?: React.ReactNode;
8
11
  } & {
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -1,2 +1,4 @@
1
1
  export default LmFilterCustom;
2
- declare function LmFilterCustom(e: any): JSX.Element;
2
+ declare function LmFilterCustom({ instance }: {
3
+ instance: any;
4
+ }): JSX.Element;
@@ -4,9 +4,12 @@ declare function CoreOptions({ state, dispatch, props }: {
4
4
  dispatch: any;
5
5
  props: any;
6
6
  }): {
7
- setFilterValue: (item: any, field: any) => void;
7
+ getState: () => any;
8
+ getBasicFilter: () => any;
8
9
  getFilterValue: ({ field, type }: {
9
10
  field: any;
10
11
  type: any;
11
12
  }) => any;
13
+ setFilterValue: (item: any, field: any) => void;
14
+ setLocalization: (localization?: any) => void;
12
15
  };
@@ -6,4 +6,4 @@ export function getRanges(): {
6
6
  近一月: string[];
7
7
  近一年: string[];
8
8
  };
9
- export function getFlat(arr: any): any[];
9
+ export function getFlatItem(filterValues: any, originArr: any, type?: string): any[];
@@ -0,0 +1,8 @@
1
+ import type { CSSMotionProps } from 'rc-motion';
2
+ declare const collapseMotion: CSSMotionProps;
3
+ declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
4
+ export declare type SelectCommonPlacement = typeof SelectPlacements[number];
5
+ declare const getTransitionDirection: (placement: SelectCommonPlacement | undefined) => "slide-down" | "slide-up";
6
+ declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
7
+ export { getTransitionName, getTransitionDirection };
8
+ export default collapseMotion;
@@ -0,0 +1,6 @@
1
+ import type { ValidateStatus } from 'antd/es/form/FormItem';
2
+ declare const InputStatuses: ["warning", "error", ""];
3
+ export declare type InputStatus = typeof InputStatuses[number];
4
+ export declare function getStatusClassNames(prefixCls: string, status?: ValidateStatus, hasFeedback?: boolean): string;
5
+ export declare const getMergedStatus: (contextStatus?: ValidateStatus, customStatus?: InputStatus) => "" | "warning" | "error" | "success" | "validating";
6
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const tuple: <T extends string[]>(...args: T) => T;
2
+ export declare const tupleNum: <T extends number[]>(...args: T) => T;
3
+ /**
4
+ * https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
5
+ * performing indexing
6
+ */
7
+ export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
8
+ /** https://github.com/Microsoft/TypeScript/issues/29729 */
9
+ export declare type LiteralUnion<T extends U, U> = T | (U & {});
@@ -0,0 +1,6 @@
1
+ import { resetWarned } from 'rc-util/lib/warning';
2
+ export { resetWarned };
3
+ export declare function noop(): void;
4
+ declare type Warning = (valid: boolean, component: string, message: string) => void;
5
+ declare let warning: Warning;
6
+ export default warning;
package/dist/index.d.ts CHANGED
@@ -35,6 +35,7 @@ export { default as Tree } from './Tree';
35
35
  export { default as UploadOss } from './UploadOss';
36
36
  export { default as VirtualList } from './VirtualList';
37
37
  export { default as Tag } from './Tag';
38
+ export type { ILMTagProps } from './Tag';
38
39
  export { default as message } from './message';
39
40
  export { default as Tabs } from './Tabs';
40
41
  export { default as Table } from './Table';
@@ -49,3 +50,5 @@ export { default as Spin } from './Spin';
49
50
  export { default as LmEditTable } from './LmEditTable';
50
51
  export { default as List } from './List';
51
52
  export { default as LMQuickMenu } from './QuickMenu';
53
+ export { default as DatePicker } from './DatePicker';
54
+ export type { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './DatePicker';