This commit is contained in:
@@ -850,7 +850,8 @@
|
||||
[(open)]="datasetInfo"
|
||||
[dsmeta]="dsmeta"
|
||||
[versions]="versions"
|
||||
(rowClicked)="datasetInfoModalRowClicked($event)">
|
||||
(rowClicked)="datasetInfoModalRowClicked($event)"
|
||||
>
|
||||
</app-dataset-info>
|
||||
|
||||
<app-viewboxes [(viewboxModal)]="viewboxes"></app-viewboxes>
|
||||
|
||||
@@ -31,13 +31,13 @@ export interface DSMeta {
|
||||
}
|
||||
|
||||
export interface Version {
|
||||
LOAD_REF: string;
|
||||
USER_NM: string;
|
||||
VERSION_DTTM: string;
|
||||
VERSION_DESC: string;
|
||||
CHANGED_RECORDS: number;
|
||||
NEW_RECORDS: number;
|
||||
DELETED_RECORDS: number;
|
||||
LOAD_REF: string
|
||||
USER_NM: string
|
||||
VERSION_DTTM: string
|
||||
VERSION_DESC: string
|
||||
CHANGED_RECORDS: number
|
||||
NEW_RECORDS: number
|
||||
DELETED_RECORDS: number
|
||||
}
|
||||
|
||||
export interface Sasdata {
|
||||
|
||||
@@ -20,12 +20,28 @@
|
||||
>
|
||||
<clr-datagrid>
|
||||
<ng-container *ngFor="let col of $any(tab.meta[0]) | keyvalue">
|
||||
<clr-dg-column *ngIf="tab.colsToDisplay.length < 1 || tab.colsToDisplay.includes($any(col.key))">{{ col.key }}</clr-dg-column>
|
||||
<clr-dg-column
|
||||
*ngIf="
|
||||
tab.colsToDisplay.length < 1 ||
|
||||
tab.colsToDisplay.includes($any(col.key))
|
||||
"
|
||||
>{{ col.key }}</clr-dg-column
|
||||
>
|
||||
</ng-container>
|
||||
|
||||
<clr-dg-row (click)="tab.onRowClick ? tab.onRowClick(info) : ''" class="clickable-row" *ngFor="let info of tab.meta">
|
||||
<clr-dg-row
|
||||
(click)="tab.onRowClick ? tab.onRowClick(info) : ''"
|
||||
class="clickable-row"
|
||||
*ngFor="let info of tab.meta"
|
||||
>
|
||||
<ng-container *ngFor="let col of $any(info) | keyvalue">
|
||||
<clr-dg-cell *ngIf="tab.colsToDisplay.length < 1 || tab.colsToDisplay.includes($any(col.key))">{{ col.value }}</clr-dg-cell>
|
||||
<clr-dg-cell
|
||||
*ngIf="
|
||||
tab.colsToDisplay.length < 1 ||
|
||||
tab.colsToDisplay.includes($any(col.key))
|
||||
"
|
||||
>{{ col.value }}</clr-dg-cell
|
||||
>
|
||||
</ng-container>
|
||||
</clr-dg-row>
|
||||
</clr-datagrid>
|
||||
|
||||
@@ -37,11 +37,7 @@ export class DatasetInfoComponent implements OnInit, OnChanges {
|
||||
this.parseDSMeta()
|
||||
this.parseVersions()
|
||||
|
||||
this.tabs = [
|
||||
...[...this.dsmetaTabs],
|
||||
...[...this.versionsTabs]
|
||||
]
|
||||
|
||||
this.tabs = [...[...this.dsmetaTabs], ...[...this.versionsTabs]]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,14 +54,11 @@ export class DatasetInfoComponent implements OnInit, OnChanges {
|
||||
this.dsmetaTabs.push({
|
||||
name: info.ODS_TABLE,
|
||||
title: 'Dataset Meta',
|
||||
colsToDisplay: [
|
||||
'NAME',
|
||||
'VALUE'
|
||||
],
|
||||
colsToDisplay: ['NAME', 'VALUE'],
|
||||
meta: [],
|
||||
onRowClick: (value: DSMeta) => {
|
||||
this.rowClicked.emit(value)
|
||||
},
|
||||
}
|
||||
}) - 1
|
||||
|
||||
this.dsmetaTabs[groupIndex].meta.push(info)
|
||||
@@ -77,11 +70,7 @@ export class DatasetInfoComponent implements OnInit, OnChanges {
|
||||
{
|
||||
name: 'Table Versions',
|
||||
title: 'Dataset Meta',
|
||||
colsToDisplay: [
|
||||
'LOAD_REF',
|
||||
'USER_NM',
|
||||
'VERSION_DTTM'
|
||||
],
|
||||
colsToDisplay: ['LOAD_REF', 'USER_NM', 'VERSION_DTTM'],
|
||||
meta: this.versions,
|
||||
onRowClick: (value: Version) => {
|
||||
this.rowClicked.emit(value)
|
||||
|
||||
@@ -674,7 +674,8 @@
|
||||
[(open)]="datasetInfo"
|
||||
[dsmeta]="dsmeta"
|
||||
[versions]="versions"
|
||||
(rowClicked)="datasetInfoModalRowClicked($event)">
|
||||
(rowClicked)="datasetInfoModalRowClicked($event)"
|
||||
>
|
||||
</app-dataset-info>
|
||||
|
||||
<app-viewboxes [(viewboxModal)]="viewboxOpen"></app-viewboxes>
|
||||
|
||||
@@ -25,7 +25,11 @@ import { FilterGroup, FilterQuery } from '../models/FilterQuery'
|
||||
import { HotTableInterface } from '../models/HotTable.interface'
|
||||
import { LoggerService } from '../services/logger.service'
|
||||
import Handsontable from 'handsontable'
|
||||
import { $DataFormats, DSMeta, Version } from '../models/sas/editors-getdata.model'
|
||||
import {
|
||||
$DataFormats,
|
||||
DSMeta,
|
||||
Version
|
||||
} from '../models/sas/editors-getdata.model'
|
||||
import { mergeColsRules } from '../shared/dc-validator/utils/mergeColsRules'
|
||||
import { PublicViewtablesServiceResponse } from '../models/sas/public-viewtables.model'
|
||||
import { PublicViewlibsServiceResponse } from '../models/sas/public-viewlibs.model'
|
||||
|
||||
Reference in New Issue
Block a user