@alfresco/adf-core 8.1.0-16877609768 → 8.2.0-17208777081

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 (58) hide show
  1. package/bundles/assets/adf-core/i18n/de.json +13 -1
  2. package/bundles/assets/adf-core/i18n/en.json +13 -1
  3. package/bundles/assets/adf-core/i18n/es.json +13 -1
  4. package/bundles/assets/adf-core/i18n/fr.json +13 -1
  5. package/bundles/assets/adf-core/i18n/it.json +13 -1
  6. package/bundles/assets/adf-core/i18n/pl.json +14 -2
  7. package/bundles/assets/adf-core/i18n/pt.json +13 -1
  8. package/feature-flags/lib/components/flags/flags.component.d.ts +2 -2
  9. package/fesm2022/adf-core.mjs +667 -1927
  10. package/fesm2022/adf-core.mjs.map +1 -1
  11. package/fesm2022/alfresco-adf-core-api.mjs +1 -1
  12. package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
  13. package/fesm2022/alfresco-adf-core-auth.mjs.map +1 -1
  14. package/fesm2022/alfresco-adf-core-breadcrumbs.mjs.map +1 -1
  15. package/fesm2022/alfresco-adf-core-feature-flags.mjs.map +1 -1
  16. package/fesm2022/alfresco-adf-core-shell.mjs.map +1 -1
  17. package/lib/app-config/public-api.d.ts +0 -2
  18. package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +13 -0
  19. package/lib/auth/interfaces/authentication-service.interface.d.ts +9 -4
  20. package/lib/auth/oidc/auth.module.d.ts +10 -13
  21. package/lib/{mock/form/form-definition-visibility.mock.d.ts → auth/oidc/auth.routes.d.ts} +2 -2
  22. package/lib/auth/oidc/oidc-authentication.service.d.ts +15 -5
  23. package/lib/auth/oidc/public-api.d.ts +0 -1
  24. package/lib/auth/services/authentication.service.d.ts +12 -2
  25. package/lib/auth/services/base-authentication.service.d.ts +5 -1
  26. package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +4 -0
  27. package/lib/core.module.d.ts +11 -0
  28. package/lib/datatable/components/datatable/datatable.component.scss +2 -1
  29. package/lib/form/components/form-base.component.d.ts +19 -7
  30. package/lib/form/components/form-renderer.component.scss +27 -9
  31. package/lib/form/components/form-section/form-section.component.scss +23 -1
  32. package/lib/form/components/widgets/amount/amount.widget.scss +1 -10
  33. package/lib/form/components/widgets/core/form-outcome.model.d.ts +3 -3
  34. package/lib/form/components/widgets/core/form.model.d.ts +4 -4
  35. package/lib/form/components/widgets/date-time/date-time.widget.scss +1 -2
  36. package/lib/form/components/widgets/display-text/display-text.widget.scss +2 -0
  37. package/lib/form/components/widgets/text/text-mask.component.d.ts +1 -0
  38. package/lib/{mock/form/form.component.mock.d.ts → landing-page/index.d.ts} +1 -1
  39. package/lib/landing-page/provider.d.ts +24 -0
  40. package/lib/{mock/form/form-definition-readonly.mock.d.ts → landing-page/public-api.d.ts} +1 -1
  41. package/lib/mock/data-column.mock.d.ts +0 -2
  42. package/lib/mock/form/widget-visibility.service.mock.d.ts +0 -5
  43. package/lib/mock/public-api.d.ts +0 -4
  44. package/lib/{mock/form/form-definition.mock.d.ts → testing/app-config-testing.d.ts} +8 -3
  45. package/lib/testing/index.d.ts +1 -1
  46. package/lib/testing/noop-auth.module.d.ts +31 -4
  47. package/lib/testing/unit-testing-utils.d.ts +1 -10
  48. package/lib/translation/provide-i18n.d.ts +1 -1
  49. package/lib/viewer/components/img-viewer/img-viewer.component.d.ts +2 -2
  50. package/lib/viewer/components/viewer.component.d.ts +6 -3
  51. package/lib/viewer/components/viewer.component.scss +12 -0
  52. package/lib/viewer/services/rendering-queue.services.d.ts +2 -2
  53. package/package.json +7 -7
  54. package/public-api.d.ts +1 -0
  55. package/lib/app-config/app-config.module.d.ts +0 -8
  56. package/lib/app-config/debug-app-config.service.d.ts +0 -10
  57. package/lib/auth/oidc/auth-routing.module.d.ts +0 -6
  58. package/lib/testing/core.testing.module.d.ts +0 -11
