jett.admin.npmpackage 2.0.35 → 2.0.38

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
@@ -53,8 +53,29 @@ import { Button } from "JETT.Admin.NpmPackage";
53
53
  | `sideBarHeading` | string | Heading text for the sidebar. |
54
54
  | `navItems` | array | Navigation items with icon, label, click action, dropdown, and options. |
55
55
  | `additionalItems` | array | Extra items (e.g., support, settings). |
56
- | `username` | string | Displayed username. |
57
- | `role` | string | Displayed role. |
56
+ | `username` | string | Displayed username (falls back to the `jett-id` cookie). |
57
+ | `sideBarLogo` | string | Logo URL (falls back to the whitelabel logo in the `jett-id` cookie, then a "J" tile). |
58
+ | `onManageProfile`, `onProfileSwitch`, `onTmcSettings`, `onLogout` | function | Profile popover callbacks. |
59
+
60
+ ### Layout and shortcuts (2.0.36+, "App Sidebar" design)
61
+
62
+ - **≥768px:** in-flow sidebar, 256px expanded or 64px collapsed. Collapsed shows icon buttons with flyouts.
63
+ Toggle with the **Collapse** row or `[`. The choice is stored in `localStorage["jett.sidebar.collapsed"]`;
64
+ with no saved choice it starts collapsed below 1280px.
65
+ - **<768px:** fixed 56px top bar plus an off-canvas drawer. (The design switches at 1024px; the phone layout
66
+ keeps the old 768px breakpoint because consuming apps don't reserve space for a fixed top bar on tablets.)
67
+ - **Keyboard:** `⌘/Ctrl K` focuses the page search (again, or with no search, opens the palette), `⇧⌘K` opens
68
+ the "Jump to…" palette, `/` focuses search, `?` lists shortcuts, `[` toggles the sidebar, `G` then a letter
69
+ jumps to a screen (H Home, C Corporate, T Trips, R Special Request, B Booking & Invoices, E Pricing Engine,
70
+ L Credit Management, S Suppliers List, D Supplier Deals, W Whitelabel, M Markets, P Users, I AuthMesh, A Audit),
71
+ `Esc` closes the topmost sidebar overlay. Single keys are ignored while typing.
72
+ - Options with `isDisabled: true` (or a "(Coming Soon)" label) render greyed with a "Soon" tag.
73
+
74
+ ## Publishing
75
+
76
+ There is no CI publish: pushing to GitHub does not publish. A maintainer of `jett.admin.npmpackage` on npmjs.org
77
+ bumps `version`, runs `npm run build`, commits `dist/`, then runs `npm publish`.
78
+ `updatePackageVersion.ps1` then updates every `JETT.Admin.*.UI` repo to `@latest`.
58
79
 
59
80
  ---
60
81