diff --git a/lib/core/form/components/widgets/core/displayable-cm-properties.model.ts b/lib/core/form/components/widgets/core/displayable-cm-properties.model.ts new file mode 100644 index 0000000000..800b176e2b --- /dev/null +++ b/lib/core/form/components/widgets/core/displayable-cm-properties.model.ts @@ -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; +} diff --git a/lib/core/form/components/widgets/core/form-field-metadata.ts b/lib/core/form/components/widgets/core/form-field-metadata.ts index 77156f4bf9..ea3296566a 100644 --- a/lib/core/form/components/widgets/core/form-field-metadata.ts +++ b/lib/core/form/components/widgets/core/form-field-metadata.ts @@ -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[]; } diff --git a/lib/core/i18n/en.json b/lib/core/i18n/en.json index c474855efc..72679d0d1e 100644 --- a/lib/core/i18n/en.json +++ b/lib/core/i18n/en.json @@ -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", diff --git a/lib/process-services-cloud/karma.conf.js b/lib/process-services-cloud/karma.conf.js index a3c8a4475c..d8cb905717 100644 --- a/lib/process-services-cloud/karma.conf.js +++ b/lib/process-services-cloud/karma.conf.js @@ -37,7 +37,10 @@ module.exports = function (config) { '/assets/adf-core/i18n/en-GB.json': '/base/lib/core/i18n/en.json', '/assets/adf-process-services-cloud/i18n/en.json': '/base/lib/process-services-cloud/lib/i18n/en.json', '/assets/adf-process-services-cloud/i18n/en-GB.json': '/base/lib/process-services-cloud/lib/i18n/en.json', - '/app.config.json': '/base/lib/config/app.config.json' + '/app.config.json': '/base/lib/config/app.config.json', + '/base/lib/process-services-cloud/assets/images/ft_ic_raster_image.svg': '/base/lib/process-services-cloud/assets/images/ft_ic_raster_image.svg', + '/base/lib/process-services-cloud/assets/images/ft_ic_miscellaneous.svg': '/base/lib/process-services-cloud/assets/images/ft_ic_miscellaneous.svg', + '/base/lib/process-services-cloud/assets/images/ft_ic_pdf.svg': '/base/lib/process-services-cloud/assets/images/ft_ic_pdf.svg', }, plugins: [ require('karma-jasmine-ajax'), diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.html b/lib/process-services-cloud/src/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.html index 221c659182..e307bf59ea 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.html +++ b/lib/process-services-cloud/src/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.html @@ -1,64 +1,40 @@ -