@syncfusion/ej2-office-common 35.1.37

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 (147) hide show
  1. package/.eslintrc.json +263 -0
  2. package/.prettierrc.json +5 -0
  3. package/README.md +167 -0
  4. package/api-extractor.json +35 -0
  5. package/core.js +4 -0
  6. package/dist/ej2-office-common.umd.min.js +11 -0
  7. package/dist/ej2-office-common.umd.min.js.map +1 -0
  8. package/dist/es6/ej2-office-common.es2015.js +6585 -0
  9. package/dist/es6/ej2-office-common.es2015.js.map +1 -0
  10. package/dist/es6/ej2-office-common.es5.js +7955 -0
  11. package/dist/es6/ej2-office-common.es5.js.map +1 -0
  12. package/dist/global/ej2-office-common.min.js +11 -0
  13. package/dist/global/ej2-office-common.min.js.map +1 -0
  14. package/dist/global/index.d.ts +14 -0
  15. package/encryption.js +4 -0
  16. package/features.js +4 -0
  17. package/global.json +6 -0
  18. package/index.js +4 -0
  19. package/license +10 -0
  20. package/nuget.config +7 -0
  21. package/package.json +23 -0
  22. package/src/all.d.ts +41 -0
  23. package/src/all.js +38 -0
  24. package/src/core/index.d.ts +6 -0
  25. package/src/core/index.js +6 -0
  26. package/src/core/xml/index.d.ts +7 -0
  27. package/src/core/xml/index.js +6 -0
  28. package/src/core/xml/model.d.ts +71 -0
  29. package/src/core/xml/model.js +20 -0
  30. package/src/encryption/agile-constants.d.ts +61 -0
  31. package/src/encryption/agile-constants.js +71 -0
  32. package/src/encryption/agile-encryption-info.d.ts +46 -0
  33. package/src/encryption/agile-encryption-info.js +333 -0
  34. package/src/encryption/agile-password.d.ts +8 -0
  35. package/src/encryption/agile-password.js +58 -0
  36. package/src/encryption/cfb-reader.d.ts +11 -0
  37. package/src/encryption/cfb-reader.js +345 -0
  38. package/src/encryption/crypto-primitives.d.ts +74 -0
  39. package/src/encryption/crypto-primitives.js +302 -0
  40. package/src/encryption/decrypt-encrypted-package.d.ts +16 -0
  41. package/src/encryption/decrypt-encrypted-package.js +138 -0
  42. package/src/encryption/encryption-info-xml.d.ts +21 -0
  43. package/src/encryption/encryption-info-xml.js +282 -0
  44. package/src/encryption/errors.d.ts +66 -0
  45. package/src/encryption/errors.js +124 -0
  46. package/src/encryption/index.d.ts +35 -0
  47. package/src/encryption/index.js +100 -0
  48. package/src/features/diagrams/constants.d.ts +83 -0
  49. package/src/features/diagrams/constants.js +101 -0
  50. package/src/features/diagrams/diagram-data-model.d.ts +148 -0
  51. package/src/features/diagrams/diagram-data-model.js +446 -0
  52. package/src/features/diagrams/diagram-parsers.d.ts +28 -0
  53. package/src/features/diagrams/diagram-parsers.js +182 -0
  54. package/src/features/diagrams/diagram-serializers.d.ts +20 -0
  55. package/src/features/diagrams/diagram-serializers.js +110 -0
  56. package/src/features/diagrams/diagram-views.d.ts +60 -0
  57. package/src/features/diagrams/diagram-views.js +213 -0
  58. package/src/features/diagrams/element-tree.d.ts +55 -0
  59. package/src/features/diagrams/element-tree.js +197 -0
  60. package/src/features/diagrams/errors.d.ts +17 -0
  61. package/src/features/diagrams/errors.js +59 -0
  62. package/src/features/diagrams/index.d.ts +17 -0
  63. package/src/features/diagrams/index.js +17 -0
  64. package/src/features/diagrams/smart-art-catalog.d.ts +107 -0
  65. package/src/features/diagrams/smart-art-catalog.js +422 -0
  66. package/src/features/diagrams/smart-art-diagram.d.ts +96 -0
  67. package/src/features/diagrams/smart-art-diagram.js +258 -0
  68. package/src/features/index.d.ts +11 -0
  69. package/src/features/index.js +11 -0
  70. package/src/features/ink/constants.d.ts +54 -0
  71. package/src/features/ink/constants.js +54 -0
  72. package/src/features/ink/index.d.ts +18 -0
  73. package/src/features/ink/index.js +15 -0
  74. package/src/features/ink/ink-effects.d.ts +35 -0
  75. package/src/features/ink/ink-effects.js +45 -0
  76. package/src/features/ink/ink-model.d.ts +237 -0
  77. package/src/features/ink/ink-model.js +406 -0
  78. package/src/features/ink/ink-parser.d.ts +59 -0
  79. package/src/features/ink/ink-parser.js +671 -0
  80. package/src/features/ink/ink-serializer.d.ts +16 -0
  81. package/src/features/ink/ink-serializer.js +281 -0
  82. package/src/features/ink/ink-units.d.ts +33 -0
  83. package/src/features/ink/ink-units.js +92 -0
  84. package/src/features/ink/ink-xml.d.ts +26 -0
  85. package/src/features/ink/ink-xml.js +165 -0
  86. package/src/features/ink/trace-codec.d.ts +127 -0
  87. package/src/features/ink/trace-codec.js +266 -0
  88. package/src/features/mathml/constants.d.ts +47 -0
  89. package/src/features/mathml/constants.js +47 -0
  90. package/src/features/mathml/errors.d.ts +50 -0
  91. package/src/features/mathml/errors.js +69 -0
  92. package/src/features/mathml/index.d.ts +30 -0
  93. package/src/features/mathml/index.js +22 -0
  94. package/src/features/mathml/math-factory.d.ts +26 -0
  95. package/src/features/mathml/math-factory.js +568 -0
  96. package/src/features/mathml/model/controls.d.ts +896 -0
  97. package/src/features/mathml/model/controls.js +1541 -0
  98. package/src/features/mathml/model/enums.d.ts +153 -0
  99. package/src/features/mathml/model/enums.js +133 -0
  100. package/src/features/mathml/model/math-element.d.ts +173 -0
  101. package/src/features/mathml/model/math-element.js +315 -0
  102. package/src/features/mathml/model/roots.d.ts +82 -0
  103. package/src/features/mathml/model/roots.js +177 -0
  104. package/src/features/mathml/openxml.d.ts +56 -0
  105. package/src/features/mathml/openxml.js +87 -0
  106. package/src/features/mathml/parse/math-parser.d.ts +43 -0
  107. package/src/features/mathml/parse/math-parser.js +636 -0
  108. package/src/features/mathml/serialize/math-serializer.d.ts +34 -0
  109. package/src/features/mathml/serialize/math-serializer.js +749 -0
  110. package/src/features/smart-art/diagram-xml.d.ts +63 -0
  111. package/src/features/smart-art/diagram-xml.js +459 -0
  112. package/src/features/smart-art/errors.d.ts +24 -0
  113. package/src/features/smart-art/errors.js +47 -0
  114. package/src/features/smart-art/index.d.ts +26 -0
  115. package/src/features/smart-art/index.js +26 -0
  116. package/src/features/smart-art/minimal-samples.d.ts +18 -0
  117. package/src/features/smart-art/minimal-samples.js +40 -0
  118. package/src/features/smart-art/mutators.d.ts +60 -0
  119. package/src/features/smart-art/mutators.js +566 -0
  120. package/src/features/smart-art/namespaces.d.ts +153 -0
  121. package/src/features/smart-art/namespaces.js +163 -0
  122. package/src/features/smart-art/package-graph.d.ts +61 -0
  123. package/src/features/smart-art/package-graph.js +413 -0
  124. package/src/features/smart-art/parse-colors.d.ts +19 -0
  125. package/src/features/smart-art/parse-colors.js +39 -0
  126. package/src/features/smart-art/parse-data.d.ts +21 -0
  127. package/src/features/smart-art/parse-data.js +121 -0
  128. package/src/features/smart-art/parse-layout.d.ts +20 -0
  129. package/src/features/smart-art/parse-layout.js +40 -0
  130. package/src/features/smart-art/parse-rel-ids.d.ts +71 -0
  131. package/src/features/smart-art/parse-rel-ids.js +233 -0
  132. package/src/features/smart-art/parse-style.d.ts +19 -0
  133. package/src/features/smart-art/parse-style.js +39 -0
  134. package/src/features/smart-art/point-text.d.ts +80 -0
  135. package/src/features/smart-art/point-text.js +424 -0
  136. package/src/features/smart-art/register.d.ts +33 -0
  137. package/src/features/smart-art/register.js +95 -0
  138. package/src/features/smart-art/serialize.d.ts +40 -0
  139. package/src/features/smart-art/serialize.js +48 -0
  140. package/src/features/smart-art/types.d.ts +403 -0
  141. package/src/features/smart-art/types.js +28 -0
  142. package/src/global.js +1 -0
  143. package/src/index.d.ts +21 -0
  144. package/src/index.js +22 -0
  145. package/tsconfig.build.json +13 -0
  146. package/tsconfig.harness.json +32 -0
  147. package/tslint.json +111 -0
