geonetwork-ui 2.4.0-dev.00c93bef → 2.4.0-dev.10a614b2
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/iso19139/iso19139.converter.mjs +5 -5
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +30 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +23 -1
- package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +31 -3
- package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
- package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +131 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +170 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +47 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +21 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +7 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +33 -9
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +30 -3
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -5
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
- 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 +46 -7
- package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
- package/esm2022/libs/ui/elements/src/index.mjs +2 -1
- package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
- package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +7 -3
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +17 -14
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +6 -21
- package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +28 -8
- package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
- package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
- package/esm2022/translations/de.json +48 -17
- package/esm2022/translations/en.json +41 -10
- package/esm2022/translations/es.json +40 -9
- package/esm2022/translations/fr.json +53 -22
- package/esm2022/translations/it.json +41 -10
- package/esm2022/translations/nl.json +40 -9
- package/esm2022/translations/pt.json +40 -9
- package/fesm2022/geonetwork-ui.mjs +4192 -3172
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +8 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
- package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +7 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +17 -0
- 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/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +47 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +17 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +11 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.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 +3 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +9 -1
- 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/feature-editor.module.d.ts +2 -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 +7 -0
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +14 -4
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- 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/ui/elements/src/index.d.ts +1 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
- package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +4 -4
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +3 -4
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -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 +9 -3
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/index.d.ts +1 -0
- package/libs/ui/widgets/src/index.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
- package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +4 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
- package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +42 -2
- package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +2 -1
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +22 -0
- package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
- package/src/libs/data-access/gn4/src/spec.yaml +0 -8
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +110 -19
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +76 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +271 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +59 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +22 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +8 -7
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +18 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +30 -1
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +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 +32 -2
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
- package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +3 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +57 -3
- package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
- package/src/libs/ui/elements/src/index.ts +1 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -1
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +8 -4
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +91 -0
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +49 -49
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +15 -13
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +2 -27
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +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 +26 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +15 -1
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +26 -12
- package/src/libs/ui/widgets/src/index.ts +1 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
- package/tailwind.base.css +18 -5
- package/translations/de.json +48 -17
- package/translations/en.json +41 -10
- package/translations/es.json +40 -9
- package/translations/fr.json +53 -22
- package/translations/it.json +41 -10
- package/translations/nl.json +40 -9
- package/translations/pt.json +40 -9
- package/translations/sk.json +41 -10
|
@@ -2,20 +2,18 @@ import { AfterViewInit } from '@angular/core';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TextInputComponent implements AfterViewInit {
|
|
5
|
-
private readonly baseClass;
|
|
6
5
|
value: string;
|
|
7
6
|
extraClass: string;
|
|
8
|
-
|
|
7
|
+
placeholder: string;
|
|
9
8
|
required: boolean;
|
|
10
9
|
disabled: boolean;
|
|
11
10
|
rawChange: Subject<string>;
|
|
12
11
|
valueChange: import("rxjs").Observable<string>;
|
|
13
12
|
input: any;
|
|
14
|
-
get classList(): string;
|
|
15
13
|
ngAfterViewInit(): void;
|
|
16
14
|
checkRequired(value: any): void;
|
|
17
15
|
handleChange($event: any): void;
|
|
18
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
20
18
|
}
|
|
21
19
|
//# sourceMappingURL=text-input.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;
|
|
1
|
+
{"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAG9B,qBAOa,kBAAmB,YAAW,aAAa;IAC7C,KAAK,SAAK;IACV,UAAU,SAAK;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,UAAQ;IAChB,QAAQ,EAAE,OAAO,CAAA;IAC1B,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAC/C,KAAK,MAAA;IAEzB,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCArBR,kBAAkB;2CAAlB,kBAAkB;CA0B9B"}
|
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./
|
|
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 "
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "@angular/material/
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "@angular/
|
|
22
|
-
import * as i21 from "@angular/material/
|
|
23
|
-
import * as i22 from "@angular/material/
|
|
24
|
-
import * as i23 from "@angular/material/
|
|
25
|
-
import * as i24 from "@angular/material/
|
|
26
|
-
import * as i25 from "@angular/material/
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "./
|
|
29
|
-
import * as i28 from "./
|
|
30
|
-
import * as i29 from "./
|
|
31
|
-
import * as i30 from "./
|
|
32
|
-
import * as i31 from "./
|
|
33
|
-
import * as i32 from "./
|
|
34
|
-
import * as i33 from "./
|
|
35
|
-
import * as i34 from "./badge/badge.component";
|
|
2
|
+
import * as i1 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
|
|
3
|
+
import * as i2 from "./chips-input/chips-input.component";
|
|
4
|
+
import * as i3 from "./navigation-button/navigation-button.component";
|
|
5
|
+
import * as i4 from "./star-toggle/star-toggle.component";
|
|
6
|
+
import * as i5 from "./dropdown-multiselect/dropdown-multiselect.component";
|
|
7
|
+
import * as i6 from "./viewport-intersector/viewport-intersector.component";
|
|
8
|
+
import * as i7 from "./copy-text-button/copy-text-button.component";
|
|
9
|
+
import * as i8 from "./checkbox/checkbox.component";
|
|
10
|
+
import * as i9 from "./search-input/search-input.component";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "@ngx-translate/core";
|
|
13
|
+
import * as i12 from "ngx-dropzone";
|
|
14
|
+
import * as i13 from "@angular/forms";
|
|
15
|
+
import * as i14 from "ngx-chips";
|
|
16
|
+
import * as i15 from "../../../../util/shared/src/lib/util-shared.module";
|
|
17
|
+
import * as i16 from "@angular/material/autocomplete";
|
|
18
|
+
import * as i17 from "@angular/material/icon";
|
|
19
|
+
import * as i18 from "../../../widgets/src/lib/ui-widgets.module";
|
|
20
|
+
import * as i19 from "@angular/cdk/overlay";
|
|
21
|
+
import * as i20 from "@angular/material/checkbox";
|
|
22
|
+
import * as i21 from "@angular/material/tooltip";
|
|
23
|
+
import * as i22 from "@angular/material/form-field";
|
|
24
|
+
import * as i23 from "@angular/material/input";
|
|
25
|
+
import * as i24 from "@angular/material/datepicker";
|
|
26
|
+
import * as i25 from "@angular/material/core";
|
|
27
|
+
import * as i26 from "./editable-label/editable-label.directive";
|
|
28
|
+
import * as i27 from "./text-area/text-area.component";
|
|
29
|
+
import * as i28 from "./button/button.component";
|
|
30
|
+
import * as i29 from "./image-input/image-input.component";
|
|
31
|
+
import * as i30 from "./dropdown-selector/dropdown-selector.component";
|
|
32
|
+
import * as i31 from "./date-range-picker/date-range-picker.component";
|
|
33
|
+
import * as i32 from "./check-toggle/check-toggle.component";
|
|
34
|
+
import * as i33 from "./badge/badge.component";
|
|
36
35
|
export declare class UiInputsModule {
|
|
37
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.
|
|
37
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DragAndDropFileInputComponent, typeof i2.ChipsInputComponent, typeof i3.NavigationButtonComponent, typeof i4.StarToggleComponent, typeof i5.DropdownMultiselectComponent, typeof i6.ViewportIntersectorComponent, typeof i7.CopyTextButtonComponent, typeof i8.CheckboxComponent, typeof i9.SearchInputComponent], [typeof i10.CommonModule, typeof i11.TranslateModule, typeof i12.NgxDropzoneModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i14.TagInputModule, typeof i15.UtilSharedModule, typeof i16.MatAutocompleteModule, typeof i17.MatIconModule, typeof i18.UiWidgetsModule, typeof i19.OverlayModule, typeof i20.MatCheckboxModule, typeof i21.MatTooltipModule, typeof i22.MatFormFieldModule, typeof i23.MatInputModule, typeof i24.MatDatepickerModule, typeof i25.MatNativeDateModule, typeof i26.EditableLabelDirective, typeof i27.TextAreaComponent, typeof i28.ButtonComponent, typeof i29.ImageInputComponent, typeof i30.DropdownSelectorComponent, typeof i31.DateRangePickerComponent, typeof i32.CheckToggleComponent, typeof i33.BadgeComponent], [typeof i30.DropdownSelectorComponent, typeof i28.ButtonComponent, typeof i1.DragAndDropFileInputComponent, typeof i27.TextAreaComponent, typeof i2.ChipsInputComponent, typeof i3.NavigationButtonComponent, typeof i4.StarToggleComponent, typeof i5.DropdownMultiselectComponent, typeof i6.ViewportIntersectorComponent, typeof i32.CheckToggleComponent, typeof i7.CopyTextButtonComponent, typeof i8.CheckboxComponent, typeof i9.SearchInputComponent, typeof i31.DateRangePickerComponent, typeof i26.EditableLabelDirective, typeof i29.ImageInputComponent, typeof i33.BadgeComponent]>;
|
|
39
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
|
|
40
39
|
}
|
|
41
40
|
//# sourceMappingURL=ui-inputs.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,qBA2Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UrlInputComponent {
|
|
5
|
+
private cd;
|
|
6
|
+
value: string;
|
|
7
|
+
extraClass: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
rawChange: Subject<string>;
|
|
11
|
+
valueChange: import("rxjs").Observable<string>;
|
|
12
|
+
constructor(cd: ChangeDetectorRef);
|
|
13
|
+
handleInput(): void;
|
|
14
|
+
handleChange(element: HTMLInputElement): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UrlInputComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UrlInputComponent, "gn-ui-url-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=url-input.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/url-input/url-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA4B,MAAM,eAAe,CAAA;AAK3E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAOa,iBAAiB;IAQhB,OAAO,CAAC,EAAE;IAPb,KAAK,SAAK;IACV,UAAU,SAAK;IACf,WAAW,SAAa;IACxB,QAAQ,EAAE,OAAO,CAAA;IAC1B,SAAS,kBAAwB;IACvB,WAAW,oCAA0C;gBAE3C,EAAE,EAAE,iBAAiB;IAEzC,WAAW;IAIX,YAAY,CAAC,OAAO,EAAE,gBAAgB;yCAd3B,iBAAiB;2CAAjB,iBAAiB;CAkB7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ActionMenuComponent {
|
|
7
|
+
dialog: MatDialog;
|
|
8
|
+
private translateService;
|
|
9
|
+
canDuplicate: boolean;
|
|
10
|
+
canDelete: boolean;
|
|
11
|
+
duplicate: EventEmitter<void>;
|
|
12
|
+
delete: EventEmitter<void>;
|
|
13
|
+
trigger: MatMenuTrigger;
|
|
14
|
+
constructor(dialog: MatDialog, translateService: TranslateService);
|
|
15
|
+
openMenu(): void;
|
|
16
|
+
openDeleteConfirmationDialog(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionMenuComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuComponent, "gn-ui-action-menu", never, { "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; }, { "duplicate": "duplicate"; "delete": "delete"; }, never, never, true, never>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=action-menu.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-menu.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAIb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAmB,MAAM,0BAA0B,CAAA;AAErE,OAAO,EAAiB,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGtE,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAEvE,qBAca,mBAAmB;IASrB,MAAM,EAAE,SAAS;IACxB,OAAO,CAAC,gBAAgB;IATjB,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IACjB,SAAS,qBAA2B;IACpC,MAAM,qBAA2B;IAEhB,OAAO,EAAE,cAAc,CAAA;gBAGzC,MAAM,EAAE,SAAS,EAChB,gBAAgB,EAAE,gBAAgB;IAG5C,QAAQ;IAIR,4BAA4B;yCAjBjB,mBAAmB;2CAAnB,mBAAmB;CA6C/B"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
3
|
-
import { FileFormat } from '../../../../../../libs/util/shared/src';
|
|
4
3
|
import { SortByField } from '../../../../../../libs/common/domain/src/lib/model/search';
|
|
4
|
+
import { FileFormat } from '../../../../../../libs/util/shared/src';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ResultsTableComponent {
|
|
7
7
|
records: CatalogRecord[];
|
|
8
8
|
selectedRecordsIdentifiers: string[];
|
|
9
9
|
sortOrder: SortByField;
|
|
10
|
-
|
|
10
|
+
hasDraft: (record: CatalogRecord) => boolean;
|
|
11
|
+
canDuplicate: (record: CatalogRecord) => boolean;
|
|
12
|
+
canDelete: (record: CatalogRecord) => boolean;
|
|
11
13
|
sortByChange: EventEmitter<[string, "asc" | "desc"]>;
|
|
12
14
|
recordClick: EventEmitter<CatalogRecord>;
|
|
15
|
+
duplicateRecord: EventEmitter<CatalogRecord>;
|
|
16
|
+
deleteRecord: EventEmitter<CatalogRecord>;
|
|
13
17
|
recordsSelectedChange: EventEmitter<[CatalogRecord[], boolean]>;
|
|
14
18
|
dateToString(date: Date): string;
|
|
15
19
|
getStatus(isPublishedToAll: boolean | unknown): "published" | "not published";
|
|
@@ -17,6 +21,8 @@ export declare class ResultsTableComponent {
|
|
|
17
21
|
formatUserInfo(userInfo: string | unknown): string;
|
|
18
22
|
getBadgeColor(format: FileFormat): string;
|
|
19
23
|
handleRecordClick(item: unknown): void;
|
|
24
|
+
handleDuplicate(item: unknown): void;
|
|
25
|
+
handleDelete(item: unknown): void;
|
|
20
26
|
setSortBy(col: string, order: 'asc' | 'desc'): void;
|
|
21
27
|
isSortedBy(col: string): 'desc' | 'asc' | null;
|
|
22
28
|
isChecked(record: CatalogRecord): boolean;
|
|
@@ -25,6 +31,6 @@ export declare class ResultsTableComponent {
|
|
|
25
31
|
isAllSelected(): boolean;
|
|
26
32
|
isSomeSelected(): boolean;
|
|
27
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResultsTableComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "hasDraft": { "alias": "hasDraft"; "required": false; }; "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; }, { "sortByChange": "sortByChange"; "recordClick": "recordClick"; "duplicateRecord": "duplicateRecord"; "deleteRecord": "deleteRecord"; "recordsSelectedChange": "recordsSelectedChange"; }, never, never, true, never>;
|
|
29
35
|
}
|
|
30
36
|
//# sourceMappingURL=results-table.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAEL,WAAW,EACZ,MAAM,2DAA2D,CAAA;AAMlE,OAAO,EACL,UAAU,EAIX,MAAM,wCAAwC,CAAA;;AAI/C,qBAgBa,qBAAqB;IACvB,OAAO,EAAE,aAAa,EAAE,CAAK;IAC7B,0BAA0B,EAAE,MAAM,EAAE,CAAK;IACzC,SAAS,EAAE,WAAW,CAAO;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAc;IAC1D,YAAY,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAC7D,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAGzD,YAAY,yCAA+C;IAC3D,WAAW,8BAAoC;IAC/C,eAAe,8BAAoC;IACnD,YAAY,8BAAoC;IAChD,qBAAqB,2CAE5B;IAEH,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAShC,SAAS,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO;IAI7C,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,EAAE;IAarD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;IAQlD,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,OAAO;IAI/B,eAAe,CAAC,IAAI,EAAE,OAAO;IAI7B,YAAY,CAAC,IAAI,EAAE,OAAO;IAI1B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI;IAe9C,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;IAIzC,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;IAI7D,eAAe;IAIrB,aAAa,IAAI,OAAO;IAMxB,cAAc,IAAI,OAAO;yCAxGd,qBAAqB;2CAArB,qBAAqB;CAiHjC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/ui-widgets.module';
|
|
2
2
|
export * from './lib/progress-bar/progress-bar.component';
|
|
3
|
+
export * from './lib/popover/popover.component';
|
|
3
4
|
export * from './lib/loading-mask/loading-mask.component';
|
|
4
5
|
export * from './lib/color-scale/color-scale.component';
|
|
5
6
|
export * from './lib/popup-alert/popup-alert.component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,2CAA2C,CAAA;AACzD,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,yCAAyC,CAAA;AACvD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mCAAmC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,2CAA2C,CAAA;AACzD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,yCAAyC,CAAA;AACvD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mCAAmC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, OnChanges, SimpleChanges, TemplateRef, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PopoverComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
4
|
+
private viewContainerRef;
|
|
5
|
+
private renderer;
|
|
6
|
+
popoverContent: ElementRef;
|
|
7
|
+
content: string | TemplateRef<any>;
|
|
8
|
+
theme: 'light' | 'light-border' | 'translucent' | 'material' | '';
|
|
9
|
+
private tippyInstance;
|
|
10
|
+
private view;
|
|
11
|
+
constructor(viewContainerRef: ViewContainerRef, renderer: Renderer2);
|
|
12
|
+
private getContent;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "gn-ui-popover", never, { "content": { "alias": "content"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=popover.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/widgets/src/lib/popover/popover.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EACb,UAAU,EAGV,SAAS,EACT,SAAS,EACT,aAAa,EACb,WAAW,EACX,SAAS,EACT,gBAAgB,EAEjB,MAAM,eAAe,CAAA;;AAGtB,qBAOa,gBAAiB,YAAW,aAAa,EAAE,SAAS,EAAE,SAAS;IASxE,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,QAAQ;IAT8B,cAAc,EAAE,UAAU,CAAA;IACjE,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAA;IAClC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,EAAE,CAAA;IAE1E,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,IAAI,CAAsB;gBAGxB,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,SAAS;IAG7B,OAAO,CAAC,UAAU;IAgBlB,eAAe,IAAI,IAAI;IAQvB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAezC,WAAW,IAAI,IAAI;yCApDR,gBAAgB;2CAAhB,gBAAgB;CA4D5B"}
|
package/package.json
CHANGED
|
@@ -122,7 +122,11 @@ Ce lot de données produit en 2019, a été numérisé à partir du PCI Vecteur
|
|
|
122
122
|
securityConstraints: [],
|
|
123
123
|
otherConstraints: [],
|
|
124
124
|
// data quality?
|
|
125
|
-
spatialExtents: [
|
|
125
|
+
spatialExtents: [
|
|
126
|
+
{
|
|
127
|
+
bbox: [2.5587, 49.3677, 2.5934, 49.4051],
|
|
128
|
+
},
|
|
129
|
+
],
|
|
126
130
|
temporalExtents: [],
|
|
127
131
|
status: 'completed',
|
|
128
132
|
updateFrequency: 'unknown',
|
|
@@ -94,7 +94,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
94
94
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
95
95
|
name: 'GEMET',
|
|
96
96
|
url: new URL(
|
|
97
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
97
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
98
98
|
),
|
|
99
99
|
},
|
|
100
100
|
type: 'theme',
|
|
@@ -105,7 +105,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
105
105
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
106
106
|
name: 'GEMET',
|
|
107
107
|
url: new URL(
|
|
108
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
108
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
109
109
|
),
|
|
110
110
|
},
|
|
111
111
|
type: 'theme',
|
|
@@ -116,7 +116,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
116
116
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
117
117
|
name: 'GEMET',
|
|
118
118
|
url: new URL(
|
|
119
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
119
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
120
120
|
),
|
|
121
121
|
},
|
|
122
122
|
type: 'theme',
|
|
@@ -127,7 +127,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
127
127
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
128
128
|
name: 'GEMET',
|
|
129
129
|
url: new URL(
|
|
130
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
130
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
131
131
|
),
|
|
132
132
|
},
|
|
133
133
|
type: 'theme',
|
|
@@ -138,7 +138,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
138
138
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
139
139
|
name: 'GEMET',
|
|
140
140
|
url: new URL(
|
|
141
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
141
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
142
142
|
),
|
|
143
143
|
},
|
|
144
144
|
type: 'theme',
|
|
@@ -149,7 +149,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
149
149
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
150
150
|
name: 'GEMET',
|
|
151
151
|
url: new URL(
|
|
152
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
152
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
153
153
|
),
|
|
154
154
|
},
|
|
155
155
|
type: 'theme',
|
|
@@ -160,7 +160,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
160
160
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
161
161
|
name: 'GEMET',
|
|
162
162
|
url: new URL(
|
|
163
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
163
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
164
164
|
),
|
|
165
165
|
},
|
|
166
166
|
type: 'theme',
|
|
@@ -171,7 +171,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
171
171
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
172
172
|
name: 'GEMET',
|
|
173
173
|
url: new URL(
|
|
174
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
174
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
175
175
|
),
|
|
176
176
|
},
|
|
177
177
|
type: 'theme',
|
|
@@ -182,7 +182,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
182
182
|
id: 'geonetwork.thesaurus.external.theme.gemet',
|
|
183
183
|
name: 'GEMET',
|
|
184
184
|
url: new URL(
|
|
185
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
185
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
|
|
186
186
|
),
|
|
187
187
|
},
|
|
188
188
|
type: 'theme',
|
|
@@ -193,7 +193,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
193
193
|
id: 'geonetwork.thesaurus.external.theme.inspire-theme',
|
|
194
194
|
name: 'GEMET - INSPIRE themes, version 1.0',
|
|
195
195
|
url: new URL(
|
|
196
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
196
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.inspire-theme'
|
|
197
197
|
),
|
|
198
198
|
},
|
|
199
199
|
type: 'theme',
|
|
@@ -204,7 +204,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
|
|
|
204
204
|
id: 'geonetwork.thesaurus.external.theme.inspire-theme',
|
|
205
205
|
name: 'GEMET - INSPIRE themes, version 1.0',
|
|
206
206
|
url: new URL(
|
|
207
|
-
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/
|
|
207
|
+
'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.inspire-theme'
|
|
208
208
|
),
|
|
209
209
|
},
|
|
210
210
|
type: 'theme',
|
|
@@ -332,7 +332,32 @@ Die Quelle ist zu bezeichnen: „Quelle: Stadt Zürich“.`,
|
|
|
332
332
|
securityConstraints: [],
|
|
333
333
|
otherConstraints: [],
|
|
334
334
|
// data quality?
|
|
335
|
-
spatialExtents: [
|
|
335
|
+
spatialExtents: [
|
|
336
|
+
{
|
|
337
|
+
description: 'AK',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
bbox: [
|
|
341
|
+
6.75599105586694, 45.7887442565203, 10.5418236945627, 47.5175655551557,
|
|
342
|
+
],
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
geometry: {
|
|
346
|
+
type: 'MultiPolygon',
|
|
347
|
+
coordinates: [
|
|
348
|
+
[
|
|
349
|
+
[
|
|
350
|
+
[6.777075, 45.827119, 0],
|
|
351
|
+
[6.755991, 47.517566, 0],
|
|
352
|
+
[10.541824, 47.477984, 0],
|
|
353
|
+
[10.446252, 45.788744, 0],
|
|
354
|
+
[6.777075, 45.827119, 0],
|
|
355
|
+
],
|
|
356
|
+
],
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
],
|
|
336
361
|
temporalExtents: [],
|
|
337
362
|
status: 'completed',
|
|
338
363
|
updateFrequency: 'asNeeded',
|
|
@@ -388,7 +388,11 @@ Depuis, ce sont les Districts routiers qui assurent la tenue à jour de ces info
|
|
|
388
388
|
name: 'Direction Asset Management (SPW - Mobilité et Infrastructures - Direction Asset Management)',
|
|
389
389
|
},
|
|
390
390
|
securityConstraints: [],
|
|
391
|
-
spatialExtents: [
|
|
391
|
+
spatialExtents: [
|
|
392
|
+
{
|
|
393
|
+
bbox: [2.75, 49.45, 6.5, 50.85],
|
|
394
|
+
},
|
|
395
|
+
],
|
|
392
396
|
spatialRepresentation: 'vector',
|
|
393
397
|
status: 'ongoing',
|
|
394
398
|
temporalExtents: [],
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
readResourcePublished,
|
|
35
35
|
readResourceUpdated,
|
|
36
36
|
readSecurityConstraints,
|
|
37
|
+
readSpatialExtents,
|
|
37
38
|
readSpatialRepresentation,
|
|
38
39
|
readStatus,
|
|
39
40
|
readTemporalExtents,
|
|
@@ -60,6 +61,7 @@ import {
|
|
|
60
61
|
writeResourcePublished,
|
|
61
62
|
writeResourceUpdated,
|
|
62
63
|
writeSecurityConstraints,
|
|
64
|
+
writeSpatialExtents,
|
|
63
65
|
writeSpatialRepresentation,
|
|
64
66
|
writeStatus,
|
|
65
67
|
writeTemporalExtents,
|
|
@@ -101,8 +103,8 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
101
103
|
distributions: readDistributions,
|
|
102
104
|
onlineResources: readOnlineResources,
|
|
103
105
|
temporalExtents: readTemporalExtents,
|
|
106
|
+
spatialExtents: readSpatialExtents,
|
|
104
107
|
// TODO
|
|
105
|
-
spatialExtents: () => [],
|
|
106
108
|
extras: () => undefined,
|
|
107
109
|
landingPage: () => undefined,
|
|
108
110
|
languages: () => [],
|
|
@@ -139,8 +141,8 @@ export class Iso19139Converter extends BaseConverter<string> {
|
|
|
139
141
|
distributions: writeDistributions,
|
|
140
142
|
onlineResources: writeOnlineResources,
|
|
141
143
|
temporalExtents: writeTemporalExtents,
|
|
144
|
+
spatialExtents: () => writeSpatialExtents,
|
|
142
145
|
// TODO
|
|
143
|
-
spatialExtents: () => undefined,
|
|
144
146
|
extras: () => undefined,
|
|
145
147
|
landingPage: () => undefined,
|
|
146
148
|
languages: () => undefined,
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
UpdateFrequency,
|
|
14
14
|
UpdateFrequencyCustom,
|
|
15
15
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
16
|
+
import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
17
|
+
import { Geometry } from 'geojson'
|
|
16
18
|
import { matchMimeType, matchProtocol } from '../common/distribution.mapper'
|
|
17
19
|
import {
|
|
18
20
|
ChainableFunction,
|
|
@@ -26,21 +28,22 @@ import {
|
|
|
26
28
|
pipe,
|
|
27
29
|
} from '../function-utils'
|
|
28
30
|
import {
|
|
29
|
-
XmlElement,
|
|
30
31
|
findChildElement,
|
|
31
32
|
findChildrenElement,
|
|
32
33
|
findNestedElement,
|
|
33
34
|
findNestedElements,
|
|
34
35
|
findParent,
|
|
36
|
+
firstChildElement,
|
|
35
37
|
readAttribute,
|
|
36
38
|
readText,
|
|
39
|
+
XmlElement,
|
|
37
40
|
} from '../xml-utils'
|
|
41
|
+
import { readGeometry } from './utils/geometry'
|
|
38
42
|
import { fullNameToParts } from './utils/individual-name'
|
|
39
43
|
import { getKeywordTypeFromKeywordTypeCode } from './utils/keyword.mapper'
|
|
40
44
|
import { getRoleFromRoleCode } from './utils/role.mapper'
|
|
41
45
|
import { getStatusFromStatusCode } from './utils/status.mapper'
|
|
42
46
|
import { getUpdateFrequencyFromFrequencyCode } from './utils/update-frequency.mapper'
|
|
43
|
-
import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
44
47
|
|
|
45
48
|
export function extractCharacterString(): ChainableFunction<
|
|
46
49
|
XmlElement,
|
|
@@ -66,6 +69,14 @@ export function extractDateTime(): ChainableFunction<XmlElement, Date> {
|
|
|
66
69
|
)
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
export function extractDecimal(): ChainableFunction<XmlElement, number> {
|
|
73
|
+
return pipe(
|
|
74
|
+
findChildElement('gco:Decimal', false),
|
|
75
|
+
readText(),
|
|
76
|
+
map((numberStr) => (numberStr ? Number(numberStr) : null))
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
|
|
69
80
|
export function extractUrl(): ChainableFunction<XmlElement, URL> {
|
|
70
81
|
const getUrl = pipe(findChildElement('gmd:URL', false), readText())
|
|
71
82
|
const getCharacterString = pipe(
|
|
@@ -895,3 +906,62 @@ export function readTemporalExtents(rootEl: XmlElement) {
|
|
|
895
906
|
})
|
|
896
907
|
)(rootEl)
|
|
897
908
|
}
|
|
909
|
+
|
|
910
|
+
export function readSpatialExtents(rootEl: XmlElement) {
|
|
911
|
+
const extractGeometry = (rootEl: XmlElement): Geometry => {
|
|
912
|
+
if (!rootEl) return null
|
|
913
|
+
return pipe(
|
|
914
|
+
findChildElement('gmd:polygon', false),
|
|
915
|
+
firstChildElement,
|
|
916
|
+
map((el) => readGeometry(el))
|
|
917
|
+
)(rootEl)
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
const extractBBox = (
|
|
921
|
+
rootEl: XmlElement
|
|
922
|
+
): [number, number, number, number] => {
|
|
923
|
+
if (!rootEl) return null
|
|
924
|
+
return pipe(
|
|
925
|
+
combine(
|
|
926
|
+
pipe(findChildElement('gmd:westBoundLongitude'), extractDecimal()),
|
|
927
|
+
pipe(findChildElement('gmd:southBoundLatitude'), extractDecimal()),
|
|
928
|
+
pipe(findChildElement('gmd:eastBoundLongitude'), extractDecimal()),
|
|
929
|
+
pipe(findChildElement('gmd:northBoundLatitude'), extractDecimal())
|
|
930
|
+
)
|
|
931
|
+
)(rootEl)
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
const extractDescription = (rootEl: XmlElement): string => {
|
|
935
|
+
if (!rootEl) return null
|
|
936
|
+
return pipe(
|
|
937
|
+
findNestedElement(
|
|
938
|
+
'gmd:geographicIdentifier',
|
|
939
|
+
'gmd:MD_Identifier',
|
|
940
|
+
'gmd:code'
|
|
941
|
+
),
|
|
942
|
+
extractCharacterString()
|
|
943
|
+
)(rootEl)
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
return pipe(
|
|
947
|
+
findIdentification(),
|
|
948
|
+
findNestedElements('gmd:extent', 'gmd:EX_Extent', 'gmd:geographicElement'),
|
|
949
|
+
mapArray(
|
|
950
|
+
combine(
|
|
951
|
+
pipe(findChildElement('gmd:EX_BoundingPolygon'), extractGeometry),
|
|
952
|
+
pipe(findChildElement('gmd:EX_GeographicBoundingBox'), extractBBox),
|
|
953
|
+
pipe(
|
|
954
|
+
findChildElement('gmd:EX_GeographicDescription'),
|
|
955
|
+
extractDescription
|
|
956
|
+
)
|
|
957
|
+
)
|
|
958
|
+
),
|
|
959
|
+
mapArray(([geometry, bbox, description]) => {
|
|
960
|
+
return {
|
|
961
|
+
...(geometry && { geometry }),
|
|
962
|
+
...(bbox && { bbox }),
|
|
963
|
+
...(description && { description }),
|
|
964
|
+
}
|
|
965
|
+
})
|
|
966
|
+
)(rootEl)
|
|
967
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { XmlElement } from '@rgrove/parse-xml'
|
|
2
|
+
import { Geometry } from 'geojson'
|
|
3
|
+
import GML32 from 'ol/format/GML32'
|
|
4
|
+
import GeoJSON from 'ol/format/GeoJSON'
|
|
5
|
+
import { parse } from 'ol/xml'
|
|
6
|
+
import {
|
|
7
|
+
createDocument,
|
|
8
|
+
getRootElement,
|
|
9
|
+
parseXmlString,
|
|
10
|
+
xmlToString,
|
|
11
|
+
} from '../../xml-utils'
|
|
12
|
+
|
|
13
|
+
export function readGeometry(el: XmlElement): Geometry {
|
|
14
|
+
const xmlDoc = createDocument(el)
|
|
15
|
+
xmlDoc.root.attributes['xmlns'] = 'http://www.opengis.net/gml/3.2'
|
|
16
|
+
const gmlString = xmlToString(xmlDoc)
|
|
17
|
+
const doc = parse(gmlString)
|
|
18
|
+
// we need an intermediate node to be able to parse the GML
|
|
19
|
+
const node = document.createElement('pre')
|
|
20
|
+
node.appendChild(doc.documentElement)
|
|
21
|
+
const gml32Format = new GML32()
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
const geometry = gml32Format.readGeometryFromNode(node)
|
|
25
|
+
const geojsonFormat = new GeoJSON()
|
|
26
|
+
return geojsonFormat.writeGeometryObject(geometry)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function writeGeometry(geometryObject: Geometry): XmlElement {
|
|
30
|
+
const geojsonFormat = new GeoJSON()
|
|
31
|
+
const geometry = geojsonFormat.readGeometry(geometryObject)
|
|
32
|
+
const gml32Format = new GML32()
|
|
33
|
+
const node = gml32Format.writeGeometryNode(geometry)
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
const element = node.firstElementChild as HTMLElement
|
|
37
|
+
const gmlString = new XMLSerializer().serializeToString(element)
|
|
38
|
+
return getRootElement(parseXmlString(gmlString))
|
|
39
|
+
}
|