geonetwork-ui 2.2.0-dev.0f95f702 → 2.2.0-dev.2446b017
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/repository/src/index.mjs +2 -1
- package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +2 -2
- package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +3 -3
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/state/effects.mjs +3 -3
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +10 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +22 -3
- package/fesm2022/geonetwork-ui.mjs +30 -5
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/repository/src/index.d.ts +1 -0
- package/libs/api/repository/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/effects.d.ts +1 -1
- package/libs/feature/search/src/lib/state/effects.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- 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/inputs/src/lib/button/button.component.d.ts +2 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/package.json +8 -6
- package/src/libs/api/repository/src/index.ts +1 -0
- package/src/libs/feature/auth/src/lib/feature-auth.module.ts +1 -1
- package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +1 -1
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +1 -4
- package/src/libs/feature/search/src/lib/feature-search.module.ts +1 -1
- package/src/libs/feature/search/src/lib/state/effects.ts +1 -1
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +1 -1
- 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/inputs/src/lib/button/button.component.ts +26 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/api/repository/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/api/repository/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy } from '@angula
|
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { Observable, Subscription } from 'rxjs';
|
|
4
4
|
import { CatalogRecord } from '../../../../../../../libs/common/domain/src/lib/model/record';
|
|
5
|
-
import { AuthService, FavoritesService } from '../../../../../../../libs/api/repository/src
|
|
5
|
+
import { AuthService, FavoritesService } from '../../../../../../../libs/api/repository/src';
|
|
6
6
|
import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,
|
|
1
|
+
{"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;;AAErH,qBAMa,qBAAsB,YAAW,aAAa,EAAE,SAAS;IAmClE,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,gBAAgB;IAtC1B,IAAa,MAAM,CAAC,KAAK,eAAA,EAMxB;IACD,IAAI,MAAM,kBAET;IACD,WAAW,sBAEV;IACD,YAAY,sBAAqC;IACjD,OAAO,EAAE,aAAa,CAAA;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,OAAO,UAAQ;IACf,QAAQ,SAA4B;IACpC,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,CAKhC;IAED,aAAa,EAAE,UAAU,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,iBAAiB,EAAE,YAAY,CAAA;IAE/B,IAAI,gBAAgB,YAEnB;gBAGS,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EACzC,cAAc,EAAE,iBAAiB,EACjC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB;IAG5C,eAAe,IAAI,IAAI;IAoCvB,WAAW,IAAI,IAAI;IAKnB,cAAc,CAAC,UAAU,KAAA;yCAnFd,qBAAqB;2CAArB,qBAAqB;CAqGjC"}
|
|
@@ -4,7 +4,7 @@ import { Paginate, PatchResultsAggregations, RequestNewResults, SearchActions }
|
|
|
4
4
|
import { SearchState } from './reducer';
|
|
5
5
|
import { Geometry } from 'geojson';
|
|
6
6
|
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface';
|
|
7
|
-
import { FavoritesService } from '../../../../../../libs/api/repository/src
|
|
7
|
+
import { FavoritesService } from '../../../../../../libs/api/repository/src';
|
|
8
8
|
import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class SearchEffects {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/state/effects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAU,KAAK,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,EAIL,QAAQ,EAER,wBAAwB,EAKxB,iBAAiB,EACjB,aAAa,EAad,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,WAAW,EAAqB,MAAM,WAAW,CAAA;AAI1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|
|
@@ -3,7 +3,7 @@ import { Injector } from '@angular/core';
|
|
|
3
3
|
import { RecordsRepositoryInterface } from '../../../../../../../libs/common/domain/src/lib/repository/records-repository.interface';
|
|
4
4
|
import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface';
|
|
5
5
|
import { AggregationsParams, FieldFilters, TermBucket } from '../../../../../../../libs/common/domain/src/lib/model/search';
|
|
6
|
-
import { ElasticsearchService } from '../../../../../../../libs/api/repository/src
|
|
6
|
+
import { ElasticsearchService } from '../../../../../../../libs/api/repository/src';
|
|
7
7
|
export type FieldValue = string | number;
|
|
8
8
|
export interface FieldAvailableValue {
|
|
9
9
|
value: FieldValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/utils/service/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAsB,MAAM,MAAM,CAAA;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAIxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,yFAAyF,CAAA;AACpI,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;AACrH,OAAO,EAEL,kBAAkB,EAElB,YAAY,EACZ,UAAU,EACX,MAAM,8DAA8D,CAAA;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/utils/service/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAsB,MAAM,MAAM,CAAA;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAIxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,yFAAyF,CAAA;AACpI,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;AACrH,OAAO,EAEL,kBAAkB,EAElB,YAAY,EACZ,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OAAO,CAAC,WAAW,CAAmD;gBAElD,QAAQ,EAAE,QAAQ;IAEtC,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC;IAanE,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;IAMnE,kBAAkB,IAAI,UAAU,CAAC,mBAAmB,EAAE,CAAC;CAcxD;AACD,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,QAAQ,EAAE,QAAQ;IAI9B,kBAAkB,IAAI,UAAU,CAAC,mBAAmB,EAAE,CAAC;CAGxD"}
|
|
@@ -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"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ButtonComponent {
|
|
4
|
-
|
|
4
|
+
private btnClass;
|
|
5
|
+
set type(value: 'primary' | 'secondary' | 'default' | 'outline' | 'light');
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
extraClass: string;
|
|
7
8
|
buttonClick: EventEmitter<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAMa,eAAe;
|
|
1
|
+
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAMa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAQ;IAGxB,IAAa,IAAI,CACf,KAAK,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,EAmBjE;IAEQ,QAAQ,UAAQ;IAChB,UAAU,SAAK;IACd,WAAW,qBAA2B;IAEhD,IAAI,SAAS,WAEZ;IAED,WAAW,CAAC,KAAK,EAAE,KAAK;yCAlCb,eAAe;2CAAf,eAAe;CAuC3B"}
|
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.2446b017",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.17.0"
|
|
6
6
|
},
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"@ngrx/router-store": "16.x || 17.x",
|
|
40
40
|
"@ngrx/store": "16.x || 17.x",
|
|
41
41
|
"@ngrx/store-devtools": "16.x || 17.x",
|
|
42
|
-
"@nguniversal/express-engine": "16.x || 17.x",
|
|
43
42
|
"@ngx-translate/core": "14.x",
|
|
44
43
|
"@ngx-translate/http-loader": "7.x",
|
|
45
44
|
"rxjs": "7.x",
|
|
@@ -47,14 +46,14 @@
|
|
|
47
46
|
"tailwindcss": "3.x"
|
|
48
47
|
},
|
|
49
48
|
"dependencies": {
|
|
49
|
+
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
|
|
50
50
|
"@camptocamp/ogc-client": "^0.4.0",
|
|
51
51
|
"@ltd/j-toml": "~1.35.2",
|
|
52
52
|
"@messageformat/core": "^3.0.1",
|
|
53
|
-
"@rgrove/parse-xml": "~4.0.1",
|
|
54
53
|
"@nx/angular": "16.6.0",
|
|
55
|
-
"@
|
|
54
|
+
"@rgrove/parse-xml": "~4.0.1",
|
|
56
55
|
"alasql": "^3.1.0",
|
|
57
|
-
"axios": "^1.
|
|
56
|
+
"axios": "^1.6.0",
|
|
58
57
|
"chart.js": "^4.2.0",
|
|
59
58
|
"chroma-js": "^2.1.2",
|
|
60
59
|
"date-fns": "^2.29.3",
|
|
@@ -62,15 +61,18 @@
|
|
|
62
61
|
"duration-relativetimeformat": "^2.0.3",
|
|
63
62
|
"embla-carousel": "^8.0.0-rc14",
|
|
64
63
|
"express": "^4.17.1",
|
|
64
|
+
"geojson-validation": "^1.0.2",
|
|
65
65
|
"moment": "^2.29.4",
|
|
66
66
|
"ng-table-virtual-scroll": "^1.4.1",
|
|
67
67
|
"ngx-chips": "3.0.0",
|
|
68
68
|
"ngx-dropzone": "^3.0.0",
|
|
69
69
|
"ngx-translate-messageformat-compiler": "~6.5.0",
|
|
70
|
-
"ol": "^
|
|
70
|
+
"ol": "^8.2.0",
|
|
71
71
|
"papaparse": "^5.3.1",
|
|
72
72
|
"pg": "^8.9.0",
|
|
73
|
+
"proj4": "^2.9.2",
|
|
73
74
|
"reflect-metadata": "^0.1.13",
|
|
75
|
+
"semver": "^7.5.4",
|
|
74
76
|
"tippy.js": "^6.3.7",
|
|
75
77
|
"tslib": "^2.3.0",
|
|
76
78
|
"typeorm": "^0.3.14",
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
OrganizationsFromGroupsService,
|
|
21
21
|
OrganizationsFromMetadataService,
|
|
22
22
|
OrganizationsStrategy,
|
|
23
|
-
} from '../../../../../libs/api/repository/src
|
|
23
|
+
} from '../../../../../libs/api/repository/src'
|
|
24
24
|
import { PlatformServiceInterface } from '../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
25
25
|
|
|
26
26
|
// expects the replacement key ${name}
|
|
@@ -14,10 +14,7 @@ import { TranslateService } from '@ngx-translate/core'
|
|
|
14
14
|
import { StarToggleComponent } from '../../../../../../../libs/ui/inputs/src'
|
|
15
15
|
import { Observable, Subscription } from 'rxjs'
|
|
16
16
|
import { CatalogRecord } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
17
|
-
import {
|
|
18
|
-
AuthService,
|
|
19
|
-
FavoritesService,
|
|
20
|
-
} from '../../../../../../../libs/api/repository/src/lib/gn4'
|
|
17
|
+
import { AuthService, FavoritesService } from '../../../../../../../libs/api/repository/src'
|
|
21
18
|
import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
22
19
|
|
|
23
20
|
@Component({
|
|
@@ -23,7 +23,7 @@ import { FilterDropdownComponent } from './filter-dropdown/filter-dropdown.compo
|
|
|
23
23
|
import { Geometry } from 'geojson'
|
|
24
24
|
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
25
25
|
import { RecordsRepositoryInterface } from '../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
26
|
-
import { Gn4Repository } from '../../../../../libs/api/repository/src
|
|
26
|
+
import { Gn4Repository } from '../../../../../libs/api/repository/src'
|
|
27
27
|
|
|
28
28
|
// this geometry will be used to filter & boost results accordingly
|
|
29
29
|
export const FILTER_GEOMETRY = new InjectionToken<Promise<Geometry>>(
|
|
@@ -43,7 +43,7 @@ import { switchMapWithSearchId } from '../utils/operators/search.operator'
|
|
|
43
43
|
import { Geometry } from 'geojson'
|
|
44
44
|
import { FILTER_GEOMETRY } from '../feature-search.module'
|
|
45
45
|
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
46
|
-
import { FavoritesService } from '../../../../../../libs/api/repository/src
|
|
46
|
+
import { FavoritesService } from '../../../../../../libs/api/repository/src'
|
|
47
47
|
import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
48
48
|
import { valid as validGeoJson } from 'geojson-validation'
|
|
49
49
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
FieldFilters,
|
|
14
14
|
TermBucket,
|
|
15
15
|
} from '../../../../../../../libs/common/domain/src/lib/model/search'
|
|
16
|
-
import { ElasticsearchService } from '../../../../../../../libs/api/repository/src
|
|
16
|
+
import { ElasticsearchService } from '../../../../../../../libs/api/repository/src'
|
|
17
17
|
import { LangService } from '../../../../../../../libs/util/i18n/src'
|
|
18
18
|
|
|
19
19
|
export type FieldValue = string | number
|
|
@@ -1,32 +1,98 @@
|
|
|
1
|
-
<div
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<div class="py-5 px-5 rounded bg-gray-100 text-black mb-6 sm:mb-12">
|
|
2
|
+
<div class="grid gap-3">
|
|
3
|
+
<div>
|
|
4
|
+
<p class="text-sm font-medium" translate>record.metadata.contact</p>
|
|
5
|
+
</div>
|
|
6
6
|
<div
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
*ngIf="shownOrganization?.logoUrl?.href"
|
|
8
|
+
class="flex items-center justify-center border-solid border border-gray-300 rounded-md bg-white h-32 overflow-hidden"
|
|
9
9
|
>
|
|
10
|
-
|
|
10
|
+
<gn-ui-thumbnail
|
|
11
|
+
class="relative h-full w-full"
|
|
12
|
+
[thumbnailUrl]="shownOrganization.logoUrl.href"
|
|
13
|
+
fit="contain"
|
|
14
|
+
></gn-ui-thumbnail>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="grid gap-1">
|
|
17
|
+
<div class="flex">
|
|
18
|
+
<div
|
|
19
|
+
class="text-primary font-title text-21 mr-2 cursor-pointer hover:underline"
|
|
20
|
+
(click)="onOrganizationClick()"
|
|
21
|
+
data-cy="organization-name"
|
|
22
|
+
>
|
|
23
|
+
{{ shownOrganization.name }}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div *ngIf="shownOrganization?.website">
|
|
27
|
+
<a
|
|
28
|
+
[href]="shownOrganization.website"
|
|
29
|
+
target="_blank"
|
|
30
|
+
class="contact-website text-primary text-sm cursor-pointer hover:underline transition-all"
|
|
31
|
+
>{{ shownOrganization.website }}
|
|
32
|
+
<mat-icon
|
|
33
|
+
class="material-symbols-outlined !w-[12px] !h-[12px] !text-[12px] opacity-75 shrink-0"
|
|
34
|
+
>open_in_new</mat-icon
|
|
35
|
+
>
|
|
36
|
+
</a>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="grid gap-5 py-3 overflow-hidden">
|
|
40
|
+
<div *ngIf="contacts[0]?.phone">
|
|
41
|
+
<div class="flex">
|
|
42
|
+
<mat-icon
|
|
43
|
+
class="material-symbols-outlined !w-5 !h-5 !text-[20px] opacity-75 shrink-0"
|
|
44
|
+
>call_outline</mat-icon
|
|
45
|
+
>
|
|
46
|
+
<div class="flex flex-col ml-2">
|
|
47
|
+
<p class="text-sm">{{ contacts[0].phone }}</p>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div *ngIf="contacts[0]?.email">
|
|
52
|
+
<div class="flex">
|
|
53
|
+
<mat-icon
|
|
54
|
+
class="material-symbols-outlined !w-5 !h-5 !text-[20px] opacity-75 shrink-0"
|
|
55
|
+
>
|
|
56
|
+
mail_outline</mat-icon
|
|
57
|
+
>
|
|
58
|
+
<a
|
|
59
|
+
*ngIf="contacts.length"
|
|
60
|
+
[href]="'mailto:' + contacts[0].email"
|
|
61
|
+
class="text-sm hover:underline ml-2"
|
|
62
|
+
target="_blank"
|
|
63
|
+
data-cy="contact-email"
|
|
64
|
+
>{{ contacts[0].email }}</a
|
|
65
|
+
>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div *ngIf="contacts[0]?.firstName || contacts[0]?.lastName">
|
|
69
|
+
<div class="flex">
|
|
70
|
+
<mat-icon
|
|
71
|
+
class="material-symbols-outlined !w-5 !h-5 !text-[20px] opacity-75 shrink-0"
|
|
72
|
+
>person_outline</mat-icon
|
|
73
|
+
>
|
|
74
|
+
<div class="flex flex-col ml-2">
|
|
75
|
+
<p class="text-sm">
|
|
76
|
+
{{ contacts[0]?.firstName || '' }}
|
|
77
|
+
{{ contacts[0]?.lastName || '' }}
|
|
78
|
+
</p>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
<div *ngIf="contacts[0]?.address">
|
|
83
|
+
<div class="flex">
|
|
84
|
+
<mat-icon
|
|
85
|
+
class="material-symbols-outlined !w-5 !h-5 !text-[20px] opacity-75 shrink-0"
|
|
86
|
+
>
|
|
87
|
+
location_on</mat-icon
|
|
88
|
+
>
|
|
89
|
+
<div class="flex flex-col ml-2">
|
|
90
|
+
<p *ngFor="let addressPart of address" class="text-sm">
|
|
91
|
+
{{ addressPart }}
|
|
92
|
+
</p>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
11
96
|
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<a
|
|
14
|
-
*ngIf="contacts.length"
|
|
15
|
-
[href]="'mailto:' + contacts[0].email"
|
|
16
|
-
class="text-gray-700 text-sm hover:underline"
|
|
17
|
-
target="_blank"
|
|
18
|
-
>{{ contacts[0].email }}</a
|
|
19
|
-
>
|
|
20
|
-
<div *ngIf="shownOrganization.website" class="mb-2">
|
|
21
|
-
<a
|
|
22
|
-
[href]="shownOrganization.website"
|
|
23
|
-
target="_blank"
|
|
24
|
-
class="contact-website text-primary text-sm cursor-pointer hover:underline transition-all"
|
|
25
|
-
>{{ shownOrganization.website }}
|
|
26
|
-
<mat-icon
|
|
27
|
-
class="material-symbols-outlined !w-[12px] !h-[12px] !text-[12px] opacity-75"
|
|
28
|
-
>open_in_new</mat-icon
|
|
29
|
-
>
|
|
30
|
-
</a>
|
|
31
97
|
</div>
|
|
32
98
|
</div>
|
|
@@ -34,6 +34,13 @@ export class MetadataContactComponent {
|
|
|
34
34
|
)
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
get address() {
|
|
38
|
+
const addressParts = this.contacts[0].address
|
|
39
|
+
.split(',')
|
|
40
|
+
.map((part) => part.trim())
|
|
41
|
+
return addressParts
|
|
42
|
+
}
|
|
43
|
+
|
|
37
44
|
onOrganizationClick() {
|
|
38
45
|
this.organizationClick.emit(this.shownOrganization)
|
|
39
46
|
}
|
|
@@ -14,14 +14,37 @@ import { propagateToDocumentOnly } from '../../../../../../libs/util/shared/src'
|
|
|
14
14
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
15
|
})
|
|
16
16
|
export class ButtonComponent {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
private btnClass: string
|
|
18
|
+
|
|
19
|
+
// btn-classes are explicited to allow tailwind recognize them and add it in css.
|
|
20
|
+
@Input() set type(
|
|
21
|
+
value: 'primary' | 'secondary' | 'default' | 'outline' | 'light'
|
|
22
|
+
) {
|
|
23
|
+
switch (value) {
|
|
24
|
+
case 'primary':
|
|
25
|
+
this.btnClass = 'btn-primary'
|
|
26
|
+
break
|
|
27
|
+
case 'secondary':
|
|
28
|
+
this.btnClass = 'btn-secondary'
|
|
29
|
+
break
|
|
30
|
+
case 'outline':
|
|
31
|
+
this.btnClass = 'btn-outline'
|
|
32
|
+
break
|
|
33
|
+
case 'light':
|
|
34
|
+
this.btnClass = 'btn-light'
|
|
35
|
+
break
|
|
36
|
+
default:
|
|
37
|
+
this.btnClass = 'btn-default'
|
|
38
|
+
break
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
19
42
|
@Input() disabled = false
|
|
20
43
|
@Input() extraClass = ''
|
|
21
44
|
@Output() buttonClick = new EventEmitter<void>()
|
|
22
45
|
|
|
23
46
|
get classList() {
|
|
24
|
-
return
|
|
47
|
+
return `${this.btnClass} ${this.extraClass}`
|
|
25
48
|
}
|
|
26
49
|
|
|
27
50
|
handleClick(event: Event) {
|