ooxml-core 0.15.0 → 0.17.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.
Files changed (65) hide show
  1. package/dist/automation/index.cjs +3615 -2018
  2. package/dist/automation/index.mjs +3615 -2018
  3. package/dist/docx/block-parser.d.ts.map +1 -1
  4. package/dist/docx/embedded.cjs +11 -0
  5. package/dist/docx/embedded.mjs +11 -0
  6. package/dist/docx/index.cjs +59 -4
  7. package/dist/docx/index.mjs +59 -4
  8. package/dist/docx/layout/index.cjs +1 -0
  9. package/dist/docx/layout/index.mjs +1 -0
  10. package/dist/docx/load/index.cjs +11 -0
  11. package/dist/docx/load/index.mjs +11 -0
  12. package/dist/docx/model-paragraph.d.ts +6 -1
  13. package/dist/docx/model-paragraph.d.ts.map +1 -1
  14. package/dist/docx/paragraph-styles.d.ts +2 -0
  15. package/dist/docx/paragraph-styles.d.ts.map +1 -1
  16. package/dist/docx/table-of-contents.d.ts.map +1 -1
  17. package/dist/docx/toc-switches.d.ts +16 -0
  18. package/dist/docx/toc-switches.d.ts.map +1 -0
  19. package/dist/xlsx/formula/engine-core.d.ts +9 -0
  20. package/dist/xlsx/formula/engine-core.d.ts.map +1 -1
  21. package/dist/xlsx/formula/engine-host.d.ts +2 -0
  22. package/dist/xlsx/formula/engine-host.d.ts.map +1 -1
  23. package/dist/xlsx/formula/functions/bonds.d.ts +3 -0
  24. package/dist/xlsx/formula/functions/bonds.d.ts.map +1 -0
  25. package/dist/xlsx/formula/functions/complex.d.ts +14 -0
  26. package/dist/xlsx/formula/functions/complex.d.ts.map +1 -0
  27. package/dist/xlsx/formula/functions/convert.d.ts +4 -0
  28. package/dist/xlsx/formula/functions/convert.d.ts.map +1 -0
  29. package/dist/xlsx/formula/functions/coupons.d.ts +21 -0
  30. package/dist/xlsx/formula/functions/coupons.d.ts.map +1 -0
  31. package/dist/xlsx/formula/functions/database.d.ts +4 -0
  32. package/dist/xlsx/formula/functions/database.d.ts.map +1 -0
  33. package/dist/xlsx/formula/functions/depreciation.d.ts +0 -1
  34. package/dist/xlsx/formula/functions/depreciation.d.ts.map +1 -1
  35. package/dist/xlsx/formula/functions/distributions-f.d.ts +6 -0
  36. package/dist/xlsx/formula/functions/distributions-f.d.ts.map +1 -0
  37. package/dist/xlsx/formula/functions/distributions.d.ts.map +1 -1
  38. package/dist/xlsx/formula/functions/engineering.d.ts.map +1 -1
  39. package/dist/xlsx/formula/functions/financial.d.ts.map +1 -1
  40. package/dist/xlsx/formula/functions/hypothesis-tests.d.ts +4 -0
  41. package/dist/xlsx/formula/functions/hypothesis-tests.d.ts.map +1 -0
  42. package/dist/xlsx/formula/functions/matrix.d.ts +5 -0
  43. package/dist/xlsx/formula/functions/matrix.d.ts.map +1 -1
  44. package/dist/xlsx/formula/functions/registry.d.ts.map +1 -1
  45. package/dist/xlsx/formula/functions/regression-core.d.ts +34 -0
  46. package/dist/xlsx/formula/functions/regression-core.d.ts.map +1 -0
  47. package/dist/xlsx/formula/functions/regression.d.ts +4 -0
  48. package/dist/xlsx/formula/functions/regression.d.ts.map +1 -0
  49. package/dist/xlsx/formula/functions/securities.d.ts +3 -0
  50. package/dist/xlsx/formula/functions/securities.d.ts.map +1 -0
  51. package/dist/xlsx/formula/functions/statistical.d.ts.map +1 -1
  52. package/dist/xlsx/formula/functions/text-extra.d.ts.map +1 -1
  53. package/dist/xlsx/formula/functions/text-regex.d.ts +5 -0
  54. package/dist/xlsx/formula/functions/text-regex.d.ts.map +1 -0
  55. package/dist/xlsx/index.cjs +3519 -1933
  56. package/dist/xlsx/index.mjs +3519 -1933
  57. package/dist/xlsx/load/index.cjs +2937 -1384
  58. package/dist/xlsx/load/index.mjs +2937 -1384
  59. package/dist/xlsx/model.d.ts +9 -0
  60. package/dist/xlsx/model.d.ts.map +1 -1
  61. package/dist/xlsx/read/load.d.ts.map +1 -1
  62. package/dist/xlsx/read/workbook-part.d.ts +5 -0
  63. package/dist/xlsx/read/workbook-part.d.ts.map +1 -1
  64. package/dist/xlsx/write/workbook-part.d.ts.map +1 -1
  65. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"engineering.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/engineering.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAqF/C,eAAO,MAAM,qBAAqB,EAAE,YAAY,EAoH/C,CAAC"}
