pptx-angular-viewer 1.1.42 → 1.1.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-angular-viewer",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "description": "Angular PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "angular",
@@ -44,7 +44,7 @@
44
44
  "html2canvas-pro": "^2.0.4",
45
45
  "jspdf": "^4.2.1",
46
46
  "jszip": "^3.10.1",
47
- "pptx-viewer-core": "^1.1.33",
47
+ "pptx-viewer-core": "^1.1.34",
48
48
  "tslib": "^2.8.1"
49
49
  },
50
50
  "peerDependencies": {
@@ -4128,6 +4128,35 @@ declare class InkRendererComponent {
4128
4128
  * so that every branch is guaranteed to have a colour and label.
4129
4129
  */
4130
4130
  type ResolvedOleType = 'excel' | 'word' | 'pdf' | 'visio' | 'mathtype' | 'unknown';
4131
+ /** A single descriptive info row for the OLE caption / overlay. */
4132
+ interface OleInfoRow {
4133
+ /** Stable key for `@for` tracking (e.g. `'type'`, `'file'`). */
4134
+ key: string;
4135
+ /** Display label (e.g. `'Application'`). */
4136
+ label: string;
4137
+ /** Display value (e.g. `'Excel.Sheet.12'`). */
4138
+ value: string;
4139
+ }
4140
+ /**
4141
+ * Presentational action model for an OLE element's embedded payload, derived
4142
+ * purely from the core-recovered fields. The binding wires the actual
4143
+ * `<a download>` / new-tab open; this only decides what is offered and with
4144
+ * what attributes.
4145
+ */
4146
+ interface OleActionModel {
4147
+ /** True when an embedded payload data-URL is available to download. */
4148
+ canDownload: boolean;
4149
+ /** True when the payload can additionally be opened in a browser tab. */
4150
+ canOpen: boolean;
4151
+ /** Data-URL for the download anchor `href`, when available. */
4152
+ downloadHref: string | undefined;
4153
+ /** Suggested file name for the download anchor `download` attribute. */
4154
+ downloadFileName: string;
4155
+ /** Human-readable size, when known (e.g. `"2.3 MB"`). */
4156
+ sizeLabel: string | undefined;
4157
+ /** Descriptive info rows (type / file / size / application). */
4158
+ info: OleInfoRow[];
4159
+ }
4131
4160
 
4132
4161
  /**
4133
4162
  * OleRendererComponent: Angular port of the React `renderOleElement`
@@ -4170,6 +4199,18 @@ declare class OleRendererComponent {
4170
4199
  readonly ariaLabel: _angular_core.Signal<string>;
4171
4200
  /** Border + background style for the placeholder box. */
4172
4201
  readonly placeholderStyle: _angular_core.Signal<StyleMap>;
4202
+ /**
4203
+ * Download / Open action model derived from the recovered embedded payload.
4204
+ * When the input is not an OLE element, every action is disabled.
4205
+ */
4206
+ readonly actions: _angular_core.Signal<OleActionModel>;
4207
+ /**
4208
+ * Descriptive tooltip for the wrapper: the info rows joined as
4209
+ * "Label: value" pairs (e.g. "Type: Excel Spreadsheet, File: budget.xlsx,
4210
+ * Size: 2.3 KB, Application: Excel.Sheet.12"). Falls back to the aria label
4211
+ * when no rows are available.
4212
+ */
4213
+ readonly infoTitle: _angular_core.Signal<string>;
4173
4214
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<OleRendererComponent, never>;
4174
4215
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<OleRendererComponent, "pptx-ole-renderer", never, { "element": { "alias": "element"; "required": true; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4175
4216
  }