@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.
- package/README.md +15 -11
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +191 -1231
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +1 -1
- package/package.json +10 -8
- package/types/skysoftware-co-bayan-hr-widgets-ui.d.ts +1377 -0
- package/index.d.ts +0 -5
- package/lib/my-calendar-widget/my-calendar-widget.component.d.ts +0 -50
- package/lib/my-entitlements/my-profile-entitlements-others-widget/my-profile-entitlements-others-widget.component.d.ts +0 -26
- package/lib/my-entitlements/my-profile-indemnity-widget/my-profile-indemnity-widget.component.d.ts +0 -33
- package/lib/my-entitlements/my-profile-medical-insurance-widget/components/medical-insurance-card/medical-insurance-card.component.d.ts +0 -19
- package/lib/my-entitlements/my-profile-medical-insurance-widget/my-profile-medical-insurance-widget.component.d.ts +0 -36
- package/lib/my-entitlements/my-profile-ticket-widget/components/ticket-card/ticket-card.component.d.ts +0 -17
- package/lib/my-entitlements/my-profile-ticket-widget/my-profile-ticket-widget.component.d.ts +0 -35
- package/lib/my-entitlements/my-profile-vacations-widget/my-profile-vacations-widget.component.d.ts +0 -29
- package/lib/my-main-details-widget/my-main-details-widget.component.d.ts +0 -66
- package/lib/my-next-week-vacation-insights-widget/components/next-week-vacation-insights-popup/next-week-vacation-insights-popup.component.d.ts +0 -38
- package/lib/my-next-week-vacation-insights-widget/my-next-week-vacation-insights-widget.component.d.ts +0 -35
- package/lib/my-profile-address-widget/my-profile-address-widget.component.d.ts +0 -29
- package/lib/my-profile-bank-info-widget/my-profile-bank-info-widget.component.d.ts +0 -44
- package/lib/my-profile-contact-widget/my-profile-contact-widget.component.d.ts +0 -36
- package/lib/my-profile-contract-widget/my-profile-contract-widget.component.d.ts +0 -30
- package/lib/my-profile-degrees-widget/my-profile-degrees-widget-component.d.ts +0 -44
- package/lib/my-profile-documents-widgets/components/document-card/document-card.component.d.ts +0 -33
- package/lib/my-profile-documents-widgets/components/document-row/document-row.component.d.ts +0 -29
- package/lib/my-profile-documents-widgets/components/document-tablet-card/document-tablet-card.component.d.ts +0 -27
- package/lib/my-profile-documents-widgets/my-profile-dependents-documents-widget/my-profile-dependents-documents-widget.d.ts +0 -62
- package/lib/my-profile-documents-widgets/my-profile-official-documents-widget/my-profile-official-documents-widget.d.ts +0 -60
- package/lib/my-profile-employee-dependents-widget/my-profile-employee-dependents-component.d.ts +0 -22
- package/lib/my-profile-experiences-widget/my-profile-experiences-widget-component.d.ts +0 -44
- package/lib/my-profile-job-info-widget/my-profile-job-info-widget.component.d.ts +0 -30
- package/lib/my-profile-languages-widget/my-profile-languages-widget.component.d.ts +0 -26
- package/lib/my-profile-other-nationalities-widget/my-profile-other-nationalities-widget.component.d.ts +0 -27
- package/lib/my-profile-personal-info-main-widget/my-profile-personal-info-main-widget.component.d.ts +0 -32
- package/lib/my-profile-salary-widget/my-profile-salary-widget.component.d.ts +0 -36
- package/lib/my-profile-service-charge-widget/my-profile-service-charge-widget.component.d.ts +0 -32
- package/lib/my-upcoming-events-widget/components/event-item/event-item.component.d.ts +0 -25
- package/lib/my-upcoming-events-widget/components/event-tab-bar/event-tab-bar.component.d.ts +0 -31
- package/lib/my-upcoming-events-widget/components/events-popup/events-popup.component.d.ts +0 -37
- package/lib/my-upcoming-events-widget/my-upcoming-events-widget.component.d.ts +0 -55
- package/lib/services/hr-self-widgets.service.d.ts +0 -52
- package/lib/shared/components/card-header/card-header.component.d.ts +0 -11
- package/lib/shared/components/hr-employee-calendar/hr-employee-calendar.component.d.ts +0 -35
- package/lib/shared/components/info-field/info-field.component.d.ts +0 -10
- package/lib/shared/components/widget-card/widget-card-component.d.ts +0 -10
- package/lib/shared/pipes/highlight.pipe.d.ts +0 -7
- package/lib/shared/pipes/translate.pipe.d.ts +0 -10
- package/lib/shared/services/bank-information-cache.service.d.ts +0 -12
- package/lib/shared/services/common-methods.service.d.ts +0 -10
- package/lib/shared/services/constants.service.d.ts +0 -10
- package/lib/shared/services/entitlements-cache.service.d.ts +0 -28
- package/lib/shared/services/job-information-cache.service.d.ts +0 -22
- package/lib/shared/services/personal-information-cache.service.d.ts +0 -25
- package/lib/shared/services/profile-documents-cache-service.d.ts +0 -16
- package/lib/shared/services/profile-employee-dependents-cach.d.ts +0 -13
- package/lib/shared/services/qualifications-cache.service.d.ts +0 -16
- package/lib/shared/services/translate.service.d.ts +0 -12
- package/lib/shared/types/common.d.ts +0 -298
- 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
|
|
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
|
|
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 {
|
|
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
|
|
81
|
+
private translateService = inject(TranslateService);
|
|
82
|
+
private translationService = inject(TranslationService);
|
|
79
83
|
|
|
80
84
|
ngOnInit(): void {
|
|
81
|
-
// Set the active language (
|
|
82
|
-
this.
|
|
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.
|
|
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
|
|
97
|
+
### 2. Provide the TranslatePipe
|
|
94
98
|
|
|
95
|
-
Add `
|
|
99
|
+
Add `TranslatePipe` to the `providers` array in your App Component:
|
|
96
100
|
|
|
97
101
|
```typescript
|
|
98
|
-
import {
|
|
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: [
|
|
108
|
+
providers: [TranslatePipe],
|
|
105
109
|
...
|
|
106
110
|
})
|
|
107
111
|
export class AppComponent { }
|