Browse Source

Merge remote-tracking branch 'origin/lts-4.4' into internal-lts-4.4

pull/16844/head
Viacheslav Klimov 2 weeks ago
parent
commit
2a063f2aa6
Failed to extract signature
  1. 5
      application/src/test/java/org/thingsboard/server/service/integration/template/IntegrationPackageExportServiceTest.java
  2. 2
      common/integration/tuya-integrations/src/main/java/org/thingsboard/integration/tuya/TuyaIntegrationConfiguration.java
  3. 6
      ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html
  4. 59
      ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts
  5. 45
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-actions.service.ts
  6. 2
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-components.module.ts
  7. 55
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-converter-update-dialog.component.html
  8. 97
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-converter-update-dialog.component.scss
  9. 88
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-converter-update-dialog.component.ts
  10. 85
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-default-converter.ts
  11. 6
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.html
  12. 86
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.ts
  13. 5
      ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts
  14. 5
      ui-ngx/src/assets/locale/locale.constant-ar_AE.json
  15. 5
      ui-ngx/src/assets/locale/locale.constant-ca_ES.json
  16. 2
      ui-ngx/src/assets/locale/locale.constant-da_DK.json
  17. 2
      ui-ngx/src/assets/locale/locale.constant-de_DE.json
  18. 2
      ui-ngx/src/assets/locale/locale.constant-el_GR.json
  19. 15
      ui-ngx/src/assets/locale/locale.constant-en_US.json
  20. 2
      ui-ngx/src/assets/locale/locale.constant-es_ES.json
  21. 2
      ui-ngx/src/assets/locale/locale.constant-fr_FR.json
  22. 2
      ui-ngx/src/assets/locale/locale.constant-hi_IN.json
  23. 2
      ui-ngx/src/assets/locale/locale.constant-it_IT.json
  24. 2
      ui-ngx/src/assets/locale/locale.constant-ja_JP.json
  25. 2
      ui-ngx/src/assets/locale/locale.constant-ko_KR.json
  26. 2
      ui-ngx/src/assets/locale/locale.constant-lt_LT.json
  27. 2
      ui-ngx/src/assets/locale/locale.constant-nl_BE.json
  28. 2
      ui-ngx/src/assets/locale/locale.constant-nl_NL.json
  29. 2
      ui-ngx/src/assets/locale/locale.constant-no_NO.json
  30. 2
      ui-ngx/src/assets/locale/locale.constant-pl_PL.json
  31. 2
      ui-ngx/src/assets/locale/locale.constant-pt_BR.json
  32. 2
      ui-ngx/src/assets/locale/locale.constant-sl_SI.json
  33. 2
      ui-ngx/src/assets/locale/locale.constant-tr_TR.json
  34. 2
      ui-ngx/src/assets/locale/locale.constant-uk_UA.json
  35. 2
      ui-ngx/src/assets/locale/locale.constant-zh_CN.json
  36. 2
      ui-ngx/src/assets/locale/locale.constant-zh_TW.json

5
application/src/test/java/org/thingsboard/server/service/integration/template/IntegrationPackageExportServiceTest.java

@ -816,6 +816,11 @@ class IntegrationPackageExportServiceTest {
assertThat(entry.get("secretSupport")).isEqualTo(true);
assertThat(entry.get("defaultValue")).isEqualTo("");
}
assertThat(result.formEntries()).filteredOn(e -> "tuyaAccessId".equals(e.get("key")))
.extracting(e -> e.get("label")).containsExactly("Access ID");
assertThat(result.formEntries()).filteredOn(e -> "tuyaAccessKey".equals(e.get("key")))
.extracting(e -> e.get("label")).containsExactly("Access Secret");
}
@Test

2
common/integration/tuya-integrations/src/main/java/org/thingsboard/integration/tuya/TuyaIntegrationConfiguration.java

