@onecx/angular-accelerator 5.13.0 → 5.15.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/assets/i18n/de.json +11 -6
- package/assets/i18n/en.json +11 -6
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/angular-accelerator-primeng.module.mjs +8 -1
- package/esm2022/lib/components/column-group-selection/column-group-selection.component.mjs +6 -5
- package/esm2022/lib/components/custom-group-column-selector/custom-group-column-selector.component.mjs +47 -10
- package/esm2022/lib/components/data-layout-selection/data-layout-selection.component.mjs +26 -8
- 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 +14 -13
- package/esm2022/lib/components/interactive-data-view/interactive-data-view.component.mjs +1 -1
- package/esm2022/lib/utils/criteria.utils.mjs +28 -0
- package/esm2022/testing/custom-group-column-selector.harness.mjs +2 -2
- package/esm2022/testing/data-layout-selection.harness.mjs +6 -7
- package/fesm2022/onecx-angular-accelerator-testing.mjs +6 -7
- package/fesm2022/onecx-angular-accelerator-testing.mjs.map +1 -1
- package/fesm2022/onecx-angular-accelerator.mjs +130 -41
- package/fesm2022/onecx-angular-accelerator.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/angular-accelerator-primeng.module.d.ts +3 -2
- package/lib/components/custom-group-column-selector/custom-group-column-selector.component.d.ts +13 -1
- package/lib/components/data-layout-selection/data-layout-selection.component.d.ts +5 -2
- package/lib/components/data-list-grid-sorting/data-list-grid-sorting.component.d.ts +2 -2
- package/lib/utils/criteria.utils.d.ts +18 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -44,3 +44,4 @@ export * from './lib/utils/primeicon.utils';
|
|
|
44
44
|
export * from './lib/utils/translate.combined.loader';
|
|
45
45
|
export * from './lib/utils/create-remote-component-translate-loader.utils';
|
|
46
46
|
export * from './lib/utils/enum-to-dropdown-options.utils';
|
|
47
|
+
export * from './lib/utils/criteria.utils';
|
|
@@ -13,9 +13,10 @@ import * as i11 from "primeng/chart";
|
|
|
13
13
|
import * as i12 from "primeng/multiselect";
|
|
14
14
|
import * as i13 from "primeng/skeleton";
|
|
15
15
|
import * as i14 from "primeng/message";
|
|
16
|
-
import * as i15 from "primeng/
|
|
16
|
+
import * as i15 from "primeng/floatlabel";
|
|
17
|
+
import * as i16 from "primeng/api";
|
|
17
18
|
export declare class AngularAcceleratorPrimeNgModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngularAcceleratorPrimeNgModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularAcceleratorPrimeNgModule, never, [typeof i1.BreadcrumbModule, typeof i2.CheckboxModule, typeof i3.DropdownModule, typeof i4.ButtonModule, typeof i5.DialogModule, typeof i6.PickListModule, typeof i7.SelectButtonModule, typeof i8.DataViewModule, typeof i9.TableModule, typeof i10.MenuModule, typeof i11.ChartModule, typeof i12.MultiSelectModule, typeof i13.SkeletonModule, typeof i14.MessageModule, typeof i15.SharedModule], [typeof i1.BreadcrumbModule, typeof i2.CheckboxModule, typeof i3.DropdownModule, typeof i4.ButtonModule, typeof i5.DialogModule, typeof i6.PickListModule, typeof i7.SelectButtonModule, typeof i8.DataViewModule, typeof i9.TableModule, typeof i10.MenuModule, typeof i11.ChartModule, typeof i12.MultiSelectModule, typeof i13.SkeletonModule, typeof i14.MessageModule, typeof i15.SharedModule]>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularAcceleratorPrimeNgModule, never, [typeof i1.BreadcrumbModule, typeof i2.CheckboxModule, typeof i3.DropdownModule, typeof i4.ButtonModule, typeof i5.DialogModule, typeof i6.PickListModule, typeof i7.SelectButtonModule, typeof i8.DataViewModule, typeof i9.TableModule, typeof i10.MenuModule, typeof i11.ChartModule, typeof i12.MultiSelectModule, typeof i13.SkeletonModule, typeof i14.MessageModule, typeof i15.FloatLabelModule, typeof i16.SharedModule], [typeof i1.BreadcrumbModule, typeof i2.CheckboxModule, typeof i3.DropdownModule, typeof i4.ButtonModule, typeof i5.DialogModule, typeof i6.PickListModule, typeof i7.SelectButtonModule, typeof i8.DataViewModule, typeof i9.TableModule, typeof i10.MenuModule, typeof i11.ChartModule, typeof i12.MultiSelectModule, typeof i13.SkeletonModule, typeof i14.MessageModule, typeof i15.FloatLabelModule, typeof i16.SharedModule]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<AngularAcceleratorPrimeNgModule>;
|
|
21
22
|
}
|
package/lib/components/custom-group-column-selector/custom-group-column-selector.component.d.ts
CHANGED
|
@@ -22,11 +22,23 @@ export declare class CustomGroupColumnSelectorComponent implements OnInit {
|
|
|
22
22
|
columns: DataTableColumn[];
|
|
23
23
|
displayedColumns: DataTableColumn[];
|
|
24
24
|
dialogTitle: string;
|
|
25
|
+
dialogTitleKey: string;
|
|
25
26
|
openButtonTitle: string;
|
|
27
|
+
openButtonTitleKey: string;
|
|
28
|
+
openButtonAriaLabel: string;
|
|
29
|
+
openButtonAriaLabelKey: string;
|
|
26
30
|
saveButtonLabel: string;
|
|
31
|
+
saveButtonLabelKey: string;
|
|
32
|
+
saveButtonAriaLabel: string;
|
|
33
|
+
saveButtonAriaLabelKey: string;
|
|
27
34
|
cancelButtonLabel: string;
|
|
35
|
+
cancelButtonLabelKey: string;
|
|
36
|
+
cancelButtonAriaLabel: string;
|
|
37
|
+
cancelButtonAriaLabelKey: string;
|
|
28
38
|
activeColumnsLabel: string;
|
|
39
|
+
activeColumnsLabelKey: string;
|
|
29
40
|
inactiveColumnsLabel: string;
|
|
41
|
+
inactiveColumnsLabelKey: string;
|
|
30
42
|
frozenActionColumn: boolean;
|
|
31
43
|
actionColumnPosition: 'left' | 'right';
|
|
32
44
|
columnSelectionChanged: EventEmitter<ColumnSelectionChangedEvent>;
|
|
@@ -51,5 +63,5 @@ export declare class CustomGroupColumnSelectorComponent implements OnInit {
|
|
|
51
63
|
onSaveClick(): void;
|
|
52
64
|
onCancelClick(): void;
|
|
53
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomGroupColumnSelectorComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGroupColumnSelectorComponent, "ocx-custom-group-column-selector", never, { "columns": { "alias": "columns"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "dialogTitle": { "alias": "dialogTitle"; "required": false; }; "openButtonTitle": { "alias": "openButtonTitle"; "required": false; }; "saveButtonLabel": { "alias": "saveButtonLabel"; "required": false; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; }; "activeColumnsLabel": { "alias": "activeColumnsLabel"; "required": false; }; "inactiveColumnsLabel": { "alias": "inactiveColumnsLabel"; "required": false; }; "frozenActionColumn": { "alias": "frozenActionColumn"; "required": false; }; "actionColumnPosition": { "alias": "actionColumnPosition"; "required": false; }; }, { "columnSelectionChanged": "columnSelectionChanged"; "actionColumnConfigChanged": "actionColumnConfigChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomGroupColumnSelectorComponent, "ocx-custom-group-column-selector", never, { "columns": { "alias": "columns"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "dialogTitle": { "alias": "dialogTitle"; "required": false; }; "dialogTitleKey": { "alias": "dialogTitleKey"; "required": false; }; "openButtonTitle": { "alias": "openButtonTitle"; "required": false; }; "openButtonTitleKey": { "alias": "openButtonTitleKey"; "required": false; }; "openButtonAriaLabel": { "alias": "openButtonAriaLabel"; "required": false; }; "openButtonAriaLabelKey": { "alias": "openButtonAriaLabelKey"; "required": false; }; "saveButtonLabel": { "alias": "saveButtonLabel"; "required": false; }; "saveButtonLabelKey": { "alias": "saveButtonLabelKey"; "required": false; }; "saveButtonAriaLabel": { "alias": "saveButtonAriaLabel"; "required": false; }; "saveButtonAriaLabelKey": { "alias": "saveButtonAriaLabelKey"; "required": false; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; }; "cancelButtonLabelKey": { "alias": "cancelButtonLabelKey"; "required": false; }; "cancelButtonAriaLabel": { "alias": "cancelButtonAriaLabel"; "required": false; }; "cancelButtonAriaLabelKey": { "alias": "cancelButtonAriaLabelKey"; "required": false; }; "activeColumnsLabel": { "alias": "activeColumnsLabel"; "required": false; }; "activeColumnsLabelKey": { "alias": "activeColumnsLabelKey"; "required": false; }; "inactiveColumnsLabel": { "alias": "inactiveColumnsLabel"; "required": false; }; "inactiveColumnsLabelKey": { "alias": "inactiveColumnsLabelKey"; "required": false; }; "frozenActionColumn": { "alias": "frozenActionColumn"; "required": false; }; "actionColumnPosition": { "alias": "actionColumnPosition"; "required": false; }; }, { "columnSelectionChanged": "columnSelectionChanged"; "actionColumnConfigChanged": "actionColumnConfigChanged"; "componentStateChanged": "componentStateChanged"; }, never, never, false, never>;
|
|
55
67
|
}
|
|
@@ -2,10 +2,13 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { PrimeIcon } from '../../utils/primeicon.utils';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
interface ViewingLayouts {
|
|
5
|
+
id: string;
|
|
5
6
|
icon: PrimeIcon;
|
|
6
7
|
layout: 'grid' | 'list' | 'table';
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
tooltipKey: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
labelKey: string;
|
|
9
12
|
}
|
|
10
13
|
export interface DataLayoutSelectionComponentState {
|
|
11
14
|
layout?: 'grid' | 'list' | 'table';
|
|
@@ -33,8 +33,8 @@ export declare class DataListGridSortingComponent implements OnInit {
|
|
|
33
33
|
nextSortDirection(): DataSortDirection;
|
|
34
34
|
emitComponentStateChange(): void;
|
|
35
35
|
sortIcon(): "pi-sort-amount-up" | "pi-sort-amount-down" | "pi-sort-alt";
|
|
36
|
-
sortIconTitle(): "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.
|
|
37
|
-
sortDirectionToTitle(sortDirection: DataSortDirection): "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.
|
|
36
|
+
sortIconTitle(): "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.ASCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DESCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DEFAULT_TOOLTIP";
|
|
37
|
+
sortDirectionToTitle(sortDirection: DataSortDirection): "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.ASCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DESCENDING_TOOLTIP" | "OCX_LIST_GRID_SORT.TOGGLE_BUTTON.DEFAULT_TOOLTIP";
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataListGridSortingComponent, never>;
|
|
39
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<DataListGridSortingComponent, "ocx-data-list-grid-sorting", never, { "columns": { "alias": "columns"; "required": false; }; "sortStates": { "alias": "sortStates"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "sortField": { "alias": "sortField"; "required": false; }; }, { "sortChange": "sortChange"; "sortDirectionChange": "sortDirectionChange"; "componentStateChanged": "componentStateChanged"; "columnsChange": "columnsChange"; }, never, never, false, never>;
|
|
40
40
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { QueryList } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Calendar } from 'primeng/calendar';
|
|
4
|
+
export type hasShowTimeFunction = (key: string) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* removeNullValues: whether to remove entries from the search criteria where the value is null
|
|
7
|
+
*/
|
|
8
|
+
export interface BuildSearchCriteriaParameters {
|
|
9
|
+
removeNullValues: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Safely builds the search criteria based on form values
|
|
13
|
+
* @param formValues the form values to use
|
|
14
|
+
* @param calendars a list of primeng calendars of the form (use `@ViewChildren(Calendar) calendars!: QueryList<Calendar>;`)
|
|
15
|
+
* @param parameters {@link BuildSearchCriteriaParameters} to use when building the search criteria
|
|
16
|
+
* @returns the search criteria as a partial of T (T = type of the search criteria)
|
|
17
|
+
*/
|
|
18
|
+
export declare function buildSearchCriteria<T>(formValues: FormGroup<any>, calendars: QueryList<Calendar>, { removeNullValues }: BuildSearchCriteriaParameters): Partial<T>;
|