@@ -0,0 +1,153 @@
1
+ /**
2
+ * DrawingML diagram (SmartArt) package constants — Transitional Office Open XML.
3
+ *
4
+ * @remarks
5
+ * Values are taken from the local standards corpus only. Do not invent content
6
+ * types, relationship URIs, or namespaces.
7
+ *
8
+ * Citations:
9
+ * - Content types: ECMA-376 Part 1 §14.2.3–14.2.6
10
+ * - Root NS + relationship types: ECMA-376 Part 4 §12.2.3–12.2.6
11
+ * - GraphicData URI → `relIds`: [MS-OE376] diagram URI table; [MS-ODRAWXML] §3.7.1
12
+ *
13
+ * @see docs/ooxml-mapping/smart-art.md
14
+ *
15
+ * @packageDocumentation
16
+ */
17
+ /**
18
+ * Transitional DrawingML diagram namespace (typical prefix `dgm`).
19
+ *
20
+ * @remarks
21
+ * ECMA-376 Part 4 §12.2.3–12.2.6 list this URI as the root namespace for the
22
+ * Diagram Colors, Data, Layout Definition, and Style parts.
23
+ *
24
+ * @public
25
+ */
26
+ export declare const DIAGRAM_NAMESPACE = "http://schemas.openxmlformats.org/drawingml/2006/diagram";
27
+ /**
28
+ * DrawingML main namespace (typical prefix `a`) for `a:graphic` / `a:graphicData`.
29
+ *
30
+ * @remarks
31
+ * Used when identifying diagram hooks: `a:graphicData@uri` equals
32
+ * {@link DIAGRAM_GRAPHIC_DATA_URI} ([MS-OE376], [MS-ODRAWXML] §3.7.1).
33
+ *
34
+ * @public
35
+ */
36
+ export declare const DRAWINGML_MAIN_NAMESPACE = "http://schemas.openxmlformats.org/drawingml/2006/main";
37
+ /**
38
+ * Office document relationships namespace (typical prefix `r`).
39
+ *
40
+ * @remarks
41
+ * `CT_RelIds` attributes `r:dm` / `r:lo` / `r:qs` / `r:cs` are in this namespace
42
+ * (`shared-relationshipReference.xsd`).
43
+ *
44
+ * @public
45
+ */
46
+ export declare const OFFICE_DOCUMENT_RELATIONSHIPS_NAMESPACE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
47
+ /**
48
+ * `a:graphicData@uri` value that identifies a diagram (`dgm:relIds`) payload.
49
+ *
50
+ * @remarks
51
+ * Same URI as {@link DIAGRAM_NAMESPACE}. Cited in [MS-OE376] (URI → `relIds`)
52
+ * and [MS-ODRAWXML] §3.7.1 sample markup.
53
+ *
54
+ * @public
55
+ */
56
+ export declare const DIAGRAM_GRAPHIC_DATA_URI = "http://schemas.openxmlformats.org/drawingml/2006/diagram";
57
+ /**
58
+ * Content type for a Diagram Colors part (`colorsDef` root).
59
+ *
60
+ * @remarks
61
+ * ECMA-376 Part 1 §14.2.3.
62
+ *
63
+ * @public
64
+ */
65
+ export declare const DIAGRAM_COLORS_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml";
66
+ /**
67
+ * Content type for a Diagram Data part (`dataModel` root).
68
+ *
69
+ * @remarks
70
+ * ECMA-376 Part 1 §14.2.4.
71
+ *
72
+ * @public
73
+ */
74
+ export declare const DIAGRAM_DATA_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml";
75
+ /**
76
+ * Content type for a Diagram Layout Definition part (`layoutDef` root).
77
+ *
78
+ * @remarks
79
+ * ECMA-376 Part 1 §14.2.5. Layout parts are not shared across diagrams.
80
+ *
81
+ * @public
82
+ */
83
+ export declare const DIAGRAM_LAYOUT_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml";
84
+ /**
85
+ * Content type for a Diagram Style (quick style) part (`styleDef` root).
86
+ *
87
+ * @remarks
88
+ * ECMA-376 Part 1 §14.2.6.
89
+ *
90
+ * @public
91
+ */
92
+ export declare const DIAGRAM_STYLE_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml";
93
+ /**
94
+ * Relationship type targeting a Diagram Colors part.
95
+ *
96
+ * @remarks
97
+ * ECMA-376 Part 4 §12.2.3 (Transitional source URI).
98
+ *
99
+ * @public
100
+ */
101
+ export declare const DIAGRAM_COLORS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors";
102
+ /**
103
+ * Relationship type targeting a Diagram Data part.
104
+ *
105
+ * @remarks
106
+ * ECMA-376 Part 4 §12.2.4 (Transitional source URI).
107
+ *
108
+ * @public
109
+ */
110
+ export declare const DIAGRAM_DATA_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData";
111
+ /**
112
+ * Relationship type targeting a Diagram Layout Definition part.
113
+ *
114
+ * @remarks
115
+ * ECMA-376 Part 4 §12.2.5 (Transitional source URI).
116
+ *
117
+ * @public
118
+ */
119
+ export declare const DIAGRAM_LAYOUT_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout";
120
+ /**
121
+ * Relationship type targeting a Diagram Style (quick style) part.
122
+ *
123
+ * @remarks
124
+ * ECMA-376 Part 4 §12.2.6 (Transitional source URI `diagramQuickStyle`).
125
+ *
126
+ * @public
127
+ */
128
+ export declare const DIAGRAM_QUICK_STYLE_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle";
129
+ /**
130
+ * Relationship type targeting an Image part (office document package).
131
+ *
132
+ * @remarks
133
+ * ECMA-376 Part 4 Transitional source URI table (`relationships/image`).
134
+ * Diagram Data parts may reference images (Part 1 §14.2.4); remove uses this
135
+ * type when reference-counting exclusive vs shared image parts.
136
+ *
137
+ * @public
138
+ */
139
+ export declare const OFFICE_IMAGE_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";
140
+ /**
141
+ * All four diagram part content types (Transitional), in package-scan order.
142
+ *
143
+ * @public
144
+ */
145
+ export declare const DIAGRAM_CONTENT_TYPES: ReadonlyArray<string>;
146
+ /**
147
+ * All four diagram relationship type URIs (Transitional), matching
148
+ * `dgm:relIds` roles `cs` / `dm` / `lo` / `qs` respectively when ordered as
149
+ * colors, data, layout, quick style.
150
+ *
151
+ * @public
152
+ */
153
+ export declare const DIAGRAM_RELATIONSHIP_TYPES: ReadonlyArray<string>;
@@ -0,0 +1,163 @@
1
+ /**
2
+ * DrawingML diagram (SmartArt) package constants — Transitional Office Open XML.
3
+ *
4
+ * @remarks
5
+ * Values are taken from the local standards corpus only. Do not invent content
6
+ * types, relationship URIs, or namespaces.
7
+ *
8
+ * Citations:
9
+ * - Content types: ECMA-376 Part 1 §14.2.3–14.2.6
10
+ * - Root NS + relationship types: ECMA-376 Part 4 §12.2.3–12.2.6
11
+ * - GraphicData URI → `relIds`: [MS-OE376] diagram URI table; [MS-ODRAWXML] §3.7.1
12
+ *
13
+ * @see docs/ooxml-mapping/smart-art.md
14
+ *
15
+ * @packageDocumentation
16
+ */
17
+ /**
18
+ * Transitional DrawingML diagram namespace (typical prefix `dgm`).
19
+ *
20
+ * @remarks
21
+ * ECMA-376 Part 4 §12.2.3–12.2.6 list this URI as the root namespace for the
22
+ * Diagram Colors, Data, Layout Definition, and Style parts.
23
+ *
24
+ * @public
25
+ */
26
+ export var DIAGRAM_NAMESPACE = 'http://schemas.openxmlformats.org/drawingml/2006/diagram';
27
+ /**
28
+ * DrawingML main namespace (typical prefix `a`) for `a:graphic` / `a:graphicData`.
29
+ *
30
+ * @remarks
31
+ * Used when identifying diagram hooks: `a:graphicData@uri` equals
32
+ * {@link DIAGRAM_GRAPHIC_DATA_URI} ([MS-OE376], [MS-ODRAWXML] §3.7.1).
33
+ *
34
+ * @public
35
+ */
36
+ export var DRAWINGML_MAIN_NAMESPACE = 'http://schemas.openxmlformats.org/drawingml/2006/main';
37
+ /**
38
+ * Office document relationships namespace (typical prefix `r`).
39
+ *
40
+ * @remarks
41
+ * `CT_RelIds` attributes `r:dm` / `r:lo` / `r:qs` / `r:cs` are in this namespace
42
+ * (`shared-relationshipReference.xsd`).
43
+ *
44
+ * @public
45
+ */
46
+ export var OFFICE_DOCUMENT_RELATIONSHIPS_NAMESPACE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships';
47
+ /**
48
+ * `a:graphicData@uri` value that identifies a diagram (`dgm:relIds`) payload.
49
+ *
50
+ * @remarks
51
+ * Same URI as {@link DIAGRAM_NAMESPACE}. Cited in [MS-OE376] (URI → `relIds`)
52
+ * and [MS-ODRAWXML] §3.7.1 sample markup.
53
+ *
54
+ * @public
55
+ */
56
+ export var DIAGRAM_GRAPHIC_DATA_URI = DIAGRAM_NAMESPACE;
57
+ /**
58
+ * Content type for a Diagram Colors part (`colorsDef` root).
59
+ *
60
+ * @remarks
61
+ * ECMA-376 Part 1 §14.2.3.
62
+ *
63
+ * @public
64
+ */
65
+ export var DIAGRAM_COLORS_CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml';
66
+ /**
67
+ * Content type for a Diagram Data part (`dataModel` root).
68
+ *
69
+ * @remarks
70
+ * ECMA-376 Part 1 §14.2.4.
71
+ *
72
+ * @public
73
+ */
74
+ export var DIAGRAM_DATA_CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml';
75
+ /**
76
+ * Content type for a Diagram Layout Definition part (`layoutDef` root).
77
+ *
78
+ * @remarks
79
+ * ECMA-376 Part 1 §14.2.5. Layout parts are not shared across diagrams.
80
+ *
81
+ * @public
82
+ */
83
+ export var DIAGRAM_LAYOUT_CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml';
84
+ /**
85
+ * Content type for a Diagram Style (quick style) part (`styleDef` root).
86
+ *
87
+ * @remarks
88
+ * ECMA-376 Part 1 §14.2.6.
89
+ *
90
+ * @public
91
+ */
92
+ export var DIAGRAM_STYLE_CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml';
93
+ /**
94
+ * Relationship type targeting a Diagram Colors part.
95
+ *
96
+ * @remarks
97
+ * ECMA-376 Part 4 §12.2.3 (Transitional source URI).
98
+ *
99
+ * @public
100
+ */
101
+ export var DIAGRAM_COLORS_RELATIONSHIP_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors';
102
+ /**
103
+ * Relationship type targeting a Diagram Data part.
104
+ *
105
+ * @remarks
106
+ * ECMA-376 Part 4 §12.2.4 (Transitional source URI).
107
+ *
108
+ * @public
109
+ */
110
+ export var DIAGRAM_DATA_RELATIONSHIP_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData';
111
+ /**
112
+ * Relationship type targeting a Diagram Layout Definition part.
113
+ *
114
+ * @remarks
115
+ * ECMA-376 Part 4 §12.2.5 (Transitional source URI).
116
+ *
117
+ * @public
118
+ */
119
+ export var DIAGRAM_LAYOUT_RELATIONSHIP_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout';
120
+ /**
121
+ * Relationship type targeting a Diagram Style (quick style) part.
122
+ *
123
+ * @remarks
124
+ * ECMA-376 Part 4 §12.2.6 (Transitional source URI `diagramQuickStyle`).
125
+ *
126
+ * @public
127
+ */
128
+ export var DIAGRAM_QUICK_STYLE_RELATIONSHIP_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramQuickStyle';
129
+ /**
130
+ * Relationship type targeting an Image part (office document package).
131
+ *
132
+ * @remarks
133
+ * ECMA-376 Part 4 Transitional source URI table (`relationships/image`).
134
+ * Diagram Data parts may reference images (Part 1 §14.2.4); remove uses this
135
+ * type when reference-counting exclusive vs shared image parts.
136
+ *
137
+ * @public
138
+ */
139
+ export var OFFICE_IMAGE_RELATIONSHIP_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image';
140
+ /**
141
+ * All four diagram part content types (Transitional), in package-scan order.
142
+ *
143
+ * @public
144
+ */
145
+ export var DIAGRAM_CONTENT_TYPES = Object.freeze([
146
+ DIAGRAM_COLORS_CONTENT_TYPE,
147
+ DIAGRAM_DATA_CONTENT_TYPE,
148
+ DIAGRAM_LAYOUT_CONTENT_TYPE,
149
+ DIAGRAM_STYLE_CONTENT_TYPE,
150
+ ]);
151
+ /**
152
+ * All four diagram relationship type URIs (Transitional), matching
153
+ * `dgm:relIds` roles `cs` / `dm` / `lo` / `qs` respectively when ordered as
154
+ * colors, data, layout, quick style.
155
+ *
156
+ * @public
157
+ */
158
+ export var DIAGRAM_RELATIONSHIP_TYPES = Object.freeze([
159
+ DIAGRAM_COLORS_RELATIONSHIP_TYPE,
160
+ DIAGRAM_DATA_RELATIONSHIP_TYPE,
161
+ DIAGRAM_LAYOUT_RELATIONSHIP_TYPE,
162
+ DIAGRAM_QUICK_STYLE_RELATIONSHIP_TYPE,
163
+ ]);
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Host-neutral discovery of DrawingML diagram instances from a package graph.
3
+ *
4
+ * @remarks
5
+ * Locates the four diagram parts (content types / relationship types from
6
+ * ECMA-376 Part 1 §14.2.3–14.2.6 and Part 4 §12.2.3–12.2.6) and binds them via
7
+ * `dgm:relIds` (`CT_RelIds`) and/or outbound diagram relationships from a common
8
+ * source part. Layout parts are never shared across instances (§14.2.5).
9
+ *
10
+ * This module does not import PPT/Word/Excel product types. Callers supply a
11
+ * {@link DiagramPackageGraph} (parts + relationships).
12
+ *
13
+ * @public
14
+ */
15
+ import { DiagramInstance, DiagramPackageGraph, DiagramPackagePart, GetDiagramInstanceOptions } from './types';
16
+ /** Normalize package part names for map keys (leading `/`, no trailing `/`). */
17
+ export declare function normalizePartName(name: string): string;
18
+ /**
19
+ * Lists diagram instances discoverable from the package graph.
20
+ *
21
+ * @remarks
22
+ * Discovery order:
23
+ * 1. Complete `dgm:relIds` hooks in part XML (incomplete hooks skipped —
24
+ * preserve-on-load).
25
+ * 2. Source parts with exactly one outbound relationship of each diagram type
26
+ * (when not already covered by a relIds binding).
27
+ *
28
+ * Layout part names used by more than one instance violate Part 1 §14.2.5;
29
+ * each binding is still returned so callers can detect the clash.
30
+ *
31
+ * Partial graphs (missing target part, wrong content type, incomplete relIds)
32
+ * do not throw; they simply omit that candidate. Explicit {@link parseDiagramRelIds}
33
+ * and mutate APIs throw instead.
34
+ *
35
+ * @param graph - Host-neutral parts + relationships.
36
+ * @returns Instances in stable order (first by source part name, then data part name).
37
+ *
38
+ * @public
39
+ */
40
+ export declare function enumerateDiagramInstances(graph: DiagramPackageGraph): ReadonlyArray<DiagramInstance>;
41
+ /**
42
+ * Resolves a single diagram instance from the package graph.
43
+ *
44
+ * @param graph - Host-neutral parts + relationships.
45
+ * @param options - Match by {@link GetDiagramInstanceOptions.id} and/or
46
+ * `dataPartName` (normalized). At least one matcher is required.
47
+ * @returns The instance, or `undefined` when not found.
48
+ * @throws {DiagramPartError} When no matcher is provided.
49
+ *
50
+ * @public
51
+ */
52
+ export declare function getDiagramInstance(graph: DiagramPackageGraph, options: GetDiagramInstanceOptions): DiagramInstance | undefined;
53
+ /**
54
+ * Lists package parts whose content type is one of the four diagram types.
55
+ *
56
+ * @param graph - Host-neutral package graph.
57
+ * @returns Matching parts in input order (names normalized on the returned copies).
58
+ *
59
+ * @public
60
+ */
61
+ export declare function listDiagramParts(graph: DiagramPackageGraph): ReadonlyArray<DiagramPackagePart>;