Adds salary specifications with detailed accordion view
Introduces new salary specification feature with interactive accordion component Implements detailed salary breakdown including: - Salary specification JSON data model - Salary specification page with printable view - Accordion component for expanding/collapsing salary details - Localization support for new salary labels Enhances employee salary transparency and detail presentation
This commit is contained in:
parent
f3c54dde35
commit
a1059adf06
14 changed files with 1613 additions and 46 deletions
|
|
@ -572,6 +572,50 @@ Dashed border knap til tilføjelse af elementer.
|
|||
|
||||
---
|
||||
|
||||
## Accordion (accordion.css)
|
||||
|
||||
Genbrugeligt accordion component med expand/collapse animation og single-open behavior.
|
||||
|
||||
```html
|
||||
<swp-accordion>
|
||||
<swp-accordion-item>
|
||||
<swp-accordion-header>
|
||||
<swp-accordion-info>
|
||||
<swp-accordion-title>Titel</swp-accordion-title>
|
||||
<swp-accordion-meta>Subtitle</swp-accordion-meta>
|
||||
</swp-accordion-info>
|
||||
<swp-accordion-summary>
|
||||
<swp-summary-item>
|
||||
<swp-summary-value>1.234 kr</swp-summary-value>
|
||||
<swp-summary-label>Label</swp-summary-label>
|
||||
</swp-summary-item>
|
||||
<swp-accordion-toggle>
|
||||
<i class="ph ph-caret-down"></i>
|
||||
</swp-accordion-toggle>
|
||||
</swp-accordion-summary>
|
||||
</swp-accordion-header>
|
||||
<swp-accordion-content>
|
||||
<!-- Content shown when expanded -->
|
||||
</swp-accordion-content>
|
||||
</swp-accordion-item>
|
||||
</swp-accordion>
|
||||
```
|
||||
|
||||
**Features:**
|
||||
- Single-open behavior (kun en udvidet ad gangen)
|
||||
- Smooth expand/collapse animation (250ms/200ms)
|
||||
- Caret icon roterer 180 ved expand
|
||||
- Config row (`swp-config-row`) til key-value info
|
||||
|
||||
**TypeScript:**
|
||||
```typescript
|
||||
import { Accordion } from './modules/accordion';
|
||||
|
||||
const accordion = new Accordion('#my-accordion', { singleOpen: true });
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Fil Reference
|
||||
|
||||
| Fil | Indhold |
|
||||
|
|
@ -582,7 +626,8 @@ Dashed border knap til tilføjelse af elementer.
|
|||
| `components.css` | Buttons, badges, cards, section-label, add-button, avatars, icon-btn, **swp-data-table** |
|
||||
| `stats.css` | Stat cards, stat rows |
|
||||
| `tabs.css` | Tab bar, tab content |
|
||||
| `employees.css` | User info, edit forms, document lists, context styles (.employees-list, .salary-history, .stats-bookings) |
|
||||
| `accordion.css` | Accordion component (swp-accordion, swp-accordion-item, expand/collapse) |
|
||||
| `employees.css` | User info, edit forms, document lists, context styles (.employees-list, .salary-history, .salary-specifications, .stats-bookings) |
|
||||
| `account.css` | Account/billing styles, context styles (.invoice-history) |
|
||||
| `bookings.css` | Booking list items |
|
||||
| `notifications.css` | Notification items |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue