# XWUISuperSales

Super-tier app shell for the Sales domain, composing a single `sales` accordion group whose eight leaves lock the canonical revenue page-set (Dashboard, Pipeline, Deals, Quotes, Forecasting, Activities, Leaderboard, Reports). `sales-dashboard` is the cold-start landing leaf and synthesises a four-KPI strip via `power/XWUIDashboard` (Closed Won MTD, Pipeline SAR, Win Rate %, Avg. Deal Size), while `sales-pipeline` wires the one concrete asset that ships today, `industry/sales/XWUIChartFunnel`, as a five-stage sales funnel; every remaining leaf mounts an `XWUIEmpty` "Coming soon" placeholder. The menu tree and page registry are static, so a host can deep-link by menu-key, set `title` / `sidebarWidth` / `sidebarCollapsed`, pass `activeKey`, `locale`, `user` and `notifications` as data, or merge with sibling Super apps via `extraTree` / `extraPages` or `XWUISuperApp.merge()`.

## Basic Usage

Mounts the Sales shell standalone with a Sales Director identity, landing on the synthesized KPI dashboard with the Pipeline funnel and every other leaf reachable from the sidebar.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Mounts XWUISuperSales on its own, opening on the default sales-dashboard KPI strip with the Pipeline leaf wiring a real XWUIChartFunnel.
```

## Merged With CRM

Merges Sales with the already-shipped `XWUISuperCRM` via `XWUISuperApp.merge()`, showing both accordion groups side by side for a revenue-team shell, with Sales first so `sales-dashboard` wins the cold-landing race.

```example
file: examples/MergedWithCRM.ts
html: examples/MergedWithCRM.html
title: Merged With CRM
description: Union-merges XWUISuperSales with XWUISuperCRM into one host XWUISuperApp, the disjoint key namespaces avoiding any collision-renaming.
```

## Leaderboard (Arabic)

A sales manager opens on the rep leaderboard with the shell flipped to Arabic / RTL.

```example
file: examples/LeaderboardArabic.ts
html: examples/LeaderboardArabic.html
title: Leaderboard (Arabic)
description: Deep-links XWUISuperSales onto sales-leaderboard with locale ar, landing a sales manager on the rep leaderboard under RTL.
```

## With Quote Builder

Extends Sales with a Tools > Quote Builder leaf via extraTree / extraPages, deep-linking onto a card summarising a discounted quote.

```example
file: examples/WithQuoteBuilder.ts
html: examples/WithQuoteBuilder.html
title: With Quote Builder
description: Adds a Tools > Quote Builder leaf through extraTree / extraPages and deep-links onto an XWUICard summarising a discounted Acme Corp quote.
```

```api
```
