@office-open/core 0.8.0 → 0.9.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 (33) hide show
  1. package/README.md +32 -60
  2. package/dist/chart/index.d.mts +2 -2
  3. package/dist/chart/index.mjs +2 -2
  4. package/dist/chart-DNpai28f.mjs +365 -0
  5. package/dist/descriptor/index.d.mts +2 -0
  6. package/dist/descriptor/index.mjs +2 -0
  7. package/dist/descriptor-DKmR7pw-.mjs +282 -0
  8. package/dist/drawingml/index.d.mts +2 -2
  9. package/dist/drawingml/index.mjs +2 -2
  10. package/dist/index-BI-1SKm5.d.mts +153 -0
  11. package/dist/{index-Cj2Yf5mk.d.mts → index-DByjp6ug.d.mts} +10 -7
  12. package/dist/index-DNH2sizc.d.mts +137 -0
  13. package/dist/{index-C-DvIxek.d.mts → index-RWXzxibP.d.mts} +1420 -1866
  14. package/dist/{index-D0N5Bw2M.d.mts → index-eu1aFQCm.d.mts} +39 -28
  15. package/dist/index.d.mts +7 -538
  16. package/dist/index.mjs +7 -2077
  17. package/dist/smartart/index.d.mts +2 -2
  18. package/dist/smartart/index.mjs +2 -2
  19. package/dist/{smartart-BAhTD2yA.mjs → smartart-DCY-Vdv7.mjs} +120 -204
  20. package/dist/src-CU2AFKyt.mjs +7413 -0
  21. package/dist/theme/index.d.mts +2 -2
  22. package/dist/theme/index.mjs +2 -2
  23. package/dist/{theme-DmJXjgQs.mjs → theme-CiNzdl-9.mjs} +117 -22
  24. package/dist/{values.d.mts → util/values.d.mts} +1 -1
  25. package/dist/{values.mjs → util/values.mjs} +1 -1
  26. package/dist/{values-zMCu5EoQ.mjs → values-CVIZcTRw.mjs} +2 -2
  27. package/dist/{values-COjPGYkS.d.mts → values-Dqj8cbcy.d.mts} +1 -1
  28. package/package.json +12 -7
  29. package/dist/chart-BtEtdK2K.mjs +0 -1266
  30. package/dist/drawingml-anlfMLLZ.mjs +0 -7132
  31. package/dist/index-Bh6s66Up.d.mts +0 -381
  32. package/dist/index-CoTp4wVf.d.mts +0 -202
  33. package/dist/xml-components-DEU24Y1T.mjs +0 -322
@@ -1,5 +1,3 @@
1
- import { b as XmlComponent } from "./index-CoTp4wVf.mjs";
2
-
3
1
  //#region src/smartart/categories.d.ts
4
2
  /** Layout ID → OOXML category type */
5
3
  declare const LAYOUT_CATEGORIES: Record<string, string>;
@@ -30,19 +28,30 @@ declare const DEFAULT_DRAWING_XML: string;
30
28
  //#endregion
31
29
  //#region src/smartart/data-model/connection.d.ts
32
30
  /**
33
- * dgm:cxn — SmartArt data model connection (edge).
31
+ * dgm:cxn — SmartArt data model connection (edge) XML stringifier.
34
32
  */
35
- declare class Connection extends XmlComponent {
36
- constructor(modelId: string, srcId: string, destId: string, type?: string, srcOrd?: number, destOrd?: number, parTransId?: string, sibTransId?: string, presId?: string);
37
- }
33
+ declare function stringifyConnection(opts: {
34
+ modelId: string | number;
35
+ srcId: string | number;
36
+ destId: string | number;
37
+ type?: string;
38
+ srcOrd?: number;
39
+ destOrd?: number;
40
+ parTransId?: string;
41
+ sibTransId?: string;
42
+ presId?: string;
43
+ }): string;
38
44
  //#endregion
39
45
  //#region src/smartart/data-model/data-model.d.ts
40
46
  /**
41
- * CT_DataModel — the complete data model for a SmartArt diagram.
47
+ * CT_DataModel XML stringifier assembles complete SmartArt data model XML.
48
+ *
49
+ * @module
42
50
  */
