geonetwork-ui 2.4.2 → 2.5.0-dev.6d78023ff

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +17 -5
  2. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +2 -2
  3. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +18 -16
  4. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +12 -17
  5. package/esm2022/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.mjs +11 -11
  6. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  7. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +6 -7
  8. package/esm2022/libs/ui/dataviz/src/index.mjs +3 -3
  9. package/esm2022/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.mjs +51 -0
  10. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +133 -0
  11. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.data.source.mjs +24 -0
  12. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.mjs +82 -0
  13. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +18 -10
  14. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +14 -12
  15. package/esm2022/libs/util/data-fetcher/src/index.mjs +3 -1
  16. package/esm2022/libs/util/data-fetcher/src/lib/model.mjs +7 -3
  17. package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +20 -2
  18. package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +3 -3
  19. package/esm2022/libs/util/shared/src/lib/services/date.service.mjs +41 -0
  20. package/esm2022/libs/util/shared/src/lib/services/index.mjs +2 -1
  21. package/esm2022/libs/util/shared/src/lib/utils/temporal-extent-union.mjs +4 -4
  22. package/esm2022/translations/de.json +7 -0
  23. package/esm2022/translations/en.json +7 -0
  24. package/esm2022/translations/es.json +7 -0
  25. package/esm2022/translations/fr.json +7 -0
  26. package/esm2022/translations/it.json +7 -0
  27. package/esm2022/translations/nl.json +7 -0
  28. package/esm2022/translations/pt.json +7 -0
  29. package/fesm2022/geonetwork-ui.mjs +665 -368
  30. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  31. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +2 -1
  32. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  33. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  34. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +7 -9
  35. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts.map +1 -1
  36. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -6
  37. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  38. package/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.d.ts +3 -3
  39. package/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.d.ts.map +1 -1
  40. package/libs/feature/record/src/lib/feature-record.module.d.ts +2 -2
  41. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  42. package/libs/ui/dataviz/src/index.d.ts +2 -2
  43. package/libs/ui/dataviz/src/index.d.ts.map +1 -1
  44. package/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.d.ts +14 -0
  45. package/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.d.ts.map +1 -0
  46. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +45 -0
  47. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -0
  48. package/libs/ui/dataviz/src/lib/data-table/data-table.data.source.d.ts +12 -0
  49. package/libs/ui/dataviz/src/lib/data-table/data-table.data.source.d.ts.map +1 -0
  50. package/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.d.ts +10 -0
  51. package/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.d.ts.map +1 -0
  52. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +5 -0
  53. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  54. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -2
  55. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  56. package/libs/util/data-fetcher/src/index.d.ts +3 -1
  57. package/libs/util/data-fetcher/src/index.d.ts.map +1 -1
  58. package/libs/util/data-fetcher/src/lib/model.d.ts +1 -1
  59. package/libs/util/data-fetcher/src/lib/model.d.ts.map +1 -1
  60. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
  61. package/libs/util/shared/src/lib/services/date.service.d.ts +13 -0
  62. package/libs/util/shared/src/lib/services/date.service.d.ts.map +1 -0
  63. package/libs/util/shared/src/lib/services/index.d.ts +1 -0
  64. package/libs/util/shared/src/lib/services/index.d.ts.map +1 -1
  65. package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts +2 -1
  66. package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts.map +1 -1
  67. package/package.json +1 -1
  68. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +19 -5
  69. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +1 -5
  70. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +3 -3
  71. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +17 -15
  72. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +4 -3
  73. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +9 -18
  74. package/src/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.ts +3 -4
  75. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +1 -1
  76. package/src/libs/feature/record/src/lib/feature-record.module.ts +6 -4
  77. package/src/libs/ui/dataviz/src/index.ts +2 -2
  78. package/src/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.ts +52 -0
  79. package/src/libs/ui/dataviz/src/lib/{table/table.component.css → data-table/data-table.component.css} +4 -0
  80. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +67 -0
  81. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +173 -0
  82. package/src/libs/ui/dataviz/src/lib/data-table/data-table.data.source.ts +33 -0
  83. package/src/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.ts +84 -0
  84. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +3 -3
  85. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -2
  86. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +4 -2
  87. package/src/libs/util/data-fetcher/src/index.ts +3 -0
  88. package/src/libs/util/data-fetcher/src/lib/model.ts +6 -2
  89. package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +23 -1
  90. package/src/libs/util/data-fetcher/src/lib/utils.ts +2 -2
  91. package/src/libs/util/shared/src/lib/services/date.service.ts +45 -0
  92. package/src/libs/util/shared/src/lib/services/index.ts +1 -0
  93. package/src/libs/util/shared/src/lib/utils/temporal-extent-union.ts +6 -3
  94. package/translations/de.json +7 -0
  95. package/translations/en.json +7 -0
  96. package/translations/es.json +7 -0
  97. package/translations/fr.json +7 -0
  98. package/translations/it.json +7 -0
  99. package/translations/nl.json +7 -0
  100. package/translations/pt.json +7 -0
  101. package/translations/sk.json +7 -0
  102. package/esm2022/libs/ui/dataviz/src/lib/table/table.component.mjs +0 -61
  103. package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +0 -40
  104. package/libs/ui/dataviz/src/lib/table/table.component.d.ts +0 -29
  105. package/libs/ui/dataviz/src/lib/table/table.component.d.ts.map +0 -1
  106. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +0 -11
  107. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +0 -1
  108. package/src/libs/ui/dataviz/src/lib/table/table.component.html +0 -40
  109. package/src/libs/ui/dataviz/src/lib/table/table.component.ts +0 -80
  110. package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +0 -40
