@alfresco/adf-core 8.4.0-18877737226 → 8.4.0-18878438842

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.
@@ -14,13 +14,11 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { ContainerColumnModel } from './container-column.model';
18
- export declare class ContainerRowModel {
19
- id: string;
20
- isInitial: boolean;
21
- columns: ContainerColumnModel[];
22
- size: number;
23
- colspan: number;
24
- rowspan: number;
25
- constructor(isInitial?: boolean);
17
+ import { OnInit } from '@angular/core';
18
+ import * as i0 from "@angular/core";
19
+ export declare class FrontChannelLogoutComponent implements OnInit {
20
+ private readonly authService;
21
+ ngOnInit(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrontChannelLogoutComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FrontChannelLogoutComponent, "ng-component", never, {}, {}, never, never, true, never>;
26
24
  }
@@ -1,19 +1,18 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
+ import { FormRulesManager } from '../models/form-rules.model';
2
3
  import { FormService } from '../services/form.service';
3
4
  import { FormFieldModelRenderMiddleware } from './middlewares/middleware';
4
5
  import { ContainerModel, FormFieldModel, FormModel, TabModel } from './widgets';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class FormRendererComponent<T> implements OnInit, OnDestroy {
8
+ formService: FormService;
9
+ private formRulesManager;
7
10
  private middlewareServices?;
8
- readonly formService: FormService;
9
- private readonly formRulesManager;
10
- private readonly dialog;
11
- private cdr;
12
11
  formDefinition: FormModel;
13
12
  readOnly: boolean;
14
13
  debugMode: boolean;
15
14
  fields: FormFieldModel[];
16
- constructor(middlewareServices?: FormFieldModelRenderMiddleware[]);
15
+ constructor(formService: FormService, formRulesManager: FormRulesManager<T>, middlewareServices?: FormFieldModelRenderMiddleware[]);
17
16
  ngOnInit(): void;
18
17
  ngOnDestroy(): void;
19
18
  hasTabs(): boolean;
@@ -27,7 +26,6 @@ export declare class FormRendererComponent<T> implements OnInit, OnDestroy {
27
26
  */
28
27
  getContainerFields(content: ContainerModel): FormFieldModel[];
29
28
  private getMaxColumnFieldSize;
30
- displayDialogToRemoveRow(field: FormFieldModel, rowIndex: number): void;
31
29
  /**
32
30
  * Calculate the column width based on the numberOfColumns and current field's colspan property
33
31
  *
@@ -36,6 +34,6 @@ export declare class FormRendererComponent<T> implements OnInit, OnDestroy {
36
34
  */
37
35
  getColumnWidth(container: ContainerModel): string;
38
36
  private runMiddlewareServices;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<FormRendererComponent<any>, [{ optional: true; }]>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormRendererComponent<any>, [null, null, { optional: true; }]>;
40
38
  static ɵcmp: i0.ɵɵComponentDeclaration<FormRendererComponent<any>, "adf-form-renderer", never, { "formDefinition": { "alias": "formDefinition"; "required": true; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, {}, never, never, true, never>;
41
39
  }
@@ -97,30 +97,6 @@
97
97
  padding-left: 3px;
98
98
  padding-right: 3px;
99
99
  }
100
-
101
- &-remove-row-button {
102
- margin-top: 20px;
103
-
104
- #{ms.$mat-icon} {
105
- display: flex;
106
- justify-content: center;
107
- align-items: center;
108
- font-size: 20px;
109
- }
110
- }
111
-
112
- &-container {
113
- padding: 0 10px;
114
-
115
- &-label {
116
- margin: 5px 0 5px -10px;
117
- }
118
-
119
- &-multiple {
120
- border-bottom: 1px solid rgba(0, 0, 0, 0.54);
121
- margin-bottom: 25px;
122
- }
123
- }
124
100
  }
125
101
 
126
102
  @include flex.layout-bp(lt-md) {
@@ -1,20 +1,54 @@
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 { CurrencyPipe } from '@angular/common';
1
18
  import { OnInit, InjectionToken } from '@angular/core';
2
19
  import { FormService } from '../../../services/form.service';
3
20
  import { WidgetComponent } from '../widget.component';
21
+ import { Observable } from 'rxjs';
4
22
  import * as i0 from "@angular/core";
5
23
  export interface AmountWidgetSettings {
6
24
  showReadonlyPlaceholder: boolean;
25
+ enableDisplayBasedOnLocale: boolean;
7
26
  }
8
- export declare const ADF_AMOUNT_SETTINGS: InjectionToken<AmountWidgetSettings>;
27
+ export declare const ADF_AMOUNT_SETTINGS: InjectionToken<AmountWidgetSettings | Observable<AmountWidgetSettings>>;
9
28
  export declare class AmountWidgetComponent extends WidgetComponent implements OnInit {
10
29
  formService: FormService;
11
- private settings;
30
+ private currencyPipe;
12
31
  static DEFAULT_CURRENCY: string;
13
32
  private showPlaceholder;
33
+ amountWidgetValue: string;
14
34
  currency: string;
35
+ currencyDisplay: string | boolean;
36
+ decimalProperty: string;
37
+ enableDisplayBasedOnLocale: boolean;
38
+ locale: string;
39
+ notShowDecimalDigits: string;
40
+ showDecimalDigits: string;
41
+ showReadonlyPlaceholder: boolean;
42
+ valueAsNumber: number;
15
43
  get placeholder(): string;
16
- constructor(formService: FormService, settings: AmountWidgetSettings);
44
+ constructor(formService: FormService, settings: Observable<AmountWidgetSettings> | AmountWidgetSettings, currencyPipe: CurrencyPipe);
17
45
  ngOnInit(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AmountWidgetComponent, [null, { optional: true; }]>;
46
+ amountWidgetOnBlur(): void;
47
+ amountWidgetOnFocus(): void;
48
+ getLocale(): string;
49
+ onFieldChangedAmountWidget(): void;
50
+ setInitialValues(): void;
51
+ updateSettingsBasedProperties(data: AmountWidgetSettings): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<AmountWidgetComponent, [null, { optional: true; }, null]>;
19
53
  static ɵcmp: i0.ɵɵComponentDeclaration<AmountWidgetComponent, "amount-widget", never, {}, {}, never, never, true, never>;
20
54
  }
@@ -16,11 +16,9 @@
16
16
  */
17
17
  import { FormFieldModel } from './form-field.model';
18
18
  export declare class ContainerColumnModel {
19
- id: string;
20
19
  size: number;
21
20
  fields: FormFieldModel[];
22
21
  colspan: number;
23
22
  rowspan: number;
24
- constructor();
25
23
  hasFields(): boolean;
26
24
  }
@@ -18,7 +18,6 @@ import { MaybeReactiveFormWidget, ReactiveFormWidget } from '../reactive-widget.
18
18
  export declare class FormFieldTypes {
19
19
  static CONTAINER: string;
20
20
  static GROUP: string;
21
- static REPEATABLE_SECTION: string;
22
21
  static SECTION: string;
23
22
  static DYNAMIC_TABLE: string;
24
23
  static TEXT: string;
@@ -60,5 +59,4 @@ export declare class FormFieldTypes {
60
59
  static isConstantValueType(type: string): boolean;
61
60
  static isContainerType(type: string): boolean;
62
61
  static isSectionType(type: string): boolean;
63
- static isRepeatableSectionType(type: string): boolean;
64
62
  }
@@ -23,17 +23,9 @@ import { FormWidgetModel } from './form-widget.model';
23
23
  import { FormFieldRule } from './form-field-rule';
24
24
  import { VariableConfig } from './form-field-variable-options';
25
25
  import { DataColumn } from '../../../../datatable/data/data-column.model';
26
- import { ContainerRowModel } from './container-row.model';
27
26
  export type FieldOptionType = 'rest' | 'manual' | 'variable';
28
27
  export type FieldSelectionType = 'single' | 'multiple';
29
28
  export type FieldAlignmentType = 'vertical' | 'horizontal';
30
- interface RepeatableSectionModel {
31
- id: string;
32
- uid: string;
33
- fields: FormFieldModel[];
34
- rowIndex: number;
35
- value?: any;
36
- }
37
29
  export declare class FormFieldModel extends FormWidgetModel {
38
30
  private _value;
39
31
  private _readOnly;
@@ -89,11 +81,9 @@ export declare class FormFieldModel extends FormWidgetModel {
89
81
  schemaDefinition: DataColumn[];
90
82
  externalProperty?: string;
91
83
  style?: string;
92
- parent?: RepeatableSectionModel;
93
84
  numberOfColumns: number;
94
85
  fields: FormFieldModel[];
95
86
  columns: ContainerColumnModel[];
96
- rows: ContainerRowModel[];
97
87
  emptyOption: FormFieldOption;
98
88
  validationSummary: ErrorMessageModel;
99
89
  get value(): any;
@@ -108,7 +98,7 @@ export declare class FormFieldModel extends FormWidgetModel {
108
98
  markAsValid(): void;
109
99
  validate(): boolean;
110
100
  private isFieldValidatable;
111
- constructor(form: any, json?: any, parent?: RepeatableSectionModel);
101
+ constructor(form: any, json?: any);
112
102
  private getEmptyOption;
113
103
  private setValueForReadonlyType;
114
104
  private getDefaultDateFormat;
@@ -116,21 +106,9 @@ export declare class FormFieldModel extends FormWidgetModel {
116
106
  private getFieldNameWithLabel;
117
107
  private getProcessVariableValue;
118
108
  private containerFactory;
119
- private repeatableSectionFactory;
120
- private getNumberOfRows;
121
- private createRow;
122
- private createColumns;
123
- private getUniqueId;
124
- private updateChildrenFieldsRowIndex;
125
- private createInitialValue;
126
109
  private updateContainerColspan;
127
- addRow(fields: any, form: any): void;
128
- private shouldAddRow;
129
- removeRow(index: number): void;
130
- private shouldRemoveRow;
131
- parseValue(json: any, initialValue?: any): any;
110
+ parseValue(json: any): any;
132
111
  updateForm(): void;
133
- private updateRepeatableSectionValue;
134
112
  /**
135
113
  * Check if the field type is invalid, requires a type to be a `container`
136
114
  *
@@ -151,4 +129,3 @@ export declare class FormFieldModel extends FormWidgetModel {
151
129
  private isDateTimeField;
152
130
  private isCheckboxField;
153
131
  }
154
- export {};
@@ -48,6 +48,5 @@ export * from './base-viewer/base-viewer.widget';
48
48
  export * from './text/text-mask.component';
49
49
  export * from './display-text';
50
50
  export * from './header';
51
- export * from './repeat/repeat.widget';
52
51
  export declare const WIDGET_DIRECTIVES: readonly [typeof UnknownWidgetComponent, typeof TextWidgetComponent, typeof NumberWidgetComponent, typeof DecimalWidgetComponent, typeof CheckboxWidgetComponent, typeof MultilineTextWidgetComponentComponent, typeof HyperlinkWidgetComponent, typeof DisplayTextWidgetComponent, typeof DateWidgetComponent, typeof AmountWidgetComponent, typeof ErrorWidgetComponent, typeof DateTimeWidgetComponent, typeof JsonWidgetComponent, typeof BaseViewerWidgetComponent];
53
52
  export declare const MASK_DIRECTIVE: readonly [typeof InputMaskDirective];
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.4.0-18877737226",
4
+ "version": "8.4.0-18878438842",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "repository": {
7
7
  "type": "git",
@@ -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.4.0-18877737226",
67
- "@alfresco/adf-extensions": ">=8.4.0-18877737226",
66
+ "@alfresco/js-api": ">=9.4.0-18878438842",
67
+ "@alfresco/adf-extensions": ">=8.4.0-18878438842",
68
68
  "minimatch": ">=10.0.0",
69
69
  "pdfjs-dist": ">=3.3.122"
70
70
  },
@@ -1,10 +0,0 @@
1
- import { ContainerModel } from '../core/container.model';
2
- import * as i0 from "@angular/core";
3
- export declare class RepeatWidgetComponent {
4
- element: ContainerModel;
5
- isEditor: boolean;
6
- addRow(): void;
7
- getAddedRowsCount(): number;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<RepeatWidgetComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<RepeatWidgetComponent, "adf-repeat-widget", never, { "element": { "alias": "element"; "required": false; }; "isEditor": { "alias": "isEditor"; "required": false; }; }, {}, never, ["*"], true, never>;
10
- }
@@ -1,25 +0,0 @@
1
- .adf-container-widget {
2
- &-repeat__text {
3
- border-bottom: 1px solid rgba(0, 0, 0, 0.87);
4
- padding-bottom: 10px;
5
- cursor: default;
6
- user-select: none;
7
- font-size: var(--adf-header-font-size);
8
- font-weight: var(--adf-header-font-weight);
9
- color: var(--adf-header-color);
10
- line-height: normal;
11
-
12
- &.adf-collapsible {
13
- cursor: pointer;
14
- }
15
- }
16
-
17
- &-row-action {
18
- margin-left: 10px;
19
- }
20
-
21
- &-row-limit {
22
- color: rgba(0, 0, 0, 0.67);
23
- font-size: 12px;
24
- }
25
- }