@sheetxl/query 0.8.0-beta.10 → 0.8.0-beta.12

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.
@@ -0,0 +1,22 @@
1
+ import { IPageLayout, IWorksheet } from '@sheetxl/sdk';
2
+ /**
3
+ * The sheet report's `Print:` line — what differs from Excel's defaults — or `null` when nothing
4
+ * does.
5
+ *
6
+ * @remarks
7
+ * Built from the settings a reader acts on, not from `toJSON()`: a file routinely carries print
8
+ * state nobody chose (the printer's resolution, its opaque settings, the automatic breaks Excel
9
+ * last paginated with), and a sheet whose only print state is that is a default sheet.
10
+ */
11
+ export declare function describePageLayout(sheet: IWorksheet): string | null;
12
+ /**
13
+ * Renders a sheet's print layout — what `getPageLayout()` answers with.
14
+ *
15
+ * @remarks
16
+ * The page-shaping settings (orientation, paper, scale, margins, print area, titles, breaks) are
17
+ * always listed, marked when they are the default, so the report says how the sheet prints and not
18
+ * only how it differs. The rest is listed only when set: a line per default would bury the few that
19
+ * are not.
20
+ */
21
+ export declare function renderPageLayout(layout: IPageLayout): string;
22
+ //# sourceMappingURL=renderPageLayout.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ICellRange, ICell, IProtectedRange, IProtection, ISheet, ISheetProtection, IWorkbookProtection } from '@sheetxl/sdk';
1
+ import { ICellRange, ICell, IProtectedRange, IProtection, IWorksheet, IWorksheetProtection, IWorkbookProtection } from '@sheetxl/sdk';
2
2
  import { MarkdownBuilder } from './MarkdownBuilder';
3
3
  type AnyProtection = IProtection<any, any, any>;
4
4
  /**
@@ -21,7 +21,7 @@ export declare const describeWorkbookProtection: (protection: IWorkbookProtectio
21
21
  *
22
22
  * @returns `null` when the sheet is not protected.
23
23
  */
24
- export declare function summarizeSheetProtection(sheet: ISheet): {
24
+ export declare function summarizeSheetProtection(sheet: IWorksheet): {
25
25
  extent: string;
26
26
  detail: string;
27
27
  } | null;
@@ -38,7 +38,7 @@ export declare function summarizeSheetProtection(sheet: ISheet): {
38
38
  * own: on an unprotected sheet an unlocked cell refuses nothing and says nothing, and on a
39
39
  * protected one it is this section's body.
40
40
  */
41
- export declare function appendSheetProtection(md: MarkdownBuilder, sheet: ISheet): void;
41
+ export declare function appendSheetProtection(md: MarkdownBuilder, sheet: IWorksheet): void;
42
42
  /**
43
43
  * A range report's `Protection:` line — how much of the range a write reaches — or `null` when the
44
44
  * sheet is not locked.
@@ -68,7 +68,7 @@ export declare function protectionPointerFor(error: unknown): string | null;
68
68
  * `sheet.getRegions("unlock")` on their own. An unprotected object still renders — the caller asked
69
69
  * — as the one line that says so, plus the options it keeps for its next lock.
70
70
  */
71
- export declare function renderProtection(protection: ISheetProtection | IWorkbookProtection): string;
71
+ export declare function renderProtection(protection: IWorksheetProtection | IWorkbookProtection): string;
72
72
  /**
73
73
  * Renders one unlocked range — a member of what `sheet.getProtectedRanges()` holds.
74
74
  *
@@ -50,7 +50,15 @@ export declare function appendRegionList(md: MarkdownBuilder, regions: readonly
50
50
  payload?: RegionPayload;
51
51
  profile?: boolean;
52
52
  series?: boolean;
53
+ collapse?: RegionKey;
53
54
  }): void;
55
+ /** What a region says, as a key two regions saying the same thing share; `null` keeps it on its own. */
56
+ export type RegionKey = (region: ICellRegion) => string | null;
57
+ /**
58
+ * An `anomalies` region's key: its findings, check and evidence, without the rank. Two regions
59
+ * with the same findings are one line of the listing.
60
+ */
61
+ export declare const anomalyRegionKey: RegionKey;
54
62
  /**
55
63
  * Renders a partition — the unit `getRegions` returns, so an agent addresses structure instead
56
64
  * of guessing ranges.
@@ -21,7 +21,7 @@ export interface RenderWorkbookOptions extends Pick<AppendNamesOptions, 'maxName
21
21
  * regions and distinct formulas say how many ideas the model has, and distinct fonts and formats
22
22
  * say whether the styling is a convention. A layer that is empty has no line. The structure
23
23
  * behind each line is the sheet report's, and the `content` line carries that sheet's call
24
- * (`wb.getSheet("Sales") lists the blocks`): a reader routes by copying an address off the roster,
24
+ * (`wb.getWorksheet("Sales") lists the blocks`): a reader routes by copying an address off the roster,
25
25
  * so the call to the fuller report sits on the line the address is read from. **Twins** — sheets
26
26
  * whose formula partitions are identical, where the audit is the diff between them — are named on
27
27
  * the sheet.
@@ -1,9 +1,9 @@
1
- import { ISheet } from '@sheetxl/sdk';
1
+ import { IWorksheet } from '@sheetxl/sdk';
2
2
  import { AppendFeatureOptions } from './appendSections';
3
3
  /**
4
- * Options for {@link renderSheet}.
4
+ * Options for {@link renderWorksheet}.
5
5
  */
6
- export interface RenderSheetOptions extends AppendFeatureOptions {
6
+ export interface RenderWorksheetOptions extends AppendFeatureOptions {
7
7
  }
8
8
  /**
9
9
  * Renders a markdown report of a sheet: counts, one section per feature partition, the sheet-level
@@ -24,5 +24,5 @@ export interface RenderSheetOptions extends AppendFeatureOptions {
24
24
  * then asked for, so the two calls compose into the whole read: this one to find the blocks,
25
25
  * that one to read one.
26
26
  */
27
- export declare function renderSheet(sheet: ISheet, options?: RenderSheetOptions): Promise<string>;
28
- //# sourceMappingURL=renderSheet.d.ts.map
27
+ export declare function renderWorksheet(sheet: IWorksheet, options?: RenderWorksheetOptions): Promise<string>;
28
+ //# sourceMappingURL=renderWorksheet.d.ts.map