@odoo/o-spreadsheet 18.0.14 → 18.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 +187 -129
- package/dist/o-spreadsheet.d.ts +22 -1
- package/dist/o-spreadsheet.esm.js +187 -129
- package/dist/o-spreadsheet.iife.js +187 -129
- package/dist/o-spreadsheet.iife.min.js +85 -85
- package/dist/o_spreadsheet.xml +6 -4
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1266,6 +1266,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
1266
1266
|
private onClientJoined;
|
|
1267
1267
|
private onClientLeft;
|
|
1268
1268
|
private sendUpdateMessage;
|
|
1269
|
+
private dropPendingRevision;
|
|
1269
1270
|
/**
|
|
1270
1271
|
* Send the next pending message
|
|
1271
1272
|
*/
|
|
@@ -1598,6 +1599,7 @@ declare class GridSelectionPlugin extends UIPlugin {
|
|
|
1598
1599
|
private onAddElements;
|
|
1599
1600
|
private onMoveElements;
|
|
1600
1601
|
private isMoveElementAllowed;
|
|
1602
|
+
private fallbackToVisibleSheet;
|
|
1601
1603
|
/**
|
|
1602
1604
|
* Clip the selection if it spans outside the sheet
|
|
1603
1605
|
*/
|
|
@@ -5818,6 +5820,20 @@ declare class UuidGenerator {
|
|
|
5818
5820
|
private isFastIdStrategy;
|
|
5819
5821
|
private fastIdStart;
|
|
5820
5822
|
setIsFastStrategy(isFast: boolean): void;
|
|
5823
|
+
/**
|
|
5824
|
+
* Generates a custom UUID using a simple 36^12 method (8-character alphanumeric string with lowercase letters)
|
|
5825
|
+
* This has a higher chance of collision than a UUIDv4, but not only faster to generate than an UUIDV4,
|
|
5826
|
+
* it also has a smaller size, which is preferable to alleviate the overall data size.
|
|
5827
|
+
*
|
|
5828
|
+
* This method is preferable when generating uuids for the core data (sheetId, figureId, etc)
|
|
5829
|
+
* as they will appear several times in the revisions and local history.
|
|
5830
|
+
*
|
|
5831
|
+
*/
|
|
5832
|
+
smallUuid(): string;
|
|
5833
|
+
/**
|
|
5834
|
+
* Generates an UUIDV4, has astronomically low chance of collision, but is larger in size than the smallUuid.
|
|
5835
|
+
* This method should be used when you need to avoid collisions at all costs, like the id of a revision.
|
|
5836
|
+
*/
|
|
5821
5837
|
uuidv4(): string;
|
|
5822
5838
|
}
|
|
5823
5839
|
|
|
@@ -9282,7 +9298,7 @@ interface DndPartialArgs {
|
|
|
9282
9298
|
draggedItemId: UID;
|
|
9283
9299
|
initialMousePosition: Pixel;
|
|
9284
9300
|
items: DragAndDropItemsPartial[];
|
|
9285
|
-
|
|
9301
|
+
scrollableContainerEl: HTMLElement;
|
|
9286
9302
|
onChange?: () => void;
|
|
9287
9303
|
onCancel?: () => void;
|
|
9288
9304
|
onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
|
|
@@ -9795,6 +9811,7 @@ interface Props$d {
|
|
|
9795
9811
|
unusedGranularities: Record<string, Set<string>>;
|
|
9796
9812
|
dateGranularities: string[];
|
|
9797
9813
|
datetimeGranularities: string[];
|
|
9814
|
+
getScrollableContainerEl?: () => HTMLElement;
|
|
9798
9815
|
pivotId: UID;
|
|
9799
9816
|
}
|
|
9800
9817
|
declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChildEnv> {
|
|
@@ -9814,6 +9831,10 @@ declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChil
|
|
|
9814
9831
|
unusedGranularities: ObjectConstructor;
|
|
9815
9832
|
dateGranularities: ArrayConstructor;
|
|
9816
9833
|
datetimeGranularities: ArrayConstructor;
|
|
9834
|
+
getScrollableContainerEl: {
|
|
9835
|
+
type: FunctionConstructor;
|
|
9836
|
+
optional: boolean;
|
|
9837
|
+
};
|
|
9817
9838
|
pivotId: StringConstructor;
|
|
9818
9839
|
};
|
|
9819
9840
|
private dimensionsRef;
|