pdm-ui-kit 0.1.29 → 0.1.30
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/esm2020/lib/components/pagination/pagination.component.mjs +36 -11
- package/esm2020/lib/components/select/select.component.mjs +46 -7
- package/fesm2015/pdm-ui-kit.mjs +108 -45
- package/fesm2015/pdm-ui-kit.mjs.map +1 -1
- package/fesm2020/pdm-ui-kit.mjs +107 -45
- package/fesm2020/pdm-ui-kit.mjs.map +1 -1
- package/lib/components/pagination/pagination.component.d.ts +10 -2
- package/lib/components/select/select.component.d.ts +12 -2
- package/package.json +1 -1
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import type { PdmNativeSelectOption } from '../native-select/native-select.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PdmPaginationComponent {
|
|
4
5
|
page: number;
|
|
5
6
|
pageCount: number;
|
|
6
7
|
maxVisible: number;
|
|
7
8
|
className: string;
|
|
9
|
+
rowsPerPageLabel: string;
|
|
10
|
+
rowsPerPage: number;
|
|
11
|
+
rowsPerPageOptions: number[];
|
|
8
12
|
pageChange: EventEmitter<number>;
|
|
9
|
-
|
|
13
|
+
rowsPerPageChange: EventEmitter<number>;
|
|
14
|
+
get rowsPerPageSelectOptions(): PdmNativeSelectOption[];
|
|
15
|
+
get rowsPerPageValue(): string;
|
|
16
|
+
get visiblePages(): Array<number | 'ellipsis'>;
|
|
10
17
|
setPage(next: number): void;
|
|
18
|
+
onRowsPerPageChangeValue(value: string): void;
|
|
11
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdmPaginationComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PdmPaginationComponent, "pdm-pagination", never, { "page": "page"; "pageCount": "pageCount"; "maxVisible": "maxVisible"; "className": "className"; }, { "pageChange": "pageChange"; }, never, never, false>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdmPaginationComponent, "pdm-pagination", never, { "page": "page"; "pageCount": "pageCount"; "maxVisible": "maxVisible"; "className": "className"; "rowsPerPageLabel": "rowsPerPageLabel"; "rowsPerPage": "rowsPerPage"; "rowsPerPageOptions": "rowsPerPageOptions"; }, { "pageChange": "pageChange"; "rowsPerPageChange": "rowsPerPageChange"; }, never, never, false>;
|
|
13
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export interface PdmSelectOption {
|
|
4
4
|
label: string;
|
|
@@ -6,14 +6,24 @@ export interface PdmSelectOption {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare class PdmSelectComponent {
|
|
9
|
+
private readonly elementRef;
|
|
9
10
|
id: string;
|
|
10
11
|
value: string;
|
|
11
12
|
options: PdmSelectOption[];
|
|
12
13
|
disabled: boolean;
|
|
13
14
|
invalid: boolean;
|
|
14
15
|
className: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
open: boolean;
|
|
15
18
|
valueChange: EventEmitter<string>;
|
|
19
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
20
|
+
get selectedOption(): PdmSelectOption | undefined;
|
|
21
|
+
get selectedLabel(): string;
|
|
22
|
+
toggle(): void;
|
|
16
23
|
onChange(event: Event): void;
|
|
24
|
+
selectOption(option: PdmSelectOption): void;
|
|
25
|
+
onDocumentClick(event: MouseEvent): void;
|
|
26
|
+
onEscape(): void;
|
|
17
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<PdmSelectComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PdmSelectComponent, "pdm-select", never, { "id": "id"; "value": "value"; "options": "options"; "disabled": "disabled"; "invalid": "invalid"; "className": "className"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdmSelectComponent, "pdm-select", never, { "id": "id"; "value": "value"; "options": "options"; "disabled": "disabled"; "invalid": "invalid"; "className": "className"; "placeholder": "placeholder"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
19
29
|
}
|