geonetwork-ui 2.2.0-dev.c15a456d → 2.2.0-dev.ca028047
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/atomic-operations.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +36 -2
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/index.mjs +3 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +4 -15
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +5 -4
- package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +5 -3
- package/esm2022/libs/feature/map/src/index.mjs +2 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +106 -0
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +64 -0
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +63 -0
- package/esm2022/libs/feature/map/src/lib/constant/index.mjs +2 -1
- package/esm2022/libs/feature/map/src/lib/constant/projections.mjs +2 -0
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +26 -3
- package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +93 -0
- package/esm2022/libs/feature/map/src/lib/geocoding.service.mjs +40 -0
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +6 -3
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +3 -1
- package/esm2022/libs/feature/map/src/lib/utils/index.mjs +1 -3
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +60 -29
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +29 -20
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +7 -4
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +1 -1
- 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 +1 -1
- package/esm2022/libs/ui/elements/src/index.mjs +4 -1
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +27 -0
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +17 -0
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +10 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +12 -6
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +7 -3
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +15 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +6 -3
- package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +46 -0
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -3
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +2 -2
- package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-table/record-table.component.mjs +3 -3
- package/esm2022/libs/util/i18n/src/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +29 -13
- package/esm2022/libs/util/shared/src/lib/utils/fuzzy-filter.mjs +27 -0
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
- package/esm2022/translations/de.json +102 -87
- package/esm2022/translations/en.json +35 -20
- package/esm2022/translations/es.json +15 -0
- package/esm2022/translations/fr.json +19 -4
- package/esm2022/translations/it.json +27 -12
- package/esm2022/translations/nl.json +15 -0
- package/esm2022/translations/pt.json +15 -0
- package/fesm2022/geonetwork-ui.mjs +916 -298
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/index.d.ts +2 -0
- package/libs/api/repository/src/lib/gn4/index.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +10 -5
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts +0 -1
- package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +15 -2
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/map/src/index.d.ts +1 -0
- package/libs/feature/map/src/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/constant/index.d.ts +1 -0
- package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/constant/projections.d.ts.map +1 -0
- package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -12
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts +25 -0
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/geocoding.service.d.ts +18 -0
- package/libs/feature/map/src/lib/geocoding.service.d.ts.map +1 -0
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +1 -0
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/index.d.ts +0 -2
- package/libs/feature/map/src/lib/utils/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +13 -11
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +1 -3
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +2 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts +3 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts +10 -0
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts +8 -0
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts +1 -0
- package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +1 -0
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +3 -2
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +13 -11
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +13 -0
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +2 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/util/i18n/src/index.d.ts +1 -0
- package/libs/util/i18n/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +19 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/fuzzy-filter.d.ts +9 -0
- package/libs/util/shared/src/lib/utils/fuzzy-filter.d.ts.map +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
- package/package.json +4 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +3 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +43 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/index.ts +2 -0
- package/src/libs/common/domain/src/lib/index.ts +2 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +12 -7
- package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +3 -17
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +8 -5
- package/src/libs/feature/editor/src/lib/record-form/record-form.component.ts +2 -1
- package/src/libs/feature/map/src/index.ts +1 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +21 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +107 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +37 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +64 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +55 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +63 -0
- package/src/libs/feature/map/src/lib/constant/index.ts +1 -0
- package/src/libs/feature/map/src/lib/feature-map.module.ts +14 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.css +0 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.html +39 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +99 -0
- package/src/libs/feature/map/src/lib/geocoding.service.ts +59 -0
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +9 -3
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +6 -0
- package/src/libs/feature/map/src/lib/utils/index.ts +0 -2
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +85 -50
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +18 -3
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +12 -4
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +1 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.ts +1 -1
- package/src/libs/ui/elements/src/index.ts +3 -0
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +4 -1
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.css +0 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +30 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +15 -0
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +264 -0
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.html +1 -0
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +16 -0
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +93 -27
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts +7 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +4 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +59 -32
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +5 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
- package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +4 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +7 -0
- package/src/libs/ui/inputs/src/lib/button/button.component.css +1 -1
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts +7 -4
- package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +48 -0
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +8 -3
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css +1 -0
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -0
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +1 -1
- package/src/libs/ui/search/src/lib/record-table/record-table.component.html +2 -2
- package/src/libs/util/i18n/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/links/link-utils.ts +34 -11
- package/src/libs/util/shared/src/lib/utils/fuzzy-filter.ts +32 -0
- package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
- package/translations/de.json +102 -87
- package/translations/en.json +35 -20
- package/translations/es.json +15 -0
- package/translations/fr.json +19 -4
- package/translations/it.json +27 -12
- package/translations/nl.json +15 -0
- package/translations/pt.json +15 -0
- package/translations/sk.json +15 -0
- package/esm2022/libs/feature/map/src/lib/utils/map-utils-wms.service.mjs +0 -55
- package/esm2022/libs/feature/map/src/lib/utils/projections.mjs +0 -2
- package/libs/feature/map/src/lib/utils/map-utils-wms.service.d.ts +0 -17
- package/libs/feature/map/src/lib/utils/map-utils-wms.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/utils/projections.d.ts.map +0 -1
- package/src/libs/feature/map/src/lib/utils/map-utils-wms.service.ts +0 -58
- /package/libs/feature/map/src/lib/{utils → constant}/projections.d.ts +0 -0
- /package/src/libs/feature/map/src/lib/{utils → constant}/projections.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ImageOverlayPreviewComponent {
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
isPlaceholderShown: EventEmitter<boolean>;
|
|
6
|
+
openLightbox(src: string): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageOverlayPreviewComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageOverlayPreviewComponent, "gn-ui-image-overlay-preview", never, { "imageUrl": { "alias": "imageUrl"; "required": false; }; }, { "isPlaceholderShown": "isPlaceholderShown"; }, never, never, false, never>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=image-overlay-preview.component.d.ts.map
|
package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-overlay-preview.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;;AAGtE,qBAKa,4BAA4B;IAC9B,QAAQ,EAAE,MAAM,CAAA;IACf,kBAAkB,wBAA8B;IAC1D,YAAY,CAAC,GAAG,EAAE,MAAM;yCAHb,4BAA4B;2CAA5B,4BAA4B;CAMxC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class MarkdownParserComponent {
|
|
3
|
+
textContent: string;
|
|
4
|
+
get parsedMarkdown(): string | Promise<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownParserComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownParserComponent, "gn-ui-markdown-parser", never, { "textContent": { "alias": "textContent"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=markdown-parser.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-parser.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts"],"names":[],"mappings":";AAGA,qBAMa,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IAE5B,IAAI,cAAc,6BAEjB;yCALU,uBAAuB;2CAAvB,uBAAuB;CAMnC"}
|
|
@@ -7,6 +7,7 @@ export declare class MetadataContactComponent {
|
|
|
7
7
|
contactClick: EventEmitter<Individual>;
|
|
8
8
|
get shownOrganization(): Organization;
|
|
9
9
|
get contacts(): Individual[];
|
|
10
|
+
get address(): string[];
|
|
10
11
|
onOrganizationClick(): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataContactComponent, never>;
|
|
12
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<MetadataContactComponent, "gn-ui-metadata-contact", never, { "metadata": { "alias": "metadata"; "required": false; }; }, { "organizationClick": "organizationClick"; "contactClick": "contactClick"; }, never, never, false, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-contact.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,2DAA2D,CAAA;;AAElE,qBAMa,wBAAwB;IAC1B,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,iBAAiB,6BAAmC;IACpD,YAAY,2BAAiC;IAEvD,IAAI,iBAAiB,iBAEpB;IAED,IAAI,QAAQ,iBAMX;IAED,mBAAmB;
|
|
1
|
+
{"version":3,"file":"metadata-contact.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,2DAA2D,CAAA;;AAElE,qBAMa,wBAAwB;IAC1B,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,iBAAiB,6BAAmC;IACpD,YAAY,2BAAiC;IAEvD,IAAI,iBAAiB,iBAEpB;IAED,IAAI,QAAQ,iBAMX;IAED,IAAI,OAAO,aAKV;IAED,mBAAmB;yCAxBR,wBAAwB;2CAAxB,wBAAwB;CA2BpC"}
|
|
@@ -11,6 +11,7 @@ export declare class MetadataInfoComponent {
|
|
|
11
11
|
get updateFrequency(): string;
|
|
12
12
|
fieldReady(propName: string): boolean;
|
|
13
13
|
onKeywordClick(keyword: string): void;
|
|
14
|
+
copyText(): void;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataInfoComponent, never>;
|
|
15
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<MetadataInfoComponent, "gn-ui-metadata-info", never, { "metadata": { "alias": "metadata"; "required": false; }; "incomplete": { "alias": "incomplete"; "required": false; }; }, { "keyword": "keyword"; }, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-info.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;;AAEzF,qBAMa,qBAAqB;IACvB,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IAClB,OAAO,uBAA6B;IAC9C,YAAY,EAAE,MAAM,CAAA;IAEpB,IAAI,QAAQ,kBAMX;IAED,IAAI,MAAM,IAAI,MAAM,EAAE,CASrB;IAED,IAAI,eAAe,IAAI,MAAM,CAS5B;IAED,UAAU,CAAC,QAAQ,EAAE,MAAM;IAI3B,cAAc,CAAC,OAAO,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"metadata-info.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;;AAEzF,qBAMa,qBAAqB;IACvB,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IAClB,OAAO,uBAA6B;IAC9C,YAAY,EAAE,MAAM,CAAA;IAEpB,IAAI,QAAQ,kBAMX;IAED,IAAI,MAAM,IAAI,MAAM,EAAE,CASrB;IAED,IAAI,eAAe,IAAI,MAAM,CAS5B;IAED,UAAU,CAAC,QAAQ,EAAE,MAAM;IAI3B,cAAc,CAAC,OAAO,EAAE,MAAM;IAI9B,QAAQ;yCA5CG,qBAAqB;2CAArB,qBAAqB;CAgDjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, InjectionToken, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ElementRef, InjectionToken, OnChanges, OnInit, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const THUMBNAIL_PLACEHOLDER: InjectionToken<string>;
|
|
4
4
|
type FitOptions = 'cover' | 'contain' | 'scale-down';
|
|
@@ -8,6 +8,7 @@ export declare class ThumbnailComponent implements OnInit, OnChanges {
|
|
|
8
8
|
fit: FitOptions | FitOptions[];
|
|
9
9
|
imgElement: ElementRef<HTMLImageElement>;
|
|
10
10
|
containerElement: ElementRef<HTMLDivElement>;
|
|
11
|
+
placeholderShown: EventEmitter<boolean>;
|
|
11
12
|
imgUrl: string;
|
|
12
13
|
imgFit: FitOptions;
|
|
13
14
|
placeholderUrl: string;
|
|
@@ -22,7 +23,7 @@ export declare class ThumbnailComponent implements OnInit, OnChanges {
|
|
|
22
23
|
useFallback(): void;
|
|
23
24
|
setObjectFit(): void;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThumbnailComponent, [{ optional: true; }]>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThumbnailComponent, "gn-ui-thumbnail", never, { "thumbnailUrl": { "alias": "thumbnailUrl"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThumbnailComponent, "gn-ui-thumbnail", never, { "thumbnailUrl": { "alias": "thumbnailUrl"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; }, { "placeholderShown": "placeholderShown"; }, never, never, false, never>;
|
|
26
27
|
}
|
|
27
28
|
export {};
|
|
28
29
|
//# sourceMappingURL=thumbnail.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thumbnail.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEV,cAAc,EAEd,SAAS,EACT,MAAM,EAEN,aAAa,
|
|
1
|
+
{"version":3,"file":"thumbnail.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEV,cAAc,EAEd,SAAS,EACT,MAAM,EAEN,aAAa,EAGb,YAAY,EACb,MAAM,eAAe,CAAA;;AAEtB,eAAO,MAAM,qBAAqB,wBAEjC,CAAA;AAUD,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAA;AAEpD,qBAKa,kBAAmB,YAAW,MAAM,EAAE,SAAS;IAiBxD,OAAO,CAAC,sBAAsB;IAhBvB,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B,GAAG,EAAE,UAAU,GAAG,UAAU,EAAE,CAAU;IACtB,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IACpC,gBAAgB,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IACjE,gBAAgB,wBAA8B;IACxD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,UAAU,CAAA;IAClB,cAAc,SAAqD;IACnE,IAAI,aAAa,YAEhB;IACD,OAAO,CAAC,MAAM,CAA6B;gBAKjC,sBAAsB,EAAE,MAAM;IAGxC,QAAQ;IAIR,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAOzC,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,cAAc;IAItB,WAAW;IASX,YAAY;yCAvED,kBAAkB;2CAAlB,kBAAkB;CAiF9B"}
|
|
@@ -19,19 +19,21 @@ import * as i17 from "./metadata-info/linkify.directive";
|
|
|
19
19
|
import * as i18 from "./pagination-buttons/pagination-buttons.component";
|
|
20
20
|
import * as i19 from "./max-lines/max-lines.component";
|
|
21
21
|
import * as i20 from "./record-api-form/record-api-form.component";
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "@angular/
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "
|
|
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 "@angular/
|
|
22
|
+
import * as i21 from "./markdown-parser/markdown-parser.component";
|
|
23
|
+
import * as i22 from "./image-overlay-preview/image-overlay-preview.component";
|
|
24
|
+
import * as i23 from "@angular/common";
|
|
25
|
+
import * as i24 from "@angular/material/icon";
|
|
26
|
+
import * as i25 from "@angular/material/tooltip";
|
|
27
|
+
import * as i26 from "../../../widgets/src/lib/ui-widgets.module";
|
|
28
|
+
import * as i27 from "../../../layout/src/lib/ui-layout.module";
|
|
29
|
+
import * as i28 from "@ngx-translate/core";
|
|
30
|
+
import * as i29 from "../../../../util/shared/src/lib/util-shared.module";
|
|
31
|
+
import * as i30 from "@angular/router";
|
|
32
|
+
import * as i31 from "../../../inputs/src/lib/ui-inputs.module";
|
|
33
|
+
import * as i32 from "@angular/forms";
|
|
32
34
|
export declare class UiElementsModule {
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiElementsModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i17.GnUiLinkifyDirective, typeof i18.PaginationButtonsComponent, typeof i19.MaxLinesComponent, typeof i20.RecordApiFormComponent], [typeof
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i17.GnUiLinkifyDirective, typeof i18.PaginationButtonsComponent, typeof i19.MaxLinesComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent, typeof i22.ImageOverlayPreviewComponent], [typeof i23.CommonModule, typeof i24.MatIconModule, typeof i25.MatTooltipModule, typeof i26.UiWidgetsModule, typeof i27.UiLayoutModule, typeof i28.TranslateModule, typeof i29.UtilSharedModule, typeof i30.RouterModule, typeof i31.UiInputsModule, typeof i32.FormsModule, typeof i23.NgOptimizedImage], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i18.PaginationButtonsComponent, typeof i19.MaxLinesComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent, typeof i22.ImageOverlayPreviewComponent]>;
|
|
35
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiElementsModule>;
|
|
36
38
|
}
|
|
37
39
|
//# sourceMappingURL=ui-elements.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,qBA8Da,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-multiselect.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,YAAY,EAGZ,SAAS,EAGV,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;;
|
|
1
|
+
{"version":3,"file":"dropdown-multiselect.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,YAAY,EAGZ,SAAS,EAGV,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;;AAMrD,qBAMa,4BAA4B;IA8D3B,OAAO,CAAC,gBAAgB;IA7D3B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAK;IACxB,WAAW,UAAO;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,SAAK;IACpB,YAAY,0BAAgC;IAC1B,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAE5D,gBAAgB,EAAE,UAAU,CAAA;IAE5B,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAE9C,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IACjC,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IACD,cAAc,0DAAqC;IACnD,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,EAAE,SAA8D;IAEhE,IAAI,kBAAkB,YAErB;IAED,IAAI,eAAe,aAIlB;IAED,IAAI,qBAAqB,aAIxB;IAED,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;gBAEmB,gBAAgB,EAAE,qBAAqB;IAE3D,OAAO,CAAC,QAAQ;IAMhB,WAAW;IAiBX,YAAY;IAIN,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAqB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAgBzC,cAAc;IAId,aAAa;IAIb,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,UAAU,CAAC,MAAM,EAAE,MAAM;IAIzB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;IAOxC,MAAM,CAAC,MAAM,EAAE,MAAM;IAIrB,cAAc,CAAC,KAAK,EAAE,KAAK;IAK3B,qBAAqB,CAAC,KAAK,EAAE,KAAK;yCArKvB,4BAA4B;2CAA5B,4BAA4B;CA0KxC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EditableLabelDirective implements AfterViewInit {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
editableLabelChanged: EventEmitter<string>;
|
|
7
|
+
gnUiEditableLabel?: boolean;
|
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditableLabelDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EditableLabelDirective, "[gnUiEditableLabel]", never, { "gnUiEditableLabel": { "alias": "gnUiEditableLabel"; "required": false; }; }, { "editableLabelChanged": "editableLabelChanged"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=editable-label.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editable-label.directive.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,EAGb,MAAM,eAAe,CAAA;;AAEtB,qBAIa,sBAAuB,YAAW,aAAa;IAI9C,OAAO,CAAC,EAAE;IAAc,OAAO,CAAC,QAAQ;IAH1C,oBAAoB,uBAA6B;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAA;gBAEhB,EAAE,EAAE,UAAU,EAAU,QAAQ,EAAE,SAAS;IAE/D,eAAe;yCANJ,sBAAsB;2CAAtB,sBAAsB;CAiClC"}
|
|
@@ -39,9 +39,10 @@ import * as i37 from "@angular/material/form-field";
|
|
|
39
39
|
import * as i38 from "@angular/material/input";
|
|
40
40
|
import * as i39 from "@angular/material/datepicker";
|
|
41
41
|
import * as i40 from "@angular/material/core";
|
|
42
|
+
import * as i41 from "./editable-label/editable-label.directive";
|
|
42
43
|
export declare class UiInputsModule {
|
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
|
|
44
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.ButtonComponent, typeof i4.TextInputComponent, typeof i5.DragAndDropFileInputComponent, typeof i6.TextAreaComponent, typeof i7.ChipsInputComponent, typeof i8.NavigationButtonComponent, typeof i9.StarToggleComponent, typeof i10.DropdownMultiselectComponent, typeof i11.ViewportIntersectorComponent, typeof i12.FormFieldComponent, typeof i13.FormFieldSimpleComponent, typeof i14.FormFieldArrayComponent, typeof i15.FormFieldObjectComponent, typeof i16.FormFieldRichComponent, typeof i17.FormFieldFileComponent, typeof i18.FormFieldSpatialExtentComponent, typeof i19.FormFieldTemporalExtentComponent, typeof i20.CheckToggleComponent, typeof i21.CopyTextButtonComponent, typeof i22.CheckboxComponent, typeof i23.SearchInputComponent, typeof i24.DateRangePickerComponent], [typeof i25.CommonModule, typeof i26.TranslateModule, typeof i27.NgxDropzoneModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.TagInputModule, typeof i30.UtilSharedModule, typeof i31.MatAutocompleteModule, typeof i32.MatIconModule, typeof i33.UiWidgetsModule, typeof i34.OverlayModule, typeof i35.MatCheckboxModule, typeof i36.MatTooltipModule, typeof i37.MatFormFieldModule, typeof i38.MatInputModule, typeof i39.MatDatepickerModule, typeof i40.MatNativeDateModule], [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.ButtonComponent, typeof i4.TextInputComponent, typeof i5.DragAndDropFileInputComponent, typeof i6.TextAreaComponent, typeof i7.ChipsInputComponent, typeof i8.NavigationButtonComponent, typeof i9.StarToggleComponent, typeof i10.DropdownMultiselectComponent, typeof i11.ViewportIntersectorComponent, typeof i12.FormFieldComponent, typeof i20.CheckToggleComponent, typeof i21.CopyTextButtonComponent, typeof i22.CheckboxComponent, typeof i23.SearchInputComponent, typeof i24.DateRangePickerComponent]>;
|
|
45
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.ButtonComponent, typeof i4.TextInputComponent, typeof i5.DragAndDropFileInputComponent, typeof i6.TextAreaComponent, typeof i7.ChipsInputComponent, typeof i8.NavigationButtonComponent, typeof i9.StarToggleComponent, typeof i10.DropdownMultiselectComponent, typeof i11.ViewportIntersectorComponent, typeof i12.FormFieldComponent, typeof i13.FormFieldSimpleComponent, typeof i14.FormFieldArrayComponent, typeof i15.FormFieldObjectComponent, typeof i16.FormFieldRichComponent, typeof i17.FormFieldFileComponent, typeof i18.FormFieldSpatialExtentComponent, typeof i19.FormFieldTemporalExtentComponent, typeof i20.CheckToggleComponent, typeof i21.CopyTextButtonComponent, typeof i22.CheckboxComponent, typeof i23.SearchInputComponent, typeof i24.DateRangePickerComponent], [typeof i25.CommonModule, typeof i26.TranslateModule, typeof i27.NgxDropzoneModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.TagInputModule, typeof i30.UtilSharedModule, typeof i31.MatAutocompleteModule, typeof i32.MatIconModule, typeof i33.UiWidgetsModule, typeof i34.OverlayModule, typeof i35.MatCheckboxModule, typeof i36.MatTooltipModule, typeof i37.MatFormFieldModule, typeof i38.MatInputModule, typeof i39.MatDatepickerModule, typeof i40.MatNativeDateModule, typeof i41.EditableLabelDirective], [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.ButtonComponent, typeof i4.TextInputComponent, typeof i5.DragAndDropFileInputComponent, typeof i6.TextAreaComponent, typeof i7.ChipsInputComponent, typeof i8.NavigationButtonComponent, typeof i9.StarToggleComponent, typeof i10.DropdownMultiselectComponent, typeof i11.ViewportIntersectorComponent, typeof i12.FormFieldComponent, typeof i20.CheckToggleComponent, typeof i21.CopyTextButtonComponent, typeof i22.CheckboxComponent, typeof i23.SearchInputComponent, typeof i24.DateRangePickerComponent, typeof i41.EditableLabelDirective]>;
|
|
45
46
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
|
|
46
47
|
}
|
|
47
48
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,qBAoEa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
|
|
@@ -5,4 +5,5 @@ export * from './lib/lang.service';
|
|
|
5
5
|
export * from './lib/file.translate.loader';
|
|
6
6
|
export * from './lib/testing/test.translate.module';
|
|
7
7
|
export * from './lib/embedded.translate.loader';
|
|
8
|
+
export * from './lib/translate.loader.utils';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/i18n/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,iCAAiC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/i18n/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,8BAA8B,CAAA"}
|
|
@@ -30,47 +30,59 @@ export declare const FORMATS: {
|
|
|
30
30
|
readonly color: "#328556";
|
|
31
31
|
readonly mimeTypes: readonly ["x-gis/x-shapefile"];
|
|
32
32
|
};
|
|
33
|
+
readonly gml: {
|
|
34
|
+
readonly extensions: readonly ["gml"];
|
|
35
|
+
readonly priority: 5;
|
|
36
|
+
readonly color: "#c92bce";
|
|
37
|
+
readonly mimeTypes: readonly ["application/gml+xml", "text/xml; subtype=gml"];
|
|
38
|
+
};
|
|
33
39
|
readonly kml: {
|
|
34
40
|
readonly extensions: readonly ["kml", "kmz"];
|
|
35
|
-
readonly priority:
|
|
41
|
+
readonly priority: 6;
|
|
36
42
|
readonly color: "#348009";
|
|
37
43
|
readonly mimeTypes: readonly ["application/vnd.google-earth.kml+xml", "application/vnd.google-earth.kmz"];
|
|
38
44
|
};
|
|
39
45
|
readonly gpkg: {
|
|
40
46
|
readonly extensions: readonly ["gpkg", "geopackage"];
|
|
41
|
-
readonly priority:
|
|
47
|
+
readonly priority: 7;
|
|
42
48
|
readonly color: "#ea79ba";
|
|
43
49
|
readonly mimeTypes: readonly ["application/geopackage+sqlite3"];
|
|
44
50
|
};
|
|
45
51
|
readonly zip: {
|
|
46
52
|
readonly extensions: readonly ["zip", "tar.gz"];
|
|
47
|
-
readonly priority:
|
|
53
|
+
readonly priority: 8;
|
|
48
54
|
readonly color: "#f2bb3a";
|
|
49
55
|
readonly mimeTypes: readonly ["application/zip", "application/x-zip"];
|
|
50
56
|
};
|
|
51
57
|
readonly pdf: {
|
|
52
58
|
readonly extensions: readonly ["pdf"];
|
|
53
|
-
readonly priority:
|
|
59
|
+
readonly priority: 9;
|
|
54
60
|
readonly color: "#db544a";
|
|
55
61
|
readonly mimeTypes: readonly ["application/pdf"];
|
|
56
62
|
};
|
|
57
63
|
readonly jpg: {
|
|
58
64
|
readonly extensions: readonly ["jpg", "jpeg", "jfif", "pjpeg", "pjp"];
|
|
59
|
-
readonly priority:
|
|
65
|
+
readonly priority: 9;
|
|
60
66
|
readonly color: "#673ab7";
|
|
61
67
|
readonly mimeTypes: readonly ["image/jpg"];
|
|
62
68
|
};
|
|
63
69
|
readonly svg: {
|
|
64
70
|
readonly extensions: readonly ["svg"];
|
|
65
|
-
readonly priority:
|
|
71
|
+
readonly priority: 10;
|
|
66
72
|
readonly color: "#d98294";
|
|
67
73
|
readonly mimeTypes: readonly ["image/svg+xml"];
|
|
68
74
|
};
|
|
75
|
+
readonly dxf: {
|
|
76
|
+
readonly extensions: readonly ["dxf"];
|
|
77
|
+
readonly priority: 11;
|
|
78
|
+
readonly color: "#de630b";
|
|
79
|
+
readonly mimeTypes: readonly ["application/x-dxf", "image/x-dxf"];
|
|
80
|
+
};
|
|
69
81
|
};
|
|
70
82
|
export type FileFormat = keyof typeof FORMATS;
|
|
71
83
|
export declare function getFormatPriority(linkFormat: FileFormat): number;
|
|
72
84
|
export declare function getLinkPriority(link: DatasetDistribution): number;
|
|
73
|
-
export declare function
|
|
85
|
+
export declare function getFileFormatFromServiceOutput(serviceOutput: string): FileFormat | null;
|
|
74
86
|
export declare function getFileFormat(link: DatasetDistribution): FileFormat;
|
|
75
87
|
export declare function isFormatInQueryParam(link: DatasetDistribution, alias: string): boolean;
|
|
76
88
|
export declare function mimeTypeToFormat(mimeType: string): FileFormat;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAEjE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAcnE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CA0B9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type FuzzyFilter = (input: string) => boolean;
|
|
2
|
+
/**
|
|
3
|
+
* This creates a filter function based on a pattern (typically a user-input
|
|
4
|
+
* search text).
|
|
5
|
+
* @param pattern
|
|
6
|
+
*/
|
|
7
|
+
export declare function createFuzzyFilter(pattern: string): FuzzyFilter;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=fuzzy-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fuzzy-filter.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/fuzzy-filter.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;AAkB7C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAQ9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geonetwork-ui",
|
|
3
|
-
"version": "2.2.0-dev.
|
|
3
|
+
"version": "2.2.0-dev.ca028047",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.17.0"
|
|
6
6
|
},
|
|
@@ -48,12 +48,14 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
|
|
50
50
|
"@camptocamp/ogc-client": "^0.4.0",
|
|
51
|
+
"@geospatial-sdk/geocoding": "^0.0.5-alpha.1",
|
|
51
52
|
"@ltd/j-toml": "~1.35.2",
|
|
52
53
|
"@messageformat/core": "^3.0.1",
|
|
53
54
|
"@nx/angular": "16.6.0",
|
|
54
55
|
"@rgrove/parse-xml": "~4.0.1",
|
|
55
56
|
"alasql": "^3.1.0",
|
|
56
57
|
"axios": "^1.6.0",
|
|
58
|
+
"basiclightbox": "^5.0.4",
|
|
57
59
|
"chart.js": "^4.2.0",
|
|
58
60
|
"chroma-js": "^2.1.2",
|
|
59
61
|
"date-fns": "^2.29.3",
|
|
@@ -62,6 +64,7 @@
|
|
|
62
64
|
"embla-carousel": "^8.0.0-rc14",
|
|
63
65
|
"express": "^4.17.1",
|
|
64
66
|
"geojson-validation": "^1.0.2",
|
|
67
|
+
"marked": "^11.1.1",
|
|
65
68
|
"moment": "^2.29.4",
|
|
66
69
|
"ng-table-virtual-scroll": "^1.4.1",
|
|
67
70
|
"ngx-chips": "3.0.0",
|
|
@@ -41,6 +41,9 @@ export const toDate = (field) => new Date(field)
|
|
|
41
41
|
export const getFirstValue = (field) =>
|
|
42
42
|
Array.isArray(field) ? field[0] : field
|
|
43
43
|
|
|
44
|
+
export const getArrayItem = (field, index) =>
|
|
45
|
+
Array.isArray(field) && field[index] !== undefined ? field[index] : null
|
|
46
|
+
|
|
44
47
|
export const getAsArray = (field) =>
|
|
45
48
|
Array.isArray(field) ? field : field !== null ? [field] : []
|
|
46
49
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getArrayItem,
|
|
2
3
|
getAsArray,
|
|
3
4
|
getAsUrl,
|
|
4
5
|
getFirstValue,
|
|
@@ -22,6 +23,7 @@ import {
|
|
|
22
23
|
DatasetDistributionType,
|
|
23
24
|
DatasetDownloadDistribution,
|
|
24
25
|
DatasetServiceDistribution,
|
|
26
|
+
DatasetSpatialExtent,
|
|
25
27
|
OnlineLinkResource,
|
|
26
28
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
27
29
|
import { matchProtocol } from '../common/distribution.mapper'
|
|
@@ -258,6 +260,47 @@ export class Gn4FieldMapper {
|
|
|
258
260
|
kind,
|
|
259
261
|
}
|
|
260
262
|
},
|
|
263
|
+
geom: (output, source) => {
|
|
264
|
+
const geoms = getAsArray(selectField(source, 'geom'))
|
|
265
|
+
const shapes = getAsArray(selectField(source, 'shape'))
|
|
266
|
+
const extentDescriptions = getAsArray(
|
|
267
|
+
selectField(source, 'extentDescriptionObject')
|
|
268
|
+
)
|
|
269
|
+
const spatialExtents = getAsArray(selectField(source, 'spatialExtents'))
|
|
270
|
+
return {
|
|
271
|
+
...output,
|
|
272
|
+
spatialExtents: [
|
|
273
|
+
...spatialExtents,
|
|
274
|
+
...geoms.map((geom, index) => {
|
|
275
|
+
const description = selectTranslatedValue(
|
|
276
|
+
getArrayItem(extentDescriptions, index),
|
|
277
|
+
this.lang3
|
|
278
|
+
)
|
|
279
|
+
const geometry = shapes[index] ?? geom
|
|
280
|
+
return {
|
|
281
|
+
...(description !== null ? { description } : null),
|
|
282
|
+
geometry,
|
|
283
|
+
} as DatasetSpatialExtent
|
|
284
|
+
}),
|
|
285
|
+
],
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
resourceTemporalDateRange: (output, source) => {
|
|
289
|
+
const ranges = getAsArray(
|
|
290
|
+
selectField(source, 'resourceTemporalDateRange')
|
|
291
|
+
)
|
|
292
|
+
return {
|
|
293
|
+
...output,
|
|
294
|
+
temporalExtents: ranges.map((range) => {
|
|
295
|
+
const start = selectField(range, 'gte')
|
|
296
|
+
const end = selectField(range, 'lte')
|
|
297
|
+
return {
|
|
298
|
+
...(start !== null ? { start: toDate(start) } : null),
|
|
299
|
+
...(end !== null ? { end: toDate(end) } : null),
|
|
300
|
+
}
|
|
301
|
+
}),
|
|
302
|
+
}
|
|
303
|
+
},
|
|
261
304
|
}
|
|
262
305
|
|
|
263
306
|
private genericField = (output) => output
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
2
|
-
import { Individual } from './contact.model'
|
|
3
|
-
import { Organization } from './organization.model'
|
|
2
|
+
import type { Individual } from './contact.model'
|
|
3
|
+
import type { Organization } from './organization.model'
|
|
4
|
+
import type { Geometry } from 'geojson'
|
|
4
5
|
|
|
5
6
|
type Uuid = string
|
|
6
7
|
|
|
@@ -122,6 +123,7 @@ export interface DatasetDownloadDistribution {
|
|
|
122
123
|
// textEncoding?: string
|
|
123
124
|
name?: string
|
|
124
125
|
description?: string
|
|
126
|
+
accessServiceProtocol?: ServiceProtocol
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
export interface OnlineLinkResource {
|
|
@@ -145,13 +147,16 @@ export interface GraphicOverview {
|
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
export interface DatasetSpatialExtent {
|
|
148
|
-
geometry:
|
|
150
|
+
geometry: Geometry
|
|
149
151
|
description?: string
|
|
150
152
|
}
|
|
151
153
|
|
|
154
|
+
/**
|
|
155
|
+
* At least a start or an end date should be provided
|
|
156
|
+
*/
|
|
152
157
|
export interface DatasetTemporalExtent {
|
|
153
|
-
start
|
|
154
|
-
end
|
|
158
|
+
start?: Date
|
|
159
|
+
end?: Date
|
|
155
160
|
description?: string
|
|
156
161
|
}
|
|
157
162
|
|
|
@@ -163,8 +168,8 @@ export interface DatasetRecord extends BaseRecord {
|
|
|
163
168
|
datasetUpdated?: Date
|
|
164
169
|
lineage: string // Explanation of the origin of this record (e.g: how, why)"
|
|
165
170
|
distributions: Array<DatasetDistribution>
|
|
166
|
-
spatialExtents: Array<DatasetSpatialExtent>
|
|
167
|
-
temporalExtents: Array<DatasetTemporalExtent>
|
|
171
|
+
spatialExtents: Array<DatasetSpatialExtent>
|
|
172
|
+
temporalExtents: Array<DatasetTemporalExtent>
|
|
168
173
|
spatialRepresentation?: SpatialRepresentationType
|
|
169
174
|
}
|
|
170
175
|
|
|
@@ -13,6 +13,7 @@ import { map, startWith, tap } from 'rxjs/operators'
|
|
|
13
13
|
import { ORGANIZATION_URL_TOKEN } from '../feature-catalog.module'
|
|
14
14
|
import { OrganizationsServiceInterface } from '../../../../../../libs/common/domain/src/lib/organizations.service.interface'
|
|
15
15
|
import { SortByField } from '../../../../../../libs/common/domain/src/lib/model/search'
|
|
16
|
+
import { createFuzzyFilter } from '../../../../../../libs/util/shared/src'
|
|
16
17
|
|
|
17
18
|
@Component({
|
|
18
19
|
selector: 'gn-ui-organisations',
|
|
@@ -84,23 +85,8 @@ export class OrganisationsComponent {
|
|
|
84
85
|
|
|
85
86
|
private filterOrganisations(organisations: Organization[], filterBy: string) {
|
|
86
87
|
if (!filterBy) return organisations
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
.replace(/[^a-z0-9\s]/g, ' ') //ignore special characters (also without spaces like l')
|
|
90
|
-
.replace(/\s(?=.)/g, '.*') //replace whitespaces by "AND" separator
|
|
91
|
-
.replace(/\s/g, ''), //remove potential whitespaces left
|
|
92
|
-
'i'
|
|
93
|
-
)
|
|
94
|
-
return [...organisations].filter((org) => {
|
|
95
|
-
return this.normalizeString(org.name).match(filterRegex)
|
|
96
|
-
})
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private normalizeString(str: string) {
|
|
100
|
-
return str
|
|
101
|
-
.normalize('NFD')
|
|
102
|
-
.replace(/[\u0300-\u036f]/g, '')
|
|
103
|
-
.toLowerCase()
|
|
88
|
+
const filter = createFuzzyFilter(filterBy)
|
|
89
|
+
return organisations.filter((org) => filter(org.name))
|
|
104
90
|
}
|
|
105
91
|
|
|
106
92
|
private sortOrganisations(
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
SupportedTypes,
|
|
10
10
|
} from '../../../../../../libs/util/data-fetcher/src'
|
|
11
11
|
import {
|
|
12
|
-
extensionToFormat,
|
|
13
12
|
getFileFormat,
|
|
13
|
+
getFileFormatFromServiceOutput,
|
|
14
14
|
getMimeTypeForFormat,
|
|
15
15
|
ProxyService,
|
|
16
16
|
} from '../../../../../../libs/util/shared/src'
|
|
@@ -45,7 +45,7 @@ interface WfsDownloadUrls {
|
|
|
45
45
|
export class DataService {
|
|
46
46
|
constructor(private proxy: ProxyService) {}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
getDownloadUrlsFromWfs(
|
|
49
49
|
wfsUrl: string,
|
|
50
50
|
featureTypeName: string
|
|
51
51
|
): Observable<WfsDownloadUrls> {
|
|
@@ -120,7 +120,7 @@ export class DataService {
|
|
|
120
120
|
)
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
getDownloadUrlFromEsriRest(apiUrl: string, format: string): string {
|
|
124
124
|
return this.proxy.getProxiedUrl(
|
|
125
125
|
`${apiUrl}/query?f=${format}&where=1=1&outFields=*`
|
|
126
126
|
)
|
|
@@ -138,8 +138,11 @@ export class DataService {
|
|
|
138
138
|
map((urls) =>
|
|
139
139
|
Object.keys(urls).map((format) => ({
|
|
140
140
|
...wfsLink,
|
|
141
|
+
type: 'download',
|
|
141
142
|
url: new URL(urls[format]),
|
|
142
|
-
mimeType: getMimeTypeForFormat(
|
|
143
|
+
mimeType: getMimeTypeForFormat(
|
|
144
|
+
getFileFormatFromServiceOutput(format)
|
|
145
|
+
),
|
|
143
146
|
}))
|
|
144
147
|
)
|
|
145
148
|
)
|
|
@@ -153,7 +156,7 @@ export class DataService {
|
|
|
153
156
|
url: new URL(
|
|
154
157
|
this.getDownloadUrlFromEsriRest(esriRestLink.url.toString(), format)
|
|
155
158
|
),
|
|
156
|
-
mimeType: getMimeTypeForFormat(
|
|
159
|
+
mimeType: getMimeTypeForFormat(getFileFormatFromServiceOutput(format)),
|
|
157
160
|
}))
|
|
158
161
|
}
|
|
159
162
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common'
|
|
2
2
|
import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
3
3
|
import { EditorService, FormField } from '../services/editor.service'
|
|
4
|
+
import { UiInputsModule } from '../../../../../../libs/ui/inputs/src'
|
|
4
5
|
|
|
5
6
|
@Component({
|
|
6
7
|
selector: 'gn-ui-record-form',
|
|
@@ -8,7 +9,7 @@ import { EditorService, FormField } from '../services/editor.service'
|
|
|
8
9
|
styleUrls: ['./record-form.component.css'],
|
|
9
10
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
11
|
standalone: true,
|
|
11
|
-
imports: [CommonModule],
|
|
12
|
+
imports: [CommonModule, UiInputsModule],
|
|
12
13
|
})
|
|
13
14
|
export class RecordFormComponent {
|
|
14
15
|
constructor(public editorService: EditorService) {}
|
|
@@ -17,3 +17,4 @@ export * from './lib/layers-panel/layers-panel.component'
|
|
|
17
17
|
export * from './lib/add-layer-from-catalog/add-layer-from-catalog.component'
|
|
18
18
|
export * from './lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component'
|
|
19
19
|
export * from './lib/map-container/map-container.component'
|
|
20
|
+
export * from './lib/geocoding/geocoding.component'
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<div class="flex flex-col gap-2 my-2">
|
|
2
|
+
<div class="flex items-center gap-4">
|
|
3
|
+
<div class="flex-grow rounded-md border-2 border-gray-200">
|
|
4
|
+
<gn-ui-drag-and-drop-file-input
|
|
5
|
+
(fileChange)="handleFileChange($event)"
|
|
6
|
+
[accept]="acceptedMimeType.join(',')"
|
|
7
|
+
[placeholder]="'map.addFromFile.placeholder' | translate"
|
|
8
|
+
class="placeholder-grey"
|
|
9
|
+
></gn-ui-drag-and-drop-file-input>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<p class="text-sm text-gray-600" translate>map.help.addFromFile</p>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div *ngIf="errorMessage" class="text-red-500 mt-2">
|
|
16
|
+
{{ errorMessage }}
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div *ngIf="successMessage" class="text-green-500 mt-2">
|
|
20
|
+
{{ successMessage }}
|
|
21
|
+
</div>
|