@kris701/ez-ui 1.3.10 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -476,7 +476,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
476
476
|
class EzUIFileInput {
|
|
477
477
|
files = signal([], /* @ts-ignore */
|
|
478
478
|
...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
|
|
479
|
+
filesChange = new EventEmitter();
|
|
479
480
|
disabled = false;
|
|
481
|
+
accept = "*/*";
|
|
480
482
|
clear() {
|
|
481
483
|
this.files.set([]);
|
|
482
484
|
}
|
|
@@ -485,6 +487,7 @@ class EzUIFileInput {
|
|
|
485
487
|
this.files.set([files]);
|
|
486
488
|
else
|
|
487
489
|
this.files.set(files);
|
|
490
|
+
this.filesChange.emit(this.files());
|
|
488
491
|
}
|
|
489
492
|
removeFile(file) {
|
|
490
493
|
const files = this.files();
|
|
@@ -495,11 +498,11 @@ class EzUIFileInput {
|
|
|
495
498
|
}
|
|
496
499
|
}
|
|
497
500
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUIFileInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
498
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUIFileInput, isStandalone: true, selector: "ezui-fileinput", inputs: { disabled: "disabled" }, ngImport: i0, template: `
|
|
501
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUIFileInput, isStandalone: true, selector: "ezui-fileinput", inputs: { disabled: "disabled", accept: "accept" }, outputs: { filesChange: "filesChange" }, ngImport: i0, template: `
|
|
499
502
|
<label tuiInputFiles>
|
|
500
503
|
<input
|
|
501
504
|
#validator="tuiInputFilesValidator"
|
|
502
|
-
accept="
|
|
505
|
+
[accept]="accept"
|
|
503
506
|
tuiInputFiles
|
|
504
507
|
[ngModel]="files()"
|
|
505
508
|
(ngModelChange)="onChange($event)"
|
|
@@ -527,7 +530,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
527
530
|
<label tuiInputFiles>
|
|
528
531
|
<input
|
|
529
532
|
#validator="tuiInputFilesValidator"
|
|
530
|
-
accept="
|
|
533
|
+
[accept]="accept"
|
|
531
534
|
tuiInputFiles
|
|
532
535
|
[ngModel]="files()"
|
|
533
536
|
(ngModelChange)="onChange($event)"
|
|
@@ -546,7 +549,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
546
549
|
</tui-files>
|
|
547
550
|
`
|
|
548
551
|
}]
|
|
549
|
-
}], propDecorators: {
|
|
552
|
+
}], propDecorators: { filesChange: [{
|
|
553
|
+
type: Output
|
|
554
|
+
}], disabled: [{
|
|
555
|
+
type: Input
|
|
556
|
+
}], accept: [{
|
|
550
557
|
type: Input
|
|
551
558
|
}] } });
|
|
552
559
|
|