@odoo/o-spreadsheet 16.2.5 → 16.2.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/dist/o-spreadsheet.cjs.js +4017 -3913
- package/dist/o-spreadsheet.d.ts +21 -2
- package/dist/o-spreadsheet.esm.js +4017 -3913
- package/dist/o-spreadsheet.iife.js +4017 -3913
- package/dist/o-spreadsheet.iife.min.js +176 -159
- package/package.json +2 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -704,6 +704,7 @@ interface ExcelWorkbookData extends WorkbookData {
|
|
|
704
704
|
interface ExcelCellData extends CellData {
|
|
705
705
|
value: CellValue;
|
|
706
706
|
isFormula: Boolean;
|
|
707
|
+
computedFormat?: Format;
|
|
707
708
|
}
|
|
708
709
|
interface ExcelSheetData extends Omit<SheetData, "figureTables"> {
|
|
709
710
|
cells: {
|
|
@@ -759,7 +760,6 @@ interface CollaborativeEventReceived {
|
|
|
759
760
|
}
|
|
760
761
|
interface UnexpectedRevisionIdEvent {
|
|
761
762
|
type: "unexpected-revision-id";
|
|
762
|
-
revisionId: UID;
|
|
763
763
|
}
|
|
764
764
|
interface NewLocalStateUpdateEvent {
|
|
765
765
|
type: "new-local-state-update";
|
|
@@ -2781,6 +2781,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
2781
2781
|
private sendPendingMessage;
|
|
2782
2782
|
private acknowledge;
|
|
2783
2783
|
private isAlreadyProcessed;
|
|
2784
|
+
isWrongServerRevisionId(message: CollaborationMessage): boolean;
|
|
2784
2785
|
private dropPendingHistoryMessages;
|
|
2785
2786
|
}
|
|
2786
2787
|
|
|
@@ -4908,6 +4909,7 @@ declare class SelectionInput extends Component<Props$B, SpreadsheetChildEnv> {
|
|
|
4908
4909
|
getColor(range: SelectionRange): string;
|
|
4909
4910
|
private triggerChange;
|
|
4910
4911
|
onKeydown(ev: KeyboardEvent): void;
|
|
4912
|
+
private extractRanges;
|
|
4911
4913
|
focus(rangeId: number): void;
|
|
4912
4914
|
addEmptyInput(): void;
|
|
4913
4915
|
removeInput(rangeId: number): void;
|
|
@@ -5991,7 +5993,24 @@ declare class ContentEditableHelper {
|
|
|
5991
5993
|
start: number;
|
|
5992
5994
|
end: number;
|
|
5993
5995
|
};
|
|
5994
|
-
|
|
5996
|
+
/**
|
|
5997
|
+
* Computes the text 'index' inside this.el based on the currently selected node and its offset.
|
|
5998
|
+
* The selected node is either a Text node or an Element node.
|
|
5999
|
+
*
|
|
6000
|
+
* case 1 -Text node:
|
|
6001
|
+
* the offset is the number of characters from the start of the node. We have to add this offset to the
|
|
6002
|
+
* content length of all previous nodes.
|
|
6003
|
+
*
|
|
6004
|
+
* case 2 - Element node:
|
|
6005
|
+
* the offset is the number of child nodes before the selected node. We have to add the content length of
|
|
6006
|
+
* all the bnodes prior to the selected node as well as the content of the child node before the offset.
|
|
6007
|
+
*
|
|
6008
|
+
* See the MDN documentation for more details.
|
|
6009
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Range/startOffset
|
|
6010
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Range/endOffset
|
|
6011
|
+
*
|
|
6012
|
+
*/
|
|
6013
|
+
private findSelectionIndex;
|
|
5995
6014
|
private getStartAndEndSelection;
|
|
5996
6015
|
getText(): string;
|
|
5997
6016
|
}
|