@skysoftware-co/bayan-hr-widgets-ui 2.0.3 → 2.0.5
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
CHANGED
|
@@ -52,6 +52,7 @@ components:
|
|
|
52
52
|
22. My Profile Entitlements Others Widget
|
|
53
53
|
23. My Profile Employee Documents Widget
|
|
54
54
|
24. My Profile Dependents Documents Widget
|
|
55
|
+
25. My Team Subordinates Popup Widget
|
|
55
56
|
|
|
56
57
|
## Dependencies
|
|
57
58
|
This library depends on `@skysoftware-co/bayan-components-ui` package which provides:
|
|
@@ -330,6 +331,56 @@ This component displays a "Next Week Vacation Insights" card showing two badges:
|
|
|
330
331
|
- **Upcoming list**: `GET {baseUrl}/hr/widgets/me/team/next-week-vacation-insights/upcoming-vacations`
|
|
331
332
|
- **Expected to return list**: `GET {baseUrl}/hr/widgets/me/team/next-week-vacation-insights/expected-to-return`
|
|
332
333
|
|
|
334
|
+
### My Team Subordinates Popup
|
|
335
|
+
|
|
336
|
+
### Usage
|
|
337
|
+
```html
|
|
338
|
+
<hr-my-team-subordinates-popup
|
|
339
|
+
[baseUrl]="environment.baseUrl"
|
|
340
|
+
(isLoadingChanged)="onLoadingChanged($event)"
|
|
341
|
+
(errorOccurred)="onError($event)">
|
|
342
|
+
</hr-my-team-subordinates-popup>
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
Programmatic open helper:
|
|
346
|
+
|
|
347
|
+
```ts
|
|
348
|
+
import { openMyTeamSubordinatesPopup } from '@skysoftware-co/bayan-hr-widgets-ui';
|
|
349
|
+
|
|
350
|
+
openMyTeamSubordinatesPopup();
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
This popup component displays grouped subordinate employees with search, infinite scrolling, and a toggle between direct subordinates and all subordinates.
|
|
354
|
+
|
|
355
|
+
### Input Properties
|
|
356
|
+
| Input | Type | Default Value | Description |
|
|
357
|
+
|-------|------|---------------|-------------|
|
|
358
|
+
| `baseUrl` | string | required | Base URL for API calls |
|
|
359
|
+
| `pageSize` | number | `100` | Number of records loaded per page |
|
|
360
|
+
| `phoneIcon` | IconDefinition | `faPhone` | Icon used for phone row |
|
|
361
|
+
| `emailIcon` | IconDefinition | `faEnvelope` | Icon used for email row |
|
|
362
|
+
|
|
363
|
+
### Output Events
|
|
364
|
+
- `isLoadingChanged: EventEmitter<boolean>` - Emitted when initial/reset loading state changes.
|
|
365
|
+
- `errorOccurred: EventEmitter<string>` - Emitted when API request fails.
|
|
366
|
+
|
|
367
|
+
### API Endpoint
|
|
368
|
+
- `GET {baseUrl}/hr/widgets/me/team/subordinates`
|
|
369
|
+
|
|
370
|
+
### Employee Main Info Card
|
|
371
|
+
|
|
372
|
+
Usage in template:
|
|
373
|
+
|
|
374
|
+
```html
|
|
375
|
+
<app-employee-main-info-card
|
|
376
|
+
[employeeMainInfo]="employeeInfo"
|
|
377
|
+
[searchValue]="searchValue"
|
|
378
|
+
[showPropertySymbol]="true">
|
|
379
|
+
</app-employee-main-info-card>
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
This component renders the subordinate basic profile header (name, position, property, badge image/initials) and supports text highlighting.
|
|
383
|
+
|
|
333
384
|
## My Profile Widgets
|
|
334
385
|
|
|
335
386
|
The package also exports profile-focused widgets used in the employee profile page.
|