linkmore-design 1.0.57 → 1.0.60

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 (103) hide show
  1. package/dist/CardTable/LmCardTable.d.ts +1 -0
  2. package/dist/CardTable/fns/index.d.ts +1 -0
  3. package/dist/Empty/demos/custom.d.ts +2 -0
  4. package/dist/Empty/empty.d.ts +2 -0
  5. package/dist/Empty/index.d.ts +18 -3
  6. package/dist/Empty/simple.d.ts +2 -0
  7. package/dist/Form/container.d.ts +8 -0
  8. package/dist/Form/demos/error-tip.d.ts +2 -0
  9. package/dist/Form/demos/responsive.d.ts +2 -0
  10. package/dist/Form/index.d.ts +10 -2
  11. package/dist/LmEditTable/demos/sinleEdit.d.ts +2 -0
  12. package/dist/LmFilter/customFilter/index.d.ts +3 -1
  13. package/dist/LmFilter/filterFns/index.d.ts +4 -1
  14. package/dist/LmFilter/utils.d.ts +1 -1
  15. package/dist/index.umd.js +498 -208
  16. package/dist/index.umd.min.js +6 -6
  17. package/es/CardTable/LmCardTable.js +4 -1
  18. package/es/CardTable/body/TableBodyCell.js +10 -5
  19. package/es/CardTable/card/PictureTextRow.js +8 -3
  20. package/es/CardTable/fns/index.js +29 -2
  21. package/es/CardTable/style/index.css +8 -1
  22. package/es/CardTable/table/TableRoot.js +46 -13
  23. package/es/CustomTableOption/cardSort.js +0 -3
  24. package/es/CustomTableOption/columnsSort.js +2 -4
  25. package/es/CustomTableOption/filterSort.js +0 -3
  26. package/es/CustomTableOption/index.js +2 -2
  27. package/es/Dropdown/index.js +2 -2
  28. package/es/Dropdown/style/index.css +19 -1
  29. package/es/Empty/empty.d.ts +2 -0
  30. package/es/Empty/empty.js +55 -0
  31. package/es/Empty/index.d.ts +18 -3
  32. package/es/Empty/index.js +100 -1
  33. package/es/Empty/simple.d.ts +2 -0
  34. package/es/Empty/simple.js +36 -0
  35. package/es/Empty/style/index.css +44 -0
  36. package/es/Form/container.d.ts +8 -0
  37. package/es/Form/container.js +97 -0
  38. package/es/Form/index.d.ts +10 -2
  39. package/es/Form/index.js +30 -2
  40. package/es/Form/style/index.css +116 -0
  41. package/es/IconFont/index.js +1 -1
  42. package/es/LmEditTable/EditTable.js +47 -17
  43. package/es/LmFilter/Controls/index.js +32 -2
  44. package/es/LmFilter/LmFilter.js +1 -1
  45. package/es/LmFilter/baseFilter/index.js +2 -1
  46. package/es/LmFilter/complexFilter/drawer.js +33 -32
  47. package/es/LmFilter/components/CascaderFilter.js +35 -35
  48. package/es/LmFilter/components/CheckboxFilter.js +13 -21
  49. package/es/LmFilter/components/DateFilter.js +53 -29
  50. package/es/LmFilter/components/DropdownFIlter.js +51 -22
  51. package/es/LmFilter/components/SelectFilter.js +2 -3
  52. package/es/LmFilter/components/index.js +5 -61
  53. package/es/LmFilter/customFilter/index.js +3 -2
  54. package/es/LmFilter/filterFns/index.js +65 -25
  55. package/es/LmFilter/style/style.css +2 -1
  56. package/es/LmFilter/utils.js +63 -14
  57. package/es/LmFilter/wrapper/Filter.js +6 -3
  58. package/es/LmFilter/wrapper/FilterRoot.js +29 -22
  59. package/es/LmTable/Table.js +8 -6
  60. package/lib/CardTable/LmCardTable.js +4 -1
  61. package/lib/CardTable/body/TableBodyCell.js +10 -5
  62. package/lib/CardTable/card/PictureTextRow.js +8 -3
  63. package/lib/CardTable/fns/index.js +29 -2
  64. package/lib/CardTable/style/index.css +8 -1
  65. package/lib/CardTable/table/TableRoot.js +46 -13
  66. package/lib/CustomTableOption/cardSort.js +0 -3
  67. package/lib/CustomTableOption/columnsSort.js +2 -4
  68. package/lib/CustomTableOption/filterSort.js +0 -3
  69. package/lib/CustomTableOption/index.js +2 -2
  70. package/lib/Dropdown/index.js +2 -2
  71. package/lib/Dropdown/style/index.css +19 -1
  72. package/lib/Empty/empty.d.ts +2 -0
  73. package/lib/Empty/empty.js +66 -0
  74. package/lib/Empty/index.d.ts +18 -3
  75. package/lib/Empty/index.js +107 -1
  76. package/lib/Empty/simple.d.ts +2 -0
  77. package/lib/Empty/simple.js +47 -0
  78. package/lib/Empty/style/index.css +44 -0
  79. package/lib/Form/container.d.ts +8 -0
  80. package/lib/Form/container.js +112 -0
  81. package/lib/Form/index.d.ts +10 -2
  82. package/lib/Form/index.js +30 -2
  83. package/lib/Form/style/index.css +116 -0
  84. package/lib/IconFont/index.js +1 -1
  85. package/lib/LmEditTable/EditTable.js +47 -17
  86. package/lib/LmFilter/Controls/index.js +32 -2
  87. package/lib/LmFilter/LmFilter.js +1 -1
  88. package/lib/LmFilter/baseFilter/index.js +2 -1
  89. package/lib/LmFilter/complexFilter/drawer.js +33 -32
  90. package/lib/LmFilter/components/CascaderFilter.js +35 -35
  91. package/lib/LmFilter/components/CheckboxFilter.js +13 -21
  92. package/lib/LmFilter/components/DateFilter.js +53 -29
  93. package/lib/LmFilter/components/DropdownFIlter.js +51 -22
  94. package/lib/LmFilter/components/SelectFilter.js +2 -3
  95. package/lib/LmFilter/components/index.js +5 -61
  96. package/lib/LmFilter/customFilter/index.js +3 -2
  97. package/lib/LmFilter/filterFns/index.js +65 -25
  98. package/lib/LmFilter/style/style.css +2 -1
  99. package/lib/LmFilter/utils.js +63 -14
  100. package/lib/LmFilter/wrapper/Filter.js +6 -3
  101. package/lib/LmFilter/wrapper/FilterRoot.js +29 -22
  102. package/lib/LmTable/Table.js +8 -6
  103. package/package.json +1 -1
