@unipin/angular-applet 17.0.5 → 17.1.0

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 (73) hide show
  1. package/esm2022/lib/components/approval/detail/approval-detail.component.mjs +79 -0
  2. package/esm2022/lib/components/approval/form/approval-form.component.mjs +109 -0
  3. package/esm2022/lib/components/approval/index.mjs +3 -0
  4. package/esm2022/lib/components/approval/list/approval-list.component.mjs +92 -0
  5. package/esm2022/lib/components/approval/services/approval.service.mjs +46 -0
  6. package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +5 -5
  7. package/esm2022/lib/components/audit/list/audit-list.component.mjs +3 -3
  8. package/esm2022/lib/components/audit/service/audit.service.mjs +3 -3
  9. package/esm2022/lib/components/buttons/group/btn-group.component.mjs +4 -4
  10. package/esm2022/lib/components/buttons/loading/btn-loading.component.mjs +3 -3
  11. package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +5 -5
  12. package/esm2022/lib/components/containers/colum-header-container/column-header-container.component.mjs +6 -6
  13. package/esm2022/lib/components/containers/column-container/column-container.component.mjs +4 -4
  14. package/esm2022/lib/components/containers/column-container/directives/lazyr-route.directive.mjs +3 -3
  15. package/esm2022/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.mjs +10 -11
  16. package/esm2022/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.mjs +10 -11
  17. package/esm2022/lib/components/containers/modal-container/modal-container.component.mjs +12 -13
  18. package/esm2022/lib/components/filter/filter.component.mjs +14 -7
  19. package/esm2022/lib/components/filter/interfaces/filter-field.interface.mjs +1 -1
  20. package/esm2022/lib/components/forms/date/form-date.component.mjs +6 -6
  21. package/esm2022/lib/components/forms/input/form-input.component.mjs +6 -5
  22. package/esm2022/lib/components/forms/password/form-password.component.mjs +4 -4
  23. package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +7 -6
  24. package/esm2022/lib/components/forms/select/form-select.component.mjs +6 -6
  25. package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +4 -4
  26. package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +9 -5
  27. package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +9 -5
  28. package/esm2022/lib/components/grids/services/grid.service.mjs +3 -3
  29. package/esm2022/lib/components/index.mjs +2 -1
  30. package/esm2022/lib/components/tabs/tab-content/tab-content.component.mjs +9 -10
  31. package/esm2022/lib/components/tabs/tab-group/tab-group.component.mjs +6 -6
  32. package/esm2022/lib/components/tabs/tabs.component.module.mjs +4 -4
  33. package/esm2022/lib/interceptors/header/header.interceptor.mjs +3 -3
  34. package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +4 -4
  35. package/esm2022/lib/modules/micro-frontend/utils/mf-bootstrap.util.mjs +1 -1
  36. package/esm2022/lib/modules/permission/directive/permission.directive.mjs +4 -4
  37. package/esm2022/lib/modules/permission/guards/permission.guard.mjs +1 -1
  38. package/esm2022/lib/modules/permission/pages/401/unauthorized.page.mjs +3 -3
  39. package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +3 -3
  40. package/esm2022/lib/modules/permission/permission.module.mjs +4 -4
  41. package/esm2022/lib/modules/permission/services/permission.service.mjs +3 -3
  42. package/esm2022/lib/resolvers/auth/auth.resolver.mjs +4 -4
  43. package/esm2022/lib/services/auth/auth.service.mjs +6 -6
  44. package/esm2022/lib/services/country/country.service.mjs +3 -3
  45. package/esm2022/lib/services/currency/currency.service.mjs +44 -0
  46. package/esm2022/lib/services/index.mjs +2 -1
  47. package/esm2022/lib/services/profile/profile.service.mjs +22 -11
  48. package/esm2022/public-api.mjs +3 -3
  49. package/fesm2022/unipin-angular-applet.mjs +515 -165
  50. package/fesm2022/unipin-angular-applet.mjs.map +1 -1
  51. package/lib/components/approval/detail/approval-detail.component.d.ts +24 -0
  52. package/lib/components/approval/form/approval-form.component.d.ts +32 -0
  53. package/lib/components/approval/index.d.ts +2 -0
  54. package/lib/components/approval/list/approval-list.component.d.ts +31 -0
  55. package/lib/components/approval/services/approval.service.d.ts +18 -0
  56. package/lib/components/containers/colum-header-container/column-header-container.component.d.ts +2 -2
  57. package/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.d.ts +4 -4
  58. package/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.d.ts +4 -4
  59. package/lib/components/containers/modal-container/modal-container.component.d.ts +4 -4
  60. package/lib/components/filter/filter.component.d.ts +2 -1
  61. package/lib/components/filter/interfaces/filter-field.interface.d.ts +1 -0
  62. package/lib/components/forms/input/form-input.component.d.ts +2 -2
  63. package/lib/components/grids/grid-pagination/grid-pagination.component.d.ts +2 -1
  64. package/lib/components/grids/grid-snapshot/grid-snapshot.component.d.ts +2 -1
  65. package/lib/components/index.d.ts +1 -0
  66. package/lib/components/tabs/tab-content/tab-content.component.d.ts +4 -4
  67. package/lib/services/auth/auth.service.d.ts +1 -1
  68. package/lib/services/currency/currency.service.d.ts +16 -0
  69. package/lib/services/index.d.ts +1 -0
  70. package/lib/services/profile/profile.service.d.ts +1 -1
  71. package/package.json +1 -1
  72. package/public-api.d.ts +2 -2
  73. package/src/assets/scss/select.scss +1 -1
