linkmore-design 1.1.25 → 1.1.27-alpha.0

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 (109) hide show
  1. package/dist/LmEditTable/DndContainer.d.ts +6 -3
  2. package/dist/LmEditTable/EditTable.d.ts +10 -5
  3. package/dist/LmEditTable/components/DraggableContainer.d.ts +10 -0
  4. package/dist/LmEditTable/components/QuickOpetate.d.ts +12 -0
  5. package/dist/LmEditTable/components/bottomOpetateComponent.d.ts +13 -0
  6. package/dist/LmEditTable/components/index.d.ts +16 -0
  7. package/dist/LmEditTable/hooks/useForkRef.d.ts +2 -0
  8. package/dist/LmEditTable/rowSort/DndContainerRow.d.ts +10 -0
  9. package/dist/LmEditTable/sortableItem.d.ts +3 -2
  10. package/dist/LmEditTable/util.d.ts +7 -0
  11. package/dist/LmEditTable/virtual/VirtualRow.d.ts +7 -0
  12. package/dist/LmEditTable/virtual/VirtualRowBack.d.ts +6 -0
  13. package/dist/LmEditTable/virtual/VirtualTable.d.ts +3 -0
  14. package/dist/LmEditTable/virtual/VirtualWrapper.d.ts +3 -0
  15. package/dist/LmEditTable/virtual/context.d.ts +13 -0
  16. package/dist/LmEditTable/virtual/index.d.ts +4 -0
  17. package/dist/index.d.ts +1 -2
  18. package/dist/index.umd.js +1173 -537
  19. package/dist/index.umd.min.js +8 -8
  20. package/dist/variables.css +65 -0
  21. package/es/Input/index.js +27 -2
  22. package/es/InputNumber/index.js +7 -9
  23. package/es/LmEditTable/DndContainer.d.ts +6 -3
  24. package/es/LmEditTable/DndContainer.js +70 -10
  25. package/es/LmEditTable/DragHandle.js +1 -1
  26. package/es/LmEditTable/EditTable.d.ts +10 -5
  27. package/es/LmEditTable/EditTable.js +352 -360
  28. package/es/LmEditTable/components/DraggableContainer.d.ts +10 -0
  29. package/es/LmEditTable/components/DraggableContainer.js +39 -0
  30. package/es/LmEditTable/components/QuickOpetate.d.ts +12 -0
  31. package/es/LmEditTable/components/QuickOpetate.js +82 -0
  32. package/es/LmEditTable/components/bottomOpetateComponent.d.ts +13 -0
  33. package/es/LmEditTable/components/bottomOpetateComponent.js +23 -0
  34. package/es/LmEditTable/components/index.d.ts +16 -0
  35. package/es/LmEditTable/components/index.js +7 -0
  36. package/es/LmEditTable/hooks/useForkRef.d.ts +2 -0
  37. package/es/LmEditTable/hooks/useForkRef.js +22 -0
  38. package/es/LmEditTable/rowSort/DndContainerRow.d.ts +10 -0
  39. package/es/LmEditTable/rowSort/DndContainerRow.js +81 -0
  40. package/es/LmEditTable/sortableItem.d.ts +3 -2
  41. package/es/LmEditTable/sortableItem.js +16 -4
  42. package/es/LmEditTable/sortableItemCol.js +40 -10
  43. package/es/LmEditTable/style/index.css +65 -0
  44. package/es/LmEditTable/style/variables.css +65 -0
  45. package/es/LmEditTable/util.d.ts +7 -0
  46. package/es/LmEditTable/util.js +92 -7
  47. package/es/LmEditTable/virtual/VirtualRow.d.ts +7 -0
  48. package/es/LmEditTable/virtual/VirtualRow.js +62 -0
  49. package/es/LmEditTable/virtual/VirtualRowBack.d.ts +6 -0
  50. package/es/LmEditTable/virtual/VirtualRowBack.js +100 -0
  51. package/es/LmEditTable/virtual/VirtualTable.d.ts +3 -0
  52. package/es/LmEditTable/virtual/VirtualTable.js +54 -0
  53. package/es/LmEditTable/virtual/VirtualWrapper.d.ts +3 -0
  54. package/es/LmEditTable/virtual/VirtualWrapper.js +60 -0
  55. package/es/LmEditTable/virtual/context.d.ts +13 -0
  56. package/es/LmEditTable/virtual/context.js +54 -0
  57. package/es/LmEditTable/virtual/index.d.ts +4 -0
  58. package/es/LmEditTable/virtual/index.js +4 -0
  59. package/es/LmFilter/filterFns/index.js +7 -2
  60. package/es/LmTable/virTual/VirtualRow.js +12 -14
  61. package/es/LmUpload/LmUpload.js +4 -2
  62. package/es/hooks/useEvent/index.js +1 -1
  63. package/es/index.d.ts +1 -2
  64. package/es/styles/variables.css +65 -0
  65. package/lib/Input/index.js +29 -2
  66. package/lib/InputNumber/index.js +9 -9
  67. package/lib/LmEditTable/DndContainer.d.ts +6 -3
  68. package/lib/LmEditTable/DndContainer.js +74 -9
  69. package/lib/LmEditTable/DragHandle.js +1 -1
  70. package/lib/LmEditTable/EditTable.d.ts +10 -5
  71. package/lib/LmEditTable/EditTable.js +349 -357
  72. package/lib/LmEditTable/components/DraggableContainer.d.ts +10 -0
  73. package/lib/LmEditTable/components/DraggableContainer.js +52 -0
  74. package/lib/LmEditTable/components/QuickOpetate.d.ts +12 -0
  75. package/lib/LmEditTable/components/QuickOpetate.js +96 -0
  76. package/lib/LmEditTable/components/bottomOpetateComponent.d.ts +13 -0
  77. package/lib/LmEditTable/components/bottomOpetateComponent.js +34 -0
  78. package/lib/LmEditTable/components/index.d.ts +16 -0
  79. package/lib/LmEditTable/components/index.js +37 -0
  80. package/lib/LmEditTable/hooks/useForkRef.d.ts +2 -0
  81. package/lib/LmEditTable/hooks/useForkRef.js +29 -0
  82. package/lib/LmEditTable/rowSort/DndContainerRow.d.ts +10 -0
  83. package/lib/LmEditTable/rowSort/DndContainerRow.js +99 -0
  84. package/lib/LmEditTable/sortableItem.d.ts +3 -2
  85. package/lib/LmEditTable/sortableItem.js +19 -5
  86. package/lib/LmEditTable/sortableItemCol.js +37 -8
  87. package/lib/LmEditTable/style/index.css +65 -0
  88. package/lib/LmEditTable/style/variables.css +65 -0
  89. package/lib/LmEditTable/util.d.ts +7 -0
  90. package/lib/LmEditTable/util.js +97 -6
  91. package/lib/LmEditTable/virtual/VirtualRow.d.ts +7 -0
  92. package/lib/LmEditTable/virtual/VirtualRow.js +78 -0
  93. package/lib/LmEditTable/virtual/VirtualRowBack.d.ts +6 -0
  94. package/lib/LmEditTable/virtual/VirtualRowBack.js +113 -0
  95. package/lib/LmEditTable/virtual/VirtualTable.d.ts +3 -0
  96. package/lib/LmEditTable/virtual/VirtualTable.js +71 -0
  97. package/lib/LmEditTable/virtual/VirtualWrapper.d.ts +3 -0
  98. package/lib/LmEditTable/virtual/VirtualWrapper.js +73 -0
  99. package/lib/LmEditTable/virtual/context.d.ts +13 -0
  100. package/lib/LmEditTable/virtual/context.js +64 -0
  101. package/lib/LmEditTable/virtual/index.d.ts +4 -0
  102. package/lib/LmEditTable/virtual/index.js +31 -0
  103. package/lib/LmFilter/filterFns/index.js +7 -2
  104. package/lib/LmTable/virTual/VirtualRow.js +12 -14
  105. package/lib/LmUpload/LmUpload.js +7 -2
  106. package/lib/hooks/useEvent/index.js +1 -1
  107. package/lib/index.d.ts +1 -2
  108. package/lib/styles/variables.css +65 -0
  109. package/package.json +11 -9