@ -19,7 +19,7 @@ public class TuyaIntegrationConfiguration {
secret = true, group = "Tuya Connection", required = true)
private String accessId;
@TemplateField(key = "tuyaAccessKey", label = "Access key",
@TemplateField(key = "tuyaAccessKey", label = "Access Secret",
type = FormFieldType.PASSWORD, secret = true, group = "Tuya Connection", required = true)
private String accessKey;

6
ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.html

@ -90,9 +90,6 @@
</div>
<div class="flex min-w-0 flex-1 flex-col">
<span class="tb-progress-label tb-progress-label-active">{{ label }}</span>
@if (plan.newDefaultConverter) {
<span class="tb-progress-hint">{{ 'iot-hub.device-update-new-default-converter' | translate }}</span>
}
@if (plan.existing) {
<span class="tb-progress-alert-msg tb-progress-alert-msg-warning">
{{ 'iot-hub.device-install-conflict-exists' | translate:{ type: ('iot-hub.device-install-step-type-' + ep.step.type | translate), name: plan.existing.name } }}
@ -171,9 +168,6 @@
</div>
<!-- A confirmed warning stays visible: the status says the conflict is resolved, the hint what happens -->
@if (ws.reviewing && plan?.confirmed) {
@if (plan.newDefaultConverter) {
<span class="tb-progress-hint">{{ 'iot-hub.device-update-new-default-converter' | translate }}</span>
}
@if (plan.shared) {
<span class="tb-progress-hint">{{ 'iot-hub.device-update-shared' | translate }}</span>
}

59
ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/device-install-dialog.component.ts

@ -37,7 +37,7 @@ import { getCurrentAuthState } from '@core/auth/auth.selectors';
import { ScriptLanguage } from '@shared/models/rule-node.models';
import { Integration, IntegrationType } from '@shared/models/integration.models';
import { HasVersion } from '@shared/models/entity.models';
import { differsFromDefaultConverter, loadDefaultUplinkConverter, loadOwnDefaultConverterIds } from '@home/components/iot-hub/iot-hub-default-converter';
import { loadDefaultUplinkConverter } from '@home/components/iot-hub/iot-hub-default-converter';
import { downloadEntityJson, readableMessage, requestFailureMessage, splitTextWithLink } from '@home/components/iot-hub/iot-hub-utils';
import {
cleanFormFieldValue,
@ -103,8 +103,6 @@ interface EntityStepPlan {
version?: number;
// Modified: the entity as the check found it, which the user can download before it is overwritten
current?: any;
// A step with "default": true whose converter differs from ThingsBoard's default converter now
newDefaultConverter?: boolean;
}
// Install: the conflict choice a Retry keeps while the existing entity is the same one
@ -403,8 +401,6 @@ export class TbDeviceInstallDialogComponent extends DialogComponent<TbDeviceInst
private previousFiles = new Map<string, string>();
private previousPackageInfo: DevicePackageInfo | null = null;
private entityPlans = new WeakMap<EntityStepProgress, EntityStepPlan>();
// Update: for each step with "default": true, whether its converter differs from ThingsBoard's default one now
private defaultConverterChanges = new Map<DeviceInstallStep, boolean>();
// The check of the plan in progress; a way back meanwhile starts a new one, which drops this one's result
private checkRun = 0;
@ -490,7 +486,6 @@ export class TbDeviceInstallDialogComponent extends DialogComponent<TbDeviceInst
// Update: the package keeps the method it was installed with
this.selectedInstallMethod = this.data.update.descriptor.selectedInstallMethod;
await this.loadPreviousVersion();
await this.checkDefaultConverters();
if (this.isTextOnlyUpdate() && await this.registerTextOnlyUpdate()) {
return;
}
@ -2078,7 +2073,8 @@ export class TbDeviceInstallDialogComponent extends DialogComponent<TbDeviceInst
/**
* A converter step with "default": true takes the converter ThingsBoard creates for a new integration of the method's
* type (INTEGRATION_TTN: TTN). It becomes the step's template, so it installs, overwrites and updates like a file of the package.
* type (INTEGRATION_TTN: TTN). It becomes the step's template, so it installs and overwrites like a file of the package; an update
* counts it as changed only when the step switches to or from the default converter (see entityStepChanged).
*/
private async addDefaultConverters(): Promise<void> {
const scriptLang = getCurrentAuthState(this.store).tbelEnabled ? ScriptLanguage.TBEL : ScriptLanguage.JS;
@ -2098,38 +2094,6 @@ export class TbDeviceInstallDialogComponent extends DialogComponent<TbDeviceInst
}
}
/**
* Update: ThingsBoard's default converter changes with ThingsBoard, not with the package, so a step with "default": true
* changed when the package's converter differs from the default one now. A converter the user changed differs too:
* the update shows that someone changed it.
*/
private async checkDefaultConverters(): Promise<void> {
this.restoreInstallState();
let ownDefaultConverterIds: Set<string> | undefined;
try {
for (const step of this.packageInfo.installSteps[this.selectedInstallMethod] ?? []) {
const stored = step.default ? this.storedStateOf(step)?.state : undefined;
let id: string = stored?.entityOutput?.id;
// A converter taken as it was may be any converter with that name: only another package's default one is checked
if (id && stored.resolution === 'use-existing') {
ownDefaultConverterIds ??= await loadOwnDefaultConverterIds(this.iotHubApiService);
if (!ownDefaultConverterIds.has(id)) {
id = undefined;
}
}
const converter = id ? await firstValueFrom(this.converterService.getConverter(id, {ignoreErrors: true})).catch(() => null) : null;
if (converter) {
const defaultConverter = await loadDefaultUplinkConverter(this.resourcesService, converter.integrationType,
converter.configuration.scriptLang, converter.name);
this.defaultConverterChanges.set(step, !!defaultConverter && differsFromDefaultConverter(converter, defaultConverter));
}
}
} finally {
this.formValues = {};
this.entityOutputs.clear();
}
}
/** Update: loads the installed version. Without it, every form and entity of the new version counts as changed. */
private async loadPreviousVersion(): Promise<void> {
try {
@ -2343,13 +2307,14 @@ export class TbDeviceInstallDialogComponent extends DialogComponent<TbDeviceInst
/** Update: true when the new version's files give the entity something else than the installed version's gave it. */
private entityStepChanged(step: DeviceInstallStep): boolean {
if (this.defaultConverterChanges.has(step)) {
return this.defaultConverterChanges.get(step);
}
const previousStep = this.findPreviousStep(step);
if (!previousStep) {
return true;
}
// The default converter's template isn't a file of the package: it changes only when the step switches to or from the default converter
if (step.default) {
return !previousStep.default;
}
const previousFormValues = this.previousFormValues();
const files: ('template' | 'serverAttributes' | 'sharedAttributes' | 'credentials')[] = ['template', 'serverAttributes', 'sharedAttributes', 'credentials'];
return files.some(file => !isEqual(
@ -2450,13 +2415,6 @@ export class TbDeviceInstallDialogComponent extends DialogComponent<TbDeviceInst
if (previous) {
// Its current name: the user may have renamed it
ep.resolvedName = previous.output.name;
const newDefaultConverter = this.defaultConverterChanges.get(step);
// The default converter of a package that took another package's converter is that package's: the update
// of either brings it to ThingsBoard's default, which changes it for both
if (previous.useExisting && newDefaultConverter) {
const current = await this.loadEntitySnapshot(step, previous.output.id);
return { action: 'overwrite', previous, shared: true, confirmed: false, version: current.version, newDefaultConverter };
}
// The device and its credentials, which the firmware uses, never change on update
if (previous.useExisting || step.type === InstallStepType.DEVICE || step.type === InstallStepType.GATEWAY) {
return { action: 'keep', previous, confirmed: true };
@ -2475,8 +2433,7 @@ export class TbDeviceInstallDialogComponent extends DialogComponent<TbDeviceInst
action: 'overwrite', previous, shared: previous.shared, modified: modified && !previous.shared,
confirmed: !previous.shared && !modified,
version,
current: modified && !previous.shared ? current : undefined,
newDefaultConverter
current: modified && !previous.shared ? current : undefined
};
}
// At install, or new in this version, or deleted since: created, unless the user chooses otherwise for an entity

45
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-actions.service.ts

@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1
import { Injectable } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { Observable, of, EMPTY, firstValueFrom, from } from 'rxjs';
import { Observable, of, EMPTY } from 'rxjs';
import { catchError, map, switchMap } from 'rxjs/operators';
import { TranslateService } from '@ngx-translate/core';
import { DialogService } from '@core/services/dialog.service';
@ -11,9 +11,6 @@ import { MpItemVersionView } from '@shared/models/iot-hub/iot-hub-version.models
import { ItemType } from '@shared/models/iot-hub/iot-hub-item.models';
import { DeviceInstalledItemDescriptor, IotHubInstalledItem, IotHubInstalledItemKeptEntities } from '@shared/models/iot-hub/iot-hub-installed-item.models';
import { IotHubApiService } from '@core/http/iot-hub-api.service';
import { ConverterService } from '@core/http/converter.service';
import { Converter } from '@shared/models/converter.models';
import { HasVersion } from '@shared/models/entity.models';
import { EntityId } from '@shared/models/id/entity-id';
import { TbIotHubAddItemDialogComponent, IotHubAddItemDialogData, IotHubAddItemDialogResult } from './iot-hub-add-item-dialog.component';
import { TbIotHubItemDetailDialogComponent, IotHubItemDetailDialogData, IotHubItemDetailDialogMode } from './iot-hub-item-detail-dialog.component';
@ -24,8 +21,6 @@ import { TbDeviceInstallDialogComponent, DeviceInstallDialogData, DeviceInstallU
import { TbIotHubInstalledItemsDialogComponent, IotHubInstalledItemsDialogData } from './iot-hub-installed-items-dialog.component';
import { IotHubBuiltInService } from './iot-hub-built-in.service';
import { isBuiltInItem } from './iot-hub-utils';
import { TbIotHubConverterUpdateDialogComponent, IotHubConverterUpdateDialogData } from './iot-hub-converter-update-dialog.component';
import { DefaultConverterUpdate, loadInstalledDevicePackages } from './iot-hub-default-converter';
/**
* What `openBuiltInOrConfirmInstall` did with a built-in item: 'handled' means nothing is left to do
@ -42,8 +37,7 @@ export class IotHubActionsService {
private dialogService: DialogService,
private translate: TranslateService,
private builtInService: IotHubBuiltInService,
private iotHubApiService: IotHubApiService,
private converterService: ConverterService
private iotHubApiService: IotHubApiService
) {}
openItemDetail(item: MpItemVersionView, installedItem?: IotHubInstalledItem, installedItemsCount?: number,
@ -173,41 +167,6 @@ export class IotHubActionsService {
}).afterClosed();
}
/**
* Brings a device package's default converter to ThingsBoard's default converter now, after the user confirms it.
* The dialog opens with what the update check found: whether someone changed the converter, and which other packages use it.
*/
updateDefaultConverter(update: DefaultConverterUpdate): Observable<boolean> {
return from(this.converterUpdateDialogData(update)).pipe(
switchMap(data => this.dialog.open<TbIotHubConverterUpdateDialogComponent, IotHubConverterUpdateDialogData, boolean>(
TbIotHubConverterUpdateDialogComponent, {
panelClass: ['tb-dialog'],
disableClose: true,
autoFocus: false,
data
}).afterClosed()),
catchError(() => of(false))
);
}
private async converterUpdateDialogData(update: DefaultConverterUpdate): Promise<IotHubConverterUpdateDialogData> {
const installedItemId = update.installedItem.id.id;
const converterId = update.converter.id.id;
// The converter as it is now, not the table's copy: the dialog downloads it, and the update overwrites only this version
const [states, packages, converter] = await Promise.all([
firstValueFrom(this.iotHubApiService.checkDeviceUpdate(installedItemId)),
loadInstalledDevicePackages(this.iotHubApiService),
firstValueFrom(this.converterService.getConverter(converterId)) as Promise<Converter & HasVersion>
]);
const state = states.find(s => s.stepName === update.stateKey);
// As the server decides what is shared: the converter is one of the entities another package tracks
const usedBy = packages
.filter(item => item.id.id !== installedItemId &&
(item.descriptor as DeviceInstalledItemDescriptor)?.createdEntityIds?.some(id => id.id === converterId))
.map(item => item.itemName);
return { update: { ...update, converter }, version: converter.version ?? state?.version, modified: state?.modified === true, usedBy };
}
deleteItem(installedItem: IotHubInstalledItem): Observable<boolean> {
if (!installedItem) {
return of(false);

2
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-components.module.ts

@ -11,7 +11,6 @@ import { TbIotHubAddItemDialogComponent } from './iot-hub-add-item-dialog.compon
import { TbIotHubInstallDialogComponent } from './iot-hub-install-dialog.component';
import { TbIotHubUpdateDialogComponent } from './iot-hub-update-dialog.component';
import { TbIotHubDeleteDialogComponent } from './iot-hub-delete-dialog.component';
import { TbIotHubConverterUpdateDialogComponent } from './iot-hub-converter-update-dialog.component';
import { TbIotHubUnpublishedWarningDialogComponent } from './iot-hub-unpublished-warning-dialog.component';
import { TbDeviceInstallDialogComponent } from './device-install-dialog/device-install-dialog.component';
import { InstallFormRendererComponent } from './device-install-dialog/install-form-renderer/install-form-renderer.component';
@ -28,7 +27,6 @@ import { IotHubItemLinkModule } from './iot-hub-item-link-card/iot-hub-item-link
@NgModule({
declarations: [
TbIotHubConverterUpdateDialogComponent,
TbIotHubItemDetailDialogComponent,
TbIotHubBrowseComponent,
TbIotHubItemCardComponent,

55
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-converter-update-dialog.component.html

@ -1,55 +0,0 @@
<!--
SPDX-FileCopyrightText: Copyright ThingsBoard, Inc.
SPDX-License-Identifier: BUSL-1.1
-->
<div class="flex flex-col gap-4 p-6">
<h2 class="tb-converter-update-title">{{ 'iot-hub.converter-update-title' | translate }}</h2>
<p class="tb-converter-update-text">{{ 'iot-hub.device-update-new-default-converter' | translate }}</p>
<div class="tb-converter-update-box flex flex-col gap-2">
<div class="tb-converter-update-name">{{ data.update.converter.name }}</div>
@if (data.usedBy.length) {
<span class="tb-progress-alert-msg tb-progress-alert-msg-warning">{{ 'iot-hub.device-update-shared' | translate }}</span>
<div>
<ul class="tb-converter-update-packages">
@for (name of usedByShown; track $index) {
<li>{{ name }}</li>
}
</ul>
@if (usedByHidden.length) {
<div id="tb-converter-update-more" class="tb-converter-update-more" [class.expanded]="usedByExpanded"
[attr.aria-hidden]="!usedByExpanded">
<ul class="tb-converter-update-packages">
@for (name of usedByHidden; track $index) {
<li>{{ name }}</li>
}
</ul>
</div>
}
</div>
@if (usedByHidden.length) {
<button type="button" class="tb-converter-update-toggle self-start" aria-controls="tb-converter-update-more"
[attr.aria-expanded]="usedByExpanded" (click)="usedByExpanded = !usedByExpanded">
@if (usedByExpanded) {
{{ 'iot-hub.device-update-shared-less' | translate }}
} @else {
{{ 'iot-hub.device-update-shared-more' | translate:{ count: usedByHidden.length } }}
}
</button>
}
}
@if (data.modified) {
<span class="tb-progress-alert-msg tb-progress-alert-msg-warning">
{{ modifiedHint.before }}<a class="tb-converter-update-link" href="#" (click)="$event.preventDefault(); downloadCurrent()">{{ modifiedHint.link }}</a>{{ modifiedHint.after }}
</span>
}
</div>
@if (errorMessage) {
<span class="tb-progress-alert-msg tb-progress-alert-msg-error">{{ errorMessage }}</span>
}
</div>
<div class="flex items-center justify-end gap-2 p-2">
<button mat-button (click)="cancel()" [disabled]="updating">{{ 'action.cancel' | translate }}</button>
<button mat-flat-button color="primary" (click)="update()" [disabled]="updating">{{ 'iot-hub.update' | translate }}</button>
</div>

97
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-converter-update-dialog.component.scss

@ -1,97 +0,0 @@
// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc.
// SPDX-License-Identifier: BUSL-1.1
:host {
display: block;
max-width: 600px;
}
.tb-converter-update-title {
font-size: 20px;
font-weight: 600;
line-height: 24px;
letter-spacing: 0.1px;
color: rgba(0, 0, 0, 0.87);
margin: 0;
}
.tb-converter-update-text {
font-size: 14px;
line-height: 20px;
letter-spacing: 0.2px;
color: rgba(0, 0, 0, 0.54);
margin: 0;
}
.tb-converter-update-box {
padding: 12px 16px;
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 8px;
}
.tb-converter-update-name {
font-size: 14px;
font-weight: 500;
line-height: 20px;
color: rgba(0, 0, 0, 0.87);
}
.tb-converter-update-packages {
margin: 0;
padding-left: 20px;
font-size: 12px;
line-height: 16px;
color: rgba(0, 0, 0, 0.54);
}
// Material expansion-panel timing
.tb-converter-update-more {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1);
> ul {
overflow: hidden;
min-height: 0;
}
&.expanded {
grid-template-rows: 1fr;
}
@media (prefers-reduced-motion: reduce) {
transition: none;
}
}
.tb-converter-update-toggle {
padding: 0;
border: none;
background: none;
font-size: 12px;
font-weight: 500;
line-height: 16px;
color: var(--tb-primary-500);
cursor: pointer;
&:hover,
&:focus-visible {
text-decoration: underline;
}
}
.tb-converter-update-link {
color: #305680;
text-decoration: underline;
cursor: pointer;
}
.tb-progress-alert-msg {
font-size: 12px;
font-weight: 400;
line-height: 16px;
letter-spacing: 0.4px;
&.tb-progress-alert-msg-warning {
color: #f66716;
}
&.tb-progress-alert-msg-error {
color: #dd2c00;
}
}

88
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-converter-update-dialog.component.ts

@ -1,88 +0,0 @@
// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc.
// SPDX-License-Identifier: BUSL-1.1
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { Router } from '@angular/router';
import { Store } from '@ngrx/store';
import { TranslateService } from '@ngx-translate/core';
import { AppState } from '@core/core.state';
import { DialogComponent } from '@shared/components/dialog.component';
import { IotHubApiService } from '@core/http/iot-hub-api.service';
import { DefaultConverterUpdate, defaultConverterUpdateRequest } from '@home/components/iot-hub/iot-hub-default-converter';
import { downloadEntityJson, readableMessage, requestFailureMessage, splitTextWithLink } from '@home/components/iot-hub/iot-hub-utils';
export interface IotHubConverterUpdateDialogData {
update: DefaultConverterUpdate;
// The version of the converter the dialog downloads: the server refuses the update if someone saved the converter since
version?: number;
// Someone changed the converter since a package installed or last updated it
modified: boolean;
// The names of the other installed packages that use the converter
usedBy: string[];
}
const USED_BY_SHOWN = 3;
/**
* Brings an installed device package's default converter to ThingsBoard's default converter now, without a new version of
* the package. Closes with true once it is updated.
*/
@Component({
selector: 'tb-iot-hub-converter-update-dialog',
standalone: false,
templateUrl: './iot-hub-converter-update-dialog.component.html',
styleUrls: ['./iot-hub-converter-update-dialog.component.scss']
})
export class TbIotHubConverterUpdateDialogComponent extends DialogComponent<TbIotHubConverterUpdateDialogComponent, boolean> {
readonly modifiedHint = splitTextWithLink(this.translate.instant('iot-hub.device-update-modified'));
readonly usedByShown: string[];
readonly usedByHidden: string[];
usedByExpanded = false;
updating = false;
errorMessage: string | null = null;
constructor(
protected store: Store<AppState>,
protected router: Router,
protected dialogRef: MatDialogRef<TbIotHubConverterUpdateDialogComponent, boolean>,
@Inject(MAT_DIALOG_DATA) public data: IotHubConverterUpdateDialogData,
private iotHubApiService: IotHubApiService,
private translate: TranslateService
) {
super(store, router, dialogRef);
// Collapse only when at least 2 packages would be hidden
const shownCount = data.usedBy.length > USED_BY_SHOWN + 1 ? USED_BY_SHOWN : data.usedBy.length;
this.usedByShown = data.usedBy.slice(0, shownCount);
this.usedByHidden = data.usedBy.slice(shownCount);
}
downloadCurrent(): void {
downloadEntityJson(this.data.update.converter, this.data.update.converter.name);
}
update(): void {
this.updating = true;
this.errorMessage = null;
this.iotHubApiService.updateDevicePackage(this.data.update.installedItem.id.id,
defaultConverterUpdateRequest(this.data.update, this.data.version), { ignoreErrors: true }).subscribe({
next: result => {
if (result.success) {
this.dialogRef.close(true);
return;
}
// Nothing was changed: the server rolled it back
this.updating = false;
this.errorMessage = readableMessage(result.errorMessage) ?? this.translate.instant('iot-hub.device-install-unexpected-error');
},
error: error => {
this.updating = false;
this.errorMessage = requestFailureMessage(error, this.translate);
}
});
}
cancel(): void {
this.dialogRef.close(false);
}
}

85
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-default-converter.ts

@ -5,27 +5,9 @@ import { ResourcesService } from '@core/services/resources.service';
import { Converter, ConverterConfigV2, ConverterType, getTargetField, getTargetTemplateUrl } from '@shared/models/converter.models';
import { IntegrationType } from '@shared/models/integration.models';
import { ScriptLanguage } from '@shared/models/rule-node.models';
import { isEqual } from '@core/utils';
import { DeviceInstalledItemDescriptor, DevicePackageRequest, IotHubInstalledItem } from '@shared/models/iot-hub/iot-hub-installed-item.models';
import { IotHubApiService } from '@core/http/iot-hub-api.service';
import { PageLink } from '@shared/models/page/page-link';
import { PageData } from '@shared/models/page/page-data';
/** An installed device package's default converter that differs from ThingsBoard's default converter now. */
export interface DefaultConverterUpdate {
installedItem: IotHubInstalledItem;
// The key of the converter's step in the package's install state
stateKey: string;
converter: Converter;
defaultConverter: Partial<Converter>;
}
const DEFAULT_CONVERTERS_V2_CONFIGURATION_URL = '/assets/converters/default-converters-v2-configuration.json';
// The settings of a default converter that decide what it does: the script is compared on its own
const V2_CONFIGURATION_KEYS: (keyof ConverterConfigV2)[] =
['type', 'name', 'profile', 'label', 'customer', 'group', 'attributes', 'telemetry', 'updateOnlyKeys'];
/**
* The uplink converter ThingsBoard creates for a new integration of this type, as a device package step with
* "default": true installs it. Null when ThingsBoard has no default converter settings for the type.
@ -60,70 +42,3 @@ export const loadDefaultUplinkConverter = async (resourcesService: ResourcesServ
additionalInfo: { description: '' }
};
};
/** True when the converter does something else than the default one: another script or other settings. */
export const differsFromDefaultConverter = (converter: Converter, defaultConverter: Partial<Converter>): boolean => {
const field = getTargetField(ConverterType.UPLINK, converter.configuration.scriptLang);
const script = (value: string) => (value ?? '').trimEnd();
return script(converter.configuration[field]) !== script(defaultConverter.configuration[field]) ||
V2_CONFIGURATION_KEYS.some(key => !isEqual(converter.configuration[key] ?? null, defaultConverter.configuration[key] ?? null));
};
/** All installed device packages of the tenant. */
export const loadInstalledDevicePackages = async (iotHubApiService: IotHubApiService): Promise<IotHubInstalledItem[]> => {
const items: IotHubInstalledItem[] = [];
let pageLink = new PageLink(100);
let page: PageData<IotHubInstalledItem>;
do {
page = await firstValueFrom(iotHubApiService.getInstalledItems(pageLink, 'DEVICE', undefined, { ignoreLoading: true }));
items.push(...page.data);
pageLink = pageLink.nextPageLink();
} while (page.hasNext);
return items;
};
/**
* The converters device packages installed themselves as their default converter, not ones they took as they were, of
* all installed device packages: only such a converter is ThingsBoard's default one, which a new ThingsBoard version
* may change. The installed items table and the update dialog both decide by it.
*/
export const loadOwnDefaultConverterIds = async (iotHubApiService: IotHubApiService): Promise<Set<string>> => {
const ids = new Set<string>();
for (const item of await loadInstalledDevicePackages(iotHubApiService)) {
for (const state of Object.values((item.descriptor as DeviceInstalledItemDescriptor)?.installState ?? {})) {
if (state?.defaultConverter && state.entityOutput?.id && state.resolution !== 'use-existing') {
ids.add(state.entityOutput.id);
}
}
}
return ids;
};
/**
* The update of the installed version itself that brings its default converter to ThingsBoard's default one. It sends only
* the converter step: the server keeps the other steps, the forms and the integration's metadata as they are.
* expectedVersion is the converter's version the user reviewed.
*/
export const defaultConverterUpdateRequest = (update: DefaultConverterUpdate, expectedVersion?: number): DevicePackageRequest => {
const descriptor = update.installedItem.descriptor as DeviceInstalledItemDescriptor;
return {
versionId: update.installedItem.itemVersionId,
fromVersionId: update.installedItem.itemVersionId,
selectedInstallMethod: descriptor.selectedInstallMethod,
installState: {},
steps: [{
name: update.converter.name,
// The server keys the step's state by its id: the state stays under the key it has
id: update.stateKey,
type: 'UPLINK_CONVERTER',
action: 'OVERWRITE',
entityId: update.converter.id.id,
expectedVersion,
// The user confirmed it in the dialog, which names the other packages it affects
confirmed: true,
resolution: descriptor.installState?.[update.stateKey]?.resolution ?? 'created',
defaultConverter: true,
entity: update.defaultConverter
}]
};
};

6
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.html

@ -56,12 +56,6 @@
</button>
}
</div>
} @else if (hasConverterUpdate(item)) {
<!-- Only ThingsBoard's default converter changed: the package has no new version for it -->
<button mat-stroked-button color="warn" class="tb-installed-update-btn" (click)="updateConverter(item)">
<mat-icon>arrow_upward</mat-icon>
{{ 'iot-hub.new-converter-available' | translate }}
</button>
} @else {
<span class="tb-installed-up-to-date">
<mat-icon>check</mat-icon>

86
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-installed-items-table.component.ts

@ -36,15 +36,7 @@ import { entityTypeTranslations } from '@shared/models/entity-type.models';
import { MpItemVersionView } from '@shared/models/iot-hub/iot-hub-version.models';
import { getItemTypeIcon, ItemType, itemTypeTranslations } from '@shared/models/iot-hub/iot-hub-item.models';
import { IotHubActionsService } from '@home/components/iot-hub/iot-hub-actions.service';
import { ConverterService } from '@core/http/converter.service';
import { ResourcesService } from '@core/services/resources.service';
import {
DefaultConverterUpdate,
differsFromDefaultConverter,
loadDefaultUplinkConverter,
loadOwnDefaultConverterIds
} from '@home/components/iot-hub/iot-hub-default-converter';
import { firstValueFrom, forkJoin } from 'rxjs';
import { forkJoin } from 'rxjs';
@Component({
selector: 'tb-iot-hub-installed-items-table',
@ -77,9 +69,6 @@ export class TbIotHubInstalledItemsTableComponent implements OnInit, OnChanges,
isLoading = false;
publishedVersionMap = new Map<string, ItemPublishedVersionInfo>();
// Installed device packages whose default converter differs from ThingsBoard's default converter now
converterUpdates = new Map<string, DefaultConverterUpdate>();
private converterCheckRun = 0;
updatesChecked = false;
isCheckingUpdates = false;
updatesCheckFailed = false;
@ -103,9 +92,7 @@ export class TbIotHubInstalledItemsTableComponent implements OnInit, OnChanges,
private iotHubActions: IotHubActionsService,
private elementRef: ElementRef,
private zone: NgZone,
private cd: ChangeDetectorRef,
private converterService: ConverterService,
private resourcesService: ResourcesService
private cd: ChangeDetectorRef
) {
this.widgetResize$ = new ResizeObserver(() => {
this.zone.run(() => {
@ -260,7 +247,7 @@ export class TbIotHubInstalledItemsTableComponent implements OnInit, OnChanges,
infos.forEach(info => this.publishedVersionMap.set(info.itemId, info));
this.loadUpdatesCount(() => {
this.updatesChecked = true;
// No updates: stay on the full list (it also shows converter updates)
// No updates: stay on the full list
this.showOnlyUpdates(this.updatesCount > 0);
});
},
@ -362,70 +349,6 @@ export class TbIotHubInstalledItemsTableComponent implements OnInit, OnChanges,
});
}
hasConverterUpdate(item: IotHubInstalledItem): boolean {
return this.converterUpdates.has(item.id.id);
}
/** Brings the package's default converter to ThingsBoard's default one. Other packages on the converter take it too. */
updateConverter(item: IotHubInstalledItem): void {
const update = this.converterUpdates.get(item.id.id);
if (!update) {
return;
}
this.iotHubActions.updateDefaultConverter(update).subscribe(updated => {
if (updated) {
this.loadData();
}
});
}
/**
* The device packages on this page whose step with "default": true installed a converter that differs from
* ThingsBoard's default converter now. ThingsBoard's default changes with ThingsBoard, so the package has no new version for it.
*/
private async checkConverterUpdates(): Promise<void> {
// A later load (another page, sort or search) starts another run: an earlier one finishing last mustn't win
const run = ++this.converterCheckRun;
// The package's default converter of each DEVICE package on the page
const checks: { item: IotHubInstalledItem; stateKey: string; converterId: string }[] = [];
// Over all installed packages, not only this page's, as the update dialog decides
let ownDefaultConverterIds: Set<string> | undefined;
for (const item of this.dataSource) {
const states = item.itemType === 'DEVICE' ? Object.entries((item.descriptor as DeviceInstalledItemDescriptor)?.installState ?? {}) : [];
for (const [stateKey, state] of states) {
const id: string = state?.defaultConverter ? state.entityOutput?.id : undefined;
if (!id) {
continue;
}
// A converter taken as it was counts only when a package installed it as its default converter
if (state.resolution === 'use-existing') {
ownDefaultConverterIds ??= await loadOwnDefaultConverterIds(this.iotHubApiService);
if (!ownDefaultConverterIds.has(id)) {
continue;
}
}
checks.push({ item, stateKey, converterId: id });
}
}
const changed = await Promise.all(checks.map(async ({ item, stateKey, converterId }): Promise<DefaultConverterUpdate | null> => {
const converter = await firstValueFrom(this.converterService.getConverter(converterId, {ignoreErrors: true, ignoreLoading: true}))
.catch(() => null);
if (!converter) {
return null;
}
const defaultConverter = await loadDefaultUplinkConverter(this.resourcesService, converter.integrationType,
converter.configuration.scriptLang, converter.name);
return defaultConverter && differsFromDefaultConverter(converter, defaultConverter) ?
{ installedItem: item, stateKey, converter, defaultConverter } : null;
}));
if (run !== this.converterCheckRun) {
return;
}
this.converterUpdates = new Map(changed.filter(update => !!update).map(update => [update.installedItem.id.id, update]));
this.cd.markForCheck();
}
getPublishedVersionInfo(item: IotHubInstalledItem): ItemPublishedVersionInfo | undefined {
return this.publishedVersionMap.get(item.itemId);
}
@ -458,9 +381,6 @@ export class TbIotHubInstalledItemsTableComponent implements OnInit, OnChanges,
this.totalElements = data.totalElements;
this.loadFailed = false;
this.isLoading = false;
if (this.updatesChecked && !this.itemVersion && !this.onlyUpdates) {
void this.checkConverterUpdates();
}
},
error: () => {
if (run !== this.loadRun) {

5
ui-ngx/src/app/shared/models/iot-hub/iot-hub-installed-item.models.ts

@ -62,12 +62,11 @@ export interface DevicePackageStep {
serverAttributes?: any;
sharedAttributes?: any;
resolution?: string;
// The package step's stable id, so that a next version can rename the step. When set it is also the step's install
// state key: the default converter update sends the stored key here to write the state back under it
// The package step's stable id, so that a next version can rename the step. When set it is also the step's install state key
id?: string;
// INTEGRATION: the step's metadata entries, which a KEEP merges into the integration; null removes an entry
metadata?: Record<string, string | null>;
// The step takes ThingsBoard's default converter: its install state says so, for the update check
// The step takes ThingsBoard's default converter: its install state says so
defaultConverter?: boolean;
}

5
ui-ngx/src/assets/locale/locale.constant-ar_AE.json

@ -5671,8 +5671,6 @@
"access-id-required": "معرف الوصول مطلوب.",
"access-key": "مفتاح الوصول",
"access-key-required": "مفتاح الوصول مطلوب.",
"access-key-min-length": "مفتاح الوصول قصير جدًا.",
"access-key-max-length": "مفتاح الوصول طويل جدًا.",
"connection-parameters": "معلمات الاتصال",
"service-bus-namespace-name": "اسم مساحة أسماء Service Bus",
"service-bus-namespace-name-required": "اسم مساحة أسماء Service Bus مطلوب.",
@ -6493,8 +6491,6 @@
"check-for-updates": "التحقق من وجود تحديثات",
"updates": "التحديثات",
"up-to-date": "محدّث",
"new-converter-available": "يتوفر محوّل جديد",
"converter-update-title": "هل تريد تحديث المحوّل؟",
"update": "تحديث",
"update-to-version": "تحديث إلى الإصدار {{ version }}",
"update-item-title": "تحديث العنصر",
@ -6585,7 +6581,6 @@
"device-update-step": "تحديث",
"device-update-new": "جديد",
"device-update-shared": "تستخدمه حزم أخرى. يؤثر التحديث عليها.",
"device-update-new-default-converter": "يتوفر في منصة ThingsBoard إصدار جديد من المحوّل الافتراضي الذي تستخدمه هذه الحزمة.",
"device-update-modified": "يحتوي على تغييرات محلية. يمكنك تنزيل الإصدار الحالي <a>من هنا</a>.",
"device-install-unexpected-error": "حدث خطأ ما. حاول مرة أخرى.",
"device-package-will-create": "سيتم الإنشاء",

5
ui-ngx/src/assets/locale/locale.constant-ca_ES.json

@ -5673,8 +5673,6 @@
"access-id-required": "L'ID d'accés és obligatori.",
"access-key": "Clau d'accés",
"access-key-required": "La clau d'accés és obligatòria.",
"access-key-min-length": "La clau d'accés és massa curta.",
"access-key-max-length": "La clau d'accés és massa llarga.",
"connection-parameters": "Paràmetres de connexió",
"service-bus-namespace-name": "Nom de l'espai de noms del Service Bus",
"service-bus-namespace-name-required": "El nom de l'espai de noms del Service Bus és obligatori.",
@ -6495,8 +6493,6 @@
"check-for-updates": "Comprova si hi ha actualitzacions",
"updates": "Actualitzacions",
"up-to-date": "Actualitzat",
"new-converter-available": "Convertidor nou disponible",
"converter-update-title": "Voleu actualitzar el convertidor?",
"update": "Actualitza",
"update-to-version": "Actualitza a la versió {{ version }}",
"update-item-title": "Actualitza l'element",
@ -6587,7 +6583,6 @@
"device-update-step": "Actualització",
"device-update-new": "Nou",
"device-update-shared": "L'utilitzen altres paquets. L'actualització els afecta.",
"device-update-new-default-converter": "ThingsBoard té una versió nova del convertidor per defecte que utilitza aquest paquet.",
"device-update-modified": "Té canvis locals. Podeu baixar la versió actual <a>aquí</a>.",
"device-install-unexpected-error": "S'ha produït un error. Torneu-ho a provar.",
"device-package-will-create": "Es crearà",

2
ui-ngx/src/assets/locale/locale.constant-da_DK.json

@ -5635,8 +5635,6 @@
"access-id-required": "Adgangs-ID er påkrævet.",
"access-key": "Adgangsnøgle",
"access-key-required": "Adgangsnøgle er påkrævet.",
"access-key-min-length": "Adgangsnøglen er for kort.",
"access-key-max-length": "Adgangsnøglen er for lang.",
"connection-parameters": "Forbindelsesparametre",
"service-bus-namespace-name": "Service Bus Namespace-navn",
"service-bus-namespace-name-required": "Service Bus Namespace-navn er påkrævet.",

2
ui-ngx/src/assets/locale/locale.constant-de_DE.json

@ -5633,8 +5633,6 @@
"access-id-required": "Zugangs-ID ist erforderlich.",
"access-key": "Zugangsschlüssel",
"access-key-required": "Zugangsschlüssel ist erforderlich.",
"access-key-min-length": "Zugangsschlüssel ist zu kurz.",
"access-key-max-length": "Zugangsschlüssel ist zu lang.",
"connection-parameters": "Verbindungsparameter",
"service-bus-namespace-name": "Service Bus Namespace-Name",
"service-bus-namespace-name-required": "Service Bus Namespace-Name ist erforderlich.",

2
ui-ngx/src/assets/locale/locale.constant-el_GR.json

@ -5644,8 +5644,6 @@
"access-id-required": "Απαιτείται Access ID.",
"access-key": "Access Key",
"access-key-required": "Απαιτείται Access Key.",
"access-key-min-length": "Το Access Key είναι πολύ μικρό.",
"access-key-max-length": "Το Access Key είναι πολύ μεγάλο.",
"connection-parameters": "Παράμετροι σύνδεσης",
"service-bus-namespace-name": "Όνομα χώρου ονομάτων Service Bus",
"service-bus-namespace-name-required": "Απαιτείται όνομα χώρου ονομάτων Service Bus.",

15
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -5674,12 +5674,10 @@
"region-required": "Region is required.",
"application-id": "Application ID",
"application-id-required": "Application ID is required.",
"access-id": "Access Id",
"access-id-required": "Access Id is required.",
"access-key": "Access Key",
"access-key-required": "Access Key is required.",
"access-key-min-length": "Access Key is too short.",
"access-key-max-length": "Access Key is too long.",
"access-id": "Access ID",
"access-id-required": "Access ID is required.",
"access-key": "Access Secret",
"access-key-required": "Access Secret is required.",
"connection-parameters": "Connection parameters",
"service-bus-namespace-name": "Service Bus Namespace Name",
"service-bus-namespace-name-required": "Service Bus Namespace Name is required.",
@ -6507,8 +6505,6 @@
"show-only-updates": "Show only updates",
"updates": "Updates",
"up-to-date": "Up to date",
"new-converter-available": "New converter available",
"converter-update-title": "Update the converter?",
"update": "Update",
"update-to-version": "Update to v {{ version }}",
"update-item-title": "Update Item",
@ -6603,9 +6599,6 @@
"device-update-no-changes": "No changes",
"device-update-new": "New",
"device-update-shared": "Used by other packages. The update affects them.",
"device-update-shared-more": "and {{count}} more",
"device-update-shared-less": "Show less",
"device-update-new-default-converter": "ThingsBoard has a new version of the default converter used by this package.",
"device-update-modified": "Has local changes. You can download the current version <a>here</a>.",
"device-install-unexpected-error": "Something went wrong. Try again.",
"device-install-duplicate-step": "Two install steps of this device package have the same key: {{key}}. Report it to the package's creator.",

2
ui-ngx/src/assets/locale/locale.constant-es_ES.json

@ -5633,8 +5633,6 @@
"access-id-required": "Se requiere el ID de acceso.",
"access-key": "Clave de acceso",
"access-key-required": "Se requiere la clave de acceso.",
"access-key-min-length": "La clave de acceso es demasiado corta.",
"access-key-max-length": "La clave de acceso es demasiado larga.",
"connection-parameters": "Parámetros de conexión",
"service-bus-namespace-name": "Nombre del espacio de nombres del Service Bus",
"service-bus-namespace-name-required": "Se requiere el nombre del espacio de nombres del Service Bus.",

2
ui-ngx/src/assets/locale/locale.constant-fr_FR.json

@ -5633,8 +5633,6 @@
"access-id-required": "L’identifiant d’accès est requis.",
"access-key": "Clé d’accès",
"access-key-required": "La clé d’accès est requise.",
"access-key-min-length": "La clé d’accès est trop courte.",
"access-key-max-length": "La clé d’accès est trop longue.",
"connection-parameters": "Paramètres de connexion",
"service-bus-namespace-name": "Nom de l’espace de noms du Service Bus",
"service-bus-namespace-name-required": "Le nom de l’espace de noms du Service Bus est requis.",

2
ui-ngx/src/assets/locale/locale.constant-hi_IN.json

@ -5670,8 +5670,6 @@
"access-id-required": "ऐक्सेस ID आवश्यक है।",
"access-key": "ऐक्सेस कुंजी",
"access-key-required": "ऐक्सेस कुंजी आवश्यक है।",
"access-key-min-length": "ऐक्सेस कुंजी बहुत छोटी है।",
"access-key-max-length": "ऐक्सेस कुंजी बहुत लंबी है।",
"connection-parameters": "कनेक्शन पैरामीटर",
"service-bus-namespace-name": "Service Bus नेमस्पेस नाम",
"service-bus-namespace-name-required": "Service Bus नेमस्पेस नाम आवश्यक है।",

2
ui-ngx/src/assets/locale/locale.constant-it_IT.json

@ -5633,8 +5633,6 @@
"access-id-required": "Access Id è obbligatorio.",
"access-key": "Chiave di accesso",
"access-key-required": "Chiave di accesso obbligatoria.",
"access-key-min-length": "Chiave di accesso troppo corta.",
"access-key-max-length": "Chiave di accesso troppo lunga.",
"connection-parameters": "Parametri di connessione",
"service-bus-namespace-name": "Nome del namespace del Service Bus",
"service-bus-namespace-name-required": "Il nome del namespace del Service Bus è obbligatorio.",

2
ui-ngx/src/assets/locale/locale.constant-ja_JP.json

@ -5633,8 +5633,6 @@
"access-id-required": "アクセスIDは必須です。",
"access-key": "アクセスキー",
"access-key-required": "アクセスキーは必須です。",
"access-key-min-length": "アクセスキーが短すぎます。",
"access-key-max-length": "アクセスキーが長すぎます。",
"connection-parameters": "接続パラメーター",
"service-bus-namespace-name": "サービスバス名前空間名",
"service-bus-namespace-name-required": "サービスバス名前空間名は必須です。",

2
ui-ngx/src/assets/locale/locale.constant-ko_KR.json

@ -5662,8 +5662,6 @@
"access-id-required": "액세스 ID는 필수 항목입니다.",
"access-key": "액세스 키",
"access-key-required": "액세스 키는 필수 항목입니다.",
"access-key-min-length": "액세스 키가 너무 짧습니다.",
"access-key-max-length": "액세스 키가 너무 깁니다.",
"connection-parameters": "연결 매개변수",
"service-bus-namespace-name": "Service Bus 네임스페이스 이름",
"service-bus-namespace-name-required": "Service Bus 네임스페이스 이름은 필수 항목입니다.",

2
ui-ngx/src/assets/locale/locale.constant-lt_LT.json

@ -5670,8 +5670,6 @@
"access-id-required": "Prieigos ID yra privalomas.",
"access-key": "Prieigos raktas",
"access-key-required": "Prieigos raktas yra privalomas.",
"access-key-min-length": "Prieigos raktas per trumpas.",
"access-key-max-length": "Prieigos raktas per ilgas.",
"connection-parameters": "Ryšio parametrai",
"service-bus-namespace-name": "Service Bus vardų srities pavadinimas",
"service-bus-namespace-name-required": "Service Bus vardų srities pavadinimas yra privalomas.",

2
ui-ngx/src/assets/locale/locale.constant-nl_BE.json

@ -5670,8 +5670,6 @@
"access-id-required": "Toegangs-ID is verplicht.",
"access-key": "Toegangssleutel",
"access-key-required": "Toegangssleutel is verplicht.",
"access-key-min-length": "Toegangssleutel is te kort.",
"access-key-max-length": "Toegangssleutel is te lang.",
"connection-parameters": "Verbindingsparameters",
"service-bus-namespace-name": "Naam van Service Bus-namespace",
"service-bus-namespace-name-required": "Naam van Service Bus-namespace is verplicht.",

2
ui-ngx/src/assets/locale/locale.constant-nl_NL.json

@ -5633,8 +5633,6 @@
"access-id-required": "Toegangs-ID is verplicht.",
"access-key": "Toegangssleutel",
"access-key-required": "Toegangssleutel is verplicht.",
"access-key-min-length": "Toegangssleutel is te kort.",
"access-key-max-length": "Toegangssleutel is te lang.",
"connection-parameters": "Verbindingsparameters",
"service-bus-namespace-name": "Service Bus Namespace Naam",
"service-bus-namespace-name-required": "Naam van Service Bus-namespace is verplicht.",

2
ui-ngx/src/assets/locale/locale.constant-no_NO.json

@ -5644,8 +5644,6 @@
"access-id-required": "Tilgangs-ID er påkrevd.",
"access-key": "Tilgangsnøkkel",
"access-key-required": "Tilgangsnøkkel er påkrevd.",
"access-key-min-length": "Tilgangsnøkkel er for kort.",
"access-key-max-length": "Tilgangsnøkkel er for lang.",
"connection-parameters": "Tilkoblingsparametere",
"service-bus-namespace-name": "Navn på Service Bus-navneområde",
"service-bus-namespace-name-required": "Navn på Service Bus-navneområde er påkrevd.",

2
ui-ngx/src/assets/locale/locale.constant-pl_PL.json

@ -5670,8 +5670,6 @@
"access-id-required": "Identyfikator dostępu jest wymagany.",
"access-key": "Klucz dostępu",
"access-key-required": "Klucz dostępu jest wymagany.",
"access-key-min-length": "Klucz dostępu jest za krótki.",
"access-key-max-length": "Klucz dostępu jest za długi.",
"connection-parameters": "Parametry połączenia",
"service-bus-namespace-name": "Nazwa przestrzeni nazw Service Bus",
"service-bus-namespace-name-required": "Nazwa przestrzeni nazw Service Bus jest wymagana.",

2
ui-ngx/src/assets/locale/locale.constant-pt_BR.json

@ -5633,8 +5633,6 @@
"access-id-required": "O ID de acesso é obrigatório.",
"access-key": "Chave de acesso",
"access-key-required": "A chave de acesso é obrigatória.",
"access-key-min-length": "A chave de acesso é muito curta.",
"access-key-max-length": "A chave de acesso é muito longa.",
"connection-parameters": "Parâmetros de conexão",
"service-bus-namespace-name": "Nome do namespace do Service Bus",
"service-bus-namespace-name-required": "O nome do namespace do Service Bus é obrigatório.",

2
ui-ngx/src/assets/locale/locale.constant-sl_SI.json

@ -5660,8 +5660,6 @@
"access-id-required": "ID za dostop je obvezen.",
"access-key": "Ključ za dostop",
"access-key-required": "Ključ za dostop je obvezen.",
"access-key-min-length": "Ključ za dostop je prekratek.",
"access-key-max-length": "Ključ za dostop je predolg.",
"connection-parameters": "Parametri povezave",
"service-bus-namespace-name": "Ime imenskega prostora Service Bus",
"service-bus-namespace-name-required": "Ime imenskega prostora Service Bus je obvezno.",

2
ui-ngx/src/assets/locale/locale.constant-tr_TR.json

@ -5635,8 +5635,6 @@
"access-id-required": "Erişim Kimliği gereklidir.",
"access-key": "Erişim Anahtarı",
"access-key-required": "Erişim Anahtarı gereklidir.",
"access-key-min-length": "Erişim Anahtarı çok kısa.",
"access-key-max-length": "Erişim Anahtarı çok uzun.",
"connection-parameters": "Bağlantı parametreleri",
"service-bus-namespace-name": "Service Bus Ad Alanı Adı",
"service-bus-namespace-name-required": "Service Bus Ad Alanı Adı gereklidir.",

2
ui-ngx/src/assets/locale/locale.constant-uk_UA.json

@ -5633,8 +5633,6 @@
"access-id-required": "Потрібно вказати Access Id.",
"access-key": "Access Key",
"access-key-required": "Потрібно вказати Access Key.",
"access-key-min-length": "Access Key занадто короткий.",
"access-key-max-length": "Access Key занадто довгий.",
"connection-parameters": "Параметри підключення",
"service-bus-namespace-name": "Назва простору імен Service Bus",
"service-bus-namespace-name-required": "Потрібно вказати назву простору імен Service Bus.",

2
ui-ngx/src/assets/locale/locale.constant-zh_CN.json

@ -5635,8 +5635,6 @@
"access-id-required": "访问 ID 为必填项。",
"access-key": "访问密钥",
"access-key-required": "访问密钥为必填项。",
"access-key-min-length": "访问密钥过短。",
"access-key-max-length": "访问密钥过长。",
"connection-parameters": "连接参数",
"service-bus-namespace-name": "Service Bus 命名空间名称",
"service-bus-namespace-name-required": "Service Bus 命名空间名称为必填项。",

2
ui-ngx/src/assets/locale/locale.constant-zh_TW.json

@ -11781,8 +11781,6 @@
"access-id-required": "存取識別碼為必填項。",
"access-key": "存取金鑰",
"access-key-required": "存取金鑰為必填項。",
"access-key-min-length": "存取金鑰太短。",
"access-key-max-length": "存取金鑰太長。",
"connection-parameters": "連線參數",
"service-bus-namespace-name": "Service Bus 命名空間名稱",
"service-bus-namespace-name-required": "Service Bus 命名空間名稱為必填項。",

Loading…
Cancel
Save