feat: Kh component library, record pages and profile security (M3, part 2)

Adds the building blocks every later screen uses, so modules are built from
one set of components instead of ad hoc markup:

- Form components (KhForm, KhTextBox, KhNumberBox, KhDateBox, KhSelect,
  KhCheck, KhSwitch, KhHotlink) with Italian number and date input, inline
  calculation (=10*3), field messages plus a summary that focuses the field,
  and service errors added by field name.
- Display and window components (panels, tiles, badges, chips, money, tabs
  with Alt+1..9, steps, dialog, side drawer and DrawerService).
- KhIconToolbar that keeps one line and moves less used commands into the
  "..." menu, KhDocHead, and the RecordPage/DocumentPage/MasterDataPage bases
  with standard commands, shortcuts and save/cancel/delete flow (#27, #29).
- Development-only component catalog and sample document page.
- Profile: personal data, password change that ends other sessions, TOTP
  enable/disable and recovery codes through ProfileService (#31).

Refs #27 #29 #31

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-11 18:11:16 +01:00
1 parent cf6f849cc1
commit d958e7372d
57 files changed
+5249 -12

No files matched your search

+6
View File
@@ -74,6 +74,12 @@ button.sw { text-align: left; color: var(--kh-text); }
padding: 0 8px; font: inherit; }
.kh-inset { margin: 0 14px 14px; }
.kh-h2 { font-size: var(--kh-fs-lg); font-weight: 600; margin: 6px 0 0; }
/* Profile forms (issue #31): actions at the end of a form, read-only facts. */
.form .kh-formactions, .kh-formactions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.kh-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; padding: 12px 14px; font-size: 12.5px; }
.kh-facts dt { color: var(--kh-text-2); }
.kh-facts dd { margin: 0; }
.fgroup .pb > p:first-child { margin-top: 0; }
.kh-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kh-table th { text-align: left; font-weight: 600; color: var(--kh-text-2); font-size: var(--kh-fs-sm); padding: 6px 10px; border-bottom: 1px solid var(--kh-border-strong); }
.kh-table td { padding: 7px 10px; border-bottom: 1px solid var(--kh-border); vertical-align: middle; }