geonetwork-ui 2.3.0-dev.cc25794c → 2.3.0-dev.cd1164a9
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/feature/search/src/lib/results-list/results-list.container.component.mjs +4 -4
- package/esm2022/libs/ui/elements/src/index.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +30 -0
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +6 -6
- package/esm2022/translations/de.json +1 -0
- package/esm2022/translations/en.json +1 -0
- package/esm2022/translations/es.json +1 -0
- package/esm2022/translations/fr.json +1 -0
- package/esm2022/translations/it.json +1 -0
- package/esm2022/translations/nl.json +1 -0
- package/esm2022/translations/pt.json +1 -0
- package/fesm2022/geonetwork-ui.mjs +20 -12
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/error/error.component.d.ts +16 -0
- package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -2
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +4 -4
- package/src/libs/ui/elements/src/index.ts +1 -1
- package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.html → error/error.component.html} +18 -3
- package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.ts → error/error.component.ts} +5 -4
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -4
- package/translations/de.json +1 -0
- package/translations/en.json +1 -0
- package/translations/es.json +1 -0
- package/translations/fr.json +1 -0
- package/translations/it.json +1 -0
- package/translations/nl.json +1 -0
- package/translations/pt.json +1 -0
- package/translations/sk.json +1 -0
- package/esm2022/libs/ui/elements/src/lib/search-results-error/search-results-error.component.mjs +0 -29
- package/libs/ui/elements/src/lib/search-results-error/search-results-error.component.d.ts +0 -15
- package/libs/ui/elements/src/lib/search-results-error/search-results-error.component.d.ts.map +0 -1
- /package/src/libs/ui/elements/src/lib/{search-results-error/search-results-error.component.css → error/error.component.css} +0 -0
|
@@ -17,7 +17,7 @@ export * from './lib/pagination-buttons/pagination-buttons.component';
|
|
|
17
17
|
export * from './lib/pagination/pagination.component';
|
|
18
18
|
export * from './lib/record-api-form/record-api-form.component';
|
|
19
19
|
export * from './lib/related-record-card/related-record-card.component';
|
|
20
|
-
export * from './lib/
|
|
20
|
+
export * from './lib/error/error.component';
|
|
21
21
|
export * from './lib/thumbnail/thumbnail.component';
|
|
22
22
|
export * from './lib/ui-elements.module';
|
|
23
23
|
export * from './lib/user-preview/user-preview.component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,6DAA6D,CAAA;AAC3E,cAAc,qCAAqC,CAAA;AACnD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6DAA6D,CAAA;AAC3E,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,uCAAuC,CAAA;AACrD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,yDAAyD,CAAA;AACvE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,6DAA6D,CAAA;AAC3E,cAAc,qCAAqC,CAAA;AACnD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6DAA6D,CAAA;AAC3E,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,uCAAuC,CAAA;AACrD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,yDAAyD,CAAA;AACvE,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,0BAA0B,CAAA;AACxC,cAAc,2CAA2C,CAAA;AACzD,cAAc,2CAA2C,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare enum ErrorType {
|
|
3
|
+
COULD_NOT_REACH_API = 0,
|
|
4
|
+
RECEIVED_ERROR = 1,
|
|
5
|
+
RECORD_NOT_FOUND = 2,
|
|
6
|
+
DATASET_HAS_NO_LINK = 3
|
|
7
|
+
}
|
|
8
|
+
export declare class ErrorComponent {
|
|
9
|
+
type: ErrorType;
|
|
10
|
+
error?: string;
|
|
11
|
+
recordId?: string;
|
|
12
|
+
types: typeof ErrorType;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "gn-ui-error", never, { "type": { "alias": "type"; "required": false; }; "error": { "alias": "error"; "required": false; }; "recordId": { "alias": "recordId"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=error.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/error/error.component.ts"],"names":[],"mappings":";AAEA,oBAAY,SAAS;IACnB,mBAAmB,IAAA;IACnB,cAAc,IAAA;IACd,gBAAgB,IAAA;IAChB,mBAAmB,IAAA;CACpB;AAED,qBAMa,cAAc;IAChB,IAAI,EAAG,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,KAAK,mBAAY;yCAJN,cAAc;2CAAd,cAAc;CAK1B"}
|
|
@@ -9,7 +9,7 @@ import * as i7 from "./metadata-contact/metadata-contact.component";
|
|
|
9
9
|
import * as i8 from "./metadata-catalog/metadata-catalog.component";
|
|
10
10
|
import * as i9 from "./metadata-quality/metadata-quality.component";
|
|
11
11
|
import * as i10 from "./metadata-quality-item/metadata-quality-item.component";
|
|
12
|
-
import * as i11 from "./
|
|
12
|
+
import * as i11 from "./error/error.component";
|
|
13
13
|
import * as i12 from "./pagination/pagination.component";
|
|
14
14
|
import * as i13 from "./avatar/avatar.component";
|
|
15
15
|
import * as i14 from "./user-preview/user-preview.component";
|
|
@@ -34,7 +34,7 @@ import * as i32 from "./thumbnail/thumbnail.component";
|
|
|
34
34
|
import * as i33 from "./user-feedback-item/time-since.pipe";
|
|
35
35
|
export declare class UiElementsModule {
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiElementsModule, never>;
|
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.RelatedRecordCardComponent, typeof i7.MetadataContactComponent, typeof i8.MetadataCatalogComponent, typeof i9.MetadataQualityComponent, typeof i10.MetadataQualityItemComponent, typeof i11.
|
|
37
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.RelatedRecordCardComponent, typeof i7.MetadataContactComponent, typeof i8.MetadataCatalogComponent, typeof i9.MetadataQualityComponent, typeof i10.MetadataQualityItemComponent, typeof i11.ErrorComponent, typeof i12.PaginationComponent, typeof i13.AvatarComponent, typeof i14.UserPreviewComponent, typeof i15.GnUiLinkifyDirective, typeof i16.PaginationButtonsComponent, typeof i17.MaxLinesComponent, typeof i18.RecordApiFormComponent, typeof i19.UserFeedbackItemComponent, typeof i20.ImageOverlayPreviewComponent], [typeof i21.CommonModule, typeof i22.MatIconModule, typeof i23.MatTooltipModule, typeof i24.UiWidgetsModule, typeof i25.UiLayoutModule, typeof i26.TranslateModule, typeof i27.UtilSharedModule, typeof i28.RouterModule, typeof i29.UiInputsModule, typeof i30.FormsModule, typeof i21.NgOptimizedImage, typeof i31.MarkdownParserComponent, typeof i32.ThumbnailComponent, typeof i33.TimeSincePipe], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.RelatedRecordCardComponent, typeof i7.MetadataContactComponent, typeof i8.MetadataCatalogComponent, typeof i9.MetadataQualityComponent, typeof i10.MetadataQualityItemComponent, typeof i11.ErrorComponent, typeof i12.PaginationComponent, typeof i32.ThumbnailComponent, typeof i13.AvatarComponent, typeof i14.UserPreviewComponent, typeof i16.PaginationButtonsComponent, typeof i17.MaxLinesComponent, typeof i18.RecordApiFormComponent, typeof i31.MarkdownParserComponent, typeof i19.UserFeedbackItemComponent, typeof i20.ImageOverlayPreviewComponent]>;
|
|
38
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiElementsModule>;
|
|
39
39
|
}
|
|
40
40
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,qBA+Da,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
|
package/package.json
CHANGED
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
</div>
|
|
43
43
|
|
|
44
44
|
<div class="p-4 max-w-[600px] m-auto text-[13px]">
|
|
45
|
-
<gn-ui-
|
|
45
|
+
<gn-ui-error
|
|
46
46
|
*ngIf="(errorCode$ | async) === 0"
|
|
47
47
|
[type]="errorTypes.COULD_NOT_REACH_API"
|
|
48
48
|
>
|
|
49
|
-
</gn-ui-
|
|
50
|
-
<gn-ui-
|
|
49
|
+
</gn-ui-error>
|
|
50
|
+
<gn-ui-error
|
|
51
51
|
*ngIf="(error$ | async) !== null && (errorCode$ | async) !== 0"
|
|
52
52
|
[type]="errorTypes.RECEIVED_ERROR"
|
|
53
53
|
[error]="errorMessage$ | async"
|
|
54
|
-
></gn-ui-
|
|
54
|
+
></gn-ui-error>
|
|
55
55
|
</div>
|
|
56
56
|
|
|
57
57
|
<ng-template #favoriteToggle let-record>
|
|
@@ -17,7 +17,7 @@ export * from './lib/pagination-buttons/pagination-buttons.component'
|
|
|
17
17
|
export * from './lib/pagination/pagination.component'
|
|
18
18
|
export * from './lib/record-api-form/record-api-form.component'
|
|
19
19
|
export * from './lib/related-record-card/related-record-card.component'
|
|
20
|
-
export * from './lib/
|
|
20
|
+
export * from './lib/error/error.component'
|
|
21
21
|
export * from './lib/thumbnail/thumbnail.component'
|
|
22
22
|
export * from './lib/ui-elements.module'
|
|
23
23
|
export * from './lib/user-preview/user-preview.component'
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<div
|
|
2
2
|
class="p-[1.7em] bg-red-50 text-red-800 text-[1.5em] text-center rounded-lg"
|
|
3
3
|
>
|
|
4
|
-
<div
|
|
4
|
+
<div
|
|
5
|
+
*ngIf="type === types.COULD_NOT_REACH_API"
|
|
6
|
+
data-test="could-not-reach-api-error"
|
|
7
|
+
>
|
|
5
8
|
<div class="relative opacity-40">
|
|
6
9
|
<mat-icon class="material-symbols-outlined face">face</mat-icon>
|
|
7
10
|
<mat-icon class="material-symbols-outlined question-mark1"
|
|
@@ -13,14 +16,26 @@
|
|
|
13
16
|
</div>
|
|
14
17
|
<div translate>search.error.couldNotReachApi</div>
|
|
15
18
|
</div>
|
|
16
|
-
<div
|
|
19
|
+
<div
|
|
20
|
+
*ngIf="type === types.DATASET_HAS_NO_LINK"
|
|
21
|
+
data-test="dataset-has-no-link-error"
|
|
22
|
+
>
|
|
23
|
+
<div class="relative opacity-40">
|
|
24
|
+
<mat-icon class="material-symbols-outlined face">computer</mat-icon>
|
|
25
|
+
</div>
|
|
26
|
+
<div translate>search.error.recordHasnolink</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div *ngIf="type === types.RECEIVED_ERROR" data-test="received-error-error">
|
|
17
29
|
<div class="relative opacity-40">
|
|
18
30
|
<mat-icon class="material-symbols-outlined face">mood_bad</mat-icon>
|
|
19
31
|
</div>
|
|
20
32
|
<div translate>search.error.receivedError</div>
|
|
21
33
|
<div *ngIf="error">{{ error }}</div>
|
|
22
34
|
</div>
|
|
23
|
-
<div
|
|
35
|
+
<div
|
|
36
|
+
*ngIf="type === types.RECORD_NOT_FOUND"
|
|
37
|
+
data-test="record-not-found-error"
|
|
38
|
+
>
|
|
24
39
|
<div class="relative opacity-40">
|
|
25
40
|
<mat-icon class="material-symbols-outlined computer">computer</mat-icon>
|
|
26
41
|
<mat-icon class="material-symbols-outlined computer-question-mark"
|
|
@@ -4,15 +4,16 @@ export enum ErrorType {
|
|
|
4
4
|
COULD_NOT_REACH_API,
|
|
5
5
|
RECEIVED_ERROR,
|
|
6
6
|
RECORD_NOT_FOUND,
|
|
7
|
+
DATASET_HAS_NO_LINK,
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
@Component({
|
|
10
|
-
selector: 'gn-ui-
|
|
11
|
-
templateUrl: './
|
|
12
|
-
styleUrls: ['./
|
|
11
|
+
selector: 'gn-ui-error',
|
|
12
|
+
templateUrl: './error.component.html',
|
|
13
|
+
styleUrls: ['./error.component.css'],
|
|
13
14
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
15
|
})
|
|
15
|
-
export class
|
|
16
|
+
export class ErrorComponent {
|
|
16
17
|
@Input() type!: ErrorType
|
|
17
18
|
@Input() error?: string
|
|
18
19
|
@Input() recordId?: string
|
|
@@ -12,13 +12,12 @@ import { ApiCardComponent } from './api-card/api-card.component'
|
|
|
12
12
|
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
13
13
|
import { UiLayoutModule } from '../../../../../libs/ui/layout/src'
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
|
-
import { LinkCardComponent } from './link-card/link-card.component'
|
|
16
15
|
import { RelatedRecordCardComponent } from './related-record-card/related-record-card.component'
|
|
17
16
|
import { MetadataContactComponent } from './metadata-contact/metadata-contact.component'
|
|
18
17
|
import { MetadataCatalogComponent } from './metadata-catalog/metadata-catalog.component'
|
|
19
18
|
import { MetadataQualityComponent } from './metadata-quality/metadata-quality.component'
|
|
20
19
|
import { MetadataQualityItemComponent } from './metadata-quality-item/metadata-quality-item.component'
|
|
21
|
-
import {
|
|
20
|
+
import { ErrorComponent } from './error/error.component'
|
|
22
21
|
import { PaginationComponent } from './pagination/pagination.component'
|
|
23
22
|
import { ThumbnailComponent } from './thumbnail/thumbnail.component'
|
|
24
23
|
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
@@ -62,7 +61,7 @@ import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
|
|
|
62
61
|
MetadataCatalogComponent,
|
|
63
62
|
MetadataQualityComponent,
|
|
64
63
|
MetadataQualityItemComponent,
|
|
65
|
-
|
|
64
|
+
ErrorComponent,
|
|
66
65
|
PaginationComponent,
|
|
67
66
|
AvatarComponent,
|
|
68
67
|
UserPreviewComponent,
|
|
@@ -84,7 +83,7 @@ import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
|
|
|
84
83
|
MetadataCatalogComponent,
|
|
85
84
|
MetadataQualityComponent,
|
|
86
85
|
MetadataQualityItemComponent,
|
|
87
|
-
|
|
86
|
+
ErrorComponent,
|
|
88
87
|
PaginationComponent,
|
|
89
88
|
ThumbnailComponent,
|
|
90
89
|
AvatarComponent,
|
package/translations/de.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "Die API konnte nicht erreicht werden",
|
|
336
336
|
"search.error.receivedError": "Ein Fehler ist aufgetreten",
|
|
337
337
|
"search.error.recordNotFound": "Der Datensatz mit der Kennung \"{ id }\" konnte nicht gefunden werden.",
|
|
338
|
+
"search.error.recordHasnolink": "",
|
|
338
339
|
"search.field.any.placeholder": "Suche Datensätze ...",
|
|
339
340
|
"search.field.sortBy": "Sortieren nach:",
|
|
340
341
|
"search.filters.clear": "Zurücksetzen",
|
package/translations/en.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "The API could not be reached",
|
|
336
336
|
"search.error.receivedError": "An error was received",
|
|
337
337
|
"search.error.recordNotFound": "The record with identifier \"{ id }\" could not be found.",
|
|
338
|
+
"search.error.recordHasnolink": "This record currently has no link yet, please come back later.",
|
|
338
339
|
"search.field.any.placeholder": "Search datasets ...",
|
|
339
340
|
"search.field.sortBy": "Sort by:",
|
|
340
341
|
"search.filters.clear": "Reset",
|
package/translations/es.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "",
|
|
336
336
|
"search.error.receivedError": "",
|
|
337
337
|
"search.error.recordNotFound": "",
|
|
338
|
+
"search.error.recordHasnolink": "",
|
|
338
339
|
"search.field.any.placeholder": "",
|
|
339
340
|
"search.field.sortBy": "",
|
|
340
341
|
"search.filters.clear": "",
|
package/translations/fr.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "Problème de connexion à l'API",
|
|
336
336
|
"search.error.receivedError": "Erreur retournée",
|
|
337
337
|
"search.error.recordNotFound": "Cette donnée n'a pu être trouvée.",
|
|
338
|
+
"search.error.recordHasnolink": "Ce dataset n'a pas encore de lien, réessayez plus tard s'il vous plaît.",
|
|
338
339
|
"search.field.any.placeholder": "Rechercher une donnée...",
|
|
339
340
|
"search.field.sortBy": "Trier par :",
|
|
340
341
|
"search.filters.clear": "Réinitialiser",
|
package/translations/it.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "Problema di connessione all'API",
|
|
336
336
|
"search.error.receivedError": "Errore ricevuto",
|
|
337
337
|
"search.error.recordNotFound": "Impossibile trovare questo dato",
|
|
338
|
+
"search.error.recordHasnolink": "",
|
|
338
339
|
"search.field.any.placeholder": "Cerca un dato...",
|
|
339
340
|
"search.field.sortBy": "Ordina per:",
|
|
340
341
|
"search.filters.clear": "Ripristina",
|
package/translations/nl.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "",
|
|
336
336
|
"search.error.receivedError": "",
|
|
337
337
|
"search.error.recordNotFound": "",
|
|
338
|
+
"search.error.recordHasnolink": "",
|
|
338
339
|
"search.field.any.placeholder": "",
|
|
339
340
|
"search.field.sortBy": "",
|
|
340
341
|
"search.filters.clear": "",
|
package/translations/pt.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "",
|
|
336
336
|
"search.error.receivedError": "",
|
|
337
337
|
"search.error.recordNotFound": "",
|
|
338
|
+
"search.error.recordHasnolink": "",
|
|
338
339
|
"search.field.any.placeholder": "",
|
|
339
340
|
"search.field.sortBy": "",
|
|
340
341
|
"search.filters.clear": "",
|
package/translations/sk.json
CHANGED
|
@@ -335,6 +335,7 @@
|
|
|
335
335
|
"search.error.couldNotReachApi": "K rozhraniu API sa nepodarilo pripojiť",
|
|
336
336
|
"search.error.receivedError": "Bola zaznamenaná chyba",
|
|
337
337
|
"search.error.recordNotFound": "Záznam s identifikátorom \"{ id }\" sa nepodarilo nájsť.",
|
|
338
|
+
"search.error.recordHasnolink": "",
|
|
338
339
|
"search.field.any.placeholder": "Hľadať datasety ...",
|
|
339
340
|
"search.field.sortBy": "Zoradiť podľa:",
|
|
340
341
|
"search.filters.clear": "Obnoviť",
|
package/esm2022/libs/ui/elements/src/lib/search-results-error/search-results-error.component.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/material/icon";
|
|
5
|
-
import * as i3 from "@ngx-translate/core";
|
|
6
|
-
export var ErrorType;
|
|
7
|
-
(function (ErrorType) {
|
|
8
|
-
ErrorType[ErrorType["COULD_NOT_REACH_API"] = 0] = "COULD_NOT_REACH_API";
|
|
9
|
-
ErrorType[ErrorType["RECEIVED_ERROR"] = 1] = "RECEIVED_ERROR";
|
|
10
|
-
ErrorType[ErrorType["RECORD_NOT_FOUND"] = 2] = "RECORD_NOT_FOUND";
|
|
11
|
-
})(ErrorType || (ErrorType = {}));
|
|
12
|
-
export class SearchResultsErrorComponent {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.types = ErrorType;
|
|
15
|
-
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SearchResultsErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.7", type: SearchResultsErrorComponent, selector: "gn-ui-search-results-error", inputs: { type: "type", error: "error", recordId: "recordId" }, ngImport: i0, template: "<div\n class=\"p-[1.7em] bg-red-50 text-red-800 text-[1.5em] text-center rounded-lg\"\n>\n <div *ngIf=\"type === types.COULD_NOT_REACH_API\">\n <div class=\"relative opacity-40\">\n <mat-icon class=\"material-symbols-outlined face\">face</mat-icon>\n <mat-icon class=\"material-symbols-outlined question-mark1\"\n >question_mark</mat-icon\n >\n <mat-icon class=\"material-symbols-outlined question-mark2\"\n >question_mark</mat-icon\n >\n </div>\n <div translate>search.error.couldNotReachApi</div>\n </div>\n <div *ngIf=\"type === types.RECEIVED_ERROR\">\n <div class=\"relative opacity-40\">\n <mat-icon class=\"material-symbols-outlined face\">mood_bad</mat-icon>\n </div>\n <div translate>search.error.receivedError</div>\n <div *ngIf=\"error\">{{ error }}</div>\n </div>\n <div *ngIf=\"type === types.RECORD_NOT_FOUND\">\n <div class=\"relative opacity-40\">\n <mat-icon class=\"material-symbols-outlined computer\">computer</mat-icon>\n <mat-icon class=\"material-symbols-outlined computer-question-mark\"\n >question_mark</mat-icon\n >\n </div>\n <div translate [translateParams]=\"{ id: recordId }\">\n search.error.recordNotFound\n </div>\n <div *ngIf=\"error\">{{ error }}</div>\n </div>\n</div>\n", styles: ["mat-icon{width:auto;height:auto}mat-icon.face{font-size:3em}mat-icon.question-mark1{position:absolute;bottom:1.1em;left:calc(50% + .7em);font-size:1.7em}mat-icon.question-mark2{position:absolute;bottom:1.6em;left:calc(50% + 1.6em);font-size:1.4em}.computer{font-size:3em}.computer-question-mark{position:absolute;top:.6em;left:calc(50% - .5em);font-size:1.2em}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: SearchResultsErrorComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{ selector: 'gn-ui-search-results-error', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"p-[1.7em] bg-red-50 text-red-800 text-[1.5em] text-center rounded-lg\"\n>\n <div *ngIf=\"type === types.COULD_NOT_REACH_API\">\n <div class=\"relative opacity-40\">\n <mat-icon class=\"material-symbols-outlined face\">face</mat-icon>\n <mat-icon class=\"material-symbols-outlined question-mark1\"\n >question_mark</mat-icon\n >\n <mat-icon class=\"material-symbols-outlined question-mark2\"\n >question_mark</mat-icon\n >\n </div>\n <div translate>search.error.couldNotReachApi</div>\n </div>\n <div *ngIf=\"type === types.RECEIVED_ERROR\">\n <div class=\"relative opacity-40\">\n <mat-icon class=\"material-symbols-outlined face\">mood_bad</mat-icon>\n </div>\n <div translate>search.error.receivedError</div>\n <div *ngIf=\"error\">{{ error }}</div>\n </div>\n <div *ngIf=\"type === types.RECORD_NOT_FOUND\">\n <div class=\"relative opacity-40\">\n <mat-icon class=\"material-symbols-outlined computer\">computer</mat-icon>\n <mat-icon class=\"material-symbols-outlined computer-question-mark\"\n >question_mark</mat-icon\n >\n </div>\n <div translate [translateParams]=\"{ id: recordId }\">\n search.error.recordNotFound\n </div>\n <div *ngIf=\"error\">{{ error }}</div>\n </div>\n</div>\n", styles: ["mat-icon{width:auto;height:auto}mat-icon.face{font-size:3em}mat-icon.question-mark1{position:absolute;bottom:1.1em;left:calc(50% + .7em);font-size:1.7em}mat-icon.question-mark2{position:absolute;bottom:1.6em;left:calc(50% + 1.6em);font-size:1.4em}.computer{font-size:3em}.computer-question-mark{position:absolute;top:.6em;left:calc(50% - .5em);font-size:1.2em}\n"] }]
|
|
22
|
-
}], propDecorators: { type: [{
|
|
23
|
-
type: Input
|
|
24
|
-
}], error: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}], recordId: [{
|
|
27
|
-
type: Input
|
|
28
|
-
}] } });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLXJlc3VsdHMtZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS9lbGVtZW50cy9zcmMvbGliL3NlYXJjaC1yZXN1bHRzLWVycm9yL3NlYXJjaC1yZXN1bHRzLWVycm9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvdWkvZWxlbWVudHMvc3JjL2xpYi9zZWFyY2gtcmVzdWx0cy1lcnJvci9zZWFyY2gtcmVzdWx0cy1lcnJvci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQTs7Ozs7QUFFekUsTUFBTSxDQUFOLElBQVksU0FJWDtBQUpELFdBQVksU0FBUztJQUNuQix1RUFBbUIsQ0FBQTtJQUNuQiw2REFBYyxDQUFBO0lBQ2QsaUVBQWdCLENBQUE7QUFDbEIsQ0FBQyxFQUpXLFNBQVMsS0FBVCxTQUFTLFFBSXBCO0FBUUQsTUFBTSxPQUFPLDJCQUEyQjtJQU54QztRQVVFLFVBQUssR0FBRyxTQUFTLENBQUE7S0FDbEI7OEdBTFksMkJBQTJCO2tH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m5nSWY9XCJ0eXBlID09PSB0eXBlcy5SRUNPUkRfTk9UX0ZPVU5EXCI+XG4gICAgPGRpdiBjbGFzcz1cInJlbGF0aXZlIG9wYWNpdHktNDBcIj5cbiAgICAgIDxtYXQtaWNvbiBjbGFzcz1cIm1hdGVyaWFsLXN5bWJvbHMtb3V0bGluZWQgY29tcHV0ZXJcIj5jb21wdXRlcjwvbWF0LWljb24+XG4gICAgICA8bWF0LWljb24gY2xhc3M9XCJtYXRlcmlhbC1zeW1ib2xzLW91dGxpbmVkIGNvbXB1dGVyLXF1ZXN0aW9uLW1hcmtcIlxuICAgICAgICA+cXVlc3Rpb25fbWFyazwvbWF0LWljb25cbiAgICAgID5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IHRyYW5zbGF0ZSBbdHJhbnNsYXRlUGFyYW1zXT1cInsgaWQ6IHJlY29yZElkIH1cIj5cbiAgICAgIHNlYXJjaC5lcnJvci5yZWNvcmROb3RGb3VuZFxuICAgIDwvZGl2PlxuICAgIDxkaXYgKm5nSWY9XCJlcnJvclwiPnt7IGVycm9yIH19PC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare enum ErrorType {
|
|
3
|
-
COULD_NOT_REACH_API = 0,
|
|
4
|
-
RECEIVED_ERROR = 1,
|
|
5
|
-
RECORD_NOT_FOUND = 2
|
|
6
|
-
}
|
|
7
|
-
export declare class SearchResultsErrorComponent {
|
|
8
|
-
type: ErrorType;
|
|
9
|
-
error?: string;
|
|
10
|
-
recordId?: string;
|
|
11
|
-
types: typeof ErrorType;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SearchResultsErrorComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchResultsErrorComponent, "gn-ui-search-results-error", never, { "type": { "alias": "type"; "required": false; }; "error": { "alias": "error"; "required": false; }; "recordId": { "alias": "recordId"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=search-results-error.component.d.ts.map
|
package/libs/ui/elements/src/lib/search-results-error/search-results-error.component.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-results-error.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/search-results-error/search-results-error.component.ts"],"names":[],"mappings":";AAEA,oBAAY,SAAS;IACnB,mBAAmB,IAAA;IACnB,cAAc,IAAA;IACd,gBAAgB,IAAA;CACjB;AAED,qBAMa,2BAA2B;IAC7B,IAAI,EAAG,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,KAAK,mBAAY;yCAJN,2BAA2B;2CAA3B,2BAA2B;CAKvC"}
|