ooxml-core 1.49.0 → 1.50.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 +1 -1
- package/dist/PptxHandler-MZDYUDWY.cjs +14 -0
- package/dist/PptxHandler-SAD6KJTW.mjs +5 -0
- package/dist/{PptxHandler-A43I376K.mjs → PptxHandler-YMMRMHXL.mjs} +2 -2
- package/dist/{PresentationBuilder-4F5AX7KC.mjs → PresentationBuilder-46225RH4.mjs} +3 -3
- package/dist/{PresentationBuilder-KP4YCLDA.cjs → PresentationBuilder-QEKPEOEF.cjs} +6 -6
- package/dist/{PresentationBuilder-TND2UD6G.mjs → PresentationBuilder-TFZ77BHK.mjs} +2 -2
- package/dist/{chunk-EMW5UEGW.cjs → chunk-4JWPX7CC.cjs} +1206 -1216
- package/dist/{chunk-7VKM37CI.mjs → chunk-53KMIHYN.mjs} +1 -1
- package/dist/{chunk-ZF5CBLVS.mjs → chunk-7IEQDXTC.mjs} +52 -5
- package/dist/{chunk-EQ4UAZQR.mjs → chunk-BBQGII7T.mjs} +1 -1
- package/dist/{chunk-W3PAVRHF.mjs → chunk-JV7SMDBE.mjs} +1 -1
- package/dist/{chunk-DFWGDF2X.mjs → chunk-R523BFEU.mjs} +5 -15
- package/dist/{chunk-IZBM6DPD.mjs → chunk-UBVU7OT5.mjs} +4 -4
- package/dist/{chunk-EOBXIRVU.mjs → chunk-WUWAERVF.mjs} +4 -14
- package/dist/{chunk-4XFC5UQ2.cjs → chunk-X4RL5AZ7.cjs} +3 -3
- package/dist/index.cjs +49 -1
- package/dist/index.mjs +49 -1
- package/dist/pptx/automation/index.cjs +4 -14
- package/dist/pptx/automation/index.d.ts +3 -3
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{index-DtYuxPlO.d.ts → index-DH0ZfLzt.d.ts} +3 -3
- package/dist/pptx/chunks/{index-DtYuxPlO.d.ts.map → index-DH0ZfLzt.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-CcEodQAX.d.ts → index-DcscVTAw.d.ts} +2 -2
- package/dist/pptx/chunks/{index-CcEodQAX.d.ts.map → index-DcscVTAw.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-PfcOm5CG.d.ts → index-LjoVDuEa.d.ts} +23 -15
- package/dist/pptx/chunks/index-LjoVDuEa.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +4 -14
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +15 -15
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/find-replace.mjs +2 -2
- package/dist/pptx/editor/render/slide-operations.cjs +9 -9
- package/dist/pptx/editor/render/slide-operations.mjs +3 -3
- package/dist/pptx/index.cjs +72 -24
- package/dist/pptx/index.d.ts +4 -4
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/text/index.cjs +49 -1
- package/dist/text/index.mjs +49 -2
- package/dist/text/webfonts/google-fonts-catalogue.d.ts +10 -7
- package/dist/text/webfonts/google-fonts-catalogue.d.ts.map +1 -1
- package/dist/text/webfonts/google-fonts-variants.d.ts +15 -0
- package/dist/text/webfonts/google-fonts-variants.d.ts.map +1 -0
- package/dist/text/webfonts/index.d.ts +1 -0
- package/dist/text/webfonts/index.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +15 -0
- package/dist/xlsx/index.mjs +15 -0
- package/dist/xlsx/ui/commands/i18n/navigation.d.ts.map +1 -1
- package/dist/xlsx/ui/context.d.ts +2 -0
- package/dist/xlsx/ui/context.d.ts.map +1 -1
- package/dist/xlsx/ui/find-order.d.ts +6 -0
- package/dist/xlsx/ui/find-order.d.ts.map +1 -0
- package/dist/xlsx/ui/format-cells-state.d.ts +25 -0
- package/dist/xlsx/ui/format-cells-state.d.ts.map +1 -0
- package/dist/xlsx/ui/index.cjs +138 -3
- package/dist/xlsx/ui/index.d.ts +4 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -1
- package/dist/xlsx/ui/index.mjs +132 -4
- package/dist/xlsx/ui/replace-validation.d.ts +46 -0
- package/dist/xlsx/ui/replace-validation.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/PptxHandler-3PYE3IGO.mjs +0 -5
- package/dist/PptxHandler-CXLJ6KIC.cjs +0 -14
- package/dist/pptx/chunks/index-PfcOm5CG.d.ts.map +0 -1
- /package/dist/{chunk-A6RRUPRT.cjs → chunk-EN3KSEW5.cjs} +0 -0
- /package/dist/{chunk-FFEVDPRE.mjs → chunk-PRGXRAAU.mjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../xlsx/ui/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,WAAW,SAAS;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC9B,GAAG,IAAI,SAAS,CAAC;IACjB,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,SAAS,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IAC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AAE,OAAO,GAAG,OAAO,CAAC;IAC7C,UAAU,IAAI,MAAM,CAAC;IACrB,gGAAgG;IAChG,eAAe,CAAC,IAAI,OAAO,CAAC;IAC5B,MAAM,IAAI,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,IAAI,WAAW,GAAG,SAAS,CAAC;IACpC,4FAA4F;IAC5F,gBAAgB,CAAC,IAAI,SAAS,WAAW,EAAE,CAAC;IAC5C,2EAA2E;IAC3E,wBAAwB,CAAC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;CAC5D;AAED,kEAAkE;AAClE,MAAM,MAAM,WAAW,GAAG,IAAI,CAC7B,WAAW,EACX,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CACnE,CAAC;AAEF,2FAA2F;AAC3F,wBAAgB,SAAS,CAAC,GAAG,EAAE,aAAa,GAAG,WAAW,GAAG,SAAS,CAErE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FindMatch } from '../index.js';
|
|
2
|
+
/** Matches after the active cell first (wrapping), as Find Next walks them. */
|
|
3
|
+
export declare function orderFrom(matches: FindMatch[], sheet: number, row: number, col: number, byColumns: boolean): FindMatch[];
|
|
4
|
+
/** The match Find Next / Find Previous lands on from the active cell, wrapping around. */
|
|
5
|
+
export declare function stepMatch(matches: FindMatch[], sheet: number, row: number, col: number, byColumns: boolean, backwards?: boolean): FindMatch | undefined;
|
|
6
|
+
//# sourceMappingURL=find-order.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-order.d.ts","sourceRoot":"","sources":["../../../xlsx/ui/find-order.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,+EAA+E;AAC/E,wBAAgB,SAAS,CACxB,OAAO,EAAE,SAAS,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,OAAO,GAChB,SAAS,EAAE,CASb;AAED,0FAA0F;AAC1F,wBAAgB,SAAS,CACxB,OAAO,EAAE,SAAS,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,OAAO,EAClB,SAAS,UAAQ,GACf,SAAS,GAAG,SAAS,CAOvB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Alignment, type Border, type CellRange, type Fill, type Font, type Protection, type Workbook } from '../index.js';
|
|
2
|
+
/** The properties all examined cells share, and the names of those that differ. */
|
|
3
|
+
export interface FormatAspect<T> {
|
|
4
|
+
/** Properties with one value across the selection (a property nobody sets is absent). */
|
|
5
|
+
value: T;
|
|
6
|
+
/** Property names whose value differs between cells. */
|
|
7
|
+
mixed: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface FormatCellsState {
|
|
10
|
+
font: FormatAspect<Font>;
|
|
11
|
+
alignment: FormatAspect<Alignment>;
|
|
12
|
+
border: FormatAspect<Border>;
|
|
13
|
+
protection: FormatAspect<Protection>;
|
|
14
|
+
/** The number format code, or null when the selection mixes formats. */
|
|
15
|
+
numFmt: string | null;
|
|
16
|
+
/** The fill, or null when the selection mixes fills. */
|
|
17
|
+
fill: Fill | null;
|
|
18
|
+
/** False when the selection was too large to examine fully (its mixed lists are then partial). */
|
|
19
|
+
complete: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Cells examined per request; a larger selection reports `complete: false`. */
|
|
22
|
+
export declare const FORMAT_CELLS_SAMPLE = 4096;
|
|
23
|
+
/** The common and mixed formatting of `ranges` on one sheet. */
|
|
24
|
+
export declare function formatCellsState(workbook: Workbook | undefined, sheetIndex: number, ranges: readonly CellRange[]): FormatCellsState;
|
|
25
|
+
//# sourceMappingURL=format-cells-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-cells-state.d.ts","sourceRoot":"","sources":["../../../xlsx/ui/format-cells-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAGN,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,SAAS,EAEd,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,MAAM,UAAU,CAAC;AAGlB,mFAAmF;AACnF,MAAM,WAAW,YAAY,CAAC,CAAC;IAC9B,yFAAyF;IACzF,KAAK,EAAE,CAAC,CAAC;IACT,wDAAwD;IACxD,KAAK,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IACzB,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACnC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7B,UAAU,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IACrC,wEAAwE;IACxE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,wDAAwD;IACxD,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,kGAAkG;IAClG,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED,gFAAgF;AAChF,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAmBxC,gEAAgE;AAChE,wBAAgB,gBAAgB,CAC/B,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,SAAS,SAAS,EAAE,GAC1B,gBAAgB,CA6BlB"}
|
package/dist/xlsx/ui/index.cjs
CHANGED
|
@@ -49882,16 +49882,16 @@ function buildChartGradientDef(id, fill, bounds) {
|
|
|
49882
49882
|
if (fill.type === "radial") {
|
|
49883
49883
|
const cx = fill.focalPoint?.x ?? 0.5;
|
|
49884
49884
|
const cy = fill.focalPoint?.y ?? 0.5;
|
|
49885
|
-
const
|
|
49885
|
+
const aspect2 = fill.path === "circle" && bounds && Number.isFinite(bounds.width) && Number.isFinite(bounds.height) && bounds.width > 0 && bounds.height > 0 ? bounds.height / bounds.width : 1;
|
|
49886
49886
|
return {
|
|
49887
49887
|
kind: "radialGradient",
|
|
49888
49888
|
id,
|
|
49889
49889
|
cx,
|
|
49890
49890
|
cy,
|
|
49891
49891
|
r: Math.max(
|
|
49892
|
-
...[0, 1].flatMap((x) => [0, 1].map((y) => Math.hypot(x - cx, (y - cy) *
|
|
49892
|
+
...[0, 1].flatMap((x) => [0, 1].map((y) => Math.hypot(x - cx, (y - cy) * aspect2)))
|
|
49893
49893
|
),
|
|
49894
|
-
...
|
|
49894
|
+
...aspect2 === 1 ? {} : { gradientTransform: `matrix(1 0 0 ${1 / aspect2} 0 ${cy * (1 - 1 / aspect2)})` },
|
|
49895
49895
|
stops
|
|
49896
49896
|
};
|
|
49897
49897
|
}
|
|
@@ -76185,6 +76185,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76185
76185
|
"Afacad Flux",
|
|
76186
76186
|
"Agbalumo",
|
|
76187
76187
|
"Agdasima",
|
|
76188
|
+
"Agrave Pro",
|
|
76188
76189
|
"Agu Display",
|
|
76189
76190
|
"Aguafina Script",
|
|
76190
76191
|
"Akatab",
|
|
@@ -76517,6 +76518,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76517
76518
|
"Chonburi",
|
|
76518
76519
|
"Cinzel",
|
|
76519
76520
|
"Cinzel Decorative",
|
|
76521
|
+
"Clarity City",
|
|
76520
76522
|
"Clicker Script",
|
|
76521
76523
|
"Climate Crisis",
|
|
76522
76524
|
"Coda",
|
|
@@ -76687,6 +76689,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76687
76689
|
"Fira Sans",
|
|
76688
76690
|
"Fira Sans Condensed",
|
|
76689
76691
|
"Fira Sans Extra Condensed",
|
|
76692
|
+
"Firjar",
|
|
76690
76693
|
"Fjalla One",
|
|
76691
76694
|
"Fjord One",
|
|
76692
76695
|
"Flamenco",
|
|
@@ -76879,6 +76882,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76879
76882
|
"Iosevka Charon Mono",
|
|
76880
76883
|
"Irish Grover",
|
|
76881
76884
|
"Island Moments",
|
|
76885
|
+
"Isometra",
|
|
76882
76886
|
"Istok Web",
|
|
76883
76887
|
"Italiana",
|
|
76884
76888
|
"Italianno",
|
|
@@ -76973,6 +76977,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76973
76977
|
"Koulen",
|
|
76974
76978
|
"Kranky",
|
|
76975
76979
|
"Kreon",
|
|
76980
|
+
"Kripa",
|
|
76976
76981
|
"Kristi",
|
|
76977
76982
|
"Krona One",
|
|
76978
76983
|
"Krub",
|
|
@@ -77024,6 +77029,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
77024
77029
|
"Libre Barcode EAN13 Text",
|
|
77025
77030
|
"Libre Baskerville",
|
|
77026
77031
|
"Libre Bodoni",
|
|
77032
|
+
"Libre Caslon Condensed",
|
|
77027
77033
|
"Libre Caslon Display",
|
|
77028
77034
|
"Libre Caslon Text",
|
|
77029
77035
|
"Libre Franklin",
|
|
@@ -77710,6 +77716,13 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
77710
77716
|
"Red Rose",
|
|
77711
77717
|
"Redacted",
|
|
77712
77718
|
"Redacted Script",
|
|
77719
|
+
"Redaction",
|
|
77720
|
+
"Redaction 10",
|
|
77721
|
+
"Redaction 100",
|
|
77722
|
+
"Redaction 20",
|
|
77723
|
+
"Redaction 35",
|
|
77724
|
+
"Redaction 50",
|
|
77725
|
+
"Redaction 70",
|
|
77713
77726
|
"Reddit Mono",
|
|
77714
77727
|
"Reddit Sans",
|
|
77715
77728
|
"Reddit Sans Condensed",
|
|
@@ -77975,6 +77988,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
77975
77988
|
"Timmana",
|
|
77976
77989
|
"Tinos",
|
|
77977
77990
|
"Tiny5",
|
|
77991
|
+
"Tiny5 Duo",
|
|
77978
77992
|
"Tiro Bangla",
|
|
77979
77993
|
"Tiro Devanagari Hindi",
|
|
77980
77994
|
"Tiro Devanagari Marathi",
|
|
@@ -78067,6 +78081,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
78067
78081
|
"Work Sans",
|
|
78068
78082
|
"Workbench",
|
|
78069
78083
|
"Xanh Mono",
|
|
78084
|
+
"Xmind",
|
|
78070
78085
|
"Yaldevi",
|
|
78071
78086
|
"Yanone Kaffeesatz",
|
|
78072
78087
|
"Yantramanav",
|
|
@@ -80842,6 +80857,12 @@ var NAVIGATION_STRINGS = {
|
|
|
80842
80857
|
"Listo. Hemos realizado {count} reemplazos.",
|
|
80843
80858
|
"\u5168\u90E8\u5B8C\u6210\u3002\u5B8C\u6210 {count} \u5904\u66FF\u6362\u3002"
|
|
80844
80859
|
],
|
|
80860
|
+
"{count} cell(s) were not replaced because the new value does not match their data validation.": [
|
|
80861
|
+
"{count} cellule(s) n\u2019ont pas \xE9t\xE9 remplac\xE9es car la nouvelle valeur ne respecte pas leur validation des donn\xE9es.",
|
|
80862
|
+
"{count} Zelle(n) wurden nicht ersetzt, da der neue Wert ihrer Daten\xFCberpr\xFCfung nicht entspricht.",
|
|
80863
|
+
"No se reemplazaron {count} celda(s) porque el nuevo valor no cumple su validaci\xF3n de datos.",
|
|
80864
|
+
"\u6709 {count} \u4E2A\u5355\u5143\u683C\u672A\u66FF\u6362\uFF0C\u56E0\u4E3A\u65B0\u503C\u4E0D\u7B26\u5408\u5176\u6570\u636E\u9A8C\u8BC1\u3002"
|
|
80865
|
+
],
|
|
80845
80866
|
// Go To and Go To Special
|
|
80846
80867
|
"Go To": ["Atteindre", "Gehe zu", "Ir a", "\u5B9A\u4F4D"],
|
|
80847
80868
|
"Go to:": ["Atteindre :", "Gehe zu:", "Ir a:", "\u5B9A\u4F4D:"],
|
|
@@ -91938,6 +91959,113 @@ function selectionFormatting(workbook, sheetIndex2, ranges) {
|
|
|
91938
91959
|
};
|
|
91939
91960
|
}
|
|
91940
91961
|
|
|
91962
|
+
// xlsx/ui/format-cells-state.ts
|
|
91963
|
+
var FORMAT_CELLS_SAMPLE = 4096;
|
|
91964
|
+
function aspect(items) {
|
|
91965
|
+
const value3 = {};
|
|
91966
|
+
const mixed = [];
|
|
91967
|
+
const keys = new Set(items.flatMap((item2) => Object.keys(item2)));
|
|
91968
|
+
for (const key of keys) {
|
|
91969
|
+
const seen = new Set(
|
|
91970
|
+
items.map((item2) => JSON.stringify(item2[key]))
|
|
91971
|
+
);
|
|
91972
|
+
if (seen.size > 1) mixed.push(key);
|
|
91973
|
+
else {
|
|
91974
|
+
const first2 = items[0]?.[key];
|
|
91975
|
+
if (first2 !== void 0) value3[key] = first2;
|
|
91976
|
+
}
|
|
91977
|
+
}
|
|
91978
|
+
return { value: value3, mixed };
|
|
91979
|
+
}
|
|
91980
|
+
function formatCellsState(workbook, sheetIndex2, ranges) {
|
|
91981
|
+
const sheet = workbook?.sheets[sheetIndex2];
|
|
91982
|
+
const ids = /* @__PURE__ */ new Set();
|
|
91983
|
+
let remaining = FORMAT_CELLS_SAMPLE;
|
|
91984
|
+
let complete = true;
|
|
91985
|
+
if (workbook && sheet)
|
|
91986
|
+
outer: for (const raw2 of ranges) {
|
|
91987
|
+
const range2 = normalizeRange(raw2);
|
|
91988
|
+
for (let row2 = range2.start.row; row2 <= range2.end.row; row2++)
|
|
91989
|
+
for (let col = range2.start.col; col <= range2.end.col; col++) {
|
|
91990
|
+
if (--remaining < 0) {
|
|
91991
|
+
complete = false;
|
|
91992
|
+
break outer;
|
|
91993
|
+
}
|
|
91994
|
+
ids.add(effectiveStyleId(sheet, row2, col) ?? 0);
|
|
91995
|
+
}
|
|
91996
|
+
}
|
|
91997
|
+
const styles = workbook ? [...ids].map((id) => styleAt(workbook, id)) : [];
|
|
91998
|
+
const numFmts = new Set(styles.map((s) => s.numFmt));
|
|
91999
|
+
const fills = new Set(styles.map((s) => JSON.stringify(s.fill)));
|
|
92000
|
+
return {
|
|
92001
|
+
font: aspect(styles.map((s) => s.font)),
|
|
92002
|
+
alignment: aspect(styles.map((s) => s.alignment ?? {})),
|
|
92003
|
+
border: aspect(styles.map((s) => s.border)),
|
|
92004
|
+
protection: aspect(styles.map((s) => s.protection ?? {})),
|
|
92005
|
+
numFmt: numFmts.size === 1 ? [...numFmts][0] : null,
|
|
92006
|
+
fill: fills.size === 1 && styles[0] ? styles[0].fill : null,
|
|
92007
|
+
complete
|
|
92008
|
+
};
|
|
92009
|
+
}
|
|
92010
|
+
|
|
92011
|
+
// xlsx/ui/find-order.ts
|
|
92012
|
+
function orderFrom(matches2, sheet, row2, col, byColumns) {
|
|
92013
|
+
const after = (m) => m.sheet > sheet || m.sheet === sheet && (byColumns ? m.col > col || m.col === col && m.row > row2 : m.row > row2 || m.row === row2 && m.col > col);
|
|
92014
|
+
const index3 = matches2.findIndex(after);
|
|
92015
|
+
return index3 < 0 ? matches2 : [...matches2.slice(index3), ...matches2.slice(0, index3)];
|
|
92016
|
+
}
|
|
92017
|
+
function stepMatch(matches2, sheet, row2, col, byColumns, backwards = false) {
|
|
92018
|
+
const list2 = orderFrom(matches2, sheet, row2, col, byColumns);
|
|
92019
|
+
if (!backwards) return list2[0];
|
|
92020
|
+
const last = list2[list2.length - 1];
|
|
92021
|
+
const atActive = last && last.sheet === sheet && last.row === row2 && last.col === col;
|
|
92022
|
+
return atActive && list2.length > 1 ? list2[list2.length - 2] : last;
|
|
92023
|
+
}
|
|
92024
|
+
|
|
92025
|
+
// xlsx/ui/replace-validation.ts
|
|
92026
|
+
function validateReplacements(session, query, replacement, matches2) {
|
|
92027
|
+
const result2 = { allowed: [], refused: [] };
|
|
92028
|
+
for (const match2 of matches2) {
|
|
92029
|
+
const next = replaceText(match2.text, query, replacement);
|
|
92030
|
+
if (query.lookIn === "comments" || next.startsWith("=") || next === match2.text) {
|
|
92031
|
+
result2.allowed.push(match2);
|
|
92032
|
+
continue;
|
|
92033
|
+
}
|
|
92034
|
+
const parsed = parseCellInput(next, { date1904: session.workbook.date1904 });
|
|
92035
|
+
const check3 = session.validate(match2.sheet, match2.row, match2.col, parsed.value);
|
|
92036
|
+
if (check3.ok) result2.allowed.push(match2);
|
|
92037
|
+
else
|
|
92038
|
+
result2.refused.push({
|
|
92039
|
+
sheet: match2.sheet,
|
|
92040
|
+
row: match2.row,
|
|
92041
|
+
col: match2.col,
|
|
92042
|
+
ref: formatAddress({ row: match2.row, col: match2.col }),
|
|
92043
|
+
value: next,
|
|
92044
|
+
message: check3.message,
|
|
92045
|
+
...check3.title ? { title: check3.title } : {}
|
|
92046
|
+
});
|
|
92047
|
+
}
|
|
92048
|
+
return result2;
|
|
92049
|
+
}
|
|
92050
|
+
function replaceAllValidated(session, query, replacement) {
|
|
92051
|
+
const { allowed, refused } = validateReplacements(
|
|
92052
|
+
session,
|
|
92053
|
+
query,
|
|
92054
|
+
replacement,
|
|
92055
|
+
session.findAll(query)
|
|
92056
|
+
);
|
|
92057
|
+
if (!refused.length) return { replaced: session.replaceAll(query, replacement), refused };
|
|
92058
|
+
let replaced = 0;
|
|
92059
|
+
session.batch("Replace All", () => {
|
|
92060
|
+
for (const match2 of allowed) if (session.replaceOne(query, replacement, match2)) replaced++;
|
|
92061
|
+
});
|
|
92062
|
+
return { replaced, refused };
|
|
92063
|
+
}
|
|
92064
|
+
function replaceOneValidated(session, query, replacement, at2) {
|
|
92065
|
+
const { allowed, refused } = validateReplacements(session, query, replacement, [at2]);
|
|
92066
|
+
return { replaced: allowed.length > 0 && session.replaceOne(query, replacement, at2), refused };
|
|
92067
|
+
}
|
|
92068
|
+
|
|
91941
92069
|
exports.ACCOUNTING_FORMATS = ACCOUNTING_FORMATS;
|
|
91942
92070
|
exports.ALL_RANGE = ALL_RANGE;
|
|
91943
92071
|
exports.AUTOSUM_FUNCTIONS = AUTOSUM_FUNCTIONS;
|
|
@@ -91960,6 +92088,7 @@ exports.EXCEL_CAPABILITY_IDS = EXCEL_CAPABILITY_IDS;
|
|
|
91960
92088
|
exports.FONT_NAMES = FONT_NAMES;
|
|
91961
92089
|
exports.FONT_SIZES = FONT_SIZES;
|
|
91962
92090
|
exports.FORECAST_AGGREGATIONS = FORECAST_AGGREGATIONS;
|
|
92091
|
+
exports.FORMAT_CELLS_SAMPLE = FORMAT_CELLS_SAMPLE;
|
|
91963
92092
|
exports.FORMAT_CELLS_STRINGS = FORMAT_CELLS_STRINGS;
|
|
91964
92093
|
exports.FRACTION_CODES = FRACTION_CODES;
|
|
91965
92094
|
exports.FUNCTION_MENUS = FUNCTION_MENUS;
|
|
@@ -92060,6 +92189,7 @@ exports.findSpecial = findSpecial;
|
|
|
92060
92189
|
exports.fitNumber = fitNumber2;
|
|
92061
92190
|
exports.fontCommands = fontCommands;
|
|
92062
92191
|
exports.forecastMessage = forecastMessage;
|
|
92192
|
+
exports.formatCellsState = formatCellsState;
|
|
92063
92193
|
exports.formatNumber = formatNumber2;
|
|
92064
92194
|
exports.formulaCommands = formulaCommands;
|
|
92065
92195
|
exports.functionsIn = functionsIn;
|
|
@@ -92100,6 +92230,7 @@ exports.numberCommands = numberCommands;
|
|
|
92100
92230
|
exports.numberFormatOptions = numberFormatOptions;
|
|
92101
92231
|
exports.onAuditChange = onAuditChange;
|
|
92102
92232
|
exports.onRibbonTabsChange = onRibbonTabsChange;
|
|
92233
|
+
exports.orderFrom = orderFrom;
|
|
92103
92234
|
exports.pageBreakCommands = pageBreakCommands;
|
|
92104
92235
|
exports.pageLayoutCommands = pageLayoutCommands;
|
|
92105
92236
|
exports.parseBorderArg = parseBorderArg;
|
|
@@ -92117,6 +92248,8 @@ exports.regionOf = regionOf;
|
|
|
92117
92248
|
exports.registerRibbonTabs = registerRibbonTabs;
|
|
92118
92249
|
exports.removeWatch = removeWatch;
|
|
92119
92250
|
exports.repeatToFill = repeatToFill;
|
|
92251
|
+
exports.replaceAllValidated = replaceAllValidated;
|
|
92252
|
+
exports.replaceOneValidated = replaceOneValidated;
|
|
92120
92253
|
exports.resetRibbonTabs = resetRibbonTabs;
|
|
92121
92254
|
exports.resolveNameBox = resolveNameBox;
|
|
92122
92255
|
exports.reviewTab = reviewTab;
|
|
@@ -92146,6 +92279,7 @@ exports.sortCommands = sortCommands;
|
|
|
92146
92279
|
exports.span = span4;
|
|
92147
92280
|
exports.spanRange = spanRange;
|
|
92148
92281
|
exports.stepFontSize = stepFontSize;
|
|
92282
|
+
exports.stepMatch = stepMatch;
|
|
92149
92283
|
exports.structureLocked = structureLocked;
|
|
92150
92284
|
exports.style = style2;
|
|
92151
92285
|
exports.styleCssFont = styleCssFont;
|
|
@@ -92163,6 +92297,7 @@ exports.themeToCssVars = themeToCssVars;
|
|
|
92163
92297
|
exports.timelineSourceAt = timelineSourceAt;
|
|
92164
92298
|
exports.translate = translate;
|
|
92165
92299
|
exports.translator = translator;
|
|
92300
|
+
exports.validateReplacements = validateReplacements;
|
|
92166
92301
|
exports.viewTab = viewTab;
|
|
92167
92302
|
exports.viewing = viewing;
|
|
92168
92303
|
exports.whatIfCommands = whatIfCommands;
|
package/dist/xlsx/ui/index.d.ts
CHANGED
|
@@ -62,4 +62,8 @@ export * from './theme/defaults.js';
|
|
|
62
62
|
export * from './theme/element.js';
|
|
63
63
|
export * from './theme/types.js';
|
|
64
64
|
export { selectionFormatting } from './selection-format.js';
|
|
65
|
+
export { formatCellsState, FORMAT_CELLS_SAMPLE } from './format-cells-state.js';
|
|
66
|
+
export type { FormatAspect, FormatCellsState } from './format-cells-state.js';
|
|
67
|
+
export { orderFrom, stepMatch } from './find-order.js';
|
|
68
|
+
export { replaceAllValidated, replaceOneValidated, validateReplacements, type RefusedReplacement, type ReplaceOptions, type ValidatedMatches, } from './replace-validation.js';
|
|
65
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../xlsx/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,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mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACrB,MAAM,sBAAsB,CAAC"}
|
package/dist/xlsx/ui/index.mjs
CHANGED
|
@@ -49857,16 +49857,16 @@ function buildChartGradientDef(id, fill, bounds) {
|
|
|
49857
49857
|
if (fill.type === "radial") {
|
|
49858
49858
|
const cx = fill.focalPoint?.x ?? 0.5;
|
|
49859
49859
|
const cy = fill.focalPoint?.y ?? 0.5;
|
|
49860
|
-
const
|
|
49860
|
+
const aspect2 = fill.path === "circle" && bounds && Number.isFinite(bounds.width) && Number.isFinite(bounds.height) && bounds.width > 0 && bounds.height > 0 ? bounds.height / bounds.width : 1;
|
|
49861
49861
|
return {
|
|
49862
49862
|
kind: "radialGradient",
|
|
49863
49863
|
id,
|
|
49864
49864
|
cx,
|
|
49865
49865
|
cy,
|
|
49866
49866
|
r: Math.max(
|
|
49867
|
-
...[0, 1].flatMap((x) => [0, 1].map((y) => Math.hypot(x - cx, (y - cy) *
|
|
49867
|
+
...[0, 1].flatMap((x) => [0, 1].map((y) => Math.hypot(x - cx, (y - cy) * aspect2)))
|
|
49868
49868
|
),
|
|
49869
|
-
...
|
|
49869
|
+
...aspect2 === 1 ? {} : { gradientTransform: `matrix(1 0 0 ${1 / aspect2} 0 ${cy * (1 - 1 / aspect2)})` },
|
|
49870
49870
|
stops
|
|
49871
49871
|
};
|
|
49872
49872
|
}
|
|
@@ -76160,6 +76160,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76160
76160
|
"Afacad Flux",
|
|
76161
76161
|
"Agbalumo",
|
|
76162
76162
|
"Agdasima",
|
|
76163
|
+
"Agrave Pro",
|
|
76163
76164
|
"Agu Display",
|
|
76164
76165
|
"Aguafina Script",
|
|
76165
76166
|
"Akatab",
|
|
@@ -76492,6 +76493,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76492
76493
|
"Chonburi",
|
|
76493
76494
|
"Cinzel",
|
|
76494
76495
|
"Cinzel Decorative",
|
|
76496
|
+
"Clarity City",
|
|
76495
76497
|
"Clicker Script",
|
|
76496
76498
|
"Climate Crisis",
|
|
76497
76499
|
"Coda",
|
|
@@ -76662,6 +76664,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76662
76664
|
"Fira Sans",
|
|
76663
76665
|
"Fira Sans Condensed",
|
|
76664
76666
|
"Fira Sans Extra Condensed",
|
|
76667
|
+
"Firjar",
|
|
76665
76668
|
"Fjalla One",
|
|
76666
76669
|
"Fjord One",
|
|
76667
76670
|
"Flamenco",
|
|
@@ -76854,6 +76857,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76854
76857
|
"Iosevka Charon Mono",
|
|
76855
76858
|
"Irish Grover",
|
|
76856
76859
|
"Island Moments",
|
|
76860
|
+
"Isometra",
|
|
76857
76861
|
"Istok Web",
|
|
76858
76862
|
"Italiana",
|
|
76859
76863
|
"Italianno",
|
|
@@ -76948,6 +76952,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76948
76952
|
"Koulen",
|
|
76949
76953
|
"Kranky",
|
|
76950
76954
|
"Kreon",
|
|
76955
|
+
"Kripa",
|
|
76951
76956
|
"Kristi",
|
|
76952
76957
|
"Krona One",
|
|
76953
76958
|
"Krub",
|
|
@@ -76999,6 +77004,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
76999
77004
|
"Libre Barcode EAN13 Text",
|
|
77000
77005
|
"Libre Baskerville",
|
|
77001
77006
|
"Libre Bodoni",
|
|
77007
|
+
"Libre Caslon Condensed",
|
|
77002
77008
|
"Libre Caslon Display",
|
|
77003
77009
|
"Libre Caslon Text",
|
|
77004
77010
|
"Libre Franklin",
|
|
@@ -77685,6 +77691,13 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
77685
77691
|
"Red Rose",
|
|
77686
77692
|
"Redacted",
|
|
77687
77693
|
"Redacted Script",
|
|
77694
|
+
"Redaction",
|
|
77695
|
+
"Redaction 10",
|
|
77696
|
+
"Redaction 100",
|
|
77697
|
+
"Redaction 20",
|
|
77698
|
+
"Redaction 35",
|
|
77699
|
+
"Redaction 50",
|
|
77700
|
+
"Redaction 70",
|
|
77688
77701
|
"Reddit Mono",
|
|
77689
77702
|
"Reddit Sans",
|
|
77690
77703
|
"Reddit Sans Condensed",
|
|
@@ -77950,6 +77963,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
77950
77963
|
"Timmana",
|
|
77951
77964
|
"Tinos",
|
|
77952
77965
|
"Tiny5",
|
|
77966
|
+
"Tiny5 Duo",
|
|
77953
77967
|
"Tiro Bangla",
|
|
77954
77968
|
"Tiro Devanagari Hindi",
|
|
77955
77969
|
"Tiro Devanagari Marathi",
|
|
@@ -78042,6 +78056,7 @@ var GOOGLE_FONTS_FAMILIES = [
|
|
|
78042
78056
|
"Work Sans",
|
|
78043
78057
|
"Workbench",
|
|
78044
78058
|
"Xanh Mono",
|
|
78059
|
+
"Xmind",
|
|
78045
78060
|
"Yaldevi",
|
|
78046
78061
|
"Yanone Kaffeesatz",
|
|
78047
78062
|
"Yantramanav",
|
|
@@ -80817,6 +80832,12 @@ var NAVIGATION_STRINGS = {
|
|
|
80817
80832
|
"Listo. Hemos realizado {count} reemplazos.",
|
|
80818
80833
|
"\u5168\u90E8\u5B8C\u6210\u3002\u5B8C\u6210 {count} \u5904\u66FF\u6362\u3002"
|
|
80819
80834
|
],
|
|
80835
|
+
"{count} cell(s) were not replaced because the new value does not match their data validation.": [
|
|
80836
|
+
"{count} cellule(s) n\u2019ont pas \xE9t\xE9 remplac\xE9es car la nouvelle valeur ne respecte pas leur validation des donn\xE9es.",
|
|
80837
|
+
"{count} Zelle(n) wurden nicht ersetzt, da der neue Wert ihrer Daten\xFCberpr\xFCfung nicht entspricht.",
|
|
80838
|
+
"No se reemplazaron {count} celda(s) porque el nuevo valor no cumple su validaci\xF3n de datos.",
|
|
80839
|
+
"\u6709 {count} \u4E2A\u5355\u5143\u683C\u672A\u66FF\u6362\uFF0C\u56E0\u4E3A\u65B0\u503C\u4E0D\u7B26\u5408\u5176\u6570\u636E\u9A8C\u8BC1\u3002"
|
|
80840
|
+
],
|
|
80820
80841
|
// Go To and Go To Special
|
|
80821
80842
|
"Go To": ["Atteindre", "Gehe zu", "Ir a", "\u5B9A\u4F4D"],
|
|
80822
80843
|
"Go to:": ["Atteindre :", "Gehe zu:", "Ir a:", "\u5B9A\u4F4D:"],
|
|
@@ -91913,4 +91934,111 @@ function selectionFormatting(workbook, sheetIndex2, ranges) {
|
|
|
91913
91934
|
};
|
|
91914
91935
|
}
|
|
91915
91936
|
|
|
91916
|
-
|
|
91937
|
+
// xlsx/ui/format-cells-state.ts
|
|
91938
|
+
var FORMAT_CELLS_SAMPLE = 4096;
|
|
91939
|
+
function aspect(items) {
|
|
91940
|
+
const value3 = {};
|
|
91941
|
+
const mixed = [];
|
|
91942
|
+
const keys = new Set(items.flatMap((item2) => Object.keys(item2)));
|
|
91943
|
+
for (const key of keys) {
|
|
91944
|
+
const seen = new Set(
|
|
91945
|
+
items.map((item2) => JSON.stringify(item2[key]))
|
|
91946
|
+
);
|
|
91947
|
+
if (seen.size > 1) mixed.push(key);
|
|
91948
|
+
else {
|
|
91949
|
+
const first2 = items[0]?.[key];
|
|
91950
|
+
if (first2 !== void 0) value3[key] = first2;
|
|
91951
|
+
}
|
|
91952
|
+
}
|
|
91953
|
+
return { value: value3, mixed };
|
|
91954
|
+
}
|
|
91955
|
+
function formatCellsState(workbook, sheetIndex2, ranges) {
|
|
91956
|
+
const sheet = workbook?.sheets[sheetIndex2];
|
|
91957
|
+
const ids = /* @__PURE__ */ new Set();
|
|
91958
|
+
let remaining = FORMAT_CELLS_SAMPLE;
|
|
91959
|
+
let complete = true;
|
|
91960
|
+
if (workbook && sheet)
|
|
91961
|
+
outer: for (const raw2 of ranges) {
|
|
91962
|
+
const range2 = normalizeRange(raw2);
|
|
91963
|
+
for (let row2 = range2.start.row; row2 <= range2.end.row; row2++)
|
|
91964
|
+
for (let col = range2.start.col; col <= range2.end.col; col++) {
|
|
91965
|
+
if (--remaining < 0) {
|
|
91966
|
+
complete = false;
|
|
91967
|
+
break outer;
|
|
91968
|
+
}
|
|
91969
|
+
ids.add(effectiveStyleId(sheet, row2, col) ?? 0);
|
|
91970
|
+
}
|
|
91971
|
+
}
|
|
91972
|
+
const styles = workbook ? [...ids].map((id) => styleAt(workbook, id)) : [];
|
|
91973
|
+
const numFmts = new Set(styles.map((s) => s.numFmt));
|
|
91974
|
+
const fills = new Set(styles.map((s) => JSON.stringify(s.fill)));
|
|
91975
|
+
return {
|
|
91976
|
+
font: aspect(styles.map((s) => s.font)),
|
|
91977
|
+
alignment: aspect(styles.map((s) => s.alignment ?? {})),
|
|
91978
|
+
border: aspect(styles.map((s) => s.border)),
|
|
91979
|
+
protection: aspect(styles.map((s) => s.protection ?? {})),
|
|
91980
|
+
numFmt: numFmts.size === 1 ? [...numFmts][0] : null,
|
|
91981
|
+
fill: fills.size === 1 && styles[0] ? styles[0].fill : null,
|
|
91982
|
+
complete
|
|
91983
|
+
};
|
|
91984
|
+
}
|
|
91985
|
+
|
|
91986
|
+
// xlsx/ui/find-order.ts
|
|
91987
|
+
function orderFrom(matches2, sheet, row2, col, byColumns) {
|
|
91988
|
+
const after = (m) => m.sheet > sheet || m.sheet === sheet && (byColumns ? m.col > col || m.col === col && m.row > row2 : m.row > row2 || m.row === row2 && m.col > col);
|
|
91989
|
+
const index3 = matches2.findIndex(after);
|
|
91990
|
+
return index3 < 0 ? matches2 : [...matches2.slice(index3), ...matches2.slice(0, index3)];
|
|
91991
|
+
}
|
|
91992
|
+
function stepMatch(matches2, sheet, row2, col, byColumns, backwards = false) {
|
|
91993
|
+
const list2 = orderFrom(matches2, sheet, row2, col, byColumns);
|
|
91994
|
+
if (!backwards) return list2[0];
|
|
91995
|
+
const last = list2[list2.length - 1];
|
|
91996
|
+
const atActive = last && last.sheet === sheet && last.row === row2 && last.col === col;
|
|
91997
|
+
return atActive && list2.length > 1 ? list2[list2.length - 2] : last;
|
|
91998
|
+
}
|
|
91999
|
+
|
|
92000
|
+
// xlsx/ui/replace-validation.ts
|
|
92001
|
+
function validateReplacements(session, query, replacement, matches2) {
|
|
92002
|
+
const result2 = { allowed: [], refused: [] };
|
|
92003
|
+
for (const match2 of matches2) {
|
|
92004
|
+
const next = replaceText(match2.text, query, replacement);
|
|
92005
|
+
if (query.lookIn === "comments" || next.startsWith("=") || next === match2.text) {
|
|
92006
|
+
result2.allowed.push(match2);
|
|
92007
|
+
continue;
|
|
92008
|
+
}
|
|
92009
|
+
const parsed = parseCellInput(next, { date1904: session.workbook.date1904 });
|
|
92010
|
+
const check3 = session.validate(match2.sheet, match2.row, match2.col, parsed.value);
|
|
92011
|
+
if (check3.ok) result2.allowed.push(match2);
|
|
92012
|
+
else
|
|
92013
|
+
result2.refused.push({
|
|
92014
|
+
sheet: match2.sheet,
|
|
92015
|
+
row: match2.row,
|
|
92016
|
+
col: match2.col,
|
|
92017
|
+
ref: formatAddress({ row: match2.row, col: match2.col }),
|
|
92018
|
+
value: next,
|
|
92019
|
+
message: check3.message,
|
|
92020
|
+
...check3.title ? { title: check3.title } : {}
|
|
92021
|
+
});
|
|
92022
|
+
}
|
|
92023
|
+
return result2;
|
|
92024
|
+
}
|
|
92025
|
+
function replaceAllValidated(session, query, replacement) {
|
|
92026
|
+
const { allowed, refused } = validateReplacements(
|
|
92027
|
+
session,
|
|
92028
|
+
query,
|
|
92029
|
+
replacement,
|
|
92030
|
+
session.findAll(query)
|
|
92031
|
+
);
|
|
92032
|
+
if (!refused.length) return { replaced: session.replaceAll(query, replacement), refused };
|
|
92033
|
+
let replaced = 0;
|
|
92034
|
+
session.batch("Replace All", () => {
|
|
92035
|
+
for (const match2 of allowed) if (session.replaceOne(query, replacement, match2)) replaced++;
|
|
92036
|
+
});
|
|
92037
|
+
return { replaced, refused };
|
|
92038
|
+
}
|
|
92039
|
+
function replaceOneValidated(session, query, replacement, at2) {
|
|
92040
|
+
const { allowed, refused } = validateReplacements(session, query, replacement, [at2]);
|
|
92041
|
+
return { replaced: allowed.length > 0 && session.replaceOne(query, replacement, at2), refused };
|
|
92042
|
+
}
|
|
92043
|
+
|
|
92044
|
+
export { ACCOUNTING_FORMATS, ALL_RANGE, AUTOSUM_FUNCTIONS, BORDER_PRESETS, CATEGORIES, COLOR_SCALES, COMMAND_TABLES, CORE_FEATURE_STRINGS, CellViewCache, DATA_BAR_COLORS, DATE_CODES, DEFAULT_OPTIONS, DirtyState, EDITOR_LOCALES, EDITOR_THEME_MODES, EMBED_ASPECT, EXCEL_CAPABILITY_BACKSTAGE_PAGES, EXCEL_CAPABILITY_COMMANDS, EXCEL_CAPABILITY_IDS, FONT_NAMES, FONT_SIZES, FORECAST_AGGREGATIONS, FORMAT_CELLS_SAMPLE, FORMAT_CELLS_STRINGS, FRACTION_CODES, FUNCTION_MENUS, ForecastError, GROUPED_CHART_TYPES, GridGeometry, HIGHLIGHT_STYLES, ICON_ACCENTS, ICON_PATHS, ICON_SETS, INSERT_CHART_TYPES, MARGIN_PRESETS, MAX_GRID_COLS, MAX_GRID_ROWS, MESSAGE_STRINGS, MORE_FUNCTION_CATEGORIES, NAVIGATION_STRINGS, ORIENTATIONS2 as ORIENTATIONS, PAPER_SIZES, QUADRANTS, RIBBON_HOME_STRINGS, RIBBON_TAB_STRINGS, RULES_STRINGS, SHEET_ICONS, SPECIAL_CODES, STRINGS2 as STRINGS, SYMBOLS, ScenarioSummaryError, SheetSelections, TABLE_STYLES, TEMPLATES, THEME_KEYS, TIME_CODES, TOOLS_STRINGS, UNSET, absoluteReference, activeChart, activeRef, activeSlicer, activeSmartArt, activeStyle, activeTable, activeTimeline, addRange, addWatch, alignItems, alignmentCommands, applyThemeColors, auditState, autoSumRange, buildChart, buildCode, buildItems, cellCommands, cellMenu, cellRange3 as cellRange, cellStyleItems, chartGridText, clampAddress, clipState, clipboardCommands, colSelected, colorScaleRule, colsOf, colsRange, columnHeaderHeight, columnHeaderMenu, commandStrings, contextualCommands, createCommandRegistry, createDialogRegistry, createEditBridge, createForecastSheet, createScenarioSummary, createSelectionModel, createTemplateWorkbook, cssFont2 as cssFont, cssFontFamily, darkTheme, dataBarRule, dataCommands, detectCategory, diagonalSvg, dxfCss, edgeCss, editBridge, editChart2 as editChart, editing, editingCommands, evaluateRef, expandForMerges, extendSelection, fillPaint, fillSource, fillTemplate, findDefinedName2 as findDefinedName, findSpecial, fitNumber2 as fitNumber, fontCommands, forecastMessage, formatCellsState, formatNumber2 as formatNumber, formulaCommands, functionsIn, gridChart, gridChartSvg, gridChartWorkbook, guessHeader, hasBorders, hasWorkbook, hashes, helpTab, historyOf, icon, iconCount, iconSetRule, iconSvg, iconThresholds, initialSelection, insertFunctionCall, installFormatPainter, isBlankView, isMenuSeparator, isSingleCell, isTabHidden, isWholeCols, isWholeRows2 as isWholeRows, justify, lightTheme, measure4 as measure, moveWithinSelection, movingEnd, nameForRange, negativeCodes, normalizeEditorLocale, normalizeThemeMode, noteFunctionUse, numberCommands, numberFormatOptions, onAuditChange, onRibbonTabsChange, orderFrom, pageBreakCommands, pageLayoutCommands, parseBorderArg, parseChartGrid, parseSelectionRef, parseSheetReference, pasteWith, patternImage, pickColor, rangeRef, readEmbeddedChart, recentFunctions, refresh, regionOf, registerRibbonTabs, removeWatch, repeatToFill, replaceAllValidated, replaceOneValidated, resetRibbonTabs, resolveNameBox, reviewTab, ribbonTabs, rowHeaderMenu, rowHeaderWidth, rowSelected, rowsOf2 as rowsOf, rowsRange, scrollToReveal, searchCommands, selectCell, selectSpecial, selectTab, selectionCellCount, selectionFormatting, selectionRef, setErrorRules, setSelectionPane, setTabHidden, setTraceArrows, setWatchWindowOpen, sheetBaseName, sheetLocked, slicerSourceAt, sortCommands, span4 as span, spanRange, stepFontSize, stepMatch, structureLocked, style2 as style, styleCssFont, suggestForecastEnd, tabButton, tabMenu, tableAt, tableStyleColor, tableStylePreview, target, textAlign, textDecoration, themePaletteItems, themeToCssVars, timelineSourceAt, translate, translator, validateReplacements, viewTab, viewing, whatIfCommands, wholeColumns, wholeRows, withTarget, workbookFontFamily };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type FindMatch, type FindQuery } from '../index.js';
|
|
2
|
+
import type { EditSession } from '../edit/types.js';
|
|
3
|
+
/** A replacement that data validation refused, so the cell kept its value. */
|
|
4
|
+
export interface RefusedReplacement {
|
|
5
|
+
sheet: number;
|
|
6
|
+
row: number;
|
|
7
|
+
col: number;
|
|
8
|
+
/** The cell in A1 notation. */
|
|
9
|
+
ref: string;
|
|
10
|
+
/** What the cell would have held (formula-bar text). */
|
|
11
|
+
value: string;
|
|
12
|
+
/** The validation rule's error message. */
|
|
13
|
+
message: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
16
|
+
/** Options of Replace and Replace All beyond the query and the replacement. */
|
|
17
|
+
export interface ReplaceOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Check each replaced value against the cell's data validation and leave cells it refuses
|
|
20
|
+
* unchanged. Default: the editor's `validateReplace` (false, as in Excel).
|
|
21
|
+
*/
|
|
22
|
+
validate?: boolean;
|
|
23
|
+
/** Called once per call with the cells validation refused (not called when there are none). */
|
|
24
|
+
onRefused?: (refused: RefusedReplacement[]) => void;
|
|
25
|
+
}
|
|
26
|
+
export interface ValidatedMatches {
|
|
27
|
+
allowed: FindMatch[];
|
|
28
|
+
refused: RefusedReplacement[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Splits matches into those whose replaced value passes the cell's data validation and those it
|
|
32
|
+
* refuses. `matches` must come from a query that looks in formulas (the text a replace edits). A
|
|
33
|
+
* formula result, a comment edit or a cell without a validation rule passes.
|
|
34
|
+
*/
|
|
35
|
+
export declare function validateReplacements(session: Pick<EditSession, 'validate' | 'workbook'>, query: FindQuery, replacement: string, matches: readonly FindMatch[]): ValidatedMatches;
|
|
36
|
+
/** `session.replaceAll` that skips the cells data validation refuses; reports them. */
|
|
37
|
+
export declare function replaceAllValidated(session: EditSession, query: FindQuery, replacement: string): {
|
|
38
|
+
replaced: number;
|
|
39
|
+
refused: RefusedReplacement[];
|
|
40
|
+
};
|
|
41
|
+
/** `session.replaceOne` unless data validation refuses the new value; reports the refusal. */
|
|
42
|
+
export declare function replaceOneValidated(session: EditSession, query: FindQuery, replacement: string, at: FindMatch): {
|
|
43
|
+
replaced: boolean;
|
|
44
|
+
refused: RefusedReplacement[];
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=replace-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replace-validation.d.ts","sourceRoot":"","sources":["../../../xlsx/ui/replace-validation.ts"],"names":[],"mappings":"AAEA,OAAO,EAIN,KAAK,SAAS,EACd,KAAK,SAAS,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+FAA+F;IAC/F,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;CACpD;AAED,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CACnC,OAAO,EAAE,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