• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geonetwork / geonetwork-ui / 14396787772

11 Apr 2025 06:11AM UTC coverage: 84.361% (+2.0%) from 82.334%
14396787772

push

github

web-flow
Merge pull request #1208 from geonetwork/service-page

[Datahub]: Service page

3256 of 4328 branches covered (75.23%)

Branch coverage included in aggregate %.

127 of 158 new or added lines in 24 files covered. (80.38%)

1 existing line in 1 file now uncovered.

9426 of 10705 relevant lines covered (88.05%)

276.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.87
/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts
1
import {
1✔
2
  ChangeDetectionStrategy,
3
  Component,
4
  ContentChildren,
5
  EventEmitter,
6
  Input,
7
  Output,
8
  QueryList,
9
} from '@angular/core'
10
import { InteractiveTableColumnComponent } from './interactive-table-column/interactive-table-column.component'
1✔
11
import { CommonModule } from '@angular/common'
1✔
12
import { NgIconComponent, provideIcons } from '@ng-icons/core'
1✔
13
import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
1✔
14
import { TranslateModule } from '@ngx-translate/core'
1✔
15
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
1✔
16
import { CatalogRecord } from '@geonetwork-ui/common/domain/model/record'
17

18
marker('editor.record.lock.reason')
1✔
19
marker('editor.record.lock.format')
1✔
20
@Component({
21
  selector: 'gn-ui-interactive-table',
22
  templateUrl: './interactive-table.component.html',
23
  styleUrls: ['./interactive-table.component.css'],
24
  changeDetection: ChangeDetectionStrategy.OnPush,
25
  standalone: true,
26
  imports: [CommonModule, NgIconComponent, TranslateModule],
27
  providers: [provideIcons({ iconoirNavArrowDown, iconoirNavArrowUp })],
28
})
29
export class InteractiveTableComponent {
1✔
30
  @ContentChildren(InteractiveTableColumnComponent)
31
  columns: QueryList<InteractiveTableColumnComponent>
32

33
  @Input() items: unknown[] = []
5✔
34
  @Input() isDraftPage = false
5✔
35
  @Output() itemClick = new EventEmitter<unknown>()
5✔
36

37
  get gridStyle() {
38
    return {
6✔
39
      'grid-template-columns': this.columns
40
        .map((column) =>
41
          column.width
18!
42
            ? column.width
43
            : column.grow
18✔
44
              ? `minmax(0px,1fr)`
45
              : `minmax(0px,max-content)`
46
        )
47
        .join(' '),
48
    }
49
  }
50

51
  getItemTitle(item: CatalogRecord) {
52
    if (!item.extras?.edit && !this.isDraftPage && item.kind === 'dataset') {
5!
NEW
53
      return 'editor.record.lock.reason'
×
54
    } else if (item.kind !== 'dataset') {
5✔
55
      return 'editor.record.lock.format'
5✔
56
    }
NEW
57
    return ''
×
58
  }
59

60
  handleRowClick(item: unknown) {
61
    this.itemClick.emit(item)
×
62
  }
63
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc