@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
|
@@ -12170,14 +12170,8 @@
|
|
|
12170
12170
|
this.LOGIN_VIEWS = exports.LoginViews;
|
|
12171
12171
|
this.loading = false;
|
|
12172
12172
|
this.hasError = false;
|
|
12173
|
+
this.isSetup = false;
|
|
12173
12174
|
}
|
|
12174
|
-
Object.defineProperty(TotpAuthComponent.prototype, "isSetup", {
|
|
12175
|
-
get: function () {
|
|
12176
|
-
return this.view === exports.LoginViews.TotpSetup;
|
|
12177
|
-
},
|
|
12178
|
-
enumerable: true,
|
|
12179
|
-
configurable: true
|
|
12180
|
-
});
|
|
12181
12175
|
/**
|
|
12182
12176
|
* In case of a setup we need the user to be authorized
|
|
12183
12177
|
* first.
|
|
@@ -12191,6 +12185,7 @@
|
|
|
12191
12185
|
return [4 /*yield*/, this.loginService.switchLoginMode(this.credentials)];
|
|
12192
12186
|
case 1:
|
|
12193
12187
|
_a.sent();
|
|
12188
|
+
this.isSetup = true;
|
|
12194
12189
|
_a.label = 2;
|
|
12195
12190
|
case 2: return [2 /*return*/];
|
|
12196
12191
|
}
|
|
@@ -13078,6 +13073,12 @@
|
|
|
13078
13073
|
};
|
|
13079
13074
|
this.onFilesPicked.emit(this.fileToSave);
|
|
13080
13075
|
};
|
|
13076
|
+
/**
|
|
13077
|
+
* Checks if there is popover to display.
|
|
13078
|
+
*/
|
|
13079
|
+
FilePickerComponent.prototype.isPopoverUsed = function () {
|
|
13080
|
+
return !lodashEs.isEmpty(this.fileUrlPopover);
|
|
13081
|
+
};
|
|
13081
13082
|
__decorate([
|
|
13082
13083
|
core.ViewChild(DropAreaComponent, { static: true })
|
|
13083
13084
|
], FilePickerComponent.prototype, "dropArea", void 0);
|
|
@@ -13096,10 +13097,13 @@
|
|
|
13096
13097
|
__decorate([
|
|
13097
13098
|
core.Input()
|
|
13098
13099
|
], FilePickerComponent.prototype, "fileBinary", void 0);
|
|
13100
|
+
__decorate([
|
|
13101
|
+
core.Input()
|
|
13102
|
+
], FilePickerComponent.prototype, "fileUrlPopover", void 0);
|
|
13099
13103
|
FilePickerComponent = __decorate([
|
|
13100
13104
|
core.Component({
|
|
13101
13105
|
selector: 'c8y-file-picker',
|
|
13102
|
-
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=\"{{ '
|
|
13106
|
+
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"
|
|
13103
13107
|
})
|
|
13104
13108
|
], FilePickerComponent);
|
|
13105
13109
|
return FilePickerComponent;
|
|
@@ -13119,14 +13123,11 @@
|
|
|
13119
13123
|
common.CommonModule,
|
|
13120
13124
|
DropAreaModule,
|
|
13121
13125
|
forms.FormsModule,
|
|
13122
|
-
CommonModule
|
|
13123
|
-
|
|
13124
|
-
exports: [
|
|
13125
|
-
FilePickerComponent,
|
|
13126
|
+
CommonModule,
|
|
13127
|
+
popover.PopoverModule
|
|
13126
13128
|
],
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
]
|
|
13129
|
+
exports: [FilePickerComponent],
|
|
13130
|
+
declarations: [FilePickerComponent]
|
|
13130
13131
|
})
|
|
13131
13132
|
], FilePickerModule);
|
|
13132
13133
|
return FilePickerModule;
|