geonetwork-ui 2.6.0-dev.502fa026d → 2.6.0-dev.ed41ee824
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/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +27 -6
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +22 -6
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +29 -7
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +21 -19
- package/esm2022/translations/en.json +1 -1
- package/fesm2022/geonetwork-ui.mjs +98 -40
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +1 -0
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts +9 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +8 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +10 -2
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +16 -16
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +1 -0
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +64 -38
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +26 -2
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +17 -17
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +20 -2
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +1 -0
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +27 -29
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +33 -3
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -4
- package/src/libs/util/shared/src/lib/links/link-utils.ts +20 -18
- package/tailwind.base.css +29 -1
- package/translations/en.json +1 -1
|
@@ -85,6 +85,7 @@ export interface OnlineLinkResource {
|
|
|
85
85
|
name?: string;
|
|
86
86
|
description?: string;
|
|
87
87
|
translations?: OnlineResourceTranslations;
|
|
88
|
+
mimeType?: string;
|
|
88
89
|
}
|
|
89
90
|
export type DatasetOnlineResource = (DatasetServiceDistribution | DatasetDownloadDistribution | OnlineLinkResource) & {
|
|
90
91
|
type: OnlineResourceType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/common/domain/src/lib/model/record/metadata.model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAA;AAE5B,KAAK,IAAI,GAAG,MAAM,CAAA;AASlB,eAAO,MAAM,yBAAyB,uMAgB5B,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAA;AAiB5E,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAA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AAY,CAAC,EAAE,0BAA0B,CAAA;CAC1C;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,UAAU,CAAA;IAChB,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAIlB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qBAAqB,CAAC,EAAE,eAAe,CAAA;IACvC,YAAY,CAAC,EAAE,0BAA0B,CAAA;CAC1C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"metadata.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/common/domain/src/lib/model/record/metadata.model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAA;AAE5B,KAAK,IAAI,GAAG,MAAM,CAAA;AASlB,eAAO,MAAM,yBAAyB,uMAgB5B,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAA;AAiB5E,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,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C3C,eAAe,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAA;CAC9C;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC5D;AAED,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,OAAO,CAAA;AAEvD,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,qBAAqB,CAAA;AAE1E,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,CAAA;AAEvE,MAAM,MAAM,iBAAiB,GACzB,MAAM,aAAa,GACnB,MAAM,WAAW,GACjB,MAAM,aAAa,CAAA"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { DatasetServiceDistribution } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
2
2
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
type CardSize = 'L' | 'M' | 'S' | 'XS';
|
|
4
5
|
export declare class ApiCardComponent implements OnInit, OnChanges {
|
|
6
|
+
private _size;
|
|
5
7
|
link: DatasetServiceDistribution;
|
|
6
8
|
currentLink: DatasetServiceDistribution;
|
|
9
|
+
private readonly sizeClassMap;
|
|
10
|
+
set size(value: CardSize);
|
|
11
|
+
get size(): 'L' | 'M' | 'S' | 'XS';
|
|
12
|
+
cardClass: string;
|
|
7
13
|
displayApiFormButton: boolean;
|
|
8
14
|
currentlyActive: boolean;
|
|
9
15
|
openRecordApiForm: EventEmitter<DatasetServiceDistribution>;
|
|
16
|
+
get generatedText(): "datahub.search.filter.generatedByWfs" | "datahub.search.filter.generatedByAPI";
|
|
10
17
|
ngOnInit(): void;
|
|
11
18
|
ngOnChanges(changes: SimpleChanges): void;
|
|
12
19
|
openRecordApiFormPanel(): void;
|
|
13
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCardComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ApiCardComponent, "gn-ui-api-card", never, { "link": { "alias": "link"; "required": false; }; "currentLink": { "alias": "currentLink"; "required": false; }; }, { "openRecordApiForm": "openRecordApiForm"; }, never, never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApiCardComponent, "gn-ui-api-card", never, { "link": { "alias": "link"; "required": false; }; "currentLink": { "alias": "currentLink"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "openRecordApiForm": "openRecordApiForm"; }, never, never, true, never>;
|
|
15
22
|
}
|
|
23
|
+
export {};
|
|
16
24
|
//# sourceMappingURL=api-card.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-card.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/api-card/api-card.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAA;AACtG,OAAO,EAGL,YAAY,EAEZ,SAAS,EACT,MAAM,EAEN,aAAa,EACd,MAAM,eAAe,CAAA;;AAQtB,qBAmBa,gBAAiB,YAAW,MAAM,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"api-card.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/api-card/api-card.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAA;AACtG,OAAO,EAGL,YAAY,EAEZ,SAAS,EACT,MAAM,EAEN,aAAa,EACd,MAAM,eAAe,CAAA;;AAQtB,KAAK,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;AAEtC,qBAmBa,gBAAiB,YAAW,MAAM,EAAE,SAAS;IACxD,OAAO,CAAC,KAAK,CAAwB;IAC5B,IAAI,EAAE,0BAA0B,CAAA;IAChC,WAAW,EAAE,0BAA0B,CAAA;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAK5B;IAED,IAAa,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGhC;IACD,IAAI,IAAI,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAEjC;IACD,SAAS,SAAK;IACd,oBAAoB,EAAE,OAAO,CAAA;IAC7B,eAAe,UAAQ;IACb,iBAAiB,EAAE,YAAY,CAAC,0BAA0B,CAAC,CACrB;IAEhD,IAAI,aAAa,oFAIhB;IAED,QAAQ;IAOR,WAAW,CAAC,OAAO,EAAE,aAAa;IAKlC,sBAAsB;yCA1CX,gBAAgB;2CAAhB,gBAAgB;CAgD5B"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
type CardSize = 'L' | 'M' | 'S' | 'XS';
|
|
4
5
|
export declare class DownloadItemComponent {
|
|
6
|
+
private _size;
|
|
5
7
|
link: DatasetOnlineResource;
|
|
6
8
|
color: string;
|
|
7
9
|
format: string;
|
|
8
10
|
isFromApi: boolean;
|
|
11
|
+
private readonly sizeClassMap;
|
|
12
|
+
set size(value: CardSize);
|
|
13
|
+
get size(): 'L' | 'M' | 'S' | 'XS';
|
|
14
|
+
cardClass: string;
|
|
9
15
|
exportUrl: EventEmitter<string>;
|
|
10
16
|
openUrl(): void;
|
|
11
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadItemComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadItemComponent, "gn-ui-download-item", never, { "link": { "alias": "link"; "required": false; }; "color": { "alias": "color"; "required": false; }; "format": { "alias": "format"; "required": false; }; "isFromApi": { "alias": "isFromApi"; "required": false; }; }, { "exportUrl": "exportUrl"; }, never, never, true, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadItemComponent, "gn-ui-download-item", never, { "link": { "alias": "link"; "required": false; }; "color": { "alias": "color"; "required": false; }; "format": { "alias": "format"; "required": false; }; "isFromApi": { "alias": "isFromApi"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "exportUrl": "exportUrl"; }, never, never, true, never>;
|
|
13
19
|
}
|
|
20
|
+
export {};
|
|
14
21
|
//# sourceMappingURL=download-item.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download-item.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/download-item/download-item.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAA;;AAMjG,qBAaa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"download-item.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/download-item/download-item.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAA;;AAMjG,KAAK,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;AAEtC,qBAaa,qBAAqB;IAChC,OAAO,CAAC,KAAK,CAAwB;IAC5B,IAAI,EAAE,qBAAqB,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAK5B;IAED,IAAa,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGhC;IACD,IAAI,IAAI,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAEjC;IACD,SAAS,SAAK;IACJ,SAAS,uBAA6B;IAEhD,OAAO;yCAvBI,qBAAqB;2CAArB,qBAAqB;CA0BjC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
type CardSize = 'L' | 'M' | 'S' | 'XS';
|
|
3
4
|
export declare class LinkCardComponent {
|
|
5
|
+
private _size;
|
|
4
6
|
link: DatasetOnlineResource;
|
|
5
|
-
|
|
7
|
+
private readonly sizeClassMap;
|
|
8
|
+
set size(value: CardSize);
|
|
9
|
+
get size(): 'L' | 'M' | 'S' | 'XS';
|
|
10
|
+
cardClass: string;
|
|
6
11
|
get title(): string;
|
|
12
|
+
getLinkFormat(link: any): "html" | "svg" | "gml" | "json" | "pdf" | "csv" | "excel" | "geojson" | "shp" | "kml" | "gpkg" | "zip" | "jpg" | "dxf" | "fgb" | "jsonfg";
|
|
13
|
+
getLinkColor(link: any): string;
|
|
7
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkCardComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LinkCardComponent, "gn-ui-link-card", never, { "link": { "alias": "link"; "required": false; }; "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkCardComponent, "gn-ui-link-card", never, { "link": { "alias": "link"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
16
|
}
|
|
17
|
+
export {};
|
|
10
18
|
//# sourceMappingURL=link-card.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-card.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/link-card/link-card.component.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"link-card.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/link-card/link-card.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,qBAAqB,EAEtB,MAAM,2DAA2D,CAAA;;AAWlE,KAAK,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;AACtC,qBAca,iBAAiB;IAC5B,OAAO,CAAC,KAAK,CAAwB;IAC5B,IAAI,EAAE,qBAAqB,CAAA;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAK5B;IAED,IAAa,IAAI,CAAC,KAAK,EAAE,QAAQ,EAGhC;IACD,IAAI,IAAI,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAEjC;IACD,SAAS,SAAK;IAEd,IAAI,KAAK,WAKR;IAED,aAAa,CAAC,IAAI,EAAE,GAAG;IAIvB,YAAY,CAAC,IAAI,EAAE,GAAG;yCA9BX,iBAAiB;2CAAjB,iBAAiB;CAiC7B"}
|
|
@@ -3,97 +3,97 @@ export declare const FORMATS: {
|
|
|
3
3
|
readonly csv: {
|
|
4
4
|
readonly extensions: readonly ["csv"];
|
|
5
5
|
readonly priority: 1;
|
|
6
|
-
readonly color: "#
|
|
6
|
+
readonly color: "#F6A924";
|
|
7
7
|
readonly mimeTypes: readonly ["text/csv", "application/csv"];
|
|
8
8
|
};
|
|
9
9
|
readonly excel: {
|
|
10
10
|
readonly extensions: readonly ["excel", "xls", "xlsx", "ms-excel", "openxmlformats-officedocument"];
|
|
11
11
|
readonly priority: 2;
|
|
12
|
-
readonly color: "#
|
|
12
|
+
readonly color: "#FFDE10";
|
|
13
13
|
readonly mimeTypes: readonly ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
14
14
|
};
|
|
15
15
|
readonly geojson: {
|
|
16
16
|
readonly extensions: readonly ["geojson"];
|
|
17
17
|
readonly priority: 3;
|
|
18
|
-
readonly color: "#
|
|
18
|
+
readonly color: "#293C6F";
|
|
19
19
|
readonly mimeTypes: readonly ["application/geo+json", "application/vnd.geo+json"];
|
|
20
20
|
};
|
|
21
21
|
readonly json: {
|
|
22
22
|
readonly extensions: readonly ["json"];
|
|
23
23
|
readonly priority: 3;
|
|
24
|
-
readonly color: "#
|
|
24
|
+
readonly color: "#84D0F0";
|
|
25
25
|
readonly mimeTypes: readonly ["application/json"];
|
|
26
26
|
};
|
|
27
27
|
readonly shp: {
|
|
28
28
|
readonly extensions: readonly ["shp", "shape", "zipped-shapefile"];
|
|
29
29
|
readonly priority: 4;
|
|
30
|
-
readonly color: "#
|
|
30
|
+
readonly color: "#009036";
|
|
31
31
|
readonly mimeTypes: readonly ["x-gis/x-shapefile"];
|
|
32
32
|
};
|
|
33
33
|
readonly gml: {
|
|
34
34
|
readonly extensions: readonly ["gml"];
|
|
35
35
|
readonly priority: 5;
|
|
36
|
-
readonly color: "#
|
|
36
|
+
readonly color: "#E75113";
|
|
37
37
|
readonly mimeTypes: readonly ["application/gml+xml", "text/xml; subtype=gml"];
|
|
38
38
|
};
|
|
39
39
|
readonly kml: {
|
|
40
40
|
readonly extensions: readonly ["kml", "kmz"];
|
|
41
41
|
readonly priority: 6;
|
|
42
|
-
readonly color: "#
|
|
42
|
+
readonly color: "#F4B5D0";
|
|
43
43
|
readonly mimeTypes: readonly ["application/vnd.google-earth.kml+xml", "application/vnd.google-earth.kmz"];
|
|
44
44
|
};
|
|
45
45
|
readonly gpkg: {
|
|
46
46
|
readonly extensions: readonly ["gpkg", "geopackage"];
|
|
47
47
|
readonly priority: 7;
|
|
48
|
-
readonly color: "#
|
|
48
|
+
readonly color: "#7D5D9F";
|
|
49
49
|
readonly mimeTypes: readonly ["application/geopackage+sqlite3"];
|
|
50
50
|
};
|
|
51
51
|
readonly zip: {
|
|
52
52
|
readonly extensions: readonly ["zip", "tar.gz"];
|
|
53
53
|
readonly priority: 8;
|
|
54
|
-
readonly color: "#
|
|
54
|
+
readonly color: "#B0CB52";
|
|
55
55
|
readonly mimeTypes: readonly ["application/zip", "application/x-zip"];
|
|
56
56
|
};
|
|
57
57
|
readonly pdf: {
|
|
58
58
|
readonly extensions: readonly ["pdf"];
|
|
59
59
|
readonly priority: 9;
|
|
60
|
-
readonly color: "#
|
|
60
|
+
readonly color: "#49579E";
|
|
61
61
|
readonly mimeTypes: readonly ["application/pdf"];
|
|
62
62
|
};
|
|
63
63
|
readonly jpg: {
|
|
64
64
|
readonly extensions: readonly ["jpg", "jpeg", "jfif", "pjpeg", "pjp"];
|
|
65
65
|
readonly priority: 9;
|
|
66
|
-
readonly color: "#
|
|
66
|
+
readonly color: "#C4A98F";
|
|
67
67
|
readonly mimeTypes: readonly ["image/jpg"];
|
|
68
68
|
};
|
|
69
69
|
readonly svg: {
|
|
70
70
|
readonly extensions: readonly ["svg"];
|
|
71
71
|
readonly priority: 10;
|
|
72
|
-
readonly color: "#
|
|
72
|
+
readonly color: "#EB6D82";
|
|
73
73
|
readonly mimeTypes: readonly ["image/svg+xml"];
|
|
74
74
|
};
|
|
75
75
|
readonly dxf: {
|
|
76
76
|
readonly extensions: readonly ["dxf"];
|
|
77
77
|
readonly priority: 11;
|
|
78
|
-
readonly color: "#
|
|
78
|
+
readonly color: "#DCCD00";
|
|
79
79
|
readonly mimeTypes: readonly ["application/x-dxf", "image/x-dxf"];
|
|
80
80
|
};
|
|
81
81
|
readonly html: {
|
|
82
82
|
readonly extensions: readonly ["html", "htm"];
|
|
83
83
|
readonly priority: 12;
|
|
84
|
-
readonly color: "#
|
|
84
|
+
readonly color: "#C0C9B6";
|
|
85
85
|
readonly mimeTypes: readonly ["text/html"];
|
|
86
86
|
};
|
|
87
87
|
readonly fgb: {
|
|
88
88
|
readonly extensions: readonly ["fgb", "flatgeobuf"];
|
|
89
89
|
readonly priority: 13;
|
|
90
|
-
readonly color: "#
|
|
90
|
+
readonly color: "#A8111C";
|
|
91
91
|
readonly mimeTypes: readonly ["application/flatgeobuf"];
|
|
92
92
|
};
|
|
93
93
|
readonly jsonfg: {
|
|
94
94
|
readonly extensions: readonly ["jsonfg", "jsonfgc"];
|
|
95
95
|
readonly priority: 14;
|
|
96
|
-
readonly color: "#
|
|
96
|
+
readonly color: "#009EE0";
|
|
97
97
|
readonly mimeTypes: readonly ["application/vnd.ogc.fg+json", "application/vnd.ogc.fg+json;compatibility=geojson"];
|
|
98
98
|
};
|
|
99
99
|
};
|
|
@@ -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,EACL,qBAAqB,EACrB,eAAe,EAChB,MAAM,2DAA2D,CAAA;AAUlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHV,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,qBAAqB,GAAG,MAAM,CAEnE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,qBAAqB,GAAG,UAAU,CAcrE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,qBAAqB,EAC3B,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,EAAE,UAAU,GACjB,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,EACL,qBAAqB,EACrB,eAAe,EAChB,MAAM,2DAA2D,CAAA;AAUlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHV,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,qBAAqB,GAAG,MAAM,CAEnE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,qBAAqB,GAAG,UAAU,CAcrE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,qBAAqB,EAC3B,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,qBAAqB,EAC3B,MAAM,EAAE,UAAU,GACjB,OAAO,CAQT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CA0BhE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,kBAwB5E;AAcD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,66 @@
|
|
|
1
1
|
<div
|
|
2
|
-
class="group flex
|
|
2
|
+
class="group flex justify-between rounded filter overflow-hidden"
|
|
3
|
+
[ngClass]="cardClass"
|
|
3
4
|
>
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<ng-container *ngIf="size !== 'S'">
|
|
6
|
+
<div>
|
|
7
|
+
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="flex items-center">
|
|
10
|
+
<ng-container *ngTemplateOutlet="buttons"></ng-container>
|
|
11
|
+
</div>
|
|
12
|
+
</ng-container>
|
|
13
|
+
<ng-container *ngIf="size === 'S'">
|
|
14
|
+
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
15
|
+
</ng-container>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<ng-template #buttons>
|
|
19
|
+
<div class="flex flex-row gap-2">
|
|
20
|
+
<gn-ui-copy-text-button
|
|
21
|
+
[text]="link.url"
|
|
22
|
+
[tooltipText]="'tooltip.url.copy' | translate"
|
|
23
|
+
[displayText]="false"
|
|
24
|
+
class="border border-gray-300 rounded-lg pt-1 px-2 h-[34px]"
|
|
25
|
+
></gn-ui-copy-text-button>
|
|
26
|
+
<button
|
|
27
|
+
*ngIf="displayApiFormButton"
|
|
28
|
+
type="button"
|
|
29
|
+
class="gn-ui-card-icon"
|
|
30
|
+
[ngClass]="{
|
|
31
|
+
'py-2 px-4 rounded-r-md bg-gray-400 hover:bg-gray-600 focus:bg-gray-800 text-white':
|
|
32
|
+
displayText,
|
|
33
|
+
}"
|
|
34
|
+
[matTooltip]="
|
|
35
|
+
!currentlyActive
|
|
36
|
+
? ('record.metadata.api.form.openForm' | translate)
|
|
37
|
+
: ('record.metadata.api.form.closeForm' | translate)
|
|
38
|
+
"
|
|
39
|
+
matTooltipPosition="above"
|
|
40
|
+
(click)="openRecordApiFormPanel()"
|
|
41
|
+
>
|
|
42
|
+
<ng-icon
|
|
43
|
+
class="pointer-events-none align-middle card-icon"
|
|
44
|
+
name="iconoirSettings"
|
|
45
|
+
[ngClass]="{
|
|
46
|
+
'text-secondary opacity-100': currentlyActive,
|
|
47
|
+
}"
|
|
48
|
+
></ng-icon>
|
|
49
|
+
</button>
|
|
8
50
|
</div>
|
|
9
|
-
|
|
10
|
-
|
|
51
|
+
</ng-template>
|
|
52
|
+
|
|
53
|
+
<ng-template #content>
|
|
54
|
+
<div>
|
|
55
|
+
<div class="gn-ui-card-title">
|
|
56
|
+
{{ link.description || link.name }}
|
|
57
|
+
</div>
|
|
58
|
+
<div class="gn-ui-card-detail">
|
|
59
|
+
{{ link.name }}
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="flex flex-row justify-between">
|
|
63
|
+
<div class="flex flex-row gap-2.5 items-center pt-1">
|
|
11
64
|
<span
|
|
12
65
|
*ngIf="link.accessServiceProtocol !== 'GPFDL'"
|
|
13
66
|
class="bg-primary-opacity-50 uppercase inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded text-primary-lightest group-hover:bg-primary transition-colors"
|
|
@@ -26,36 +79,9 @@
|
|
|
26
79
|
>
|
|
27
80
|
record.metadata.api.gpfdl</span
|
|
28
81
|
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
[tooltipText]="'tooltip.url.copy' | translate"
|
|
33
|
-
[displayText]="false"
|
|
34
|
-
></gn-ui-copy-text-button>
|
|
35
|
-
<button
|
|
36
|
-
*ngIf="displayApiFormButton"
|
|
37
|
-
type="button"
|
|
38
|
-
[ngClass]="{
|
|
39
|
-
'py-2 px-4 rounded-r-md bg-gray-400 hover:bg-gray-600 focus:bg-gray-800 text-white':
|
|
40
|
-
displayText,
|
|
41
|
-
}"
|
|
42
|
-
[matTooltip]="
|
|
43
|
-
!currentlyActive
|
|
44
|
-
? ('record.metadata.api.form.openForm' | translate)
|
|
45
|
-
: ('record.metadata.api.form.closeForm' | translate)
|
|
46
|
-
"
|
|
47
|
-
matTooltipPosition="above"
|
|
48
|
-
(click)="openRecordApiFormPanel()"
|
|
49
|
-
>
|
|
50
|
-
<ng-icon
|
|
51
|
-
class="pointer-events-none align-middle card-icon"
|
|
52
|
-
name="matMoreHoriz"
|
|
53
|
-
[ngClass]="{
|
|
54
|
-
'text-secondary opacity-100': currentlyActive,
|
|
55
|
-
}"
|
|
56
|
-
></ng-icon>
|
|
57
|
-
</button>
|
|
58
|
-
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div *ngIf="size === 'S'">
|
|
84
|
+
<ng-container *ngTemplateOutlet="buttons"></ng-container>
|
|
59
85
|
</div>
|
|
60
86
|
</div>
|
|
61
|
-
</
|
|
87
|
+
</ng-template>
|
|
@@ -14,7 +14,9 @@ import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
15
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
16
16
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
17
|
-
import {
|
|
17
|
+
import { iconoirSettings } from '@ng-icons/iconoir'
|
|
18
|
+
|
|
19
|
+
type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
18
20
|
|
|
19
21
|
@Component({
|
|
20
22
|
selector: 'gn-ui-api-card',
|
|
@@ -31,18 +33,40 @@ import { matMoreHoriz } from '@ng-icons/material-icons/baseline'
|
|
|
31
33
|
],
|
|
32
34
|
viewProviders: [
|
|
33
35
|
provideIcons({
|
|
34
|
-
|
|
36
|
+
iconoirSettings,
|
|
35
37
|
}),
|
|
36
38
|
],
|
|
37
39
|
})
|
|
38
40
|
export class ApiCardComponent implements OnInit, OnChanges {
|
|
41
|
+
private _size: 'L' | 'M' | 'S' | 'XS'
|
|
39
42
|
@Input() link: DatasetServiceDistribution
|
|
40
43
|
@Input() currentLink: DatasetServiceDistribution
|
|
44
|
+
private readonly sizeClassMap: Record<CardSize, string> = {
|
|
45
|
+
L: 'gn-ui-card-l py-2 px-5 flex-row',
|
|
46
|
+
M: 'gn-ui-card-m py-2 px-5 flex-row',
|
|
47
|
+
S: 'gn-ui-card-s p-4 flex-col',
|
|
48
|
+
XS: 'gn-ui-card-xs py-2 px-5 flex-row',
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@Input() set size(value: CardSize) {
|
|
52
|
+
this._size = value
|
|
53
|
+
this.cardClass = this.sizeClassMap[value]
|
|
54
|
+
}
|
|
55
|
+
get size(): 'L' | 'M' | 'S' | 'XS' {
|
|
56
|
+
return this._size
|
|
57
|
+
}
|
|
58
|
+
cardClass = ''
|
|
41
59
|
displayApiFormButton: boolean
|
|
42
60
|
currentlyActive = false
|
|
43
61
|
@Output() openRecordApiForm: EventEmitter<DatasetServiceDistribution> =
|
|
44
62
|
new EventEmitter<DatasetServiceDistribution>()
|
|
45
63
|
|
|
64
|
+
get generatedText() {
|
|
65
|
+
return this.link.accessServiceProtocol === 'wfs'
|
|
66
|
+
? 'datahub.search.filter.generatedByWfs'
|
|
67
|
+
: 'datahub.search.filter.generatedByAPI'
|
|
68
|
+
}
|
|
69
|
+
|
|
46
70
|
ngOnInit() {
|
|
47
71
|
this.displayApiFormButton =
|
|
48
72
|
this.link.accessServiceProtocol === 'ogcFeatures' ||
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
<a
|
|
2
2
|
href="{{ link.url }}"
|
|
3
3
|
target="_blank"
|
|
4
|
-
class="group flex justify-between card-shadow
|
|
4
|
+
class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden"
|
|
5
5
|
rel="noopener"
|
|
6
|
+
[ngClass]="cardClass"
|
|
6
7
|
>
|
|
7
|
-
<div class="
|
|
8
|
-
<div
|
|
9
|
-
class="text-21 text-black truncate font-title w-11/12"
|
|
10
|
-
[title]="link.description || link.name"
|
|
11
|
-
>
|
|
8
|
+
<div class="flex flex-col justify-between">
|
|
9
|
+
<div class="gn-ui-card-title" [title]="link.description || link.name">
|
|
12
10
|
{{ link.description || link.name }}
|
|
13
11
|
</div>
|
|
14
|
-
<div class="
|
|
12
|
+
<div class="gn-ui-card-detail">
|
|
13
|
+
{{ link.name }}
|
|
14
|
+
</div>
|
|
15
|
+
<div class="flex flex-row gap-2 items-center pt-1">
|
|
15
16
|
<span
|
|
16
17
|
class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100"
|
|
17
18
|
[style.background-color]="color"
|
|
18
19
|
data-cy="download-format"
|
|
19
20
|
>{{ format || ('downloads.format.unknown' | translate) }}</span
|
|
20
21
|
>
|
|
21
|
-
<span
|
|
22
|
-
class="pl-2 inline-flex items-center text-gray-800 text-sm"
|
|
23
|
-
*ngIf="isFromApi"
|
|
24
|
-
translate=""
|
|
22
|
+
<span class="text-gray-800 text-xs" *ngIf="isFromApi" translate=""
|
|
25
23
|
>datahub.search.filter.generatedByAPI</span
|
|
26
24
|
>
|
|
27
25
|
</div>
|
|
28
26
|
</div>
|
|
29
|
-
<div class="
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
<div class="flex" [ngClass]="size === 'S' ? 'items-end' : 'items-center'">
|
|
28
|
+
<div class="gn-ui-card-icon">
|
|
29
|
+
<ng-icon
|
|
30
|
+
class="inline-block card-icon align-middle"
|
|
31
|
+
name="iconoirDownload"
|
|
32
|
+
>
|
|
33
|
+
</ng-icon>
|
|
34
|
+
</div>
|
|
35
35
|
</div>
|
|
36
36
|
</a>
|
|
@@ -9,7 +9,9 @@ import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/
|
|
|
9
9
|
import { TranslateModule } from '@ngx-translate/core'
|
|
10
10
|
import { CommonModule } from '@angular/common'
|
|
11
11
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
12
|
-
import {
|
|
12
|
+
import { iconoirDownload } from '@ng-icons/iconoir'
|
|
13
|
+
|
|
14
|
+
type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
13
15
|
|
|
14
16
|
@Component({
|
|
15
17
|
selector: 'gn-ui-download-item',
|
|
@@ -20,15 +22,31 @@ import { matCloudDownloadOutline } from '@ng-icons/material-icons/outline'
|
|
|
20
22
|
standalone: true,
|
|
21
23
|
viewProviders: [
|
|
22
24
|
provideIcons({
|
|
23
|
-
|
|
25
|
+
iconoirDownload,
|
|
24
26
|
}),
|
|
25
27
|
],
|
|
26
28
|
})
|
|
27
29
|
export class DownloadItemComponent {
|
|
30
|
+
private _size: 'L' | 'M' | 'S' | 'XS'
|
|
28
31
|
@Input() link: DatasetOnlineResource
|
|
29
32
|
@Input() color: string
|
|
30
33
|
@Input() format: string
|
|
31
34
|
@Input() isFromApi: boolean
|
|
35
|
+
private readonly sizeClassMap: Record<CardSize, string> = {
|
|
36
|
+
L: 'gn-ui-card-l py-2 px-5',
|
|
37
|
+
M: 'gn-ui-card-m py-2 px-5',
|
|
38
|
+
S: 'gn-ui-card-s p-4',
|
|
39
|
+
XS: 'gn-ui-card-xs py-2 px-5',
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@Input() set size(value: CardSize) {
|
|
43
|
+
this._size = value
|
|
44
|
+
this.cardClass = this.sizeClassMap[value]
|
|
45
|
+
}
|
|
46
|
+
get size(): 'L' | 'M' | 'S' | 'XS' {
|
|
47
|
+
return this._size
|
|
48
|
+
}
|
|
49
|
+
cardClass = ''
|
|
32
50
|
@Output() exportUrl = new EventEmitter<string>()
|
|
33
51
|
|
|
34
52
|
openUrl() {
|
|
@@ -1,39 +1,37 @@
|
|
|
1
1
|
<a
|
|
2
2
|
[href]="link.url"
|
|
3
3
|
target="_blank"
|
|
4
|
-
class="flex flex-
|
|
5
|
-
[ngClass]="
|
|
4
|
+
class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden"
|
|
5
|
+
[ngClass]="cardClass"
|
|
6
6
|
[title]="title"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
9
|
-
<div class="
|
|
10
|
-
|
|
11
|
-
class="font-title font-medium text-21 text-black break-words mb-1 line-clamp-2"
|
|
12
|
-
>
|
|
13
|
-
{{ link.name }}
|
|
14
|
-
</p>
|
|
15
|
-
<p class="font-medium text-sm break-words">
|
|
16
|
-
{{ link.description }}
|
|
17
|
-
</p>
|
|
18
|
-
<p
|
|
19
|
-
*ngIf="!link.name && !link.description"
|
|
20
|
-
class="font-medium text-sm break-words truncate"
|
|
21
|
-
>
|
|
22
|
-
{{ link.url }}
|
|
23
|
-
</p>
|
|
8
|
+
<div class="flex flex-col justify-between">
|
|
9
|
+
<div class="gn-ui-card-title">
|
|
10
|
+
{{ link.description || link.name }}
|
|
24
11
|
</div>
|
|
25
|
-
<div>
|
|
26
|
-
|
|
12
|
+
<div class="gn-ui-card-detail">
|
|
13
|
+
{{ link.name }}
|
|
27
14
|
</div>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
<p *ngIf="!link.name && !link.description" class="gn-ui-card-title">
|
|
16
|
+
{{ link.url }}
|
|
17
|
+
</p>
|
|
18
|
+
<div class="pt-1">
|
|
19
|
+
<span
|
|
20
|
+
class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100"
|
|
21
|
+
[style.background-color]="getLinkColor(link)"
|
|
22
|
+
data-cy="download-format"
|
|
23
|
+
>{{
|
|
24
|
+
getLinkFormat(link) || ('downloads.format.unknown' | translate)
|
|
25
|
+
}}</span
|
|
33
26
|
>
|
|
34
|
-
{{ link.name || link.description }}
|
|
35
|
-
</p>
|
|
36
|
-
<ng-icon class="card-icon flex-shrink-0" name="matOpenInNew"></ng-icon>
|
|
37
27
|
</div>
|
|
38
|
-
</
|
|
28
|
+
</div>
|
|
29
|
+
<div class="flex" [ngClass]="size === 'S' ? 'items-end' : 'items-center'">
|
|
30
|
+
<div class="gn-ui-card-icon">
|
|
31
|
+
<ng-icon
|
|
32
|
+
class="inline-block card-icon align-middle"
|
|
33
|
+
name="matOpenInNew"
|
|
34
|
+
></ng-icon>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
39
37
|
</a>
|