geonetwork-ui 2.7.2-dev.a33d4e84e → 2.8.0-dev.0c9b29721

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.
@@ -1 +1 @@
1
- {"version":3,"file":"gn4-platform.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,uBAAuB,EACxB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uEAAuE,CAAA;AAEjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAA;AACrC,OAAO,EACL,OAAO,EACP,YAAY,EACZ,qBAAqB,EACtB,MAAM,8DAA8D,CAAA;AACrE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,sDAAsD,CAAA;;AAG7D,qBACa,iBAAiB;IAChB,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,sBAAsB;IAEzD,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IAiBxE,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS;IAiB7C,eAAe,CACb,QAAQ,EAAE,kBAAkB,EAAE,EAC9B,SAAS,EAAE,oBAAoB,EAAE,EACjC,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,EAAE;IA4CZ,oBAAoB,CAAC,YAAY,EAAE,GAAG,GAAG,YAAY;IAcrD,kBAAkB,CAChB,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,uBAAuB,CAAC;IAc7B,2BAA2B,CAC/B,gBAAgB,EAAE,YAAY,GAC7B,OAAO,CAAC,qBAAqB,CAAC;yCArHtB,iBAAiB;6CAAjB,iBAAiB;CA+H7B"}
1
+ {"version":3,"file":"gn4-platform.mapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,uBAAuB,EACxB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uEAAuE,CAAA;AAEjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEhD,OAAO,EAAE,UAAU,EAAM,MAAM,MAAM,CAAA;AACrC,OAAO,EACL,OAAO,EACP,YAAY,EACZ,qBAAqB,EACtB,MAAM,8DAA8D,CAAA;AACrE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,sDAAsD,CAAA;;AAG7D,qBACa,iBAAiB;IAChB,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,sBAAsB;IAEzD,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC;IAiBxE,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS;IAyB7C,eAAe,CACb,QAAQ,EAAE,kBAAkB,EAAE,EAC9B,SAAS,EAAE,oBAAoB,EAAE,EACjC,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,EAAE;IA4CZ,oBAAoB,CAAC,YAAY,EAAE,GAAG,GAAG,YAAY;IAcrD,kBAAkB,CAChB,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,uBAAuB,CAAC;IAc7B,2BAA2B,CAC/B,gBAAgB,EAAE,YAAY,GAC7B,OAAO,CAAC,qBAAqB,CAAC;yCA7HtB,iBAAiB;6CAAjB,iBAAiB;CAuI7B"}
@@ -20,7 +20,7 @@ export interface UserApiModel {
20
20
  emailAddresses?: Set<string>;
21
21
  addresses?: Set<AddressApiModel>;
22
22
  primaryAddress?: AddressApiModel;
23
- organization?: string;
23
+ organisation?: string;
24
24
  kind?: string;
25
25
  lastLoginDate?: string;
26
26
  authorities?: Array<GrantedAuthorityApiModel>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.7.2-dev.a33d4e84e",
3
+ "version": "2.8.0-dev.0c9b29721",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -43,18 +43,26 @@ export class Gn4PlatformMapper {
43
43
  userFromApi(apiUser: UserApiModel): UserModel {
44
44
  if (!apiUser) return null
45
45
  const {
46
- enabled,
46
+ addresses,
47
47
  emailAddresses,
48
- organization,
48
+ enabled,
49
+ id,
49
50
  kind,
50
51
  lastLoginDate,
52
+ security,
53
+ primaryAddress,
54
+ authorities,
51
55
  accountNonExpired,
52
56
  accountNonLocked,
53
- id,
54
57
  credentialsNonExpired,
55
58
  ...user
56
59
  } = apiUser
57
- return { ...apiUser, id: id.toString() } as UserModel
60
+
61
+ return {
62
+ ...user,
63
+ id: id.toString(),
64
+ email: emailAddresses ? emailAddresses[0] || '' : '',
65
+ } as UserModel
58
66
  }
59
67
 
60
68
  keywordsFromApi(
@@ -21,7 +21,7 @@ export interface UserApiModel {
21
21
  emailAddresses?: Set<string>
22
22
  addresses?: Set<AddressApiModel>
23
23
  primaryAddress?: AddressApiModel
24
- organization?: string
24
+ organisation?: string
25
25
  kind?: string
26
26
  lastLoginDate?: string
27
27
  authorities?: Array<GrantedAuthorityApiModel>
@@ -1,5 +1,9 @@
1
1
  <div
2
- class="p-[1.7em] bg-red-50 text-red-800 text-[1.5em] text-center rounded-lg"
2
+ class="p-[1.7em] text-[1.5em] text-center rounded-lg"
3
+ [ngClass]="{
4
+ 'bg-red-50 text-red-800': type !== types.DATASET_HAS_NO_LINK,
5
+ 'bg-gray-100 text-black': type === types.DATASET_HAS_NO_LINK,
6
+ }"
3
7
  >
4
8
  <div
5
9
  *ngIf="type === types.COULD_NOT_REACH_API"
@@ -24,7 +24,7 @@
24
24
  ghostClass="h-[31px] w-3/4"
25
25
  [showContent]="fieldReady('keywords')"
26
26
  >
27
- <div *ngIf="metadata.keywords?.length">
27
+ <gn-ui-max-lines [maxLines]="7" *ngIf="metadata.keywords?.length">
28
28
  <div class="metadata-info-keywords sm:pb-4 flex flex-wrap gap-2">
29
29
  <gn-ui-badge
30
30
  class="inline-block lowercase"
@@ -34,7 +34,7 @@
34
34
  >{{ keyword.label }}</gn-ui-badge
35
35
  >
36
36
  </div>
37
- </div>
37
+ </gn-ui-max-lines>
38
38
  </gn-ui-content-ghost>
39
39
  </div>
40
40
 
@@ -4,5 +4,5 @@ export const GEONETWORK_UI_VERSION = packageJson.version
4
4
 
5
5
  export const GEONETWORK_UI_TAG_NAME =
6
6
  GEONETWORK_UI_VERSION.split('-')[1] === 'dev'
7
- ? '2.7.x'
7
+ ? 'main'
8
8
  : `v${packageJson.version}`
@@ -554,7 +554,7 @@
554
554
  "search.error.organizationHasNoDataset": "This organization has no records yet.",
555
555
  "search.error.organizationNotFound": "This organization could not be found.",
556
556
  "search.error.receivedError": "An error was received",
557
- "search.error.recordHasnolink": "This record currently has no link yet, please come back later.",
557
+ "search.error.recordHasnolink": "This record currently has no link.",
558
558
  "search.error.recordNotFound": "The record with identifier \"{ id }\" could not be found.",
559
559
  "search.field.any.placeholder": "Search in the catalog ...",
560
560
  "search.field.sortBy": "Sort by:",
@@ -553,7 +553,7 @@
553
553
  "search.error.organizationHasNoDataset": "Cette organisation n'a pas encore de ressources.",
554
554
  "search.error.organizationNotFound": "L'organisation n'a pas pu être trouvée.",
555
555
  "search.error.receivedError": "Erreur retournée",
556
- "search.error.recordHasnolink": "Cette ressource n'a pas encore de lien, réessayez plus tard s'il vous plaît.",
556
+ "search.error.recordHasnolink": "Cette ressource n'a actuellement aucun lien.",
557
557
  "search.error.recordNotFound": "La ressource dont l'identifiant est \"{ id }\" n'a pas pu être trouvée.",
558
558
  "search.field.any.placeholder": "Rechercher dans le catalogue...",
559
559
  "search.field.sortBy": "Trier par :",
@@ -553,7 +553,7 @@
553
553
  "search.error.organizationHasNoDataset": "Questa organizzazione non ha ancora records.",
554
554
  "search.error.organizationNotFound": "Impossibile trovare l'organizzazione.",
555
555
  "search.error.receivedError": "Errore restituito",
556
- "search.error.recordHasnolink": "Questo record non ha ancora alcun collegamento, riprova più tardi.",
556
+ "search.error.recordHasnolink": "Questo record non ha attualmente alcun collegamento.",
557
557
  "search.error.recordNotFound": "Impossibile trovare questi record.",
558
558
  "search.field.any.placeholder": "Cerca del catalogo...",
559
559
  "search.field.sortBy": "Ordina per:",