ng-prime-tools 1.1.19 → 1.1.21
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/package.json
CHANGED
|
@@ -40,6 +40,8 @@ import * as i4$8 from 'primeng/accordion';
|
|
|
40
40
|
import * as i3$6 from 'primeng/dialog';
|
|
41
41
|
import * as i5$2 from 'primeng/menu';
|
|
42
42
|
import { Menu as Menu$1 } from 'primeng/menu';
|
|
43
|
+
import * as i3$7 from 'primeng/paginator';
|
|
44
|
+
import { PaginatorState } from 'primeng/paginator';
|
|
43
45
|
|
|
44
46
|
interface PTTableActionConfig {
|
|
45
47
|
code: string;
|
|
@@ -1474,6 +1476,20 @@ interface PTNotificationGlobalActionEvent {
|
|
|
1474
1476
|
action: PTNotificationMenuAction;
|
|
1475
1477
|
notifications: PTNotificationItem[];
|
|
1476
1478
|
}
|
|
1479
|
+
interface PTNotificationLoadMoreEvent {
|
|
1480
|
+
/**
|
|
1481
|
+
* Zero-based page requested from the server.
|
|
1482
|
+
*/
|
|
1483
|
+
page: number;
|
|
1484
|
+
/**
|
|
1485
|
+
* Number of records requested.
|
|
1486
|
+
*/
|
|
1487
|
+
size: number;
|
|
1488
|
+
/**
|
|
1489
|
+
* Zero-based offset.
|
|
1490
|
+
*/
|
|
1491
|
+
first: number;
|
|
1492
|
+
}
|
|
1477
1493
|
interface PTNotificationConfig {
|
|
1478
1494
|
visible?: boolean;
|
|
1479
1495
|
title?: string;
|
|
@@ -1492,8 +1508,32 @@ interface PTNotificationConfig {
|
|
|
1492
1508
|
showGlobalActions?: boolean;
|
|
1493
1509
|
globalActions?: PTNotificationMenuAction[];
|
|
1494
1510
|
closeGlobalActionMenuOnAction?: boolean;
|
|
1511
|
+
/**
|
|
1512
|
+
* Enables server-side infinite scroll.
|
|
1513
|
+
*
|
|
1514
|
+
* Default: false.
|
|
1515
|
+
*/
|
|
1516
|
+
infiniteScroll?: boolean;
|
|
1517
|
+
/**
|
|
1518
|
+
* Distance in pixels from the bottom of the list
|
|
1519
|
+
* at which the next server page is requested.
|
|
1520
|
+
*
|
|
1521
|
+
* Default: 80.
|
|
1522
|
+
*/
|
|
1523
|
+
infiniteScrollThreshold?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* Text displayed while the next page is loading.
|
|
1526
|
+
*/
|
|
1527
|
+
loadingText?: string;
|
|
1495
1528
|
}
|
|
1496
1529
|
type PTNotificationsPageFilter = 'ALL' | 'UNREAD' | 'READ';
|
|
1530
|
+
interface PTNotificationsPageQueryEvent {
|
|
1531
|
+
page: number;
|
|
1532
|
+
size: number;
|
|
1533
|
+
first: number;
|
|
1534
|
+
filter: PTNotificationsPageFilter;
|
|
1535
|
+
search: string;
|
|
1536
|
+
}
|
|
1497
1537
|
interface PTNotificationsPageConfig {
|
|
1498
1538
|
title?: string;
|
|
1499
1539
|
subtitle?: string;
|
|
@@ -1510,6 +1550,10 @@ interface PTNotificationsPageConfig {
|
|
|
1510
1550
|
globalActions?: PTNotificationMenuAction[];
|
|
1511
1551
|
defaultFilter?: PTNotificationsPageFilter;
|
|
1512
1552
|
noSearchResultText?: string;
|
|
1553
|
+
showPagination?: boolean;
|
|
1554
|
+
rowsPerPageOptions?: number[];
|
|
1555
|
+
showCurrentPageReport?: boolean;
|
|
1556
|
+
currentPageReportTemplate?: string;
|
|
1513
1557
|
}
|
|
1514
1558
|
|
|
1515
1559
|
declare class PTButtonComponent implements OnInit, AfterViewInit, OnChanges {
|
|
@@ -2315,6 +2359,11 @@ declare class PTNavbarMenuComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
2315
2359
|
} | string;
|
|
2316
2360
|
notifications: PTNotificationItem[];
|
|
2317
2361
|
notificationConfig: PTNotificationConfig;
|
|
2362
|
+
notificationTotalRecords: number;
|
|
2363
|
+
notificationTotalUnreadRecords?: number;
|
|
2364
|
+
notificationPage: number;
|
|
2365
|
+
notificationRows: number;
|
|
2366
|
+
notificationLoading: boolean;
|
|
2318
2367
|
toggleSidebar: EventEmitter<void>;
|
|
2319
2368
|
notificationAction: EventEmitter<PTNotificationActionEvent>;
|
|
2320
2369
|
notificationClick: EventEmitter<PTNotificationClickEvent>;
|
|
@@ -2322,6 +2371,7 @@ declare class PTNavbarMenuComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
2322
2371
|
notificationPanelClosed: EventEmitter<void>;
|
|
2323
2372
|
notificationGlobalAction: EventEmitter<PTNotificationGlobalActionEvent>;
|
|
2324
2373
|
notificationViewAll: EventEmitter<void>;
|
|
2374
|
+
notificationLoadMore: EventEmitter<PTNotificationLoadMoreEvent>;
|
|
2325
2375
|
private readonly destroy$;
|
|
2326
2376
|
dateTimeText: string;
|
|
2327
2377
|
isUserMenuOpen: boolean;
|
|
@@ -2353,6 +2403,7 @@ declare class PTNavbarMenuComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
2353
2403
|
onNotificationViewAll(): void;
|
|
2354
2404
|
onNotificationPanelOpened(): void;
|
|
2355
2405
|
onNotificationPanelClosed(): void;
|
|
2406
|
+
onNotificationLoadMore(event: PTNotificationLoadMoreEvent): void;
|
|
2356
2407
|
hasDateTime(): boolean;
|
|
2357
2408
|
isFixedMode(): boolean;
|
|
2358
2409
|
isServerMode(): boolean;
|
|
@@ -2412,21 +2463,61 @@ declare class PTNavbarMenuComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
2412
2463
|
[key: string]: string;
|
|
2413
2464
|
};
|
|
2414
2465
|
static ɵfac: i0.ɵɵFactoryDeclaration<PTNavbarMenuComponent, never>;
|
|
2415
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PTNavbarMenuComponent, "pt-nav-bar-menu", never, { "navBarMenuConfig": { "alias": "navBarMenuConfig"; "required": false; }; "serverDateTime": { "alias": "serverDateTime"; "required": false; }; "notifications": { "alias": "notifications"; "required": false; }; "notificationConfig": { "alias": "notificationConfig"; "required": false; }; }, { "toggleSidebar": "toggleSidebar"; "notificationAction": "notificationAction"; "notificationClick": "notificationClick"; "notificationPanelOpened": "notificationPanelOpened"; "notificationPanelClosed": "notificationPanelClosed"; "notificationGlobalAction": "notificationGlobalAction"; "notificationViewAll": "notificationViewAll"; }, never, never, false, never>;
|
|
2466
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PTNavbarMenuComponent, "pt-nav-bar-menu", never, { "navBarMenuConfig": { "alias": "navBarMenuConfig"; "required": false; }; "serverDateTime": { "alias": "serverDateTime"; "required": false; }; "notifications": { "alias": "notifications"; "required": false; }; "notificationConfig": { "alias": "notificationConfig"; "required": false; }; "notificationTotalRecords": { "alias": "notificationTotalRecords"; "required": false; }; "notificationTotalUnreadRecords": { "alias": "notificationTotalUnreadRecords"; "required": false; }; "notificationPage": { "alias": "notificationPage"; "required": false; }; "notificationRows": { "alias": "notificationRows"; "required": false; }; "notificationLoading": { "alias": "notificationLoading"; "required": false; }; }, { "toggleSidebar": "toggleSidebar"; "notificationAction": "notificationAction"; "notificationClick": "notificationClick"; "notificationPanelOpened": "notificationPanelOpened"; "notificationPanelClosed": "notificationPanelClosed"; "notificationGlobalAction": "notificationGlobalAction"; "notificationViewAll": "notificationViewAll"; "notificationLoadMore": "notificationLoadMore"; }, never, never, false, never>;
|
|
2416
2467
|
}
|
|
2417
2468
|
|
|
2418
2469
|
declare class PTNotificationComponent {
|
|
2470
|
+
/**
|
|
2471
|
+
* Notifications already loaded from the server.
|
|
2472
|
+
*
|
|
2473
|
+
* With infinite scroll, the consumer should append each
|
|
2474
|
+
* newly loaded server page to this array.
|
|
2475
|
+
*/
|
|
2419
2476
|
notifications: PTNotificationItem[];
|
|
2420
2477
|
config: PTNotificationConfig;
|
|
2478
|
+
/**
|
|
2479
|
+
* Total number of notifications available on the server.
|
|
2480
|
+
*
|
|
2481
|
+
* Used to determine whether another page can be loaded.
|
|
2482
|
+
*/
|
|
2483
|
+
totalRecords: number;
|
|
2484
|
+
/**
|
|
2485
|
+
* Total number of unread notifications on the server.
|
|
2486
|
+
*
|
|
2487
|
+
* Used by the bell badge/header count.
|
|
2488
|
+
*/
|
|
2489
|
+
totalUnreadRecords?: number;
|
|
2490
|
+
/**
|
|
2491
|
+
* Last server page currently loaded.
|
|
2492
|
+
*
|
|
2493
|
+
* Zero-based.
|
|
2494
|
+
*/
|
|
2495
|
+
page: number;
|
|
2496
|
+
/**
|
|
2497
|
+
* Server page size.
|
|
2498
|
+
*/
|
|
2499
|
+
rows: number;
|
|
2500
|
+
/**
|
|
2501
|
+
* True while the consumer is fetching the next page.
|
|
2502
|
+
*
|
|
2503
|
+
* Prevents duplicate loadMore events.
|
|
2504
|
+
*/
|
|
2505
|
+
loading: boolean;
|
|
2421
2506
|
notificationClick: EventEmitter<PTNotificationClickEvent>;
|
|
2422
2507
|
action: EventEmitter<PTNotificationActionEvent>;
|
|
2423
2508
|
globalAction: EventEmitter<PTNotificationGlobalActionEvent>;
|
|
2424
2509
|
viewAll: EventEmitter<void>;
|
|
2425
2510
|
panelOpened: EventEmitter<void>;
|
|
2426
2511
|
panelClosed: EventEmitter<void>;
|
|
2512
|
+
/**
|
|
2513
|
+
* Emitted when the list approaches its bottom
|
|
2514
|
+
* and another server page is available.
|
|
2515
|
+
*/
|
|
2516
|
+
loadMore: EventEmitter<PTNotificationLoadMoreEvent>;
|
|
2427
2517
|
isOpen: boolean;
|
|
2428
2518
|
openedActionMenuId: string | number | null;
|
|
2429
2519
|
isGlobalActionMenuOpen: boolean;
|
|
2520
|
+
private lastRequestedPage;
|
|
2430
2521
|
private readonly defaultActions;
|
|
2431
2522
|
private readonly defaultGlobalActions;
|
|
2432
2523
|
onDocumentClick(): void;
|
|
@@ -2434,6 +2525,7 @@ declare class PTNotificationComponent {
|
|
|
2434
2525
|
togglePanel(event: Event): void;
|
|
2435
2526
|
closePanel(): void;
|
|
2436
2527
|
onPanelClick(event: Event): void;
|
|
2528
|
+
onListScroll(event: Event): void;
|
|
2437
2529
|
onNotificationClick(notification: PTNotificationItem, event: Event): void;
|
|
2438
2530
|
toggleActionMenu(notification: PTNotificationItem, event: Event): void;
|
|
2439
2531
|
onActionMenuClick(event: Event): void;
|
|
@@ -2451,6 +2543,11 @@ declare class PTNotificationComponent {
|
|
|
2451
2543
|
showHeaderCount(): boolean;
|
|
2452
2544
|
showViewAll(): boolean;
|
|
2453
2545
|
showGlobalActions(): boolean;
|
|
2546
|
+
isInfiniteScrollEnabled(): boolean;
|
|
2547
|
+
hasMoreNotifications(): boolean;
|
|
2548
|
+
showInfiniteScrollLoader(): boolean;
|
|
2549
|
+
getLoadingText(): string;
|
|
2550
|
+
getInfiniteScrollThreshold(): number;
|
|
2454
2551
|
getTitle(): string;
|
|
2455
2552
|
getEmptyText(): string;
|
|
2456
2553
|
getBellIcon(): string;
|
|
@@ -2474,6 +2571,7 @@ declare class PTNotificationComponent {
|
|
|
2474
2571
|
getActionClasses(menuAction: PTNotificationMenuAction): string;
|
|
2475
2572
|
getDateText(notification: PTNotificationItem): string;
|
|
2476
2573
|
hasMetadata(notification: PTNotificationItem): boolean;
|
|
2574
|
+
private requestNextPage;
|
|
2477
2575
|
private formatRelativeDate;
|
|
2478
2576
|
private getCalendarDayDifference;
|
|
2479
2577
|
private toDate;
|
|
@@ -2481,7 +2579,7 @@ declare class PTNotificationComponent {
|
|
|
2481
2579
|
private formatTime;
|
|
2482
2580
|
private pad2;
|
|
2483
2581
|
static ɵfac: i0.ɵɵFactoryDeclaration<PTNotificationComponent, never>;
|
|
2484
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PTNotificationComponent, "pt-notification", never, { "notifications": { "alias": "notifications"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "notificationClick": "notificationClick"; "action": "action"; "globalAction": "globalAction"; "viewAll": "viewAll"; "panelOpened": "panelOpened"; "panelClosed": "panelClosed"; }, never, never, false, never>;
|
|
2582
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PTNotificationComponent, "pt-notification", never, { "notifications": { "alias": "notifications"; "required": false; }; "config": { "alias": "config"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "totalUnreadRecords": { "alias": "totalUnreadRecords"; "required": false; }; "page": { "alias": "page"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "notificationClick": "notificationClick"; "action": "action"; "globalAction": "globalAction"; "viewAll": "viewAll"; "panelOpened": "panelOpened"; "panelClosed": "panelClosed"; "loadMore": "loadMore"; }, never, never, false, never>;
|
|
2485
2583
|
}
|
|
2486
2584
|
|
|
2487
2585
|
declare class PTNotificationModule {
|
|
@@ -2556,6 +2654,11 @@ declare class PTPageSkeletonComponent implements OnInit {
|
|
|
2556
2654
|
} | string;
|
|
2557
2655
|
notifications: PTNotificationItem[];
|
|
2558
2656
|
notificationConfig: PTNotificationConfig;
|
|
2657
|
+
notificationTotalRecords: number;
|
|
2658
|
+
notificationTotalUnreadRecords?: number;
|
|
2659
|
+
notificationPage: number;
|
|
2660
|
+
notificationRows: number;
|
|
2661
|
+
notificationLoading: boolean;
|
|
2559
2662
|
toggleSidebar: EventEmitter<void>;
|
|
2560
2663
|
notificationAction: EventEmitter<PTNotificationActionEvent>;
|
|
2561
2664
|
notificationClick: EventEmitter<PTNotificationClickEvent>;
|
|
@@ -2563,6 +2666,7 @@ declare class PTPageSkeletonComponent implements OnInit {
|
|
|
2563
2666
|
notificationPanelClosed: EventEmitter<void>;
|
|
2564
2667
|
notificationGlobalAction: EventEmitter<PTNotificationGlobalActionEvent>;
|
|
2565
2668
|
notificationViewAll: EventEmitter<void>;
|
|
2669
|
+
notificationLoadMore: EventEmitter<PTNotificationLoadMoreEvent>;
|
|
2566
2670
|
isSidebarVisible: boolean;
|
|
2567
2671
|
ngOnInit(): void;
|
|
2568
2672
|
onToggleSidebar(): void;
|
|
@@ -2572,10 +2676,11 @@ declare class PTPageSkeletonComponent implements OnInit {
|
|
|
2572
2676
|
onNotificationViewAll(): void;
|
|
2573
2677
|
onNotificationPanelOpened(): void;
|
|
2574
2678
|
onNotificationPanelClosed(): void;
|
|
2679
|
+
onNotificationLoadMore(event: PTNotificationLoadMoreEvent): void;
|
|
2575
2680
|
private initializeBackgroundCardConfig;
|
|
2576
2681
|
private initializeContentCardConfig;
|
|
2577
2682
|
static ɵfac: i0.ɵɵFactoryDeclaration<PTPageSkeletonComponent, never>;
|
|
2578
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PTPageSkeletonComponent, "pt-page-skeleton", never, { "pageSkeletonConfig": { "alias": "pageSkeletonConfig"; "required": false; }; "serverDateTime": { "alias": "serverDateTime"; "required": false; }; "notifications": { "alias": "notifications"; "required": false; }; "notificationConfig": { "alias": "notificationConfig"; "required": false; }; }, { "toggleSidebar": "toggleSidebar"; "notificationAction": "notificationAction"; "notificationClick": "notificationClick"; "notificationPanelOpened": "notificationPanelOpened"; "notificationPanelClosed": "notificationPanelClosed"; "notificationGlobalAction": "notificationGlobalAction"; "notificationViewAll": "notificationViewAll"; }, never, never, false, never>;
|
|
2683
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PTPageSkeletonComponent, "pt-page-skeleton", never, { "pageSkeletonConfig": { "alias": "pageSkeletonConfig"; "required": false; }; "serverDateTime": { "alias": "serverDateTime"; "required": false; }; "notifications": { "alias": "notifications"; "required": false; }; "notificationConfig": { "alias": "notificationConfig"; "required": false; }; "notificationTotalRecords": { "alias": "notificationTotalRecords"; "required": false; }; "notificationTotalUnreadRecords": { "alias": "notificationTotalUnreadRecords"; "required": false; }; "notificationPage": { "alias": "notificationPage"; "required": false; }; "notificationRows": { "alias": "notificationRows"; "required": false; }; "notificationLoading": { "alias": "notificationLoading"; "required": false; }; }, { "toggleSidebar": "toggleSidebar"; "notificationAction": "notificationAction"; "notificationClick": "notificationClick"; "notificationPanelOpened": "notificationPanelOpened"; "notificationPanelClosed": "notificationPanelClosed"; "notificationGlobalAction": "notificationGlobalAction"; "notificationViewAll": "notificationViewAll"; "notificationLoadMore": "notificationLoadMore"; }, never, never, false, never>;
|
|
2579
2684
|
}
|
|
2580
2685
|
|
|
2581
2686
|
declare class PTFooterComponent {
|
|
@@ -3225,30 +3330,84 @@ declare class PTChangePasswordPageModule {
|
|
|
3225
3330
|
static ɵinj: i0.ɵɵInjectorDeclaration<PTChangePasswordPageModule>;
|
|
3226
3331
|
}
|
|
3227
3332
|
|
|
3228
|
-
declare class PTNotificationsPageComponent implements OnChanges {
|
|
3333
|
+
declare class PTNotificationsPageComponent implements OnChanges, OnDestroy {
|
|
3334
|
+
/**
|
|
3335
|
+
* Current server page only.
|
|
3336
|
+
*/
|
|
3229
3337
|
notifications: PTNotificationItem[];
|
|
3338
|
+
/**
|
|
3339
|
+
* Number of records matching the current:
|
|
3340
|
+
*
|
|
3341
|
+
* search + selected filter
|
|
3342
|
+
*
|
|
3343
|
+
* This value is used by the paginator.
|
|
3344
|
+
*/
|
|
3345
|
+
totalRecords: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* Number of all notifications matching the current search,
|
|
3348
|
+
* before applying ALL / UNREAD / READ.
|
|
3349
|
+
*
|
|
3350
|
+
* Used by the "Toutes" counter.
|
|
3351
|
+
*/
|
|
3352
|
+
totalAllRecords: number;
|
|
3353
|
+
/**
|
|
3354
|
+
* Number of unread notifications matching the current search.
|
|
3355
|
+
*/
|
|
3356
|
+
totalUnreadRecords?: number;
|
|
3357
|
+
/**
|
|
3358
|
+
* Number of read notifications matching the current search.
|
|
3359
|
+
*/
|
|
3360
|
+
totalReadRecords?: number;
|
|
3361
|
+
/**
|
|
3362
|
+
* Current zero-based page.
|
|
3363
|
+
*/
|
|
3364
|
+
page: number;
|
|
3365
|
+
/**
|
|
3366
|
+
* Current server page size.
|
|
3367
|
+
*/
|
|
3368
|
+
rows: number;
|
|
3230
3369
|
config: PTNotificationsPageConfig;
|
|
3231
3370
|
notificationClick: EventEmitter<PTNotificationClickEvent>;
|
|
3232
3371
|
action: EventEmitter<PTNotificationActionEvent>;
|
|
3233
3372
|
globalAction: EventEmitter<PTNotificationGlobalActionEvent>;
|
|
3373
|
+
/**
|
|
3374
|
+
* Request for a new server page.
|
|
3375
|
+
*
|
|
3376
|
+
* Emitted on:
|
|
3377
|
+
* - pagination
|
|
3378
|
+
* - page size change
|
|
3379
|
+
* - filter change
|
|
3380
|
+
* - search
|
|
3381
|
+
*/
|
|
3382
|
+
queryChange: EventEmitter<PTNotificationsPageQueryEvent>;
|
|
3234
3383
|
searchText: string;
|
|
3235
3384
|
selectedFilter: PTNotificationsPageFilter;
|
|
3236
3385
|
openedActionMenuId: string | number | null;
|
|
3237
3386
|
isGlobalActionMenuOpen: boolean;
|
|
3387
|
+
private readonly destroy$;
|
|
3388
|
+
private readonly searchSubject;
|
|
3238
3389
|
private readonly defaultActions;
|
|
3239
3390
|
private readonly defaultGlobalActions;
|
|
3391
|
+
constructor();
|
|
3240
3392
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3393
|
+
ngOnDestroy(): void;
|
|
3241
3394
|
getNotifications(): PTNotificationItem[];
|
|
3242
|
-
|
|
3395
|
+
/**
|
|
3396
|
+
* The supplied notifications already correspond
|
|
3397
|
+
* to one server page.
|
|
3398
|
+
*
|
|
3399
|
+
* No filtering, sorting or pagination is performed here.
|
|
3400
|
+
*/
|
|
3401
|
+
getDisplayedNotifications(): PTNotificationItem[];
|
|
3243
3402
|
getTotalCount(): number;
|
|
3244
3403
|
getUnreadCount(): number;
|
|
3245
3404
|
getReadCount(): number;
|
|
3246
3405
|
hasNotifications(): boolean;
|
|
3247
|
-
hasFilteredNotifications(): boolean;
|
|
3248
3406
|
hasSearch(): boolean;
|
|
3249
3407
|
showSearch(): boolean;
|
|
3250
3408
|
showFilters(): boolean;
|
|
3251
3409
|
showCounters(): boolean;
|
|
3410
|
+
showPagination(): boolean;
|
|
3252
3411
|
showGlobalActions(): boolean;
|
|
3253
3412
|
getTitle(): string;
|
|
3254
3413
|
getSubtitle(): string;
|
|
@@ -3259,10 +3418,15 @@ declare class PTNotificationsPageComponent implements OnChanges {
|
|
|
3259
3418
|
getAllLabel(): string;
|
|
3260
3419
|
getUnreadLabel(): string;
|
|
3261
3420
|
getReadLabel(): string;
|
|
3421
|
+
getRowsPerPageOptions(): number[];
|
|
3422
|
+
showCurrentPageReport(): boolean;
|
|
3423
|
+
getCurrentPageReportTemplate(): string;
|
|
3424
|
+
getFirst(): number;
|
|
3262
3425
|
selectFilter(filter: PTNotificationsPageFilter): void;
|
|
3263
3426
|
isFilterSelected(filter: PTNotificationsPageFilter): boolean;
|
|
3264
3427
|
onSearch(value: string): void;
|
|
3265
3428
|
clearSearch(): void;
|
|
3429
|
+
onPageChange(event: PaginatorState): void;
|
|
3266
3430
|
onNotificationClick(notification: PTNotificationItem, event: Event): void;
|
|
3267
3431
|
toggleActionMenu(notification: PTNotificationItem, event: Event): void;
|
|
3268
3432
|
onActionMenuClick(event: Event): void;
|
|
@@ -3283,22 +3447,20 @@ declare class PTNotificationsPageComponent implements OnChanges {
|
|
|
3283
3447
|
getActionClasses(menuAction: PTNotificationMenuAction): string;
|
|
3284
3448
|
hasMetadata(notification: PTNotificationItem): boolean;
|
|
3285
3449
|
getDateText(notification: PTNotificationItem): string;
|
|
3286
|
-
private
|
|
3287
|
-
private matchesSearch;
|
|
3450
|
+
private emitQueryChange;
|
|
3288
3451
|
private formatRelativeDate;
|
|
3289
3452
|
private getCalendarDayDifference;
|
|
3290
3453
|
private toDate;
|
|
3291
3454
|
private formatAbsoluteDate;
|
|
3292
3455
|
private formatTime;
|
|
3293
3456
|
private pad2;
|
|
3294
|
-
private toTimestamp;
|
|
3295
3457
|
static ɵfac: i0.ɵɵFactoryDeclaration<PTNotificationsPageComponent, never>;
|
|
3296
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PTNotificationsPageComponent, "pt-notifications-page", never, { "notifications": { "alias": "notifications"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "notificationClick": "notificationClick"; "action": "action"; "globalAction": "globalAction"; }, never, never, false, never>;
|
|
3458
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PTNotificationsPageComponent, "pt-notifications-page", never, { "notifications": { "alias": "notifications"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "totalAllRecords": { "alias": "totalAllRecords"; "required": false; }; "totalUnreadRecords": { "alias": "totalUnreadRecords"; "required": false; }; "totalReadRecords": { "alias": "totalReadRecords"; "required": false; }; "page": { "alias": "page"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "notificationClick": "notificationClick"; "action": "action"; "globalAction": "globalAction"; "queryChange": "queryChange"; }, never, never, false, never>;
|
|
3297
3459
|
}
|
|
3298
3460
|
|
|
3299
3461
|
declare class PTNotificationsPageModule {
|
|
3300
3462
|
static ɵfac: i0.ɵɵFactoryDeclaration<PTNotificationsPageModule, never>;
|
|
3301
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PTNotificationsPageModule, [typeof PTNotificationsPageComponent], [typeof i2.CommonModule], [typeof PTNotificationsPageComponent]>;
|
|
3463
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PTNotificationsPageModule, [typeof PTNotificationsPageComponent], [typeof i2.CommonModule, typeof i3$7.PaginatorModule], [typeof PTNotificationsPageComponent]>;
|
|
3302
3464
|
static ɵinj: i0.ɵɵInjectorDeclaration<PTNotificationsPageModule>;
|
|
3303
3465
|
}
|
|
3304
3466
|
|
|
@@ -3320,5 +3482,5 @@ declare class PTGroupModule {
|
|
|
3320
3482
|
}
|
|
3321
3483
|
|
|
3322
3484
|
export { AlignEnum, BadgeType, BadgeTypeStyles, ButtonColorEnum, DateUtilityService, FormInputTypeEnum, InputValidationEnum, MultiSearchCriteriaComponent, MultiSearchCriteriaModule, NgPrimeToolsModule, PTAccordionComponent, PTAccordionModule, PTAccordionPanelDirective, PTAdvancedPrimeTableComponent, PTAdvancedPrimeTableModule, PTBreadCrumbComponent, PTBreadCrumbModule, PTButtonComponent, PTButtonModule, PTCardComponent, PTCardModule, PTChangePasswordPageComponent, PTChangePasswordPageModule, PTChartComparisonComponent, PTChartComparisonModule, PTChartComponent, PTChartModule, PTCheckBoxInputComponent, PTCheckBoxInputModule, PTConfirmDialogComponent, PTConfirmDialogModule, PTDateInputComponent, PTDateInputModule, PTDialogComponent, PTDialogModule, PTDropdownComponent, PTDropdownModule, PTFooterComponent, PTFooterModule, PTFormBuilderComponent, PTFormBuilderModule, PTGroupComponent, PTGroupModule, PTLineChartComponent, PTLineChartModule, PTLoginPageComponent, PTLoginPageModule, PTMenuComponent, PTMenuFancyComponent, PTMenuFancyModule, PTMenuModule, PTMetricCardComponent, PTMetricCardGroupComponent, PTMetricCardGroupModule, PTMetricCardModule, PTMetricPanelComponent, PTMetricPanelModule, PTMultiSelectComponent, PTMultiSelectModule, PTNavbarMenuComponent, PTNavbarMenuModule, PTNewsTickerComponent, PTNewsTickerDirection, PTNewsTickerModule, PTNewsTickerTrend, PTNewsTickerType, PTNotificationComponent, PTNotificationModule, PTNotificationsPageComponent, PTNotificationsPageModule, PTNumberInputComponent, PTNumberInputModule, PTOtpInputComponent, PTOtpInputModule, PTOtpPageComponent, PTOtpPageModule, PTPageSkeletonComponent, PTPageSkeletonModule, PTPasswordInputComponent, PTPasswordInputModule, PTSideBarMenuComponent, PTSideBarMenuModule, PTSwitchInputComponent, PTSwitchInputModule, PTTextAreaInputComponent, PTTextAreaInputModule, PTTextInputComponent, PTTextInputModule, PTToastNotifierComponent, PTToastNotifierModule, SearchCriteriaTypeEnum, SeverityEnum, TableTypeEnum };
|
|
3323
|
-
export type { Appearance, AxisChartConfig, AxisChartData, Badge, BreadCrumbConfig, ButtonModel, CardConfig, ChangePasswordModel, ChangePasswordPageConfig, ChartConfig, Dataset, DateFormat, DateFormatType, DateTimePosition, DateTimeSource, DialogPosition, Divider, FilterOption, FooterConfig, FooterModel, ForgotPasswordConfig, FormButton, FormCheckBoxField, FormDateField, FormDropdownField, FormField, FormFieldGroup, FormMultiSelectField, FormNumberField, FormSwitchField, FormTextAreaField, FormTextField, IconImageStyle, IconStyle, ImageStyle, LabelSetting, LoginAdditionalContent, LoginAdditionalContentAlign, LoginAdditionalContentLinkPosition, LoginAdditionalContentType, LoginModel, LoginPageConfig, Menu, MenuConfig, MenuItem, MetricCardData, MetricIndicateurData, MetricPanelData, NavBarDateTimeConfig, NavBarMenuConfig, NavBarUserAvatarMode, NavBarUserConfig, NavBarUserMenuItem, NavBarUserMenuItemSeverity, NavBarUserProfilePosition, OtpPageConfig, OtpPagePosition, PTAccordionActiveValue, PTAccordionConfig, PTAccordionPanelConfig, PTAccordionPanelTemplateContext, PTAccordionTagConfig, PTAccordionValue, PTConfirmDialogConfig, PTDateInputConfig, PTDialogConfig, PTDropdownConfig, PTMultiSelectConfig, PTNewsTickerChangeEvent, PTNewsTickerItem, PTNewsTickerPlayStateChangeEvent, PTNewsTickerSegment, PTNewsTickerSpeedChangeEvent, PTNewsTickerTarget, PTNotificationActionEvent, PTNotificationClickEvent, PTNotificationConfig, PTNotificationGlobalActionEvent, PTNotificationItem, PTNotificationMenuAction, PTNotificationsPageConfig, PTNotificationsPageFilter, PTSwitchConfig, PTTableActionConfig, PTTableLazyLoadEvent, PTTableRowOrderItem, PTTableRowReorderEvent, PageSkeletonConfig, PasswordPolicyRuleModel, PasswordStrengthSeverity, Pattern, SearchCriteria, SideMenuBarConfig, Size, TableColumn, TextStyle, TimeFormat, TitleStyle, ToastMessage, ValueSetting, VerticalLine };
|
|
3485
|
+
export type { Appearance, AxisChartConfig, AxisChartData, Badge, BreadCrumbConfig, ButtonModel, CardConfig, ChangePasswordModel, ChangePasswordPageConfig, ChartConfig, Dataset, DateFormat, DateFormatType, DateTimePosition, DateTimeSource, DialogPosition, Divider, FilterOption, FooterConfig, FooterModel, ForgotPasswordConfig, FormButton, FormCheckBoxField, FormDateField, FormDropdownField, FormField, FormFieldGroup, FormMultiSelectField, FormNumberField, FormSwitchField, FormTextAreaField, FormTextField, IconImageStyle, IconStyle, ImageStyle, LabelSetting, LoginAdditionalContent, LoginAdditionalContentAlign, LoginAdditionalContentLinkPosition, LoginAdditionalContentType, LoginModel, LoginPageConfig, Menu, MenuConfig, MenuItem, MetricCardData, MetricIndicateurData, MetricPanelData, NavBarDateTimeConfig, NavBarMenuConfig, NavBarUserAvatarMode, NavBarUserConfig, NavBarUserMenuItem, NavBarUserMenuItemSeverity, NavBarUserProfilePosition, OtpPageConfig, OtpPagePosition, PTAccordionActiveValue, PTAccordionConfig, PTAccordionPanelConfig, PTAccordionPanelTemplateContext, PTAccordionTagConfig, PTAccordionValue, PTConfirmDialogConfig, PTDateInputConfig, PTDialogConfig, PTDropdownConfig, PTMultiSelectConfig, PTNewsTickerChangeEvent, PTNewsTickerItem, PTNewsTickerPlayStateChangeEvent, PTNewsTickerSegment, PTNewsTickerSpeedChangeEvent, PTNewsTickerTarget, PTNotificationActionEvent, PTNotificationClickEvent, PTNotificationConfig, PTNotificationGlobalActionEvent, PTNotificationItem, PTNotificationLoadMoreEvent, PTNotificationMenuAction, PTNotificationsPageConfig, PTNotificationsPageFilter, PTNotificationsPageQueryEvent, PTSwitchConfig, PTTableActionConfig, PTTableLazyLoadEvent, PTTableRowOrderItem, PTTableRowReorderEvent, PageSkeletonConfig, PasswordPolicyRuleModel, PasswordStrengthSeverity, Pattern, SearchCriteria, SideMenuBarConfig, Size, TableColumn, TextStyle, TimeFormat, TitleStyle, ToastMessage, ValueSetting, VerticalLine };
|
|
3324
3486
|
//# sourceMappingURL=ng-prime-tools.d.ts.map
|