Skip to content

Commit

Permalink
fix(File Input): Deprecate File Input component. (#3047)
Browse files Browse the repository at this point in the history
* Feat(File Input): Remove file input component

* Fix(File Input): Reomve file input from api-file.ts

* Revert "Feat(File Input): Remove file input component"

This reverts commit 4cbdbee.

* feat(File Input): Deprecate the file input component
  • Loading branch information
manu-kr committed Sep 9, 2020
1 parent 36e98ba commit c2321a8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/docs/src/app/core/api-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export const API_FILES = {
checkbox: ['CheckboxComponent'],
datePicker: ['DatePickerComponent', 'DateFormatParser', 'DateFormatParserDefault', 'FdDate'],
datetimePicker: ['DatetimePickerComponent', 'FdDateTime', 'DateTimeFormatParser', 'DateTimeFormatParserDefault'],
fileInput: ['FileInputComponent', 'FileSelectDirective', 'FileDragndropDirective'],
dropdown: ['PopoverDropdownComponent'],
fileInput: ['FileInputComponent', 'FileInputSelectDirective', 'FileInputDragndropDirective'],
fileUploader: ['FileUploaderComponent', 'FileUploaderSelectDirective', 'FileUploaderDragndropDirective'],
form: [
'FormControlComponent',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<header>File Input</header>
<fd-message-strip [type]="'warning'" [dismissible]="false">
DEPRECATED. File Input does not exist as a Fiori 3 component so it has been deprecated. The inline version successor
of the File Input is <a [routerLink]="'/core/file-uploader'">File Uploader</a> component.
</fd-message-strip>
<description>
A very flexible component that prompts the user for a file. Supports multiple selection, accept only certain
extensions, and more. The aim is to facilitate the use and styling of the native file input. The projected content
Expand Down
5 changes: 5 additions & 0 deletions libs/core/src/lib/file-input/file-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import {
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';

/**
* /**
* @deprecated
* File Input component is depricated since version 0.22.0
* File Uploader component should be used instead.
*
* Tool to facilitate the input of files from the user.
* It supports drag and drop, multiple input, max file size and more.
* The drag events make it very easy to create and style elements like a dropzone.
Expand Down
8 changes: 6 additions & 2 deletions libs/core/src/lib/file-input/file-input.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ import { FileInputComponent } from './file-input.component';
import { FormsModule } from '@angular/forms';
import { FileSelectDirective } from './directives/file-select.directive';
import { FileDragndropDirective } from './directives/file-dragndrop.directive';

/**
* @deprecated
* File Input component is depricated since version 0.22.0
* File Uploader component should be used instead.
*/
@NgModule({
imports: [CommonModule, FormsModule],
exports: [FileInputComponent, FileSelectDirective, FileDragndropDirective],
declarations: [FileInputComponent, FileSelectDirective, FileDragndropDirective]
})
export class FileInputModule {}
export class FileInputModule { }

0 comments on commit c2321a8

Please sign in to comment.