@unipin/angular-applet 18.6.6 → 18.6.8

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 (99) hide show
  1. package/fesm2022/unipin-angular-applet.mjs +200 -217
  2. package/fesm2022/unipin-angular-applet.mjs.map +1 -1
  3. package/lib/components/approval/detail/approval-detail.component.d.ts +2 -1
  4. package/lib/components/grids/grid-pagination/grid-pagination.component.d.ts +3 -2
  5. package/lib/components/grids/grid-snapshot/grid-snapshot.component.d.ts +3 -2
  6. package/lib/components/index.d.ts +1 -1
  7. package/lib/components/tabs/index.d.ts +7 -3
  8. package/lib/components/tabs/tab-content/tab-content.component.d.ts +1 -1
  9. package/lib/components/tabs/tab-group/tab-group.component.d.ts +7 -5
  10. package/package.json +1 -3
  11. package/public-api.d.ts +1 -1
  12. package/esm2022/graphql/generated.mjs +0 -570
  13. package/esm2022/lib/components/approval/detail/approval-detail.component.mjs +0 -79
  14. package/esm2022/lib/components/approval/form/approval-form.component.mjs +0 -128
  15. package/esm2022/lib/components/approval/index.mjs +0 -3
  16. package/esm2022/lib/components/approval/list/approval-list.component.mjs +0 -113
  17. package/esm2022/lib/components/approval/services/approval.service.mjs +0 -46
  18. package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +0 -124
  19. package/esm2022/lib/components/audit/index.mjs +0 -3
  20. package/esm2022/lib/components/audit/list/audit-list.component.mjs +0 -81
  21. package/esm2022/lib/components/audit/service/audit.service.mjs +0 -49
  22. package/esm2022/lib/components/audit/types/audit-detail-form.type.mjs +0 -2
  23. package/esm2022/lib/components/buttons/group/btn-group.component.mjs +0 -45
  24. package/esm2022/lib/components/buttons/group/interfaces/btn-group-config.interface.mjs +0 -2
  25. package/esm2022/lib/components/buttons/index.mjs +0 -3
  26. package/esm2022/lib/components/buttons/loading/btn-loading.component.mjs +0 -48
  27. package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +0 -54
  28. package/esm2022/lib/components/containers/colum-header-container/column-header-container.component.mjs +0 -23
  29. package/esm2022/lib/components/containers/column-container/column-container.component.mjs +0 -79
  30. package/esm2022/lib/components/containers/column-container/directives/lazy-route.directive.mjs +0 -23
  31. package/esm2022/lib/components/containers/index.mjs +0 -6
  32. package/esm2022/lib/components/containers/list-container/index.mjs +0 -3
  33. package/esm2022/lib/components/containers/list-container/interfaces/list-container-config.interface.mjs +0 -2
  34. package/esm2022/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.mjs +0 -58
  35. package/esm2022/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.mjs +0 -57
  36. package/esm2022/lib/components/containers/modal-container/modal-container.component.mjs +0 -40
  37. package/esm2022/lib/components/filter/filter.component.mjs +0 -121
  38. package/esm2022/lib/components/filter/index.mjs +0 -2
  39. package/esm2022/lib/components/filter/interfaces/filter-config.interface.mjs +0 -2
  40. package/esm2022/lib/components/filter/interfaces/filter-field.interface.mjs +0 -2
  41. package/esm2022/lib/components/filter/interfaces/filter-search-event.interface.mjs +0 -2
  42. package/esm2022/lib/components/forms/country-input/form-country-input.component.mjs +0 -122
  43. package/esm2022/lib/components/forms/currency-input/form-currency-input.component.mjs +0 -157
  44. package/esm2022/lib/components/forms/date/form-date.component.mjs +0 -109
  45. package/esm2022/lib/components/forms/image-picker/directives/drag-n-drop.directive.mjs +0 -49
  46. package/esm2022/lib/components/forms/image-picker/form-image-picker.component.mjs +0 -68
  47. package/esm2022/lib/components/forms/index.mjs +0 -11
  48. package/esm2022/lib/components/forms/input/form-input.component.mjs +0 -94
  49. package/esm2022/lib/components/forms/number/form-number.component.mjs +0 -97
  50. package/esm2022/lib/components/forms/number/pipes/locale-number.pipe.mjs +0 -38
  51. package/esm2022/lib/components/forms/password/form-password.component.mjs +0 -100
  52. package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +0 -132
  53. package/esm2022/lib/components/forms/select/form-select.component.mjs +0 -116
  54. package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +0 -88
  55. package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +0 -106
  56. package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +0 -104
  57. package/esm2022/lib/components/grids/index.mjs +0 -4
  58. package/esm2022/lib/components/grids/interfaces/grid-config.interface.mjs +0 -2
  59. package/esm2022/lib/components/grids/services/grid.service.mjs +0 -25
  60. package/esm2022/lib/components/index.mjs +0 -9
  61. package/esm2022/lib/components/infinite-scroll/directive/infinite-scroll.directive.mjs +0 -43
  62. package/esm2022/lib/components/infinite-scroll/index.mjs +0 -3
  63. package/esm2022/lib/components/infinite-scroll/infinite-scroll.component.mjs +0 -36
  64. package/esm2022/lib/components/tabs/index.mjs +0 -4
  65. package/esm2022/lib/components/tabs/tab-content/tab-content.component.mjs +0 -39
  66. package/esm2022/lib/components/tabs/tab-group/tab-group.component.mjs +0 -47
  67. package/esm2022/lib/components/tabs/tabs.component.module.mjs +0 -29
  68. package/esm2022/lib/guards/auth/auth.guard.mjs +0 -10
  69. package/esm2022/lib/guards/index.mjs +0 -2
  70. package/esm2022/lib/interceptors/header/header.interceptor.mjs +0 -20
  71. package/esm2022/lib/interceptors/index.mjs +0 -3
  72. package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +0 -42
  73. package/esm2022/lib/interfaces/index.mjs +0 -2
  74. package/esm2022/lib/interfaces/user/user.interface.mjs +0 -2
  75. package/esm2022/lib/modules/index.mjs +0 -3
  76. package/esm2022/lib/modules/micro-frontend/index.mjs +0 -2
  77. package/esm2022/lib/modules/micro-frontend/utils/mf-bootstrap.util.mjs +0 -55
  78. package/esm2022/lib/modules/micro-frontend/utils/mf-global-state.util.mjs +0 -14
  79. package/esm2022/lib/modules/permission/directive/permission.directive.mjs +0 -41
  80. package/esm2022/lib/modules/permission/guards/permission.guard.mjs +0 -26
  81. package/esm2022/lib/modules/permission/index.mjs +0 -7
  82. package/esm2022/lib/modules/permission/pages/401/unauthorized.page.mjs +0 -15
  83. package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +0 -52
  84. package/esm2022/lib/modules/permission/permission.module.mjs +0 -20
  85. package/esm2022/lib/modules/permission/services/permission.service.mjs +0 -47
  86. package/esm2022/lib/resolvers/auth/auth.resolver.mjs +0 -87
  87. package/esm2022/lib/resolvers/index.mjs +0 -2
  88. package/esm2022/lib/services/auth/auth.service.mjs +0 -145
  89. package/esm2022/lib/services/country/country.service.mjs +0 -43
  90. package/esm2022/lib/services/currency/currency.service.mjs +0 -40
  91. package/esm2022/lib/services/index.mjs +0 -5
  92. package/esm2022/lib/services/profile/profile.service.mjs +0 -71
  93. package/esm2022/lib/utils/contrast-color-generator/contrast-color-generator.util.mjs +0 -16
  94. package/esm2022/lib/utils/form-error-message/form-error-message.util.mjs +0 -21
  95. package/esm2022/lib/utils/format-capitalize/format-capitalize.util.mjs +0 -18
  96. package/esm2022/lib/utils/index.mjs +0 -4
  97. package/esm2022/public-api.mjs +0 -10
  98. package/esm2022/unipin-angular-applet.mjs +0 -2
  99. package/lib/components/tabs/tabs.component.module.d.ts +0 -9
