@univerjs/core 0.8.1 → 0.8.2-nightly.202506201607

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.
@@ -16,6 +16,6 @@
16
16
  export declare class CustomCommandExecutionError extends Error {
17
17
  constructor(message: string);
18
18
  }
19
- export declare class CanceledError extends Error {
19
+ export declare class CanceledError extends CustomCommandExecutionError {
20
20
  constructor();
21
21
  }
@@ -1,4 +1,4 @@
1
- import { UpdateDocsAttributeType } from '../../../../shared';
2
1
  import { IDocumentBody, ITextRun } from '../../../../types/interfaces';
2
+ import { UpdateDocsAttributeType } from '../../../../shared';
3
3
  export declare function updateAttribute(body: IDocumentBody, updateBody: IDocumentBody, textLength: number, currentIndex: number, coverType: UpdateDocsAttributeType): IDocumentBody;
4
4
  export declare function coverTextRuns(updateDataTextRuns: ITextRun[], originTextRuns: ITextRun[], coverType: UpdateDocsAttributeType): ITextRun[];
@@ -1,7 +1,7 @@
1
1
  import { ITextRange } from '../../../sheets/typedef';
2
2
  import { IDocumentBody } from '../../../types/interfaces/i-document-data';
3
- import { UpdateDocsAttributeType } from '../../../shared/command-enum';
4
3
  import { TextXAction } from './action-types';
4
+ import { UpdateDocsAttributeType } from '../../../shared/command-enum';
5
5
  export type TPriority = 'left' | 'right';
6
6
  export declare class TextX {
7
7
  static id: string;
@@ -1,6 +1,6 @@
1
+ import { IDocumentBody } from '../../../types/interfaces';
1
2
  import { IRetainAction } from './action-types';
2
3
  import { UpdateDocsAttributeType } from '../../../shared';
3
- import { IDocumentBody } from '../../../types/interfaces';
4
4
  interface ITransformBodyResult {
5
5
  body: IDocumentBody;
6
6
  coverType: UpdateDocsAttributeType;
@@ -198,6 +198,11 @@ export interface ICellData {
198
198
  * Raw formula string. For example `=SUM(A1:B4)`.
199
199
  */
200
200
  f?: Nullable<string>;
201
+ /**
202
+ * If the formula is a formula array, this field is used to store the referencing range.
203
+ * @ignore
204
+ */
205
+ ref?: Nullable<string>;
201
206
  /**
202
207
  * Id of the formula.
203
208
  */
@@ -237,6 +237,12 @@ export declare class Worksheet {
237
237
  getCellRaw(row: number, col: number): Nullable<ICellData>;
238
238
  getCellWithFilteredInterceptors(row: number, col: number, key: string, filter: (interceptor: IInterceptor<any, any>) => boolean): Nullable<ICellDataForSheetInterceptor>;
239
239
  getRowFiltered(row: number): boolean;
240
+ /**
241
+ * Get the filtered out rows in a given range. used for remove rows operation, etc.
242
+ * @param range - The range to get filtered rows from.
243
+ * @returns {number[]} An array of row indices that are filtered out within the specified range.
244
+ */
245
+ getRangeFilterRows(range: IRange): number[];
240
246
  /**
241
247
  * Get cell matrix from a given range and pick out non-first cells of merged cells.
242
248
  *
@@ -1,7 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
- import { UnitModel, UniverInstanceType } from '../common/unit';
3
- import { PageType, ISlideData, ISlidePage } from '../types/interfaces';
4
2
  import { Nullable } from '../shared';
3
+ import { ISlideData, ISlidePage, PageType } from '../types/interfaces';
4
+ import { UnitModel, UniverInstanceType } from '../common/unit';
5
5
  export declare class SlideDataModel extends UnitModel<ISlideData, UniverInstanceType.UNIVER_SLIDE> {
6
6
  type: UniverInstanceType.UNIVER_SLIDE;
7
7
  private readonly _activePage$;
@@ -184,8 +184,7 @@ export interface IStyleData extends IStyleBase {
184
184
  */
185
185
  tb?: Nullable<WrapStrategy>;
186
186
  /**
187
- * padding @TODO
188
- * @description The `pd` property has not been fully implemented yet.
187
+ * padding
189
188
  */
190
189
  pd?: Nullable<IPaddingData>;
191
190
  }