@elliemae/ds-data-table 3.53.1-rc.0 → 3.54.0-next.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.
- package/dist/cjs/DataTable.js +1 -1
- package/dist/cjs/DataTable.js.map +2 -2
- package/dist/cjs/addons/Editables/index.js +1 -1
- package/dist/cjs/addons/Editables/index.js.map +2 -2
- package/dist/cjs/addons/Filters/Components/SelectFilter/SingleSelectFilter.js +2 -2
- package/dist/cjs/addons/Filters/Components/SelectFilter/SingleSelectFilter.js.map +2 -2
- package/dist/cjs/configs/useAutocalculated/index.js +5 -2
- package/dist/cjs/configs/useAutocalculated/index.js.map +2 -2
- package/dist/cjs/configs/useFreezeVirtualScrollOnDrag.js +54 -0
- package/dist/cjs/configs/useFreezeVirtualScrollOnDrag.js.map +7 -0
- package/dist/cjs/configs/useInternalStateConfig.js +7 -2
- package/dist/cjs/configs/useInternalStateConfig.js.map +2 -2
- package/dist/cjs/configs/useNativeResizeObserver.js +1 -1
- package/dist/cjs/configs/useNativeResizeObserver.js.map +2 -2
- package/dist/cjs/configs/useStore/useStore.js +2 -1
- package/dist/cjs/configs/useStore/useStore.js.map +2 -2
- package/dist/cjs/parts/EmptyContent.js +27 -32
- package/dist/cjs/parts/EmptyContent.js.map +2 -2
- package/dist/cjs/parts/Headers/HeaderCellTitle.js +3 -7
- package/dist/cjs/parts/Headers/HeaderCellTitle.js.map +2 -2
- package/dist/cjs/parts/HoC/withConditionalDnDColumnContext.js +6 -2
- package/dist/cjs/parts/HoC/withConditionalDnDColumnContext.js.map +2 -2
- package/dist/cjs/parts/HoC/withConditionalDnDRowContext.js +1 -1
- package/dist/cjs/parts/HoC/withConditionalDnDRowContext.js.map +2 -2
- package/dist/cjs/parts/HoC/withDnDSortableColumnContext.js +8 -0
- package/dist/cjs/parts/HoC/withDnDSortableColumnContext.js.map +2 -2
- package/dist/cjs/parts/SkeletonTable.js +4 -1
- package/dist/cjs/parts/SkeletonTable.js.map +2 -2
- package/dist/cjs/parts/SortableHeaderCell.js +3 -7
- package/dist/cjs/parts/SortableHeaderCell.js.map +2 -2
- package/dist/cjs/parts/VirtualRowsList.js +15 -1
- package/dist/cjs/parts/VirtualRowsList.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +1 -1
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/styled.js +5 -5
- package/dist/cjs/styled.js.map +2 -2
- package/dist/esm/DataTable.js +1 -1
- package/dist/esm/DataTable.js.map +2 -2
- package/dist/esm/addons/Editables/index.js +1 -1
- package/dist/esm/addons/Editables/index.js.map +2 -2
- package/dist/esm/addons/Filters/Components/SelectFilter/SingleSelectFilter.js +2 -2
- package/dist/esm/addons/Filters/Components/SelectFilter/SingleSelectFilter.js.map +2 -2
- package/dist/esm/configs/useAutocalculated/index.js +5 -2
- package/dist/esm/configs/useAutocalculated/index.js.map +2 -2
- package/dist/esm/configs/useFreezeVirtualScrollOnDrag.js +24 -0
- package/dist/esm/configs/useFreezeVirtualScrollOnDrag.js.map +7 -0
- package/dist/esm/configs/useInternalStateConfig.js +7 -2
- package/dist/esm/configs/useInternalStateConfig.js.map +2 -2
- package/dist/esm/configs/useNativeResizeObserver.js +1 -1
- package/dist/esm/configs/useNativeResizeObserver.js.map +2 -2
- package/dist/esm/configs/useStore/useStore.js +2 -1
- package/dist/esm/configs/useStore/useStore.js.map +2 -2
- package/dist/esm/parts/EmptyContent.js +28 -33
- package/dist/esm/parts/EmptyContent.js.map +2 -2
- package/dist/esm/parts/Headers/HeaderCellTitle.js +3 -7
- package/dist/esm/parts/Headers/HeaderCellTitle.js.map +2 -2
- package/dist/esm/parts/HoC/withConditionalDnDColumnContext.js +8 -4
- package/dist/esm/parts/HoC/withConditionalDnDColumnContext.js.map +2 -2
- package/dist/esm/parts/HoC/withConditionalDnDRowContext.js +1 -1
- package/dist/esm/parts/HoC/withConditionalDnDRowContext.js.map +2 -2
- package/dist/esm/parts/HoC/withDnDSortableColumnContext.js +10 -2
- package/dist/esm/parts/HoC/withDnDSortableColumnContext.js.map +2 -2
- package/dist/esm/parts/SkeletonTable.js +4 -1
- package/dist/esm/parts/SkeletonTable.js.map +2 -2
- package/dist/esm/parts/SortableHeaderCell.js +3 -7
- package/dist/esm/parts/SortableHeaderCell.js.map +2 -2
- package/dist/esm/parts/VirtualRowsList.js +15 -1
- package/dist/esm/parts/VirtualRowsList.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +1 -1
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/styled.js +5 -5
- package/dist/esm/styled.js.map +2 -2
- package/dist/types/DataTable.d.ts +0 -1
- package/dist/types/addons/Filters/Components/SelectFilter/SingleSelectFilter.d.ts +1 -1
- package/dist/types/configs/useFreezeVirtualScrollOnDrag.d.ts +2 -0
- package/dist/types/configs/useInternalStateConfig.d.ts +2 -1
- package/dist/types/configs/useStore/createInternalAndPropsContext.d.ts +1 -2
- package/dist/types/configs/useStore/useStore.d.ts +1 -2
- package/dist/types/exported-related/Filters/currencyRangeFilterFn.d.ts +1 -4
- package/dist/types/exported-related/Filters/dateSwitcherFilterFn.d.ts +1 -5
- package/dist/types/exported-related/Filters/multiSelectFilterFn.d.ts +1 -4
- package/dist/types/exported-related/Filters/numberRangeFilterFn.d.ts +1 -4
- package/dist/types/exported-related/Filters/singleDateFilterFn.d.ts +1 -1
- package/dist/types/exported-related/Filters/singleSelectFilterFn.d.ts +1 -4
- package/dist/types/exported-related/RowRenderer/useRowRendererHandlers.d.ts +1 -1
- package/dist/types/helpers/getIdFromUniqueRowAccessor.d.ts +1 -1
- package/dist/types/parts/FilterBar/styled.d.ts +0 -1
- package/dist/types/parts/Headers/useHeaderCellHandlers.d.ts +0 -1
- package/dist/types/parts/HoC/DnDGroupContext.d.ts +0 -1
- package/dist/types/parts/HoC/DnDTreeContext.d.ts +0 -1
- package/dist/types/parts/HoC/SortableItemContext.d.ts +0 -1
- package/dist/types/parts/Loader.d.ts +0 -1
- package/dist/types/parts/MainContent.d.ts +0 -1
- package/dist/types/parts/Row.d.ts +2 -2
- package/dist/types/parts/RowVariants/types.d.ts +0 -1
- package/dist/types/parts/SortableHeaderCell.d.ts +0 -1
- package/dist/types/react-desc-prop-types.d.ts +6 -1
- package/dist/types/styled.d.ts +14 -15
- package/package.json +30 -29
- package/dist/cjs/tests/utils/index.js +0 -131
- package/dist/cjs/tests/utils/index.js.map +0 -7
- package/dist/esm/tests/utils/index.js +0 -101
- package/dist/esm/tests/utils/index.js.map +0 -7
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import type { DSDataTableT } from '../../react-desc-prop-types.js';
|
|
2
|
-
export declare const isFilterValueValidForDateSwitcher: (value: unknown) => value is
|
|
3
|
-
startDate: string;
|
|
4
|
-
endDate: string;
|
|
5
|
-
isDateRange: boolean;
|
|
6
|
-
};
|
|
2
|
+
export declare const isFilterValueValidForDateSwitcher: (value: unknown) => value is Parameters<DSDataTableT.FilterFnOutOfTheBoxDateSwitcher>[2];
|
|
7
3
|
export declare const dateSwitcherFilterFn: DSDataTableT.FilterFnOutOfTheBoxDateSwitcher;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { DSDataTableT } from '../../react-desc-prop-types.js';
|
|
2
|
-
export declare const isFilterValueValidForMultiSelect: (value: unknown) => value is
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}[];
|
|
2
|
+
export declare const isFilterValueValidForMultiSelect: (value: unknown) => value is Parameters<DSDataTableT.FilterFnOutOfTheBoxMultiSelect>[2];
|
|
6
3
|
export declare const multiSelectFilterFn: DSDataTableT.FilterFnOutOfTheBoxMultiSelect;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { DSDataTableT } from '../../react-desc-prop-types.js';
|
|
2
|
-
export declare const isFilterValueValidForNumberRange: (value: unknown) => value is
|
|
3
|
-
from?: number | undefined;
|
|
4
|
-
to?: number | undefined;
|
|
5
|
-
};
|
|
2
|
+
export declare const isFilterValueValidForNumberRange: (value: unknown) => value is Parameters<DSDataTableT.FilterFnOutOfTheBoxNumberRange>[2];
|
|
6
3
|
export declare const numberRangeFilterFn: DSDataTableT.FilterFnOutOfTheBoxNumberRange;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DSDataTableT } from '../../react-desc-prop-types.js';
|
|
2
|
-
export declare const isValidFilterValueForSingleDate: (value: unknown) => value is
|
|
2
|
+
export declare const isValidFilterValueForSingleDate: (value: unknown) => value is Parameters<DSDataTableT.FilterFnOutOfTheBoxSingleDate>[2];
|
|
3
3
|
export declare const singleDateFilterFn: DSDataTableT.FilterFnOutOfTheBoxSingleDate;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { DSDataTableT } from '../../react-desc-prop-types.js';
|
|
2
|
-
export declare const isValueValidForSingleSelect: (value: unknown) => value is
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
2
|
+
export declare const isValueValidForSingleSelect: (value: unknown) => value is Parameters<DSDataTableT.FilterFnOutOfTheBoxSingleSelect>[2];
|
|
6
3
|
export declare const singleSelectFilterFn: DSDataTableT.FilterFnOutOfTheBoxSingleSelect;
|
|
@@ -5,7 +5,7 @@ export declare const useRowRendererHandlers: ({ row, itemIndex, items, draggable
|
|
|
5
5
|
row: DSDataTableT.InternalRow;
|
|
6
6
|
itemIndex: number;
|
|
7
7
|
items: DSDataTableT.InternalRow[];
|
|
8
|
-
draggableProps: SortableItemContextType[
|
|
8
|
+
draggableProps: SortableItemContextType["draggableProps"];
|
|
9
9
|
isDragOverlay: boolean;
|
|
10
10
|
drilldownRowId: string | null;
|
|
11
11
|
}) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { DSDataTableT } from '../react-desc-prop-types.js';
|
|
2
|
-
export declare const getIdFromUniqueRowAccessor: (uniqueRowAccessor: DSDataTableT.UniqueRowAccessorType, row: Pick<DSDataTableT.InternalRow,
|
|
2
|
+
export declare const getIdFromUniqueRowAccessor: (uniqueRowAccessor: DSDataTableT.UniqueRowAccessorType, row: Pick<DSDataTableT.InternalRow, "id" | "original">) => string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const StyledWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
@@ -8,8 +8,8 @@ export declare const Row: React.ComponentType<{
|
|
|
8
8
|
}>;
|
|
9
9
|
declare const RowWithContext: (props: {
|
|
10
10
|
row: DSDataTableT.InternalRow;
|
|
11
|
-
measureRef?: (
|
|
12
|
-
itemWrapperStyle?: React.CSSProperties
|
|
11
|
+
measureRef?: (el: HTMLElement | null) => void;
|
|
12
|
+
itemWrapperStyle?: React.CSSProperties;
|
|
13
13
|
isDragOverlay: boolean;
|
|
14
14
|
}) => import("react/jsx-runtime.js").JSX.Element;
|
|
15
15
|
export { RowWithContext };
|
|
@@ -16,6 +16,7 @@ export declare namespace DSDataTableT {
|
|
|
16
16
|
focusedRowId: string | null;
|
|
17
17
|
isShiftPressed: boolean;
|
|
18
18
|
reduxHeaders: Record<string, ReduxHeader>;
|
|
19
|
+
isHeaderCellDragging: boolean;
|
|
19
20
|
};
|
|
20
21
|
export type UseAutoCalculatedT = {
|
|
21
22
|
/**
|
|
@@ -38,6 +39,8 @@ export declare namespace DSDataTableT {
|
|
|
38
39
|
};
|
|
39
40
|
paginationHelpers: Pagination;
|
|
40
41
|
lastSelected: React.MutableRefObject<number>;
|
|
42
|
+
bodyClientWidth: number | string;
|
|
43
|
+
setBodyClientWidth: React.Dispatch<React.SetStateAction<number | string>>;
|
|
41
44
|
};
|
|
42
45
|
export type Selectors = Record<string, never>;
|
|
43
46
|
export type Reducers = {
|
|
@@ -285,6 +288,8 @@ export declare namespace DSDataTableT {
|
|
|
285
288
|
isShiftPressed: boolean;
|
|
286
289
|
setIsShiftPressed: React.Dispatch<React.SetStateAction<boolean>>;
|
|
287
290
|
lastSelected: React.MutableRefObject<number>;
|
|
291
|
+
isHeaderCellDragging: boolean;
|
|
292
|
+
setIsHeaderCellDragging: React.Dispatch<React.SetStateAction<boolean>>;
|
|
288
293
|
}
|
|
289
294
|
export interface DefaultProps {
|
|
290
295
|
height: string;
|
|
@@ -373,7 +378,7 @@ export declare namespace DSDataTableT {
|
|
|
373
378
|
}>;
|
|
374
379
|
noResultsSecondaryMessage?: string;
|
|
375
380
|
noResultsButtonLabel?: string;
|
|
376
|
-
noResultsPlaceholder?:
|
|
381
|
+
noResultsPlaceholder?: React.ReactElement;
|
|
377
382
|
onNoResultsButtonClick?: TypescriptHelpersT.GenericFunc;
|
|
378
383
|
onTableResize?: TypescriptHelpersT.GenericFunc;
|
|
379
384
|
Pagination?: React.ComponentType<Record<string, never>>;
|
package/dist/types/styled.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Theme } from '@elliemae/ds-system';
|
|
3
2
|
import type { DSDataTableT } from './react-desc-prop-types.js';
|
|
4
3
|
interface WidthAndHeight {
|
|
@@ -6,7 +5,7 @@ interface WidthAndHeight {
|
|
|
6
5
|
height?: string | number;
|
|
7
6
|
}
|
|
8
7
|
export declare const StyledFocusWithin: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
|
|
9
|
-
hideFocus?: boolean
|
|
8
|
+
hideFocus?: boolean;
|
|
10
9
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
11
10
|
export declare const StyledDataTableWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, WidthAndHeight & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
12
11
|
export declare const StyledDataTableContentWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
|
|
@@ -15,7 +14,7 @@ export declare const StyledDataTableContentWrapper: import("styled-components").
|
|
|
15
14
|
export declare const StyledTableWrapper: import("styled-components").StyledComponent<"div", Theme, WidthAndHeight & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
16
15
|
export declare const StyledPaginationWrapper: import("styled-components").StyledComponent<"div", Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
17
16
|
export declare const StyledTableContentWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
|
|
18
|
-
height?: string | number
|
|
17
|
+
height?: string | number;
|
|
19
18
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
20
19
|
export declare const StyledVirtualListWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
|
|
21
20
|
gridLayout: string[];
|
|
@@ -29,9 +28,9 @@ export declare const StyledHeadTr: import("styled-components").StyledComponent<i
|
|
|
29
28
|
colsLayoutStyle: DSDataTableT.ColsLayoutStyleValues;
|
|
30
29
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
31
30
|
export declare const StyledHeadTh: import("styled-components").StyledComponent<"div", Theme, {
|
|
32
|
-
isDraggingActive?: boolean
|
|
31
|
+
isDraggingActive?: boolean;
|
|
33
32
|
column: DSDataTableT.InternalColumn;
|
|
34
|
-
shouldShowDnD?: boolean
|
|
33
|
+
shouldShowDnD?: boolean;
|
|
35
34
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
36
35
|
export declare const StyledHeaderRightIconsWrapper: import("styled-components").StyledComponent<"div", Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
37
36
|
export declare const StyledResizer: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-form-input-text").DSInputTextT.Props>, Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ComponentType<import("@elliemae/ds-form-input-text").DSInputTextT.Props>>, never>;
|
|
@@ -43,7 +42,7 @@ export declare const StyledCell: import("styled-components").StyledComponent<"di
|
|
|
43
42
|
export declare const StyledCellContent: import("styled-components").StyledComponent<"div", Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
44
43
|
export declare const StyledPencilIcon: import("styled-components").StyledComponent<(rest: import("@elliemae/ds-icons").SvgIconT.Props) => import("react/jsx-runtime.js").JSX.Element, Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<(rest: import("@elliemae/ds-icons").SvgIconT.Props) => import("react/jsx-runtime.js").JSX.Element>, never>;
|
|
45
44
|
export declare const StyledEditableContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
|
|
46
|
-
shouldDisplayEditIcon?: boolean
|
|
45
|
+
shouldDisplayEditIcon?: boolean;
|
|
47
46
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
48
47
|
export declare const StyledFullsizeGrid: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
|
|
49
48
|
minHeight: string;
|
|
@@ -53,15 +52,15 @@ export declare const GroupHeaderContainer: import("styled-components").StyledCom
|
|
|
53
52
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
54
53
|
export declare const GroupHeaderTitle: import("styled-components").StyledComponent<"span", Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
|
|
55
54
|
export declare const StyledCellContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, Theme, {
|
|
56
|
-
backgroundColor?: string
|
|
57
|
-
isDragOverlay?: boolean
|
|
58
|
-
isDragging?: boolean
|
|
59
|
-
isDisabled?: boolean
|
|
60
|
-
isDropValid?: boolean
|
|
61
|
-
shouldDisplayHover?: boolean
|
|
62
|
-
isDropIndicatorPositionInside?: boolean
|
|
63
|
-
minHeight?: string
|
|
64
|
-
gridTemplateColumns?: string
|
|
55
|
+
backgroundColor?: string;
|
|
56
|
+
isDragOverlay?: boolean;
|
|
57
|
+
isDragging?: boolean;
|
|
58
|
+
isDisabled?: boolean;
|
|
59
|
+
isDropValid?: boolean;
|
|
60
|
+
shouldDisplayHover?: boolean;
|
|
61
|
+
isDropIndicatorPositionInside?: boolean;
|
|
62
|
+
minHeight?: string;
|
|
63
|
+
gridTemplateColumns?: string;
|
|
65
64
|
} & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
66
65
|
export declare const ScreenReaderOnly: import("styled-components").StyledComponent<"div", Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
67
66
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-data-table",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.54.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Data Table",
|
|
6
6
|
"files": [
|
|
@@ -39,39 +39,40 @@
|
|
|
39
39
|
"react-virtual": "~2.10.4",
|
|
40
40
|
"uid": "~2.0.1",
|
|
41
41
|
"use-onclickoutside": "0.4.1",
|
|
42
|
-
"@elliemae/ds-button": "3.
|
|
43
|
-
"@elliemae/ds-button-v2": "3.
|
|
44
|
-
"@elliemae/ds-
|
|
45
|
-
"@elliemae/ds-
|
|
46
|
-
"@elliemae/ds-
|
|
47
|
-
"@elliemae/ds-
|
|
48
|
-
"@elliemae/ds-
|
|
49
|
-
"@elliemae/ds-form-
|
|
50
|
-
"@elliemae/ds-form-date-
|
|
51
|
-
"@elliemae/ds-form-date-
|
|
52
|
-
"@elliemae/ds-form-helpers-mask-hooks": "3.
|
|
53
|
-
"@elliemae/ds-form-input-text": "3.
|
|
54
|
-
"@elliemae/ds-form-layout-blocks": "3.
|
|
55
|
-
"@elliemae/ds-form-radio": "3.
|
|
56
|
-
"@elliemae/ds-grid": "3.
|
|
57
|
-
"@elliemae/ds-
|
|
58
|
-
"@elliemae/ds-
|
|
59
|
-
"@elliemae/ds-
|
|
60
|
-
"@elliemae/ds-
|
|
61
|
-
"@elliemae/ds-
|
|
62
|
-
"@elliemae/ds-system": "3.
|
|
63
|
-
"@elliemae/ds-
|
|
64
|
-
"@elliemae/ds-
|
|
65
|
-
"@elliemae/ds-
|
|
66
|
-
"@elliemae/ds-
|
|
42
|
+
"@elliemae/ds-button": "3.54.0-next.2",
|
|
43
|
+
"@elliemae/ds-button-v2": "3.54.0-next.2",
|
|
44
|
+
"@elliemae/ds-circular-progress-indicator": "3.54.0-next.2",
|
|
45
|
+
"@elliemae/ds-drag-and-drop": "3.54.0-next.2",
|
|
46
|
+
"@elliemae/ds-dropdownmenu": "3.54.0-next.2",
|
|
47
|
+
"@elliemae/ds-dropdownmenu-v2": "3.54.0-next.2",
|
|
48
|
+
"@elliemae/ds-form-checkbox": "3.54.0-next.2",
|
|
49
|
+
"@elliemae/ds-form-combobox": "3.54.0-next.2",
|
|
50
|
+
"@elliemae/ds-form-date-range-picker": "3.54.0-next.2",
|
|
51
|
+
"@elliemae/ds-form-date-time-picker": "3.54.0-next.2",
|
|
52
|
+
"@elliemae/ds-form-helpers-mask-hooks": "3.54.0-next.2",
|
|
53
|
+
"@elliemae/ds-form-input-text": "3.54.0-next.2",
|
|
54
|
+
"@elliemae/ds-form-layout-blocks": "3.54.0-next.2",
|
|
55
|
+
"@elliemae/ds-form-radio": "3.54.0-next.2",
|
|
56
|
+
"@elliemae/ds-grid": "3.54.0-next.2",
|
|
57
|
+
"@elliemae/ds-pagination": "3.54.0-next.2",
|
|
58
|
+
"@elliemae/ds-pills-v2": "3.54.0-next.2",
|
|
59
|
+
"@elliemae/ds-icons": "3.54.0-next.2",
|
|
60
|
+
"@elliemae/ds-popperjs": "3.54.0-next.2",
|
|
61
|
+
"@elliemae/ds-props-helpers": "3.54.0-next.2",
|
|
62
|
+
"@elliemae/ds-system": "3.54.0-next.2",
|
|
63
|
+
"@elliemae/ds-zustand-helpers": "3.54.0-next.2",
|
|
64
|
+
"@elliemae/ds-skeleton": "3.54.0-next.2",
|
|
65
|
+
"@elliemae/ds-truncated-tooltip-text": "3.54.0-next.2",
|
|
66
|
+
"@elliemae/ds-typescript-helpers": "3.54.0-next.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@elliemae/pui-cli": "9.0.0-next.
|
|
69
|
+
"@elliemae/pui-cli": "9.0.0-next.65",
|
|
70
70
|
"jest": "~29.7.0",
|
|
71
71
|
"styled-components": "~5.3.9",
|
|
72
72
|
"styled-system": "^5.1.5",
|
|
73
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
74
|
-
"@elliemae/ds-
|
|
73
|
+
"@elliemae/ds-monorepo-devops": "3.54.0-next.2",
|
|
74
|
+
"@elliemae/ds-test-utils": "3.54.0-next.2",
|
|
75
|
+
"@elliemae/ds-toolbar-v2": "3.54.0-next.2"
|
|
75
76
|
},
|
|
76
77
|
"peerDependencies": {
|
|
77
78
|
"lodash-es": "^4.17.21",
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var utils_exports = {};
|
|
30
|
-
__export(utils_exports, {
|
|
31
|
-
genColumns: () => genColumns,
|
|
32
|
-
genExpandableRows: () => genExpandableRows,
|
|
33
|
-
genGroupedRows: () => genGroupedRows,
|
|
34
|
-
genMasterDetailRows: () => genMasterDetailRows,
|
|
35
|
-
genRows: () => genRows,
|
|
36
|
-
genRowsFixId: () => genRowsFixId
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(utils_exports);
|
|
39
|
-
var React = __toESM(require("react"));
|
|
40
|
-
var import_uid = require("uid");
|
|
41
|
-
const genColumns = (canSort = false) => [
|
|
42
|
-
{
|
|
43
|
-
Header: "id",
|
|
44
|
-
accessor: "id",
|
|
45
|
-
canSort
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
Header: "Name",
|
|
49
|
-
accessor: "name",
|
|
50
|
-
canSort
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
Header: "Position",
|
|
54
|
-
accessor: "position",
|
|
55
|
-
canSort
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
Header: "Country",
|
|
59
|
-
accessor: "country",
|
|
60
|
-
canSort
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
Header: "Salary",
|
|
64
|
-
accessor: "salary"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
Header: "Single date",
|
|
68
|
-
accessor: "singleDate"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
Header: "Date range",
|
|
72
|
-
accessor: "dateRange"
|
|
73
|
-
}
|
|
74
|
-
];
|
|
75
|
-
const generateRecord = (id) => ({
|
|
76
|
-
id: id + 1,
|
|
77
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
78
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
79
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
80
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
81
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
82
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
83
|
-
uid: (0, import_uid.uid)(16)
|
|
84
|
-
});
|
|
85
|
-
const generateRecordWithOneChild = (id, level = 0) => {
|
|
86
|
-
const record = {
|
|
87
|
-
id: id + 1,
|
|
88
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
89
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
90
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
91
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
92
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
93
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
94
|
-
myUniqueRowAccessor: (0, import_uid.uid)(16)
|
|
95
|
-
};
|
|
96
|
-
if (level === 0) record.subRows = [generateRecordWithOneChild(0, level + 1)];
|
|
97
|
-
return record;
|
|
98
|
-
};
|
|
99
|
-
const generateMasterDetailRecord = (id) => ({
|
|
100
|
-
id: id + 1,
|
|
101
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
102
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
103
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
104
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
105
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
106
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
107
|
-
myUniqueRowAccessor: (0, import_uid.uid)(16),
|
|
108
|
-
tableRowDetails: () => "Custom JSX"
|
|
109
|
-
});
|
|
110
|
-
const generateGroupedRecord = (id) => ({
|
|
111
|
-
dimsumHeaderValue: id,
|
|
112
|
-
row_variant_type: "ds_header_group_row",
|
|
113
|
-
subRows: [generateRecord(0)],
|
|
114
|
-
uid: (0, import_uid.uid)(16)
|
|
115
|
-
});
|
|
116
|
-
const generateRecordFixId = (id) => ({
|
|
117
|
-
id: id + 1,
|
|
118
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
119
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
120
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
121
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
122
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
123
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
124
|
-
uid: `${id + 1}-fix-id`
|
|
125
|
-
});
|
|
126
|
-
const genRowsFixId = (n) => new Array(n).fill({}).map((_, id) => generateRecordFixId(id));
|
|
127
|
-
const genRows = (n) => new Array(n).fill({}).map((_, id) => generateRecord(id));
|
|
128
|
-
const genExpandableRows = (n) => new Array(n).fill({}).map((_, id) => generateRecordWithOneChild(id));
|
|
129
|
-
const genMasterDetailRows = (n) => new Array(n).fill({}).map((_, id) => generateMasterDetailRecord(id));
|
|
130
|
-
const genGroupedRows = (n) => new Array(n).fill({}).map((_, id) => generateGroupedRecord(id));
|
|
131
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/tests/utils/index.js", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { uid } from 'uid';\n\nexport const genColumns = (canSort = false) => [\n {\n Header: 'id',\n accessor: 'id',\n canSort,\n },\n {\n Header: 'Name',\n accessor: 'name',\n canSort,\n },\n {\n Header: 'Position',\n accessor: 'position',\n canSort,\n },\n {\n Header: 'Country',\n accessor: 'country',\n canSort,\n },\n {\n Header: 'Salary',\n accessor: 'salary',\n },\n {\n Header: 'Single date',\n accessor: 'singleDate',\n },\n {\n Header: 'Date range',\n accessor: 'dateRange',\n },\n];\n\nconst generateRecord = (id) => ({\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n uid: uid(16),\n});\n\nconst generateRecordWithOneChild = (id, level = 0) => {\n const record = {\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n myUniqueRowAccessor: uid(16),\n };\n if (level === 0) record.subRows = [generateRecordWithOneChild(0, level + 1)];\n return record;\n};\n\nconst generateMasterDetailRecord = (id) => ({\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n myUniqueRowAccessor: uid(16),\n tableRowDetails: () => 'Custom JSX',\n});\n\nconst generateGroupedRecord = (id) => ({\n dimsumHeaderValue: id,\n row_variant_type: 'ds_header_group_row',\n subRows: [generateRecord(0)],\n uid: uid(16),\n});\n\nconst generateRecordFixId = (id) => ({\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n uid: `${id + 1}-fix-id`,\n});\n\nexport const genRowsFixId = (n) => new Array(n).fill({}).map((_, id) => generateRecordFixId(id));\nexport const genRows = (n) => new Array(n).fill({}).map((_, id) => generateRecord(id));\nexport const genExpandableRows = (n) => new Array(n).fill({}).map((_, id) => generateRecordWithOneChild(id));\nexport const genMasterDetailRows = (n) => new Array(n).fill({}).map((_, id) => generateMasterDetailRecord(id));\nexport const genGroupedRows = (n) => new Array(n).fill({}).map((_, id) => generateGroupedRecord(id));\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,iBAAoB;AAEb,MAAM,aAAa,CAAC,UAAU,UAAU;AAAA,EAC7C;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV;AAAA,EACF;A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AAC,EAAE,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,OAAO,eAAe,EAAE,CAAC;AAC9E,MAAM,oBAAoB,CAAC,MAAM,IAAI,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,OAAO,2BAA2B,EAAE,CAAC;AACpG,MAAM,sBAAsB,CAAC,MAAM,IAAI,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,OAAO,2BAA2B,EAAE,CAAC;AACtG,MAAM,iBAAiB,CAAC,MAAM,IAAI,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,OAAO,sBAAsB,EAAE,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { uid } from "uid";
|
|
3
|
-
const genColumns = (canSort = false) => [
|
|
4
|
-
{
|
|
5
|
-
Header: "id",
|
|
6
|
-
accessor: "id",
|
|
7
|
-
canSort
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
Header: "Name",
|
|
11
|
-
accessor: "name",
|
|
12
|
-
canSort
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
Header: "Position",
|
|
16
|
-
accessor: "position",
|
|
17
|
-
canSort
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
Header: "Country",
|
|
21
|
-
accessor: "country",
|
|
22
|
-
canSort
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
Header: "Salary",
|
|
26
|
-
accessor: "salary"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
Header: "Single date",
|
|
30
|
-
accessor: "singleDate"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
Header: "Date range",
|
|
34
|
-
accessor: "dateRange"
|
|
35
|
-
}
|
|
36
|
-
];
|
|
37
|
-
const generateRecord = (id) => ({
|
|
38
|
-
id: id + 1,
|
|
39
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
40
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
41
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
42
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
43
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
44
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
45
|
-
uid: uid(16)
|
|
46
|
-
});
|
|
47
|
-
const generateRecordWithOneChild = (id, level = 0) => {
|
|
48
|
-
const record = {
|
|
49
|
-
id: id + 1,
|
|
50
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
51
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
52
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
53
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
54
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
55
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
56
|
-
myUniqueRowAccessor: uid(16)
|
|
57
|
-
};
|
|
58
|
-
if (level === 0) record.subRows = [generateRecordWithOneChild(0, level + 1)];
|
|
59
|
-
return record;
|
|
60
|
-
};
|
|
61
|
-
const generateMasterDetailRecord = (id) => ({
|
|
62
|
-
id: id + 1,
|
|
63
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
64
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
65
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
66
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
67
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
68
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
69
|
-
myUniqueRowAccessor: uid(16),
|
|
70
|
-
tableRowDetails: () => "Custom JSX"
|
|
71
|
-
});
|
|
72
|
-
const generateGroupedRecord = (id) => ({
|
|
73
|
-
dimsumHeaderValue: id,
|
|
74
|
-
row_variant_type: "ds_header_group_row",
|
|
75
|
-
subRows: [generateRecord(0)],
|
|
76
|
-
uid: uid(16)
|
|
77
|
-
});
|
|
78
|
-
const generateRecordFixId = (id) => ({
|
|
79
|
-
id: id + 1,
|
|
80
|
-
name: (id + 1) % 2 ? `John` : "Francisco",
|
|
81
|
-
position: (id + 1) % 2 ? `Developer` : `Designer`,
|
|
82
|
-
country: (id + 1) % 2 ? "US" : "ARG",
|
|
83
|
-
salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,
|
|
84
|
-
singleDate: `${id % 12 + 1}/${id % 27 + 1}/2020`,
|
|
85
|
-
dateRange: `${id % 12 + 1}/${id % 27 + 1}/2019`,
|
|
86
|
-
uid: `${id + 1}-fix-id`
|
|
87
|
-
});
|
|
88
|
-
const genRowsFixId = (n) => new Array(n).fill({}).map((_, id) => generateRecordFixId(id));
|
|
89
|
-
const genRows = (n) => new Array(n).fill({}).map((_, id) => generateRecord(id));
|
|
90
|
-
const genExpandableRows = (n) => new Array(n).fill({}).map((_, id) => generateRecordWithOneChild(id));
|
|
91
|
-
const genMasterDetailRows = (n) => new Array(n).fill({}).map((_, id) => generateMasterDetailRecord(id));
|
|
92
|
-
const genGroupedRows = (n) => new Array(n).fill({}).map((_, id) => generateGroupedRecord(id));
|
|
93
|
-
export {
|
|
94
|
-
genColumns,
|
|
95
|
-
genExpandableRows,
|
|
96
|
-
genGroupedRows,
|
|
97
|
-
genMasterDetailRows,
|
|
98
|
-
genRows,
|
|
99
|
-
genRowsFixId
|
|
100
|
-
};
|
|
101
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/tests/utils/index.js"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { uid } from 'uid';\n\nexport const genColumns = (canSort = false) => [\n {\n Header: 'id',\n accessor: 'id',\n canSort,\n },\n {\n Header: 'Name',\n accessor: 'name',\n canSort,\n },\n {\n Header: 'Position',\n accessor: 'position',\n canSort,\n },\n {\n Header: 'Country',\n accessor: 'country',\n canSort,\n },\n {\n Header: 'Salary',\n accessor: 'salary',\n },\n {\n Header: 'Single date',\n accessor: 'singleDate',\n },\n {\n Header: 'Date range',\n accessor: 'dateRange',\n },\n];\n\nconst generateRecord = (id) => ({\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n uid: uid(16),\n});\n\nconst generateRecordWithOneChild = (id, level = 0) => {\n const record = {\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n myUniqueRowAccessor: uid(16),\n };\n if (level === 0) record.subRows = [generateRecordWithOneChild(0, level + 1)];\n return record;\n};\n\nconst generateMasterDetailRecord = (id) => ({\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n myUniqueRowAccessor: uid(16),\n tableRowDetails: () => 'Custom JSX',\n});\n\nconst generateGroupedRecord = (id) => ({\n dimsumHeaderValue: id,\n row_variant_type: 'ds_header_group_row',\n subRows: [generateRecord(0)],\n uid: uid(16),\n});\n\nconst generateRecordFixId = (id) => ({\n id: id + 1,\n name: (id + 1) % 2 ? `John` : 'Francisco',\n position: (id + 1) % 2 ? `Developer` : `Designer`,\n country: (id + 1) % 2 ? 'US' : 'ARG',\n salary: (id + 1) % 2 ? `12321232 $` : `12321232 pesos`,\n singleDate: `${(id % 12) + 1}/${(id % 27) + 1}/2020`,\n dateRange: `${(id % 12) + 1}/${(id % 27) + 1}/2019`,\n uid: `${id + 1}-fix-id`,\n});\n\nexport const genRowsFixId = (n) => new Array(n).fill({}).map((_, id) => generateRecordFixId(id));\nexport const genRows = (n) => new Array(n).fill({}).map((_, id) => generateRecord(id));\nexport const genExpandableRows = (n) => new Array(n).fill({}).map((_, id) => generateRecordWithOneChild(id));\nexport const genMasterDetailRows = (n) => new Array(n).fill({}).map((_, id) => generateMasterDetailRecord(id));\nexport const genGroupedRows = (n) => new Array(n).fill({}).map((_, id) => generateGroupedRecord(id));\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW;AAEb,MAAM,aAAa,CAAC,UAAU,UAAU;AAAA,EAC7C;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV;AAAA,EACF;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV;AAAA,EACF;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV;AAAA,EACF;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV;AAAA,EACF;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AAAA,EACA;AAAA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