@@ -1,5 +1,8 @@
1
- declare const DndContainer: ({ children, move }: {
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ children, move, options, rowKey }: {
2
3
  children: any;
3
4
  move: any;
4
- }) => JSX.Element;
5
- export default DndContainer;
5
+ options: any;
6
+ rowKey: any;
7
+ }) => JSX.Element>;
8
+ export default _default;
@@ -5,6 +5,7 @@ interface ILmEditTable extends TableProps<any> {
5
5
  isEdit?: boolean;
6
6
  isAdd?: boolean;
7
7
  rowKey?: string;
8
+ disabled?: boolean;
8
9
  rowHoverEdit?: boolean;
9
10
  isUseForm?: boolean;
10
11
  isHoverEdit?: boolean;
@@ -13,6 +14,7 @@ interface ILmEditTable extends TableProps<any> {
13
14
  sortOpen?: boolean;
14
15
  size?: TableProps<any>['size'];
15
16
  colSortOpen?: boolean;
17
+ indexCol?: boolean | Record<string, any>;
16
18
  filterChange?: (data: TableProps<any>['columns']) => void;
17
19
  recordCreatorProps?: {
18
20
  creatorButtonText?: string;
@@ -31,7 +33,8 @@ export interface CountdownHandle {
31
33
  getCheckboxRecords: () => any[];
32
34
  clearSelect: () => void;
33
35
  customSetCheckboxRecords: (data: any[]) => void;
34
- valid: () => void;
36
+ deleteRowData: (record: string | Record<string, any>) => void;
37
+ addRowData: (record: string | Record<string, any>, defaultValue?: Record<string, any> | Record<string, any>[], addInChild?: boolean | 'replace') => void;
35
38
  }
36
39
  interface ILmColumns extends TableColumnType<any> {
37
40
  editable?: 'input' | 'number' | 'inputRange' | 'date' | 'select' | 'multiple' | 'checkbox' | 'radio' | 'switch' | 'upload' | 'operate' | 'lm_edit_opetate' | 'render';
@@ -43,12 +46,14 @@ interface ILmColumns extends TableColumnType<any> {
43
46
  componentProps?: Record<string, any>;
44
47
  relevanceCols?: boolean;
45
48
  }
46
- export declare type TLmEditTable = ILmEditTable & {
49
+ export declare type TLmEditTable = {
47
50
  onChange?: (data: any[]) => void;
48
51
  columns: ILmColumns[];
49
- };
50
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ILmEditTable & {
52
+ virtual?: boolean;
53
+ } & ILmEditTable;
54
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
51
55
  onChange?: (data: any[]) => void;
52
56
  columns: ILmColumns[];
53
- } & React.RefAttributes<CountdownHandle>>>;
57
+ virtual?: boolean;
58
+ } & ILmEditTable & React.RefAttributes<CountdownHandle>>>;
54
59
  export default _default;
@@ -0,0 +1,10 @@
1
+ declare const DraggableContainer: ({ keys, onSortEnd, virtual, rowKey, options, tableWidth, ...props }: {
2
+ [x: string]: any;
3
+ keys: any;
4
+ onSortEnd: any;
5
+ virtual: any;
6
+ rowKey: any;
7
+ options: any;
8
+ tableWidth: any;
9
+ }) => JSX.Element;
10
+ export default DraggableContainer;
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ interface IOpetateProps {
3
+ record: Record<string, any>;
4
+ rowKey?: string;
5
+ handleAdd?: (row?: any, addInChildren?: boolean) => void;
6
+ handleDelete?: (rowKey?: string) => void;
7
+ options?: string[];
8
+ getLength?: number;
9
+ quickOpetateClearAll?: boolean;
10
+ }
11
+ declare const QuickOpetate: FC<IOpetateProps>;
12
+ export default QuickOpetate;
@@ -0,0 +1,13 @@
1
+ interface IBottomOpetateCompoentProps {
2
+ isShowAddAction?: boolean;
3
+ handleAdd?: () => void;
4
+ recordCreatorProps?: {
5
+ creatorButtonText?: string;
6
+ style?: Record<string, any>;
7
+ initData?: Record<string, any> | (() => Record<string, any>);
8
+ customAddClick?: () => void;
9
+ };
10
+ disabled?: boolean;
11
+ }
12
+ declare const BottomOpetateComponent: (props: IBottomOpetateCompoentProps) => JSX.Element;
13
+ export default BottomOpetateComponent;
@@ -0,0 +1,16 @@
1
+ import DraggableContainer from './DraggableContainer';
2
+ import BottomOpetateComponent from './bottomOpetateComponent';
3
+ import QuickOpetate from './QuickOpetate';
4
+ export { DraggableContainer, BottomOpetateComponent, QuickOpetate };
5
+ declare const _default: {
6
+ DraggableContainer: ({ keys, onSortEnd, virtual, rowKey, options, tableWidth, ...props }: {
7
+ [x: string]: any;
8
+ keys: any;
9
+ onSortEnd: any;
10
+ virtual: any;
11
+ rowKey: any;
12
+ options: any;
13
+ tableWidth: any;
14
+ }) => JSX.Element;
15
+ };
16
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { Ref } from 'react';
2
+ export default function useForkRef<InstanceA, InstanceB>(refA: Ref<InstanceA> | null | undefined, refB: Ref<InstanceB> | null | undefined): Ref<InstanceA & InstanceB> | null;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ children, options, move, rowKey, items, tableWidth }: {
3
+ children: any;
4
+ options: any;
5
+ move: any;
6
+ rowKey: any;
7
+ items: any;
8
+ tableWidth: any;
9
+ }) => JSX.Element>;
10
+ export default _default;
@@ -1,2 +1,3 @@
1
- declare const SortableItem: (props: any) => JSX.Element;
2
- export default SortableItem;
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -2,6 +2,13 @@ export declare function isObjEmpty(obj: Record<string, any>): boolean;
2
2
  export declare function deepDataSourcePreKeys(dataSource: any[], rowKey: string): any;
3
3
  export declare function isExpandRow(children: any): boolean;
4
4
  export declare function checkRowKeyByDataSource(dataSource: any, rowKey: any): any;
5
+ export declare function getExpandStatus(children: any): any;
6
+ export declare function checkMemoShouldUploadSpecialFun(prev: any, next: any): any;
7
+ export declare function checkExpandIconColumnIndex({ rowSelection, sortOpen, indexCol }: {
8
+ rowSelection: any;
9
+ sortOpen: any;
10
+ indexCol: any;
11
+ }): number;
5
12
  declare const _default: {
6
13
  isObjEmpty: typeof isObjEmpty;
7
14
  };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface rowProps {
3
+ children?: any;
4
+ pref?: any;
5
+ }
6
+ declare const VirtualRow: React.NamedExoticComponent<rowProps>;
7
+ export default VirtualRow;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface rowProps {
3
+ children?: any;
4
+ }
5
+ declare const VirtualRow: React.NamedExoticComponent<rowProps>;
6
+ export default VirtualRow;
@@ -0,0 +1,3 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ declare const VirtualTable: React.MemoExoticComponent<(tableProps: PropsWithChildren<any>) => JSX.Element>;
3
+ export default VirtualTable;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const VirtualWrapper: React.MemoExoticComponent<(wrapperProps: React.PropsWithChildren<any>) => JSX.Element>;
3
+ export default VirtualWrapper;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare const TableContext: import("react").Context<{
3
+ state: any;
4
+ dispatch: any;
5
+ instance: any;
6
+ }>;
7
+ declare const useStore: () => {
8
+ state: any;
9
+ dispatch: any;
10
+ instance: any;
11
+ };
12
+ declare const useRealive: () => [any, import("react").Dispatch<any>];
13
+ export { TableContext, useStore, useRealive };
@@ -0,0 +1,4 @@
1
+ import VirtualTable from './VirtualTable';
2
+ import VirtualWrapper from './VirtualWrapper';
3
+ import VirtualRow from './VirtualRow';
4
+ export { VirtualTable, VirtualWrapper, VirtualRow };
package/dist/index.d.ts CHANGED
@@ -51,10 +51,9 @@ export type { TooltipProps } from './Tooltip';
51
51
  export { default as Form } from './Form';
52
52
  export { default as Spin } from './Spin';
53
53
  export { default as LmEditTable } from './LmEditTable';
54
- export type { CountdownHandle, TLmEditTable } from './LmEditTable/EditTable';
54
+ export type { TLmEditTable, CountdownHandle } from './LmEditTable/EditTable';
55
55
  export { default as List } from './List';
56
56
  export { default as LMQuickMenu } from './QuickMenu';
57
- export type { IMenuData, IQuickMenuProps } from './QuickMenu';
58
57
  export { default as DatePicker } from './DatePicker';
59
58
  export type { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './DatePicker';
60
59
  export { default as Popover } from './Popover';