@@ -0,0 +1,24 @@
1
+ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { Subscription } from 'rxjs';
4
+ import { ButtonGroupConfig } from '../../buttons/group/interfaces/btn-group-config.interface';
5
+ import { ApprovalFormComponent } from '../form/approval-form.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApprovalDetailComponent implements OnInit, AfterViewInit, OnDestroy {
8
+ protected readonly router: Router;
9
+ protected readonly activatedRoute: ActivatedRoute;
10
+ formComponent?: ApprovalFormComponent;
11
+ btnConfig: ButtonGroupConfig[];
12
+ protected guid: string;
13
+ protected guids?: string[];
14
+ protected isApprove?: boolean;
15
+ protected sub: Subscription;
16
+ constructor(router: Router, activatedRoute: ActivatedRoute);
17
+ ngOnInit(): void;
18
+ ngAfterViewInit(): void;
19
+ ngOnDestroy(): void;
20
+ changeTab(f: string | null): void;
21
+ protected setChildGuid(guid: string): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalDetailComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalDetailComponent, "up-approval-detail", never, {}, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,32 @@
1
+ import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { Subscription } from 'rxjs';
4
+ import { AlertButton, AlertController } from '@ionic/angular';
5
+ import { Approval } from '../../../../graphql/generated';
6
+ import { ButtonGroupConfig } from '../../buttons/group/interfaces/btn-group-config.interface';
7
+ import { ApprovalService } from '../services/approval.service';
8
+ import { GridService } from '../../grids/services/grid.service';
9
+ import { PermissionService } from '../../../modules/permission/services/permission.service';
10
+ import { ButtonLoadingComponent } from '../../buttons/loading/btn-loading.component';
11
+ import * as i0 from "@angular/core";
12
+ export declare class ApprovalFormComponent implements OnDestroy {
13
+ protected readonly router: Router;
14
+ protected readonly ch: ChangeDetectorRef;
15
+ protected readonly service: ApprovalService;
16
+ protected readonly gridService: GridService;
17
+ protected readonly alertCtrl: AlertController;
18
+ protected readonly permService: PermissionService;
19
+ isLoading: boolean;
20
+ readonly btnConfig: ButtonGroupConfig[];
21
+ data: Approval[];
22
+ protected guid?: string;
23
+ protected sub?: Subscription;
24
+ constructor(router: Router, ch: ChangeDetectorRef, service: ApprovalService, gridService: GridService, alertCtrl: AlertController, permService: PermissionService);
25
+ ngOnDestroy(): void;
26
+ setGuid(guids: string[], isApprove?: boolean): void;
27
+ protected request(btn: ButtonLoadingComponent): void;
28
+ protected setLoading(b: boolean): void;
29
+ protected showAlert(header: string, message: string, buttons?: (AlertButton | string)[], inputs?: any[]): Promise<void>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalFormComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalFormComponent, "up-approval-form", never, { "isLoading": { "alias": "isLoading"; "required": false; }; }, {}, never, never, true, never>;
32
+ }
@@ -0,0 +1,2 @@
1
+ export { ApprovalListComponent } from './list/approval-list.component';
2
+ export { ApprovalDetailComponent } from './detail/approval-detail.component';
@@ -0,0 +1,31 @@
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import { AlertController } from '@ionic/angular';
3
+ import { GridApi, GridReadyEvent } from '@ag-grid-community/core';
4
+ import { ApprovalCriteria } from '../../../../graphql/generated';
5
+ import { GridConfig } from '../../grids/interfaces/grid-config.interface';
6
+ import { FilterConfig } from '../../filter/interfaces/filter-config.interface';
7
+ import { FilterSearchEvent } from '../../filter/interfaces/filter-search-event.interface';
8
+ import { ButtonGroupConfig } from '../../buttons/group/interfaces/btn-group-config.interface';
9
+ import { ApprovalService } from '../services/approval.service';
10
+ import { ButtonLoadingComponent } from '../../buttons/loading/btn-loading.component';
11
+ import * as i0 from "@angular/core";
12
+ export declare class ApprovalListComponent {
13
+ readonly entities: string[];
14
+ protected readonly router: Router;
15
+ protected readonly route: ActivatedRoute;
16
+ protected readonly service: ApprovalService;
17
+ protected readonly alertCtrl: AlertController;
18
+ readonly gridConfig: GridConfig;
19
+ readonly filterConfig: FilterConfig;
20
+ btnConfig: ButtonGroupConfig[];
21
+ protected gridApi: GridApi;
22
+ protected input: ApprovalCriteria;
23
+ constructor(entities: string[], router: Router, route: ActivatedRoute, service: ApprovalService, alertCtrl: AlertController);
24
+ setGridApi({ api }: GridReadyEvent): void;
25
+ openDetail(data: any): void;
26
+ selectApprovals(): void;
27
+ search({ data }: FilterSearchEvent): void;
28
+ protected multipleApproval(btn: ButtonLoadingComponent): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalListComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalListComponent, "up-approval-list", never, {}, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,18 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ApolloQueryResult, FetchPolicy } from '@apollo/client/core';
3
+ import { Apollo, MutationResult } from 'apollo-angular';
4
+ import { ApprovalCriteria, PageableResponse, MutationApprovalMsApproveOrDeclineRequestArgs } from './../../../../graphql/generated';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ApprovalService {
7
+ protected readonly apollo: Apollo;
8
+ protected readonly baseAttr: string;
9
+ constructor(apollo: Apollo);
10
+ query(input: ApprovalCriteria, extraAttr?: string, fetchPolicy?: FetchPolicy): Observable<ApolloQueryResult<{
11
+ approvalMsApprovals: PageableResponse;
12
+ }>>;
13
+ request(variables: MutationApprovalMsApproveOrDeclineRequestArgs): Observable<MutationResult<{
14
+ approvalMsApproveOrDeclineRequest: string;
15
+ }>>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApprovalService>;
18
+ }
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ColumnHeaderContainerComponent {
3
- title?: string;
3
+ header?: string;
4
4
  prevUrl: string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ColumnHeaderContainerComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeaderContainerComponent, "up-column-header-container", never, { "title": { "alias": "title"; "required": false; }; "prevUrl": { "alias": "prevUrl"; "required": false; }; }, {}, never, ["#button", "*"], true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnHeaderContainerComponent, "up-column-header-container", never, { "header": { "alias": "header"; "required": false; }; "prevUrl": { "alias": "prevUrl"; "required": false; }; }, {}, never, ["#button", "*"], true, never>;
7
7
  }
