style: lint
Some checks failed
Build / Build-and-ng-test (pull_request) Failing after 46s

This commit is contained in:
Mihajlo Medjedovic
2024-03-25 22:41:25 +01:00
parent b27fea5b91
commit a267666e99
6 changed files with 39 additions and 28 deletions

View File

@@ -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>

View File

@@ -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 {

View File

@@ -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>

View File

@@ -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)

View File

@@ -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>

View File

@@ -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'