@@ -94,7 +94,7 @@ export declare class ViewerComponent<T> implements OnDestroy, OnInit, OnChanges
94
94
  viewerExtensions: TemplateRef<any>;
95
95
  /** Identifier of a node that is opened by the viewer. */
96
96
  nodeId: string;
97
- /** Original node mime type, should be provided when renditiona mime type is different. */
97
+ /** Original node mime type, should be provided when renditions mime type is different. */
98
98
  nodeMimeType: string;
99
99
  /** Custom error message to be displayed in the viewer. */
100
100
  customError: string;
@@ -135,10 +135,13 @@ export declare class ViewerComponent<T> implements OnDestroy, OnInit, OnChanges
135
135
  private _fileNameWithoutExtension;
136
136
  private _fileExtension;
137
137
  displayName: string;
138
+ displayTitle: string;
138
139
  downloadPromptTimer: number;
139
140
  downloadPromptReminderTimer: number;
140
141
  mimeTypeIconUrl: string;
141
142
  private readonly destroyRef;
143
+ /** Override Content title. */
144
+ set title(title: string);
142
145
  /** Override Content filename. */
143
146
  set fileName(fileName: string);
144
147
  get fileName(): string;
@@ -163,7 +166,7 @@ export declare class ViewerComponent<T> implements OnDestroy, OnInit, OnChanges
163
166
  enterFullScreen(): void;
164
167
  onSubmitFile(newImageBlob: Blob): void;
165
168
  ngOnDestroy(): void;
166
- getDisplayFileName(): string;
169
+ getDisplayTruncatedValue(value: string): string;
167
170
  private configureAndInitDownloadPrompt;
168
171
  private configureDownloadPromptProperties;
169
172
  private initDownloadPrompt;
@@ -172,5 +175,5 @@ export declare class ViewerComponent<T> implements OnDestroy, OnInit, OnChanges
172
175
  private showDownloadPrompt;
173
176
  private resetLoadingSpinner;
174
177
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewerComponent<any>, never>;
175
- 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; }; "customError": { "alias": "customError"; "required": false; }; "showToolbarDividers": { "alias": "showToolbarDividers"; "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>;
178
+ 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; }; "customError": { "alias": "customError"; "required": false; }; "showToolbarDividers": { "alias": "showToolbarDividers"; "required": false; }; "title": { "alias": "title"; "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>;
176
179
  }
@@ -53,6 +53,7 @@
53
53
  }
54
54
  }
55
55
 
56
+ &__title-display-name-container,
56
57
  &__display-name {
57
58
  font-size: var(--theme-subheading-2-font-size);
58
59
  line-height: 1.5;
@@ -61,6 +62,17 @@
61
62
  white-space: nowrap;
62
63
  }
63
64
 
