geonetwork-ui 2.4.0-dev.656babc7 → 2.4.0-dev.81e72b2e
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.
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +14 -5
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +3 -1
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +2 -2
- package/esm2022/libs/common/domain/src/lib/model/record/organization.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/openapi/model/user.api.model.mjs +1 -1
- package/esm2022/libs/feature/catalog/src/index.mjs +2 -1
- package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +1 -1
- package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
- package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +4 -0
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +7 -4
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +6 -4
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +14 -44
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +64 -50
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +12 -35
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +12 -6
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +7 -4
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +8 -12
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +2 -1
- package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +9 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +8 -1
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +7 -4
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +49 -0
- package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +3 -2
- package/esm2022/libs/feature/search/src/lib/state/selectors.mjs +4 -1
- package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +5 -5
- package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -2
- package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +5 -8
- package/esm2022/libs/ui/elements/src/index.mjs +1 -2
- package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +5 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +2 -3
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +24 -5
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +1 -6
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +59 -26
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +2 -7
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +71 -0
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +1 -1
- package/esm2022/libs/ui/search/src/index.mjs +2 -1
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +120 -0
- package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +5 -3
- package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +1 -6
- package/esm2022/translations/de.json +27 -3
- package/esm2022/translations/en.json +30 -3
- package/esm2022/translations/es.json +27 -3
- package/esm2022/translations/fr.json +31 -4
- package/esm2022/translations/it.json +27 -3
- package/esm2022/translations/nl.json +27 -3
- package/esm2022/translations/pt.json +27 -3
- package/fesm2022/geonetwork-ui.mjs +855 -604
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/organization.model.d.ts +1 -0
- package/libs/common/domain/src/lib/model/record/organization.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +3 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/user.api.model.d.ts +1 -1
- package/libs/feature/catalog/src/index.d.ts +1 -0
- package/libs/feature/catalog/src/index.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/organization-url.token.d.ts +3 -0
- package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -0
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +2 -1
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +1 -0
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +1 -0
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +14 -24
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +6 -6
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +5 -10
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts +2 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/constants.d.ts +1 -0
- package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.config.d.ts +1 -0
- package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.service.d.ts +1 -0
- package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts +1 -0
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +1 -1
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts +2 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +25 -0
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
- package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/selectors.d.ts +1 -0
- package/libs/feature/search/src/lib/state/selectors.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts +2 -2
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +2 -1
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts +1 -2
- package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +0 -1
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/error/error.component.d.ts +3 -1
- package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +5 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +18 -19
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +7 -4
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -36
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.d.ts +2 -2
- package/libs/ui/layout/src/lib/max-lines/max-lines.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/ui/search/src/index.d.ts +1 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +30 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
- package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts +1 -1
- package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +10 -11
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +21 -8
- package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +3 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +1 -1
- package/src/libs/common/domain/src/lib/model/record/organization.model.ts +1 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
- package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +28 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +8 -0
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +4 -0
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +2 -0
- package/src/libs/data-access/gn4/src/openapi/model/user.api.model.ts +1 -1
- package/src/libs/feature/catalog/src/index.ts +1 -0
- package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -1
- package/src/libs/feature/catalog/src/lib/organisations/organisations.component.html +1 -1
- package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +2 -2
- package/src/libs/feature/catalog/src/lib/organization-url.token.ts +6 -0
- package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +2 -1
- package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +2 -0
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +35 -29
- package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +1 -0
- package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +2 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +19 -61
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +95 -86
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +2 -22
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -44
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +20 -6
- package/src/libs/feature/record/src/lib/feature-record.module.ts +3 -2
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +42 -31
- package/src/libs/feature/router/src/lib/default/constants.ts +1 -0
- package/src/libs/feature/router/src/lib/default/router.config.ts +1 -0
- package/src/libs/feature/router/src/lib/default/router.service.ts +13 -1
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +9 -1
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/feature-search.module.ts +2 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +2 -2
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +9 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +49 -0
- package/src/libs/feature/search/src/lib/state/search.facade.ts +5 -0
- package/src/libs/feature/search/src/lib/state/selectors.ts +7 -0
- package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +8 -6
- package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +2 -2
- package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +2 -0
- package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +11 -3
- package/src/libs/ui/dataviz/src/lib/figure/figure.component.ts +3 -7
- package/src/libs/ui/elements/src/index.ts +0 -1
- package/src/libs/ui/elements/src/lib/error/error.component.html +30 -6
- package/src/libs/ui/elements/src/lib/error/error.component.ts +2 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +22 -1
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +0 -3
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +0 -1
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +23 -19
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +79 -27
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.ts +9 -5
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -1
- package/src/libs/ui/search/src/index.ts +1 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.css +0 -0
- package/src/libs/{feature → ui}/search/src/lib/results-table/results-table.component.html +8 -8
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +138 -0
- package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +4 -0
- package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +0 -3
- package/translations/de.json +27 -3
- package/translations/en.json +30 -3
- package/translations/es.json +27 -3
- package/translations/fr.json +31 -4
- package/translations/it.json +27 -3
- package/translations/nl.json +27 -3
- package/translations/pt.json +27 -3
- package/translations/sk.json +28 -4
- package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +0 -136
- package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +0 -69
- package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +0 -36
- package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +0 -1
- package/libs/ui/elements/src/lib/max-lines/max-lines.component.d.ts.map +0 -1
- package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +0 -171
- /package/src/libs/feature/search/src/lib/results-table/{results-table.component.css → results-table-container.component.css} +0 -0
- /package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.css +0 -0
- /package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.html +0 -0
|
@@ -5,12 +5,17 @@ import {
|
|
|
5
5
|
OnInit,
|
|
6
6
|
} from '@angular/core'
|
|
7
7
|
import { FormControl } from '@angular/forms'
|
|
8
|
-
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
9
8
|
import {
|
|
10
9
|
CheckToggleComponent,
|
|
10
|
+
DropdownChoice,
|
|
11
11
|
DropdownSelectorComponent,
|
|
12
12
|
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
13
13
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
14
|
+
import {
|
|
15
|
+
UpdateFrequency,
|
|
16
|
+
UpdateFrequencyCustom,
|
|
17
|
+
} from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
18
|
+
import { firstValueFrom } from 'rxjs'
|
|
14
19
|
|
|
15
20
|
@Component({
|
|
16
21
|
selector: 'gn-ui-form-field-update-frequency',
|
|
@@ -21,26 +26,32 @@ import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
|
21
26
|
imports: [CheckToggleComponent, DropdownSelectorComponent, TranslateModule],
|
|
22
27
|
})
|
|
23
28
|
export class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
24
|
-
@Input() control: FormControl
|
|
29
|
+
@Input() control: FormControl<UpdateFrequency>
|
|
30
|
+
|
|
31
|
+
protected choices: DropdownChoice[] = []
|
|
25
32
|
|
|
26
33
|
get planned() {
|
|
27
|
-
return this.control.value !== '
|
|
34
|
+
return typeof this.control.value !== 'string'
|
|
28
35
|
}
|
|
29
36
|
|
|
30
37
|
constructor(private translateService: TranslateService) {}
|
|
31
38
|
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
async ngOnInit() {
|
|
40
|
+
this.choices = await this.getInitialChoices()
|
|
41
|
+
if (typeof this.control.value === 'string') {
|
|
42
|
+
return
|
|
43
|
+
}
|
|
44
|
+
const updatedTimes = this.control.value.updatedTimes
|
|
45
|
+
const per = this.control.value.per
|
|
46
|
+
// the update frequency is not in the list; make it appear there
|
|
35
47
|
if (updatedTimes && updatedTimes !== 1 && updatedTimes !== 2) {
|
|
36
48
|
this.choices = [
|
|
37
49
|
{
|
|
38
50
|
value: `${per}.${updatedTimes}`,
|
|
39
|
-
label:
|
|
40
|
-
`domain.record.updateFrequency.${per}`,
|
|
41
|
-
{
|
|
51
|
+
label: await firstValueFrom(
|
|
52
|
+
this.translateService.get(`domain.record.updateFrequency.${per}`, {
|
|
42
53
|
count: updatedTimes,
|
|
43
|
-
}
|
|
54
|
+
})
|
|
44
55
|
),
|
|
45
56
|
},
|
|
46
57
|
...this.choices,
|
|
@@ -56,88 +67,86 @@ export class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
|
56
67
|
}
|
|
57
68
|
}
|
|
58
69
|
|
|
59
|
-
get selectedFrequency() {
|
|
70
|
+
get selectedFrequency(): string {
|
|
71
|
+
if (typeof this.control.value === 'string') return null
|
|
60
72
|
const { updatedTimes, per } = this.control.value
|
|
61
73
|
return `${per}.${updatedTimes}`
|
|
62
74
|
}
|
|
63
75
|
|
|
64
76
|
onSelectFrequencyValue(value: unknown) {
|
|
65
77
|
const split = (value as string).split('.')
|
|
66
|
-
this.control.setValue({
|
|
78
|
+
this.control.setValue({
|
|
79
|
+
updatedTimes: Number(split[1]),
|
|
80
|
+
per: split[0] as UpdateFrequencyCustom['per'],
|
|
81
|
+
})
|
|
67
82
|
}
|
|
68
83
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
count: 2,
|
|
139
|
-
}
|
|
140
|
-
),
|
|
141
|
-
},
|
|
142
|
-
]
|
|
84
|
+
private async getInitialChoices() {
|
|
85
|
+
return [
|
|
86
|
+
{
|
|
87
|
+
value: 'day.1',
|
|
88
|
+
label: await firstValueFrom(
|
|
89
|
+
this.translateService.get('domain.record.updateFrequency.day', {
|
|
90
|
+
count: 1,
|
|
91
|
+
})
|
|
92
|
+
),
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
value: 'day.2',
|
|
96
|
+
label: await firstValueFrom(
|
|
97
|
+
this.translateService.get('domain.record.updateFrequency.day', {
|
|
98
|
+
count: 2,
|
|
99
|
+
})
|
|
100
|
+
),
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
value: 'week.1',
|
|
104
|
+
label: await firstValueFrom(
|
|
105
|
+
this.translateService.get('domain.record.updateFrequency.week', {
|
|
106
|
+
count: 1,
|
|
107
|
+
})
|
|
108
|
+
),
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
value: 'week.2',
|
|
112
|
+
label: await firstValueFrom(
|
|
113
|
+
this.translateService.get('domain.record.updateFrequency.week', {
|
|
114
|
+
count: 2,
|
|
115
|
+
})
|
|
116
|
+
),
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
value: 'month.1',
|
|
120
|
+
label: await firstValueFrom(
|
|
121
|
+
this.translateService.get('domain.record.updateFrequency.month', {
|
|
122
|
+
count: 1,
|
|
123
|
+
})
|
|
124
|
+
),
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
value: 'month.2',
|
|
128
|
+
label: await firstValueFrom(
|
|
129
|
+
this.translateService.get('domain.record.updateFrequency.month', {
|
|
130
|
+
count: 2,
|
|
131
|
+
})
|
|
132
|
+
),
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
value: 'year.1',
|
|
136
|
+
label: await firstValueFrom(
|
|
137
|
+
this.translateService.get('domain.record.updateFrequency.year', {
|
|
138
|
+
count: 1,
|
|
139
|
+
})
|
|
140
|
+
),
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
value: 'year.2',
|
|
144
|
+
label: await firstValueFrom(
|
|
145
|
+
this.translateService.get('domain.record.updateFrequency.year', {
|
|
146
|
+
count: 2,
|
|
147
|
+
})
|
|
148
|
+
),
|
|
149
|
+
},
|
|
150
|
+
]
|
|
151
|
+
}
|
|
143
152
|
}
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html
CHANGED
|
@@ -68,25 +68,11 @@
|
|
|
68
68
|
</ng-container>
|
|
69
69
|
<ng-container *ngIf="isSimpleField">
|
|
70
70
|
<gn-ui-form-field-simple
|
|
71
|
-
|
|
71
|
+
type="text"
|
|
72
72
|
[control]="formControl"
|
|
73
|
-
[readonly]="
|
|
74
|
-
[invalid]="isFieldInvalid"
|
|
73
|
+
[readonly]="isReadOnly"
|
|
75
74
|
></gn-ui-form-field-simple>
|
|
76
75
|
</ng-container>
|
|
77
|
-
<ng-container *ngIf="isFileField">
|
|
78
|
-
<gn-ui-form-field-file
|
|
79
|
-
[control]="formControl"
|
|
80
|
-
[readonly]="isFieldLocked"
|
|
81
|
-
[invalid]="isFieldInvalid"
|
|
82
|
-
></gn-ui-form-field-file>
|
|
83
|
-
</ng-container>
|
|
84
|
-
<ng-container *ngIf="isArrayField">
|
|
85
|
-
<gn-ui-form-field-array></gn-ui-form-field-array>
|
|
86
|
-
</ng-container>
|
|
87
|
-
<ng-container *ngIf="isObjectField">
|
|
88
|
-
<gn-ui-form-field-object></gn-ui-form-field-object>
|
|
89
|
-
</ng-container>
|
|
90
76
|
<ng-container *ngIf="isSpatialExtentField">
|
|
91
77
|
<gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>
|
|
92
78
|
</ng-container>
|
|
@@ -95,10 +81,4 @@
|
|
|
95
81
|
[control]="formControl"
|
|
96
82
|
></gn-ui-form-field-keywords>
|
|
97
83
|
</ng-container>
|
|
98
|
-
<div
|
|
99
|
-
*ngIf="isFieldInvalid && config.invalidHintKey"
|
|
100
|
-
class="mt-2 text-pink-500 text-sm field-invalid-hint"
|
|
101
|
-
>
|
|
102
|
-
{{ config.invalidHintKey | translate }}
|
|
103
|
-
</div>
|
|
104
84
|
</ng-template>
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { FormFieldSimpleComponent } from './form-field-simple/form-field-simple.
|
|
|
27
27
|
import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/form-field-spatial-extent.component'
|
|
28
28
|
import { FormFieldConfig } from './form-field.model'
|
|
29
29
|
import { FormFieldUpdateFrequencyComponent } from './form-field-update-frequency/form-field-update-frequency.component'
|
|
30
|
+
import { CatalogRecordKeys } from '../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
30
31
|
import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
|
|
31
32
|
|
|
32
33
|
@Component({
|
|
@@ -57,7 +58,7 @@ import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-key
|
|
|
57
58
|
],
|
|
58
59
|
})
|
|
59
60
|
export class FormFieldComponent {
|
|
60
|
-
@Input() model:
|
|
61
|
+
@Input() model: CatalogRecordKeys
|
|
61
62
|
@Input() config: FormFieldConfig
|
|
62
63
|
@Input() set value(v: unknown) {
|
|
63
64
|
this.formControl.setValue(v, {
|
|
@@ -78,49 +79,6 @@ export class FormFieldComponent {
|
|
|
78
79
|
this.titleInput.nativeElement.children[0].focus()
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
get simpleType() {
|
|
82
|
-
return this.config.type as
|
|
83
|
-
| 'date'
|
|
84
|
-
| 'url'
|
|
85
|
-
| 'text'
|
|
86
|
-
| 'number'
|
|
87
|
-
| 'list'
|
|
88
|
-
| 'toggle'
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
get isSimpleField() {
|
|
92
|
-
return (
|
|
93
|
-
this.config.type === 'text' ||
|
|
94
|
-
this.config.type === 'number' ||
|
|
95
|
-
this.config.type === 'date' ||
|
|
96
|
-
this.config.type === 'list' ||
|
|
97
|
-
this.config.type === 'url' ||
|
|
98
|
-
this.config.type === 'toggle'
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
get isFileField() {
|
|
102
|
-
return this.config.type === 'file'
|
|
103
|
-
}
|
|
104
|
-
get isSpatialExtentField() {
|
|
105
|
-
return this.config.type === 'spatial_extent'
|
|
106
|
-
}
|
|
107
|
-
get isArrayField() {
|
|
108
|
-
return this.config.type === 'array'
|
|
109
|
-
}
|
|
110
|
-
get isObjectField() {
|
|
111
|
-
return this.config.type === 'object'
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
get isFieldOk() {
|
|
115
|
-
return !this.config.locked && !this.config.invalid
|
|
116
|
-
}
|
|
117
|
-
get isFieldLocked() {
|
|
118
|
-
return this.config.locked
|
|
119
|
-
}
|
|
120
|
-
get isFieldInvalid() {
|
|
121
|
-
return !this.config.locked && this.config.invalid
|
|
122
|
-
}
|
|
123
|
-
|
|
124
82
|
get isTitle() {
|
|
125
83
|
return this.model === 'title'
|
|
126
84
|
}
|
|
@@ -139,6 +97,15 @@ export class FormFieldComponent {
|
|
|
139
97
|
get isTemporalExtents() {
|
|
140
98
|
return this.model === 'temporalExtents'
|
|
141
99
|
}
|
|
100
|
+
get isSpatialExtentField() {
|
|
101
|
+
return this.model === 'spatialExtents'
|
|
102
|
+
}
|
|
103
|
+
get isSimpleField() {
|
|
104
|
+
return this.model === 'uniqueIdentifier' || this.model === 'recordUpdated'
|
|
105
|
+
}
|
|
106
|
+
get isReadOnly() {
|
|
107
|
+
return this.model === 'uniqueIdentifier' || this.model === 'recordUpdated'
|
|
108
|
+
}
|
|
142
109
|
get isKeywords() {
|
|
143
110
|
return this.model === 'keywords'
|
|
144
111
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
|
-
import { Observable } from 'rxjs'
|
|
3
|
-
import { map } from 'rxjs/operators'
|
|
2
|
+
import { Observable, switchMap } from 'rxjs'
|
|
3
|
+
import { map, tap } from 'rxjs/operators'
|
|
4
4
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
5
5
|
import { EditorFieldsConfig } from '../models/fields.model'
|
|
6
6
|
import { evaluate } from '../expressions'
|
|
@@ -15,7 +15,8 @@ export class EditorService {
|
|
|
15
15
|
// returns the record as it was when saved, alongside its source
|
|
16
16
|
saveRecord(
|
|
17
17
|
record: CatalogRecord,
|
|
18
|
-
fieldsConfig: EditorFieldsConfig
|
|
18
|
+
fieldsConfig: EditorFieldsConfig,
|
|
19
|
+
generateNewUniqueIdentifier = false
|
|
19
20
|
): Observable<[CatalogRecord, string]> {
|
|
20
21
|
const savedRecord = { ...record }
|
|
21
22
|
|
|
@@ -29,9 +30,22 @@ export class EditorService {
|
|
|
29
30
|
})
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
|
|
34
|
+
// if we want a new unique identifier, clear the existing one
|
|
35
|
+
if (generateNewUniqueIdentifier) {
|
|
36
|
+
savedRecord.uniqueIdentifier = null
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return this.recordsRepository.saveRecord(savedRecord).pipe(
|
|
40
|
+
switchMap((uniqueIdentifier) =>
|
|
41
|
+
this.recordsRepository.openRecordForEdition(uniqueIdentifier)
|
|
42
|
+
),
|
|
43
|
+
tap(() => {
|
|
44
|
+
// if saving was successful, the original draft can be discarded
|
|
45
|
+
this.recordsRepository.clearRecordDraft(record.uniqueIdentifier)
|
|
46
|
+
}),
|
|
47
|
+
map(([record, recordSource]) => [record, recordSource])
|
|
48
|
+
)
|
|
35
49
|
}
|
|
36
50
|
|
|
37
51
|
// emits and completes once saving is done
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgModule } from '@angular/core'
|
|
2
2
|
import { CommonModule } from '@angular/common'
|
|
3
3
|
import { UiMapModule } from '../../../../../libs/ui/map/src'
|
|
4
4
|
import { StoreModule } from '@ngrx/store'
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from './state/mdview.reducer'
|
|
18
18
|
import { MatTabsModule } from '@angular/material/tabs'
|
|
19
19
|
import { MatIconModule } from '@angular/material/icon'
|
|
20
|
-
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
20
|
+
import { PopupAlertComponent, UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
21
21
|
import { TranslateModule } from '@ngx-translate/core'
|
|
22
22
|
import { ExternalViewerButtonComponent } from './external-viewer-button/external-viewer-button.component'
|
|
23
23
|
import { FeatureCatalogModule } from '../../../../../libs/feature/catalog/src'
|
|
@@ -52,6 +52,7 @@ import { DataViewShareComponent } from './data-view-share/data-view-share.compon
|
|
|
52
52
|
TranslateModule,
|
|
53
53
|
TableComponent,
|
|
54
54
|
FeatureDatavizModule,
|
|
55
|
+
PopupAlertComponent,
|
|
55
56
|
],
|
|
56
57
|
providers: [MdViewFacade],
|
|
57
58
|
exports: [
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
2
|
import { select, Store } from '@ngrx/store'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
catchError,
|
|
5
|
+
defaultIfEmpty,
|
|
6
|
+
filter,
|
|
7
|
+
map,
|
|
8
|
+
mergeMap,
|
|
9
|
+
switchMap,
|
|
10
|
+
toArray,
|
|
11
|
+
} from 'rxjs/operators'
|
|
4
12
|
import * as MdViewActions from './mdview.actions'
|
|
5
13
|
import * as MdViewSelectors from './mdview.selectors'
|
|
6
14
|
import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/shared/src'
|
|
@@ -95,36 +103,39 @@ export class MdViewFacade {
|
|
|
95
103
|
)
|
|
96
104
|
|
|
97
105
|
geoDataLinksWithGeometry$ = this.allLinks$.pipe(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
106
|
+
switchMap((links) =>
|
|
107
|
+
from(links).pipe(
|
|
108
|
+
mergeMap((link) => {
|
|
109
|
+
if (this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)) {
|
|
110
|
+
if (
|
|
111
|
+
link.type === 'service' &&
|
|
112
|
+
link.accessServiceProtocol === 'ogcFeatures'
|
|
113
|
+
) {
|
|
114
|
+
return from(
|
|
115
|
+
this.dataService.getItemsFromOgcApi(link.url.href)
|
|
116
|
+
).pipe(
|
|
117
|
+
map((collectionRecords: OgcApiRecord) => {
|
|
118
|
+
return collectionRecords && collectionRecords.geometry
|
|
119
|
+
? link
|
|
120
|
+
: null
|
|
121
|
+
}),
|
|
122
|
+
defaultIfEmpty(null),
|
|
123
|
+
catchError((e) => {
|
|
124
|
+
console.error(e)
|
|
125
|
+
return of(null)
|
|
126
|
+
})
|
|
127
|
+
)
|
|
128
|
+
} else {
|
|
129
|
+
return of(link)
|
|
130
|
+
}
|
|
131
|
+
} else {
|
|
132
|
+
return of(null)
|
|
133
|
+
}
|
|
134
|
+
}),
|
|
135
|
+
toArray(),
|
|
136
|
+
map((links) => links.filter((link) => link !== null))
|
|
137
|
+
)
|
|
138
|
+
)
|
|
128
139
|
)
|
|
129
140
|
|
|
130
141
|
landingPageLinks$ = this.metadata$.pipe(
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Inject, Injectable } from '@angular/core'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ROUTER_ROUTE_DATASET,
|
|
4
|
+
ROUTER_ROUTE_ORGANIZATION,
|
|
5
|
+
ROUTER_ROUTE_SEARCH,
|
|
6
|
+
} from '.'
|
|
3
7
|
import { Router, Routes } from '@angular/router'
|
|
4
8
|
import { ROUTER_CONFIG, RouterConfigModel } from './router.config'
|
|
5
9
|
|
|
@@ -30,10 +34,18 @@ export class RouterService {
|
|
|
30
34
|
path: `${ROUTER_ROUTE_DATASET}/:metadataUuid`,
|
|
31
35
|
component: this.routerConfig.recordRouteComponent,
|
|
32
36
|
},
|
|
37
|
+
{
|
|
38
|
+
path: `${ROUTER_ROUTE_ORGANIZATION}/:name`,
|
|
39
|
+
component: this.routerConfig.organizationRouteComponent,
|
|
40
|
+
},
|
|
33
41
|
]
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
getSearchRoute(): string {
|
|
37
45
|
return ROUTER_ROUTE_SEARCH
|
|
38
46
|
}
|
|
47
|
+
|
|
48
|
+
getOrganizationPageRoute(): string {
|
|
49
|
+
return ROUTER_ROUTE_ORGANIZATION
|
|
50
|
+
}
|
|
39
51
|
}
|
|
@@ -3,7 +3,7 @@ import { MdViewActions } from '../../../../../../../libs/feature/record/src'
|
|
|
3
3
|
import { RouterService } from '../router.service'
|
|
4
4
|
import { RouterReducerState } from '@ngrx/router-store'
|
|
5
5
|
import { select, Store } from '@ngrx/store'
|
|
6
|
-
import { distinctUntilChanged, filter, map, take } from 'rxjs/operators'
|
|
6
|
+
import { distinctUntilChanged, filter, map, take, tap } from 'rxjs/operators'
|
|
7
7
|
import {
|
|
8
8
|
ROUTER_ROUTE_DATASET,
|
|
9
9
|
ROUTER_ROUTE_SEARCH,
|
|
@@ -51,6 +51,14 @@ export class RouterFacade {
|
|
|
51
51
|
})
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
goToOrganization(organizationName: string) {
|
|
55
|
+
const path = `${this.routerService.getOrganizationPageRoute()}/${organizationName}`
|
|
56
|
+
this.go({
|
|
57
|
+
path,
|
|
58
|
+
queryParamsHandling: '',
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
|
|
54
62
|
updateSearch(query?: SearchRouteParams) {
|
|
55
63
|
this.go({
|
|
56
64
|
path: this.routerService.getSearchRoute(),
|
|
@@ -21,4 +21,4 @@ export * from './lib/results-hits-number/results-hits.container.component'
|
|
|
21
21
|
export * from './lib/results-layout/results-layout.component'
|
|
22
22
|
export * from './lib/sort-by/sort-by.component'
|
|
23
23
|
export * from './lib/state/container/search-state.container.directive'
|
|
24
|
-
export * from './lib/results-table/results-table.component'
|
|
24
|
+
export * from './lib/results-table/results-table-container.component'
|
|
@@ -14,7 +14,7 @@ import { SearchEffects } from './state/effects'
|
|
|
14
14
|
import { initialState, reducer, SEARCH_FEATURE_KEY } from './state/reducer'
|
|
15
15
|
import { ResultsHitsContainerComponent } from './results-hits-number/results-hits.container.component'
|
|
16
16
|
import { SearchStateContainerDirective } from './state/container/search-state.container.directive'
|
|
17
|
-
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
17
|
+
import { AutocompleteComponent, UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
18
18
|
import { NgModule } from '@angular/core'
|
|
19
19
|
import { UiElementsModule } from '../../../../../libs/ui/elements/src'
|
|
20
20
|
import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.component'
|
|
@@ -51,6 +51,7 @@ import { Gn4Repository } from '../../../../../libs/api/repository/src'
|
|
|
51
51
|
FacetsModule,
|
|
52
52
|
MatIconModule,
|
|
53
53
|
UiWidgetsModule,
|
|
54
|
+
AutocompleteComponent,
|
|
54
55
|
],
|
|
55
56
|
exports: [
|
|
56
57
|
SortByComponent,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
AutocompleteComponent,
|
|
12
12
|
AutocompleteItem,
|
|
13
13
|
} from '../../../../../../libs/ui/inputs/src'
|
|
14
|
-
import {
|
|
14
|
+
import { firstValueFrom, Observable } from 'rxjs'
|
|
15
15
|
import { map } from 'rxjs/operators'
|
|
16
16
|
import { SearchFacade } from '../state/search.facade'
|
|
17
17
|
import { SearchService } from '../utils/service/search.service'
|
|
@@ -32,7 +32,7 @@ export class FuzzySearchComponent implements OnInit {
|
|
|
32
32
|
@Output() inputSubmitted = new EventEmitter<string>()
|
|
33
33
|
searchInputValue$: Observable<{ title: string }>
|
|
34
34
|
|
|
35
|
-
displayWithFn: (record: CatalogRecord) => string = (record) => record
|
|
35
|
+
displayWithFn: (record: CatalogRecord) => string = (record) => record.title
|
|
36
36
|
|
|
37
37
|
autoCompleteAction = (query: string) =>
|
|
38
38
|
this.recordsRepository
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<gn-ui-results-table
|
|
2
|
+
[records]="records$ | async"
|
|
3
|
+
[recordHasDraft]="hasDraft"
|
|
4
|
+
[selectedRecordsIdentifiers]="selectedRecords$ | async"
|
|
5
|
+
[sortOrder]="sortBy$ | async"
|
|
6
|
+
(recordClick)="handleRecordClick($event)"
|
|
7
|
+
(recordsSelectedChange)="handleRecordsSelectedChange($event[0], $event[1])"
|
|
8
|
+
(sortByChange)="handleSortByChange($event[0], $event[1])"
|
|
9
|
+
></gn-ui-results-table>
|