@4sh/ui-kit 0.13.0 → 0.14.0
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/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +26 -2
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +6 -0
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +14 -0
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +7 -0
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +2 -0
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +6 -0
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +101 -10
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +3 -0
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/mcp/data/component-api.json +11710 -0
- package/mcp/data/text-search-docs.json +76 -66
- package/mcp/data/ui-config.json +6457 -5
- package/mcp/index.js +24 -2
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/component-vars.scss +6 -1
- package/types/4sh-ui-kit-actions-ui-button.d.ts +24 -0
- package/types/4sh-ui-kit-actions-ui-link.d.ts +6 -0
- package/types/4sh-ui-kit-base-ui-image.d.ts +14 -0
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +7 -0
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +2 -0
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +6 -0
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +42 -3
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -0
package/mcp/index.js
CHANGED
|
@@ -31299,6 +31299,13 @@ var uiConfigCache;
|
|
|
31299
31299
|
function loadSearchDocs() {
|
|
31300
31300
|
return searchDocsCache ??= readJson("text-search-docs.json");
|
|
31301
31301
|
}
|
|
31302
|
+
var componentApiCache;
|
|
31303
|
+
function loadComponentApi() {
|
|
31304
|
+
return componentApiCache ??= readJson("component-api.json");
|
|
31305
|
+
}
|
|
31306
|
+
function getEntryApi(docSource) {
|
|
31307
|
+
return loadComponentApi().entries[docSource.slice(0, docSource.lastIndexOf("/"))];
|
|
31308
|
+
}
|
|
31302
31309
|
function loadUiConfig() {
|
|
31303
31310
|
return uiConfigCache ??= readJson("ui-config.json");
|
|
31304
31311
|
}
|
|
@@ -31312,6 +31319,10 @@ function listComponentNames() {
|
|
|
31312
31319
|
}
|
|
31313
31320
|
return [...names].sort();
|
|
31314
31321
|
}
|
|
31322
|
+
function getComponentHooks(name) {
|
|
31323
|
+
const status = loadUiConfig().hookStatus ?? {};
|
|
31324
|
+
return Object.entries(status).filter(([, s]) => s.entryPoint.endsWith(`/${name}`)).map(([hook, { entryPoint: _entryPoint, ...rest }]) => ({ name: hook, ...rest }));
|
|
31325
|
+
}
|
|
31315
31326
|
function getComponentSections(name) {
|
|
31316
31327
|
const { docs } = loadSearchDocs();
|
|
31317
31328
|
return docs.filter((doc) => doc.source.startsWith("projects/ui-kit/") && doc.name === name);
|
|
@@ -31332,7 +31343,8 @@ function listComponents() {
|
|
|
31332
31343
|
}
|
|
31333
31344
|
|
|
31334
31345
|
// projects/ui-kit-mcp/src/tools/get-component-doc.ts
|
|
31335
|
-
var GET_COMPONENT_DOC_DESCRIPTION = "Retourne la doc compl\xE8te d'un composant `ui-*` :
|
|
31346
|
+
var GET_COMPONENT_DOC_DESCRIPTION = "Retourne la doc compl\xE8te d'un composant `ui-*` : `api`, lue dans ses sources (sous-chemin d'import, puis par classe export\xE9e son s\xE9lecteur et ses inputs et outputs : type, valeurs admises, requis, d\xE9faut, description), puis les sections de sa page Storybook (theming, tailles, \xE9tats, exemples). Le champ `theming.hooks` dit, pour chaque hook `--ui-*`, s\u2019il peut aller dans un th\xE8me global (`themable`) et sinon pourquoi. C'est la source de v\xE9rit\xE9 : pr\xE9f\xE9rer cet outil \xE0 la lecture des fichiers sources (`.ts`/`.html`/`.scss`) pour conna\xEEtre l'API d'un composant.";
|
|
31347
|
+
var THEMING_NOTE = "Un hook `themable` se pose o\xF9 l\u2019on veut, `:root` compris : il figure dans `component-vars.scss`, le th\xE8me global du kit. Les autres ne vont pas dans un th\xE8me global, `exclusion` et `reason` disent pourquoi. Un hook `perVariant` a un d\xE9faut par variante rendue (`defaults`) : pos\xE9 sur `:root`, il donnerait la m\xEAme valeur \xE0 toutes. Il se pose sur l\u2019\xE9l\xE9ment ou sur une zone.";
|
|
31336
31348
|
function getComponentDoc(name) {
|
|
31337
31349
|
const sections = getComponentSections(name);
|
|
31338
31350
|
if (sections.length === 0) {
|
|
@@ -31359,12 +31371,22 @@ function getComponentDoc(name) {
|
|
|
31359
31371
|
section: s.section ?? "Overview",
|
|
31360
31372
|
text: s.text
|
|
31361
31373
|
}));
|
|
31374
|
+
const hooks = getComponentHooks(name);
|
|
31375
|
+
const api = getEntryApi(sections[0].source);
|
|
31362
31376
|
return {
|
|
31363
31377
|
content: [
|
|
31364
31378
|
{
|
|
31365
31379
|
type: "text",
|
|
31366
31380
|
text: JSON.stringify(
|
|
31367
|
-
{
|
|
31381
|
+
{
|
|
31382
|
+
name,
|
|
31383
|
+
title: sections[0].title,
|
|
31384
|
+
source: sections[0].source,
|
|
31385
|
+
...api ? { api } : {},
|
|
31386
|
+
sections: bySection,
|
|
31387
|
+
// Absent d'un manifeste antérieur à `hookStatus` : rien à affirmer.
|
|
31388
|
+
...hooks.length ? { theming: { note: THEMING_NOTE, hooks } } : {}
|
|
31389
|
+
},
|
|
31368
31390
|
null,
|
|
31369
31391
|
2
|
|
31370
31392
|
)
|
package/mcp/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4sh/ui-kit-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "MCP server exposing the @4sh/ui-kit design system (components, props, tokens, doc) to AI coding agents. Not published on its own: bundled at build time into @4sh/ui-kit (library mode) and @4sh/ui-kit-schematics (starter mode) — see scripts/mcp-bundle.build.mjs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4sh/ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Headless Angular components from the 4SH Design System: signals + Angular CDK, styled exclusively through design tokens. Ships a companion MCP server exposing the kit catalog and doc to AI coding agents.",
|
|
5
5
|
"homepage": "https://4sh.github.io/starter-angular/?path=/docs/introduction--docs",
|
|
6
6
|
"repository": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// design token instead — it follows brand, light/dark and viewport.
|
|
12
12
|
//
|
|
13
13
|
// Generated by `pnpm docs:config`, values read from the compiled CSS — do not
|
|
14
|
-
// edit here.
|
|
14
|
+
// edit here. 1377 variables; 128 more exist whose value depends on the
|
|
15
15
|
// rendered variant, listed in each component’s “Theming” section in Storybook.
|
|
16
16
|
// =====================================================================
|
|
17
17
|
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--ui-button-padding-x-small: var(--units-md);
|
|
35
35
|
// Bordures & rayons
|
|
36
36
|
--ui-button-focus-ring-width: var(--ui-focus-ring-width, var(--units-2xs));
|
|
37
|
+
--ui-button-radius-default: var(--radius-sm);
|
|
37
38
|
--ui-button-radius-rounded: var(--radius-full);
|
|
38
39
|
--ui-button-stroke-width: var(--ui-control-stroke-width, var(--stroke-default));
|
|
39
40
|
// Typographie
|
|
@@ -1689,6 +1690,10 @@
|
|
|
1689
1690
|
--ui-stepper-rail-surface: var(--global-border-default);
|
|
1690
1691
|
--ui-stepper-rail-surface-completed: var(--navigation-high-stroke-default);
|
|
1691
1692
|
|
|
1693
|
+
// ── ui-step-list ──
|
|
1694
|
+
// Dimensions
|
|
1695
|
+
--ui-stepper-step-min-width: 7.5rem;
|
|
1696
|
+
|
|
1692
1697
|
// ── ui-step-panel ──
|
|
1693
1698
|
// Typographie
|
|
1694
1699
|
--ui-stepper-panel-font-family: var(--fontfamily-base);
|
|
@@ -10,10 +10,21 @@ type ButtonOnColor = 'dark' | 'light';
|
|
|
10
10
|
type ButtonIconPos = 'left' | 'right' | 'top' | 'bottom';
|
|
11
11
|
type ButtonNativeProps = Record<string, string | number | boolean | null | undefined>;
|
|
12
12
|
declare class UiButton {
|
|
13
|
+
/** Button text. Absent: icon-only button, or content projected through `<ng-content>`. */
|
|
13
14
|
label: _angular_core.InputSignal<string | undefined>;
|
|
15
|
+
/** Accessible name. Required in icon-only mode; falls back to `label` otherwise. */
|
|
14
16
|
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
17
|
+
/** Native `type` of the `<button>`. */
|
|
15
18
|
type: _angular_core.InputSignal<ButtonType>;
|
|
19
|
+
/**
|
|
20
|
+
* Semantic level: `high`/`low` for importance, `success`/`warning`/`error` for contextual
|
|
21
|
+
* feedback.
|
|
22
|
+
*/
|
|
16
23
|
level: _angular_core.InputSignal<UiLevel>;
|
|
24
|
+
/**
|
|
25
|
+
* Appearance: `filled` (solid), `outlined` (border) or `ghost` (text only). Composes with `level`
|
|
26
|
+
* and `onColor`.
|
|
27
|
+
*/
|
|
17
28
|
variant: _angular_core.InputSignal<ButtonVariant>;
|
|
18
29
|
/**
|
|
19
30
|
* À renseigner **uniquement** quand le bouton est posé sur un fond de couleur
|
|
@@ -23,20 +34,33 @@ declare class UiButton {
|
|
|
23
34
|
* thème** : un bandeau violet reste violet en clair comme en sombre.
|
|
24
35
|
*/
|
|
25
36
|
onColor: _angular_core.InputSignal<ButtonOnColor | null>;
|
|
37
|
+
/** Button size. */
|
|
26
38
|
size: _angular_core.InputSignal<ButtonSize>;
|
|
39
|
+
/** FontAwesome icon name (e.g. `check`, `arrow-right`). */
|
|
27
40
|
icon: _angular_core.InputSignal<string | undefined>;
|
|
41
|
+
/** Icon position relative to the content. */
|
|
28
42
|
iconPos: _angular_core.InputSignal<ButtonIconPos>;
|
|
43
|
+
/** Forces the square icon-only style even when there is content. */
|
|
29
44
|
iconOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
/** Loading state: shows a spinner and disables the button. */
|
|
30
46
|
loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
47
|
+
/** FontAwesome icon of the loading spinner (spun with `fa-spin`). */
|
|
31
48
|
loadingIcon: _angular_core.InputSignal<string>;
|
|
49
|
+
/** Full width (100%). */
|
|
32
50
|
expanded: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
/** Pill shape (fully rounded corners). */
|
|
33
52
|
rounded: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
53
|
+
/** Disables the button (native attribute). */
|
|
34
54
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
35
55
|
/** Ripple Effect */
|
|
36
56
|
ripple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
57
|
+
/** Native `tabindex` of the button. */
|
|
37
58
|
tabindex: _angular_core.InputSignal<number | undefined>;
|
|
59
|
+
/** Extra native attributes forwarded to the `<button>` (e.g. `{ form: 'login', value: '1' }`). */
|
|
38
60
|
buttonProps: _angular_core.InputSignal<ButtonNativeProps | undefined>;
|
|
61
|
+
/** Custom icon template (replaces `icon`). */
|
|
39
62
|
iconTemplate: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
63
|
+
/** Custom loading icon template (replaces `loadingIcon`). */
|
|
40
64
|
loadingIconTemplate: _angular_core.InputSignal<TemplateRef<unknown> | undefined>;
|
|
41
65
|
/** External / plain URL. Presence switches the host to an <a>. */
|
|
42
66
|
href: _angular_core.InputSignal<string | undefined>;
|
|
@@ -15,7 +15,9 @@ type LinkSize = 'default' | 'small';
|
|
|
15
15
|
declare class UiLink {
|
|
16
16
|
/** Visible link text (optional when using projected content or icon-only). */
|
|
17
17
|
label: _angular_core.InputSignal<string | undefined>;
|
|
18
|
+
/** Accessible name. Required in icon-only mode; falls back to the label otherwise. */
|
|
18
19
|
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
20
|
+
/** Link size. */
|
|
19
21
|
size: _angular_core.InputSignal<LinkSize>;
|
|
20
22
|
/** External / plain URL. */
|
|
21
23
|
href: _angular_core.InputSignal<string | undefined>;
|
|
@@ -31,7 +33,11 @@ declare class UiLink {
|
|
|
31
33
|
iconLeft: _angular_core.InputSignal<string | undefined>;
|
|
32
34
|
/** FontAwesome icon name shown after the text. */
|
|
33
35
|
iconRight: _angular_core.InputSignal<string | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Disables the link: drops `href`/`routerLink`, sets `aria-disabled` and leaves the tab order.
|
|
38
|
+
*/
|
|
34
39
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
/** Native `tabindex` of the link. */
|
|
35
41
|
tabindex: _angular_core.InputSignal<number | undefined>;
|
|
36
42
|
/** aria-current exposed on the anchor (e.g. "page" for the current breadcrumb item). */
|
|
37
43
|
ariaCurrent: _angular_core.InputSignal<string | undefined>;
|
|
@@ -36,12 +36,19 @@ declare class UiImagePreview {
|
|
|
36
36
|
downloadName: _angular_core.InputSignal<string | undefined>;
|
|
37
37
|
/** Close when the mask around the image is clicked. */
|
|
38
38
|
dismissableMask: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
/** Accessible name of the zoom-in button. */
|
|
39
40
|
zoomInAriaLabel: _angular_core.InputSignal<string>;
|
|
41
|
+
/** Accessible name of the zoom-out button. */
|
|
40
42
|
zoomOutAriaLabel: _angular_core.InputSignal<string>;
|
|
43
|
+
/** Accessible name of the rotate-left button. */
|
|
41
44
|
rotateLeftAriaLabel: _angular_core.InputSignal<string>;
|
|
45
|
+
/** Accessible name of the rotate-right button. */
|
|
42
46
|
rotateRightAriaLabel: _angular_core.InputSignal<string>;
|
|
47
|
+
/** Accessible name of the button that resets zoom and rotation. */
|
|
43
48
|
resetAriaLabel: _angular_core.InputSignal<string>;
|
|
49
|
+
/** Accessible name of the download button. */
|
|
44
50
|
downloadAriaLabel: _angular_core.InputSignal<string>;
|
|
51
|
+
/** Accessible name of the close button. */
|
|
45
52
|
closeAriaLabel: _angular_core.InputSignal<string>;
|
|
46
53
|
/** Emitted when the view asks to be dismissed (Escape, close button, mask click). */
|
|
47
54
|
closed: _angular_core.OutputEmitterRef<void>;
|
|
@@ -136,12 +143,19 @@ declare class UiImage {
|
|
|
136
143
|
src: _angular_core.InputSignal<string | undefined>;
|
|
137
144
|
/** Local asset name (`assets-map.json` key) displayed when the main image fails to load. */
|
|
138
145
|
fallback: _angular_core.InputSignal<string | undefined>;
|
|
146
|
+
/** Loads the image eagerly with a high fetch priority (above-the-fold images); lazy otherwise. */
|
|
139
147
|
priority: _angular_core.InputSignal<boolean>;
|
|
148
|
+
/** Fills the parent box instead of using `width`/`height` (the parent must be positioned). */
|
|
140
149
|
fill: _angular_core.InputSignal<boolean>;
|
|
150
|
+
/** Rendered width; a number is read in `widthUnit`. */
|
|
141
151
|
width: _angular_core.InputSignal<string | number | undefined>;
|
|
152
|
+
/** Unit of a numeric `width` (`px` when absent). */
|
|
142
153
|
widthUnit: _angular_core.InputSignal<string | undefined>;
|
|
154
|
+
/** Rendered height; a number is read in `heightUnit`. Absent: the image keeps its ratio. */
|
|
143
155
|
height: _angular_core.InputSignal<string | number | undefined>;
|
|
156
|
+
/** Unit of a numeric `height` (`px` when absent). */
|
|
144
157
|
heightUnit: _angular_core.InputSignal<string | undefined>;
|
|
158
|
+
/** Alternative text. Absent: the image is decorative (`aria-hidden`). */
|
|
145
159
|
alt: _angular_core.InputSignal<string | undefined>;
|
|
146
160
|
/**
|
|
147
161
|
* Fetch `src` through `HttpClient` instead of letting the browser load it.
|
|
@@ -72,6 +72,7 @@ type UiFileUploadListSize = 'default' | 'small';
|
|
|
72
72
|
declare class UiFileUploadList {
|
|
73
73
|
/** The file to display (name/size/status/progress/preview). */
|
|
74
74
|
file: _angular_core.InputSignal<UiUploadFile>;
|
|
75
|
+
/** Size of the file rows. */
|
|
75
76
|
size: _angular_core.InputSignal<UiFileUploadListSize>;
|
|
76
77
|
/** FontAwesome icon for non-image files. */
|
|
77
78
|
icon: _angular_core.InputSignal<string>;
|
|
@@ -129,6 +130,7 @@ type UiFileUploadSize = 'default' | 'small';
|
|
|
129
130
|
declare class UiFileUpload {
|
|
130
131
|
/** `field` = compact input + Browse button; `drag` = full drop zone. */
|
|
131
132
|
mode: _angular_core.InputSignal<UiFileUploadMode>;
|
|
133
|
+
/** Size of the control, its buttons and its file list. */
|
|
132
134
|
size: _angular_core.InputSignal<UiFileUploadSize>;
|
|
133
135
|
/** Native `name`: a surrounding `<form>` submits the current selection under it. */
|
|
134
136
|
name: _angular_core.InputSignal<string | undefined>;
|
|
@@ -142,6 +144,7 @@ declare class UiFileUpload {
|
|
|
142
144
|
maxFileSize: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
143
145
|
/** Max number of files kept at once. */
|
|
144
146
|
fileLimit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
147
|
+
/** Disables selection, drop and upload. */
|
|
145
148
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
146
149
|
/** Upload each file as soon as it is selected. */
|
|
147
150
|
auto: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -159,13 +162,17 @@ declare class UiFileUpload {
|
|
|
159
162
|
showFileList: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
160
163
|
/** Show the Upload/Cancel toolbar buttons (drag mode). */
|
|
161
164
|
showControls: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
165
|
+
/** Label of the Browse button. */
|
|
162
166
|
browseLabel: _angular_core.InputSignal<string>;
|
|
163
167
|
/** Placeholder shown in field mode before any selection. */
|
|
164
168
|
chooseLabel: _angular_core.InputSignal<string>;
|
|
169
|
+
/** Label of the Upload toolbar button (drag mode). */
|
|
165
170
|
uploadLabel: _angular_core.InputSignal<string>;
|
|
171
|
+
/** Label of the toolbar button that clears the selection (drag mode). */
|
|
166
172
|
cancelLabel: _angular_core.InputSignal<string>;
|
|
167
173
|
/** Drag-zone link + prompt. */
|
|
168
174
|
dragLinkLabel: _angular_core.InputSignal<string>;
|
|
175
|
+
/** Text after the drag-zone link (drag mode). */
|
|
169
176
|
dragPromptLabel: _angular_core.InputSignal<string>;
|
|
170
177
|
/** Small hint under the drag prompt (e.g. "JPG, PNG (max 5 MB)"). */
|
|
171
178
|
hint: _angular_core.InputSignal<string | undefined>;
|
|
@@ -56,7 +56,9 @@ declare class UiInputDate extends BaseFormField<InputDateValue> {
|
|
|
56
56
|
* an hour; the browser's own default is `60`, i.e. whole minutes).
|
|
57
57
|
*/
|
|
58
58
|
step: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
59
|
+
/** Icon of the button that opens the picker: `clock` by default in `mode="time"`. */
|
|
59
60
|
icon: _angular_core.InputSignal<string | undefined>;
|
|
61
|
+
/** Renders the button that opens the picker. */
|
|
60
62
|
showIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
61
63
|
/** Accessible name of the picker button. Defaults per {@link mode}. */
|
|
62
64
|
iconAriaLabel: _angular_core.InputSignal<string | undefined>;
|
|
@@ -7,11 +7,17 @@ type BadgeSize = 'default' | 'small' | 'large';
|
|
|
7
7
|
* ui-badge — small status / count indicator.
|
|
8
8
|
*/
|
|
9
9
|
declare class UiBadge {
|
|
10
|
+
/** Text content (counter or short label). Absent with no icon: the badge is a dot. */
|
|
10
11
|
value: _angular_core.InputSignal<string | number | undefined>;
|
|
12
|
+
/** Feedback level (colour family). */
|
|
11
13
|
level: _angular_core.InputSignal<UiFeedbackLevel>;
|
|
14
|
+
/** Intensity: `high` (strong) or `low` (subtle). */
|
|
12
15
|
subLevel: _angular_core.InputSignal<UiSubLevel>;
|
|
16
|
+
/** Badge size. */
|
|
13
17
|
size: _angular_core.InputSignal<BadgeSize>;
|
|
18
|
+
/** FontAwesome icon name, shown before the text. */
|
|
14
19
|
icon: _angular_core.InputSignal<string | undefined>;
|
|
20
|
+
/** Accessible name, recommended for an icon-only badge or an ambiguous counter. */
|
|
15
21
|
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
16
22
|
constructor();
|
|
17
23
|
/** @ignore There is text here */
|
|
@@ -39,6 +39,10 @@ declare class UiStep {
|
|
|
39
39
|
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
40
40
|
/** @ignore Parent container (owns the active state + progression). */
|
|
41
41
|
protected readonly stepper: UiStepper;
|
|
42
|
+
/** @ignore */
|
|
43
|
+
private readonly host;
|
|
44
|
+
/** @ignore Title text, measured by the scrollable strip (it overflows the marker). */
|
|
45
|
+
private readonly titleEl;
|
|
42
46
|
/** @ignore Progression state of this step. */
|
|
43
47
|
readonly state: _angular_core.Signal<UiStepState>;
|
|
44
48
|
/** @ignore 1-based position of this step (shown in the marker). */
|
|
@@ -58,6 +62,14 @@ declare class UiStep {
|
|
|
58
62
|
protected readonly markerIcon: _angular_core.Signal<string | null>;
|
|
59
63
|
/** @ignore */
|
|
60
64
|
protected onClick(event: MouseEvent): void;
|
|
65
|
+
/**
|
|
66
|
+
* @ignore Horizontal extent of the step, in viewport px: its own box (marker and
|
|
67
|
+
* trailing connector) united with its title, which overflows the marker on both sides.
|
|
68
|
+
*/
|
|
69
|
+
extent(): {
|
|
70
|
+
left: number;
|
|
71
|
+
right: number;
|
|
72
|
+
};
|
|
61
73
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStep, never>;
|
|
62
74
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStep, "ui-step", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
|
|
63
75
|
}
|
|
@@ -96,13 +108,33 @@ declare class UiStepPanel {
|
|
|
96
108
|
* Owns the WAI-ARIA `role="tablist"`. Focus moves through the headers with
|
|
97
109
|
* `Tab` (each enabled header is a native tab stop); activation is `Enter` /
|
|
98
110
|
* `Space` (native `<button>`). Use it on its own , without panels , for a plain
|
|
99
|
-
* progress indicator ("steps only").
|
|
111
|
+
* progress indicator ("steps only"). When the container is `scrollable`, the
|
|
112
|
+
* list itself is the scroll viewport and keeps the active step in view.
|
|
100
113
|
*/
|
|
101
114
|
declare class UiStepList {
|
|
102
115
|
/** Accessible name for the step list (recommended). */
|
|
103
116
|
ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
117
|
+
/** @ignore Parent container (active value + `scrollable` option). */
|
|
118
|
+
protected readonly stepper: UiStepper;
|
|
119
|
+
/** @ignore The scroll viewport, when `scrollable`. */
|
|
120
|
+
private readonly host;
|
|
121
|
+
/** @ignore Steps projected into this list, in DOM order. */
|
|
122
|
+
private readonly steps;
|
|
123
|
+
/** @ignore Bumped by the ResizeObserver: a new width may clip the active step. */
|
|
124
|
+
private readonly resizeTick;
|
|
125
|
+
/** @ignore Whether the strip has been measured once (the first reveal does not animate). */
|
|
126
|
+
private settled;
|
|
127
|
+
/** @ignore Value of the step the strip last brought into view. */
|
|
128
|
+
private shownValue;
|
|
129
|
+
constructor();
|
|
130
|
+
/**
|
|
131
|
+
* @ignore Scroll the strip by the minimum that brings the step fully into view, nothing
|
|
132
|
+
* when it already is. Measured against the strip itself: unlike `scrollIntoView()`, it
|
|
133
|
+
* never scrolls the page. Returns `false` while the strip is not laid out yet.
|
|
134
|
+
*/
|
|
135
|
+
private reveal;
|
|
104
136
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepList, never>;
|
|
105
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepList, "ui-step-list", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {},
|
|
137
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepList, "ui-step-list", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, ["steps"], ["*"], true, never>;
|
|
106
138
|
}
|
|
107
139
|
/**
|
|
108
140
|
* ui-step-panels , thin wrapper grouping the {@link UiStepPanel}s below the
|
|
@@ -173,6 +205,11 @@ declare class UiStepper {
|
|
|
173
205
|
linear: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
174
206
|
/** Group default: render an inactive panel's content only once it is first activated. */
|
|
175
207
|
lazy: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
208
|
+
/**
|
|
209
|
+
* Horizontal only: steps keep a minimum width and the step list scrolls instead of
|
|
210
|
+
* squeezing them, following the active step.
|
|
211
|
+
*/
|
|
212
|
+
scrollable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
176
213
|
/** Animate the active panel transition (reduced-motion always wins). */
|
|
177
214
|
motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
178
215
|
/** Icon shown in the marker of completed steps (falls back to the step number). */
|
|
@@ -191,6 +228,8 @@ declare class UiStepper {
|
|
|
191
228
|
* progress indicator (see `UiStepList` doc) has none at all: `aria-controls` must not point
|
|
192
229
|
* at an id that resolves to nothing. */
|
|
193
230
|
private readonly panels;
|
|
231
|
+
/** @ignore `scrollable` applies to the horizontal strip only. */
|
|
232
|
+
readonly isScrollable: _angular_core.Signal<boolean>;
|
|
194
233
|
/** @ignore Ordered step values (the progression sequence). */
|
|
195
234
|
private readonly orderedValues;
|
|
196
235
|
/** @ignore Index of the active step in the ordered sequence (-1 when none). */
|
|
@@ -218,7 +257,7 @@ declare class UiStepper {
|
|
|
218
257
|
/** Activate the previous step in the sequence. */
|
|
219
258
|
prev(): void;
|
|
220
259
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiStepper, never>;
|
|
221
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepper, "ui-stepper", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "completedIcon": { "alias": "completedIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "stepChange": "stepChange"; }, ["steps", "panels"], ["*"], true, never>;
|
|
260
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiStepper, "ui-stepper", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "linear": { "alias": "linear"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; "completedIcon": { "alias": "completedIcon"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "stepChange": "stepChange"; }, ["steps", "panels"], ["*"], true, never>;
|
|
222
261
|
}
|
|
223
262
|
|
|
224
263
|
export { UiStep, UiStepItem, UiStepList, UiStepPanel, UiStepPanels, UiStepper };
|
|
@@ -81,8 +81,11 @@ declare class UiPaginator {
|
|
|
81
81
|
pageAriaLabel: _angular_core.InputSignal<string>;
|
|
82
82
|
/** Accessible names of the edge / step controls. */
|
|
83
83
|
firstPageAriaLabel: _angular_core.InputSignal<string>;
|
|
84
|
+
/** Accessible name of the previous-page control. */
|
|
84
85
|
prevPageAriaLabel: _angular_core.InputSignal<string>;
|
|
86
|
+
/** Accessible name of the next-page control. */
|
|
85
87
|
nextPageAriaLabel: _angular_core.InputSignal<string>;
|
|
88
|
+
/** Accessible name of the last-page control. */
|
|
86
89
|
lastPageAriaLabel: _angular_core.InputSignal<string>;
|
|
87
90
|
/** Accessible name of the rows-per-page select. */
|
|
88
91
|
rowsPerPageAriaLabel: _angular_core.InputSignal<string>;
|