@@ -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?: {};
@@ -6,4 +6,5 @@ declare function CoreOptions({ state, dispatch, props }: {
6
6
  }): {
7
7
  setCheckboxKeys: (keys: any, checked: any, reset: any) => void;
8
8
  toggleCheckboxKey: (k: any, options?: {}) => void;
9
+ cellClick: (cell: any, index: any) => void;
9
10
  };
@@ -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;
@@ -0,0 +1,2 @@
1
+ declare const App: () => JSX.Element;
2
+ export default App;
@@ -1,19 +1,27 @@
1
1
  import React from 'react';
2
- import { Form as AntdForm, FormInstance, FormProps, List } from 'antd';
2
+ import { Form as AntdForm, FormInstance, FormProps, List, FormItemProps } 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
+ }
9
+ export interface LmFormItemProps extends FormItemProps {
10
+ useStatus: any;
11
+ errorPlacement?: string;
12
+ }
6
13
  declare const Reform: <Values = any>(props: FormProps<Values> & {
7
14
  children?: React.ReactNode;
8
15
  } & {
9
16
  ref?: React.Ref<FormInstance<Values>>;
10
17
  }) => React.ReactElement;
18
+ declare const LMFormItem: (props: LmFormItemProps) => JSX.Element;
11
19
  declare type InternalFormType = typeof Reform;
12
20
  interface FormInterface extends InternalFormType {
13
21
  useForm: typeof useForm;
14
22
  useFormInstance: typeof useFormInstance;
15
23
  useWatch: typeof useWatch;
16
- Item: typeof AntdForm.Item;
24
+ Item: typeof LMFormItem;
17
25
  List: typeof List;
18
26
  ErrorList: typeof AntdForm.ErrorList;
19
27
  Provider: typeof FormProvider;
@@ -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[];