@c8y/ngx-components 1018.0.206 → 1018.0.208
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/ecosystem/shared/ecosystem.constants.d.ts +1 -1
- package/esm2020/auth-configuration/sso-configuration/template-parts/external-token-config.component.mjs +3 -3
- package/esm2020/cockpit-config/cockpit-configuration.component.mjs +3 -3
- package/esm2020/cockpit-config/setup/cockpit-setup-step3.component.mjs +3 -3
- package/esm2020/core/file-picker-new/file-picker-new.component.mjs +3 -3
- package/esm2020/core/file-picker-new/file-picker-validators.mjs +4 -4
- package/esm2020/core/help/help.component.mjs +3 -3
- package/esm2020/ecosystem/license-confirm/license-confirm-modal.component.mjs +5 -5
- package/esm2020/ecosystem/shared/ecosystem.constants.mjs +2 -2
- package/esm2020/icon-selector/icons/hands/index.mjs +2 -2
- package/esm2020/map/map-status.component.mjs +3 -3
- package/esm2020/protocol-lwm2m/factories/lwm2m-device-grid.factory.mjs +2 -2
- package/esm2020/sub-assets/assign-devices/assign-devices.component.mjs +3 -3
- package/esm2020/widgets/implementations/map/map-widget-config.component.mjs +3 -3
- package/fesm2015/c8y-ngx-components-auth-configuration.mjs +2 -2
- package/fesm2015/c8y-ngx-components-auth-configuration.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-cockpit-config.mjs +4 -4
- package/fesm2015/c8y-ngx-components-cockpit-config.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-ecosystem-license-confirm.mjs +4 -4
- package/fesm2015/c8y-ngx-components-ecosystem-license-confirm.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-ecosystem-shared.mjs +1 -1
- package/fesm2015/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-icon-selector-icons-hands.mjs +1 -1
- package/fesm2015/c8y-ngx-components-icon-selector-icons-hands.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-map.mjs +2 -2
- package/fesm2015/c8y-ngx-components-map.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-protocol-lwm2m-factories.mjs +1 -1
- package/fesm2015/c8y-ngx-components-protocol-lwm2m-factories.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-sub-assets.mjs +2 -2
- package/fesm2015/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components-widgets-implementations-map.mjs +2 -2
- package/fesm2015/c8y-ngx-components-widgets-implementations-map.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +7 -7
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-auth-configuration.mjs +2 -2
- package/fesm2020/c8y-ngx-components-auth-configuration.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-cockpit-config.mjs +4 -4
- package/fesm2020/c8y-ngx-components-cockpit-config.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-ecosystem-license-confirm.mjs +4 -4
- package/fesm2020/c8y-ngx-components-ecosystem-license-confirm.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-ecosystem-shared.mjs +1 -1
- package/fesm2020/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-icon-selector-icons-hands.mjs +1 -1
- package/fesm2020/c8y-ngx-components-icon-selector-icons-hands.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-map.mjs +2 -2
- package/fesm2020/c8y-ngx-components-map.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-protocol-lwm2m-factories.mjs +1 -1
- package/fesm2020/c8y-ngx-components-protocol-lwm2m-factories.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-sub-assets.mjs +2 -2
- package/fesm2020/c8y-ngx-components-sub-assets.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-widgets-implementations-map.mjs +2 -2
- package/fesm2020/c8y-ngx-components-widgets-implementations-map.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +7 -7
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/icon-selector/icons/hands/index.d.ts +1 -1
- package/locales/de.po +519 -166
- package/locales/en.po +4 -1
- package/locales/es.po +816 -305
- package/locales/fr.po +732 -220
- package/locales/ja_JP.po +812 -225
- package/locales/ko.po +940 -429
- package/locales/locales.pot +20 -38
- package/locales/nl.po +804 -293
- package/locales/pl.po +712 -222
- package/locales/pt_BR.po +875 -364
- package/locales/ru.po +752 -250
- package/locales/zh_CN.po +823 -312
- package/locales/zh_TW.po +1188 -677
- package/package.json +1 -1
|
@@ -66,8 +66,8 @@ class LicenseConfirmModalComponent {
|
|
|
66
66
|
.map(({ appName: pluginName }) => pluginName)
|
|
67
67
|
.join(', ') })));
|
|
68
68
|
const companyName = this.optionsService.get('companyName', 'Cumulocity');
|
|
69
|
-
const textWithCompany = gettext('
|
|
70
|
-
const textWithoutCompany = gettext('
|
|
69
|
+
const textWithCompany = gettext('These plugins and/or blueprints are provided <strong>as-is and without warranty or support</strong>, and they do not constitute part of the {{ companyName }} product suite. Users are free to use subject to the license agreement.');
|
|
70
|
+
const textWithoutCompany = gettext('These plugins and/or blueprints are provided <strong>as-is and without warranty or support</strong>, and they do not constitute part of the product suite. Users are free to use subject to the license agreement.');
|
|
71
71
|
this.disclaimerText = this.translateService.instant(companyName ? textWithCompany : textWithoutCompany, {
|
|
72
72
|
companyName
|
|
73
73
|
});
|
|
@@ -81,10 +81,10 @@ class LicenseConfirmModalComponent {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
LicenseConfirmModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: LicenseConfirmModalComponent, deps: [{ token: i1$1.WizardComponent }, { token: i2.FormBuilder }, { token: i1$1.OptionsService }, { token: i3.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
84
|
-
LicenseConfirmModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: LicenseConfirmModalComponent, selector: "c8y-license-confirm-modal", viewQueries: [{ propertyName: "stepper", first: true, predicate: C8yStepper, descendants: true, static: true }], ngImport: i0, template: "<c8y-wizard-header>\n <i c8yIcon=\"privacy-policy\"></i>\n <div id=\"modal-title\" class=\"modal-title h4\" translate>Accept license(s)</div>\n</c8y-wizard-header>\n<c8y-wizard-body>\n <div class=\"m-t-16 m-l-32 m-r-32\">\n <c8y-stepper>\n <cdk-step [stepControl]=\"formGroupAccept\" [label]=\"'Disclaimer' | translate\">\n <div class=\"m-t-8\">\n <div class=\"text-center m-b-16 h4\">\n <i c8yIcon=\"info-circle\" class=\"text-info d-block icon-40 m-b-8\"></i>\n {{ 'About community packages' | translate }}\n </div>\n <p class=\"m-b-16\">\n <span translate>These plugins and/or blueprints are provided\n <strong>as-is and without warranty or support</strong>.</span>\n {{disclaimerText}}\n </p>\n <hr style=\"margin: 16px -24px 16px\" />\n <div class=\"text-center\">\n <c8y-form-group class=\"d-inline-block\">\n <div [formGroup]=\"formGroupAccept\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input\n type=\"checkbox\"\n class=\"form-control\"\n formControlName=\"confirmed\"\n required\n />\n <span></span>\n <span translate>Understood and agreed</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'Accept the maintenance disclaimer.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n </div>\n </div>\n\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 0\">\n <c8y-stepper-buttons\n [title]=\"'Confirm agreement' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n <cdk-step state=\"final\" [stepControl]=\"formGroupLicenses\" [label]=\"'Licenses' | translate\">\n <div *ngFor=\"let license of licenses\" class=\"p-t-24\">\n <label\n *ngIf=\"license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n
|
|
84
|
+
LicenseConfirmModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: LicenseConfirmModalComponent, selector: "c8y-license-confirm-modal", viewQueries: [{ propertyName: "stepper", first: true, predicate: C8yStepper, descendants: true, static: true }], ngImport: i0, template: "<c8y-wizard-header>\n <i c8yIcon=\"privacy-policy\"></i>\n <div id=\"modal-title\" class=\"modal-title h4\" translate>Accept license(s)</div>\n</c8y-wizard-header>\n<c8y-wizard-body>\n <div class=\"m-t-16 m-l-32 m-r-32\">\n <c8y-stepper>\n <cdk-step [stepControl]=\"formGroupAccept\" [label]=\"'Disclaimer' | translate\">\n <div class=\"m-t-8\">\n <div class=\"text-center m-b-16 h4\">\n <i c8yIcon=\"info-circle\" class=\"text-info d-block icon-40 m-b-8\"></i>\n {{ 'About community packages' | translate }}\n </div>\n <p class=\"m-b-16\">\n <span translate>These plugins and/or blueprints are provided\n <strong>as-is and without warranty or support</strong>.</span>\n {{disclaimerText}}\n </p>\n <hr style=\"margin: 16px -24px 16px\" />\n <div class=\"text-center\">\n <c8y-form-group class=\"d-inline-block\">\n <div [formGroup]=\"formGroupAccept\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input\n type=\"checkbox\"\n class=\"form-control\"\n formControlName=\"confirmed\"\n required\n />\n <span></span>\n <span translate>Understood and agreed</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'Accept the maintenance disclaimer.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n </div>\n </div>\n\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 0\">\n <c8y-stepper-buttons\n [title]=\"'Confirm agreement' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n <cdk-step state=\"final\" [stepControl]=\"formGroupLicenses\" [label]=\"'Licenses' | translate\">\n <div *ngFor=\"let license of licenses\" class=\"p-t-24\">\n <label\n *ngIf=\"license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n uses\n <b>{{ licenseName }}</b>\n license\n </label>\n <label\n *ngIf=\"!license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n uses\n <b>no license</b>\n </label>\n <c8y-license-view [url]=\"license.url\" [name]=\"license.licenseName\"></c8y-license-view>\n </div>\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 1\">\n <c8y-form-group class=\"text-center d-inline-block\">\n <div [formGroup]=\"formGroupLicenses\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input type=\"checkbox\" class=\"form-control\" formControlName=\"acceptAll\" required />\n <span></span>\n <span *ngIf=\"licenses.length === 1\" translate>Accept license</span>\n <span *ngIf=\"licenses.length > 1\" translate>Accept all licenses</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'You need to accept the license agreement(s)' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n <hr style=\"margin: 0 -24px 16px\" />\n <c8y-stepper-buttons\n [title]=\"'Accept license' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n (onNext)=\"done()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n </c8y-stepper>\n </div>\n</c8y-wizard-body>\n", dependencies: [{ kind: "directive", type: i1$1.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i1$1.C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.CheckboxRequiredValidator, selector: "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]" }, { kind: "component", type: i1$1.FormGroupComponent, selector: "c8y-form-group", inputs: ["hasError", "hasWarning", "hasSuccess", "novalidation", "status"] }, { kind: "directive", type: i1$1.MessageDirective, selector: "c8y-message", inputs: ["name", "text"] }, { kind: "component", type: i1$1.MessagesComponent, selector: "c8y-messages", inputs: ["show", "defaults"] }, { kind: "directive", type: i1$1.RequiredInputPlaceholderDirective, selector: "input[required], input[formControlName]" }, { kind: "component", type: i1$1.C8yStepper, selector: "c8y-stepper", inputs: ["disableDefaultIcons", "disableProgressButtons", "customClasses", "hideStepProgress", "useStepLabelsAsTitlesOnly"], outputs: ["onStepChange"] }, { kind: "component", type: i5.CdkStep, selector: "cdk-step", inputs: ["stepControl", "label", "errorMessage", "aria-label", "aria-labelledby", "state", "editable", "optional", "completed", "hasError"], outputs: ["interacted"], exportAs: ["cdkStep"] }, { kind: "component", type: i1$1.C8yStepperButtons, selector: "c8y-stepper-buttons", inputs: ["labels", "pending", "disabled", "showButtons"], outputs: ["onCancel", "onNext", "onBack", "onCustom"] }, { kind: "component", type: i1$1.WizardHeaderComponent, selector: "c8y-wizard-header" }, { kind: "component", type: i1$1.WizardBodyComponent, selector: "c8y-wizard-body" }, { kind: "component", type: i1$1.WizardFooterComponent, selector: "c8y-wizard-footer" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: LicenseViewComponent, selector: "c8y-license-view", inputs: ["url", "name"] }, { kind: "pipe", type: i1$1.C8yTranslatePipe, name: "translate" }] });
|
|
85
85
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: LicenseConfirmModalComponent, decorators: [{
|
|
86
86
|
type: Component,
|
|
87
|
-
args: [{ selector: 'c8y-license-confirm-modal', template: "<c8y-wizard-header>\n <i c8yIcon=\"privacy-policy\"></i>\n <div id=\"modal-title\" class=\"modal-title h4\" translate>Accept license(s)</div>\n</c8y-wizard-header>\n<c8y-wizard-body>\n <div class=\"m-t-16 m-l-32 m-r-32\">\n <c8y-stepper>\n <cdk-step [stepControl]=\"formGroupAccept\" [label]=\"'Disclaimer' | translate\">\n <div class=\"m-t-8\">\n <div class=\"text-center m-b-16 h4\">\n <i c8yIcon=\"info-circle\" class=\"text-info d-block icon-40 m-b-8\"></i>\n {{ 'About community packages' | translate }}\n </div>\n <p class=\"m-b-16\">\n <span translate>These plugins and/or blueprints are provided\n <strong>as-is and without warranty or support</strong>.</span>\n {{disclaimerText}}\n </p>\n <hr style=\"margin: 16px -24px 16px\" />\n <div class=\"text-center\">\n <c8y-form-group class=\"d-inline-block\">\n <div [formGroup]=\"formGroupAccept\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input\n type=\"checkbox\"\n class=\"form-control\"\n formControlName=\"confirmed\"\n required\n />\n <span></span>\n <span translate>Understood and agreed</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'Accept the maintenance disclaimer.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n </div>\n </div>\n\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 0\">\n <c8y-stepper-buttons\n [title]=\"'Confirm agreement' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n <cdk-step state=\"final\" [stepControl]=\"formGroupLicenses\" [label]=\"'Licenses' | translate\">\n <div *ngFor=\"let license of licenses\" class=\"p-t-24\">\n <label\n *ngIf=\"license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n
|
|
87
|
+
args: [{ selector: 'c8y-license-confirm-modal', template: "<c8y-wizard-header>\n <i c8yIcon=\"privacy-policy\"></i>\n <div id=\"modal-title\" class=\"modal-title h4\" translate>Accept license(s)</div>\n</c8y-wizard-header>\n<c8y-wizard-body>\n <div class=\"m-t-16 m-l-32 m-r-32\">\n <c8y-stepper>\n <cdk-step [stepControl]=\"formGroupAccept\" [label]=\"'Disclaimer' | translate\">\n <div class=\"m-t-8\">\n <div class=\"text-center m-b-16 h4\">\n <i c8yIcon=\"info-circle\" class=\"text-info d-block icon-40 m-b-8\"></i>\n {{ 'About community packages' | translate }}\n </div>\n <p class=\"m-b-16\">\n <span translate>These plugins and/or blueprints are provided\n <strong>as-is and without warranty or support</strong>.</span>\n {{disclaimerText}}\n </p>\n <hr style=\"margin: 16px -24px 16px\" />\n <div class=\"text-center\">\n <c8y-form-group class=\"d-inline-block\">\n <div [formGroup]=\"formGroupAccept\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input\n type=\"checkbox\"\n class=\"form-control\"\n formControlName=\"confirmed\"\n required\n />\n <span></span>\n <span translate>Understood and agreed</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'Accept the maintenance disclaimer.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n </div>\n </div>\n\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 0\">\n <c8y-stepper-buttons\n [title]=\"'Confirm agreement' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n <cdk-step state=\"final\" [stepControl]=\"formGroupLicenses\" [label]=\"'Licenses' | translate\">\n <div *ngFor=\"let license of licenses\" class=\"p-t-24\">\n <label\n *ngIf=\"license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n uses\n <b>{{ licenseName }}</b>\n license\n </label>\n <label\n *ngIf=\"!license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n uses\n <b>no license</b>\n </label>\n <c8y-license-view [url]=\"license.url\" [name]=\"license.licenseName\"></c8y-license-view>\n </div>\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 1\">\n <c8y-form-group class=\"text-center d-inline-block\">\n <div [formGroup]=\"formGroupLicenses\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input type=\"checkbox\" class=\"form-control\" formControlName=\"acceptAll\" required />\n <span></span>\n <span *ngIf=\"licenses.length === 1\" translate>Accept license</span>\n <span *ngIf=\"licenses.length > 1\" translate>Accept all licenses</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'You need to accept the license agreement(s)' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n <hr style=\"margin: 0 -24px 16px\" />\n <c8y-stepper-buttons\n [title]=\"'Accept license' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n (onNext)=\"done()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n </c8y-stepper>\n </div>\n</c8y-wizard-body>\n" }]
|
|
88
88
|
}], ctorParameters: function () { return [{ type: i1$1.WizardComponent }, { type: i2.FormBuilder }, { type: i1$1.OptionsService }, { type: i3.TranslateService }]; }, propDecorators: { stepper: [{
|
|
89
89
|
type: ViewChild,
|
|
90
90
|
args: [C8yStepper, { static: true }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-ecosystem-license-confirm.mjs","sources":["../../ecosystem/license-confirm/license-view.component.ts","../../ecosystem/license-confirm/license-view.component.html","../../ecosystem/license-confirm/license-confirm-modal.component.ts","../../ecosystem/license-confirm/license-confirm-modal.component.html","../../ecosystem/license-confirm/license-confirm.module.ts","../../ecosystem/license-confirm/c8y-ngx-components-ecosystem-license-confirm.ts"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { FetchClient } from '@c8y/client';\nimport { gettext } from '@c8y/ngx-components';\n\n@Component({\n selector: 'c8y-license-view',\n templateUrl: './license-view.component.html'\n})\nexport class LicenseViewComponent implements OnInit {\n @Input()\n url: string;\n @Input()\n name: string;\n content: string = gettext('Loading license content…');\n\n FALL_BACK_URL = 'https://spdx.org/licenses/';\n\n constructor(private fetchClient: FetchClient) {}\n\n async ngOnInit() {\n const response = await this.fetchClient.fetch(this.url);\n if (response.status === 200) {\n this.content = await response.text();\n return;\n }\n this.content = '';\n }\n}\n","<ng-container *ngIf=\"content\">\n <a [href]=\"url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"small pull-right\">\n <i c8yIcon=\"external-link\" class=\"m-r-4\"></i>\n <span translate>Open in new window</span>\n </a>\n <textarea\n [attr.aria-label]=\"'License' | translate\"\n class=\"form-control bg-level-1 text-monospace small m-b-16\"\n readonly\n style=\"height: 170px\"\n [textContent]=\"content\"\n ></textarea>\n</ng-container>\n\n<div class=\"alert alert-warning\" role=\"alert\" *ngIf=\"!content && name\">\n <strong translate>No license attached</strong>\n <p translate>\n The author of the package hasn't included a license file in a format that can be displayed.\n Verify the license online, for example, with a website like:\n </p>\n <a [href]=\"FALL_BACK_URL + name\" target=\"_blank\" rel=\"noopener noreferrer\">\n {{ FALL_BACK_URL }}{{ name }}\n </a>\n</div>\n\n<div class=\"alert alert-danger\" role=\"alert\" *ngIf=\"!content && !name\">\n <strong translate>No license found</strong>\n <p translate>\n There is no license attached to this package. You can continue installing it at your own risk.\n </p>\n</div>\n","import { Component, OnInit, ViewChild } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { C8yStepper, gettext, OptionsService, WizardComponent } from '@c8y/ngx-components';\nimport { uniqBy } from 'lodash-es';\nimport { LicensedApplicationPlugin } from '@c8y/ngx-components/ecosystem/shared';\nimport { TranslateService } from '@ngx-translate/core';\n\ninterface ConfirmInstallModal {\n pluginsToInstall: LicensedApplicationPlugin[];\n}\n\ninterface License {\n licenseName: string;\n url: string;\n appName: string;\n}\n\n@Component({\n selector: 'c8y-license-confirm-modal',\n templateUrl: './license-confirm-modal.component.html'\n})\nexport class LicenseConfirmModalComponent implements OnInit {\n formGroupAccept: FormGroup;\n formGroupLicenses: FormGroup;\n @ViewChild(C8yStepper, { static: true })\n stepper: C8yStepper;\n licenses: License[] = [];\n disclaimerText: string;\n\n constructor(\n private wizardComponent: WizardComponent<ConfirmInstallModal>,\n private fb: FormBuilder,\n private optionsService: OptionsService,\n private translateService: TranslateService\n ) {}\n\n ngOnInit(): void {\n const { pluginsToInstall } = this.wizardComponent.componentInitialState;\n\n this.formGroupAccept = this.fb.group({\n confirmed: [false, Validators.required]\n });\n\n this.formGroupLicenses = this.fb.group({\n acceptAll: [false, Validators.required]\n });\n\n const allLicenses: License[] = pluginsToInstall.map(app => ({\n appName: app.name,\n url: `/apps/${app.contextPath}@${app.version}/LICENSE.txt`,\n licenseName: app.license\n }));\n\n const uniqByUrl = (uniqBy(allLicenses, 'url') as License[]).map(license => ({\n ...license,\n pluginName: allLicenses\n .filter(({ url }) => url === license.url)\n .map(({ appName: pluginName }) => pluginName)\n .join(', ')\n }));\n\n const companyName = this.optionsService.get('companyName', 'Cumulocity');\n const textWithCompany = gettext(\n 'They do not constitute part of the {{companyName}} product suite. Users are free to use subject to the license agreement.'\n );\n const textWithoutCompany = gettext(\n 'They do not constitute part of the product suite. Users are free to use subject to the license agreement.'\n );\n\n this.disclaimerText = this.translateService.instant(\n companyName ? textWithCompany : textWithoutCompany,\n {\n companyName\n }\n );\n\n this.licenses = uniqByUrl;\n }\n\n cancel() {\n this.wizardComponent.close(false);\n }\n\n done() {\n this.wizardComponent.close(true);\n }\n}\n","<c8y-wizard-header>\n <i c8yIcon=\"privacy-policy\"></i>\n <div id=\"modal-title\" class=\"modal-title h4\" translate>Accept license(s)</div>\n</c8y-wizard-header>\n<c8y-wizard-body>\n <div class=\"m-t-16 m-l-32 m-r-32\">\n <c8y-stepper>\n <cdk-step [stepControl]=\"formGroupAccept\" [label]=\"'Disclaimer' | translate\">\n <div class=\"m-t-8\">\n <div class=\"text-center m-b-16 h4\">\n <i c8yIcon=\"info-circle\" class=\"text-info d-block icon-40 m-b-8\"></i>\n {{ 'About community packages' | translate }}\n </div>\n <p class=\"m-b-16\">\n <span translate>These plugins and/or blueprints are provided\n <strong>as-is and without warranty or support</strong>.</span>\n {{disclaimerText}}\n </p>\n <hr style=\"margin: 16px -24px 16px\" />\n <div class=\"text-center\">\n <c8y-form-group class=\"d-inline-block\">\n <div [formGroup]=\"formGroupAccept\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input\n type=\"checkbox\"\n class=\"form-control\"\n formControlName=\"confirmed\"\n required\n />\n <span></span>\n <span translate>Understood and agreed</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'Accept the maintenance disclaimer.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n </div>\n </div>\n\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 0\">\n <c8y-stepper-buttons\n [title]=\"'Confirm agreement' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n <cdk-step state=\"final\" [stepControl]=\"formGroupLicenses\" [label]=\"'Licenses' | translate\">\n <div *ngFor=\"let license of licenses\" class=\"p-t-24\">\n <label\n *ngIf=\"license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n using\n <b>{{ licenseName }}</b>\n license\n </label>\n <label\n *ngIf=\"!license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n using\n <b>no license</b>\n </label>\n <c8y-license-view [url]=\"license.url\" [name]=\"license.licenseName\"></c8y-license-view>\n </div>\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 1\">\n <c8y-form-group class=\"text-center d-inline-block\">\n <div [formGroup]=\"formGroupLicenses\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input type=\"checkbox\" class=\"form-control\" formControlName=\"acceptAll\" required />\n <span></span>\n <span *ngIf=\"licenses.length === 1\" translate>Accept license</span>\n <span *ngIf=\"licenses.length > 1\" translate>Accept all licenses</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'You need to accept the license agreement(s)' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n <hr style=\"margin: 0 -24px 16px\" />\n <c8y-stepper-buttons\n [title]=\"'Accept license' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n (onNext)=\"done()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n </c8y-stepper>\n </div>\n</c8y-wizard-body>\n","import { NgModule } from '@angular/core';\nimport { LicenseConfirmModalComponent } from './license-confirm-modal.component';\nimport { LicenseViewComponent } from './license-view.component';\nimport { CoreModule, FormsModule, hookWizard } from '@c8y/ngx-components';\nimport { EcosystemWizards, SharedEcosystemModule } from '@c8y/ngx-components/ecosystem/shared';\n\n@NgModule({\n declarations: [LicenseConfirmModalComponent, LicenseViewComponent],\n imports: [CoreModule, FormsModule, SharedEcosystemModule],\n exports: [LicenseConfirmModalComponent, LicenseViewComponent],\n providers: [\n hookWizard({\n wizardId: EcosystemWizards.LICENSE_CONFIRM,\n component: LicenseConfirmModalComponent,\n name: undefined\n })\n ]\n})\nexport class LicenseConfirmModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3","i1","i6.LicenseViewComponent"],"mappings":";;;;;;;;;;;;;;MAQa,oBAAoB,CAAA;AAS/B,IAAA,WAAA,CAAoB,WAAwB,EAAA;AAAxB,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;AAJ5C,QAAA,IAAA,CAAA,OAAO,GAAW,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAEtD,QAAA,IAAa,CAAA,aAAA,GAAG,4BAA4B,CAAC;KAEG;IAE1C,QAAQ,GAAA;;AACZ,YAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACxD,YAAA,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE;gBAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACrC,OAAO;AACR,aAAA;AACD,YAAA,IA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mjs","sources":["../../ecosystem/license-confirm/license-view.component.ts","../../ecosystem/license-confirm/license-view.component.html","../../ecosystem/license-confirm/license-confirm-modal.component.ts","../../ecosystem/license-confirm/license-confirm-modal.component.html","../../ecosystem/license-confirm/license-confirm.module.ts","../../ecosystem/license-confirm/c8y-ngx-components-ecosystem-license-confirm.ts"],"sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { FetchClient } from '@c8y/client';\nimport { gettext } from '@c8y/ngx-components';\n\n@Component({\n selector: 'c8y-license-view',\n templateUrl: './license-view.component.html'\n})\nexport class LicenseViewComponent implements OnInit {\n @Input()\n url: string;\n @Input()\n name: string;\n content: string = gettext('Loading license content…');\n\n FALL_BACK_URL = 'https://spdx.org/licenses/';\n\n constructor(private fetchClient: FetchClient) {}\n\n async ngOnInit() {\n const response = await this.fetchClient.fetch(this.url);\n if (response.status === 200) {\n this.content = await response.text();\n return;\n }\n this.content = '';\n }\n}\n","<ng-container *ngIf=\"content\">\n <a [href]=\"url\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"small pull-right\">\n <i c8yIcon=\"external-link\" class=\"m-r-4\"></i>\n <span translate>Open in new window</span>\n </a>\n <textarea\n [attr.aria-label]=\"'License' | translate\"\n class=\"form-control bg-level-1 text-monospace small m-b-16\"\n readonly\n style=\"height: 170px\"\n [textContent]=\"content\"\n ></textarea>\n</ng-container>\n\n<div class=\"alert alert-warning\" role=\"alert\" *ngIf=\"!content && name\">\n <strong translate>No license attached</strong>\n <p translate>\n The author of the package hasn't included a license file in a format that can be displayed.\n Verify the license online, for example, with a website like:\n </p>\n <a [href]=\"FALL_BACK_URL + name\" target=\"_blank\" rel=\"noopener noreferrer\">\n {{ FALL_BACK_URL }}{{ name }}\n </a>\n</div>\n\n<div class=\"alert alert-danger\" role=\"alert\" *ngIf=\"!content && !name\">\n <strong translate>No license found</strong>\n <p translate>\n There is no license attached to this package. You can continue installing it at your own risk.\n </p>\n</div>\n","import { Component, OnInit, ViewChild } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { C8yStepper, gettext, OptionsService, WizardComponent } from '@c8y/ngx-components';\nimport { uniqBy } from 'lodash-es';\nimport { LicensedApplicationPlugin } from '@c8y/ngx-components/ecosystem/shared';\nimport { TranslateService } from '@ngx-translate/core';\n\ninterface ConfirmInstallModal {\n pluginsToInstall: LicensedApplicationPlugin[];\n}\n\ninterface License {\n licenseName: string;\n url: string;\n appName: string;\n}\n\n@Component({\n selector: 'c8y-license-confirm-modal',\n templateUrl: './license-confirm-modal.component.html'\n})\nexport class LicenseConfirmModalComponent implements OnInit {\n formGroupAccept: FormGroup;\n formGroupLicenses: FormGroup;\n @ViewChild(C8yStepper, { static: true })\n stepper: C8yStepper;\n licenses: License[] = [];\n disclaimerText: string;\n\n constructor(\n private wizardComponent: WizardComponent<ConfirmInstallModal>,\n private fb: FormBuilder,\n private optionsService: OptionsService,\n private translateService: TranslateService\n ) {}\n\n ngOnInit(): void {\n const { pluginsToInstall } = this.wizardComponent.componentInitialState;\n\n this.formGroupAccept = this.fb.group({\n confirmed: [false, Validators.required]\n });\n\n this.formGroupLicenses = this.fb.group({\n acceptAll: [false, Validators.required]\n });\n\n const allLicenses: License[] = pluginsToInstall.map(app => ({\n appName: app.name,\n url: `/apps/${app.contextPath}@${app.version}/LICENSE.txt`,\n licenseName: app.license\n }));\n\n const uniqByUrl = (uniqBy(allLicenses, 'url') as License[]).map(license => ({\n ...license,\n pluginName: allLicenses\n .filter(({ url }) => url === license.url)\n .map(({ appName: pluginName }) => pluginName)\n .join(', ')\n }));\n\n const companyName = this.optionsService.get('companyName', 'Cumulocity');\n const textWithCompany = gettext(\n 'These plugins and/or blueprints are provided <strong>as-is and without warranty or support</strong>, and they do not constitute part of the {{ companyName }} product suite. Users are free to use subject to the license agreement.'\n );\n const textWithoutCompany = gettext(\n 'These plugins and/or blueprints are provided <strong>as-is and without warranty or support</strong>, and they do not constitute part of the product suite. Users are free to use subject to the license agreement.'\n );\n\n this.disclaimerText = this.translateService.instant(\n companyName ? textWithCompany : textWithoutCompany,\n {\n companyName\n }\n );\n\n this.licenses = uniqByUrl;\n }\n\n cancel() {\n this.wizardComponent.close(false);\n }\n\n done() {\n this.wizardComponent.close(true);\n }\n}\n","<c8y-wizard-header>\n <i c8yIcon=\"privacy-policy\"></i>\n <div id=\"modal-title\" class=\"modal-title h4\" translate>Accept license(s)</div>\n</c8y-wizard-header>\n<c8y-wizard-body>\n <div class=\"m-t-16 m-l-32 m-r-32\">\n <c8y-stepper>\n <cdk-step [stepControl]=\"formGroupAccept\" [label]=\"'Disclaimer' | translate\">\n <div class=\"m-t-8\">\n <div class=\"text-center m-b-16 h4\">\n <i c8yIcon=\"info-circle\" class=\"text-info d-block icon-40 m-b-8\"></i>\n {{ 'About community packages' | translate }}\n </div>\n <p class=\"m-b-16\">\n <span translate>These plugins and/or blueprints are provided\n <strong>as-is and without warranty or support</strong>.</span>\n {{disclaimerText}}\n </p>\n <hr style=\"margin: 16px -24px 16px\" />\n <div class=\"text-center\">\n <c8y-form-group class=\"d-inline-block\">\n <div [formGroup]=\"formGroupAccept\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input\n type=\"checkbox\"\n class=\"form-control\"\n formControlName=\"confirmed\"\n required\n />\n <span></span>\n <span translate>Understood and agreed</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'Accept the maintenance disclaimer.' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n </div>\n </div>\n\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 0\">\n <c8y-stepper-buttons\n [title]=\"'Confirm agreement' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n <cdk-step state=\"final\" [stepControl]=\"formGroupLicenses\" [label]=\"'Licenses' | translate\">\n <div *ngFor=\"let license of licenses\" class=\"p-t-24\">\n <label\n *ngIf=\"license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n uses\n <b>{{ licenseName }}</b>\n license\n </label>\n <label\n *ngIf=\"!license.licenseName\"\n translate\n [translateParams]=\"{ appName: license.appName, licenseName: license.licenseName }\"\n ngNonBindable\n class=\"text-normal\"\n >\n <b>{{ appName }}</b>\n uses\n <b>no license</b>\n </label>\n <c8y-license-view [url]=\"license.url\" [name]=\"license.licenseName\"></c8y-license-view>\n </div>\n <c8y-wizard-footer *ngIf=\"stepper.selectedIndex === 1\">\n <c8y-form-group class=\"text-center d-inline-block\">\n <div [formGroup]=\"formGroupLicenses\" class=\"d-flex d-col a-i-center\">\n <label class=\"c8y-checkbox\">\n <input type=\"checkbox\" class=\"form-control\" formControlName=\"acceptAll\" required />\n <span></span>\n <span *ngIf=\"licenses.length === 1\" translate>Accept license</span>\n <span *ngIf=\"licenses.length > 1\" translate>Accept all licenses</span>\n </label>\n <c8y-messages class=\"d-inline-block\">\n <c8y-message\n [name]=\"'required'\"\n [text]=\"'You need to accept the license agreement(s)' | translate\"\n ></c8y-message>\n </c8y-messages>\n </div>\n </c8y-form-group>\n <hr style=\"margin: 0 -24px 16px\" />\n <c8y-stepper-buttons\n [title]=\"'Accept license' | translate\"\n [showButtons]=\"{ next: true, cancel: true, back: false, custom: false }\"\n (onCancel)=\"cancel()\"\n (onNext)=\"done()\"\n ></c8y-stepper-buttons>\n </c8y-wizard-footer>\n </cdk-step>\n </c8y-stepper>\n </div>\n</c8y-wizard-body>\n","import { NgModule } from '@angular/core';\nimport { LicenseConfirmModalComponent } from './license-confirm-modal.component';\nimport { LicenseViewComponent } from './license-view.component';\nimport { CoreModule, FormsModule, hookWizard } from '@c8y/ngx-components';\nimport { EcosystemWizards, SharedEcosystemModule } from '@c8y/ngx-components/ecosystem/shared';\n\n@NgModule({\n declarations: [LicenseConfirmModalComponent, LicenseViewComponent],\n imports: [CoreModule, FormsModule, SharedEcosystemModule],\n exports: [LicenseConfirmModalComponent, LicenseViewComponent],\n providers: [\n hookWizard({\n wizardId: EcosystemWizards.LICENSE_CONFIRM,\n component: LicenseConfirmModalComponent,\n name: undefined\n })\n ]\n})\nexport class LicenseConfirmModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3","i1","i6.LicenseViewComponent"],"mappings":";;;;;;;;;;;;;;MAQa,oBAAoB,CAAA;AAS/B,IAAA,WAAA,CAAoB,WAAwB,EAAA;AAAxB,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;AAJ5C,QAAA,IAAA,CAAA,OAAO,GAAW,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAEtD,QAAA,IAAa,CAAA,aAAA,GAAG,4BAA4B,CAAC;KAEG;IAE1C,QAAQ,GAAA;;AACZ,YAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACxD,YAAA,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE;gBAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACrC,OAAO;AACR,aAAA;AACD,YAAA,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;SACnB,CAAA,CAAA;AAAA,KAAA;;iHAlBU,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,8FCRjC,yqCA+BA,EAAA,YAA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A,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EARpB,SAAA,EAAA;AACT,QAAA,UAAU,CAAC;YACT,QAAQ,EAAE,gBAAgB,CAAC,eAAe;AAC1C,YAAA,SAAS,EAAE,4BAA4B;AACvC,YAAA,IAAI,EAAE,SAAS;SAChB,CAAC;KACH,EAAA,OAAA,EAAA,CARS,UAAU,EAAE,WAAW,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;2FAU7C,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAZhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,4BAA4B,EAAE,oBAAoB,CAAC;AAClE,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,qBAAqB,CAAC;AACzD,oBAAA,OAAO,EAAE,CAAC,4BAA4B,EAAE,oBAAoB,CAAC;AAC7D,oBAAA,SAAS,EAAE;AACT,wBAAA,UAAU,CAAC;4BACT,QAAQ,EAAE,gBAAgB,CAAC,eAAe;AAC1C,4BAAA,SAAS,EAAE,4BAA4B;AACvC,4BAAA,IAAI,EAAE,SAAS;yBAChB,CAAC;AACH,qBAAA;iBACF,CAAA;;;ACjBD;;AAEG;;;;"}
|
|
@@ -98,7 +98,7 @@ const PRODUCT_EXPERIENCE = {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
const ERROR_MESSAGES = {
|
|
101
|
-
[ERROR_TYPE.ALREADY_EXIST]: gettext('Could not deploy the application, as
|
|
101
|
+
[ERROR_TYPE.ALREADY_EXIST]: gettext('Could not deploy the application, as an application with the same name`KEEP_ORIGINAL`, context-path`KEEP_ORIGINAL` or key`KEEP_ORIGINAL` exists already.'),
|
|
102
102
|
[ERROR_TYPE.TYPE_VALIDATION]: gettext('Wrong file format. Expected a *.zip file with a valid manifest.'),
|
|
103
103
|
[ERROR_TYPE.ALREADY_SUBSCRIBED]: gettext('Could not subscribe to the microservice because another application with the same context path is already subscribed.'),
|
|
104
104
|
[ERROR_TYPE.NO_MANIFEST_FILE]: gettext('Could not find a manifest.'),
|