@c8y/ngx-components 1009.0.34 → 1009.0.35
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.
- package/bundles/c8y-ngx-components-repository.umd.js +8 -4
- package/bundles/c8y-ngx-components-repository.umd.js.map +1 -1
- package/bundles/c8y-ngx-components-repository.umd.min.js +1 -1
- package/bundles/c8y-ngx-components-repository.umd.min.js.map +1 -1
- package/bundles/c8y-ngx-components.umd.js +14 -8
- package/bundles/c8y-ngx-components.umd.js.map +1 -1
- package/bundles/c8y-ngx-components.umd.min.js +1 -1
- package/bundles/c8y-ngx-components.umd.min.js.map +1 -1
- package/c8y-ngx-components.metadata.json +1 -1
- package/core/file-picker/file-picker.component.d.ts +8 -0
- package/esm2015/core/file-picker/file-picker.component.js +12 -2
- package/esm2015/core/file-picker/file-picker.module.js +6 -8
- package/esm2015/repository/configuration/configuration-detail.component.js +7 -2
- package/esm2015/repository/firmware/add-firmware-modal.component.js +7 -2
- package/esm2015/repository/firmware/add-firmware-patch-modal.component.js +7 -2
- package/esm2015/repository/software/add-software-modal.component.js +7 -2
- package/esm5/core/file-picker/file-picker.component.js +12 -2
- package/esm5/core/file-picker/file-picker.module.js +6 -8
- package/esm5/repository/configuration/configuration-detail.component.js +3 -2
- package/esm5/repository/firmware/add-firmware-modal.component.js +3 -2
- package/esm5/repository/firmware/add-firmware-patch-modal.component.js +3 -2
- package/esm5/repository/software/add-software-modal.component.js +3 -2
- package/fesm2015/c8y-ngx-components-repository.js +24 -4
- package/fesm2015/c8y-ngx-components-repository.js.map +1 -1
- package/fesm2015/c8y-ngx-components.js +14 -8
- package/fesm2015/c8y-ngx-components.js.map +1 -1
- package/fesm5/c8y-ngx-components-repository.js +8 -4
- package/fesm5/c8y-ngx-components-repository.js.map +1 -1
- package/fesm5/c8y-ngx-components.js +14 -8
- package/fesm5/c8y-ngx-components.js.map +1 -1
- package/locales/locales.pot +24 -3
- package/package.json +2 -2
- package/repository/c8y-ngx-components-repository.metadata.json +1 -1
- package/repository/configuration/configuration-detail.component.d.ts +1 -0
- package/repository/firmware/add-firmware-modal.component.d.ts +1 -0
- package/repository/firmware/add-firmware-patch-modal.component.d.ts +1 -0
- package/repository/software/add-software-modal.component.d.ts +1 -0
|
@@ -11544,6 +11544,12 @@ let FilePickerComponent = class FilePickerComponent {
|
|
|
11544
11544
|
};
|
|
11545
11545
|
this.onFilesPicked.emit(this.fileToSave);
|
|
11546
11546
|
}
|
|
11547
|
+
/**
|
|
11548
|
+
* Checks if there is popover to display.
|
|
11549
|
+
*/
|
|
11550
|
+
isPopoverUsed() {
|
|
11551
|
+
return !isEmpty(this.fileUrlPopover);
|
|
11552
|
+
}
|
|
11547
11553
|
};
|
|
11548
11554
|
__decorate([
|
|
11549
11555
|
ViewChild(DropAreaComponent, { static: true })
|
|
@@ -11563,10 +11569,13 @@ __decorate([
|
|
|
11563
11569
|
__decorate([
|
|
11564
11570
|
Input()
|
|
11565
11571
|
], FilePickerComponent.prototype, "fileBinary", void 0);
|
|
11572
|
+
__decorate([
|
|
11573
|
+
Input()
|
|
11574
|
+
], FilePickerComponent.prototype, "fileUrlPopover", void 0);
|
|
11566
11575
|
FilePickerComponent = __decorate([
|
|
11567
11576
|
Component({
|
|
11568
11577
|
selector: 'c8y-file-picker',
|
|
11569
|
-
template: "<div class=\"form-group\">\n <label title=\"{{ 'Upload a binary' | translate }}\" class=\"c8y-radio radio-inline\">\n <input\n #radio\n type=\"radio\"\n value=\"uploadBinary\"\n name=\"uploadChoice\"\n [(ngModel)]=\"uploadChoice\"\n (click)=\"clearInputFromUrl()\"\n />\n <span></span>\n <span>{{ 'Upload a binary' | translate }}</span>\n </label>\n <label title=\"{{ '
|
|
11578
|
+
template: "<div class=\"form-group\">\n <label title=\"{{ 'Upload a binary' | translate }}\" class=\"c8y-radio radio-inline\">\n <input\n #radio\n type=\"radio\"\n value=\"uploadBinary\"\n name=\"uploadChoice\"\n [(ngModel)]=\"uploadChoice\"\n (click)=\"clearInputFromUrl()\"\n />\n <span></span>\n <span>{{ 'Upload a binary' | translate }}</span>\n </label>\n <label title=\"{{ 'Provide a file path' | translate }}\" class=\"c8y-radio radio-inline m-l-8\">\n <input\n #radio\n type=\"radio\"\n value=\"uploadUrl\"\n name=\"uploadChoice\"\n [(ngModel)]=\"uploadChoice\"\n (click)=\"clearSelectedFiles()\"\n />\n <span></span>\n <span>\n {{ 'Provide a file path' | translate }}\n </span>\n\n <button\n *ngIf=\"isPopoverUsed()\"\n class=\"btn btn-clean text-primary m-l-4\"\n type=\"button\"\n popover=\"{{ fileUrlPopover | translate }}\"\n triggers=\"focus\"\n container=\"body\"\n placement=\"top\"\n >\n <i [c8yIcon]=\"'question-circle-o'\"></i>\n </button>\n </label>\n</div>\n\n<div [hidden]=\"uploadChoice !== 'uploadBinary'\">\n <c8y-form-group class=\"m-0\">\n <c8y-drop-area\n class=\"drop-area-sm\"\n (dropped)=\"onFileDropped($event)\"\n [title]=\"'Drop file or click to browse' | translate\"\n [maxAllowedFiles]=\"maxAllowedFiles\"\n [files]=\"droppedFiles\"\n >\n </c8y-drop-area>\n </c8y-form-group>\n</div>\n\n<div [hidden]=\"uploadChoice !== 'uploadUrl'\">\n <c8y-form-group class=\"m-0\">\n <div class=\"m-b-4 p-b-8\">\n <div class=\"input-group\">\n <span class=\"input-group-addon\">\n <i c8yIcon=\"globe\"></i>\n </span>\n <input\n type=\"text\"\n class=\"form-control\"\n name=\"fileUrl\"\n [(ngModel)]=\"fileUrl\"\n (ngModelChange)=\"onFileUrlChange($event)\"\n placeholder=\"{{ 'e.g.' | translate }} http://example.com/binary.zip\"\n required\n />\n </div>\n </div>\n </c8y-form-group>\n</div>\n"
|
|
11570
11579
|
})
|
|
11571
11580
|
], FilePickerComponent);
|
|
11572
11581
|
|
|
@@ -11583,14 +11592,11 @@ FilePickerModule = __decorate([
|
|
|
11583
11592
|
CommonModule$1,
|
|
11584
11593
|
DropAreaModule,
|
|
11585
11594
|
FormsModule$1,
|
|
11586
|
-
CommonModule
|
|
11587
|
-
|
|
11588
|
-
exports: [
|
|
11589
|
-
FilePickerComponent,
|
|
11595
|
+
CommonModule,
|
|
11596
|
+
PopoverModule
|
|
11590
11597
|
],
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
]
|
|
11598
|
+
exports: [FilePickerComponent],
|
|
11599
|
+
declarations: [FilePickerComponent]
|
|
11594
11600
|
})
|
|
11595
11601
|
], FilePickerModule);
|
|
11596
11602
|
|