geonetwork-ui 2.4.0-dev.6c8dcba0 → 2.4.0-dev.78565730
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/metadata-converter/src/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +2 -0
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +1 -1
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +25 -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 +12 -4
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +38 -14
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/record/organization.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.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/api/records.api.service.mjs +2 -6
- 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/catalog/src/lib/records/records.service.mjs +4 -6
- 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 +3 -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 +8 -2
- package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
- package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +59 -0
- 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 +17 -35
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +11 -7
- package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +4 -3
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +144 -54
- package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
- package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +15 -8
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
- 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 +55 -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/feature/search/src/lib/utils/service/fields.service.mjs +7 -3
- 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/api-card/api-card.component.mjs +3 -3
- 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 +7 -7
- 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 +9 -11
- package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +59 -26
- package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +28 -0
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +11 -10
- 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/action-menu/action-menu.component.mjs +29 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +128 -0
- package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
- 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 +96 -34
- package/esm2022/translations/en.json +67 -5
- package/esm2022/translations/es.json +67 -5
- package/esm2022/translations/fr.json +68 -6
- package/esm2022/translations/it.json +67 -5
- package/esm2022/translations/nl.json +67 -5
- package/esm2022/translations/pt.json +67 -5
- package/fesm2022/geonetwork-ui.mjs +1615 -757
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +31 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +3 -2
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -2
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -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/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +3 -3
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -5
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +4 -7
- package/libs/common/domain/src/lib/model/record/metadata.model.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/model/thesaurus/thesaurus.model.d.ts +12 -5
- package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +4 -3
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +12 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/api/records.api.service.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/catalog/src/lib/records/records.service.d.ts.map +1 -1
- 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 +6 -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 +5 -4
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
- package/libs/feature/editor/src/lib/+state/editor.selectors.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 +25 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -0
- 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 +7 -11
- 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/components/record-form/form-field/index.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +5 -7
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
- package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +38 -2
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +36 -0
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.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 +27 -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/feature/search/src/lib/utils/service/fields.service.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 +19 -19
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +1 -0
- package/libs/ui/inputs/src/index.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/badge/badge.component.d.ts +11 -0
- package/libs/ui/inputs/src/lib/badge/badge.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -35
- 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/action-menu/action-menu.component.d.ts +11 -0
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +32 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
- package/libs/ui/widgets/src/index.d.ts +0 -1
- package/libs/ui/widgets/src/index.d.ts.map +1 -1
- 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/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/types/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +31 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +2 -2
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +41 -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 +25 -4
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +81 -21
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +4 -9
- package/src/libs/common/domain/src/lib/model/record/organization.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.ts +13 -6
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +7 -3
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +16 -1
- package/src/libs/common/fixtures/src/index.ts +2 -0
- package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
- package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
- 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/api/records.api.service.ts +1 -5
- package/src/libs/data-access/gn4/src/openapi/model/user.api.model.ts +1 -1
- package/src/libs/data-access/gn4/src/spec.yaml +0 -8
- 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/catalog/src/lib/records/records.service.ts +6 -8
- package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +2 -1
- package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +7 -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 +10 -1
- package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
- package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
- package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +19 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +79 -0
- 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 +16 -31
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +18 -45
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -2
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +51 -11
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +15 -8
- package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
- package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +176 -55
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +53 -0
- package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +27 -9
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
- 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 +10 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +54 -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/feature/search/src/lib/utils/service/fields.service.ts +16 -2
- 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/api-card/api-card.component.html +29 -29
- 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 +4 -6
- package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -1
- package/src/libs/ui/inputs/src/index.ts +1 -0
- 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/badge/badge.component.html +18 -0
- package/src/libs/ui/inputs/src/lib/badge/badge.component.ts +27 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +31 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +15 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +38 -0
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/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 +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/action-menu/action-menu.component.css +0 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +17 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +22 -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 +17 -8
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +152 -0
- package/src/libs/ui/widgets/src/index.ts +0 -1
- 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 +96 -34
- package/translations/en.json +67 -5
- package/translations/es.json +67 -5
- package/translations/fr.json +68 -6
- package/translations/it.json +67 -5
- package/translations/nl.json +67 -5
- package/translations/pt.json +67 -5
- package/translations/sk.json +68 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
- package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
- 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/esm2022/libs/ui/widgets/src/lib/badge/badge.component.mjs +0 -18
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
- package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
- 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/libs/ui/widgets/src/lib/badge/badge.component.d.ts +0 -7
- package/libs/ui/widgets/src/lib/badge/badge.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
- package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
- package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +0 -172
- package/src/libs/ui/widgets/src/lib/badge/badge.component.html +0 -10
- package/src/libs/ui/widgets/src/lib/badge/badge.component.ts +0 -14
- /package/src/libs/feature/{search/src/lib/results-table/results-table.component.css → editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.css} +0 -0
- /package/src/libs/{ui/elements/src/lib/max-lines/max-lines.component.css → feature/search/src/lib/results-table/results-table-container.component.css} +0 -0
- /package/src/libs/ui/{widgets → inputs}/src/lib/badge/badge.component.css +0 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export const EDITOR_CONFIG = () => ({
|
|
2
|
+
pages: [
|
|
3
|
+
{
|
|
4
|
+
labelKey: 'Resource description',
|
|
5
|
+
sections: [EDITOR_SECTION_ABOUT()],
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
labelKey: 'Resources',
|
|
9
|
+
sections: [EDITOR_SECTION_CLASSIFICATION()],
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
labelKey: 'Access and contact',
|
|
13
|
+
sections: [
|
|
14
|
+
EDITOR_SECTION_USE_AND_ACCESS_CONDITIONS(),
|
|
15
|
+
EDITOR_SECTION_DATA_MANAGER(),
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
export const EDITOR_SECTION_ABOUT = () => ({
|
|
22
|
+
labelKey: 'About the resource',
|
|
23
|
+
descriptionKey: 'This section describes the resource.',
|
|
24
|
+
hidden: false,
|
|
25
|
+
fields: [
|
|
26
|
+
EDITOR_FIELD_TITLE(),
|
|
27
|
+
EDITOR_FIELD_ABSTRACT(),
|
|
28
|
+
EDITOR_FIELD_RESOURCE_UPDATED(),
|
|
29
|
+
EDITOR_FIELD_RECORD_UPDATED(),
|
|
30
|
+
EDITOR_FIELD_UPDATE_FREQUENCY(),
|
|
31
|
+
EDITOR_FIELD_TEMPORAL_EXTENTS(),
|
|
32
|
+
],
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
export const EDITOR_SECTION_DATA_MANAGER = () => ({
|
|
36
|
+
labelKey: 'Data manager',
|
|
37
|
+
descriptionKey: '',
|
|
38
|
+
hidden: false,
|
|
39
|
+
fields: [],
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
export const EDITOR_SECTION_USE_AND_ACCESS_CONDITIONS = () => ({
|
|
43
|
+
labelKey: 'Data manager',
|
|
44
|
+
descriptionKey: '',
|
|
45
|
+
hidden: false,
|
|
46
|
+
fields: [EDITOR_FIELD_LICENSE()],
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
export const EDITOR_SECTION_CLASSIFICATION = () => ({
|
|
50
|
+
labelKey: 'Classification',
|
|
51
|
+
descriptionKey: 'The classification has an impact on the access to the data.',
|
|
52
|
+
hidden: false,
|
|
53
|
+
fields: [EDITOR_FIELD_KEYWORDS(), EDITOR_FIELD_UNIQUE_IDENTIFIER()],
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
export const EDITOR_FIELD_TITLE = () => ({
|
|
57
|
+
model: 'title',
|
|
58
|
+
hidden: false,
|
|
59
|
+
value: 'Accroches vélos MEL',
|
|
60
|
+
formFieldConfig: {
|
|
61
|
+
labelKey: 'editor.record.form.field.title',
|
|
62
|
+
},
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
export const EDITOR_FIELD_ABSTRACT = () => ({
|
|
66
|
+
model: 'abstract',
|
|
67
|
+
hidden: false,
|
|
68
|
+
value: 'Abstract',
|
|
69
|
+
formFieldConfig: {
|
|
70
|
+
labelKey: 'editor.record.form.field.abstract',
|
|
71
|
+
},
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
export const EDITOR_FIELD_RESOURCE_UPDATED = () => ({
|
|
75
|
+
model: 'resourceUpdated',
|
|
76
|
+
hidden: false,
|
|
77
|
+
formFieldConfig: {
|
|
78
|
+
labelKey: 'editor.record.form.field.resourceUpdated',
|
|
79
|
+
},
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
export const EDITOR_FIELD_RECORD_UPDATED = () => ({
|
|
83
|
+
model: 'recordUpdated',
|
|
84
|
+
hidden: false,
|
|
85
|
+
formFieldConfig: {
|
|
86
|
+
labelKey: 'editor.record.form.field.recordUpdated',
|
|
87
|
+
locked: true,
|
|
88
|
+
},
|
|
89
|
+
value: '2024-07-16T05:18:53.000Z',
|
|
90
|
+
onSaveProcess: '${dateNow()}',
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
export const EDITOR_FIELD_UPDATE_FREQUENCY = () => ({
|
|
94
|
+
model: 'updateFrequency',
|
|
95
|
+
hidden: false,
|
|
96
|
+
formFieldConfig: {
|
|
97
|
+
labelKey: 'editor.record.form.field.updateFrequency',
|
|
98
|
+
},
|
|
99
|
+
value: 'unknown',
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
export const EDITOR_FIELD_TEMPORAL_EXTENTS = () => ({
|
|
103
|
+
model: 'temporalExtents',
|
|
104
|
+
hidden: false,
|
|
105
|
+
formFieldConfig: {
|
|
106
|
+
labelKey: 'editor.record.form.field.temporalExtents',
|
|
107
|
+
},
|
|
108
|
+
value: [],
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
export const EDITOR_FIELD_SPATIAL_EXTENTS = () => ({
|
|
112
|
+
model: 'spatialExtents',
|
|
113
|
+
hidden: false,
|
|
114
|
+
formFieldConfig: {
|
|
115
|
+
labelKey: 'editor.record.form.field.spatialExtents',
|
|
116
|
+
},
|
|
117
|
+
})
|
|
118
|
+
|
|
119
|
+
export const EDITOR_FIELD_KEYWORDS = () => ({
|
|
120
|
+
model: 'keywords',
|
|
121
|
+
hidden: false,
|
|
122
|
+
formFieldConfig: {
|
|
123
|
+
labelKey: 'editor.record.form.field.keywords',
|
|
124
|
+
},
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
export const EDITOR_FIELD_UNIQUE_IDENTIFIER = () => ({
|
|
128
|
+
model: 'uniqueIdentifier',
|
|
129
|
+
hidden: false,
|
|
130
|
+
formFieldConfig: {
|
|
131
|
+
labelKey: 'editor.record.form.field.uniqueIdentifier',
|
|
132
|
+
locked: true,
|
|
133
|
+
},
|
|
134
|
+
value: 'accroche_velos',
|
|
135
|
+
})
|
|
136
|
+
|
|
137
|
+
export const EDITOR_FIELD_LICENSE = () => ({
|
|
138
|
+
model: 'licenses',
|
|
139
|
+
hidden: false,
|
|
140
|
+
formFieldConfig: {
|
|
141
|
+
labelKey: 'editor.record.form.field.license',
|
|
142
|
+
locked: true,
|
|
143
|
+
},
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
export const EDITOR_FIELDS = () => [
|
|
147
|
+
EDITOR_FIELD_TITLE(),
|
|
148
|
+
EDITOR_FIELD_ABSTRACT(),
|
|
149
|
+
EDITOR_FIELD_RESOURCE_UPDATED(),
|
|
150
|
+
EDITOR_FIELD_RECORD_UPDATED(),
|
|
151
|
+
EDITOR_FIELD_UPDATE_FREQUENCY(),
|
|
152
|
+
EDITOR_FIELD_TEMPORAL_EXTENTS(),
|
|
153
|
+
EDITOR_FIELD_SPATIAL_EXTENTS(),
|
|
154
|
+
EDITOR_FIELD_KEYWORDS(),
|
|
155
|
+
EDITOR_FIELD_UNIQUE_IDENTIFIER(),
|
|
156
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './editor.fixtures'
|
|
@@ -5,84 +5,112 @@ export const ORGANISATIONS_FIXTURE: Organization[] = deepFreeze([
|
|
|
5
5
|
{
|
|
6
6
|
name: 'I Data Org',
|
|
7
7
|
description: 'one org for testing',
|
|
8
|
+
email: 'test@gmail.com',
|
|
9
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
8
10
|
logoUrl: new URL('https://my-geonetwork.org/logo1.png'),
|
|
9
11
|
recordCount: 12,
|
|
10
12
|
},
|
|
11
13
|
{
|
|
12
14
|
name: 'H Data Org',
|
|
13
15
|
description: 'another org for testing',
|
|
16
|
+
email: 'test@gmail.com',
|
|
17
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
14
18
|
logoUrl: new URL('https://my-geonetwork.org/logo2.png'),
|
|
15
19
|
recordCount: 15,
|
|
16
20
|
},
|
|
17
21
|
{
|
|
18
22
|
name: 'J Data Org',
|
|
19
23
|
description: 'another org for testing',
|
|
24
|
+
email: 'test@gmail.com',
|
|
25
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
20
26
|
logoUrl: new URL('https://my-geonetwork.org/logo3.png'),
|
|
21
27
|
recordCount: 6,
|
|
22
28
|
},
|
|
23
29
|
{
|
|
24
30
|
name: 'G Data Org',
|
|
25
31
|
description: 'another org for testing',
|
|
32
|
+
email: 'test@gmail.com',
|
|
33
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
26
34
|
logoUrl: new URL('https://my-geonetwork.org/logo4.png'),
|
|
27
35
|
recordCount: 8,
|
|
28
36
|
},
|
|
29
37
|
{
|
|
30
38
|
name: 'B Data Org',
|
|
31
39
|
description: 'another org for testing',
|
|
40
|
+
email: 'test@gmail.com',
|
|
41
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
32
42
|
logoUrl: new URL('https://my-geonetwork.org/logo5.png'),
|
|
33
43
|
recordCount: 2,
|
|
34
44
|
},
|
|
35
45
|
{
|
|
36
46
|
name: 'D Data Org',
|
|
37
47
|
description: 'another org for testing',
|
|
48
|
+
email: 'test@gmail.com',
|
|
49
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
38
50
|
logoUrl: new URL('https://my-geonetwork.org/logo6.png'),
|
|
39
51
|
recordCount: 17,
|
|
40
52
|
},
|
|
41
53
|
{
|
|
42
54
|
name: 'F Data Org',
|
|
43
55
|
description: 'another org for testing',
|
|
56
|
+
email: 'test@gmail.com',
|
|
57
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
44
58
|
logoUrl: new URL('https://my-geonetwork.org/logo7.png'),
|
|
45
59
|
recordCount: 14,
|
|
46
60
|
},
|
|
47
61
|
{
|
|
48
62
|
name: 'A Data Org',
|
|
49
63
|
description: 'another org for testing',
|
|
64
|
+
email: 'test@gmail.com',
|
|
65
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
50
66
|
logoUrl: new URL('https://my-geonetwork.org/logo8.png'),
|
|
51
67
|
recordCount: 3,
|
|
52
68
|
},
|
|
53
69
|
{
|
|
54
70
|
name: 'C Data Org',
|
|
55
71
|
description: 'another org for testing',
|
|
72
|
+
email: 'test@gmail.com',
|
|
73
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
56
74
|
logoUrl: new URL('https://my-geonetwork.org/logo9.png'),
|
|
57
75
|
recordCount: 9,
|
|
58
76
|
},
|
|
59
77
|
{
|
|
60
78
|
name: 'E Data Org',
|
|
61
79
|
description: 'another org for testing',
|
|
80
|
+
email: 'test@gmail.com',
|
|
81
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
62
82
|
logoUrl: new URL('https://my-geonetwork.org/logo10.png'),
|
|
63
83
|
recordCount: 1,
|
|
64
84
|
},
|
|
65
85
|
{
|
|
66
86
|
name: 'é Data Org',
|
|
67
87
|
description: 'another org for testing',
|
|
88
|
+
email: 'test@gmail.com',
|
|
89
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
68
90
|
logoUrl: new URL('https://my-geonetwork.org/logo10.png'),
|
|
69
91
|
recordCount: 2,
|
|
70
92
|
},
|
|
71
93
|
{
|
|
72
94
|
name: 'wizard-org',
|
|
73
95
|
description: 'another org for testing',
|
|
96
|
+
email: 'test@gmail.com',
|
|
97
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
74
98
|
logoUrl: new URL('https://my-geonetwork.org/logo11.png'),
|
|
75
99
|
recordCount: 2,
|
|
76
100
|
},
|
|
77
101
|
{
|
|
78
102
|
name: "Université de l'Ingénierie",
|
|
79
103
|
description: 'another org for testing',
|
|
104
|
+
email: 'test@gmail.com',
|
|
105
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
80
106
|
logoUrl: new URL('https://my-geonetwork.org/logo12.png'),
|
|
81
107
|
recordCount: 2,
|
|
82
108
|
},
|
|
83
109
|
{
|
|
84
110
|
name: 'ARS / Agence régionale de santé',
|
|
85
111
|
description: 'another org for testing',
|
|
112
|
+
email: 'test@gmail.com',
|
|
113
|
+
website: new URL('https://my-geonetwork.org/'),
|
|
86
114
|
logoUrl: new URL('https://my-geonetwork.org/logo12.png'),
|
|
87
115
|
recordCount: 2,
|
|
88
116
|
},
|
|
@@ -233,6 +233,14 @@ Malgré l'attention portée à la création de ces données, il est rappelé que
|
|
|
233
233
|
description: 'Téléchargement du fichier',
|
|
234
234
|
mimeType: 'x-gis/x-shapefile',
|
|
235
235
|
},
|
|
236
|
+
{
|
|
237
|
+
type: 'service',
|
|
238
|
+
url: new URL('https://my-org.net/ogc'),
|
|
239
|
+
accessServiceProtocol: 'ogcFeatures',
|
|
240
|
+
name: 'ogcFeaturesSecondRecord',
|
|
241
|
+
description: 'This OGC service is the second part of the download',
|
|
242
|
+
identifierInService: 'my:featuretype',
|
|
243
|
+
},
|
|
236
244
|
],
|
|
237
245
|
lineage: `Document d’urbanisme numérisé conformément aux prescriptions nationales du CNIG par le Service d'Information Géographique de l'Agglomération de la Région de Compiègne.
|
|
238
246
|
Ce lot de données produit en 2019, a été numérisé à partir du PCI Vecteur de 2019 et contrôlé par le Service d'Information Géographique de l'Agglomération de la Région de Compiègne.`,
|
|
@@ -7201,11 +7201,7 @@ export class RecordsApiService {
|
|
|
7201
7201
|
}
|
|
7202
7202
|
|
|
7203
7203
|
// to determine the Content-Type header
|
|
7204
|
-
const consumes: string[] = [
|
|
7205
|
-
'application/xml',
|
|
7206
|
-
'application/json',
|
|
7207
|
-
'application/x-www-form-urlencoded',
|
|
7208
|
-
]
|
|
7204
|
+
const consumes: string[] = ['application/xml']
|
|
7209
7205
|
const httpContentTypeSelected: string | undefined =
|
|
7210
7206
|
this.configuration.selectHeaderContentType(consumes)
|
|
7211
7207
|
if (httpContentTypeSelected !== undefined) {
|
|
@@ -21,7 +21,7 @@ export interface UserApiModel {
|
|
|
21
21
|
emailAddresses?: Set<string>
|
|
22
22
|
addresses?: Set<AddressApiModel>
|
|
23
23
|
primaryAddress?: AddressApiModel
|
|
24
|
-
|
|
24
|
+
organization?: string
|
|
25
25
|
kind?: string
|
|
26
26
|
lastLoginDate?: string
|
|
27
27
|
authorities?: Array<GrantedAuthorityApiModel>
|
|
@@ -1832,14 +1832,6 @@ paths:
|
|
|
1832
1832
|
schema:
|
|
1833
1833
|
type: string
|
|
1834
1834
|
description: XML fragment.
|
|
1835
|
-
application/json:
|
|
1836
|
-
schema:
|
|
1837
|
-
type: string
|
|
1838
|
-
description: XML fragment.
|
|
1839
|
-
application/x-www-form-urlencoded:
|
|
1840
|
-
schema:
|
|
1841
|
-
type: string
|
|
1842
|
-
description: XML fragment.
|
|
1843
1835
|
responses:
|
|
1844
1836
|
default:
|
|
1845
1837
|
description: default response
|
|
@@ -4,7 +4,6 @@ import { UiCatalogModule } from '../../../../../libs/ui/catalog/src'
|
|
|
4
4
|
import {
|
|
5
5
|
GroupsApiService,
|
|
6
6
|
SearchApiService,
|
|
7
|
-
SiteApiService,
|
|
8
7
|
} from '../../../../../libs/data-access/gn4/src'
|
|
9
8
|
import { CommonModule } from '@angular/common'
|
|
10
9
|
import { SourceLabelComponent } from './source-label/source-label.component'
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
[showContent]="!!organisation.name"
|
|
20
20
|
>
|
|
21
21
|
<gn-ui-organisation-preview
|
|
22
|
-
[
|
|
22
|
+
[organization]="organisation"
|
|
23
23
|
[organisationUrl]="getOrganisationUrl(organisation)"
|
|
24
24
|
(clickedOrganisation)="orgSelect.emit($event)"
|
|
25
25
|
></gn-ui-organisation-preview>
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
import { Organization } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
11
11
|
import { BehaviorSubject, combineLatest, Observable } from 'rxjs'
|
|
12
12
|
import { map, startWith, tap } from 'rxjs/operators'
|
|
13
|
-
import { ORGANIZATION_URL_TOKEN } from '../feature-catalog.module'
|
|
14
13
|
import { OrganizationsServiceInterface } from '../../../../../../libs/common/domain/src/lib/organizations.service.interface'
|
|
15
14
|
import { SortByField } from '../../../../../../libs/common/domain/src/lib/model/search'
|
|
16
15
|
import { createFuzzyFilter } from '../../../../../../libs/util/shared/src'
|
|
16
|
+
import { ORGANIZATION_PAGE_URL_TOKEN } from '../organization-url.token'
|
|
17
17
|
|
|
18
18
|
@Component({
|
|
19
19
|
selector: 'gn-ui-organisations',
|
|
@@ -28,7 +28,7 @@ export class OrganisationsComponent {
|
|
|
28
28
|
constructor(
|
|
29
29
|
private organisationsService: OrganizationsServiceInterface,
|
|
30
30
|
@Optional()
|
|
31
|
-
@Inject(
|
|
31
|
+
@Inject(ORGANIZATION_PAGE_URL_TOKEN)
|
|
32
32
|
private urlTemplate: string
|
|
33
33
|
) {}
|
|
34
34
|
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
|
-
import { Observable, of } from 'rxjs'
|
|
3
|
-
import {
|
|
2
|
+
import { Observable, of, switchMap } from 'rxjs'
|
|
3
|
+
import { shareReplay } from 'rxjs/operators'
|
|
4
4
|
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
5
5
|
|
|
6
6
|
@Injectable({
|
|
7
7
|
providedIn: 'root',
|
|
8
8
|
})
|
|
9
9
|
export class RecordsService {
|
|
10
|
-
recordsCount$: Observable<number> =
|
|
11
|
-
.getMatchesCount({})
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
catchError(() => of(0))
|
|
15
|
-
)
|
|
10
|
+
recordsCount$: Observable<number> = of(true).pipe(
|
|
11
|
+
switchMap(() => this.recordsRepository.getMatchesCount({})),
|
|
12
|
+
shareReplay(1)
|
|
13
|
+
)
|
|
16
14
|
|
|
17
15
|
constructor(private recordsRepository: RecordsRepositoryInterface) {}
|
|
18
16
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { TableViewComponent } from './table-view/table-view.component'
|
|
13
13
|
import { ChartViewComponent } from './chart-view/chart-view.component'
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
|
-
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
15
|
+
import { PopupAlertComponent, UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
16
16
|
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
17
17
|
|
|
18
18
|
@NgModule({
|
|
@@ -26,6 +26,7 @@ import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
|
26
26
|
TranslateModule,
|
|
27
27
|
ChartComponent,
|
|
28
28
|
UiInputsModule,
|
|
29
|
+
PopupAlertComponent,
|
|
29
30
|
],
|
|
30
31
|
declarations: [
|
|
31
32
|
GeoTableViewComponent,
|
|
@@ -26,3 +26,10 @@ export const saveRecordFailure = createAction(
|
|
|
26
26
|
'[Editor] Save record failure',
|
|
27
27
|
props<{ error: SaveRecordError }>()
|
|
28
28
|
)
|
|
29
|
+
|
|
30
|
+
export const draftSaveSuccess = createAction('[Editor] Draft save success')
|
|
31
|
+
|
|
32
|
+
export const setCurrentPage = createAction(
|
|
33
|
+
'[Editor] Set current page',
|
|
34
|
+
props<{ page: number }>()
|
|
35
|
+
)
|
|
@@ -5,7 +5,11 @@ import { catchError, map, switchMap } from 'rxjs/operators'
|
|
|
5
5
|
import * as EditorActions from './editor.actions'
|
|
6
6
|
import { EditorService } from '../services/editor.service'
|
|
7
7
|
import { Store } from '@ngrx/store'
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
selectEditorConfig,
|
|
10
|
+
selectRecord,
|
|
11
|
+
selectRecordAlreadySavedOnce,
|
|
12
|
+
} from './editor.selectors'
|
|
9
13
|
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
10
14
|
|
|
11
15
|
@Injectable()
|
|
@@ -20,28 +24,31 @@ export class EditorEffects {
|
|
|
20
24
|
ofType(EditorActions.saveRecord),
|
|
21
25
|
withLatestFrom(
|
|
22
26
|
this.store.select(selectRecord),
|
|
23
|
-
this.store.select(
|
|
27
|
+
this.store.select(selectEditorConfig),
|
|
28
|
+
this.store.select(selectRecordAlreadySavedOnce)
|
|
24
29
|
),
|
|
25
|
-
switchMap(([, record, fieldsConfig]) =>
|
|
26
|
-
this.editorService
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
switchMap(([, record, fieldsConfig, alreadySavedOnce]) =>
|
|
31
|
+
this.editorService
|
|
32
|
+
.saveRecord(record, fieldsConfig, !alreadySavedOnce)
|
|
33
|
+
.pipe(
|
|
34
|
+
switchMap(([record, recordSource]) =>
|
|
35
|
+
of(
|
|
36
|
+
EditorActions.saveRecordSuccess(),
|
|
37
|
+
EditorActions.openRecord({
|
|
38
|
+
record,
|
|
39
|
+
alreadySavedOnce: true,
|
|
40
|
+
recordSource,
|
|
41
|
+
})
|
|
42
|
+
)
|
|
43
|
+
),
|
|
44
|
+
catchError((error) =>
|
|
45
|
+
of(
|
|
46
|
+
EditorActions.saveRecordFailure({
|
|
47
|
+
error: error.message,
|
|
48
|
+
})
|
|
49
|
+
)
|
|
42
50
|
)
|
|
43
51
|
)
|
|
44
|
-
)
|
|
45
52
|
)
|
|
46
53
|
)
|
|
47
54
|
)
|
|
@@ -53,15 +60,14 @@ export class EditorEffects {
|
|
|
53
60
|
)
|
|
54
61
|
)
|
|
55
62
|
|
|
56
|
-
saveRecordDraft$ = createEffect(
|
|
57
|
-
(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{ dispatch: false }
|
|
63
|
+
saveRecordDraft$ = createEffect(() =>
|
|
64
|
+
this.actions$.pipe(
|
|
65
|
+
ofType(EditorActions.updateRecordField),
|
|
66
|
+
debounceTime(1000),
|
|
67
|
+
withLatestFrom(this.store.select(selectRecord)),
|
|
68
|
+
switchMap(([, record]) => this.editorService.saveRecordAsDraft(record)),
|
|
69
|
+
map(() => EditorActions.draftSaveSuccess())
|
|
70
|
+
)
|
|
65
71
|
)
|
|
66
72
|
|
|
67
73
|
checkHasChangesOnOpen$ = createEffect(() =>
|
|
@@ -25,7 +25,12 @@ export class EditorFacade {
|
|
|
25
25
|
changedSinceSave$ = this.store.pipe(
|
|
26
26
|
select(EditorSelectors.selectRecordChangedSinceSave)
|
|
27
27
|
)
|
|
28
|
-
|
|
28
|
+
currentSections$ = this.store.pipe(
|
|
29
|
+
select(EditorSelectors.selectRecordSections)
|
|
30
|
+
)
|
|
31
|
+
draftSaveSuccess$ = this.actions$.pipe(ofType(EditorActions.draftSaveSuccess))
|
|
32
|
+
currentPage$ = this.store.pipe(select(EditorSelectors.selectCurrentPage))
|
|
33
|
+
editorConfig$ = this.store.pipe(select(EditorSelectors.selectEditorConfig))
|
|
29
34
|
|
|
30
35
|
openRecord(
|
|
31
36
|
record: CatalogRecord,
|
|
@@ -44,4 +49,8 @@ export class EditorFacade {
|
|
|
44
49
|
updateRecordField(field: string, value: unknown) {
|
|
45
50
|
this.store.dispatch(EditorActions.updateRecordField({ field, value }))
|
|
46
51
|
}
|
|
52
|
+
|
|
53
|
+
setCurrentPage(page: number) {
|
|
54
|
+
this.store.dispatch(EditorActions.setCurrentPage({ page }))
|
|
55
|
+
}
|
|
47
56
|
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
+
import { EditorField, EditorFieldValue, EditorSection } from '../models'
|
|
2
|
+
|
|
1
3
|
export type SaveRecordError = string
|
|
4
|
+
|
|
5
|
+
export interface EditorFieldWithValue {
|
|
6
|
+
config: EditorField
|
|
7
|
+
value: EditorFieldValue
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type EditorSectionWithValues = EditorSection & {
|
|
11
|
+
fieldsWithValues: EditorFieldWithValue[]
|
|
12
|
+
}
|
|
@@ -2,8 +2,8 @@ import { Action, createReducer, on } from '@ngrx/store'
|
|
|
2
2
|
import * as EditorActions from './editor.actions'
|
|
3
3
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
4
4
|
import { SaveRecordError } from './editor.models'
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { EditorConfig } from '../models'
|
|
6
|
+
import { DEFAULT_CONFIGURATION } from '../fields.config'
|
|
7
7
|
|
|
8
8
|
export const EDITOR_FEATURE_KEY = 'editor'
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ export const EDITOR_FEATURE_KEY = 'editor'
|
|
|
13
13
|
* @property saving
|
|
14
14
|
* @property saveError
|
|
15
15
|
* @property changedSinceSave
|
|
16
|
-
* @property
|
|
16
|
+
* @property editorConfig Configuration for the fields in the editor
|
|
17
17
|
*/
|
|
18
18
|
export interface EditorState {
|
|
19
19
|
record: CatalogRecord | null
|
|
@@ -22,7 +22,8 @@ export interface EditorState {
|
|
|
22
22
|
saving: boolean
|
|
23
23
|
saveError: SaveRecordError | null
|
|
24
24
|
changedSinceSave: boolean
|
|
25
|
-
|
|
25
|
+
editorConfig: EditorConfig
|
|
26
|
+
currentPage: number
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export interface EditorPartialState {
|
|
@@ -36,7 +37,8 @@ export const initialEditorState: EditorState = {
|
|
|
36
37
|
saving: false,
|
|
37
38
|
saveError: null,
|
|
38
39
|
changedSinceSave: false,
|
|
39
|
-
|
|
40
|
+
editorConfig: DEFAULT_CONFIGURATION,
|
|
41
|
+
currentPage: 0,
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
const reducer = createReducer(
|
|
@@ -77,6 +79,10 @@ const reducer = createReducer(
|
|
|
77
79
|
on(EditorActions.markRecordAsChanged, (state) => ({
|
|
78
80
|
...state,
|
|
79
81
|
changedSinceSave: true,
|
|
82
|
+
})),
|
|
83
|
+
on(EditorActions.setCurrentPage, (state, { page }) => ({
|
|
84
|
+
...state,
|
|
85
|
+
currentPage: page,
|
|
80
86
|
}))
|
|
81
87
|
)
|
|
82
88
|
|