geonetwork-ui 2.4.0-dev.cd525aa1 → 2.4.0-dev.e1bb65c4
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/lib/gn4/gn4.converter.mjs +4 -4
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +4 -4
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.mjs +4 -4
- 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/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/auth/auth.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/favorites/favorites.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +17 -8
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +14 -6
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +36 -16
- package/esm2022/libs/api/repository/src/lib/gn4/selection/selection.service.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +4 -4
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.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/atom.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/customstyle.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/formatters.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/groups.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/harvesters.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/identifiers.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/languages.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/links.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/logos.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/mapservers.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/mapservices.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/me.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/operations.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/pages.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/processes.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/regions.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/registries.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/related.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/search.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/selections.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/site.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/sources.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/standards.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/status.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/tags.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/tools.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/ui.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/userfeedback.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/users.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/usersearches.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api/userselections.api.service.mjs +4 -4
- package/esm2022/libs/data-access/gn4/src/openapi/api.module.mjs +5 -5
- package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +5 -5
- package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +5 -5
- package/esm2022/libs/feature/catalog/src/lib/my-org/my-org.service.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +4 -4
- package/esm2022/libs/feature/catalog/src/lib/sources/sources.service.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +7 -7
- package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +11 -8
- package/esm2022/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/lib/figure/figure.service.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +4 -4
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +9 -7
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +5 -4
- 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-array/form-field-array.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +57 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.mjs +17 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.mjs +17 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +105 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +67 -53
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +24 -44
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +5 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +7 -6
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +15 -1
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +15 -9
- package/esm2022/libs/feature/editor/src/lib/services/wizard.service.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +5 -5
- package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/geocoding.service.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/style/map-style.service.mjs +4 -4
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +4 -4
- package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +5 -5
- package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +4 -4
- package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +11 -8
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +6 -6
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +7 -14
- package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +4 -4
- package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +5 -5
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +4 -4
- package/esm2022/libs/feature/router/src/lib/default/services/router-search.service.mjs +4 -4
- package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +4 -4
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +4 -4
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +5 -5
- package/esm2022/libs/feature/search/src/lib/facets/facets.service.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +11 -8
- package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +5 -5
- package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +49 -0
- package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/state/effects.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/utils/service/search.service.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/lib/catalog-title/catalog-title.component.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -5
- package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +4 -4
- package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +4 -4
- package/esm2022/libs/ui/dataviz/src/lib/table/table.component.mjs +4 -4
- package/esm2022/libs/ui/dataviz/src/lib/ui-dataviz.module.mjs +5 -5
- package/esm2022/libs/ui/elements/src/index.mjs +4 -3
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/avatar/avatar.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/content-ghost/content-ghost.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/metadata-info/linkify.directive.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +7 -7
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/pagination/pagination.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +43 -0
- package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +7 -7
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +61 -28
- package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +28 -0
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +6 -6
- package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +19 -13
- package/esm2022/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +14 -13
- package/esm2022/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/sticky-header/sticky-header.component.mjs +4 -4
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +5 -5
- package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +4 -4
- package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +4 -4
- package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +5 -5
- package/esm2022/libs/ui/search/src/index.mjs +2 -1
- package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +7 -7
- package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +7 -7
- package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +5 -5
- package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +4 -4
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +120 -0
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +5 -5
- package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
- package/esm2022/libs/ui/widgets/src/lib/color-scale/color-scale.component.mjs +4 -4
- package/esm2022/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.mjs +4 -4
- package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +7 -5
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +4 -4
- package/esm2022/libs/ui/widgets/src/lib/spinning-loader/spinning-loader.component.mjs +4 -4
- package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +4 -4
- package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -10
- package/esm2022/libs/util/i18n/src/lib/i18n.interceptor.mjs +4 -4
- package/esm2022/libs/util/i18n/src/lib/lang.service.mjs +4 -4
- package/esm2022/libs/util/i18n/src/lib/util-i18n.module.mjs +5 -5
- package/esm2022/libs/util/shared/src/lib/image-fallback.directive.mjs +4 -4
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +4 -4
- package/esm2022/libs/util/shared/src/lib/services/log.service.mjs +4 -4
- package/esm2022/libs/util/shared/src/lib/services/proxy.service.mjs +4 -4
- package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +4 -4
- package/esm2022/libs/util/shared/src/lib/util-shared.module.mjs +5 -5
- package/esm2022/translations/de.json +13 -1
- package/esm2022/translations/en.json +13 -1
- package/esm2022/translations/es.json +13 -1
- package/esm2022/translations/fr.json +13 -1
- package/esm2022/translations/it.json +13 -1
- package/esm2022/translations/nl.json +13 -1
- package/esm2022/translations/pt.json +13 -1
- package/fesm2022/geonetwork-ui.mjs +1713 -1312
- package/fesm2022/geonetwork-ui.mjs.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/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 +1 -0
- package/libs/api/repository/src/lib/gn4/gn4-repository.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 +8 -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/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 +3 -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 +3 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.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 +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 +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-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts +8 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts +8 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +31 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.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 +4 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.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.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/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/ui/elements/src/index.d.ts +3 -2
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +22 -0
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +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/date-picker/date-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +4 -4
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -35
- 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/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/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/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 +21 -8
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +24 -3
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +70 -21
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +4 -9
- 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 +3 -3
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +8 -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 +19 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +77 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.html +7 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts +16 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.html +13 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts +16 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +6 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +130 -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 +11 -24
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +25 -51
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +4 -1
- package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +14 -0
- 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 +38 -31
- 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.css +0 -0
- 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/ui/elements/src/index.ts +3 -2
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.css +18 -0
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +36 -0
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +56 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +2 -2
- 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.css +0 -0
- 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/date-picker/date-picker.component.html +2 -1
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +8 -1
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +7 -7
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +13 -15
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- 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/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/tailwind.base.css +5 -0
- package/translations/de.json +13 -1
- package/translations/en.json +13 -1
- package/translations/es.json +13 -1
- package/translations/fr.json +13 -1
- package/translations/it.json +13 -1
- package/translations/nl.json +13 -1
- package/translations/pt.json +13 -1
- package/translations/sk.json +13 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
- package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +0 -136
- 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-temporal-extent/form-field-temporal-extent.component.d.ts +0 -6
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.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/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-temporal-extent/form-field-temporal-extent.component.html +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +0 -10
- 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/editor/src/lib/components/record-form/form-field/{form-field-temporal-extent/form-field-temporal-extent.component.css → form-field-keywords/form-field-keywords.component.css} +0 -0
- /package/src/libs/feature/{search/src/lib/results-table/results-table.component.css → editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css} +0 -0
- /package/src/libs/{ui/widgets/src/lib/badge/badge.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css} +0 -0
|
@@ -3,19 +3,18 @@ import * as i1 from "./color-scale/color-scale.component";
|
|
|
3
3
|
import * as i2 from "./progress-bar/progress-bar.component";
|
|
4
4
|
import * as i3 from "./step-bar/step-bar.component";
|
|
5
5
|
import * as i4 from "./loading-mask/loading-mask.component";
|
|
6
|
-
import * as i5 from "./
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@angular/material/icon";
|
|
6
|
+
import * as i5 from "./spinning-loader/spinning-loader.component";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@ngx-translate/core";
|
|
9
|
+
import * as i8 from "ngx-dropzone";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "ngx-chips";
|
|
12
|
+
import * as i11 from "../../../../util/shared/src/lib/util-shared.module";
|
|
13
|
+
import * as i12 from "@angular/material/progress-spinner";
|
|
14
|
+
import * as i13 from "@angular/material/icon";
|
|
16
15
|
export declare class UiWidgetsModule {
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiWidgetsModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiWidgetsModule, [typeof i1.ColorScaleComponent, typeof i2.ProgressBarComponent, typeof i3.StepBarComponent, typeof i4.LoadingMaskComponent, typeof i5.
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiWidgetsModule, [typeof i1.ColorScaleComponent, typeof i2.ProgressBarComponent, typeof i3.StepBarComponent, typeof i4.LoadingMaskComponent, typeof i5.SpinningLoaderComponent], [typeof i6.CommonModule, typeof i7.TranslateModule, typeof i8.NgxDropzoneModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.TagInputModule, typeof i11.UtilSharedModule, typeof i12.MatProgressSpinnerModule, typeof i13.MatIconModule], [typeof i2.ProgressBarComponent, typeof i3.StepBarComponent, typeof i4.LoadingMaskComponent, typeof i5.SpinningLoaderComponent]>;
|
|
19
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiWidgetsModule>;
|
|
20
19
|
}
|
|
21
20
|
//# sourceMappingURL=ui-widgets.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-widgets.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/widgets/src/lib/ui-widgets.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-widgets.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/widgets/src/lib/ui-widgets.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA,qBA0Ba,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAG"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface KeywordApiResponse {
|
|
2
|
+
values?: {
|
|
3
|
+
eng: string
|
|
4
|
+
}
|
|
5
|
+
definitions?: {
|
|
6
|
+
eng: string
|
|
7
|
+
}
|
|
8
|
+
coordEast?: string
|
|
9
|
+
coordWest?: string
|
|
10
|
+
coordSouth?: string
|
|
11
|
+
coordNorth?: string
|
|
12
|
+
thesaurusKey?: string
|
|
13
|
+
definition?: string
|
|
14
|
+
value?: string
|
|
15
|
+
uri?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ThesaurusApiResponse {
|
|
19
|
+
key?: string
|
|
20
|
+
dname?: string
|
|
21
|
+
description?: string[] | string
|
|
22
|
+
filename?: string
|
|
23
|
+
title?: string
|
|
24
|
+
multilingualTitles?: string[]
|
|
25
|
+
dublinCoreMultilinguals?: string[]
|
|
26
|
+
date?: string
|
|
27
|
+
url?: string
|
|
28
|
+
defaultNamespace?: string
|
|
29
|
+
type?: string
|
|
30
|
+
activated?: string
|
|
31
|
+
}
|
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
GraphicOverview,
|
|
5
5
|
Individual,
|
|
6
6
|
Keyword,
|
|
7
|
-
KeywordThesaurus,
|
|
8
7
|
Organization,
|
|
9
8
|
RecordKind,
|
|
10
9
|
RecordStatus,
|
|
@@ -41,6 +40,7 @@ import { getKeywordTypeFromKeywordTypeCode } from './utils/keyword.mapper'
|
|
|
41
40
|
import { getRoleFromRoleCode } from './utils/role.mapper'
|
|
42
41
|
import { getStatusFromStatusCode } from './utils/status.mapper'
|
|
43
42
|
import { getUpdateFrequencyFromFrequencyCode } from './utils/update-frequency.mapper'
|
|
43
|
+
import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
44
44
|
|
|
45
45
|
export function extractCharacterString(): ChainableFunction<
|
|
46
46
|
XmlElement,
|
|
@@ -609,7 +609,7 @@ export function readContactsForResource(rootEl: XmlElement): Individual[] {
|
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
// from gmd:thesaurusName
|
|
612
|
-
export function readThesaurus(rootEl: XmlElement):
|
|
612
|
+
export function readThesaurus(rootEl: XmlElement): ThesaurusModel {
|
|
613
613
|
if (!rootEl) return null
|
|
614
614
|
|
|
615
615
|
const findIdentifier = findNestedElement(
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
DatasetServiceDistribution,
|
|
7
7
|
Individual,
|
|
8
8
|
Keyword,
|
|
9
|
-
KeywordThesaurus,
|
|
10
9
|
RecordStatus,
|
|
11
10
|
Role,
|
|
12
11
|
ServiceEndpoint,
|
|
@@ -46,6 +45,7 @@ import {
|
|
|
46
45
|
} from '../xml-utils'
|
|
47
46
|
import { readKind } from './read-parts'
|
|
48
47
|
import { namePartsToFull } from './utils/individual-name'
|
|
48
|
+
import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
49
49
|
|
|
50
50
|
export function writeCharacterString(
|
|
51
51
|
text: string
|
|
@@ -367,7 +367,7 @@ export function removeKeywords() {
|
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
// returns a <gmd:thesaurusName> element
|
|
370
|
-
export function createThesaurus(thesaurus:
|
|
370
|
+
export function createThesaurus(thesaurus: ThesaurusModel) {
|
|
371
371
|
return pipe(
|
|
372
372
|
createElement('gmd:thesaurusName'),
|
|
373
373
|
createChild('gmd:CI_Citation'),
|
|
@@ -265,14 +265,13 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
265
265
|
undefined,
|
|
266
266
|
recordXml
|
|
267
267
|
)
|
|
268
|
-
.pipe(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
})
|
|
268
|
+
.pipe(
|
|
269
|
+
map((response) => {
|
|
270
|
+
const metadataId = Object.keys(response.metadataInfos)[0]
|
|
271
|
+
return response.metadataInfos[metadataId][0].uuid
|
|
272
|
+
})
|
|
273
|
+
)
|
|
274
|
+
)
|
|
276
275
|
)
|
|
277
276
|
}
|
|
278
277
|
|
|
@@ -303,4 +302,18 @@ export class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
303
302
|
) !== null
|
|
304
303
|
)
|
|
305
304
|
}
|
|
305
|
+
|
|
306
|
+
// generated by copilot
|
|
307
|
+
getAllDrafts(): Observable<CatalogRecord[]> {
|
|
308
|
+
const items = { ...window.localStorage }
|
|
309
|
+
const drafts = Object.keys(items)
|
|
310
|
+
.filter((key) => key.startsWith('geonetwork-ui-draft-'))
|
|
311
|
+
.map((key) => window.localStorage.getItem(key))
|
|
312
|
+
.filter((draft) => draft !== null)
|
|
313
|
+
return from(
|
|
314
|
+
Promise.all(
|
|
315
|
+
drafts.map((draft) => findConverterForDocument(draft).readRecord(draft))
|
|
316
|
+
)
|
|
317
|
+
)
|
|
318
|
+
}
|
|
306
319
|
}
|
|
@@ -8,11 +8,16 @@ import { Injectable } from '@angular/core'
|
|
|
8
8
|
import { AvatarServiceInterface } from '../auth'
|
|
9
9
|
import { map } from 'rxjs/operators'
|
|
10
10
|
import { Observable, of } from 'rxjs'
|
|
11
|
-
import { ThesaurusModel } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus/thesaurus.model'
|
|
12
11
|
import {
|
|
12
|
+
Keyword,
|
|
13
13
|
UserFeedback,
|
|
14
14
|
UserFeedbackViewModel,
|
|
15
15
|
} from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
16
|
+
import {
|
|
17
|
+
KeywordApiResponse,
|
|
18
|
+
ThesaurusApiResponse,
|
|
19
|
+
} from '../../../../../../../libs/api/metadata-converter/src'
|
|
20
|
+
import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
16
21
|
|
|
17
22
|
@Injectable()
|
|
18
23
|
export class Gn4PlatformMapper {
|
|
@@ -52,8 +57,12 @@ export class Gn4PlatformMapper {
|
|
|
52
57
|
return { ...apiUser, id: id.toString() } as UserModel
|
|
53
58
|
}
|
|
54
59
|
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
keywordsFromApi(
|
|
61
|
+
keywords: KeywordApiResponse[],
|
|
62
|
+
thesaurus: ThesaurusApiResponse[],
|
|
63
|
+
lang3?: string
|
|
64
|
+
): Keyword[] {
|
|
65
|
+
return keywords.map((keyword): Keyword => {
|
|
57
66
|
let key = keyword.uri
|
|
58
67
|
// sometines GN can prefix an URI with an "all thesaurus" URI; only keep the last one
|
|
59
68
|
if (key.indexOf('@@@') > -1) {
|
|
@@ -65,10 +74,22 @@ export class Gn4PlatformMapper {
|
|
|
65
74
|
lang3 && lang3 in keyword.definitions
|
|
66
75
|
? keyword.definitions[lang3]
|
|
67
76
|
: keyword.definition
|
|
77
|
+
|
|
78
|
+
const matchedThesaurus = thesaurus.find(
|
|
79
|
+
(thes) => keyword.thesaurusKey === thes.key
|
|
80
|
+
)
|
|
81
|
+
|
|
68
82
|
return {
|
|
69
83
|
key,
|
|
70
84
|
label,
|
|
71
85
|
description,
|
|
86
|
+
type: matchedThesaurus?.dname as KeywordType,
|
|
87
|
+
thesaurus: {
|
|
88
|
+
id: matchedThesaurus?.key,
|
|
89
|
+
name: matchedThesaurus?.title,
|
|
90
|
+
url: new URL(matchedThesaurus?.url),
|
|
91
|
+
type: matchedThesaurus?.dname as KeywordType,
|
|
92
|
+
},
|
|
72
93
|
}
|
|
73
94
|
})
|
|
74
95
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
|
-
import { Observable, of, switchMap } from 'rxjs'
|
|
2
|
+
import { Observable, combineLatest, of, switchMap } from 'rxjs'
|
|
3
3
|
import { catchError, map, shareReplay, tap } from 'rxjs/operators'
|
|
4
4
|
import {
|
|
5
5
|
MeApiService,
|
|
6
6
|
RegistriesApiService,
|
|
7
7
|
SiteApiService,
|
|
8
|
+
ThesaurusInfoApiModel,
|
|
8
9
|
ToolsApiService,
|
|
9
10
|
UserfeedbackApiService,
|
|
10
11
|
UsersApiService,
|
|
@@ -12,13 +13,18 @@ import {
|
|
|
12
13
|
import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
13
14
|
import { UserModel } from '../../../../../../../libs/common/domain/src/lib/model/user/user.model'
|
|
14
15
|
import {
|
|
16
|
+
Keyword,
|
|
15
17
|
Organization,
|
|
16
18
|
UserFeedback,
|
|
17
19
|
} from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
18
20
|
import { Gn4PlatformMapper } from './gn4-platform.mapper'
|
|
19
21
|
import { ltr } from 'semver'
|
|
20
|
-
import { ThesaurusModel } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus/thesaurus.model'
|
|
21
22
|
import { LangService } from '../../../../../../../libs/util/i18n/src'
|
|
23
|
+
import { HttpClient } from '@angular/common/http'
|
|
24
|
+
import {
|
|
25
|
+
KeywordApiResponse,
|
|
26
|
+
ThesaurusApiResponse,
|
|
27
|
+
} from '../../../../../../../libs/api/metadata-converter/src'
|
|
22
28
|
|
|
23
29
|
const minApiVersion = '4.2.2'
|
|
24
30
|
|
|
@@ -60,7 +66,7 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
60
66
|
* A map of already loaded thesauri (groups of keywords); the key is a URI
|
|
61
67
|
* @private
|
|
62
68
|
*/
|
|
63
|
-
private
|
|
69
|
+
private keywordsByThesauri: Record<string, Observable<Keyword[]>> = {}
|
|
64
70
|
|
|
65
71
|
constructor(
|
|
66
72
|
private siteApiService: SiteApiService,
|
|
@@ -70,7 +76,8 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
70
76
|
private toolsApiService: ToolsApiService,
|
|
71
77
|
private registriesApiService: RegistriesApiService,
|
|
72
78
|
private langService: LangService,
|
|
73
|
-
private userfeedbackApiService: UserfeedbackApiService
|
|
79
|
+
private userfeedbackApiService: UserfeedbackApiService,
|
|
80
|
+
private httpClient: HttpClient
|
|
74
81
|
) {
|
|
75
82
|
this.me$ = this.meApi.getMe().pipe(
|
|
76
83
|
switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)),
|
|
@@ -121,7 +128,7 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
121
128
|
// the thesaurus URI is inferred by removing a part of the keyword URI
|
|
122
129
|
// this is not exact science but it's OK, we'll still end up loading a bunch of keywords at once anyway
|
|
123
130
|
const thesaurusUri = key.replace(/\/([^/]+)$/, '/')
|
|
124
|
-
return this.
|
|
131
|
+
return this.getKeywordsByUri(thesaurusUri).pipe(
|
|
125
132
|
map((thesaurus) => {
|
|
126
133
|
for (const item of thesaurus) {
|
|
127
134
|
if (item.key === key) return item.label
|
|
@@ -133,12 +140,49 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
133
140
|
return this.keyTranslations$.pipe(map((translations) => translations[key]))
|
|
134
141
|
}
|
|
135
142
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
private allThesaurus$ = this.httpClient
|
|
144
|
+
.get(
|
|
145
|
+
`${this.registriesApiService.configuration.basePath}/thesaurus?_content_type=json`
|
|
146
|
+
)
|
|
147
|
+
.pipe(
|
|
148
|
+
map((thesaurus) => {
|
|
149
|
+
// FIXME: find a better way to exclude place keywords
|
|
150
|
+
// thesaurus[0].filter((thes) => thes.dname !== 'place')
|
|
151
|
+
return thesaurus[0] as ThesaurusApiResponse[]
|
|
152
|
+
}),
|
|
153
|
+
shareReplay(1)
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
searchKeywords(query: string): Observable<Keyword[]> {
|
|
157
|
+
const keywords$: Observable<KeywordApiResponse[]> =
|
|
158
|
+
this.registriesApiService.searchKeywords(
|
|
159
|
+
query,
|
|
160
|
+
this.langService.iso3,
|
|
161
|
+
10,
|
|
162
|
+
0,
|
|
163
|
+
null,
|
|
164
|
+
null,
|
|
165
|
+
null,
|
|
166
|
+
`*${query}*`
|
|
167
|
+
) as Observable<KeywordApiResponse[]>
|
|
168
|
+
|
|
169
|
+
return combineLatest([keywords$, this.allThesaurus$]).pipe(
|
|
170
|
+
map(([keywords, thesaurus]) => {
|
|
171
|
+
return this.mapper.keywordsFromApi(
|
|
172
|
+
keywords,
|
|
173
|
+
thesaurus,
|
|
174
|
+
this.langService.iso3
|
|
175
|
+
)
|
|
176
|
+
})
|
|
177
|
+
)
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
getKeywordsByUri(uri: string): Observable<Keyword[]> {
|
|
181
|
+
if (this.keywordsByThesauri[uri]) {
|
|
182
|
+
return this.keywordsByThesauri[uri]
|
|
139
183
|
}
|
|
140
|
-
|
|
141
|
-
.searchKeywords(
|
|
184
|
+
const keywords$: Observable<KeywordApiResponse[]> =
|
|
185
|
+
this.registriesApiService.searchKeywords(
|
|
142
186
|
null,
|
|
143
187
|
this.langService.iso3,
|
|
144
188
|
1000,
|
|
@@ -147,18 +191,23 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
147
191
|
null,
|
|
148
192
|
null,
|
|
149
193
|
`${uri}*`
|
|
150
|
-
)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
194
|
+
) as Observable<KeywordApiResponse[]>
|
|
195
|
+
|
|
196
|
+
this.keywordsByThesauri[uri] = combineLatest([
|
|
197
|
+
keywords$,
|
|
198
|
+
this.allThesaurus$,
|
|
199
|
+
]).pipe(
|
|
200
|
+
map(([keywords, thesaurus]) => {
|
|
201
|
+
return this.mapper.keywordsFromApi(
|
|
202
|
+
keywords,
|
|
203
|
+
thesaurus,
|
|
204
|
+
this.langService.iso3
|
|
205
|
+
)
|
|
206
|
+
}),
|
|
207
|
+
shareReplay(1)
|
|
208
|
+
)
|
|
160
209
|
|
|
161
|
-
return this.
|
|
210
|
+
return this.keywordsByThesauri[uri]
|
|
162
211
|
}
|
|
163
212
|
|
|
164
213
|
getUserFeedbacks(uuid: string): Observable<UserFeedback[]> {
|
|
@@ -2,6 +2,7 @@ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
|
2
2
|
import type { Individual } from './contact.model'
|
|
3
3
|
import type { Organization } from './organization.model'
|
|
4
4
|
import type { Geometry } from 'geojson'
|
|
5
|
+
import { KeywordType, ThesaurusModel } from '../thesaurus'
|
|
5
6
|
|
|
6
7
|
type Uuid = string
|
|
7
8
|
|
|
@@ -60,18 +61,12 @@ export type SpatialRepresentationType =
|
|
|
60
61
|
| 'table'
|
|
61
62
|
| 'point'
|
|
62
63
|
|
|
63
|
-
export type KeywordType = 'place' | 'temporal' | 'theme' | 'other'
|
|
64
|
-
|
|
65
|
-
export type KeywordThesaurus = {
|
|
66
|
-
id: string
|
|
67
|
-
name?: string
|
|
68
|
-
url?: URL
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
export interface Keyword {
|
|
65
|
+
key?: string
|
|
72
66
|
label: string
|
|
67
|
+
description?: string
|
|
73
68
|
type: KeywordType
|
|
74
|
-
thesaurus?:
|
|
69
|
+
thesaurus?: ThesaurusModel
|
|
75
70
|
}
|
|
76
71
|
// languages should be expressed using two-letters ISO 639-1 codes
|
|
77
72
|
export type LanguageCode = string
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
export
|
|
2
|
-
key: string
|
|
3
|
-
label: string
|
|
4
|
-
description?: string
|
|
5
|
-
}
|
|
1
|
+
export type KeywordType = 'place' | 'temporal' | 'theme' | 'other'
|
|
6
2
|
|
|
7
|
-
export
|
|
3
|
+
export interface ThesaurusModel {
|
|
4
|
+
id: string
|
|
5
|
+
name?: string
|
|
6
|
+
url?: URL
|
|
7
|
+
thesaurusKey?: string
|
|
8
|
+
definition?: string
|
|
9
|
+
definitions?: object
|
|
10
|
+
uri?: string
|
|
11
|
+
value?: string
|
|
12
|
+
values?: object
|
|
13
|
+
type?: KeywordType
|
|
14
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Observable } from 'rxjs'
|
|
2
2
|
import type { UserModel } from './model/user/user.model'
|
|
3
3
|
import type { Organization } from './model/record/organization.model'
|
|
4
|
-
import
|
|
5
|
-
import { UserFeedback } from './model/record'
|
|
4
|
+
import { Keyword, UserFeedback } from './model/record'
|
|
6
5
|
|
|
7
6
|
export abstract class PlatformServiceInterface {
|
|
8
7
|
abstract getType(): string
|
|
@@ -16,7 +15,8 @@ export abstract class PlatformServiceInterface {
|
|
|
16
15
|
): Observable<UserModel[]>
|
|
17
16
|
abstract getOrganizations(): Observable<Organization[]>
|
|
18
17
|
abstract translateKey(key: string): Observable<string>
|
|
19
|
-
abstract
|
|
18
|
+
abstract searchKeywords(query: string): Observable<Keyword[]>
|
|
19
|
+
abstract getKeywordsByUri(uri: string): Observable<Keyword[]>
|
|
20
20
|
abstract getUserFeedbacks(recordUuid: string): Observable<UserFeedback[]>
|
|
21
21
|
abstract postUserFeedbacks(recordUuid: UserFeedback): Observable<void>
|
|
22
22
|
}
|
|
@@ -33,7 +33,7 @@ export abstract class RecordsRepositoryInterface {
|
|
|
33
33
|
/**
|
|
34
34
|
* @param record
|
|
35
35
|
* @param referenceRecordSource
|
|
36
|
-
* @returns Observable<string> Returns the
|
|
36
|
+
* @returns Observable<string> Returns the unique identifier of the record as it was when saved
|
|
37
37
|
*/
|
|
38
38
|
abstract saveRecord(
|
|
39
39
|
record: CatalogRecord,
|
|
@@ -52,4 +52,7 @@ export abstract class RecordsRepositoryInterface {
|
|
|
52
52
|
|
|
53
53
|
abstract clearRecordDraft(uniqueIdentifier: string): void
|
|
54
54
|
abstract recordHasDraft(uniqueIdentifier: string): boolean
|
|
55
|
+
|
|
56
|
+
/** will return all pending drafts, both published and not published */
|
|
57
|
+
abstract getAllDrafts(): Observable<CatalogRecord[]>
|
|
55
58
|
}
|
|
@@ -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.`,
|
|
@@ -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,
|
|
@@ -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
|
+
selectRecord,
|
|
10
|
+
selectRecordAlreadySavedOnce,
|
|
11
|
+
selectRecordFieldsConfig,
|
|
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(selectRecordFieldsConfig)
|
|
27
|
+
this.store.select(selectRecordFieldsConfig),
|
|
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(() =>
|
|
@@ -26,6 +26,7 @@ export class EditorFacade {
|
|
|
26
26
|
select(EditorSelectors.selectRecordChangedSinceSave)
|
|
27
27
|
)
|
|
28
28
|
recordFields$ = this.store.pipe(select(EditorSelectors.selectRecordFields))
|
|
29
|
+
draftSaveSuccess$ = this.actions$.pipe(ofType(EditorActions.draftSaveSuccess))
|
|
29
30
|
|
|
30
31
|
openRecord(
|
|
31
32
|
record: CatalogRecord,
|
|
@@ -44,6 +44,6 @@ export const selectRecordFields = createSelector(
|
|
|
44
44
|
(state: EditorState) =>
|
|
45
45
|
state.fieldsConfig.map((fieldConfig) => ({
|
|
46
46
|
config: fieldConfig,
|
|
47
|
-
value: state.record?.[fieldConfig.model]
|
|
47
|
+
value: state.record?.[fieldConfig.model] ?? null,
|
|
48
48
|
}))
|
|
49
49
|
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<div class="flex flex-col gap-3">
|
|
2
|
+
<gn-ui-autocomplete
|
|
3
|
+
[placeholder]="'Search for keywords in all thesaurus'"
|
|
4
|
+
[displayWithFn]="displayWithFn"
|
|
5
|
+
[action]="autoCompleteAction"
|
|
6
|
+
(itemSelected)="handleItemSelection($event)"
|
|
7
|
+
[clearOnSelection]="true"
|
|
8
|
+
[minCharacterCount]="0"
|
|
9
|
+
[allowSubmit]="false"
|
|
10
|
+
></gn-ui-autocomplete>
|
|
11
|
+
<div class="flex gap-2 flex-wrap">
|
|
12
|
+
<gn-ui-badge
|
|
13
|
+
*ngFor="let keyword of control.value; let index = index"
|
|
14
|
+
[removable]="true"
|
|
15
|
+
(badgeRemoveClicked)="removeKeyword(index)"
|
|
16
|
+
>{{ keyword.label }}</gn-ui-badge
|
|
17
|
+
>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|