@gridui/data-explorer 1.1.1 → 1.2.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.
- package/README.md +1 -1
- package/dist/data-explorer/data-explorer.d.ts +3 -42
- package/dist/data-explorer/style.d.ts +0 -3
- package/dist/data-explorer-bulk-actions/data-explorer-bulk-actions.d.ts +10 -0
- package/dist/data-explorer-pagination/data-explorer-pagination.d.ts +10 -0
- package/dist/{data-explorer → data-explorer-table}/column-resize-handle.d.ts +2 -2
- package/dist/data-explorer-table/data-explorer-table.d.ts +10 -0
- package/dist/data-explorer-toolbar/data-explorer-toolbar.d.ts +10 -0
- package/dist/{data-explorer → data-explorer-toolbar}/filter-editor.d.ts +3 -3
- package/dist/data-explorer-toolbar/style.d.ts +7 -0
- package/dist/index.d.ts +15 -7
- package/dist/index.js +622 -515
- package/dist/index.js.map +4 -4
- package/dist/shared/control-row-style.d.ts +7 -0
- package/dist/shared/explorer-context.d.ts +161 -0
- package/dist/shared/explorer-options.d.ts +51 -0
- package/dist/{data-explorer → shared}/features.d.ts +1 -1
- package/dist/{data-explorer → shared}/model.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/docs/catalog.json +41 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @gridui/data-explorer
|
|
2
2
|
|
|
3
|
-
Dashboard family. Public API: `DataExplorer`, `DataExplorerColumn`, `DataExplorerFilter`, `DataExplorerProps`, `DataExplorerRow`, `DataExplorerState`, `DataExplorerValue`.
|
|
3
|
+
Dashboard family. Public API: `DataExplorer`, `DataExplorerToolbar`, `DataExplorerBulkActions`, `DataExplorerTable`, `DataExplorerPagination`, `DataExplorerColumn`, `DataExplorerFilter`, `DataExplorerProps`, `DataExplorerRow`, `DataExplorerState`, `DataExplorerValue`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/data-explorer` and load `@gridui/data-explorer/styles.css` after Theme.
|
|
6
6
|
Load the complete family stylesheet set in dependency order:
|
|
@@ -4,46 +4,7 @@
|
|
|
4
4
|
* @namespace DataExplorer
|
|
5
5
|
* @description Data Explorer
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
export type DataExplorerProps = Omit<ComponentPropsWithRef<"section">, "children"> & {
|
|
11
|
-
readonly rows: readonly DataExplorerRow[];
|
|
12
|
-
readonly columns: readonly DataExplorerColumn[];
|
|
13
|
-
readonly state: DataExplorerState;
|
|
14
|
-
readonly onStateChange: (state: DataExplorerState) => void;
|
|
15
|
-
readonly filter?: DataExplorerFilter;
|
|
16
|
-
readonly columnSettings?: DataExplorerColumnSettings;
|
|
17
|
-
readonly columnSizing?: DataExplorerColumnSizing;
|
|
18
|
-
readonly details?: DataExplorerDetails;
|
|
19
|
-
readonly filtering?: DataExplorerFiltering;
|
|
20
|
-
readonly pageSize?: number;
|
|
21
|
-
readonly selectedIds?: readonly string[];
|
|
22
|
-
readonly onSelectionChange?: (ids: readonly string[]) => void;
|
|
23
|
-
readonly actions?: readonly {
|
|
24
|
-
readonly label: string;
|
|
25
|
-
readonly onAction: (ids: readonly string[]) => void;
|
|
26
|
-
readonly disabled?: boolean;
|
|
27
|
-
}[];
|
|
28
|
-
readonly renderCell?: (value: DataExplorerValue | undefined, row: DataExplorerRow, column: DataExplorerColumn) => ReactNode;
|
|
29
|
-
readonly busy?: boolean;
|
|
30
|
-
readonly notice?: ReactNode;
|
|
31
|
-
readonly labels: {
|
|
32
|
-
readonly table: string;
|
|
33
|
-
readonly search: string;
|
|
34
|
-
readonly sort: string;
|
|
35
|
-
readonly unsorted: string;
|
|
36
|
-
readonly ascending: string;
|
|
37
|
-
readonly descending: string;
|
|
38
|
-
readonly all: string;
|
|
39
|
-
readonly selection: string;
|
|
40
|
-
readonly selectPage: string;
|
|
41
|
-
readonly selectRow: (row: DataExplorerRow) => string;
|
|
42
|
-
readonly selected: (count: number) => string;
|
|
43
|
-
readonly previous: string;
|
|
44
|
-
readonly next: string;
|
|
45
|
-
readonly page: (page: number, pages: number, total: number) => string;
|
|
46
|
-
readonly empty: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
7
|
+
import type { ExplorerOptions } from "../shared/explorer-options";
|
|
8
|
+
import type { ComponentPropsWithRef, FC } from "react";
|
|
9
|
+
export type DataExplorerProps = ComponentPropsWithRef<"section"> & ExplorerOptions;
|
|
49
10
|
export declare const DataExplorer: FC<DataExplorerProps>;
|
|
@@ -5,6 +5,3 @@
|
|
|
5
5
|
* @description Style
|
|
6
6
|
*/
|
|
7
7
|
export declare const explorerStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
8
|
-
export declare const explorerToolbarStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
9
|
-
export declare const explorerLabelStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
10
|
-
export declare const explorerFooterStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Data Explorer
|
|
4
|
+
* @namespace DataExplorerBulkActions
|
|
5
|
+
* @description Data Explorer Bulk Actions
|
|
6
|
+
*/
|
|
7
|
+
import type { ExplorerPartOptions } from "../shared/explorer-options";
|
|
8
|
+
import type { FC } from "react";
|
|
9
|
+
export type DataExplorerBulkActionsProps = ExplorerPartOptions;
|
|
10
|
+
export declare const DataExplorerBulkActions: FC<DataExplorerBulkActionsProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Data Explorer
|
|
4
|
+
* @namespace DataExplorerPagination
|
|
5
|
+
* @description Data Explorer Pagination
|
|
6
|
+
*/
|
|
7
|
+
import type { ExplorerPartOptions } from "../shared/explorer-options";
|
|
8
|
+
import type { FC } from "react";
|
|
9
|
+
export type DataExplorerPaginationProps = ExplorerPartOptions;
|
|
10
|
+
export declare const DataExplorerPagination: FC<DataExplorerPaginationProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Data Explorer
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace DataExplorerTable
|
|
5
5
|
* @description Column Resize Handle
|
|
6
6
|
*/
|
|
7
|
-
import { type DataExplorerColumn } from "
|
|
7
|
+
import { type DataExplorerColumn } from "../shared/model";
|
|
8
8
|
import { type FC } from "react";
|
|
9
9
|
export type ColumnResizeHandleProps = {
|
|
10
10
|
readonly column: DataExplorerColumn;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Data Explorer
|
|
4
|
+
* @namespace DataExplorerTable
|
|
5
|
+
* @description Data Explorer Table
|
|
6
|
+
*/
|
|
7
|
+
import type { ExplorerPartOptions } from "../shared/explorer-options";
|
|
8
|
+
import { type FC } from "react";
|
|
9
|
+
export type DataExplorerTableProps = ExplorerPartOptions;
|
|
10
|
+
export declare const DataExplorerTable: FC<DataExplorerTableProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @package Data Explorer
|
|
4
|
+
* @namespace DataExplorerToolbar
|
|
5
|
+
* @description Data Explorer Toolbar
|
|
6
|
+
*/
|
|
7
|
+
import type { ExplorerPartOptions } from "../shared/explorer-options";
|
|
8
|
+
import type { FC } from "react";
|
|
9
|
+
export type DataExplorerToolbarProps = ExplorerPartOptions;
|
|
10
|
+
export declare const DataExplorerToolbar: FC<DataExplorerToolbarProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Data Explorer
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace DataExplorerToolbar
|
|
5
5
|
* @description Filter Editor
|
|
6
6
|
*/
|
|
7
|
-
import type { DataExplorerFiltering } from "
|
|
8
|
-
import type { DataExplorerCondition } from "
|
|
7
|
+
import type { DataExplorerFiltering } from "../shared/features";
|
|
8
|
+
import type { DataExplorerCondition } from "../shared/model";
|
|
9
9
|
import { type FC } from "react";
|
|
10
10
|
export type FilterEditorProps = {
|
|
11
11
|
readonly filtering: DataExplorerFiltering;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,18 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type { DataExplorerProps } from "./data-explorer/data-explorer";
|
|
8
8
|
export { DataExplorer } from "./data-explorer/data-explorer";
|
|
9
|
-
export type {
|
|
10
|
-
export
|
|
11
|
-
export type {
|
|
12
|
-
export
|
|
13
|
-
export type {
|
|
14
|
-
export
|
|
15
|
-
export type {
|
|
9
|
+
export type { DataExplorerBulkActionsProps } from "./data-explorer-bulk-actions/data-explorer-bulk-actions";
|
|
10
|
+
export { DataExplorerBulkActions } from "./data-explorer-bulk-actions/data-explorer-bulk-actions";
|
|
11
|
+
export type { DataExplorerPaginationProps } from "./data-explorer-pagination/data-explorer-pagination";
|
|
12
|
+
export { DataExplorerPagination } from "./data-explorer-pagination/data-explorer-pagination";
|
|
13
|
+
export type { DataExplorerTableProps } from "./data-explorer-table/data-explorer-table";
|
|
14
|
+
export { DataExplorerTable } from "./data-explorer-table/data-explorer-table";
|
|
15
|
+
export type { DataExplorerToolbarProps } from "./data-explorer-toolbar/data-explorer-toolbar";
|
|
16
|
+
export { DataExplorerToolbar } from "./data-explorer-toolbar/data-explorer-toolbar";
|
|
17
|
+
export type { DataExplorerColumnSettings, DataExplorerColumnSizing, DataExplorerDetails, DataExplorerFiltering } from "./shared/features";
|
|
18
|
+
export type { DataExplorerColumn } from "./shared/model";
|
|
19
|
+
export type { DataExplorerFilter } from "./shared/model";
|
|
20
|
+
export type { DataExplorerRow } from "./shared/model";
|
|
21
|
+
export type { DataExplorerState } from "./shared/model";
|
|
22
|
+
export type { DataExplorerValue } from "./shared/model";
|
|
23
|
+
export type { DataExplorerCondition, DataExplorerFilterDefinition, DataExplorerFilterOperator } from "./shared/model";
|