@alfresco/adf-core 8.1.0-13941032876 → 8.1.0-13971437494
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/esm2022/lib/form/components/widgets/base-viewer/base-viewer.widget.mjs +1 -1
- package/esm2022/lib/viewer/components/viewer.component.mjs +20 -5
- package/fesm2022/adf-core.mjs +20 -5
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/viewer/components/viewer.component.d.ts +9 -3
- package/lib/viewer/components/viewer.component.scss +9 -4
- package/package.json +3 -3
|
@@ -27,8 +27,6 @@ export declare class ViewerComponent<T> implements OnDestroy, OnInit, OnChanges
|
|
|
27
27
|
urlFile: string;
|
|
28
28
|
/** Loads a Blob File */
|
|
29
29
|
blobFile: Blob;
|
|
30
|
-
/** Override Content filename. */
|
|
31
|
-
fileName: string;
|
|
32
30
|
/** Hide or show the viewer */
|
|
33
31
|
showViewer: boolean;
|
|
34
32
|
/** Allows `back` navigation */
|
|
@@ -128,10 +126,18 @@ export declare class ViewerComponent<T> implements OnDestroy, OnInit, OnChanges
|
|
|
128
126
|
private closeViewer;
|
|
129
127
|
private keyDown$;
|
|
130
128
|
private isDialogVisible;
|
|
129
|
+
private _fileName;
|
|
130
|
+
private _fileNameWithoutExtension;
|
|
131
|
+
private _fileExtension;
|
|
131
132
|
downloadPromptTimer: number;
|
|
132
133
|
downloadPromptReminderTimer: number;
|
|
133
134
|
mimeTypeIconUrl: string;
|
|
134
135
|
private readonly destroyRef;
|
|
136
|
+
/** Override Content filename. */
|
|
137
|
+
set fileName(fileName: string);
|
|
138
|
+
get fileName(): string;
|
|
139
|
+
get fileExtension(): string;
|
|
140
|
+
get fileNameWithoutExtension(): string;
|
|
135
141
|
constructor(el: ElementRef, dialog: MatDialog, viewUtilsService: ViewUtilService, appConfigService: AppConfigService);
|
|
136
142
|
ngOnChanges(changes: SimpleChanges): void;
|
|
137
143
|
ngOnInit(): void;
|
|
@@ -158,5 +164,5 @@ export declare class ViewerComponent<T> implements OnDestroy, OnInit, OnChanges
|
|
|
158
164
|
clearDownloadPromptTimeouts(): void;
|
|
159
165
|
private showDownloadPrompt;
|
|
160
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewerComponent<any>, never>;
|
|
161
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ViewerComponent<any>, "adf-viewer", never, { "urlFile": { "alias": "urlFile"; "required": false; }; "blobFile": { "alias": "blobFile"; "required": false; }; "
|
|
167
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewerComponent<any>, "adf-viewer", never, { "urlFile": { "alias": "urlFile"; "required": false; }; "blobFile": { "alias": "blobFile"; "required": false; }; "showViewer": { "alias": "showViewer"; "required": false; }; "allowGoBack": { "alias": "allowGoBack"; "required": false; }; "allowFullScreen": { "alias": "allowFullScreen"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "overlayMode": { "alias": "overlayMode"; "required": false; }; "allowNavigate": { "alias": "allowNavigate"; "required": false; }; "canNavigateBefore": { "alias": "canNavigateBefore"; "required": false; }; "canNavigateNext": { "alias": "canNavigateNext"; "required": false; }; "allowLeftSidebar": { "alias": "allowLeftSidebar"; "required": false; }; "allowRightSidebar": { "alias": "allowRightSidebar"; "required": false; }; "showRightSidebar": { "alias": "showRightSidebar"; "required": false; }; "showLeftSidebar": { "alias": "showLeftSidebar"; "required": false; }; "sidebarRightTemplate": { "alias": "sidebarRightTemplate"; "required": false; }; "sidebarLeftTemplate": { "alias": "sidebarLeftTemplate"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "allowedEditActions": { "alias": "allowedEditActions"; "required": false; }; "tracks": { "alias": "tracks"; "required": false; }; "mimeType": { "alias": "mimeType"; "required": false; }; "sidebarRightTemplateContext": { "alias": "sidebarRightTemplateContext"; "required": false; }; "sidebarLeftTemplateContext": { "alias": "sidebarLeftTemplateContext"; "required": false; }; "closeButtonPosition": { "alias": "closeButtonPosition"; "required": false; }; "hideInfoButton": { "alias": "hideInfoButton"; "required": false; }; "viewerExtensions": { "alias": "viewerExtensions"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "nodeMimeType": { "alias": "nodeMimeType"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; }, { "downloadFile": "downloadFile"; "navigateBefore": "navigateBefore"; "navigateNext": "navigateNext"; "showViewerChange": "showViewerChange"; "submitFile": "submitFile"; }, ["toolbar", "sidebar", "mnuOpenWith", "mnuMoreActions", "viewerTemplateExtensions"], ["adf-viewer-toolbar", "adf-viewer-toolbar-actions", "adf-viewer-open-with", "adf-viewer-toolbar-custom-actions", "adf-viewer-more-actions", "adf-viewer-sidebar", "adf-viewer-sidebar"], true, never>;
|
|
162
168
|
}
|
|
@@ -61,12 +61,17 @@
|
|
|
61
61
|
font-weight: normal;
|
|
62
62
|
font-style: normal;
|
|
63
63
|
font-stretch: normal;
|
|
64
|
-
max-width: 400px;
|
|
65
|
-
text-overflow: ellipsis;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
display: inline-block;
|
|
68
64
|
vertical-align: middle;
|
|
69
65
|
color: var(--adf-theme-foreground-text-color);
|
|
66
|
+
|
|
67
|
+
&-without-extension {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
max-width: 400px;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
vertical-align: bottom;
|
|
74
|
+
}
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
&-container {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "8.1.0-
|
|
4
|
+
"version": "8.1.0-13971437494",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@angular/router": ">=16.0.0",
|
|
76
76
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
77
77
|
"@ngx-translate/core": ">=14.0.0",
|
|
78
|
-
"@alfresco/js-api": ">=9.1.0-
|
|
79
|
-
"@alfresco/adf-extensions": ">=8.1.0-
|
|
78
|
+
"@alfresco/js-api": ">=9.1.0-13971437494",
|
|
79
|
+
"@alfresco/adf-extensions": ">=8.1.0-13971437494",
|
|
80
80
|
"minimatch": ">=10.0.0",
|
|
81
81
|
"pdfjs-dist": ">=3.3.122",
|
|
82
82
|
"ts-morph": ">=20.0.0"
|