Skip to content

Commit

Permalink
Fixed #40 - default template parts exported as public
Browse files Browse the repository at this point in the history
  • Loading branch information
pIvan committed Jul 22, 2020
1 parent 3f2cee7 commit 6358b64
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<link rel="stylesheet" href="styles.7b605f6263e39a780e64.css"></head>
<body>
<app-root></app-root>
<script src="runtime-es2015.cf16196b22f7fa750d68.js" type="module"></script><script src="runtime-es5.cf16196b22f7fa750d68.js" nomodule defer></script><script src="polyfills-es5.ac9fbfb0a3a310aaec76.js" nomodule defer></script><script src="polyfills-es2015.299ba3bc4b983aea9570.js" type="module"></script><script src="main-es2015.17622530b1283427ebf1.js" type="module"></script><script src="main-es5.17622530b1283427ebf1.js" nomodule defer></script></body>
<script src="runtime-es2015.cf16196b22f7fa750d68.js" type="module"></script><script src="runtime-es5.cf16196b22f7fa750d68.js" nomodule defer></script><script src="polyfills-es5.ac9fbfb0a3a310aaec76.js" nomodule defer></script><script src="polyfills-es2015.299ba3bc4b983aea9570.js" type="module"></script><script src="main-es2015.2176904df2ca5608c9db.js" type="module"></script><script src="main-es5.2176904df2ca5608c9db.js" nomodule defer></script></body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import {
} from '@angular/core';
import { DOCUMENT } from '@angular/common';

import { FileUploadControl } from '../helpers/control.class';
import { IsNullOrEmpty } from '../helpers/helpers.class';
import { FileUploadService } from '../services/file-upload.service';
import { DRAGOVER, TOUCHED } from './file-upload.component';
import { FileUploadControl } from '../../helpers/control.class';
import { IsNullOrEmpty } from '../../helpers/helpers.class';
import { FileUploadService } from '../../services/file-upload.service';
import { DRAGOVER, TOUCHED } from './../multiple-file-upload/file-upload.component';
import { Subscription } from 'rxjs';


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { FileUploadService } from '../../services/file-upload.service';
V33h-3.8c-0.4,0-0.7-0.1-0.9-0.4s-0.4-0.5-0.4-0.9v-2.5c0-0.4,0.1-0.7,0.4-0.9s0.5-0.4,0.9-0.4h12.1l2.7-6.5c0.4-1,1.1-1.8,2.1-2.5
s2-1,3.1-1h12.5c1,0,2.1,0.3,3.1,1s1.7,1.5,2.1,2.5l2.7,6.5h12.1c0.4,0,0.7,0.1,0.9,0.4S75.5,28.9,75.5,29.3z"/>
</g>
</svg> Remove</span>
</svg> <ng-content></ng-content></span>
</div>
`,
styleUrls: [`./file-upload-list-item.component.scss`]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
</ng-template>

<ng-template #defaultItemTemplate let-i="index" let-file="file" let-control="control">
<file-upload-list-item [index]="i" [file]="file" [control]="control"></file-upload-list-item>
<file-upload-list-item [index]="i" [file]="file" [control]="control">Remove</file-upload-list-item>
</ng-template>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Component, ViewChild, ElementRef } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { FileUploadModule, FileUploadControl, FileUploadValidators } from './../file-upload.module';
import { FileUploadModule, FileUploadControl, FileUploadValidators } from './../../file-upload.module';


@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import { DOCUMENT } from '@angular/common';
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';
import { AnimationEvent } from '@angular/animations';

import { FileUploadControl } from './../helpers/control.class';
import { FileUploadService } from './../services/file-upload.service';
import { InsertAnimation } from './../animations/insert.animation';
import { ZoomAnimation } from './../animations/zoom.animation';
import { FileUploadAbstract } from './file-upload-abstract.component';
import { FileUploadControl } from './../../helpers/control.class';
import { FileUploadService } from './../../services/file-upload.service';
import { InsertAnimation } from './../../animations/insert.animation';
import { ZoomAnimation } from './../../animations/zoom.animation';
import { FileUploadAbstract } from './../file-upload-abstract.component';

export const DRAGOVER = 'dragover';
export const TOUCHED = 'ng-touched';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';

import { FileUploadControl } from './../../helpers/control.class';
import { FileUploadService } from './../../services/file-upload.service';
import { TOUCHED } from './../file-upload.component';
import { TOUCHED } from './../multiple-file-upload/file-upload.component';
import { FileUploadAbstract } from './../file-upload-abstract.component';

@Component({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Directive, Input, SimpleChanges, Optional, Host, Self, OnChanges, AfterViewInit } from '@angular/core';
import { FileUploadComponent } from '../components/file-upload.component';
import { FileUploadComponent } from '../components/multiple-file-upload/file-upload.component';
import { SimpleFileUploadComponent } from '../components/simple-file-upload/simple-file-upload.component';


Expand Down
9 changes: 5 additions & 4 deletions projects/iplab/ngx-file-upload/src/lib/file-upload.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ import { NgModule, Injector } from '@angular/core';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';

import { FileUploadComponent } from './components/file-upload.component';
import { FileUploadComponent } from './components/multiple-file-upload/file-upload.component';
import { FileUploadDropZoneComponent } from './components/drop-zone/file-upload-drop-zone.component';
import { FileUploadListItemComponent } from './components/file-list/file-upload-list-item.component';
import { FileUploadIconComponent } from './components/file-list/file-upload-icon.component';
import { FileUploadAttributeComponent } from './components/file-upload-attr.component';
import { FileUploadAttributeComponent } from './components/attribute/file-upload-attr.component';
import { SimpleFileUploadComponent } from './components/simple-file-upload/simple-file-upload.component';

import { FileSizeValidator, FilesLimitValidator, FilesAcceptValidator } from './directives/validators.directive';
import { FilesAcceptDirective } from './directives/attribute.directive';

export { FileUploadComponent } from './components/file-upload.component';
export { FileUploadComponent } from './components/multiple-file-upload/file-upload.component';
export { FileUploadDropZoneComponent } from './components/drop-zone/file-upload-drop-zone.component';
export { FileUploadAttributeComponent } from './components/file-upload-attr.component';
export { FileUploadAttributeComponent } from './components/attribute/file-upload-attr.component';
export { SimpleFileUploadComponent } from './components/simple-file-upload/simple-file-upload.component';
export { FileSizeValidator, FilesLimitValidator, FilesAcceptValidator } from './directives/validators.directive';
export { FilesAcceptDirective } from './directives/attribute.directive';
Expand Down Expand Up @@ -56,6 +56,7 @@ export { FileUploadService } from './services/file-upload.service';
exports: [
FileUploadComponent,
FileUploadDropZoneComponent,
FileUploadListItemComponent,
FileUploadAttributeComponent,

FileSizeValidator,
Expand Down

0 comments on commit 6358b64

Please sign in to comment.