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

geonetwork / geonetwork-ui / 12069834722

28 Nov 2024 01:27PM UTC coverage: 83.926% (+0.2%) from 83.736%
12069834722

push

github

jahow
chore: fix formatting on PULL_REQUEST_TEMPLATE.md

3159 of 4250 branches covered (74.33%)

Branch coverage included in aggregate %.

9116 of 10376 relevant lines covered (87.86%)

201.75 hits per line

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

86.67
/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 {
1✔
13
  NgIconComponent,
14
  provideIcons,
15
  provideNgIconsConfig,
16
} from '@ng-icons/core'
17
import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
1✔
18

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

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

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

49
  handleRowClick(item: unknown) {
50
    this.itemClick.emit(item)
×
51
  }
52
}
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