65
+ &__display-name-value,
66
+ &__title-value {
67
+ margin-top: 0;
68
+ margin-bottom: 0;
69
+ text-align: left;
70
+ }
71
+
72
+ &__display-name-value {
73
+ font-size: var(--theme-body-1-font-size);
74
+ }
75
+
64
76
  &-container {
65
77
  .adf-viewer-layout-content {
66
78
  @extend .adf-full-screen;
@@ -15,10 +15,10 @@ export declare class RenderingQueueServices {
15
15
  pdfViewer: any;
16
16
  pdfThumbnailViewer: any;
17
17
  onIdle: any;
18
- highestPriorityPage: any;
18
+ highestPriorityPage: string | null;
19
19
  idleTimeout: any;
20
20
  printing: any;
21
- isThumbnailViewEnabled: any;
21
+ isThumbnailViewEnabled: boolean;
22
22
  /**
23
23
  * Set the instance of the PDF Viewer
24
24
  *
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-16877609768",
4
+ "version": "8.2.0-17208777081",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,14 +26,14 @@
26
26
  "types": "./index.d.ts",
27
27
  "default": "./fesm2022/adf-core.mjs"
28
28
  },
29
- "./api": {
30
- "types": "./api/index.d.ts",
31
- "default": "./fesm2022/alfresco-adf-core-api.mjs"
32
- },
33
29
  "./auth": {
34
30
  "types": "./auth/index.d.ts",
35
31
  "default": "./fesm2022/alfresco-adf-core-auth.mjs"
36
32
  },
33
+ "./api": {
34
+ "types": "./api/index.d.ts",
35
+ "default": "./fesm2022/alfresco-adf-core-api.mjs"
36
+ },
37
37
  "./feature-flags": {
38
38
  "types": "./feature-flags/index.d.ts",
39
39
  "default": "./fesm2022/alfresco-adf-core-feature-flags.mjs"
@@ -63,8 +63,8 @@
63
63
  "@angular/router": ">=16.0.0",
64
64
  "@mat-datetimepicker/core": ">=12.0.1",
65
65
  "@ngx-translate/core": ">=16.0.0",
66
- "@alfresco/js-api": ">=9.1.0-16877609768",
67
- "@alfresco/adf-extensions": ">=8.1.0-16877609768",
66
+ "@alfresco/js-api": ">=9.2.0-17208777081",
67
+ "@alfresco/adf-extensions": ">=8.2.0-17208777081",
68
68
  "minimatch": ">=10.0.0",
69
69
  "pdfjs-dist": ">=3.3.122",
70
70
  "ts-morph": ">=20.0.0"
package/public-api.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from './lib/toolbar/index';
23
23
  export * from './lib/header/index';
24
24
  export * from './lib/pagination/index';
25
25
  export * from './lib/login/index';
26
+ export * from './lib/landing-page/index';
26
27
  export * from './lib/language-menu/index';
27
28
  export * from './lib/info-drawer/index';
28
29
  export * from './lib/identity-user-info/index';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./app-config.pipe";
3
- /** @deprecated This module is deprecated, consider importing AppConfigPipe directly */
4
- export declare class AppConfigModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppConfigModule, never, [typeof i1.AppConfigPipe], [typeof i1.AppConfigPipe]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<AppConfigModule>;
8
- }
@@ -1,10 +0,0 @@
1
- import { StorageService } from '../common/services/storage.service';
2
- import { AppConfigService } from './app-config.service';
3
- import * as i0 from "@angular/core";
4
- export declare class DebugAppConfigService extends AppConfigService {
5
- private storage;
6
- constructor(storage: StorageService);
7
- get<T>(key: string, defaultValue?: T): T;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DebugAppConfigService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<DebugAppConfigService>;
10
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AuthRoutingModule {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthRoutingModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<AuthRoutingModule, never, never, never>;
5
- static ɵinj: i0.ɵɵInjectorDeclaration<AuthRoutingModule>;
6
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/platform-browser/animations";
3
- import * as i2 from "../core.module";
4
- import * as i3 from "./noop-translate.module";
5
- import * as i4 from "./noop-auth.module";
6
- /** @deprecated this module is deprecated and will be removed in the future */
7
- export declare class CoreTestingModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CoreTestingModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreTestingModule, never, [typeof i1.NoopAnimationsModule, typeof i2.CoreModule, typeof i3.NoopTranslateModule, typeof i4.NoopAuthModule], never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<CoreTestingModule>;
11
- }