@skysoftware-co/bayan-hr-widgets-ui 1.0.11 → 1.0.14
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 +35 -0
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +1066 -103
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +1 -1
- package/lib/my-vacation-team-widget/components/vacation-subordinates-popup/vacation-subordinates-popup.component.d.ts +38 -0
- package/lib/my-vacation-team-widget/my-vacation-team-widget.component.d.ts +31 -0
- package/lib/profile-bank-information-widget/profile-bank-information-widget.component.d.ts +5 -3
- package/lib/profile-job-information-contract-widget/profile-job-information-contract-widget.component.d.ts +30 -0
- package/lib/profile-job-information-main-widget/profile-job-information-main-widget.component.d.ts +30 -0
- package/lib/profile-job-information-salary-widget/profile-job-information-salary-widget.component.d.ts +36 -0
- package/lib/profile-job-information-service-charge-widget/profile-job-information-service-charge-widget.component.d.ts +32 -0
- package/lib/profile-personal-info-contact-widget/profile-personal-info-contact-widget.component.d.ts +2 -1
- package/lib/profile-personal-info-languages-widget/profile-personal-info-languages-widget.component.d.ts +2 -1
- package/lib/profile-personal-info-main-widget/profile-personal-info-main-widget.component.d.ts +2 -1
- package/lib/profile-personal-info-other-nationalities-widget/profile-personal-info-other-nationalities-widget.component.d.ts +2 -1
- package/lib/profile-profile-personal-info-address-widget/profile-personal-info-address-widget.component.d.ts +2 -1
- package/lib/services/hr-self-widgets.service.d.ts +10 -2
- package/lib/shared/services/job-information-cache.service.d.ts +22 -0
- package/lib/shared/types/common.d.ts +65 -27
- package/package.json +1 -1
- package/public-api.d.ts +6 -1
- package/lib/my-bank-information-widget/my-bank-information-widget.component.d.ts +0 -41
- package/lib/personal-info-address-widget/personal-info-address-widget.component.d.ts +0 -25
- package/lib/personal-info-contact-widget/personal-info-contact-widget.component.d.ts +0 -28
- package/lib/personal-info-languages-widget/personal-info-languages-widget.component.d.ts +0 -22
- package/lib/personal-info-main-widget/personal-info-main-widget.component.d.ts +0 -28
- package/lib/personal-info-other-nationalities-widget/personal-info-other-nationalities-widget.component.d.ts +0 -22
package/README.md
CHANGED
|
@@ -269,3 +269,38 @@ The component calls `GET {baseUrl}/hr/employee-portal/calendar` with query param
|
|
|
269
269
|
- `Year` - Starting year
|
|
270
270
|
- `MonthsCount` - Number of months to load (default: 12)
|
|
271
271
|
- Header: `api-version: 2`
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## My Vacation Team Widget Component
|
|
275
|
+
|
|
276
|
+
### Usage
|
|
277
|
+
```html
|
|
278
|
+
<hr-my-vacation-team-widget
|
|
279
|
+
[baseUrl]="environment.baseUrl"
|
|
280
|
+
[showProperty]="true"
|
|
281
|
+
(isLoadingChanged)="onLoadingChanged($event)">
|
|
282
|
+
</hr-my-vacation-team-widget>
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
This component displays a "Next Week Vacation Insights" card showing two badges: **Upcoming Vacations** and **Expected To Return** counts for team subordinates. Clicking a badge opens a popup with a paginated, searchable data grid listing the relevant employees. It uses `SkyWidgetSectionItemComponent` from `@skysoftware-co/sky-components-ui` for badge display and `BayanEmployeeBadgeComponent` from `@skysoftware-co/bayan-components-ui` for employee photos in the popup.
|
|
286
|
+
|
|
287
|
+
### Input Properties
|
|
288
|
+
| Input | Type | Default Value | Description |
|
|
289
|
+
|-------|------|---------------|-------------|
|
|
290
|
+
| `baseUrl` | string | `''` | Base URL for API calls |
|
|
291
|
+
| `showProperty` | boolean | `false` | Show employee property badge in the popup grid |
|
|
292
|
+
| `cardClass` | string | `'card rounded rounded-4 card-shadow p-16 border-top-0 h-100 p-4'` | Card container CSS class |
|
|
293
|
+
| `titleClass` | string | `'table-header-lg fw-meduim'` | Card title CSS class |
|
|
294
|
+
| `valueClass` | string | `'fs-24 mt-1 link-dark hover-primary text-decoration-none'` | Badge value CSS class (clickable) |
|
|
295
|
+
| `disabledValueClass` | string | `'fs-24 mt-1 text-muted pe-none text-decoration-none'` | Badge value CSS class when count is 0 |
|
|
296
|
+
| `upcomingContainerClass` | string | `'border-start border-5 mb-3'` | Upcoming vacations badge container CSS class |
|
|
297
|
+
| `expectedContainerClass` | string | `'border-start border-5'` | Expected to return badge container CSS class |
|
|
298
|
+
|
|
299
|
+
### Output Events
|
|
300
|
+
- `isLoadingChanged: EventEmitter<boolean>` - Emitted when loading state changes
|
|
301
|
+
|
|
302
|
+
### API Endpoints
|
|
303
|
+
- **Summary**: `GET {baseUrl}/hr/widgets/me/team/subordinates/vacations/summary?ShowDirectSubordinatesOnly=false`
|
|
304
|
+
- **Upcoming list**: `GET {baseUrl}/hr/widgets/me/team/subordinates/vacations/upcoming`
|
|
305
|
+
- **Expected to return list**: `GET {baseUrl}/hr/widgets/me/team/subordinates/vacations/expected-to-return`
|
|
306
|
+
|