@c8y/ngx-components 1009.0.32 → 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 +16 -15
- 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/core/login/totp-auth.component.d.ts +1 -1
- package/esm2015/core/file-picker/file-picker.component.js +12 -2
- package/esm2015/core/file-picker/file-picker.module.js +6 -8
- package/esm2015/core/login/totp-auth.component.js +3 -4
- 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/core/login/totp-auth.component.js +3 -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 +16 -11
- 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 +16 -15
- 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
|
@@ -11975,14 +11975,8 @@ var TotpAuthComponent = /** @class */ (function () {
|
|
|
11975
11975
|
this.LOGIN_VIEWS = LoginViews;
|
|
11976
11976
|
this.loading = false;
|
|
11977
11977
|
this.hasError = false;
|
|
11978
|
+
this.isSetup = false;
|
|
11978
11979
|
}
|
|
11979
|
-
Object.defineProperty(TotpAuthComponent.prototype, "isSetup", {
|
|
11980
|
-
get: function () {
|
|
11981
|
-
return this.view === LoginViews.TotpSetup;
|
|
11982
|
-
},
|
|
11983
|
-
enumerable: true,
|
|
11984
|
-
configurable: true
|
|
11985
|
-
});
|
|
11986
11980
|
/**
|
|
11987
11981
|
* In case of a setup we need the user to be authorized
|
|
11988
11982
|
* first.
|
|
@@ -11996,6 +11990,7 @@ var TotpAuthComponent = /** @class */ (function () {
|
|
|
11996
11990
|
return [4 /*yield*/, this.loginService.switchLoginMode(this.credentials)];
|
|
11997
11991
|
case 1:
|
|
11998
11992
|
_a.sent();
|
|
11993
|
+
this.isSetup = true;
|
|
11999
11994
|
_a.label = 2;
|
|
12000
11995
|
case 2: return [2 /*return*/];
|
|
12001
11996
|
}
|
|
@@ -12883,6 +12878,12 @@ var FilePickerComponent = /** @class */ (function () {
|
|
|
12883
12878
|
};
|
|
12884
12879
|
this.onFilesPicked.emit(this.fileToSave);
|
|
12885
12880
|
};
|
|
12881
|
+
/**
|
|
12882
|
+
* Checks if there is popover to display.
|
|
12883
|
+
*/
|
|
12884
|
+
FilePickerComponent.prototype.isPopoverUsed = function () {
|
|
12885
|
+
return !isEmpty(this.fileUrlPopover);
|
|
12886
|
+
};
|
|
12886
12887
|
__decorate([
|
|
12887
12888
|
ViewChild(DropAreaComponent, { static: true })
|
|
12888
12889
|
], FilePickerComponent.prototype, "dropArea", void 0);
|
|
@@ -12901,10 +12902,13 @@ var FilePickerComponent = /** @class */ (function () {
|
|
|
12901
12902
|
__decorate([
|
|
12902
12903
|
Input()
|
|
12903
12904
|
], FilePickerComponent.prototype, "fileBinary", void 0);
|
|
12905
|
+
__decorate([
|
|
12906
|
+
Input()
|
|
12907
|
+
], FilePickerComponent.prototype, "fileUrlPopover", void 0);
|
|
12904
12908
|
FilePickerComponent = __decorate([
|
|
12905
12909
|
Component({
|
|
12906
12910
|
selector: 'c8y-file-picker',
|
|
12907
|
-
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=\"{{ '
|
|
12911
|
+
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"
|
|
12908
12912
|
})
|
|
12909
12913
|
], FilePickerComponent);
|
|
12910
12914
|
return FilePickerComponent;
|
|
@@ -12924,14 +12928,11 @@ var FilePickerModule = /** @class */ (function () {
|
|
|
12924
12928
|
CommonModule$1,
|
|
12925
12929
|
DropAreaModule,
|
|
12926
12930
|
FormsModule$1,
|
|
12927
|
-
CommonModule
|
|
12928
|
-
|
|
12929
|
-
exports: [
|
|
12930
|
-
FilePickerComponent,
|
|
12931
|
+
CommonModule,
|
|
12932
|
+
PopoverModule
|
|
12931
12933
|
],
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
]
|
|
12934
|
+
exports: [FilePickerComponent],
|
|
12935
|
+
declarations: [FilePickerComponent]
|
|
12935
12936
|
})
|
|
12936
12937
|
], FilePickerModule);
|
|
12937
12938
|
return FilePickerModule;
|