@hmcts/rpx-xui-common-lib 1.6.10 → 1.7.0-ao-rectification

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.
Files changed (44) hide show
  1. package/bundles/hmcts-rpx-xui-common-lib.umd.js +216 -44
  2. package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
  3. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
  4. package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-rpx-xui-common-lib.js +28 -27
  6. package/esm2015/lib/components/find-location/find-location.component.js +5 -5
  7. package/esm2015/lib/components/generic-filter/generic-filter.component.js +2 -2
  8. package/esm2015/lib/components/index.js +2 -2
  9. package/esm2015/lib/components/pagination-v1/pagination.component.js +130 -0
  10. package/esm2015/lib/components/public_api.js +2 -1
  11. package/esm2015/lib/components/search-location/search-location.component.js +6 -6
  12. package/esm2015/lib/components/user-list/user-list.component.js +57 -2
  13. package/esm2015/lib/exui-common-lib.module.js +12 -6
  14. package/esm2015/lib/models/filter.model.js +1 -3
  15. package/esm2015/lib/models/index.js +2 -1
  16. package/esm2015/lib/models/pagination.model.js +16 -0
  17. package/esm2015/public-api.js +2 -2
  18. package/esm5/hmcts-rpx-xui-common-lib.js +28 -27
  19. package/esm5/lib/components/find-location/find-location.component.js +5 -5
  20. package/esm5/lib/components/generic-filter/generic-filter.component.js +2 -2
  21. package/esm5/lib/components/index.js +2 -2
  22. package/esm5/lib/components/pagination-v1/pagination.component.js +144 -0
  23. package/esm5/lib/components/public_api.js +2 -1
  24. package/esm5/lib/components/search-location/search-location.component.js +6 -6
  25. package/esm5/lib/components/user-list/user-list.component.js +73 -2
  26. package/esm5/lib/exui-common-lib.module.js +13 -6
  27. package/esm5/lib/models/filter.model.js +1 -3
  28. package/esm5/lib/models/index.js +2 -1
  29. package/esm5/lib/models/pagination.model.js +16 -0
  30. package/esm5/public-api.js +2 -2
  31. package/fesm2015/hmcts-rpx-xui-common-lib.js +170 -16
  32. package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
  33. package/fesm5/hmcts-rpx-xui-common-lib.js +200 -16
  34. package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
  35. package/hmcts-rpx-xui-common-lib.d.ts +26 -25
  36. package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
  37. package/lib/components/find-location/find-location.component.d.ts +1 -1
  38. package/lib/components/pagination-v1/pagination.component.d.ts +19 -0
  39. package/lib/components/public_api.d.ts +1 -0
  40. package/lib/components/user-list/user-list.component.d.ts +8 -0
  41. package/lib/models/filter.model.d.ts +0 -1
  42. package/lib/models/index.d.ts +1 -0
  43. package/lib/models/pagination.model.d.ts +4 -0
  44. package/package.json +3 -2
@@ -9,7 +9,7 @@ export declare class FindLocationComponent {
9
9
  form: FormGroup;
10
10
  field: FilterFieldConfig;
11
11
  fields: FilterFieldConfig[];
12
- locationTitle: string;
12
+ title: string;
13
13
  locations: LocationByEPIMMSModel[];
14
14
  tempSelectedLocation: LocationByEPIMMSModel;
15
15
  serviceIds: string;
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare class PaginationV1Component {
3
+ visibilityLabel: string;
4
+ id: string;
5
+ maxSize: number;
6
+ directionLinks: boolean;
7
+ autoHide: boolean;
8
+ responsive: boolean;
9
+ previousLabel: string;
10
+ nextLabel: string;
11
+ screenReaderPaginationLabel: string;
12
+ screenReaderPageLabel: string;
13
+ screenReaderCurrentLabel: string;
14
+ pageChange: EventEmitter<number>;
15
+ pageBoundsCorrection: EventEmitter<number>;
16
+ private _directionLinks;
17
+ private _autoHide;
18
+ private _responsive;
19
+ }
@@ -25,3 +25,4 @@ export * from './cookie-banner/cookie-banner.component';
25
25
  export * from './find-location/find-location.component';
26
26
  export * from './search-location/search-location.component';
27
27
  export * from './pagination/pagination.component';
28
+ export * from './pagination-v1/pagination.component';
@@ -1,7 +1,15 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { PaginationParameter } from '../../models/pagination.model';
2
3
  import { User } from '../../models/user.model';
3
4
  export declare class UserListComponent {
4
5
  users: User[];
5
6
  userClick: EventEmitter<User>;
7
+ pagination: PaginationParameter;
8
+ moreResultsToGo: boolean;
9
+ constructor();
6
10
  onUserClick(user: User): void;
11
+ onPaginationHandler(pageNumber: number): void;
12
+ getFirstResult(rows: User[]): number;
13
+ getLastResult(rows: User[]): number;
14
+ getTotalResults(rows: User[]): number;
7
15
  }
@@ -37,7 +37,6 @@ export interface FilterFieldConfig {
37
37
  domain?: PersonRole;
38
38
  title?: string;
39
39
  subTitle?: string;
40
- locationTitle?: string;
41
40
  }
42
41
  export interface FilterSetting {
43
42
  id: string;
@@ -10,3 +10,4 @@ export * from './tcDocument.model';
10
10
  export * from './timeout-notification.model';
11
11
  export * from './user-details.model';
12
12
  export * from './user.model';
13
+ export * from './pagination.model';
@@ -0,0 +1,4 @@
1
+ export interface PaginationParameter {
2
+ page_number: number;
3
+ page_size: number;
4
+ }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@hmcts/rpx-xui-common-lib",
3
- "version": "1.6.10",
3
+ "version": "1.7.0-ao-rectification",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.2.0",
6
6
  "@angular/core": "^7.2.0",
7
7
  "@angular/material": "^7.2.0",
8
8
  "@angular/cdk": "^7.2.0",
9
- "launchdarkly-js-client-sdk": "^2.15.2"
9
+ "launchdarkly-js-client-sdk": "^2.15.2",
10
+ "ngx-pagination": "^3.2.1"
10
11
  },
11
12
  "publishConfig": {
12
13
  "access": "public"