ooxml-core 1.31.0 → 1.32.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 (123) hide show
  1. package/dist/{PptxHandler-KKLAYUGQ.mjs → PptxHandler-QY5VL3CY.mjs} +2 -2
  2. package/dist/PptxHandler-SJ5ZUIUX.mjs +4 -0
  3. package/dist/{PptxHandler-DHQPVTUI.cjs → PptxHandler-TESZUH66.cjs} +3 -3
  4. package/dist/{PresentationBuilder-YYZYCKTZ.mjs → PresentationBuilder-3CH5TR4W.mjs} +2 -2
  5. package/dist/{PresentationBuilder-JORMF5CP.cjs → PresentationBuilder-5NFBUP7Y.cjs} +5 -5
  6. package/dist/{PresentationBuilder-Q2Z33LLM.mjs → PresentationBuilder-S6HXHKEJ.mjs} +2 -2
  7. package/dist/automation/index.cjs +862 -389
  8. package/dist/automation/index.mjs +862 -389
  9. package/dist/{chunk-GJDFCP2T.mjs → chunk-3H5UAJB3.mjs} +258 -155
  10. package/dist/{chunk-MKDONWNO.mjs → chunk-4R65YYAD.mjs} +32 -14
  11. package/dist/{chunk-KWJYMAEF.mjs → chunk-IOTGRLJH.mjs} +255 -152
  12. package/dist/{chunk-6FXOAMNL.mjs → chunk-N6424WKA.mjs} +1 -1
  13. package/dist/{chunk-WZJ25K7P.mjs → chunk-NAWLWKOJ.mjs} +1 -1
  14. package/dist/{chunk-DJ3CDTMX.mjs → chunk-O7SVHLD7.mjs} +23 -5
  15. package/dist/{chunk-CZXM4ZJH.cjs → chunk-Q6NM64J2.cjs} +23 -4
  16. package/dist/{chunk-FFJBOR2Y.mjs → chunk-UYMSFJQZ.mjs} +76 -4
  17. package/dist/{chunk-B4LXDHBX.cjs → chunk-X6VNUBES.cjs} +1419 -1316
  18. package/dist/diagram/index.cjs +8 -4
  19. package/dist/diagram/index.mjs +8 -4
  20. package/dist/docx/embedded.cjs +8 -4
  21. package/dist/docx/embedded.mjs +8 -4
  22. package/dist/docx/index.cjs +8 -4
  23. package/dist/docx/index.mjs +8 -4
  24. package/dist/docx/layout/index.cjs +8 -4
  25. package/dist/docx/layout/index.mjs +8 -4
  26. package/dist/docx/load/index.cjs +8 -4
  27. package/dist/docx/load/index.mjs +8 -4
  28. package/dist/docx/ui/index.cjs +8 -4
  29. package/dist/docx/ui/index.mjs +8 -4
  30. package/dist/geometry/index.cjs +16 -12
  31. package/dist/geometry/index.mjs +16 -12
  32. package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -1
  33. package/dist/index.cjs +16 -12
  34. package/dist/index.mjs +16 -12
  35. package/dist/pptx/automation/index.cjs +294 -157
  36. package/dist/pptx/automation/index.d.ts +3 -3
  37. package/dist/pptx/automation/index.mjs +5 -5
  38. package/dist/pptx/chunks/{index-PdM5zpmu.d.ts → index-D-FdgqrP.d.ts} +102 -3
  39. package/dist/pptx/chunks/index-D-FdgqrP.d.ts.map +1 -0
  40. package/dist/pptx/chunks/{index-BQDcu_0a.d.ts → index-DKybuHPT.d.ts} +51 -3
  41. package/dist/pptx/chunks/{index-BQDcu_0a.d.ts.map → index-DKybuHPT.d.ts.map} +1 -1
  42. package/dist/pptx/chunks/{index-CBV1oHN7.d.ts → index-DnWlmYCy.d.ts} +2 -2
  43. package/dist/pptx/chunks/{index-CBV1oHN7.d.ts.map → index-DnWlmYCy.d.ts.map} +1 -1
  44. package/dist/pptx/cli/index.cjs +294 -157
  45. package/dist/pptx/cli/index.mjs +4 -4
  46. package/dist/pptx/converter/index.cjs +8 -4
  47. package/dist/pptx/converter/index.d.ts +1 -1
  48. package/dist/pptx/converter/index.mjs +2 -2
  49. package/dist/pptx/editor/render/find-replace.cjs +14 -14
  50. package/dist/pptx/editor/render/find-replace.d.ts +1 -1
  51. package/dist/pptx/editor/render/find-replace.mjs +1 -1
  52. package/dist/pptx/editor/render/slide-operations.cjs +8 -8
  53. package/dist/pptx/editor/render/slide-operations.mjs +2 -2
  54. package/dist/pptx/index.cjs +380 -171
  55. package/dist/pptx/index.d.ts +4 -4
  56. package/dist/pptx/index.mjs +5 -5
  57. package/dist/pptx/node/index.d.ts +1 -1
  58. package/dist/teams/chat-view.d.ts +10 -1
  59. package/dist/teams/chat-view.d.ts.map +1 -1
  60. package/dist/teams/index.cjs +805 -144
  61. package/dist/teams/index.d.ts +1 -0
  62. package/dist/teams/index.d.ts.map +1 -1
  63. package/dist/teams/index.mjs +795 -145
  64. package/dist/teams/presence-controller.d.ts +18 -3
  65. package/dist/teams/presence-controller.d.ts.map +1 -1
  66. package/dist/teams/presence-meetings.d.ts +21 -0
  67. package/dist/teams/presence-meetings.d.ts.map +1 -0
  68. package/dist/teams/presence.d.ts +40 -2
  69. package/dist/teams/presence.d.ts.map +1 -1
  70. package/dist/teams/store.d.ts +5 -0
  71. package/dist/teams/store.d.ts.map +1 -1
  72. package/dist/teams/view.d.ts +5 -0
  73. package/dist/teams/view.d.ts.map +1 -1
  74. package/dist/teams/workspace.d.ts +5 -2
  75. package/dist/teams/workspace.d.ts.map +1 -1
  76. package/dist/visio/index.cjs +6 -1
  77. package/dist/visio/index.mjs +6 -1
  78. package/dist/visio/ui/index.cjs +6 -1
  79. package/dist/visio/ui/index.mjs +6 -1
  80. package/dist/xlsx/formula/ets-drift-compare.d.ts +19 -0
  81. package/dist/xlsx/formula/ets-drift-compare.d.ts.map +1 -0
  82. package/dist/xlsx/formula/ets-excel-compare.d.ts +12 -0
  83. package/dist/xlsx/formula/ets-excel-compare.d.ts.map +1 -1
  84. package/dist/xlsx/formula/ets-init-compare.d.ts +24 -0
  85. package/dist/xlsx/formula/ets-init-compare.d.ts.map +1 -0
  86. package/dist/xlsx/formula/ets-init-maps.d.ts +21 -0
  87. package/dist/xlsx/formula/ets-init-maps.d.ts.map +1 -0
  88. package/dist/xlsx/formula/functions/ets-core.d.ts +1 -1
  89. package/dist/xlsx/formula/functions/ets-core.d.ts.map +1 -1
  90. package/dist/xlsx/formula/functions/ets-init-chain.d.ts +11 -0
  91. package/dist/xlsx/formula/functions/ets-init-chain.d.ts.map +1 -0
  92. package/dist/xlsx/formula/functions/ets-init-four.d.ts +3 -0
  93. package/dist/xlsx/formula/functions/ets-init-four.d.ts.map +1 -0
  94. package/dist/xlsx/formula/functions/ets-init-short.d.ts +17 -0
  95. package/dist/xlsx/formula/functions/ets-init-short.d.ts.map +1 -0
  96. package/dist/xlsx/formula/functions/ets-init-states.d.ts +5 -0
  97. package/dist/xlsx/formula/functions/ets-init-states.d.ts.map +1 -0
  98. package/dist/xlsx/formula/functions/ets-init-three.d.ts +23 -0
  99. package/dist/xlsx/formula/functions/ets-init-three.d.ts.map +1 -0
  100. package/dist/xlsx/formula/functions/ets-init-threeplus.d.ts +13 -0
  101. package/dist/xlsx/formula/functions/ets-init-threeplus.d.ts.map +1 -0
  102. package/dist/xlsx/formula/functions/ets-init.d.ts +18 -0
  103. package/dist/xlsx/formula/functions/ets-init.d.ts.map +1 -1
  104. package/dist/xlsx/formula/functions/ets-search-map.d.ts +24 -0
  105. package/dist/xlsx/formula/functions/ets-search-map.d.ts.map +1 -0
  106. package/dist/xlsx/formula/functions/ets-search.d.ts +17 -0
  107. package/dist/xlsx/formula/functions/ets-search.d.ts.map +1 -0
  108. package/dist/xlsx/formula/functions/ets-season.d.ts +2 -2
  109. package/dist/xlsx/formula/functions/ets-season.d.ts.map +1 -1
  110. package/dist/xlsx/formula/functions/ets-validate.d.ts +16 -0
  111. package/dist/xlsx/formula/functions/ets-validate.d.ts.map +1 -0
  112. package/dist/xlsx/index.cjs +755 -282
  113. package/dist/xlsx/index.mjs +755 -282
  114. package/dist/xlsx/layout/form-control-view.d.ts.map +1 -1
  115. package/dist/xlsx/layout/shape-view.d.ts.map +1 -1
  116. package/dist/xlsx/load/index.cjs +599 -126
  117. package/dist/xlsx/load/index.mjs +599 -126
  118. package/dist/xlsx/read/form-control.d.ts.map +1 -1
  119. package/dist/xlsx/ui/index.cjs +756 -283
  120. package/dist/xlsx/ui/index.mjs +756 -283
  121. package/package.json +1 -1
  122. package/dist/PptxHandler-E4DDV3FQ.mjs +0 -4
  123. package/dist/pptx/chunks/index-PdM5zpmu.d.ts.map +0 -1
