@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/generated/treeui.catalog.json
|
|
2
2
|
var treeui_catalog_default = {
|
|
3
|
-
generatedAt: "2026-07-
|
|
3
|
+
generatedAt: "2026-07-18T01:52:38.578Z",
|
|
4
4
|
packageName: "@treeui/vue",
|
|
5
|
-
packageVersion: "0.
|
|
5
|
+
packageVersion: "0.14.0",
|
|
6
6
|
decisionGuides: [
|
|
7
7
|
{
|
|
8
8
|
id: "single-choice",
|
|
@@ -1287,15 +1287,17 @@ var treeui_catalog_default = {
|
|
|
1287
1287
|
},
|
|
1288
1288
|
{
|
|
1289
1289
|
name: "variant",
|
|
1290
|
-
type: "TVariant",
|
|
1290
|
+
type: "TVariant | brand",
|
|
1291
1291
|
default: "solid",
|
|
1292
1292
|
values: [
|
|
1293
1293
|
"solid",
|
|
1294
1294
|
"outline",
|
|
1295
1295
|
"ghost",
|
|
1296
1296
|
"soft",
|
|
1297
|
-
"danger"
|
|
1298
|
-
|
|
1297
|
+
"danger",
|
|
1298
|
+
"brand"
|
|
1299
|
+
],
|
|
1300
|
+
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."
|
|
1299
1301
|
},
|
|
1300
1302
|
{
|
|
1301
1303
|
name: "size",
|
|
@@ -2140,9 +2142,14 @@ var treeui_catalog_default = {
|
|
|
2140
2142
|
"The page shell should stay full-width while content stays readable."
|
|
2141
2143
|
],
|
|
2142
2144
|
avoidWhen: [
|
|
2143
|
-
"You need internal spacing between children."
|
|
2145
|
+
"You need internal spacing between children.",
|
|
2146
|
+
"You are laying out a whole screen \u2014 reach for TPage, which adds page padding and vertical rhythm."
|
|
2144
2147
|
],
|
|
2145
2148
|
alternatives: [
|
|
2149
|
+
{
|
|
2150
|
+
component: "TPage",
|
|
2151
|
+
when: "You want a full page region with block padding and vertical spacing between sections, not just a width constraint."
|
|
2152
|
+
},
|
|
2146
2153
|
{
|
|
2147
2154
|
component: "TStack",
|
|
2148
2155
|
when: "The main need is vertical or horizontal spacing."
|
|
@@ -3141,7 +3148,7 @@ var treeui_catalog_default = {
|
|
|
3141
3148
|
kind: "form",
|
|
3142
3149
|
category: "Form",
|
|
3143
3150
|
status: "available",
|
|
3144
|
-
purpose: "Composable dropzone and file picker with browse, drag-and-drop, and Ctrl+V paste support.",
|
|
3151
|
+
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.",
|
|
3145
3152
|
sourceFile: "packages/vue/src/components/TFileUpload.vue",
|
|
3146
3153
|
storyFile: "apps/docs/src/stories/FileUpload.stories.ts",
|
|
3147
3154
|
storyTitle: "Components/Form/FileUpload",
|
|
@@ -3165,12 +3172,14 @@ var treeui_catalog_default = {
|
|
|
3165
3172
|
{
|
|
3166
3173
|
name: "disabled",
|
|
3167
3174
|
type: "boolean",
|
|
3168
|
-
default: "false"
|
|
3175
|
+
default: "false",
|
|
3176
|
+
description: "The ONLY prop that gates interaction. Disables the dropzone, the native input, Clear all, and every per-row Remove/Retry."
|
|
3169
3177
|
},
|
|
3170
3178
|
{
|
|
3171
3179
|
name: "loading",
|
|
3172
3180
|
type: "boolean",
|
|
3173
|
-
default: "false"
|
|
3181
|
+
default: "false",
|
|
3182
|
+
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."
|
|
3174
3183
|
},
|
|
3175
3184
|
{
|
|
3176
3185
|
name: "invalid",
|
|
@@ -3231,44 +3240,142 @@ var treeui_catalog_default = {
|
|
|
3231
3240
|
name: "showFileList",
|
|
3232
3241
|
type: "boolean",
|
|
3233
3242
|
default: "true"
|
|
3243
|
+
},
|
|
3244
|
+
{
|
|
3245
|
+
name: "uploadState",
|
|
3246
|
+
type: "TFileUploadStateSource",
|
|
3247
|
+
default: "none",
|
|
3248
|
+
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."
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
name: "dragLabel",
|
|
3252
|
+
type: "string",
|
|
3253
|
+
default: "Release to upload",
|
|
3254
|
+
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."
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
name: "dragRejectLabel",
|
|
3258
|
+
type: "string",
|
|
3259
|
+
default: "This file type is not accepted",
|
|
3260
|
+
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."
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
name: "thumbnails",
|
|
3264
|
+
type: "boolean",
|
|
3265
|
+
default: "true",
|
|
3266
|
+
description: "Mint object-URL previews and decode dimensions for image/* files. Set false when you always supply `state.thumbnailUrl` yourself."
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
name: "maxThumbnailSize",
|
|
3270
|
+
type: "number | null",
|
|
3271
|
+
default: "10 * 1024 * 1024",
|
|
3272
|
+
description: "Skip auto-thumbnailing above this byte size. null removes the cap."
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
name: "retryLabel",
|
|
3276
|
+
type: "string",
|
|
3277
|
+
default: "Retry"
|
|
3278
|
+
},
|
|
3279
|
+
{
|
|
3280
|
+
name: "resumeLabel",
|
|
3281
|
+
type: "(percent: number) => string",
|
|
3282
|
+
default: "(percent) => `Resume from ${percent}%`",
|
|
3283
|
+
description: "Receives Math.round(state.progress). Used only when state.resumable === true AND state.progress is a number."
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
name: "remainingTimeFormat",
|
|
3287
|
+
type: "(remainingMs: number) => string",
|
|
3288
|
+
default: "5s/60s/60min thresholds \u2014 see behavior.remaining_time_strings",
|
|
3289
|
+
description: "Formats state.remainingMs. Ignored for a row that supplies state.remainingLabel."
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
name: "statusLabels",
|
|
3293
|
+
type: "Partial<Record<TFileUploadStatus, string>>",
|
|
3294
|
+
default: "{}",
|
|
3295
|
+
description: "MERGED over the defaults { pending: Waiting, uploading: Uploading, paused: Paused, error: Upload failed, success: Uploaded } \u2014 pass only the keys you override."
|
|
3234
3296
|
}
|
|
3235
3297
|
],
|
|
3236
3298
|
events: [
|
|
3237
3299
|
{
|
|
3238
|
-
name: "update:modelValue"
|
|
3300
|
+
name: "update:modelValue",
|
|
3301
|
+
description: "Emitted with the next file list when files are added, removed, or cleared.",
|
|
3302
|
+
payload: "File[]"
|
|
3239
3303
|
},
|
|
3240
3304
|
{
|
|
3241
|
-
name: "files-accepted"
|
|
3305
|
+
name: "files-accepted",
|
|
3306
|
+
description: "Emitted with only the newly accepted files, after accept/maxFiles/maxFileSize validation.",
|
|
3307
|
+
payload: "File[]"
|
|
3242
3308
|
},
|
|
3243
3309
|
{
|
|
3244
|
-
name: "files-rejected"
|
|
3310
|
+
name: "files-rejected",
|
|
3311
|
+
description: "Pre-acceptance validation failures. Unrelated to transport errors, which you report through `uploadState`.",
|
|
3312
|
+
payload: "TFileUploadRejection[]"
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
name: "retry",
|
|
3316
|
+
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.",
|
|
3317
|
+
payload: "TFileUploadRetryPayload"
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
name: "cancel",
|
|
3321
|
+
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.",
|
|
3322
|
+
payload: "TFileUploadCancelPayload"
|
|
3245
3323
|
}
|
|
3246
3324
|
],
|
|
3247
3325
|
slots: [
|
|
3248
3326
|
{
|
|
3249
|
-
name: "icon"
|
|
3327
|
+
name: "icon",
|
|
3328
|
+
description: "Replaces the dropzone icon."
|
|
3250
3329
|
},
|
|
3251
3330
|
{
|
|
3252
|
-
name: "default"
|
|
3331
|
+
name: "default",
|
|
3332
|
+
description: "Replaces the dropzone body. Receives `{ files, isDragActive, isDragReject, openFileDialog, clearFiles }`."
|
|
3253
3333
|
},
|
|
3254
3334
|
{
|
|
3255
|
-
name: "file"
|
|
3335
|
+
name: "file",
|
|
3336
|
+
description: "Full row override. Receives all of TFileUploadFileSlotProps, including every derived label, so a custom row re-derives nothing."
|
|
3256
3337
|
},
|
|
3257
3338
|
{
|
|
3258
|
-
name: "
|
|
3339
|
+
name: "file-status",
|
|
3340
|
+
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."
|
|
3341
|
+
},
|
|
3342
|
+
{
|
|
3343
|
+
name: "actions",
|
|
3344
|
+
description: "Footer actions. Receives `{ files, openFileDialog, clearFiles }` \u2014 no upload state."
|
|
3259
3345
|
}
|
|
3260
3346
|
],
|
|
3261
3347
|
a11y: [
|
|
3262
3348
|
"dropzone_role: button",
|
|
3263
3349
|
"keyboard_activation: Enter_and_Space_open_the_file_picker",
|
|
3264
3350
|
"supports_paste_when_component_is_focused: true",
|
|
3265
|
-
"file_feedback_announced_via_live_region: true"
|
|
3351
|
+
"file_feedback_announced_via_live_region: true",
|
|
3352
|
+
"aria_busy_on_dropzone_tracks_loading_prop: true",
|
|
3353
|
+
"aria_busy_on_row_tracks_that_rows_uploading_status: true",
|
|
3354
|
+
"per_row_progressbar_is_labelled_with_status_and_filename: e.g. 'Uploading hero.png' \u2014 every row's bar has a distinct accessible name.",
|
|
3355
|
+
"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.'",
|
|
3356
|
+
"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.",
|
|
3357
|
+
"percentages_are_never_announced: Percent and ETA live in non-live text; the value reaches assistive tech through the progressbar's aria-valuenow.",
|
|
3358
|
+
"retry_button_is_described_by_its_row_error: Announces 'Resume from 90%, Connection lost at 90%'.",
|
|
3359
|
+
"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.",
|
|
3360
|
+
"remove_and_retry_meet_the_44px_target: true"
|
|
3266
3361
|
],
|
|
3267
3362
|
behavior: [
|
|
3268
3363
|
"accepts_files_from_input_drop_and_paste: true",
|
|
3269
3364
|
"multiple_false_replaces_existing_selection: true",
|
|
3270
3365
|
"accept_maxFiles_and_maxFileSize_apply_to_all_entry_points: true",
|
|
3271
|
-
"selected_files_can_be_removed_or_cleared: true"
|
|
3366
|
+
"selected_files_can_be_removed_or_cleared: true",
|
|
3367
|
+
"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`.",
|
|
3368
|
+
"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.",
|
|
3369
|
+
"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.",
|
|
3370
|
+
"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.",
|
|
3371
|
+
"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.",
|
|
3372
|
+
"drag_feedback_has_three_signals: Border, glow, and a text swap to `dragLabel` \u2014 all three fire together, including when files are already listed.",
|
|
3373
|
+
"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.",
|
|
3374
|
+
"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.",
|
|
3375
|
+
"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.",
|
|
3376
|
+
"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.",
|
|
3377
|
+
"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.",
|
|
3378
|
+
"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."
|
|
3272
3379
|
],
|
|
3273
3380
|
selection: {
|
|
3274
3381
|
keywords: [],
|
|
@@ -4323,7 +4430,7 @@ var treeui_catalog_default = {
|
|
|
4323
4430
|
name: "items",
|
|
4324
4431
|
type: "TNavMenuItem[]",
|
|
4325
4432
|
default: "[]",
|
|
4326
|
-
note: "Array of `{ label, value, shortLabel?, description?, icon?, to?, badge?, disabled? }`."
|
|
4433
|
+
note: "Array of `{ label, value, shortLabel?, description?, icon?, to?, badge?, disabled?, exact? }`."
|
|
4327
4434
|
},
|
|
4328
4435
|
{
|
|
4329
4436
|
name: "size",
|
|
@@ -4344,6 +4451,12 @@ var treeui_catalog_default = {
|
|
|
4344
4451
|
name: "disabled",
|
|
4345
4452
|
type: "boolean",
|
|
4346
4453
|
default: "false"
|
|
4454
|
+
},
|
|
4455
|
+
{
|
|
4456
|
+
name: "exact",
|
|
4457
|
+
type: "boolean",
|
|
4458
|
+
default: "true",
|
|
4459
|
+
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`."
|
|
4347
4460
|
}
|
|
4348
4461
|
],
|
|
4349
4462
|
events: [
|
|
@@ -4517,6 +4630,193 @@ var treeui_catalog_default = {
|
|
|
4517
4630
|
},
|
|
4518
4631
|
recipes: []
|
|
4519
4632
|
},
|
|
4633
|
+
{
|
|
4634
|
+
name: "TPage",
|
|
4635
|
+
aliases: [],
|
|
4636
|
+
package: "@treeui/vue",
|
|
4637
|
+
kind: "layout",
|
|
4638
|
+
category: "Layout",
|
|
4639
|
+
status: "available",
|
|
4640
|
+
purpose: "Semantic page region under the app shell: block padding, a centered max-width content column, and standardized vertical rhythm between sections.",
|
|
4641
|
+
sourceFile: "packages/vue/src/components/TPage.vue",
|
|
4642
|
+
storyFile: "apps/docs/src/stories/Page.stories.ts",
|
|
4643
|
+
storyTitle: "Components/Layout/Page",
|
|
4644
|
+
manifestFile: "docs/ai/COMPONENTS/page.yaml",
|
|
4645
|
+
props: [
|
|
4646
|
+
{
|
|
4647
|
+
name: "as",
|
|
4648
|
+
type: "string",
|
|
4649
|
+
default: "div"
|
|
4650
|
+
},
|
|
4651
|
+
{
|
|
4652
|
+
name: "width",
|
|
4653
|
+
type: "TContainerSize",
|
|
4654
|
+
default: "lg",
|
|
4655
|
+
values: [
|
|
4656
|
+
"sm",
|
|
4657
|
+
"md",
|
|
4658
|
+
"lg",
|
|
4659
|
+
"xl",
|
|
4660
|
+
"full"
|
|
4661
|
+
],
|
|
4662
|
+
note: "Max-width of the centered content column. Mirrors TContainer sizes."
|
|
4663
|
+
},
|
|
4664
|
+
{
|
|
4665
|
+
name: "padded",
|
|
4666
|
+
type: "boolean",
|
|
4667
|
+
default: "true",
|
|
4668
|
+
note: "Adds vertical (block) padding on the region and horizontal padding on the inner column."
|
|
4669
|
+
},
|
|
4670
|
+
{
|
|
4671
|
+
name: "gap",
|
|
4672
|
+
type: "TPageGap",
|
|
4673
|
+
default: "lg",
|
|
4674
|
+
values: [
|
|
4675
|
+
"sm",
|
|
4676
|
+
"md",
|
|
4677
|
+
"lg"
|
|
4678
|
+
],
|
|
4679
|
+
note: "Vertical spacing between direct children (e.g. a TPageHeader and content sections)."
|
|
4680
|
+
}
|
|
4681
|
+
],
|
|
4682
|
+
events: [],
|
|
4683
|
+
slots: [
|
|
4684
|
+
{
|
|
4685
|
+
name: "default"
|
|
4686
|
+
}
|
|
4687
|
+
],
|
|
4688
|
+
a11y: [
|
|
4689
|
+
"Structural wrapper only; landmark semantics come from `as` and the surrounding app shell (avoid nesting a second `main`)."
|
|
4690
|
+
],
|
|
4691
|
+
behavior: [
|
|
4692
|
+
"centers_content_column_by_width: true",
|
|
4693
|
+
"applies_block_padding_when_padded: true",
|
|
4694
|
+
"spaces_children_vertically_by_gap: true"
|
|
4695
|
+
],
|
|
4696
|
+
selection: {
|
|
4697
|
+
keywords: [
|
|
4698
|
+
"page",
|
|
4699
|
+
"page shell",
|
|
4700
|
+
"content column",
|
|
4701
|
+
"screen layout"
|
|
4702
|
+
],
|
|
4703
|
+
useWhen: [
|
|
4704
|
+
"You want a standard screen region under the app shell with consistent max width, page padding, and vertical rhythm between sections."
|
|
4705
|
+
],
|
|
4706
|
+
avoidWhen: [
|
|
4707
|
+
"You only need a bare width constraint with no page padding or child spacing."
|
|
4708
|
+
],
|
|
4709
|
+
alternatives: [
|
|
4710
|
+
{
|
|
4711
|
+
component: "TContainer",
|
|
4712
|
+
when: "You just need a centered max-width wrapper without page-level block padding or child spacing."
|
|
4713
|
+
},
|
|
4714
|
+
{
|
|
4715
|
+
component: "TStack",
|
|
4716
|
+
when: "You only need to space a group of children, not lay out a whole page."
|
|
4717
|
+
}
|
|
4718
|
+
]
|
|
4719
|
+
},
|
|
4720
|
+
setup: {
|
|
4721
|
+
required: [],
|
|
4722
|
+
notes: []
|
|
4723
|
+
},
|
|
4724
|
+
recipes: []
|
|
4725
|
+
},
|
|
4726
|
+
{
|
|
4727
|
+
name: "TPageHeader",
|
|
4728
|
+
aliases: [],
|
|
4729
|
+
package: "@treeui/vue",
|
|
4730
|
+
kind: "layout",
|
|
4731
|
+
category: "Layout",
|
|
4732
|
+
status: "available",
|
|
4733
|
+
purpose: "Canonical page title block: heading, optional subtitle, and a right-aligned actions area, so title hierarchy and alignment stay consistent across screens.",
|
|
4734
|
+
sourceFile: "packages/vue/src/components/TPageHeader.vue",
|
|
4735
|
+
storyFile: "apps/docs/src/stories/PageHeader.stories.ts",
|
|
4736
|
+
storyTitle: "Components/Layout/PageHeader",
|
|
4737
|
+
manifestFile: "docs/ai/COMPONENTS/page-header.yaml",
|
|
4738
|
+
props: [
|
|
4739
|
+
{
|
|
4740
|
+
name: "title",
|
|
4741
|
+
type: "string",
|
|
4742
|
+
default: "",
|
|
4743
|
+
note: "Rendered inside the heading element. Overridden by the `title` slot."
|
|
4744
|
+
},
|
|
4745
|
+
{
|
|
4746
|
+
name: "subtitle",
|
|
4747
|
+
type: "string",
|
|
4748
|
+
default: ""
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
name: "level",
|
|
4752
|
+
type: "1 | 2 | 3 | 4 | 5 | 6",
|
|
4753
|
+
default: "1",
|
|
4754
|
+
note: "Heading level for the title element. Default `1` treats it as the page title; lower it when the page already has an h1."
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
name: "as",
|
|
4758
|
+
type: "string",
|
|
4759
|
+
default: "header"
|
|
4760
|
+
}
|
|
4761
|
+
],
|
|
4762
|
+
events: [],
|
|
4763
|
+
slots: [
|
|
4764
|
+
{
|
|
4765
|
+
name: "breadcrumb"
|
|
4766
|
+
},
|
|
4767
|
+
{
|
|
4768
|
+
name: "title"
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
name: "subtitle"
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
name: "actions"
|
|
4775
|
+
},
|
|
4776
|
+
{
|
|
4777
|
+
name: "default"
|
|
4778
|
+
}
|
|
4779
|
+
],
|
|
4780
|
+
a11y: [
|
|
4781
|
+
"Title renders as a real heading element (`h1`\u2013`h6`) chosen by `level`; keep one h1 per page.",
|
|
4782
|
+
"Actions area holds standard focusable controls (e.g. TButton) \u2014 no custom roles added."
|
|
4783
|
+
],
|
|
4784
|
+
behavior: [
|
|
4785
|
+
"title_and_subtitle_optional: true",
|
|
4786
|
+
"heading_level_controlled_by_level: true",
|
|
4787
|
+
"actions_area_right_aligned_and_wraps: true",
|
|
4788
|
+
"default_slot_renders_below_heading: true"
|
|
4789
|
+
],
|
|
4790
|
+
selection: {
|
|
4791
|
+
keywords: [
|
|
4792
|
+
"page header",
|
|
4793
|
+
"title bar",
|
|
4794
|
+
"page title",
|
|
4795
|
+
"heading and actions"
|
|
4796
|
+
],
|
|
4797
|
+
useWhen: [
|
|
4798
|
+
"A screen needs a title (and optional subtitle) with a right-aligned actions area in a consistent hierarchy."
|
|
4799
|
+
],
|
|
4800
|
+
avoidWhen: [
|
|
4801
|
+
"You need cross-page hierarchy or navigation trails rather than a single page title."
|
|
4802
|
+
],
|
|
4803
|
+
alternatives: [
|
|
4804
|
+
{
|
|
4805
|
+
component: "TBreadcrumb",
|
|
4806
|
+
when: "You are showing where the page sits in a hierarchy, not its title."
|
|
4807
|
+
},
|
|
4808
|
+
{
|
|
4809
|
+
component: "TNavbar",
|
|
4810
|
+
when: "You need a top application bar, not a per-page title block."
|
|
4811
|
+
}
|
|
4812
|
+
]
|
|
4813
|
+
},
|
|
4814
|
+
setup: {
|
|
4815
|
+
required: [],
|
|
4816
|
+
notes: []
|
|
4817
|
+
},
|
|
4818
|
+
recipes: []
|
|
4819
|
+
},
|
|
4520
4820
|
{
|
|
4521
4821
|
name: "TPagination",
|
|
4522
4822
|
aliases: [],
|