@office-kit/xlsx 0.8.0
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/LICENSE +21 -0
- package/README.md +319 -0
- package/THIRD_PARTY_NOTICES.md +56 -0
- package/dist/cell/cell.d.ts +234 -0
- package/dist/cell/index.d.ts +4 -0
- package/dist/cell/rich-text.d.ts +37 -0
- package/dist/cell-D9CaNKnU.mjs +320 -0
- package/dist/cell-D9CaNKnU.mjs.map +1 -0
- package/dist/cell-style-BEDjMX1y.mjs +1579 -0
- package/dist/cell-style-BEDjMX1y.mjs.map +1 -0
- package/dist/cell.mjs +2 -0
- package/dist/chart/chart-xml.d.ts +16 -0
- package/dist/chart/chart.d.ts +735 -0
- package/dist/chart/cx/chartex-xml.d.ts +6 -0
- package/dist/chart/cx/chartex.d.ts +279 -0
- package/dist/chart/index.d.ts +6 -0
- package/dist/chart/user-shapes-xml.d.ts +4 -0
- package/dist/chart/user-shapes.d.ts +61 -0
- package/dist/chart.mjs +232 -0
- package/dist/chart.mjs.map +1 -0
- package/dist/chartsheet/chartsheet-xml.d.ts +17 -0
- package/dist/chartsheet/chartsheet.d.ts +121 -0
- package/dist/chartsheet/index.d.ts +2 -0
- package/dist/chartsheet-C3-tqkPy.mjs +23 -0
- package/dist/chartsheet-C3-tqkPy.mjs.map +1 -0
- package/dist/chartsheet.mjs +2 -0
- package/dist/colors-ovWAwnZI.mjs +67 -0
- package/dist/colors-ovWAwnZI.mjs.map +1 -0
- package/dist/compat/numbers.d.ts +14 -0
- package/dist/coordinate-96Ecci4d.mjs +276 -0
- package/dist/coordinate-96Ecci4d.mjs.map +1 -0
- package/dist/datetime-B2ySVlXt.mjs +71 -0
- package/dist/datetime-B2ySVlXt.mjs.map +1 -0
- package/dist/defined-names-CviWmtQg.mjs +89 -0
- package/dist/defined-names-CviWmtQg.mjs.map +1 -0
- package/dist/differential-D4dg-qtZ.mjs +37 -0
- package/dist/differential-D4dg-qtZ.mjs.map +1 -0
- package/dist/drawing/anchor.d.ts +63 -0
- package/dist/drawing/dml/colors.d.ts +109 -0
- package/dist/drawing/dml/dml-xml.d.ts +35 -0
- package/dist/drawing/dml/effect.d.ts +92 -0
- package/dist/drawing/dml/fill.d.ts +115 -0
- package/dist/drawing/dml/geometry.d.ts +113 -0
- package/dist/drawing/dml/line.d.ts +41 -0
- package/dist/drawing/dml/shape-properties.d.ts +33 -0
- package/dist/drawing/dml/text.d.ts +218 -0
- package/dist/drawing/drawing-xml.d.ts +5 -0
- package/dist/drawing/drawing.d.ts +117 -0
- package/dist/drawing/image.d.ts +40 -0
- package/dist/drawing/index.d.ts +14 -0
- package/dist/drawing-BxzLuryn.mjs +415 -0
- package/dist/drawing-BxzLuryn.mjs.map +1 -0
- package/dist/drawing.mjs +119 -0
- package/dist/drawing.mjs.map +1 -0
- package/dist/escape-DFTE7ZJc.mjs +51 -0
- package/dist/escape-DFTE7ZJc.mjs.map +1 -0
- package/dist/exceptions-D-CFwxgm.mjs +37 -0
- package/dist/exceptions-D-CFwxgm.mjs.map +1 -0
- package/dist/formula/tokenizer.d.ts +61 -0
- package/dist/formula/translate.d.ts +67 -0
- package/dist/inference-B3ES3KEJ.mjs +42 -0
- package/dist/inference-B3ES3KEJ.mjs.map +1 -0
- package/dist/io/browser.d.ts +41 -0
- package/dist/io/index.d.ts +7 -0
- package/dist/io/load.d.ts +46 -0
- package/dist/io/node-fs.d.ts +62 -0
- package/dist/io/node-save.d.ts +3 -0
- package/dist/io/node.d.ts +17 -0
- package/dist/io/save.d.ts +14 -0
- package/dist/io/sink.d.ts +54 -0
- package/dist/io/source.d.ts +14 -0
- package/dist/io.mjs +212 -0
- package/dist/io.mjs.map +1 -0
- package/dist/load-D5cbhoGx.mjs +1069 -0
- package/dist/load-D5cbhoGx.mjs.map +1 -0
- package/dist/manifest-Dps1-OpP.mjs +801 -0
- package/dist/manifest-Dps1-OpP.mjs.map +1 -0
- package/dist/node.d.ts +3 -0
- package/dist/node.mjs +308 -0
- package/dist/node.mjs.map +1 -0
- package/dist/packaging/core.d.ts +45 -0
- package/dist/packaging/custom.d.ts +62 -0
- package/dist/packaging/extended.d.ts +45 -0
- package/dist/packaging/index.d.ts +10 -0
- package/dist/packaging/manifest.d.ts +24 -0
- package/dist/packaging/relationships.d.ts +30 -0
- package/dist/packaging.mjs +2 -0
- package/dist/parser-DuLejQy1.mjs +156 -0
- package/dist/parser-DuLejQy1.mjs.map +1 -0
- package/dist/reader-D1fNW9k1.mjs +534 -0
- package/dist/reader-D1fNW9k1.mjs.map +1 -0
- package/dist/save-RohQtgEZ.mjs +745 -0
- package/dist/save-RohQtgEZ.mjs.map +1 -0
- package/dist/schema/core.d.ts +133 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/serialize.d.ts +6 -0
- package/dist/schema.mjs +2 -0
- package/dist/serialize-55EnT30e.mjs +254 -0
- package/dist/serialize-55EnT30e.mjs.map +1 -0
- package/dist/serializer-BwbgHYJV.mjs +116 -0
- package/dist/serializer-BwbgHYJV.mjs.map +1 -0
- package/dist/streaming/index.d.ts +2 -0
- package/dist/streaming/read-only.d.ts +38 -0
- package/dist/streaming/write-only.d.ts +47 -0
- package/dist/streaming.mjs +612 -0
- package/dist/streaming.mjs.map +1 -0
- package/dist/styles/alignment.d.ts +33 -0
- package/dist/styles/alignment.schema.d.ts +3 -0
- package/dist/styles/borders.d.ts +40 -0
- package/dist/styles/borders.schema.d.ts +4 -0
- package/dist/styles/cell-style.d.ts +270 -0
- package/dist/styles/colors.d.ts +128 -0
- package/dist/styles/colors.schema.d.ts +3 -0
- package/dist/styles/differential.d.ts +41 -0
- package/dist/styles/fills.d.ts +54 -0
- package/dist/styles/fills.schema.d.ts +6 -0
- package/dist/styles/fonts.d.ts +44 -0
- package/dist/styles/fonts.schema.d.ts +3 -0
- package/dist/styles/index.d.ts +21 -0
- package/dist/styles/named-styles.d.ts +52 -0
- package/dist/styles/numbers.d.ts +39 -0
- package/dist/styles/numbers.schema.d.ts +3 -0
- package/dist/styles/protection.d.ts +9 -0
- package/dist/styles/protection.schema.d.ts +3 -0
- package/dist/styles/stylesheet-reader.d.ts +7 -0
- package/dist/styles/stylesheet-writer.d.ts +3 -0
- package/dist/styles/stylesheet.d.ts +95 -0
- package/dist/styles.mjs +4 -0
- package/dist/stylesheet-writer-C2eRmn22.mjs +8624 -0
- package/dist/stylesheet-writer-C2eRmn22.mjs.map +1 -0
- package/dist/table-DkX6UniA.mjs +113 -0
- package/dist/table-DkX6UniA.mjs.map +1 -0
- package/dist/tree-Bbs1C8Rc.mjs +192 -0
- package/dist/tree-Bbs1C8Rc.mjs.map +1 -0
- package/dist/units-rOMQqXh2.mjs +41 -0
- package/dist/units-rOMQqXh2.mjs.map +1 -0
- package/dist/user-shapes-DfmCGKB0.mjs +252 -0
- package/dist/user-shapes-DfmCGKB0.mjs.map +1 -0
- package/dist/utf8-D91g1XTG.mjs +143 -0
- package/dist/utf8-D91g1XTG.mjs.map +1 -0
- package/dist/utils/coordinate.d.ts +103 -0
- package/dist/utils/css.d.ts +18 -0
- package/dist/utils/datetime.d.ts +38 -0
- package/dist/utils/escape.d.ts +34 -0
- package/dist/utils/exceptions.d.ts +34 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/inference.d.ts +24 -0
- package/dist/utils/stable-stringify.d.ts +7 -0
- package/dist/utils/units.d.ts +14 -0
- package/dist/utils/utf8.d.ts +1 -0
- package/dist/utils.mjs +39 -0
- package/dist/utils.mjs.map +1 -0
- package/dist/workbook/calc-properties.d.ts +47 -0
- package/dist/workbook/defined-names.d.ts +121 -0
- package/dist/workbook/file-recovery.d.ts +11 -0
- package/dist/workbook/file-sharing.d.ts +14 -0
- package/dist/workbook/file-version.d.ts +13 -0
- package/dist/workbook/function-groups.d.ts +10 -0
- package/dist/workbook/index.d.ts +24 -0
- package/dist/workbook/protection.d.ts +35 -0
- package/dist/workbook/shared-strings.d.ts +57 -0
- package/dist/workbook/smart-tags.d.ts +13 -0
- package/dist/workbook/views.d.ts +89 -0
- package/dist/workbook/workbook-properties.d.ts +57 -0
- package/dist/workbook/workbook.d.ts +643 -0
- package/dist/workbook-HGYNRBlV.mjs +636 -0
- package/dist/workbook-HGYNRBlV.mjs.map +1 -0
- package/dist/workbook.mjs +58 -0
- package/dist/workbook.mjs.map +1 -0
- package/dist/worksheet/auto-filter.d.ts +34 -0
- package/dist/worksheet/cell-range.d.ts +121 -0
- package/dist/worksheet/comments-xml.d.ts +24 -0
- package/dist/worksheet/comments.d.ts +13 -0
- package/dist/worksheet/conditional-formatting.d.ts +150 -0
- package/dist/worksheet/custom-sheet-views.d.ts +43 -0
- package/dist/worksheet/data-consolidate.d.ts +29 -0
- package/dist/worksheet/data-validations.d.ts +72 -0
- package/dist/worksheet/dimensions.d.ts +40 -0
- package/dist/worksheet/errors.d.ts +40 -0
- package/dist/worksheet/hyperlinks.d.ts +42 -0
- package/dist/worksheet/index.d.ts +46 -0
- package/dist/worksheet/ole-objects.d.ts +37 -0
- package/dist/worksheet/page-setup.d.ts +173 -0
- package/dist/worksheet/phonetic.d.ts +11 -0
- package/dist/worksheet/properties.d.ts +34 -0
- package/dist/worksheet/protected-ranges.d.ts +19 -0
- package/dist/worksheet/protection.d.ts +44 -0
- package/dist/worksheet/reader.d.ts +38 -0
- package/dist/worksheet/scenarios.d.ts +36 -0
- package/dist/worksheet/smart-tags.d.ts +23 -0
- package/dist/worksheet/sort-state.d.ts +28 -0
- package/dist/worksheet/table-xml.d.ts +5 -0
- package/dist/worksheet/table.d.ts +80 -0
- package/dist/worksheet/views.d.ts +47 -0
- package/dist/worksheet/web-publish.d.ts +21 -0
- package/dist/worksheet/worksheet.d.ts +935 -0
- package/dist/worksheet/writer.d.ts +72 -0
- package/dist/worksheet-CmCNoIgD.mjs +1726 -0
- package/dist/worksheet-CmCNoIgD.mjs.map +1 -0
- package/dist/worksheet.mjs +247 -0
- package/dist/worksheet.mjs.map +1 -0
- package/dist/writer-DspzfkNA.mjs +221 -0
- package/dist/writer-DspzfkNA.mjs.map +1 -0
- package/dist/xml/index.d.ts +10 -0
- package/dist/xml/iterparse.d.ts +22 -0
- package/dist/xml/namespaces.d.ts +91 -0
- package/dist/xml/parser.d.ts +7 -0
- package/dist/xml/serializer.d.ts +14 -0
- package/dist/xml/stream-writer.d.ts +39 -0
- package/dist/xml/tree.d.ts +37 -0
- package/dist/xml.mjs +140 -0
- package/dist/xml.mjs.map +1 -0
- package/dist/zip/decompression-guard.d.ts +70 -0
- package/dist/zip/index.d.ts +6 -0
- package/dist/zip/random-access-reader.d.ts +16 -0
- package/dist/zip/reader.d.ts +45 -0
- package/dist/zip/writer.d.ts +65 -0
- package/dist/zip/zip64-patch.d.ts +12 -0
- package/dist/zip.mjs +3 -0
- package/package.json +147 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { type MultiCellRange } from './cell-range';
|
|
2
|
+
export type ConditionalFormattingRuleType = 'expression' | 'cellIs' | 'colorScale' | 'dataBar' | 'iconSet' | 'top10' | 'aboveAverage' | 'uniqueValues' | 'duplicateValues' | 'containsText' | 'notContainsText' | 'beginsWith' | 'endsWith' | 'containsBlanks' | 'notContainsBlanks' | 'containsErrors' | 'notContainsErrors' | 'timePeriod';
|
|
3
|
+
export type CellIsOperator = 'lessThan' | 'lessThanOrEqual' | 'equal' | 'notEqual' | 'greaterThanOrEqual' | 'greaterThan' | 'between' | 'notBetween';
|
|
4
|
+
export type TextOperator = 'containsText' | 'notContains' | 'beginsWith' | 'endsWith';
|
|
5
|
+
export type TimePeriod = 'today' | 'yesterday' | 'tomorrow' | 'last7Days' | 'thisMonth' | 'lastMonth' | 'nextMonth' | 'thisWeek' | 'lastWeek' | 'nextWeek';
|
|
6
|
+
export interface ConditionalFormattingRule {
|
|
7
|
+
/** Wire-level rule kind. */
|
|
8
|
+
type: ConditionalFormattingRuleType;
|
|
9
|
+
/** 1-based priority — Excel evaluates lower priority first. */
|
|
10
|
+
priority: number;
|
|
11
|
+
/** Index into Stylesheet.dxfs for the cell-format applied when the rule fires. */
|
|
12
|
+
dxfId?: number;
|
|
13
|
+
/** Stop evaluating subsequent rules on the same cell when this rule matches. */
|
|
14
|
+
stopIfTrue?: boolean;
|
|
15
|
+
/** cellIs operator. */
|
|
16
|
+
operator?: CellIsOperator | TextOperator | string;
|
|
17
|
+
/** Comparison string for the contains-text family. */
|
|
18
|
+
text?: string;
|
|
19
|
+
/** top10: rank percentage flag. */
|
|
20
|
+
percent?: boolean;
|
|
21
|
+
/** top10: bottom-N flag (false = top-N, true = bottom-N). */
|
|
22
|
+
bottom?: boolean;
|
|
23
|
+
/** top10: rank value (defaults to 10). */
|
|
24
|
+
rank?: number;
|
|
25
|
+
/** aboveAverage: aboveAverage="0" → below average. */
|
|
26
|
+
aboveAverage?: boolean;
|
|
27
|
+
/** aboveAverage: equalAverage flag. */
|
|
28
|
+
equalAverage?: boolean;
|
|
29
|
+
/** aboveAverage: stdDev. */
|
|
30
|
+
stdDev?: number;
|
|
31
|
+
/** timePeriod token. */
|
|
32
|
+
timePeriod?: TimePeriod;
|
|
33
|
+
/** 0..3 formula strings — varies by rule type. */
|
|
34
|
+
formulas: string[];
|
|
35
|
+
/**
|
|
36
|
+
* Raw inner XML for colorScale / dataBar / iconSet rules. Stage-1 stores the
|
|
37
|
+
* verbatim child markup so saves round-trip without our needing to model cfvo
|
|
38
|
+
* / colors / iconSets fully.
|
|
39
|
+
*/
|
|
40
|
+
innerXml?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ConditionalFormatting {
|
|
43
|
+
sqref: MultiCellRange;
|
|
44
|
+
rules: ConditionalFormattingRule[];
|
|
45
|
+
pivot?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare function makeConditionalFormatting(opts: {
|
|
48
|
+
sqref: MultiCellRange | string;
|
|
49
|
+
rules?: ConditionalFormattingRule[];
|
|
50
|
+
pivot?: boolean;
|
|
51
|
+
}): ConditionalFormatting;
|
|
52
|
+
export declare function makeCfRule(opts: Partial<ConditionalFormattingRule> & {
|
|
53
|
+
type: ConditionalFormattingRuleType;
|
|
54
|
+
priority: number;
|
|
55
|
+
}): ConditionalFormattingRule;
|
|
56
|
+
import type { Worksheet } from './worksheet';
|
|
57
|
+
/**
|
|
58
|
+
* "If cell value [op] formula → apply dxf". Mirrors Excel's "Highlight Cell
|
|
59
|
+
* Rules → ..." UI.
|
|
60
|
+
*/
|
|
61
|
+
export declare const addCellIsRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
62
|
+
operator: CellIsOperator;
|
|
63
|
+
formula1: string;
|
|
64
|
+
formula2?: string;
|
|
65
|
+
dxfId?: number;
|
|
66
|
+
stopIfTrue?: boolean;
|
|
67
|
+
priority?: number;
|
|
68
|
+
}) => ConditionalFormattingRule;
|
|
69
|
+
/** Top-N or bottom-N rule. `bottom: true` → bottom-N. `percent: true` → percentile. */
|
|
70
|
+
export declare const addTopNRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
71
|
+
rank?: number;
|
|
72
|
+
bottom?: boolean;
|
|
73
|
+
percent?: boolean;
|
|
74
|
+
dxfId?: number;
|
|
75
|
+
priority?: number;
|
|
76
|
+
}) => ConditionalFormattingRule;
|
|
77
|
+
/** Above/below-average rule. `aboveAverage: false` → below-average; provide `stdDev` for ±N stddev. */
|
|
78
|
+
export declare const addAverageRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
79
|
+
aboveAverage?: boolean;
|
|
80
|
+
equalAverage?: boolean;
|
|
81
|
+
stdDev?: number;
|
|
82
|
+
dxfId?: number;
|
|
83
|
+
priority?: number;
|
|
84
|
+
}) => ConditionalFormattingRule;
|
|
85
|
+
/** Duplicate-values rule (each cell whose value appears more than once gets the dxf). */
|
|
86
|
+
export declare const addDuplicateValuesRule: (ws: Worksheet, sqref: MultiCellRange | string, opts?: {
|
|
87
|
+
dxfId?: number;
|
|
88
|
+
priority?: number;
|
|
89
|
+
unique?: boolean;
|
|
90
|
+
}) => ConditionalFormattingRule;
|
|
91
|
+
/** Free-form formula rule — any `=ISNUMBER(A1)`-style boolean expression. */
|
|
92
|
+
export declare const addFormulaRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
93
|
+
formula: string;
|
|
94
|
+
dxfId?: number;
|
|
95
|
+
stopIfTrue?: boolean;
|
|
96
|
+
priority?: number;
|
|
97
|
+
}) => ConditionalFormattingRule;
|
|
98
|
+
/** Text-based rule (containsText / notContains / beginsWith / endsWith). */
|
|
99
|
+
export declare const addTextRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
100
|
+
operator: TextOperator;
|
|
101
|
+
text: string;
|
|
102
|
+
dxfId?: number;
|
|
103
|
+
priority?: number;
|
|
104
|
+
}) => ConditionalFormattingRule;
|
|
105
|
+
export type CfvoType = 'min' | 'max' | 'num' | 'percent' | 'percentile' | 'formula';
|
|
106
|
+
export interface Cfvo {
|
|
107
|
+
type: CfvoType;
|
|
108
|
+
/** Required for num / percent / percentile / formula; ignored for min / max. */
|
|
109
|
+
val?: string;
|
|
110
|
+
}
|
|
111
|
+
export type IconSetStyle = '3Arrows' | '3ArrowsGray' | '3Flags' | '3Signs' | '3Symbols' | '3Symbols2' | '3TrafficLights1' | '3TrafficLights2' | '4Arrows' | '4ArrowsGray' | '4Rating' | '4RedToBlack' | '4TrafficLights' | '5Arrows' | '5ArrowsGray' | '5Quarters' | '5Rating';
|
|
112
|
+
/**
|
|
113
|
+
* Color-scale rule — gradient between 2 or 3 reference points. Each cfvo pairs
|
|
114
|
+
* with one color.
|
|
115
|
+
*/
|
|
116
|
+
export declare const addColorScaleRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
117
|
+
cfvos: ReadonlyArray<Cfvo>;
|
|
118
|
+
/** Hex strings, e.g. `'FFFF0000'`; one per cfvo. */
|
|
119
|
+
colors: ReadonlyArray<string>;
|
|
120
|
+
priority?: number;
|
|
121
|
+
stopIfTrue?: boolean;
|
|
122
|
+
}) => ConditionalFormattingRule;
|
|
123
|
+
/**
|
|
124
|
+
* Data-bar rule — a gradient bar inside each cell sized to the value. Defaults
|
|
125
|
+
* to `min`/`max` cfvos so the bar spans the visible range.
|
|
126
|
+
*/
|
|
127
|
+
export declare const addDataBarRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
128
|
+
color: string;
|
|
129
|
+
minCfvo?: Cfvo;
|
|
130
|
+
maxCfvo?: Cfvo;
|
|
131
|
+
minLength?: number;
|
|
132
|
+
maxLength?: number;
|
|
133
|
+
showValue?: boolean;
|
|
134
|
+
priority?: number;
|
|
135
|
+
stopIfTrue?: boolean;
|
|
136
|
+
}) => ConditionalFormattingRule;
|
|
137
|
+
/**
|
|
138
|
+
* Icon-set rule — visual icons (arrows / lights / flags) drawn next to each
|
|
139
|
+
* cell value. The number of cfvos depends on the icon set (3 for `3Arrows`, 4
|
|
140
|
+
* for `4Arrows`, 5 for `5Arrows`, etc).
|
|
141
|
+
*/
|
|
142
|
+
export declare const addIconSetRule: (ws: Worksheet, sqref: MultiCellRange | string, opts: {
|
|
143
|
+
iconSet: IconSetStyle | string;
|
|
144
|
+
cfvos: ReadonlyArray<Cfvo>;
|
|
145
|
+
reverse?: boolean;
|
|
146
|
+
showValue?: boolean;
|
|
147
|
+
percent?: boolean;
|
|
148
|
+
priority?: number;
|
|
149
|
+
stopIfTrue?: boolean;
|
|
150
|
+
}) => ConditionalFormattingRule;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { HeaderFooter, PageBreak, PageMargins, PageSetup, PrintOptions } from './page-setup';
|
|
2
|
+
import type { Pane, Selection, SheetViewMode } from './views';
|
|
3
|
+
export type CustomSheetViewState = 'visible' | 'hidden' | 'veryHidden';
|
|
4
|
+
export interface CustomSheetView {
|
|
5
|
+
guid: string;
|
|
6
|
+
scale?: number;
|
|
7
|
+
/** 0..64 (legacy palette index) */
|
|
8
|
+
colorId?: number;
|
|
9
|
+
showPageBreaks?: boolean;
|
|
10
|
+
showFormulas?: boolean;
|
|
11
|
+
showGridLines?: boolean;
|
|
12
|
+
showRowCol?: boolean;
|
|
13
|
+
outlineSymbols?: boolean;
|
|
14
|
+
zeroValues?: boolean;
|
|
15
|
+
fitToPage?: boolean;
|
|
16
|
+
/** Print only the print-area selection on this saved view. */
|
|
17
|
+
printArea?: boolean;
|
|
18
|
+
/** AutoFilter is active in this saved view. */
|
|
19
|
+
filter?: boolean;
|
|
20
|
+
showAutoFilter?: boolean;
|
|
21
|
+
/** Hidden rows persist for this saved view. */
|
|
22
|
+
hiddenRows?: boolean;
|
|
23
|
+
hiddenColumns?: boolean;
|
|
24
|
+
state?: CustomSheetViewState;
|
|
25
|
+
filterUnique?: boolean;
|
|
26
|
+
view?: SheetViewMode;
|
|
27
|
+
showRuler?: boolean;
|
|
28
|
+
/** Top-left cell ref shown when this view is restored. */
|
|
29
|
+
topLeftCell?: string;
|
|
30
|
+
/** Inner pane split / freeze. */
|
|
31
|
+
pane?: Pane;
|
|
32
|
+
/** Selection state for this view (one entry per pane). */
|
|
33
|
+
selections?: Selection[];
|
|
34
|
+
rowBreaks?: PageBreak[];
|
|
35
|
+
colBreaks?: PageBreak[];
|
|
36
|
+
pageMargins?: PageMargins;
|
|
37
|
+
printOptions?: PrintOptions;
|
|
38
|
+
pageSetup?: PageSetup;
|
|
39
|
+
headerFooter?: HeaderFooter;
|
|
40
|
+
}
|
|
41
|
+
export declare const makeCustomSheetView: (opts: Partial<CustomSheetView> & {
|
|
42
|
+
guid: string;
|
|
43
|
+
}) => CustomSheetView;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type DataConsolidateFunction = 'average' | 'count' | 'countNums' | 'max' | 'min' | 'product' | 'stdDev' | 'stdDevp' | 'sum' | 'var' | 'varp';
|
|
2
|
+
export interface DataReference {
|
|
3
|
+
/** Optional name of the source range (defined-name reference). */
|
|
4
|
+
name?: string;
|
|
5
|
+
/** External range ref like "Sheet1!$A$1:$B$10" — required when no `rId`. */
|
|
6
|
+
ref?: string;
|
|
7
|
+
/** Optional friendly sheet name for display. */
|
|
8
|
+
sheet?: string;
|
|
9
|
+
/** rels rId pointing at an external workbook part — round-tripped verbatim. */
|
|
10
|
+
rId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DataConsolidate {
|
|
13
|
+
/** Aggregation function applied to overlapping cells. Default `sum`. */
|
|
14
|
+
function?: DataConsolidateFunction;
|
|
15
|
+
/** Use top-row labels as category keys. */
|
|
16
|
+
topLabels?: boolean;
|
|
17
|
+
/** Use left-column labels as category keys. */
|
|
18
|
+
leftLabels?: boolean;
|
|
19
|
+
/** "Create links to source data" (Excel's checkbox). */
|
|
20
|
+
link?: boolean;
|
|
21
|
+
/** Optional `<dataRefs>` list (one entry per source range). */
|
|
22
|
+
dataRefs?: DataReference[];
|
|
23
|
+
/**
|
|
24
|
+
* `startLabels` was added in a later schema revision — round-tripped
|
|
25
|
+
* verbatim when present.
|
|
26
|
+
*/
|
|
27
|
+
startLabels?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const makeDataConsolidate: (opts?: DataConsolidate) => DataConsolidate;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type MultiCellRange } from './cell-range';
|
|
2
|
+
export type DataValidationType = 'whole' | 'decimal' | 'list' | 'date' | 'time' | 'textLength' | 'custom';
|
|
3
|
+
export type DataValidationOperator = 'between' | 'notBetween' | 'equal' | 'notEqual' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual';
|
|
4
|
+
export type DataValidationErrorStyle = 'stop' | 'warning' | 'information';
|
|
5
|
+
export interface DataValidation {
|
|
6
|
+
/** Constraint kind. `'list'` is the dropdown form (formula1 = comma list or range). */
|
|
7
|
+
type: DataValidationType;
|
|
8
|
+
/** Comparison operator — only meaningful for whole/decimal/date/time/textLength. */
|
|
9
|
+
operator?: DataValidationOperator;
|
|
10
|
+
/** Lower-bound formula or list source. Always required for list/whole/decimal/date/time. */
|
|
11
|
+
formula1?: string;
|
|
12
|
+
/** Upper-bound formula. Used by between / notBetween only. */
|
|
13
|
+
formula2?: string;
|
|
14
|
+
/** Allow empty cells. */
|
|
15
|
+
allowBlank?: boolean;
|
|
16
|
+
/** Show the input message popover when the cell is selected. */
|
|
17
|
+
showInputMessage?: boolean;
|
|
18
|
+
/** Show the error message popover on invalid entry. */
|
|
19
|
+
showErrorMessage?: boolean;
|
|
20
|
+
errorTitle?: string;
|
|
21
|
+
error?: string;
|
|
22
|
+
errorStyle?: DataValidationErrorStyle;
|
|
23
|
+
promptTitle?: string;
|
|
24
|
+
prompt?: string;
|
|
25
|
+
/** Excel inverts this attribute: `showDropDown="1"` actually *hides* the dropdown arrow on list-type validators. We mirror the wire form. */
|
|
26
|
+
showDropDown?: boolean;
|
|
27
|
+
/** Apply-to range (sqref). */
|
|
28
|
+
sqref: MultiCellRange;
|
|
29
|
+
}
|
|
30
|
+
export declare function makeDataValidation(opts: Omit<Partial<DataValidation>, 'sqref'> & {
|
|
31
|
+
type: DataValidationType;
|
|
32
|
+
sqref: MultiCellRange | string;
|
|
33
|
+
}): DataValidation;
|
|
34
|
+
import type { Worksheet } from './worksheet';
|
|
35
|
+
export interface ValidationCommon {
|
|
36
|
+
/** Show the dropdown / input prompt when the cell is selected. */
|
|
37
|
+
prompt?: string;
|
|
38
|
+
promptTitle?: string;
|
|
39
|
+
/** Show an error dialog when the user types an invalid value. */
|
|
40
|
+
error?: string;
|
|
41
|
+
errorTitle?: string;
|
|
42
|
+
errorStyle?: DataValidationErrorStyle;
|
|
43
|
+
allowBlank?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Add a list-type dropdown validation to a range. `values` may be an inline
|
|
47
|
+
* list (`['Red', 'Green', 'Blue']`) or a sheet reference
|
|
48
|
+
* (`'=Sheet1!$A$1:$A$10'`).
|
|
49
|
+
*/
|
|
50
|
+
export declare const addListValidation: (ws: Worksheet, sqref: MultiCellRange | string, values: ReadonlyArray<string> | string, opts?: ValidationCommon) => DataValidation;
|
|
51
|
+
/**
|
|
52
|
+
* Add a number-range validation. `between(min, max)` matches Excel's "Whole
|
|
53
|
+
* Number" → "between" form by default. Use `kind: 'decimal'` for decimal
|
|
54
|
+
* (default 'whole').
|
|
55
|
+
*/
|
|
56
|
+
export declare const addNumberValidation: (ws: Worksheet, sqref: MultiCellRange | string, range: {
|
|
57
|
+
min: number;
|
|
58
|
+
max?: number;
|
|
59
|
+
operator?: DataValidationOperator;
|
|
60
|
+
kind?: "whole" | "decimal";
|
|
61
|
+
}, opts?: ValidationCommon) => DataValidation;
|
|
62
|
+
/**
|
|
63
|
+
* Add a date-range validation. Dates are passed as Excel serial numbers (use
|
|
64
|
+
* `dateToExcel` to convert from JS `Date`).
|
|
65
|
+
*/
|
|
66
|
+
export declare const addDateValidation: (ws: Worksheet, sqref: MultiCellRange | string, range: {
|
|
67
|
+
min: number;
|
|
68
|
+
max?: number;
|
|
69
|
+
operator?: DataValidationOperator;
|
|
70
|
+
}, opts?: ValidationCommon) => DataValidation;
|
|
71
|
+
/** Add a custom-formula validation (`formula1` evaluated for each cell). */
|
|
72
|
+
export declare const addCustomValidation: (ws: Worksheet, sqref: MultiCellRange | string, formula: string, opts?: ValidationCommon) => DataValidation;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single-column-or-range dimension entry. Mirrors the OOXML `<col>` element.
|
|
3
|
+
* The `min`/`max` pair always covers a contiguous run; the worksheet's
|
|
4
|
+
* `columnDimensions` Map keys by `min` so per-column edits stay O(log n).
|
|
5
|
+
*/
|
|
6
|
+
export interface ColumnDimension {
|
|
7
|
+
/** 1-based first column the entry covers (inclusive). */
|
|
8
|
+
min: number;
|
|
9
|
+
/** 1-based last column the entry covers (inclusive). */
|
|
10
|
+
max: number;
|
|
11
|
+
/** Width in Excel character units. */
|
|
12
|
+
width?: number;
|
|
13
|
+
/** Excel records `customWidth=1` whenever the user touched the slider. */
|
|
14
|
+
customWidth?: boolean;
|
|
15
|
+
/** Hidden columns get `hidden="1"`. */
|
|
16
|
+
hidden?: boolean;
|
|
17
|
+
/** "Best fit" auto-shrink semantics — Excel sets it for narrow columns. */
|
|
18
|
+
bestFit?: boolean;
|
|
19
|
+
/** Outline-level for grouping (0 = ungrouped). */
|
|
20
|
+
outlineLevel?: number;
|
|
21
|
+
/** Default cell xfId applied to empty cells in the column. */
|
|
22
|
+
style?: number;
|
|
23
|
+
/** Whether the column's outline is collapsed. */
|
|
24
|
+
collapsed?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** Per-row metadata. Mirrors the OOXML `<row>` element's attributes. */
|
|
27
|
+
export interface RowDimension {
|
|
28
|
+
/** Row height in points. */
|
|
29
|
+
height?: number;
|
|
30
|
+
/** Mirrors Excel's `customHeight="1"` flag. */
|
|
31
|
+
customHeight?: boolean;
|
|
32
|
+
hidden?: boolean;
|
|
33
|
+
outlineLevel?: number;
|
|
34
|
+
collapsed?: boolean;
|
|
35
|
+
/** Default cell xfId applied to empty cells in the row. */
|
|
36
|
+
style?: number;
|
|
37
|
+
}
|
|
38
|
+
/** Build a single-column ColumnDimension entry covering `col`. */
|
|
39
|
+
export declare function makeColumnDimension(col: number, opts?: Partial<Omit<ColumnDimension, 'min' | 'max'>>): ColumnDimension;
|
|
40
|
+
export declare function makeRowDimension(opts?: Partial<RowDimension>): RowDimension;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { MultiCellRange } from './cell-range';
|
|
2
|
+
/**
|
|
3
|
+
* One Cell-Watch entry. The Watch Window in Excel (Formulas → Watch Window)
|
|
4
|
+
* shows live values for the cells listed here.
|
|
5
|
+
*/
|
|
6
|
+
export interface CellWatch {
|
|
7
|
+
/** Single-cell reference like "Sheet1!$A$1" — kept verbatim. */
|
|
8
|
+
ref: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* One ignored-error entry. Each Boolean flag corresponds to a class of Excel's
|
|
12
|
+
* background validation; setting any of them to `true` suppresses the green
|
|
13
|
+
* triangle for cells in `sqref`.
|
|
14
|
+
*/
|
|
15
|
+
export interface IgnoredError {
|
|
16
|
+
/** Cells to which the suppressions apply. */
|
|
17
|
+
sqref: MultiCellRange;
|
|
18
|
+
/** "Formula evaluates to error" warning. */
|
|
19
|
+
evalError?: boolean;
|
|
20
|
+
/** "Date stored as 2-digit year" warning. */
|
|
21
|
+
twoDigitTextYear?: boolean;
|
|
22
|
+
/** "Number stored as text" warning. */
|
|
23
|
+
numberStoredAsText?: boolean;
|
|
24
|
+
/** "Inconsistent formula" warning. */
|
|
25
|
+
formula?: boolean;
|
|
26
|
+
/** "Formula omits cells" warning. */
|
|
27
|
+
formulaRange?: boolean;
|
|
28
|
+
/** "Unlocked cells containing formulas" warning. */
|
|
29
|
+
unlockedFormula?: boolean;
|
|
30
|
+
/** "Empty cells referenced" warning. */
|
|
31
|
+
emptyCellReference?: boolean;
|
|
32
|
+
/** "Data validation list error" warning. */
|
|
33
|
+
listDataValidation?: boolean;
|
|
34
|
+
/** "Inconsistent calculated column" warning (Excel Tables). */
|
|
35
|
+
calculatedColumn?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const makeCellWatch: (ref: string) => CellWatch;
|
|
38
|
+
export declare function makeIgnoredError(opts: Partial<IgnoredError> & {
|
|
39
|
+
sqref: MultiCellRange;
|
|
40
|
+
}): IgnoredError;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface Hyperlink {
|
|
2
|
+
/** Cell or range the hyperlink covers — "A1" or "A1:B5". */
|
|
3
|
+
ref: string;
|
|
4
|
+
/** External URL or relative target path. Mutually exclusive with `location`-only links. */
|
|
5
|
+
target?: string;
|
|
6
|
+
/** Anchor inside the workbook (e.g. `'Sheet 2'!A1`). */
|
|
7
|
+
location?: string;
|
|
8
|
+
/** Tooltip shown on hover. */
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
/** Visible link text — typically falls back to the referenced cell value. */
|
|
11
|
+
display?: string;
|
|
12
|
+
/** Worksheet-rels rId. Populated on read; assigned by the writer when missing. */
|
|
13
|
+
rId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function makeHyperlink(opts: Partial<Hyperlink> & {
|
|
16
|
+
ref: string;
|
|
17
|
+
}): Hyperlink;
|
|
18
|
+
import type { Worksheet } from './worksheet';
|
|
19
|
+
/**
|
|
20
|
+
* Add an external URL hyperlink to a cell or range. The URL goes into the
|
|
21
|
+
* worksheet rels as a hyperlink relationship; the writer generates an rId on
|
|
22
|
+
* save.
|
|
23
|
+
*/
|
|
24
|
+
export declare const addUrlHyperlink: (ws: Worksheet, ref: string, url: string, opts?: {
|
|
25
|
+
tooltip?: string;
|
|
26
|
+
display?: string;
|
|
27
|
+
}) => Hyperlink;
|
|
28
|
+
/**
|
|
29
|
+
* Add an in-workbook jump hyperlink (e.g. to `'Sheet2'!A1` or a defined-name).
|
|
30
|
+
* No rels entry is written — the location is inline in the `<hyperlink
|
|
31
|
+
* location="…"/>` attribute.
|
|
32
|
+
*/
|
|
33
|
+
export declare const addInternalHyperlink: (ws: Worksheet, ref: string, location: string, opts?: {
|
|
34
|
+
tooltip?: string;
|
|
35
|
+
display?: string;
|
|
36
|
+
}) => Hyperlink;
|
|
37
|
+
/** `mailto:` shortcut. */
|
|
38
|
+
export declare const addMailtoHyperlink: (ws: Worksheet, ref: string, email: string, opts?: {
|
|
39
|
+
subject?: string;
|
|
40
|
+
tooltip?: string;
|
|
41
|
+
display?: string;
|
|
42
|
+
}) => Hyperlink;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type { CellsByKindCounts, IterRowsOptions, Worksheet, } from './worksheet';
|
|
2
|
+
export { addCellWatch, addConditionalFormatting, addDataValidation, addIgnoredError, addTable, appendRow, appendRows, applyToRange, autofitColumns, clearAllCells, clearRange, collapseColumnGroup, collapseRowGroup, copyRange, countCells, countCellsByKind, deleteCell, expandColumnGroup, expandRowGroup, findCells, freezePanes, getAutoFilter, getCell, getCellByCoord, getCellsInColumn, getCellsInRange, getCellsInRow, getColumnDimension, getDataExtent, getFreezePanes, getMaxCol, getMaxRow, getMergedCells, getMergedRangeAt, getNonEmptyCellCount, getPopulatedColumnIndices, getPopulatedRowIndices, getRangeValues, getRowDimension, getTable, groupColumns, groupRows, hideColumn, hideColumns, hideRow, hideRows, isMergedCell, isWorksheetEmpty, iterCells, iterRows, iterValues, listComments, listDataValidations, listHyperlinks, listTables, makeWorksheet, mergeCells, moveRange, removeAllComments, removeAllConditionalFormatting, removeAllDataValidations, removeAllHyperlinks, removeAllMergedRanges, removeAllTables, removeCellWatches, removeDataValidations, removeHyperlink, removeIgnoredErrors, removeTable, setAutoFilter, setCell, setCellByCoord, setColumnDimension, setColumnWidth, setColumnWidths, setComment, setDefaultColumnWidth, setDefaultRowHeight, setFreezePanes, setHyperlink, setRangeValues, setRowDimension, setRowHeight, setRowHeights, setSheetTabColor, setSheetViewMode, setSheetZoom, ungroupColumns, ungroupRows, unhideColumn, unhideColumns, unhideRow, unhideRows, unmergeCells, unmergeCellsAt, writeRange, } from './worksheet';
|
|
3
|
+
export type { MultiCellRange } from './cell-range';
|
|
4
|
+
export { expandRangeStr, intersectionRange, isCellInRange, isRangeInRange, rangeArea, rangeContainsCell, rangeContainsRange, rangesOverlap, shiftRange, unionRange, } from './cell-range';
|
|
5
|
+
export type { ColumnDimension, RowDimension } from './dimensions';
|
|
6
|
+
export { makeColumnDimension, makeRowDimension } from './dimensions';
|
|
7
|
+
export type { Pane, PaneState, PaneType, Selection, SheetView, SheetViewMode, } from './views';
|
|
8
|
+
export { freezePaneRef, makeFreezePane, makeSheetView } from './views';
|
|
9
|
+
export type { LegacyComment } from './comments';
|
|
10
|
+
export { makeLegacyComment } from './comments';
|
|
11
|
+
export type { DataValidation, DataValidationErrorStyle, DataValidationOperator, DataValidationType, ValidationCommon, } from './data-validations';
|
|
12
|
+
export { makeDataValidation } from './data-validations';
|
|
13
|
+
export type { CellIsOperator, Cfvo, CfvoType, ConditionalFormatting, ConditionalFormattingRule, ConditionalFormattingRuleType, IconSetStyle, TextOperator, TimePeriod, } from './conditional-formatting';
|
|
14
|
+
export { makeCfRule, makeConditionalFormatting } from './conditional-formatting';
|
|
15
|
+
export type { Hyperlink } from './hyperlinks';
|
|
16
|
+
export { makeHyperlink } from './hyperlinks';
|
|
17
|
+
export type { AutoFilter, FilterColumn } from './auto-filter';
|
|
18
|
+
export { makeAutoFilter, makeFilterColumn } from './auto-filter';
|
|
19
|
+
export type { TableColumn, TableDefinition, TableStyleInfo } from './table';
|
|
20
|
+
export { addExcelTable, makeTableColumn, makeTableDefinition } from './table';
|
|
21
|
+
export type { CellWatch, IgnoredError } from './errors';
|
|
22
|
+
export { makeCellWatch, makeIgnoredError } from './errors';
|
|
23
|
+
export type { OutlineProperties, PageSetupProperties, SheetProperties } from './properties';
|
|
24
|
+
export { makeSheetProperties } from './properties';
|
|
25
|
+
export type { SheetProtection } from './protection';
|
|
26
|
+
export { makeSheetProtection } from './protection';
|
|
27
|
+
export type { ProtectedRange } from './protected-ranges';
|
|
28
|
+
export { makeProtectedRange } from './protected-ranges';
|
|
29
|
+
export type { SortBy, SortCondition, SortIconSet, SortMethod, SortState, } from './sort-state';
|
|
30
|
+
export { makeSortCondition, makeSortState } from './sort-state';
|
|
31
|
+
export type { CellSmartTag, CellSmartTagProperty, CellSmartTags, } from './smart-tags';
|
|
32
|
+
export { makeCellSmartTag, makeCellSmartTagProperty, makeCellSmartTags, } from './smart-tags';
|
|
33
|
+
export type { FormControl, OleDvAspect, OleObject, OleUpdateMode, } from './ole-objects';
|
|
34
|
+
export { makeFormControl, makeOleObject } from './ole-objects';
|
|
35
|
+
export type { CustomSheetView, CustomSheetViewState } from './custom-sheet-views';
|
|
36
|
+
export { makeCustomSheetView } from './custom-sheet-views';
|
|
37
|
+
export type { CellCommentMode, HeaderFooter, HeaderFooterSection, PageBreak, PageMargins, PageOrder, PageOrientation, PageSetup, PrintErrorMode, PrintOptions, } from './page-setup';
|
|
38
|
+
export { buildHeaderFooterText, HEADER_FOOTER_CODES, makeHeaderFooter, makePageBreak, makePageMargins, makePageSetup, makePrintOptions, } from './page-setup';
|
|
39
|
+
export type { WebPublishItem, WorksheetCustomProperty } from './web-publish';
|
|
40
|
+
export { makeWebPublishItem, makeWorksheetCustomProperty } from './web-publish';
|
|
41
|
+
export type { PhoneticAlignment, PhoneticType, WorksheetPhoneticProperties, } from './phonetic';
|
|
42
|
+
export { makeWorksheetPhoneticProperties } from './phonetic';
|
|
43
|
+
export type { DataConsolidate, DataConsolidateFunction, DataReference, } from './data-consolidate';
|
|
44
|
+
export { makeDataConsolidate } from './data-consolidate';
|
|
45
|
+
export type { Scenario, ScenarioInputCell, ScenarioList } from './scenarios';
|
|
46
|
+
export { makeScenario, makeScenarioInputCell, makeScenarioList } from './scenarios';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { XmlNode } from '../xml/tree';
|
|
2
|
+
export type OleDvAspect = 'DVASPECT_CONTENT' | 'DVASPECT_ICON';
|
|
3
|
+
export type OleUpdateMode = 'OLEUPDATE_ALWAYS' | 'OLEUPDATE_ONCALL';
|
|
4
|
+
export interface OleObject {
|
|
5
|
+
/** Unique shape id assigned by Excel — required. */
|
|
6
|
+
shapeId: number;
|
|
7
|
+
/** rels link to the embedded OLE blob. */
|
|
8
|
+
rId?: string;
|
|
9
|
+
progId?: string;
|
|
10
|
+
dvAspect?: OleDvAspect;
|
|
11
|
+
link?: string;
|
|
12
|
+
oleUpdate?: OleUpdateMode;
|
|
13
|
+
autoLoad?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Optional `<objectPr>` child preserved verbatim. Modeling its
|
|
16
|
+
* `<anchor>` schema in detail is deferred — this preserves the
|
|
17
|
+
* round-trip without re-deriving the anchor attrs.
|
|
18
|
+
*/
|
|
19
|
+
objectPr?: XmlNode;
|
|
20
|
+
}
|
|
21
|
+
export interface FormControl {
|
|
22
|
+
shapeId: number;
|
|
23
|
+
rId?: string;
|
|
24
|
+
/** ECMA-376 §18.3.1.27 — name shown in the form-control name box. */
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional `<controlPr>` child preserved verbatim (similar to
|
|
28
|
+
* `objectPr` for OLE objects).
|
|
29
|
+
*/
|
|
30
|
+
controlPr?: XmlNode;
|
|
31
|
+
}
|
|
32
|
+
export declare const makeOleObject: (opts: Partial<OleObject> & {
|
|
33
|
+
shapeId: number;
|
|
34
|
+
}) => OleObject;
|
|
35
|
+
export declare const makeFormControl: (opts: Partial<FormControl> & {
|
|
36
|
+
shapeId: number;
|
|
37
|
+
}) => FormControl;
|