@@ -9,6 +9,24 @@ type Runner = (y: readonly number[], m: number, init: EtsInit, p: Smoothing) =>
9
9
  };
10
10
  /** The least-squares slope of the series against 0, 1, 2, ... */
11
11
  export declare function olsSlope(y: readonly number[]): number;
12
+ /**
13
+ * The points Excel appends to a series of 4 to 6 values before fitting the line, as `[source,
14
+ * lag]` pairs for the times 4 (if the series has 4 values), 5 and 6: the point is `y[source] +
15
+ * lag * slope`, with the slope the least-squares slope of the original values. Recovered exactly
16
+ * from the starting trends Excel's forecasts imply (ets-init-excel.test.ts, 90 series; the exact
17
+ * weights are (-8, -3, 2, 9) / 28 for 4 values, (-26, -13, -5, 13, 31) / 140 for 5 and
18
+ * (-90, -124, -53, 18, 89, 160) / 980 for 6). The 6-value row is a copy of the first point six
19
+ * steps on; the others are the unique decomposition of that form, not a derived rule.
20
+ */
21
+ export declare const PADS: Record<number, readonly (readonly [number, number])[]>;
22
+ /**
23
+ * Starting trend of a series without a season: the least-squares slope, except that 4 to 6 values
24
+ * are first extended to 7 (`PADS`) and the line is fitted to all 7. Matches Excel to the last digit
25
+ * for 3 to 16 values.
26
+ */
27
+ export declare function shortSeriesTrend(y: readonly number[]): number;
28
+ /** Solves `a x = b` by Gaussian elimination with partial pivoting (destroys its inputs). */
29
+ export declare function solveSystem(a: number[][], b: number[]): number[];
12
30
  /** The initial states for these smoothing parameters. */
13
31
  export declare function initialStates(y: readonly number[], m: number, p: Smoothing, run: Runner): EtsInit;
14
32
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ets-init.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/ets-init.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,OAAO;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,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AM,CAK7D;AAiBD,4FAA4F;AAC5F,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CA2BhE;AAED,yDAAyD;AACzD,wBAAgB,aAAa,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CA6BjG"}
@@ -0,0 +1,24 @@
1
+ export interface Outcome {
2
+ /** The alpha FORECAST.ETS.STAT reports. */
3
+ alpha: number;
4
+ /** The beta it reports. */
5
+ beta: number;
6
+ /** The pair the error statistics are measured with. */
7
+ fit: readonly [number, number];
8
+ /** Excel forecasts from the last value plus the least-squares slope. */
9
+ drift: boolean;
10
+ }
11
+ /** Candidates in the order they are tried (a later one wins only by a strictly lower cost). */
12
+ export declare const CANDIDATES: readonly (readonly [number, number])[];
13
+ /** What tells a drifting series from a trending one (see `reportedFor`). */
14
+ export interface TrendShape {
15
+ /** |mean of the hold-out - mean of the training part| in standard deviations of the series. */
16
+ shift: number;
17
+ /** |t statistic| of the least-squares slope. */
18
+ t: number;
19
+ }
20
+ /** The shape of `y` for a hold-out of `h` trailing points (a third of the series when h is 0). */
21
+ export declare function trendShape(y: readonly number[], h: number): TrendShape;
22
+ /** What Excel reports when the lowest cost of the lattice is at (alpha, beta). */
23
+ export declare function reportedFor(alpha: number, beta: number, shape: TrendShape): Outcome;
24
+ //# sourceMappingURL=ets-search-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ets-search-map.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/ets-search-map.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,OAAO;IACvB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,GAAG,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAC;CACf;AAQD,+FAA+F;AAC/F,eAAO,MAAM,UAAU,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAoB5D,CAAC;AAgBF,4EAA4E;AAC5E,MAAM,WAAW,UAAU;IAC1B,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,CAAC,EAAE,MAAM,CAAC;CACV;AAED,kGAAkG;AAClG,wBAAgB,UAAU,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CA0BtE;AAED,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAQnF"}
@@ -0,0 +1,17 @@
1
+ import type { Smoothing } from './ets-core.js';
2
+ import { type TrendShape } from './ets-search-map.js';
3
+ export interface Chosen extends Smoothing {
4
+ /** Excel's forecast for this fit is the last value plus the least-squares slope (alpha 1, beta 0). */
5
+ drift: boolean;
6
+ /** The pair the error statistics are measured with when it is not the reported one. */
7
+ fit?: Smoothing;
8
+ }
9
+ export declare const LOW = 0.001;
10
+ type Cost = (p: Smoothing) => number;
11
+ /**
12
+ * Chooses alpha, beta and gamma. `cost` is the training-plus-hold-out squared error of a parameter
13
+ * set (`ets-validate.ts`); `m` is the season length (0 for none) and `n` the number of points.
14
+ */
15
+ export declare function chooseSmoothing(n: number, m: number, cost: Cost, shape?: TrendShape): Chosen;
16
+ export {};
17
+ //# sourceMappingURL=ets-search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ets-search.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/ets-search.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAA2B,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE5E,MAAM,WAAW,MAAO,SAAQ,SAAS;IACxC,sGAAsG;IACtG,KAAK,EAAE,OAAO,CAAC;IACf,uFAAuF;IACvF,GAAG,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,eAAO,MAAM,GAAG,QAAQ,CAAC;AAkBzB,KAAK,IAAI,GAAG,CAAC,CAAC,EAAE,SAAS,KAAK,MAAM,CAAC;AA2GrC;;;GAGG;AACH,wBAAgB,eAAe,CAC9B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,IAAI,EACV,KAAK,GAAE,UAAgC,GACrC,MAAM,CAKR"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The season length of a series, or 0 when it has no dominant repeating pattern (the value
3
- * FORECAST.ETS.SEASONALITY returns then). Non-integer periods (n / k) are rounded.
2
+ * The season length of a series, or 0 when it has no repeating pattern (the value
3
+ * FORECAST.ETS.SEASONALITY returns then).
4
4
  */
