@vuu-ui/vuu-table 0.6.15-debug → 0.6.16-debug
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/cjs/index.js +15 -9
- package/cjs/index.js.map +3 -3
- package/esm/index.js +18 -10
- package/esm/index.js.map +3 -3
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -1505,7 +1505,9 @@ var useTableColumnResize = ({
|
|
|
1505
1505
|
const handleResizeEnd = (0, import_react17.useCallback)(() => {
|
|
1506
1506
|
if (onResize) {
|
|
1507
1507
|
onResize("end", name2, widthRef.current);
|
|
1508
|
-
|
|
1508
|
+
setTimeout(() => {
|
|
1509
|
+
isResizing.current = false;
|
|
1510
|
+
}, 100);
|
|
1509
1511
|
}
|
|
1510
1512
|
}, [name2, onResize]);
|
|
1511
1513
|
return {
|
|
@@ -18408,10 +18410,10 @@ var LRParser = class extends Parser {
|
|
|
18408
18410
|
if (config.props)
|
|
18409
18411
|
copy.nodeSet = this.nodeSet.extend(...config.props);
|
|
18410
18412
|
if (config.top) {
|
|
18411
|
-
let
|
|
18412
|
-
if (!
|
|
18413
|
+
let info2 = this.topRules[config.top];
|
|
18414
|
+
if (!info2)
|
|
18413
18415
|
throw new RangeError(`Invalid top rule name ${config.top}`);
|
|
18414
|
-
copy.top =
|
|
18416
|
+
copy.top = info2;
|
|
18415
18417
|
}
|
|
18416
18418
|
if (config.tokenizers)
|
|
18417
18419
|
copy.tokenizers = this.tokenizers.map((t2) => {
|
|
@@ -20206,10 +20208,11 @@ var ServerProxy = class {
|
|
|
20206
20208
|
type: REMOVE_VP,
|
|
20207
20209
|
viewPortId: serverViewportId
|
|
20208
20210
|
});
|
|
20211
|
+
} else {
|
|
20212
|
+
error3(
|
|
20213
|
+
\`failed to unsubscribe client viewport \${clientViewportId}, viewport not found\`
|
|
20214
|
+
);
|
|
20209
20215
|
}
|
|
20210
|
-
error3(
|
|
20211
|
-
\`failed to unsubscribe client viewport \${clientViewportId}, viewport not found\`
|
|
20212
|
-
);
|
|
20213
20216
|
}
|
|
20214
20217
|
getViewportForClient(clientViewportId, throws = true) {
|
|
20215
20218
|
const serverViewportId = this.mapClientToServerViewport.get(clientViewportId);
|
|
@@ -22421,7 +22424,7 @@ var RowBasedTable = ({
|
|
|
22421
22424
|
".vuuTable-headerCell"
|
|
22422
22425
|
);
|
|
22423
22426
|
const colIdx = parseInt((_a2 = headerCell == null ? void 0 : headerCell.dataset.idx) != null ? _a2 : "-1");
|
|
22424
|
-
const column = columns
|
|
22427
|
+
const column = (0, import_vuu_utils17.visibleColumnAtIndex)(columns, colIdx);
|
|
22425
22428
|
const isAdditive = evt.shiftKey;
|
|
22426
22429
|
column && onSort(column, isAdditive);
|
|
22427
22430
|
},
|
|
@@ -23205,6 +23208,7 @@ var useSelection = ({
|
|
|
23205
23208
|
var import_salt_lab8 = require("@heswell/salt-lab");
|
|
23206
23209
|
var import_vuu_utils21 = require("@vuu-ui/vuu-utils");
|
|
23207
23210
|
var import_react39 = require("react");
|
|
23211
|
+
var { info } = (0, import_vuu_utils21.logger)("useTableModel");
|
|
23208
23212
|
var DEFAULT_COLUMN_WIDTH = 100;
|
|
23209
23213
|
var KEY_OFFSET = import_vuu_utils21.metadataKeys.count;
|
|
23210
23214
|
var columnWithoutDataType = ({ serverDataType }) => serverDataType === void 0;
|
|
@@ -23226,6 +23230,7 @@ var getDataType = (column, columnNames, dataTypes) => {
|
|
|
23226
23230
|
var numericTypes = ["int", "long", "double"];
|
|
23227
23231
|
var getDefaultAlignment = (serverDataType) => serverDataType === void 0 ? void 0 : numericTypes.includes(serverDataType) ? "right" : "left";
|
|
23228
23232
|
var columnReducer = (state, action) => {
|
|
23233
|
+
info == null ? void 0 : info(`GridModelReducer ${action.type}`);
|
|
23229
23234
|
switch (action.type) {
|
|
23230
23235
|
case "init":
|
|
23231
23236
|
return init(action);
|
|
@@ -23268,9 +23273,10 @@ function init({ dataSourceConfig, tableConfig }) {
|
|
|
23268
23273
|
headings: (0, import_vuu_utils21.getTableHeadings)(maybePinnedColumns)
|
|
23269
23274
|
};
|
|
23270
23275
|
if (dataSourceConfig) {
|
|
23276
|
+
const { columns: columns2, ...rest } = dataSourceConfig;
|
|
23271
23277
|
return updateTableConfig(state, {
|
|
23272
23278
|
type: "tableConfig",
|
|
23273
|
-
...
|
|
23279
|
+
...rest
|
|
23274
23280
|
});
|
|
23275
23281
|
} else {
|
|
23276
23282
|
return state;
|