@alaarab/ogrid-angular-primeng 2.0.2
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/dist/esm/column-chooser/column-chooser.component.js +94 -0
- package/dist/esm/column-header-filter/column-header-filter.component.js +383 -0
- package/dist/esm/datagrid-table/datagrid-table.component.js +633 -0
- package/dist/esm/datagrid-table/inline-cell-editor.component.js +150 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/ogrid/ogrid.component.js +125 -0
- package/dist/esm/pagination-controls/pagination-controls.component.js +126 -0
- package/dist/types/column-chooser/column-chooser.component.d.ts +15 -0
- package/dist/types/column-header-filter/column-header-filter.component.d.ts +51 -0
- package/dist/types/datagrid-table/datagrid-table.component.d.ts +130 -0
- package/dist/types/datagrid-table/inline-cell-editor.component.d.ts +21 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/ogrid/ogrid.component.d.ts +23 -0
- package/dist/types/pagination-controls/pagination-controls.component.d.ts +12 -0
- package/package.json +45 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OGridService } from '@alaarab/ogrid-angular';
|
|
2
|
+
import type { IOGridProps, RowId } from '@alaarab/ogrid-angular';
|
|
3
|
+
export declare class OGridComponent<T = unknown> {
|
|
4
|
+
readonly service: OGridService<T>;
|
|
5
|
+
readonly props: import("@angular/core").InputSignal<IOGridProps<T>>;
|
|
6
|
+
readonly onColumnSortFn: (columnKey: string) => void;
|
|
7
|
+
readonly onColumnResizedFn: (columnId: string, width: number) => void;
|
|
8
|
+
readonly onColumnPinnedFn: (columnId: string, pinned: "left" | "right" | null) => void;
|
|
9
|
+
readonly onSelectionChangeFn: (event: {
|
|
10
|
+
selectedRowIds: RowId[];
|
|
11
|
+
selectedItems: T[];
|
|
12
|
+
}) => void;
|
|
13
|
+
readonly onFilterChangeFn: (key: string, value: unknown) => void;
|
|
14
|
+
readonly showToolbar: import("@angular/core").Signal<boolean>;
|
|
15
|
+
readonly emptyStateObj: import("@angular/core").Signal<{
|
|
16
|
+
hasActiveFilters: boolean;
|
|
17
|
+
onClearAll: () => void;
|
|
18
|
+
message: string | undefined;
|
|
19
|
+
render: unknown;
|
|
20
|
+
}>;
|
|
21
|
+
constructor();
|
|
22
|
+
onPageSizeChange(size: number): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class PaginationControlsComponent {
|
|
2
|
+
readonly currentPage: import("@angular/core").InputSignal<number>;
|
|
3
|
+
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
4
|
+
readonly totalCount: import("@angular/core").InputSignal<number>;
|
|
5
|
+
readonly pageSizeOptions: import("@angular/core").InputSignal<number[] | undefined>;
|
|
6
|
+
readonly entityLabelPlural: import("@angular/core").InputSignal<string>;
|
|
7
|
+
readonly pageChange: import("@angular/core").OutputEmitterRef<number>;
|
|
8
|
+
readonly pageSizeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
9
|
+
protected readonly labelPlural: import("@angular/core").Signal<string>;
|
|
10
|
+
protected readonly vm: import("@angular/core").Signal<import("@alaarab/ogrid-core").PaginationViewModel | null>;
|
|
11
|
+
onPageSizeChange(value: string): void;
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alaarab/ogrid-angular-primeng",
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "OGrid PrimeNG – PrimeNG Table-based data grid with sorting, filtering, pagination, column chooser, and CSV export.",
|
|
5
|
+
"main": "dist/esm/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"import": "./dist/esm/index.js",
|
|
12
|
+
"require": "./dist/esm/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "rimraf dist && tsc -p tsconfig.build.json",
|
|
17
|
+
"test": "jest --passWithNoTests"
|
|
18
|
+
},
|
|
19
|
+
"keywords": ["ogrid", "angular", "primeng", "datatable", "typescript", "grid"],
|
|
20
|
+
"author": "Ala Arab",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
23
|
+
"engines": { "node": ">=18" },
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@alaarab/ogrid-angular": "2.0.2"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@angular/core": "^21.0.0",
|
|
29
|
+
"@angular/common": "^21.0.0",
|
|
30
|
+
"primeng": "^21.0.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@angular/core": "^21.1.4",
|
|
34
|
+
"@angular/common": "^21.1.4",
|
|
35
|
+
"@angular/compiler": "^21.1.4",
|
|
36
|
+
"@angular/platform-browser": "^21.1.4",
|
|
37
|
+
"@angular/platform-browser-dynamic": "^21.1.4",
|
|
38
|
+
"@angular/animations": "^21.1.4",
|
|
39
|
+
"primeng": "^21.1.1",
|
|
40
|
+
"rxjs": "^7.8.0",
|
|
41
|
+
"zone.js": "^0.15.0",
|
|
42
|
+
"typescript": "^5.7.3"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": { "access": "public" }
|
|
45
|
+
}
|