+
- {{fileInfo}
+ {{fileInfo}}
}
Date: Fri, 21 Jun 2024 17:33:01 +0200
Subject: [PATCH 4/5] fix after comments
---
.../app/pages/file-upload-page/file-upload-page.component.html | 1 +
.../app/pages/file-upload-page/file-upload-page.component.ts | 2 ++
2 files changed, 3 insertions(+)
diff --git a/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.html b/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.html
index 24ba90a1..466e8c56 100644
--- a/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.html
+++ b/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.html
@@ -22,6 +22,7 @@ File upload component with the dependency on selected
+
File upload component with extra info
diff --git a/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.ts b/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.ts
index 243607d2..7d028d3c 100644
--- a/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.ts
+++ b/projects/composition/src/app/pages/file-upload-page/file-upload-page.component.ts
@@ -29,6 +29,7 @@ import { ComponentDocsViewerComponent } from '../../components/component-docs-vi
})
export class FileUploadPageComponent {
componentData = ComponentData;
+
fileUploadOptions: CpsButtonToggleOption[] = [
{ label: 'JPG image', value: '.jpg' },
{ label: 'PDF document', value: '.pdf' },
@@ -36,6 +37,7 @@ export class FileUploadPageComponent {
];
selectedFileUploadType: CpsButtonToggleOption = this.fileUploadOptions[0];
+
fileInfo: string =
'The file should be a small sample file to infer the schema, which will be shown in the next step';
From 0076dd62a4702ec732953c94df488b92f9a2ecf4 Mon Sep 17 00:00:00 2001
From: Oleksandra Kalinina <946369+korel-san@users.noreply.github.com>
Date: Mon, 24 Jun 2024 07:15:32 +0200
Subject: [PATCH 5/5] fix add onChange interface to CpsFileUploadComponent
---
.../components/cps-file-upload/cps-file-upload.component.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/projects/cps-ui-kit/src/lib/components/cps-file-upload/cps-file-upload.component.ts b/projects/cps-ui-kit/src/lib/components/cps-file-upload/cps-file-upload.component.ts
index 61ad7363..ad8f4f8d 100644
--- a/projects/cps-ui-kit/src/lib/components/cps-file-upload/cps-file-upload.component.ts
+++ b/projects/cps-ui-kit/src/lib/components/cps-file-upload/cps-file-upload.component.ts
@@ -3,6 +3,7 @@ import {
Component,
EventEmitter,
Input,
+ OnChanges,
OnInit,
Output,
SimpleChanges
@@ -23,7 +24,7 @@ import { CpsProgressLinearComponent } from '../cps-progress-linear/cps-progress-
templateUrl: './cps-file-upload.component.html',
styleUrls: ['./cps-file-upload.component.scss']
})
-export class CpsFileUploadComponent implements OnInit {
+export class CpsFileUploadComponent implements OnInit, OnChanges {
/**
* Expected extensions of a file to be uploaded. E.g. 'doc or .doc'.
* @group Props