@skysoftware-co/bayan-hr-widgets-ui 1.1.1 → 1.2.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 (58) hide show
  1. package/README.md +15 -11
  2. package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +191 -1231
  3. package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +1 -1
  4. package/package.json +10 -8
  5. package/types/skysoftware-co-bayan-hr-widgets-ui.d.ts +1377 -0
  6. package/index.d.ts +0 -5
  7. package/lib/my-calendar-widget/my-calendar-widget.component.d.ts +0 -50
  8. package/lib/my-entitlements/my-profile-entitlements-others-widget/my-profile-entitlements-others-widget.component.d.ts +0 -26
  9. package/lib/my-entitlements/my-profile-indemnity-widget/my-profile-indemnity-widget.component.d.ts +0 -33
  10. package/lib/my-entitlements/my-profile-medical-insurance-widget/components/medical-insurance-card/medical-insurance-card.component.d.ts +0 -19
  11. package/lib/my-entitlements/my-profile-medical-insurance-widget/my-profile-medical-insurance-widget.component.d.ts +0 -36
  12. package/lib/my-entitlements/my-profile-ticket-widget/components/ticket-card/ticket-card.component.d.ts +0 -17
  13. package/lib/my-entitlements/my-profile-ticket-widget/my-profile-ticket-widget.component.d.ts +0 -35
  14. package/lib/my-entitlements/my-profile-vacations-widget/my-profile-vacations-widget.component.d.ts +0 -29
  15. package/lib/my-main-details-widget/my-main-details-widget.component.d.ts +0 -66
  16. package/lib/my-next-week-vacation-insights-widget/components/next-week-vacation-insights-popup/next-week-vacation-insights-popup.component.d.ts +0 -38
  17. package/lib/my-next-week-vacation-insights-widget/my-next-week-vacation-insights-widget.component.d.ts +0 -35
  18. package/lib/my-profile-address-widget/my-profile-address-widget.component.d.ts +0 -29
  19. package/lib/my-profile-bank-info-widget/my-profile-bank-info-widget.component.d.ts +0 -44
  20. package/lib/my-profile-contact-widget/my-profile-contact-widget.component.d.ts +0 -36
  21. package/lib/my-profile-contract-widget/my-profile-contract-widget.component.d.ts +0 -30
  22. package/lib/my-profile-degrees-widget/my-profile-degrees-widget-component.d.ts +0 -44
  23. package/lib/my-profile-documents-widgets/components/document-card/document-card.component.d.ts +0 -33
  24. package/lib/my-profile-documents-widgets/components/document-row/document-row.component.d.ts +0 -29
  25. package/lib/my-profile-documents-widgets/components/document-tablet-card/document-tablet-card.component.d.ts +0 -27
  26. package/lib/my-profile-documents-widgets/my-profile-dependents-documents-widget/my-profile-dependents-documents-widget.d.ts +0 -62
  27. package/lib/my-profile-documents-widgets/my-profile-official-documents-widget/my-profile-official-documents-widget.d.ts +0 -60
  28. package/lib/my-profile-employee-dependents-widget/my-profile-employee-dependents-component.d.ts +0 -22
  29. package/lib/my-profile-experiences-widget/my-profile-experiences-widget-component.d.ts +0 -44
  30. package/lib/my-profile-job-info-widget/my-profile-job-info-widget.component.d.ts +0 -30
  31. package/lib/my-profile-languages-widget/my-profile-languages-widget.component.d.ts +0 -26
  32. package/lib/my-profile-other-nationalities-widget/my-profile-other-nationalities-widget.component.d.ts +0 -27
  33. package/lib/my-profile-personal-info-main-widget/my-profile-personal-info-main-widget.component.d.ts +0 -32
  34. package/lib/my-profile-salary-widget/my-profile-salary-widget.component.d.ts +0 -36
  35. package/lib/my-profile-service-charge-widget/my-profile-service-charge-widget.component.d.ts +0 -32
  36. package/lib/my-upcoming-events-widget/components/event-item/event-item.component.d.ts +0 -25
  37. package/lib/my-upcoming-events-widget/components/event-tab-bar/event-tab-bar.component.d.ts +0 -31
  38. package/lib/my-upcoming-events-widget/components/events-popup/events-popup.component.d.ts +0 -37
  39. package/lib/my-upcoming-events-widget/my-upcoming-events-widget.component.d.ts +0 -55
  40. package/lib/services/hr-self-widgets.service.d.ts +0 -52
  41. package/lib/shared/components/card-header/card-header.component.d.ts +0 -11
  42. package/lib/shared/components/hr-employee-calendar/hr-employee-calendar.component.d.ts +0 -35
  43. package/lib/shared/components/info-field/info-field.component.d.ts +0 -10
  44. package/lib/shared/components/widget-card/widget-card-component.d.ts +0 -10
  45. package/lib/shared/pipes/highlight.pipe.d.ts +0 -7
  46. package/lib/shared/pipes/translate.pipe.d.ts +0 -10
  47. package/lib/shared/services/bank-information-cache.service.d.ts +0 -12
  48. package/lib/shared/services/common-methods.service.d.ts +0 -10
  49. package/lib/shared/services/constants.service.d.ts +0 -10
  50. package/lib/shared/services/entitlements-cache.service.d.ts +0 -28
  51. package/lib/shared/services/job-information-cache.service.d.ts +0 -22
  52. package/lib/shared/services/personal-information-cache.service.d.ts +0 -25
  53. package/lib/shared/services/profile-documents-cache-service.d.ts +0 -16
  54. package/lib/shared/services/profile-employee-dependents-cach.d.ts +0 -13
  55. package/lib/shared/services/qualifications-cache.service.d.ts +0 -16
  56. package/lib/shared/services/translate.service.d.ts +0 -12
  57. package/lib/shared/types/common.d.ts +0 -298
  58. package/public-api.d.ts +0 -31
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # shared-ui
2
2
 
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 19.2.15.
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 21.0.6.
4
+
5
+ **Requires:** Angular `^21.0.0` · TypeScript `~5.9.x` · Node.js `22.x (LTS)`
4
6
 
