linkmore-design 1.0.54 → 1.0.57

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 (235) hide show
  1. package/dist/Affix/demos/basic.d.ts +2 -0
  2. package/dist/Affix/index.d.ts +54 -0
  3. package/dist/Affix/style/index.d.ts +1 -0
  4. package/dist/Affix/utils.d.ts +15 -0
  5. package/dist/Button/index.d.ts +4 -0
  6. package/dist/CardTable/card/PictureTextRowOperate.d.ts +7 -0
  7. package/dist/CardTable/fns/index.d.ts +1 -5
  8. package/dist/CustomTableOption/cardSort.d.ts +4 -0
  9. package/dist/CustomTableOption/index.d.ts +1 -0
  10. package/dist/DatePicker/PickerButton.d.ts +2 -0
  11. package/dist/DatePicker/PickerTag.d.ts +2 -0
  12. package/dist/DatePicker/demos/basic.d.ts +2 -0
  13. package/dist/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  14. package/dist/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
  15. package/dist/DatePicker/generatePicker/index.d.ts +106 -0
  16. package/dist/DatePicker/generatePicker/interface.d.ts +12 -0
  17. package/dist/DatePicker/index.d.ts +17 -0
  18. package/dist/DatePicker/style/index.d.ts +1 -0
  19. package/dist/DatePicker/util.d.ts +14 -0
  20. package/dist/IconFont/index.d.ts +1 -1
  21. package/dist/LmEditTable/demos/basic copy.d.ts +2 -0
  22. package/dist/LmFilter/Controls/CheckboxTags.d.ts +6 -0
  23. package/dist/LmFilter/Controls/index.d.ts +2 -0
  24. package/dist/LmFilter/LmFilter.d.ts +4 -1
  25. package/dist/LmFilter/{components → baseFilter}/fuzzySearch.d.ts +0 -0
  26. package/dist/LmFilter/complexFilter/drawer.d.ts +4 -0
  27. package/dist/LmFilter/complexFilter/index.d.ts +3 -1
  28. package/dist/LmFilter/complexFilter/valueDrawer.d.ts +4 -0
  29. package/dist/LmFilter/localization.d.ts +8 -0
  30. package/dist/LmFilter/utils.d.ts +1 -0
  31. package/dist/QuickMenu/demos/basic.d.ts +2 -0
  32. package/dist/QuickMenu/index.d.ts +14 -0
  33. package/dist/QuickMenu/style/index.d.ts +1 -0
  34. package/dist/Switch/demos/table.d.ts +2 -0
  35. package/dist/Switch/index.d.ts +2 -1
  36. package/dist/Tag/demos/ExigencyTag.d.ts +2 -0
  37. package/dist/Tag/index.d.ts +4 -0
  38. package/dist/Upload/demos/picture-little.d.ts +3 -0
  39. package/dist/Upload/index.d.ts +5 -1
  40. package/dist/_util/domTarget.d.ts +7 -0
  41. package/dist/_util/motion.d.ts +8 -0
  42. package/dist/_util/statusUtils.d.ts +6 -0
  43. package/dist/_util/throttleByAnimationFrame.d.ts +8 -0
  44. package/dist/_util/type.d.ts +9 -0
  45. package/dist/_util/warning.d.ts +6 -0
  46. package/dist/index.d.ts +4 -0
  47. package/dist/index.umd.js +10843 -131
  48. package/dist/index.umd.min.js +6 -6
  49. package/es/Affix/index.d.ts +54 -0
  50. package/es/Affix/index.js +326 -0
  51. package/es/Affix/style/index.css +505 -0
  52. package/es/Affix/style/index.d.ts +1 -0
  53. package/es/Affix/style/index.js +1 -0
  54. package/es/Affix/utils.d.ts +15 -0
  55. package/es/Affix/utils.js +83 -0
  56. package/es/Button/index.d.ts +4 -0
  57. package/es/Button/index.js +1 -1
  58. package/es/CardTable/body/TableBodyCell.js +3 -0
  59. package/es/CardTable/card/PictureTextRow.js +13 -50
  60. package/es/CardTable/card/PictureTextRowOperate.js +130 -0
  61. package/es/CardTable/fns/index.js +6 -5
  62. package/es/CardTable/style/index.css +158 -10
  63. package/es/CustomTableOption/cardSort.d.ts +4 -0
  64. package/es/CustomTableOption/cardSort.js +222 -0
  65. package/es/CustomTableOption/index.d.ts +1 -0
  66. package/es/CustomTableOption/index.js +35 -11
  67. package/es/CustomTableOption/style/index.css +3 -0
  68. package/es/DatePicker/PickerButton.d.ts +2 -0
  69. package/es/DatePicker/PickerButton.js +8 -0
  70. package/es/DatePicker/PickerTag.d.ts +2 -0
  71. package/es/DatePicker/PickerTag.js +7 -0
  72. package/es/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  73. package/es/DatePicker/generatePicker/generateRangePicker.js +142 -0
  74. package/es/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
  75. package/es/DatePicker/generatePicker/generateSinglePicker.js +170 -0
  76. package/es/DatePicker/generatePicker/index.d.ts +106 -0
  77. package/es/DatePicker/generatePicker/index.js +84 -0
  78. package/es/DatePicker/generatePicker/interface.d.ts +12 -0
  79. package/es/DatePicker/generatePicker/interface.js +1 -0
  80. package/es/DatePicker/index.d.ts +17 -0
  81. package/es/DatePicker/index.js +7 -0
  82. package/es/DatePicker/style/index.css +505 -0
  83. package/es/DatePicker/style/index.d.ts +1 -0
  84. package/es/DatePicker/style/index.js +1 -0
  85. package/es/DatePicker/util.d.ts +14 -0
  86. package/es/DatePicker/util.js +111 -0
  87. package/es/Descriptions/style/index.css +10 -8
  88. package/es/IconFont/index.js +3 -2
  89. package/es/LmEditTable/DragHandle.js +1 -1
  90. package/es/LmEditTable/EditTable.js +27 -35
  91. package/es/LmFilter/Controls/CheckboxTags.js +53 -0
  92. package/es/LmFilter/Controls/index.js +47 -0
  93. package/es/LmFilter/LmFilter.js +17 -5
  94. package/es/LmFilter/baseFilter/fuzzySearch.js +53 -0
  95. package/es/LmFilter/baseFilter/index.js +1 -1
  96. package/es/LmFilter/clearFilter/index.js +3 -1
  97. package/es/LmFilter/complexFilter/drawer.js +376 -0
  98. package/es/LmFilter/complexFilter/index.js +50 -3
  99. package/es/LmFilter/complexFilter/valueDrawer.js +238 -0
  100. package/es/LmFilter/components/CascaderFilter.js +17 -41
  101. package/es/LmFilter/components/DateFilter.js +12 -20
  102. package/es/LmFilter/components/DropdownFIlter.js +79 -12
  103. package/es/LmFilter/components/index.js +56 -13
  104. package/es/LmFilter/filterFns/index.js +22 -3
  105. package/es/LmFilter/hooks/useDelayedFn.js +8 -6
  106. package/es/LmFilter/localization.d.ts +8 -0
  107. package/es/LmFilter/localization.js +12 -0
  108. package/es/LmFilter/style/style.css +27 -4
  109. package/es/LmFilter/utils.js +16 -0
  110. package/es/LmFilter/wrapper/FilterRoot.js +62 -6
  111. package/es/LmTable/Table.js +9 -4
  112. package/es/QuickMenu/index.d.ts +14 -0
  113. package/es/QuickMenu/index.js +171 -0
  114. package/es/QuickMenu/style/index.css +560 -0
  115. package/es/QuickMenu/style/index.d.ts +1 -0
  116. package/es/QuickMenu/style/index.js +1 -0
  117. package/es/Switch/index.d.ts +2 -1
  118. package/es/Switch/index.js +33 -1
  119. package/es/Switch/style/index.css +41 -0
  120. package/es/Tag/index.d.ts +4 -0
  121. package/es/Tag/index.js +48 -2
  122. package/es/Tag/style/index.css +4 -1
  123. package/es/Upload/index.d.ts +5 -1
  124. package/es/Upload/index.js +7 -2
  125. package/es/Upload/style/index.css +35 -0
  126. package/es/_util/domTarget.d.ts +7 -0
  127. package/es/_util/domTarget.js +20 -0
  128. package/es/_util/motion.d.ts +8 -0
  129. package/es/_util/motion.js +60 -0
  130. package/es/_util/statusUtils.d.ts +6 -0
  131. package/es/_util/statusUtils.js +12 -0
  132. package/es/_util/throttleByAnimationFrame.d.ts +8 -0
  133. package/es/_util/throttleByAnimationFrame.js +58 -0
  134. package/es/_util/type.d.ts +9 -0
  135. package/es/_util/type.js +15 -0
  136. package/es/_util/warning.d.ts +6 -0
  137. package/es/_util/warning.js +17 -0
  138. package/es/index.d.ts +4 -0
  139. package/es/index.js +3 -1
  140. package/es/message/index.d.ts +5 -5
  141. package/lib/Affix/index.d.ts +54 -0
  142. package/lib/Affix/index.js +349 -0
  143. package/lib/Affix/style/index.css +505 -0
  144. package/lib/Affix/style/index.d.ts +1 -0
  145. package/lib/Affix/style/index.js +3 -0
  146. package/lib/Affix/utils.d.ts +15 -0
  147. package/lib/Affix/utils.js +104 -0
  148. package/lib/Button/index.d.ts +4 -0
  149. package/lib/Button/index.js +1 -1
  150. package/lib/CardTable/body/TableBodyCell.js +3 -0
  151. package/lib/CardTable/card/PictureTextRow.js +13 -50
  152. package/lib/CardTable/card/PictureTextRowOperate.js +130 -0
  153. package/lib/CardTable/fns/index.js +6 -5
  154. package/lib/CardTable/style/index.css +158 -10
  155. package/lib/CustomTableOption/cardSort.d.ts +4 -0
  156. package/lib/CustomTableOption/cardSort.js +242 -0
  157. package/lib/CustomTableOption/index.d.ts +1 -0
  158. package/lib/CustomTableOption/index.js +36 -11
  159. package/lib/CustomTableOption/style/index.css +3 -0
  160. package/lib/DatePicker/PickerButton.d.ts +2 -0
  161. package/lib/DatePicker/PickerButton.js +19 -0
  162. package/lib/DatePicker/PickerTag.d.ts +2 -0
  163. package/lib/DatePicker/PickerTag.js +18 -0
  164. package/lib/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  165. package/lib/DatePicker/generatePicker/generateRangePicker.js +168 -0
  166. package/lib/DatePicker/generatePicker/generateSinglePicker.d.ts +14 -0
  167. package/lib/DatePicker/generatePicker/generateSinglePicker.js +196 -0
  168. package/lib/DatePicker/generatePicker/index.d.ts +106 -0
  169. package/lib/DatePicker/generatePicker/index.js +102 -0
  170. package/lib/DatePicker/generatePicker/interface.d.ts +12 -0
  171. package/lib/DatePicker/generatePicker/interface.js +5 -0
  172. package/lib/DatePicker/index.d.ts +17 -0
  173. package/lib/DatePicker/index.js +21 -0
  174. package/lib/DatePicker/style/index.css +505 -0
  175. package/lib/DatePicker/style/index.d.ts +1 -0
  176. package/lib/DatePicker/style/index.js +3 -0
  177. package/lib/DatePicker/util.d.ts +14 -0
  178. package/lib/DatePicker/util.js +122 -0
  179. package/lib/Descriptions/style/index.css +10 -8
  180. package/lib/IconFont/index.js +3 -2
  181. package/lib/LmEditTable/DragHandle.js +1 -1
  182. package/lib/LmEditTable/EditTable.js +26 -36
  183. package/lib/LmFilter/Controls/CheckboxTags.js +53 -0
  184. package/lib/LmFilter/Controls/index.js +47 -0
  185. package/lib/LmFilter/LmFilter.js +17 -5
  186. package/lib/LmFilter/baseFilter/fuzzySearch.js +53 -0
  187. package/lib/LmFilter/baseFilter/index.js +1 -1
  188. package/lib/LmFilter/clearFilter/index.js +3 -1
  189. package/lib/LmFilter/complexFilter/drawer.js +376 -0
  190. package/lib/LmFilter/complexFilter/index.js +50 -3
  191. package/lib/LmFilter/complexFilter/valueDrawer.js +238 -0
  192. package/lib/LmFilter/components/CascaderFilter.js +17 -41
  193. package/lib/LmFilter/components/DateFilter.js +12 -20
  194. package/lib/LmFilter/components/DropdownFIlter.js +79 -12
  195. package/lib/LmFilter/components/index.js +56 -13
  196. package/lib/LmFilter/filterFns/index.js +22 -3
  197. package/lib/LmFilter/hooks/useDelayedFn.js +8 -6
  198. package/lib/LmFilter/localization.d.ts +8 -0
  199. package/lib/LmFilter/localization.js +19 -0
  200. package/lib/LmFilter/style/style.css +27 -4
  201. package/lib/LmFilter/utils.js +16 -0
  202. package/lib/LmFilter/wrapper/FilterRoot.js +62 -6
  203. package/lib/LmTable/Table.js +9 -4
  204. package/lib/QuickMenu/index.d.ts +14 -0
  205. package/lib/QuickMenu/index.js +189 -0
  206. package/lib/QuickMenu/style/index.css +560 -0
  207. package/lib/QuickMenu/style/index.d.ts +1 -0
  208. package/lib/QuickMenu/style/index.js +3 -0
  209. package/lib/Switch/index.d.ts +2 -1
  210. package/lib/Switch/index.js +34 -1
  211. package/lib/Switch/style/index.css +41 -0
  212. package/lib/Tag/index.d.ts +4 -0
  213. package/lib/Tag/index.js +48 -1
  214. package/lib/Tag/style/index.css +4 -1
  215. package/lib/Upload/index.d.ts +5 -1
  216. package/lib/Upload/index.js +8 -2
  217. package/lib/Upload/style/index.css +35 -0
  218. package/lib/_util/domTarget.d.ts +7 -0
  219. package/lib/_util/domTarget.js +31 -0
  220. package/lib/_util/motion.d.ts +8 -0
  221. package/lib/_util/motion.js +71 -0
  222. package/lib/_util/statusUtils.d.ts +6 -0
  223. package/lib/_util/statusUtils.js +29 -0
  224. package/lib/_util/throttleByAnimationFrame.d.ts +8 -0
  225. package/lib/_util/throttleByAnimationFrame.js +72 -0
  226. package/lib/_util/type.d.ts +9 -0
  227. package/lib/_util/type.js +27 -0
  228. package/lib/_util/warning.d.ts +6 -0
  229. package/lib/_util/warning.js +35 -0
  230. package/lib/index.d.ts +4 -0
  231. package/lib/index.js +17 -1
  232. package/lib/message/index.d.ts +5 -5
  233. package/package.json +5 -2
  234. package/es/LmFilter/components/fuzzySearch.js +0 -37
  235. package/lib/LmFilter/components/fuzzySearch.js +0 -37
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+ import type { ConfigConsumerProps } from 'antd/es/config-provider';
3
+ export interface AffixProps {
4
+ /** 距离窗口顶部达到指定偏移量后触发 */
5
+ offsetTop?: number;
6
+ /** 距离窗口底部达到指定偏移量后触发 */
7
+ offsetBottom?: number;
8
+ style?: React.CSSProperties;
9
+ /** 固定状态改变时触发的回调函数 */
10
+ onChange?: (affixed?: boolean) => void;
11
+ /** 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 */
12
+ target?: () => Window | HTMLElement | null;
13
+ prefixCls?: string;
14
+ className?: string;
15
+ children: React.ReactNode;
16
+ }
17
+ interface InternalAffixProps extends AffixProps {
18
+ affixPrefixCls: string;
19
+ }
20
+ declare enum AffixStatus {
21
+ None = 0,
22
+ Prepare = 1
23
+ }
24
+ export interface AffixState {
25
+ affixStyle?: React.CSSProperties;
26
+ placeholderStyle?: React.CSSProperties;
27
+ status: AffixStatus;
28
+ lastAffix: boolean;
29
+ prevTarget: Window | HTMLElement | null;
30
+ }
31
+ declare class Affix extends React.Component<InternalAffixProps, AffixState> {
32
+ static contextType: React.Context<ConfigConsumerProps>;
33
+ state: AffixState;
34
+ placeholderNode: HTMLDivElement;
35
+ fixedNode: HTMLDivElement;
36
+ private timeout;
37
+ context: ConfigConsumerProps;
38
+ private getTargetFunc;
39
+ componentDidMount(): void;
40
+ componentDidUpdate(prevProps: AffixProps): void;
41
+ componentWillUnmount(): void;
42
+ getOffsetTop: () => number;
43
+ getOffsetBottom: () => number;
44
+ savePlaceholderNode: (node: HTMLDivElement) => void;
45
+ saveFixedNode: (node: HTMLDivElement) => void;
46
+ measure: () => void;
47
+ prepareMeasure: () => void;
48
+ updatePosition(): void;
49
+ lazyUpdatePosition(): void;
50
+ render(): JSX.Element;
51
+ }
52
+ export declare type InternalAffixClass = Affix;
53
+ declare const AffixFC: React.ForwardRefExoticComponent<AffixProps & React.RefAttributes<Affix>>;
54
+ export default AffixFC;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,15 @@
1
+ export declare type BindElement = HTMLElement | Window | null | undefined;
2
+ export declare function getTargetRect(target: BindElement): DOMRect;
3
+ export declare function getFixedTop(placeholderReact: DOMRect, targetRect: DOMRect, offsetTop?: number): number;
4
+ export declare function getFixedBottom(placeholderReact: DOMRect, targetRect: DOMRect, offsetBottom?: number): number;
5
+ interface ObserverEntity {
6
+ target: HTMLElement | Window;
7
+ affixList: any[];
8
+ eventHandlers: {
9
+ [eventName: string]: any;
10
+ };
11
+ }
12
+ export declare function getObserverEntities(): ObserverEntity[];
13
+ export declare function addObserveTarget<T>(target: HTMLElement | Window | null, affix: T): void;
14
+ export declare function removeObserveTarget<T>(affix: T): void;
15
+ export {};
@@ -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;
@@ -0,0 +1,7 @@
1
+ export default PictureTextRowOperate;
2
+ declare function PictureTextRowOperate({ index, cell, table, checked }: {
3
+ index: any;
4
+ cell: any;
5
+ table: any;
6
+ checked: any;
7
+ }): JSX.Element;
@@ -5,9 +5,5 @@ declare function CoreOptions({ state, dispatch, props }: {
5
5
  props: any;
6
6
  }): {
7
7
  setCheckboxKeys: (keys: any, checked: any, reset: any) => void;
8
- toggleCheckboxKey: (k: any, { trigger, cell, cellIndex }: {
9
- trigger?: string;
10
- cell: any;
11
- cellIndex: any;
12
- }) => void;
8
+ toggleCheckboxKey: (k: any, options?: {}) => void;
13
9
  };
