@onecx/angular-accelerator 6.13.0 → 6.13.2
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/assets/i18n/de.json +4 -0
- package/assets/i18n/en.json +4 -0
- package/fesm2022/onecx-angular-accelerator.mjs +18 -1
- package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
- package/lib/components/data-list-grid/data-list-grid.component.d.ts +1 -0
- package/lib/components/data-table/data-table.component.d.ts +1 -0
- package/package.json +8 -8
package/assets/i18n/de.json
CHANGED
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
"SORTING_BUTTON_ARIA_LABEL": "{{direction}} sortieren"
|
|
52
52
|
},
|
|
53
53
|
"OCX_DATA_TABLE": {
|
|
54
|
+
"SEARCH_RESULTS_FOUND": "{{results}} Ergebnisse gefunden",
|
|
55
|
+
"NO_SEARCH_RESULTS_FOUND": "Keine Ergebnisse gefunden",
|
|
54
56
|
"EMPTY_RESULT": "Keine Daten gefunden.",
|
|
55
57
|
"EMPTY_FILTER_MESSAGE": "Keine Filter gefunden.",
|
|
56
58
|
"ACTIONS_COLUMN_NAME": "Aktionen",
|
|
@@ -79,6 +81,8 @@
|
|
|
79
81
|
"FILTER_NO": "Nein"
|
|
80
82
|
},
|
|
81
83
|
"OCX_DATA_LIST_GRID": {
|
|
84
|
+
"SEARCH_RESULTS_FOUND": "{{results}} Ergebnisse gefunden",
|
|
85
|
+
"NO_SEARCH_RESULTS_FOUND": "Keine Ergebnisse gefunden",
|
|
82
86
|
"EMPTY_RESULT": "Keine Daten gefunden.",
|
|
83
87
|
"MENU": {
|
|
84
88
|
"VIEW": "Anzeigen",
|
package/assets/i18n/en.json
CHANGED
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
"SORTING_BUTTON_ARIA_LABEL": "Toggle sorting direction to {{direction}}"
|
|
52
52
|
},
|
|
53
53
|
"OCX_DATA_TABLE": {
|
|
54
|
+
"SEARCH_RESULTS_FOUND": "{{results}} Results Found",
|
|
55
|
+
"NO_SEARCH_RESULTS_FOUND": "No Results Found",
|
|
54
56
|
"EMPTY_RESULT": "No data found.",
|
|
55
57
|
"EMPTY_FILTER_MESSAGE": "No filters found.",
|
|
56
58
|
"ACTIONS_COLUMN_NAME": "Actions",
|
|
@@ -79,6 +81,8 @@
|
|
|
79
81
|
"FILTER_NO": "No"
|
|
80
82
|
},
|
|
81
83
|
"OCX_DATA_LIST_GRID": {
|
|
84
|
+
"SEARCH_RESULTS_FOUND": "{{results}} Results Found",
|
|
85
|
+
"NO_SEARCH_RESULTS_FOUND": "No Results Found",
|
|
82
86
|
"EMPTY_RESULT": "No data found.",
|
|
83
87
|
"MENU": {
|
|
84
88
|
"VIEW": "View",
|
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { inject, ElementRef, Input, Directive, Renderer2, ViewContainerRef, TemplateRef, HostListener, EventEmitter, Output, Injectable, Injector, LOCALE_ID, Pipe, ContentChild, ViewEncapsulation, Component, ViewChild, ContentChildren, NgZone, ChangeDetectorRef, ViewChildren, QueryList, Type, NgModule, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import { UserService, AppStateService, ConfigurationService, CONFIG_KEY, ShellCapabilityService, Capability, AppConfigService } from '@onecx/angular-integration-interface';
|
|
4
4
|
import { HAS_PERMISSION_CHECKER, SKIP_STYLE_SCOPING, getScopeIdentifier, dataStyleIdKey, dataNoPortalLayoutStylesKey, MultiLanguageMissingTranslationHandler, providePermissionChecker, provideTranslationPathFromMeta, provideTranslationConnectionService } from '@onecx/angular-utils';
|
|
5
|
-
import { BehaviorSubject, switchMap, of, from, map, filter, concat, combineLatest, startWith, debounceTime, mergeMap, first, shareReplay, withLatestFrom, ReplaySubject, timestamp, distinctUntilChanged, isObservable,
|
|
5
|
+
import { BehaviorSubject, switchMap, of, from, map, filter, concat, combineLatest, startWith, debounceTime, firstValueFrom, mergeMap, first, shareReplay, withLatestFrom, ReplaySubject, timestamp, distinctUntilChanged, isObservable, skip } from 'rxjs';
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
7
|
import * as i3 from '@angular/forms';
|
|
8
8
|
import { FormGroupDirective, FormControlName, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -39,6 +39,7 @@ import * as i4$2 from 'primeng/picklist';
|
|
|
39
39
|
import { PickListModule } from 'primeng/picklist';
|
|
40
40
|
import * as i1$2 from 'primeng/selectbutton';
|
|
41
41
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
42
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
42
43
|
import * as i4$3 from 'primeng/dataview';
|
|
43
44
|
import { DataViewModule } from 'primeng/dataview';
|
|
44
45
|
import * as i3$2 from 'primeng/checkbox';
|
|
@@ -1915,6 +1916,13 @@ class DataListGridComponent extends DataSortBase {
|
|
|
1915
1916
|
this.resetPage();
|
|
1916
1917
|
this._originalData = [...value];
|
|
1917
1918
|
this._data$.next([...value]);
|
|
1919
|
+
const currentResults = value.length;
|
|
1920
|
+
const newStatus = currentResults === 0
|
|
1921
|
+
? 'OCX_DATA_LIST_GRID.NO_SEARCH_RESULTS_FOUND'
|
|
1922
|
+
: 'OCX_DATA_LIST_GRID.SEARCH_RESULTS_FOUND';
|
|
1923
|
+
firstValueFrom(this.translateService.get(newStatus, { results: currentResults })).then((translatedText) => {
|
|
1924
|
+
this.liveAnnouncer.announce(translatedText);
|
|
1925
|
+
});
|
|
1918
1926
|
}
|
|
1919
1927
|
get filters() {
|
|
1920
1928
|
return this._filters$.getValue();
|
|
@@ -2012,6 +2020,7 @@ class DataListGridComponent extends DataSortBase {
|
|
|
2012
2020
|
this.injector = inject(Injector);
|
|
2013
2021
|
this.appStateService = inject(AppStateService);
|
|
2014
2022
|
this.hasPermissionChecker = inject(HAS_PERMISSION_CHECKER, { optional: true });
|
|
2023
|
+
this.liveAnnouncer = inject(LiveAnnouncer);
|
|
2015
2024
|
this.subtitleLineIds = [];
|
|
2016
2025
|
this.clientSideSorting = true;
|
|
2017
2026
|
this.clientSideFiltering = true;
|
|
@@ -2607,6 +2616,13 @@ class DataTableComponent extends DataSortBase {
|
|
|
2607
2616
|
set rows(value) {
|
|
2608
2617
|
!this._rows$.getValue().length;
|
|
2609
2618
|
this._rows$.next(value);
|
|
2619
|
+
const currentResults = value.length;
|
|
2620
|
+
const newStatus = currentResults === 0
|
|
2621
|
+
? 'OCX_DATA_TABLE.NO_SEARCH_RESULTS_FOUND'
|
|
2622
|
+
: 'OCX_DATA_TABLE.SEARCH_RESULTS_FOUND';
|
|
2623
|
+
firstValueFrom(this.translateService.get(newStatus, { results: currentResults })).then((translatedText) => {
|
|
2624
|
+
this.liveAnnouncer.announce(translatedText);
|
|
2625
|
+
});
|
|
2610
2626
|
}
|
|
2611
2627
|
set selectedRows(value) {
|
|
2612
2628
|
this._selectionIds$.next(value.map((row) => {
|
|
@@ -2747,6 +2763,7 @@ class DataTableComponent extends DataSortBase {
|
|
|
2747
2763
|
this.injector = inject(Injector);
|
|
2748
2764
|
this.userService = inject(UserService);
|
|
2749
2765
|
this.hasPermissionChecker = inject(HAS_PERMISSION_CHECKER, { optional: true });
|
|
2766
|
+
this.liveAnnouncer = inject(LiveAnnouncer);
|
|
2750
2767
|
this.FilterType = FilterType;
|
|
2751
2768
|
this.TemplateType = TemplateType;
|
|
2752
2769
|
this.checked = true;
|