@orient-ai/aurora-ui 1.0.0-alpha.3 → 1.0.0-alpha.5
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 +3 -3
- 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 +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +3 -6
- 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/Frame/context/FrameStackContext.d.ts +5 -1
- package/dist/components/Frame/context/FrameStackContext.d.ts.map +1 -1
- package/dist/components/Frame/index.d.ts +1 -0
- 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.d.ts +3 -1
- package/dist/components/IndexTable/DataTable/BulkActions.d.ts.map +1 -1
- package/dist/components/IndexTable/DataTable/DataTable.d.ts +8 -8
- package/dist/components/IndexTable/DataTable/DataTable.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 +3 -5
- package/dist/components/IndexTable/Toolbar/Toolbar.d.ts.map +1 -1
- 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 +0 -1
- package/dist/components/IndexTable/Toolbar/types.d.ts.map +1 -1
- package/dist/components/IndexTable/index.d.ts +2 -0
- package/dist/components/IndexTable/index.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 +2 -1
- package/dist/components/Page/Page.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +2 -1
- package/dist/components/PageHeader/PageHeader.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/TextField/TextField.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4487 -4494
- package/package.json +1 -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/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
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Report/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Report/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7E,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE7C,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;IACnC,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;CAC3C;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,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;IACvB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,UAAU,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;IACjD,qDAAqD;IACrD,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;IAChD,uEAAuE;IACvE,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,uEAAuE;IACvE,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReportProps } from './types';
|
|
2
|
+
export declare function useReportTable<T>({ columnDefinitions, columnWidths, onColumnWidthsChange, resizable, direction, }: Pick<ReportProps<T>, 'columnDefinitions' | 'columnWidths' | 'onColumnWidthsChange' | 'resizable'> & {
|
|
3
|
+
direction: 'ltr' | 'rtl';
|
|
4
|
+
}): import('@tanstack/react-table').ReactTable<{
|
|
5
|
+
columnSizingFeature: import('@tanstack/react-table').TableFeature;
|
|
6
|
+
columnResizingFeature: import('@tanstack/react-table').TableFeature;
|
|
7
|
+
}, never, import('@tanstack/react-table').TableState_ColumnResizing & import('@tanstack/react-table').TableState_ColumnSizing>;
|
|
8
|
+
//# sourceMappingURL=useReportTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReportTable.d.ts","sourceRoot":"","sources":["../../../src/components/Report/useReportTable.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAM3C,wBAAgB,cAAc,CAAC,CAAC,EAAE,EAChC,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACT,SAAS,GACV,EAAE,IAAI,CACL,WAAW,CAAC,CAAC,CAAC,EACd,mBAAmB,GAAG,cAAc,GAAG,sBAAsB,GAAG,WAAW,CAC5E,GAAG;IAAE,SAAS,EAAE,KAAK,GAAG,KAAK,CAAA;CAAE;;;+HA6C/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAIjD,KAAK,qBAAqB,GACtB,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,cAAc,GACd,SAAS,GACT,aAAa,GACb,YAAY,GACZ,kBAAkB,GAClB,kBAAkB,GAClB,UAAU,GACV,MAAM,GACN,UAAU,GACV,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,aAAa,GACb,KAAK,GACL,gBAAgB,GAChB,sBAAsB,GACtB,UAAU,GACV,SAAS,GACT,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,SAAS,CAAC;AAEd,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,UAAU,GACV,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,cAAc,GACd,cAAc,CACjB;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EACT,IAAI,GACJ,KAAK,GACL,qBAAqB,GACrB,WAAW,MAAM,IAAI,qBAAqB,EAAE,GAC5C,GAAG,UAAU,GAAG,SAAS,IAAI,qBAAqB,EAAE,GACpD,WAAW,MAAM,IAAI,UAAU,GAAG,SAAS,IAAI,qBAAqB,EAAE,CAAC;IAC3E,MAAM,CAAC,EAAE,KAAK,CAAC,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