From c94da156f4f510070a59862ac7631804d6602ddd Mon Sep 17 00:00:00 2001 From: Kim Tran Date: Wed, 25 Sep 2024 08:52:22 +0200 Subject: [PATCH] feat: add page not found component (#495) * feat: add page not found component * fix: edit page not found translations --------- Co-authored-by: kim.tran Co-authored-by: SchettlerKoehler <62466958+SchettlerKoehler@users.noreply.github.com> --- libs/angular-accelerator/assets/i18n/de.json | 268 +++++++++--------- libs/angular-accelerator/assets/i18n/en.json | 268 +++++++++--------- libs/angular-accelerator/src/index.ts | 1 + .../src/lib/angular-accelerator.module.ts | 6 +- .../page-not-found.component.ts | 9 + .../assets/i18n/de.json | 4 + .../assets/i18n/en.json | 4 + 7 files changed, 294 insertions(+), 266 deletions(-) create mode 100644 libs/angular-accelerator/src/lib/components/page-not-found/page-not-found.component.ts diff --git a/libs/angular-accelerator/assets/i18n/de.json b/libs/angular-accelerator/assets/i18n/de.json index b5dc43c7..e887c3e5 100644 --- a/libs/angular-accelerator/assets/i18n/de.json +++ b/libs/angular-accelerator/assets/i18n/de.json @@ -1,144 +1,148 @@ { - "OCX_CUSTOM_GROUP_COLUMN_SELECTOR": { - "DROPDOWN_LABEL": "Spalten", - "OPEN_BUTTON_DETAIL": "Dialog zur Auswahl einer benutzerdefinierten Gruppe öffnen", - "ACTIVE_COLUMNS_LABEL": "Aktive Spalten", - "INACTIVE_COLUMNS_LABEL": "Inaktive Spalten", - "SAVE_BUTTON_LABEL": "Speichern", - "CANCEL_BUTTON_LABEL": "Abbrechen", - "DIALOG_TITLE": "Spalten für benutzerdefinierte Gruppe auswählen", - "CONFIGURE_ACTION_COLUMN": { - "TITLE": "Aktionsspalte konfigurieren", - "FREEZE": "Aktionsspalte immer anzeigen", - "POSITION": "Position der Aktionsspalte", - "YES": "Ja", - "NO": "Nein", - "LEFT": "Links", - "RIGHT": "Rechts" - }, - "ARIA_LABELS": { - "UP": "Spalte nach oben verschieben", - "TOP": "Spalte an den Anfang verschieben", - "DOWN": "Spalte nach unten verschieben", - "BOTTOM": "Spalte ans Ende verschieben", - "RIGHT": "Spalte als inaktiv setzen", - "ALL_RIGHT": "Alle Spalten als inaktiv setzen", - "LEFT": "Spalte als aktiv setzen", - "ALL_LEFT": "Alle Spalten als aktiv setzen", - "CLOSE": "Dialog schließen" - } + "OCX_CUSTOM_GROUP_COLUMN_SELECTOR": { + "DROPDOWN_LABEL": "Spalten", + "OPEN_BUTTON_DETAIL": "Dialog zur Auswahl einer benutzerdefinierten Gruppe öffnen", + "ACTIVE_COLUMNS_LABEL": "Aktive Spalten", + "INACTIVE_COLUMNS_LABEL": "Inaktive Spalten", + "SAVE_BUTTON_LABEL": "Speichern", + "CANCEL_BUTTON_LABEL": "Abbrechen", + "DIALOG_TITLE": "Spalten für benutzerdefinierte Gruppe auswählen", + "CONFIGURE_ACTION_COLUMN": { + "TITLE": "Aktionsspalte konfigurieren", + "FREEZE": "Aktionsspalte immer anzeigen", + "POSITION": "Position der Aktionsspalte", + "YES": "Ja", + "NO": "Nein", + "LEFT": "Links", + "RIGHT": "Rechts" }, - "OCX_SEARCH_CONFIG": { - "PLACEHOLDER": "Bitte geben Sie den Namen der Suchkonfiguration an.", - "SAVE_COLUMNS_OPTION": "Möchten Sie die angezeigten Spalten speichern?", - "SAVE_INPUT_FIELDS_OPTION": "Möchten Sie die Werte aus den Suchfeldern speichern?" + "ARIA_LABELS": { + "UP": "Spalte nach oben verschieben", + "TOP": "Spalte an den Anfang verschieben", + "DOWN": "Spalte nach unten verschieben", + "BOTTOM": "Spalte ans Ende verschieben", + "RIGHT": "Spalte als inaktiv setzen", + "ALL_RIGHT": "Alle Spalten als inaktiv setzen", + "LEFT": "Spalte als aktiv setzen", + "ALL_LEFT": "Alle Spalten als aktiv setzen", + "CLOSE": "Dialog schließen" + } + }, + "OCX_SEARCH_CONFIG": { + "PLACEHOLDER": "Bitte geben Sie den Namen der Suchkonfiguration an.", + "SAVE_COLUMNS_OPTION": "Möchten Sie die angezeigten Spalten speichern?", + "SAVE_INPUT_FIELDS_OPTION": "Möchten Sie die Werte aus den Suchfeldern speichern?" + }, + "OCX_LIST_GRID_SORT": { + "DROPDOWN": { + "PLACEHOLDER": "Sortierung auswählen", + "TITLE": "Sortieren nach" }, - "OCX_LIST_GRID_SORT": { - "DROPDOWN": { - "PLACEHOLDER": "Sortierung auswählen", - "TITLE": "Sortieren nach" - }, - "TOGGLE_BUTTON": { - "ASCENDING_TITLE": "Aufsteigend", - "DESCENDING_TITLE": "Absteigend", - "DEFAULT_TITLE": "Standard" - }, - "SORTING_BUTTON_ARIA_LABEL": "{{direction}} sortieren" + "TOGGLE_BUTTON": { + "ASCENDING_TITLE": "Aufsteigend", + "DESCENDING_TITLE": "Absteigend", + "DEFAULT_TITLE": "Standard" }, - "OCX_DATA_TABLE": { - "EMPTY_RESULT": "Keine Daten gefunden.", - "EMPTY_FILTER_MESSAGE": "Keine Filter gefunden.", - "ACTIONS_COLUMN_NAME": "Aktionen", - "FILTER_TITLE": "Filter", - "FILTER_ARIA_LABEL": "Filter {{column}}", - "EDITED": "Bearbeitet", - "SHOWING": "{{first}} - {{last}} von {{totalRecords}}", - "SHOWING_WITH_TOTAL_ON_SERVER": "{{first}} - {{last}} von {{totalRecords}} ({{totalRecordsOnServer}})", - "ALL": "Alle", - "MORE_ACTIONS": "Weitere Aktionen", - "ACTIONS": { - "VIEW": "Anzeigen", - "EDIT": "Bearbeiten", - "DELETE": "Löschen" - }, - "TOGGLE_BUTTON": { - "ASCENDING_TITLE": "Aufsteigend", - "DESCENDING_TITLE": "Absteigend", - "DEFAULT_TITLE": "Standard", - "ARIA_LABEL": "{{column}} {{direction}} sortieren" - } + "SORTING_BUTTON_ARIA_LABEL": "{{direction}} sortieren" + }, + "OCX_DATA_TABLE": { + "EMPTY_RESULT": "Keine Daten gefunden.", + "EMPTY_FILTER_MESSAGE": "Keine Filter gefunden.", + "ACTIONS_COLUMN_NAME": "Aktionen", + "FILTER_TITLE": "Filter", + "FILTER_ARIA_LABEL": "Filter {{column}}", + "EDITED": "Bearbeitet", + "SHOWING": "{{first}} - {{last}} von {{totalRecords}}", + "SHOWING_WITH_TOTAL_ON_SERVER": "{{first}} - {{last}} von {{totalRecords}} ({{totalRecordsOnServer}})", + "ALL": "Alle", + "MORE_ACTIONS": "Weitere Aktionen", + "ACTIONS": { + "VIEW": "Anzeigen", + "EDIT": "Bearbeiten", + "DELETE": "Löschen" }, - "OCX_DATA_LIST_GRID": { - "EMPTY_RESULT": "Keine Daten gefunden.", - "MENU": { - "VIEW": "Anzeigen", - "EDIT": "Bearbeiten", - "DELETE": "Löschen" - }, - "MORE_ACTIONS": "Weitere Aktionen" + "TOGGLE_BUTTON": { + "ASCENDING_TITLE": "Aufsteigend", + "DESCENDING_TITLE": "Absteigend", + "DEFAULT_TITLE": "Standard", + "ARIA_LABEL": "{{column}} {{direction}} sortieren" + } + }, + "OCX_DATA_LIST_GRID": { + "EMPTY_RESULT": "Keine Daten gefunden.", + "MENU": { + "VIEW": "Anzeigen", + "EDIT": "Bearbeiten", + "DELETE": "Löschen" }, - "OCX_DATA_LAYOUT_SELECTION": { - "LAYOUT": { - "LIST": "Liste", - "GRID": "Raster", - "TABLE": "Tabelle" + "MORE_ACTIONS": "Weitere Aktionen" + }, + "OCX_DATA_LAYOUT_SELECTION": { + "LAYOUT": { + "LIST": "Liste", + "GRID": "Raster", + "TABLE": "Tabelle" + } + }, + "OCX_INTERACTIVE_DATA_VIEW": { + "DEFAULT_GROUP": "Standardgruppe", + "CUSTOM_GROUP": "Benutzerdefinierte Gruppe", + "NO_GROUP_SELECTED": "Keine Gruppe ausgewählt" + }, + "OCX_SEARCH_HEADER": { + "TOGGLE_BUTTON": { + "SIMPLE": { + "TEXT": "Einfach", + "DETAIL": "Zu einfachen Suchkriterien wechseln" + }, + "ADVANCED": { + "TEXT": "Erweitert", + "DETAIL": "Zu erweiterten Suchkriterien wechseln" } }, - "OCX_INTERACTIVE_DATA_VIEW": { - "DEFAULT_GROUP": "Standardgruppe", - "CUSTOM_GROUP": "Benutzerdefinierte Gruppe", - "NO_GROUP_SELECTED": "Keine Gruppe ausgewählt" - }, - "OCX_SEARCH_HEADER": { - "TOGGLE_BUTTON": { - "SIMPLE": { - "TEXT": "Einfach", - "DETAIL": "Zu einfachen Suchkriterien wechseln" - }, - "ADVANCED": { - "TEXT": "Erweitert", - "DETAIL": "Zu erweiterten Suchkriterien wechseln" - } - }, - "OCX_SEARCH_CONFIG": { - "DROPDOWN_DEFAULT": "Gespeicherte Suchvorlage auswählen" - }, - "HEADER": "Suche", - "RESET_BUTTON": { - "TEXT": "Zurücksetzen", - "DETAIL": "Suchkriterien zurücksetzen" - }, - "SEARCH_BUTTON": { - "TEXT": "Suchen", - "DETAIL": "Suche starten" - }, - "EXPORT": "Alle Ereignisse exportieren" + "OCX_SEARCH_CONFIG": { + "DROPDOWN_DEFAULT": "Gespeicherte Suchvorlage auswählen" }, - "OCX_PAGE_HEADER": { - "MORE_ACTIONS": "Weitere Aktionen", - "HOME_DEFAULT_ARIA_LABEL": "Zur Startseite navigieren", - "HOME_ARIA_LABEL": "Zu {{page}} navigieren" + "HEADER": "Suche", + "RESET_BUTTON": { + "TEXT": "Zurücksetzen", + "DETAIL": "Suchkriterien zurücksetzen" }, - "OCX_DIAGRAM": { - "SUM": "Gesamtanzahl", - "NO_DATA": "Es sind keine Daten vorhanden", - "SWITCH_DIAGRAM_TYPE": { - "PIE": "Zu Tortendiagramm wechseln", - "HORIZONTAL_BAR": "Zu horizontalem Balkendiagramm wechseln", - "VERTICAL_BAR": "Zu vertikalem Balkendiagramm wechseln" - } + "SEARCH_BUTTON": { + "TEXT": "Suchen", + "DETAIL": "Suche starten" }, - "OCX_TIMEAGO": { - "A_DAY_AGO": "vor einem Tag", - "A_FEW_SECONDS_AGO": "vor ein paar Sekunden", - "AN_HOUR_AGO": "vor einer Stunde", - "A_MINUTE_AGO": "vor einer Minute", - "A_MONAT_AGO": "vor einem Monat", - "A_YEAR_AGO": "vor einem Jahr", - "DAYS_AGO": "vor {{days}} Tagen", - "HOURS_AGO": "vor {{hours}} Stunden", - "MINUTES_AGO": "vor {{minutes}} Minuten", - "MONTHS_AGO": "vor {{months}} Monaten", - "YEARS_AGO": "vor {{years}} Jahren" + "EXPORT": "Alle Ereignisse exportieren" + }, + "OCX_PAGE_HEADER": { + "MORE_ACTIONS": "Weitere Aktionen", + "HOME_DEFAULT_ARIA_LABEL": "Zur Startseite navigieren", + "HOME_ARIA_LABEL": "Zu {{page}} navigieren" + }, + "OCX_DIAGRAM": { + "SUM": "Gesamtanzahl", + "NO_DATA": "Es sind keine Daten vorhanden", + "SWITCH_DIAGRAM_TYPE": { + "PIE": "Zu Tortendiagramm wechseln", + "HORIZONTAL_BAR": "Zu horizontalem Balkendiagramm wechseln", + "VERTICAL_BAR": "Zu vertikalem Balkendiagramm wechseln" } - } \ No newline at end of file + }, + "OCX_TIMEAGO": { + "A_DAY_AGO": "vor einem Tag", + "A_FEW_SECONDS_AGO": "vor ein paar Sekunden", + "AN_HOUR_AGO": "vor einer Stunde", + "A_MINUTE_AGO": "vor einer Minute", + "A_MONAT_AGO": "vor einem Monat", + "A_YEAR_AGO": "vor einem Jahr", + "DAYS_AGO": "vor {{days}} Tagen", + "HOURS_AGO": "vor {{hours}} Stunden", + "MINUTES_AGO": "vor {{minutes}} Minuten", + "MONTHS_AGO": "vor {{months}} Monaten", + "YEARS_AGO": "vor {{years}} Jahren" + }, + "OCX_PAGE_NOT_FOUND": { + "TITLE": "Die Seite wurde nicht gefunden.", + "MESSAGE": "Bitte kontaktieren Sie den Administrator, wenn Sie glauben, dass es sich hierbei um einen Fehler des Systems handelt." + } +} \ No newline at end of file diff --git a/libs/angular-accelerator/assets/i18n/en.json b/libs/angular-accelerator/assets/i18n/en.json index a9929e5d..3acfcc91 100644 --- a/libs/angular-accelerator/assets/i18n/en.json +++ b/libs/angular-accelerator/assets/i18n/en.json @@ -1,144 +1,148 @@ { - "OCX_CUSTOM_GROUP_COLUMN_SELECTOR": { - "DROPDOWN_LABEL": "Columns", - "OPEN_BUTTON_DETAIL": "Open custom group selection dialog", - "ACTIVE_COLUMNS_LABEL": "Active columns", - "INACTIVE_COLUMNS_LABEL": "Inactive columns", - "SAVE_BUTTON_LABEL": "Save", - "CANCEL_BUTTON_LABEL": "Cancel", - "DIALOG_TITLE": "Custom group column selection", - "CONFIGURE_ACTION_COLUMN": { - "TITLE": "Configure action column", - "FREEZE": "Always show action column", - "POSITION": "Position of action column", - "YES": "Yes", - "NO": "No", - "LEFT": "Left", - "RIGHT": "Right" - }, - "ARIA_LABELS": { - "UP": "Move column up", - "TOP": "Move column to the top", - "DOWN": "Move column down", - "BOTTOM": "Move column to the bottom", - "RIGHT": "Set column as inactive", - "ALL_RIGHT": "Set all columns as inactive", - "LEFT": "Set column as active", - "ALL_LEFT": "Set all columns as active", - "CLOSE": "Close dialog" - } + "OCX_CUSTOM_GROUP_COLUMN_SELECTOR": { + "DROPDOWN_LABEL": "Columns", + "OPEN_BUTTON_DETAIL": "Open custom group selection dialog", + "ACTIVE_COLUMNS_LABEL": "Active columns", + "INACTIVE_COLUMNS_LABEL": "Inactive columns", + "SAVE_BUTTON_LABEL": "Save", + "CANCEL_BUTTON_LABEL": "Cancel", + "DIALOG_TITLE": "Custom group column selection", + "CONFIGURE_ACTION_COLUMN": { + "TITLE": "Configure action column", + "FREEZE": "Always show action column", + "POSITION": "Position of action column", + "YES": "Yes", + "NO": "No", + "LEFT": "Left", + "RIGHT": "Right" }, - "OCX_SEARCH_CONFIG": { - "PLACEHOLDER": "Please enter the name of the search configuration", - "SAVE_COLUMNS_OPTION": "Do you want to save the shown columns?", - "SAVE_INPUT_FIELDS_OPTION": "Do you want to save the input values from the input fields?" + "ARIA_LABELS": { + "UP": "Move column up", + "TOP": "Move column to the top", + "DOWN": "Move column down", + "BOTTOM": "Move column to the bottom", + "RIGHT": "Set column as inactive", + "ALL_RIGHT": "Set all columns as inactive", + "LEFT": "Set column as active", + "ALL_LEFT": "Set all columns as active", + "CLOSE": "Close dialog" + } + }, + "OCX_SEARCH_CONFIG": { + "PLACEHOLDER": "Please enter the name of the search configuration", + "SAVE_COLUMNS_OPTION": "Do you want to save the shown columns?", + "SAVE_INPUT_FIELDS_OPTION": "Do you want to save the input values from the input fields?" + }, + "OCX_LIST_GRID_SORT": { + "DROPDOWN": { + "PLACEHOLDER": "Select sorting", + "TITLE": "Sort by" }, - "OCX_LIST_GRID_SORT": { - "DROPDOWN": { - "PLACEHOLDER": "Select sorting", - "TITLE": "Sort by" - }, - "TOGGLE_BUTTON": { - "ASCENDING_TITLE": "Ascending", - "DESCENDING_TITLE": "Descending", - "DEFAULT_TITLE": "Default" - }, - "SORTING_BUTTON_ARIA_LABEL": "Toggle sorting direction to {{direction}}" + "TOGGLE_BUTTON": { + "ASCENDING_TITLE": "Ascending", + "DESCENDING_TITLE": "Descending", + "DEFAULT_TITLE": "Default" }, - "OCX_DATA_TABLE": { - "EMPTY_RESULT": "No data found.", - "EMPTY_FILTER_MESSAGE": "No filters found.", - "ACTIONS_COLUMN_NAME": "Actions", - "FILTER_TITLE": "Filter", - "FILTER_ARIA_LABEL": "Filter {{column}}", - "EDITED": "Edited", - "SHOWING": "{{first}} - {{last}} of {{totalRecords}}", - "SHOWING_WITH_TOTAL_ON_SERVER": "{{first}} - {{last}} of {{totalRecords}} ({{totalRecordsOnServer}})", - "ALL": "All", - "MORE_ACTIONS": "More actions", - "ACTIONS": { - "VIEW": "View", - "EDIT": "Edit", - "DELETE": "Delete" - }, - "TOGGLE_BUTTON": { - "ASCENDING_TITLE": "Ascending", - "DESCENDING_TITLE": "Descending", - "DEFAULT_TITLE": "Default", - "ARIA_LABEL": "Toggle {{column}} sorting direction to {{direction}}" - } + "SORTING_BUTTON_ARIA_LABEL": "Toggle sorting direction to {{direction}}" + }, + "OCX_DATA_TABLE": { + "EMPTY_RESULT": "No data found.", + "EMPTY_FILTER_MESSAGE": "No filters found.", + "ACTIONS_COLUMN_NAME": "Actions", + "FILTER_TITLE": "Filter", + "FILTER_ARIA_LABEL": "Filter {{column}}", + "EDITED": "Edited", + "SHOWING": "{{first}} - {{last}} of {{totalRecords}}", + "SHOWING_WITH_TOTAL_ON_SERVER": "{{first}} - {{last}} of {{totalRecords}} ({{totalRecordsOnServer}})", + "ALL": "All", + "MORE_ACTIONS": "More actions", + "ACTIONS": { + "VIEW": "View", + "EDIT": "Edit", + "DELETE": "Delete" }, - "OCX_DATA_LIST_GRID": { - "EMPTY_RESULT": "No data found.", - "MENU": { - "VIEW": "View", - "EDIT": "Edit", - "DELETE": "Delete" - }, - "MORE_ACTIONS": "More actions" + "TOGGLE_BUTTON": { + "ASCENDING_TITLE": "Ascending", + "DESCENDING_TITLE": "Descending", + "DEFAULT_TITLE": "Default", + "ARIA_LABEL": "Toggle {{column}} sorting direction to {{direction}}" + } + }, + "OCX_DATA_LIST_GRID": { + "EMPTY_RESULT": "No data found.", + "MENU": { + "VIEW": "View", + "EDIT": "Edit", + "DELETE": "Delete" }, - "OCX_DATA_LAYOUT_SELECTION": { - "LAYOUT": { - "LIST": "List", - "GRID": "Grid", - "TABLE": "Table" + "MORE_ACTIONS": "More actions" + }, + "OCX_DATA_LAYOUT_SELECTION": { + "LAYOUT": { + "LIST": "List", + "GRID": "Grid", + "TABLE": "Table" + } + }, + "OCX_INTERACTIVE_DATA_VIEW": { + "DEFAULT_GROUP": "Default group", + "CUSTOM_GROUP": "Custom group", + "NO_GROUP_SELECTED": "No group selected" + }, + "OCX_SEARCH_HEADER": { + "TOGGLE_BUTTON": { + "SIMPLE": { + "TEXT": "Simple", + "DETAIL": "Switch to simple search criteria" + }, + "ADVANCED": { + "TEXT": "Advanced", + "DETAIL": "Switch to advanced search criteria" } }, - "OCX_INTERACTIVE_DATA_VIEW": { - "DEFAULT_GROUP": "Default group", - "CUSTOM_GROUP": "Custom group", - "NO_GROUP_SELECTED": "No group selected" - }, - "OCX_SEARCH_HEADER": { - "TOGGLE_BUTTON": { - "SIMPLE": { - "TEXT": "Simple", - "DETAIL": "Switch to simple search criteria" - }, - "ADVANCED": { - "TEXT": "Advanced", - "DETAIL": "Switch to advanced search criteria" - } - }, - "OCX_SEARCH_CONFIG": { - "DROPDOWN_DEFAULT": "Pick predefined template" - }, - "HEADER": "Search", - "RESET_BUTTON": { - "TEXT": "Reset", - "DETAIL": "Reset search criteria" - }, - "SEARCH_BUTTON": { - "TEXT": "Search", - "DETAIL": "Start search" - }, - "EXPORT": "Export all events" + "OCX_SEARCH_CONFIG": { + "DROPDOWN_DEFAULT": "Pick predefined template" }, - "OCX_PAGE_HEADER": { - "MORE_ACTIONS": "More actions", - "HOME_DEFAULT_ARIA_LABEL": "Go to home page", - "HOME_ARIA_LABEL": "Go to {{page}} home page" + "HEADER": "Search", + "RESET_BUTTON": { + "TEXT": "Reset", + "DETAIL": "Reset search criteria" }, - "OCX_DIAGRAM": { - "SUM": "Total", - "NO_DATA": "There is no data available", - "SWITCH_DIAGRAM_TYPE": { - "PIE": "Switch to pie chart", - "HORIZONTAL_BAR": "Switch to horizontal bar chart", - "VERTICAL_BAR": "Switch to vertical bar chart" - } + "SEARCH_BUTTON": { + "TEXT": "Search", + "DETAIL": "Start search" }, - "OCX_TIMEAGO": { - "A_DAY_AGO": "a day ago", - "A_FEW_SECONDS_AGO": "a few seconds ago", - "AN_HOUR_AGO": "an hour ago", - "A_MINUTE_AGO": "a minute ago", - "A_MONTH_AGO": "a month ago", - "A_YEAR_AGO": "a year ago", - "DAYS_AGO": "{{days}} days ago", - "HOURS_AGO": "{{hours}} hours ago", - "MINUTES_AGO": "{{minutes}} minutes ago", - "MONTHS_AGO": "{{months}} months ago", - "YEARS_AGO": "{{years}} years ago" + "EXPORT": "Export all events" + }, + "OCX_PAGE_HEADER": { + "MORE_ACTIONS": "More actions", + "HOME_DEFAULT_ARIA_LABEL": "Go to home page", + "HOME_ARIA_LABEL": "Go to {{page}} home page" + }, + "OCX_DIAGRAM": { + "SUM": "Total", + "NO_DATA": "There is no data available", + "SWITCH_DIAGRAM_TYPE": { + "PIE": "Switch to pie chart", + "HORIZONTAL_BAR": "Switch to horizontal bar chart", + "VERTICAL_BAR": "Switch to vertical bar chart" } - } \ No newline at end of file + }, + "OCX_TIMEAGO": { + "A_DAY_AGO": "a day ago", + "A_FEW_SECONDS_AGO": "a few seconds ago", + "AN_HOUR_AGO": "an hour ago", + "A_MINUTE_AGO": "a minute ago", + "A_MONTH_AGO": "a month ago", + "A_YEAR_AGO": "a year ago", + "DAYS_AGO": "{{days}} days ago", + "HOURS_AGO": "{{hours}} hours ago", + "MINUTES_AGO": "{{minutes}} minutes ago", + "MONTHS_AGO": "{{months}} months ago", + "YEARS_AGO": "{{years}} years ago" + }, + "OCX_PAGE_NOT_FOUND": { + "TITLE": "The page was not found.", + "MESSAGE": "Please contact the administrator if you think this happened due to a system error." + } +} \ No newline at end of file diff --git a/libs/angular-accelerator/src/index.ts b/libs/angular-accelerator/src/index.ts index dce3968c..8615071f 100644 --- a/libs/angular-accelerator/src/index.ts +++ b/libs/angular-accelerator/src/index.ts @@ -19,6 +19,7 @@ export * from './lib/components/interactive-data-view/interactive-data-view.comp export * from './lib/components/page-header/page-header.component' export * from './lib/components/search-config/search-config.component' export * from './lib/components/search-header/search-header.component' +export * from './lib/components/page-not-found/page-not-found.component' // services export * from './lib/services/breadcrumb.service' diff --git a/libs/angular-accelerator/src/lib/angular-accelerator.module.ts b/libs/angular-accelerator/src/lib/angular-accelerator.module.ts index 5b9c93bf..394181a4 100644 --- a/libs/angular-accelerator/src/lib/angular-accelerator.module.ts +++ b/libs/angular-accelerator/src/lib/angular-accelerator.module.ts @@ -6,6 +6,7 @@ import { MissingTranslationHandler, MissingTranslationHandlerParams, TranslateMo import { UserService } from '@onecx/angular-integration-interface' +import { firstValueFrom, skip } from 'rxjs' import { AngularAcceleratorPrimeNgModule } from './angular-accelerator-primeng.module' import { ColumnGroupSelectionComponent } from './components/column-group-selection/column-group-selection.component' import { CustomGroupColumnSelectorComponent } from './components/custom-group-column-selector/custom-group-column-selector.component' @@ -18,18 +19,18 @@ import { DiagramComponent } from './components/diagram/diagram.component' import { GroupByCountDiagramComponent } from './components/group-by-count-diagram/group-by-count-diagram.component' import { InteractiveDataViewComponent } from './components/interactive-data-view/interactive-data-view.component' import { PageHeaderComponent } from './components/page-header/page-header.component' +import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component' import { SearchConfigComponent } from './components/search-config/search-config.component' import { SearchHeaderComponent } from './components/search-header/search-header.component' import { AdvancedDirective } from './directives/advanced.directive' import { IfBreakpointDirective } from './directives/if-breakpoint.directive' import { HAS_PERMISSION_CHECKER, IfPermissionDirective } from './directives/if-permission.directive' import { SrcDirective } from './directives/src.directive' +import { TooltipOnOverflowDirective } from './directives/tooltipOnOverflow.directive' import { DynamicPipe } from './pipes/dynamic.pipe' import { OcxTimeAgoPipe } from './pipes/ocxtimeago.pipe' import { AppConfigService } from './services/app-config-service' import { DynamicLocaleId } from './utils/dynamic-locale-id' -import { firstValueFrom, skip } from 'rxjs' -import { TooltipOnOverflowDirective } from './directives/tooltipOnOverflow.directive' export class AngularAcceleratorMissingTranslationHandler implements MissingTranslationHandler { handle(params: MissingTranslationHandlerParams) { @@ -68,6 +69,7 @@ function appInitializer(userService: UserService) { SearchHeaderComponent, DiagramComponent, GroupByCountDiagramComponent, + PageNotFoundComponent, IfPermissionDirective, IfBreakpointDirective, SrcDirective, diff --git a/libs/angular-accelerator/src/lib/components/page-not-found/page-not-found.component.ts b/libs/angular-accelerator/src/lib/components/page-not-found/page-not-found.component.ts new file mode 100644 index 00000000..825ce486 --- /dev/null +++ b/libs/angular-accelerator/src/lib/components/page-not-found/page-not-found.component.ts @@ -0,0 +1,9 @@ +import { Component } from '@angular/core' + +@Component({ + template: `
+

{{ 'OCX_PAGE_NOT_FOUND.TITLE' | translate }}

+ {{ 'OCX_PAGE_NOT_FOUND.MESSAGE' | translate }} +
`, +}) +export class PageNotFoundComponent {} diff --git a/libs/portal-integration-angular/assets/i18n/de.json b/libs/portal-integration-angular/assets/i18n/de.json index 48a77a0f..731622ff 100644 --- a/libs/portal-integration-angular/assets/i18n/de.json +++ b/libs/portal-integration-angular/assets/i18n/de.json @@ -161,5 +161,9 @@ "MINUTES_AGO": "vor {{minutes}} Minuten", "MONTHS_AGO": "vor {{months}} Monaten", "YEARS_AGO": "vor {{years}} Jahren" + }, + "OCX_PAGE_NOT_FOUND": { + "TITLE": "Die Seite wurde nicht gefunden.", + "MESSAGE": "Bitte kontaktieren Sie den Administrator, wenn Sie glauben, dass es sich hierbei um einen Fehler des Systems handelt." } } \ No newline at end of file diff --git a/libs/portal-integration-angular/assets/i18n/en.json b/libs/portal-integration-angular/assets/i18n/en.json index 22cbdf8e..9125577c 100644 --- a/libs/portal-integration-angular/assets/i18n/en.json +++ b/libs/portal-integration-angular/assets/i18n/en.json @@ -161,5 +161,9 @@ "MINUTES_AGO": "{{minutes}} minutes ago", "MONTHS_AGO": "{{months}} months ago", "YEARS_AGO": "{{years}} years ago" + }, + "OCX_PAGE_NOT_FOUND": { + "TITLE": "The page was not found.", + "MESSAGE": "Please contact the administrator if you think this happened due to a system error." } } \ No newline at end of file