@treeui/mcp 0.3.0 → 0.4.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/dist/{chunk-QO4S3UWW.js → chunk-K6NB25EB.js} +319 -19
- package/dist/cli.cjs +319 -19
- package/dist/cli.js +1 -1
- package/dist/index.cjs +319 -19
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -34,9 +34,9 @@ var import_server = require("@modelcontextprotocol/sdk/server/index.js");
|
|
|
34
34
|
|
|
35
35
|
// src/generated/treeui.catalog.json
|
|
36
36
|
var treeui_catalog_default = {
|
|
37
|
-
generatedAt: "2026-07-
|
|
37
|
+
generatedAt: "2026-07-18T01:52:38.578Z",
|
|
38
38
|
packageName: "@treeui/vue",
|
|
39
|
-
packageVersion: "0.
|
|
39
|
+
packageVersion: "0.14.0",
|
|
40
40
|
decisionGuides: [
|
|
41
41
|
{
|
|
42
42
|
id: "single-choice",
|
|
@@ -1321,15 +1321,17 @@ var treeui_catalog_default = {
|
|
|
1321
1321
|
},
|
|
1322
1322
|
{
|
|
1323
1323
|
name: "variant",
|
|
1324
|
-
type: "TVariant",
|
|
1324
|
+
type: "TVariant | brand",
|
|
1325
1325
|
default: "solid",
|
|
1326
1326
|
values: [
|
|
1327
1327
|
"solid",
|
|
1328
1328
|
"outline",
|
|
1329
1329
|
"ghost",
|
|
1330
1330
|
"soft",
|
|
1331
|
-
"danger"
|
|
1332
|
-
|
|
1331
|
+
"danger",
|
|
1332
|
+
"brand"
|
|
1333
|
+
],
|
|
1334
|
+
note: "`brand` is a button-only, high-emphasis gradient variant driven by the `--tree-gradient-brand` token. Use it for the single primary CTA of a screen."
|
|
1333
1335
|
},
|
|
1334
1336
|
{
|
|
1335
1337
|
name: "size",
|
|
@@ -2174,9 +2176,14 @@ var treeui_catalog_default = {
|
|
|
2174
2176
|
"The page shell should stay full-width while content stays readable."
|
|
2175
2177
|
],
|
|
2176
2178
|
avoidWhen: [
|
|
2177
|
-
"You need internal spacing between children."
|
|
2179
|
+
"You need internal spacing between children.",
|
|
2180
|
+
"You are laying out a whole screen \u2014 reach for TPage, which adds page padding and vertical rhythm."
|
|
2178
2181
|
],
|
|
2179
2182
|
alternatives: [
|
|
2183
|
+
{
|
|
2184
|
+
component: "TPage",
|
|
2185
|
+
when: "You want a full page region with block padding and vertical spacing between sections, not just a width constraint."
|
|
2186
|
+
},
|
|
2180
2187
|
{
|
|
2181
2188
|
component: "TStack",
|
|
2182
2189
|
when: "The main need is vertical or horizontal spacing."
|
|
@@ -3175,7 +3182,7 @@ var treeui_catalog_default = {
|
|
|
3175
3182
|
kind: "form",
|
|
3176
3183
|
category: "Form",
|
|
3177
3184
|
status: "available",
|
|
3178
|
-
purpose: "Composable dropzone and file picker with browse, drag-and-drop, and Ctrl+V paste support.",
|
|
3185
|
+
purpose: "Composable dropzone and file picker with browse, drag-and-drop, and Ctrl+V paste support, plus per-file upload state: progress, remaining time, thumbnails, and independent per-file retry/resume.",
|
|
3179
3186
|
sourceFile: "packages/vue/src/components/TFileUpload.vue",
|
|
3180
3187
|
storyFile: "apps/docs/src/stories/FileUpload.stories.ts",
|
|
3181
3188
|
storyTitle: "Components/Form/FileUpload",
|
|
@@ -3199,12 +3206,14 @@ var treeui_catalog_default = {
|
|
|
3199
3206
|
{
|
|
3200
3207
|
name: "disabled",
|
|
3201
3208
|
type: "boolean",
|
|
3202
|
-
default: "false"
|
|
3209
|
+
default: "false",
|
|
3210
|
+
description: "The ONLY prop that gates interaction. Disables the dropzone, the native input, Clear all, and every per-row Remove/Retry."
|
|
3203
3211
|
},
|
|
3204
3212
|
{
|
|
3205
3213
|
name: "loading",
|
|
3206
3214
|
type: "boolean",
|
|
3207
|
-
default: "false"
|
|
3215
|
+
default: "false",
|
|
3216
|
+
description: "Presentational only. Applies `is-loading`, `aria-busy` on the dropzone, and the corner spinner. It gates NO interaction \u2014 see behavior.loading_is_presentational."
|
|
3208
3217
|
},
|
|
3209
3218
|
{
|
|
3210
3219
|
name: "invalid",
|
|
@@ -3265,44 +3274,142 @@ var treeui_catalog_default = {
|
|
|
3265
3274
|
name: "showFileList",
|
|
3266
3275
|
type: "boolean",
|
|
3267
3276
|
default: "true"
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
name: "uploadState",
|
|
3280
|
+
type: "TFileUploadStateSource",
|
|
3281
|
+
default: "none",
|
|
3282
|
+
description: "Per-file transport state, keyed by File OBJECT IDENTITY. Accepts a ReadonlyMap<File, TFileUploadState> or a (file, index) => TFileUploadState | undefined resolver. Omit it and the component renders exactly as before: no bars, no status lines, no retry."
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
name: "dragLabel",
|
|
3286
|
+
type: "string",
|
|
3287
|
+
default: "Release to upload",
|
|
3288
|
+
description: "Replaces `label` in the dropzone while an acceptable drag is over it. Set it to the same value as `label` to opt out of the text swap."
|
|
3289
|
+
},
|
|
3290
|
+
{
|
|
3291
|
+
name: "dragRejectLabel",
|
|
3292
|
+
type: "string",
|
|
3293
|
+
default: "This file type is not accepted",
|
|
3294
|
+
description: "Replaces `label` while a drag that cannot work is over the dropzone. Only reachable when drag-reject detection is possible \u2014 see behavior.drag_reject_detection_is_mime_only."
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
name: "thumbnails",
|
|
3298
|
+
type: "boolean",
|
|
3299
|
+
default: "true",
|
|
3300
|
+
description: "Mint object-URL previews and decode dimensions for image/* files. Set false when you always supply `state.thumbnailUrl` yourself."
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
name: "maxThumbnailSize",
|
|
3304
|
+
type: "number | null",
|
|
3305
|
+
default: "10 * 1024 * 1024",
|
|
3306
|
+
description: "Skip auto-thumbnailing above this byte size. null removes the cap."
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
name: "retryLabel",
|
|
3310
|
+
type: "string",
|
|
3311
|
+
default: "Retry"
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
name: "resumeLabel",
|
|
3315
|
+
type: "(percent: number) => string",
|
|
3316
|
+
default: "(percent) => `Resume from ${percent}%`",
|
|
3317
|
+
description: "Receives Math.round(state.progress). Used only when state.resumable === true AND state.progress is a number."
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
name: "remainingTimeFormat",
|
|
3321
|
+
type: "(remainingMs: number) => string",
|
|
3322
|
+
default: "5s/60s/60min thresholds \u2014 see behavior.remaining_time_strings",
|
|
3323
|
+
description: "Formats state.remainingMs. Ignored for a row that supplies state.remainingLabel."
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
name: "statusLabels",
|
|
3327
|
+
type: "Partial<Record<TFileUploadStatus, string>>",
|
|
3328
|
+
default: "{}",
|
|
3329
|
+
description: "MERGED over the defaults { pending: Waiting, uploading: Uploading, paused: Paused, error: Upload failed, success: Uploaded } \u2014 pass only the keys you override."
|
|
3268
3330
|
}
|
|
3269
3331
|
],
|
|
3270
3332
|
events: [
|
|
3271
3333
|
{
|
|
3272
|
-
name: "update:modelValue"
|
|
3334
|
+
name: "update:modelValue",
|
|
3335
|
+
description: "Emitted with the next file list when files are added, removed, or cleared.",
|
|
3336
|
+
payload: "File[]"
|
|
3273
3337
|
},
|
|
3274
3338
|
{
|
|
3275
|
-
name: "files-accepted"
|
|
3339
|
+
name: "files-accepted",
|
|
3340
|
+
description: "Emitted with only the newly accepted files, after accept/maxFiles/maxFileSize validation.",
|
|
3341
|
+
payload: "File[]"
|
|
3276
3342
|
},
|
|
3277
3343
|
{
|
|
3278
|
-
name: "files-rejected"
|
|
3344
|
+
name: "files-rejected",
|
|
3345
|
+
description: "Pre-acceptance validation failures. Unrelated to transport errors, which you report through `uploadState`.",
|
|
3346
|
+
payload: "TFileUploadRejection[]"
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
name: "retry",
|
|
3350
|
+
description: "Emitted when a row's retry affordance is activated. Pure intent \u2014 the component performs no upload. Use `payload.mode` ('resume' | 'restart'); it reports the affordance the component ACTUALLY DREW, so never re-derive it from your own state.",
|
|
3351
|
+
payload: "TFileUploadRetryPayload"
|
|
3352
|
+
},
|
|
3353
|
+
{
|
|
3354
|
+
name: "cancel",
|
|
3355
|
+
description: "Emitted ONLY for rows whose status is 'uploading' or 'paused', immediately BEFORE the `update:modelValue` that drops them \u2014 so the file is still in the list when your handler runs and you can abort the request. `reason` is 'remove' for one row or 'clear' (one event per in-flight file) for Clear all.",
|
|
3356
|
+
payload: "TFileUploadCancelPayload"
|
|
3279
3357
|
}
|
|
3280
3358
|
],
|
|
3281
3359
|
slots: [
|
|
3282
3360
|
{
|
|
3283
|
-
name: "icon"
|
|
3361
|
+
name: "icon",
|
|
3362
|
+
description: "Replaces the dropzone icon."
|
|
3284
3363
|
},
|
|
3285
3364
|
{
|
|
3286
|
-
name: "default"
|
|
3365
|
+
name: "default",
|
|
3366
|
+
description: "Replaces the dropzone body. Receives `{ files, isDragActive, isDragReject, openFileDialog, clearFiles }`."
|
|
3287
3367
|
},
|
|
3288
3368
|
{
|
|
3289
|
-
name: "file"
|
|
3369
|
+
name: "file",
|
|
3370
|
+
description: "Full row override. Receives all of TFileUploadFileSlotProps, including every derived label, so a custom row re-derives nothing."
|
|
3290
3371
|
},
|
|
3291
3372
|
{
|
|
3292
|
-
name: "
|
|
3373
|
+
name: "file-status",
|
|
3374
|
+
description: "Replaces ONLY the progress bar + status line + error block inside the default row. Receives TFileUploadFileSlotProps. Name, meta, thumbnail, Retry, and Remove keep rendering. Ignored when the `file` slot is provided."
|
|
3375
|
+
},
|
|
3376
|
+
{
|
|
3377
|
+
name: "actions",
|
|
3378
|
+
description: "Footer actions. Receives `{ files, openFileDialog, clearFiles }` \u2014 no upload state."
|
|
3293
3379
|
}
|
|
3294
3380
|
],
|
|
3295
3381
|
a11y: [
|
|
3296
3382
|
"dropzone_role: button",
|
|
3297
3383
|
"keyboard_activation: Enter_and_Space_open_the_file_picker",
|
|
3298
3384
|
"supports_paste_when_component_is_focused: true",
|
|
3299
|
-
"file_feedback_announced_via_live_region: true"
|
|
3385
|
+
"file_feedback_announced_via_live_region: true",
|
|
3386
|
+
"aria_busy_on_dropzone_tracks_loading_prop: true",
|
|
3387
|
+
"aria_busy_on_row_tracks_that_rows_uploading_status: true",
|
|
3388
|
+
"per_row_progressbar_is_labelled_with_status_and_filename: e.g. 'Uploading hero.png' \u2014 every row's bar has a distinct accessible name.",
|
|
3389
|
+
"terminal_transitions_announced_with_filenames: One polite root live region (`role=log`) announces only success/error, e.g. 'alpha.txt uploaded.' / 'alpha.txt failed. Connection lost.'",
|
|
3390
|
+
"repeated_identical_messages_are_still_announced: The log appends each message as a new node rather than overwriting one string, so a retry that fails with the byte-identical error still mutates the region and is announced. It is not aria-atomic: only the appended message is read, and the trimmed history (5 most recent) is not.",
|
|
3391
|
+
"percentages_are_never_announced: Percent and ETA live in non-live text; the value reaches assistive tech through the progressbar's aria-valuenow.",
|
|
3392
|
+
"retry_button_is_described_by_its_row_error: Announces 'Resume from 90%, Connection lost at 90%'.",
|
|
3393
|
+
"focus_is_rescued_when_retry_unmounts: Flipping error -> uploading removes the focused Retry; focus moves to that row's Remove (or the dropzone), and only when it was genuinely lost.",
|
|
3394
|
+
"remove_and_retry_meet_the_44px_target: true"
|
|
3300
3395
|
],
|
|
3301
3396
|
behavior: [
|
|
3302
3397
|
"accepts_files_from_input_drop_and_paste: true",
|
|
3303
3398
|
"multiple_false_replaces_existing_selection: true",
|
|
3304
3399
|
"accept_maxFiles_and_maxFileSize_apply_to_all_entry_points: true",
|
|
3305
|
-
"selected_files_can_be_removed_or_cleared: true"
|
|
3400
|
+
"selected_files_can_be_removed_or_cleared: true",
|
|
3401
|
+
"upload_state_is_keyed_by_file_identity: Both source shapes key on the File object, never on index or name. Key your own store with the File objects you receive from `files-accepted`.",
|
|
3402
|
+
"a_lookup_miss_renders_nothing: An unknown File yields `undefined` and the row falls back to name + meta only \u2014 no bar, no status, no retry. This fail-blank is deliberate: it is the back-compat path and it fails loudly instead of showing another file's percentage.",
|
|
3403
|
+
"loading_is_presentational: BREAKING since 0.14.0 \u2014 `loading` no longer disables anything. It was freezing the dropzone, Clear all, and every Remove, which blocked removing file 1 while file 4 uploaded. Use `:disabled` to reproduce the old behavior; prefer `uploadState` and freeze nothing.",
|
|
3404
|
+
"each_file_has_an_independent_track: One row's error, progress, or retry never gates another's. Remove stays enabled for in-flight rows and emits `cancel` so you can abort.",
|
|
3405
|
+
"errors_are_per_row: Transport errors go in `state.error` and render under their own row. They never enter the dropzone feedback list, which Remove and Clear all wipe.",
|
|
3406
|
+
"drag_feedback_has_three_signals: Border, glow, and a text swap to `dragLabel` \u2014 all three fire together, including when files are already listed.",
|
|
3407
|
+
"drag_reject_detection_is_mime_only: `is-drag-reject` + `dragRejectLabel` require every `accept` token to be a MIME token; with any `.ext` token the dropzone stays neutral, because a drag exposes only `.type`. A mixed drag (one good file, one bad) is NOT rejected, and the drop is never blocked \u2014 rejected files always get the normal `files-rejected` explanation.",
|
|
3408
|
+
"progress_bar_visibility: Shown on uploading/paused/error, and on success only with numeric progress. 'uploading' without progress is indeterminate; paused/error without progress is a determinate 0 \u2014 an errored bar must never animate.",
|
|
3409
|
+
"the_bar_is_never_reset_on_error: It holds `state.progress` in the error tone. That retained 90% is what makes the resume promise legible.",
|
|
3410
|
+
"remaining_time_strings: < 5000ms -> 'Less than 5s left'; < 60s -> 'About 12s left'; < 60min -> 'About 2 min left'; else 'About 2h left'. Negative, NaN, and Infinity render nothing.",
|
|
3411
|
+
"status_line_composition: Joins the present parts with ' \xB7 ': 'Uploading \xB7 62% \xB7 About 12s left' while uploading, 'Upload failed \xB7 2.1 MB of 2.4 MB uploaded' on a resumable error.",
|
|
3412
|
+
"thumbnails_are_client_only: Object URLs are minted after mount and revoked on removal and unmount. SSR and the hydrating render both show the extension chip, so there is no mismatch."
|
|
3306
3413
|
],
|
|
3307
3414
|
selection: {
|
|
3308
3415
|
keywords: [],
|
|
@@ -4357,7 +4464,7 @@ var treeui_catalog_default = {
|
|
|
4357
4464
|
name: "items",
|
|
4358
4465
|
type: "TNavMenuItem[]",
|
|
4359
4466
|
default: "[]",
|
|
4360
|
-
note: "Array of `{ label, value, shortLabel?, description?, icon?, to?, badge?, disabled? }`."
|
|
4467
|
+
note: "Array of `{ label, value, shortLabel?, description?, icon?, to?, badge?, disabled?, exact? }`."
|
|
4361
4468
|
},
|
|
4362
4469
|
{
|
|
4363
4470
|
name: "size",
|
|
@@ -4378,6 +4485,12 @@ var treeui_catalog_default = {
|
|
|
4378
4485
|
name: "disabled",
|
|
4379
4486
|
type: "boolean",
|
|
4380
4487
|
default: "false"
|
|
4488
|
+
},
|
|
4489
|
+
{
|
|
4490
|
+
name: "exact",
|
|
4491
|
+
type: "boolean",
|
|
4492
|
+
default: "true",
|
|
4493
|
+
note: "Default active-match strategy for router-link items. `true` keeps only the exactly-active route highlighted (prevents prefix matches from lighting up several items at once). Override per item via `TNavMenuItem.exact`."
|
|
4381
4494
|
}
|
|
4382
4495
|
],
|
|
4383
4496
|
events: [
|
|
@@ -4551,6 +4664,193 @@ var treeui_catalog_default = {
|
|
|
4551
4664
|
},
|
|
4552
4665
|
recipes: []
|
|
4553
4666
|
},
|
|
4667
|
+
{
|
|
4668
|
+
name: "TPage",
|
|
4669
|
+
aliases: [],
|
|
4670
|
+
package: "@treeui/vue",
|
|
4671
|
+
kind: "layout",
|
|
4672
|
+
category: "Layout",
|
|
4673
|
+
status: "available",
|
|
4674
|
+
purpose: "Semantic page region under the app shell: block padding, a centered max-width content column, and standardized vertical rhythm between sections.",
|
|
4675
|
+
sourceFile: "packages/vue/src/components/TPage.vue",
|
|
4676
|
+
storyFile: "apps/docs/src/stories/Page.stories.ts",
|
|
4677
|
+
storyTitle: "Components/Layout/Page",
|
|
4678
|
+
manifestFile: "docs/ai/COMPONENTS/page.yaml",
|
|
4679
|
+
props: [
|
|
4680
|
+
{
|
|
4681
|
+
name: "as",
|
|
4682
|
+
type: "string",
|
|
4683
|
+
default: "div"
|
|
4684
|
+
},
|
|
4685
|
+
{
|
|
4686
|
+
name: "width",
|
|
4687
|
+
type: "TContainerSize",
|
|
4688
|
+
default: "lg",
|
|
4689
|
+
values: [
|
|
4690
|
+
"sm",
|
|
4691
|
+
"md",
|
|
4692
|
+
"lg",
|
|
4693
|
+
"xl",
|
|
4694
|
+
"full"
|
|
4695
|
+
],
|
|
4696
|
+
note: "Max-width of the centered content column. Mirrors TContainer sizes."
|
|
4697
|
+
},
|
|
4698
|
+
{
|
|
4699
|
+
name: "padded",
|
|
4700
|
+
type: "boolean",
|
|
4701
|
+
default: "true",
|
|
4702
|
+
note: "Adds vertical (block) padding on the region and horizontal padding on the inner column."
|
|
4703
|
+
},
|
|
4704
|
+
{
|
|
4705
|
+
name: "gap",
|
|
4706
|
+
type: "TPageGap",
|
|
4707
|
+
default: "lg",
|
|
4708
|
+
values: [
|
|
4709
|
+
"sm",
|
|
4710
|
+
"md",
|
|
4711
|
+
"lg"
|
|
4712
|
+
],
|
|
4713
|
+
note: "Vertical spacing between direct children (e.g. a TPageHeader and content sections)."
|
|
4714
|
+
}
|
|
4715
|
+
],
|
|
4716
|
+
events: [],
|
|
4717
|
+
slots: [
|
|
4718
|
+
{
|
|
4719
|
+
name: "default"
|
|
4720
|
+
}
|
|
4721
|
+
],
|
|
4722
|
+
a11y: [
|
|
4723
|
+
"Structural wrapper only; landmark semantics come from `as` and the surrounding app shell (avoid nesting a second `main`)."
|
|
4724
|
+
],
|
|
4725
|
+
behavior: [
|
|
4726
|
+
"centers_content_column_by_width: true",
|
|
4727
|
+
"applies_block_padding_when_padded: true",
|
|
4728
|
+
"spaces_children_vertically_by_gap: true"
|
|
4729
|
+
],
|
|
4730
|
+
selection: {
|
|
4731
|
+
keywords: [
|
|
4732
|
+
"page",
|
|
4733
|
+
"page shell",
|
|
4734
|
+
"content column",
|
|
4735
|
+
"screen layout"
|
|
4736
|
+
],
|
|
4737
|
+
useWhen: [
|
|
4738
|
+
"You want a standard screen region under the app shell with consistent max width, page padding, and vertical rhythm between sections."
|
|
4739
|
+
],
|
|
4740
|
+
avoidWhen: [
|
|
4741
|
+
"You only need a bare width constraint with no page padding or child spacing."
|
|
4742
|
+
],
|
|
4743
|
+
alternatives: [
|
|
4744
|
+
{
|
|
4745
|
+
component: "TContainer",
|
|
4746
|
+
when: "You just need a centered max-width wrapper without page-level block padding or child spacing."
|
|
4747
|
+
},
|
|
4748
|
+
{
|
|
4749
|
+
component: "TStack",
|
|
4750
|
+
when: "You only need to space a group of children, not lay out a whole page."
|
|
4751
|
+
}
|
|
4752
|
+
]
|
|
4753
|
+
},
|
|
4754
|
+
setup: {
|
|
4755
|
+
required: [],
|
|
4756
|
+
notes: []
|
|
4757
|
+
},
|
|
4758
|
+
recipes: []
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
name: "TPageHeader",
|
|
4762
|
+
aliases: [],
|
|
4763
|
+
package: "@treeui/vue",
|
|
4764
|
+
kind: "layout",
|
|
4765
|
+
category: "Layout",
|
|
4766
|
+
status: "available",
|
|
4767
|
+
purpose: "Canonical page title block: heading, optional subtitle, and a right-aligned actions area, so title hierarchy and alignment stay consistent across screens.",
|
|
4768
|
+
sourceFile: "packages/vue/src/components/TPageHeader.vue",
|
|
4769
|
+
storyFile: "apps/docs/src/stories/PageHeader.stories.ts",
|
|
4770
|
+
storyTitle: "Components/Layout/PageHeader",
|
|
4771
|
+
manifestFile: "docs/ai/COMPONENTS/page-header.yaml",
|
|
4772
|
+
props: [
|
|
4773
|
+
{
|
|
4774
|
+
name: "title",
|
|
4775
|
+
type: "string",
|
|
4776
|
+
default: "",
|
|
4777
|
+
note: "Rendered inside the heading element. Overridden by the `title` slot."
|
|
4778
|
+
},
|
|
4779
|
+
{
|
|
4780
|
+
name: "subtitle",
|
|
4781
|
+
type: "string",
|
|
4782
|
+
default: ""
|
|
4783
|
+
},
|
|
4784
|
+
{
|
|
4785
|
+
name: "level",
|
|
4786
|
+
type: "1 | 2 | 3 | 4 | 5 | 6",
|
|
4787
|
+
default: "1",
|
|
4788
|
+
note: "Heading level for the title element. Default `1` treats it as the page title; lower it when the page already has an h1."
|
|
4789
|
+
},
|
|
4790
|
+
{
|
|
4791
|
+
name: "as",
|
|
4792
|
+
type: "string",
|
|
4793
|
+
default: "header"
|
|
4794
|
+
}
|
|
4795
|
+
],
|
|
4796
|
+
events: [],
|
|
4797
|
+
slots: [
|
|
4798
|
+
{
|
|
4799
|
+
name: "breadcrumb"
|
|
4800
|
+
},
|
|
4801
|
+
{
|
|
4802
|
+
name: "title"
|
|
4803
|
+
},
|
|
4804
|
+
{
|
|
4805
|
+
name: "subtitle"
|
|
4806
|
+
},
|
|
4807
|
+
{
|
|
4808
|
+
name: "actions"
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
name: "default"
|
|
4812
|
+
}
|
|
4813
|
+
],
|
|
4814
|
+
a11y: [
|
|
4815
|
+
"Title renders as a real heading element (`h1`\u2013`h6`) chosen by `level`; keep one h1 per page.",
|
|
4816
|
+
"Actions area holds standard focusable controls (e.g. TButton) \u2014 no custom roles added."
|
|
4817
|
+
],
|
|
4818
|
+
behavior: [
|
|
4819
|
+
"title_and_subtitle_optional: true",
|
|
4820
|
+
"heading_level_controlled_by_level: true",
|
|
4821
|
+
"actions_area_right_aligned_and_wraps: true",
|
|
4822
|
+
"default_slot_renders_below_heading: true"
|
|
4823
|
+
],
|
|
4824
|
+
selection: {
|
|
4825
|
+
keywords: [
|
|
4826
|
+
"page header",
|
|
4827
|
+
"title bar",
|
|
4828
|
+
"page title",
|
|
4829
|
+
"heading and actions"
|
|
4830
|
+
],
|
|
4831
|
+
useWhen: [
|
|
4832
|
+
"A screen needs a title (and optional subtitle) with a right-aligned actions area in a consistent hierarchy."
|
|
4833
|
+
],
|
|
4834
|
+
avoidWhen: [
|
|
4835
|
+
"You need cross-page hierarchy or navigation trails rather than a single page title."
|
|
4836
|
+
],
|
|
4837
|
+
alternatives: [
|
|
4838
|
+
{
|
|
4839
|
+
component: "TBreadcrumb",
|
|
4840
|
+
when: "You are showing where the page sits in a hierarchy, not its title."
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
component: "TNavbar",
|
|
4844
|
+
when: "You need a top application bar, not a per-page title block."
|
|
4845
|
+
}
|
|
4846
|
+
]
|
|
4847
|
+
},
|
|
4848
|
+
setup: {
|
|
4849
|
+
required: [],
|
|
4850
|
+
notes: []
|
|
4851
|
+
},
|
|
4852
|
+
recipes: []
|
|
4853
|
+
},
|
|
4554
4854
|
{
|
|
4555
4855
|
name: "TPagination",
|
|
4556
4856
|
aliases: [],
|