geonetwork-ui 2.8.0-dev.94b119e28 → 2.8.0-dev.b7a1670bc
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/common/resource-types.mjs +6 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +6 -4
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -1
- package/esm2022/libs/feature/dataviz/src/index.mjs +1 -2
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +9 -2
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +3 -3
- package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +2 -2
- package/esm2022/libs/feature/record/src/index.mjs +2 -1
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/stac-view/stac-view.component.mjs +230 -0
- package/esm2022/libs/feature/record/src/lib/stac-view/utils.mjs +26 -0
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +36 -22
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +2 -1
- package/esm2022/libs/ui/elements/src/index.mjs +2 -1
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.mjs +18 -0
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +21 -7
- package/esm2022/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.mjs +35 -0
- package/esm2022/libs/ui/layout/src/lib/paginable.interface.mjs +1 -1
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +13 -5
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +86 -32
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +1 -1
- package/esm2022/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.mjs +3 -3
- package/esm2022/translations/de.json +7 -3
- package/esm2022/translations/en.json +7 -3
- package/esm2022/translations/es.json +7 -3
- package/esm2022/translations/fr.json +7 -3
- package/esm2022/translations/it.json +7 -3
- package/esm2022/translations/nl.json +7 -3
- package/esm2022/translations/pt.json +7 -3
- package/esm2022/translations/sk.json +7 -3
- package/fesm2022/{geonetwork-ui-date-locales-MYnkDJ5h.mjs → geonetwork-ui-date-locales-DhlIiWpT.mjs} +2 -2
- package/fesm2022/{geonetwork-ui-date-locales-MYnkDJ5h.mjs.map → geonetwork-ui-date-locales-DhlIiWpT.mjs.map} +1 -1
- package/fesm2022/geonetwork-ui.mjs +563 -195
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
- package/libs/feature/dataviz/src/index.d.ts +0 -1
- package/libs/feature/dataviz/src/index.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +2 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +1 -0
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +5 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.d.ts +12 -5
- package/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts +3 -1
- package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +5 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/stac-view/stac-view.component.d.ts +53 -0
- package/libs/feature/record/src/lib/stac-view/stac-view.component.d.ts.map +1 -0
- package/libs/feature/record/src/lib/stac-view/utils.d.ts +7 -0
- package/libs/feature/record/src/lib/stac-view/utils.d.ts.map +1 -0
- package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.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/stac-items-result-grid/stac-items-result-grid.component.d.ts +8 -0
- package/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/index.d.ts +1 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +5 -0
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.d.ts +12 -0
- package/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/paginable.interface.d.ts +3 -3
- package/libs/ui/layout/src/lib/paginable.interface.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +2 -1
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +24 -14
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +11 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +11 -3
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -0
- package/src/libs/feature/dataviz/src/index.ts +0 -1
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +14 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +1 -0
- package/src/libs/feature/record/src/index.ts +1 -0
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +5 -1
- package/src/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.ts +10 -8
- package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +1 -1
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +1 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -2
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.css +8 -0
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.html +87 -0
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.ts +339 -0
- package/src/libs/feature/record/src/lib/stac-view/utils.ts +57 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +1 -1
- package/src/libs/feature/search/src/lib/constants.ts +1 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +1 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +37 -33
- package/src/libs/ui/elements/src/index.ts +1 -0
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.html +13 -0
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.ts +15 -0
- package/src/libs/ui/inputs/src/index.ts +1 -0
- package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.html +3 -3
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +17 -1
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.html +15 -0
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.ts +41 -0
- package/src/libs/ui/layout/src/lib/paginable.interface.ts +3 -3
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +12 -6
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +4 -1
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.html +16 -14
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +144 -65
- package/translations/de.json +7 -3
- package/translations/en.json +7 -3
- package/translations/es.json +7 -3
- package/translations/fr.json +7 -3
- package/translations/it.json +7 -3
- package/translations/nl.json +7 -3
- package/translations/pt.json +7 -3
- package/translations/sk.json +7 -3
- package/esm2022/libs/feature/dataviz/src/lib/stac-view/stac-view.component.mjs +0 -51
- package/libs/feature/dataviz/src/lib/stac-view/stac-view.component.d.ts +0 -16
- package/libs/feature/dataviz/src/lib/stac-view/stac-view.component.d.ts.map +0 -1
- package/src/libs/feature/dataviz/src/lib/stac-view/stac-view.component.html +0 -40
- package/src/libs/feature/dataviz/src/lib/stac-view/stac-view.component.ts +0 -62
- /package/src/libs/{feature/dataviz/src/lib/stac-view/stac-view.component.css → ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.css} +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
|
|
3
|
-
import { DatePickerComponent } from '../../../../../../libs/ui/inputs/src';
|
|
4
|
-
import { NgIconComponent, provideIcons } from '@ng-icons/core';
|
|
5
|
-
import { matDeleteOutline } from '@ng-icons/material-icons/outline';
|
|
6
|
-
import { TranslateDirective } from '@ngx-translate/core';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/common";
|
|
9
|
-
export class StacViewComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.currentTemporalExtent = null;
|
|
12
|
-
this.isTemporalFilterModified = false;
|
|
13
|
-
}
|
|
14
|
-
onStartDateChange(date) {
|
|
15
|
-
this.currentTemporalExtent = {
|
|
16
|
-
...this.currentTemporalExtent,
|
|
17
|
-
start: date,
|
|
18
|
-
};
|
|
19
|
-
this.isTemporalFilterModified = true;
|
|
20
|
-
}
|
|
21
|
-
onEndDateChange(date) {
|
|
22
|
-
this.currentTemporalExtent = {
|
|
23
|
-
...this.currentTemporalExtent,
|
|
24
|
-
end: date,
|
|
25
|
-
};
|
|
26
|
-
this.isTemporalFilterModified = true;
|
|
27
|
-
}
|
|
28
|
-
onResetFilters() {
|
|
29
|
-
this.currentTemporalExtent = this.initialTemporalExtent;
|
|
30
|
-
this.isTemporalFilterModified = false;
|
|
31
|
-
}
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
this.currentTemporalExtent = this.initialTemporalExtent;
|
|
34
|
-
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StacViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StacViewComponent, isStandalone: true, selector: "gn-ui-stac-view", inputs: { link: "link", initialTemporalExtent: "initialTemporalExtent" }, ngImport: i0, template: "<div\n class=\"w-full h-full flex flex-row mt-6 bg-white border border-gray-300 rounded-lg overflow-hidden\"\n>\n <div class=\"flex-1 flex flex-col\">\n <div class=\"m-8\">\n <p class=\"mb-4\" translate>stac.filter.period</p>\n <p translate>stac.filter.from</p>\n <gn-ui-date-picker\n id=\"start-date-picker\"\n [date]=\"currentTemporalExtent?.start\"\n (dateChange)=\"onStartDateChange($event)\"\n />\n <p class=\"mt-4\" translate>stac.filter.to</p>\n <gn-ui-date-picker\n id=\"end-date-picker\"\n [date]=\"currentTemporalExtent?.end\"\n (dateChange)=\"onEndDateChange($event)\"\n />\n </div>\n\n <div class=\"mt-auto mb-8 mx-8\" *ngIf=\"isTemporalFilterModified\">\n <button\n id=\"reset-filters-button\"\n type=\"button\"\n class=\"flex items-center\"\n (click)=\"onResetFilters()\"\n >\n <span translate>stac.filter.reset</span>\n <ng-icon\n name=\"matDeleteOutline\"\n class=\"pointer-events-none ml-2\"\n ></ng-icon>\n </button>\n </div>\n </div>\n\n <div class=\"w-[655px] flex-shrink-0 flex items-center justify-center\">\n <span>Map...</span>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DatePickerComponent, selector: "gn-ui-date-picker", inputs: ["date"], outputs: ["dateChange"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], viewProviders: [provideIcons({ matDeleteOutline })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StacViewComponent, decorators: [{
|
|
39
|
-
type: Component,
|
|
40
|
-
args: [{ selector: 'gn-ui-stac-view', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
41
|
-
CommonModule,
|
|
42
|
-
DatePickerComponent,
|
|
43
|
-
NgIconComponent,
|
|
44
|
-
TranslateDirective,
|
|
45
|
-
], viewProviders: [provideIcons({ matDeleteOutline })], template: "<div\n class=\"w-full h-full flex flex-row mt-6 bg-white border border-gray-300 rounded-lg overflow-hidden\"\n>\n <div class=\"flex-1 flex flex-col\">\n <div class=\"m-8\">\n <p class=\"mb-4\" translate>stac.filter.period</p>\n <p translate>stac.filter.from</p>\n <gn-ui-date-picker\n id=\"start-date-picker\"\n [date]=\"currentTemporalExtent?.start\"\n (dateChange)=\"onStartDateChange($event)\"\n />\n <p class=\"mt-4\" translate>stac.filter.to</p>\n <gn-ui-date-picker\n id=\"end-date-picker\"\n [date]=\"currentTemporalExtent?.end\"\n (dateChange)=\"onEndDateChange($event)\"\n />\n </div>\n\n <div class=\"mt-auto mb-8 mx-8\" *ngIf=\"isTemporalFilterModified\">\n <button\n id=\"reset-filters-button\"\n type=\"button\"\n class=\"flex items-center\"\n (click)=\"onResetFilters()\"\n >\n <span translate>stac.filter.reset</span>\n <ng-icon\n name=\"matDeleteOutline\"\n class=\"pointer-events-none ml-2\"\n ></ng-icon>\n </button>\n </div>\n </div>\n\n <div class=\"w-[655px] flex-shrink-0 flex items-center justify-center\">\n <span>Map...</span>\n </div>\n</div>\n" }]
|
|
46
|
-
}], propDecorators: { link: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], initialTemporalExtent: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}] } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhYy12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4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AgICA8YnV0dG9uXG4gICAgICAgIGlkPVwicmVzZXQtZmlsdGVycy1idXR0b25cIlxuICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgY2xhc3M9XCJmbGV4IGl0ZW1zLWNlbnRlclwiXG4gICAgICAgIChjbGljayk9XCJvblJlc2V0RmlsdGVycygpXCJcbiAgICAgID5cbiAgICAgICAgPHNwYW4gdHJhbnNsYXRlPnN0YWMuZmlsdGVyLnJlc2V0PC9zcGFuPlxuICAgICAgICA8bmctaWNvblxuICAgICAgICAgIG5hbWU9XCJtYXREZWxldGVPdXRsaW5lXCJcbiAgICAgICAgICBjbGFzcz1cInBvaW50ZXItZXZlbnRzLW5vbmUgbWwtMlwiXG4gICAgICAgID48L25nLWljb24+XG4gICAgICA8L2J1dHRvbj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG5cbiAgPGRpdiBjbGFzcz1cInctWzY1NXB4XSBmbGV4LXNocmluay0wIGZsZXggaXRlbXMtY2VudGVyIGp1c3RpZnktY2VudGVyXCI+XG4gICAgPHNwYW4+TWFwLi4uPC9zcGFuPlxuICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DatasetServiceDistribution, DatasetTemporalExtent } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class StacViewComponent implements OnInit {
|
|
5
|
-
link: DatasetServiceDistribution;
|
|
6
|
-
initialTemporalExtent: DatasetTemporalExtent | null;
|
|
7
|
-
currentTemporalExtent: DatasetTemporalExtent | null;
|
|
8
|
-
isTemporalFilterModified: boolean;
|
|
9
|
-
onStartDateChange(date: Date): void;
|
|
10
|
-
onEndDateChange(date: Date): void;
|
|
11
|
-
onResetFilters(): void;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StacViewComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StacViewComponent, "gn-ui-stac-view", never, { "link": { "alias": "link"; "required": false; }; "initialTemporalExtent": { "alias": "initialTemporalExtent"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=stac-view.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stac-view.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/dataviz/src/lib/stac-view/stac-view.component.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,MAAM,EACP,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,2DAA2D,CAAA;;AAMlE,qBAca,iBAAkB,YAAW,MAAM;IACrC,IAAI,EAAE,0BAA0B,CAAA;IAChC,qBAAqB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAE5D,qBAAqB,EAAE,qBAAqB,GAAG,IAAI,CAAO;IAC1D,wBAAwB,UAAQ;IAEhC,iBAAiB,CAAC,IAAI,EAAE,IAAI;IAQ5B,eAAe,CAAC,IAAI,EAAE,IAAI;IAQ1B,cAAc;IAKd,QAAQ;yCA5BG,iBAAiB;2CAAjB,iBAAiB;CA+B7B"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<div
|
|
2
|
-
class="w-full h-full flex flex-row mt-6 bg-white border border-gray-300 rounded-lg overflow-hidden"
|
|
3
|
-
>
|
|
4
|
-
<div class="flex-1 flex flex-col">
|
|
5
|
-
<div class="m-8">
|
|
6
|
-
<p class="mb-4" translate>stac.filter.period</p>
|
|
7
|
-
<p translate>stac.filter.from</p>
|
|
8
|
-
<gn-ui-date-picker
|
|
9
|
-
id="start-date-picker"
|
|
10
|
-
[date]="currentTemporalExtent?.start"
|
|
11
|
-
(dateChange)="onStartDateChange($event)"
|
|
12
|
-
/>
|
|
13
|
-
<p class="mt-4" translate>stac.filter.to</p>
|
|
14
|
-
<gn-ui-date-picker
|
|
15
|
-
id="end-date-picker"
|
|
16
|
-
[date]="currentTemporalExtent?.end"
|
|
17
|
-
(dateChange)="onEndDateChange($event)"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div class="mt-auto mb-8 mx-8" *ngIf="isTemporalFilterModified">
|
|
22
|
-
<button
|
|
23
|
-
id="reset-filters-button"
|
|
24
|
-
type="button"
|
|
25
|
-
class="flex items-center"
|
|
26
|
-
(click)="onResetFilters()"
|
|
27
|
-
>
|
|
28
|
-
<span translate>stac.filter.reset</span>
|
|
29
|
-
<ng-icon
|
|
30
|
-
name="matDeleteOutline"
|
|
31
|
-
class="pointer-events-none ml-2"
|
|
32
|
-
></ng-icon>
|
|
33
|
-
</button>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<div class="w-[655px] flex-shrink-0 flex items-center justify-center">
|
|
38
|
-
<span>Map...</span>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common'
|
|
2
|
-
import {
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
Component,
|
|
5
|
-
Input,
|
|
6
|
-
OnInit,
|
|
7
|
-
} from '@angular/core'
|
|
8
|
-
import {
|
|
9
|
-
DatasetServiceDistribution,
|
|
10
|
-
DatasetTemporalExtent,
|
|
11
|
-
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
12
|
-
import { DatePickerComponent } from '../../../../../../libs/ui/inputs/src'
|
|
13
|
-
import { NgIconComponent, provideIcons } from '@ng-icons/core'
|
|
14
|
-
import { matDeleteOutline } from '@ng-icons/material-icons/outline'
|
|
15
|
-
import { TranslateDirective } from '@ngx-translate/core'
|
|
16
|
-
|
|
17
|
-
@Component({
|
|
18
|
-
selector: 'gn-ui-stac-view',
|
|
19
|
-
templateUrl: './stac-view.component.html',
|
|
20
|
-
styleUrls: ['./stac-view.component.css'],
|
|
21
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
|
-
standalone: true,
|
|
23
|
-
imports: [
|
|
24
|
-
CommonModule,
|
|
25
|
-
DatePickerComponent,
|
|
26
|
-
NgIconComponent,
|
|
27
|
-
TranslateDirective,
|
|
28
|
-
],
|
|
29
|
-
viewProviders: [provideIcons({ matDeleteOutline })],
|
|
30
|
-
})
|
|
31
|
-
export class StacViewComponent implements OnInit {
|
|
32
|
-
@Input() link: DatasetServiceDistribution
|
|
33
|
-
@Input() initialTemporalExtent: DatasetTemporalExtent | null
|
|
34
|
-
|
|
35
|
-
currentTemporalExtent: DatasetTemporalExtent | null = null
|
|
36
|
-
isTemporalFilterModified = false
|
|
37
|
-
|
|
38
|
-
onStartDateChange(date: Date) {
|
|
39
|
-
this.currentTemporalExtent = {
|
|
40
|
-
...this.currentTemporalExtent,
|
|
41
|
-
start: date,
|
|
42
|
-
}
|
|
43
|
-
this.isTemporalFilterModified = true
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
onEndDateChange(date: Date) {
|
|
47
|
-
this.currentTemporalExtent = {
|
|
48
|
-
...this.currentTemporalExtent,
|
|
49
|
-
end: date,
|
|
50
|
-
}
|
|
51
|
-
this.isTemporalFilterModified = true
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
onResetFilters() {
|
|
55
|
-
this.currentTemporalExtent = this.initialTemporalExtent
|
|
56
|
-
this.isTemporalFilterModified = false
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
ngOnInit() {
|
|
60
|
-
this.currentTemporalExtent = this.initialTemporalExtent
|
|
61
|
-
}
|
|
62
|
-
}
|