Merge pull request #13797 from ArtemDzhereleiko/AD/bug-fix/aliase-dialog
Add ellipsis to entity list and subtype list chip and fixed api usage state display value
This commit is contained in:
commit
a739737a4e
@ -13,6 +13,9 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@import '../scss/constants';
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@ -39,16 +42,12 @@
|
|||||||
|
|
||||||
tb-entity-subtype-list {
|
tb-entity-subtype-list {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 180px;
|
@media #{$mat-gt-xs} {
|
||||||
|
width: 180px;
|
||||||
|
}
|
||||||
.mdc-evolution-chip-set__chips {
|
.mdc-evolution-chip-set__chips {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-mdc-chip {
|
|
||||||
.mdc-evolution-chip__cell, .mat-mdc-chip-action, .mat-mdc-chip-action-label {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,7 +80,7 @@
|
|||||||
{{ 'entity.key' | translate }}
|
{{ 'entity.key' | translate }}
|
||||||
</mat-header-cell>
|
</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let argument" class="w-1/4 xs:w-1/3">
|
<mat-cell *matCellDef="let argument" class="w-1/4 xs:w-1/3">
|
||||||
<mat-chip>
|
<mat-chip class="tb-chip-row-ellipsis">
|
||||||
<div tbTruncateWithTooltip class="key-text">{{ argument.refEntityKey.key }}</div>
|
<div tbTruncateWithTooltip class="key-text">{{ argument.refEntityKey.key }}</div>
|
||||||
</mat-chip>
|
</mat-chip>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
|
|||||||
@ -55,12 +55,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host ::ng-deep {
|
:host ::ng-deep {
|
||||||
.mat-mdc-standard-chip {
|
|
||||||
.mdc-evolution-chip__cell--primary, .mdc-evolution-chip__action--primary, .mdc-evolution-chip__text-label {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.arguments-table:not(.arguments-table-with-error) {
|
.arguments-table:not(.arguments-table-with-error) {
|
||||||
.mdc-data-table__row:last-child .mat-mdc-cell {
|
.mdc-data-table__row:last-child .mat-mdc-cell {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|||||||
@ -128,6 +128,9 @@ export class EntityFilterViewComponent implements ControlValueAccessor {
|
|||||||
{edgeTypes});
|
{edgeTypes});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case AliasFilterType.apiUsageState:
|
||||||
|
this.filterDisplayValue = this.translate.instant('alias.filter-type-apiUsageState');
|
||||||
|
break;
|
||||||
case AliasFilterType.entityViewType:
|
case AliasFilterType.entityViewType:
|
||||||
const entityViewTypesQuoted = [];
|
const entityViewTypesQuoted = [];
|
||||||
this.filter.entityViewTypes.forEach((entityViewType) => {
|
this.filter.entityViewTypes.forEach((entityViewType) => {
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
<mat-chip-grid #chipList formControlName="entities">
|
<mat-chip-grid #chipList formControlName="entities">
|
||||||
<mat-chip-row
|
<mat-chip-row
|
||||||
*ngFor="let entity of entities"
|
*ngFor="let entity of entities"
|
||||||
|
class="tb-chip-row-ellipsis"
|
||||||
[removable]="!disabled"
|
[removable]="!disabled"
|
||||||
(removed)="remove(entity)">
|
(removed)="remove(entity)">
|
||||||
{{entity.name}}
|
{{entity.name}}
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
<mat-chip-grid #chipList formControlName="entitySubtypeList">
|
<mat-chip-grid #chipList formControlName="entitySubtypeList">
|
||||||
<mat-chip-row
|
<mat-chip-row
|
||||||
*ngFor="let entitySubtype of entitySubtypeList"
|
*ngFor="let entitySubtype of entitySubtypeList"
|
||||||
|
class="tb-chip-row-ellipsis"
|
||||||
[removable]="!disabled"
|
[removable]="!disabled"
|
||||||
(removed)="remove(entitySubtype)">
|
(removed)="remove(entitySubtype)">
|
||||||
{{customTranslate(entitySubtype)}}
|
{{customTranslate(entitySubtype)}}
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
<mat-label *ngIf="label">{{ label }}</mat-label>
|
<mat-label *ngIf="label">{{ label }}</mat-label>
|
||||||
<mat-chip-grid #itemsChipList formControlName="items" [required]="required">
|
<mat-chip-grid #itemsChipList formControlName="items" [required]="required">
|
||||||
<mat-chip-row *ngFor="let item of itemList"
|
<mat-chip-row *ngFor="let item of itemList"
|
||||||
|
class="tb-chip-row-ellipsis"
|
||||||
[removable]="!disabled"
|
[removable]="!disabled"
|
||||||
[contentEditable]="editable && !disabled"
|
[contentEditable]="editable && !disabled"
|
||||||
(removed)="removeItems(item)">
|
(removed)="removeItems(item)">
|
||||||
|
|||||||
@ -1,22 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright © 2016-2025 The Thingsboard Authors
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
.tb-string-items-list {
|
|
||||||
.mat-mdc-standard-chip {
|
|
||||||
.mdc-evolution-chip__cell--primary, .mat-mdc-chip-action-label {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -39,7 +39,7 @@ export interface StringItemsOption {
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'tb-string-items-list',
|
selector: 'tb-string-items-list',
|
||||||
templateUrl: './string-items-list.component.html',
|
templateUrl: './string-items-list.component.html',
|
||||||
styleUrls: ['./string-items-list.component.scss'],
|
styleUrls: [],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
provide: NG_VALUE_ACCESSOR,
|
provide: NG_VALUE_ACCESSOR,
|
||||||
|
|||||||
@ -1255,6 +1255,13 @@ pre.tb-highlight {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tb-chip-row-ellipsis {
|
||||||
|
overflow: hidden;
|
||||||
|
.mdc-evolution-chip__cell--primary, .mdc-evolution-chip__action--primary, .mdc-evolution-chip__text-label {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media #{$mat-lt-md} {
|
@media #{$mat-lt-md} {
|
||||||
.mat-mdc-form-field {
|
.mat-mdc-form-field {
|
||||||
.mat-mdc-form-field-infix {
|
.mat-mdc-form-field-infix {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user