@@ -163,13 +163,13 @@
163
163
  <div *ngIf="metadata.resourceCreated">
164
164
  <p class="text-sm" translate>record.metadata.creation</p>
165
165
  <p class="text-primary font-medium mt-1">
166
- {{ metadata.resourceCreated.toLocaleDateString() }}
166
+ {{ formatDate(metadata.resourceCreated) }}
167
167
  </p>
168
168
  </div>
169
169
  <div *ngIf="metadata.resourcePublished">
170
170
  <p class="text-sm" translate>record.metadata.publication</p>
171
171
  <p class="text-primary font-medium mt-1">
172
- {{ metadata.resourcePublished.toLocaleDateString() }}
172
+ {{ formatDate(metadata.resourcePublished) }}
173
173
  </p>
174
174
  </div>
175
175
  <div *ngIf="updateFrequency">
@@ -233,7 +233,7 @@
233
233
  <div *ngIf="metadata.recordUpdated">
234
234
  <p class="text-sm" translate>record.metadata.updatedOn</p>
235
235
  <p class="text-primary font-medium">
236
- {{ metadata.recordUpdated && metadata.recordUpdated.toLocaleString() }}
236
+ {{ metadata.recordUpdated && formatDateTime(metadata.recordUpdated) }}
237
237
  </p>
238
238
  </div>
239
239
  <div *ngIf="metadata.landingPage">
@@ -9,7 +9,7 @@ import {
9
9
  DatasetRecord,
10
10
  Keyword,
11
11
  } from '../../../../../../libs/common/domain/src/lib/model/record'
12
- import { getTemporalRangeUnion } from '../../../../../../libs/util/shared/src'
12
+ import { DateService, getTemporalRangeUnion } from '../../../../../../libs/util/shared/src'
13
13
  import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component'
