@odoo/o-spreadsheet 16.0.6 → 16.0.8
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 +264 -108
- package/dist/o-spreadsheet.d.ts +33 -7
- package/dist/o-spreadsheet.esm.js +264 -108
- package/dist/o-spreadsheet.iife.js +264 -108
- package/dist/o-spreadsheet.iife.min.js +271 -271
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1053,8 +1053,9 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
|
|
|
1053
1053
|
*/
|
|
1054
1054
|
private coreGetters;
|
|
1055
1055
|
uuidGenerator: UuidGenerator;
|
|
1056
|
+
private readonly handlers;
|
|
1057
|
+
private readonly coreHandlers;
|
|
1056
1058
|
constructor(data?: any, config?: Partial<ModelConfig>, stateUpdateMessages?: StateUpdateMessage[], uuidGenerator?: UuidGenerator, verboseImport?: boolean);
|
|
1057
|
-
get handlers(): CommandHandler<Command>[];
|
|
1058
1059
|
joinSession(): void;
|
|
1059
1060
|
leaveSession(): void;
|
|
1060
1061
|
private setupUiPlugin;
|
|
@@ -3386,14 +3387,16 @@ declare class HeaderSizePlugin extends CorePlugin<HeaderSizeState> implements He
|
|
|
3386
3387
|
}
|
|
3387
3388
|
|
|
3388
3389
|
declare class HeaderVisibilityPlugin extends CorePlugin {
|
|
3389
|
-
static getters: readonly ["getHiddenColsGroups", "getHiddenRowsGroups", "isRowHiddenByUser", "isColHiddenByUser"];
|
|
3390
|
+
static getters: readonly ["canRemoveHeaders", "getHiddenColsGroups", "getHiddenRowsGroups", "isRowHiddenByUser", "isColHiddenByUser"];
|
|
3390
3391
|
private readonly hiddenHeaders;
|
|
3391
|
-
allowDispatch(cmd: Command): CommandResult.Success | CommandResult.InvalidSheetId | CommandResult.TooManyHiddenElements;
|
|
3392
|
+
allowDispatch(cmd: Command): CommandResult.Success | CommandResult.NotEnoughElements | CommandResult.InvalidSheetId | CommandResult.TooManyHiddenElements;
|
|
3392
3393
|
handle(cmd: Command): void;
|
|
3394
|
+
canRemoveHeaders(sheetId: UID, dimension: Dimension, elements: HeaderIndex[]): boolean;
|
|
3393
3395
|
isRowHiddenByUser(sheetId: UID, index: HeaderIndex): boolean;
|
|
3394
3396
|
isColHiddenByUser(sheetId: UID, index: HeaderIndex): boolean;
|
|
3395
3397
|
getHiddenColsGroups(sheetId: UID): ConsecutiveIndexes[];
|
|
3396
3398
|
getHiddenRowsGroups(sheetId: UID): ConsecutiveIndexes[];
|
|
3399
|
+
private getAllVisibleHeaders;
|
|
3397
3400
|
import(data: WorkbookData): void;
|
|
3398
3401
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
3399
3402
|
export(data: WorkbookData): void;
|
|
@@ -3968,7 +3971,12 @@ declare class HeaderVisibilityUIPlugin extends UIPlugin {
|
|
|
3968
3971
|
isColHidden(sheetId: UID, index: number): boolean;
|
|
3969
3972
|
isHeaderHidden(sheetId: UID, dimension: Dimension, index: number): boolean;
|
|
3970
3973
|
getNextVisibleCellPosition(sheetId: UID, col: number, row: number): Position$1;
|
|
3971
|
-
|
|
3974
|
+
/**
|
|
3975
|
+
* Find the first visible header in the range [`from` => `to`].
|
|
3976
|
+
*
|
|
3977
|
+
* Both `from` and `to` are inclusive.
|
|
3978
|
+
*/
|
|
3979
|
+
findVisibleHeader(sheetId: UID, dimension: Dimension, from: number, to: number): number | undefined;
|
|
3972
3980
|
findLastVisibleColRowIndex(sheetId: UID, dimension: Dimension, indexes: {
|
|
3973
3981
|
first: number;
|
|
3974
3982
|
last: number;
|
|
@@ -4267,8 +4275,8 @@ declare class InternalViewport {
|
|
|
4267
4275
|
* until it contains the cell completely.
|
|
4268
4276
|
*/
|
|
4269
4277
|
adjustPosition(position?: Position$1): void;
|
|
4270
|
-
adjustPositionX(
|
|
4271
|
-
adjustPositionY(
|
|
4278
|
+
adjustPositionX(targetCol: HeaderIndex): void;
|
|
4279
|
+
adjustPositionY(targetRow: HeaderIndex): void;
|
|
4272
4280
|
setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
|
|
4273
4281
|
adjustViewportZone(): void;
|
|
4274
4282
|
/**
|
|
@@ -5265,6 +5273,7 @@ declare class Menu extends Component<Props$o, SpreadsheetChildEnv> {
|
|
|
5265
5273
|
private menuRef;
|
|
5266
5274
|
private position;
|
|
5267
5275
|
setup(): void;
|
|
5276
|
+
get visibleMenuItems(): MenuItem[];
|
|
5268
5277
|
get subMenuPosition(): DOMCoordinates;
|
|
5269
5278
|
get menuHeight(): Pixel;
|
|
5270
5279
|
get subMenuHeight(): Pixel;
|
|
@@ -5428,7 +5437,24 @@ declare class ContentEditableHelper {
|
|
|
5428
5437
|
start: number;
|
|
5429
5438
|
end: number;
|
|
5430
5439
|
};
|
|
5431
|
-
|
|
5440
|
+
/**
|
|
5441
|
+
* Computes the text 'index' inside this.el based on the currently selected node and its offset.
|
|
5442
|
+
* The selected node is either a Text node or an Element node.
|
|
5443
|
+
*
|
|
5444
|
+
* case 1 -Text node:
|
|
5445
|
+
* the offset is the number of characters from the start of the node. We have to add this offset to the
|
|
5446
|
+
* content length of all previous nodes.
|
|
5447
|
+
*
|
|
5448
|
+
* case 2 - Element node:
|
|
5449
|
+
* the offset is the number of child nodes before the selected node. We have to add the content length of
|
|
5450
|
+
* all the bnodes prior to the selected node as well as the content of the child node before the offset.
|
|
5451
|
+
*
|
|
5452
|
+
* See the MDN documentation for more details.
|
|
5453
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Range/startOffset
|
|
5454
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Range/endOffset
|
|
5455
|
+
*
|
|
5456
|
+
*/
|
|
5457
|
+
private findSelectionIndex;
|
|
5432
5458
|
private getStartAndEndSelection;
|
|
5433
5459
|
}
|
|
5434
5460
|
|