@odoo/o-spreadsheet 17.4.21 → 17.4.23
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 +176 -114
- package/dist/o-spreadsheet.d.ts +21 -1
- package/dist/o-spreadsheet.esm.js +176 -114
- package/dist/o-spreadsheet.iife.js +176 -114
- package/dist/o-spreadsheet.iife.min.js +347 -347
- package/dist/o_spreadsheet.xml +5 -4
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4884,6 +4884,7 @@ declare class GridSelectionPlugin extends UIPlugin {
|
|
|
4884
4884
|
private onAddElements;
|
|
4885
4885
|
private onMoveElements;
|
|
4886
4886
|
private isMoveElementAllowed;
|
|
4887
|
+
private fallbackToVisibleSheet;
|
|
4887
4888
|
/**
|
|
4888
4889
|
* Clip the selection if it spans outside the sheet
|
|
4889
4890
|
*/
|
|
@@ -5642,6 +5643,20 @@ declare class UuidGenerator {
|
|
|
5642
5643
|
private isFastIdStrategy;
|
|
5643
5644
|
private fastIdStart;
|
|
5644
5645
|
setIsFastStrategy(isFast: boolean): void;
|
|
5646
|
+
/**
|
|
5647
|
+
* Generates a custom UUID using a simple 36^12 method (8-character alphanumeric string with lowercase letters)
|
|
5648
|
+
* This has a higher chance of collision than a UUIDv4, but not only faster to generate than an UUIDV4,
|
|
5649
|
+
* it also has a smaller size, which is preferable to alleviate the overall data size.
|
|
5650
|
+
*
|
|
5651
|
+
* This method is preferable when generating uuids for the core data (sheetId, figureId, etc)
|
|
5652
|
+
* as they will appear several times in the revisions and local history.
|
|
5653
|
+
*
|
|
5654
|
+
*/
|
|
5655
|
+
smallUuid(): string;
|
|
5656
|
+
/**
|
|
5657
|
+
* Generates an UUIDV4, has astronomically low chance of collision, but is larger in size than the smallUuid.
|
|
5658
|
+
* This method should be used when you need to avoid collisions at all costs, like the id of a revision.
|
|
5659
|
+
*/
|
|
5645
5660
|
uuidv4(): string;
|
|
5646
5661
|
}
|
|
5647
5662
|
|
|
@@ -8977,7 +8992,7 @@ interface DndPartialArgs {
|
|
|
8977
8992
|
draggedItemId: UID;
|
|
8978
8993
|
initialMousePosition: Pixel;
|
|
8979
8994
|
items: DragAndDropItemsPartial[];
|
|
8980
|
-
|
|
8995
|
+
scrollableContainerEl: HTMLElement;
|
|
8981
8996
|
onChange?: () => void;
|
|
8982
8997
|
onCancel?: () => void;
|
|
8983
8998
|
onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
|
|
@@ -9367,6 +9382,7 @@ interface Props$d {
|
|
|
9367
9382
|
unusedMeasureFields: PivotField[];
|
|
9368
9383
|
unusedDateTimeGranularities: Record<string, Set<string>>;
|
|
9369
9384
|
allGranularities: string[];
|
|
9385
|
+
getScrollableContainerEl?: () => HTMLElement;
|
|
9370
9386
|
}
|
|
9371
9387
|
declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChildEnv> {
|
|
9372
9388
|
static template: string;
|
|
@@ -9383,6 +9399,10 @@ declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChil
|
|
|
9383
9399
|
unusedMeasureFields: ArrayConstructor;
|
|
9384
9400
|
unusedDateTimeGranularities: ObjectConstructor;
|
|
9385
9401
|
allGranularities: ArrayConstructor;
|
|
9402
|
+
getScrollableContainerEl: {
|
|
9403
|
+
type: FunctionConstructor;
|
|
9404
|
+
optional: boolean;
|
|
9405
|
+
};
|
|
9386
9406
|
};
|
|
9387
9407
|
private dimensionsRef;
|
|
9388
9408
|
private dragAndDrop;
|