[AAE-6165] Add capability in the Attach File of displaying metadata fields in addition to file name (#7324)

* [AAE-6165] Add capability in the Attach File of displaying metadata fields in addition to file name

* Minor css styling adjustments

* [AAE-6165] Changes done for date datatype and table css

* [AAE-6165] Changes done as per the comments

* [AAE-6165] Changes done as per comments on PR

* Resolved failing lints

* Updated CSS for attach file widget

* Updated css

* Updated UT

* Resolved e2e failures

* Resolved e2e errors

Co-authored-by: amohammedalfresco <abdul.mohammed@alfresco.com>
This commit is contained in:
Sushmitha V
2021-10-31 23:40:57 +05:30
committed by GitHub
parent 1467b6de26
commit f14d333281
15 changed files with 452 additions and 73 deletions

View File

@@ -0,0 +1,26 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* tslint:disable:component-selector */
export interface DisplayableCMProperties {
name?: string;
prefixedName?: string;
title?: string;
dataType?: string;
defaultValue?: string;
}

View File

@@ -17,6 +17,7 @@
/* tslint:disable:component-selector */
import { DisplayableCMProperties } from './displayable-cm-properties.model';
import { FormFieldFileSource } from './form-field-file-source';
export interface FormFieldMetadata {
@@ -35,4 +36,5 @@ export interface FormFieldMetadata {
retrieveMetadata?: boolean,
remove?: boolean
};
displayableCMProperties?: DisplayableCMProperties[];
}

View File

@@ -42,6 +42,7 @@
"REMOVE_FILE": "Remove",
"UPLOAD": "UPLOAD",
"REQUIRED": "*Required",
"FILE_NAME": "File Name",
"NO_FILE_ATTACHED" : "No file attached",
"VALIDATOR": {
"INVALID_NUMBER": "Use a different number format",