@infinite-table/infinite-react 4.3.6 → 4.3.7
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/index.d.ts +24 -3
- package/index.dev.js +19 -3
- package/index.dev.mjs +19 -3
- package/index.js +19 -3
- package/index.mjs +19 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -632,7 +632,13 @@ declare type InfiniteTableColumn<DATA_TYPE> = {
|
|
|
632
632
|
field?: KeyOfNoSymbol<DATA_TYPE>;
|
|
633
633
|
valueGetter?: InfiniteTableColumnValueGetter<DATA_TYPE>;
|
|
634
634
|
defaultSortable?: InfiniteTableColumnSortable<DATA_TYPE>;
|
|
635
|
-
|
|
635
|
+
/**
|
|
636
|
+
* Whether the column is draggable by default.
|
|
637
|
+
*
|
|
638
|
+
* This prop overrides the top-level columnDefaultDraggable prop, but is
|
|
639
|
+
* overridden by the top-level draggableColumns prop.
|
|
640
|
+
*/
|
|
641
|
+
defaultDraggable?: boolean;
|
|
636
642
|
resizable?: boolean;
|
|
637
643
|
shouldAcceptEdit?: (params: InfiniteTablePropOnEditAcceptedParams<DATA_TYPE>) => boolean | Error | Promise<boolean | Error>;
|
|
638
644
|
contentFocusable?: InfiniteTableColumnContentFocusable<DATA_TYPE>;
|
|
@@ -1460,7 +1466,8 @@ interface InfiniteTableMappedState<T> {
|
|
|
1460
1466
|
columnDefaultWidth: NonUndefined<InfiniteTableProps<T>['columnDefaultWidth']>;
|
|
1461
1467
|
columnDefaultFlex: InfiniteTableProps<T>['columnDefaultFlex'];
|
|
1462
1468
|
columnCssEllipsis: NonUndefined<InfiniteTableProps<T>['columnCssEllipsis']>;
|
|
1463
|
-
draggableColumns:
|
|
1469
|
+
draggableColumns: InfiniteTableProps<T>['draggableColumns'];
|
|
1470
|
+
columnDefaultDraggable: InfiniteTableProps<T>['columnDefaultDraggable'];
|
|
1464
1471
|
sortable: InfiniteTableProps<T>['sortable'];
|
|
1465
1472
|
hideEmptyGroupColumns: NonUndefined<InfiniteTableProps<T>['hideEmptyGroupColumns']>;
|
|
1466
1473
|
hideColumnWhenGrouped: NonUndefined<InfiniteTableProps<T>['hideColumnWhenGrouped']>;
|
|
@@ -4783,7 +4790,7 @@ declare type InfiniteTableColumnType<T> = {
|
|
|
4783
4790
|
defaultHiddenWhenGroupedBy?: InfiniteTableColumn<T>['defaultHiddenWhenGroupedBy'];
|
|
4784
4791
|
header?: InfiniteTableColumn<T>['header'];
|
|
4785
4792
|
comparer?: InfiniteTableColumn<T>['comparer'];
|
|
4786
|
-
draggable?: InfiniteTableColumn<T>['
|
|
4793
|
+
draggable?: InfiniteTableColumn<T>['defaultDraggable'];
|
|
4787
4794
|
resizable?: InfiniteTableColumn<T>['resizable'];
|
|
4788
4795
|
align?: InfiniteTableColumn<T>['align'];
|
|
4789
4796
|
headerAlign?: InfiniteTableColumn<T>['headerAlign'];
|
|
@@ -4942,6 +4949,7 @@ interface InfiniteTableApi<T> {
|
|
|
4942
4949
|
getSortingForColumn: (columnId: string) => SortDir | null;
|
|
4943
4950
|
getColumnApi: (columnId: string) => InfiniteTableColumnApi<T> | null;
|
|
4944
4951
|
setVisibilityForColumn: (columnId: string, visible: boolean) => void;
|
|
4952
|
+
setVisibilityForColumnGroup: (columnGroupId: string, visible: boolean) => void;
|
|
4945
4953
|
getVisibleColumnsCount: () => number;
|
|
4946
4954
|
scrollRowIntoView: (rowIndex: number, config?: {
|
|
4947
4955
|
scrollAdjustPosition?: ScrollAdjustPosition;
|
|
@@ -5095,6 +5103,7 @@ interface InfiniteTableProps<T> {
|
|
|
5095
5103
|
hideEmptyGroupColumns?: boolean;
|
|
5096
5104
|
columnVisibility?: InfiniteTablePropColumnVisibility;
|
|
5097
5105
|
columnGroupVisibility?: InfiniteTablePropColumnGroupVisibility;
|
|
5106
|
+
defaultColumnGroupVisibility?: InfiniteTablePropColumnGroupVisibility;
|
|
5098
5107
|
defaultColumnVisibility?: InfiniteTablePropColumnVisibility;
|
|
5099
5108
|
pinnedStartMaxWidth?: number;
|
|
5100
5109
|
pinnedEndMaxWidth?: number;
|
|
@@ -5120,6 +5129,7 @@ interface InfiniteTableProps<T> {
|
|
|
5120
5129
|
collapsedColumnGroups?: InfiniteTablePropCollapsedColumnGroups;
|
|
5121
5130
|
onScrollbarsChange?: (scrollbars: Scrollbars) => void;
|
|
5122
5131
|
onColumnVisibilityChange?: (columnVisibility: InfiniteTablePropColumnVisibility) => void;
|
|
5132
|
+
onColumnGroupVisibilityChange?: (columnGroupVisibility: InfiniteTablePropColumnGroupVisibility) => void;
|
|
5123
5133
|
columnTypes?: InfiniteTablePropColumnTypes<T>;
|
|
5124
5134
|
showSeparatePivotColumnForSingleAggregation?: boolean;
|
|
5125
5135
|
isRowDetailExpanded?: (rowInfo: InfiniteTableRowInfo<T>) => boolean;
|
|
@@ -5172,6 +5182,17 @@ interface InfiniteTableProps<T> {
|
|
|
5172
5182
|
onActiveCellIndexChange?: (activeCellIndex: [number, number]) => void;
|
|
5173
5183
|
activeCellIndex?: [number, number] | null;
|
|
5174
5184
|
defaultActiveCellIndex?: [number, number] | null;
|
|
5185
|
+
/**
|
|
5186
|
+
* Whether the columns are draggable by default.
|
|
5187
|
+
*
|
|
5188
|
+
* This is the prop that has the lowest priority - it's overridden by column.defaultDraggable and ultimately by draggableColumns
|
|
5189
|
+
*/
|
|
5190
|
+
columnDefaultDraggable?: boolean;
|
|
5191
|
+
/**
|
|
5192
|
+
* Whether the columns are draggable by default.
|
|
5193
|
+
*
|
|
5194
|
+
* This is the prop that has the highest priority - overrides columnDefaultDraggable and column.defaultDraggable
|
|
5195
|
+
*/
|
|
5175
5196
|
draggableColumns?: boolean;
|
|
5176
5197
|
draggableColumnsRestrictTo?: false | 'group';
|
|
5177
5198
|
header?: boolean;
|
package/index.dev.js
CHANGED
|
@@ -5686,6 +5686,7 @@ var getComputedColumns = ({
|
|
|
5686
5686
|
viewportReservedWidth,
|
|
5687
5687
|
resizableColumns,
|
|
5688
5688
|
draggableColumns,
|
|
5689
|
+
columnDefaultDraggable,
|
|
5689
5690
|
columnOrder,
|
|
5690
5691
|
columnPinning,
|
|
5691
5692
|
editable,
|
|
@@ -5969,7 +5970,7 @@ var getComputedColumns = ({
|
|
|
5969
5970
|
computedSortedDesc,
|
|
5970
5971
|
computedVisibleIndex,
|
|
5971
5972
|
computedPinned,
|
|
5972
|
-
computedDraggable: (_z = (_y = c.
|
|
5973
|
+
computedDraggable: (_z = (_y = draggableColumns != null ? draggableColumns : c.defaultDraggable) != null ? _y : columnDefaultDraggable) != null ? _z : DEFAULT_DRAGGABLE,
|
|
5973
5974
|
computedFirstInCategory,
|
|
5974
5975
|
computedLastInCategory,
|
|
5975
5976
|
computedFirst: theComputedVisibleIndex === 0,
|
|
@@ -15918,6 +15919,15 @@ var InfiniteTableApiImpl = class {
|
|
|
15918
15919
|
this.setColumnOrder = (columnOrder) => {
|
|
15919
15920
|
this.actions.columnOrder = columnOrder;
|
|
15920
15921
|
};
|
|
15922
|
+
this.setVisibilityForColumnGroup = (columnGroupId, visible) => {
|
|
15923
|
+
const columnGroupVisibility = __spreadValues({}, this.getState().columnGroupVisibility);
|
|
15924
|
+
if (visible) {
|
|
15925
|
+
delete columnGroupVisibility[columnGroupId];
|
|
15926
|
+
} else {
|
|
15927
|
+
columnGroupVisibility[columnGroupId] = false;
|
|
15928
|
+
}
|
|
15929
|
+
this.actions.columnGroupVisibility = columnGroupVisibility;
|
|
15930
|
+
};
|
|
15921
15931
|
this.collapseAllGroupRows = () => {
|
|
15922
15932
|
const state = this.getDataSourceState();
|
|
15923
15933
|
const newState = new GroupRowsState(state.groupRowsState);
|
|
@@ -17563,7 +17573,8 @@ var forwardProps4 = (_setupState) => {
|
|
|
17563
17573
|
columnMaxWidth: (columnMaxWidth) => columnMaxWidth != null ? columnMaxWidth : 5e3,
|
|
17564
17574
|
columnDefaultWidth: (columnDefaultWidth) => columnDefaultWidth != null ? columnDefaultWidth : 200,
|
|
17565
17575
|
columnCssEllipsis: (columnCssEllipsis) => columnCssEllipsis != null ? columnCssEllipsis : true,
|
|
17566
|
-
draggableColumns:
|
|
17576
|
+
draggableColumns: 1,
|
|
17577
|
+
columnDefaultDraggable: 1,
|
|
17567
17578
|
headerOptions: (headerOptions) => __spreadValues({
|
|
17568
17579
|
alwaysReserveSpaceForSortIcon: true
|
|
17569
17580
|
}, headerOptions),
|
|
@@ -18284,6 +18295,7 @@ var useComputedColumns = ({
|
|
|
18284
18295
|
columnCssEllipsis,
|
|
18285
18296
|
columnHeaderCssEllipsis,
|
|
18286
18297
|
draggableColumns,
|
|
18298
|
+
columnDefaultDraggable,
|
|
18287
18299
|
sortInfo,
|
|
18288
18300
|
multiSort,
|
|
18289
18301
|
filterValue,
|
|
@@ -18345,6 +18357,7 @@ var useComputedColumns = ({
|
|
|
18345
18357
|
pinnedEndMaxWidth,
|
|
18346
18358
|
pinnedStartMaxWidth,
|
|
18347
18359
|
draggableColumns,
|
|
18360
|
+
columnDefaultDraggable,
|
|
18348
18361
|
columnOrder,
|
|
18349
18362
|
columnPinning,
|
|
18350
18363
|
columnDefaultEditable,
|
|
@@ -18372,6 +18385,8 @@ var useComputedColumns = ({
|
|
|
18372
18385
|
columnOrder,
|
|
18373
18386
|
columnVisibility,
|
|
18374
18387
|
columnVisibilityAssumeVisible,
|
|
18388
|
+
columnDefaultDraggable,
|
|
18389
|
+
draggableColumns,
|
|
18375
18390
|
resizableColumns,
|
|
18376
18391
|
pinnedEndMaxWidth,
|
|
18377
18392
|
pinnedStartMaxWidth,
|
|
@@ -18629,6 +18644,7 @@ function useComputed() {
|
|
|
18629
18644
|
columnDefaultWidth: componentState.columnDefaultWidth,
|
|
18630
18645
|
columnDefaultFlex: componentState.columnDefaultFlex,
|
|
18631
18646
|
columnDefaultSortable: componentState.columnDefaultSortable,
|
|
18647
|
+
columnDefaultDraggable: componentState.columnDefaultDraggable,
|
|
18632
18648
|
pinnedStartMaxWidth: componentState.pinnedStartMaxWidth,
|
|
18633
18649
|
pinnedEndMaxWidth: componentState.pinnedEndMaxWidth,
|
|
18634
18650
|
bodySize,
|
|
@@ -18893,7 +18909,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18893
18909
|
}
|
|
18894
18910
|
let valid2 = isValidLicense(licenseKey, {
|
|
18895
18911
|
publishedAt: 1624970570587,
|
|
18896
|
-
version: "4.3.
|
|
18912
|
+
version: "4.3.7"
|
|
18897
18913
|
});
|
|
18898
18914
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18899
18915
|
return true;
|
package/index.dev.mjs
CHANGED
|
@@ -5649,6 +5649,7 @@ var getComputedColumns = ({
|
|
|
5649
5649
|
viewportReservedWidth,
|
|
5650
5650
|
resizableColumns,
|
|
5651
5651
|
draggableColumns,
|
|
5652
|
+
columnDefaultDraggable,
|
|
5652
5653
|
columnOrder,
|
|
5653
5654
|
columnPinning,
|
|
5654
5655
|
editable,
|
|
@@ -5932,7 +5933,7 @@ var getComputedColumns = ({
|
|
|
5932
5933
|
computedSortedDesc,
|
|
5933
5934
|
computedVisibleIndex,
|
|
5934
5935
|
computedPinned,
|
|
5935
|
-
computedDraggable: (_z = (_y = c.
|
|
5936
|
+
computedDraggable: (_z = (_y = draggableColumns != null ? draggableColumns : c.defaultDraggable) != null ? _y : columnDefaultDraggable) != null ? _z : DEFAULT_DRAGGABLE,
|
|
5936
5937
|
computedFirstInCategory,
|
|
5937
5938
|
computedLastInCategory,
|
|
5938
5939
|
computedFirst: theComputedVisibleIndex === 0,
|
|
@@ -15886,6 +15887,15 @@ var InfiniteTableApiImpl = class {
|
|
|
15886
15887
|
this.setColumnOrder = (columnOrder) => {
|
|
15887
15888
|
this.actions.columnOrder = columnOrder;
|
|
15888
15889
|
};
|
|
15890
|
+
this.setVisibilityForColumnGroup = (columnGroupId, visible) => {
|
|
15891
|
+
const columnGroupVisibility = __spreadValues({}, this.getState().columnGroupVisibility);
|
|
15892
|
+
if (visible) {
|
|
15893
|
+
delete columnGroupVisibility[columnGroupId];
|
|
15894
|
+
} else {
|
|
15895
|
+
columnGroupVisibility[columnGroupId] = false;
|
|
15896
|
+
}
|
|
15897
|
+
this.actions.columnGroupVisibility = columnGroupVisibility;
|
|
15898
|
+
};
|
|
15889
15899
|
this.collapseAllGroupRows = () => {
|
|
15890
15900
|
const state = this.getDataSourceState();
|
|
15891
15901
|
const newState = new GroupRowsState(state.groupRowsState);
|
|
@@ -17535,7 +17545,8 @@ var forwardProps4 = (_setupState) => {
|
|
|
17535
17545
|
columnMaxWidth: (columnMaxWidth) => columnMaxWidth != null ? columnMaxWidth : 5e3,
|
|
17536
17546
|
columnDefaultWidth: (columnDefaultWidth) => columnDefaultWidth != null ? columnDefaultWidth : 200,
|
|
17537
17547
|
columnCssEllipsis: (columnCssEllipsis) => columnCssEllipsis != null ? columnCssEllipsis : true,
|
|
17538
|
-
draggableColumns:
|
|
17548
|
+
draggableColumns: 1,
|
|
17549
|
+
columnDefaultDraggable: 1,
|
|
17539
17550
|
headerOptions: (headerOptions) => __spreadValues({
|
|
17540
17551
|
alwaysReserveSpaceForSortIcon: true
|
|
17541
17552
|
}, headerOptions),
|
|
@@ -18256,6 +18267,7 @@ var useComputedColumns = ({
|
|
|
18256
18267
|
columnCssEllipsis,
|
|
18257
18268
|
columnHeaderCssEllipsis,
|
|
18258
18269
|
draggableColumns,
|
|
18270
|
+
columnDefaultDraggable,
|
|
18259
18271
|
sortInfo,
|
|
18260
18272
|
multiSort,
|
|
18261
18273
|
filterValue,
|
|
@@ -18317,6 +18329,7 @@ var useComputedColumns = ({
|
|
|
18317
18329
|
pinnedEndMaxWidth,
|
|
18318
18330
|
pinnedStartMaxWidth,
|
|
18319
18331
|
draggableColumns,
|
|
18332
|
+
columnDefaultDraggable,
|
|
18320
18333
|
columnOrder,
|
|
18321
18334
|
columnPinning,
|
|
18322
18335
|
columnDefaultEditable,
|
|
@@ -18344,6 +18357,8 @@ var useComputedColumns = ({
|
|
|
18344
18357
|
columnOrder,
|
|
18345
18358
|
columnVisibility,
|
|
18346
18359
|
columnVisibilityAssumeVisible,
|
|
18360
|
+
columnDefaultDraggable,
|
|
18361
|
+
draggableColumns,
|
|
18347
18362
|
resizableColumns,
|
|
18348
18363
|
pinnedEndMaxWidth,
|
|
18349
18364
|
pinnedStartMaxWidth,
|
|
@@ -18601,6 +18616,7 @@ function useComputed() {
|
|
|
18601
18616
|
columnDefaultWidth: componentState.columnDefaultWidth,
|
|
18602
18617
|
columnDefaultFlex: componentState.columnDefaultFlex,
|
|
18603
18618
|
columnDefaultSortable: componentState.columnDefaultSortable,
|
|
18619
|
+
columnDefaultDraggable: componentState.columnDefaultDraggable,
|
|
18604
18620
|
pinnedStartMaxWidth: componentState.pinnedStartMaxWidth,
|
|
18605
18621
|
pinnedEndMaxWidth: componentState.pinnedEndMaxWidth,
|
|
18606
18622
|
bodySize,
|
|
@@ -18865,7 +18881,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18865
18881
|
}
|
|
18866
18882
|
let valid2 = isValidLicense(licenseKey, {
|
|
18867
18883
|
publishedAt: 1624970570587,
|
|
18868
|
-
version: "4.3.
|
|
18884
|
+
version: "4.3.7"
|
|
18869
18885
|
});
|
|
18870
18886
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18871
18887
|
return true;
|
package/index.js
CHANGED
|
@@ -5686,6 +5686,7 @@ var getComputedColumns = ({
|
|
|
5686
5686
|
viewportReservedWidth,
|
|
5687
5687
|
resizableColumns,
|
|
5688
5688
|
draggableColumns,
|
|
5689
|
+
columnDefaultDraggable,
|
|
5689
5690
|
columnOrder,
|
|
5690
5691
|
columnPinning,
|
|
5691
5692
|
editable,
|
|
@@ -5969,7 +5970,7 @@ var getComputedColumns = ({
|
|
|
5969
5970
|
computedSortedDesc,
|
|
5970
5971
|
computedVisibleIndex,
|
|
5971
5972
|
computedPinned,
|
|
5972
|
-
computedDraggable: (_z = (_y = c.
|
|
5973
|
+
computedDraggable: (_z = (_y = draggableColumns != null ? draggableColumns : c.defaultDraggable) != null ? _y : columnDefaultDraggable) != null ? _z : DEFAULT_DRAGGABLE,
|
|
5973
5974
|
computedFirstInCategory,
|
|
5974
5975
|
computedLastInCategory,
|
|
5975
5976
|
computedFirst: theComputedVisibleIndex === 0,
|
|
@@ -15918,6 +15919,15 @@ var InfiniteTableApiImpl = class {
|
|
|
15918
15919
|
this.setColumnOrder = (columnOrder) => {
|
|
15919
15920
|
this.actions.columnOrder = columnOrder;
|
|
15920
15921
|
};
|
|
15922
|
+
this.setVisibilityForColumnGroup = (columnGroupId, visible) => {
|
|
15923
|
+
const columnGroupVisibility = __spreadValues({}, this.getState().columnGroupVisibility);
|
|
15924
|
+
if (visible) {
|
|
15925
|
+
delete columnGroupVisibility[columnGroupId];
|
|
15926
|
+
} else {
|
|
15927
|
+
columnGroupVisibility[columnGroupId] = false;
|
|
15928
|
+
}
|
|
15929
|
+
this.actions.columnGroupVisibility = columnGroupVisibility;
|
|
15930
|
+
};
|
|
15921
15931
|
this.collapseAllGroupRows = () => {
|
|
15922
15932
|
const state = this.getDataSourceState();
|
|
15923
15933
|
const newState = new GroupRowsState(state.groupRowsState);
|
|
@@ -17563,7 +17573,8 @@ var forwardProps4 = (_setupState) => {
|
|
|
17563
17573
|
columnMaxWidth: (columnMaxWidth) => columnMaxWidth != null ? columnMaxWidth : 5e3,
|
|
17564
17574
|
columnDefaultWidth: (columnDefaultWidth) => columnDefaultWidth != null ? columnDefaultWidth : 200,
|
|
17565
17575
|
columnCssEllipsis: (columnCssEllipsis) => columnCssEllipsis != null ? columnCssEllipsis : true,
|
|
17566
|
-
draggableColumns:
|
|
17576
|
+
draggableColumns: 1,
|
|
17577
|
+
columnDefaultDraggable: 1,
|
|
17567
17578
|
headerOptions: (headerOptions) => __spreadValues({
|
|
17568
17579
|
alwaysReserveSpaceForSortIcon: true
|
|
17569
17580
|
}, headerOptions),
|
|
@@ -18284,6 +18295,7 @@ var useComputedColumns = ({
|
|
|
18284
18295
|
columnCssEllipsis,
|
|
18285
18296
|
columnHeaderCssEllipsis,
|
|
18286
18297
|
draggableColumns,
|
|
18298
|
+
columnDefaultDraggable,
|
|
18287
18299
|
sortInfo,
|
|
18288
18300
|
multiSort,
|
|
18289
18301
|
filterValue,
|
|
@@ -18345,6 +18357,7 @@ var useComputedColumns = ({
|
|
|
18345
18357
|
pinnedEndMaxWidth,
|
|
18346
18358
|
pinnedStartMaxWidth,
|
|
18347
18359
|
draggableColumns,
|
|
18360
|
+
columnDefaultDraggable,
|
|
18348
18361
|
columnOrder,
|
|
18349
18362
|
columnPinning,
|
|
18350
18363
|
columnDefaultEditable,
|
|
@@ -18372,6 +18385,8 @@ var useComputedColumns = ({
|
|
|
18372
18385
|
columnOrder,
|
|
18373
18386
|
columnVisibility,
|
|
18374
18387
|
columnVisibilityAssumeVisible,
|
|
18388
|
+
columnDefaultDraggable,
|
|
18389
|
+
draggableColumns,
|
|
18375
18390
|
resizableColumns,
|
|
18376
18391
|
pinnedEndMaxWidth,
|
|
18377
18392
|
pinnedStartMaxWidth,
|
|
@@ -18629,6 +18644,7 @@ function useComputed() {
|
|
|
18629
18644
|
columnDefaultWidth: componentState.columnDefaultWidth,
|
|
18630
18645
|
columnDefaultFlex: componentState.columnDefaultFlex,
|
|
18631
18646
|
columnDefaultSortable: componentState.columnDefaultSortable,
|
|
18647
|
+
columnDefaultDraggable: componentState.columnDefaultDraggable,
|
|
18632
18648
|
pinnedStartMaxWidth: componentState.pinnedStartMaxWidth,
|
|
18633
18649
|
pinnedEndMaxWidth: componentState.pinnedEndMaxWidth,
|
|
18634
18650
|
bodySize,
|
|
@@ -18893,7 +18909,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18893
18909
|
}
|
|
18894
18910
|
let valid2 = isValidLicense(licenseKey, {
|
|
18895
18911
|
publishedAt: 1624970570587,
|
|
18896
|
-
version: "4.3.
|
|
18912
|
+
version: "4.3.7"
|
|
18897
18913
|
});
|
|
18898
18914
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18899
18915
|
return true;
|
package/index.mjs
CHANGED
|
@@ -5649,6 +5649,7 @@ var getComputedColumns = ({
|
|
|
5649
5649
|
viewportReservedWidth,
|
|
5650
5650
|
resizableColumns,
|
|
5651
5651
|
draggableColumns,
|
|
5652
|
+
columnDefaultDraggable,
|
|
5652
5653
|
columnOrder,
|
|
5653
5654
|
columnPinning,
|
|
5654
5655
|
editable,
|
|
@@ -5932,7 +5933,7 @@ var getComputedColumns = ({
|
|
|
5932
5933
|
computedSortedDesc,
|
|
5933
5934
|
computedVisibleIndex,
|
|
5934
5935
|
computedPinned,
|
|
5935
|
-
computedDraggable: (_z = (_y = c.
|
|
5936
|
+
computedDraggable: (_z = (_y = draggableColumns != null ? draggableColumns : c.defaultDraggable) != null ? _y : columnDefaultDraggable) != null ? _z : DEFAULT_DRAGGABLE,
|
|
5936
5937
|
computedFirstInCategory,
|
|
5937
5938
|
computedLastInCategory,
|
|
5938
5939
|
computedFirst: theComputedVisibleIndex === 0,
|
|
@@ -15886,6 +15887,15 @@ var InfiniteTableApiImpl = class {
|
|
|
15886
15887
|
this.setColumnOrder = (columnOrder) => {
|
|
15887
15888
|
this.actions.columnOrder = columnOrder;
|
|
15888
15889
|
};
|
|
15890
|
+
this.setVisibilityForColumnGroup = (columnGroupId, visible) => {
|
|
15891
|
+
const columnGroupVisibility = __spreadValues({}, this.getState().columnGroupVisibility);
|
|
15892
|
+
if (visible) {
|
|
15893
|
+
delete columnGroupVisibility[columnGroupId];
|
|
15894
|
+
} else {
|
|
15895
|
+
columnGroupVisibility[columnGroupId] = false;
|
|
15896
|
+
}
|
|
15897
|
+
this.actions.columnGroupVisibility = columnGroupVisibility;
|
|
15898
|
+
};
|
|
15889
15899
|
this.collapseAllGroupRows = () => {
|
|
15890
15900
|
const state = this.getDataSourceState();
|
|
15891
15901
|
const newState = new GroupRowsState(state.groupRowsState);
|
|
@@ -17535,7 +17545,8 @@ var forwardProps4 = (_setupState) => {
|
|
|
17535
17545
|
columnMaxWidth: (columnMaxWidth) => columnMaxWidth != null ? columnMaxWidth : 5e3,
|
|
17536
17546
|
columnDefaultWidth: (columnDefaultWidth) => columnDefaultWidth != null ? columnDefaultWidth : 200,
|
|
17537
17547
|
columnCssEllipsis: (columnCssEllipsis) => columnCssEllipsis != null ? columnCssEllipsis : true,
|
|
17538
|
-
draggableColumns:
|
|
17548
|
+
draggableColumns: 1,
|
|
17549
|
+
columnDefaultDraggable: 1,
|
|
17539
17550
|
headerOptions: (headerOptions) => __spreadValues({
|
|
17540
17551
|
alwaysReserveSpaceForSortIcon: true
|
|
17541
17552
|
}, headerOptions),
|
|
@@ -18256,6 +18267,7 @@ var useComputedColumns = ({
|
|
|
18256
18267
|
columnCssEllipsis,
|
|
18257
18268
|
columnHeaderCssEllipsis,
|
|
18258
18269
|
draggableColumns,
|
|
18270
|
+
columnDefaultDraggable,
|
|
18259
18271
|
sortInfo,
|
|
18260
18272
|
multiSort,
|
|
18261
18273
|
filterValue,
|
|
@@ -18317,6 +18329,7 @@ var useComputedColumns = ({
|
|
|
18317
18329
|
pinnedEndMaxWidth,
|
|
18318
18330
|
pinnedStartMaxWidth,
|
|
18319
18331
|
draggableColumns,
|
|
18332
|
+
columnDefaultDraggable,
|
|
18320
18333
|
columnOrder,
|
|
18321
18334
|
columnPinning,
|
|
18322
18335
|
columnDefaultEditable,
|
|
@@ -18344,6 +18357,8 @@ var useComputedColumns = ({
|
|
|
18344
18357
|
columnOrder,
|
|
18345
18358
|
columnVisibility,
|
|
18346
18359
|
columnVisibilityAssumeVisible,
|
|
18360
|
+
columnDefaultDraggable,
|
|
18361
|
+
draggableColumns,
|
|
18347
18362
|
resizableColumns,
|
|
18348
18363
|
pinnedEndMaxWidth,
|
|
18349
18364
|
pinnedStartMaxWidth,
|
|
@@ -18601,6 +18616,7 @@ function useComputed() {
|
|
|
18601
18616
|
columnDefaultWidth: componentState.columnDefaultWidth,
|
|
18602
18617
|
columnDefaultFlex: componentState.columnDefaultFlex,
|
|
18603
18618
|
columnDefaultSortable: componentState.columnDefaultSortable,
|
|
18619
|
+
columnDefaultDraggable: componentState.columnDefaultDraggable,
|
|
18604
18620
|
pinnedStartMaxWidth: componentState.pinnedStartMaxWidth,
|
|
18605
18621
|
pinnedEndMaxWidth: componentState.pinnedEndMaxWidth,
|
|
18606
18622
|
bodySize,
|
|
@@ -18865,7 +18881,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18865
18881
|
}
|
|
18866
18882
|
let valid2 = isValidLicense(licenseKey, {
|
|
18867
18883
|
publishedAt: 1624970570587,
|
|
18868
|
-
version: "4.3.
|
|
18884
|
+
version: "4.3.7"
|
|
18869
18885
|
});
|
|
18870
18886
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18871
18887
|
return true;
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/infinite-table/infinite-react/issues"
|
|
27
27
|
},
|
|
28
|
-
"version": "4.3.
|
|
28
|
+
"version": "4.3.7",
|
|
29
29
|
"main": "index.js",
|
|
30
30
|
"module": "index.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Commercial & Open Source",
|
|
36
36
|
"//": "will be updated at build time",
|
|
37
|
-
"publishedAt":
|
|
37
|
+
"publishedAt": 1723637108931
|
|
38
38
|
}
|