@@ -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
+ };
@@ -1,2 +1,2 @@
1
1
  export default IconFont;
2
- declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont.js").IconFontProps<string>>;
2
+ declare const IconFont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export default CheckboxTags;
2
+ declare function CheckboxTags({ value, onChange, options }: {
3
+ value: any;
4
+ onChange: any;
5
+ options: any;
6
+ }): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default Controls;
2
+ declare function Controls(props: any): any;
@@ -1,3 +1,6 @@
1
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
1
+ declare const _default: React.ForwardRefExoticComponent<Pick<{
2
+ [x: string]: any;
3
+ localization?: {};
4
+ }, string | number> & React.RefAttributes<any>>;
2
5
  export default _default;
3
6
  import React from "react";
@@ -0,0 +1,4 @@
1
+ export default ComplexDrawer;
2
+ declare function ComplexDrawer({ instance }: {
3
+ instance: any;
4
+ }): JSX.Element;
@@ -1,2 +1,4 @@
1
1
  export default LmFilterComplex;
2
- declare function LmFilterComplex(e: any): JSX.Element;
2
+ declare function LmFilterComplex({ instance }: {
3
+ instance: any;
4
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default ValueDrawer;
2
+ declare function ValueDrawer({ instance }: {
3
+ instance: any;
4
+ }): JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const DefaultLocalization: {
2
+ globalQuery: {
3
+ filter: any[];
4
+ };
5
+ filterQuery: {
6
+ filter: any[];
7
+ };
8
+ };
@@ -6,3 +6,4 @@ export function getRanges(): {
6
6
  近一月: string[];
7
7
  近一年: string[];
8
8
  };
9
+ export function getFlat(arr: any): any[];
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface IMenuData {
3
+ menuId: string;
4
+ title: string | React.ReactNode;
5
+ }
6
+ export interface IQuickMenuProps {
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ top?: number;
10
+ menuData: IMenuData[];
11
+ warpElement: any;
12
+ }
13
+ declare const LMQuickMenu: React.FC<IQuickMenuProps>;
14
+ export default LMQuickMenu;
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -1,2 +1,3 @@
1
- import { Switch } from 'antd';
1
+ import { FC } from 'react';
2
+ declare const Switch: FC<any>;
2
3
  export default Switch;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -1,9 +1,13 @@
1
1
  import React from 'react';
2
2
  import { Tag, TagProps } from 'antd';
3
+ import type { CheckableTagProps } from 'antd/es/tag/CheckableTag';
3
4
  export interface ILMTagProps extends TagProps {
4
5
  className?: string;
5
6
  noborder?: boolean;
6
7
  }
8
+ export interface ILMTagCheckProps extends CheckableTagProps {
9
+ color?: string;
10
+ }
7
11
  interface LmTagInterface extends React.ForwardRefExoticComponent<ILMTagProps & React.RefAttributes<unknown>> {
8
12
  CheckableTag?: typeof Tag.CheckableTag;
9
13
  }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -5,5 +5,9 @@ import type { RcFile as AntdRcFile } from 'antd/es/upload';
5
5
  export declare type UploadProps = AntdUploadProps;
6
6
  export declare type UploadFile = AntdUploadFile;
7
7
  export declare type RcFile = AntdRcFile;
8
- declare const LMUpload: React.FC<UploadProps>;
8
+ export interface LMUploadProps extends UploadProps {
9
+ className?: string;
10
+ sizeType?: string;
11
+ }
12
+ declare const LMUpload: React.FC<LMUploadProps>;
9
13
  export default LMUpload;
@@ -0,0 +1,7 @@
1
+ import type { MutableRefObject } from 'react';
2
+ export declare const isFunction: (value: unknown) => value is Function;
3
+ declare type TargetValue<T> = T | undefined | null;
4
+ declare type TargetType = HTMLElement | Element | Window | Document;
5
+ export declare type BasicTarget<T extends TargetType = Element> = (() => TargetValue<T>) | TargetValue<T> | MutableRefObject<TargetValue<T>>;
6
+ export declare function getTargetElement<T extends TargetType>(target: BasicTarget<T>, defaultElement?: T): T;
7
+ export {};
@@ -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,8 @@
1
+ export declare function throttleByAnimationFrame<T extends unknown[]>(fn: (...args: T) => void): {
2
+ (...args: T): void;
3
+ cancel: () => void;
4
+ };
5
+ export declare function throttleByAnimationFrameDecorator(): (target: any, key: string, descriptor: any) => {
6
+ configurable: boolean;
7
+ get(): any;
8
+ };
@@ -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';
@@ -48,3 +49,6 @@ export { default as Form } from './Form';
48
49
  export { default as Spin } from './Spin';
49
50
  export { default as LmEditTable } from './LmEditTable';
50
51
  export { default as List } from './List';
52
+ export { default as LMQuickMenu } from './QuickMenu';
53
+ export { default as DatePicker } from './DatePicker';
54
+ export type { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './DatePicker';