@pepperi-addons/ngx-lib 0.4.2-beta.315 → 0.4.2-beta.316

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.
@@ -1,5 +1,5 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { PepLayoutService } from '@pepperi-addons/ngx-lib';
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { IPepOption, PepLayoutService, PepScreenSizeType } from '@pepperi-addons/ngx-lib';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class IPepListPagerChangeEvent {
5
5
  pageIndex: number;
@@ -7,10 +7,19 @@ export declare class IPepListPagerChangeEvent {
7
7
  pageSize: number;
8
8
  length: number;
9
9
  }
10
- export declare class PepListPagerComponent {
10
+ export declare class PepListPagerComponent implements OnDestroy {
11
11
  private _changeDetectorRef;
12
12
  layoutService: PepLayoutService;
13
13
  disabled: boolean;
14
+ showPageSizeSelector: boolean;
15
+ showFirstLastButtons: boolean;
16
+ PepScreenSizeType: typeof PepScreenSizeType;
17
+ screenSize: PepScreenSizeType;
18
+ private resizeSub;
19
+ pageSizeOptionsForSelect: Array<IPepOption>;
20
+ private _pageSizeOptions;
21
+ set pageSizeOptions(value: number[]);
22
+ get pageSizeOptions(): number[];
14
23
  private _pageIndex;
15
24
  set pageIndex(value: number);
16
25
  get pageIndex(): number;
@@ -18,6 +27,7 @@ export declare class PepListPagerComponent {
18
27
  pageSize: number;
19
28
  pagerChange: EventEmitter<IPepListPagerChangeEvent>;
20
29
  constructor(_changeDetectorRef: ChangeDetectorRef, layoutService: PepLayoutService);
30
+ ngOnDestroy(): void;
21
31
  nextPage(): void;
22
32
  previousPage(): void;
23
33
  firstPage(): void;
@@ -30,10 +40,11 @@ export declare class PepListPagerComponent {
30
40
  /** Checks whether the buttons for going backwards should be disabled. */
31
41
  _previousButtonsDisabled(): boolean;
32
42
  onValueChange(value: string): void;
43
+ onPageSizeChange(value: string): void;
33
44
  private setPageIndex;
34
45
  /** Emits an event notifying that a change of the paginator's properties has been triggered. */
35
46
  private _emitChangeEvent;
36
47
  static ɵfac: i0.ɵɵFactoryDeclaration<PepListPagerComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<PepListPagerComponent, "pep-list-pager", never, { "disabled": "disabled"; "pageIndex": "pageIndex"; "length": "length"; "pageSize": "pageSize"; }, { "pagerChange": "pagerChange"; }, never, never, false>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<PepListPagerComponent, "pep-list-pager", never, { "disabled": "disabled"; "showPageSizeSelector": "showPageSizeSelector"; "showFirstLastButtons": "showFirstLastButtons"; "pageSizeOptions": "pageSizeOptions"; "pageIndex": "pageIndex"; "length": "length"; "pageSize": "pageSize"; }, { "pagerChange": "pagerChange"; }, never, never, false>;
38
49
  static ɵprov: i0.ɵɵInjectableDeclaration<PepListPagerComponent>;
39
50
  }
@@ -53,6 +53,9 @@ export declare class PepListComponent implements OnInit, OnChanges, OnDestroy {
53
53
  totalsRow: any[];
54
54
  pagerType: PepListPagerType;
55
55
  pageSize: number;
56
+ showPageSizeSelector: boolean;
57
+ pageSizeOptions: number[];
58
+ showFirstLastButtons: boolean;
56
59
  pageIndex: number;
57
60
  bufferAmount: number;
58
61
  scrollAnimationTime: number;
@@ -181,5 +184,5 @@ export declare class PepListComponent implements OnInit, OnChanges, OnDestroy {
181
184
  onCustomizeFieldClick(customizeFieldClickedData: IPepFormFieldClickEvent): void;
182
185
  isSortableColumn(apiName: string): boolean;
183
186
  static ɵfac: i0.ɵɵFactoryDeclaration<PepListComponent, never>;
184
- static ɵcmp: i0.ɵɵComponentDeclaration<PepListComponent, "pep-list", never, { "sorting": "sorting"; "cacheSize": "cacheSize"; "noDataFoundMsg": "noDataFoundMsg"; "selectionTypeForActions": "selectionTypeForActions"; "showCardSelection": "showCardSelection"; "hideAllSelectionInMulti": "hideAllSelectionInMulti"; "cardSize": "cardSize"; "tableViewType": "tableViewType"; "viewType": "viewType"; "firstFieldAsLink": "firstFieldAsLink"; "supportSorting": "supportSorting"; "supportSortingFields": "supportSortingFields"; "supportResizing": "supportResizing"; "parentScroll": "parentScroll"; "disabled": "disabled"; "lockEvents": "lockEvents"; "lockItemInnerEvents": "lockItemInnerEvents"; "printMode": "printMode"; "isReport": "isReport"; "zebraStripes": "zebraStripes"; "totalsRow": "totalsRow"; "pagerType": "pagerType"; "pageSize": "pageSize"; "pageIndex": "pageIndex"; "bufferAmount": "bufferAmount"; "scrollAnimationTime": "scrollAnimationTime"; "scrollDebounceTime": "scrollDebounceTime"; "scrollThrottlingTime": "scrollThrottlingTime"; "SEPARATOR": "SEPARATOR"; "useAsWebComponent": "useAsWebComponent"; }, { "itemClick": "itemClick"; "fieldClick": "fieldClick"; "valueChange": "valueChange"; "sortingChange": "sortingChange"; "selectedItemsChange": "selectedItemsChange"; "selectedItemChange": "selectedItemChange"; "selectAllClick": "selectAllClick"; "listLoad": "listLoad"; "loadItems": "loadItems"; "loadPage": "loadPage"; "startIndexChange": "startIndexChange"; }, never, never, false>;
187
+ static ɵcmp: i0.ɵɵComponentDeclaration<PepListComponent, "pep-list", never, { "sorting": "sorting"; "cacheSize": "cacheSize"; "noDataFoundMsg": "noDataFoundMsg"; "selectionTypeForActions": "selectionTypeForActions"; "showCardSelection": "showCardSelection"; "hideAllSelectionInMulti": "hideAllSelectionInMulti"; "cardSize": "cardSize"; "tableViewType": "tableViewType"; "viewType": "viewType"; "firstFieldAsLink": "firstFieldAsLink"; "supportSorting": "supportSorting"; "supportSortingFields": "supportSortingFields"; "supportResizing": "supportResizing"; "parentScroll": "parentScroll"; "disabled": "disabled"; "lockEvents": "lockEvents"; "lockItemInnerEvents": "lockItemInnerEvents"; "printMode": "printMode"; "isReport": "isReport"; "zebraStripes": "zebraStripes"; "totalsRow": "totalsRow"; "pagerType": "pagerType"; "pageSize": "pageSize"; "showPageSizeSelector": "showPageSizeSelector"; "pageSizeOptions": "pageSizeOptions"; "showFirstLastButtons": "showFirstLastButtons"; "pageIndex": "pageIndex"; "bufferAmount": "bufferAmount"; "scrollAnimationTime": "scrollAnimationTime"; "scrollDebounceTime": "scrollDebounceTime"; "scrollThrottlingTime": "scrollThrottlingTime"; "SEPARATOR": "SEPARATOR"; "useAsWebComponent": "useAsWebComponent"; }, { "itemClick": "itemClick"; "fieldClick": "fieldClick"; "valueChange": "valueChange"; "sortingChange": "sortingChange"; "selectedItemsChange": "selectedItemsChange"; "selectedItemChange": "selectedItemChange"; "selectAllClick": "selectAllClick"; "listLoad": "listLoad"; "loadItems": "loadItems"; "loadPage": "loadPage"; "startIndexChange": "startIndexChange"; }, never, never, false>;
185
188
  }
@@ -23,12 +23,13 @@ import * as i20 from "@pepperi-addons/ngx-lib/carousel";
23
23
  import * as i21 from "@pepperi-addons/ngx-lib/icon";
24
24
  import * as i22 from "@pepperi-addons/ngx-lib/form";
25
25
  import * as i23 from "@pepperi-addons/ngx-lib/menu";
26
- import * as i24 from "@pepperi-addons/ngx-lib/textbox";
27
- import * as i25 from "./virtual-scroller";
26
+ import * as i24 from "@pepperi-addons/ngx-lib/select";
27
+ import * as i25 from "@pepperi-addons/ngx-lib/textbox";
28
+ import * as i26 from "./virtual-scroller";
28
29
  export declare class PepListModule {
29
30
  private pepIconRegistry;
30
31
  constructor(pepIconRegistry: PepIconRegistry);
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<PepListModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<PepListModule, [typeof i1.PepListComponent, typeof i2.PepListActionsComponent, typeof i3.PepListCarouselComponent, typeof i4.PepListChooserComponent, typeof i5.PepListPagerComponent, typeof i6.PepListSortingComponent, typeof i7.PepListTotalComponent, typeof i8.PepListViewsComponent, typeof i9.IsItemSelectedPipe, typeof i9.IsItemDisabledPipe], [typeof i10.CommonModule, typeof i11.MatCommonModule, typeof i12.MatButtonModule, typeof i13.MatCheckboxModule, typeof i14.MatRadioModule, typeof i15.MatIconModule, typeof i16.MatMenuModule, typeof i17.PepNgxLibModule, typeof i18.PepBreadCrumbsModule, typeof i19.PepButtonModule, typeof i20.PepCarouselModule, typeof i21.PepIconModule, typeof i22.PepFormModule, typeof i23.PepMenuModule, typeof i24.PepTextboxModule, typeof i25.VirtualScrollerModule], [typeof i1.PepListComponent, typeof i2.PepListActionsComponent, typeof i3.PepListCarouselComponent, typeof i4.PepListChooserComponent, typeof i5.PepListPagerComponent, typeof i6.PepListSortingComponent, typeof i7.PepListTotalComponent, typeof i8.PepListViewsComponent]>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PepListModule, [typeof i1.PepListComponent, typeof i2.PepListActionsComponent, typeof i3.PepListCarouselComponent, typeof i4.PepListChooserComponent, typeof i5.PepListPagerComponent, typeof i6.PepListSortingComponent, typeof i7.PepListTotalComponent, typeof i8.PepListViewsComponent, typeof i9.IsItemSelectedPipe, typeof i9.IsItemDisabledPipe], [typeof i10.CommonModule, typeof i11.MatCommonModule, typeof i12.MatButtonModule, typeof i13.MatCheckboxModule, typeof i14.MatRadioModule, typeof i15.MatIconModule, typeof i16.MatMenuModule, typeof i17.PepNgxLibModule, typeof i18.PepBreadCrumbsModule, typeof i19.PepButtonModule, typeof i20.PepCarouselModule, typeof i21.PepIconModule, typeof i22.PepFormModule, typeof i23.PepMenuModule, typeof i24.PepSelectModule, typeof i25.PepTextboxModule, typeof i26.VirtualScrollerModule], [typeof i1.PepListComponent, typeof i2.PepListActionsComponent, typeof i3.PepListCarouselComponent, typeof i4.PepListChooserComponent, typeof i5.PepListPagerComponent, typeof i6.PepListSortingComponent, typeof i7.PepListTotalComponent, typeof i8.PepListViewsComponent]>;
33
34
  static ɵinj: i0.ɵɵInjectorDeclaration<PepListModule>;
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepperi-addons/ngx-lib",
3
- "version": "0.4.2-beta.315",
3
+ "version": "0.4.2-beta.316",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">= 14.0.2",
6
6
  "@angular/cdk": ">= 14.0.2",
@@ -136,6 +136,9 @@
136
136
  "PAGER_NEXT": "Next",
137
137
  "PAGER_OUT_OF": "Out of",
138
138
  "PAGER_PAGE": "Page",
139
+ "PAGER_FIRST": "First",
140
+ "PAGER_LAST": "Last",
141
+ "PAGER_ITEMS_PER_PAGE": "items per page",
139
142
  "SELECT": "Select",
140
143
  "SELECTED": "selected",
141
144
  "SORT_BY": "Sort by",