@itwin/core-common 5.2.0-dev.31 → 5.2.0-dev.33

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.
@@ -1,7 +1,7 @@
1
1
  /** @packageDocumentation
2
2
  * @module Annotation
3
3
  */
4
- import { TextStyleSettingsProps } from "./TextStyle";
4
+ import { ListMarker, TextStyleSettingsProps } from "./TextStyle";
5
5
  import { FieldFormatOptions, FieldPropertyHost, FieldPropertyPath } from "./TextField";
6
6
  /** Options supplied to [[TextBlockComponent.clearStyleOverrides]] to control how the style overrides are cleared on the component and its child components.
7
7
  * @beta
@@ -41,9 +41,23 @@ export interface TextBlockStringifyOptions {
41
41
  * Default: "undefined" - use "\t".
42
42
  */
43
43
  tabsAsSpaces?: number;
44
+ /** A string to insert in between the list marker and the list item.
45
+ * Default: " " - a single space.
46
+ */
47
+ listMarkerBreak?: string;
48
+ }
49
+ /**
50
+ * Context information that may be useful when converting a [[TextBlock]] to a string.
51
+ * @beta
52
+ */
53
+ export interface TextBlockStringifyContext {
54
+ /** The current depth of the text block in the document structure. */
55
+ depth: number;
44
56
  }
45
- /** Abstract representation of any of the building blocks that make up a [[TextBlock]] document - namely [[Run]]s, [[Paragraph]]s, and [[TextBlock]] itself.
46
- * The [[TextBlock]] can specify an [AnnotationTextStyle]($backend) that formats its contents. Each component can specify an optional [[styleOverrides]] to customize that formatting.
57
+ /**
58
+ * Abstract representation of any of the building blocks that make up a [[TextBlock]] document - namely [[Run]]s and [[StructuralTextBlockComponent]]s.
59
+ * The [[TextBlock]] can specify an [AnnotationTextStyle]($backend) that formats its contents.
60
+ * Each component can specify an optional [[styleOverrides]] to customize that formatting.
47
61
  * @beta
48
62
  */
