@alfresco/adf-core 8.4.0-18877737226 → 8.4.0-18902816026
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/bundles/assets/adf-core/i18n/en.json +2 -13
- package/fesm2022/adf-core.mjs +127 -332
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/form/components/form-renderer.component.d.ts +5 -7
- package/lib/form/components/form-renderer.component.scss +0 -24
- package/lib/form/components/widgets/core/container-column.model.d.ts +0 -2
- package/lib/form/components/widgets/core/form-field-types.d.ts +0 -2
- package/lib/form/components/widgets/core/form-field.model.d.ts +2 -25
- package/lib/form/components/widgets/index.d.ts +0 -1
- package/package.json +3 -3
- package/lib/form/components/widgets/core/container-row.model.d.ts +0 -26
- package/lib/form/components/widgets/repeat/repeat.widget.d.ts +0 -10
- package/lib/form/components/widgets/repeat/repeat.widget.scss +0 -25
|
@@ -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) {
|
|
@@ -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
|
|
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
|
-
|
|
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-
|
|
4
|
+
"version": "8.4.0-18902816026",
|
|
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-
|
|
67
|
-
"@alfresco/adf-extensions": ">=8.4.0-
|
|
66
|
+
"@alfresco/js-api": ">=9.4.0-18902816026",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.4.0-18902816026",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122"
|
|
70
70
|
},
|
|
@@ -1,26 +0,0 @@
|
|
|
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 { 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);
|
|
26
|
-
}
|
|
@@ -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
|
-
}
|