@besaitech/ng-design-system 0.0.16 → 0.0.26
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/index.d.ts
CHANGED
|
@@ -10,6 +10,15 @@ import * as _besaitech_ng_design_system from '@besaitech/ng-design-system';
|
|
|
10
10
|
* Add new icons here and they become available everywhere via name="...".
|
|
11
11
|
*/
|
|
12
12
|
declare const SDS_ICONS: {
|
|
13
|
+
readonly 'chart-column': "<path d=\"M3 3v16a2 2 0 0 0 2 2h16\"/><path d=\"M18 17V9\"/><path d=\"M13 17V5\"/><path d=\"M8 17v-3\"/>";
|
|
14
|
+
readonly 'clipboard-list': "<rect width=\"8\" height=\"4\" x=\"8\" y=\"2\" rx=\"1\" ry=\"1\"/><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"/><path d=\"M12 11h4\"/><path d=\"M12 16h4\"/><path d=\"M8 11h.01\"/><path d=\"M8 16h.01\"/>";
|
|
15
|
+
readonly 'credit-card': "<rect width=\"20\" height=\"14\" x=\"2\" y=\"5\" rx=\"2\"/><line x1=\"2\" x2=\"22\" y1=\"10\" y2=\"10\"/>";
|
|
16
|
+
readonly 'external-link': "<path d=\"M15 3h6v6\"/><path d=\"M10 14 21 3\"/><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"/>";
|
|
17
|
+
readonly languages: "<path d=\"m5 8 6 6\"/><path d=\"m4 14 6-6 2-3\"/><path d=\"M2 5h12\"/><path d=\"M7 2h1\"/><path d=\"m22 22-5-10-5 10\"/><path d=\"M14 18h6\"/>";
|
|
18
|
+
readonly megaphone: "<path d=\"m3 11 18-5v12L3 14v-3z\"/><path d=\"M11.6 16.8a3 3 0 1 1-5.8-1.6\"/>";
|
|
19
|
+
readonly monitor: "<rect width=\"20\" height=\"14\" x=\"2\" y=\"3\" rx=\"2\"/><line x1=\"8\" x2=\"16\" y1=\"21\" y2=\"21\"/><line x1=\"12\" x2=\"12\" y1=\"17\" y2=\"21\"/>";
|
|
20
|
+
readonly store: "<path d=\"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7\"/><path d=\"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8\"/><path d=\"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4\"/><path d=\"M2 7h20\"/><path d=\"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7\"/>";
|
|
21
|
+
readonly 'user-round': "<circle cx=\"12\" cy=\"8\" r=\"5\"/><path d=\"M20 21a8 8 0 0 0-16 0\"/>";
|
|
13
22
|
readonly home: "<path d=\"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"/><polyline points=\"9 22 9 12 15 12 15 22\"/>";
|
|
14
23
|
readonly 'user-plus': "<path d=\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><line x1=\"19\" x2=\"19\" y1=\"8\" y2=\"14\"/><line x1=\"22\" x2=\"16\" y1=\"11\" y2=\"11\"/>";
|
|
15
24
|
readonly hand: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-hand-icon lucide-hand\"><path d=\"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2\"/><path d=\"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2\"/><path d=\"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8\"/><path d=\"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15\"/></svg>";
|
|
@@ -83,7 +92,7 @@ type SdsIconSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
83
92
|
declare class SdsIcon {
|
|
84
93
|
private readonly sanitizer;
|
|
85
94
|
/** Icon identifier from the registry. */
|
|
86
|
-
readonly name: _angular_core.InputSignal<"home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle">;
|
|
95
|
+
readonly name: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle">;
|
|
87
96
|
/** Square size: a pixel number, a numeric string, or a keyword (sm·md·lg·xl). */
|
|
88
97
|
readonly size: _angular_core.InputSignalWithTransform<number, string | number>;
|
|
89
98
|
/** Stroke width of the line icon. */
|
|
@@ -144,8 +153,8 @@ declare class SdsInput implements ControlValueAccessor {
|
|
|
144
153
|
readonly appearance: _angular_core.InputSignal<SdsInputAppearance>;
|
|
145
154
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
146
155
|
readonly clearable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
147
|
-
readonly leadingIcon: _angular_core.InputSignal<"home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
148
|
-
readonly trailingIcon: _angular_core.InputSignal<"home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
156
|
+
readonly leadingIcon: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
157
|
+
readonly trailingIcon: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
149
158
|
/**
|
|
150
159
|
* A CLICKABLE trailing icon, for the affordances that belong to the field itself — password reveal
|
|
151
160
|
* above all. Distinct from {@link trailingIcon}, which is decorative and explicitly
|
|
@@ -155,7 +164,7 @@ declare class SdsInput implements ControlValueAccessor {
|
|
|
155
164
|
* Always pair it with {@link trailingActionLabel} — an icon-only button with no accessible name is
|
|
156
165
|
* unusable by a screen reader. For a toggle, also bind {@link trailingActionPressed}.
|
|
157
166
|
*/
|
|
158
|
-
readonly trailingAction: _angular_core.InputSignal<"home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
167
|
+
readonly trailingAction: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
159
168
|
/** Accessible name for {@link trailingAction}. Translate it in the consuming app. */
|
|
160
169
|
readonly trailingActionLabel: _angular_core.InputSignal<string>;
|
|
161
170
|
/** `aria-pressed` for a toggling action (e.g. show/hide password). Null renders no attribute. */
|
|
@@ -263,9 +272,9 @@ declare class SdsToggleSwitch implements ControlValueAccessor {
|
|
|
263
272
|
/** Value emitted/stored when the switch is off. */
|
|
264
273
|
readonly falseValue: _angular_core.InputSignal<unknown>;
|
|
265
274
|
/** Icon shown on the knob when checked. */
|
|
266
|
-
readonly onIcon: _angular_core.InputSignal<"home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
275
|
+
readonly onIcon: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
267
276
|
/** Icon shown on the knob when unchecked. */
|
|
268
|
-
readonly offIcon: _angular_core.InputSignal<"home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
277
|
+
readonly offIcon: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
269
278
|
readonly hint: _angular_core.InputSignal<string>;
|
|
270
279
|
readonly error: _angular_core.InputSignal<string>;
|
|
271
280
|
/**
|
|
@@ -1457,30 +1466,61 @@ declare class SidebarStore {
|
|
|
1457
1466
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SidebarStore>;
|
|
1458
1467
|
}
|
|
1459
1468
|
|
|
1460
|
-
|
|
1461
|
-
name: string;
|
|
1462
|
-
initials?: string;
|
|
1463
|
-
status?: SdsAvatarStatus;
|
|
1464
|
-
}
|
|
1469
|
+
type SdsTopbarAppearance = 'brand' | 'surface';
|
|
1465
1470
|
/**
|
|
1466
|
-
* Application top bar:
|
|
1467
|
-
*
|
|
1471
|
+
* Application top bar: a logo slot, the app name, and three slots the app fills.
|
|
1472
|
+
*
|
|
1473
|
+
* Two appearances. `brand` is the gradient-and-wave bar an internal tool wants. `surface` is white on
|
|
1474
|
+
* a hairline border, for a bar that has to sit under a customer-facing page without dominating it —
|
|
1475
|
+
* a storefront header is a bar, but it is not a banner. The slots and the layout are identical in
|
|
1476
|
+
* both; only the paint differs, so a consumer app gets the same structure without the brand fill.
|
|
1477
|
+
*
|
|
1478
|
+
* It deliberately owns NO account UI. It used to render the signed-in user and a logout button, which
|
|
1479
|
+
* forced every consumer into one shape — no dropdown, no email, no menu, no busy state, and an
|
|
1480
|
+
* icon-only button whose accessible name the library had to guess a language for. What an app needs
|
|
1481
|
+
* beside its own brand bar differs per app, so the bar supplies the surface and the app supplies the
|
|
1482
|
+
* contents: project them into `[sdsActions]`.
|
|
1483
|
+
*
|
|
1484
|
+
* Slots, left to right: `[sdsLogo]`, `[sdsLead]` (beside the name — a location or workspace picker),
|
|
1485
|
+
* `[sdsCenter]` (the flexible middle — a search field), `[sdsActions]` (the right edge).
|
|
1468
1486
|
*
|
|
1469
1487
|
* @example
|
|
1470
|
-
* <sds-topbar appName="WebApp"
|
|
1488
|
+
* <sds-topbar appName="WebApp">
|
|
1471
1489
|
* <img sdsLogo src="logo.svg" alt="" />
|
|
1490
|
+
* <my-address-picker sdsLead />
|
|
1491
|
+
* <my-search sdsCenter />
|
|
1492
|
+
* <my-account-menu sdsActions />
|
|
1472
1493
|
* </sds-topbar>
|
|
1473
1494
|
*/
|
|
1474
1495
|
declare class SdsTopbar {
|
|
1475
1496
|
protected readonly store: SidebarStore;
|
|
1476
1497
|
readonly appName: _angular_core.InputSignal<string>;
|
|
1477
|
-
|
|
1478
|
-
|
|
1498
|
+
/**
|
|
1499
|
+
* Width of the bar's CONTENTS, as Tailwind width utilities — e.g. `"w-full max-w-7xl"`.
|
|
1500
|
+
*
|
|
1501
|
+
* The coloured band always spans the viewport; this constrains only what sits on it, so the logo and
|
|
1502
|
+
* the actions line up with a page whose own content is centred at the same width. Default is empty,
|
|
1503
|
+
* i.e. contents run edge to edge, which is right for a full-bleed dashboard shell.
|
|
1504
|
+
*
|
|
1505
|
+
* A class string rather than an enum on purpose: apps already state their content width as a Tailwind
|
|
1506
|
+
* utility, and this way the bar is given the SAME string rather than a name that has to be kept in
|
|
1507
|
+
* sync with it.
|
|
1508
|
+
*/
|
|
1509
|
+
readonly contentWidth: _angular_core.InputSignal<string>;
|
|
1479
1510
|
/** Show the mobile hamburger that toggles the sidebar drawer (< lg). */
|
|
1480
1511
|
readonly menuButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1481
|
-
|
|
1512
|
+
/**
|
|
1513
|
+
* Accessible name for the hamburger. Defaults to French so nothing changes for existing consumers,
|
|
1514
|
+
* but any app serving more than one language MUST pass a translated value — an icon-only control's
|
|
1515
|
+
* aria-label is its only name, and a hardcoded one is simply wrong in every other locale.
|
|
1516
|
+
*/
|
|
1517
|
+
readonly menuLabel: _angular_core.InputSignal<string>;
|
|
1518
|
+
/** `brand` (default) paints the gradient and the wave; `surface` is white on a hairline border. */
|
|
1519
|
+
readonly appearance: _angular_core.InputSignal<SdsTopbarAppearance>;
|
|
1520
|
+
protected readonly shellClasses: _angular_core.Signal<"bg-linear-to-r from-brand-800 via-brand-700 to-brand-600 text-white" | "border-b border-border bg-surface text-ink">;
|
|
1521
|
+
protected readonly menuButtonClasses: _angular_core.Signal<"text-white/85 hover:bg-white/10 hover:text-white focus-visible:ring-white/40" | "text-ink-soft hover:bg-muted hover:text-ink focus-visible:ring-brand-500/40">;
|
|
1482
1522
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdsTopbar, never>;
|
|
1483
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdsTopbar, "sds-topbar", never, { "appName": { "alias": "appName"; "required": false; "isSignal": true; }; "
|
|
1523
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdsTopbar, "sds-topbar", never, { "appName": { "alias": "appName"; "required": false; "isSignal": true; }; "contentWidth": { "alias": "contentWidth"; "required": false; "isSignal": true; }; "menuButton": { "alias": "menuButton"; "required": false; "isSignal": true; }; "menuLabel": { "alias": "menuLabel"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; }, {}, never, ["[sdsLogo]", "[sdsLead]", "[sdsCenter]", "[sdsActions]"], true, never>;
|
|
1484
1524
|
}
|
|
1485
1525
|
|
|
1486
1526
|
/**
|
|
@@ -1515,24 +1555,85 @@ declare class SdsShell {
|
|
|
1515
1555
|
*/
|
|
1516
1556
|
declare class SdsSidebar {
|
|
1517
1557
|
protected readonly store: SidebarStore;
|
|
1558
|
+
/**
|
|
1559
|
+
* Accessible names for the rail's three icon-only controls. French defaults keep existing consumers
|
|
1560
|
+
* unchanged; a multilingual app must pass translated values, since an icon-only button's aria-label
|
|
1561
|
+
* is its only name.
|
|
1562
|
+
*/
|
|
1563
|
+
readonly collapseLabel: _angular_core.InputSignal<string>;
|
|
1564
|
+
readonly expandLabel: _angular_core.InputSignal<string>;
|
|
1565
|
+
readonly closeLabel: _angular_core.InputSignal<string>;
|
|
1518
1566
|
protected readonly collapsed: _angular_core.WritableSignal<boolean>;
|
|
1519
1567
|
protected readonly mobileOpen: _angular_core.WritableSignal<boolean>;
|
|
1520
1568
|
/** Desktop rail width (full vs. collapsed); mobile always uses full width. */
|
|
1521
1569
|
protected readonly railWidth: _angular_core.Signal<"var(--sds-sidebar-w-collapsed)" | "var(--sds-sidebar-w)">;
|
|
1522
1570
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdsSidebar, never>;
|
|
1523
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdsSidebar, "sds-sidebar", never, {}, {}, never, ["*", "[sdsFooter]"], true, never>;
|
|
1571
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdsSidebar, "sds-sidebar", never, { "collapseLabel": { "alias": "collapseLabel"; "required": false; "isSignal": true; }; "expandLabel": { "alias": "expandLabel"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[sdsFooter]"], true, never>;
|
|
1524
1572
|
}
|
|
1525
1573
|
|
|
1526
1574
|
/**
|
|
1527
|
-
* Groups nav items under an optional uppercase section label.
|
|
1528
|
-
*
|
|
1575
|
+
* Groups nav items under an optional uppercase section label.
|
|
1576
|
+
*
|
|
1577
|
+
* Two modes:
|
|
1578
|
+
* - **Section** (default) — a static label over its items. The label is replaced by a divider when
|
|
1579
|
+
* the rail is collapsed.
|
|
1580
|
+
* - **Collapsible** (`[collapsible]`) — the label becomes a button that expands and collapses the
|
|
1581
|
+
* group. Set `[basePath]` and the group opens itself whenever the active route is inside it, so a
|
|
1582
|
+
* deep link or a browser Back lands with the right section already open instead of the person
|
|
1583
|
+
* having to find and re-open it.
|
|
1584
|
+
*
|
|
1585
|
+
* Collapsible mode exists because a flat rail stops scaling somewhere around a dozen destinations,
|
|
1586
|
+
* and the alternative — showing every child of every section at once — buries the ones in use.
|
|
1587
|
+
*
|
|
1588
|
+
* On the collapsed desktop rail there is nowhere to put a header, so a collapsible group renders
|
|
1589
|
+
* exactly like a section: divider, children visible. Hiding them there would leave the rail with
|
|
1590
|
+
* unreachable destinations and no affordance to reveal them.
|
|
1529
1591
|
*/
|
|
1530
1592
|
declare class SdsNavGroup {
|
|
1531
1593
|
private readonly store;
|
|
1594
|
+
private readonly router;
|
|
1532
1595
|
readonly label: _angular_core.InputSignal<string>;
|
|
1596
|
+
/** Turn the label into an expand/collapse control. */
|
|
1597
|
+
readonly collapsible: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1598
|
+
/** Icon for a collapsible header, so it reads at the same weight as the items it sits among. */
|
|
1599
|
+
readonly icon: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
1600
|
+
/**
|
|
1601
|
+
* URL prefix owned by this group, e.g. `/payments`. While the active route starts with it the
|
|
1602
|
+
* group counts as active and opens itself — unless the person has explicitly toggled it since.
|
|
1603
|
+
*/
|
|
1604
|
+
readonly basePath: _angular_core.InputSignal<string | null>;
|
|
1605
|
+
/** Emits the new state on every manual toggle. Not emitted for route-driven auto-expansion. */
|
|
1606
|
+
readonly expandedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
1607
|
+
/** Explicit user choice; null means "follow the route". */
|
|
1608
|
+
private readonly manual;
|
|
1609
|
+
private readonly url;
|
|
1610
|
+
/** True while the active route lives inside this group. */
|
|
1611
|
+
protected readonly routeActive: _angular_core.Signal<boolean>;
|
|
1612
|
+
protected readonly expanded: _angular_core.Signal<boolean>;
|
|
1533
1613
|
protected readonly collapsed: _angular_core.WritableSignal<boolean>;
|
|
1614
|
+
/**
|
|
1615
|
+
* A plain section always shows its items — they carry their own icons, so they survive the collapsed
|
|
1616
|
+
* rail. A collapsible group hides its children there instead: its children are sub-destinations and
|
|
1617
|
+
* typically have no icon, which on an icon-only rail is a row with nothing in it.
|
|
1618
|
+
*/
|
|
1619
|
+
protected readonly childrenVisible: _angular_core.Signal<boolean>;
|
|
1620
|
+
/**
|
|
1621
|
+
* One binding rather than `[class]` alongside `[class.hidden]` — mixing a whole-list binding with a
|
|
1622
|
+
* single-class toggle on the same element depends on Angular's styling precedence to resolve, which
|
|
1623
|
+
* is a subtlety no template should rest on.
|
|
1624
|
+
*
|
|
1625
|
+
* The indent rule appears only on an expanded collapsible group on the full-width rail: it is what
|
|
1626
|
+
* shows the children belong to the header above them.
|
|
1627
|
+
*/
|
|
1628
|
+
protected readonly childrenClass: _angular_core.Signal<string>;
|
|
1629
|
+
/**
|
|
1630
|
+
* On the collapsed rail there is nothing to expand into, so the toggle always reports "opening" —
|
|
1631
|
+
* the app's handler takes that as the cue to navigate into the section, which is the only useful
|
|
1632
|
+
* meaning the control can have there.
|
|
1633
|
+
*/
|
|
1634
|
+
protected toggle(): void;
|
|
1534
1635
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdsNavGroup, never>;
|
|
1535
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdsNavGroup, "sds-nav-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1636
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdsNavGroup, "sds-nav-group", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "basePath": { "alias": "basePath"; "required": false; "isSignal": true; }; }, { "expandedChange": "expandedChange"; }, never, ["*"], true, never>;
|
|
1536
1637
|
}
|
|
1537
1638
|
|
|
1538
1639
|
/**
|
|
@@ -1547,7 +1648,7 @@ declare class SdsNavGroup {
|
|
|
1547
1648
|
*/
|
|
1548
1649
|
declare class SdsNavItem {
|
|
1549
1650
|
protected readonly store: SidebarStore;
|
|
1550
|
-
readonly icon: _angular_core.InputSignal<"home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
1651
|
+
readonly icon: _angular_core.InputSignal<"chart-column" | "clipboard-list" | "credit-card" | "external-link" | "languages" | "megaphone" | "monitor" | "store" | "user-round" | "home" | "user-plus" | "hand" | "users" | "building-2" | "package" | "package-plus" | "package-open" | "rotate-ccw" | "bar-chart-3" | "search" | "log-out" | "panel-left-close" | "panel-left-open" | "panel-left" | "calendar" | "chevron-right" | "chevron-left" | "chevron-down" | "chevrons-left" | "chevrons-right" | "x" | "check" | "alert-circle" | "info" | "copy" | "type" | "tag" | "square" | "circle-user" | "layout-grid" | "panels-top-left" | "panel-top" | "rows-3" | "book-open" | "palette" | "bell" | "phone" | "settings" | "align-left" | "toggle-left" | "arrow-up" | "arrow-down" | "chevrons-up-down" | "filter" | "table" | "eye" | "eye-off" | "user" | "check-circle" | "arrows-clockwise" | "menu" | "file-text" | "hash" | "map-pin" | "inbox" | "arrow-right" | "refresh-cw" | "loader-circle" | null>;
|
|
1551
1652
|
readonly label: _angular_core.InputSignal<string>;
|
|
1552
1653
|
/** Router link target; when null, the item behaves as a button. */
|
|
1553
1654
|
readonly link: _angular_core.InputSignal<string | unknown[] | null>;
|
|
@@ -1562,4 +1663,4 @@ declare class SdsNavItem {
|
|
|
1562
1663
|
}
|
|
1563
1664
|
|
|
1564
1665
|
export { SDS_ICONS, SDS_PHONE_COUNTRIES, SdsAccordion, SdsAccordionContent, SdsAccordionHeader, SdsAccordionPanel, SdsAccordionStore, SdsAvatar, SdsBadge, SdsButton, SdsCalendar, SdsCard, SdsCheckbox, SdsDatePicker, SdsIcon, SdsInput, SdsMultiSelect, SdsNavGroup, SdsNavItem, SdsPaginator, SdsPhoneInput, SdsSelect, SdsShell, SdsSidebar, SdsTab, SdsTabList, SdsTabPanel, SdsTabPanels, SdsTable, SdsTableCell, SdsTableRowExpansion, SdsTabs, SdsTabsStore, SdsTextarea, SdsToggleSwitch, SdsTopbar, SidebarStore, addDays, addMonths, addMonthsKeepDay, formatDdMmYyyy, isOutOfRange, isSameDay, isoDay, sdsFormatNational, sdsMatchDialCode, sdsNormalizeSignificant, startOfDay, startOfMonth };
|
|
1565
|
-
export type { SdsAccordionActive, SdsAccordionValue, SdsAvatarStatus, SdsBadgeSize, SdsBadgeVariant, SdsButtonSize, SdsButtonVariant, SdsCardVariant, SdsCheckboxSize, SdsDatePickerSize, SdsIconName, SdsIconSize, SdsInputAppearance, SdsInputSize, SdsInputType, SdsMultiSelectDisplay, SdsMultiSelectSize, SdsPaginatorSize, SdsPaginatorState, SdsPhoneCountry, SdsPhoneInputSize, SdsPhoneValue, SdsSelectSize, SdsSortOrder, SdsTabValue, SdsTableCellContext, SdsTableColumn, SdsTableLazyEvent, SdsTableRowExpansionContext, SdsTableSize, SdsTableSortEvent, SdsTextareaResize, SdsTextareaSize, SdsToggleSwitchSize,
|
|
1666
|
+
export type { SdsAccordionActive, SdsAccordionValue, SdsAvatarStatus, SdsBadgeSize, SdsBadgeVariant, SdsButtonSize, SdsButtonVariant, SdsCardVariant, SdsCheckboxSize, SdsDatePickerSize, SdsIconName, SdsIconSize, SdsInputAppearance, SdsInputSize, SdsInputType, SdsMultiSelectDisplay, SdsMultiSelectSize, SdsPaginatorSize, SdsPaginatorState, SdsPhoneCountry, SdsPhoneInputSize, SdsPhoneValue, SdsSelectSize, SdsSortOrder, SdsTabValue, SdsTableCellContext, SdsTableColumn, SdsTableLazyEvent, SdsTableRowExpansionContext, SdsTableSize, SdsTableSortEvent, SdsTextareaResize, SdsTextareaSize, SdsToggleSwitchSize, SdsTopbarAppearance };
|