@kris701/ez-ui 1.3.11 → 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,6 +476,7 @@ 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;
|
|
480
481
|
accept = "*/*";
|
|
481
482
|
clear() {
|
|
@@ -486,6 +487,7 @@ class EzUIFileInput {
|
|
|
486
487
|
this.files.set([files]);
|
|
487
488
|
else
|
|
488
489
|
this.files.set(files);
|
|
490
|
+
this.filesChange.emit(this.files());
|
|
489
491
|
}
|
|
490
492
|
removeFile(file) {
|
|
491
493
|
const files = this.files();
|
|
@@ -496,7 +498,7 @@ class EzUIFileInput {
|
|
|
496
498
|
}
|
|
497
499
|
}
|
|
498
500
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: EzUIFileInput, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
499
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.0", type: EzUIFileInput, isStandalone: true, selector: "ezui-fileinput", inputs: { disabled: "disabled", accept: "accept" }, 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: `
|
|
500
502
|
<label tuiInputFiles>
|
|
501
503
|
<input
|
|
502
504
|
#validator="tuiInputFilesValidator"
|
|
@@ -547,7 +549,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
|
|
|
547
549
|
</tui-files>
|
|
548
550
|
`
|
|
549
551
|
}]
|
|
550
|
-
}], propDecorators: {
|
|
552
|
+
}], propDecorators: { filesChange: [{
|
|
553
|
+
type: Output
|
|
554
|
+
}], disabled: [{
|
|
551
555
|
type: Input
|
|
552
556
|
}], accept: [{
|
|
553
557
|
type: Input
|