14
14
  import {
15
15
  ExpandablePanelComponent,
@@ -60,6 +60,8 @@ export class MetadataInfoComponent {
60
60
  @Output() keyword = new EventEmitter<Keyword>()
61
61
  updatedTimes: number
62
62
 
63
+ constructor(private dateService: DateService) {}
64
+
63
65
  get hasUsage() {
64
66
  return (
65
67
  this.metadata.extras?.isOpenData === true ||
@@ -121,7 +123,7 @@ export class MetadataInfoComponent {
121
123
 
122
124
  get temporalExtent(): { start: string; end: string } {
123
125
  const temporalExtents = this.metadata.temporalExtents
124
- return getTemporalRangeUnion(temporalExtents)
126
+ return getTemporalRangeUnion(temporalExtents, this.dateService)
125
127
  }
126
128
 
127
129
  get shownOrganization() {
@@ -139,4 +141,12 @@ export class MetadataInfoComponent {
139
141
  onKeywordClick(keyword: Keyword) {
140
142
  this.keyword.emit(keyword)
141
143
  }
144
+
145
+ formatDate(date: Date): string {
146
+ return this.dateService.formatDate(date)
147
+ }
148
+
149
+ formatDateTime(date: Date): string {
150
+ return this.dateService.formatDateTime(date)
151
+ }
142
152
  }
@@ -21,6 +21,7 @@ import {
21
21
  InteractiveTableComponent,
22
22
  } from '../../../../../../libs/ui/layout/src'
23
23
  import {
24
+ DateService,
24
25
  FileFormat,
25
26
  formatUserInfo,
26
27
  getBadgeColor,
@@ -86,7 +87,8 @@ export class ResultsTableComponent {
86
87
  constructor(
87
88
  private overlay: Overlay,
88
89
  private viewContainerRef: ViewContainerRef,
89
- private cdr: ChangeDetectorRef
90
+ private cdr: ChangeDetectorRef,
91
+ private dateService: DateService
90
92
  ) {}
91
93
 
92
94
  openActionMenu(item, template) {
@@ -139,7 +141,7 @@ export class ResultsTableComponent {
139
141
  }
140
142
 
141
143
  dateToString(date: Date): string {
142
- return date?.toLocaleDateString(undefined, {
144
+ return this.dateService.formatDate(date, {
143
145
  year: 'numeric',
144
146
  month: 'long',
145
147
  day: 'numeric',
@@ -5,6 +5,9 @@ export {
5
5
  DataItem,
6
6
  FetchError,
7
7
  FieldAggregation,
8
+ PropertyInfo,
8
9
  } from './lib/model'
9
10
  export { getJsonDataItemsProxy } from './lib/utils'
10
11
  export { BaseReader } from './lib/readers/base'
12
+ export { BaseFileReader } from './lib/readers/base-file'
13
+ export { GeojsonReader } from './lib/readers/geojson'
@@ -13,8 +13,12 @@ export class FetchError {
13
13
  ) {
14
14
  this.message = `An error happened in the data fetcher, type: ${type}, info: ${info}`
15
15
  }
16
- static http(code: number) {
17
- return new FetchError('http', '', code)
16
+ static http(code: number, body?: string) {
17
+ const info = body
18
+ ? `Error ${code}
19
+ ${body}`
20
+ : `${code}`
21
+ return new FetchError('http', info, code)
18
22
  }
19
23
  static corsOrNetwork(message: string) {
20
24
  return new FetchError('network', message, 0)
@@ -4,6 +4,7 @@ import { fetchDataAsText } from '../utils'
4
4
  import { BaseReader } from './base'
5
5
  import { GmlReader, parseGml } from './gml'
6
6
  import { GeojsonReader, parseGeojson } from './geojson'
7
+ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
7
8
 
8
9
  export class WfsReader extends BaseReader {
9
10
  endpoint: WfsEndpoint
@@ -18,7 +19,22 @@ export class WfsReader extends BaseReader {
18
19
  }
19
20
 
20
21
  get properties(): Promise<PropertyInfo[]> {
21
- return this.getData().then((result) => result.properties)
22
+ return this.endpoint
23
+ .getFeatureTypeFull(this.featureTypeName)
24
+ .then((featureType) =>
25
+ Object.keys(featureType.properties).map((prop) => {
26
+ const originalType = featureType.properties[prop]
27
+ const type =
28
+ originalType === 'float' || originalType === 'integer'
29
+ ? 'number'
30
+ : (originalType as PropertyInfo['type']) // FIXME: ogc-client typing is incorrect, should be a string union
31
+ return {
32
+ name: prop,
33
+ label: prop,
34
+ type,
35
+ }
36
+ })
37
+ )
22
38
  }
23
39
 
24
40
  get info(): Promise<DatasetInfo> {
@@ -75,12 +91,18 @@ export class WfsReader extends BaseReader {
75
91
  }
76
92
 
77
93
  protected getData() {
94
+ if (this.aggregations || this.groupedBy) {
95
+ throw new Error(marker('wfs.aggregations.notsupported'))
96
+ }
97
+
78
98
  const asJson = this.endpoint.supportsJson(this.featureTypeName)
99
+ const attributes = this.selected ?? undefined
79
100
  let url = this.endpoint.getFeatureUrl(this.featureTypeName, {
80
101
  ...(this.startIndex !== null && { startIndex: this.startIndex }),
81
102
  ...(this.count !== null && { maxFeatures: this.count }),
82
103
  asJson,
83
104
  outputCrs: 'EPSG:4326',
105
+ attributes,
84
106
  // sortBy: this.sort // TODO: no sort in ogc-client?
85
107
  })
86
108
 
@@ -60,7 +60,7 @@ export function fetchDataAsText(url: string): Promise<string> {
60
60
  })
61
61
  .then(async (response) => {
62
62
  if (!response.ok) {
63
- throw FetchError.http(response.status)
63
+ throw FetchError.http(response.status, await response.text())
64
64
  }
65
65
  return response.text()
66
66
  }),
@@ -77,7 +77,7 @@ export function fetchDataAsArrayBuffer(url: string): Promise<ArrayBuffer> {
77
77
  })
78
78
  .then(async (response) => {
79
79
  if (!response.ok) {
80
- throw FetchError.http(response.status)
80
+ throw FetchError.http(response.status, await response.text())
81
81
  }
82
82
  // convert to a numeric array so that we can store the response in cache
83
83
  return Array.from(new Uint8Array(await response.arrayBuffer()))
@@ -0,0 +1,45 @@
1
+ import { Injectable } from '@angular/core'
2
+ import { TranslateService } from '@ngx-translate/core'
3
+
4
+ @Injectable({
5
+ providedIn: 'root',
6
+ })
7
+ export class DateService {
8
+ constructor(private translateService: TranslateService) {}
9
+
10
+ private getDateObject(date: Date | string): Date {
11
+ if (typeof date === 'string') {
12
+ const dateObj = new Date(date)
13
+ if (isNaN(dateObj.getTime())) {
14
+ throw new Error('Invalid date string')
15
+ }
16
+ return dateObj
17
+ }
18
+ return date
19
+ }
20
+
21
+ private getLocaleAndDate(date: Date | string): {
22
+ locale: string
23
+ dateObj: Date
24
+ } {
25
+ const locale = this.translateService.currentLang || 'en-US'
26
+ const dateObj = this.getDateObject(date)
27
+ return { locale, dateObj }
28
+ }
29
+
30
+ formatDate(
31
+ date: Date | string,
32
+ options?: Intl.DateTimeFormatOptions
33
+ ): string {
34
+ const { locale, dateObj } = this.getLocaleAndDate(date)
35
+ return dateObj.toLocaleDateString(locale, options)
36
+ }
37
+
38
+ formatDateTime(
39
+ date: Date | string,
40
+ options?: Intl.DateTimeFormatOptions
41
+ ): string {
42
+ const { locale, dateObj } = this.getLocaleAndDate(date)
43
+ return dateObj.toLocaleString(locale, options)
44
+ }
45
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './theme.service'
2
2
  export * from './log.service'
3
3
  export * from './proxy.service'
4
+ export * from './date.service'
@@ -1,8 +1,11 @@
1
+ import { DateService } from '../services'
2
+
1
3
  export function getTemporalRangeUnion(
2
4
  ranges: {
3
5
  start?: Date
4
6
  end?: Date
5
- }[]
7
+ }[],
8
+ dateService: DateService
6
9
  ) {
7
10
  let earliestStartDate = Infinity
8
11
  let latestEndDate = -Infinity
@@ -24,11 +27,11 @@ export function getTemporalRangeUnion(
24
27
  return {
25
28
  start:
26
29
  earliestStartDate !== -Infinity
27
- ? new Date(earliestStartDate).toLocaleDateString()
30
+ ? dateService.formatDate(new Date(earliestStartDate))
28
31
  : undefined,
29
32
  end:
30
33
  latestEndDate !== Infinity
31
- ? new Date(latestEndDate).toLocaleDateString()
34
+ ? dateService.formatDate(new Date(latestEndDate))
32
35
  : undefined,
33
36
  }
34
37
  } else {
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "Integrieren",
590
590
  "table.loading.data": "Daten werden geladen...",
591
591
  "table.object.count": "Objekte in diesem Datensatz",
592
+ "table.paginator.firstPage": "Erste Seite",
593
+ "table.paginator.itemsPerPage": "Elemente pro Seite",
594
+ "table.paginator.lastPage": "Letzte Seite",
595
+ "table.paginator.nextPage": "Nächste Seite",
596
+ "table.paginator.previousPage": "Vorherige Seite",
597
+ "table.paginator.rangeLabel": "{startIndex} - {endIndex} von {length}",
592
598
  "table.select.data": "Datenquelle",
593
599
  "tooltip.html.copy": "HTML kopieren",
594
600
  "tooltip.id.copy": "Eindeutige Kennung kopieren",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "URL öffnen",
597
603
  "ui.readLess": "Weniger lesen",
598
604
  "ui.readMore": "Weiterlesen",
605
+ "wfs.aggregations.notsupported": "",
599
606
  "wfs.feature.limit": "Zu viele Features, um den WFS-Layer anzuzeigen!",
600
607
  "wfs.featuretype.notfound": "Kein passender Feature-Typ wurde im Dienst gefunden",
601
608
  "wfs.geojsongml.notsupported": "Dieser Dienst unterstützt das GeoJSON- oder GML-Format nicht",
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "Integrate",
590
590
  "table.loading.data": "Loading data...",
591
591
  "table.object.count": "Objects in this dataset",
592
+ "table.paginator.firstPage": "First page",
593
+ "table.paginator.itemsPerPage": "Items per page",
594
+ "table.paginator.lastPage": "Last page",
595
+ "table.paginator.nextPage": "Next page",
596
+ "table.paginator.previousPage": "Previous page",
597
+ "table.paginator.rangeLabel": "{startIndex} - {endIndex} of {length}",
592
598
  "table.select.data": "Data source",
593
599
  "tooltip.html.copy": "Copy HTML",
594
600
  "tooltip.id.copy": "Copy unique identifier",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "Open URL",
597
603
  "ui.readLess": "Read less",
598
604
  "ui.readMore": "Read more",
605
+ "wfs.aggregations.notsupported": "Aggregations are currently not supported for WFS services",
599
606
  "wfs.feature.limit": "Too many features to display the WFS layer!",
600
607
  "wfs.featuretype.notfound": "No matching feature type was found in the service",
601
608
  "wfs.geojsongml.notsupported": "This service does not support the GeoJSON or GML format",
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "",
590
590
  "table.loading.data": "",
591
591
  "table.object.count": "",
592
+ "table.paginator.firstPage": "Primera página",
593
+ "table.paginator.itemsPerPage": "Elementos por página",
594
+ "table.paginator.lastPage": "Última página",
595
+ "table.paginator.nextPage": "Página siguiente",
596
+ "table.paginator.previousPage": "Página anterior",
597
+ "table.paginator.rangeLabel": "{startIndex} - {endIndex} de {length}",
592
598
  "table.select.data": "",
593
599
  "tooltip.html.copy": "",
594
600
  "tooltip.id.copy": "",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "",
597
603
  "ui.readLess": "",
598
604
  "ui.readMore": "",
605
+ "wfs.aggregations.notsupported": "",
599
606
  "wfs.feature.limit": "",
600
607
  "wfs.featuretype.notfound": "",
601
608
  "wfs.geojsongml.notsupported": "",
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "Intégrer",
590
590
  "table.loading.data": "Chargement des données...",
591
591
  "table.object.count": "enregistrements dans ces données",
592
+ "table.paginator.firstPage": "Première page",
593
+ "table.paginator.itemsPerPage": "Éléments par page",
594
+ "table.paginator.lastPage": "Dernière page",
595
+ "table.paginator.nextPage": "Page suivante",
596
+ "table.paginator.previousPage": "Page précédente",
597
+ "table.paginator.rangeLabel": "{startIndex} - {endIndex} sur {length}",
592
598
  "table.select.data": "Source de données",
593
599
  "tooltip.html.copy": "Copier le HTML",
594
600
  "tooltip.id.copy": "Copier l'identifiant unique",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "Ouvrir l'URL",
597
603
  "ui.readLess": "Réduire",
598
604
  "ui.readMore": "Lire la suite",
605
+ "wfs.aggregations.notsupported": "Agrégations non supportées pour les services WFS",
599
606
  "wfs.feature.limit": "Trop d'objets pour afficher la couche WFS !",
600
607
  "wfs.featuretype.notfound": "La classe d'objets n'a pas été trouvée dans le service",
601
608
  "wfs.geojsongml.notsupported": "Le service ne supporte pas le format GeoJSON ou GML",
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "Incorporare",
590
590
  "table.loading.data": "Caricamento dei dati...",
591
591
  "table.object.count": "record in questi dati",
592
+ "table.paginator.firstPage": "Prima pagina",
593
+ "table.paginator.itemsPerPage": "Elementi per pagina",
594
+ "table.paginator.lastPage": "Ultima pagina",
595
+ "table.paginator.nextPage": "Pagina successiva",
596
+ "table.paginator.previousPage": "Pagina precedente",
597
+ "table.paginator.rangeLabel": "{startIndex} - {endIndex} di {total}",
592
598
  "table.select.data": "Sorgente dati",
593
599
  "tooltip.html.copy": "Copiare il HTML",
594
600
  "tooltip.id.copy": "Copiare l'identificatore unico",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "Aprire l'URL",
597
603
  "ui.readLess": "Ridurre",
598
604
  "ui.readMore": "Leggere di più",
605
+ "wfs.aggregations.notsupported": "",
599
606
  "wfs.feature.limit": "Troppi oggetti per visualizzare il WFS layer!",
600
607
  "wfs.featuretype.notfound": "La classe di oggetto non è stata trovata nel servizio",
601
608
  "wfs.geojsongml.notsupported": "Il servizio non supporta il formato GeoJSON o GML",
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "",
590
590
  "table.loading.data": "",
591
591
  "table.object.count": "",
592
+ "table.paginator.firstPage": "",
593
+ "table.paginator.itemsPerPage": "",
594
+ "table.paginator.lastPage": "",
595
+ "table.paginator.nextPage": "",
596
+ "table.paginator.previousPage": "",
597
+ "table.paginator.rangeLabel": "",
592
598
  "table.select.data": "",
593
599
  "tooltip.html.copy": "",
594
600
  "tooltip.id.copy": "",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "",
597
603
  "ui.readLess": "",
598
604
  "ui.readMore": "",
605
+ "wfs.aggregations.notsupported": "",
599
606
  "wfs.feature.limit": "",
600
607
  "wfs.featuretype.notfound": "",
601
608
  "wfs.geojsongml.notsupported": "",
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "",
590
590
  "table.loading.data": "",
591
591
  "table.object.count": "",
592
+ "table.paginator.firstPage": "",
593
+ "table.paginator.itemsPerPage": "",
594
+ "table.paginator.lastPage": "",
595
+ "table.paginator.nextPage": "",
596
+ "table.paginator.previousPage": "",
597
+ "table.paginator.rangeLabel": "",
592
598
  "table.select.data": "",
593
599
  "tooltip.html.copy": "",
594
600
  "tooltip.id.copy": "",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "",
597
603
  "ui.readLess": "",
598
604
  "ui.readMore": "",
605
+ "wfs.aggregations.notsupported": "",
599
606
  "wfs.feature.limit": "",
600
607
  "wfs.featuretype.notfound": "",
601
608
  "wfs.geojsongml.notsupported": "",
@@ -589,6 +589,12 @@
589
589
  "share.tab.webComponent": "Integrovať",
590
590
  "table.loading.data": "Načítanie údajov...",
591
591
  "table.object.count": "objekty v tomto súbore údajov",
592
+ "table.paginator.firstPage": "",
593
+ "table.paginator.itemsPerPage": "",
594
+ "table.paginator.lastPage": "",
595
+ "table.paginator.nextPage": "",
596
+ "table.paginator.previousPage": "",
597
+ "table.paginator.rangeLabel": "",
592
598
  "table.select.data": "Zdroj údajov",
593
599
  "tooltip.html.copy": "Kopírovať HTML",
594
600
  "tooltip.id.copy": "Kopírovať jedinečný identifikátor",
@@ -596,6 +602,7 @@
596
602
  "tooltip.url.open": "Otvoriť URL",
597
603
  "ui.readLess": "Čítať menej",
598
604
  "ui.readMore": "Čítať viac",
605
+ "wfs.aggregations.notsupported": "",
599
606
  "wfs.feature.limit": "",
600
607
  "wfs.featuretype.notfound": "V službe nebol nájdený žiadny zodpovedajúci typ funkcie",
601
608
  "wfs.geojsongml.notsupported": "Táto služba nepodporuje formát GeoJSON alebo GML",
@@ -1,61 +0,0 @@
1
- import { ScrollingModule } from '@angular/cdk/scrolling';
2
- import { NgForOf } from '@angular/common';
3
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
4
- import { MatSort, MatSortModule } from '@angular/material/sort';
5
- import { MatTableModule } from '@angular/material/table';
6
- import { TableVirtualScrollDataSource, TableVirtualScrollModule, } from 'ng-table-virtual-scroll';
7
- import { TranslateModule } from '@ngx-translate/core';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@angular/material/table";
10
- import * as i2 from "@angular/material/sort";
11
- import * as i3 from "ng-table-virtual-scroll";
12
- import * as i4 from "@angular/cdk/scrolling";
13
- import * as i5 from "@ngx-translate/core";
14
- const rowIdPrefix = 'table-item-';
15
- export class TableComponent {
16
- set data(value) {
17
- this.dataSource = new TableVirtualScrollDataSource(value);
18
- this.dataSource.sort = this.sort;
19
- this.properties =
20
- Array.isArray(value) && value.length ? Object.keys(value[0]) : [];
21
- this.count = value.length;
22
- }
23
- constructor(eltRef) {
24
- this.eltRef = eltRef;
25
- this.selected = new EventEmitter();
26
- }
27
- ngAfterViewInit() {
28
- this.headerHeight =
29
- this.eltRef.nativeElement.querySelector('thead').offsetHeight;
30
- }
31
- scrollToItem(itemId) {
32
- const row = this.eltRef.nativeElement.querySelector(`#${this.getRowEltId(itemId)}`);
33
- this.eltRef.nativeElement.scrollTop = row.offsetTop - this.headerHeight;
34
- }
35
- getRowEltId(id) {
36
- return rowIdPrefix + id;
37
- }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TableComponent, isStandalone: true, selector: "gn-ui-table", inputs: { data: "data", activeId: "activeId" }, outputs: { selected: "selected" }, viewQueries: [{ propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }], ngImport: i0, template: "<div class=\"border border-gray-300 rounded-lg overflow-hidden bg-white h-full\">\n <cdk-virtual-scroll-viewport\n tvsItemSize=\"48\"\n headerHeight=\"56\"\n style=\"height: calc(100% - 37px)\"\n >\n <table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z8\" matSort>\n <ng-container *ngFor=\"let prop of properties\" [matColumnDef]=\"prop\">\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header\n class=\"text-sm text-black bg-white\"\n >\n {{ prop }}\n </th>\n <td\n mat-cell\n *matCellDef=\"let element\"\n class=\"whitespace-nowrap pr-1 truncate\"\n >\n {{ element[prop] }}\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"properties; sticky: true\"></tr>\n <tr\n [id]=\"getRowEltId(row.id)\"\n mat-row\n *matRowDef=\"let row; columns: properties\"\n (click)=\"selected.emit(row)\"\n [class.active]=\"row.id === activeId\"\n ></tr>\n </table>\n </cdk-virtual-scroll-viewport>\n <div class=\"text-gray-900 border-t border-gray-300 px-4 py-2 text-sm\">\n <span class=\"count font-extrabold text-primary\">{{ count }}</span\n >&nbsp;<span translate>table.object.count</span>.\n </div>\n</div>\n", styles: ["table{width:100%;background:#fff}th.mat-mdc-header-cell,td.mat-mdc-cell,td.mat-mdc-footer-cell{padding-right:20px}tr.mat-mdc-row,tr.mat-mdc-footer-row{height:36px}tr:hover{background:#f5f5f5}tr.mat-mdc-header-row{height:48px}[mat-header-cell]{color:#0000008a;font-size:12px;font-weight:500}tr{cursor:pointer}.active .mat-mdc-cell{color:var(--color-primary)}\n"], dependencies: [{ kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i2.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i2.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "ngmodule", type: TableVirtualScrollModule }, { kind: "directive", type: i3.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: i4.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "directive", type: i5.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableComponent, decorators: [{
42
- type: Component,
43
- args: [{ standalone: true, imports: [
44
- MatTableModule,
45
- MatSortModule,
46
- TableVirtualScrollModule,
47
- ScrollingModule,
48
- NgForOf,
49
- TranslateModule,
50
- ], selector: 'gn-ui-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"border border-gray-300 rounded-lg overflow-hidden bg-white h-full\">\n <cdk-virtual-scroll-viewport\n tvsItemSize=\"48\"\n headerHeight=\"56\"\n style=\"height: calc(100% - 37px)\"\n >\n <table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z8\" matSort>\n <ng-container *ngFor=\"let prop of properties\" [matColumnDef]=\"prop\">\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header\n class=\"text-sm text-black bg-white\"\n >\n {{ prop }}\n </th>\n <td\n mat-cell\n *matCellDef=\"let element\"\n class=\"whitespace-nowrap pr-1 truncate\"\n >\n {{ element[prop] }}\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"properties; sticky: true\"></tr>\n <tr\n [id]=\"getRowEltId(row.id)\"\n mat-row\n *matRowDef=\"let row; columns: properties\"\n (click)=\"selected.emit(row)\"\n [class.active]=\"row.id === activeId\"\n ></tr>\n </table>\n </cdk-virtual-scroll-viewport>\n <div class=\"text-gray-900 border-t border-gray-300 px-4 py-2 text-sm\">\n <span class=\"count font-extrabold text-primary\">{{ count }}</span\n >&nbsp;<span translate>table.object.count</span>.\n </div>\n</div>\n", styles: ["table{width:100%;background:#fff}th.mat-mdc-header-cell,td.mat-mdc-cell,td.mat-mdc-footer-cell{padding-right:20px}tr.mat-mdc-row,tr.mat-mdc-footer-row{height:36px}tr:hover{background:#f5f5f5}tr.mat-mdc-header-row{height:48px}[mat-header-cell]{color:#0000008a;font-size:12px;font-weight:500}tr{cursor:pointer}.active .mat-mdc-cell{color:var(--color-primary)}\n"] }]
51
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { data: [{
52
- type: Input
53
- }], activeId: [{
54
- type: Input
55
- }], selected: [{
56
- type: Output
57
- }], sort: [{
58
- type: ViewChild,
59
- args: [MatSort, { static: true }]
60
- }] } });
61
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS9kYXRhdml6L3NyYy9saWIvdGFibGUvdGFibGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS9kYXRhdml6L3NyYy9saWIvdGFibGUvdGFibGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQ3hELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUN6QyxPQUFPLEVBRUwsdUJBQXVCLEVBQ3Z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IlxuICAgIGhlYWRlckhlaWdodD1cIjU2XCJcbiAgICBzdHlsZT1cImhlaWdodDogY2FsYygxMDAlIC0gMzdweClcIlxuICA+XG4gICAgPHRhYmxlIG1hdC10YWJsZSBbZGF0YVNvdXJjZV09XCJkYXRhU291cmNlXCIgY2xhc3M9XCJtYXQtZWxldmF0aW9uLXo4XCIgbWF0U29ydD5cbiAgICAgIDxuZy1jb250YWluZXIgKm5nRm9yPVwibGV0IHByb3Agb2YgcHJvcGVydGllc1wiIFttYXRDb2x1bW5EZWZdPVwicHJvcFwiPlxuICAgICAgICA8dGhcbiAgICAgICAgICBtYXQtaGVhZGVyLWNlbGxcbiAgICAgICAgICAqbWF0SGVhZGVyQ2VsbERlZlxuICAgICAgICAgIG1hdC1zb3J0LWhlYWRlclxuICAgICAgICAgIGNsYXNzPVwidGV4dC1zbSB0ZXh0LWJsYWNrIGJnLXdoaXRlXCJcbiAgICAgICAgPlxuICAgICAgICAgIHt7IHByb3AgfX1cbiAgICAgICAgPC90aD5cbiAgICAgICAgPHRkXG4gICAgICAgICAgbWF0LWNlbGxcbiAgICAgICAgICAqbWF0Q2VsbERlZj1cImxldCBlbGVtZW50XCJcbiAgICAgICAgICBjbGFzcz1cIndoaXRlc3BhY2Utbm93cmFwIHByLTEgdHJ1bmNhdGVcIlxuICAgICAgICA+XG4gICAgICAgICAge3sgZWxlbWVudFtwcm9wXSB9fVxuICAgICAgICA8L3RkPlxuICAgICAgPC9uZy1jb250YWluZXI+XG5cbiAgICAgIDx0ciBtYXQtaGVhZGVyLXJvdyAqbWF0SGVhZGVyUm93RGVmPVwicHJvcGVydGllczsgc3RpY2t5OiB0cnVlXCI+PC90cj5cbiAgICAgIDx0clxuICAgICAgICBbaWRdPVwiZ2V0Um93RWx0SWQocm93LmlkKVwiXG4gICAgICAgIG1hdC1yb3dcbiAgICAgICAgKm1hdFJvd0RlZj1cImxldCByb3c7IGNvbHVtbnM6IHByb3BlcnRpZXNcIlxuICAgICAgICAoY2xpY2spPVwic2VsZWN0ZWQuZW1pdChyb3cpXCJcbiAgICAgICAgW2NsYXNzLmFjdGl2ZV09XCJyb3cuaWQgPT09IGFjdGl2ZUlkXCJcbiAgICAgID48L3RyPlxuICAgIDwvdGFibGU+XG4gIDwvY2RrLXZpcnR1YWwtc2Nyb2xsLXZpZXdwb3J0PlxuICA8ZGl2IGNsYXNzPVwidGV4dC1ncmF5LTkwMCBib3JkZXItdCBib3JkZXItZ3JheS0zMDAgcHgtNCBweS0yIHRleHQtc21cIj5cbiAgICA8c3BhbiBjbGFzcz1cImNvdW50IGZvbnQtZXh0cmFib2xkIHRleHQtcHJpbWFyeVwiPnt7IGNvdW50IH19PC9zcGFuXG4gICAgPiZuYnNwOzxzcGFuIHRyYW5zbGF0ZT50YWJsZS5vYmplY3QuY291bnQ8L3NwYW4+LlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
@@ -1,40 +0,0 @@
1
- export const tableItemFixture = () => [
2
- {
3
- name: 'name 1',
4
- id: 'id 1',
5
- age: 15,
6
- },
7
- {
8
- name: 'name 2',
9
- id: 'id 2',
10
- age: 10,
11
- },
12
- {
13
- name: 'name 3',
14
- id: 'id 3',
15
- age: 55,
16
- },
17
- ];
18
- export const someHabTableItemFixture = () => [
19
- {
20
- name: 'France',
21
- id: '1',
22
- pop: 50500000,
23
- },
24
- {
25
- name: 'Italy',
26
- id: '2',
27
- pop: 155878789655,
28
- },
29
- {
30
- name: 'UK',
31
- id: '3',
32
- pop: 31522456,
33
- },
34
- {
35
- name: 'US',
36
- id: '4',
37
- pop: 3215448888,
38
- },
39
- ];
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUuZml4dHVyZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3VpL2RhdGF2aXovc3JjL2xpYi90YWJsZS90YWJsZS5maXh0dXJlcy50cyJdLCJuYW1l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gICAgaWQ6ICdpZCAyJyxcbiAgICBhZ2U6IDEwLFxuICB9LFxuICB7XG4gICAgbmFtZTogJ25hbWUgMycsXG4gICAgaWQ6ICdpZCAzJyxcbiAgICBhZ2U6IDU1LFxuICB9LFxuXVxuXG5leHBvcnQgY29uc3Qgc29tZUhhYlRhYmxlSXRlbUZpeHR1cmUgPSAoKSA9PiBbXG4gIHtcbiAgICBuYW1lOiAnRnJhbmNlJyxcbiAgICBpZDogJzEnLFxuICAgIHBvcDogNTA1MDAwMDAsXG4gIH0sXG4gIHtcbiAgICBuYW1lOiAnSXRhbHknLFxuICAgIGlkOiAnMicsXG4gICAgcG9wOiAxNTU4Nzg3ODk2NTUsXG4gIH0sXG4gIHtcbiAgICBuYW1lOiAnVUsnLFxuICAgIGlkOiAnMycsXG4gICAgcG9wOiAzMTUyMjQ1NixcbiAgfSxcbiAge1xuICAgIG5hbWU6ICdVUycsXG4gICAgaWQ6ICc0JyxcbiAgICBwb3A6IDMyMTU0NDg4ODgsXG4gIH0sXG5dXG4iXX0=
@@ -1,29 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
- import { MatSort } from '@angular/material/sort';
3
- import { TableVirtualScrollDataSource } from 'ng-table-virtual-scroll';
4
- import * as i0 from "@angular/core";
5
- export type TableItemId = string | number;
6
- type TableItemType = string | number | Date;
7
- export interface TableItemModel {
8
- id: TableItemId;
9
- [key: string]: TableItemType;
10
- }
11
- export declare class TableComponent implements AfterViewInit {
12
- private eltRef;
13
- set data(value: TableItemModel[]);
14
- activeId: TableItemId;
15
- selected: EventEmitter<any>;
16
- sort: MatSort;
17
- properties: string[];
18
- dataSource: TableVirtualScrollDataSource<any>;
19
- headerHeight: number;
20
- count: number;
21
- constructor(eltRef: ElementRef);
22
- ngAfterViewInit(): void;
23
- scrollToItem(itemId: TableItemId): void;
24
- getRowEltId(id: TableItemId): string;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "gn-ui-table", never, { "data": { "alias": "data"; "required": false; }; "activeId": { "alias": "activeId"; "required": false; }; }, { "selected": "selected"; }, never, never, true, never>;
27
- }
28
- export {};
29
- //# sourceMappingURL=table.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/dataviz/src/lib/table/table.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAGb,UAAU,EACV,YAAY,EAIb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,OAAO,EAAiB,MAAM,wBAAwB,CAAA;AAE/D,OAAO,EACL,4BAA4B,EAE7B,MAAM,yBAAyB,CAAA;;AAKhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AACzC,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;AAE3C,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,WAAW,CAAA;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAC7B;AAED,qBAea,cAAe,YAAW,aAAa;IAiBtC,OAAO,CAAC,MAAM;IAhB1B,IAAa,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,EAMxC;IACQ,QAAQ,EAAE,WAAW,CAAA;IACpB,QAAQ,oBAA0B;IAEN,IAAI,EAAE,OAAO,CAAA;IACnD,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,UAAU,EAAE,4BAA4B,CAAC,GAAG,CAAC,CAAA;IAC7C,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;gBAEO,MAAM,EAAE,UAAU;IAEtC,eAAe;IAKf,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAOhC,WAAW,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM;yCA/BhC,cAAc;2CAAd,cAAc;CAkC1B"}
@@ -1,11 +0,0 @@
1
- export declare const tableItemFixture: () => {
2
- name: string;
3
- id: string;
4
- age: number;
5
- }[];
6
- export declare const someHabTableItemFixture: () => {
7
- name: string;
8
- id: string;
9
- pop: number;
10
- }[];
11
- //# sourceMappingURL=table.fixtures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.fixtures.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/dataviz/src/lib/table/table.fixtures.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;GAgB5B,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;GAqBnC,CAAA"}