1
+ {"version":3,"file":"engineering.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/engineering.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAqF/C,eAAO,MAAM,qBAAqB,EAAE,YAAY,EAsH/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"financial.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/financial.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAyB/C,eAAO,MAAM,mBAAmB,EAAE,YAAY,EA0J7C,CAAC"}
1
+ {"version":3,"file":"financial.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/financial.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA4B/C,eAAO,MAAM,mBAAmB,EAAE,YAAY,EA6J7C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { FunctionSpec } from './types.js';
2
+ /** Significance tests on samples (Z.TEST, T.TEST, F.TEST, CHISQ.TEST) and PROB. */
3
+ export declare const HYPOTHESIS_TESTS: FunctionSpec[];
4
+ //# sourceMappingURL=hypothesis-tests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hypothesis-tests.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/hypothesis-tests.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA+F/C,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,EAAE,YAAY,EAyE1C,CAAC"}
@@ -1,3 +1,8 @@
1
1
  import type { FunctionSpec } from './types.js';
2
+ /** Gaussian elimination with partial pivoting; returns the determinant and, optionally, the inverse. */
3
+ export declare function eliminate(input: number[][], invert: boolean): {
4
+ det: number;
5
+ inverse?: number[][];
6
+ };
2
7
  export declare const MATRIX_FUNCTIONS: FunctionSpec[];
3
8
  //# sourceMappingURL=matrix.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/matrix.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA+D/C,eAAO,MAAM,gBAAgB,EAAE,YAAY,EAmD1C,CAAC"}
1
+ {"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/matrix.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAqB/C,wGAAwG;AACxG,wBAAgB,SAAS,CACxB,KAAK,EAAE,MAAM,EAAE,EAAE,EACjB,MAAM,EAAE,OAAO,GACb;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,CAAA;CAAE,CAuCvC;AAED,eAAO,MAAM,gBAAgB,EAAE,YAAY,EAmD1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/registry.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAqB7D,uFAAuF;AACvF,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,YAAY,GAAG,SAA+B,CAAC;AAE1F,mFAAmF;AACnF,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,OAAgD,CAAC;AAEnG,kDAAkD;AAClD,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EAInD,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/registry.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAsB7D,uFAAuF;AACvF,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,YAAY,GAAG,SAA+B,CAAC;AAE1F,mFAAmF;AACnF,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,OAAgD,CAAC;AAEnG,kDAAkD;AAClD,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EAInD,CAAC"}
@@ -0,0 +1,34 @@
1
+ /** The least-squares fit of `y` on the columns of `x` (observations are rows). */
2
+ export interface Fit {
3
+ /** One slope per x column, in column order. */
4
+ slopes: number[];
5
+ /** The intercept (0 when the fit was forced through the origin). */
6
+ intercept: number;
7
+ /** `(X'X)^-1` of the centred columns (or of the raw columns without an intercept). */
8
+ inverse: number[][];
9
+ /** Column means, used for the intercept's standard error. */
10
+ means: number[];
11
+ n: number;
12
+ hasIntercept: boolean;
13
+ ssTotal: number;
14
+ ssResid: number;
15
+ }
16
+ /**
17
+ * Ordinary least squares by the normal equations on mean-centred data (which keeps polynomial
18
+ * and offset data well conditioned). Collinear columns are `#NUM!`; Excel instead zeroes the
19
+ * redundant coefficient, which this does not reproduce.
20
+ */
21
+ export declare function fitLeastSquares(x: number[][], y: number[], hasIntercept: boolean): Fit;
22
+ /** The regression statistics LINEST reports, from a fit. */
23
+ export interface FitStats {
24
+ slopeErrors: number[];
25
+ interceptError: number | undefined;
26
+ rSquared: number;
27
+ standardError: number;
28
+ fStatistic: number;
29
+ df: number;
30
+ ssRegression: number;
31
+ ssResidual: number;
32
+ }
33
+ export declare function fitStatistics(fit: Fit): FitStats;
34
+ //# sourceMappingURL=regression-core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regression-core.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/regression-core.ts"],"names":[],"mappings":"AAGA,kFAAkF;AAClF,MAAM,WAAW,GAAG;IACnB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,6DAA6D;IAC7D,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CAChB;AAID;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,OAAO,GAAG,GAAG,CA4BtF;AAED,4DAA4D;AAC5D,MAAM,WAAW,QAAQ;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,QAAQ,CA0BhD"}
@@ -0,0 +1,4 @@
1
+ import type { FunctionSpec } from './types.js';
2
+ /** Multiple linear and exponential regression. */
3
+ export declare const REGRESSION_FUNCTIONS: FunctionSpec[];
4
+ //# sourceMappingURL=regression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regression.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/regression.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAmG/C,kDAAkD;AAClD,eAAO,MAAM,oBAAoB,EAAE,YAAY,EA8D9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { FunctionSpec } from './types.js';
2
+ export declare const SECURITY_FUNCTIONS: FunctionSpec[];
3
+ //# sourceMappingURL=securities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"securities.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/securities.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAuE/C,eAAO,MAAM,kBAAkB,EAAE,YAAY,EA2F5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"statistical.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/statistical.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAW/C,eAAO,MAAM,qBAAqB,EAAE,YAAY,EAoL/C,CAAC"}
1
+ {"version":3,"file":"statistical.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/statistical.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAW/C,eAAO,MAAM,qBAAqB,EAAE,YAAY,EAsL/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"text-extra.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/text-extra.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAsF/C,eAAO,MAAM,oBAAoB,EAAE,YAAY,EAmE9C,CAAC"}
1
+ {"version":3,"file":"text-extra.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/text-extra.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAsF/C,eAAO,MAAM,oBAAoB,EAAE,YAAY,EAoE9C,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { FunctionSpec } from './types.js';
2
+ /** RFC 3986 unreserved characters stay; everything else is percent-encoded as UTF-8. */
3
+ export declare function encodeUrl(text: string): string;
4
+ export declare const TEXT_REGEX_FUNCTIONS: FunctionSpec[];
5
+ //# sourceMappingURL=text-regex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-regex.d.ts","sourceRoot":"","sources":["../../../../src/xlsx/formula/functions/text-regex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAmB/C,wFAAwF;AACxF,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK9C;AAED,eAAO,MAAM,oBAAoB,EAAE,YAAY,EAmD9C,CAAC"}