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

geonetwork / geonetwork-ui / 13240818560

10 Feb 2025 12:26PM UTC coverage: 84.009% (+0.03%) from 83.982%
13240818560

Pull #1108

github

web-flow
Merge ec301f4ea into 2804667fa
Pull Request #1108: Lock records if user isn't allowed to edit it

3295 of 4405 branches covered (74.8%)

Branch coverage included in aggregate %.

35 of 35 new or added lines in 13 files covered. (100.0%)

12 existing lines in 2 files now uncovered.

9461 of 10779 relevant lines covered (87.77%)

275.08 hits per line

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

87.5
/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

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

29
  @Input() items: unknown[] = []
5✔
30
  @Output() itemClick = new EventEmitter<unknown>()
5✔
31

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

46
  handleRowClick(item: unknown) {
UNCOV
47
    this.itemClick.emit(item)
×
48
  }
49
}
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