5
5
  export declare function detectSeasonality(series: readonly number[]): number;
6
6
  //# sourceMappingURL=ets-season.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ets-season.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/ets-season.ts"],"names":[],"mappings":"AA6BA;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAmCnE"}
1
+ {"version":3,"file":"ets-season.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/ets-season.ts"],"names":[],"mappings":"AA0CA;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAwBnE"}
@@ -0,0 +1,16 @@
1
+ import { type EtsInit } from './ets-init.js';
2
+ interface Params {
3
+ alpha: number;
4
+ beta: number;
5
+ gamma: number;
6
+ }
7
+ /**
8
+ * The series Excel's search measures the one-step error over: 4 to 6 values are extended to 7 with
9
+ * the same points the starting trend uses, and the search then picks Excel's parameters on all of
10
+ * the 40 recorded series of 4 to 7 values (on the values alone it picks 29).
11
+ */
12
+ export declare function etsSearchSeries(y: readonly number[]): readonly number[];
13
+ /** The training-plus-hold-out squared error of the additive filter for these parameters. */
14
+ export declare function etsValidationCost(y: readonly number[], m: number, init: EtsInit, p: Params, holdout: number): number;
15
+ export {};
16
+ //# sourceMappingURL=ets-validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ets-validate.d.ts","sourceRoot":"","sources":["../../../../xlsx/formula/functions/ets-validate.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,YAAY,CAAC;AAE1D,UAAU,MAAM;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,CAKvE;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAChC,CAAC,EAAE,SAAS,MAAM,EAAE,EACpB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,OAAO,EACb,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,MAAM,GACb,MAAM,CAoBR"}