@onecx/angular-accelerator 5.24.0 → 5.26.0
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/lib/angular-accelerator-primeng.module.mjs +5 -5
- package/esm2022/lib/angular-accelerator.module.mjs +5 -5
- package/esm2022/lib/components/column-group-selection/column-group-selection.component.mjs +4 -4
- package/esm2022/lib/components/custom-group-column-selector/custom-group-column-selector.component.mjs +4 -4
- package/esm2022/lib/components/data-layout-selection/data-layout-selection.component.mjs +4 -4
- package/esm2022/lib/components/data-list-grid/data-list-grid.component.mjs +11 -10
- package/esm2022/lib/components/data-list-grid-sorting/data-list-grid-sorting.component.mjs +4 -4
- package/esm2022/lib/components/data-loading-error/data-loading-error.component.mjs +4 -4
- package/esm2022/lib/components/data-table/data-table.component.mjs +58 -17
- package/esm2022/lib/components/data-view/data-view.component.mjs +4 -4
- package/esm2022/lib/components/diagram/diagram.component.mjs +4 -4
- package/esm2022/lib/components/filter-view/filter-view.component.mjs +4 -4
- package/esm2022/lib/components/group-by-count-diagram/group-by-count-diagram.component.mjs +4 -4
- package/esm2022/lib/components/interactive-data-view/interactive-data-view.component.mjs +5 -5
- package/esm2022/lib/components/page-header/page-header.component.mjs +4 -4
- package/esm2022/lib/components/search-header/search-header.component.mjs +4 -4
- package/esm2022/lib/directives/advanced.directive.mjs +4 -4
- package/esm2022/lib/directives/if-breakpoint.directive.mjs +4 -4
- package/esm2022/lib/directives/if-permission.directive.mjs +4 -4
- package/esm2022/lib/directives/src.directive.mjs +20 -14
- package/esm2022/lib/directives/tooltipOnOverflow.directive.mjs +4 -4
- package/esm2022/lib/pipes/dynamic.pipe.mjs +4 -4
- package/esm2022/lib/pipes/ocxtimeago.pipe.mjs +4 -4
- package/esm2022/lib/services/breadcrumb.service.mjs +4 -4
- package/esm2022/lib/services/translation-cache.service.mjs +4 -4
- package/esm2022/lib/utils/criteria.utils.mjs +4 -4
- package/esm2022/lib/utils/dateutils.mjs +4 -4
- package/esm2022/testing/data-list-grid.harness.mjs +6 -2
- package/esm2022/testing/default-list-item.harness.mjs +3 -1
- package/esm2022/testing/index.mjs +4 -1
- package/fesm2022/onecx-angular-accelerator-testing.mjs +10 -3
- package/fesm2022/onecx-angular-accelerator-testing.mjs.map +1 -1
- package/fesm2022/onecx-angular-accelerator.mjs +153 -107
- package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
- package/lib/components/data-table/data-table.component.d.ts +7 -1
- package/lib/utils/criteria.utils.d.ts +2 -3
- package/package.json +5 -4
- package/testing/data-list-grid.harness.d.ts +1 -1
|
@@ -60,6 +60,7 @@ export declare class DataTableComponent extends DataSortBase implements OnInit,
|
|
|
60
60
|
get sortColumn(): string;
|
|
61
61
|
set sortColumn(value: string);
|
|
62
62
|
columnTemplates$: Observable<Record<string, TemplateRef<any> | null>> | undefined;
|
|
63
|
+
columnFilterTemplates$: Observable<Record<string, TemplateRef<any> | null>> | undefined;
|
|
63
64
|
_columns$: BehaviorSubject<DataTableColumn[]>;
|
|
64
65
|
get columns(): DataTableColumn[];
|
|
65
66
|
set columns(value: DataTableColumn[]);
|
|
@@ -186,7 +187,10 @@ export declare class DataTableComponent extends DataSortBase implements OnInit,
|
|
|
186
187
|
displayedRows$: Observable<unknown[]> | undefined;
|
|
187
188
|
selectedRows$: Observable<unknown[]> | undefined;
|
|
188
189
|
currentFilterColumn$: BehaviorSubject<DataTableColumn | null>;
|
|
189
|
-
currentEqualFilterOptions$: Observable<
|
|
190
|
+
currentEqualFilterOptions$: Observable<{
|
|
191
|
+
options: SelectItem[];
|
|
192
|
+
column: DataTableColumn | undefined;
|
|
193
|
+
}> | undefined;
|
|
190
194
|
currentEqualSelectedFilters$: Observable<unknown[]> | undefined;
|
|
191
195
|
truthyFilterOptions: {
|
|
192
196
|
key: string;
|
|
@@ -226,6 +230,8 @@ export declare class DataTableComponent extends DataSortBase implements OnInit,
|
|
|
226
230
|
sortIconTitle(sortColumn: string): "OCX_DATA_TABLE.TOGGLE_BUTTON.ASCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DESCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DEFAULT_TITLE";
|
|
227
231
|
sortDirectionToTitle(sortDirection: DataSortDirection): "OCX_DATA_TABLE.TOGGLE_BUTTON.ASCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DESCENDING_TITLE" | "OCX_DATA_TABLE.TOGGLE_BUTTON.DEFAULT_TITLE";
|
|
228
232
|
mapSelectionToRows(): void;
|
|
233
|
+
isRowSelectionDisabled(rowObject: Row): boolean;
|
|
234
|
+
rowSelectable(event: any): boolean;
|
|
229
235
|
onSelectionChange(selection: Row[]): void;
|
|
230
236
|
mergeWithDisabledKeys(newSelectionIds: (string | number)[], disabledRowIds: (string | number)[]): (string | number)[];
|
|
231
237
|
isSelected(row: Row): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { QueryList } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
2
|
import { Calendar } from 'primeng/calendar';
|
|
4
3
|
export type hasShowTimeFunction = (key: string) => boolean;
|
|
5
4
|
/**
|
|
@@ -10,9 +9,9 @@ export interface BuildSearchCriteriaParameters {
|
|
|
10
9
|
}
|
|
11
10
|
/**
|
|
12
11
|
* Safely builds the search criteria based on form values
|
|
13
|
-
* @param
|
|
12
|
+
* @param formRawValue the raw value of the form to use
|
|
14
13
|
* @param calendars a list of primeng calendars of the form (use `@ViewChildren(Calendar) calendars!: QueryList<Calendar>;`)
|
|
15
14
|
* @param parameters {@link BuildSearchCriteriaParameters} to use when building the search criteria
|
|
16
15
|
* @returns the search criteria as a partial of T (T = type of the search criteria)
|
|
17
16
|
*/
|
|
18
|
-
export declare function buildSearchCriteria<T>(
|
|
17
|
+
export declare function buildSearchCriteria<T>(formRawValue: any, calendars: QueryList<Calendar>, { removeNullValues }: BuildSearchCriteriaParameters): Partial<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecx/angular-accelerator",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.26.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^18.0.5",
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
"@angular/router": "^18.0.5",
|
|
12
12
|
"@ngx-translate/core": "^15.0.0",
|
|
13
13
|
"@ngneat/until-destroy": "^10.0.0",
|
|
14
|
-
"@onecx/integration-interface": "^5",
|
|
15
|
-
"@onecx/angular-integration-interface": "^5",
|
|
16
|
-
"@onecx/angular-remote-components": "^5",
|
|
14
|
+
"@onecx/integration-interface": "^5.26.0",
|
|
15
|
+
"@onecx/angular-integration-interface": "^5.26.0",
|
|
16
|
+
"@onecx/angular-remote-components": "^5.26.0",
|
|
17
|
+
"@onecx/angular-testing": "^5.26.0",
|
|
17
18
|
"chart.js": "^4.4.3",
|
|
18
19
|
"d3-scale-chromatic": "^3.1.0",
|
|
19
20
|
"rxjs": "~7.8.1",
|
|
@@ -5,9 +5,9 @@ import { DefaultListItemHarness } from './default-list-item.harness';
|
|
|
5
5
|
export declare class DataListGridHarness extends ContentContainerComponentHarness {
|
|
6
6
|
static hostSelector: string;
|
|
7
7
|
getDefaultGridItems: import("@onecx/angular-testing").AsyncFactoryFn<DefaultGridItemHarness[]>;
|
|
8
|
-
getDefaultListItems: import("@onecx/angular-testing").AsyncFactoryFn<DefaultListItemHarness[]>;
|
|
9
8
|
getPaginator: import("@onecx/angular-testing").AsyncFactoryFn<PPaginatorHarness>;
|
|
10
9
|
getMenuButton: import("@onecx/angular-testing").AsyncFactoryFn<TestElement>;
|
|
10
|
+
getDefaultListItems(): Promise<DefaultListItemHarness[]>;
|
|
11
11
|
getActionButtons(actionButtonType: 'list' | 'grid' | 'grid-hidden'): Promise<TestElement[]>;
|
|
12
12
|
actionButtonIsDisabled(actionButton: TestElement, viewType: 'list' | 'grid'): Promise<boolean>;
|
|
13
13
|
hasAmountOfActionButtons(actionButtonType: 'list' | 'grid' | 'grid-hidden', amount: number): Promise<boolean>;
|