@canvas-components/react-list-table 0.3.14 → 0.3.16
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/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableScrollToOptions, ListTable, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN } from '@canvas-components/list-table';
|
|
2
|
+
export { EXPAND_COLUMN, ListTableCSSProperties, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableStyles, ROW_SELECTION_COLUMN, SELECTION_COLUMN, getListTableStoredPageSize } from '@canvas-components/list-table';
|
|
1
3
|
import * as react from 'react';
|
|
2
4
|
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
3
|
-
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableScrollToOptions, ListTable, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN } from '@canvas-components/list-table';
|
|
4
|
-
export { EXPAND_COLUMN, ROW_SELECTION_COLUMN, SELECTION_COLUMN } from '@canvas-components/list-table';
|
|
5
5
|
|
|
6
6
|
interface ReactListTableScrollConfig {
|
|
7
7
|
x?: number | string | true;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableScrollToOptions, ListTable, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN } from '@canvas-components/list-table';
|
|
2
|
+
export { EXPAND_COLUMN, ListTableCSSProperties, ListTablePaginationCSSProperties, ListTablePaginationStyleSlot, ListTablePaginationStyles, ListTableScrollbarCSSProperties, ListTableStyles, ROW_SELECTION_COLUMN, SELECTION_COLUMN, getListTableStoredPageSize } from '@canvas-components/list-table';
|
|
1
3
|
import * as react from 'react';
|
|
2
4
|
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
3
|
-
import { ListTableOptions, ListTableQueryChange, ListTableExportXlsxOptions, ListTableScrollToOptions, ListTable, ListTableColumn, ListTablePaginationOptions, ListTableQueryOptions, ListTableRowSelectionOptions, EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN } from '@canvas-components/list-table';
|
|
4
|
-
export { EXPAND_COLUMN, ROW_SELECTION_COLUMN, SELECTION_COLUMN } from '@canvas-components/list-table';
|
|
5
5
|
|
|
6
6
|
interface ReactListTableScrollConfig {
|
|
7
7
|
x?: number | string | true;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createContext, forwardRef, useMemo, useRef, useState, useImperativeHand
|
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
3
|
import { ReactImagePreview, ReactNumberInput, ReactSelect, ReactPagination, ReactFilterPanel, ReactPopup, ReactModal, ReactInput, ReactPopconfirm, ReactContentScaleProvider, ReactInputNumber, ReactCheckbox, ReactAutoComplete, ReactColorPicker, ReactTimeRangePicker, ReactDateTimeRangePicker, ReactDateTimePicker, ReactTimePicker, ReactDateRangePicker, ReactDatePicker, ReactMonthPicker, ReactQuarterPicker, ReactYearPicker, ReactInputRange } from '@canvas-components/react-components';
|
|
4
4
|
import { EXPAND_COLUMN, SELECTION_COLUMN, ROW_SELECTION_COLUMN, resetListTableStoredColumnConfig, ListTable } from '@canvas-components/list-table';
|
|
5
|
-
export { EXPAND_COLUMN, ROW_SELECTION_COLUMN, SELECTION_COLUMN } from '@canvas-components/list-table';
|
|
5
|
+
export { EXPAND_COLUMN, ROW_SELECTION_COLUMN, SELECTION_COLUMN, getListTableStoredPageSize } from '@canvas-components/list-table';
|
|
6
6
|
import { formatDateTimeValue, isDateTimeFormatPattern } from '@canvas-components/utils/date';
|
|
7
7
|
import { formatNumberValue, formatPercentValue, formatScientificValue, formatCustomNumberPattern } from '@canvas-components/utils/number';
|
|
8
8
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -3123,6 +3123,7 @@ function ReactTablePaginationView(props) {
|
|
|
3123
3123
|
children: /* @__PURE__ */ jsx(
|
|
3124
3124
|
ReactPagination,
|
|
3125
3125
|
{
|
|
3126
|
+
styles: config.styles,
|
|
3126
3127
|
size: layout.size,
|
|
3127
3128
|
current: config.current,
|
|
3128
3129
|
total: config.total,
|
|
@@ -3874,6 +3875,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3874
3875
|
loading,
|
|
3875
3876
|
onRow,
|
|
3876
3877
|
theme,
|
|
3878
|
+
styles,
|
|
3877
3879
|
striped,
|
|
3878
3880
|
highlightMode,
|
|
3879
3881
|
contextMenu,
|
|
@@ -3914,6 +3916,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3914
3916
|
);
|
|
3915
3917
|
const [columnConfig, setColumnConfig] = useState(() => /* @__PURE__ */ new Map());
|
|
3916
3918
|
const [columnConfigRevision, setColumnConfigRevision] = useState(0);
|
|
3919
|
+
const [columnConfigResetRevision, setColumnConfigResetRevision] = useState(0);
|
|
3917
3920
|
const resolvedColumns = useMemo(
|
|
3918
3921
|
() => applyColumnManagerState(
|
|
3919
3922
|
columns,
|
|
@@ -3946,6 +3949,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3946
3949
|
loading,
|
|
3947
3950
|
onRow,
|
|
3948
3951
|
theme,
|
|
3952
|
+
styles,
|
|
3949
3953
|
striped,
|
|
3950
3954
|
highlightMode,
|
|
3951
3955
|
contextMenu,
|
|
@@ -3979,6 +3983,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3979
3983
|
...nextOptions,
|
|
3980
3984
|
...fullscreenSize,
|
|
3981
3985
|
columnConfigRevision,
|
|
3986
|
+
columnConfigResetRevision,
|
|
3982
3987
|
ui: {
|
|
3983
3988
|
...nextOptions.ui,
|
|
3984
3989
|
onDensityChange: setDensityOverride
|
|
@@ -3997,6 +4002,7 @@ function ReactListTableInner(props, ref) {
|
|
|
3997
4002
|
loading,
|
|
3998
4003
|
onRow,
|
|
3999
4004
|
theme,
|
|
4005
|
+
styles,
|
|
4000
4006
|
striped,
|
|
4001
4007
|
highlightMode,
|
|
4002
4008
|
contextMenu,
|
|
@@ -4021,7 +4027,8 @@ function ReactListTableInner(props, ref) {
|
|
|
4021
4027
|
rowDrag,
|
|
4022
4028
|
resolvedDebug,
|
|
4023
4029
|
isFullscreen,
|
|
4024
|
-
columnConfigRevision
|
|
4030
|
+
columnConfigRevision,
|
|
4031
|
+
columnConfigResetRevision
|
|
4025
4032
|
]);
|
|
4026
4033
|
const {
|
|
4027
4034
|
containerRef,
|
|
@@ -4147,6 +4154,7 @@ function ReactListTableInner(props, ref) {
|
|
|
4147
4154
|
setColumnVisibility(/* @__PURE__ */ new Map());
|
|
4148
4155
|
setColumnOrders(/* @__PURE__ */ new Map());
|
|
4149
4156
|
setColumnConfig(/* @__PURE__ */ new Map());
|
|
4157
|
+
setColumnConfigResetRevision((current) => current + 1);
|
|
4150
4158
|
setColumnConfigRevision((current) => current + 1);
|
|
4151
4159
|
});
|
|
4152
4160
|
}
|