43
- declare class DataModel extends XmlComponent {
44
- constructor(points: readonly XmlComponent[], connections: readonly Connection[]);
45
- }
51
+ /**
52
+ * Build the complete dgm:dataModel XML from pre-serialized point and connection strings.
53
+ */
54
+ declare function stringifyDataModel(points: readonly string[], connections: readonly string[]): string;
46
55
  //#endregion
47
56
  //#region src/smartart/data-model/point.d.ts
48
57
  interface PointPropertySetOptions {
@@ -82,34 +91,35 @@ interface PointPropertySetOptions {
82
91
  readonly colorStyleCategoryId?: string;
83
92
  }
84
93
  /**
85
- * dgm:pt — SmartArt data model point (node).
94
+ * dgm:pt — SmartArt data model point (node) XML stringifier.
86
95
  */
87
- declare class Point extends XmlComponent {
88
- constructor(modelId: string, text: string, type?: string, propertySet?: PointPropertySetOptions);
89
- }
96
+ declare function stringifyPoint(modelId: string | number, text: string, type?: string, propertySet?: PointPropertySetOptions): string;
90
97
  /**
91
- * Transition point (parTrans or sibTrans) no text body, references a connection.
98
+ * dgm:pt — transition point (parTrans or sibTrans) XML stringifier.
92
99
  */
93
- declare class TransPoint extends XmlComponent {
94
- constructor(modelId: string, type: string, cxnId: string);
95
- }
100
+ declare function stringifyTransPoint(modelId: string, type: string, cxnId: string): string;
96
101
  //#endregion
97
102
  //#region src/smartart/smartart-collection.d.ts
103
+ /**
104
+ * SmartArt data and collection for document generation.
105
+ *
106
+ * @module
107
+ */
98
108
  interface SmartArtData {
99
- readonly key: string;
100
- readonly dataModel: DataModel;
101
- readonly layout: string;
102
- readonly style: string;
103
- readonly color: string;
109
+ key: string;
110
+ dataModelXml: string;
111
+ layout: string;
112
+ style: string;
113
+ color: string;
104
114
  }
105
115
  /**
106
116
  * Manages SmartArt parts in a document.
107
117
  */
108
118
  declare class SmartArtCollection {
109
- private readonly map;
119
+ private map;
110
120
  constructor();
111
121
  addSmartArt(key: string, data: SmartArtData): void;
112
- get array(): readonly SmartArtData[];
122
+ get array(): SmartArtData[];
113
123
  }
114
124
  //#endregion
115
125
  //#region src/smartart/tree-to-model.d.ts
@@ -118,8 +128,9 @@ interface TreeNode {
118
128
  readonly children?: readonly TreeNode[];
119
129
  }
120
130
  /**
121
- * Creates a DataModel from tree nodes with layout/style/color settings.
131
+ * Creates SmartArt data model XML from tree nodes with layout/style/color settings.
132
+ * Returns the XML string body (no XML declaration).
122
133
  */
123
- declare const createDataModel: (nodes: readonly TreeNode[], layout?: string, style?: string, color?: string) => DataModel;
134
+ declare const createDataModel: (nodes: readonly TreeNode[], layout?: string, style?: string, color?: string) => string;
124
135
  //#endregion
125
- export { Point as a, DataModel as c, getColorXml as d, getLayoutXml as f, STYLE_CATEGORIES as g, LAYOUT_CATEGORIES as h, SmartArtData as i, Connection as l, COLOR_CATEGORIES as m, createDataModel as n, PointPropertySetOptions as o, getStyleXml as p, SmartArtCollection as r, TransPoint as s, TreeNode as t, DEFAULT_DRAWING_XML as u };
136
+ export { PointPropertySetOptions as a, stringifyDataModel as c, getColorXml as d, getLayoutXml as f, STYLE_CATEGORIES as g, LAYOUT_CATEGORIES as h, SmartArtData as i, stringifyConnection as l, COLOR_CATEGORIES as m, createDataModel as n, stringifyPoint as o, getStyleXml as p, SmartArtCollection as r, stringifyTransPoint as s, TreeNode as t, DEFAULT_DRAWING_XML as u };