-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync repo from v92 to v92 20240812072532 (#169)
* Automated sync from source branch v92 * Readme updated * binaries reset * readme fixed --------- Co-authored-by: imx-sync-bot <imx-sync-bot@oneidentity>
- Loading branch information
1 parent
cf9abc6
commit b489b3b
Showing
18 changed files
with
224 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
a389dcd952875866288789039304ce0360b6d655 | ||
d7376dc1bc7c9b8080948907c5bb14befb21039c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 35 additions & 57 deletions
92
imxweb/projects/qbm/src/lib/cdr/edit-fk/edit-fk.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,63 @@ | ||
<mat-form-field appearance="outline" *ngIf="hasCandidatesOrIsLoading && columnContainer?.canEdit; else noCandidatesAvailOrReadonly"> | ||
<mat-form-field appearance="outline" | ||
*ngIf="hasCandidatesOrIsLoading && columnContainer?.canEdit; else noCandidatesAvailOrReadonly"> | ||
<mat-label> | ||
{{ columnContainer?.display | translate }} | ||
<ng-container *ngIf="selectedTable && columnContainer?.fkRelations?.length > 1 && !isHierarchical"> | ||
({{ '#LDS#Table: {0}' | translate | ldsReplace : metadataProvider.tables[selectedTable.TableName]?.DisplaySingular || selectedTable.TableName }}) | ||
({{ '#LDS#Table: {0}' | translate | ldsReplace : metadataProvider.tables[selectedTable.TableName]?.DisplaySingular | ||
|| selectedTable.TableName }}) | ||
</ng-container> | ||
</mat-label> | ||
<eui-icon icon="search" *ngIf="columnContainer?.canEdit && auto.isOpen" matPrefix></eui-icon> | ||
|
||
<input | ||
#inputControl | ||
matInput | ||
type="search" | ||
[formControl]="control" | ||
[matAutocomplete]="auto" | ||
[readonly]="!columnContainer?.canEdit || isHierarchical" | ||
(keydown.esc)="close($event); inputControl.blur()" | ||
(focusout)="close($event)" | ||
(focus)="inputFocus()" | ||
<input #inputControl matInput type="search" [formControl]="control" [matAutocomplete]="auto" | ||
[readonly]="!columnContainer?.canEdit || isHierarchical" (keydown.esc)="close($event); inputControl.blur()" | ||
(focusout)="close($event)" (focus)="inputFocus()" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-input-search-candidates-' + columnContainer?.name" | ||
[required]="columnContainer.isValueRequired" | ||
/> | ||
<mat-autocomplete #auto="matAutocomplete" [displayWith]="getDisplay" (optionSelected)="optionSelected($event); inputControl.blur()" (opened)="onOpened()" #autocomplete> | ||
<mat-option | ||
*ngFor="let candidate of candidates; index as i; trackBy: candidateTrackByFn" | ||
[value]="candidate" | ||
class="imx-candidate-option" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-mat-option-assign-candidate-' + columnContainer?.name" | ||
> | ||
<div class="imx-candidate-item"> | ||
<div class="imx-candidate-content"> | ||
<div class="imx-candidate-display">{{ getDisplay(candidate) }}</div> | ||
<div *ngIf="getDisplay(candidate) !== candidate.displayLong" class="imx-candidate-longdisplay"> | ||
{{ candidate.displayLong }} | ||
[required]="columnContainer.isValueRequired" /> | ||
<mat-autocomplete #auto="matAutocomplete" [displayWith]="getDisplay" | ||
(optionSelected)="optionSelected($event); inputControl.blur()" (opened)="onOpened()" #autocomplete> | ||
<ng-container *ngIf="!loading"> | ||
<mat-option *ngFor="let candidate of candidates; index as i; trackBy: candidateTrackByFn" [value]="candidate" | ||
class="imx-candidate-option" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-mat-option-assign-candidate-' + columnContainer?.name"> | ||
<div class="imx-candidate-item"> | ||
<div class="imx-candidate-content"> | ||
<div class="imx-candidate-display">{{ getDisplay(candidate) }}</div> | ||
<div *ngIf="getDisplay(candidate) !== candidate.displayLong" class="imx-candidate-longdisplay"> | ||
{{ candidate.displayLong }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</mat-option> | ||
<mat-option *ngIf="loading" disabled>{{ '#LDS#Loading...' | translate }}</mat-option> | ||
</mat-option> | ||
</ng-container> | ||
<mat-option *ngIf="loading" disabled>{{ '#LDS#Loading...' | translate }}</mat-option> | ||
</mat-autocomplete> | ||
<div matSuffix class="imx-suffix-container"> | ||
<mat-spinner diameter="30" *ngIf="loading"></mat-spinner> | ||
<eui-icon | ||
*ngIf="columnContainer?.canEdit && control.value && !loading" | ||
icon="close" | ||
class="imx-icon-delete" | ||
<eui-icon *ngIf="columnContainer?.canEdit && control.value && !loading" icon="close" class="imx-icon-delete" | ||
(click)="removeAssignment($event)" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-button-remove-assignment-' + columnContainer?.name" | ||
></eui-icon> | ||
[attr.data-imx-identifier]="'cdr-edit-fk-button-remove-assignment-' + columnContainer?.name"></eui-icon> | ||
<div class="imx-spacer"></div> | ||
<button | ||
*ngIf="columnContainer?.canEdit && (isHierarchical || columnContainer?.fkRelations?.length > 1)" | ||
mat-button | ||
color="primary" | ||
type="button" | ||
(click)="editAssignment($event)" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-button-open-picker-' + columnContainer?.name" | ||
> | ||
<button *ngIf="columnContainer?.canEdit && (isHierarchical || columnContainer?.fkRelations?.length > 1)" mat-button | ||
color="primary" type="button" (click)="editAssignment($event)" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-button-open-picker-' + columnContainer?.name"> | ||
{{ columnContainer?.value?.length ? ('#LDS#Change' | translate) : ('#LDS#Select' | translate) }} | ||
</button> | ||
</div> | ||
<mat-error *ngIf="control.errors?.checkAutocomplete"> | ||
{{ '#LDS#The value entered in the {0} box could not be found. Please select a value from the list.' | translate | ldsReplace : (columnContainer?.display | translate) }} | ||
{{ '#LDS#The value entered in the {0} box could not be found. Please select a value from the list.' | translate | | ||
ldsReplace : (columnContainer?.display | translate) }} | ||
</mat-error> | ||
<mat-error *ngIf="control.errors?.['required']"> | ||
{{ '#LDS#This field is mandatory.' | translate }} | ||
</mat-error> | ||
</mat-form-field> | ||
|
||
<ng-template #noCandidatesAvailOrReadonly> | ||
<imx-view-property | ||
*ngIf="columnContainer?.canEdit" | ||
[columnContainer]="columnContainer" | ||
defaultValue="#LDS#No data" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-no-candidates-' + columnContainer?.name" | ||
> | ||
<imx-view-property *ngIf="columnContainer?.canEdit" [columnContainer]="columnContainer" defaultValue="#LDS#No data" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-no-candidates-' + columnContainer?.name"> | ||
</imx-view-property> | ||
<imx-view-property | ||
*ngIf="!columnContainer?.canEdit" | ||
[columnContainer]="columnContainer" | ||
defaultValue="#LDS#Not set" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-candidates-readonly-' + columnContainer?.name" | ||
> | ||
<imx-view-property *ngIf="!columnContainer?.canEdit" [columnContainer]="columnContainer" defaultValue="#LDS#Not set" | ||
[attr.data-imx-identifier]="'cdr-edit-fk-candidates-readonly-' + columnContainer?.name"> | ||
</imx-view-property> | ||
</ng-template> | ||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
imxweb/projects/qbm/src/lib/cdr/view-property/view-property.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="imx-readonly-view" readonly> | ||
<span class="column-display">{{ (columnContainer?.display | translate) + (columnContainer.isValueRequired ? '*' :'') }}</span> | ||
<span class="column-value">{{ displayedValue | translate }}</span> | ||
<span class="column-display">{{ (columnContainer?.display | translate) + (columnContainer.isValueRequired ? '*' : '') }}</span> | ||
<span class="column-value">{{ columnContainer.showDisplayValue ? (displayedValue | translate) : '' }}</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.