@@ -6,18 +6,18 @@ import { FilterSearchEvent } from '../../../filter/interfaces/filter-search-even
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ListPaginationContainerComponent {
8
8
  id: string;
9
- title: string;
10
9
  protected readonly router: Router;
10
+ header: string;
11
11
  config: ListContainerConfig;
12
12
  readonly onRowClick: EventEmitter<any>;
13
13
  readonly onGridReady: EventEmitter<GridReadyEvent>;
14
14
  readonly onSearch: EventEmitter<FilterSearchEvent>;
15
15
  gridId: `grid-${string}`;
16
16
  protected gridApi: GridApi;
17
- constructor(id: string, title: string, router: Router);
17
+ constructor(id: string, router: Router);
18
18
  openDetail(data: any): void;
19
19
  setGridApi(ev: GridReadyEvent): void;
20
20
  search(k: FilterSearchEvent): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ListPaginationContainerComponent, [{ attribute: "id"; }, { attribute: "title"; }, null]>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<ListPaginationContainerComponent, "up-list-pagination-container", never, { "config": { "alias": "config"; "required": true; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSearch": "onSearch"; }, never, never, true, never>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListPaginationContainerComponent, [{ attribute: "id"; }, null]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListPaginationContainerComponent, "up-list-pagination-container", never, { "header": { "alias": "header"; "required": true; }; "config": { "alias": "config"; "required": true; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSearch": "onSearch"; }, never, never, true, never>;
23
23
  }
@@ -6,18 +6,18 @@ import { FilterSearchEvent } from '../../../filter/interfaces/filter-search-even
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ListSnapshotContainerComponent {
8
8
  id: string;
9
- title: string;
10
9
  protected readonly router: Router;
10
+ header: string;
11
11
  config: ListContainerConfig;
12
12
  readonly onRowClick: EventEmitter<any>;
13
13
  readonly onGridReady: EventEmitter<GridReadyEvent>;
14
14
  readonly onSearch: EventEmitter<FilterSearchEvent>;
15
15
  gridId: `grid-${string}`;
16
16
  protected gridApi: GridApi;
17
- constructor(id: string, title: string, router: Router);
17
+ constructor(id: string, router: Router);
18
18
  openDetail(data: any): void;
19
19
  setGridApi(ev: GridReadyEvent): void;
20
20
  search(k: FilterSearchEvent): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ListSnapshotContainerComponent, [{ attribute: "id"; }, { attribute: "title"; }, null]>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<ListSnapshotContainerComponent, "up-list-snapshot-container", never, { "config": { "alias": "config"; "required": true; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSearch": "onSearch"; }, never, never, true, never>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListSnapshotContainerComponent, [{ attribute: "id"; }, null]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListSnapshotContainerComponent, "up-list-snapshot-container", never, { "header": { "alias": "header"; "required": true; }; "config": { "alias": "config"; "required": true; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSearch": "onSearch"; }, never, never, true, never>;
23
23
  }
@@ -2,14 +2,14 @@ import { OnInit } from '@angular/core';
2
2
  import { ModalController } from '@ionic/angular';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ModalContainerComponent implements OnInit {
5
- title: string;
6
5
  protected readonly modalCtrl: ModalController;
6
+ header: string;
7
7
  protected key: string;
8
- constructor(title: string, modalCtrl: ModalController);
8
+ constructor(modalCtrl: ModalController);
9
9
  ngOnInit(): void;
10
10
  ngOnDestroy(): void;
11
11
  popState(ev: PopStateEvent): void;
12
12
  close(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalContainerComponent, [{ attribute: "title"; }, null]>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "up-modal-container", never, {}, {}, never, ["*"], true, never>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalContainerComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalContainerComponent, "up-modal-container", never, { "header": { "alias": "header"; "required": true; }; }, {}, never, ["*"], true, never>;
15
15
  }
@@ -5,7 +5,7 @@ import { FilterConfig } from './interfaces/filter-config.interface';
5
5
  import { FilterSearchEvent } from './interfaces/filter-search-event.interface';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FilterComponent implements OnInit {
8
- protected placeholder: string;
8
+ placeholder: string;
9
9
  protected readonly ch: ChangeDetectorRef;
10
10
  protected readonly popoverCtrl: PopoverController;
11
11
  id: string;
@@ -31,6 +31,7 @@ export declare class FilterComponent implements OnInit {
31
31
  value: string;
32
32
  };
33
33
  protected emitValue(extraAction?: (key: string, value: string) => void): void;
34
+ protected createFormControl(key: string, val?: any): void;
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, [{ attribute: "placeholder"; }, null, null]>;
35
36
  static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "up-filter", never, { "id": { "alias": "id"; "required": true; }; "config": { "alias": "config"; "required": true; }; }, { "onSearch": "onSearch"; }, never, never, true, never>;
36
37
  }
@@ -4,6 +4,7 @@ export interface FilterField {
4
4
  label: string;
5
5
  value: string;
6
6
  }[]>;
7
+ initialValue?: string | string[];
7
8
  key: string | string[];
8
9
  label: string | string[];
9
10
  options?: {
@@ -7,11 +7,11 @@ export declare class FormInputComponent implements ControlValueAccessor, Validat
7
7
  autocomplete: 'name' | 'email' | 'tel' | 'url' | 'on' | 'off' | 'honorific-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'honorific-suffix' | 'nickname' | 'username' | 'one-time-code' | 'organization-title' | 'organization' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2' | 'address-level1' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-currency' | 'transaction-amount' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'tel-country-code' | 'tel-national' | 'tel-area-code' | 'tel-local' | 'tel-extension';
8
8
  protected readonly ch: ChangeDetectorRef;
9
9
  label?: string;
10
+ value?: string | null;
10
11
  required: boolean;
11
12
  disabled: boolean;
12
13
  onInput: EventEmitter<any>;
13
14
  isTouched: boolean;
14
- value: any;
15
15
  errorMsg: string;
16
16
  protected formControl: AbstractControl;
17
17
  protected onChange: (_val: any) => void;
@@ -25,5 +25,5 @@ export declare class FormInputComponent implements ControlValueAccessor, Validat
25
25
  validate(control: AbstractControl): ValidationErrors | null;
26
26
  change({ value }: any): void;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, [{ attribute: "placeholder"; }, { attribute: "type"; }, { attribute: "autocomplete"; }, null]>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "up-input", never, { "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; }, never, never, true, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "up-input", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onInput": "onInput"; }, never, never, true, never>;
29
29
  }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
- import { ColDef, RowModelType, GridReadyEvent, DragStoppedEvent, SelectionChangedEvent, GridApi } from '@ag-grid-community/core';
3
+ import { ColDef, RowModelType, GridReadyEvent, DragStoppedEvent, SelectionChangedEvent, GridApi, PaginationChangedEvent } from '@ag-grid-community/core';
4
4
  import { GridConfig } from '../interfaces/grid-config.interface';
5
5
  import { GridService } from '../services/grid.service';
6
6
  import * as i0 from "@angular/core";
@@ -24,6 +24,7 @@ export declare class GridPaginationComponent implements OnInit, OnDestroy {
24
24
  clickRow(data: any): void;
25
25
  dragColumn({ api }: DragStoppedEvent): void;
26
26
  changeSelected(data: SelectionChangedEvent<any>): void;
27
+ changePagination(ev: PaginationChangedEvent): void;
27
28
  setDatasource(ev: GridReadyEvent): void;
28
29
  reset(): void;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<GridPaginationComponent, never>;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
- import { ColDef, GridReadyEvent, DragStoppedEvent, SelectionChangedEvent, GridApi } from '@ag-grid-community/core';
3
+ import { ColDef, GridReadyEvent, DragStoppedEvent, SelectionChangedEvent, GridApi, PaginationChangedEvent } from '@ag-grid-community/core';
4
4
  import { GridConfig } from '../interfaces/grid-config.interface';
5
5
  import { GridService } from '../services/grid.service';
6
6
  import * as i0 from "@angular/core";
@@ -27,6 +27,7 @@ export declare class GridSnapshotComponent implements OnInit, OnDestroy {
27
27
  clickRow(data: any): void;
28
28
  dragColumn({ api }: DragStoppedEvent): void;
29
29
  changeSelected(data: SelectionChangedEvent<any>): void;
30
+ changePagination(ev: PaginationChangedEvent): void;
30
31
  setDatasource(ev: GridReadyEvent): void;
31
32
  reset(): void;
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<GridSnapshotComponent, never>;
@@ -5,3 +5,4 @@ export { FormDateComponent, FormInputComponent, FormPasswordComponent, FormSearc
5
5
  export { GridConfig, GridPaginationComponent, GridService, GridSnapshotComponent } from './grids';
6
6
  export { TabContentComponent, TabGroupComponent, TabsComponentModule } from './tabs';
7
7
  export { AuditListComponent, AuditDetailComponent } from './audit';
8
+ export { ApprovalListComponent, ApprovalDetailComponent } from './approval';
@@ -1,12 +1,12 @@
1
1
  import { ChangeDetectorRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TabContentComponent {
4
- title: string;
5
4
  fragment: string;
6
5
  protected readonly ch: ChangeDetectorRef;
7
6
  isActive: boolean;
8
- constructor(title: string, fragment: string, ch: ChangeDetectorRef);
7
+ header: string;
8
+ constructor(fragment: string, ch: ChangeDetectorRef);
9
9
  toggleVisibility(s?: boolean): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, [{ attribute: "title"; }, { attribute: "fragment"; }, null]>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "up-tab-content", never, {}, {}, never, ["*"], false, never>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, [{ attribute: "fragment"; }, null]>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "up-tab-content", never, { "header": { "alias": "header"; "required": true; }; }, {}, never, ["*"], false, never>;
12
12
  }
@@ -21,7 +21,7 @@ export declare class AuthService {
21
21
  refreshToken(variables: MutationAuthMsRefreshAccessTokenArgs): Observable<MutationResult<{
22
22
  authMsRefreshAccessToken: Token;
23
23
  }>>;
24
- getProfile(guid: string): Observable<AppLoginSubject | null>;
24
+ getProfile(): Observable<AppLoginSubject | null>;
25
25
  initForgotPassword(email: string): Observable<MutationResult<any>>;
26
26
  createNewPassword({ newPassword, principalId, sourcePlatform, verifCode }: {
27
27
  confirm: string;
@@ -0,0 +1,16 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ApolloQueryResult } from '@apollo/client/core';
3
+ import { Apollo } from 'apollo-angular';
4
+ import { Currency } from '../../../graphql/generated';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CurrencyService {
7
+ protected readonly apollo: Apollo;
8
+ constructor(apollo: Apollo);
9
+ query(): Observable<ApolloQueryResult<{
10
+ webConfigMsCurrency: {
11
+ data: Currency[];
12
+ };
13
+ }>>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<CurrencyService>;
16
+ }
@@ -1,3 +1,4 @@
1
1
  export { AuthService } from './auth/auth.service';
2
+ export { CurrencyService } from './currency/currency.service';
2
3
  export { CountryService } from './country/country.service';
3
4
  export { ProfileService } from './profile/profile.service';
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class ProfileService {
6
6
  protected readonly apollo: Apollo;
7
7
  constructor(apollo: Apollo);
8
- getByGuid(guid: string): Observable<AppLoginSubject | null>;
8
+ getMyProfile(): Observable<AppLoginSubject | null>;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
10
10
  static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unipin/angular-applet",
3
- "version": "17.0.5",
3
+ "version": "17.1.0",
4
4
  "sideEffects": false,
5
5
  "homepage": "https://backoffice.unipin.com/",
6
6
  "description": "Angular specific wrappers for UniPin applet",
package/public-api.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabGroupComponent, TabContentComponent, TabsComponentModule, AuditListComponent, AuditDetailComponent } from './lib/components';
1
+ export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabGroupComponent, TabContentComponent, TabsComponentModule, AuditListComponent, AuditDetailComponent, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
2
2
  export { AuthGuard } from './lib/guards';
3
3
  export { HeaderInterceptor, RefreshTokenInterceptor } from './lib/interceptors';
4
4
  export { User } from './lib/interfaces';
5
5
  export { bootstrap, LoadingPage, UnauthorizedPage, PermissionDirective, PermissionGuard, PermissionService, PermissionModule } from './lib/modules';
6
6
  export { AuthResolver } from './lib/resolvers';
7
- export { AuthService, CountryService, ProfileService } from './lib/services';
7
+ export { AuthService, CurrencyService, CountryService, ProfileService } from './lib/services';
8
8
  export { getFormErrorMessage } from './lib/utils';
9
9
  export { GridApi, GridReadyEvent, ICellRendererParams, ValueFormatterParams, SelectionChangedEvent } from '@ag-grid-community/core';
10
10
  export { ICellRendererAngularComp } from '@ag-grid-community/angular';
@@ -1,6 +1,6 @@
1
1
  $ng-select-highlight: #ED6B26 !default;
2
2
  $ng-select-primary-text: #424242 !default;
3
- $ng-select-disabled-text: #888 !default;
3
+ $ng-select-disabled-text: #e9ecef !default;
4
4
  $ng-select-border: #e0e0e0 !default;
5
5
  $ng-select-border-radius: 4px !default;
6
6
  $ng-select-bg: #ffffff !default;