@odoo/o-spreadsheet 19.0.15 → 19.0.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/o-spreadsheet.cjs.js +54 -45
- package/dist/o-spreadsheet.d.ts +6 -8
- package/dist/o-spreadsheet.esm.js +54 -45
- package/dist/o-spreadsheet.iife.js +54 -45
- package/dist/o-spreadsheet.iife.min.js +6 -6
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.xml +4 -6
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 19.0.
|
|
6
|
-
* @date
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.16
|
|
6
|
+
* @date 2026-01-07T16:21:15.857Z
|
|
7
|
+
* @hash 9f3f13a
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -51371,7 +51371,6 @@ class GridOverlay extends owl.Component {
|
|
|
51371
51371
|
onGridMoved: Function,
|
|
51372
51372
|
gridOverlayDimensions: String,
|
|
51373
51373
|
slots: { type: Object, optional: true },
|
|
51374
|
-
getGridSize: Function,
|
|
51375
51374
|
};
|
|
51376
51375
|
static components = {
|
|
51377
51376
|
FiguresContainer,
|
|
@@ -51390,14 +51389,7 @@ class GridOverlay extends owl.Component {
|
|
|
51390
51389
|
setup() {
|
|
51391
51390
|
useCellHovered(this.env, this.gridOverlay);
|
|
51392
51391
|
const resizeObserver = new ResizeObserver(() => {
|
|
51393
|
-
|
|
51394
|
-
const { width, height } = this.props.getGridSize();
|
|
51395
|
-
this.props.onGridResized({
|
|
51396
|
-
x: boundingRect.left,
|
|
51397
|
-
y: boundingRect.top,
|
|
51398
|
-
height: height,
|
|
51399
|
-
width: width,
|
|
51400
|
-
});
|
|
51392
|
+
this.props.onGridResized();
|
|
51401
51393
|
});
|
|
51402
51394
|
owl.onMounted(() => {
|
|
51403
51395
|
resizeObserver.observe(this.gridOverlayEl);
|
|
@@ -61421,7 +61413,8 @@ class Grid extends owl.Component {
|
|
|
61421
61413
|
});
|
|
61422
61414
|
return !(rect.width === 0 || rect.height === 0);
|
|
61423
61415
|
}
|
|
61424
|
-
onGridResized(
|
|
61416
|
+
onGridResized() {
|
|
61417
|
+
const { height, width } = this.props.getGridSize();
|
|
61425
61418
|
this.env.model.dispatch("RESIZE_SHEETVIEW", {
|
|
61426
61419
|
width: width - HEADER_WIDTH,
|
|
61427
61420
|
height: height - HEADER_HEIGHT,
|
|
@@ -74419,7 +74412,7 @@ class Session extends EventBus {
|
|
|
74419
74412
|
}
|
|
74420
74413
|
delete this.clients[this.clientId];
|
|
74421
74414
|
this.transportService.leave(this.clientId);
|
|
74422
|
-
this.
|
|
74415
|
+
this.sendToTransport({
|
|
74423
74416
|
type: "CLIENT_LEFT",
|
|
74424
74417
|
clientId: this.clientId,
|
|
74425
74418
|
version: MESSAGE_VERSION,
|
|
@@ -74433,7 +74426,7 @@ class Session extends EventBus {
|
|
|
74433
74426
|
return;
|
|
74434
74427
|
}
|
|
74435
74428
|
const snapshotId = this.uuidGenerator.uuidv4();
|
|
74436
|
-
await this.
|
|
74429
|
+
await this.sendToTransport({
|
|
74437
74430
|
type: "SNAPSHOT",
|
|
74438
74431
|
nextRevisionId: snapshotId,
|
|
74439
74432
|
serverRevisionId: this.serverRevisionId,
|
|
@@ -74481,10 +74474,14 @@ class Session extends EventBus {
|
|
|
74481
74474
|
const type = currentPosition ? "CLIENT_MOVED" : "CLIENT_JOINED";
|
|
74482
74475
|
const client = this.getCurrentClient();
|
|
74483
74476
|
this.clients[this.clientId] = { ...client, position };
|
|
74484
|
-
this.
|
|
74477
|
+
this.sendToTransport({
|
|
74485
74478
|
type,
|
|
74486
74479
|
version: MESSAGE_VERSION,
|
|
74487
74480
|
client: { ...client, position },
|
|
74481
|
+
}).then(() => {
|
|
74482
|
+
if (this.pendingMessages.length > 0 && !this.waitingAck) {
|
|
74483
|
+
this.sendPendingMessage();
|
|
74484
|
+
}
|
|
74488
74485
|
});
|
|
74489
74486
|
}
|
|
74490
74487
|
/**
|
|
@@ -74565,7 +74562,7 @@ class Session extends EventBus {
|
|
|
74565
74562
|
if (client) {
|
|
74566
74563
|
const { position } = client;
|
|
74567
74564
|
if (position) {
|
|
74568
|
-
this.
|
|
74565
|
+
this.sendToTransport({
|
|
74569
74566
|
type: "CLIENT_MOVED",
|
|
74570
74567
|
version: MESSAGE_VERSION,
|
|
74571
74568
|
client: { ...client, position },
|
|
@@ -74586,6 +74583,10 @@ class Session extends EventBus {
|
|
|
74586
74583
|
}
|
|
74587
74584
|
this.sendPendingMessage();
|
|
74588
74585
|
}
|
|
74586
|
+
async sendToTransport(message) {
|
|
74587
|
+
// wrap in an async function to ensure it returns a promise
|
|
74588
|
+
return this.transportService.sendMessage(message);
|
|
74589
|
+
}
|
|
74589
74590
|
/**
|
|
74590
74591
|
* Send the next pending message
|
|
74591
74592
|
*/
|
|
@@ -74614,9 +74615,14 @@ class Session extends EventBus {
|
|
|
74614
74615
|
${JSON.stringify(message)}`);
|
|
74615
74616
|
}
|
|
74616
74617
|
this.waitingAck = true;
|
|
74617
|
-
this.
|
|
74618
|
+
this.sendToTransport({
|
|
74618
74619
|
...message,
|
|
74619
74620
|
serverRevisionId: this.serverRevisionId,
|
|
74621
|
+
}).catch((e) => {
|
|
74622
|
+
if (!(e instanceof ClientDisconnectedError)) {
|
|
74623
|
+
throw e.cause || e;
|
|
74624
|
+
}
|
|
74625
|
+
this.waitingAck = false;
|
|
74620
74626
|
});
|
|
74621
74627
|
}
|
|
74622
74628
|
acknowledge(message) {
|
|
@@ -82122,10 +82128,8 @@ class SpreadsheetDashboard extends owl.Component {
|
|
|
82122
82128
|
});
|
|
82123
82129
|
}
|
|
82124
82130
|
get gridContainer() {
|
|
82125
|
-
const
|
|
82126
|
-
|
|
82127
|
-
const { end } = this.env.model.getters.getColDimensions(sheetId, right);
|
|
82128
|
-
return cssPropertiesToCss({ "max-width": `${end}px` });
|
|
82131
|
+
const maxWidth = this.getMaxSheetWidth();
|
|
82132
|
+
return cssPropertiesToCss({ "max-width": `${maxWidth}px` });
|
|
82129
82133
|
}
|
|
82130
82134
|
get gridOverlayDimensions() {
|
|
82131
82135
|
return cssPropertiesToCss({
|
|
@@ -82157,10 +82161,12 @@ class SpreadsheetDashboard extends owl.Component {
|
|
|
82157
82161
|
onClosePopover() {
|
|
82158
82162
|
this.cellPopovers.close();
|
|
82159
82163
|
}
|
|
82160
|
-
onGridResized(
|
|
82164
|
+
onGridResized() {
|
|
82165
|
+
const { height, width } = this.props.getGridSize();
|
|
82166
|
+
const maxWidth = this.getMaxSheetWidth();
|
|
82161
82167
|
this.env.model.dispatch("RESIZE_SHEETVIEW", {
|
|
82162
|
-
width: width,
|
|
82163
|
-
height
|
|
82168
|
+
width: Math.min(maxWidth, width),
|
|
82169
|
+
height,
|
|
82164
82170
|
gridOffsetX: 0,
|
|
82165
82171
|
gridOffsetY: 0,
|
|
82166
82172
|
});
|
|
@@ -82178,6 +82184,11 @@ class SpreadsheetDashboard extends owl.Component {
|
|
|
82178
82184
|
...this.env.model.getters.getSheetViewDimensionWithHeaders(),
|
|
82179
82185
|
};
|
|
82180
82186
|
}
|
|
82187
|
+
getMaxSheetWidth() {
|
|
82188
|
+
const sheetId = this.env.model.getters.getActiveSheetId();
|
|
82189
|
+
const { right } = this.env.model.getters.getSheetZone(sheetId);
|
|
82190
|
+
return this.env.model.getters.getColDimensions(sheetId, right).end;
|
|
82191
|
+
}
|
|
82181
82192
|
}
|
|
82182
82193
|
|
|
82183
82194
|
css /* scss */ `
|
|
@@ -84419,22 +84430,20 @@ class Spreadsheet extends owl.Component {
|
|
|
84419
84430
|
return this.env.model.getters.getVisibleGroupLayers(sheetId, "COL");
|
|
84420
84431
|
}
|
|
84421
84432
|
getGridSize() {
|
|
84422
|
-
const
|
|
84423
|
-
|
|
84424
|
-
|
|
84425
|
-
|
|
84426
|
-
|
|
84427
|
-
|
|
84428
|
-
const
|
|
84429
|
-
const
|
|
84430
|
-
|
|
84431
|
-
|
|
84432
|
-
|
|
84433
|
-
|
|
84434
|
-
|
|
84435
|
-
|
|
84436
|
-
height: Math.max(gridHeight - SCROLLBAR_WIDTH, 0),
|
|
84437
|
-
};
|
|
84433
|
+
const el = this.spreadsheetRef.el;
|
|
84434
|
+
if (!el) {
|
|
84435
|
+
return { width: 0, height: 0 };
|
|
84436
|
+
}
|
|
84437
|
+
const getHeight = (selector) => el.querySelector(selector)?.getBoundingClientRect().height || 0;
|
|
84438
|
+
const getWidth = (selector) => el.querySelector(selector)?.getBoundingClientRect().width || 0;
|
|
84439
|
+
const rect = el.getBoundingClientRect();
|
|
84440
|
+
const topBarHeight = getHeight(".o-spreadsheet-topbar-wrapper");
|
|
84441
|
+
const bottomBarHeight = getHeight(".o-spreadsheet-bottombar-wrapper");
|
|
84442
|
+
const colGroupHeight = getHeight(".o-column-groups");
|
|
84443
|
+
const gridWidth = getWidth(".o-grid");
|
|
84444
|
+
const width = Math.max(gridWidth - SCROLLBAR_WIDTH, 0);
|
|
84445
|
+
const height = Math.max(rect.height - topBarHeight - bottomBarHeight - colGroupHeight - SCROLLBAR_WIDTH, 0);
|
|
84446
|
+
return { width, height };
|
|
84438
84447
|
}
|
|
84439
84448
|
}
|
|
84440
84449
|
|
|
@@ -84447,7 +84456,7 @@ class ReadonlyTransportFilter {
|
|
|
84447
84456
|
if (message.type === "CLIENT_JOINED" ||
|
|
84448
84457
|
message.type === "CLIENT_LEFT" ||
|
|
84449
84458
|
message.type === "CLIENT_MOVED") {
|
|
84450
|
-
this.transportService.sendMessage(message);
|
|
84459
|
+
await this.transportService.sendMessage(message);
|
|
84451
84460
|
}
|
|
84452
84461
|
// ignore all other messages
|
|
84453
84462
|
}
|
|
@@ -89116,6 +89125,6 @@ exports.tokenColors = tokenColors;
|
|
|
89116
89125
|
exports.tokenize = tokenize;
|
|
89117
89126
|
|
|
89118
89127
|
|
|
89119
|
-
__info__.version = "19.0.
|
|
89120
|
-
__info__.date = "
|
|
89121
|
-
__info__.hash = "
|
|
89128
|
+
__info__.version = "19.0.16";
|
|
89129
|
+
__info__.date = "2026-01-07T16:21:15.857Z";
|
|
89130
|
+
__info__.hash = "9f3f13a";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4714,6 +4714,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
4714
4714
|
private onClientJoined;
|
|
4715
4715
|
private onClientLeft;
|
|
4716
4716
|
private sendUpdateMessage;
|
|
4717
|
+
private sendToTransport;
|
|
4717
4718
|
/**
|
|
4718
4719
|
* Send the next pending message
|
|
4719
4720
|
*/
|
|
@@ -10025,13 +10026,9 @@ interface Props$N {
|
|
|
10025
10026
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
10026
10027
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent | MouseEvent) => void;
|
|
10027
10028
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
10028
|
-
onGridResized: (
|
|
10029
|
+
onGridResized: () => void;
|
|
10029
10030
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
10030
10031
|
gridOverlayDimensions: string;
|
|
10031
|
-
getGridSize: () => {
|
|
10032
|
-
width: number;
|
|
10033
|
-
height: number;
|
|
10034
|
-
};
|
|
10035
10032
|
}
|
|
10036
10033
|
declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
|
|
10037
10034
|
static template: string;
|
|
@@ -10058,7 +10055,6 @@ declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
|
|
|
10058
10055
|
type: ObjectConstructor;
|
|
10059
10056
|
optional: boolean;
|
|
10060
10057
|
};
|
|
10061
|
-
getGridSize: FunctionConstructor;
|
|
10062
10058
|
};
|
|
10063
10059
|
static components: {
|
|
10064
10060
|
FiguresContainer: typeof FiguresContainer;
|
|
@@ -10598,7 +10594,7 @@ declare class Grid extends Component<Props$E, SpreadsheetChildEnv> {
|
|
|
10598
10594
|
top: number;
|
|
10599
10595
|
};
|
|
10600
10596
|
get isAutofillVisible(): boolean;
|
|
10601
|
-
onGridResized(
|
|
10597
|
+
onGridResized(): void;
|
|
10602
10598
|
private moveCanvas;
|
|
10603
10599
|
private processSpaceKey;
|
|
10604
10600
|
getClientPositionKey(client: Client): string;
|
|
@@ -12502,6 +12498,7 @@ declare class ClickableCellsStore extends SpreadsheetStore {
|
|
|
12502
12498
|
}
|
|
12503
12499
|
|
|
12504
12500
|
interface Props$4 {
|
|
12501
|
+
getGridSize: () => DOMDimension;
|
|
12505
12502
|
}
|
|
12506
12503
|
declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEnv> {
|
|
12507
12504
|
static template: string;
|
|
@@ -12534,9 +12531,10 @@ declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEn
|
|
|
12534
12531
|
getClickableCells(): ClickableCell[];
|
|
12535
12532
|
selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void;
|
|
12536
12533
|
onClosePopover(): void;
|
|
12537
|
-
onGridResized(
|
|
12534
|
+
onGridResized(): void;
|
|
12538
12535
|
private moveCanvas;
|
|
12539
12536
|
private getGridRect;
|
|
12537
|
+
private getMaxSheetWidth;
|
|
12540
12538
|
}
|
|
12541
12539
|
|
|
12542
12540
|
interface Props$3 {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 19.0.
|
|
6
|
-
* @date
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.16
|
|
6
|
+
* @date 2026-01-07T16:21:15.857Z
|
|
7
|
+
* @hash 9f3f13a
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, useExternalListener, onWillUpdateProps, onWillStart, onWillPatch, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -51369,7 +51369,6 @@ class GridOverlay extends Component {
|
|
|
51369
51369
|
onGridMoved: Function,
|
|
51370
51370
|
gridOverlayDimensions: String,
|
|
51371
51371
|
slots: { type: Object, optional: true },
|
|
51372
|
-
getGridSize: Function,
|
|
51373
51372
|
};
|
|
51374
51373
|
static components = {
|
|
51375
51374
|
FiguresContainer,
|
|
@@ -51388,14 +51387,7 @@ class GridOverlay extends Component {
|
|
|
51388
51387
|
setup() {
|
|
51389
51388
|
useCellHovered(this.env, this.gridOverlay);
|
|
51390
51389
|
const resizeObserver = new ResizeObserver(() => {
|
|
51391
|
-
|
|
51392
|
-
const { width, height } = this.props.getGridSize();
|
|
51393
|
-
this.props.onGridResized({
|
|
51394
|
-
x: boundingRect.left,
|
|
51395
|
-
y: boundingRect.top,
|
|
51396
|
-
height: height,
|
|
51397
|
-
width: width,
|
|
51398
|
-
});
|
|
51390
|
+
this.props.onGridResized();
|
|
51399
51391
|
});
|
|
51400
51392
|
onMounted(() => {
|
|
51401
51393
|
resizeObserver.observe(this.gridOverlayEl);
|
|
@@ -61419,7 +61411,8 @@ class Grid extends Component {
|
|
|
61419
61411
|
});
|
|
61420
61412
|
return !(rect.width === 0 || rect.height === 0);
|
|
61421
61413
|
}
|
|
61422
|
-
onGridResized(
|
|
61414
|
+
onGridResized() {
|
|
61415
|
+
const { height, width } = this.props.getGridSize();
|
|
61423
61416
|
this.env.model.dispatch("RESIZE_SHEETVIEW", {
|
|
61424
61417
|
width: width - HEADER_WIDTH,
|
|
61425
61418
|
height: height - HEADER_HEIGHT,
|
|
@@ -74417,7 +74410,7 @@ class Session extends EventBus {
|
|
|
74417
74410
|
}
|
|
74418
74411
|
delete this.clients[this.clientId];
|
|
74419
74412
|
this.transportService.leave(this.clientId);
|
|
74420
|
-
this.
|
|
74413
|
+
this.sendToTransport({
|
|
74421
74414
|
type: "CLIENT_LEFT",
|
|
74422
74415
|
clientId: this.clientId,
|
|
74423
74416
|
version: MESSAGE_VERSION,
|
|
@@ -74431,7 +74424,7 @@ class Session extends EventBus {
|
|
|
74431
74424
|
return;
|
|
74432
74425
|
}
|
|
74433
74426
|
const snapshotId = this.uuidGenerator.uuidv4();
|
|
74434
|
-
await this.
|
|
74427
|
+
await this.sendToTransport({
|
|
74435
74428
|
type: "SNAPSHOT",
|
|
74436
74429
|
nextRevisionId: snapshotId,
|
|
74437
74430
|
serverRevisionId: this.serverRevisionId,
|
|
@@ -74479,10 +74472,14 @@ class Session extends EventBus {
|
|
|
74479
74472
|
const type = currentPosition ? "CLIENT_MOVED" : "CLIENT_JOINED";
|
|
74480
74473
|
const client = this.getCurrentClient();
|
|
74481
74474
|
this.clients[this.clientId] = { ...client, position };
|
|
74482
|
-
this.
|
|
74475
|
+
this.sendToTransport({
|
|
74483
74476
|
type,
|
|
74484
74477
|
version: MESSAGE_VERSION,
|
|
74485
74478
|
client: { ...client, position },
|
|
74479
|
+
}).then(() => {
|
|
74480
|
+
if (this.pendingMessages.length > 0 && !this.waitingAck) {
|
|
74481
|
+
this.sendPendingMessage();
|
|
74482
|
+
}
|
|
74486
74483
|
});
|
|
74487
74484
|
}
|
|
74488
74485
|
/**
|
|
@@ -74563,7 +74560,7 @@ class Session extends EventBus {
|
|
|
74563
74560
|
if (client) {
|
|
74564
74561
|
const { position } = client;
|
|
74565
74562
|
if (position) {
|
|
74566
|
-
this.
|
|
74563
|
+
this.sendToTransport({
|
|
74567
74564
|
type: "CLIENT_MOVED",
|
|
74568
74565
|
version: MESSAGE_VERSION,
|
|
74569
74566
|
client: { ...client, position },
|
|
@@ -74584,6 +74581,10 @@ class Session extends EventBus {
|
|
|
74584
74581
|
}
|
|
74585
74582
|
this.sendPendingMessage();
|
|
74586
74583
|
}
|
|
74584
|
+
async sendToTransport(message) {
|
|
74585
|
+
// wrap in an async function to ensure it returns a promise
|
|
74586
|
+
return this.transportService.sendMessage(message);
|
|
74587
|
+
}
|
|
74587
74588
|
/**
|
|
74588
74589
|
* Send the next pending message
|
|
74589
74590
|
*/
|
|
@@ -74612,9 +74613,14 @@ class Session extends EventBus {
|
|
|
74612
74613
|
${JSON.stringify(message)}`);
|
|
74613
74614
|
}
|
|
74614
74615
|
this.waitingAck = true;
|
|
74615
|
-
this.
|
|
74616
|
+
this.sendToTransport({
|
|
74616
74617
|
...message,
|
|
74617
74618
|
serverRevisionId: this.serverRevisionId,
|
|
74619
|
+
}).catch((e) => {
|
|
74620
|
+
if (!(e instanceof ClientDisconnectedError)) {
|
|
74621
|
+
throw e.cause || e;
|
|
74622
|
+
}
|
|
74623
|
+
this.waitingAck = false;
|
|
74618
74624
|
});
|
|
74619
74625
|
}
|
|
74620
74626
|
acknowledge(message) {
|
|
@@ -82120,10 +82126,8 @@ class SpreadsheetDashboard extends Component {
|
|
|
82120
82126
|
});
|
|
82121
82127
|
}
|
|
82122
82128
|
get gridContainer() {
|
|
82123
|
-
const
|
|
82124
|
-
|
|
82125
|
-
const { end } = this.env.model.getters.getColDimensions(sheetId, right);
|
|
82126
|
-
return cssPropertiesToCss({ "max-width": `${end}px` });
|
|
82129
|
+
const maxWidth = this.getMaxSheetWidth();
|
|
82130
|
+
return cssPropertiesToCss({ "max-width": `${maxWidth}px` });
|
|
82127
82131
|
}
|
|
82128
82132
|
get gridOverlayDimensions() {
|
|
82129
82133
|
return cssPropertiesToCss({
|
|
@@ -82155,10 +82159,12 @@ class SpreadsheetDashboard extends Component {
|
|
|
82155
82159
|
onClosePopover() {
|
|
82156
82160
|
this.cellPopovers.close();
|
|
82157
82161
|
}
|
|
82158
|
-
onGridResized(
|
|
82162
|
+
onGridResized() {
|
|
82163
|
+
const { height, width } = this.props.getGridSize();
|
|
82164
|
+
const maxWidth = this.getMaxSheetWidth();
|
|
82159
82165
|
this.env.model.dispatch("RESIZE_SHEETVIEW", {
|
|
82160
|
-
width: width,
|
|
82161
|
-
height
|
|
82166
|
+
width: Math.min(maxWidth, width),
|
|
82167
|
+
height,
|
|
82162
82168
|
gridOffsetX: 0,
|
|
82163
82169
|
gridOffsetY: 0,
|
|
82164
82170
|
});
|
|
@@ -82176,6 +82182,11 @@ class SpreadsheetDashboard extends Component {
|
|
|
82176
82182
|
...this.env.model.getters.getSheetViewDimensionWithHeaders(),
|
|
82177
82183
|
};
|
|
82178
82184
|
}
|
|
82185
|
+
getMaxSheetWidth() {
|
|
82186
|
+
const sheetId = this.env.model.getters.getActiveSheetId();
|
|
82187
|
+
const { right } = this.env.model.getters.getSheetZone(sheetId);
|
|
82188
|
+
return this.env.model.getters.getColDimensions(sheetId, right).end;
|
|
82189
|
+
}
|
|
82179
82190
|
}
|
|
82180
82191
|
|
|
82181
82192
|
css /* scss */ `
|
|
@@ -84417,22 +84428,20 @@ class Spreadsheet extends Component {
|
|
|
84417
84428
|
return this.env.model.getters.getVisibleGroupLayers(sheetId, "COL");
|
|
84418
84429
|
}
|
|
84419
84430
|
getGridSize() {
|
|
84420
|
-
const
|
|
84421
|
-
|
|
84422
|
-
|
|
84423
|
-
|
|
84424
|
-
|
|
84425
|
-
|
|
84426
|
-
const
|
|
84427
|
-
const
|
|
84428
|
-
|
|
84429
|
-
|
|
84430
|
-
|
|
84431
|
-
|
|
84432
|
-
|
|
84433
|
-
|
|
84434
|
-
height: Math.max(gridHeight - SCROLLBAR_WIDTH, 0),
|
|
84435
|
-
};
|
|
84431
|
+
const el = this.spreadsheetRef.el;
|
|
84432
|
+
if (!el) {
|
|
84433
|
+
return { width: 0, height: 0 };
|
|
84434
|
+
}
|
|
84435
|
+
const getHeight = (selector) => el.querySelector(selector)?.getBoundingClientRect().height || 0;
|
|
84436
|
+
const getWidth = (selector) => el.querySelector(selector)?.getBoundingClientRect().width || 0;
|
|
84437
|
+
const rect = el.getBoundingClientRect();
|
|
84438
|
+
const topBarHeight = getHeight(".o-spreadsheet-topbar-wrapper");
|
|
84439
|
+
const bottomBarHeight = getHeight(".o-spreadsheet-bottombar-wrapper");
|
|
84440
|
+
const colGroupHeight = getHeight(".o-column-groups");
|
|
84441
|
+
const gridWidth = getWidth(".o-grid");
|
|
84442
|
+
const width = Math.max(gridWidth - SCROLLBAR_WIDTH, 0);
|
|
84443
|
+
const height = Math.max(rect.height - topBarHeight - bottomBarHeight - colGroupHeight - SCROLLBAR_WIDTH, 0);
|
|
84444
|
+
return { width, height };
|
|
84436
84445
|
}
|
|
84437
84446
|
}
|
|
84438
84447
|
|
|
@@ -84445,7 +84454,7 @@ class ReadonlyTransportFilter {
|
|
|
84445
84454
|
if (message.type === "CLIENT_JOINED" ||
|
|
84446
84455
|
message.type === "CLIENT_LEFT" ||
|
|
84447
84456
|
message.type === "CLIENT_MOVED") {
|
|
84448
|
-
this.transportService.sendMessage(message);
|
|
84457
|
+
await this.transportService.sendMessage(message);
|
|
84449
84458
|
}
|
|
84450
84459
|
// ignore all other messages
|
|
84451
84460
|
}
|
|
@@ -89064,6 +89073,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
89064
89073
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
89065
89074
|
|
|
89066
89075
|
|
|
89067
|
-
__info__.version = "19.0.
|
|
89068
|
-
__info__.date = "
|
|
89069
|
-
__info__.hash = "
|
|
89076
|
+
__info__.version = "19.0.16";
|
|
89077
|
+
__info__.date = "2026-01-07T16:21:15.857Z";
|
|
89078
|
+
__info__.hash = "9f3f13a";
|