5
7
  ## Code scaffolding
6
8
 
@@ -62,27 +64,29 @@ use npm to install this package by command: @skysoftware-co/bayan-hr-widgets-ui
62
64
 
63
65
  ## Setup
64
66
 
65
- Before using any component, you need to configure the `HRTranslateService` and provide the `HRTranslatePipe` in your application.
67
+ Before using any component, you need to configure translation using `TranslationService` from `@skysoftware-co/sky-components-ui` and `TranslateService` from `@ngx-translate/core`, then provide `TranslatePipe` in your application.
66
68
 
67
69
  ### 1. Set language and lexicon in your App Component
68
70
 
69
71
  ```typescript
70
72
  import { Component, inject, OnInit } from '@angular/core';
71
- import { HRTranslateService } from '@skysoftware-co/bayan-hr-widgets-ui';
73
+ import { TranslateService } from '@ngx-translate/core';
74
+ import { TranslationService } from '@skysoftware-co/sky-components-ui';
72
75
 
73
76
  @Component({
74
77
  selector: 'app-root',
75
78
  ...
76
79
  })
77
80
  export class AppComponent implements OnInit {
78
- private hrTranslateService = inject(HRTranslateService);
81
+ private translateService = inject(TranslateService);
82
+ private translationService = inject(TranslationService);
79
83
 
80
84
  ngOnInit(): void {
81
- // Set the active language (built-in: 'en', 'ar', 'fr')
82
- this.hrTranslateService.setLanguage('en');
85
+ // Set the active language ('en', 'ar', 'fr')
86
+ this.translateService.use('en');
83
87
 
84
88
  // Optionally set a lexicon for additional or override translations
85
- this.hrTranslateService.setLexicon({
89
+ this.translationService.setLexicon({
86
90
  'CustomKey': 'Custom Value',
87
91
  ...
88
92
  });
@@ -90,18 +94,18 @@ export class AppComponent implements OnInit {
90
94
  }
91
95
  ```
92
96
 
93
- ### 2. Provide the HRTranslatePipe
97
+ ### 2. Provide the TranslatePipe
94
98
 
95
- Add `HRTranslatePipe` to the `providers` array in your App Component:
99
+ Add `TranslatePipe` to the `providers` array in your App Component:
96
100
 
97
101
  ```typescript
98
- import { HRTranslatePipe } from '@skysoftware-co/bayan-hr-widgets-ui';
102
+ import { TranslatePipe } from '@skysoftware-co/sky-components-ui';
99
103
 
100
104
  @Component({
101
105
  selector: 'app-root',
102
106
  standalone: true,
103
107
  imports: [...],
104
- providers: [HRTranslatePipe],
108
+ providers: [TranslatePipe],
105
109
  ...
106
110
  })
107
111
  export class AppComponent { }