49
63
  export declare abstract class TextBlockComponent {
@@ -63,7 +77,9 @@ export declare abstract class TextBlockComponent {
63
77
  /** Create a deep copy of this component. */
64
78
  abstract clone(): TextBlockComponent;
65
79
  /** Compute a string representation of the contents of this component and all of its sub-components. */
66
- abstract stringify(options?: TextBlockStringifyOptions): string;
80
+ abstract stringify(options?: TextBlockStringifyOptions, context?: TextBlockStringifyContext): string;
81
+ /** Returns true if this component has no content or children. */
82
+ abstract get isEmpty(): boolean;
67
83
  /**
68
84
  * Returns true if the string representation of this component consists only of whitespace characters.
69
85
  * Useful for checking if the component is visually empty (producing no graphics) or contains only spaces, tabs, or line breaks.
@@ -90,7 +106,7 @@ export type RunProps = TextRunProps | FractionRunProps | TabRunProps | LineBreak
90
106
  */
91
107
  export declare namespace Run {
92
108
  /** Create a run from its JSON representation.
93
- * @see [[TextRun.create]], [[FractionRun.create]], and [[LineBreakRun.create]] to create a run directly.
109
+ * @see [[TextRun.create]], [[FractionRun.create]], [[FieldRun.create]], [[TabRun.create]], and [[LineBreakRun.create]] to create a run directly.
94
110
  */
95
111
  function fromJSON(props: RunProps): Run;
96
112
  }
@@ -129,6 +145,7 @@ export declare class TextRun extends TextBlockComponent {
129
145
  clone(): TextRun;
130
146
  toJSON(): TextRunProps;
131
147
  static create(props?: Omit<TextRunProps, "type">): TextRun;
148
+ get isEmpty(): boolean;
132
149
  /** Simply returns [[content]]. */
133
150
  stringify(): string;
134
151
  equals(other: TextBlockComponent): boolean;
@@ -159,6 +176,7 @@ export declare class FractionRun extends TextBlockComponent {
159
176
  toJSON(): FractionRunProps;
160
177
  clone(): FractionRun;
161
178
  static create(props?: Omit<FractionRunProps, "type">): FractionRun;
179
+ get isEmpty(): boolean;
162
180
  /** Formats the fraction as a string with the [[numerator]] and [[denominator]] separated by [[TextBlockStringifyOptions.fractionSeparator]]. */
163
181
  stringify(options?: TextBlockStringifyOptions): string;
164
182
  equals(other: TextBlockComponent): boolean;
@@ -178,8 +196,9 @@ export declare class LineBreakRun extends TextBlockComponent {
178
196
  readonly type = "linebreak";
179
197
  private constructor();
180
198
  toJSON(): LineBreakRunProps;
181
- static create(props?: TextBlockComponentProps): LineBreakRun;
199
+ static create(props?: Omit<LineBreakRunProps, "type">): LineBreakRun;
182
200
  clone(): LineBreakRun;
201
+ get isEmpty(): boolean;
183
202
  /** Simply returns [[TextBlockStringifyOptions.lineBreak]]. */
184
203
  stringify(options?: TextBlockStringifyOptions): string;
185
204
  equals(other: TextBlockComponent): boolean;
@@ -201,6 +220,7 @@ export declare class TabRun extends TextBlockComponent {
201
220
  toJSON(): TabRunProps;
202
221
  clone(): TabRun;
203
222
  static create(props?: Omit<TabRunProps, "type">): TabRun;
223
+ get isEmpty(): boolean;
204
224
  /**
205
225
  * Converts a [[TabRun]] to its string representation.
206
226
  * If the `tabsAsSpaces` option is provided, returns a string of spaces of the specified length.
@@ -264,6 +284,7 @@ export declare class FieldRun extends TextBlockComponent {
264
284
  toJSON(): FieldRunProps;
265
285
  /** Create a deep copy of this FieldRun. */
266
286
  clone(): FieldRun;
287
+ get isEmpty(): boolean;
267
288
  /** Convert this FieldRun to a simple string representation. */
268
289
  stringify(): string;
269
290
  /** Returns true if `this` is equivalent to `other`. */
@@ -273,29 +294,49 @@ export declare class FieldRun extends TextBlockComponent {
273
294
  * @beta
274
295
  */
275
296
  export interface ParagraphProps extends TextBlockComponentProps {
276
- /** The collection of [[Run]]s within the paragraph.
277
- * Default: an empty array.
278
- */
279
- runs?: RunProps[];
297
+ children?: Array<ListProps | RunProps>;
280
298
  }
281
- /** A collection of [[Run]]s within a [[TextBlock]]. Each paragraph within a text block is laid out on a separate line.
299
+ /** A collection of [[Run]]s and [[List]]s. Paragraphs can be appended to [[List]]s and [[TextBlock]]s.
300
+ * Each paragraph is laid out on a separate line. If included in a [[List]], the paragraph will be treated as a list item.
282
301
  * @beta
283
302
  */
284
303
  export declare class Paragraph extends TextBlockComponent {
285
- /** The runs within the paragraph. You can modify the contents of this array to change the content of the paragraph. */
286
- readonly runs: Run[];
304
+ readonly type = "paragraph";
305
+ readonly children: Array<List | Run>;
287
306
  private constructor();
288
- toJSON(): ParagraphProps;
289
307
  /** Create a paragraph from its JSON representation. */
290
- static create(props?: ParagraphProps): Paragraph;
308
+ static create(props?: Omit<ParagraphProps, "type">): Paragraph;
309
+ clearStyleOverrides(options?: ClearTextStyleOptions): void;
310
+ get isEmpty(): boolean;
291
311
  clone(): Paragraph;
292
- /**
293
- * Clears any [[styleOverrides]] applied to this Paragraph.
294
- * Will also clear [[styleOverrides]] from all child components unless [[ClearTextStyleOptions.preserveChildrenOverrides]] is `true`.
295
- */
312
+ toJSON(): ParagraphProps;
313
+ /** Compute a string representation of this paragraph by concatenating the string representations of all of its children. */
314
+ stringify(options?: TextBlockStringifyOptions, context?: TextBlockStringifyContext): string;
315
+ equals(other: TextBlockComponent): boolean;
316
+ }
317
+ /** JSON representation of a [[List]].
318
+ * @beta
319
+ */
320
+ export interface ListProps extends TextBlockComponentProps {
321
+ readonly type: "list";
322
+ children?: ParagraphProps[];
323
+ }
324
+ /** A collection of list items ([[Paragraph]]s). Lists can be appended to [[Paragraph]]s.
325
+ * Lists will be laid out on a new line. Each item in a list is laid out on a separate line.
326
+ * @beta
327
+ */
328
+ export declare class List extends TextBlockComponent {
329
+ readonly type = "list";
330
+ readonly children: Paragraph[];
331
+ protected constructor(props?: ListProps);
332
+ /** Create a list from its JSON representation. */
333
+ static create(props?: Omit<ListProps, "type">): List;
296
334
  clearStyleOverrides(options?: ClearTextStyleOptions): void;
297
- /** Compute a string representation of this paragraph by concatenating the string representations of all of its [[runs]]. */
298
- stringify(options?: TextBlockStringifyOptions): string;
335
+ get isEmpty(): boolean;
336
+ clone(): List;
337
+ toJSON(): ListProps;
338
+ /** Compute a string representation of this list by concatenating the string representations of all of its [[children]]. */
339
+ stringify(options?: TextBlockStringifyOptions, context?: TextBlockStringifyContext): string;
299
340
  equals(other: TextBlockComponent): boolean;
300
341
  }
301
342
  /** Describes the relative alignment of the content of a [[TextBlock]].
@@ -328,16 +369,15 @@ export interface TextBlockProps extends TextBlockComponentProps {
328
369
  justification?: TextBlockJustification;
329
370
  /** The margins to surround the document content. Default: 0 margins on all sides */
330
371
  margins?: Partial<TextBlockMargins>;
331
- /** The paragraphs within the text block. Default: an empty array. */
332
- paragraphs?: ParagraphProps[];
372
+ children?: ParagraphProps[];
333
373
  }
334
- /** Represents a formatted text document consisting of a series of [[Paragraph]]s, each laid out on a separate line and containing their own content in the form of [[Run]]s.
335
- * You can change the content of the document by directly modifying the contents of its [[paragraphs]], or via [[appendParagraph]] and [[appendRun]].
374
+ /** Represents a formatted text document consisting of a series of [[Paragraph]]s, each laid out on a separate line and containing their own content.
336
375
  * No word-wrapping is applied to the document unless a [[width]] greater than zero is specified.
337
376
  * @see [[TextAnnotation]] to position a text block as an annotation in 2d or 3d space.
338
377
  * @beta
339
378
  */
340
379
  export declare class TextBlock extends TextBlockComponent {
380
+ readonly children: Paragraph[];
341
381
  /** The width of the document in meters. Lines that would exceed this width are instead wrapped around to the next line if possible.
342
382
  * A value less than or equal to zero indicates no wrapping is to be applied.
343
383
  * Default: 0
@@ -347,31 +387,52 @@ export declare class TextBlock extends TextBlockComponent {
347
387
  justification: TextBlockJustification;
348
388
  /** The margins of the document. */
349
389
  margins: TextBlockMargins;
350
- /** The ordered list of paragraphs within the document. */
351
- readonly paragraphs: Paragraph[];
352
390
  private constructor();
391
+ clearStyleOverrides(options?: ClearTextStyleOptions): void;
353
392
  toJSON(): TextBlockProps;
354
393
  /** Create a text block from its JSON representation. */
355
- static create(props?: TextBlockProps): TextBlock;
394
+ static create(props?: Omit<TextBlockProps, "type">): TextBlock;
356
395
  /** Returns true if every paragraph in this text block is empty. */
357
396
  get isEmpty(): boolean;
358
397
  clone(): TextBlock;
359
- /**
360
- * Clears any [[styleOverrides]] applied to this TextBlock.
361
- * Will also clear [[styleOverrides]] from all child components unless [[ClearTextStyleOptions.preserveChildrenOverrides]] is `true`.
362
- */
363
- clearStyleOverrides(options?: ClearTextStyleOptions): void;
364
- /** Compute a string representation of the document's contents by concatenating the string representations of each of its [[paragraphs]], separated by [[TextBlockStringifyOptions.paragraphBreak]]. */
398
+ /** Compute a string representation of the document's contents by concatenating the string representations of each of its [[children]], separated by [[TextBlockStringifyOptions.paragraphBreak]]. */
365
399
  stringify(options?: TextBlockStringifyOptions): string;
366
400
  /** Add and return a new paragraph.
367
401
  * By default, the paragraph will be created with no [[styleOverrides]], so that it inherits the style of this block.
368
- * @param seedFromLast If true and [[paragraphs]] is not empty, the new paragraph will inherit the style overrides of the last [[Paragraph]] in this block.
402
+ * @param seedFromLast If true and [[children]] is not empty, the new paragraph will inherit the style overrides of the last child in this block.
403
+ * @note Be sure you pass in [[ParagraphProps]] and not [[Paragraph]] or style overrides will be ignored.
369
404
  */
370
- appendParagraph(seedFromLast?: boolean): Paragraph;
405
+ appendParagraph(props?: ParagraphProps, seedFromLast?: boolean): Paragraph;
371
406
  /** Append a run to the last [[Paragraph]] in this block.
372
- * If the block contains no [[paragraphs]], a new one will first be created using [[appendParagraph]].
407
+ * If the block contains no [[children]], a new [[Paragraph]] will first be created using [[appendParagraph]].
373
408
  */
374
409
  appendRun(run: Run): void;
375
410
  equals(other: TextBlockComponent): boolean;
376
411
  }
412
+ /**
413
+ * A union of all the [[TextBlockComponent]]s that can contain other components.
414
+ * @beta
415
+ */
416
+ export type StructuralTextBlockComponent = List | Paragraph | TextBlock;
417
+ /**
418
+ * Recursively traverses a [[StructuralTextBlockComponent]] tree, yielding each child component along with its parent container.
419
+ * This generator enables depth-first iteration over all components in a text block structure, including paragraphs, lists, and runs.
420
+ *
421
+ * @param parent The root container whose children should be traversed.
422
+ * @returns An IterableIterator yielding objects with the child component and its parent container.
423
+ * @beta
424
+ */
425
+ export declare function traverseTextBlockComponent(parent: StructuralTextBlockComponent): IterableIterator<{
426
+ parent: StructuralTextBlockComponent;
427
+ child: List | Paragraph | Run;
428
+ }>;
429
+ /**
430
+ * Returns the formatted marker text for a list item based on the marker type and item number.
431
+ * Supports ordered and unordered list markers, including alphabetic, Roman numeral, and numeric formats.
432
+ * @param marker The type of list marker to use.
433
+ * @param num The item number in the list.
434
+ * @returns The formatted marker string for the list item.
435
+ * @beta
436
+ */
437
+ export declare function getMarkerText(marker: ListMarker, num: number): string;
377
438
  //# sourceMappingURL=TextBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextBlock.d.ts","sourceRoot":"","sources":["../../../src/annotation/TextBlock.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAqB,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,8BAAsB,kBAAkB;IACtC,OAAO,CAAC,eAAe,CAAyB;IAEhD,gBAAgB;IAChB,SAAS,aAAa,KAAK,CAAC,EAAE,uBAAuB;IAIrD;;;OAGG;IACH,IAAW,cAAc,IAAI,sBAAsB,CAElD;IAED,IAAW,cAAc,CAAC,SAAS,EAAE,sBAAsB,EAE1D;IAED,8DAA8D;IACvD,mBAAmB,CAAC,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI;IAIlE,4HAA4H;IAC5H,IAAW,cAAc,IAAI,OAAO,CAEnC;IAED,4CAA4C;aAC5B,KAAK,IAAI,kBAAkB;IAE3C,uGAAuG;aACvF,SAAS,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,MAAM;IAEtE;;;MAGE;IACF,IAAW,YAAY,IAAI,OAA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