-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHIBUI-1270 Implemented metadata comparison component
- Loading branch information
Showing
23 changed files
with
250 additions
and
85 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
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
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
6 changes: 3 additions & 3 deletions
6
ui/src/app/metadata/configuration/component/object-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,7 +1,7 @@ | ||
<ng-container *ngFor="let prop of property.properties"> | ||
<ng-container [ngSwitch]="prop.type"> | ||
<primitive-property *ngSwitchDefault [property]="prop"></primitive-property> | ||
<array-property *ngSwitchCase="'array'" [property]="prop"></array-property> | ||
<object-property *ngSwitchCase="'object'" [property]="prop"></object-property> | ||
<primitive-property *ngSwitchDefault [property]="prop" [columns]="columns"></primitive-property> | ||
<array-property *ngSwitchCase="'array'" [property]="prop" [columns]="columns"></array-property> | ||
<object-property *ngSwitchCase="'object'" [property]="prop" [columns]="columns"></object-property> | ||
</ng-container> | ||
</ng-container> |
11 changes: 8 additions & 3 deletions
11
ui/src/app/metadata/configuration/component/primitive-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,5 +1,10 @@ | ||
<div *ngIf="property.name" class="d-flex border-bottom border-light p-2"> | ||
<span class="w-50 d-block" role="term" [translate]="property.name">{{ property.name }}</span> | ||
<span class="w-50 d-block" | ||
role="definition">{{ property.value || property.value === false ? property.value : '-' }}</span> | ||
<span class="d-block" | ||
role="term" | ||
[translate]="property.name" | ||
[ngStyle]="{'width': width}">{{ property.name }}</span> | ||
<span *ngFor="let v of property.value" | ||
class="d-block" | ||
role="definition" | ||
[ngStyle]="{'width': width}">{{ v ? v : (v === false) ? v : '-' }}</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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="container"> | ||
<!--<metadata-header | ||
[isEnabled]="isEnabled$ | async" | ||
[version]="version$ | async" | ||
[versionNumber]="versionNumber$ | async" | ||
[isCurrent]="isCurrent$ | async"></metadata-header> | ||
--> | ||
<div class="px-3 my-3 d-flex justify-content-start"> | ||
<a class="btn btn-link" routerLink="../history"> | ||
<i class="fa fa-history sr-hidden"></i> | ||
<translate-i18n key="action.version-history">Version History</translate-i18n> | ||
</a> | ||
</div> | ||
<metadata-configuration [configuration]="versions$ | async"></metadata-configuration> | ||
</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
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
32 changes: 26 additions & 6 deletions
32
ui/src/app/metadata/configuration/effect/compare.effect.ts
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
3 changes: 2 additions & 1 deletion
3
ui/src/app/metadata/configuration/model/metadata-configuration.ts
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,5 +1,6 @@ | ||
import Section from './section'; | ||
import { Section } from './section'; | ||
|
||
export interface MetadataConfiguration { | ||
sections: Section[]; | ||
dates: String[]; | ||
} |
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,11 +1,17 @@ | ||
import { Property } from '../../domain/model/property'; | ||
|
||
export interface Section { | ||
id: string; | ||
index: number; | ||
label: string; | ||
pageNumber: number; | ||
properties: Property[]; | ||
properties: SectionProperty[]; | ||
} | ||
|
||
export default Section; | ||
export interface SectionProperty { | ||
label: string; | ||
type: string; | ||
value: any[]; | ||
widget?: { | ||
id: string; | ||
[propertyName: string]: any; | ||
}; | ||
} |
File renamed without changes.
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.