@alfresco/adf-core 8.1.0-15157222665 → 8.1.0-15164245071

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.
@@ -65,7 +65,6 @@ export declare abstract class FormBaseComponent {
65
65
  * Custom style that is backed by the form.theme.
66
66
  */
67
67
  formStyle: string;
68
- get hasVisibleOutcomes(): boolean;
69
68
  get form(): FormModel;
70
69
  /** Underlying form model instance. */
71
70
  set form(form: FormModel);
@@ -0,0 +1,24 @@
1
+ /*!
2
+ * @license
3
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { FormOutcomeModel } from '../widgets';
18
+ interface IsOutcomeButtonVisibleProps {
19
+ isFormReadOnly: boolean;
20
+ showCompleteButton: boolean;
21
+ showSaveButton: boolean;
22
+ }
23
+ export declare const isOutcomeButtonVisible: (outcome: FormOutcomeModel, props: IsOutcomeButtonVisibleProps) => boolean;
24
+ export {};
@@ -130,6 +130,7 @@ export declare class FormModel implements ProcessFormModel {
130
130
  getFormFields(filterTypes?: string[]): FormFieldModel[];
131
131
  private processFields;
132
132
  private isContainerField;
133
+ private isFormField;
133
134
  private isSectionField;
134
135
  private handleSectionField;
135
136
  private handleContainerField;
@@ -22,6 +22,7 @@ export * from './components/form-renderer.component';
22
22
  export * from './components/widgets';
23
23
  export * from './components/middlewares/middleware';
24
24
  export * from './components/middlewares/decimal-middleware.service';
25
+ export * from './components/helpers/buttons-visibility';
25
26
  export * from './services/form-rendering.service';
26
27
  export * from './services/form.service';
27
28
  export * from './services/form-validation-service.interface';
@@ -19,9 +19,7 @@ import { EventEmitter, Injector, OnChanges, OnInit, TemplateRef } from '@angular
19
19
  import { MatDialog } from '@angular/material/dialog';
20
20
  import { Track } from '../../models/viewer.model';
21
21
  import { ViewUtilService } from '../../services/view-util.service';
22
- import { BehaviorSubject } from 'rxjs';
23
22
  import * as i0 from "@angular/core";
24
- type ViewerType = 'media' | 'image' | 'pdf' | 'external' | 'text' | 'custom' | 'unknown';
25
23
  export declare class ViewerRenderComponent implements OnChanges, OnInit {
26
24
  private viewUtilService;
27
25
  private extensionService;
@@ -44,6 +42,8 @@ export declare class ViewerRenderComponent implements OnChanges, OnInit {
44
42
  mimeType: string;
45
43
  /** Override Content filename. */
46
44
  fileName: string;
45
+ /** Override loading status */
46
+ isLoading: boolean;
47
47
  /** Enable when where is possible the editing functionalities */
48
48
  readOnly: boolean;
49
49
  /**
@@ -77,8 +77,8 @@ export declare class ViewerRenderComponent implements OnChanges, OnInit {
77
77
  extensionsSupportedByTemplates: string[];
78
78
  extension: string;
79
79
  internalFileName: string;
80
- viewerType: ViewerType;
81
- readonly isLoading$: BehaviorSubject<boolean>;
80
+ viewerType: string;
81
+ isContentReady: boolean;
82
82
  /**
83
83
  * Returns a list of the active Viewer content extensions.
84
84
  *
@@ -97,7 +97,6 @@ export declare class ViewerRenderComponent implements OnChanges, OnInit {
97
97
  constructor(viewUtilService: ViewUtilService, extensionService: AppExtensionService, dialog: MatDialog, injector: Injector);
98
98
  ngOnInit(): void;
99
99
  ngOnChanges(): void;
100
- markAsLoaded(): void;
101
100
  private setUpBlobData;
102
101
  private setUpUrlFile;
103
102
  scrollTop(): void;
@@ -105,9 +104,6 @@ export declare class ViewerRenderComponent implements OnChanges, OnInit {
105
104
  onSubmitFile(newImageBlob: Blob): void;
106
105
  onUnsupportedFile(): void;
107
106
  onClose(): void;
108
- private canBePreviewed;
109
- private setDefaultLoadingState;
110
107
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewerRenderComponent, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<ViewerRenderComponent, "adf-viewer-render", never, { "urlFile": { "alias": "urlFile"; "required": false; }; "blobFile": { "alias": "blobFile"; "required": false; }; "allowFullScreen": { "alias": "allowFullScreen"; "required": false; }; "allowThumbnails": { "alias": "allowThumbnails"; "required": false; }; "thumbnailsTemplate": { "alias": "thumbnailsTemplate"; "required": false; }; "mimeType": { "alias": "mimeType"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "allowedEditActions": { "alias": "allowedEditActions"; "required": false; }; "tracks": { "alias": "tracks"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "viewerTemplateExtensions": { "alias": "viewerTemplateExtensions"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; }, { "extensionChange": "extensionChange"; "submitFile": "submitFile"; "close": "close"; "isSaving": "isSaving"; }, never, never, true, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<ViewerRenderComponent, "adf-viewer-render", never, { "urlFile": { "alias": "urlFile"; "required": false; }; "blobFile": { "alias": "blobFile"; "required": false; }; "allowFullScreen": { "alias": "allowFullScreen"; "required": false; }; "allowThumbnails": { "alias": "allowThumbnails"; "required": false; }; "thumbnailsTemplate": { "alias": "thumbnailsTemplate"; "required": false; }; "mimeType": { "alias": "mimeType"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "allowedEditActions": { "alias": "allowedEditActions"; "required": false; }; "tracks": { "alias": "tracks"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "viewerTemplateExtensions": { "alias": "viewerTemplateExtensions"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; }, { "extensionChange": "extensionChange"; "submitFile": "submitFile"; "close": "close"; "isSaving": "isSaving"; }, never, never, true, never>;
112
109
  }
113
- export {};
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-15157222665",
4
+ "version": "8.1.0-15164245071",
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-15157222665",
79
- "@alfresco/adf-extensions": ">=8.1.0-15157222665",
78
+ "@alfresco/js-api": ">=9.1.0-15164245071",
79
+ "@alfresco/adf-extensions": ">=8.1.0-15164245071",
80
80
  "minimatch": ">=10.0.0",
81
81
  "pdfjs-dist": ">=3.3.122",
82
82
  "ts-morph": ">=20.0.0"