@orient-ai/aurora-ui 1.0.0-alpha.1 → 1.0.0-alpha.11
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/BulkEdit/componnets/Combobox/Combobox.d.ts +2 -2
- package/dist/components/BulkEdit/componnets/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Grid/Grid.d.ts +11 -3
- package/dist/components/BulkEdit/componnets/Grid/Grid.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Grid/types.d.ts +2 -2
- package/dist/components/BulkEdit/componnets/Grid/types.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Layout/Layout.d.ts +4 -2
- package/dist/components/BulkEdit/componnets/Layout/Layout.d.ts.map +1 -1
- package/dist/components/BulkEdit/componnets/Toolbar/Toolbar.d.ts +5 -5
- package/dist/components/BulkEdit/componnets/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/components/BulkEdit/hooks/useGridEditing.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/utils.d.ts +1 -1
- package/dist/components/Button/utils.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +20 -9
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/DateField/DateField.d.ts +2 -3
- package/dist/components/DateField/DateField.d.ts.map +1 -1
- package/dist/components/Filters/Select/Select.d.ts +10 -2
- package/dist/components/Filters/Select/Select.d.ts.map +1 -1
- package/dist/components/Frame/Frame.d.ts +4 -17
- package/dist/components/Frame/Frame.d.ts.map +1 -1
- package/dist/components/Frame/components/{NavigationItem → Navigation/NavigationItem}/NavigationItem.d.ts +1 -1
- package/dist/components/Frame/components/Navigation/NavigationItem/NavigationItem.d.ts.map +1 -0
- package/dist/components/Frame/components/Navigation/NavigationItem/index.d.ts.map +1 -0
- package/dist/components/Frame/components/{Notification/components → Navigation/Notification}/Badges.d.ts.map +1 -1
- package/dist/components/Frame/components/Navigation/Notification/Notification.d.ts.map +1 -0
- package/dist/components/Frame/components/Navigation/Notification/index.d.ts.map +1 -0
- package/dist/components/Frame/components/{SiteSwitcher → Navigation/SiteSwitcher}/SiteSwitcher.d.ts +1 -1
- package/dist/components/Frame/components/Navigation/SiteSwitcher/SiteSwitcher.d.ts.map +1 -0
- package/dist/components/Frame/components/Navigation/index.d.ts +17 -0
- package/dist/components/Frame/components/Navigation/index.d.ts.map +1 -0
- package/dist/components/Frame/components/Viewport/Viewport.d.ts +3 -0
- package/dist/components/Frame/components/Viewport/Viewport.d.ts.map +1 -0
- package/dist/components/Frame/components/Viewport/index.d.ts +2 -0
- package/dist/components/Frame/components/Viewport/index.d.ts.map +1 -0
- package/dist/components/Frame/context/FrameStackContext.d.ts +21 -0
- package/dist/components/Frame/context/FrameStackContext.d.ts.map +1 -0
- package/dist/components/Frame/index.d.ts +1 -6
- package/dist/components/Frame/index.d.ts.map +1 -1
- package/dist/components/Icon/components/index.d.ts +1 -1
- package/dist/components/IndexTable/DataTable/BulkActions/BulkActions.d.ts +12 -0
- package/dist/components/IndexTable/DataTable/BulkActions/BulkActions.d.ts.map +1 -0
- package/dist/components/IndexTable/DataTable/BulkActions/index.d.ts +2 -0
- package/dist/components/IndexTable/DataTable/BulkActions/index.d.ts.map +1 -0
- package/dist/components/IndexTable/DataTable/DataTable.d.ts +14 -18
- package/dist/components/IndexTable/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/IndexTable/DataTable/Pagination/Pagination.d.ts +15 -0
- package/dist/components/IndexTable/DataTable/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/IndexTable/DataTable/Pagination/index.d.ts +2 -0
- package/dist/components/IndexTable/DataTable/Pagination/index.d.ts.map +1 -0
- package/dist/components/IndexTable/DataTable/index.d.ts +3 -2
- package/dist/components/IndexTable/DataTable/index.d.ts.map +1 -1
- package/dist/components/IndexTable/IndexTable.d.ts +3 -0
- package/dist/components/IndexTable/IndexTable.d.ts.map +1 -0
- package/dist/components/IndexTable/Toolbar/Toolbar.d.ts +23 -15
- package/dist/components/IndexTable/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/components/IndexTable/Toolbar/components/ColumnButton/ColumnButton.d.ts +3 -3
- package/dist/components/IndexTable/Toolbar/components/ColumnButton/ColumnButton.d.ts.map +1 -1
- package/dist/components/IndexTable/Toolbar/components/Filter/Filter.d.ts +3 -7
- package/dist/components/IndexTable/Toolbar/components/Filter/Filter.d.ts.map +1 -1
- package/dist/components/IndexTable/Toolbar/components/SaveView/SaveView.d.ts +3 -7
- package/dist/components/IndexTable/Toolbar/components/SaveView/SaveView.d.ts.map +1 -1
- package/dist/components/IndexTable/Toolbar/components/SortAndColumns/SortAndColumns.d.ts +3 -11
- package/dist/components/IndexTable/Toolbar/components/SortAndColumns/SortAndColumns.d.ts.map +1 -1
- package/dist/components/IndexTable/Toolbar/components/SortAndColumns/index.d.ts +0 -2
- package/dist/components/IndexTable/Toolbar/components/SortAndColumns/index.d.ts.map +1 -1
- package/dist/components/IndexTable/Toolbar/types.d.ts +1 -43
- package/dist/components/IndexTable/Toolbar/types.d.ts.map +1 -1
- package/dist/components/IndexTable/index.d.ts +3 -0
- package/dist/components/IndexTable/index.d.ts.map +1 -1
- package/dist/components/IndexTable/types.d.ts +21 -5
- package/dist/components/IndexTable/types.d.ts.map +1 -1
- package/dist/components/IndexTable/utils.d.ts +2 -4
- package/dist/components/IndexTable/utils.d.ts.map +1 -1
- package/dist/components/InputBase/InputBase.d.ts +17 -0
- package/dist/components/InputBase/InputBase.d.ts.map +1 -0
- package/dist/components/InputBase/index.d.ts +2 -0
- package/dist/components/InputBase/index.d.ts.map +1 -0
- package/dist/components/MultiSelect/MultipleSelect.d.ts.map +1 -1
- package/dist/components/Page/Page.d.ts +5 -5
- package/dist/components/Page/Page.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +14 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +4 -2
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Report/Report.d.ts +1 -1
- package/dist/components/Report/Report.d.ts.map +1 -1
- package/dist/components/Report/types.d.ts +11 -9
- package/dist/components/Report/types.d.ts.map +1 -1
- package/dist/components/Report/useReportTable.d.ts +8 -0
- package/dist/components/Report/useReportTable.d.ts.map +1 -0
- package/dist/components/Section/Section.d.ts +17 -5
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +12 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/TextField/TextField.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5087 -5032
- package/dist/types.d.ts +4 -45
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -4
- package/dist/components/Frame/FrameStack.d.ts +0 -5
- package/dist/components/Frame/FrameStack.d.ts.map +0 -1
- package/dist/components/Frame/FrameStackContext.d.ts +0 -7
- package/dist/components/Frame/FrameStackContext.d.ts.map +0 -1
- package/dist/components/Frame/components/FramePage/FramePage.d.ts +0 -28
- package/dist/components/Frame/components/FramePage/FramePage.d.ts.map +0 -1
- package/dist/components/Frame/components/NavigationItem/NavigationItem.d.ts.map +0 -1
- package/dist/components/Frame/components/NavigationItem/index.d.ts.map +0 -1
- package/dist/components/Frame/components/Notification/Notification.d.ts.map +0 -1
- package/dist/components/Frame/components/Notification/index.d.ts.map +0 -1
- package/dist/components/Frame/components/SiteSwitcher/SiteSwitcher.d.ts.map +0 -1
- package/dist/components/Frame/stack.d.ts +0 -50
- package/dist/components/Frame/stack.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/BulkActions.d.ts +0 -11
- package/dist/components/IndexTable/DataTable/BulkActions.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/ScrollBar.d.ts +0 -8
- package/dist/components/IndexTable/DataTable/ScrollBar.d.ts.map +0 -1
- package/dist/components/IndexTable/DataTable/types.d.ts +0 -9
- package/dist/components/IndexTable/DataTable/types.d.ts.map +0 -1
- package/dist/components/Report/useColumnWidths.d.ts +0 -17
- package/dist/components/Report/useColumnWidths.d.ts.map +0 -1
- package/dist/components/Report/useReportScroll.d.ts +0 -6
- package/dist/components/Report/useReportScroll.d.ts.map +0 -1
- /package/dist/components/Frame/components/{NavigationItem → Navigation/NavigationItem}/index.d.ts +0 -0
- /package/dist/components/Frame/components/{Notification/components → Navigation/Notification}/Badges.d.ts +0 -0
- /package/dist/components/Frame/components/{Notification → Navigation/Notification}/Notification.d.ts +0 -0
- /package/dist/components/Frame/components/{Notification → Navigation/Notification}/index.d.ts +0 -0
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DataTableColumnDefinition } from './types';
|
|
3
|
-
import { ColumnState, OrderState } from '../types';
|
|
1
|
+
import { ColumnDef, SortState } from '../types';
|
|
4
2
|
import { ComplexAction } from '../../../types';
|
|
5
3
|
export interface DataTableProps<T> {
|
|
6
4
|
items: readonly T[];
|
|
7
5
|
getRowId: (item: T) => string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
onSelectionChange?: (ids: string[]) => void;
|
|
6
|
+
/** Column */
|
|
7
|
+
columns: readonly ColumnDef<T>[];
|
|
8
|
+
/** Sort */
|
|
9
|
+
sortState?: SortState;
|
|
10
|
+
onSortStateChange?: (state: SortState) => void;
|
|
11
|
+
/** Selection */
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
selection?: readonly string[];
|
|
14
|
+
onSelectionChange?: (selection: string[]) => void;
|
|
18
15
|
promotedBulkActions?: readonly ComplexAction[];
|
|
19
16
|
bulkActions?: readonly ComplexAction[];
|
|
20
17
|
/** Interactive cell content is excluded from this callback. */
|
|
21
18
|
onRowAction?: (item: T) => void;
|
|
22
19
|
loading?: boolean;
|
|
23
20
|
emptyState?: React.ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
blockSize?: CSSProperties['blockSize'];
|
|
26
|
-
/** Limit the table's total height while keeping its header and footer visible. */
|
|
27
|
-
maxBlockSize?: CSSProperties['maxBlockSize'];
|
|
21
|
+
/** Rendered below the horizontal scrollbar in the sticky bottom area. */
|
|
28
22
|
footer?: React.ReactNode;
|
|
23
|
+
/** Styles the header scroll container, including page-level sticky positioning. */
|
|
24
|
+
headerStyle?: React.CSSProperties;
|
|
29
25
|
}
|
|
30
|
-
export declare function DataTable<T>({ items, getRowId,
|
|
26
|
+
export declare function DataTable<T>({ items, getRowId, columns, sortState, onSortStateChange, selectable, selection, onSelectionChange, promotedBulkActions, bulkActions, onRowAction, loading, emptyState, footer, headerStyle, }: DataTableProps<T>): import('react').JSX.Element;
|
|
31
27
|
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/DataTable/DataTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/DataTable/DataTable.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAC9B,aAAa;IACb,OAAO,EAAE,SAAS,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IACjC,WAAW;IACX,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAC/C,gBAAgB;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAClD,mBAAmB,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC/C,WAAW,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACvC,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,yEAAyE;IACzE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,mFAAmF;IACnF,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC;AAQD,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAC3B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,UAAiB,EACjB,SAAc,EACd,iBAAiB,EACjB,mBAAwB,EACxB,WAAgB,EAChB,WAAW,EACX,OAAe,EACf,UAAU,EACV,MAAM,EACN,WAAW,GACZ,EAAE,cAAc,CAAC,CAAC,CAAC,+BA4RnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface PaginationProps extends Omit<ComponentPropsWithoutRef<'nav'>, 'children' | 'onChange'> {
|
|
3
|
+
/** The current page, starting at zero. */
|
|
4
|
+
pageIndex: number;
|
|
5
|
+
/** The number of rows per page. Must be a positive integer. */
|
|
6
|
+
pageSize: number;
|
|
7
|
+
totalCount: number;
|
|
8
|
+
onPageChange: (pageIndex: number) => void;
|
|
9
|
+
/** The caller should reset pageIndex when applying a new page size. */
|
|
10
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
11
|
+
pageSizeOptions?: readonly number[];
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function Pagination({ pageIndex, pageSize, totalCount, onPageChange, onPageSizeChange, pageSizeOptions, disabled, className, 'aria-label': ariaLabel, ...restProps }: PaginationProps): import('react').JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/IndexTable/DataTable/Pagination/Pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,wBAAwB,CAAC,KAAK,CAAC,EAC/B,UAAU,GAAG,UAAU,CACxB;IACC,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,uEAAuE;IACvE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAID,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAwC,EACxC,QAAgB,EAChB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,GAAG,SAAS,EACb,EAAE,eAAe,+BAwEjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/IndexTable/DataTable/Pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/DataTable/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/DataTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndexTable.d.ts","sourceRoot":"","sources":["../../../src/components/IndexTable/IndexTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGtD,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAMjC"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface ToolbarProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { ColumnDef, ColumnState, SortDef, SortState, ViewDef } from '../types';
|
|
3
|
+
export interface ToolbarProps extends Pick<ComponentPropsWithRef<'div'>, 'ref' | 'style'> {
|
|
4
|
+
searchPlacerholder?: string;
|
|
5
|
+
search: string;
|
|
6
|
+
onSearchChange: (search: string) => void;
|
|
7
|
+
sorts: SortDef[];
|
|
8
|
+
sortState: SortState;
|
|
9
|
+
onSortStateChange: (state: SortState) => void;
|
|
10
|
+
columns: Pick<ColumnDef<unknown>, 'id' | 'label' | 'fixed'>[];
|
|
11
|
+
columnsState: ColumnState[];
|
|
12
|
+
onColumnsStateChange: (state: ColumnState[]) => void;
|
|
13
|
+
views?: ViewDef[];
|
|
14
|
+
isViewDirty?: boolean;
|
|
15
|
+
selectedView?: string | null;
|
|
16
|
+
onViewChange?: (id: string | null) => void;
|
|
17
|
+
onViewUpdate?: (id: string) => void;
|
|
18
|
+
onViewCreate?: (name: string) => void;
|
|
19
|
+
onViewReset?: () => void;
|
|
20
|
+
filters: ReactNode[];
|
|
21
|
+
filtersLayout?: 'wrap' | 'scroll';
|
|
14
22
|
showFilter?: boolean;
|
|
15
|
-
onShowFilterChange: (
|
|
23
|
+
onShowFilterChange: (show: boolean) => void;
|
|
16
24
|
}
|
|
17
|
-
export declare function Toolbar({
|
|
25
|
+
export declare function Toolbar({ searchPlacerholder, filters, filtersLayout, ref, style, search, onSearchChange, sorts, sortState, onSortStateChange, columns, columnsState, onColumnsStateChange, views, isViewDirty, selectedView, onViewChange, onViewUpdate, onViewCreate, onViewReset, showFilter, onShowFilterChange, }: ToolbarProps): import('react').JSX.Element;
|
|
18
26
|
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/Toolbar/Toolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAc7E,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACX,OAAO,EACP,SAAS,EACT,OAAO,EACR,MAAM,UAAU,CAAC;AAMlB,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,qBAAqB,CAAC,KAAK,CAAC,EAC5B,KAAK,GAAG,OAAO,CAChB;IAEC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAEzC,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAE9C,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC;IAC9D,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,oBAAoB,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAErD,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAED,wBAAgB,OAAO,CAAC,EACtB,kBAAkB,EAClB,OAAY,EACZ,aAAsB,EACtB,GAAG,EACH,KAAK,EACL,MAAM,EACN,cAAc,EACd,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,oBAAoB,EACpB,KAAU,EACV,WAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAkB,EAClB,kBAAkB,GACnB,EAAE,YAAY,+BA2Gd"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToolbarProps } from '../../Toolbar';
|
|
2
2
|
export interface ColumnButtonProps {
|
|
3
|
-
column:
|
|
4
|
-
hidden:
|
|
3
|
+
column: ToolbarProps['columns'][number];
|
|
4
|
+
hidden: ToolbarProps['columnsState'][number]['hidden'];
|
|
5
5
|
index: number;
|
|
6
6
|
onVisibilityChange: () => void;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/ColumnButton/ColumnButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ColumnButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/ColumnButton/ColumnButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,MAAM,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,MAAM,EACN,KAAK,EACL,kBAAkB,GACnB,EAAE,iBAAiB,+BAgCnB"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
filter?: ToolbarFilterState;
|
|
5
|
-
onChange: (filter: ToolbarFilterState | undefined) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function Filter({ definition, filter, onChange }: FilterProps): import('react').JSX.Element;
|
|
1
|
+
import { ToolbarProps } from '../../Toolbar';
|
|
2
|
+
export type FilterProps = Pick<ToolbarProps, 'filters' | 'filtersLayout' | 'showFilter'>;
|
|
3
|
+
export declare function Filter({ filters, filtersLayout, showFilter, }: FilterProps): import('react').JSX.Element;
|
|
8
4
|
//# sourceMappingURL=Filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/Filter/Filter.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/Filter/Filter.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,YAAY,EACZ,SAAS,GAAG,eAAe,GAAG,YAAY,CAC3C,CAAC;AAEF,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,aAAsB,EACtB,UAAkB,GACnB,EAAE,WAAW,+BAiCb"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
onViewSave?: (view: ToolbarState) => void;
|
|
5
|
-
onViewCreate?: (name: string, state: ToolbarState) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function SaveView({ view, onViewSave, onViewCreate }: SaveViewProps): import('react').JSX.Element;
|
|
1
|
+
import { ToolbarProps } from '../../Toolbar';
|
|
2
|
+
export type SaveViewProps = Pick<ToolbarProps, 'selectedView' | 'onViewUpdate' | 'onViewCreate'>;
|
|
3
|
+
export declare function SaveView({ selectedView, onViewUpdate, onViewCreate, }: SaveViewProps): import('react').JSX.Element;
|
|
8
4
|
//# sourceMappingURL=SaveView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/SaveView/SaveView.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SaveView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/SaveView/SaveView.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,YAAY,EACZ,cAAc,GAAG,cAAc,GAAG,cAAc,CACjD,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,YAAY,EACZ,YAAY,EACZ,YAAY,GACb,EAAE,aAAa,+BA6Ef"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
columnDefinitions: readonly ColumnDefinition[];
|
|
5
|
-
columns: readonly ColumnState[];
|
|
6
|
-
orderDefinitions: readonly OrderDescriptor[];
|
|
7
|
-
order: OrderState;
|
|
8
|
-
onColumnsChange: (columns: ColumnState[]) => void;
|
|
9
|
-
onOrderChange: (order: OrderState) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function SortAndColumns({ columnDefinitions, columns, orderDefinitions, order, onColumnsChange, onOrderChange, }: SortAndColumnsProps): import('react').JSX.Element;
|
|
1
|
+
import { ToolbarProps } from '../../Toolbar';
|
|
2
|
+
export type SortAndColumnsProps = Pick<ToolbarProps, 'sorts' | 'sortState' | 'onSortStateChange' | 'columns' | 'columnsState' | 'onColumnsStateChange'>;
|
|
3
|
+
export declare function SortAndColumns({ sorts, sortState, onSortStateChange, columns, columnsState, onColumnsStateChange, }: SortAndColumnsProps): import('react').JSX.Element;
|
|
12
4
|
//# sourceMappingURL=SortAndColumns.d.ts.map
|
package/dist/components/IndexTable/Toolbar/components/SortAndColumns/SortAndColumns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortAndColumns.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/SortAndColumns/SortAndColumns.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SortAndColumns.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/SortAndColumns/SortAndColumns.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,YAAY,EACV,OAAO,GACP,WAAW,GACX,mBAAmB,GACnB,SAAS,GACT,cAAc,GACd,sBAAsB,CACzB,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,oBAAoB,GACrB,EAAE,mBAAmB,+BAqHrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/SortAndColumns/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/IndexTable/Toolbar/components/SortAndColumns/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { OptionDescriptor } from '../../../types';
|
|
3
|
-
import { ColumnState, OrderState } from '../types';
|
|
4
|
-
export type { ColumnDefinition, ColumnState, OrderState } from '../types';
|
|
5
|
-
export type ToolbarState = {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
query: string;
|
|
9
|
-
columns: ColumnState[];
|
|
10
|
-
order: OrderState;
|
|
11
|
-
filters: ToolbarFilterState[];
|
|
12
|
-
};
|
|
13
|
-
export type ToolbarFilterDefinition = {
|
|
14
|
-
key: string;
|
|
15
|
-
label: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
} & ({
|
|
18
|
-
type: 'date';
|
|
19
|
-
} | {
|
|
20
|
-
type: 'select';
|
|
21
|
-
options: readonly OptionDescriptor[];
|
|
22
|
-
/** Search results to display. Defaults to all options when omitted. */
|
|
23
|
-
filteredOptions?: readonly OptionDescriptor[];
|
|
24
|
-
inputValue: string;
|
|
25
|
-
onInputChange: (value: string) => void;
|
|
26
|
-
searchPlaceholder?: string;
|
|
27
|
-
empty?: string;
|
|
28
|
-
loading?: boolean;
|
|
29
|
-
});
|
|
30
|
-
export type ToolbarFilterState = {
|
|
31
|
-
key: string;
|
|
32
|
-
type: 'select';
|
|
33
|
-
value: string[];
|
|
34
|
-
} | ({
|
|
35
|
-
key: string;
|
|
36
|
-
type: 'date';
|
|
37
|
-
} & ({
|
|
38
|
-
preset: DateFilterPreset;
|
|
39
|
-
value?: never;
|
|
40
|
-
} | {
|
|
41
|
-
value: string[];
|
|
42
|
-
preset?: never;
|
|
43
|
-
}));
|
|
1
|
+
export type { ColumnDef, ColumnState, SortDef, SortState, ViewDef, } from '../types';
|
|
44
2
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/Toolbar/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/IndexTable/Toolbar/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,WAAW,EACX,OAAO,EACP,SAAS,EACT,OAAO,GACR,MAAM,UAAU,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Toolbar } from './Toolbar';
|
|
2
2
|
import { DataTable } from './DataTable';
|
|
3
|
+
import { IndexTableRoot } from './IndexTable';
|
|
3
4
|
export declare const IndexTable: {
|
|
5
|
+
Root: typeof IndexTableRoot;
|
|
4
6
|
Toolbar: typeof Toolbar;
|
|
5
7
|
DataTable: typeof DataTable;
|
|
6
8
|
};
|
|
7
9
|
export * from './Toolbar';
|
|
8
10
|
export * from './DataTable';
|
|
11
|
+
export * from './types';
|
|
9
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IndexTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IndexTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,UAAU;;;;CAItB,CAAC;AAEF,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -1,16 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
/** Sort */
|
|
3
|
+
export type SortDef = {
|
|
3
4
|
id: string;
|
|
4
5
|
label: string;
|
|
5
|
-
|
|
6
|
+
ascendingLabel?: string;
|
|
7
|
+
descendingLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
export type SortState = {
|
|
10
|
+
id: string;
|
|
11
|
+
asc: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** Column */
|
|
14
|
+
export type ColumnDef<T> = {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
renderCell: (item: T) => ReactNode;
|
|
18
|
+
alignment?: 'start' | 'center' | 'end';
|
|
19
|
+
width?: CSSProperties['width'];
|
|
20
|
+
sortId?: string;
|
|
6
21
|
fixed?: boolean;
|
|
7
22
|
};
|
|
8
23
|
export type ColumnState = {
|
|
9
24
|
id: string;
|
|
10
25
|
hidden: boolean;
|
|
11
26
|
};
|
|
12
|
-
|
|
27
|
+
/** View */
|
|
28
|
+
export type ViewDef = {
|
|
13
29
|
id: string;
|
|
14
|
-
|
|
30
|
+
label: string;
|
|
15
31
|
};
|
|
16
32
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/IndexTable/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/IndexTable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,WAAW;AACX,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AAErD,aAAa;AACb,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,WAAW;AACX,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare function getVisibleColumns<T extends ColumnDefinition>(definitions: readonly T[], columns?: readonly ColumnState[]): T[];
|
|
2
|
+
import { ColumnDef, ColumnState } from './types';
|
|
3
|
+
export declare function getVisibleColumns<T extends Pick<ColumnDef<unknown>, 'id' | 'fixed'>>(columns: readonly T[], columnsState?: readonly ColumnState[]): T[];
|
|
5
4
|
export declare function isCellInteraction(event: MouseEvent<HTMLTableRowElement>): boolean;
|
|
6
|
-
export declare function actionHandler(action: ComplexAction): () => void;
|
|
7
5
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/IndexTable/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/IndexTable/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtD,wBAAgB,iBAAiB,CAC/B,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,EAClD,OAAO,EAAE,SAAS,CAAC,EAAE,EAAE,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,GAAG,CAAC,EAAE,CAoBnE;AAKD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,mBAAmB,CAAC,WAOvE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export interface InputBaseProps {
|
|
3
|
+
children: ReactElement<{
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
prefix?: ReactNode;
|
|
7
|
+
suffix?: ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
/** Render the field shell, keeping its layout inside the interactive element. */
|
|
11
|
+
render?: (props: {
|
|
12
|
+
className: string;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}) => ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function InputBase({ children, prefix, suffix, disabled, readOnly, render, }: InputBaseProps): import('react').JSX.Element;
|
|
17
|
+
//# sourceMappingURL=InputBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputBase.d.ts","sourceRoot":"","sources":["../../../src/components/InputBase/InputBase.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,YAAY,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iFAAiF;IACjF,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,SAAS,CAAA;KAAE,KAAK,SAAS,CAAC;CAC3E;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAgB,EAChB,QAAgB,EAChB,MAAM,GACP,EAAE,cAAc,+BAgChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InputBase/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultipleSelect.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAUhD,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,8EAA8E;IAC9E,eAAe,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC9C,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,EAAE,EACF,OAAO,EACP,eAAe,EACf,KAAK,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,WAA8B,EAC9B,iBAAoC,EACpC,KAA0B,EAC1B,OAAe,EACf,QAAgB,GACjB,EAAE,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"MultipleSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultipleSelect.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAUhD,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,8EAA8E;IAC9E,eAAe,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC9C,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,cAAc,CAAC,EAC7B,EAAE,EACF,OAAO,EACP,eAAe,EACf,KAAK,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,WAA8B,EAC9B,iBAAoC,EACpC,KAA0B,EAC1B,OAAe,EACf,QAAgB,GACjB,EAAE,mBAAmB,+BAqJrB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PageHeaderProps } from '../PageHeader';
|
|
2
|
+
export interface PageProps extends PageHeaderProps {
|
|
3
|
+
fullwidth?: boolean;
|
|
4
|
+
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare function Page(
|
|
6
|
+
export declare function Page({ fullwidth, children, border, ...headerProps }: PageProps): import('react').JSX.Element;
|
|
7
7
|
//# sourceMappingURL=Page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/components/Page/Page.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/components/Page/Page.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,WAAW,EACf,EAAE,SAAS,+BA2BX"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { IconType } from '../Icon';
|
|
3
|
+
import { ComplexAction } from '../../types';
|
|
4
|
+
import { MenuSectionDescriptor } from '../Menu';
|
|
5
|
+
export interface PageHeaderProps extends Omit<ComponentPropsWithRef<'header'>, 'children'> {
|
|
6
|
+
icon?: IconType;
|
|
7
|
+
heading: React.ReactNode;
|
|
8
|
+
actions?: ComplexAction[];
|
|
9
|
+
moreActions?: MenuSectionDescriptor[];
|
|
10
|
+
border?: boolean;
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function PageHeader({ icon, heading, actions, moreActions, border, onBack, ...props }: PageHeaderProps): import('react').JSX.Element;
|
|
14
|
+
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAQ,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAGhE,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,qBAAqB,CAAC,QAAQ,CAAC,EAC/B,UAAU,CACX;IACC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,OAAY,EACZ,WAAW,EACX,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,eAAe,+BA6BjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, Ref } from 'react';
|
|
3
3
|
import { Size } from '../../types';
|
|
4
4
|
type PositionerProps = Pick<PopoverPrimitive.Positioner.Props, 'anchor' | 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'collisionPadding' | 'collisionAvoidance'>;
|
|
5
5
|
type FocusProps = Pick<PopoverPrimitive.Popup.Props, 'initialFocus' | 'finalFocus'>;
|
|
@@ -15,8 +15,10 @@ export interface PopoverProps extends PositionerProps, FocusProps {
|
|
|
15
15
|
maxInlineSize?: Size | 'none';
|
|
16
16
|
/** Size the popup to its positioning anchor. */
|
|
17
17
|
matchAnchorWidth?: boolean;
|
|
18
|
+
/** Ref to the scrollable body, for observing list pagination. */
|
|
19
|
+
scrollRef?: Ref<HTMLDivElement>;
|
|
18
20
|
scrollTabIndex?: number;
|
|
19
21
|
}
|
|
20
|
-
export declare function Popover({ children, header, blockSize, minBlockSize, maxBlockSize, inlineSize, minInlineSize, maxInlineSize, matchAnchorWidth, scrollTabIndex, anchor, side, align, sideOffset, alignOffset, collisionPadding, collisionAvoidance, initialFocus, finalFocus, }: PopoverProps): import('react').JSX.Element;
|
|
22
|
+
export declare function Popover({ children, header, blockSize, minBlockSize, maxBlockSize, inlineSize, minInlineSize, maxInlineSize, matchAnchorWidth, scrollRef, scrollTabIndex, anchor, side, align, sideOffset, alignOffset, collisionPadding, collisionAvoidance, initialFocus, finalFocus, }: PopoverProps): import('react').JSX.Element;
|
|
21
23
|
export {};
|
|
22
24
|
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAiB,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAGpC,KAAK,eAAe,GAAG,IAAI,CACzB,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAC/B,QAAQ,GACR,MAAM,GACN,OAAO,GACP,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,oBAAoB,CACvB,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CACpB,gBAAgB,CAAC,KAAK,CAAC,KAAK,EAC5B,cAAc,GAAG,YAAY,CAC9B,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,eAAe,EAAE,UAAU;IAC/D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iEAAiE;IACjE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC9B,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iEAAiE;IACjE,SAAS,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,MAAM,EACN,SAAkB,EAClB,YAAkB,EAClB,YAAqB,EACrB,UAAmB,EACnB,aAAmB,EACnB,aAAsB,EACtB,gBAAwB,EACxB,SAAS,EACT,cAAc,EACd,MAAM,EACN,IAAe,EACf,KAAe,EACf,UAAc,EACd,WAAe,EACf,gBAAqB,EACrB,kBAIC,EACD,YAAY,EACZ,UAAU,GACX,EAAE,YAAY,+BAiDd"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReportProps } from './types';
|
|
2
|
-
export declare function Report<T>({ items, getRowId, columnDefinitions, totals, order, onOrderChange, resizable, columnWidths, onColumnWidthsChange, stickyFirstColumn, getSubRows, layout: controlledLayout, onLayoutChange, showLayoutControl, actions, periodLabel, comparisonLabel, label, loading, emptyState, rowCount, footer,
|
|
2
|
+
export declare function Report<T>({ items, getRowId, columnDefinitions, totals, order, onOrderChange, resizable, columnWidths, onColumnWidthsChange, stickyFirstColumn, getSubRows, layout: controlledLayout, onLayoutChange, showLayoutControl, actions, periodLabel, comparisonLabel, label, loading, emptyState, rowCount, footer, toolbarRef, toolbarStyle, headerRef, headerStyle, scrollbarStyle, ref, style, className, }: ReportProps<T>): import('react').JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../src/components/Report/Report.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../src/components/Report/Report.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAC;AAGzD,wBAAgB,MAAM,CAAC,CAAC,EAAE,EACxB,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,MAAM,EACN,KAAK,EACL,aAAa,EACb,SAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,iBAAwB,EACxB,UAAU,EACV,MAAM,EAAE,gBAAgB,EACxB,cAAc,EACd,iBAAwB,EACxB,OAAO,EACP,WAAW,EACX,eAAe,EACf,KAAK,EACL,OAAe,EACf,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,cAAc,EACd,GAAG,EACH,KAAK,EACL,SAAS,GACV,EAAE,WAAW,CAAC,CAAC,CAAC,+BAiahB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { ComponentPropsWithRef, CSSProperties, ReactNode } from 'react';
|
|
2
2
|
export interface ReportOrder {
|
|
3
3
|
id: string;
|
|
4
4
|
asc: boolean;
|
|
@@ -18,7 +18,7 @@ export interface ReportColumnDefinition<T> {
|
|
|
18
18
|
/** A second, subdued value beneath the current-period value. */
|
|
19
19
|
renderComparison?: (item: T) => ReactNode;
|
|
20
20
|
}
|
|
21
|
-
export interface ReportProps<T> {
|
|
21
|
+
export interface ReportProps<T> extends Pick<ComponentPropsWithRef<'div'>, 'ref' | 'style' | 'className'> {
|
|
22
22
|
items: readonly T[];
|
|
23
23
|
/** IDs must be unique across all rows, including nested rows. */
|
|
24
24
|
getRowId: (item: T) => string;
|
|
@@ -32,6 +32,7 @@ export interface ReportProps<T> {
|
|
|
32
32
|
/** Controlled column widths in pixels. Omit to manage resizing internally. */
|
|
33
33
|
columnWidths?: Readonly<Record<string, number>>;
|
|
34
34
|
onColumnWidthsChange?: (widths: Record<string, number>) => void;
|
|
35
|
+
/** Freeze the first column while scrolling horizontally. Defaults to true. */
|
|
35
36
|
stickyFirstColumn?: boolean;
|
|
36
37
|
/** Supplying child rows enables the Nested layout option. */
|
|
37
38
|
getSubRows?: (item: T) => readonly T[] | undefined;
|
|
@@ -50,12 +51,13 @@ export interface ReportProps<T> {
|
|
|
50
51
|
rowCount?: number;
|
|
51
52
|
/** Replaces the default row-count footer. */
|
|
52
53
|
footer?: ReactNode;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
toolbarRef?: ComponentPropsWithRef<'div'>['ref'];
|
|
55
|
+
/** Style the toolbar from the surrounding layout. */
|
|
56
|
+
toolbarStyle?: CSSProperties;
|
|
57
|
+
headerRef?: ComponentPropsWithRef<'div'>['ref'];
|
|
58
|
+
/** Style the column headers and totals from the surrounding layout. */
|
|
59
|
+
headerStyle?: CSSProperties;
|
|
60
|
+
/** Style the horizontal scrollbar rail from the surrounding layout. */
|
|
61
|
+
scrollbarStyle?: CSSProperties;
|
|
60
62
|
}
|
|
61
63
|
//# sourceMappingURL=types.d.ts.map
|