@muraldevkit/ui-toolkit 4.59.1 → 4.60.0-dev-sjiL.1
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/components/table/MrlSmartTable/MrlSmartTable.d.ts +8 -0
- package/dist/components/table/MrlSmartTable/components/DefaultCellContent.d.ts +4 -0
- package/dist/components/table/MrlSmartTable/storybook-utils.d.ts +11 -0
- package/dist/components/table/fixtures.d.ts +13 -0
- package/dist/index.js +1 -1
- package/dist/utils/getScrollableContainer/getScrollableContainer.d.ts +7 -4
- package/package.json +2 -1
|
@@ -206,6 +206,14 @@ export interface MrlSmartTableProps extends Partial<Pick<MrlTableProps, 'aria-la
|
|
|
206
206
|
* Provides information on how the table should be sorted on initialization.
|
|
207
207
|
*/
|
|
208
208
|
defaultSortDescriptor?: MrlTableColumnSortDescriptor;
|
|
209
|
+
/**
|
|
210
|
+
* Enables row virtualization using @tanstack/react-virtual. The table must live
|
|
211
|
+
* inside a container with a fixed height and vertical scroll for virtualization
|
|
212
|
+
* to function correctly.
|
|
213
|
+
*
|
|
214
|
+
* @default false
|
|
215
|
+
*/
|
|
216
|
+
enableVirtualization?: boolean;
|
|
209
217
|
}
|
|
210
218
|
/**
|
|
211
219
|
* MrlSmartTable Component
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MrlSmartCellRendererProps } from '../MrlSmartTable';
|
|
3
|
+
export declare const DefaultCellContent: ({ item, column, dataQaPrefix, tableElementId, hasScrollShadowLeft, hasScrollShadowRight }: MrlSmartCellRendererProps) => React.JSX.Element;
|
|
4
|
+
export declare const MemoizedDefaultCellContent: React.MemoExoticComponent<({ item, column, dataQaPrefix, tableElementId, hasScrollShadowLeft, hasScrollShadowRight }: MrlSmartCellRendererProps) => React.JSX.Element>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MrlSmartCellRendererProps, MrlSmartTableColumn } from './MrlSmartTable';
|
|
3
|
+
export declare const LicenseCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
4
|
+
export declare const MemberSinceCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
5
|
+
export declare const LastSeenCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
6
|
+
export declare const CreateRoomCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
7
|
+
export declare const SeeOpenRoomsCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
8
|
+
export declare const PublishTemplatesCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
9
|
+
export declare const WorkspaceAdminCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
10
|
+
export declare const ActionsCell: ((props: MrlSmartCellRendererProps) => JSX.Element) | undefined;
|
|
11
|
+
export declare const SAMPLE_COLUMNS_WITH_EDIT_ICON_BUTTON: MrlSmartTableColumn[];
|
|
@@ -91,4 +91,17 @@ export declare const SAMPLE_ITEMS_500: {
|
|
|
91
91
|
name: string;
|
|
92
92
|
type: string;
|
|
93
93
|
}[];
|
|
94
|
+
export type WorkspaceUser = {
|
|
95
|
+
admin: boolean;
|
|
96
|
+
createRooms: boolean;
|
|
97
|
+
email: string;
|
|
98
|
+
fullName: string;
|
|
99
|
+
guest: boolean;
|
|
100
|
+
id: string;
|
|
101
|
+
lastSeen: number | null;
|
|
102
|
+
memberSince: number;
|
|
103
|
+
publishTemplates: boolean;
|
|
104
|
+
seeOpenRooms: boolean;
|
|
105
|
+
};
|
|
106
|
+
export declare const SAMPLE_WORKSPACE_USERS: WorkspaceUser[];
|
|
94
107
|
export {};
|