@@ -1,6 +1,7 @@
1
1
  import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { Subscription } from 'rxjs';
4
+ import { TabsChangedEvent } from '../../tabs';
4
5
  import { ButtonGroupConfig } from '../../buttons/group/interfaces/btn-group-config.interface';
5
6
  import { ApprovalFormComponent } from '../form/approval-form.component';
6
7
  import * as i0 from "@angular/core";
@@ -18,7 +19,7 @@ export declare class ApprovalDetailComponent implements OnInit, AfterViewInit, O
18
19
  ngOnInit(): void;
19
20
  ngAfterViewInit(): void;
20
21
  ngOnDestroy(): void;
21
- changeTab(f: string | null): void;
22
+ changeTab({ fragment }: TabsChangedEvent): void;
22
23
  protected setChildGuid(guids: string[]): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalDetailComponent, never>;
24
25
  static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalDetailComponent, "up-approval-detail", never, {}, {}, never, never, true, never>;
@@ -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, PaginationChangedEvent } from '@ag-grid-community/core';
3
+ import { ColDef, RowModelType, GridReadyEvent, DragStoppedEvent, SelectionChangedEvent, GridApi, PaginationChangedEvent, RowClassParams, RowNode } 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";
@@ -11,6 +11,7 @@ export declare class GridPaginationComponent implements OnInit, OnDestroy {
11
11
  id: `grid-${string}`;
12
12
  rowModelType: RowModelType;
13
13
  rowSelection: 'single' | 'multiple';
14
+ getRowClass: ((params: RowClassParams<RowNode, any>) => string) | undefined;
14
15
  readonly onRowClick: EventEmitter<any>;
15
16
  readonly onGridReady: EventEmitter<GridReadyEvent>;
16
17
  readonly onSelectionChanged: EventEmitter<SelectionChangedEvent<any>>;
@@ -28,5 +29,5 @@ export declare class GridPaginationComponent implements OnInit, OnDestroy {
28
29
  setDatasource(ev: GridReadyEvent): void;
29
30
  reset(): void;
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<GridPaginationComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<GridPaginationComponent, "up-pagination-grid", never, { "config": { "alias": "config"; "required": true; }; "rowData": { "alias": "rowData"; "required": false; }; "id": { "alias": "id"; "required": false; }; "rowModelType": { "alias": "rowModelType"; "required": false; }; "rowSelection": { "alias": "rowSelection"; "required": false; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSelectionChanged": "onSelectionChanged"; }, never, never, true, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridPaginationComponent, "up-pagination-grid", never, { "config": { "alias": "config"; "required": true; }; "rowData": { "alias": "rowData"; "required": false; }; "id": { "alias": "id"; "required": false; }; "rowModelType": { "alias": "rowModelType"; "required": false; }; "rowSelection": { "alias": "rowSelection"; "required": false; }; "getRowClass": { "alias": "getRowClass"; "required": false; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSelectionChanged": "onSelectionChanged"; }, never, never, true, never>;
32
33
  }
@@ -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, PaginationChangedEvent } from '@ag-grid-community/core';
3
+ import { ColDef, GridReadyEvent, DragStoppedEvent, SelectionChangedEvent, GridApi, PaginationChangedEvent, RowClassParams, RowNode } 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";
@@ -9,6 +9,7 @@ export declare class GridSnapshotComponent implements OnInit, OnDestroy {
9
9
  id: `grid-${string}`;
10
10
  config: GridConfig;
11
11
  rowSelection: 'single' | 'multiple';
12
+ getRowClass: ((params: RowClassParams<RowNode, any>) => string) | undefined;
12
13
  readonly onRowClick: EventEmitter<any>;
13
14
  readonly onGridReady: EventEmitter<GridReadyEvent>;
14
15
  readonly onSelectionChanged: EventEmitter<SelectionChangedEvent<any>>;
@@ -31,5 +32,5 @@ export declare class GridSnapshotComponent implements OnInit, OnDestroy {
31
32
  setDatasource(ev: GridReadyEvent): void;
32
33
  reset(): void;
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<GridSnapshotComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<GridSnapshotComponent, "up-snapshot-grid", never, { "id": { "alias": "id"; "required": false; }; "config": { "alias": "config"; "required": true; }; "rowSelection": { "alias": "rowSelection"; "required": false; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSelectionChanged": "onSelectionChanged"; }, never, never, true, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<GridSnapshotComponent, "up-snapshot-grid", never, { "id": { "alias": "id"; "required": false; }; "config": { "alias": "config"; "required": true; }; "rowSelection": { "alias": "rowSelection"; "required": false; }; "getRowClass": { "alias": "getRowClass"; "required": false; }; }, { "onRowClick": "onRowClick"; "onGridReady": "onGridReady"; "onSelectionChanged": "onSelectionChanged"; }, never, never, true, never>;
35
36
  }
@@ -3,6 +3,6 @@ export { AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContain
3
3
  export { FilterComponent, FilterConfig, FilterField, FilterSearchEvent } from './filter';
4
4
  export { FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent } from './forms';
5
5
  export { GridConfig, GridPaginationComponent, GridService, GridSnapshotComponent } from './grids';
6
- export { TabContentComponent, TabGroupComponent, TabsComponentModule } from './tabs';
6
+ export { TabsComponent, TabsChangedEvent } from './tabs';
7
7
  export { AuditListComponent, AuditDetailComponent } from './audit';
8
8
  export { ApprovalListComponent, ApprovalDetailComponent } from './approval';
@@ -1,3 +1,7 @@
1
- export { TabGroupComponent } from './tab-group/tab-group.component';
2
- export { TabContentComponent } from './tab-content/tab-content.component';
3
- export { TabsComponentModule } from './tabs.component.module';
1
+ import { TabGroupComponent } from './tab-group/tab-group.component';
2
+ import { TabContentComponent } from './tab-content/tab-content.component';
3
+ export declare const TabsComponent: readonly [typeof TabGroupComponent, typeof TabContentComponent];
4
+ export interface TabsChangedEvent {
5
+ index: number;
6
+ fragment: string | null;
7
+ }
@@ -10,5 +10,5 @@ export declare class TabContentComponent implements AfterContentInit {
10
10
  ngAfterContentInit(): void;
11
11
  toggleVisibility(s?: boolean): void;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, [{ attribute: "fragment"; }, null]>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "up-tab-content", never, { "header": { "alias": "header"; "required": false; }; }, {}, ["customHeader"], ["*"], false, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "up-tab-content", never, { "header": { "alias": "header"; "required": false; }; }, {}, ["customHeader"], ["*"], true, never>;
14
14
  }
@@ -1,16 +1,18 @@
1
- import { AfterContentInit, EventEmitter, QueryList } from '@angular/core';
1
+ import { AfterContentInit, OutputEmitterRef, Signal } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { TabContentComponent } from '../tab-content/tab-content.component';
4
+ import { TabsChangedEvent } from '..';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TabGroupComponent implements AfterContentInit {
6
7
  protected readonly router: Router;
7
8
  protected readonly activeRoute: ActivatedRoute;
8
- readonly onChange: EventEmitter<string | null>;
9
- content: QueryList<TabContentComponent>;
9
+ readonly onChange: OutputEmitterRef<TabsChangedEvent>;
10
+ readonly changed: OutputEmitterRef<TabsChangedEvent>;
11
+ readonly content: Signal<readonly TabContentComponent[]>;
10
12
  activeFragment: string | null | undefined;
11
13
  constructor(router: Router, activeRoute: ActivatedRoute);
12
14
  ngAfterContentInit(): void;
13
- changeTab(f: string | null): void;
15
+ changeTab(f: string | null, i: number): void;
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "up-tab-group", never, {}, { "onChange": "onChange"; }, ["content"], ["*"], false, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "up-tab-group", never, {}, { "onChange": "onChange"; "changed": "changed"; }, ["content"], ["*"], true, never>;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unipin/angular-applet",
3
- "version": "18.6.6",
3
+ "version": "18.6.8",
4
4
  "sideEffects": false,
5
5
  "homepage": "https://backoffice.unipin.com/",
6
6
  "description": "Angular specific wrappers for UniPin applet",
@@ -33,8 +33,6 @@
33
33
  },
34
34
  ".": {
35
35
  "types": "./index.d.ts",
36
- "esm2022": "./esm2022/unipin-angular-applet.mjs",
37
- "esm": "./esm2022/unipin-angular-applet.mjs",
38
36
  "default": "./fesm2022/unipin-angular-applet.mjs"
39
37
  }
40
38
  },
package/public-api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent, 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';
1
+ export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabsComponent, TabsChangedEvent, AuditListComponent, AuditDetailComponent, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
2
2
  export { InfiniteScrollDirective, InfiniteScrollComponent } from './lib/components/infinite-scroll';
3
3
  export { AuthGuard } from './lib/guards';
4
4
  export { HeaderInterceptor, RefreshTokenInterceptor } from './lib/interceptors';