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

View File

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

View File

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

View File

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

View File

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