@pepperi-addons/ngx-composite-lib 0.4.1-beta.1 → 0.4.1-beta.11
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/color-settings/color-settings.component.d.ts +25 -25
- package/color-settings/color-settings.model.d.ts +6 -6
- package/color-settings/color-settings.module.d.ts +12 -12
- package/color-settings/index.d.ts +5 -5
- package/color-settings/public-api.d.ts +3 -3
- package/core/common/directives/index.d.ts +1 -1
- package/core/common/directives/public-api.d.ts +1 -1
- package/core/common/directives/reset-configuration-field.directive.d.ts +39 -39
- package/core/common/index.d.ts +1 -1
- package/core/common/public-api.d.ts +2 -2
- package/core/common/services/dimx.service.d.ts +46 -46
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/public-api.d.ts +2 -2
- package/core/common/services/utilities.service.d.ts +6 -6
- package/core/index.d.ts +1 -1
- package/core/public-api.d.ts +1 -1
- package/data-view-builder/data-view-builder.component.d.ts +35 -35
- package/data-view-builder/data-view-builder.model.d.ts +1 -1
- package/data-view-builder/data-view-builder.module.d.ts +23 -23
- package/data-view-builder/data-view-builder.service.d.ts +14 -14
- package/data-view-builder/index.d.ts +5 -5
- package/data-view-builder/menu-data-view/menu-data-view.component.d.ts +36 -36
- package/data-view-builder/public-api.d.ts +3 -3
- package/esm2020/color-settings/color-settings.component.mjs +86 -86
- package/esm2020/color-settings/color-settings.model.mjs +8 -8
- package/esm2020/color-settings/color-settings.module.mjs +37 -37
- package/esm2020/color-settings/pepperi-addons-ngx-composite-lib-color-settings.mjs +4 -4
- package/esm2020/color-settings/public-api.mjs +6 -6
- package/esm2020/core/common/directives/index.mjs +4 -4
- package/esm2020/core/common/directives/public-api.mjs +4 -4
- package/esm2020/core/common/directives/reset-configuration-field.directive.mjs +135 -135
- package/esm2020/core/common/index.mjs +4 -4
- package/esm2020/core/common/public-api.mjs +5 -5
- package/esm2020/core/common/services/dimx.service.mjs +63 -63
- package/esm2020/core/common/services/index.mjs +4 -4
- package/esm2020/core/common/services/public-api.mjs +5 -5
- package/esm2020/core/common/services/utilities.service.mjs +18 -18
- package/esm2020/core/index.mjs +4 -4
- package/esm2020/core/public-api.mjs +4 -4
- package/esm2020/data-view-builder/data-view-builder.component.mjs +116 -116
- package/esm2020/data-view-builder/data-view-builder.model.mjs +1 -1
- package/esm2020/data-view-builder/data-view-builder.module.mjs +79 -79
- package/esm2020/data-view-builder/data-view-builder.service.mjs +38 -38
- package/esm2020/data-view-builder/menu-data-view/menu-data-view.component.mjs +116 -116
- package/esm2020/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +4 -4
- package/esm2020/data-view-builder/public-api.mjs +6 -6
- package/esm2020/file-status-panel/file-status-panel.component.mjs +34 -34
- package/esm2020/file-status-panel/file-status-panel.model.mjs +8 -8
- package/esm2020/file-status-panel/file-status-panel.module.mjs +53 -53
- package/esm2020/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +4 -4
- package/esm2020/file-status-panel/public-api.mjs +6 -6
- package/esm2020/generic-form/generic-form.component.mjs +190 -184
- package/esm2020/generic-form/generic-form.model.mjs +2 -2
- package/esm2020/generic-form/generic-form.module.mjs +67 -67
- package/esm2020/generic-form/generic-form.service.mjs +57 -57
- package/esm2020/generic-form/pepperi-addons-ngx-composite-lib-generic-form.mjs +4 -4
- package/esm2020/generic-form/public-api.mjs +7 -7
- package/esm2020/generic-list/generic-list.component.mjs +459 -417
- package/esm2020/generic-list/generic-list.model.mjs +2 -2
- package/esm2020/generic-list/generic-list.module.mjs +107 -70
- package/esm2020/generic-list/generic-list.service.mjs +137 -125
- package/esm2020/generic-list/pepperi-addons-ngx-composite-lib-generic-list.mjs +4 -4
- package/esm2020/generic-list/public-api.mjs +7 -7
- package/esm2020/group-buttons-settings/group-buttons-settings.component.mjs +129 -129
- package/esm2020/group-buttons-settings/group-buttons-settings.model.mjs +1 -1
- package/esm2020/group-buttons-settings/group-buttons-settings.module.mjs +47 -47
- package/esm2020/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +4 -4
- package/esm2020/group-buttons-settings/public-api.mjs +6 -6
- package/esm2020/ngx-composite-lib.module.mjs +54 -54
- package/esm2020/pepperi-addons-ngx-composite-lib.mjs +4 -4
- package/esm2020/public-api.mjs +5 -5
- package/esm2020/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +4 -4
- package/esm2020/shadow-settings/public-api.mjs +6 -6
- package/esm2020/shadow-settings/shadow-settings.component.mjs +68 -68
- package/esm2020/shadow-settings/shadow-settings.model.mjs +7 -7
- package/esm2020/shadow-settings/shadow-settings.module.mjs +41 -41
- package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.mjs +116 -116
- package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +309 -309
- package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +80 -80
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs +287 -279
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.mjs +692 -602
- package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +164 -164
- package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +101 -101
- package/fesm2015/pepperi-addons-ngx-composite-lib.mjs +271 -271
- package/fesm2015/pepperi-addons-ngx-composite-lib.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-color-settings.mjs +116 -116
- package/fesm2020/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +307 -307
- package/fesm2020/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +78 -78
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-form.mjs +288 -281
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-list.mjs +674 -585
- package/fesm2020/pepperi-addons-ngx-composite-lib-generic-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +163 -163
- package/fesm2020/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +101 -101
- package/fesm2020/pepperi-addons-ngx-composite-lib.mjs +264 -264
- package/fesm2020/pepperi-addons-ngx-composite-lib.mjs.map +1 -1
- package/file-status-panel/file-status-panel.component.d.ts +14 -14
- package/file-status-panel/file-status-panel.model.d.ts +7 -7
- package/file-status-panel/file-status-panel.module.d.ts +17 -17
- package/file-status-panel/index.d.ts +5 -5
- package/file-status-panel/public-api.d.ts +3 -3
- package/generic-form/generic-form.component.d.ts +43 -44
- package/generic-form/generic-form.model.d.ts +42 -34
- package/generic-form/generic-form.module.d.ts +13 -13
- package/generic-form/generic-form.service.d.ts +15 -15
- package/generic-form/index.d.ts +5 -5
- package/generic-form/public-api.d.ts +4 -4
- package/generic-list/generic-list.component.d.ts +109 -101
- package/generic-list/generic-list.component.theme.scss +10 -0
- package/generic-list/generic-list.model.d.ts +66 -54
- package/generic-list/generic-list.module.d.ts +25 -18
- package/generic-list/generic-list.service.d.ts +44 -43
- package/generic-list/index.d.ts +5 -5
- package/generic-list/public-api.d.ts +4 -4
- package/group-buttons-settings/group-buttons-settings.component.d.ts +33 -33
- package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
- package/group-buttons-settings/group-buttons-settings.module.d.ts +15 -15
- package/group-buttons-settings/index.d.ts +5 -5
- package/group-buttons-settings/public-api.d.ts +3 -3
- package/index.d.ts +5 -5
- package/ngx-composite-lib.module.d.ts +13 -13
- package/package.json +2 -2
- package/public-api.d.ts +2 -2
- package/shadow-settings/index.d.ts +5 -5
- package/shadow-settings/public-api.d.ts +3 -3
- package/shadow-settings/shadow-settings.component.d.ts +23 -23
- package/shadow-settings/shadow-settings.model.d.ts +8 -8
- package/shadow-settings/shadow-settings.module.d.ts +13 -13
- package/src/assets/i18n/en.ngx-composite-lib.json +8 -1
|
@@ -1,101 +1,109 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, ViewContainerRef
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private _dataConvertorService;
|
|
16
|
-
private _layoutService;
|
|
17
|
-
private _loaderService;
|
|
18
|
-
private
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
private
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
private
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
private
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1
|
+
import { OnInit, EventEmitter, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { PepDataConvertorService, PepLayoutService, ObjectsDataRow, PepLoaderService } from '@pepperi-addons/ngx-lib';
|
|
4
|
+
import { IPepFormFieldClickEvent } from '@pepperi-addons/ngx-lib/form';
|
|
5
|
+
import { PepListComponent, PepSelectionData, PepListSelectionType, IPepListSortingChangeEvent, PepListTableViewType } from '@pepperi-addons/ngx-lib/list';
|
|
6
|
+
import { PepMenuItem, IPepMenuItemClickEvent } from '@pepperi-addons/ngx-lib/menu';
|
|
7
|
+
import { IPepFormFieldValueChangeEvent } from '@pepperi-addons/ngx-lib/form';
|
|
8
|
+
import { PepBreadCrumbItem, IPepBreadCrumbItemClickEvent } from '@pepperi-addons/ngx-lib/bread-crumbs';
|
|
9
|
+
import { IPepSearchClickEvent, PepSearchComponent } from '@pepperi-addons/ngx-lib/search';
|
|
10
|
+
import { IPepGenericListDataSource, IPepGenericListPager, IPepGenericListActions, IPepGenericListSmartFilter, IPepGenericListEmptyState } from './generic-list.model';
|
|
11
|
+
import { PepGenericListService } from './generic-list.service';
|
|
12
|
+
import { IPepSmartFilterData, PepSmartFilterBaseField } from '@pepperi-addons/ngx-lib/smart-filters';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class GenericListComponent implements OnInit {
|
|
15
|
+
private _dataConvertorService;
|
|
16
|
+
private _layoutService;
|
|
17
|
+
private _loaderService;
|
|
18
|
+
private _translate;
|
|
19
|
+
private _genericListService;
|
|
20
|
+
search: PepSearchComponent | undefined;
|
|
21
|
+
private _pepListContainer;
|
|
22
|
+
set pepListContainer(val: ViewContainerRef);
|
|
23
|
+
private _dataSource;
|
|
24
|
+
set dataSource(val: IPepGenericListDataSource);
|
|
25
|
+
actions: IPepGenericListActions;
|
|
26
|
+
uuidMapping: string;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
addPadding: boolean;
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
inline: boolean;
|
|
32
|
+
showSearch: boolean;
|
|
33
|
+
noDataFoundMsg: string;
|
|
34
|
+
emptyState: IPepGenericListEmptyState | undefined;
|
|
35
|
+
selectionType: PepListSelectionType;
|
|
36
|
+
supportSorting: boolean;
|
|
37
|
+
pager: IPepGenericListPager;
|
|
38
|
+
tableViewType: PepListTableViewType;
|
|
39
|
+
zebraStripes: boolean;
|
|
40
|
+
set smartFilter(val: IPepGenericListSmartFilter);
|
|
41
|
+
showTopBar: boolean;
|
|
42
|
+
breadCrumbsItems: PepBreadCrumbItem[];
|
|
43
|
+
fieldClick: EventEmitter<IPepFormFieldClickEvent>;
|
|
44
|
+
valueChange: EventEmitter<IPepFormFieldValueChangeEvent>;
|
|
45
|
+
breadCrumbItemClick: EventEmitter<IPepBreadCrumbItemClickEvent>;
|
|
46
|
+
set pepList(val: PepListComponent);
|
|
47
|
+
get pepList(): PepListComponent;
|
|
48
|
+
private _resize$;
|
|
49
|
+
private _loader$;
|
|
50
|
+
private _dataView;
|
|
51
|
+
private _pepList;
|
|
52
|
+
onLoad: boolean;
|
|
53
|
+
listInputs: any;
|
|
54
|
+
totalRowCount: number;
|
|
55
|
+
searchString: string;
|
|
56
|
+
showSmartFilter: boolean;
|
|
57
|
+
showEmptyState: boolean;
|
|
58
|
+
internalSmartFilter: {
|
|
59
|
+
fields: PepSmartFilterBaseField[];
|
|
60
|
+
data: IPepSmartFilterData[];
|
|
61
|
+
};
|
|
62
|
+
private _appliedFilters;
|
|
63
|
+
private _sorting;
|
|
64
|
+
menuHandlers: {
|
|
65
|
+
[key: string]: (obj: any) => Promise<void>;
|
|
66
|
+
};
|
|
67
|
+
menuActions: Array<PepMenuItem>;
|
|
68
|
+
constructor(_dataConvertorService: PepDataConvertorService, _layoutService: PepLayoutService, _loaderService: PepLoaderService, _translate: TranslateService, _genericListService: PepGenericListService);
|
|
69
|
+
ngOnInit(): void;
|
|
70
|
+
private initList;
|
|
71
|
+
/**
|
|
72
|
+
* loads inputs in case they are provided and merge with selector inputs
|
|
73
|
+
* @returns merged pep-list inputs
|
|
74
|
+
*/
|
|
75
|
+
private loadTableInputs;
|
|
76
|
+
/**
|
|
77
|
+
* detemines whether empty state is to be displayed
|
|
78
|
+
*/
|
|
79
|
+
private setEmptyState;
|
|
80
|
+
private getUiControl;
|
|
81
|
+
private loadMenuItems;
|
|
82
|
+
private getMenuActions;
|
|
83
|
+
private getMenuObjects;
|
|
84
|
+
private initSearch;
|
|
85
|
+
private loadData;
|
|
86
|
+
private updateDataList;
|
|
87
|
+
/**
|
|
88
|
+
* loads virtual scroll items from api
|
|
89
|
+
*/
|
|
90
|
+
private onLoadItems;
|
|
91
|
+
/**
|
|
92
|
+
* loads paging bulk from api
|
|
93
|
+
*/
|
|
94
|
+
private onLoadPage;
|
|
95
|
+
getItemById(id: string): ObjectsDataRow | null;
|
|
96
|
+
getSelectedItems(): PepSelectionData | null;
|
|
97
|
+
getPageIndex(): number;
|
|
98
|
+
onActionItemClicked(action: IPepMenuItemClickEvent): void;
|
|
99
|
+
onSearchChanged(event: IPepSearchClickEvent): void;
|
|
100
|
+
onSelectedItemsChanged(selectedRowsCount: number): void;
|
|
101
|
+
onCustomizeFieldClick(fieldClickEvent: IPepFormFieldClickEvent): void;
|
|
102
|
+
onBreadCrumbItemClick(event: IPepBreadCrumbItemClickEvent): void;
|
|
103
|
+
onValueChanged(event: IPepFormFieldValueChangeEvent): void;
|
|
104
|
+
onSortingChange(event: IPepListSortingChangeEvent): void;
|
|
105
|
+
onFiltersChange(filters: IPepSmartFilterData[]): void;
|
|
106
|
+
ngOnDestroy(): void;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericListComponent, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericListComponent, "pep-generic-list", never, { "dataSource": "dataSource"; "actions": "actions"; "uuidMapping": "uuidMapping"; "disabled": "disabled"; "addPadding": "addPadding"; "title": "title"; "description": "description"; "inline": "inline"; "showSearch": "showSearch"; "noDataFoundMsg": "noDataFoundMsg"; "emptyState": "emptyState"; "selectionType": "selectionType"; "supportSorting": "supportSorting"; "pager": "pager"; "tableViewType": "tableViewType"; "zebraStripes": "zebraStripes"; "smartFilter": "smartFilter"; "showTopBar": "showTopBar"; "breadCrumbsItems": "breadCrumbsItems"; }, { "fieldClick": "fieldClick"; "valueChange": "valueChange"; "breadCrumbItemClick": "breadCrumbItemClick"; }, never, ["[left-buttons]", "[right-buttons]"], false>;
|
|
109
|
+
}
|
|
@@ -1,54 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
1
|
+
import { GridDataView, CardDataView, LineDataView, MenuDataView, BaseFormDataViewField } from '@pepperi-addons/papi-sdk/dist/entities/data-view';
|
|
2
|
+
import { KeyValuePair } from '@pepperi-addons/ngx-lib';
|
|
3
|
+
import { PepListPagerType, PepListSelectionType, IPepListSortingChangeEvent, PepListTableViewType, PepSelectionData } from '@pepperi-addons/ngx-lib/list';
|
|
4
|
+
import { IPepSmartFilterData } from '@pepperi-addons/ngx-lib/smart-filters';
|
|
5
|
+
export interface IPepGenericListDataSource {
|
|
6
|
+
init(params: IPepGenericListParams): Promise<IPepGenericListInitData>;
|
|
7
|
+
update?(params: IPepGenericListParams): Promise<any[]>;
|
|
8
|
+
inputs?: IPepGenericListListInputs;
|
|
9
|
+
}
|
|
10
|
+
export interface IPepGenericListParams {
|
|
11
|
+
searchString?: string;
|
|
12
|
+
filters?: any;
|
|
13
|
+
sorting?: IPepListSortingChangeEvent;
|
|
14
|
+
fromIndex?: number;
|
|
15
|
+
toIndex?: number;
|
|
16
|
+
pageIndex?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface IPepGenericListInitData {
|
|
19
|
+
dataView: GridDataView | CardDataView | LineDataView;
|
|
20
|
+
totalCount: number;
|
|
21
|
+
items: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}[] | IPepGenericListDataRow[];
|
|
24
|
+
isPepRowData?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface IPepGenericListDataRow {
|
|
27
|
+
fields: {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}[];
|
|
30
|
+
isEditable?: boolean;
|
|
31
|
+
isSelected?: boolean;
|
|
32
|
+
isSelectableForActions?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface IPepGenericListListInputs {
|
|
35
|
+
supportSorting?: boolean;
|
|
36
|
+
selectionType?: PepListSelectionType;
|
|
37
|
+
pager?: IPepGenericListPager;
|
|
38
|
+
noDataFoundMsg?: string;
|
|
39
|
+
tableViewType?: PepListTableViewType;
|
|
40
|
+
zebraStripes?: boolean;
|
|
41
|
+
smartFilter?: IPepGenericListSmartFilter;
|
|
42
|
+
emptyState?: IPepGenericListEmptyState;
|
|
43
|
+
}
|
|
44
|
+
export interface IPepGenericListActions {
|
|
45
|
+
get(data: PepSelectionData): Promise<{
|
|
46
|
+
title: string;
|
|
47
|
+
handler: (obj: any) => Promise<void>;
|
|
48
|
+
}[]>;
|
|
49
|
+
}
|
|
50
|
+
export interface IPepGenericListPager {
|
|
51
|
+
type: PepListPagerType;
|
|
52
|
+
size?: number;
|
|
53
|
+
index?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface IPepGenericListSmartFilter {
|
|
56
|
+
dataView: MenuDataView;
|
|
57
|
+
data?: IPepSmartFilterData[];
|
|
58
|
+
}
|
|
59
|
+
export interface IPepGenericListDataViewField extends BaseFormDataViewField {
|
|
60
|
+
OptionalValues?: Array<KeyValuePair<string>>;
|
|
61
|
+
}
|
|
62
|
+
export interface IPepGenericListEmptyState {
|
|
63
|
+
show: boolean;
|
|
64
|
+
title?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { PepIconRegistry } from '@pepperi-addons/ngx-lib/icon';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./generic-list.component";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@pepperi-addons/ngx-lib";
|
|
7
|
+
import * as i4 from "@angular/material/icon";
|
|
8
|
+
import * as i5 from "@pepperi-addons/ngx-lib/list";
|
|
9
|
+
import * as i6 from "@pepperi-addons/ngx-lib/form";
|
|
10
|
+
import * as i7 from "@pepperi-addons/ngx-lib/menu";
|
|
11
|
+
import * as i8 from "@pepperi-addons/ngx-lib/page-layout";
|
|
12
|
+
import * as i9 from "@pepperi-addons/ngx-lib/top-bar";
|
|
13
|
+
import * as i10 from "@pepperi-addons/ngx-lib/side-bar";
|
|
14
|
+
import * as i11 from "@pepperi-addons/ngx-lib/search";
|
|
15
|
+
import * as i12 from "@pepperi-addons/ngx-lib/bread-crumbs";
|
|
16
|
+
import * as i13 from "@pepperi-addons/ngx-lib/icon";
|
|
17
|
+
import * as i14 from "@pepperi-addons/ngx-lib/smart-filters";
|
|
18
|
+
export declare function appInitializerFactory(translate: TranslateService): () => Promise<any>;
|
|
19
|
+
export declare class PepGenericListModule {
|
|
20
|
+
private pepIconRegistry;
|
|
21
|
+
constructor(pepIconRegistry: PepIconRegistry);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PepGenericListModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PepGenericListModule, [typeof i1.GenericListComponent], [typeof i2.CommonModule, typeof i3.PepNgxLibModule, typeof i4.MatIconModule, typeof i5.PepListModule, typeof i6.PepFormModule, typeof i7.PepMenuModule, typeof i8.PepPageLayoutModule, typeof i9.PepTopBarModule, typeof i10.PepSideBarModule, typeof i11.PepSearchModule, typeof i12.PepBreadCrumbsModule, typeof i13.PepIconModule, typeof i14.PepSmartFiltersModule], [typeof i1.GenericListComponent]>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PepGenericListModule>;
|
|
25
|
+
}
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { IPepGenericListSmartFilter } from './generic-list.model';
|
|
3
|
-
import { PepSmartFilterBaseField, IPepSmartFilterData } from '@pepperi-addons/ngx-lib/smart-filters';
|
|
4
|
-
import { PepQueryBuilderService } from '@pepperi-addons/ngx-lib/query-builder';
|
|
5
|
-
import { PepRowData } from '@pepperi-addons/ngx-lib';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class PepGenericListService {
|
|
8
|
-
private _translate;
|
|
9
|
-
private _queryBuilderService;
|
|
10
|
-
constructor(_translate: TranslateService, _queryBuilderService: PepQueryBuilderService);
|
|
11
|
-
/**
|
|
12
|
-
* checks if the object contains property
|
|
13
|
-
* @param obj object
|
|
14
|
-
* @param prop property name
|
|
15
|
-
* @returns true if contains, false otherwise
|
|
16
|
-
*/
|
|
17
|
-
hasProperty(obj: any, prop: string): boolean;
|
|
18
|
-
getListViewType(dataViewType: string): "table" | "cards" | "lines";
|
|
19
|
-
convertToPepRowData(item: any, dataView: any, uuidMapping: string): PepRowData;
|
|
20
|
-
convertToUiControlField(field: any): {
|
|
21
|
-
ApiName: any;
|
|
22
|
-
FieldType: any;
|
|
23
|
-
Title: any;
|
|
24
|
-
ReadOnly: any;
|
|
25
|
-
ColumnWidth: any;
|
|
26
|
-
ColumnWidthType: number;
|
|
27
|
-
Layout: {
|
|
28
|
-
X: any;
|
|
29
|
-
Y: any;
|
|
30
|
-
Width: any;
|
|
31
|
-
Height: any;
|
|
32
|
-
XAlignment: any;
|
|
33
|
-
YAlignment: any;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
convertToSmartFilter(smartFilter: IPepGenericListSmartFilter): {
|
|
37
|
-
fields: PepSmartFilterBaseField[];
|
|
38
|
-
data: IPepSmartFilterData[];
|
|
39
|
-
};
|
|
40
|
-
createSmartFilterFields(dataView: any): PepSmartFilterBaseField[];
|
|
41
|
-
|
|
42
|
-
static
|
|
43
|
-
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { IPepGenericListSmartFilter } from './generic-list.model';
|
|
3
|
+
import { PepSmartFilterBaseField, IPepSmartFilterData } from '@pepperi-addons/ngx-lib/smart-filters';
|
|
4
|
+
import { PepQueryBuilderService } from '@pepperi-addons/ngx-lib/query-builder';
|
|
5
|
+
import { PepRowData, ObjectsDataRow } from '@pepperi-addons/ngx-lib';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PepGenericListService {
|
|
8
|
+
private _translate;
|
|
9
|
+
private _queryBuilderService;
|
|
10
|
+
constructor(_translate: TranslateService, _queryBuilderService: PepQueryBuilderService);
|
|
11
|
+
/**
|
|
12
|
+
* checks if the object contains property
|
|
13
|
+
* @param obj object
|
|
14
|
+
* @param prop property name
|
|
15
|
+
* @returns true if contains, false otherwise
|
|
16
|
+
*/
|
|
17
|
+
hasProperty(obj: any, prop: string): boolean;
|
|
18
|
+
getListViewType(dataViewType: string): "table" | "cards" | "lines";
|
|
19
|
+
convertToPepRowData(item: any, dataView: any, uuidMapping: string): PepRowData;
|
|
20
|
+
convertToUiControlField(field: any): {
|
|
21
|
+
ApiName: any;
|
|
22
|
+
FieldType: any;
|
|
23
|
+
Title: any;
|
|
24
|
+
ReadOnly: any;
|
|
25
|
+
ColumnWidth: any;
|
|
26
|
+
ColumnWidthType: number;
|
|
27
|
+
Layout: {
|
|
28
|
+
X: any;
|
|
29
|
+
Y: any;
|
|
30
|
+
Width: any;
|
|
31
|
+
Height: any;
|
|
32
|
+
XAlignment: any;
|
|
33
|
+
YAlignment: any;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
convertToSmartFilter(smartFilter: IPepGenericListSmartFilter): {
|
|
37
|
+
fields: PepSmartFilterBaseField[];
|
|
38
|
+
data: IPepSmartFilterData[];
|
|
39
|
+
};
|
|
40
|
+
createSmartFilterFields(dataView: any): PepSmartFilterBaseField[];
|
|
41
|
+
getSelectedItems(items: ObjectsDataRow[]): any[];
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PepGenericListService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PepGenericListService>;
|
|
44
|
+
}
|
package/generic-list/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@pepperi-addons/ngx-composite-lib/generic-list" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@pepperi-addons/ngx-composite-lib/generic-list" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './generic-list.module';
|
|
2
|
-
export * from './generic-list.component';
|
|
3
|
-
export * from './generic-list.model';
|
|
4
|
-
export * from './generic-list.service';
|
|
1
|
+
export * from './generic-list.module';
|
|
2
|
+
export * from './generic-list.component';
|
|
3
|
+
export * from './generic-list.model';
|
|
4
|
+
export * from './generic-list.service';
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { IPepButtonClickEvent, PepButton } from '@pepperi-addons/ngx-lib/button';
|
|
4
|
-
import { PepGroupbuttonsTypes } from './group-buttons-settings.model';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GroupButtonsSettingsComponent implements OnInit {
|
|
7
|
-
private translate;
|
|
8
|
-
header: string;
|
|
9
|
-
subHeader: string;
|
|
10
|
-
groupType: PepGroupbuttonsTypes;
|
|
11
|
-
btnsArray: Array<PepButton>;
|
|
12
|
-
excludeKeys: Array<string>;
|
|
13
|
-
useNone: boolean;
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
dir: 'rtl' | 'ltr';
|
|
16
|
-
private _btnKey;
|
|
17
|
-
set btnKey(value: any);
|
|
18
|
-
get btnKey(): any;
|
|
19
|
-
btnkeyChange: EventEmitter<IPepButtonClickEvent>;
|
|
20
|
-
none: PepButton;
|
|
21
|
-
sizes: Array<PepButton>;
|
|
22
|
-
constructor(translate: TranslateService);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
arrayMerge(): void;
|
|
25
|
-
onKeyChange(event: IPepButtonClickEvent | null): void;
|
|
26
|
-
getButtonsArray(): PepButton[] | {
|
|
27
|
-
key: string;
|
|
28
|
-
value: any;
|
|
29
|
-
callback: (event: IPepButtonClickEvent) => void;
|
|
30
|
-
}[];
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GroupButtonsSettingsComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GroupButtonsSettingsComponent, "pep-group-buttons-settings", never, { "header": "header"; "subHeader": "subHeader"; "groupType": "groupType"; "btnsArray": "btnsArray"; "excludeKeys": "excludeKeys"; "useNone": "useNone"; "disabled": "disabled"; "dir": "dir"; "btnKey": "btnKey"; }, { "btnkeyChange": "btnkeyChange"; }, never, never, false>;
|
|
33
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { IPepButtonClickEvent, PepButton } from '@pepperi-addons/ngx-lib/button';
|
|
4
|
+
import { PepGroupbuttonsTypes } from './group-buttons-settings.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GroupButtonsSettingsComponent implements OnInit {
|
|
7
|
+
private translate;
|
|
8
|
+
header: string;
|
|
9
|
+
subHeader: string;
|
|
10
|
+
groupType: PepGroupbuttonsTypes;
|
|
11
|
+
btnsArray: Array<PepButton>;
|
|
12
|
+
excludeKeys: Array<string>;
|
|
13
|
+
useNone: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
dir: 'rtl' | 'ltr';
|
|
16
|
+
private _btnKey;
|
|
17
|
+
set btnKey(value: any);
|
|
18
|
+
get btnKey(): any;
|
|
19
|
+
btnkeyChange: EventEmitter<IPepButtonClickEvent>;
|
|
20
|
+
none: PepButton;
|
|
21
|
+
sizes: Array<PepButton>;
|
|
22
|
+
constructor(translate: TranslateService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
arrayMerge(): void;
|
|
25
|
+
onKeyChange(event: IPepButtonClickEvent | null): void;
|
|
26
|
+
getButtonsArray(): PepButton[] | {
|
|
27
|
+
key: string;
|
|
28
|
+
value: any;
|
|
29
|
+
callback: (event: IPepButtonClickEvent) => void;
|
|
30
|
+
}[];
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupButtonsSettingsComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupButtonsSettingsComponent, "pep-group-buttons-settings", never, { "header": "header"; "subHeader": "subHeader"; "groupType": "groupType"; "btnsArray": "btnsArray"; "excludeKeys": "excludeKeys"; "useNone": "useNone"; "disabled": "disabled"; "dir": "dir"; "btnKey": "btnKey"; }, { "btnkeyChange": "btnkeyChange"; }, never, never, false>;
|
|
33
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type PepGroupbuttonsTypes = 'sizes' | 'font-weight' | 'width-sizes' | 'vertical-align' | 'horizontal-align' | 'custom';
|
|
1
|
+
export declare type PepGroupbuttonsTypes = 'sizes' | 'font-weight' | 'width-sizes' | 'vertical-align' | 'horizontal-align' | 'custom';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { PepIconRegistry } from '@pepperi-addons/ngx-lib/icon';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./group-buttons-settings.component";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
import * as i3 from "@pepperi-addons/ngx-lib";
|
|
6
|
-
import * as i4 from "@pepperi-addons/ngx-lib/field-title";
|
|
7
|
-
import * as i5 from "@pepperi-addons/ngx-lib/group-buttons";
|
|
8
|
-
import * as i6 from "@pepperi-addons/ngx-lib/icon";
|
|
9
|
-
export declare class PepGroupButtonsSettingsModule {
|
|
10
|
-
private pepIconRegistry;
|
|
11
|
-
constructor(pepIconRegistry: PepIconRegistry);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PepGroupButtonsSettingsModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PepGroupButtonsSettingsModule, [typeof i1.GroupButtonsSettingsComponent], [typeof i2.CommonModule, typeof i3.PepNgxLibModule, typeof i4.PepFieldTitleModule, typeof i5.PepGroupButtonsModule, typeof i6.PepIconModule], [typeof i1.GroupButtonsSettingsComponent]>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PepGroupButtonsSettingsModule>;
|
|
15
|
-
}
|
|
1
|
+
import { PepIconRegistry } from '@pepperi-addons/ngx-lib/icon';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./group-buttons-settings.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@pepperi-addons/ngx-lib";
|
|
6
|
+
import * as i4 from "@pepperi-addons/ngx-lib/field-title";
|
|
7
|
+
import * as i5 from "@pepperi-addons/ngx-lib/group-buttons";
|
|
8
|
+
import * as i6 from "@pepperi-addons/ngx-lib/icon";
|
|
9
|
+
export declare class PepGroupButtonsSettingsModule {
|
|
10
|
+
private pepIconRegistry;
|
|
11
|
+
constructor(pepIconRegistry: PepIconRegistry);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PepGroupButtonsSettingsModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PepGroupButtonsSettingsModule, [typeof i1.GroupButtonsSettingsComponent], [typeof i2.CommonModule, typeof i3.PepNgxLibModule, typeof i4.PepFieldTitleModule, typeof i5.PepGroupButtonsModule, typeof i6.PepIconModule], [typeof i1.GroupButtonsSettingsComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PepGroupButtonsSettingsModule>;
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@pepperi-addons/ngx-composite-lib/group-buttons-settings" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@pepperi-addons/ngx-composite-lib/group-buttons-settings" />
|
|
5
|
+
export * from './public-api';
|