@memberjunction/ng-artifacts 6.1.4 → 6.2.0-edge.1
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/dist/lib/components/artifact-message-card.component.d.ts +60 -8
- package/dist/lib/components/artifact-message-card.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-message-card.component.js +135 -39
- package/dist/lib/components/artifact-message-card.component.js.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts +58 -6
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.js +113 -35
- package/dist/lib/components/artifact-type-plugin-viewer.component.js.map +1 -1
- package/dist/lib/components/artifact-version-download.d.ts +5 -3
- package/dist/lib/components/artifact-version-download.d.ts.map +1 -1
- package/dist/lib/components/artifact-version-download.js +11 -7
- package/dist/lib/components/artifact-version-download.js.map +1 -1
- package/dist/lib/components/artifact-version-history.component.d.ts +74 -8
- package/dist/lib/components/artifact-version-history.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-version-history.component.js +152 -34
- package/dist/lib/components/artifact-version-history.component.js.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.d.ts +328 -35
- package/dist/lib/components/artifact-viewer-panel.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.js +701 -213
- package/dist/lib/components/artifact-viewer-panel.component.js.map +1 -1
- package/dist/lib/components/file-artifact-toolbar.component.d.ts +112 -10
- package/dist/lib/components/file-artifact-toolbar.component.d.ts.map +1 -1
- package/dist/lib/components/file-artifact-toolbar.component.js +197 -23
- package/dist/lib/components/file-artifact-toolbar.component.js.map +1 -1
- package/dist/lib/components/plugins/audio-artifact-viewer.component.d.ts +9 -1
- package/dist/lib/components/plugins/audio-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/audio-artifact-viewer.component.js +20 -4
- package/dist/lib/components/plugins/audio-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/code-artifact-viewer.component.d.ts +23 -5
- package/dist/lib/components/plugins/code-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/code-artifact-viewer.component.js +69 -31
- package/dist/lib/components/plugins/code-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts +136 -18
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.js +285 -97
- package/dist/lib/components/plugins/component-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/component-feedback-panel/component-feedback-panel.component.d.ts +2 -2
- package/dist/lib/components/plugins/component-feedback-panel/component-feedback-panel.component.js +7 -7
- package/dist/lib/components/plugins/component-feedback-panel/component-feedback-panel.component.js.map +1 -1
- package/dist/lib/components/plugins/component-permission-evaluation.d.ts +2 -0
- package/dist/lib/components/plugins/component-permission-evaluation.d.ts.map +1 -1
- package/dist/lib/components/plugins/component-permission-evaluation.js +6 -2
- package/dist/lib/components/plugins/component-permission-evaluation.js.map +1 -1
- package/dist/lib/components/plugins/data-artifact-viewer.component.d.ts +17 -6
- package/dist/lib/components/plugins/data-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/data-artifact-viewer.component.js +32 -22
- package/dist/lib/components/plugins/data-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.d.ts +56 -4
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.js +142 -36
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/docx-artifact-viewer.component.d.ts +14 -2
- package/dist/lib/components/plugins/docx-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/docx-artifact-viewer.component.js +32 -8
- package/dist/lib/components/plugins/docx-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/html-artifact-viewer.component.d.ts +17 -3
- package/dist/lib/components/plugins/html-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/html-artifact-viewer.component.js +36 -8
- package/dist/lib/components/plugins/html-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/image-artifact-viewer.component.d.ts +41 -5
- package/dist/lib/components/plugins/image-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/image-artifact-viewer.component.js +102 -30
- package/dist/lib/components/plugins/image-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/json-artifact-viewer.component.d.ts +33 -5
- package/dist/lib/components/plugins/json-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/json-artifact-viewer.component.js +89 -33
- package/dist/lib/components/plugins/json-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.d.ts +12 -2
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.js +28 -8
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/ml-experiment-results-viewer.component.d.ts +4 -0
- package/dist/lib/components/plugins/ml-experiment-results-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/ml-experiment-results-viewer.component.js +14 -6
- package/dist/lib/components/plugins/ml-experiment-results-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/pdf-artifact-viewer.component.d.ts +47 -5
- package/dist/lib/components/plugins/pdf-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/pdf-artifact-viewer.component.js +129 -45
- package/dist/lib/components/plugins/pdf-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/save-query-dialog.component.d.ts +5 -1
- package/dist/lib/components/plugins/save-query-dialog.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/save-query-dialog.component.js +12 -4
- package/dist/lib/components/plugins/save-query-dialog.component.js.map +1 -1
- package/dist/lib/components/plugins/svg-artifact-viewer.component.d.ts +17 -3
- package/dist/lib/components/plugins/svg-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/svg-artifact-viewer.component.js +36 -8
- package/dist/lib/components/plugins/svg-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/video-artifact-viewer.component.d.ts +9 -1
- package/dist/lib/components/plugins/video-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/video-artifact-viewer.component.js +20 -4
- package/dist/lib/components/plugins/video-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/xlsx-artifact-viewer.component.d.ts +28 -4
- package/dist/lib/components/plugins/xlsx-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/xlsx-artifact-viewer.component.js +64 -16
- package/dist/lib/components/plugins/xlsx-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/previews/audio-artifact-preview.component.d.ts +9 -1
- package/dist/lib/components/previews/audio-artifact-preview.component.d.ts.map +1 -1
- package/dist/lib/components/previews/audio-artifact-preview.component.js +20 -4
- package/dist/lib/components/previews/audio-artifact-preview.component.js.map +1 -1
- package/dist/lib/components/previews/image-artifact-preview.component.d.ts +16 -2
- package/dist/lib/components/previews/image-artifact-preview.component.d.ts.map +1 -1
- package/dist/lib/components/previews/image-artifact-preview.component.js +35 -7
- package/dist/lib/components/previews/image-artifact-preview.component.js.map +1 -1
- package/dist/lib/components/previews/video-artifact-preview.component.d.ts +9 -1
- package/dist/lib/components/previews/video-artifact-preview.component.d.ts.map +1 -1
- package/dist/lib/components/previews/video-artifact-preview.component.js +20 -4
- package/dist/lib/components/previews/video-artifact-preview.component.js.map +1 -1
- package/dist/lib/interfaces/artifact-viewer-plugin.interface.js.map +1 -1
- package/dist/lib/services/artifact-file.service.d.ts +8 -0
- package/dist/lib/services/artifact-file.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-file.service.js +22 -6
- package/dist/lib/services/artifact-file.service.js.map +1 -1
- package/dist/lib/services/artifact-icon.service.d.ts +2 -0
- package/dist/lib/services/artifact-icon.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-icon.service.js +5 -1
- package/dist/lib/services/artifact-icon.service.js.map +1 -1
- package/dist/lib/services/artifact-preview-resolver.service.d.ts +2 -0
- package/dist/lib/services/artifact-preview-resolver.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-preview-resolver.service.js +5 -1
- package/dist/lib/services/artifact-preview-resolver.service.js.map +1 -1
- package/dist/lib/snapshot-helpers.d.ts +10 -0
- package/dist/lib/snapshot-helpers.d.ts.map +1 -1
- package/dist/lib/snapshot-helpers.js +25 -5
- package/dist/lib/snapshot-helpers.js.map +1 -1
- package/package.json +21 -21
|
@@ -8,35 +8,137 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class FileArtifactToolbarComponent {
|
|
10
10
|
/** Display name shown in the center of the toolbar. */
|
|
11
|
-
|
|
11
|
+
FileName: string;
|
|
12
|
+
/** @deprecated Use {@link FileName}. */
|
|
13
|
+
set fileName(value: FileArtifactToolbarComponent['FileName']);
|
|
14
|
+
/** @deprecated Use {@link FileName}. */
|
|
15
|
+
get fileName(): FileArtifactToolbarComponent['FileName'];
|
|
12
16
|
/** Current page number (1-based). Only shown when totalPages > 1. */
|
|
13
|
-
|
|
17
|
+
CurrentPage: number;
|
|
18
|
+
/** @deprecated Use {@link CurrentPage}. */
|
|
19
|
+
set currentPage(value: FileArtifactToolbarComponent['CurrentPage']);
|
|
20
|
+
/** @deprecated Use {@link CurrentPage}. */
|
|
21
|
+
get currentPage(): FileArtifactToolbarComponent['CurrentPage'];
|
|
14
22
|
/** Total page count. Pass 1 (default) to hide navigation arrows. */
|
|
15
|
-
|
|
23
|
+
TotalPages: number;
|
|
24
|
+
/** @deprecated Use {@link TotalPages}. */
|
|
25
|
+
set totalPages(value: FileArtifactToolbarComponent['TotalPages']);
|
|
26
|
+
/** @deprecated Use {@link TotalPages}. */
|
|
27
|
+
get totalPages(): FileArtifactToolbarComponent['TotalPages'];
|
|
16
28
|
/** Whether the download button should show a spinner. */
|
|
17
|
-
|
|
29
|
+
IsDownloading: boolean;
|
|
30
|
+
/** @deprecated Use {@link IsDownloading}. */
|
|
31
|
+
set isDownloading(value: FileArtifactToolbarComponent['IsDownloading']);
|
|
32
|
+
/** @deprecated Use {@link IsDownloading}. */
|
|
33
|
+
get isDownloading(): FileArtifactToolbarComponent['IsDownloading'];
|
|
18
34
|
/** Whether to show the Print button (e.g. hide for binary spreadsheets). */
|
|
19
|
-
|
|
35
|
+
ShowPrint: boolean;
|
|
36
|
+
/** @deprecated Use {@link ShowPrint}. */
|
|
37
|
+
set showPrint(value: FileArtifactToolbarComponent['ShowPrint']);
|
|
38
|
+
/** @deprecated Use {@link ShowPrint}. */
|
|
39
|
+
get showPrint(): FileArtifactToolbarComponent['ShowPrint'];
|
|
20
40
|
/** Whether to show zoom in/out/reset controls. Only PDF needs this. */
|
|
21
|
-
|
|
41
|
+
ShowZoom: boolean;
|
|
42
|
+
/** @deprecated Use {@link ShowZoom}. */
|
|
43
|
+
set showZoom(value: FileArtifactToolbarComponent['ShowZoom']);
|
|
44
|
+
/** @deprecated Use {@link ShowZoom}. */
|
|
45
|
+
get showZoom(): FileArtifactToolbarComponent['ShowZoom'];
|
|
22
46
|
/** Current zoom level as a percentage integer (e.g. 100 = 100%). */
|
|
23
|
-
|
|
47
|
+
ZoomPercent: number;
|
|
48
|
+
/** @deprecated Use {@link ZoomPercent}. */
|
|
49
|
+
set zoomPercent(value: FileArtifactToolbarComponent['ZoomPercent']);
|
|
50
|
+
/** @deprecated Use {@link ZoomPercent}. */
|
|
51
|
+
get zoomPercent(): FileArtifactToolbarComponent['ZoomPercent'];
|
|
24
52
|
/** Whether zooming in further is possible. */
|
|
25
|
-
|
|
53
|
+
CanZoomIn: boolean;
|
|
54
|
+
/** @deprecated Use {@link CanZoomIn}. */
|
|
55
|
+
set canZoomIn(value: FileArtifactToolbarComponent['CanZoomIn']);
|
|
56
|
+
/** @deprecated Use {@link CanZoomIn}. */
|
|
57
|
+
get canZoomIn(): FileArtifactToolbarComponent['CanZoomIn'];
|
|
26
58
|
/** Whether zooming out further is possible. */
|
|
27
|
-
|
|
59
|
+
CanZoomOut: boolean;
|
|
60
|
+
/** @deprecated Use {@link CanZoomOut}. */
|
|
61
|
+
set canZoomOut(value: FileArtifactToolbarComponent['CanZoomOut']);
|
|
62
|
+
/** @deprecated Use {@link CanZoomOut}. */
|
|
63
|
+
get canZoomOut(): FileArtifactToolbarComponent['CanZoomOut'];
|
|
64
|
+
Download: EventEmitter<void>;
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Use {@link Download}.
|
|
67
|
+
*
|
|
68
|
+
* The same emitter under the old binding name, so a template still binding
|
|
69
|
+
* (download) keeps working. Must stay AFTER Download: class fields
|
|
70
|
+
* initialise in order, and the other way round this captures undefined.
|
|
71
|
+
*/
|
|
28
72
|
download: EventEmitter<void>;
|
|
73
|
+
Print: EventEmitter<void>;
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated Use {@link Print}.
|
|
76
|
+
*
|
|
77
|
+
* The same emitter under the old binding name, so a template still binding
|
|
78
|
+
* (print) keeps working. Must stay AFTER Print: class fields
|
|
79
|
+
* initialise in order, and the other way round this captures undefined.
|
|
80
|
+
*/
|
|
29
81
|
print: EventEmitter<void>;
|
|
82
|
+
PrevPage: EventEmitter<void>;
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Use {@link PrevPage}.
|
|
85
|
+
*
|
|
86
|
+
* The same emitter under the old binding name, so a template still binding
|
|
87
|
+
* (prevPage) keeps working. Must stay AFTER PrevPage: class fields
|
|
88
|
+
* initialise in order, and the other way round this captures undefined.
|
|
89
|
+
*/
|
|
30
90
|
prevPage: EventEmitter<void>;
|
|
91
|
+
NextPage: EventEmitter<void>;
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated Use {@link NextPage}.
|
|
94
|
+
*
|
|
95
|
+
* The same emitter under the old binding name, so a template still binding
|
|
96
|
+
* (nextPage) keeps working. Must stay AFTER NextPage: class fields
|
|
97
|
+
* initialise in order, and the other way round this captures undefined.
|
|
98
|
+
*/
|
|
31
99
|
nextPage: EventEmitter<void>;
|
|
32
100
|
/** Emits the validated target page number when the user edits the page input. */
|
|
101
|
+
PageChange: EventEmitter<number>;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated Use {@link PageChange}.
|
|
104
|
+
*
|
|
105
|
+
* The same emitter under the old binding name, so a template still binding
|
|
106
|
+
* (pageChange) keeps working. Must stay AFTER PageChange: class fields
|
|
107
|
+
* initialise in order, and the other way round this captures undefined.
|
|
108
|
+
*/
|
|
33
109
|
pageChange: EventEmitter<number>;
|
|
110
|
+
ZoomIn: EventEmitter<void>;
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Use {@link ZoomIn}.
|
|
113
|
+
*
|
|
114
|
+
* The same emitter under the old binding name, so a template still binding
|
|
115
|
+
* (zoomIn) keeps working. Must stay AFTER ZoomIn: class fields
|
|
116
|
+
* initialise in order, and the other way round this captures undefined.
|
|
117
|
+
*/
|
|
34
118
|
zoomIn: EventEmitter<void>;
|
|
119
|
+
ZoomOut: EventEmitter<void>;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Use {@link ZoomOut}.
|
|
122
|
+
*
|
|
123
|
+
* The same emitter under the old binding name, so a template still binding
|
|
124
|
+
* (zoomOut) keeps working. Must stay AFTER ZoomOut: class fields
|
|
125
|
+
* initialise in order, and the other way round this captures undefined.
|
|
126
|
+
*/
|
|
35
127
|
zoomOut: EventEmitter<void>;
|
|
36
128
|
/** Emitted when the user clicks the zoom-level badge to reset to 100%. */
|
|
129
|
+
ZoomReset: EventEmitter<void>;
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated Use {@link ZoomReset}.
|
|
132
|
+
*
|
|
133
|
+
* The same emitter under the old binding name, so a template still binding
|
|
134
|
+
* (zoomReset) keeps working. Must stay AFTER ZoomReset: class fields
|
|
135
|
+
* initialise in order, and the other way round this captures undefined.
|
|
136
|
+
*/
|
|
37
137
|
zoomReset: EventEmitter<void>;
|
|
138
|
+
OnPageInputChange(event: Event): void;
|
|
139
|
+
/** @deprecated Use {@link OnPageInputChange}. */
|
|
38
140
|
onPageInputChange(event: Event): void;
|
|
39
141
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileArtifactToolbarComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileArtifactToolbarComponent, "mj-file-artifact-toolbar", never, { "fileName": { "alias": "fileName"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "isDownloading": { "alias": "isDownloading"; "required": false; }; "showPrint": { "alias": "showPrint"; "required": false; }; "showZoom": { "alias": "showZoom"; "required": false; }; "zoomPercent": { "alias": "zoomPercent"; "required": false; }; "canZoomIn": { "alias": "canZoomIn"; "required": false; }; "canZoomOut": { "alias": "canZoomOut"; "required": false; }; }, { "download": "download"; "print": "print"; "prevPage": "prevPage"; "nextPage": "nextPage"; "pageChange": "pageChange"; "zoomIn": "zoomIn"; "zoomOut": "zoomOut"; "zoomReset": "zoomReset"; }, never, never, false, never>;
|
|
142
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileArtifactToolbarComponent, "mj-file-artifact-toolbar", never, { "FileName": { "alias": "FileName"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; "CurrentPage": { "alias": "CurrentPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "TotalPages": { "alias": "TotalPages"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "IsDownloading": { "alias": "IsDownloading"; "required": false; }; "isDownloading": { "alias": "isDownloading"; "required": false; }; "ShowPrint": { "alias": "ShowPrint"; "required": false; }; "showPrint": { "alias": "showPrint"; "required": false; }; "ShowZoom": { "alias": "ShowZoom"; "required": false; }; "showZoom": { "alias": "showZoom"; "required": false; }; "ZoomPercent": { "alias": "ZoomPercent"; "required": false; }; "zoomPercent": { "alias": "zoomPercent"; "required": false; }; "CanZoomIn": { "alias": "CanZoomIn"; "required": false; }; "canZoomIn": { "alias": "canZoomIn"; "required": false; }; "CanZoomOut": { "alias": "CanZoomOut"; "required": false; }; "canZoomOut": { "alias": "canZoomOut"; "required": false; }; }, { "Download": "Download"; "download": "download"; "Print": "Print"; "print": "print"; "PrevPage": "PrevPage"; "prevPage": "prevPage"; "NextPage": "NextPage"; "nextPage": "nextPage"; "PageChange": "PageChange"; "pageChange": "pageChange"; "ZoomIn": "ZoomIn"; "zoomIn": "zoomIn"; "ZoomOut": "ZoomOut"; "zoomOut": "zoomOut"; "ZoomReset": "ZoomReset"; "zoomReset": "zoomReset"; }, never, never, false, never>;
|
|
41
143
|
}
|
|
42
144
|
//# sourceMappingURL=file-artifact-toolbar.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-artifact-toolbar.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/file-artifact-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA2B,MAAM,eAAe,CAAC;;AAEhG;;;;;GAKG;AACH,qBAqPa,4BAA4B;IACvC,uDAAuD;IAC9C,QAAQ,SAAM;IAEvB,qEAAqE;IAC5D,WAAW,SAAK;IAEzB,oEAAoE;IAC3D,UAAU,SAAK;IAExB,yDAAyD;IAChD,aAAa,UAAS;IAE/B,4EAA4E;IACnE,SAAS,UAAQ;IAE1B,uEAAuE;IAC9D,QAAQ,UAAS;IAE1B,oEAAoE;IAC3D,WAAW,SAAO;IAE3B,8CAA8C;IACrC,SAAS,UAAQ;IAE1B,+CAA+C;IACtC,UAAU,UAAQ;
|
|
1
|
+
{"version":3,"file":"file-artifact-toolbar.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/file-artifact-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,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 +73,186 @@ function FileArtifactToolbarComponent_Conditional_10_Template(rf, ctx) { if (rf
|
|
|
73
73
|
*/
|
|
74
74
|
export class FileArtifactToolbarComponent {
|
|
75
75
|
/** Display name shown in the center of the toolbar. */
|
|
76
|
-
|
|
76
|
+
FileName = '';
|
|
77
|
+
/** @deprecated Use {@link FileName}. */
|
|
78
|
+
set fileName(value) {
|
|
79
|
+
this.FileName = value;
|
|
80
|
+
}
|
|
81
|
+
/** @deprecated Use {@link FileName}. */
|
|
82
|
+
get fileName() {
|
|
83
|
+
return this.FileName;
|
|
84
|
+
}
|
|
77
85
|
/** Current page number (1-based). Only shown when totalPages > 1. */
|
|
78
|
-
|
|
86
|
+
CurrentPage = 1;
|
|
87
|
+
/** @deprecated Use {@link CurrentPage}. */
|
|
88
|
+
set currentPage(value) {
|
|
89
|
+
this.CurrentPage = value;
|
|
90
|
+
}
|
|
91
|
+
/** @deprecated Use {@link CurrentPage}. */
|
|
92
|
+
get currentPage() {
|
|
93
|
+
return this.CurrentPage;
|
|
94
|
+
}
|
|
79
95
|
/** Total page count. Pass 1 (default) to hide navigation arrows. */
|
|
80
|
-
|
|
96
|
+
TotalPages = 1;
|
|
97
|
+
/** @deprecated Use {@link TotalPages}. */
|
|
98
|
+
set totalPages(value) {
|
|
99
|
+
this.TotalPages = value;
|
|
100
|
+
}
|
|
101
|
+
/** @deprecated Use {@link TotalPages}. */
|
|
102
|
+
get totalPages() {
|
|
103
|
+
return this.TotalPages;
|
|
104
|
+
}
|
|
81
105
|
/** Whether the download button should show a spinner. */
|
|
82
|
-
|
|
106
|
+
IsDownloading = false;
|
|
107
|
+
/** @deprecated Use {@link IsDownloading}. */
|
|
108
|
+
set isDownloading(value) {
|
|
109
|
+
this.IsDownloading = value;
|
|
110
|
+
}
|
|
111
|
+
/** @deprecated Use {@link IsDownloading}. */
|
|
112
|
+
get isDownloading() {
|
|
113
|
+
return this.IsDownloading;
|
|
114
|
+
}
|
|
83
115
|
/** Whether to show the Print button (e.g. hide for binary spreadsheets). */
|
|
84
|
-
|
|
116
|
+
ShowPrint = true;
|
|
117
|
+
/** @deprecated Use {@link ShowPrint}. */
|
|
118
|
+
set showPrint(value) {
|
|
119
|
+
this.ShowPrint = value;
|
|
120
|
+
}
|
|
121
|
+
/** @deprecated Use {@link ShowPrint}. */
|
|
122
|
+
get showPrint() {
|
|
123
|
+
return this.ShowPrint;
|
|
124
|
+
}
|
|
85
125
|
/** Whether to show zoom in/out/reset controls. Only PDF needs this. */
|
|
86
|
-
|
|
126
|
+
ShowZoom = false;
|
|
127
|
+
/** @deprecated Use {@link ShowZoom}. */
|
|
128
|
+
set showZoom(value) {
|
|
129
|
+
this.ShowZoom = value;
|
|
130
|
+
}
|
|
131
|
+
/** @deprecated Use {@link ShowZoom}. */
|
|
132
|
+
get showZoom() {
|
|
133
|
+
return this.ShowZoom;
|
|
134
|
+
}
|
|
87
135
|
/** Current zoom level as a percentage integer (e.g. 100 = 100%). */
|
|
88
|
-
|
|
136
|
+
ZoomPercent = 100;
|
|
137
|
+
/** @deprecated Use {@link ZoomPercent}. */
|
|
138
|
+
set zoomPercent(value) {
|
|
139
|
+
this.ZoomPercent = value;
|
|
140
|
+
}
|
|
141
|
+
/** @deprecated Use {@link ZoomPercent}. */
|
|
142
|
+
get zoomPercent() {
|
|
143
|
+
return this.ZoomPercent;
|
|
144
|
+
}
|
|
89
145
|
/** Whether zooming in further is possible. */
|
|
90
|
-
|
|
146
|
+
CanZoomIn = true;
|
|
147
|
+
/** @deprecated Use {@link CanZoomIn}. */
|
|
148
|
+
set canZoomIn(value) {
|
|
149
|
+
this.CanZoomIn = value;
|
|
150
|
+
}
|
|
151
|
+
/** @deprecated Use {@link CanZoomIn}. */
|
|
152
|
+
get canZoomIn() {
|
|
153
|
+
return this.CanZoomIn;
|
|
154
|
+
}
|
|
91
155
|
/** Whether zooming out further is possible. */
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
156
|
+
CanZoomOut = true;
|
|
157
|
+
/** @deprecated Use {@link CanZoomOut}. */
|
|
158
|
+
set canZoomOut(value) {
|
|
159
|
+
this.CanZoomOut = value;
|
|
160
|
+
}
|
|
161
|
+
/** @deprecated Use {@link CanZoomOut}. */
|
|
162
|
+
get canZoomOut() {
|
|
163
|
+
return this.CanZoomOut;
|
|
164
|
+
}
|
|
165
|
+
Download = new EventEmitter();
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated Use {@link Download}.
|
|
168
|
+
*
|
|
169
|
+
* The same emitter under the old binding name, so a template still binding
|
|
170
|
+
* (download) keeps working. Must stay AFTER Download: class fields
|
|
171
|
+
* initialise in order, and the other way round this captures undefined.
|
|
172
|
+
*/
|
|
173
|
+
download = this.Download;
|
|
174
|
+
Print = new EventEmitter();
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated Use {@link Print}.
|
|
177
|
+
*
|
|
178
|
+
* The same emitter under the old binding name, so a template still binding
|
|
179
|
+
* (print) keeps working. Must stay AFTER Print: class fields
|
|
180
|
+
* initialise in order, and the other way round this captures undefined.
|
|
181
|
+
*/
|
|
182
|
+
print = this.Print;
|
|
183
|
+
PrevPage = new EventEmitter();
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated Use {@link PrevPage}.
|
|
186
|
+
*
|
|
187
|
+
* The same emitter under the old binding name, so a template still binding
|
|
188
|
+
* (prevPage) keeps working. Must stay AFTER PrevPage: class fields
|
|
189
|
+
* initialise in order, and the other way round this captures undefined.
|
|
190
|
+
*/
|
|
191
|
+
prevPage = this.PrevPage;
|
|
192
|
+
NextPage = new EventEmitter();
|
|
193
|
+
/**
|
|
194
|
+
* @deprecated Use {@link NextPage}.
|
|
195
|
+
*
|
|
196
|
+
* The same emitter under the old binding name, so a template still binding
|
|
197
|
+
* (nextPage) keeps working. Must stay AFTER NextPage: class fields
|
|
198
|
+
* initialise in order, and the other way round this captures undefined.
|
|
199
|
+
*/
|
|
200
|
+
nextPage = this.NextPage;
|
|
97
201
|
/** Emits the validated target page number when the user edits the page input. */
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
202
|
+
PageChange = new EventEmitter();
|
|
203
|
+
/**
|
|
204
|
+
* @deprecated Use {@link PageChange}.
|
|
205
|
+
*
|
|
206
|
+
* The same emitter under the old binding name, so a template still binding
|
|
207
|
+
* (pageChange) keeps working. Must stay AFTER PageChange: class fields
|
|
208
|
+
* initialise in order, and the other way round this captures undefined.
|
|
209
|
+
*/
|
|
210
|
+
pageChange = this.PageChange;
|
|
211
|
+
ZoomIn = new EventEmitter();
|
|
212
|
+
/**
|
|
213
|
+
* @deprecated Use {@link ZoomIn}.
|
|
214
|
+
*
|
|
215
|
+
* The same emitter under the old binding name, so a template still binding
|
|
216
|
+
* (zoomIn) keeps working. Must stay AFTER ZoomIn: class fields
|
|
217
|
+
* initialise in order, and the other way round this captures undefined.
|
|
218
|
+
*/
|
|
219
|
+
zoomIn = this.ZoomIn;
|
|
220
|
+
ZoomOut = new EventEmitter();
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated Use {@link ZoomOut}.
|
|
223
|
+
*
|
|
224
|
+
* The same emitter under the old binding name, so a template still binding
|
|
225
|
+
* (zoomOut) keeps working. Must stay AFTER ZoomOut: class fields
|
|
226
|
+
* initialise in order, and the other way round this captures undefined.
|
|
227
|
+
*/
|
|
228
|
+
zoomOut = this.ZoomOut;
|
|
101
229
|
/** Emitted when the user clicks the zoom-level badge to reset to 100%. */
|
|
102
|
-
|
|
103
|
-
|
|
230
|
+
ZoomReset = new EventEmitter();
|
|
231
|
+
/**
|
|
232
|
+
* @deprecated Use {@link ZoomReset}.
|
|
233
|
+
*
|
|
234
|
+
* The same emitter under the old binding name, so a template still binding
|
|
235
|
+
* (zoomReset) keeps working. Must stay AFTER ZoomReset: class fields
|
|
236
|
+
* initialise in order, and the other way round this captures undefined.
|
|
237
|
+
*/
|
|
238
|
+
zoomReset = this.ZoomReset;
|
|
239
|
+
OnPageInputChange(event) {
|
|
104
240
|
const input = event.target;
|
|
105
241
|
const value = parseInt(input.value, 10);
|
|
106
|
-
if (!isNaN(value) && value >= 1 && value <= this.
|
|
107
|
-
this.
|
|
242
|
+
if (!isNaN(value) && value >= 1 && value <= this.TotalPages) {
|
|
243
|
+
this.PageChange.emit(value);
|
|
108
244
|
}
|
|
109
245
|
else {
|
|
110
246
|
// Snap back to current valid page
|
|
111
|
-
input.value = String(this.
|
|
247
|
+
input.value = String(this.CurrentPage);
|
|
112
248
|
}
|
|
113
249
|
}
|
|
250
|
+
/** @deprecated Use {@link OnPageInputChange}. */
|
|
251
|
+
onPageInputChange(event) {
|
|
252
|
+
return this.OnPageInputChange(event);
|
|
253
|
+
}
|
|
114
254
|
static ɵfac = function FileArtifactToolbarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FileArtifactToolbarComponent)(); };
|
|
115
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileArtifactToolbarComponent, selectors: [["mj-file-artifact-toolbar"]], inputs: { fileName: "fileName", currentPage: "currentPage", totalPages: "totalPages", isDownloading: "isDownloading", showPrint: "showPrint", showZoom: "showZoom", zoomPercent: "zoomPercent", canZoomIn: "canZoomIn", canZoomOut: "canZoomOut" }, outputs: { download: "download", print: "print", prevPage: "prevPage", nextPage: "nextPage", pageChange: "pageChange", zoomIn: "zoomIn", zoomOut: "zoomOut", zoomReset: "zoomReset" }, standalone: false, decls: 13, vars: 7, consts: [[1, "file-toolbar"], [1, "file-toolbar__left"], [1, "file-toolbar__nav"], [1, "file-toolbar__zoom"], [1, "file-toolbar__title", 3, "title"], [1, "file-toolbar__actions"], ["title", "Print", 1, "file-toolbar__btn"], ["title", "Download file", 1, "file-toolbar__btn", "file-toolbar__btn--primary", 3, "click", "disabled"], [1, "fas", "fa-spinner", "fa-spin"], [1, "fas", "fa-download"], [1, "file-toolbar__btn-label"], ["title", "Previous page", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-chevron-left"], ["type", "number", "title", "Jump to page", 1, "file-toolbar__page-input", 3, "change", "keydown.enter", "value", "min", "max"], [1, "file-toolbar__page-of"], ["title", "Next page", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-chevron-right"], ["title", "Zoom out", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-minus"], ["title", "Reset zoom to 100%", 1, "file-toolbar__zoom-level", 3, "click"], ["title", "Zoom in", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-plus"], ["title", "Print", 1, "file-toolbar__btn", 3, "click"], [1, "fas", "fa-print"]], template: function FileArtifactToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
255
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileArtifactToolbarComponent, selectors: [["mj-file-artifact-toolbar"]], inputs: { FileName: "FileName", fileName: "fileName", CurrentPage: "CurrentPage", currentPage: "currentPage", TotalPages: "TotalPages", totalPages: "totalPages", IsDownloading: "IsDownloading", isDownloading: "isDownloading", ShowPrint: "ShowPrint", showPrint: "showPrint", ShowZoom: "ShowZoom", showZoom: "showZoom", ZoomPercent: "ZoomPercent", zoomPercent: "zoomPercent", CanZoomIn: "CanZoomIn", canZoomIn: "canZoomIn", CanZoomOut: "CanZoomOut", canZoomOut: "canZoomOut" }, outputs: { Download: "Download", download: "download", Print: "Print", print: "print", PrevPage: "PrevPage", prevPage: "prevPage", NextPage: "NextPage", nextPage: "nextPage", PageChange: "PageChange", pageChange: "pageChange", ZoomIn: "ZoomIn", zoomIn: "zoomIn", ZoomOut: "ZoomOut", zoomOut: "zoomOut", ZoomReset: "ZoomReset", zoomReset: "zoomReset" }, standalone: false, decls: 13, vars: 7, consts: [[1, "file-toolbar"], [1, "file-toolbar__left"], [1, "file-toolbar__nav"], [1, "file-toolbar__zoom"], [1, "file-toolbar__title", 3, "title"], [1, "file-toolbar__actions"], ["title", "Print", 1, "file-toolbar__btn"], ["title", "Download file", 1, "file-toolbar__btn", "file-toolbar__btn--primary", 3, "click", "disabled"], [1, "fas", "fa-spinner", "fa-spin"], [1, "fas", "fa-download"], [1, "file-toolbar__btn-label"], ["title", "Previous page", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-chevron-left"], ["type", "number", "title", "Jump to page", 1, "file-toolbar__page-input", 3, "change", "keydown.enter", "value", "min", "max"], [1, "file-toolbar__page-of"], ["title", "Next page", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-chevron-right"], ["title", "Zoom out", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-minus"], ["title", "Reset zoom to 100%", 1, "file-toolbar__zoom-level", 3, "click"], ["title", "Zoom in", 1, "file-toolbar__icon-btn", 3, "click", "disabled"], [1, "fas", "fa-plus"], ["title", "Print", 1, "file-toolbar__btn", 3, "click"], [1, "fas", "fa-print"]], template: function FileArtifactToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
116
256
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
117
257
|
i0.ɵɵconditionalCreate(2, FileArtifactToolbarComponent_Conditional_2_Template, 8, 6, "div", 2);
|
|
118
258
|
i0.ɵɵconditionalCreate(3, FileArtifactToolbarComponent_Conditional_3_Template, 7, 3, "div", 3);
|
|
@@ -210,38 +350,72 @@ export class FileArtifactToolbarComponent {
|
|
|
210
350
|
</div>
|
|
211
351
|
</div>
|
|
212
352
|
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["\n .file-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n }\n\n .file-toolbar__left {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .file-toolbar__nav {\n display: flex;\n align-items: center;\n gap: 3px;\n }\n\n .file-toolbar__zoom {\n display: flex;\n align-items: center;\n gap: 2px;\n border-left: 1px solid var(--mj-border-default);\n padding-left: 8px;\n }\n\n .file-toolbar__title {\n flex: 1;\n text-align: center;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0 8px;\n }\n\n .file-toolbar__actions {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n }\n\n /* Shared icon button (chevrons, +, -) */\n .file-toolbar__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n padding: 0;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 11px;\n cursor: pointer;\n transition: background 0.15s, border-color 0.15s, color 0.15s;\n }\n\n .file-toolbar__icon-btn:hover:not([disabled]) {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-text-primary);\n }\n\n .file-toolbar__icon-btn[disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n }\n\n /* Page number input */\n .file-toolbar__page-input {\n width: 40px;\n height: 26px;\n padding: 0 4px;\n text-align: center;\n font-size: 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-primary);\n /* hide spin buttons \u2014 we use the chevrons instead */\n -moz-appearance: textfield;\n }\n\n .file-toolbar__page-input::-webkit-inner-spin-button,\n .file-toolbar__page-input::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n .file-toolbar__page-input:focus {\n outline: none;\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n }\n\n .file-toolbar__page-of {\n font-size: 12px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n }\n\n /* Zoom level display \u2014 clickable to reset */\n .file-toolbar__zoom-level {\n min-width: 42px;\n height: 26px;\n padding: 0 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 12px;\n text-align: center;\n cursor: pointer;\n transition: background 0.15s, color 0.15s;\n }\n\n .file-toolbar__zoom-level:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n }\n\n /* Labelled action buttons (Print, Download) */\n .file-toolbar__btn {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 5px 10px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 12px;\n cursor: pointer;\n transition: background 0.15s, border-color 0.15s, color 0.15s;\n }\n\n .file-toolbar__btn:hover:not([disabled]) {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-text-primary);\n }\n\n .file-toolbar__btn[disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n }\n\n .file-toolbar__btn--primary {\n background: var(--mj-brand-primary);\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n }\n\n .file-toolbar__btn--primary:hover:not([disabled]) {\n background: var(--mj-brand-primary-hover);\n border-color: var(--mj-brand-primary-hover);\n color: var(--mj-text-inverse);\n }\n\n @media (max-width: 480px) {\n .file-toolbar__btn-label {\n display: none;\n }\n }\n "] }]
|
|
213
|
-
}], null, {
|
|
353
|
+
}], null, { FileName: [{
|
|
354
|
+
type: Input
|
|
355
|
+
}], fileName: [{
|
|
356
|
+
type: Input
|
|
357
|
+
}], CurrentPage: [{
|
|
214
358
|
type: Input
|
|
215
359
|
}], currentPage: [{
|
|
216
360
|
type: Input
|
|
361
|
+
}], TotalPages: [{
|
|
362
|
+
type: Input
|
|
217
363
|
}], totalPages: [{
|
|
218
364
|
type: Input
|
|
365
|
+
}], IsDownloading: [{
|
|
366
|
+
type: Input
|
|
219
367
|
}], isDownloading: [{
|
|
220
368
|
type: Input
|
|
369
|
+
}], ShowPrint: [{
|
|
370
|
+
type: Input
|
|
221
371
|
}], showPrint: [{
|
|
222
372
|
type: Input
|
|
373
|
+
}], ShowZoom: [{
|
|
374
|
+
type: Input
|
|
223
375
|
}], showZoom: [{
|
|
224
376
|
type: Input
|
|
377
|
+
}], ZoomPercent: [{
|
|
378
|
+
type: Input
|
|
225
379
|
}], zoomPercent: [{
|
|
226
380
|
type: Input
|
|
381
|
+
}], CanZoomIn: [{
|
|
382
|
+
type: Input
|
|
227
383
|
}], canZoomIn: [{
|
|
228
384
|
type: Input
|
|
385
|
+
}], CanZoomOut: [{
|
|
386
|
+
type: Input
|
|
229
387
|
}], canZoomOut: [{
|
|
230
388
|
type: Input
|
|
389
|
+
}], Download: [{
|
|
390
|
+
type: Output
|
|
231
391
|
}], download: [{
|
|
232
392
|
type: Output
|
|
393
|
+
}], Print: [{
|
|
394
|
+
type: Output
|
|
233
395
|
}], print: [{
|
|
234
396
|
type: Output
|
|
397
|
+
}], PrevPage: [{
|
|
398
|
+
type: Output
|
|
235
399
|
}], prevPage: [{
|
|
236
400
|
type: Output
|
|
401
|
+
}], NextPage: [{
|
|
402
|
+
type: Output
|
|
237
403
|
}], nextPage: [{
|
|
238
404
|
type: Output
|
|
405
|
+
}], PageChange: [{
|
|
406
|
+
type: Output
|
|
239
407
|
}], pageChange: [{
|
|
240
408
|
type: Output
|
|
409
|
+
}], ZoomIn: [{
|
|
410
|
+
type: Output
|
|
241
411
|
}], zoomIn: [{
|
|
242
412
|
type: Output
|
|
413
|
+
}], ZoomOut: [{
|
|
414
|
+
type: Output
|
|
243
415
|
}], zoomOut: [{
|
|
244
416
|
type: Output
|
|
417
|
+
}], ZoomReset: [{
|
|
418
|
+
type: Output
|
|
245
419
|
}], zoomReset: [{
|
|
246
420
|
type: Output
|
|
247
421
|
}] }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-artifact-toolbar.component.js","sourceRoot":"","sources":["../../../src/lib/components/file-artifact-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EA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YAMjB,iCAAwI;YAA3E,yGAAS,mBAAe,IAAC;YAGlF,AAFF,4FAAqB,wEAEZ;YAGT,iCAAsC;YAAA,yBAAQ;YAGpD,AADE,AADE,AADgD,iBAAO,EAC9C,EACL,EACF;;YAzDF,eAoBC;YApBD,6CAoBC;YAED,cAYC;YAZD,uCAYC;YAI8B,cAAkB;YAAlB,oCAAkB;YAAC,cAAc;YAAd,kCAAc;YAIhE,eAKC;YALD,wCAKC;YACsF,cAA0B;YAA1B,4CAA0B;YAC/G,cAIC;YAJD,4CAIC;;;iFAyLE,4BAA4B;cArPxC,SAAS;6BACI,KAAK,YACP,0BAA0B,YAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DT,mBAkLgB,uBAAuB,CAAC,MAAM;;kBAI9C,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAEL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBAEN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBAEN,MAAM;;kFArCI,4BAA4B","sourcesContent":["import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\n\n/**\n * Shared toolbar rendered by file artifact viewer plugins (PDF, XLSX, DOCX).\n * Provides download, print, page-navigation, and optional zoom controls in a\n * consistent style. All colors use design tokens so the toolbar adapts to\n * light/dark themes.\n */\n@Component({\n standalone: false,\n selector: 'mj-file-artifact-toolbar',\n template: `\n <div class=\"file-toolbar\">\n <!-- Left: page navigation + zoom (only rendered when relevant) -->\n <div class=\"file-toolbar__left\">\n @if (totalPages > 1) {\n <div class=\"file-toolbar__nav\">\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"currentPage <= 1\" (click)=\"prevPage.emit()\" title=\"Previous page\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <input\n class=\"file-toolbar__page-input\"\n type=\"number\"\n [value]=\"currentPage\"\n [min]=\"1\"\n [max]=\"totalPages\"\n (change)=\"onPageInputChange($event)\"\n (keydown.enter)=\"onPageInputChange($event)\"\n title=\"Jump to page\"\n />\n <span class=\"file-toolbar__page-of\">/ {{ totalPages }}</span>\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"currentPage >= totalPages\" (click)=\"nextPage.emit()\" title=\"Next page\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n }\n\n @if (showZoom) {\n <div class=\"file-toolbar__zoom\">\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"!canZoomOut\" (click)=\"zoomOut.emit()\" title=\"Zoom out\">\n <i class=\"fas fa-minus\"></i>\n </button>\n <button class=\"file-toolbar__zoom-level\" (click)=\"zoomReset.emit()\" title=\"Reset zoom to 100%\">\n {{ zoomPercent }}%\n </button>\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"!canZoomIn\" (click)=\"zoomIn.emit()\" title=\"Zoom in\">\n <i class=\"fas fa-plus\"></i>\n </button>\n </div>\n }\n </div>\n\n <!-- Center: filename -->\n <div class=\"file-toolbar__title\" [title]=\"fileName\">{{ fileName }}</div>\n\n <!-- Right: actions -->\n <div class=\"file-toolbar__actions\">\n @if (showPrint) {\n <button class=\"file-toolbar__btn\" (click)=\"print.emit()\" title=\"Print\">\n <i class=\"fas fa-print\"></i>\n <span class=\"file-toolbar__btn-label\">Print</span>\n </button>\n }\n <button class=\"file-toolbar__btn file-toolbar__btn--primary\" (click)=\"download.emit()\" [disabled]=\"isDownloading\" title=\"Download file\">\n @if (isDownloading) {\n <i class=\"fas fa-spinner fa-spin\"></i>\n } @else {\n <i class=\"fas fa-download\"></i>\n }\n <span class=\"file-toolbar__btn-label\">Download</span>\n </button>\n </div>\n </div>\n `,\n styles: [`\n .file-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n }\n\n .file-toolbar__left {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .file-toolbar__nav {\n display: flex;\n align-items: center;\n gap: 3px;\n }\n\n .file-toolbar__zoom {\n display: flex;\n align-items: center;\n gap: 2px;\n border-left: 1px solid var(--mj-border-default);\n padding-left: 8px;\n }\n\n .file-toolbar__title {\n flex: 1;\n text-align: center;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0 8px;\n }\n\n .file-toolbar__actions {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n }\n\n /* Shared icon button (chevrons, +, -) */\n .file-toolbar__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n padding: 0;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 11px;\n cursor: pointer;\n transition: background 0.15s, border-color 0.15s, color 0.15s;\n }\n\n .file-toolbar__icon-btn:hover:not([disabled]) {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-text-primary);\n }\n\n .file-toolbar__icon-btn[disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n }\n\n /* Page number input */\n .file-toolbar__page-input {\n width: 40px;\n height: 26px;\n padding: 0 4px;\n text-align: center;\n font-size: 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-primary);\n /* hide spin buttons — we use the chevrons instead */\n -moz-appearance: textfield;\n }\n\n .file-toolbar__page-input::-webkit-inner-spin-button,\n .file-toolbar__page-input::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n .file-toolbar__page-input:focus {\n outline: none;\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n }\n\n .file-toolbar__page-of {\n font-size: 12px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n }\n\n /* Zoom level display — clickable to reset */\n .file-toolbar__zoom-level {\n min-width: 42px;\n height: 26px;\n padding: 0 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 12px;\n text-align: center;\n cursor: pointer;\n transition: background 0.15s, color 0.15s;\n }\n\n .file-toolbar__zoom-level:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n }\n\n /* Labelled action buttons (Print, Download) */\n .file-toolbar__btn {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 5px 10px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 12px;\n cursor: pointer;\n transition: background 0.15s, border-color 0.15s, color 0.15s;\n }\n\n .file-toolbar__btn:hover:not([disabled]) {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-text-primary);\n }\n\n .file-toolbar__btn[disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n }\n\n .file-toolbar__btn--primary {\n background: var(--mj-brand-primary);\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n }\n\n .file-toolbar__btn--primary:hover:not([disabled]) {\n background: var(--mj-brand-primary-hover);\n border-color: var(--mj-brand-primary-hover);\n color: var(--mj-text-inverse);\n }\n\n @media (max-width: 480px) {\n .file-toolbar__btn-label {\n display: none;\n }\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FileArtifactToolbarComponent {\n /** Display name shown in the center of the toolbar. */\n @Input() fileName = '';\n\n /** Current page number (1-based). Only shown when totalPages > 1. */\n @Input() currentPage = 1;\n\n /** Total page count. Pass 1 (default) to hide navigation arrows. */\n @Input() totalPages = 1;\n\n /** Whether the download button should show a spinner. */\n @Input() isDownloading = false;\n\n /** Whether to show the Print button (e.g. hide for binary spreadsheets). */\n @Input() showPrint = true;\n\n /** Whether to show zoom in/out/reset controls. Only PDF needs this. */\n @Input() showZoom = false;\n\n /** Current zoom level as a percentage integer (e.g. 100 = 100%). */\n @Input() zoomPercent = 100;\n\n /** Whether zooming in further is possible. */\n @Input() canZoomIn = true;\n\n /** Whether zooming out further is possible. */\n @Input() canZoomOut = true;\n\n @Output() download = new EventEmitter<void>();\n @Output() print = new EventEmitter<void>();\n @Output() prevPage = new EventEmitter<void>();\n @Output() nextPage = new EventEmitter<void>();\n /** Emits the validated target page number when the user edits the page input. */\n @Output() pageChange = new EventEmitter<number>();\n @Output() zoomIn = new EventEmitter<void>();\n @Output() zoomOut = new EventEmitter<void>();\n /** Emitted when the user clicks the zoom-level badge to reset to 100%. */\n @Output() zoomReset = new EventEmitter<void>();\n\n public onPageInputChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n const value = parseInt(input.value, 10);\n if (!isNaN(value) && value >= 1 && value <= this.totalPages) {\n this.pageChange.emit(value);\n } else {\n // Snap back to current valid page\n input.value = String(this.currentPage);\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"file-artifact-toolbar.component.js","sourceRoot":"","sources":["../../../src/lib/components/file-artifact-toolbar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;;;;IAiBpF,AADF,8BAA+B,iBACwF;IAAhD,gMAAS,sBAAe,KAAC;IAC5F,wBAAmC;IACrC,iBAAS;IACT,iCASE;IAFA,AADA,uMAAU,gCAAyB,KAAC,wMACnB,gCAAyB,KAAC;IAP7C,iBASE;IACF,gCAAoC;IAAA,YAAkB;IAAA,iBAAO;IAC7D,kCAA0H;IAA5C,gMAAS,sBAAe,KAAC;IACrG,wBAAoC;IAExC,AADE,iBAAS,EACL;;;IAjBmC,cAA6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BAGL,KAAK;;kBASL,KAAK;;kBAGL,KAAK;;kBASL,KAAK;;kBAGL,KAAK;;kBASL,KAAK;;kBAGL,KAAK;;kBASL,KAAK;;kBAGL,KAAK;;kBASL,KAAK;;kBAGL,KAAK;;kBAQL,MAAM;;kBASN,MAAM;;kBACN,MAAM;;kBASN,MAAM;;kBACN,MAAM;;kBASN,MAAM;;kBACN,MAAM;;kBASN,MAAM;;kBAEN,MAAM;;kBASN,MAAM;;kBACN,MAAM;;kBASN,MAAM;;kBACN,MAAM;;kBASN,MAAM;;kBAEN,MAAM;;kBASN,MAAM;;kFA9LI,4BAA4B","sourcesContent":["import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';\n\n/**\n * Shared toolbar rendered by file artifact viewer plugins (PDF, XLSX, DOCX).\n * Provides download, print, page-navigation, and optional zoom controls in a\n * consistent style. All colors use design tokens so the toolbar adapts to\n * light/dark themes.\n */\n@Component({\n standalone: false,\n selector: 'mj-file-artifact-toolbar',\n template: `\n <div class=\"file-toolbar\">\n <!-- Left: page navigation + zoom (only rendered when relevant) -->\n <div class=\"file-toolbar__left\">\n @if (totalPages > 1) {\n <div class=\"file-toolbar__nav\">\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"currentPage <= 1\" (click)=\"prevPage.emit()\" title=\"Previous page\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n <input\n class=\"file-toolbar__page-input\"\n type=\"number\"\n [value]=\"currentPage\"\n [min]=\"1\"\n [max]=\"totalPages\"\n (change)=\"onPageInputChange($event)\"\n (keydown.enter)=\"onPageInputChange($event)\"\n title=\"Jump to page\"\n />\n <span class=\"file-toolbar__page-of\">/ {{ totalPages }}</span>\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"currentPage >= totalPages\" (click)=\"nextPage.emit()\" title=\"Next page\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n </div>\n }\n\n @if (showZoom) {\n <div class=\"file-toolbar__zoom\">\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"!canZoomOut\" (click)=\"zoomOut.emit()\" title=\"Zoom out\">\n <i class=\"fas fa-minus\"></i>\n </button>\n <button class=\"file-toolbar__zoom-level\" (click)=\"zoomReset.emit()\" title=\"Reset zoom to 100%\">\n {{ zoomPercent }}%\n </button>\n <button class=\"file-toolbar__icon-btn\" [disabled]=\"!canZoomIn\" (click)=\"zoomIn.emit()\" title=\"Zoom in\">\n <i class=\"fas fa-plus\"></i>\n </button>\n </div>\n }\n </div>\n\n <!-- Center: filename -->\n <div class=\"file-toolbar__title\" [title]=\"fileName\">{{ fileName }}</div>\n\n <!-- Right: actions -->\n <div class=\"file-toolbar__actions\">\n @if (showPrint) {\n <button class=\"file-toolbar__btn\" (click)=\"print.emit()\" title=\"Print\">\n <i class=\"fas fa-print\"></i>\n <span class=\"file-toolbar__btn-label\">Print</span>\n </button>\n }\n <button class=\"file-toolbar__btn file-toolbar__btn--primary\" (click)=\"download.emit()\" [disabled]=\"isDownloading\" title=\"Download file\">\n @if (isDownloading) {\n <i class=\"fas fa-spinner fa-spin\"></i>\n } @else {\n <i class=\"fas fa-download\"></i>\n }\n <span class=\"file-toolbar__btn-label\">Download</span>\n </button>\n </div>\n </div>\n `,\n styles: [`\n .file-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 6px 12px;\n background: var(--mj-bg-surface-card);\n border-bottom: 1px solid var(--mj-border-default);\n flex-shrink: 0;\n }\n\n .file-toolbar__left {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .file-toolbar__nav {\n display: flex;\n align-items: center;\n gap: 3px;\n }\n\n .file-toolbar__zoom {\n display: flex;\n align-items: center;\n gap: 2px;\n border-left: 1px solid var(--mj-border-default);\n padding-left: 8px;\n }\n\n .file-toolbar__title {\n flex: 1;\n text-align: center;\n font-size: 13px;\n font-weight: 500;\n color: var(--mj-text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0 8px;\n }\n\n .file-toolbar__actions {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n }\n\n /* Shared icon button (chevrons, +, -) */\n .file-toolbar__icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 26px;\n height: 26px;\n padding: 0;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 11px;\n cursor: pointer;\n transition: background 0.15s, border-color 0.15s, color 0.15s;\n }\n\n .file-toolbar__icon-btn:hover:not([disabled]) {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-text-primary);\n }\n\n .file-toolbar__icon-btn[disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n }\n\n /* Page number input */\n .file-toolbar__page-input {\n width: 40px;\n height: 26px;\n padding: 0 4px;\n text-align: center;\n font-size: 12px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-primary);\n /* hide spin buttons — we use the chevrons instead */\n -moz-appearance: textfield;\n }\n\n .file-toolbar__page-input::-webkit-inner-spin-button,\n .file-toolbar__page-input::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n .file-toolbar__page-input:focus {\n outline: none;\n border-color: var(--mj-border-focus);\n box-shadow: 0 0 0 2px color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n }\n\n .file-toolbar__page-of {\n font-size: 12px;\n color: var(--mj-text-muted);\n white-space: nowrap;\n }\n\n /* Zoom level display — clickable to reset */\n .file-toolbar__zoom-level {\n min-width: 42px;\n height: 26px;\n padding: 0 4px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 12px;\n text-align: center;\n cursor: pointer;\n transition: background 0.15s, color 0.15s;\n }\n\n .file-toolbar__zoom-level:hover {\n background: var(--mj-bg-surface-hover);\n color: var(--mj-text-primary);\n }\n\n /* Labelled action buttons (Print, Download) */\n .file-toolbar__btn {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 5px 10px;\n background: var(--mj-bg-surface);\n border: 1px solid var(--mj-border-default);\n border-radius: 4px;\n color: var(--mj-text-secondary);\n font-size: 12px;\n cursor: pointer;\n transition: background 0.15s, border-color 0.15s, color 0.15s;\n }\n\n .file-toolbar__btn:hover:not([disabled]) {\n background: var(--mj-bg-surface-hover);\n border-color: var(--mj-border-strong);\n color: var(--mj-text-primary);\n }\n\n .file-toolbar__btn[disabled] {\n opacity: 0.4;\n cursor: not-allowed;\n }\n\n .file-toolbar__btn--primary {\n background: var(--mj-brand-primary);\n border-color: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n }\n\n .file-toolbar__btn--primary:hover:not([disabled]) {\n background: var(--mj-brand-primary-hover);\n border-color: var(--mj-brand-primary-hover);\n color: var(--mj-text-inverse);\n }\n\n @media (max-width: 480px) {\n .file-toolbar__btn-label {\n display: none;\n }\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FileArtifactToolbarComponent {\n /** Display name shown in the center of the toolbar. */\n @Input() FileName = '';\n\n /** @deprecated Use {@link FileName}. */\n @Input() set fileName(value: FileArtifactToolbarComponent['FileName']) {\n this.FileName = value;\n }\n /** @deprecated Use {@link FileName}. */\n get fileName(): FileArtifactToolbarComponent['FileName'] {\n return this.FileName;\n }\n\n /** Current page number (1-based). Only shown when totalPages > 1. */\n @Input() CurrentPage = 1;\n\n /** @deprecated Use {@link CurrentPage}. */\n @Input() set currentPage(value: FileArtifactToolbarComponent['CurrentPage']) {\n this.CurrentPage = value;\n }\n /** @deprecated Use {@link CurrentPage}. */\n get currentPage(): FileArtifactToolbarComponent['CurrentPage'] {\n return this.CurrentPage;\n }\n\n /** Total page count. Pass 1 (default) to hide navigation arrows. */\n @Input() TotalPages = 1;\n\n /** @deprecated Use {@link TotalPages}. */\n @Input() set totalPages(value: FileArtifactToolbarComponent['TotalPages']) {\n this.TotalPages = value;\n }\n /** @deprecated Use {@link TotalPages}. */\n get totalPages(): FileArtifactToolbarComponent['TotalPages'] {\n return this.TotalPages;\n }\n\n /** Whether the download button should show a spinner. */\n @Input() IsDownloading = false;\n\n /** @deprecated Use {@link IsDownloading}. */\n @Input() set isDownloading(value: FileArtifactToolbarComponent['IsDownloading']) {\n this.IsDownloading = value;\n }\n /** @deprecated Use {@link IsDownloading}. */\n get isDownloading(): FileArtifactToolbarComponent['IsDownloading'] {\n return this.IsDownloading;\n }\n\n /** Whether to show the Print button (e.g. hide for binary spreadsheets). */\n @Input() ShowPrint = true;\n\n /** @deprecated Use {@link ShowPrint}. */\n @Input() set showPrint(value: FileArtifactToolbarComponent['ShowPrint']) {\n this.ShowPrint = value;\n }\n /** @deprecated Use {@link ShowPrint}. */\n get showPrint(): FileArtifactToolbarComponent['ShowPrint'] {\n return this.ShowPrint;\n }\n\n /** Whether to show zoom in/out/reset controls. Only PDF needs this. */\n @Input() ShowZoom = false;\n\n /** @deprecated Use {@link ShowZoom}. */\n @Input() set showZoom(value: FileArtifactToolbarComponent['ShowZoom']) {\n this.ShowZoom = value;\n }\n /** @deprecated Use {@link ShowZoom}. */\n get showZoom(): FileArtifactToolbarComponent['ShowZoom'] {\n return this.ShowZoom;\n }\n\n /** Current zoom level as a percentage integer (e.g. 100 = 100%). */\n @Input() ZoomPercent = 100;\n\n /** @deprecated Use {@link ZoomPercent}. */\n @Input() set zoomPercent(value: FileArtifactToolbarComponent['ZoomPercent']) {\n this.ZoomPercent = value;\n }\n /** @deprecated Use {@link ZoomPercent}. */\n get zoomPercent(): FileArtifactToolbarComponent['ZoomPercent'] {\n return this.ZoomPercent;\n }\n\n /** Whether zooming in further is possible. */\n @Input() CanZoomIn = true;\n\n /** @deprecated Use {@link CanZoomIn}. */\n @Input() set canZoomIn(value: FileArtifactToolbarComponent['CanZoomIn']) {\n this.CanZoomIn = value;\n }\n /** @deprecated Use {@link CanZoomIn}. */\n get canZoomIn(): FileArtifactToolbarComponent['CanZoomIn'] {\n return this.CanZoomIn;\n }\n\n /** Whether zooming out further is possible. */\n @Input() CanZoomOut = true;\n\n /** @deprecated Use {@link CanZoomOut}. */\n @Input() set canZoomOut(value: FileArtifactToolbarComponent['CanZoomOut']) {\n this.CanZoomOut = value;\n }\n /** @deprecated Use {@link CanZoomOut}. */\n get canZoomOut(): FileArtifactToolbarComponent['CanZoomOut'] {\n return this.CanZoomOut;\n }\n\n @Output() Download = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link Download}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (download) keeps working. Must stay AFTER Download: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() download = this.Download;\n @Output() Print = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link Print}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (print) keeps working. Must stay AFTER Print: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() print = this.Print;\n @Output() PrevPage = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link PrevPage}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (prevPage) keeps working. Must stay AFTER PrevPage: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() prevPage = this.PrevPage;\n @Output() NextPage = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link NextPage}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (nextPage) keeps working. Must stay AFTER NextPage: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() nextPage = this.NextPage;\n /** Emits the validated target page number when the user edits the page input. */\n @Output() PageChange = new EventEmitter<number>();\n\n /**\n * @deprecated Use {@link PageChange}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (pageChange) keeps working. Must stay AFTER PageChange: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() pageChange = this.PageChange;\n @Output() ZoomIn = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link ZoomIn}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (zoomIn) keeps working. Must stay AFTER ZoomIn: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() zoomIn = this.ZoomIn;\n @Output() ZoomOut = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link ZoomOut}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (zoomOut) keeps working. Must stay AFTER ZoomOut: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() zoomOut = this.ZoomOut;\n /** Emitted when the user clicks the zoom-level badge to reset to 100%. */\n @Output() ZoomReset = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link ZoomReset}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (zoomReset) keeps working. Must stay AFTER ZoomReset: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() zoomReset = this.ZoomReset;\n\n public OnPageInputChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n const value = parseInt(input.value, 10);\n if (!isNaN(value) && value >= 1 && value <= this.TotalPages) {\n this.PageChange.emit(value);\n } else {\n // Snap back to current valid page\n input.value = String(this.CurrentPage);\n }\n }\n\n /** @deprecated Use {@link OnPageInputChange}. */\n public onPageInputChange(event: Event): void {\n return this.OnPageInputChange(event);\n }\n}\n"]}
|
|
@@ -14,7 +14,11 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
export declare class AudioArtifactViewerComponent extends BaseArtifactViewerPluginComponent implements OnInit {
|
|
15
15
|
private readonly fileService;
|
|
16
16
|
private readonly cdr;
|
|
17
|
-
|
|
17
|
+
AudioUrl: string;
|
|
18
|
+
/** @deprecated Use {@link AudioUrl}. */
|
|
19
|
+
get audioUrl(): string;
|
|
20
|
+
/** @deprecated Use {@link AudioUrl}. */
|
|
21
|
+
set audioUrl(value: string);
|
|
18
22
|
errorMessage: string;
|
|
19
23
|
/**
|
|
20
24
|
* Single-track input for the generic {@link MJMediaPlayerComponent}. Rebuilt whenever
|
|
@@ -33,8 +37,12 @@ export declare class AudioArtifactViewerComponent extends BaseArtifactViewerPlug
|
|
|
33
37
|
static CanHandlePreview(artifactTypeName: string, contentType?: string): boolean;
|
|
34
38
|
get hasDisplayContent(): boolean;
|
|
35
39
|
ngOnInit(): Promise<void>;
|
|
40
|
+
OnMediaError(): void;
|
|
41
|
+
/** @deprecated Use {@link OnMediaError}. */
|
|
36
42
|
onMediaError(): void;
|
|
37
43
|
/** Fired when the generic player reaches the end of the track. No-op affordance hook. */
|
|
44
|
+
OnMediaEnded(): void;
|
|
45
|
+
/** @deprecated Use {@link OnMediaEnded}. */
|
|
38
46
|
onMediaEnded(): void;
|
|
39
47
|
GetCurrentStateSnapshot(): DataSnapshot | null;
|
|
40
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<AudioArtifactViewerComponent, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/audio-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,OAAO,EAA0B,UAAU,EAAE,MAAM,iCAAiC,CAAC;;AAErF;;;;;;GAMG;AACH,qBA0Da,4BAA6B,SAAQ,iCAAkC,YAAW,MAAM;IACjG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAE1C,QAAQ,SAAM;
|
|
1
|
+
{"version":3,"file":"audio-artifact-viewer.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/plugins/audio-artifact-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAC;AAE9F,OAAO,EAA0B,UAAU,EAAE,MAAM,iCAAiC,CAAC;;AAErF;;;;;;GAMG;AACH,qBA0Da,4BAA6B,SAAQ,iCAAkC,YAAW,MAAM;IACjG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA+B;IAC3D,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAE1C,QAAQ,SAAM;IAErB,wCAAwC;IACxC,IAAW,QAAQ,WAElB;IACD,wCAAwC;IACxC,IAAW,QAAQ,CAAC,KAAK,QAAA,EAExB;IACM,YAAY,SAAM;IAEzB;;;;OAIG;IACI,WAAW,EAAE,UAAU,EAAE,CAAM;IAEtC,mGAAmG;IACnG,OAAO,CAAC,WAAW;IAcnB;;;OAGG;IACH,gBAAuB,oBAAoB,EAAE,IAAI,CAAC,yBAAyB,CAAC,CAAiC;IAE7G,kGAAkG;WACpF,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO;IAQvF,IAAoB,iBAAiB,IAAI,OAAO,CAE/C;IAEK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBxB,YAAY,IAAI,IAAI;IAM3B,4CAA4C;IACrC,YAAY,IAAI,IAAI;IAI3B,yFAAyF;IAClF,YAAY,IAAI,IAAI;IAI3B,4CAA4C;IACrC,YAAY,IAAI,IAAI;IAIX,uBAAuB,IAAI,YAAY,GAAG,IAAI;yCAjGrD,4BAA4B;2CAA5B,4BAA4B;CA+GxC"}
|
|
@@ -50,7 +50,15 @@ function AudioArtifactViewerComponent_Conditional_3_Template(rf, ctx) { if (rf &
|
|
|
50
50
|
let AudioArtifactViewerComponent = class AudioArtifactViewerComponent extends BaseArtifactViewerPluginComponent {
|
|
51
51
|
fileService = inject(ArtifactFileService);
|
|
52
52
|
cdr = inject(ChangeDetectorRef);
|
|
53
|
-
|
|
53
|
+
AudioUrl = '';
|
|
54
|
+
/** @deprecated Use {@link AudioUrl}. */
|
|
55
|
+
get audioUrl() {
|
|
56
|
+
return this.AudioUrl;
|
|
57
|
+
}
|
|
58
|
+
/** @deprecated Use {@link AudioUrl}. */
|
|
59
|
+
set audioUrl(value) {
|
|
60
|
+
this.AudioUrl = value;
|
|
61
|
+
}
|
|
54
62
|
errorMessage = '';
|
|
55
63
|
/**
|
|
56
64
|
* Single-track input for the generic {@link MJMediaPlayerComponent}. Rebuilt whenever
|
|
@@ -60,7 +68,7 @@ let AudioArtifactViewerComponent = class AudioArtifactViewerComponent extends Ba
|
|
|
60
68
|
MediaTracks = [];
|
|
61
69
|
/** Set the resolved URL and recompute the single-element {@link MediaTracks} array in lockstep. */
|
|
62
70
|
setAudioUrl(url) {
|
|
63
|
-
this.
|
|
71
|
+
this.AudioUrl = url;
|
|
64
72
|
this.MediaTracks = url
|
|
65
73
|
? [
|
|
66
74
|
{
|
|
@@ -109,15 +117,23 @@ let AudioArtifactViewerComponent = class AudioArtifactViewerComponent extends Ba
|
|
|
109
117
|
}
|
|
110
118
|
this.cdr.markForCheck();
|
|
111
119
|
}
|
|
112
|
-
|
|
120
|
+
OnMediaError() {
|
|
113
121
|
this.errorMessage = 'The audio could not be played. It may be corrupt or in an unsupported format.';
|
|
114
122
|
this.setAudioUrl('');
|
|
115
123
|
this.cdr.markForCheck();
|
|
116
124
|
}
|
|
125
|
+
/** @deprecated Use {@link OnMediaError}. */
|
|
126
|
+
onMediaError() {
|
|
127
|
+
return this.OnMediaError();
|
|
128
|
+
}
|
|
117
129
|
/** Fired when the generic player reaches the end of the track. No-op affordance hook. */
|
|
118
|
-
|
|
130
|
+
OnMediaEnded() {
|
|
119
131
|
// Playback finished — nothing to persist for a one-shot artifact viewer.
|
|
120
132
|
}
|
|
133
|
+
/** @deprecated Use {@link OnMediaEnded}. */
|
|
134
|
+
onMediaEnded() {
|
|
135
|
+
return this.OnMediaEnded();
|
|
136
|
+
}
|
|
121
137
|
GetCurrentStateSnapshot() {
|
|
122
138
|
if (!this.artifactVersion) {
|
|
123
139
|
return null;
|