Destination folder id is replaced with destination path in folder rules in create/edit a rule

This commit is contained in:
Jatin_Chugh
2023-03-24 15:42:22 +05:30
parent 0089f188a4
commit 4690c38a0a
5 changed files with 15 additions and 4 deletions

View File

@@ -57,6 +57,9 @@ export class CardViewItemDispatcherComponent implements OnChanges {
@Input()
multiValueSeparator: string = DEFAULT_SEPARATOR;
@Input()
destinationPath: string;
@ViewChild(CardViewContentProxyDirective, { static: true })
private content: CardViewContentProxyDirective;
@@ -110,6 +113,7 @@ export class CardViewItemDispatcherComponent implements OnChanges {
this.componentReference.instance.copyToClipboardAction = this.copyToClipboardAction;
this.componentReference.instance.useChipsForMultiValueProperty = this.useChipsForMultiValueProperty;
this.componentReference.instance.multiValueSeparator = this.multiValueSeparator;
this.componentReference.instance.destinationPath = this.destinationPath;
}
private proxy(methodName, ...args) {

View File

@@ -98,11 +98,11 @@
<input matInput
[type]=property.inputType
class="adf-property-value"
title="{{property.label | translate }}"
title="{{destinationPath ? destinationPath : property.label | translate }}"
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
[placeholder]="property.default"
[attr.aria-label]="property.label | translate"
[(ngModel)]="editedValue"
[attr.aria-label]="destinationPath ? destinationPath : property.label | translate"
[(ngModel)]="destinationPath"
(blur)="update()"
(keydown.enter)="update()"
[disabled]="!isEditable"

View File

@@ -59,6 +59,9 @@ export class CardViewTextItemComponent extends BaseCardView<CardViewTextItemMode
@Input()
multiValueSeparator: string = DEFAULT_SEPARATOR;
@Input()
destinationPath: string;
editedValue: string | string[];
errors: CardViewItemValidator[];
templateType: string;

View File

@@ -9,7 +9,8 @@
[displayClearAction]="displayClearAction"
[copyToClipboardAction]="copyToClipboardAction"
[useChipsForMultiValueProperty]="useChipsForMultiValueProperty"
[multiValueSeparator]="multiValueSeparator">
[multiValueSeparator]="multiValueSeparator"
[destinationPath]="destinationPath">
</adf-card-view-item-dispatcher>
</div>
</div>

View File

@@ -57,4 +57,7 @@ export class CardViewComponent {
/** String separator between multi-value property items. */
@Input()
multiValueSeparator: string = DEFAULT_SEPARATOR;
@Input()
destinationPath: string;
}