@odoo/o-spreadsheet 18.2.0-alpha.7 → 18.2.0-alpha.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.
@@ -1247,6 +1247,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
1247
1247
  private onClientJoined;
1248
1248
  private onClientLeft;
1249
1249
  private sendUpdateMessage;
1250
+ private dropPendingRevision;
1250
1251
  /**
1251
1252
  * Send the next pending message
1252
1253
  */
@@ -1451,6 +1452,20 @@ declare function splitReference(ref: string): {
1451
1452
  declare function computeTextWidth(context: CanvasRenderingContext2D, text: string, style: Style, fontUnit?: "px" | "pt"): number;
1452
1453
 
1453
1454
  declare class UuidGenerator {
1455
+ /**
1456
+ * Generates a custom UUID using a simple 36^12 method (8-character alphanumeric string with lowercase letters)
1457
+ * This has a higher chance of collision than a UUIDv4, but not only faster to generate than an UUIDV4,
1458
+ * it also has a smaller size, which is preferable to alleviate the overall data size.
1459
+ *
1460
+ * This method is preferable when generating uuids for the core data (sheetId, figureId, etc)
1461
+ * as they will appear several times in the revisions and local history.
1462
+ *
1463
+ */
1464
+ smallUuid(): string;
1465
+ /**
1466
+ * Generates an UUIDV4, has astronomically low chance of collision, but is larger in size than the smallUuid.
1467
+ * This method should be used when you need to avoid collisions at all costs, like the id of a revision.
1468
+ */
1454
1469
  uuidv4(): string;
1455
1470
  }
1456
1471
 
@@ -2054,6 +2069,7 @@ declare class GridSelectionPlugin extends UIPlugin {
2054
2069
  private onAddElements;
2055
2070
  private onMoveElements;
2056
2071
  private isMoveElementAllowed;
2072
+ private fallbackToVisibleSheet;
2057
2073
  /**
2058
2074
  * Clip the selection if it spans outside the sheet
2059
2075
  */
@@ -12719,9 +12735,9 @@ declare const chartHelpers: {
12719
12735
  getGeoChartData(definition: GeoChartDefinition, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): GeoChartRuntimeGenerationArgs;
12720
12736
  getTrendDatasetForBarChart(config: TrendConfiguration, data: any[]): chart_js.Point[] | undefined;
12721
12737
  getTrendDatasetForLineChart(config: TrendConfiguration, data: any[], labels: string[], axisType: AxisType, locale: Locale): chart_js.Point[] | undefined;
12722
- canChartParseLabels(labelRange: Range | undefined, getters: Getters): boolean;
12738
+ canChartParseLabels(definition: GenericDefinition<LineChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): boolean;
12723
12739
  getData(getters: Getters, ds: DataSet): (CellValue | undefined)[];
12724
- getChartLabelFormat(getters: Getters, range: Range | undefined): Format | undefined;
12740
+ getChartLabelFormat(getters: Getters, range: Range | undefined, shouldRemoveFirstLabel: boolean): Format | undefined;
12725
12741
  getBarChartDatasets(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"line" | "bar">[];
12726
12742
  getWaterfallDatasetAndLabels(definition: GenericDefinition<WaterfallChartDefinition>, args: ChartRuntimeGenerationArgs): {
12727
12743
  datasets: chart_js.ChartDataset[];