ooxml-core 1.3.0 → 1.5.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/README.md +2 -0
- package/dist/automation/index.cjs +6089 -5381
- package/dist/automation/index.mjs +6089 -5381
- package/dist/teams/index.cjs +73 -23
- package/dist/teams/index.mjs +73 -23
- package/dist/visio/basic-shapes.d.ts +18 -0
- package/dist/visio/basic-shapes.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +13 -2
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-page-size.d.ts +5 -0
- package/dist/visio/edit-page-size.d.ts.map +1 -0
- package/dist/visio/edit-pages.d.ts.map +1 -1
- package/dist/visio/edit-shape-create.d.ts.map +1 -1
- package/dist/visio/edit-text-range-commands.d.ts +21 -0
- package/dist/visio/edit-text-range-commands.d.ts.map +1 -0
- package/dist/visio/edit-text-range-plan.d.ts +7 -0
- package/dist/visio/edit-text-range-plan.d.ts.map +1 -0
- package/dist/visio/edit-text-ranges.d.ts +4 -0
- package/dist/visio/edit-text-ranges.d.ts.map +1 -0
- package/dist/visio/edit-text-target.d.ts +3 -0
- package/dist/visio/edit-text-target.d.ts.map +1 -0
- package/dist/visio/edit-text.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/index.cjs +623 -49
- package/dist/visio/index.d.ts +2 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +621 -50
- package/dist/visio/model.d.ts +3 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/ui/draw-plan.d.ts +4 -1
- package/dist/visio/ui/draw-plan.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +139 -14
- package/dist/visio/ui/index.d.ts +1 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +135 -15
- package/dist/visio/ui/page-size.d.ts +31 -0
- package/dist/visio/ui/page-size.d.ts.map +1 -0
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/text-replace-types.d.ts +6 -2
- package/dist/visio/ui/text-replace-types.d.ts.map +1 -1
- package/dist/visio/ui/text-replace.d.ts +3 -4
- package/dist/visio/ui/text-replace.d.ts.map +1 -1
- package/dist/visio/xml-validation.d.ts.map +1 -1
- package/dist/xlsx/collab/codec.d.ts +2 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +5 -0
- package/dist/xlsx/collab/index.mjs +5 -0
- package/dist/xlsx/display-text.d.ts +4 -0
- package/dist/xlsx/display-text.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-values.d.ts +4 -3
- package/dist/xlsx/edit/cell-values.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard.d.ts.map +1 -1
- package/dist/xlsx/edit/context.d.ts +7 -5
- package/dist/xlsx/edit/context.d.ts.map +1 -1
- package/dist/xlsx/edit/deps.d.ts +1 -1
- package/dist/xlsx/edit/deps.d.ts.map +1 -1
- package/dist/xlsx/edit/dimensions.d.ts.map +1 -1
- package/dist/xlsx/edit/fill.d.ts.map +1 -1
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/find.d.ts.map +1 -1
- package/dist/xlsx/edit/paste-selection.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-formulas.d.ts +10 -4
- package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -1
- package/dist/xlsx/edit/structure.d.ts +1 -1
- package/dist/xlsx/edit/structure.d.ts.map +1 -1
- package/dist/xlsx/edit/table-header-names.d.ts +3 -0
- package/dist/xlsx/edit/table-header-names.d.ts.map +1 -0
- package/dist/xlsx/edit/tables.d.ts +1 -2
- package/dist/xlsx/edit/tables.d.ts.map +1 -1
- package/dist/xlsx/filter-rows.d.ts +12 -0
- package/dist/xlsx/filter-rows.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math-sum.d.ts.map +1 -1
- package/dist/xlsx/formula/table-refs.d.ts +2 -0
- package/dist/xlsx/formula/table-refs.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +466 -329
- package/dist/xlsx/index.mjs +466 -329
- package/dist/xlsx/load/index.cjs +7622 -7585
- package/dist/xlsx/load/index.mjs +7622 -7585
- package/dist/xlsx/model.d.ts +4 -0
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/load.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +464 -329
- package/dist/xlsx/ui/index.mjs +464 -329
- package/dist/xlsx/ui/locales/de/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/shell.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type { VisioTextEdit } from '../edit-commands.js';
|
|
1
|
+
import type { VisioTextEdit, VisioTextRange, VisioTextRangesEdit } from '../edit-commands.js';
|
|
2
|
+
export type VisioTextReplaceEdit = VisioTextEdit | VisioTextRangesEdit;
|
|
3
|
+
export type VisioTextReplacePlanEdit = Readonly<VisioTextEdit> | (Readonly<Omit<VisioTextRangesEdit, 'ranges'>> & {
|
|
4
|
+
readonly ranges: readonly Readonly<VisioTextRange>[];
|
|
5
|
+
});
|
|
2
6
|
/** UTF-16 bounds; oversized inputs fail instead of producing partial replacements. */
|
|
3
7
|
export declare const VISIO_TEXT_REPLACE_LIMITS: Readonly<{
|
|
4
8
|
query: 256;
|
|
@@ -39,7 +43,7 @@ export interface VisioTextReplaceRequest extends VisioTextReplaceScope {
|
|
|
39
43
|
export interface VisioTextReplacePlan {
|
|
40
44
|
readonly occurrences: readonly VisioTextOccurrence[];
|
|
41
45
|
readonly replacementCount: number;
|
|
42
|
-
readonly edits: readonly
|
|
46
|
+
readonly edits: readonly VisioTextReplacePlanEdit[];
|
|
43
47
|
readonly nextOccurrence: VisioTextOccurrence | undefined;
|
|
44
48
|
}
|
|
45
49
|
export declare const textReplaceError: (message: string) => never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-replace-types.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"text-replace-types.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3F,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,mBAAmB,CAAC;AACvE,MAAM,MAAM,wBAAwB,GACjC,QAAQ,CAAC,aAAa,CAAC,GACvB,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC,GAAG;IACjD,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;CACpD,CAAC,CAAC;AAEN,sFAAsF;AACtF,eAAO,MAAM,yBAAyB;;;;;;;;;;;EAWpC,CAAC;AACH,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,WAAW,GAAG,cAAc,GAAG,WAAW,CAAC;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACvD;AACD,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,SAAS,GAAG,KAAK,CAAC;IACxB,sFAAsF;IACtF,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AACD,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,WAAW,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACrD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACpD,QAAQ,CAAC,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAC;CACzD;AACD,eAAO,MAAM,gBAAgB,YAAa,MAAM,KAAG,KAElD,CAAC;AACF,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpF;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAItD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { VisioDocument } from '../model.js';
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
export type { VisioTextOccurrence, VisioTextReplacePlan, VisioTextReplaceRequest, VisioTextReplaceScope, } from './text-replace-types.js';
|
|
2
|
+
import { type VisioTextOccurrence, type VisioTextReplacePlan, type VisioTextReplaceRequest, type VisioTextReplaceScope, type VisioTextReplaceEdit } from './text-replace-types.js';
|
|
3
|
+
export type { VisioTextOccurrence, VisioTextReplacePlan, VisioTextReplaceRequest, VisioTextReplaceScope, VisioTextReplaceEdit, VisioTextReplacePlanEdit, } from './text-replace-types.js';
|
|
5
4
|
export { VISIO_TEXT_REPLACE_LIMITS } from './text-replace-types.js';
|
|
6
5
|
export { visioTextOccurrenceSelection } from './text-replace-selection.js';
|
|
7
6
|
/** Full literal occurrences, independent of the bounded preview-oriented Find index. */
|
|
@@ -14,5 +13,5 @@ export declare function visioTextReplaceFindNext(model: VisioDocument, input: Vi
|
|
|
14
13
|
*/
|
|
15
14
|
export declare function visioTextReplacePlan(model: VisioDocument, input: VisioTextReplaceRequest): VisioTextReplacePlan;
|
|
16
15
|
/** Reject forged and stale scene plans before returning independently owned atomic commands. */
|
|
17
|
-
export declare function visioTextReplaceCommands(model: VisioDocument, plan: VisioTextReplacePlan):
|
|
16
|
+
export declare function visioTextReplaceCommands(model: VisioDocument, plan: VisioTextReplacePlan): VisioTextReplaceEdit[];
|
|
18
17
|
//# sourceMappingURL=text-replace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-replace.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"text-replace.d.ts","sourceRoot":"","sources":["../../../visio/ui/text-replace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EAKN,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACX,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAyBxE,wFAAwF;AACxF,wBAAgB,2BAA2B,CAC1C,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,qBAAqB,GAC1B,SAAS,mBAAmB,EAAE,CAGhC;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,mBAAmB,GAC3B,mBAAmB,GAAG,SAAS,CAOjC;AAgCD;;;GAGG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,uBAAuB,GAC5B,oBAAoB,CA8FtB;AAED,gGAAgG;AAChG,wBAAgB,wBAAwB,CACvC,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,oBAAoB,GACxB,oBAAoB,EAAE,CAqBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml-validation.d.ts","sourceRoot":"","sources":["../../visio/xml-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"xml-validation.d.ts","sourceRoot":"","sources":["../../visio/xml-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAwBjE,oGAAoG;AACpG,wBAAgB,UAAU,CACzB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,MAAM,IAAI,EACjB,QAAQ,SAAU,GAChB,MAAM,CA0HR;AAuCD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,IAAI,CAyBxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../../xlsx/collab/codec.ts"],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C3B,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,GACR,UAAU,GAAG,SAAS,CAaxB"}
|
|
@@ -364,6 +364,9 @@ function encodeLine(info, keyOf, column = false) {
|
|
|
364
364
|
if (size !== void 0) entry.size = size;
|
|
365
365
|
if (custom) entry.custom = 1;
|
|
366
366
|
if (info.hidden) entry.hidden = 1;
|
|
367
|
+
if (!column && info.filteredOut !== void 0)
|
|
368
|
+
entry.filtered = info.filteredOut ? 1 : 0;
|
|
369
|
+
if (!column && info.manuallyHidden) entry.manual = 1;
|
|
367
370
|
const s = info.styleId ? keyOf(info.styleId) : void 0;
|
|
368
371
|
if (s) entry.s = s;
|
|
369
372
|
if (info.outlineLevel) entry.ol = info.outlineLevel;
|
|
@@ -385,6 +388,8 @@ function decodeRow(raw, idOf) {
|
|
|
385
388
|
if (entry.size !== void 0) info.height = entry.size;
|
|
386
389
|
if (entry.custom === 1) info.customHeight = true;
|
|
387
390
|
if (entry.hidden === 1) info.hidden = true;
|
|
391
|
+
if (entry.filtered === 0 || entry.filtered === 1) info.filteredOut = entry.filtered === 1;
|
|
392
|
+
if (entry.manual === 1) info.manuallyHidden = true;
|
|
388
393
|
const styleId = entry.s ? idOf(entry.s) : void 0;
|
|
389
394
|
if (styleId) info.styleId = styleId;
|
|
390
395
|
if (entry.ol) info.outlineLevel = entry.ol;
|
|
@@ -342,6 +342,9 @@ function encodeLine(info, keyOf, column = false) {
|
|
|
342
342
|
if (size !== void 0) entry.size = size;
|
|
343
343
|
if (custom) entry.custom = 1;
|
|
344
344
|
if (info.hidden) entry.hidden = 1;
|
|
345
|
+
if (!column && info.filteredOut !== void 0)
|
|
346
|
+
entry.filtered = info.filteredOut ? 1 : 0;
|
|
347
|
+
if (!column && info.manuallyHidden) entry.manual = 1;
|
|
345
348
|
const s = info.styleId ? keyOf(info.styleId) : void 0;
|
|
346
349
|
if (s) entry.s = s;
|
|
347
350
|
if (info.outlineLevel) entry.ol = info.outlineLevel;
|
|
@@ -363,6 +366,8 @@ function decodeRow(raw, idOf) {
|
|
|
363
366
|
if (entry.size !== void 0) info.height = entry.size;
|
|
364
367
|
if (entry.custom === 1) info.customHeight = true;
|
|
365
368
|
if (entry.hidden === 1) info.hidden = true;
|
|
369
|
+
if (entry.filtered === 0 || entry.filtered === 1) info.filteredOut = entry.filtered === 1;
|
|
370
|
+
if (entry.manual === 1) info.manuallyHidden = true;
|
|
366
371
|
const styleId = entry.s ? idOf(entry.s) : void 0;
|
|
367
372
|
if (styleId) info.styleId = styleId;
|
|
368
373
|
if (entry.ol) info.outlineLevel = entry.ol;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-text.d.ts","sourceRoot":"","sources":["../../xlsx/display-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIhE,qEAAqE;AACrE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAS9E"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { type CellAddress, type CellRange } from '../address.js';
|
|
2
2
|
import type { Cell, CellValue, Worksheet } from '../model.js';
|
|
3
3
|
import { type EditContext } from './context.js';
|
|
4
|
+
import { type CellPosition } from './deps.js';
|
|
4
5
|
import type { EditScope, SheetPart } from './history.js';
|
|
5
6
|
import type { ClearWhat } from './types.js';
|
|
6
7
|
/** Keeps a table's column name in step with its header cell. */
|
|
7
|
-
export declare function syncTableHeader(ctx: EditContext, sheet: Worksheet, row: number, col: number): void;
|
|
8
|
+
export declare function syncTableHeader(ctx: EditContext, sheet: Worksheet, row: number, col: number, formulaCells?: readonly CellPosition[]): void;
|
|
8
9
|
/**
|
|
9
|
-
* Undo scopes for writing to cells
|
|
10
|
-
*
|
|
10
|
+
* Undo scopes for writing to cells, including workbook references when a table header changes.
|
|
11
|
+
* `parts` adds other sheet properties the edit changes.
|
|
11
12
|
*/
|
|
12
13
|
export declare function writeScopes(sheet: Worksheet, index: number, range: CellRange, parts?: SheetPart[]): EditScope[];
|
|
13
14
|
/** The single undo scope of {@link writeScopes}, kept for callers that want one. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-values.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/cell-values.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"cell-values.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/cell-values.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EAKd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,EACN,KAAK,WAAW,EAMhB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAgBzC,gEAAgE;AAChE,wBAAgB,eAAe,CAC9B,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,SAAS,YAAY,EAAE,GACpC,IAAI,CA+BN;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAC1B,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,SAAS,EAChB,KAAK,GAAE,SAAS,EAAO,GACrB,SAAS,EAAE,CAeb;AAED,oFAAoF;AACpF,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,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"clipboard.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EAMd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAMnE,OAAO,KAAK,EAAiB,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,SAAS,EAMd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAMnE,OAAO,KAAK,EAAiB,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAc7F,kGAAkG;AAClG,wBAAgB,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,gBAAgB,CA0D3F;AAED,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAiB9E;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACtB,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,gBAAgB,GAAG,MAAM,EAClC,OAAO,EAAE,YAAY,GACnB,SAAS,CAsJX"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type CellRange } from '../address.js';
|
|
2
2
|
import type { Cell, CellValue, Workbook, Worksheet } from '../model.js';
|
|
3
|
-
import {
|
|
3
|
+
import type { CalcEngine, CellPosition } from './deps.js';
|
|
4
|
+
export { displayText } from '../display-text.js';
|
|
4
5
|
import type { CalcHint, EditScope } from './history.js';
|
|
5
6
|
import type { WorkbookChangeKind } from './types.js';
|
|
6
7
|
export interface RunInfo {
|
|
@@ -16,8 +17,11 @@ export interface EditContext {
|
|
|
16
17
|
readonly calc: CalcEngine;
|
|
17
18
|
/** Base of new sheet names (see `EditSessionOptions.defaultSheetBase`). */
|
|
18
19
|
defaultSheetBase?: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Runs `fn` as one undoable step confined to `scopes`. A refs scope supplies formula positions
|
|
22
|
+
* captured before the edit; callers must also include any newly written formulas when rewriting.
|
|
23
|
+
*/
|
|
24
|
+
run<T>(label: string, kind: WorkbookChangeKind, scopes: EditScope[], fn: (formulaCells?: readonly CellPosition[]) => T, info?: RunInfo): T;
|
|
21
25
|
}
|
|
22
26
|
export declare function sheetAt(workbook: Workbook, index: number): Worksheet;
|
|
23
27
|
/** The style a new cell at a position inherits: the row's format, else the column's. */
|
|
@@ -34,8 +38,6 @@ export declare const isWholeRows: (range: CellRange) => boolean;
|
|
|
34
38
|
export declare function clipToUsed(sheet: Worksheet, range: CellRange): CellRange | undefined;
|
|
35
39
|
/** Visits every position of a range (clipped to the used area when the range is huge). */
|
|
36
40
|
export declare function forEachPosition(sheet: Worksheet, range: CellRange, visit: (row: number, col: number) => void): void;
|
|
37
|
-
/** The text the grid shows for a cell. */
|
|
38
|
-
export declare function displayText(workbook: Workbook, cell: Cell | undefined): string;
|
|
39
41
|
/** What the user typed for a cell, as the formula bar shows it. */
|
|
40
42
|
export declare function inputText(cell: Cell | undefined): string;
|
|
41
43
|
export declare function rawText(value: CellValue): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB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ED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAIpE;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK1F;AAED,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ3E;AAED,qFAAqF;AACrF,eAAO,MAAM,cAAc,UAAW,SAAS,KAAG,OACA,CAAC;AACnD,eAAO,MAAM,WAAW,UAAW,SAAS,KAAG,OACG,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAUpF;AAKD,0FAA0F;AAC1F,wBAAgB,eAAe,CAC9B,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,GACvC,IAAI,CAON;AAED,mEAAmE;AACnE,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,MAAM,CAIxD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAKhD;AAED,0DAA0D;AAC1D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ1E"}
|
package/dist/xlsx/edit/deps.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { dateToSerial, formatValue, isDateFormat, parseCellInput, serialToDate, } from '../numfmt/index.js';
|
|
2
2
|
export { createCalcEngine, deleteSheetInFormula, formatRefSpec, isSpilledCell, moveReferencesInFormula, renameTableInFormula, renameSheetInFormula, shiftFormula, tokenize, translateFormula, } from '../formula/index.js';
|
|
3
|
-
export type { CalcEngine, RefSpec, ShiftSpec, Token } from '../formula/index.js';
|
|
3
|
+
export type { CalcEngine, CellPosition, RefSpec, ShiftSpec, Token } from '../formula/index.js';
|
|
4
4
|
//# sourceMappingURL=deps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/deps.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,gBAAgB,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/deps.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,cAAc,EACd,YAAY,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,gBAAgB,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/dimensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrD,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAqBnE,qFAAqF;AACrF,wBAAgB,cAAc,CAC7B,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,MAAM,GACjD,MAAM,GAAG,SAAS,CAUpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,MAAM,GAClD,IAAI,CAiCN;AAgBD,kGAAkG;AAClG,wBAAgB,YAAY,CAC3B,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,EAAE,MAAM,GAAG,MAAM,GACrB,IAAI,CA4BN;AAED,wBAAgB,SAAS,CACxB,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,KAAK,GAAG,KAAK,EACnB,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,OAAO,GACb,IAAI,
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/dimensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrD,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAqBnE,qFAAqF;AACrF,wBAAgB,cAAc,CAC7B,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,MAAM,GACjD,MAAM,GAAG,SAAS,CAUpB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,MAAM,GAClD,IAAI,CAiCN;AAgBD,kGAAkG;AAClG,wBAAgB,YAAY,CAC3B,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,EAAE,MAAM,GAAG,MAAM,GACrB,IAAI,CA4BN;AAED,wBAAgB,SAAS,CACxB,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,KAAK,GAAG,KAAK,EACnB,OAAO,EAAE,MAAM,EAAE,EACjB,MAAM,EAAE,OAAO,GACb,IAAI,CA+CN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/fill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,KAAK,WAAW,EAAW,MAAM,WAAW,CAAC;AAGtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/fill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,YAAY,CAAC;AAE5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,KAAK,WAAW,EAAW,MAAM,WAAW,CAAC;AAGtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,sFAAsF;AACtF,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAO/E;AAED,uDAAuD;AACvD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAOrE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACxB,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,EACjB,IAAI,GAAE,QAAiB,GACrB,IAAI,CAuDN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAiC,MAAM,YAAY,CAAC;AAE7F,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAiC,MAAM,YAAY,CAAC;AAE7F,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,EAAW,MAAM,WAAW,CAAC;AAItD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,GAAG,SAAS,CAoC1E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{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/find.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAInE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpD,+FAA+F;AAC/F,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,UAAQ,GAAG,MAAM,GAAG,SAAS,CAcjF;AAqBD,+EAA+E;AAC/E,wBAAgB,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,CAsBzE;AAED,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAIvF;AA0DD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CA4B1F;AAED,8EAA8E;AAC9E,wBAAgB,UAAU,CACzB,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,MAAM,EACnB,EAAE,EAAE,SAAS,GACX,OAAO,CAgBT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paste-selection.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/paste-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"paste-selection.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/paste-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAO9D,mFAAmF;AACnF,wBAAgB,cAAc,CAC7B,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,gBAAgB,GAAG,MAAM,EAClC,OAAO,EAAE,YAAY,GACnB,SAAS,CA0DX"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import type { Workbook, Worksheet } from '../model.js';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import type { CellAddress } from '../address.js';
|
|
3
|
+
import type { CellPosition } from './deps.js';
|
|
4
|
+
/**
|
|
5
|
+
* Rewrites one formula; `formulaSheet` is the sheet unqualified references point at.
|
|
6
|
+
* `at` identifies the origin of a cell-based formula, including its enclosing table.
|
|
7
|
+
*/
|
|
8
|
+
export type FormulaRewrite = (formula: string, formulaSheet: string, at?: CellAddress) => string;
|
|
4
9
|
/**
|
|
5
10
|
* Visits every formula the workbook keeps: cell formulas, conditional-format and validation
|
|
6
11
|
* formulas, defined names, chart series references and in-workbook hyperlink locations.
|
|
12
|
+
* `formulaCells` can reuse a history capture, provided it also includes newly written formulas.
|
|
7
13
|
*/
|
|
8
|
-
export declare function rewriteFormulas(workbook: Workbook, rewrite: FormulaRewrite): void;
|
|
14
|
+
export declare function rewriteFormulas(workbook: Workbook, rewrite: FormulaRewrite, formulaCells?: readonly CellPosition[]): void;
|
|
9
15
|
/**
|
|
10
16
|
* The per-sheet part of {@link rewriteFormulas}: cell, conditional-format, validation, table
|
|
11
17
|
* column (calculated and totals) formulas, hyperlink locations, chart series references and the
|
|
12
18
|
* `xm:f` formulas of preserved extensions (sparkline sources, x14 formats and validations).
|
|
13
19
|
*/
|
|
14
|
-
export declare function rewriteSheetFormulas(sheet: Worksheet, rewrite: FormulaRewrite): void;
|
|
20
|
+
export declare function rewriteSheetFormulas(sheet: Worksheet, rewrite: FormulaRewrite, formulaCells?: readonly CellAddress[]): void;
|
|
15
21
|
//# sourceMappingURL=shift-formulas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shift-formulas.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/shift-formulas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"shift-formulas.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/shift-formulas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,WAAW,KAAK,MAAM,CAAC;AAgBjG;;;;GAIG;AACH,wBAAgB,eAAe,CAC9B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,cAAc,EACvB,YAAY,CAAC,EAAE,SAAS,YAAY,EAAE,GACpC,IAAI,CAgBN;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,cAAc,EACvB,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,GACnC,IAAI,CA8CN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shift-sheet.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/shift-sheet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shift-sheet.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/shift-sheet.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA2C,SAAS,EAAE,MAAM,UAAU,CAAC;AAGnF,OAAO,EACN,KAAK,SAAS,EAMd,MAAM,cAAc,CAAC;AAEtB,iGAAiG;AACjG,MAAM,WAAW,IAAI;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACX;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAgDvF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Worksheet } from '../model.js';
|
|
2
2
|
import { type EditContext } from './context.js';
|
|
3
|
-
import type
|
|
3
|
+
import { type AxisShift } from './range-math.js';
|
|
4
4
|
/** Applies an axis shift to a sheet and every formula in the workbook (no undo step). */
|
|
5
5
|
export declare function applyAxisShift(ctx: EditContext, sheet: Worksheet, shift: AxisShift): void;
|
|
6
6
|
export declare const insertRows: (ctx: EditContext, s: number, at: number, count: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/structure.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/structure.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,WAAW,CAAC;AAEpE,OAAO,EAAa,KAAK,SAAS,EAAc,MAAM,cAAc,CAAC;AAUrE,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CAMzF;AAoDD,eAAO,MAAM,UAAU,QAAS,WAAW,KAAK,MAAM,MAAM,MAAM,SAAS,MAAM,KAAG,IAC1C,CAAC;AAC3C,eAAO,MAAM,UAAU,QAAS,WAAW,KAAK,MAAM,MAAM,MAAM,SAAS,MAAM,KAAG,IACzC,CAAC;AAC5C,eAAO,MAAM,aAAa,QAAS,WAAW,KAAK,MAAM,MAAM,MAAM,SAAS,MAAM,KAAG,IAC7C,CAAC;AAC3C,eAAO,MAAM,aAAa,QAAS,WAAW,KAAK,MAAM,MAAM,MAAM,SAAS,MAAM,KAAG,IAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-header-names.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/table-header-names.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAiBvD"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type CellRange } from '../address.js';
|
|
2
2
|
import type { Table } from '../model.js';
|
|
3
|
+
export { uniqueHeaders } from './table-header-names.js';
|
|
3
4
|
import { type EditContext } from './context.js';
|
|
4
|
-
/** Unique header names: blanks become `ColumnN`, repeats get a number suffix (`Name2`). */
|
|
5
|
-
export declare function uniqueHeaders(texts: string[]): string[];
|
|
6
5
|
/**
|
|
7
6
|
* Turns a range into a table (a single cell expands to its current region). Without a header
|
|
8
7
|
* row, cells are shifted down one row and a `Column1`, `Column2`, ... header is inserted.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/tables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmC,MAAM,YAAY,CAAC;AAE7E,OAAO,KAAK,EAAE,KAAK,EAAyB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tables.d.ts","sourceRoot":"","sources":["../../../xlsx/edit/tables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmC,MAAM,YAAY,CAAC;AAE7E,OAAO,KAAK,EAAE,KAAK,EAAyB,MAAM,UAAU,CAAC;AAG7D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,KAAK,WAAW,EAAwB,MAAM,WAAW,CAAC;AAYnE;;;GAGG;AACH,wBAAgB,WAAW,CAC1B,GAAG,EAAE,WAAW,EAChB,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,SAAS,EAChB,SAAS,EAAE,OAAO,EAClB,SAAS,SAAsB,GAC7B,KAAK,CAyDP"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AutoFilter, Workbook, Worksheet } from './model.js';
|
|
2
|
+
/** Matches the value/blank filters supported by the editor. */
|
|
3
|
+
export declare function rowMatchesFilter(workbook: Workbook, sheet: Worksheet, row: number, filter: AutoFilter): boolean;
|
|
4
|
+
/** Records a filter result while preserving manual hiding and other row metadata. */
|
|
5
|
+
export declare function setRowFiltered(sheet: Worksheet, row: number, filteredOut: boolean, hasCriteria?: boolean): void;
|
|
6
|
+
/** Removing the filter restores rows hidden only by it, retaining manual hiding. */
|
|
7
|
+
export declare function clearFilteredRows(sheet: Worksheet): void;
|
|
8
|
+
/** Loaded rows have a combined hidden bit; infer the filter cause from supported criteria. */
|
|
9
|
+
export declare function isFilteredRow(workbook: Workbook, sheet: Worksheet, row: number): boolean;
|
|
10
|
+
/** Capture loaded filter state so editing a value does not implicitly reapply the filter. */
|
|
11
|
+
export declare function readFilteredRows(workbook: Workbook): void;
|
|
12
|
+
//# sourceMappingURL=filter-rows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-rows.d.ts","sourceRoot":"","sources":["../../xlsx/filter-rows.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/D,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,UAAU,GAChB,OAAO,CAMT;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAC7B,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,OAAO,EACpB,WAAW,UAAQ,GACjB,IAAI,CAiBN;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAIxD;AAED,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAWxF;AAED,6FAA6F;AAC7F,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAUzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math-sum.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/math-sum.ts"],"names":[],"mappings":"AAEA,OAAO,EAON,KAAK,MAAM,EAEX,MAAM,WAAW,CAAC;AAInB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"math-sum.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/math-sum.ts"],"names":[],"mappings":"AAEA,OAAO,EAON,KAAK,MAAM,EAEX,MAAM,WAAW,CAAC;AAInB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA6E5C,oEAAoE;AACpE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CA4C5E;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,EA6JvC,CAAC"}
|
|
@@ -4,4 +4,6 @@
|
|
|
4
4
|
* names and text inside strings are left alone. Unparsable formulas are returned unchanged.
|
|
5
5
|
*/
|
|
6
6
|
export declare function renameTableInFormula(formula: string, oldName: string, newName: string): string;
|
|
7
|
+
/** Renames a column, including unqualified references when the formula is inside its table. */
|
|
8
|
+
export declare function renameTableColumnInFormula(formula: string, tableName: string, oldName: string, newName: string, insideTable?: boolean): string;
|
|
7
9
|
//# sourceMappingURL=table-refs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-refs.d.ts","sourceRoot":"","sources":["../../../xlsx/formula/table-refs.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAgB9F"}
|
|
1
|
+
{"version":3,"file":"table-refs.d.ts","sourceRoot":"","sources":["../../../xlsx/formula/table-refs.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAgB9F;AAED,+FAA+F;AAC/F,wBAAgB,0BAA0B,CACzC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,WAAW,UAAQ,GACjB,MAAM,CAiCR"}
|