@svgrid/enterprise 3.1.39 → 3.1.40
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/cdn/smart.export.entry-BvRk9kiK.js +0 -0
- package/dist/cdn/svgrid-enterprise.svelte-external.js +4 -4
- package/dist/designer/assets/GridMenus-CDtNPHWk.js +1 -0
- package/dist/designer/assets/{SvChartMenu-CdTEogez.js → SvChartMenu-C0vyEINZ.js} +1 -1
- package/dist/designer/assets/{SvDateTimePicker-Bzaaz3Kp.js → SvDateTimePicker-BnjsZQZx.js} +1 -1
- package/dist/designer/assets/{SvGridCellEditor-DkBK-Cs_.js → SvGridCellEditor-BIyRn_Yg.js} +2 -2
- package/dist/designer/assets/{SvGridChart-BqMTsa_R.js → SvGridChart-BGMfcq66.js} +2 -2
- package/dist/designer/assets/{SvGridChartBuilder-BNcFOTeW.js → SvGridChartBuilder-5ICrrwzC.js} +1 -1
- package/dist/designer/assets/{SvGridChartPanel-wUSKfW0h.js → SvGridChartPanel-Dcu3NUge.js} +2 -2
- package/dist/designer/assets/{SvGridChartView-D_815ueY.js → SvGridChartView-T5tSN_S5.js} +1 -1
- package/dist/designer/assets/{SvTabs-DkOt7l9F.js → SvTabs-CmusmxDR.js} +1 -1
- package/dist/designer/assets/chart-D0Hi9Ajj.js +1 -0
- package/dist/designer/assets/{chart-panel-messages-D2esv6rR.js → chart-panel-messages-BeJhiEym.js} +1 -1
- package/dist/designer/assets/dismissable-BA8Sdkgf.js +1 -0
- package/dist/designer/assets/index-Bmck0uP2.css +1 -0
- package/dist/designer/assets/{index-6iBLPJQo.js → index-HLPzqCOg.js} +462 -462
- package/dist/designer/assets/smart.export.entry-BvRk9kiK.js +0 -0
- package/dist/designer/assets/{src-DfTRqPD7.js → src-B7p4SvJd.js} +1 -1
- package/dist/designer/index.html +10 -10
- package/dist/export.js +1 -1
- package/dist/fields/BaseAutomations.svelte +8 -5
- package/dist/fields/BaseAutomations.svelte.d.ts +4 -0
- package/dist/fields/BaseDashboardView.svelte +58 -6
- package/dist/fields/BaseImport.svelte +2 -2
- package/dist/fields/BaseImport.svelte.d.ts +7 -0
- package/dist/fields/BaseTableView.svelte +5 -2
- package/dist/fields/BaseTableView.svelte.d.ts +6 -0
- package/dist/fields/BaseTabs.svelte +1 -1
- package/dist/fields/DashboardTileEditor.svelte +62 -5
- package/dist/fields/DashboardTileEditor.svelte.d.ts +2 -0
- package/dist/fields/RecordView.svelte +1 -1
- package/dist/fields/SvBase.svelte +10 -4
- package/dist/fields/SvBase.svelte.d.ts +52 -1
- package/dist/fields/SvBaseViewBar.svelte +6 -4
- package/dist/fields/SvBaseViewBar.svelte.d.ts +6 -0
- package/dist/fields/activity.svelte.d.ts +5 -0
- package/dist/fields/base-import.d.ts +6 -0
- package/dist/fields/base-permissions.d.ts +1 -1
- package/dist/fields/base-permissions.js +1 -1
- package/dist/fields/base-sync.d.ts +12 -2
- package/dist/fields/base-sync.js +1 -1
- package/dist/fields/dashboard.d.ts +84 -1
- package/dist/fields/dashboard.js +1 -1
- package/dist/fields/field-ops.js +1 -1
- package/dist/fields/filter-model.d.ts +1 -1
- package/dist/fields/filter-model.js +1 -1
- package/dist/fields/index.d.ts +1 -1
- package/dist/fields/messages/record.d.ts +1 -0
- package/dist/fields/messages/record.js +1 -1
- package/dist/fields/messages/viewbar.d.ts +33 -0
- package/dist/fields/messages/viewbar.js +1 -1
- package/dist/fields/messages.svelte.d.ts +34 -0
- package/dist/node/studio.js +2 -2
- package/dist/smart.export.entry.d.ts +3 -0
- package/dist/smart.export.entry.js +1 -0
- package/dist/smart.export.shim.d.ts +1 -0
- package/dist/smart.export.shim.js +1 -0
- package/dist/sources/rest.d.ts +5 -2
- package/dist/sources/rest.js +1 -1
- package/dist/studio/ui-components.generated.js +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/dist/wc/{CardMenu-Bufk2vwa.js → CardMenu-CvAlOSac.js} +1 -1
- package/dist/wc/{GridMenus-BV3fRFIY.js → GridMenus-B762nokq.js} +2 -2
- package/dist/wc/{GridMenus-VSOeAZFV.js → GridMenus-DuhBs36k.js} +2 -2
- package/dist/wc/{SvChartMenu-NRen7QjH.js → SvChartMenu-COh9NMzD.js} +1 -1
- package/dist/wc/{SvChartMenu-DJqv1cuY.js → SvChartMenu-DblAgoRA.js} +1 -1
- package/dist/wc/{SvDateTimePicker-DrUJNzaQ.js → SvDateTimePicker-ggMYm4Pp.js} +1 -1
- package/dist/wc/{SvDateTimePicker-B5kJLiH0.js → SvDateTimePicker-rbFCHbRQ.js} +1 -1
- package/dist/wc/{SvGridCellEditor-ChV2GkV8.js → SvGridCellEditor-CODvFtka.js} +1 -1
- package/dist/wc/{SvGridCellEditor-BNPMZZF7.js → SvGridCellEditor-N-j2l14U.js} +1 -1
- package/dist/wc/{SvGridChart-DKSo4yAM.js → SvGridChart-7UgF0l4W.js} +2 -2
- package/dist/wc/{SvGridChart-D_AKt54D.js → SvGridChart-Cly6j21z.js} +2 -2
- package/dist/wc/{SvGridChartBuilder-DE8Lua1j.js → SvGridChartBuilder-CyVZ-lZQ.js} +1 -1
- package/dist/wc/{SvGridChartBuilder-BOSvwoMN.js → SvGridChartBuilder-D4BAUF_O.js} +1 -1
- package/dist/wc/{SvGridChartPanel-CTW5z6Vb.js → SvGridChartPanel-BeRUjgjM.js} +2 -2
- package/dist/wc/{SvGridChartPanel-D1Dn-DNm.js → SvGridChartPanel-CeaYS-Vh.js} +2 -2
- package/dist/wc/{SvGridChartView-DOOboBce.js → SvGridChartView-BG-qLHK8.js} +1 -1
- package/dist/wc/{SvGridChartView-CcIMqWgn.js → SvGridChartView-s0BqDKZ9.js} +1 -1
- package/dist/wc/{SvModal-Cf-6zzOA.js → SvModal-CN10qQ5E.js} +1 -1
- package/dist/wc/{SvModal-CT6ZMBaI.js → SvModal-y_CF6yXp.js} +1 -1
- package/dist/wc/{SvTabs-pQfMJw-6.js → SvTabs-DhRSxzwH.js} +1 -1
- package/dist/wc/{board-D39-qF4t.js → board-wkFIFCpH.js} +1 -1
- package/dist/wc/chart-0z2N0RUb.js +1 -0
- package/dist/wc/chart-Cbakc50a.js +1 -0
- package/dist/wc/{chart-panel-messages-Ce4fBC6l.js → chart-panel-messages-CvyfXnB0.js} +1 -1
- package/dist/wc/dismissable-CuL0k6PX.js +1 -0
- package/dist/wc/{export-CduUYesa.js → export-CCM-mATF.js} +1 -1
- package/dist/wc/{gallery-v54gmeKF.js → gallery-vM0PqrWd.js} +1 -1
- package/dist/wc/{gantt-CQ4bjQWL.js → gantt-BlvgFAt_.js} +1 -1
- package/dist/wc/{palette-ChsQ7Bm9.js → palette-BPzVof_y.js} +1 -1
- package/dist/wc/{scheduler-GWTte7aX.js → scheduler-D2ksQuvM.js} +1 -1
- package/dist/wc/smart.export.entry-BvRk9kiK.js +0 -0
- package/dist/wc/sv-base-element.js +85 -81
- package/dist/wc/sv-sheet-element.js +2 -2
- package/package.json +3 -3
- package/dist/cdn/smart.export-0xDkly3x.js +0 -250
- package/dist/designer/assets/GridMenus-Cu5uIXlg.js +0 -1
- package/dist/designer/assets/chart-SJcjQYZM.js +0 -1
- package/dist/designer/assets/dismissable-ChWRPkoa.js +0 -1
- package/dist/designer/assets/index-nV1iesTT.css +0 -1
- package/dist/designer/assets/smart.export-AxSFVWeW.js +0 -250
- package/dist/wc/chart-QqgKrWNe.js +0 -1
- package/dist/wc/chart-j-Izih1o.js +0 -1
- package/dist/wc/dismissable-CQ6XFXsk.js +0 -1
- package/dist/wc/smart.export-0xDkly3x.js +0 -250
package/dist/node/studio.js
CHANGED
|
@@ -385,7 +385,7 @@ export const variables = defineEnvVars({
|
|
|
385
385
|
${e.map(([t,a])=>` ${t}: { ${a?"public: true, ":""}schema: (input) => input ?? '' },`).join(`
|
|
386
386
|
`)}
|
|
387
387
|
})
|
|
388
|
-
`}}var Wd=new Map;function Jd(e){return Wd.get(e)}Object.fromEntries(Object.entries({ISBLANK:"isBlank",ISNOTBLANK:"isNotBlank",ISTODAY:"today",BEFORETODAY:"beforeToday",AFTERTODAY:"afterToday",INNEXT7DAYS:"next7Days",INLAST7DAYS:"last7Days"}).map(([e,t])=>[t,e]));function Zd(e){const t=new Set;return jr(e,t),[...t]}function jr(e,t){switch(e.kind){case"and":case"or":e.parts.forEach(a=>jr(a,t));return;case"not":jr(e.expr,t);return;case"cmp":t.add(e.column);return;case"scalarCmp":vt(e.left,t),vt(e.right,t);return;case"ext":for(const a of Jd(e.type)?.columns?.(e.payload)??[])t.add(a);return;case"const":return}}function vt(e,t){switch(e.kind){case"col":t.add(e.id);return;case"agg":t.add(e.column);return;case"neg":vt(e.expr,t);return;case"bin":vt(e.left,t),vt(e.right,t);return;case"func":e.args.forEach(a=>vt(a,t));return;case"lit":return}}var qr={SvButton:{props:[{key:"variant",label:"Variant",type:"select",options:["primary","secondary","outline","ghost","danger"],default:"primary",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"type",label:"Type",type:"select",options:["button","submit","reset"],default:"button",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"loading",label:"Loading",type:"boolean",default:!1,group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"href",label:"Href",type:"string",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[{key:"click",label:"Click",prop:"onclick"}]},SvBadge:{props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md",group:"appearance"},{key:"pill",label:"Pill",type:"boolean",default:!0,description:"Rounded-pill shape (default) vs a softer rounded rect.",group:"appearance"},{key:"dot",label:"Dot",type:"boolean",default:!1,description:"Show a leading status dot instead of / before content.",group:"appearance"}],events:[]},SvAlert:{props:[{key:"variant",label:"Variant",type:"select",options:["info","success","warning","danger","neutral"],default:"info",group:"appearance"},{key:"title",label:"Title",type:"string",group:"common"},{key:"dismissible",label:"Dismissible",type:"boolean",default:!1,description:"Show a close (x) button.",group:"behavior"},{key:"hideIcon",label:"Hide Icon",type:"boolean",default:!1,description:"Hide the leading status icon.",group:"common"},{key:"soft",label:"Soft",type:"boolean",default:!1,description:"Softer, borderless tint vs the default bordered card.",group:"appearance"}],events:[{key:"dismiss",label:"Dismiss",prop:"onDismiss"}]},SvProgress:{props:[{key:"value",label:"Value",type:"number",default:0,description:"Current value (0..max). Ignored when `indeterminate`.",group:"common"},{key:"max",label:"Max",type:"number",default:100,group:"common"},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1,description:"Unknown-duration animated bar.",group:"common"},{key:"buffer",label:"Buffer",type:"number",description:"Buffered/secondary value (e.g. streamed-ahead), 0..max.",group:"common"},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"showLabel",label:"Show Label",type:"boolean",default:!1,description:"Show a percentage label at the end of the bar.",group:"common"},{key:"formatLabel",label:"Format Label",type:"json",description:"Format the label (default: rounded percent).",code:!0,group:"advanced"},{key:"striped",label:"Striped",type:"boolean",default:!1,description:"Diagonal candy-stripe overlay on the fill.",group:"appearance"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[]},SvCard:{props:[{key:"title",label:"Title",type:"string",group:"common"},{key:"subtitle",label:"Subtitle",type:"string",group:"common"},{key:"hoverable",label:"Hoverable",type:"boolean",default:!1,description:"Lift + accent border on hover (for clickable cards).",group:"common"},{key:"flush",label:"Flush",type:"boolean",default:!1,description:"Remove body padding (e.g. a card wrapping a full-bleed grid/table).",group:"common"}],events:[]},SvDivider:{props:[{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"},{key:"label",label:"Label",type:"string",group:"common"},{key:"align",label:"Align",type:"select",options:["start","center","end"],default:"center",description:"Label position along a horizontal divider.",group:"appearance"},{key:"dashed",label:"Dashed",type:"boolean",default:!1,group:"common"}],events:[]},SvAvatar:{props:[{key:"name",label:"Name",type:"string",default:"",group:"advanced"},{key:"src",label:"Src",type:"string",group:"common"},{key:"alt",label:"Alt",type:"string",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Preset (sm 28 / md 36 / lg 48) or an explicit pixel size.",group:"appearance"},{key:"shape",label:"Shape",type:"select",options:["circle","square"],default:"circle",group:"appearance"},{key:"status",label:"Status",type:"select",options:["online","offline","busy","away"],group:"common"},{key:"color",label:"Color",type:"string",description:"Override the hash-derived fallback colour (any CSS colour).",group:"appearance"}],events:[]},SvStat:{props:[{key:"label",label:"Label",type:"string",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"delta",label:"Delta",type:"string",description:"A number (auto-signs + infers trend) or a preformatted string.",group:"common"},{key:"trend",label:"Trend",type:"select",options:["up","down","flat"],description:"Override the inferred trend.",group:"common"},{key:"hint",label:"Hint",type:"string",description:'Text after the delta (e.g. "vs last month").',group:"common"},{key:"invert",label:"Invert",type:"boolean",default:!1,description:"Treat a downward delta as good (green) - e.g. error rate, latency.",group:"common"}],events:[]},SvToggleButton:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"pressed",label:"Pressed",type:"boolean",default:!1,group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvSwitchButton:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"checked",label:"Checked",type:"boolean",default:!1,group:"common"},{key:"onLabel",label:"On Label",type:"string",description:"Optional labels rendered inside the track.",group:"common"},{key:"offLabel",label:"Off Label",type:"string",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTextInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"type",label:"Type",type:"select",options:["text","email","url","tel","search"],default:"text",group:"common"},{key:"maxlength",label:"Maxlength",type:"number",group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show an inline clear (x) button when non-empty.",group:"behavior"},{key:"autocomplete",label:"Autocomplete",type:"json",group:"advanced"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,description:"Autofocus + select on mount (used when mounted as a cell editor).",group:"common"},{key:"selectOnFocus",label:"Select On Focus",type:"boolean",default:!1,description:"Select the whole value whenever the field is focused.",group:"common"},{key:"prefix",label:"Prefix",type:"string",description:"Plain-text affix at the start (e.g. a `$` or protocol).",group:"common"},{key:"suffix",label:"Suffix",type:"string",description:"Plain-text affix at the end (e.g. a unit).",group:"common"},{key:"labelMode",label:"Label Mode",type:"select",options:["static","floating"],default:"static",description:"`floating` animates the label up on focus/value. Default `static`.",group:"common"},{key:"actions",label:"Actions",type:"json",description:"Compact in-field action buttons (lookup/generate/copy...).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit",description:"Commit + stop editing (Enter, or supplied by the grid in a cell)."},{key:"cancel",label:"Cancel",prop:"onCancel",description:"Cancel editing (Escape)."}]},SvTextArea:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"rows",label:"Rows",type:"number",default:3,group:"common"},{key:"maxlength",label:"Maxlength",type:"number",group:"common"},{key:"autoGrow",label:"Auto Grow",type:"boolean",default:!1,description:"Grow the box to fit content instead of scrolling.",group:"common"},{key:"showCount",label:"Show Count",type:"boolean",default:!1,description:'Show a "n / max" character counter (needs `maxlength`).',group:"common"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvNumberInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",group:"common"},{key:"min",label:"Min",type:"number",group:"common"},{key:"max",label:"Max",type:"number",group:"common"},{key:"step",label:"Step",type:"number",default:1,group:"common"},{key:"precision",label:"Precision",type:"number",group:"common"},{key:"grouping",label:"Grouping",type:"boolean",default:!1,description:"Group thousands (1,234) on display.",group:"common"},{key:"prefix",label:"Prefix",type:"string",default:"",description:"Text formatted before the number (e.g. `$`); travels with the value.",group:"common"},{key:"suffix",label:"Suffix",type:"string",default:"",description:"Text formatted after the number (e.g. `%`); travels with the value.",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"spinButtons",label:"Spin Buttons",type:"boolean",default:!0,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when there is a value.",group:"behavior"},{key:"selectOnFocus",label:"Select On Focus",type:"boolean",default:!1,description:"Select the whole value when the field is focused.",group:"common"},{key:"wheelStep",label:"Wheel Step",type:"boolean",default:!1,description:"Step the value with the mouse wheel while the field is focused.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:150,description:"Control width in px (ignored when `block`). Default 150.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvPasswordInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"revealable",label:"Revealable",type:"boolean",default:!0,description:"Show the show/hide eye toggle.",group:"common"},{key:"showStrength",label:"Show Strength",type:"boolean",default:!1,description:"Show a 4-level strength meter.",group:"common"},{key:"autocomplete",label:"Autocomplete",type:"string",default:"current-password",group:"advanced"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (reveal toggle + strength labels).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:220,description:"Control width in px (ignored when `block`). Default 220.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvColorInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"palette",label:"Palette",type:"json",description:"Preset swatches.",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in popover strings.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width (otherwise hugs its content).",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvCheckBox:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"checked",label:"Checked",type:"boolean",default:!1,group:"common"},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1,group:"common"},{key:"value",label:"Value",type:"string",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvRating:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",default:0,group:"common"},{key:"max",label:"Max",type:"number",default:5,group:"common"},{key:"allowHalf",label:"Allow Half",type:"boolean",default:!1,description:"Allow half-star precision.",group:"common"},{key:"readOnly",label:"Read Only",type:"boolean",default:!1,group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (group + per-star aria-labels).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvSlider:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",default:0,group:"common"},{key:"min",label:"Min",type:"number",default:0,group:"common"},{key:"max",label:"Max",type:"number",default:100,group:"common"},{key:"step",label:"Step",type:"number",default:1,group:"common"},{key:"range",label:"Range",type:"boolean",default:!1,group:"common"},{key:"ticks",label:"Ticks",type:"number",description:"Show evenly spaced tick marks (count or explicit values).",group:"common"},{key:"labels",label:"Labels",type:"select",options:["none","endpoints","all"],default:"none",description:"Numeric scale labels under the track: 'endpoints' (min/max), 'all' (per tick), or 'none'.",group:"common"},{key:"showValue",label:"Show Value",type:"boolean",default:!1,description:"Show the value bubble above the thumb.",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"},{key:"formatValue",label:"Format Value",type:"json",code:!0,group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvOtpInput:{props:[{key:"value",label:"Value",type:"string",group:"common"},{key:"length",label:"Length",type:"number",default:6,group:"common"},{key:"numeric",label:"Numeric",type:"boolean",default:!0,description:"Digits only (default) vs any character.",group:"common"},{key:"mask",label:"Mask",type:"boolean",default:!1,description:"Mask the characters (password dots).",group:"common"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"complete",label:"Complete",prop:"onComplete",description:"Fired once every cell is filled."}]},SvCircularProgress:{props:[{key:"value",label:"Value",type:"number",default:0,group:"common"},{key:"max",label:"Max",type:"number",default:100,group:"common"},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1,group:"common"},{key:"size",label:"Size",type:"number",default:48,description:"Diameter in px.",group:"appearance"},{key:"thickness",label:"Thickness",type:"number",default:5,description:"Ring stroke width in px.",group:"common"},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent",group:"appearance"},{key:"showLabel",label:"Show Label",type:"boolean",default:!1,description:"Show a percentage label in the center.",group:"common"},{key:"formatLabel",label:"Format Label",type:"json",code:!0,group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[]},SvSkeleton:{props:[{key:"variant",label:"Variant",type:"select",options:["text","rect","circle"],default:"text",group:"appearance"},{key:"width",label:"Width",type:"string",description:"Any CSS length. Defaults suit the variant.",group:"common"},{key:"height",label:"Height",type:"string",group:"common"},{key:"radius",label:"Radius",type:"string",description:"Corner radius (rect/text).",group:"common"},{key:"lines",label:"Lines",type:"number",default:1,description:'Number of text lines (variant="text" only). The last line is shorter.',group:"common"},{key:"animated",label:"Animated",type:"boolean",default:!0,description:"Turn the shimmer off (static tint only).",group:"common"}],events:[]},SvChip:{props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md",group:"appearance"},{key:"removable",label:"Removable",type:"boolean",default:!1,description:"Show a remove (x) button.",group:"common"},{key:"solid",label:"Solid",type:"boolean",default:!1,description:"Filled solid vs soft tint (default soft).",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"}],events:[{key:"remove",label:"Remove",prop:"onRemove"},{key:"click",label:"Click",prop:"onClick",description:"Make the chip's label a button."}]},SvEmptyState:{props:[{key:"title",label:"Title",type:"string",group:"common"},{key:"description",label:"Description",type:"string",group:"common"},{key:"compact",label:"Compact",type:"boolean",default:!1,description:"Tighter padding (for empty dropdowns / small panels).",group:"common"}],events:[]},SvTimeline:{props:[{key:"items",label:"Items",type:"json",group:"common"}],events:[]},SvSparkline:{props:[{key:"data",label:"Data",type:"json",group:"common"},{key:"type",label:"Type",type:"json",default:"line",group:"common"},{key:"width",label:"Width",type:"number",default:88,group:"common"},{key:"height",label:"Height",type:"number",default:22,group:"common"},{key:"color",label:"Color",type:"string",group:"appearance"},{key:"negativeColor",label:"Negative Color",type:"string",group:"common"},{key:"lineWidth",label:"Line Width",type:"number",group:"common"},{key:"min",label:"Min",type:"number",description:"Fix the value scale instead of deriving it from the data.",group:"common"},{key:"max",label:"Max",type:"number",group:"common"},{key:"lastPoint",label:"Last Point",type:"boolean",default:!0,description:"End-cap dot on the last point (line / area). Default true.",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[]},SvAvatarGroup:{props:[{key:"avatars",label:"Avatars",type:"json",group:"common"},{key:"max",label:"Max",type:"number",default:4,description:'Max avatars shown before collapsing to "+N".',group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"}],events:[]},SvPagination:{props:[{key:"page",label:"Page",type:"number",description:"1-based current page.",group:"common"},{key:"pageCount",label:"Page Count",type:"number",group:"common"},{key:"siblingCount",label:"Sibling Count",type:"number",default:1,group:"common"},{key:"boundaryCount",label:"Boundary Count",type:"number",default:1,group:"common"},{key:"showFirstLast",label:"Show First Last",type:"boolean",default:!1,group:"common"},{key:"showPrevNext",label:"Show Prev Next",type:"boolean",default:!0,group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Pagination",group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvBreadcrumb:{props:[{key:"items",label:"Items",type:"json",group:"common"},{key:"separator",label:"Separator",type:"string",default:"/",description:"Separator between crumbs. Default a chevron.",group:"common"},{key:"maxItems",label:"Max Items",type:"number",description:"Collapse the middle when there are more than this many crumbs.",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Breadcrumb",group:"advanced"}],events:[]},SvStepper:{props:[{key:"steps",label:"Steps",type:"json",group:"common"},{key:"current",label:"Current",type:"number",description:"0-based index of the active step.",group:"common"},{key:"linear",label:"Linear",type:"boolean",default:!0,description:"Only allow navigating to already-reached steps. Default true.",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvMaskedInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"mask",label:"Mask",type:"string",default:"",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when there is a value.",group:"behavior"},{key:"prefix",label:"Prefix",type:"string",description:"Plain-text affix at the start.",group:"common"},{key:"suffix",label:"Suffix",type:"string",description:"Plain-text affix at the end.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:200,description:"Control width in px (ignored when `block`). Default 200.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange",description:"Called with (masked, raw, complete)."}]},SvPhoneInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"country",label:"Country",type:"string",default:"US",description:"Default country ISO code.",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Phone number",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (e.g. the country selector aria-label).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:250,description:"Control width in px (ignored when `block`). Default 250.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTagsInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"json",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Add tag…",group:"common"},{key:"unique",label:"Unique",type:"boolean",default:!0,description:"Reject duplicate tags. Default true.",group:"behavior"},{key:"max",label:"Max",type:"number",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (draft + remove aria-labels).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvDurationInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",description:"Value in minutes (or null when empty).",group:"common"},{key:"style",label:"Style",type:"select",options:["colon","units"],default:"colon",description:"Display style when unfocused: `1:30` (colon) or `1h 30m` (units).",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"e.g. 1h 30m",group:"common"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when there is a value.",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:160,description:"Control width in px (ignored when `block`). Default 160.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvRadioGroup:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["vertical","horizontal"],default:"vertical",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvButtonGroup:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"items",label:"Items",type:"json",group:"common"},{key:"value",label:"Value",type:"json",group:"common"},{key:"mode",label:"Mode",type:"json",default:"single",description:"'single' (radio), 'multiple' (toggle set), or 'none' (action buttons).",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"},{key:"variant",label:"Variant",type:"select",options:["solid","outline"],default:"solid",description:"'solid' segmented fill (default) or 'outline' pills.",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvListBox:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"multiple",label:"Multiple",type:"boolean",default:!1,group:"behavior"},{key:"checkbox",label:"Checkbox",type:"boolean",default:!1,description:"Checklist styling: each row draws a checkbox and the selected-row accent highlight is suppressed, because a list that starts fully selected (a filter checklist) would otherwise paint every row. State reads off the box; `aria-selected` still carries it for assistive tech.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width instead of the default 220px.",group:"appearance"},{key:"rows",label:"Rows",type:"number",default:7,description:"Visible height in rows before scrolling.",group:"common"},{key:"virtual",label:"Virtual",type:"boolean",default:!1,description:"Window the list (render only visible rows) for large option sets.",group:"common"},{key:"rowHeight",label:"Row Height",type:"json",default:32,description:"Row height in px - a number, or a per-option function for variable heights. Must match the rendered row height. Default 32.",group:"common"},{key:"groupHeaderHeight",label:"Group Header Height",type:"number",default:28,description:"Height (px) of a group heading row when virtualized + grouped. Default 28.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvDropDownList:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,group:"common"},{key:"virtual",label:"Virtual",type:"boolean",default:!1,description:"Window the option list (render only visible) for large sets.",group:"common"},{key:"rowHeight",label:"Row Height",type:"json",default:34,description:"Option height in px - a number, or a per-option function for variable heights. Must match the rendered row height. Default 34.",group:"common"},{key:"groupHeaderHeight",label:"Group Header Height",type:"number",default:28,description:"Height (px) of a group heading row when virtualized + grouped. Default 28.",group:"common"},{key:"maxRows",label:"Max Rows",type:"number",default:8,description:"Max options shown before the panel scrolls (native-select behaviour). Default 8.",group:"common"},{key:"resizable",label:"Resizable",type:"boolean",default:!1,description:"Show a bottom drag grip so the user can resize the open panel's height (only while it opens downward). Off by default.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvComboBox:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when a value is selected.",group:"behavior"},{key:"resizable",label:"Resizable",type:"boolean",default:!1,description:"Show a bottom drag grip so the user can resize the open panel's height (hidden when the panel flips upward, where there is no room to grow).",group:"common"},{key:"loadOptions",label:"Load Options",type:"json",description:"Load options from a server as the user types (debounced). Disables local filtering; the returned list is shown as-is.",code:!0,group:"advanced"},{key:"minLength",label:"Min Length",type:"number",default:1,description:"Min chars before a remote search fires. Default 1.",group:"common"},{key:"debounce",label:"Debounce",type:"number",default:250,description:"Debounce (ms) before a remote search fires. Default 250.",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (empty-state / loading text).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvAutoComplete:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"suggestions",label:"Suggestions",type:"json",description:"Suggestions - strings or {value,label} (label is shown, value inserted).",group:"common"},{key:"minChars",label:"Min Chars",type:"number",default:1,group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"resizable",label:"Resizable",type:"boolean",default:!1,description:"Show a bottom drag grip so the user can resize the open suggestion panel's height (hidden when the panel flips upward, where there is no room to grow).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvMultiSelect:{props:[{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"json",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"searchable",label:"Searchable",type:"boolean",default:!0,group:"behavior"},{key:"maxTagCount",label:"Max Tag Count",type:"number",default:3,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!0,group:"behavior"},{key:"loadOptions",label:"Load Options",type:"json",description:"Async/remote options: called (debounced) with the search query; its result replaces the list. When set, `options` is only the initial list.",code:!0,group:"advanced"},{key:"debounceMs",label:"Debounce Ms",type:"number",default:250,description:"Debounce for remote search. Default 250ms.",group:"common"},{key:"loadingText",label:"Loading Text",type:"string",default:"Loading…",group:"common"},{key:"emptyText",label:"Empty Text",type:"string",default:"No matches",description:"Shown when the list is empty / a search matches nothing (localization).",group:"common"},{key:"searchPlaceholder",label:"Search Placeholder",type:"string",default:"Search…",description:"Placeholder in the panel's search box (localization).",group:"common"},{key:"searchLabel",label:"Search Label",type:"string",default:"Search options",description:"Accessible name for the panel's search box (localization).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvRepeatButton:{props:[{key:"delay",label:"Delay",type:"number",default:300,description:"Delay before repeats begin (ms).",group:"common"},{key:"interval",label:"Interval",type:"number",default:60,description:"Interval between repeats (ms).",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"variant",label:"Variant",type:"select",options:["primary","secondary","outline","ghost"],default:"secondary",group:"appearance"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"},{key:"focusable",label:"Focusable",type:"boolean",default:!0,description:"False: the button never takes focus or a Tab stop, so pressing it keeps focus in the field it steps (a spinner beside an input). Default true.",group:"common"}],events:[{key:"click",label:"Click",prop:"onclick"}]},SvRichText:{props:[{key:"value",label:"Value",type:"string",description:"HTML string (bindable).",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,group:"behavior"},{key:"minHeight",label:"Min Height",type:"string",default:"160px",group:"common"},{key:"tools",label:"Tools",type:"json",description:"Toolbar tools + order; use '|' for a separator.",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Rich text editor",group:"advanced"},{key:"messages",label:"Messages",type:"json",description:"Override any toolbar label / prompt (localization).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTree:{props:[{key:"nodes",label:"Nodes",type:"json",group:"common"},{key:"selected",label:"Selected",type:"string",description:"Selected node id (single-select highlight).",group:"common"},{key:"expandedIds",label:"Expanded Ids",type:"json",description:"Initially/controlled expanded ids.",group:"common"},{key:"checkable",label:"Checkable",type:"boolean",default:!1,description:"Show cascading checkboxes; `checked` is the set of checked ids.",group:"common"},{key:"checked",label:"Checked",type:"json",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction (rtl mirrors indentation + flips Left/Right keys).",group:"advanced"},{key:"virtual",label:"Virtual",type:"boolean",default:!1,description:"Window rows (render only visible) - for large trees. Needs `height`.",group:"common"},{key:"rowHeight",label:"Row Height",type:"number",default:30,description:"Row height in px - a number, or a per-node function for variable heights. Must match the rendered row height. Default 30.",group:"common"},{key:"height",label:"Height",type:"number",description:"Scroll-viewport height in px. Enables scrolling (required for `virtual`).",group:"common"},{key:"loadChildren",label:"Load Children",type:"json",description:"Load a lazy node's children on first expand (node has `lazy: true`).",code:!0,group:"advanced"},{key:"filter",label:"Filter",type:"string",description:"Filter query - show only matching nodes + ancestors, auto-expanded.",group:"common"},{key:"searchable",label:"Searchable",type:"boolean",default:!1,description:"Render a built-in search box that drives the filter.",group:"behavior"},{key:"searchPlaceholder",label:"Search Placeholder",type:"string",default:"Search...",group:"common"},{key:"loadingText",label:"Loading Text",type:"string",default:"Loading...",description:"Placeholder row shown under a lazy node while its children load (localization).",group:"common"},{key:"clearSearchLabel",label:"Clear Search Label",type:"string",default:"Clear search",description:"Accessible name for the search box's clear button (localization).",group:"common"},{key:"sort",label:"Sort",type:"select",options:["asc","desc"],description:"Sort siblings by label ('asc'/'desc') or a custom comparator.",group:"common"},{key:"editable",label:"Editable",type:"boolean",default:!1,description:"Allow inline rename (double-click or F2). Fires onRename.",group:"common"},{key:"reorderable",label:"Reorderable",type:"boolean",default:!1,description:"Allow drag-drop reordering; fires onMove(dragId, targetId, position). Apply it with the exported `moveTreeNode(nodes, ...)` helper.",group:"common"}],events:[{key:"select",label:"Select",prop:"onSelect"},{key:"toggle",label:"Toggle",prop:"onToggle"},{key:"check",label:"Check",prop:"onCheck"},{key:"rename",label:"Rename",prop:"onRename"},{key:"move",label:"Move",prop:"onMove"}]},SvCountryInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"showDial",label:"Show Dial",type:"boolean",default:!1,description:"Show the dial code beside each country.",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select country…",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (search + empty-state).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTitle:{props:[{key:"order",label:"Order",type:"json",default:2,description:"Semantic heading level (h1-h6).",group:"common"},{key:"size",label:"Size",type:"json",description:"Visual size step, defaults to `order`.",group:"appearance"},{key:"align",label:"Align",type:"select",options:["start","center","end"],description:"Text alignment.",group:"appearance"},{key:"truncate",label:"Truncate",type:"boolean",default:!1,description:"Truncate to a single line with an ellipsis.",group:"common"}],events:[]},SvText:{props:[{key:"size",label:"Size",type:"select",options:["xs","sm","md","lg","xl"],default:"md",description:"Font size step.",group:"appearance"},{key:"weight",label:"Weight",type:"select",options:["normal","medium","semibold","bold"],default:"normal",description:"Font weight.",group:"common"},{key:"tone",label:"Tone",type:"select",options:["default","muted","accent","success","warning","error"],default:"default",description:"Semantic colour.",group:"common"},{key:"align",label:"Align",type:"select",options:["start","center","end"],description:"Text alignment.",group:"appearance"},{key:"truncate",label:"Truncate",type:"boolean",default:!1,description:"Truncate to a single line with an ellipsis.",group:"common"},{key:"clamp",label:"Clamp",type:"number",description:"Clamp to N lines with an ellipsis (overrides truncate).",group:"common"},{key:"inline",label:"Inline",type:"boolean",default:!1,description:"Render inline (`span`) instead of a block (`p`).",group:"common"},{key:"as",label:"As",type:"string",description:"Override the element/tag.",group:"common"}],events:[]},SvAnchor:{props:[{key:"href",label:"Href",type:"string",group:"common"},{key:"external",label:"External",type:"boolean",default:!1,description:"Open in a new tab with safe `rel`.",group:"common"},{key:"underline",label:"Underline",type:"select",options:["hover","always","none"],default:"hover",description:"Underline behaviour.",group:"common"},{key:"tone",label:"Tone",type:"select",options:["accent","default","muted"],default:"accent",description:"Semantic colour.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Font size step.",group:"appearance"}],events:[{key:"click",label:"Click",prop:"onclick"}]},SvBlockquote:{props:[{key:"cite",label:"Cite",type:"string",description:"Attribution shown under the quote.",group:"common"},{key:"tone",label:"Tone",type:"select",options:["accent","muted","success","warning","error"],default:"accent",description:"Accent colour of the rule.",group:"common"}],events:[]},SvCode:{props:[{key:"block",label:"Block",type:"boolean",default:!1,description:"Render as a padded block instead of inline.",group:"appearance"},{key:"code",label:"Code",type:"string",description:"Code as a string (skip the snippet).",group:"common"}],events:[]},SvKbd:{props:[{key:"keys",label:"Keys",type:"json",description:"Key sequence, rendered as separate caps.",group:"common"},{key:"separator",label:"Separator",type:"string",default:"+",description:"Separator between keys.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md",group:"appearance"}],events:[]},SvMark:{props:[{key:"tone",label:"Tone",type:"select",options:["yellow","accent","success","warning","error"],default:"yellow",group:"common"}],events:[]},SvList:{props:[{key:"type",label:"Type",type:"select",options:["unordered","ordered","none"],default:"unordered",description:"Marker style. `none` drops markers + indentation.",group:"common"},{key:"items",label:"Items",type:"json",description:"Simple string items (skip the snippet).",group:"common"},{key:"spacing",label:"Spacing",type:"select",options:["sm","md","lg"],default:"md",description:"Vertical gap between items.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Font size step.",group:"appearance"}],events:[]},SvSpinner:{props:[{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Diameter in px, or a named size. Default `md` (20px).",group:"appearance"},{key:"color",label:"Color",type:"string",description:"Stroke color (defaults to the accent token).",group:"appearance"},{key:"label",label:"Label",type:"string",description:"Accessible label; when omitted the spinner is `aria-hidden`.",group:"common"}],events:[]},SvLoadingOverlay:{props:[{key:"visible",label:"Visible",type:"boolean",default:!1,description:"Show the overlay.",group:"common"},{key:"label",label:"Label",type:"string",description:"Text shown under the spinner (also the a11y label).",group:"common"},{key:"spinnerSize",label:"Spinner Size",type:"select",options:["sm","md","lg"],default:"lg",description:"Spinner size. Default `lg`.",group:"common"},{key:"blur",label:"Blur",type:"boolean",default:!1,description:"Blur the content behind the scrim.",group:"common"}],events:[]},SvResult:{props:[{key:"status",label:"Status",type:"select",options:["success","error","warning","info","notfound"],default:"info",group:"common"},{key:"title",label:"Title",type:"string",group:"common"},{key:"description",label:"Description",type:"string",group:"common"}],events:[]},SvCollapsible:{props:[{key:"title",label:"Title",type:"string",description:"Header text (ignored when a `header` snippet is given).",group:"common"},{key:"open",label:"Open",type:"boolean",description:"Open state (bindable).",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"}],events:[{key:"openChange",label:"Open Change",prop:"onOpenChange"}]},SvCarousel:{props:[{key:"count",label:"Count",type:"number",group:"common"},{key:"current",label:"Current",type:"number",description:"Active slide index (bindable).",group:"common"},{key:"autoplay",label:"Autoplay",type:"number",default:0,description:"Autoplay interval in ms; 0 = off.",group:"common"},{key:"loop",label:"Loop",type:"boolean",default:!0,group:"common"},{key:"arrows",label:"Arrows",type:"boolean",default:!0,group:"common"},{key:"dots",label:"Dots",type:"boolean",default:!0,group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Carousel",group:"advanced"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction (rtl mirrors the prev/next arrows + slide direction).",group:"advanced"}],events:[]},SvDateTimePicker:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"json",group:"common"},{key:"formatString",label:"Format String",type:"string",default:"yyyy-MM-dd HH:mm",description:"Display / parse mask (token engine).",group:"common"},{key:"min",label:"Min",type:"json",group:"common"},{key:"max",label:"Max",type:"json",group:"common"},{key:"nullable",label:"Nullable",type:"boolean",default:!0,group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select date & time",group:"common"},{key:"locale",label:"Locale",type:"string",group:"common"},{key:"firstDayOfWeek",label:"First Day Of Week",type:"number",default:0,group:"common"},{key:"weekNumbers",label:"Week Numbers",type:"boolean",default:!1,group:"common"},{key:"hourFormat",label:"Hour Format",type:"select",options:["12-hour","24-hour"],default:"24-hour",group:"common"},{key:"minuteInterval",label:"Minute Interval",type:"number",default:1,group:"common"},{key:"dropDownDisplayMode",label:"Drop Down Display Mode",type:"json",default:"both",description:"Which tabs the dropdown shows.",group:"common"},{key:"spinButtons",label:"Spin Buttons",type:"boolean",default:!1,description:"Up/down spinner buttons that bump the value by `stepMinutes`.",group:"common"},{key:"stepMinutes",label:"Step Minutes",type:"number",default:1,group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,description:"Open the dropdown as soon as the field is focused (grid in-cell editing).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch the field to fill its container (100% width) instead of the fixed default width - used when mounted as a grid cell editor.",group:"appearance"},{key:"animate",label:"Animate",type:"select",options:["slide","fade"],default:!1,description:"Animate the calendar's month/drill navigation (honors reduced-motion).",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (tabs, dialog, clear/open aria-labels).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit",description:"Fired when the value is finalized (Enter, blur, or a single-date pick). Used by the grid to save the cell."},{key:"cancel",label:"Cancel",prop:"onCancel",description:"Fired on Escape / dismiss without committing (grid cancels the edit)."}]},SvTimePicker:{props:[{key:"value",label:"Value",type:"json",description:'Date, "HH:MM[:SS]" string, or epoch ms.',group:"common"},{key:"format",label:"Format",type:"json",default:"24-hour",group:"common"},{key:"minuteInterval",label:"Minute Interval",type:"number",default:1,group:"common"},{key:"autoSwitchToMinutes",label:"Auto Switch To Minutes",type:"boolean",default:!0,description:"After picking an hour, jump the dial to minutes. Default true.",group:"common"},{key:"footer",label:"Footer",type:"boolean",default:!1,description:"Show the Now footer button.",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,group:"behavior"},{key:"name",label:"Name",type:"string",group:"advanced"},{key:"selection",label:"Selection",type:"json",default:"hour",description:"Which dial opens first.",group:"common"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction (rtl mirrors layout; auto/undefined inherits).",group:"advanced"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (group label + AM/PM/Now).",group:"common"},{key:"label",label:"Label",type:"string",group:"common"},{key:"hint",label:"Hint",type:"string",group:"common"},{key:"error",label:"Error",type:"string",group:"common"},{key:"required",label:"Required",type:"boolean",default:!1,group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,group:"behavior"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],group:"appearance"},{key:"id",label:"Id",type:"string",group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange",description:"Fires with a Date (today's date carrying the picked time)."}]},SvDateRangeInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"json",description:"Inclusive [start, end] range, or null.",group:"common"},{key:"formatString",label:"Format String",type:"string",default:"yyyy-MM-dd",description:"Display format for each end (token engine, e.g. 'yyyy-MM-dd').",group:"common"},{key:"min",label:"Min",type:"json",group:"common"},{key:"max",label:"Max",type:"json",group:"common"},{key:"months",label:"Months",type:"number",default:2,description:"Number of month panels shown side by side. Default 2.",group:"common"},{key:"firstDayOfWeek",label:"First Day Of Week",type:"number",default:0,group:"common"},{key:"weekNumbers",label:"Week Numbers",type:"boolean",default:!1,group:"common"},{key:"locale",label:"Locale",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select date range",group:"common"},{key:"presets",label:"Presets",type:"json",description:"Quick shortcuts shown in the calendar's side rail.",group:"common"},{key:"animate",label:"Animate",type:"select",options:["slide","fade"],default:!1,description:"Animate the calendar's month navigation.",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,description:"Open the popover as soon as the field is focused.",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvSegmented:{props:[{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch the control (and split options evenly) to the container width.",group:"appearance"},{key:"name",label:"Name",type:"string",group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTreeSelect:{props:[{key:"nodes",label:"Nodes",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"showPath",label:"Show Path",type:"boolean",default:!1,group:"common"},{key:"expandedIds",label:"Expanded Ids",type:"json",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvFileUpload:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"files",label:"Files",type:"json",group:"common"},{key:"accept",label:"Accept",type:"string",group:"common"},{key:"multiple",label:"Multiple",type:"boolean",default:!1,group:"behavior"},{key:"maxSize",label:"Max Size",type:"number",description:"Max size per file in bytes.",group:"common"},{key:"maxFiles",label:"Max Files",type:"number",group:"common"},{key:"messages",label:"Messages",type:"json",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"reject",label:"Reject",prop:"onReject"}]},SvGrid:{props:[{key:"data",label:"Data",type:"json",description:"The rows to render. Optional only because `rowModel` can supply them instead; a grid with neither renders empty. When both are present `data` wins.",group:"common"},{key:"columns",label:"Columns",type:"json",group:"common"},{key:"board",label:"Board",type:"json",description:"Kanban board mode. When set, the grid renders its rows as cards in horizontal lanes (bucketed by `board.groupBy`) instead of a table. See .",group:"common"},{key:"gallery",label:"Gallery",type:"json",description:"Gallery mode. When set, the grid renders its rows as cards (a cover image, a title, a few fields) instead of a table. See .",group:"common"},{key:"scheduler",label:"Scheduler",type:"json",description:"Scheduler / calendar mode. When set, the grid renders its rows as events on a Month / Week / Day / Agenda calendar instead of a table. See .",group:"common"},{key:"gantt",label:"Gantt",type:"json",description:"Gantt mode. When set, the grid renders its rows as a task table beside a time chart: one bar per row by start / end, a work-breakdown tree from `parentField`, and dependency arrows. See . A view of the grid like the board and scheduler; the renderer ships in `@svgrid/enterprise` (call `enableGanttView()`).",group:"common"},{key:"chart",label:"Chart",type:"json",description:"Chart view. When set, the grid renders its FILTERED + SORTED rows as a chart instead of a table (search / filters / sort flow through). Unlike board and scheduler, the renderer is free - the grid lazy-loads a built-in `SvChart` view, overridable via `registerChartView`. See .",group:"common"},{key:"pivot",label:"Pivot",type:"json",description:"Pivot mode. When set (and `pivotMode` is on), the grid renders its rows as a pivot table in place - the same grid, aggregated across `pivot.rows` / `pivot.cols` with nested column headers - instead of the flat table. The pivot ENGINE ships in `@svgrid/enterprise`; call `enablePivot()` (or `installEnterprise(api)`) to register it, otherwise an upsell note shows. See .",group:"common"},{key:"pivotMode",label:"Pivot Mode",type:"boolean",description:"Whether pivot mode is currently active. Defaults to `true` when `pivot` is set. Bindable so a toolbar toggle can flip between the pivot and the flat table over the same data.",group:"common"},{key:"contextMenu",label:"Context Menu",type:"boolean",description:'Right-click context menu. `true` shows the default item set (copy, cut, paste, clear, insert row above/below, remove row, remove column). Pass an array to customize: strings are built-in keys, `"separator"` is a divider, and objects are custom items. Omitted/`false` disables the menu (native browser menu shows instead).',group:"common"},{key:"selectionBar",label:"Selection Bar",type:"boolean",description:"Floating bar that appears over the grid while rows are selected, showing the count and the actions that apply to the whole selection - the pattern an issue tracker uses for bulk edit. `true` gives the count and a Clear button. An array is the shorthand for `{ actions }`. Pass to also set `position` (`'bottom'` default, or `'top'`), `maxVisible` and `hideClear`. Omitted / `false` is off. Default **off**. This is chrome that floats over your content, not a gesture: it overlaps a row, and what belongs on it is specific to the app. **The prop and its types are free; the bar itself is an Enterprise feature.** Install `@svgrid/enterprise` and call `enableSelectionBar()` (or `installEnterprise`, which does it for you) to render it - without that the grid shows a short upsell note in its place, the same way the scheduler and board views do.",group:"common"},{key:"rowAdder",label:"Row Adder",type:"boolean",description:'A "+ Add row" line under the last row. Clicking it (or Enter on it) appends a row, scrolls to it and starts editing its first editable cell. `true` uses the defaults; pass for the label and the new row\'s values. **The prop and its types are free; the row adder is drawn by the Enterprise `@svgrid/enterprise/fields` module** (`enableFields()`). Without it the prop does nothing.',group:"common"},{key:"rowColor",label:"Row Color",type:"json",description:"Color rows by a status: by a select field (each row takes its option's `color`) or by rules (first match wins). The color shows on the row header by default (a 3px stripe at the start of the row-number cell); `target` moves it to a stripe in the first cell or a tint across the row. The row header also gets the status as its title, so the color is never the only signal. Computed for rendered rows only. **The prop and its types are free; the colors are drawn by the Enterprise `@svgrid/enterprise/fields` module** (`enableFields()`).",group:"common"},{key:"columnAdder",label:"Column Adder",type:"boolean",description:'A "+" header cell after the last column that opens the field editor: a name, a field type and that type\'s properties. Creating adds the column and fires `onColumnAdd`; the grid never stores a schema, the app does. `{ types }` limits the types offered. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**',group:"common"},{key:"fieldMenu",label:"Field Menu",type:"boolean",description:"Field actions in each column's menu: Edit field, Insert left / right, Duplicate, Delete, Hide. Edit can change the type; values are converted where they can be and the editor says how many cells would be cleared. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**",group:"common"},{key:"expandRows",label:"Expand Rows",type:"boolean",description:"The row-number cell becomes the row's handle: on hover it shows a checkbox that selects the row and an expand button that opens the row as a record, every field with its label and its editor. With `showRowNumbers`. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**",group:"common"},{key:"pinSplitter",label:"Pin Splitter",type:"boolean",description:"A divider at the edge of the left-pinned columns: drag it right to pin the columns it passes, left to unpin them. It snaps to column edges and keeps the columns where they are on screen; with the keyboard, focus it and use the arrow keys. Its words come from `localization.text` (`pinSplitterLabel`, `pinSplitterHint`, `pinSplitterNone`, `pinSplitterOne`, `pinSplitterMany`). Loaded only when set.",group:"common"},{key:"primaryField",label:"Primary Field",type:"string",description:"The table's primary field (a column id or field): always the first column and pinned, never hidden or deleted, and the name of a record (the expanded record's title, a gallery card's title). **Kept by the Enterprise `@svgrid/enterprise/fields` module.**",group:"common"},{key:"features",label:"Features",type:"json",description:"The feature set built with `tableFeatures({ ... })`. Optional - the `sortable` / `filterable` / `groupable` shortcuts below inject the matching feature for you, so a grid can be configured entirely from the boolean shortcuts without importing the feature constants.",group:"common"},{key:"sortable",label:"Sortable",type:"boolean",description:"Convenience shortcuts to switch a whole capability on without wiring `features` or the finer-grained props by hand. Every capability is OFF by default - a bare grid is a plain read-only table - so set the shortcut `true` to opt in. (`false` / omitted both leave it off; the shortcut is mainly there to turn things ON.) `sortable` - column sorting (injects `rowSortingFeature`) `filterable` - column filtering (injects `columnFilteringFeature`) `editable` - inline cell editing (alias of `enableInlineEditing`) `selectable` - cell selection (alias of `enableCellSelection`) `groupable` - row grouping controls(alias of `showGroupingControls`, also injects `columnGroupingFeature`) `pageable` - pagination footer (alias of `showPagination`) Fine-grained props (`enableInlineEditing`, `showPagination`, ...) still work; the shortcut wins only when it is explicitly set.",group:"common"},{key:"filterable",label:"Filterable",type:"boolean",description:"Click a header to filter that column. Injects `columnFilteringFeature`, so you do not import it yourself. Which filter surface appears is a separate question - see `filterMode` (default `'menu'`). <SvGrid {data} {columns} filterable />",group:"common"},{key:"editable",label:"Editable",type:"boolean",description:"Inline cell editing. Alias of `enableInlineEditing`, and wins over it when both are set. A column also needs an `editorType` to be editable; without one it falls back to a text editor. <SvGrid {data} {columns} editable />",group:"common"},{key:"selectable",label:"Selectable",type:"boolean",description:"Cell selection - click a cell to select it, drag or shift-click to extend the selection to a range. Alias of `enableCellSelection`, and the highest priority of the three inputs that decide it: `selectable` -> `enableCellSelection` -> `selectionMode`. NOTE the asymmetry with its siblings, which are all off until you opt in: this one is **ON by default**, because `selectionMode` defaults to `'both'`. It is named here so the capability is discoverable next to the other shortcuts, and so `selectable={false}` is a one-word way to turn cell selection off (the longhand being `selectionMode=\"none\"`, which also removes the row-selection surface). This is the CELL surface only. The selection **checkbox column** is the other half of `selectionMode`, controlled by `showRowSelection` - also on by default, and it needs no feature import (verified: the column renders and toggles rows with an empty `features` set). Use `selectionMode` when you want to move both surfaces at once.",group:"common"},{key:"treeData",label:"Tree Data",type:"json",description:"Client-side tree data: nest rows into a hierarchy by parent id. ```svelte <SvGrid {data} {columns} treeData={{ parentField: 'managerId', column: 'name' }} /> ``` Unlike grouping, tree rows are real data rows - they keep their cells, editing and selection, and only gain an expander plus indentation in `column`. Rows whose parent is missing become roots rather than vanishing. For NESTED source data (`children: [...]`), flatten it first with `flattenTreeData(data, { childrenField: 'children' })` and point `parentField` at the `__parentId` it stamps on. Setting this replaces row grouping - a row cannot be both.",group:"common"},{key:"groupable",label:"Groupable",type:"boolean",description:'Show the grouping controls: "Group by this column" in the column menu, and the group panel when `showGroupPanel` is on. Alias of `showGroupingControls`, and also injects `columnGroupingFeature`. This turns on the UI for grouping. To group without asking the user, set `groupBy` instead. <SvGrid {data} {columns} groupable />',group:"common"},{key:"groupBy",label:"Group By",type:"json",description:"Group the rows by these column ids, outermost first - `['region', 'country']` rolls country up inside region. ```svelte <SvGrid {data} {columns} {features} groupBy={['department']} /> ``` The prop seeds the group-by list and re-applies whenever it changes, so it works both as initial state and as a controlled value. The column menu and `api.setGroupBy()` write the same state; a change from either survives until this prop's own value changes. Ignored when `treeData` is set - a row cannot be both a hierarchy node and bucketed under a group banner.",group:"common"},{key:"expanded",label:"Expanded",type:"json",description:'Which group / tree rows are expanded, keyed by row id. Expansion is owned by the engine by default; pass this prop to hoist it (saved views, "expand everything on load", persisted UI state). Like `groupBy` it seeds the state and re-applies whenever it changes. Group row ids are built from the grouping path, not the display label: `group_department_Engineering`, and one level deeper `group_department_Engineering_role_Senior`. Tree rows key off the engine\'s row id instead (set `getRowId` to make that your own id). Prefer capturing the map from `onExpandedChange` over hand-building these keys.',group:"common"},{key:"groupFooters",label:"Group Footers",type:"boolean",description:"Render a subtotal row after each group's children, carrying that group's aggregate values under the columns they belong to (the columns with an `aggregate` set). Off by default. Footers are inserted after paging, so they never count against `pageSize` - a page shows its `pageSize` data rows plus whatever footers close on it.",group:"common"},{key:"grandTotalRow",label:"Grand Total Row",type:"boolean",description:"Append a grand-total row at the very end, aggregating the whole filtered set (not just the current page) with each column's `aggregate` function. Independent of `groupFooters`: use it on a flat grid for a bottom totals line, or alongside group subtotals for both. Like group footers it is appended after paging, so it never counts against `pageSize` - but it is only appended on the LAST page, so a total never appears mid-dataset. Columns without an `aggregate` are left blank.",group:"common"},{key:"groupDisplayMode",label:"Group Display Mode",type:"json",description:'How grouped rows are displayed. - `groupRows` (default): a full-width banner row per group. Unchanged behaviour - existing grids are untouched. - `singleColumn`: one synthetic "Group" column holding every level, indented by depth. - `multipleColumns`: one synthetic column per grouped field. Both column modes hide the grouped source columns, since their values move into the auto column(s), and render group rows as ordinary rows so their aggregate cells line up under the real columns.',group:"common"},{key:"autoGroupColumnHeader",label:"Auto Group Column Header",type:"string",description:'Header for the combined `singleColumn` auto-group column. Default `"Group"`.',group:"common"},{key:"autoGroupColumnWidth",label:"Auto Group Column Width",type:"number",description:"Width (px) of each auto-group column. Default `220`.",group:"common"},{key:"pageable",label:"Pageable",type:"boolean",description:"Show the pagination footer. Alias of `showPagination`, and wins over it when both are set. Page size starts at `pageSize` (default 10). <SvGrid {data} {columns} pageable pageSize={25} />",group:"common"},{key:"loading",label:"Loading",type:"boolean",description:'Show the loading state instead of the rows. By default this replaces the grid body with "Loading..."; set `loadingOverlay` to keep the current rows visible under a dimmed overlay instead, which is what you usually want for a server-paged grid.',group:"behavior"},{key:"loadingOverlay",label:"Loading Overlay",type:"boolean",description:'Render `loading` as a non-blocking overlay instead of replacing the whole grid: the current rows stay visible (dimmed, with a top progress bar) during a refetch, and the first load shows shimmer skeleton rows. Ideal for server-paged grids so paging/sorting doesn\'t flash. Defaults to `false` (the classic full "Loading..." replacement).',group:"common"},{key:"loadingSkeletonRows",label:"Loading Skeleton Rows",type:"number",description:"Skeleton placeholder rows to show on first load. Defaults to 8.",group:"common"},{key:"error",label:"Error",type:"string",description:"Render an error message in place of the rows. `null` or omitted means no error. Takes precedence over `loading` and over the empty state.",group:"common"},{key:"emptyMessage",label:"Empty Message",type:"string",description:"Text shown when there are no rows to display - either the data is empty or a filter matched nothing. Defaults to the localized `noRows` string, so prefer `localization.text.noRows` when you are translating the whole grid.",group:"common"},{key:"gridLabel",label:"Grid Label",type:"string",description:"The grid's accessible name: what a screen reader calls it.",group:"common"},{key:"localization",label:"Localization",type:"json",description:"The single place to localize the grid. One object with two fields: - `locale` - BCP-47 tag(s) for the DATA: accent/case-insensitive filter matching AND every column's number / currency / percent / date formatting (when the column's own `format.locales` is unset). The default for `filterLocale` and per-column format locales. - `text` - overrides for the grid's own UI STRINGS (empty state, tool panel, pager, status bar, filter operator labels, context-menu items, upsell notes). Any subset overrides the English defaults; unset keys stay English. ```svelte <SvGrid localization={{ locale: 'fr-FR', text: { noRows: 'Aucune ligne' } }} /> ``` Omitting it (or any field) is a no-op. See .",group:"common"},{key:"showGlobalFilter",label:"Show Global Filter",type:"boolean",description:"Show the single search box that filters across every column. Explicitly setting this wins over `filterMode`; leaving it unset means it appears only when `filterMode` is `'global'`.",group:"common"},{key:"showColumnFilters",label:"Show Column Filters",type:"boolean",description:"Show the filter section inside each column's menu. Explicitly setting this wins over `filterMode`; unset, it follows `filterMode` (default `'menu'`, so this is normally on). The always-visible inputs under the headers are the filter row, `showFilterRow`.",group:"common"},{key:"filterMode",label:"Filter Mode",type:"select",options:["row","menu","global","none"],description:"Quick way to pick a single filtering UI. When set it controls which of the three filter surfaces appears (and is overridden per-surface by the `showGlobalFilter` / `showColumnFilters` / `showFilterRow` props). Defaults to `'menu'` (only the column menu's filter section is shown).",group:"common"},{key:"showGroupingControls",label:"Show Grouping Controls",type:"boolean",description:'Show the grouping affordances (the column menu\'s "Group by this column", and the group panel). The `groupable` shortcut sets this and registers the grouping feature in one go; prefer that unless you have already registered `columnGroupingFeature` yourself.',group:"common"},{key:"showRowSelection",label:"Show Row Selection",type:"boolean",description:"Show the row-selection checkbox column, including the select-all checkbox in the header. Unset, it follows `selectionMode` (default `'both'`, so row selection is on).",group:"common"},{key:"showPagination",label:"Show Pagination",type:"boolean",description:"Show the pagination footer. Off by default. `pageable` is the shortcut alias and wins when both are set.",group:"common"},{key:"pageSize",label:"Page Size",type:"number",description:"Initial page size when pagination is enabled. Defaults to 10.",group:"common"},{key:"pageSizeOptions",label:"Page Size Options",type:"json",description:"Page-size choices shown in the footer's selector. Defaults to `[10, 25, 50, 100]`.",group:"common"},{key:"paginationPosition",label:"Pagination Position",type:"select",options:["top","bottom","both"],description:"Where the pagination footer sits: `'bottom'` (default), `'top'`, or `'both'`. The status bar (when enabled) always stays at the bottom.",group:"common"},{key:"externalPagination",label:"External Pagination",type:"boolean",description:"Server-side pagination. When `true`, the grid renders its native pagination footer from the `rowCount` / `pageIndex` you provide (rather than counting the local rows), does NOT slice `data` (the rows you pass are treated as the current page), and emits `onPaginationChange` when the user pages or changes page size. Pair with `externalSort` / `externalFilter` and a server data source. Requires `showPagination` / `pageable` to show the footer. Controlled: you own `pageIndex` + `pageSize` + `rowCount`.",group:"common"},{key:"rowCount",label:"Row Count",type:"number",description:"Total rows on the server, for the footer's range + page count. Used with `externalPagination`.",group:"common"},{key:"pageIndex",label:"Page Index",type:"number",description:"Current 0-based page index. Used with `externalPagination` (controlled).",group:"common"},{key:"virtualization",label:"Virtualization",type:"boolean",description:"Render only the rows in view instead of all of them. **On by default** - this is what keeps a 100,000-row grid responsive. Turn it off when a row's height cannot be known up front and must not be clipped, such as a variable-height master-detail panel. Expect the DOM to hold every row when you do.",group:"common"},{key:"rowHeight",label:"Row Height",type:"number",description:"Row height in pixels. Pass a function `(rowIndex) => px` for per-row variable heights (e.g. an interactive row-resize feature). Defaults to 30.",group:"common"},{key:"autoRowHeight",label:"Auto Row Height",type:"boolean",description:"Size each row to its own content instead of a fixed height: cell text wraps and the row grows to fit the tallest cell. Rows are measured after they render, so this works with virtualization - `rowHeight` (or 30) is the estimate used before a row has been measured, which keeps the scrollbar stable while you scroll into new rows. Costs a measurement pass per row, so prefer a fixed `rowHeight` when your content is uniform. Ignored when `rowHeight` is a function (you are already supplying per-row heights).",group:"common"},{key:"rowResize",label:"Row Resize",type:"boolean",description:"Let the user drag a row's bottom edge to change its height. **Off by default**, because a resizable row needs somewhere to grab and most grids do not want a drag target on every row. The grid remembers the heights itself, so this works as a bare boolean - no `rowHeight` function required. Drag, or focus the grip and use Up/Down (Shift for 1px steps). Turning this on also turns on the **row header column** (* showRowNumbers), because that is where the grip lives and where a spreadsheet puts it - a drag target on the edge of a data cell works but reads as an accident. An explicit `showRowNumbers={false}` still wins; the grip then falls back to the row's first cell, and a column of your own carrying `cellClass: 'sv-row-gutter'` is used ahead of either. Ignored under `autoRowHeight`, where the content decides the height and a manual one would immediately be overwritten. For full control of the heights - persisting them, sharing them between grids - pass a function-valued and use the `rowResize` action directly.",group:"common"},{key:"headerHeight",label:"Header Height",type:"number",description:"Height (px) of a single column-header level row. With multi-level (grouped) headers the total header height is `levels * headerHeight`, since each level renders as its own row. When omitted, header rows size to their content (the default). Does not affect the filter row.",group:"common"},{key:"overscan",label:"Overscan",type:"number",description:"Extra rows rendered above and below the viewport, so fast scrolling does not reach empty space before the next batch renders. Defaults to 8. Raise it for very tall rows, lower it to trim DOM work. The first paint after mount carries at most 2 of them, so the rows on screen appear sooner; the rest are added in the frame after that paint.",group:"common"},{key:"containerHeight",label:"Container Height",type:"number",description:"Height of the grid's scrollable shell. A number is treated as pixels; a string is used as-is, so callers can pass `'100%'` or `'auto'` to make the grid fill its parent. Defaults to 520 px.",group:"common"},{key:"columnVirtualization",label:"Column Virtualization",type:"boolean",description:"Render only the columns in view, the horizontal counterpart of `virtualization`. **On by default**, which is what makes a 100-column grid scroll smoothly. Pinned columns stay rendered while it is on: the pinned-left and pinned-right columns are drawn as their own runs either side of the virtual window, so a wide grid with pinned edges still renders only the columns in view plus the pinned ones.",group:"common"},{key:"columnOverscan",label:"Column Overscan",type:"number",description:"Columns kept rendered beyond the viewport when `columnVirtualization` is on: this many ahead of a horizontal scroll at all times, one behind it. The rendered columns move three at a time, so right after a move up to `columnOverscan + 2` are rendered ahead. Defaults to 3.",group:"common"},{key:"columnWidth",label:"Column Width",type:"number",description:"Fallback width in pixels for columns whose `ColumnDef` sets no `width`. Defaults to 140.",group:"common"},{key:"initialColumnPinning",label:"Initial Column Pinning",type:"json",description:"Columns pinned to the left/right edge on mount. Each entry is a column id (matches `ColumnDef.field` when no explicit id is set). The internal pinning state is seeded once at mount; user-driven pinning via the column menu still works and overrides this default. Works with column virtualization on (the default).",group:"common"},{key:"fitColumns",label:"Fit Columns",type:"boolean",description:"When `true`, columns are scaled proportionally so their total width fills the viewport (no empty space on the right). Disabled by default - explicit `width` values are used as-is. User resizes still win once they happen.",group:"common"},{key:"columnResize",label:"Column Resize",type:"boolean",description:"Let the user drag a column's edge to change its width. **Off by default**, so `width` means the width you asked for until you say otherwise. Turn it on for grids the reader is meant to arrange - a spreadsheet, a dense report, anything with columns whose content varies in length. Leave it off for layouts you control, and for columns that must keep their size: a row-number gutter, a checkbox column, an icon column. It turns resizing on for the whole grid; a column opts out with `resizable: false` on its definition. `api.autosizeColumn()`, `fitColumns` and programmatic width changes work either way - this only governs the drag handle. The handles come from the `columnResize` action, loaded on demand: a grid that leaves this off never fetches that code.",group:"common"},{key:"responsive",label:"Responsive",type:"boolean",description:"Make the grid usable on narrow screens. When the grid's own width drops below the breakpoint (default `640`px), pinned columns are un-pinned so the whole grid pans, `fitColumns` scaling is suspended (columns keep their natural widths and scroll), touch panning is smoothed, and columns whose `hideBelow` exceeds the width are hidden. `true` uses the default breakpoint; pass `{ breakpoint }` to change it. Off by default.",group:"common"},{key:"showFilterMenu",label:"Show Filter Menu",type:"boolean",group:"common"},{key:"showFilterRow",label:"Show Filter Row",type:"boolean",description:"Show the always-visible filter row under the header. Explicitly setting this wins over `filterMode`; unset, it appears only when `filterMode` is `'row'`.",group:"common"},{key:"enableCellSelection",label:"Enable Cell Selection",type:"boolean",description:"Cell selection - click to select, drag or shift-click to extend to a range, which is what clipboard copy and the range fill handle operate on. Unset, it follows `selectionMode` (default `'both'`, so this is on). `selectable` is the shortcut alias and wins over it.",group:"common"},{key:"moveCells",label:"Move Cells",type:"boolean",description:"Excel-style drag-and-drop of a selected cell range: grab the range's border and drag it somewhere else to MOVE the values there, or hold Ctrl (Cmd on macOS) to COPY them instead. The modifier is read at drop time, so it can be pressed or released mid-drag. On by default whenever cell selection is on, matching the fill handle. Set `false` to keep a border pointerdown starting a fresh selection, which is what it did before this existed. The grab strip is the outer 4px of the range border, so a pointerdown anywhere further inside still starts a new selection. A drop is refused outright - nothing changes - when the destination would fall outside the grid, or when any source or destination cell is read-only. It does not move the part that fits and silently drop the rest.",group:"common"},{key:"enableRowHover",label:"Enable Row Hover",type:"boolean",description:"Highlight the row under the pointer. Default **false** - the hover tint can compete with the cell selection / fill marquee. Set `true` to opt in; when on, the hover no longer paints over selected cells so the selection stays visible.",group:"common"},{key:"copyHeadersToClipboard",label:"Copy Headers To Clipboard",type:"boolean",description:"Prepend a header row (the column labels) to copied cell ranges, so pasting into Excel / Sheets includes the headers. Applies per copied range.",group:"common"},{key:"processCellForFill",label:"Process Cell For Fill",type:"json",description:`Decide what the fill handle writes into one cell, ahead of the grid's own pattern rules (series, weekdays, "Item 1"). Receives the source cell's value and how far the target sits from it; return the value to write, or \`undefined\` to let the pattern decide. A spreadsheet uses it to move a formula's references by the distance filled, which the pattern rules would otherwise mangle ("=A1+B1" reads as "Item 1").`,code:!0,group:"advanced"},{key:"processCellForClipboard",label:"Process Cell For Clipboard",type:"json",code:!0,group:"advanced"},{key:"includeCollapsedRows",label:"Include Collapsed Rows",type:"json",description:'Whether a collapsed row still takes part in a copy or a fill that spans it. Left out, both skip every collapsed row, which is what "filter, copy, paste" needs and what a fill dragged over a filtered list expects: the series runs over the rows that show. A spreadsheet answers per row: a row hidden by hand is copied and filled, as Excel does, while a row a filter folded away is not.',code:!0,group:"advanced"},{key:"clipboardHtml",label:"Clipboard Html",type:"json",description:"An HTML rendering of what Ctrl+C copies, written to the clipboard as `text/html` beside the TSV. Excel and Google Sheets read the HTML first, so a table with inline styles pastes into them with its formats, and the same markup can carry what the text cannot (a formula in a `data-` attribute) for a round trip back into a grid that reads it. Called after every cell has been through `processCellForClipboard`, with the rectangles copied and the text about to be written. Return nothing to write text alone. Runs synchronously inside the key press, which is what the clipboard needs.",code:!0,group:"advanced"},{key:"holdRowsOnWrite",label:"Hold Rows On Write",type:"boolean",description:"A paste, a clear or a fill changes rows where they stand, as a typed edit does, instead of handing the grid a new list that sorts and filters them again at once. For an app that orders the view itself once the person moves on (`api.setOption` or new `data`): the rows do not move under the cursor, so a second Delete or paste lands on the same records.",group:"common"},{key:"parseClipboardText",label:"Parse Clipboard Text",type:"json",description:"Split pasted text into rows of cells, for a consumer whose copy quotes a cell (a line break inside it, as Excel writes one). Left out, every line is a row and every tab a new cell.",code:!0,group:"advanced"},{key:"processCellFromClipboard",label:"Process Cell From Clipboard",type:"json",description:"Transform each cell on its way IN from the clipboard, before the grid coerces it for the column's editor. Symmetric with `processCellForClipboard`: the pair is what lets a round trip survive. Receives the raw clipboard text for the cell plus where it is landing. Return the value to write, or `undefined` to leave the cell untouched. This is also the seam a feature pack uses to take over a paste entirely: `@svgrid/enterprise`'s paste-special reads the clipboard's `text/html` for formats and formulas and writes through here.",code:!0,group:"advanced"},{key:"enableInlineEditing",label:"Enable Inline Editing",type:"boolean",description:"Inline cell editing: F2 or double-click opens an editor in the active cell, Enter commits, Esc cancels. Off by default. A column still needs an `editorType` to pick its editor (text, number, date, checkbox, list, ...); without one it gets a plain text editor. `editable` is the shortcut alias and wins over this.",group:"common"},{key:"editOnSecondClick",label:"Edit On Second Click",type:"boolean",description:"A click on the cell that is already active opens its editor, the way a second click on a selected file name starts renaming it. On by default. A spreadsheet turns it off: Excel edits on double-click or F2 only, and a user clicking the cell they are on to get back to it after a dialog would otherwise find the next shortcut typed into an editor.",group:"common"},{key:"fullRowEditing",label:"Full Row Editing",type:"boolean",description:"Full-row editing. When `true`, starting an edit puts the WHOLE row into edit mode - every editable cell shows an inline editor at once - and a single Enter (or focus leaving the row) commits all of them; Esc cancels the whole row. Requires `enableInlineEditing`. The full-row editor covers text / number / date / datetime / checkbox / list-select editor types.",group:"common"},{key:"enableRowSummaries",label:"Enable Row Summaries",type:"boolean",description:"Append a sticky footer row aggregating every filtered row: the sum of a numeric column, `Count: N` otherwise. Choose a different aggregate per column with that column's own `summary` option, or set it to `false` there to leave the cell blank. Off by default. `summary` is the shortcut alias and wins when both are set. <SvGrid {data} {columns} summary />",group:"common"},{key:"summary",label:"Summary",type:"boolean",description:"Shortcut alias for . Wins over it when both are set, the same precedence `selectable` has over `enableCellSelection`.",group:"common"},{key:"statusBar",label:"Status Bar",type:"boolean",description:'Excel-style status bar under the grid showing live aggregates of the selected cell range (count, numeric count, sum, average, min, max). `true` shows the default set; pass `{ aggregates: [...] }` to choose which. The aggregates need `enableCellSelection`. `rows: true` adds a row count that is always shown, "250 rows" or "12 of 250 rows" while filters hide some, once `@svgrid/enterprise`\'s `enableRowCount()` has run. `{ rows: true, aggregates: [] }` shows the count alone.',group:"common"},{key:"toolPanel",label:"Tool Panel",type:"boolean",description:'Show the docked tool panel - the enterprise sidebar with Columns and Filters tabs. A "Columns & Filters" button appears in a toolbar above the grid; the panel docks on the right edge.',group:"common"},{key:"charting",label:"Charting",type:"boolean",description:"Integrated charting: `true` for the zero-config docked chart panel, or a object to author defaults + advanced options.",group:"common"},{key:"columnMenuTabs",label:"Column Menu Tabs",type:"boolean",description:'Render the header column menu (⋮) as a tabbed popover - **General**, **Filter**, and **Columns** tabs (the tabbed layout). Defaults to `false`, which keeps the flat menu (actions list + "Choose columns" submenu).',group:"common"},{key:"toolPanelDefaultOpen",label:"Tool Panel Default Open",type:"boolean",description:"Open the tool panel on first render (instead of collapsed).",group:"common"},{key:"toolPanelDefaultTab",label:"Tool Panel Default Tab",type:"select",options:["columns","filters"],description:"Which tab the tool panel starts on. Defaults to `'columns'`.",group:"common"},{key:"selectionMode",label:"Selection Mode",type:"select",options:["row","cell","both","none"],description:"Quick way to pick which selection surfaces are active. `'row'` shows the selection checkbox column only, `'cell'` allows rectangle/range cell selection only, `'both'` (default) enables both, `'none'` disables both. Overridden per-surface by `showRowSelection` / `enableCellSelection`.",group:"common"},{key:"showRowNumbers",label:"Show Row Numbers",type:"boolean",description:"Render a leading row-number column (1-based) before any selection column. Useful as a permanent anchor when scrolling wide grids.",group:"common"},{key:"zebraRows",label:"Zebra Rows",type:"boolean",description:"Paint alternating data rows with the `--sg-row-alt-bg` color (zebra striping). Only data rows stripe - pinned, group, detail, and summary rows keep their single background. Defaults to `false`.",group:"common"},{key:"rowNumberWidth",label:"Row Number Width",type:"number",description:"Width (px) of the row-number column. By default it fits the largest row number: 56px up to four digits, then 9px wider per digit (from `data.length`, or `rowCount` on a server-paged grid). Set it to pin a width, for example when a theme uses a much larger font.",group:"common"},{key:"externalSort",label:"External Sort",type:"boolean",description:"When `true`, the grid records sort state (and renders sort indicators + cycling on headers) but does NOT actually re-order the rows. The consumer is expected to sort `data` themselves - typically via `onSortingChange`. Use this for tree/hierarchical data, where a flat global sort would break parent-child adjacency. Defaults to `false`.",group:"common"},{key:"initialSorting",label:"Initial Sorting",type:"json",description:"The sort state to start in - `{ id, desc }` entries. Use with `externalSort` when the initial ordering is decided server-side (e.g. a URL `?sort=` param read in a SvelteKit `load`), so the header sort indicators match the already- sorted data on first render. Applied once at mount; user sorting takes over.",group:"common"},{key:"initialAdvancedFilter",label:"Initial Advanced Filter",type:"json",description:"The advanced-filter expression to start in (Pro). Applied once at mount; change it afterwards through `api.setAdvancedFilter()`. Filtering only happens once `@svgrid/enterprise`'s `enableAdvancedFilter()` has registered a compiler - without it the expression is stored and reported but no rows are removed, so the free grid degrades to a no-op rather than to a wrong row set.",group:"common"},{key:"externalFilter",label:"External Filter",type:"boolean",description:"When `true`, the grid still records column-filter / global-filter / facet state (so the menu UI works and indicators light up) but does NOT actually filter the rows. The consumer is expected to fetch / sort / filter the data themselves - typically via `onFiltersChange`. Used by server-side data sources. Defaults to `false`.",group:"common"},{key:"getRowId",label:"Get Row Id",type:"json",description:"Resolve a stable id per row. Drives selection, expansion, edit, and active-cell state. When omitted, the row's array index is used - fine for read-only views but the wrong choice if `data` gets reordered or filtered outside the grid (selection would follow positions, not actual rows). Use a database PK, a UUID, or any stable string.",code:!0,group:"advanced"},{key:"rowClass",label:"Row Class",type:"json",description:'Conditional class(es) added to every `<tr>` body row. Receives the row\'s `original` data + its data-array index. Return a string, an array of strings, or an object mapping class names to booleans. Useful for "highlight overdue rows", "tint cancelled orders", and similar row-level state mappings.',code:!0,group:"advanced"},{key:"notes",label:"Notes",type:"json",description:'Per-cell notes - longer free-form comments shown as a corner indicator + tooltip on hover. Keyed by row id then column id; empty / missing entries mean "no note". The grid owns rendering; you own storage (write your own callbacks to add / edit notes).',group:"common"},{key:"editableComments",label:"Editable Comments",type:"boolean",description:'Allow editing per-cell notes/comments through the UI: the context menu gains an "Edit comment" item that opens a popover editor. Edits are applied to an internal overlay for immediate feedback and emitted via `onNoteChange` so you can persist them back into `notes`.',group:"common"},{key:"conditionalFormats",label:"Conditional Formats",type:"json",description:"Excel-style conditional formatting. A list of value-driven rules that color cells: `colorScale` (gradient across the column range), `dataBar` (in-cell proportional bar), `iconSet` (arrows / traffic / triangles by threshold), and `rule` (apply a style when a predicate matches). Scope a format to specific columns with `columns: [...]`, or omit it to apply to every column. Later entries win on conflict. `colorScale` and `dataBar` apply to data rows only: group, footer and grand-total rows carry subtotals on a different scale, so they keep the `rule` and `iconSet` formats and drop the scaled ones. On a server row model, give scaled formats `minValue` / `maxValue`; the grid does not scan rows it has not loaded for a range.",group:"common"},{key:"conditionalStatScope",label:"Conditional Stat Scope",type:"select",options:["filtered","visible","all"],description:"Which rows feed the min/max range that `colorScale` / `dataBar` formats scale against. - `filtered` (default): every row that survives the filters, ignoring the page slice. The scale follows what you filtered to but does not shift when you page, so the same value keeps the same colour on page 1 and page 2. - `visible`: only the rows currently on screen. Rescales per page - use it when you want each page's heat map normalized to that page. - `all`: the full unfiltered dataset, for a scale that stays put as you filter.",group:"common"},{key:"rowPlaceholder",label:"Row Placeholder",type:"json",description:'Marks a row as one whose data has not arrived: `"loading"` draws a shimmer in every cell, `"failed"` draws a full-width "could not load" row with a Retry button, and `null` (the default for every row) renders normally. Placeholder rows are inert - not selectable, not editable, and skipped by cell navigation - because there is nothing there to act on yet. `createServerDataSource` in `infinite` mode fills the gaps with rows this recognises, so the usual wiring is `rowPlaceholder={rowPlaceholderState}` (or nothing at all, via `rowModel`).',code:!0,group:"advanced"},{key:"rowModel",label:"Row Model",type:"json",description:"Drive the grid from a row model instead of wiring a dozen props. `createServerDataSource` returns one, and so does the Enterprise server-side row model, so server-backed grids become: ```svelte <SvGrid rowModel={ctl} {columns} /> ``` The model supplies `data`, `loading`, `getRowId`, the external sort and filter wiring, the visible range, placeholder rows, group accessors, selection and paging - each one only if it implements that part. A prop written explicitly on the grid always wins, so you can adopt it and still override one piece.",group:"common"},{key:"pivotResultColumns",label:"Pivot Result Columns",type:"json",description:"Columns that REPLACE `columns` while set. The server-side row model supplies them in pivot mode - one column per pivoted value, grouped under a header per pivot key - and clears them when pivot mode ends, so `columns` stays the app's own list. Rarely set by hand.",group:"common"},{key:"rowSelectionModel",label:"Row Selection Model",type:"json",group:"common"},{key:"isDetailRow",label:"Is Detail Row",type:"json",description:'Marks a row as an expandable "detail row". When this returns true the grid renders that row as a SINGLE full-width cell (colspan across every column) using `renderDetailRow`, instead of the normal per-column cells - the canonical Stripe / GitHub "expand a rich panel beneath the row" pattern. Insert the detail rows into `data` yourself (typically right after the row they belong to) and toggle them with your own expanded state. Pair with `virtualization={false}` so the variable-height detail isn\'t clipped by the fixed-row-height virtualizer.',code:!0,group:"advanced"},{key:"detailRowHeight",label:"Detail Row Height",type:"number",description:"The height of a detail row, in px, or a function of its data. With it the virtualizer can size detail rows, so master-detail works with `virtualization` on (the panel scrolls inside its cell when taller). Without it a detail row is auto height, which needs `virtualization={false}`.",group:"common"},{key:"showDetailToggle",label:"Show Detail Toggle",type:"boolean",description:"A row-header column of chevrons that open and close detail rows. It sits with the row-number and selection columns: sticky at the left, no column menu, not resizable, not reorderable, outside the active cell and the selection. The chevron calls `onDetailToggle` (or, on a server row model, the model's own toggle) and reads `isDetailOpen` for its direction; `hasDetail` hides it on rows that have nothing to open. Detail rows themselves get an empty cell.",group:"common"},{key:"isDetailOpen",label:"Is Detail Open",type:"json",description:"Whether the detail under a row is open: the chevron's direction and `aria-expanded`.",code:!0,group:"advanced"},{key:"hasDetail",label:"Has Detail",type:"json",description:"Whether a row has a detail to open; the chevron is left out where this returns false.",code:!0,group:"advanced"},{key:"serverGroup",label:"Server Group",type:"json",description:"Server-side group / tree keyboard + accessibility, built into the grid. When set, the grid uses the treegrid role and marks matching rows with `aria-level` / `aria-expanded`, and ArrowRight / ArrowLeft expand / collapse the focused group row (no app-level key handling). Pair with `serverGroupRows` + `SvGroupCell` from `@svgrid/enterprise` for the visual expander, or drive it from your own tree state. Every accessor receives the row data.",group:"common"},{key:"serverFilterValues",label:"Server Filter Values",type:"json",description:"Server-side set-filter values. When set, a column's filter checklist is populated by fetching the distinct values from the server (once per column, cached) instead of deriving them from the loaded page - so the checklist shows every value, not just those on screen. Return the distinct string values for the column id.",code:!0,group:"advanced"},{key:"pinnedTopRows",label:"Pinned Top Rows",type:"json",description:'Rows to pin to the TOP of the grid - rendered above the regular rows and sticky-positioned so they stay visible while the user scrolls. Typical use: a "totals" or "headline" row that should always be in view. Rows are read-only (no inline editing, no row-selection checkbox). They share the column schema with the main grid; field/format/cell/cellClass all apply.',group:"common"},{key:"frozenRows",label:"Frozen Rows",type:"number",description:"Freeze the first N rows: they stay under the header while the body scrolls, and unlike `pinnedTopRows` they are the grid's own rows, still editable, selectable and numbered as rows 1..N. Excel's Freeze Panes, for the row half; the column half is `columnPinning`. Under `virtualization` the frozen rows are always rendered and the window skips them.",group:"common"},{key:"stickyGroupRows",label:"Sticky Group Rows",type:"boolean",description:"Keep the group a row belongs to in view: while the rows of an open group scroll past, the group's row (and its parents' rows) stay under the header, the way a section heading stays put in a long list, so a screen deep inside a 60,000-row group still says which group it is. Works for server-side groups (`rowModel` / `serverGroup`), client grouping and tree data. Under `virtualization` the band shows a copy of each ancestor row; without it the rows themselves stick. Off by default.",group:"common"},{key:"mergedCells",label:"Merged Cells",type:"json",description:"Merged cells: rectangles drawn as one cell, a spreadsheet's Merge & Center. Each entry is the top-left cell (display indices) and how many rows and columns it covers. The origin's td takes the span and shows the origin's value; the covered cells are not drawn, a selection grows to whole merges, the active cell inside a merge is its origin, and the arrow keys step over a merge as one cell. A merge that crosses the frozen boundary or the rendered window is drawn in parts, one per band. The grid does not write into covered cells on its own; a consumer that merges cells keeps them empty or marks them read-only through the column's `editable`.",group:"common"},{key:"rowLayout",label:"Row Layout",type:"select",options:["flex","table"],description:"How rows are laid out. `'flex'` (the default) draws each row as a line of fixed-width cells, so adding or removing cells in one row - what a horizontal scroll does every frame - lays out that row only. `'table'` uses the HTML table algorithm, which re-lays every row on such a change but can draw a merged cell spanning rows; the grid switches to it on its own when `mergedCells` has one.",group:"common"},{key:"pinnedBottomRows",label:"Pinned Bottom Rows",type:"json",description:'Rows to pin to the BOTTOM of the grid - rendered below the regular rows and sticky-positioned (sticks to the bottom of the viewport while the user scrolls). Typical use: a "page totals" or "grand total" row computed from `getDisplayedRows()`.',group:"common"},{key:"enableColumnReorder",label:"Enable Column Reorder",type:"boolean",description:"Enables drag-to-reorder on the grid's column headers. When `true`, every header gets `draggable=true` and a drop indicator paints between headers during a drag. On drop the grid mutates its internal column order and fires `onColumnOrderChange` with the new order. Defaults to `false`.",group:"common"},{key:"columnOrder",label:"Column Order",type:"json",description:"Initial column order, by `id` (falls back to `field`). When the user reorders columns, this is the starting state. After mount, the grid owns the order internally and emits `onColumnOrderChange` on every change - persist that to `localStorage` to restore.",group:"common"},{key:"inferColumnTypes",label:"Infer Column Types",type:"boolean",description:"Infer each column's data type (number / boolean / date / ISO date-string / text) from the first data row, for columns that declare neither an explicit `editorType` nor a `cellDataType`. Sets the matching editor, alignment, date format, and filter operators automatically. Explicit column config always wins. Defaults to `false`.",group:"common"},{key:"rowDragManaged",label:"Row Drag Managed",type:"boolean",description:"Enables managed row dragging. When `true`, a row is dragged by its row-number cell (a grip shows while it is hovered), or by any cell when row numbers are off, and a drop indicator paints between rows during a drag. On drop the grid mutates its own internal data - reordering within the grid, or moving the row across grids that share the same . Defaults to `false`.",group:"common"},{key:"rowDragGroup",label:"Row Drag Group",type:"string",description:"Connection group for cross-grid row dragging. Grids that share the same non-empty `rowDragGroup` string (and have `rowDragManaged` on) can exchange rows: dragging a row out of one and dropping it into another removes it from the source and inserts it into the target. Omit to keep dragging confined to reordering within a single grid.",group:"common"},{key:"alignedGridGroup",label:"Aligned Grid Group",type:"string",description:"Align this grid with others that share the same non-empty `alignedGridGroup` string: horizontal scroll and column-resize widths are kept in lockstep across every grid in the group. Use for a totals/header grid above a body grid, or side-by-side comparison grids that must line up. The grids should declare the same columns (matched by id) for widths to map.",group:"common"},{key:"filterLocale",label:"Filter Locale",type:"string",description:'BCP-47 locale tag (or array of fallbacks) used for accent- and case-insensitive text filtering / sorting / search. Powered by `Intl.Collator` with `sensitivity: \'base\'`, so "cafe", "Café" and "CAFÉ" all match "cafe" without strain. Defaults to the browser\'s locale.',group:"common"}],events:[{key:"pivotModeChange",label:"Pivot Mode Change",prop:"onPivotModeChange",description:"Fired when the in-grid Pivot toggle flips `pivotMode`."},{key:"rowAdd",label:"Row Add",prop:"onRowAdd",description:"Fires after the row adder appended a row, with that row. Persist it here."},{key:"columnAdd",label:"Column Add",prop:"onColumnAdd",description:"A field was added (column adder, Insert, Duplicate). `columns` is the whole column list after the change, as declared (store it as your `columns`); `data` is set when values were written too."},{key:"columnChange",label:"Column Change",prop:"onColumnChange",description:"A field was edited. `columns` as in `onColumnAdd`; `data` is set when a type change converted its values."},{key:"columnRemove",label:"Column Remove",prop:"onColumnRemove",description:"A field was deleted from the column menu (its values stay in the rows). `columns` as in `onColumnAdd`."},{key:"rowsDelete",label:"Rows Delete",prop:"onRowsDelete",description:"Rows were deleted from the selection bar's Delete (`deleteRows`): the rows and their ids, and the data without them, to store."},{key:"rowColorChange",label:"Row Color Change",prop:"onRowColorChange",description:'The rows were set to be colored by another field, or no longer colored, from a single select\'s column menu ("Color rows by this field" with `fieldMenu`). Store it and pass it back as `rowColor`.'},{key:"expandedChange",label:"Expanded Change",prop:"onExpandedChange",description:"Fired whenever the expanded set changes - chevron clicks, `api.setRowExpanded()`, `expandAllGroups()` / `collapseAllGroups()`. Receives the full next map, so it can be written straight back into `expanded` for a controlled setup."},{key:"paginationChange",label:"Pagination Change",prop:"onPaginationChange",description:"Fires when the user changes page or page size while `externalPagination` is on. Fetch that page and update `data` / `rowCount` / `pageIndex`."},{key:"columnResize",label:"Column Resize",prop:"onColumnResize",description:"The user dragged a column's edge (or double-clicked it to autosize). Programmatic `api.setColumnWidth` does not fire it."},{key:"rowResize",label:"Row Resize",prop:"onRowResize",description:"The user dragged a row's edge, or double-clicked it: `height` is then `null`, the row back at its declared height. Programmatic `api.setRowHeight` does not fire it."},{key:"pasteClipboard",label:"Paste Clipboard",prop:"onPasteClipboard",description:"Take over a paste. Receives the clipboard's `text/plain` and, when the source put one there, its `text/html` (Excel's carries formats and formulas; a grid's own `clipboardHtml` carries whatever it chose to). Return `true` to say the paste was applied; anything else lets the grid paste the text as it always has. Runs inside one history group, so every `setCellValue` and `recordUndo` the handler makes is one Ctrl+Z. With this set, Ctrl+V lets the browser's own `paste` event through (that is where the unsanitised HTML is), and the async Clipboard API is the fallback for a browser that does not deliver it. `source` says which path the payload came by."},{key:"pasteOverflow",label:"Paste Overflow",prop:"onPasteOverflow",description:"A paste that runs past the last row: the lines there is no row for, split into cells, and the column index the first cell of each belongs to. Without it they are dropped. Runs inside the paste's undo step."},{key:"apiReady",label:"Api Ready",prop:"onApiReady",description:"Receives the imperative grid API once the component has mounted."},{key:"rowSelectionChange",label:"Row Selection Change",prop:"onRowSelectionChange",description:"Fires whenever the row-selection state changes. The first argument is the new selection record `{ [rowId]: true }`; the second is the array of selected `TData` rows."},{key:"cellSelectionChange",label:"Cell Selection Change",prop:"onCellSelectionChange",description:"Fires whenever the cell selection changes (mouse, keyboard, or `api.selectCells()`). `ranges` is every selected rectangle, matching `api.getSelected()`: the ones a Ctrl+click committed and the active one last, each `[rowStart, colStart, rowEnd, colEnd]` in grid coords. Empty array when the user clears the selection."},{key:"sortingChange",label:"Sorting Change",prop:"onSortingChange",description:"Fires whenever the sort clauses change. Receives the new array of `{ id, desc }` entries. Pair with `externalSort={true}` when the consumer wants to own the row ordering."},{key:"advancedFilterChange",label:"Advanced Filter Change",prop:"onAdvancedFilterChange",description:"Fires whenever the advanced-filter expression changes, whatever changed it: `api.setAdvancedFilter()`, `clearAllFilters()`, or the toolbar's clear control. The panel that authors the expression is mounted by you, outside the grid, so it cannot see a change the grid made on its own. Without this, clearing from the toolbar leaves that panel showing a filter the grid is no longer applying. Feed this back into the panel's `expression` prop to keep them agreeing."},{key:"filtersChange",label:"Filters Change",prop:"onFiltersChange",description:"Fires whenever any of the in-grid filter state changes - global search, per-column operator filters, or facet (value-checklist) filters. Pair with `externalFilter={true}` when the consumer wants to push the query to the server."},{key:"noteChange",label:"Note Change",prop:"onNoteChange",description:"Fires when a comment is saved or removed (removed = empty `note`)."},{key:"cellValueChange",label:"Cell Value Change",prop:"onCellValueChange",description:"Fires after an inline edit commits, with the cell's old and new value and the row it belongs to. This is where you persist the change. The grid has already applied the edit to its own state by the time this runs, so it is a notification, not a veto - reject a value with the column's `valueParser` or a validation rule instead."},{key:"activeCellChange",label:"Active Cell Change",prop:"onActiveCellChange",description:"Fires whenever the active cell changes - click, keyboard move, tab, page-up/down, etc. Consumers (toolbars, ribbon UIs) use this to stay synced with the grid's selection without polling the DOM."},{key:"cellClick",label:"Cell Click",prop:"onCellClick",description:"Fires when a data cell (and therefore a row) is single-clicked. Group-header rows are excluded. `value` is the displayed cell value."},{key:"rowClick",label:"Row Click",prop:"onRowClick",description:"Fires when a data row is single-clicked (any cell). Group rows excluded."},{key:"cellDoubleClick",label:"Cell Double Click",prop:"onCellDoubleClick",description:"Fires when a data cell is double-clicked - independent of whether the cell is editable, so it fires even on read-only grids. Group rows excluded."},{key:"rowDoubleClick",label:"Row Double Click",prop:"onRowDoubleClick",description:"Fires when a data row is double-clicked (any cell). Group rows excluded."},{key:"scrollBottomReached",label:"Scroll Bottom Reached",prop:"onScrollBottomReached",description:"Fires once each time the body is scrolled to (within ~32px of) the bottom. Re-arms after the user scrolls back up. The canonical hook for infinite / lazy loading - append more rows to `data` when it fires."},{key:"visibleRangeChange",label:"Visible Range Change",prop:"onVisibleRangeChange",description:'Fires when the range of rows on screen changes, with the first and last row INDEX (not pixels). Coalesced to one call per frame, so it is cheap to wire to something that fetches. This is the hook a block-loading data source needs and `onScrollBottomReached` cannot give it: "the user is looking at rows 4,000-4,020" answers which block to fetch and which to keep, while "they hit the bottom" only ever means "append more". Both are free; use this one with `createServerDataSource({ mode: \'infinite\' })`, or let `rowModel` wire it for you. Reports `0, data.length - 1` when virtualization is off, since every row really is rendered.'},{key:"retryRow",label:"Retry Row",prop:"onRetryRow",description:'Called by the Retry button on a `"failed"` placeholder row.'},{key:"detailToggle",label:"Detail Toggle",prop:"onDetailToggle",description:"Open or close the detail under a row. The chevron of `showDetailToggle` and Ctrl+Enter on a row call it; you keep the open set and insert or remove the detail row in `data`. A server row model supplies its own (the `rowModel` prop wires `toggleDetail`), so this is the client side."},{key:"columnOrderChange",label:"Column Order Change",prop:"onColumnOrderChange",description:"Fires every time the column order changes (drag or `api.setColumnOrder`)."},{key:"columnVisibilityChange",label:"Column Visibility Change",prop:"onColumnVisibilityChange",description:"Fires when the set of hidden columns changes: the column menu, `api.setColumnVisible`, or `api.setState`. Gets the ids of the hidden columns, the same list as `api.getState().hiddenColumns`. Mounting is not reported, so columns declared `visible: false` do not fire it."},{key:"columnPinningChange",label:"Column Pinning Change",prop:"onColumnPinningChange",description:"Fires when a column is pinned or unpinned, from the column menu, `api.setColumnPinning`, or `api.setState`. Gets the same shape as `api.getState().columnPinning`. Mounting is not reported."},{key:"rowDragEnd",label:"Row Drag End",prop:"onRowDragEnd",description:"Fires on the TARGET grid after a managed row drag settles, with the moved row, its landing index, whether it stayed in the same grid, and the source / target grid ids. Use it to mirror the move into your own state (persistence, server sync). The grid has already applied the change to its internal data by the time this fires."},{key:"rowDrop",label:"Row Drop",prop:"onRowDrop",description:"Take the drop yourself. With this set the grid keeps the drag affordance and the drop indicator but does not touch its data: the handler gets the dragged row, the row it landed on (null for the empty space below the rows) and the side - `before` / `after`, or `into` when it landed on the middle of a group or tree row, which makes it that row's child. The path for a `rowModel`, whose rows the grid does not own: hand the move to the model (`moveRow`) or to your server. Only fires within one grid; a drop from another grid stays managed."}]}},zr=[{key:"click",label:"Click",dom:"click",description:"The component (or a child) was clicked."},{key:"dblclick",label:"Double click",dom:"dblclick",description:"The component was double-clicked."},{key:"change",label:"Change",dom:"change",description:"A committed value change (fires on blur for inputs)."},{key:"input",label:"Input",dom:"input",description:"Fires on every keystroke / immediate value edit."},{key:"focus",label:"Focus",dom:"focusin",description:"The component (or a child) gained focus."},{key:"blur",label:"Blur",dom:"focusout",description:"The component (or a child) lost focus."},{key:"keydown",label:"Key down",dom:"keydown",description:"A key was pressed while focused."},{key:"keyup",label:"Key up",dom:"keyup",description:"A key was released while focused."},{key:"contextmenu",label:"Context menu",dom:"contextmenu",description:"Right-click / context-menu request."},{key:"mouseenter",label:"Mouse enter",dom:"mouseenter",description:"The pointer entered the component."},{key:"mouseleave",label:"Mouse leave",dom:"mouseleave",description:"The pointer left the component."}],Yd=[{key:"button",label:"Button",category:"Actions",importName:"SvButton",props:[{key:"variant",label:"Variant",type:"select",options:["primary","secondary","outline","ghost","danger"],default:"primary"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"block",label:"Full width",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Label",contentDefault:"Click me"},{key:"badge",label:"Badge",category:"Feedback",importName:"SvBadge",props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md"},{key:"pill",label:"Pill shape",type:"boolean",default:!0},{key:"dot",label:"Show dot",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Text",contentDefault:"Badge"},{key:"alert",label:"Alert",category:"Feedback",importName:"SvAlert",props:[{key:"variant",label:"Variant",type:"select",options:["info","success","warning","danger","neutral"],default:"info"},{key:"title",label:"Title",type:"string"},{key:"dismissible",label:"Dismissible",type:"boolean",default:!1},{key:"soft",label:"Soft (tinted) style",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Message",contentDefault:"This is an alert message."},{key:"progress",label:"Progress bar",category:"Feedback",importName:"SvProgress",props:[{key:"value",label:"Value",type:"number",default:60},{key:"max",label:"Max",type:"number",default:100},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"showLabel",label:"Show percentage",type:"boolean",default:!1},{key:"striped",label:"Striped",type:"boolean",default:!1}]},{key:"card",label:"Card",category:"Layout",importName:"SvCard",props:[{key:"title",label:"Title",type:"string",default:"Card title"},{key:"subtitle",label:"Subtitle",type:"string"},{key:"hoverable",label:"Hover elevation",type:"boolean",default:!1},{key:"flush",label:"Flush padding",type:"boolean",default:!1}]},{key:"divider",label:"Divider",category:"Layout",importName:"SvDivider",props:[{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal"},{key:"label",label:"Label",type:"string"},{key:"align",label:"Label align",type:"select",options:["start","center","end"],default:"center"},{key:"dashed",label:"Dashed",type:"boolean",default:!1}]},{key:"avatar",label:"Avatar",category:"Display",importName:"SvAvatar",props:[{key:"name",label:"Name",type:"string",default:"Jordan Lee"},{key:"src",label:"Image URL",type:"string"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"shape",label:"Shape",type:"select",options:["circle","square"],default:"circle"},{key:"status",label:"Status",type:"select",options:["","online","offline","busy","away"],default:""},{key:"color",label:"Color override",type:"color"}]},{key:"stat",label:"Stat",category:"Display",importName:"SvStat",props:[{key:"label",label:"Label",type:"string",default:"Revenue"},{key:"value",label:"Value",type:"string",default:"$48,200"},{key:"delta",label:"Delta",type:"string"},{key:"trend",label:"Trend",type:"select",options:["","up","down","flat"],default:""},{key:"hint",label:"Hint",type:"string"},{key:"invert",label:"Invert trend colors",type:"boolean",default:!1}]},{key:"toggle-button",label:"Toggle button",category:"Actions",importName:"SvToggleButton",props:[{key:"pressed",label:"Pressed",type:"boolean",default:!1},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Label",contentDefault:"Toggle"},{key:"switch",label:"Switch",category:"Actions",importName:"SvSwitchButton",props:[{key:"checked",label:"On",type:"boolean",default:!0},{key:"label",label:"Field label",type:"string"},{key:"onLabel",label:"On label",type:"string",default:"On"},{key:"offLabel",label:"Off label",type:"string",default:"Off"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"text-input",label:"Text input",category:"Inputs",importName:"SvTextInput",props:[{key:"label",label:"Label",type:"string",default:"Name"},{key:"placeholder",label:"Placeholder",type:"string",default:"Type here…"},{key:"type",label:"Type",type:"select",options:["text","email","url","tel","search"],default:"text"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"clearable",label:"Clearable",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1},{key:"readonly",label:"Read only",type:"boolean",default:!1}]},{key:"textarea",label:"Text area",category:"Inputs",importName:"SvTextArea",props:[{key:"label",label:"Label",type:"string",default:"Notes"},{key:"placeholder",label:"Placeholder",type:"string",default:"Write something…"},{key:"rows",label:"Rows",type:"number",default:3},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"number-input",label:"Number input",category:"Inputs",importName:"SvNumberInput",props:[{key:"label",label:"Label",type:"string",default:"Amount"},{key:"placeholder",label:"Placeholder",type:"string"},{key:"min",label:"Min",type:"number"},{key:"max",label:"Max",type:"number"},{key:"step",label:"Step",type:"number",default:1},{key:"prefix",label:"Prefix",type:"string"},{key:"suffix",label:"Suffix",type:"string"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"password-input",label:"Password input",category:"Inputs",importName:"SvPasswordInput",props:[{key:"label",label:"Label",type:"string",default:"Password"},{key:"placeholder",label:"Placeholder",type:"string",default:"••••••••"},{key:"revealable",label:"Reveal toggle",type:"boolean",default:!0},{key:"showStrength",label:"Strength meter",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"color-input",label:"Color input",category:"Inputs",importName:"SvColorInput",props:[{key:"label",label:"Label",type:"string",default:"Brand color"},{key:"value",label:"Value",type:"color",default:"#6366f1"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"checkbox",label:"Checkbox",category:"Inputs",importName:"SvCheckBox",props:[{key:"checked",label:"Checked",type:"boolean",default:!0},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Label",contentDefault:"I agree to the terms"},{key:"rating",label:"Rating",category:"Inputs",importName:"SvRating",props:[{key:"value",label:"Value",type:"number",default:3},{key:"max",label:"Stars",type:"number",default:5},{key:"allowHalf",label:"Allow half",type:"boolean",default:!1},{key:"readOnly",label:"Read only",type:"boolean",default:!1},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}]},{key:"slider",label:"Slider",category:"Inputs",importName:"SvSlider",props:[{key:"value",label:"Value",type:"number",default:50},{key:"min",label:"Min",type:"number",default:0},{key:"max",label:"Max",type:"number",default:100},{key:"step",label:"Step",type:"number",default:1},{key:"showValue",label:"Show value",type:"boolean",default:!1},{key:"labels",label:"Tick labels",type:"select",options:["none","endpoints","all"],default:"none"}]},{key:"otp-input",label:"OTP input",category:"Inputs",importName:"SvOtpInput",props:[{key:"label",label:"Label",type:"string",default:"Verification code"},{key:"length",label:"Digits",type:"number",default:6},{key:"mask",label:"Mask input",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"circular-progress",label:"Circular progress",category:"Feedback",importName:"SvCircularProgress",props:[{key:"value",label:"Value",type:"number",default:66},{key:"max",label:"Max",type:"number",default:100},{key:"size",label:"Diameter (px)",type:"number",default:52},{key:"thickness",label:"Thickness",type:"number",default:4},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent"},{key:"showLabel",label:"Show percentage",type:"boolean",default:!0},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1}]},{key:"skeleton",label:"Skeleton",category:"Feedback",importName:"SvSkeleton",props:[{key:"variant",label:"Variant",type:"select",options:["text","rect","circle"],default:"text"},{key:"lines",label:"Lines (text)",type:"number",default:3},{key:"width",label:"Width (CSS)",type:"string"},{key:"height",label:"Height (CSS)",type:"string"},{key:"animated",label:"Animated",type:"boolean",default:!0}]},{key:"chip",label:"Chip",category:"Display",importName:"SvChip",props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md"},{key:"solid",label:"Solid",type:"boolean",default:!1},{key:"removable",label:"Removable",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Text",contentDefault:"Chip"},{key:"empty-state",label:"Empty state",category:"Display",importName:"SvEmptyState",props:[{key:"title",label:"Title",type:"string",default:"No results yet"},{key:"description",label:"Description",type:"string",default:"Try adjusting your filters or add a new record."},{key:"compact",label:"Compact",type:"boolean",default:!1}]},{key:"timeline",label:"Timeline",category:"Display",importName:"SvTimeline",props:[],fixed:[{key:"items",expr:"[{ title: 'Order placed', time: '09:12', color: '#16a34a' }, { title: 'Packed', time: '11:30', description: 'Ready to ship' }, { title: 'Shipped', time: '14:40', color: '#6366f1' }, { title: 'Delivered', time: '17:05' }]",preview:[{title:"Order placed",time:"09:12",color:"#16a34a"},{title:"Packed",time:"11:30",description:"Ready to ship"},{title:"Shipped",time:"14:40",color:"#6366f1"},{title:"Delivered",time:"17:05"}]}]},{key:"sparkline",label:"Sparkline",category:"Display",importName:"SvSparkline",props:[{key:"type",label:"Type",type:"select",options:["line","area","bar","winloss"],default:"area"},{key:"color",label:"Color",type:"color",default:"#6366f1"},{key:"width",label:"Width (px)",type:"number",default:120},{key:"height",label:"Height (px)",type:"number",default:32}],fixed:[{key:"data",expr:"[4, 8, 5, 9, 7, 11, 8, 13, 10, 15]",preview:[4,8,5,9,7,11,8,13,10,15]}]},{key:"avatar-group",label:"Avatar group",category:"Display",importName:"SvAvatarGroup",props:[{key:"max",label:"Max shown",type:"number",default:4},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}],fixed:[{key:"avatars",expr:"[{ name: 'Jordan Lee' }, { name: 'Sam Rivera' }, { name: 'Alex Kim' }, { name: 'Priya Patel' }, { name: 'Chris Diaz' }]",preview:[{name:"Jordan Lee"},{name:"Sam Rivera"},{name:"Alex Kim"},{name:"Priya Patel"},{name:"Chris Diaz"}]}]},{key:"pagination",label:"Pagination",category:"Navigation",importName:"SvPagination",props:[{key:"page",label:"Current page",type:"number",default:1},{key:"pageCount",label:"Page count",type:"number",default:5},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"showFirstLast",label:"First / last",type:"boolean",default:!0},{key:"showPrevNext",label:"Prev / next",type:"boolean",default:!0},{key:"siblingCount",label:"Sibling count",type:"number",default:1}]},{key:"breadcrumb",label:"Breadcrumb",category:"Navigation",importName:"SvBreadcrumb",props:[],fixed:[{key:"items",expr:"[{ label: 'Home', href: '/' }, { label: 'Orders', href: '/orders' }, { label: '#1024' }]",preview:[{label:"Home",href:"/"},{label:"Orders",href:"/orders"},{label:"#1024"}]}]},{key:"stepper",label:"Stepper",category:"Navigation",importName:"SvStepper",props:[{key:"current",label:"Current step",type:"number",default:1},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal"},{key:"linear",label:"Linear",type:"boolean",default:!0}],fixed:[{key:"steps",expr:"[{ label: 'Cart' }, { label: 'Shipping' }, { label: 'Payment' }, { label: 'Review' }]",preview:[{label:"Cart"},{label:"Shipping"},{label:"Payment"},{label:"Review"}]}]},{key:"masked-input",label:"Masked input",category:"Inputs",importName:"SvMaskedInput",props:[]},{key:"phone-input",label:"Phone input",category:"Inputs",importName:"SvPhoneInput",props:[]},{key:"tags-input",label:"Tags input",category:"Inputs",importName:"SvTagsInput",props:[{key:"value",label:"Tags",type:"json",default:["svelte","grid"]}]},{key:"duration-input",label:"Duration input",category:"Inputs",importName:"SvDurationInput",props:[]},{key:"radio-group",label:"Radio group",category:"Inputs",importName:"SvRadioGroup",props:[{key:"options",label:"Options",type:"json",default:[{value:"a",label:"Option A"},{value:"b",label:"Option B"},{value:"c",label:"Option C"}]}]},{key:"button-group",label:"Button group",category:"Actions",importName:"SvButtonGroup",props:[{key:"items",label:"Items",type:"json",default:[{value:"day",label:"Day"},{value:"week",label:"Week"},{value:"month",label:"Month"}]}]},{key:"list-box",label:"List box",category:"Inputs",importName:"SvListBox",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"dropdown-list",label:"Dropdown list",category:"Inputs",importName:"SvDropDownList",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"combo-box",label:"Combo box",category:"Inputs",importName:"SvComboBox",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"auto-complete",label:"Auto complete",category:"Inputs",importName:"SvAutoComplete",props:[{key:"options",label:"Options",type:"json",default:[{value:"red",label:"Red"},{value:"green",label:"Green"},{value:"blue",label:"Blue"}]}]},{key:"multi-select",label:"Multi select",category:"Inputs",importName:"SvMultiSelect",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"repeat-button",label:"Repeat button",category:"Actions",importName:"SvRepeatButton",props:[],hasContent:!0,contentLabel:"Label",contentDefault:"Hold me"},{key:"rich-text",label:"Rich text editor",category:"Inputs",importName:"SvRichText",props:[]},{key:"tree",label:"Tree",category:"Display",importName:"SvTree",props:[{key:"nodes",label:"Nodes",type:"json",default:[{id:"1",label:"Documents",children:[{id:"1-1",label:"Reports"},{id:"1-2",label:"Invoices"}]},{id:"2",label:"Pictures"}]}]},{key:"country-input",label:"Country input",category:"Inputs",importName:"SvCountryInput",props:[]},{key:"title",label:"Heading",category:"Display",importName:"SvTitle",props:[{key:"size",label:"Level",type:"select",options:["1","2","3","4","5","6"],default:"2"}],hasContent:!0,contentLabel:"Text",contentDefault:"Section heading"},{key:"text",label:"Text",category:"Display",importName:"SvText",props:[{key:"size",label:"Size",type:"select",options:["xs","sm","md","lg","xl"],default:"md"},{key:"weight",label:"Weight",type:"select",options:["normal","medium","semibold","bold"],default:"normal"},{key:"tone",label:"Tone",type:"select",options:["default","muted","accent","success","warning","error"],default:"default"}],hasContent:!0,contentLabel:"Text",contentDefault:"Body text."},{key:"anchor",label:"Link",category:"Display",importName:"SvAnchor",props:[{key:"href",label:"URL",type:"string",default:"#"},{key:"tone",label:"Tone",type:"select",options:["accent","default","muted"],default:"accent"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}],hasContent:!0,contentLabel:"Label",contentDefault:"Read more"},{key:"blockquote",label:"Quote",category:"Display",importName:"SvBlockquote",props:[],hasContent:!0,contentLabel:"Quote",contentDefault:"A quoted passage."},{key:"code",label:"Inline code",category:"Display",importName:"SvCode",props:[],hasContent:!0,contentLabel:"Code",contentDefault:"npm install"},{key:"kbd",label:"Keyboard key",category:"Display",importName:"SvKbd",props:[{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md"}],hasContent:!0,contentLabel:"Key",contentDefault:"Ctrl"},{key:"mark",label:"Highlight",category:"Display",importName:"SvMark",props:[{key:"tone",label:"Tone",type:"select",options:["yellow","accent","success","warning","error"],default:"yellow"}],hasContent:!0,contentLabel:"Text",contentDefault:"highlighted"},{key:"list",label:"List",category:"Display",importName:"SvList",props:[],fixed:[{key:"items",expr:"['First item', 'Second item', 'Third item']",preview:["First item","Second item","Third item"]}]},{key:"spinner",label:"Spinner",category:"Feedback",importName:"SvSpinner",props:[{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}]},{key:"loading-overlay",label:"Loading overlay",category:"Feedback",importName:"SvLoadingOverlay",props:[{key:"visible",label:"Visible",type:"boolean",default:!0},{key:"label",label:"Label",type:"string",default:"Loading..."}]},{key:"result",label:"Result",category:"Feedback",importName:"SvResult",props:[{key:"status",label:"Status",type:"select",options:["success","error","warning","info"],default:"success"},{key:"title",label:"Title",type:"string",default:"All done"}]},{key:"collapsible",label:"Collapsible",category:"Layout",importName:"SvCollapsible",props:[{key:"title",label:"Title",type:"string",default:"Details"},{key:"open",label:"Open",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Content",contentDefault:"Hidden until expanded."},{key:"carousel",label:"Carousel",category:"Layout",importName:"SvCarousel",props:[]},{key:"date-time-picker",label:"Date & time picker",category:"Inputs",importName:"SvDateTimePicker",props:[]},{key:"time-picker",label:"Time picker",category:"Inputs",importName:"SvTimePicker",props:[]},{key:"date-range-input",label:"Date range",category:"Inputs",importName:"SvDateRangeInput",props:[]},{key:"segmented",label:"Segmented control",category:"Inputs",importName:"SvSegmented",props:[{key:"options",label:"Options",type:"json",default:[{value:"day",label:"Day"},{value:"week",label:"Week"},{value:"month",label:"Month"}]}]},{key:"tree-select",label:"Tree select",category:"Inputs",importName:"SvTreeSelect",props:[{key:"nodes",label:"Nodes",type:"json",default:[{id:"1",label:"Europe",children:[{id:"1-1",label:"France"},{id:"1-2",label:"Spain"}]},{id:"2",label:"Asia"}]}]},{key:"file-upload",label:"File upload",category:"Inputs",importName:"SvFileUpload",props:[]}],Jn={common:0,appearance:1,behavior:2,advanced:3};function Qd(e){const t=qr[e.importName];if(!t)return e;const a=new Set([...e.hiddenProps??[],...(e.fixed??[]).map(l=>l.key),"_content"]),r=new Map(t.props.map(l=>[l.key,l])),o=e.props.filter(l=>!a.has(l.key)).map(l=>{const c=r.get(l.key);return c?{...c,...l,description:l.description??c.description,group:l.group??c.group}:l}),n=new Set(o.map(l=>l.key)),i=t.props.filter(l=>!a.has(l.key)&&!n.has(l.key)).map(l=>({...l})).sort((l,c)=>Jn[l.group??"common"]-Jn[c.group??"common"]),s=new Map((e.events??[]).map(l=>[l.key,l])),d=[...t.events.map(l=>({...l,...s.get(l.key)??{}})),...(e.events??[]).filter(l=>!t.events.some(c=>c.key===l.key))];return{...e,props:[...o,...i],events:d}}var Br=Yd.map(Qd);function Ie(e){return Br.find(t=>t.key===e)}var Zn=new Set(["data","columns","board","scheduler","loading","loadingOverlay","emptyMessage","fitColumns","sortable","externalSort","filterable","externalFilter","filterMode","showGlobalFilter","showColumnFilters","showFilterRow","showFilterMenu","showGroupingControls","groupable","showRowSelection","selectionMode","enableCellSelection","enableRowSummaries","zebraRows","showPagination","pageable","externalPagination","rowCount","pageIndex","pageSize","pageSizeOptions","paginationPosition","rowHeight","containerHeight","columnVirtualization","initialColumnPinning","conditionalFormats","features","editable","enableInlineEditing","icons"]);function Xd(){const e=qr.SvGrid;if(!e)return[];const t={common:0,appearance:1,behavior:2,advanced:3};return e.props.filter(a=>!Zn.has(a.key)).map(a=>({...a})).sort((a,r)=>t[a.group??"common"]-t[r.group??"common"]||a.label.localeCompare(r.label))}var Yn=[{label:"Header + column menu",match:e=>["sort","sort-asc","sort-desc","filter","menu","chevron-down","chevron-right","autosize","columns","reset"].includes(e)},{label:"Filter operators",match:e=>e.startsWith("op-")},{label:"Pinning",match:e=>e==="pin-left"||e==="pin-right"||e==="unpin"},{label:"Rows + grouping",match:e=>["group","group-add","row-number","pinned-row-top","pinned-row-bottom","drag-handle","breadcrumb-separator"].includes(e)},{label:"Toolbar + overlays",match:e=>["search","tool-panel","chart","advanced-filter","column-group-caret","no-rows","no-rows-filtered"].includes(e)},{label:"Pager",match:e=>e.startsWith("page-")},{label:"Find + move",match:e=>e.startsWith("find-")||e.startsWith("move-")},{label:"Close + clear",match:e=>["x","close","clear","remove"].includes(e)},{label:"Other",match:()=>!0}];function ec(e){return Yn.map((t,a)=>({label:t.label,names:e.filter(r=>Yn.findIndex(o=>o.match(r))===a)})).filter(t=>t.names.length)}var tc=new Set(["data","columns","features","loading","onApiReady","externalSort","externalFilter","externalPagination","rowCount","pageIndex","initialSorting","initialColumnPinning","initialHiddenColumns","columnOrder"]);function Ur(){const e=qr.SvGrid;return e?e.props.filter(t=>!tc.has(t.key)&&!t.code&&!/^on[A-Z]/.test(t.key)).map(t=>({...t})).sort((t,a)=>t.key.localeCompare(a.key)):[]}var Kr=["chart","kpi","gauge","dashboard","pivot","tree","component"],Qn=Kr,ac=["chart","kpi","gauge","dashboard","pivot","tree"];function se(e){const t=[];for(const a of e){if(t.push(a),a.config.kind==="tabs")for(const r of a.config.tabs)t.push(...se(r.blocks));if(a.config.kind==="accordion")for(const r of a.config.sections)t.push(...se(r.blocks))}return t}function Ta(e){return(e??"").replace(/[^a-zA-Z0-9 _-]/g,"").trim().replace(/\s+/g," ").slice(0,120)}function Xn(e){return Ta(e.className)}var ei=e=>Math.max(1,Math.min(12,Math.round(e.colSpan??(e.span!=null?e.span*4:12)))),rc=e=>e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,"").slice(0,64);function ti(e){if(!e)return"";const t=[];return e.border===!0?t.push("border: 1px solid var(--sg-border, #e6e8ec)"):e.border===!1&&t.push("border: none"),e.shadow===!0?t.push("box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06)"):e.shadow===!1&&t.push("box-shadow: none"),typeof e.padding=="number"&&t.push(`padding: ${e.padding}px`),typeof e.margin=="number"&&t.push(`margin: ${e.margin}px`),e.background&&t.push(`background: ${rc(e.background)}`),typeof e.radius=="number"&&t.push(`border-radius: ${e.radius}px`),t.join("; ")}function ai(e,t){const a={...e,...t};for(const r of Object.keys(a))a[r]===void 0&&delete a[r];return Object.keys(a).length?a:void 0}var Ht="onLoad",Ia="onDestroy",oc=e=>`click:${e}`,ri=e=>`rowSelect:${e}`,nc=e=>`change:${e}`,oi=(e,t)=>`${e}:${t}`,ni="formSubmit",Vt=[{key:"rowClick",method:"onRowClick",prop:"onRowClick",builtin:!0,desc:"A data row is single-clicked.",params:"e: { rowIndex: number; columnId: string; row: Row }"},{key:"rowDoubleClick",method:"onRowDoubleClick",prop:"onRowDoubleClick",builtin:!0,desc:"A data row is double-clicked.",params:"e: { rowIndex: number; columnId: string; row: Row }"},{key:"cellClick",method:"onCellClick",prop:"onCellClick",builtin:!1,desc:"A data cell is single-clicked.",params:"e: { rowIndex: number; colIndex: number; columnId: string; value: unknown; row: Row }"},{key:"cellDoubleClick",method:"onCellDoubleClick",prop:"onCellDoubleClick",builtin:!1,desc:"A data cell is double-clicked.",params:"e: { rowIndex: number; colIndex: number; columnId: string; value: unknown; row: Row }"},{key:"rowSelectionChange",method:"onRowSelectionChange",prop:"onRowSelectionChange",builtin:!1,desc:"The row selection changes.",params:"selection: Record<string, boolean>, rows: Row[]"},{key:"cellSelectionChange",method:"onCellSelectionChange",prop:"onCellSelectionChange",builtin:!1,desc:"The cell-selection rectangle changes.",params:"ranges: Array<[number, number, number, number]>"},{key:"activeCellChange",method:"onActiveCellChange",prop:"onActiveCellChange",builtin:!1,desc:"The active cell changes.",params:"cell: { rowIndex: number; colIndex: number; columnId: string }"},{key:"cellValueChange",method:"onCellValueChange",prop:"onCellValueChange",builtin:!0,desc:"An inline cell edit is committed.",params:"e: { rowIndex: number; columnId: string; oldValue: unknown; newValue: unknown; row: Row }"},{key:"sortingChange",method:"onSortingChange",prop:"onSortingChange",builtin:!0,desc:"The sort clauses change.",params:"sorting: Array<{ id: string; desc: boolean }>"},{key:"filtersChange",method:"onFiltersChange",prop:"onFiltersChange",builtin:!0,desc:"Any in-grid filter changes.",params:"filters: { global: string; columns: Array<{ id: string; operator: string; value: string; valueTo?: string; selectedValues?: string[] }> }"},{key:"paginationChange",method:"onPaginationChange",prop:"onPaginationChange",builtin:!0,desc:"The page or page size changes.",params:"pagination: { pageIndex: number; pageSize: number }"},{key:"columnOrderChange",method:"onColumnOrderChange",prop:"onColumnOrderChange",builtin:!1,desc:"The column order changes.",params:"order: ReadonlyArray<string>"},{key:"scrollBottomReached",method:"onScrollBottomReached",prop:"onScrollBottomReached",builtin:!1,desc:"The body scrolls near the bottom (lazy-load hook).",params:"e: { scrollTop: number; scrollHeight: number; clientHeight: number }"},{key:"noteChange",method:"onNoteChange",prop:"onNoteChange",builtin:!1,desc:"A cell note/comment is saved or removed (needs editable comments).",params:"e: { rowId: string; columnId: string; note: string }"},{key:"rowDragEnd",method:"onRowDragEnd",prop:"onRowDragEnd",builtin:!1,desc:"A managed row drag settles (needs row dragging enabled).",params:"e: { row: Row; toIndex: number; sameGrid: boolean; fromGridId: number; toGridId: number }"},{key:"rowAdded",method:"onRowAdded",prop:"",builtin:!1,dataEvent:!0,desc:"A row was created (form / ctx.data.create).",params:"row: Row"},{key:"rowUpdated",method:"onRowUpdated",prop:"",builtin:!1,dataEvent:!0,desc:"A row was updated (form / inline edit / ctx.data.update).",params:"row: Row"},{key:"rowDeleted",method:"onRowDeleted",prop:"",builtin:!1,dataEvent:!0,desc:"A row was deleted (delete action / ctx.data.delete).",params:"id: string"}],Gt=e=>(e||"").replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^([0-9])/,"_$1")||"v";function ii(e){const t=(e.initial??"").trim();switch(e.type){case"number":return t===""||Number.isNaN(Number(t))?"0":t;case"boolean":return t==="true"?"true":"false";case"json":return t||"null";case"string":return ce(e.initial??"")}}function Hr(e){return e.type==="number"?"number":e.type==="boolean"?"boolean":e.type==="json"?"unknown":"string"}function qe(e,t="row"){switch(e.kind){case"state":return`ctx.state.${Gt(e.name)}`;case"param":return`ctx.params[${ce(e.name)}]`;case"field":return`${t}?.[${ce(e.name)}]`;case"literal":return Vr(e.value)}}function Ea(e,t="row"){const a=qe(e.left,t),r=e.right?qe(e.right,t):"''";switch(e.op){case"eq":return`${a} === ${r}`;case"neq":return`${a} !== ${r}`;case"gt":return`Number(${a}) > Number(${r})`;case"lt":return`Number(${a}) < Number(${r})`;case"gte":return`Number(${a}) >= Number(${r})`;case"lte":return`Number(${a}) <= Number(${r})`;case"contains":return`String(${a}).includes(String(${r}))`;case"truthy":return`Boolean(${a})`;case"falsy":return`!(${a})`}}var si=e=>`{ ${e.map(t=>`${Gt(t.field)}: ${qe(t.value)}`).join(", ")} }`,ce=e=>`'${String(e).replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`,Vr=e=>{const t=e.trim();return t==="true"||t==="false"||t!==""&&!Number.isNaN(Number(t))?t:ce(e)};function li(e){switch(e.type){case"navigate":return`ctx.goto(${ce(e.to)})`;case"gridExport":{const t=e.format??"csv",a=t==="tsv"?"exportTsv":t==="json"?"exportJson":"exportCsv",r=t==="json"?"application/json":t==="tsv"?"text/tab-separated-values":"text/csv";return["{",` const data = await ctx.grid.${a}()`," const link = document.createElement('a')",` link.href = URL.createObjectURL(new Blob([data], { type: ${ce(r)} }))`,` link.download = ${ce("export."+t)}`," link.click()"," URL.revokeObjectURL(link.href)","}"].join(`
|
|
388
|
+
`}}var Wd=new Map;function Jd(e){return Wd.get(e)}Object.fromEntries(Object.entries({ISBLANK:"isBlank",ISNOTBLANK:"isNotBlank",ISTODAY:"today",BEFORETODAY:"beforeToday",AFTERTODAY:"afterToday",INNEXT7DAYS:"next7Days",INLAST7DAYS:"last7Days"}).map(([e,t])=>[t,e]));function Zd(e){const t=new Set;return jr(e,t),[...t]}function jr(e,t){switch(e.kind){case"and":case"or":e.parts.forEach(a=>jr(a,t));return;case"not":jr(e.expr,t);return;case"cmp":t.add(e.column);return;case"scalarCmp":vt(e.left,t),vt(e.right,t);return;case"ext":for(const a of Jd(e.type)?.columns?.(e.payload)??[])t.add(a);return;case"const":return}}function vt(e,t){switch(e.kind){case"col":t.add(e.id);return;case"agg":t.add(e.column);return;case"neg":vt(e.expr,t);return;case"bin":vt(e.left,t),vt(e.right,t);return;case"func":e.args.forEach(a=>vt(a,t));return;case"lit":return}}var qr={SvButton:{props:[{key:"variant",label:"Variant",type:"select",options:["primary","secondary","outline","ghost","danger"],default:"primary",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"type",label:"Type",type:"select",options:["button","submit","reset"],default:"button",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"loading",label:"Loading",type:"boolean",default:!1,group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"href",label:"Href",type:"string",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[{key:"click",label:"Click",prop:"onclick"}]},SvBadge:{props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md",group:"appearance"},{key:"pill",label:"Pill",type:"boolean",default:!0,description:"Rounded-pill shape (default) vs a softer rounded rect.",group:"appearance"},{key:"dot",label:"Dot",type:"boolean",default:!1,description:"Show a leading status dot instead of / before content.",group:"appearance"}],events:[]},SvAlert:{props:[{key:"variant",label:"Variant",type:"select",options:["info","success","warning","danger","neutral"],default:"info",group:"appearance"},{key:"title",label:"Title",type:"string",group:"common"},{key:"dismissible",label:"Dismissible",type:"boolean",default:!1,description:"Show a close (x) button.",group:"behavior"},{key:"hideIcon",label:"Hide Icon",type:"boolean",default:!1,description:"Hide the leading status icon.",group:"common"},{key:"soft",label:"Soft",type:"boolean",default:!1,description:"Softer, borderless tint vs the default bordered card.",group:"appearance"}],events:[{key:"dismiss",label:"Dismiss",prop:"onDismiss"}]},SvProgress:{props:[{key:"value",label:"Value",type:"number",default:0,description:"Current value (0..max). Ignored when `indeterminate`.",group:"common"},{key:"max",label:"Max",type:"number",default:100,group:"common"},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1,description:"Unknown-duration animated bar.",group:"common"},{key:"buffer",label:"Buffer",type:"number",description:"Buffered/secondary value (e.g. streamed-ahead), 0..max.",group:"common"},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"showLabel",label:"Show Label",type:"boolean",default:!1,description:"Show a percentage label at the end of the bar.",group:"common"},{key:"formatLabel",label:"Format Label",type:"json",description:"Format the label (default: rounded percent).",code:!0,group:"advanced"},{key:"striped",label:"Striped",type:"boolean",default:!1,description:"Diagonal candy-stripe overlay on the fill.",group:"appearance"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[]},SvCard:{props:[{key:"title",label:"Title",type:"string",group:"common"},{key:"subtitle",label:"Subtitle",type:"string",group:"common"},{key:"hoverable",label:"Hoverable",type:"boolean",default:!1,description:"Lift + accent border on hover (for clickable cards).",group:"common"},{key:"flush",label:"Flush",type:"boolean",default:!1,description:"Remove body padding (e.g. a card wrapping a full-bleed grid/table).",group:"common"}],events:[]},SvDivider:{props:[{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"},{key:"label",label:"Label",type:"string",group:"common"},{key:"align",label:"Align",type:"select",options:["start","center","end"],default:"center",description:"Label position along a horizontal divider.",group:"appearance"},{key:"dashed",label:"Dashed",type:"boolean",default:!1,group:"common"}],events:[]},SvAvatar:{props:[{key:"name",label:"Name",type:"string",default:"",group:"advanced"},{key:"src",label:"Src",type:"string",group:"common"},{key:"alt",label:"Alt",type:"string",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Preset (sm 28 / md 36 / lg 48) or an explicit pixel size.",group:"appearance"},{key:"shape",label:"Shape",type:"select",options:["circle","square"],default:"circle",group:"appearance"},{key:"status",label:"Status",type:"select",options:["online","offline","busy","away"],group:"common"},{key:"color",label:"Color",type:"string",description:"Override the hash-derived fallback colour (any CSS colour).",group:"appearance"}],events:[]},SvStat:{props:[{key:"label",label:"Label",type:"string",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"delta",label:"Delta",type:"string",description:"A number (auto-signs + infers trend) or a preformatted string.",group:"common"},{key:"trend",label:"Trend",type:"select",options:["up","down","flat"],description:"Override the inferred trend.",group:"common"},{key:"hint",label:"Hint",type:"string",description:'Text after the delta (e.g. "vs last month").',group:"common"},{key:"invert",label:"Invert",type:"boolean",default:!1,description:"Treat a downward delta as good (green) - e.g. error rate, latency.",group:"common"}],events:[]},SvToggleButton:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"pressed",label:"Pressed",type:"boolean",default:!1,group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvSwitchButton:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"checked",label:"Checked",type:"boolean",default:!1,group:"common"},{key:"onLabel",label:"On Label",type:"string",description:"Optional labels rendered inside the track.",group:"common"},{key:"offLabel",label:"Off Label",type:"string",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTextInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"type",label:"Type",type:"select",options:["text","email","url","tel","search"],default:"text",group:"common"},{key:"maxlength",label:"Maxlength",type:"number",group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show an inline clear (x) button when non-empty.",group:"behavior"},{key:"autocomplete",label:"Autocomplete",type:"json",group:"advanced"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,description:"Autofocus + select on mount (used when mounted as a cell editor).",group:"common"},{key:"selectOnFocus",label:"Select On Focus",type:"boolean",default:!1,description:"Select the whole value whenever the field is focused.",group:"common"},{key:"prefix",label:"Prefix",type:"string",description:"Plain-text affix at the start (e.g. a `$` or protocol).",group:"common"},{key:"suffix",label:"Suffix",type:"string",description:"Plain-text affix at the end (e.g. a unit).",group:"common"},{key:"labelMode",label:"Label Mode",type:"select",options:["static","floating"],default:"static",description:"`floating` animates the label up on focus/value. Default `static`.",group:"common"},{key:"actions",label:"Actions",type:"json",description:"Compact in-field action buttons (lookup/generate/copy...).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit",description:"Commit + stop editing (Enter, or supplied by the grid in a cell)."},{key:"cancel",label:"Cancel",prop:"onCancel",description:"Cancel editing (Escape)."}]},SvTextArea:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"rows",label:"Rows",type:"number",default:3,group:"common"},{key:"maxlength",label:"Maxlength",type:"number",group:"common"},{key:"autoGrow",label:"Auto Grow",type:"boolean",default:!1,description:"Grow the box to fit content instead of scrolling.",group:"common"},{key:"showCount",label:"Show Count",type:"boolean",default:!1,description:'Show a "n / max" character counter (needs `maxlength`).',group:"common"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvNumberInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",group:"common"},{key:"min",label:"Min",type:"number",group:"common"},{key:"max",label:"Max",type:"number",group:"common"},{key:"step",label:"Step",type:"number",default:1,group:"common"},{key:"precision",label:"Precision",type:"number",group:"common"},{key:"grouping",label:"Grouping",type:"boolean",default:!1,description:"Group thousands (1,234) on display.",group:"common"},{key:"prefix",label:"Prefix",type:"string",default:"",description:"Text formatted before the number (e.g. `$`); travels with the value.",group:"common"},{key:"suffix",label:"Suffix",type:"string",default:"",description:"Text formatted after the number (e.g. `%`); travels with the value.",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"spinButtons",label:"Spin Buttons",type:"boolean",default:!0,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when there is a value.",group:"behavior"},{key:"selectOnFocus",label:"Select On Focus",type:"boolean",default:!1,description:"Select the whole value when the field is focused.",group:"common"},{key:"wheelStep",label:"Wheel Step",type:"boolean",default:!1,description:"Step the value with the mouse wheel while the field is focused.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:150,description:"Control width in px (ignored when `block`). Default 150.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvPasswordInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"revealable",label:"Revealable",type:"boolean",default:!0,description:"Show the show/hide eye toggle.",group:"common"},{key:"showStrength",label:"Show Strength",type:"boolean",default:!1,description:"Show a 4-level strength meter.",group:"common"},{key:"autocomplete",label:"Autocomplete",type:"string",default:"current-password",group:"advanced"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (reveal toggle + strength labels).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:220,description:"Control width in px (ignored when `block`). Default 220.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvColorInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"palette",label:"Palette",type:"json",description:"Preset swatches.",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in popover strings.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width (otherwise hugs its content).",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvCheckBox:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"checked",label:"Checked",type:"boolean",default:!1,group:"common"},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1,group:"common"},{key:"value",label:"Value",type:"string",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvRating:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",default:0,group:"common"},{key:"max",label:"Max",type:"number",default:5,group:"common"},{key:"allowHalf",label:"Allow Half",type:"boolean",default:!1,description:"Allow half-star precision.",group:"common"},{key:"readOnly",label:"Read Only",type:"boolean",default:!1,group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (group + per-star aria-labels).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvSlider:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",default:0,group:"common"},{key:"min",label:"Min",type:"number",default:0,group:"common"},{key:"max",label:"Max",type:"number",default:100,group:"common"},{key:"step",label:"Step",type:"number",default:1,group:"common"},{key:"range",label:"Range",type:"boolean",default:!1,group:"common"},{key:"ticks",label:"Ticks",type:"number",description:"Show evenly spaced tick marks (count or explicit values).",group:"common"},{key:"labels",label:"Labels",type:"select",options:["none","endpoints","all"],default:"none",description:"Numeric scale labels under the track: 'endpoints' (min/max), 'all' (per tick), or 'none'.",group:"common"},{key:"showValue",label:"Show Value",type:"boolean",default:!1,description:"Show the value bubble above the thumb.",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"},{key:"formatValue",label:"Format Value",type:"json",code:!0,group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvOtpInput:{props:[{key:"value",label:"Value",type:"string",group:"common"},{key:"length",label:"Length",type:"number",default:6,group:"common"},{key:"numeric",label:"Numeric",type:"boolean",default:!0,description:"Digits only (default) vs any character.",group:"common"},{key:"mask",label:"Mask",type:"boolean",default:!1,description:"Mask the characters (password dots).",group:"common"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"complete",label:"Complete",prop:"onComplete",description:"Fired once every cell is filled."}]},SvCircularProgress:{props:[{key:"value",label:"Value",type:"number",default:0,group:"common"},{key:"max",label:"Max",type:"number",default:100,group:"common"},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1,group:"common"},{key:"size",label:"Size",type:"number",default:48,description:"Diameter in px.",group:"appearance"},{key:"thickness",label:"Thickness",type:"number",default:5,description:"Ring stroke width in px.",group:"common"},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent",group:"appearance"},{key:"showLabel",label:"Show Label",type:"boolean",default:!1,description:"Show a percentage label in the center.",group:"common"},{key:"formatLabel",label:"Format Label",type:"json",code:!0,group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[]},SvSkeleton:{props:[{key:"variant",label:"Variant",type:"select",options:["text","rect","circle"],default:"text",group:"appearance"},{key:"width",label:"Width",type:"string",description:"Any CSS length. Defaults suit the variant.",group:"common"},{key:"height",label:"Height",type:"string",group:"common"},{key:"radius",label:"Radius",type:"string",description:"Corner radius (rect/text).",group:"common"},{key:"lines",label:"Lines",type:"number",default:1,description:'Number of text lines (variant="text" only). The last line is shorter.',group:"common"},{key:"animated",label:"Animated",type:"boolean",default:!0,description:"Turn the shimmer off (static tint only).",group:"common"}],events:[]},SvChip:{props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral",group:"appearance"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md",group:"appearance"},{key:"removable",label:"Removable",type:"boolean",default:!1,description:"Show a remove (x) button.",group:"common"},{key:"solid",label:"Solid",type:"boolean",default:!1,description:"Filled solid vs soft tint (default soft).",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"}],events:[{key:"remove",label:"Remove",prop:"onRemove"},{key:"click",label:"Click",prop:"onClick",description:"Make the chip's label a button."}]},SvEmptyState:{props:[{key:"title",label:"Title",type:"string",group:"common"},{key:"description",label:"Description",type:"string",group:"common"},{key:"compact",label:"Compact",type:"boolean",default:!1,description:"Tighter padding (for empty dropdowns / small panels).",group:"common"}],events:[]},SvTimeline:{props:[{key:"items",label:"Items",type:"json",group:"common"}],events:[]},SvSparkline:{props:[{key:"data",label:"Data",type:"json",group:"common"},{key:"type",label:"Type",type:"json",default:"line",group:"common"},{key:"width",label:"Width",type:"number",default:88,group:"common"},{key:"height",label:"Height",type:"number",default:22,group:"common"},{key:"color",label:"Color",type:"string",group:"appearance"},{key:"negativeColor",label:"Negative Color",type:"string",group:"common"},{key:"lineWidth",label:"Line Width",type:"number",group:"common"},{key:"min",label:"Min",type:"number",description:"Fix the value scale instead of deriving it from the data.",group:"common"},{key:"max",label:"Max",type:"number",group:"common"},{key:"lastPoint",label:"Last Point",type:"boolean",default:!0,description:"End-cap dot on the last point (line / area). Default true.",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"}],events:[]},SvAvatarGroup:{props:[{key:"avatars",label:"Avatars",type:"json",group:"common"},{key:"max",label:"Max",type:"number",default:4,description:'Max avatars shown before collapsing to "+N".',group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"}],events:[]},SvPagination:{props:[{key:"page",label:"Page",type:"number",description:"1-based current page.",group:"common"},{key:"pageCount",label:"Page Count",type:"number",group:"common"},{key:"siblingCount",label:"Sibling Count",type:"number",default:1,group:"common"},{key:"boundaryCount",label:"Boundary Count",type:"number",default:1,group:"common"},{key:"showFirstLast",label:"Show First Last",type:"boolean",default:!1,group:"common"},{key:"showPrevNext",label:"Show Prev Next",type:"boolean",default:!0,group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Pagination",group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvBreadcrumb:{props:[{key:"items",label:"Items",type:"json",group:"common"},{key:"separator",label:"Separator",type:"string",default:"/",description:"Separator between crumbs. Default a chevron.",group:"common"},{key:"maxItems",label:"Max Items",type:"number",description:"Collapse the middle when there are more than this many crumbs.",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Breadcrumb",group:"advanced"}],events:[]},SvStepper:{props:[{key:"steps",label:"Steps",type:"json",group:"common"},{key:"current",label:"Current",type:"number",description:"0-based index of the active step.",group:"common"},{key:"linear",label:"Linear",type:"boolean",default:!0,description:"Only allow navigating to already-reached steps. Default true.",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvMaskedInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"mask",label:"Mask",type:"string",default:"",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when there is a value.",group:"behavior"},{key:"prefix",label:"Prefix",type:"string",description:"Plain-text affix at the start.",group:"common"},{key:"suffix",label:"Suffix",type:"string",description:"Plain-text affix at the end.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:200,description:"Control width in px (ignored when `block`). Default 200.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange",description:"Called with (masked, raw, complete)."}]},SvPhoneInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"country",label:"Country",type:"string",default:"US",description:"Default country ISO code.",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Phone number",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (e.g. the country selector aria-label).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:250,description:"Control width in px (ignored when `block`). Default 250.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTagsInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"json",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Add tag…",group:"common"},{key:"unique",label:"Unique",type:"boolean",default:!0,description:"Reject duplicate tags. Default true.",group:"behavior"},{key:"max",label:"Max",type:"number",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (draft + remove aria-labels).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvDurationInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"number",description:"Value in minutes (or null when empty).",group:"common"},{key:"style",label:"Style",type:"select",options:["colon","units"],default:"colon",description:"Display style when unfocused: `1:30` (colon) or `1h 30m` (units).",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"e.g. 1h 30m",group:"common"},{key:"autofocus",label:"Autofocus",type:"boolean",default:!1,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when there is a value.",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width.",group:"appearance"},{key:"width",label:"Width",type:"number",default:160,description:"Control width in px (ignored when `block`). Default 160.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvRadioGroup:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["vertical","horizontal"],default:"vertical",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvButtonGroup:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"items",label:"Items",type:"json",group:"common"},{key:"value",label:"Value",type:"json",group:"common"},{key:"mode",label:"Mode",type:"json",default:"single",description:"'single' (radio), 'multiple' (toggle set), or 'none' (action buttons).",group:"common"},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal",group:"appearance"},{key:"variant",label:"Variant",type:"select",options:["solid","outline"],default:"solid",description:"'solid' segmented fill (default) or 'outline' pills.",group:"appearance"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvListBox:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"multiple",label:"Multiple",type:"boolean",default:!1,group:"behavior"},{key:"checkbox",label:"Checkbox",type:"boolean",default:!1,description:"Checklist styling: each row draws a checkbox and the selected-row accent highlight is suppressed, because a list that starts fully selected (a filter checklist) would otherwise paint every row. State reads off the box; `aria-selected` still carries it for assistive tech.",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch to the container width instead of the default 220px.",group:"appearance"},{key:"rows",label:"Rows",type:"number",default:7,description:"Visible height in rows before scrolling.",group:"common"},{key:"virtual",label:"Virtual",type:"boolean",default:!1,description:"Window the list (render only visible rows) for large option sets.",group:"common"},{key:"rowHeight",label:"Row Height",type:"json",default:32,description:"Row height in px - a number, or a per-option function for variable heights. Must match the rendered row height. Default 32.",group:"common"},{key:"groupHeaderHeight",label:"Group Header Height",type:"number",default:28,description:"Height (px) of a group heading row when virtualized + grouped. Default 28.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvDropDownList:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,group:"common"},{key:"virtual",label:"Virtual",type:"boolean",default:!1,description:"Window the option list (render only visible) for large sets.",group:"common"},{key:"rowHeight",label:"Row Height",type:"json",default:34,description:"Option height in px - a number, or a per-option function for variable heights. Must match the rendered row height. Default 34.",group:"common"},{key:"groupHeaderHeight",label:"Group Header Height",type:"number",default:28,description:"Height (px) of a group heading row when virtualized + grouped. Default 28.",group:"common"},{key:"maxRows",label:"Max Rows",type:"number",default:8,description:"Max options shown before the panel scrolls (native-select behaviour). Default 8.",group:"common"},{key:"resizable",label:"Resizable",type:"boolean",default:!1,description:"Show a bottom drag grip so the user can resize the open panel's height (only while it opens downward). Off by default.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvComboBox:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!1,description:"Show a clear (x) button when a value is selected.",group:"behavior"},{key:"resizable",label:"Resizable",type:"boolean",default:!1,description:"Show a bottom drag grip so the user can resize the open panel's height (hidden when the panel flips upward, where there is no room to grow).",group:"common"},{key:"loadOptions",label:"Load Options",type:"json",description:"Load options from a server as the user types (debounced). Disables local filtering; the returned list is shown as-is.",code:!0,group:"advanced"},{key:"minLength",label:"Min Length",type:"number",default:1,description:"Min chars before a remote search fires. Default 1.",group:"common"},{key:"debounce",label:"Debounce",type:"number",default:250,description:"Debounce (ms) before a remote search fires. Default 250.",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (empty-state / loading text).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvAutoComplete:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",default:!1,description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"suggestions",label:"Suggestions",type:"json",description:"Suggestions - strings or {value,label} (label is shown, value inserted).",group:"common"},{key:"minChars",label:"Min Chars",type:"number",default:1,group:"common"},{key:"placeholder",label:"Placeholder",type:"string",group:"common"},{key:"resizable",label:"Resizable",type:"boolean",default:!1,description:"Show a bottom drag grip so the user can resize the open suggestion panel's height (hidden when the panel flips upward, where there is no room to grow).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvMultiSelect:{props:[{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"json",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"searchable",label:"Searchable",type:"boolean",default:!0,group:"behavior"},{key:"maxTagCount",label:"Max Tag Count",type:"number",default:3,group:"common"},{key:"clearable",label:"Clearable",type:"boolean",default:!0,group:"behavior"},{key:"loadOptions",label:"Load Options",type:"json",description:"Async/remote options: called (debounced) with the search query; its result replaces the list. When set, `options` is only the initial list.",code:!0,group:"advanced"},{key:"debounceMs",label:"Debounce Ms",type:"number",default:250,description:"Debounce for remote search. Default 250ms.",group:"common"},{key:"loadingText",label:"Loading Text",type:"string",default:"Loading…",group:"common"},{key:"emptyText",label:"Empty Text",type:"string",default:"No matches",description:"Shown when the list is empty / a search matches nothing (localization).",group:"common"},{key:"searchPlaceholder",label:"Search Placeholder",type:"string",default:"Search…",description:"Placeholder in the panel's search box (localization).",group:"common"},{key:"searchLabel",label:"Search Label",type:"string",default:"Search options",description:"Accessible name for the panel's search box (localization).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvRepeatButton:{props:[{key:"delay",label:"Delay",type:"number",default:300,description:"Delay before repeats begin (ms).",group:"common"},{key:"interval",label:"Interval",type:"number",default:60,description:"Interval between repeats (ms).",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",group:"appearance"},{key:"variant",label:"Variant",type:"select",options:["primary","secondary","outline","ghost"],default:"secondary",group:"appearance"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"},{key:"focusable",label:"Focusable",type:"boolean",default:!0,description:"False: the button never takes focus or a Tab stop, so pressing it keeps focus in the field it steps (a spinner beside an input). Default true.",group:"common"}],events:[{key:"click",label:"Click",prop:"onclick"}]},SvRichText:{props:[{key:"value",label:"Value",type:"string",description:"HTML string (bindable).",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,group:"behavior"},{key:"minHeight",label:"Min Height",type:"string",default:"160px",group:"common"},{key:"tools",label:"Tools",type:"json",description:"Toolbar tools + order; use '|' for a separator.",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Rich text editor",group:"advanced"},{key:"messages",label:"Messages",type:"json",description:"Override any toolbar label / prompt (localization).",group:"common"},{key:"sanitize",label:"Sanitize",type:"json",description:"Replaces `sanitizeHtml` for the value both ways. Only for content the app trusts; a stored string may otherwise be someone else's script.",code:!0,group:"advanced"},{key:"name",label:"Name",type:"string",description:"Posts the value with a native form, as a hidden input of this name.",group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"imageUpload",label:"Image Upload",prop:"onImageUpload",description:"The `image` tool's upload: given the picked file, resolve to the URL to insert (or null to insert nothing). Without it, the tool asks for a URL."}]},SvTree:{props:[{key:"nodes",label:"Nodes",type:"json",group:"common"},{key:"selected",label:"Selected",type:"string",description:"Selected node id (single-select highlight).",group:"common"},{key:"expandedIds",label:"Expanded Ids",type:"json",description:"Initially/controlled expanded ids.",group:"common"},{key:"checkable",label:"Checkable",type:"boolean",default:!1,description:"Show cascading checkboxes; `checked` is the set of checked ids.",group:"common"},{key:"checked",label:"Checked",type:"json",group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",group:"advanced"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction (rtl mirrors indentation + flips Left/Right keys).",group:"advanced"},{key:"virtual",label:"Virtual",type:"boolean",default:!1,description:"Window rows (render only visible) - for large trees. Needs `height`.",group:"common"},{key:"rowHeight",label:"Row Height",type:"number",default:30,description:"Row height in px - a number, or a per-node function for variable heights. Must match the rendered row height. Default 30.",group:"common"},{key:"height",label:"Height",type:"number",description:"Scroll-viewport height in px. Enables scrolling (required for `virtual`).",group:"common"},{key:"loadChildren",label:"Load Children",type:"json",description:"Load a lazy node's children on first expand (node has `lazy: true`).",code:!0,group:"advanced"},{key:"filter",label:"Filter",type:"string",description:"Filter query - show only matching nodes + ancestors, auto-expanded.",group:"common"},{key:"searchable",label:"Searchable",type:"boolean",default:!1,description:"Render a built-in search box that drives the filter.",group:"behavior"},{key:"searchPlaceholder",label:"Search Placeholder",type:"string",default:"Search...",group:"common"},{key:"loadingText",label:"Loading Text",type:"string",default:"Loading...",description:"Placeholder row shown under a lazy node while its children load (localization).",group:"common"},{key:"clearSearchLabel",label:"Clear Search Label",type:"string",default:"Clear search",description:"Accessible name for the search box's clear button (localization).",group:"common"},{key:"sort",label:"Sort",type:"select",options:["asc","desc"],description:"Sort siblings by label ('asc'/'desc') or a custom comparator.",group:"common"},{key:"editable",label:"Editable",type:"boolean",default:!1,description:"Allow inline rename (double-click or F2). Fires onRename.",group:"common"},{key:"reorderable",label:"Reorderable",type:"boolean",default:!1,description:"Allow drag-drop reordering; fires onMove(dragId, targetId, position). Apply it with the exported `moveTreeNode(nodes, ...)` helper.",group:"common"}],events:[{key:"select",label:"Select",prop:"onSelect"},{key:"toggle",label:"Toggle",prop:"onToggle"},{key:"check",label:"Check",prop:"onCheck"},{key:"rename",label:"Rename",prop:"onRename"},{key:"move",label:"Move",prop:"onMove"}]},SvCountryInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"string",group:"common"},{key:"showDial",label:"Show Dial",type:"boolean",default:!1,description:"Show the dial code beside each country.",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select country…",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (search + empty-state).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTitle:{props:[{key:"order",label:"Order",type:"json",default:2,description:"Semantic heading level (h1-h6).",group:"common"},{key:"size",label:"Size",type:"json",description:"Visual size step, defaults to `order`.",group:"appearance"},{key:"align",label:"Align",type:"select",options:["start","center","end"],description:"Text alignment.",group:"appearance"},{key:"truncate",label:"Truncate",type:"boolean",default:!1,description:"Truncate to a single line with an ellipsis.",group:"common"}],events:[]},SvText:{props:[{key:"size",label:"Size",type:"select",options:["xs","sm","md","lg","xl"],default:"md",description:"Font size step.",group:"appearance"},{key:"weight",label:"Weight",type:"select",options:["normal","medium","semibold","bold"],default:"normal",description:"Font weight.",group:"common"},{key:"tone",label:"Tone",type:"select",options:["default","muted","accent","success","warning","error"],default:"default",description:"Semantic colour.",group:"common"},{key:"align",label:"Align",type:"select",options:["start","center","end"],description:"Text alignment.",group:"appearance"},{key:"truncate",label:"Truncate",type:"boolean",default:!1,description:"Truncate to a single line with an ellipsis.",group:"common"},{key:"clamp",label:"Clamp",type:"number",description:"Clamp to N lines with an ellipsis (overrides truncate).",group:"common"},{key:"inline",label:"Inline",type:"boolean",default:!1,description:"Render inline (`span`) instead of a block (`p`).",group:"common"},{key:"as",label:"As",type:"string",description:"Override the element/tag.",group:"common"}],events:[]},SvAnchor:{props:[{key:"href",label:"Href",type:"string",group:"common"},{key:"external",label:"External",type:"boolean",default:!1,description:"Open in a new tab with safe `rel`.",group:"common"},{key:"underline",label:"Underline",type:"select",options:["hover","always","none"],default:"hover",description:"Underline behaviour.",group:"common"},{key:"tone",label:"Tone",type:"select",options:["accent","default","muted"],default:"accent",description:"Semantic colour.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Font size step.",group:"appearance"}],events:[{key:"click",label:"Click",prop:"onclick"}]},SvBlockquote:{props:[{key:"cite",label:"Cite",type:"string",description:"Attribution shown under the quote.",group:"common"},{key:"tone",label:"Tone",type:"select",options:["accent","muted","success","warning","error"],default:"accent",description:"Accent colour of the rule.",group:"common"}],events:[]},SvCode:{props:[{key:"block",label:"Block",type:"boolean",default:!1,description:"Render as a padded block instead of inline.",group:"appearance"},{key:"code",label:"Code",type:"string",description:"Code as a string (skip the snippet).",group:"common"}],events:[]},SvKbd:{props:[{key:"keys",label:"Keys",type:"json",description:"Key sequence, rendered as separate caps.",group:"common"},{key:"separator",label:"Separator",type:"string",default:"+",description:"Separator between keys.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md",group:"appearance"}],events:[]},SvMark:{props:[{key:"tone",label:"Tone",type:"select",options:["yellow","accent","success","warning","error"],default:"yellow",group:"common"}],events:[]},SvList:{props:[{key:"type",label:"Type",type:"select",options:["unordered","ordered","none"],default:"unordered",description:"Marker style. `none` drops markers + indentation.",group:"common"},{key:"items",label:"Items",type:"json",description:"Simple string items (skip the snippet).",group:"common"},{key:"spacing",label:"Spacing",type:"select",options:["sm","md","lg"],default:"md",description:"Vertical gap between items.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Font size step.",group:"appearance"}],events:[]},SvSpinner:{props:[{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Diameter in px, or a named size. Default `md` (20px).",group:"appearance"},{key:"color",label:"Color",type:"string",description:"Stroke color (defaults to the accent token).",group:"appearance"},{key:"label",label:"Label",type:"string",description:"Accessible label; when omitted the spinner is `aria-hidden`.",group:"common"}],events:[]},SvLoadingOverlay:{props:[{key:"visible",label:"Visible",type:"boolean",default:!1,description:"Show the overlay.",group:"common"},{key:"label",label:"Label",type:"string",description:"Text shown under the spinner (also the a11y label).",group:"common"},{key:"spinnerSize",label:"Spinner Size",type:"select",options:["sm","md","lg"],default:"lg",description:"Spinner size. Default `lg`.",group:"common"},{key:"blur",label:"Blur",type:"boolean",default:!1,description:"Blur the content behind the scrim.",group:"common"}],events:[]},SvResult:{props:[{key:"status",label:"Status",type:"select",options:["success","error","warning","info","notfound"],default:"info",group:"common"},{key:"title",label:"Title",type:"string",group:"common"},{key:"description",label:"Description",type:"string",group:"common"}],events:[]},SvCollapsible:{props:[{key:"title",label:"Title",type:"string",description:"Header text (ignored when a `header` snippet is given).",group:"common"},{key:"open",label:"Open",type:"boolean",description:"Open state (bindable).",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"}],events:[{key:"openChange",label:"Open Change",prop:"onOpenChange"}]},SvCarousel:{props:[{key:"count",label:"Count",type:"number",group:"common"},{key:"current",label:"Current",type:"number",description:"Active slide index (bindable).",group:"common"},{key:"autoplay",label:"Autoplay",type:"number",default:0,description:"Autoplay interval in ms; 0 = off.",group:"common"},{key:"loop",label:"Loop",type:"boolean",default:!0,group:"common"},{key:"arrows",label:"Arrows",type:"boolean",default:!0,group:"common"},{key:"dots",label:"Dots",type:"boolean",default:!0,group:"common"},{key:"ariaLabel",label:"Aria Label",type:"string",default:"Carousel",group:"advanced"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction (rtl mirrors the prev/next arrows + slide direction).",group:"advanced"}],events:[]},SvDateTimePicker:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"json",group:"common"},{key:"formatString",label:"Format String",type:"string",default:"yyyy-MM-dd HH:mm",description:"Display / parse mask (token engine).",group:"common"},{key:"min",label:"Min",type:"json",group:"common"},{key:"max",label:"Max",type:"json",group:"common"},{key:"nullable",label:"Nullable",type:"boolean",default:!0,group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select date & time",group:"common"},{key:"locale",label:"Locale",type:"string",group:"common"},{key:"firstDayOfWeek",label:"First Day Of Week",type:"number",default:0,group:"common"},{key:"weekNumbers",label:"Week Numbers",type:"boolean",default:!1,group:"common"},{key:"hourFormat",label:"Hour Format",type:"select",options:["12-hour","24-hour"],default:"24-hour",group:"common"},{key:"minuteInterval",label:"Minute Interval",type:"number",default:1,group:"common"},{key:"dropDownDisplayMode",label:"Drop Down Display Mode",type:"json",default:"both",description:"Which tabs the dropdown shows.",group:"common"},{key:"spinButtons",label:"Spin Buttons",type:"boolean",default:!1,description:"Up/down spinner buttons that bump the value by `stepMinutes`.",group:"common"},{key:"stepMinutes",label:"Step Minutes",type:"number",default:1,group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,description:"Open the dropdown as soon as the field is focused (grid in-cell editing).",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch the field to fill its container (100% width) instead of the fixed default width - used when mounted as a grid cell editor.",group:"appearance"},{key:"animate",label:"Animate",type:"select",options:["slide","fade"],default:!1,description:"Animate the calendar's month/drill navigation (honors reduced-motion).",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (tabs, dialog, clear/open aria-labels).",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit",description:"Fired when the value is finalized (Enter, blur, or a single-date pick). Used by the grid to save the cell."},{key:"cancel",label:"Cancel",prop:"onCancel",description:"Fired on Escape / dismiss without committing (grid cancels the edit)."}]},SvTimePicker:{props:[{key:"value",label:"Value",type:"json",description:'Date, "HH:MM[:SS]" string, or epoch ms.',group:"common"},{key:"format",label:"Format",type:"json",default:"24-hour",group:"common"},{key:"minuteInterval",label:"Minute Interval",type:"number",default:1,group:"common"},{key:"autoSwitchToMinutes",label:"Auto Switch To Minutes",type:"boolean",default:!0,description:"After picking an hour, jump the dial to minutes. Default true.",group:"common"},{key:"footer",label:"Footer",type:"boolean",default:!1,description:"Show the Now footer button.",group:"common"},{key:"disabled",label:"Disabled",type:"boolean",default:!1,group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,group:"behavior"},{key:"name",label:"Name",type:"string",group:"advanced"},{key:"selection",label:"Selection",type:"json",default:"hour",description:"Which dial opens first.",group:"common"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction (rtl mirrors layout; auto/undefined inherits).",group:"advanced"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings (group label + AM/PM/Now).",group:"common"},{key:"label",label:"Label",type:"string",group:"common"},{key:"hint",label:"Hint",type:"string",group:"common"},{key:"error",label:"Error",type:"string",group:"common"},{key:"required",label:"Required",type:"boolean",default:!1,group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,group:"behavior"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],group:"appearance"},{key:"id",label:"Id",type:"string",group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange",description:"Fires with a Date (today's date carrying the picked time)."}]},SvDateRangeInput:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md",description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"value",label:"Value",type:"json",description:"Inclusive [start, end] range, or null.",group:"common"},{key:"formatString",label:"Format String",type:"string",default:"yyyy-MM-dd",description:"Display format for each end (token engine, e.g. 'yyyy-MM-dd').",group:"common"},{key:"min",label:"Min",type:"json",group:"common"},{key:"max",label:"Max",type:"json",group:"common"},{key:"months",label:"Months",type:"number",default:2,description:"Number of month panels shown side by side. Default 2.",group:"common"},{key:"firstDayOfWeek",label:"First Day Of Week",type:"number",default:0,group:"common"},{key:"weekNumbers",label:"Week Numbers",type:"boolean",default:!1,group:"common"},{key:"locale",label:"Locale",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select date range",group:"common"},{key:"presets",label:"Presets",type:"json",description:"Quick shortcuts shown in the calendar's side rail.",group:"common"},{key:"animate",label:"Animate",type:"select",options:["slide","fade"],default:!1,description:"Animate the calendar's month navigation.",group:"common"},{key:"autoOpen",label:"Auto Open",type:"boolean",default:!1,description:"Open the popover as soon as the field is focused.",group:"common"},{key:"messages",label:"Messages",type:"json",description:"Override the built-in strings.",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvSegmented:{props:[{key:"options",label:"Options",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Stretch the control (and split options evenly) to the container width.",group:"appearance"},{key:"name",label:"Name",type:"string",group:"advanced"}],events:[{key:"change",label:"Change",prop:"onChange"}]},SvTreeSelect:{props:[{key:"nodes",label:"Nodes",type:"json",group:"common"},{key:"value",label:"Value",type:"string",group:"common"},{key:"placeholder",label:"Placeholder",type:"string",default:"Select…",group:"common"},{key:"showPath",label:"Show Path",type:"boolean",default:!1,group:"common"},{key:"expandedIds",label:"Expanded Ids",type:"json",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"commit",label:"Commit",prop:"onCommit"},{key:"cancel",label:"Cancel",prop:"onCancel"}]},SvFileUpload:{props:[{key:"disabled",label:"Disabled",type:"boolean",default:!1,description:"Disable interaction + form submission.",group:"behavior"},{key:"readonly",label:"Readonly",type:"boolean",default:!1,description:"Read-only: the value is shown but not editable.",group:"behavior"},{key:"required",label:"Required",type:"boolean",default:!1,description:"Required for validation (adds `aria-required` + participates in validity).",group:"behavior"},{key:"invalid",label:"Invalid",type:"boolean",default:!1,description:"Marks the control invalid (`aria-invalid` + error styling).",group:"behavior"},{key:"block",label:"Block",type:"boolean",default:!1,description:"Fill the container instead of the control's own default width. A default width is right for a control sitting on its own; in a form grid a row of inputs each stopping at a different width reads as broken.",group:"appearance"},{key:"error",label:"Error",type:"string",description:"Error message; when set it is announced via `aria-describedby` and shown.",group:"common"},{key:"label",label:"Label",type:"string",description:"Visible field label, rendered above the control and wired via `for`/`id`.",group:"common"},{key:"hint",label:"Hint",type:"string",description:"Helper text shown under the control and announced via `aria-describedby`.",group:"common"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],description:"Control size / density.",group:"appearance"},{key:"dir",label:"Dir",type:"select",options:["ltr","rtl","auto"],description:"Text direction. `'rtl'` mirrors layout for Arabic/Hebrew/etc.; `'auto'` (the default) inherits from the surrounding document so a page-level `dir` wins.",group:"advanced"},{key:"name",label:"Name",type:"string",description:"Form field name; the editor emits a hidden input carrying its value.",group:"advanced"},{key:"id",label:"Id",type:"string",description:"Root/control element id (the label/hint/error ids derive from it).",group:"advanced"},{key:"ariaLabel",label:"Aria Label",type:"string",description:"Accessible name when there is no visible `label`.",group:"advanced"},{key:"loading",label:"Loading",type:"boolean",description:"Busy state - shows a spinner (e.g. while an async value/validation resolves).",group:"behavior"},{key:"files",label:"Files",type:"json",group:"common"},{key:"accept",label:"Accept",type:"string",group:"common"},{key:"multiple",label:"Multiple",type:"boolean",default:!1,group:"behavior"},{key:"maxSize",label:"Max Size",type:"number",description:"Max size per file in bytes.",group:"common"},{key:"maxFiles",label:"Max Files",type:"number",group:"common"},{key:"messages",label:"Messages",type:"json",group:"common"}],events:[{key:"change",label:"Change",prop:"onChange"},{key:"reject",label:"Reject",prop:"onReject"}]},SvGrid:{props:[{key:"data",label:"Data",type:"json",description:"The rows to render. Optional only because `rowModel` can supply them instead; a grid with neither renders empty. When both are present `data` wins.",group:"common"},{key:"columns",label:"Columns",type:"json",group:"common"},{key:"board",label:"Board",type:"json",description:"Kanban board mode. When set, the grid renders its rows as cards in horizontal lanes (bucketed by `board.groupBy`) instead of a table. See .",group:"common"},{key:"gallery",label:"Gallery",type:"json",description:"Gallery mode. When set, the grid renders its rows as cards (a cover image, a title, a few fields) instead of a table. See .",group:"common"},{key:"scheduler",label:"Scheduler",type:"json",description:"Scheduler / calendar mode. When set, the grid renders its rows as events on a Month / Week / Day / Agenda calendar instead of a table. See .",group:"common"},{key:"gantt",label:"Gantt",type:"json",description:"Gantt mode. When set, the grid renders its rows as a task table beside a time chart: one bar per row by start / end, a work-breakdown tree from `parentField`, and dependency arrows. See . A view of the grid like the board and scheduler; the renderer ships in `@svgrid/enterprise` (call `enableGanttView()`).",group:"common"},{key:"chart",label:"Chart",type:"json",description:"Chart view. When set, the grid renders its FILTERED + SORTED rows as a chart instead of a table (search / filters / sort flow through). Unlike board and scheduler, the renderer is free - the grid lazy-loads a built-in `SvChart` view, overridable via `registerChartView`. See .",group:"common"},{key:"pivot",label:"Pivot",type:"json",description:"Pivot mode. When set (and `pivotMode` is on), the grid renders its rows as a pivot table in place - the same grid, aggregated across `pivot.rows` / `pivot.cols` with nested column headers - instead of the flat table. The pivot ENGINE ships in `@svgrid/enterprise`; call `enablePivot()` (or `installEnterprise(api)`) to register it, otherwise an upsell note shows. See .",group:"common"},{key:"pivotMode",label:"Pivot Mode",type:"boolean",description:"Whether pivot mode is currently active. Defaults to `true` when `pivot` is set. Bindable so a toolbar toggle can flip between the pivot and the flat table over the same data.",group:"common"},{key:"contextMenu",label:"Context Menu",type:"boolean",description:'Right-click context menu. `true` shows the default item set (copy, cut, paste, clear, insert row above/below, remove row, remove column). Pass an array to customize: strings are built-in keys, `"separator"` is a divider, and objects are custom items. Omitted/`false` disables the menu (native browser menu shows instead).',group:"common"},{key:"selectionBar",label:"Selection Bar",type:"boolean",description:"Floating bar that appears over the grid while rows are selected, showing the count and the actions that apply to the whole selection - the pattern an issue tracker uses for bulk edit. `true` gives the count and a Clear button. An array is the shorthand for `{ actions }`. Pass to also set `position` (`'bottom'` default, or `'top'`), `maxVisible` and `hideClear`. Omitted / `false` is off. Default **off**. This is chrome that floats over your content, not a gesture: it overlaps a row, and what belongs on it is specific to the app. **The prop and its types are free; the bar itself is an Enterprise feature.** Install `@svgrid/enterprise` and call `enableSelectionBar()` (or `installEnterprise`, which does it for you) to render it - without that the grid shows a short upsell note in its place, the same way the scheduler and board views do.",group:"common"},{key:"rowAdder",label:"Row Adder",type:"boolean",description:'A "+ Add row" line under the last row. Clicking it (or Enter on it) appends a row, scrolls to it and starts editing its first editable cell. `true` uses the defaults; pass for the label and the new row\'s values. **The prop and its types are free; the row adder is drawn by the Enterprise `@svgrid/enterprise/fields` module** (`enableFields()`). Without it the prop does nothing.',group:"common"},{key:"rowColor",label:"Row Color",type:"json",description:"Color rows by a status: by a select field (each row takes its option's `color`) or by rules (first match wins). The color shows on the row header by default (a 3px stripe at the start of the row-number cell); `target` moves it to a stripe in the first cell or a tint across the row. The row header also gets the status as its title, so the color is never the only signal. Computed for rendered rows only. **The prop and its types are free; the colors are drawn by the Enterprise `@svgrid/enterprise/fields` module** (`enableFields()`).",group:"common"},{key:"columnAdder",label:"Column Adder",type:"boolean",description:'A "+" header cell after the last column that opens the field editor: a name, a field type and that type\'s properties. Creating adds the column and fires `onColumnAdd`; the grid never stores a schema, the app does. `{ types }` limits the types offered. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**',group:"common"},{key:"fieldMenu",label:"Field Menu",type:"boolean",description:"Field actions in each column's menu: Edit field, Insert left / right, Duplicate, Delete, Hide. Edit can change the type; values are converted where they can be and the editor says how many cells would be cleared. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**",group:"common"},{key:"expandRows",label:"Expand Rows",type:"boolean",description:"The row-number cell becomes the row's handle: on hover it shows a checkbox that selects the row and an expand button that opens the row as a record, every field with its label and its editor. With `showRowNumbers`. **Drawn by the Enterprise `@svgrid/enterprise/fields` module.**",group:"common"},{key:"pinSplitter",label:"Pin Splitter",type:"boolean",description:"A divider at the edge of the left-pinned columns: drag it right to pin the columns it passes, left to unpin them. It snaps to column edges and keeps the columns where they are on screen; with the keyboard, focus it and use the arrow keys. Its words come from `localization.text` (`pinSplitterLabel`, `pinSplitterHint`, `pinSplitterNone`, `pinSplitterOne`, `pinSplitterMany`). Loaded only when set.",group:"common"},{key:"primaryField",label:"Primary Field",type:"string",description:"The table's primary field (a column id or field): always the first column and pinned, never hidden or deleted, and the name of a record (the expanded record's title, a gallery card's title). **Kept by the Enterprise `@svgrid/enterprise/fields` module.**",group:"common"},{key:"features",label:"Features",type:"json",description:"The feature set built with `tableFeatures({ ... })`. Optional - the `sortable` / `filterable` / `groupable` shortcuts below inject the matching feature for you, so a grid can be configured entirely from the boolean shortcuts without importing the feature constants.",group:"common"},{key:"sortable",label:"Sortable",type:"boolean",description:"Convenience shortcuts to switch a whole capability on without wiring `features` or the finer-grained props by hand. Every capability is OFF by default - a bare grid is a plain read-only table - so set the shortcut `true` to opt in. (`false` / omitted both leave it off; the shortcut is mainly there to turn things ON.) `sortable` - column sorting (injects `rowSortingFeature`) `filterable` - column filtering (injects `columnFilteringFeature`) `editable` - inline cell editing (alias of `enableInlineEditing`) `selectable` - cell selection (alias of `enableCellSelection`) `groupable` - row grouping controls(alias of `showGroupingControls`, also injects `columnGroupingFeature`) `pageable` - pagination footer (alias of `showPagination`) Fine-grained props (`enableInlineEditing`, `showPagination`, ...) still work; the shortcut wins only when it is explicitly set.",group:"common"},{key:"filterable",label:"Filterable",type:"boolean",description:"Click a header to filter that column. Injects `columnFilteringFeature`, so you do not import it yourself. Which filter surface appears is a separate question - see `filterMode` (default `'menu'`). <SvGrid {data} {columns} filterable />",group:"common"},{key:"editable",label:"Editable",type:"boolean",description:"Inline cell editing. Alias of `enableInlineEditing`, and wins over it when both are set. A column also needs an `editorType` to be editable; without one it falls back to a text editor. <SvGrid {data} {columns} editable />",group:"common"},{key:"selectable",label:"Selectable",type:"boolean",description:"Cell selection - click a cell to select it, drag or shift-click to extend the selection to a range. Alias of `enableCellSelection`, and the highest priority of the three inputs that decide it: `selectable` -> `enableCellSelection` -> `selectionMode`. NOTE the asymmetry with its siblings, which are all off until you opt in: this one is **ON by default**, because `selectionMode` defaults to `'both'`. It is named here so the capability is discoverable next to the other shortcuts, and so `selectable={false}` is a one-word way to turn cell selection off (the longhand being `selectionMode=\"none\"`, which also removes the row-selection surface). This is the CELL surface only. The selection **checkbox column** is the other half of `selectionMode`, controlled by `showRowSelection` - also on by default, and it needs no feature import (verified: the column renders and toggles rows with an empty `features` set). Use `selectionMode` when you want to move both surfaces at once.",group:"common"},{key:"treeData",label:"Tree Data",type:"json",description:"Client-side tree data: nest rows into a hierarchy by parent id. ```svelte <SvGrid {data} {columns} treeData={{ parentField: 'managerId', column: 'name' }} /> ``` Unlike grouping, tree rows are real data rows - they keep their cells, editing and selection, and only gain an expander plus indentation in `column`. Rows whose parent is missing become roots rather than vanishing. For NESTED source data (`children: [...]`), flatten it first with `flattenTreeData(data, { childrenField: 'children' })` and point `parentField` at the `__parentId` it stamps on. Setting this replaces row grouping - a row cannot be both.",group:"common"},{key:"groupable",label:"Groupable",type:"boolean",description:'Show the grouping controls: "Group by this column" in the column menu, and the group panel when `showGroupPanel` is on. Alias of `showGroupingControls`, and also injects `columnGroupingFeature`. This turns on the UI for grouping. To group without asking the user, set `groupBy` instead. <SvGrid {data} {columns} groupable />',group:"common"},{key:"groupBy",label:"Group By",type:"json",description:"Group the rows by these column ids, outermost first - `['region', 'country']` rolls country up inside region. ```svelte <SvGrid {data} {columns} {features} groupBy={['department']} /> ``` The prop seeds the group-by list and re-applies whenever it changes, so it works both as initial state and as a controlled value. The column menu and `api.setGroupBy()` write the same state; a change from either survives until this prop's own value changes. Ignored when `treeData` is set - a row cannot be both a hierarchy node and bucketed under a group banner.",group:"common"},{key:"expanded",label:"Expanded",type:"json",description:'Which group / tree rows are expanded, keyed by row id. Expansion is owned by the engine by default; pass this prop to hoist it (saved views, "expand everything on load", persisted UI state). Like `groupBy` it seeds the state and re-applies whenever it changes. Group row ids are built from the grouping path, not the display label: `group_department_Engineering`, and one level deeper `group_department_Engineering_role_Senior`. Tree rows key off the engine\'s row id instead (set `getRowId` to make that your own id). Prefer capturing the map from `onExpandedChange` over hand-building these keys.',group:"common"},{key:"groupFooters",label:"Group Footers",type:"boolean",description:"Render a subtotal row after each group's children, carrying that group's aggregate values under the columns they belong to (the columns with an `aggregate` set). Off by default. Footers are inserted after paging, so they never count against `pageSize` - a page shows its `pageSize` data rows plus whatever footers close on it.",group:"common"},{key:"grandTotalRow",label:"Grand Total Row",type:"boolean",description:"Append a grand-total row at the very end, aggregating the whole filtered set (not just the current page) with each column's `aggregate` function. Independent of `groupFooters`: use it on a flat grid for a bottom totals line, or alongside group subtotals for both. Like group footers it is appended after paging, so it never counts against `pageSize` - but it is only appended on the LAST page, so a total never appears mid-dataset. Columns without an `aggregate` are left blank.",group:"common"},{key:"groupDisplayMode",label:"Group Display Mode",type:"json",description:'How grouped rows are displayed. - `groupRows` (default): a full-width banner row per group. Unchanged behaviour - existing grids are untouched. - `singleColumn`: one synthetic "Group" column holding every level, indented by depth. - `multipleColumns`: one synthetic column per grouped field. Both column modes hide the grouped source columns, since their values move into the auto column(s), and render group rows as ordinary rows so their aggregate cells line up under the real columns.',group:"common"},{key:"autoGroupColumnHeader",label:"Auto Group Column Header",type:"string",description:'Header for the combined `singleColumn` auto-group column. Default `"Group"`.',group:"common"},{key:"autoGroupColumnWidth",label:"Auto Group Column Width",type:"number",description:"Width (px) of each auto-group column. Default `220`.",group:"common"},{key:"pageable",label:"Pageable",type:"boolean",description:"Show the pagination footer. Alias of `showPagination`, and wins over it when both are set. Page size starts at `pageSize` (default 10). <SvGrid {data} {columns} pageable pageSize={25} />",group:"common"},{key:"loading",label:"Loading",type:"boolean",description:'Show the loading state instead of the rows. By default this replaces the grid body with "Loading..."; set `loadingOverlay` to keep the current rows visible under a dimmed overlay instead, which is what you usually want for a server-paged grid.',group:"behavior"},{key:"loadingOverlay",label:"Loading Overlay",type:"boolean",description:'Render `loading` as a non-blocking overlay instead of replacing the whole grid: the current rows stay visible (dimmed, with a top progress bar) during a refetch, and the first load shows shimmer skeleton rows. Ideal for server-paged grids so paging/sorting doesn\'t flash. Defaults to `false` (the classic full "Loading..." replacement).',group:"common"},{key:"loadingSkeletonRows",label:"Loading Skeleton Rows",type:"number",description:"Skeleton placeholder rows to show on first load. Defaults to 8.",group:"common"},{key:"error",label:"Error",type:"string",description:"Render an error message in place of the rows. `null` or omitted means no error. Takes precedence over `loading` and over the empty state.",group:"common"},{key:"emptyMessage",label:"Empty Message",type:"string",description:"Text shown when there are no rows to display - either the data is empty or a filter matched nothing. Defaults to the localized `noRows` string, so prefer `localization.text.noRows` when you are translating the whole grid.",group:"common"},{key:"gridLabel",label:"Grid Label",type:"string",description:"The grid's accessible name: what a screen reader calls it.",group:"common"},{key:"localization",label:"Localization",type:"json",description:"The single place to localize the grid. One object with two fields: - `locale` - BCP-47 tag(s) for the DATA: accent/case-insensitive filter matching AND every column's number / currency / percent / date formatting (when the column's own `format.locales` is unset). The default for `filterLocale` and per-column format locales. - `text` - overrides for the grid's own UI STRINGS (empty state, tool panel, pager, status bar, filter operator labels, context-menu items, upsell notes). Any subset overrides the English defaults; unset keys stay English. ```svelte <SvGrid localization={{ locale: 'fr-FR', text: { noRows: 'Aucune ligne' } }} /> ``` Omitting it (or any field) is a no-op. See .",group:"common"},{key:"showGlobalFilter",label:"Show Global Filter",type:"boolean",description:"Show the single search box that filters across every column. Explicitly setting this wins over `filterMode`; leaving it unset means it appears only when `filterMode` is `'global'`.",group:"common"},{key:"showColumnFilters",label:"Show Column Filters",type:"boolean",description:"Show the filter section inside each column's menu. Explicitly setting this wins over `filterMode`; unset, it follows `filterMode` (default `'menu'`, so this is normally on). The always-visible inputs under the headers are the filter row, `showFilterRow`.",group:"common"},{key:"filterMode",label:"Filter Mode",type:"select",options:["row","menu","global","none"],description:"Quick way to pick a single filtering UI. When set it controls which of the three filter surfaces appears (and is overridden per-surface by the `showGlobalFilter` / `showColumnFilters` / `showFilterRow` props). Defaults to `'menu'` (only the column menu's filter section is shown).",group:"common"},{key:"showGroupingControls",label:"Show Grouping Controls",type:"boolean",description:'Show the grouping affordances (the column menu\'s "Group by this column", and the group panel). The `groupable` shortcut sets this and registers the grouping feature in one go; prefer that unless you have already registered `columnGroupingFeature` yourself.',group:"common"},{key:"showRowSelection",label:"Show Row Selection",type:"boolean",description:"Show the row-selection checkbox column, including the select-all checkbox in the header. Unset, it follows `selectionMode` (default `'both'`, so row selection is on).",group:"common"},{key:"showPagination",label:"Show Pagination",type:"boolean",description:"Show the pagination footer. Off by default. `pageable` is the shortcut alias and wins when both are set.",group:"common"},{key:"pageSize",label:"Page Size",type:"number",description:"Initial page size when pagination is enabled. Defaults to 10.",group:"common"},{key:"pageSizeOptions",label:"Page Size Options",type:"json",description:"Page-size choices shown in the footer's selector. Defaults to `[10, 25, 50, 100]`.",group:"common"},{key:"paginationPosition",label:"Pagination Position",type:"select",options:["top","bottom","both"],description:"Where the pagination footer sits: `'bottom'` (default), `'top'`, or `'both'`. The status bar (when enabled) always stays at the bottom.",group:"common"},{key:"externalPagination",label:"External Pagination",type:"boolean",description:"Server-side pagination. When `true`, the grid renders its native pagination footer from the `rowCount` / `pageIndex` you provide (rather than counting the local rows), does NOT slice `data` (the rows you pass are treated as the current page), and emits `onPaginationChange` when the user pages or changes page size. Pair with `externalSort` / `externalFilter` and a server data source. Requires `showPagination` / `pageable` to show the footer. Controlled: you own `pageIndex` + `pageSize` + `rowCount`.",group:"common"},{key:"rowCount",label:"Row Count",type:"number",description:"Total rows on the server, for the footer's range + page count. Used with `externalPagination`.",group:"common"},{key:"pageIndex",label:"Page Index",type:"number",description:"Current 0-based page index. Used with `externalPagination` (controlled).",group:"common"},{key:"virtualization",label:"Virtualization",type:"boolean",description:"Render only the rows in view instead of all of them. **On by default** - this is what keeps a 100,000-row grid responsive. Turn it off when a row's height cannot be known up front and must not be clipped, such as a variable-height master-detail panel. Expect the DOM to hold every row when you do.",group:"common"},{key:"rowHeight",label:"Row Height",type:"number",description:"Row height in pixels. Pass a function `(rowIndex) => px` for per-row variable heights (e.g. an interactive row-resize feature). Defaults to 30.",group:"common"},{key:"autoRowHeight",label:"Auto Row Height",type:"boolean",description:"Size each row to its own content instead of a fixed height: cell text wraps and the row grows to fit the tallest cell. Rows are measured after they render, so this works with virtualization - `rowHeight` (or 30) is the estimate used before a row has been measured, which keeps the scrollbar stable while you scroll into new rows. Costs a measurement pass per row, so prefer a fixed `rowHeight` when your content is uniform. Ignored when `rowHeight` is a function (you are already supplying per-row heights).",group:"common"},{key:"rowResize",label:"Row Resize",type:"boolean",description:"Let the user drag a row's bottom edge to change its height. **Off by default**, because a resizable row needs somewhere to grab and most grids do not want a drag target on every row. The grid remembers the heights itself, so this works as a bare boolean - no `rowHeight` function required. Drag, or focus the grip and use Up/Down (Shift for 1px steps). Turning this on also turns on the **row header column** (* showRowNumbers), because that is where the grip lives and where a spreadsheet puts it - a drag target on the edge of a data cell works but reads as an accident. An explicit `showRowNumbers={false}` still wins; the grip then falls back to the row's first cell, and a column of your own carrying `cellClass: 'sv-row-gutter'` is used ahead of either. Ignored under `autoRowHeight`, where the content decides the height and a manual one would immediately be overwritten. For full control of the heights - persisting them, sharing them between grids - pass a function-valued and use the `rowResize` action directly.",group:"common"},{key:"headerHeight",label:"Header Height",type:"number",description:"Height (px) of a single column-header level row. With multi-level (grouped) headers the total header height is `levels * headerHeight`, since each level renders as its own row. When omitted, header rows size to their content (the default). Does not affect the filter row.",group:"common"},{key:"overscan",label:"Overscan",type:"number",description:"Extra rows rendered above and below the viewport, so fast scrolling does not reach empty space before the next batch renders. Defaults to 8. Raise it for very tall rows, lower it to trim DOM work. The first paint after mount carries at most 2 of them, so the rows on screen appear sooner; the rest are added in the frame after that paint.",group:"common"},{key:"containerHeight",label:"Container Height",type:"number",description:"Height of the grid's scrollable shell. A number is treated as pixels; a string is used as-is, so callers can pass `'100%'` or `'auto'` to make the grid fill its parent. Defaults to 520 px.",group:"common"},{key:"columnVirtualization",label:"Column Virtualization",type:"boolean",description:"Render only the columns in view, the horizontal counterpart of `virtualization`. **On by default**, which is what makes a 100-column grid scroll smoothly. Pinned columns stay rendered while it is on: the pinned-left and pinned-right columns are drawn as their own runs either side of the virtual window, so a wide grid with pinned edges still renders only the columns in view plus the pinned ones.",group:"common"},{key:"columnOverscan",label:"Column Overscan",type:"number",description:"Columns kept rendered beyond the viewport when `columnVirtualization` is on: this many ahead of a horizontal scroll at all times, one behind it. The rendered columns move three at a time, so right after a move up to `columnOverscan + 2` are rendered ahead. Defaults to 3.",group:"common"},{key:"columnWidth",label:"Column Width",type:"number",description:"Fallback width in pixels for columns whose `ColumnDef` sets no `width`. Defaults to 140.",group:"common"},{key:"initialColumnPinning",label:"Initial Column Pinning",type:"json",description:"Columns pinned to the left/right edge on mount. Each entry is a column id (matches `ColumnDef.field` when no explicit id is set). The internal pinning state is seeded once at mount; user-driven pinning via the column menu still works and overrides this default. Works with column virtualization on (the default).",group:"common"},{key:"fitColumns",label:"Fit Columns",type:"boolean",description:"When `true`, columns are scaled proportionally so their total width fills the viewport (no empty space on the right). Disabled by default - explicit `width` values are used as-is. User resizes still win once they happen.",group:"common"},{key:"columnResize",label:"Column Resize",type:"boolean",description:"Let the user drag a column's edge to change its width. **Off by default**, so `width` means the width you asked for until you say otherwise. Turn it on for grids the reader is meant to arrange - a spreadsheet, a dense report, anything with columns whose content varies in length. Leave it off for layouts you control, and for columns that must keep their size: a row-number gutter, a checkbox column, an icon column. It turns resizing on for the whole grid; a column opts out with `resizable: false` on its definition. `api.autosizeColumn()`, `fitColumns` and programmatic width changes work either way - this only governs the drag handle. The handles come from the `columnResize` action, loaded on demand: a grid that leaves this off never fetches that code.",group:"common"},{key:"responsive",label:"Responsive",type:"boolean",description:"Make the grid usable on narrow screens. When the grid's own width drops below the breakpoint (default `640`px), pinned columns are un-pinned so the whole grid pans, `fitColumns` scaling is suspended (columns keep their natural widths and scroll), touch panning is smoothed, and columns whose `hideBelow` exceeds the width are hidden. `true` uses the default breakpoint; pass `{ breakpoint }` to change it. Off by default.",group:"common"},{key:"showFilterMenu",label:"Show Filter Menu",type:"boolean",group:"common"},{key:"showFilterRow",label:"Show Filter Row",type:"boolean",description:"Show the always-visible filter row under the header. Explicitly setting this wins over `filterMode`; unset, it appears only when `filterMode` is `'row'`.",group:"common"},{key:"enableCellSelection",label:"Enable Cell Selection",type:"boolean",description:"Cell selection - click to select, drag or shift-click to extend to a range, which is what clipboard copy and the range fill handle operate on. Unset, it follows `selectionMode` (default `'both'`, so this is on). `selectable` is the shortcut alias and wins over it.",group:"common"},{key:"moveCells",label:"Move Cells",type:"boolean",description:"Excel-style drag-and-drop of a selected cell range: grab the range's border and drag it somewhere else to MOVE the values there, or hold Ctrl (Cmd on macOS) to COPY them instead. The modifier is read at drop time, so it can be pressed or released mid-drag. On by default whenever cell selection is on, matching the fill handle. Set `false` to keep a border pointerdown starting a fresh selection, which is what it did before this existed. The grab strip is the outer 4px of the range border, so a pointerdown anywhere further inside still starts a new selection. A drop is refused outright - nothing changes - when the destination would fall outside the grid, or when any source or destination cell is read-only. It does not move the part that fits and silently drop the rest.",group:"common"},{key:"enableRowHover",label:"Enable Row Hover",type:"boolean",description:"Highlight the row under the pointer. Default **false** - the hover tint can compete with the cell selection / fill marquee. Set `true` to opt in; when on, the hover no longer paints over selected cells so the selection stays visible.",group:"common"},{key:"copyHeadersToClipboard",label:"Copy Headers To Clipboard",type:"boolean",description:"Prepend a header row (the column labels) to copied cell ranges, so pasting into Excel / Sheets includes the headers. Applies per copied range.",group:"common"},{key:"processCellForFill",label:"Process Cell For Fill",type:"json",description:`Decide what the fill handle writes into one cell, ahead of the grid's own pattern rules (series, weekdays, "Item 1"). Receives the source cell's value and how far the target sits from it; return the value to write, or \`undefined\` to let the pattern decide. A spreadsheet uses it to move a formula's references by the distance filled, which the pattern rules would otherwise mangle ("=A1+B1" reads as "Item 1").`,code:!0,group:"advanced"},{key:"processCellForClipboard",label:"Process Cell For Clipboard",type:"json",code:!0,group:"advanced"},{key:"includeCollapsedRows",label:"Include Collapsed Rows",type:"json",description:'Whether a collapsed row still takes part in a copy or a fill that spans it. Left out, both skip every collapsed row, which is what "filter, copy, paste" needs and what a fill dragged over a filtered list expects: the series runs over the rows that show. A spreadsheet answers per row: a row hidden by hand is copied and filled, as Excel does, while a row a filter folded away is not.',code:!0,group:"advanced"},{key:"clipboardHtml",label:"Clipboard Html",type:"json",description:"An HTML rendering of what Ctrl+C copies, written to the clipboard as `text/html` beside the TSV. Excel and Google Sheets read the HTML first, so a table with inline styles pastes into them with its formats, and the same markup can carry what the text cannot (a formula in a `data-` attribute) for a round trip back into a grid that reads it. Called after every cell has been through `processCellForClipboard`, with the rectangles copied and the text about to be written. Return nothing to write text alone. Runs synchronously inside the key press, which is what the clipboard needs.",code:!0,group:"advanced"},{key:"holdRowsOnWrite",label:"Hold Rows On Write",type:"boolean",description:"A paste, a clear or a fill changes rows where they stand, as a typed edit does, instead of handing the grid a new list that sorts and filters them again at once. For an app that orders the view itself once the person moves on (`api.setOption` or new `data`): the rows do not move under the cursor, so a second Delete or paste lands on the same records.",group:"common"},{key:"parseClipboardText",label:"Parse Clipboard Text",type:"json",description:"Split pasted text into rows of cells, for a consumer whose copy quotes a cell (a line break inside it, as Excel writes one). Left out, every line is a row and every tab a new cell.",code:!0,group:"advanced"},{key:"processCellFromClipboard",label:"Process Cell From Clipboard",type:"json",description:"Transform each cell on its way IN from the clipboard, before the grid coerces it for the column's editor. Symmetric with `processCellForClipboard`: the pair is what lets a round trip survive. Receives the raw clipboard text for the cell plus where it is landing. Return the value to write, or `undefined` to leave the cell untouched. This is also the seam a feature pack uses to take over a paste entirely: `@svgrid/enterprise`'s paste-special reads the clipboard's `text/html` for formats and formulas and writes through here.",code:!0,group:"advanced"},{key:"enableInlineEditing",label:"Enable Inline Editing",type:"boolean",description:"Inline cell editing: F2 or double-click opens an editor in the active cell, Enter commits, Esc cancels. Off by default. A column still needs an `editorType` to pick its editor (text, number, date, checkbox, list, ...); without one it gets a plain text editor. `editable` is the shortcut alias and wins over this.",group:"common"},{key:"editOnSecondClick",label:"Edit On Second Click",type:"boolean",description:"A click on the cell that is already active opens its editor, the way a second click on a selected file name starts renaming it. On by default. A spreadsheet turns it off: Excel edits on double-click or F2 only, and a user clicking the cell they are on to get back to it after a dialog would otherwise find the next shortcut typed into an editor.",group:"common"},{key:"fullRowEditing",label:"Full Row Editing",type:"boolean",description:"Full-row editing. When `true`, starting an edit puts the WHOLE row into edit mode - every editable cell shows an inline editor at once - and a single Enter (or focus leaving the row) commits all of them; Esc cancels the whole row. Requires `enableInlineEditing`. The full-row editor covers text / number / date / datetime / checkbox / list-select editor types.",group:"common"},{key:"enableRowSummaries",label:"Enable Row Summaries",type:"boolean",description:"Append a sticky footer row aggregating every filtered row: the sum of a numeric column, `Count: N` otherwise. Choose a different aggregate per column with that column's own `summary` option, or set it to `false` there to leave the cell blank. Off by default. `summary` is the shortcut alias and wins when both are set. <SvGrid {data} {columns} summary />",group:"common"},{key:"summary",label:"Summary",type:"boolean",description:"Shortcut alias for . Wins over it when both are set, the same precedence `selectable` has over `enableCellSelection`.",group:"common"},{key:"statusBar",label:"Status Bar",type:"boolean",description:'Excel-style status bar under the grid showing live aggregates of the selected cell range (count, numeric count, sum, average, min, max). `true` shows the default set; pass `{ aggregates: [...] }` to choose which. The aggregates need `enableCellSelection`. `rows: true` adds a row count that is always shown, "250 rows" or "12 of 250 rows" while filters hide some, once `@svgrid/enterprise`\'s `enableRowCount()` has run. `{ rows: true, aggregates: [] }` shows the count alone.',group:"common"},{key:"toolPanel",label:"Tool Panel",type:"boolean",description:'Show the docked tool panel - the enterprise sidebar with Columns and Filters tabs. A "Columns & Filters" button appears in a toolbar above the grid; the panel docks on the right edge.',group:"common"},{key:"charting",label:"Charting",type:"boolean",description:"Integrated charting: `true` for the zero-config docked chart panel, or a object to author defaults + advanced options.",group:"common"},{key:"columnMenuTabs",label:"Column Menu Tabs",type:"boolean",description:'Render the header column menu (⋮) as a tabbed popover - **General**, **Filter**, and **Columns** tabs (the tabbed layout). Defaults to `false`, which keeps the flat menu (actions list + "Choose columns" submenu).',group:"common"},{key:"toolPanelDefaultOpen",label:"Tool Panel Default Open",type:"boolean",description:"Open the tool panel on first render (instead of collapsed).",group:"common"},{key:"toolPanelDefaultTab",label:"Tool Panel Default Tab",type:"select",options:["columns","filters"],description:"Which tab the tool panel starts on. Defaults to `'columns'`.",group:"common"},{key:"selectionMode",label:"Selection Mode",type:"select",options:["row","cell","both","none"],description:"Quick way to pick which selection surfaces are active. `'row'` shows the selection checkbox column only, `'cell'` allows rectangle/range cell selection only, `'both'` (default) enables both, `'none'` disables both. Overridden per-surface by `showRowSelection` / `enableCellSelection`.",group:"common"},{key:"showRowNumbers",label:"Show Row Numbers",type:"boolean",description:"Render a leading row-number column (1-based) before any selection column. Useful as a permanent anchor when scrolling wide grids.",group:"common"},{key:"zebraRows",label:"Zebra Rows",type:"boolean",description:"Paint alternating data rows with the `--sg-row-alt-bg` color (zebra striping). Only data rows stripe - pinned, group, detail, and summary rows keep their single background. Defaults to `false`.",group:"common"},{key:"rowNumberWidth",label:"Row Number Width",type:"number",description:"Width (px) of the row-number column. By default it fits the largest row number: 56px up to four digits, then 9px wider per digit (from `data.length`, or `rowCount` on a server-paged grid). Set it to pin a width, for example when a theme uses a much larger font.",group:"common"},{key:"externalSort",label:"External Sort",type:"boolean",description:"When `true`, the grid records sort state (and renders sort indicators + cycling on headers) but does NOT actually re-order the rows. The consumer is expected to sort `data` themselves - typically via `onSortingChange`. Use this for tree/hierarchical data, where a flat global sort would break parent-child adjacency. Defaults to `false`.",group:"common"},{key:"initialSorting",label:"Initial Sorting",type:"json",description:"The sort state to start in - `{ id, desc }` entries. Use with `externalSort` when the initial ordering is decided server-side (e.g. a URL `?sort=` param read in a SvelteKit `load`), so the header sort indicators match the already- sorted data on first render. Applied once at mount; user sorting takes over.",group:"common"},{key:"initialAdvancedFilter",label:"Initial Advanced Filter",type:"json",description:"The advanced-filter expression to start in (Pro). Applied once at mount; change it afterwards through `api.setAdvancedFilter()`. Filtering only happens once `@svgrid/enterprise`'s `enableAdvancedFilter()` has registered a compiler - without it the expression is stored and reported but no rows are removed, so the free grid degrades to a no-op rather than to a wrong row set.",group:"common"},{key:"externalFilter",label:"External Filter",type:"boolean",description:"When `true`, the grid still records column-filter / global-filter / facet state (so the menu UI works and indicators light up) but does NOT actually filter the rows. The consumer is expected to fetch / sort / filter the data themselves - typically via `onFiltersChange`. Used by server-side data sources. Defaults to `false`.",group:"common"},{key:"getRowId",label:"Get Row Id",type:"json",description:"Resolve a stable id per row. Drives selection, expansion, edit, and active-cell state. When omitted, the row's array index is used - fine for read-only views but the wrong choice if `data` gets reordered or filtered outside the grid (selection would follow positions, not actual rows). Use a database PK, a UUID, or any stable string.",code:!0,group:"advanced"},{key:"rowClass",label:"Row Class",type:"json",description:'Conditional class(es) added to every `<tr>` body row. Receives the row\'s `original` data + its data-array index. Return a string, an array of strings, or an object mapping class names to booleans. Useful for "highlight overdue rows", "tint cancelled orders", and similar row-level state mappings.',code:!0,group:"advanced"},{key:"notes",label:"Notes",type:"json",description:'Per-cell notes - longer free-form comments shown as a corner indicator + tooltip on hover. Keyed by row id then column id; empty / missing entries mean "no note". The grid owns rendering; you own storage (write your own callbacks to add / edit notes).',group:"common"},{key:"editableComments",label:"Editable Comments",type:"boolean",description:'Allow editing per-cell notes/comments through the UI: the context menu gains an "Edit comment" item that opens a popover editor. Edits are applied to an internal overlay for immediate feedback and emitted via `onNoteChange` so you can persist them back into `notes`.',group:"common"},{key:"conditionalFormats",label:"Conditional Formats",type:"json",description:"Excel-style conditional formatting. A list of value-driven rules that color cells: `colorScale` (gradient across the column range), `dataBar` (in-cell proportional bar), `iconSet` (arrows / traffic / triangles by threshold), and `rule` (apply a style when a predicate matches). Scope a format to specific columns with `columns: [...]`, or omit it to apply to every column. Later entries win on conflict. `colorScale` and `dataBar` apply to data rows only: group, footer and grand-total rows carry subtotals on a different scale, so they keep the `rule` and `iconSet` formats and drop the scaled ones. On a server row model, give scaled formats `minValue` / `maxValue`; the grid does not scan rows it has not loaded for a range.",group:"common"},{key:"conditionalStatScope",label:"Conditional Stat Scope",type:"select",options:["filtered","visible","all"],description:"Which rows feed the min/max range that `colorScale` / `dataBar` formats scale against. - `filtered` (default): every row that survives the filters, ignoring the page slice. The scale follows what you filtered to but does not shift when you page, so the same value keeps the same colour on page 1 and page 2. - `visible`: only the rows currently on screen. Rescales per page - use it when you want each page's heat map normalized to that page. - `all`: the full unfiltered dataset, for a scale that stays put as you filter.",group:"common"},{key:"rowPlaceholder",label:"Row Placeholder",type:"json",description:'Marks a row as one whose data has not arrived: `"loading"` draws a shimmer in every cell, `"failed"` draws a full-width "could not load" row with a Retry button, and `null` (the default for every row) renders normally. Placeholder rows are inert - not selectable, not editable, and skipped by cell navigation - because there is nothing there to act on yet. `createServerDataSource` in `infinite` mode fills the gaps with rows this recognises, so the usual wiring is `rowPlaceholder={rowPlaceholderState}` (or nothing at all, via `rowModel`).',code:!0,group:"advanced"},{key:"rowModel",label:"Row Model",type:"json",description:"Drive the grid from a row model instead of wiring a dozen props. `createServerDataSource` returns one, and so does the Enterprise server-side row model, so server-backed grids become: ```svelte <SvGrid rowModel={ctl} {columns} /> ``` The model supplies `data`, `loading`, `getRowId`, the external sort and filter wiring, the visible range, placeholder rows, group accessors, selection and paging - each one only if it implements that part. A prop written explicitly on the grid always wins, so you can adopt it and still override one piece.",group:"common"},{key:"pivotResultColumns",label:"Pivot Result Columns",type:"json",description:"Columns that REPLACE `columns` while set. The server-side row model supplies them in pivot mode - one column per pivoted value, grouped under a header per pivot key - and clears them when pivot mode ends, so `columns` stays the app's own list. Rarely set by hand.",group:"common"},{key:"rowSelectionModel",label:"Row Selection Model",type:"json",group:"common"},{key:"isDetailRow",label:"Is Detail Row",type:"json",description:'Marks a row as an expandable "detail row". When this returns true the grid renders that row as a SINGLE full-width cell (colspan across every column) using `renderDetailRow`, instead of the normal per-column cells - the canonical Stripe / GitHub "expand a rich panel beneath the row" pattern. Insert the detail rows into `data` yourself (typically right after the row they belong to) and toggle them with your own expanded state. Pair with `virtualization={false}` so the variable-height detail isn\'t clipped by the fixed-row-height virtualizer.',code:!0,group:"advanced"},{key:"detailRowHeight",label:"Detail Row Height",type:"number",description:"The height of a detail row, in px, or a function of its data. With it the virtualizer can size detail rows, so master-detail works with `virtualization` on (the panel scrolls inside its cell when taller). Without it a detail row is auto height, which needs `virtualization={false}`.",group:"common"},{key:"showDetailToggle",label:"Show Detail Toggle",type:"boolean",description:"A row-header column of chevrons that open and close detail rows. It sits with the row-number and selection columns: sticky at the left, no column menu, not resizable, not reorderable, outside the active cell and the selection. The chevron calls `onDetailToggle` (or, on a server row model, the model's own toggle) and reads `isDetailOpen` for its direction; `hasDetail` hides it on rows that have nothing to open. Detail rows themselves get an empty cell.",group:"common"},{key:"isDetailOpen",label:"Is Detail Open",type:"json",description:"Whether the detail under a row is open: the chevron's direction and `aria-expanded`.",code:!0,group:"advanced"},{key:"hasDetail",label:"Has Detail",type:"json",description:"Whether a row has a detail to open; the chevron is left out where this returns false.",code:!0,group:"advanced"},{key:"serverGroup",label:"Server Group",type:"json",description:"Server-side group / tree keyboard + accessibility, built into the grid. When set, the grid uses the treegrid role and marks matching rows with `aria-level` / `aria-expanded`, and ArrowRight / ArrowLeft expand / collapse the focused group row (no app-level key handling). Pair with `serverGroupRows` + `SvGroupCell` from `@svgrid/enterprise` for the visual expander, or drive it from your own tree state. Every accessor receives the row data.",group:"common"},{key:"serverFilterValues",label:"Server Filter Values",type:"json",description:"Server-side set-filter values. When set, a column's filter checklist is populated by fetching the distinct values from the server (once per column, cached) instead of deriving them from the loaded page - so the checklist shows every value, not just those on screen. Return the distinct string values for the column id.",code:!0,group:"advanced"},{key:"pinnedTopRows",label:"Pinned Top Rows",type:"json",description:'Rows to pin to the TOP of the grid - rendered above the regular rows and sticky-positioned so they stay visible while the user scrolls. Typical use: a "totals" or "headline" row that should always be in view. Rows are read-only (no inline editing, no row-selection checkbox). They share the column schema with the main grid; field/format/cell/cellClass all apply.',group:"common"},{key:"frozenRows",label:"Frozen Rows",type:"number",description:"Freeze the first N rows: they stay under the header while the body scrolls, and unlike `pinnedTopRows` they are the grid's own rows, still editable, selectable and numbered as rows 1..N. Excel's Freeze Panes, for the row half; the column half is `columnPinning`. Under `virtualization` the frozen rows are always rendered and the window skips them.",group:"common"},{key:"stickyGroupRows",label:"Sticky Group Rows",type:"boolean",description:"Keep the group a row belongs to in view: while the rows of an open group scroll past, the group's row (and its parents' rows) stay under the header, the way a section heading stays put in a long list, so a screen deep inside a 60,000-row group still says which group it is. Works for server-side groups (`rowModel` / `serverGroup`), client grouping and tree data. Under `virtualization` the band shows a copy of each ancestor row; without it the rows themselves stick. Off by default.",group:"common"},{key:"mergedCells",label:"Merged Cells",type:"json",description:"Merged cells: rectangles drawn as one cell, a spreadsheet's Merge & Center. Each entry is the top-left cell (display indices) and how many rows and columns it covers. The origin's td takes the span and shows the origin's value; the covered cells are not drawn, a selection grows to whole merges, the active cell inside a merge is its origin, and the arrow keys step over a merge as one cell. A merge that crosses the frozen boundary or the rendered window is drawn in parts, one per band. The grid does not write into covered cells on its own; a consumer that merges cells keeps them empty or marks them read-only through the column's `editable`.",group:"common"},{key:"rowLayout",label:"Row Layout",type:"select",options:["flex","table"],description:"How rows are laid out. `'flex'` (the default) draws each row as a line of fixed-width cells, so adding or removing cells in one row - what a horizontal scroll does every frame - lays out that row only. `'table'` uses the HTML table algorithm, which re-lays every row on such a change but can draw a merged cell spanning rows; the grid switches to it on its own when `mergedCells` has one.",group:"common"},{key:"pinnedBottomRows",label:"Pinned Bottom Rows",type:"json",description:'Rows to pin to the BOTTOM of the grid - rendered below the regular rows and sticky-positioned (sticks to the bottom of the viewport while the user scrolls). Typical use: a "page totals" or "grand total" row computed from `getDisplayedRows()`.',group:"common"},{key:"enableColumnReorder",label:"Enable Column Reorder",type:"boolean",description:"Enables drag-to-reorder on the grid's column headers. When `true`, every header gets `draggable=true` and a drop indicator paints between headers during a drag. On drop the grid mutates its internal column order and fires `onColumnOrderChange` with the new order. Defaults to `false`.",group:"common"},{key:"columnOrder",label:"Column Order",type:"json",description:"Initial column order, by `id` (falls back to `field`). When the user reorders columns, this is the starting state. After mount, the grid owns the order internally and emits `onColumnOrderChange` on every change - persist that to `localStorage` to restore.",group:"common"},{key:"inferColumnTypes",label:"Infer Column Types",type:"boolean",description:"Infer each column's data type (number / boolean / date / ISO date-string / text) from the first data row, for columns that declare neither an explicit `editorType` nor a `cellDataType`. Sets the matching editor, alignment, date format, and filter operators automatically. Explicit column config always wins. Defaults to `false`.",group:"common"},{key:"rowDragManaged",label:"Row Drag Managed",type:"boolean",description:"Enables managed row dragging. When `true`, a row is dragged by its row-number cell (a grip shows while it is hovered), or by any cell when row numbers are off, and a drop indicator paints between rows during a drag. On drop the grid mutates its own internal data - reordering within the grid, or moving the row across grids that share the same . Defaults to `false`.",group:"common"},{key:"rowDragGroup",label:"Row Drag Group",type:"string",description:"Connection group for cross-grid row dragging. Grids that share the same non-empty `rowDragGroup` string (and have `rowDragManaged` on) can exchange rows: dragging a row out of one and dropping it into another removes it from the source and inserts it into the target. Omit to keep dragging confined to reordering within a single grid.",group:"common"},{key:"alignedGridGroup",label:"Aligned Grid Group",type:"string",description:"Align this grid with others that share the same non-empty `alignedGridGroup` string: horizontal scroll and column-resize widths are kept in lockstep across every grid in the group. Use for a totals/header grid above a body grid, or side-by-side comparison grids that must line up. The grids should declare the same columns (matched by id) for widths to map.",group:"common"},{key:"filterLocale",label:"Filter Locale",type:"string",description:'BCP-47 locale tag (or array of fallbacks) used for accent- and case-insensitive text filtering / sorting / search. Powered by `Intl.Collator` with `sensitivity: \'base\'`, so "cafe", "Café" and "CAFÉ" all match "cafe" without strain. Defaults to the browser\'s locale.',group:"common"}],events:[{key:"pivotModeChange",label:"Pivot Mode Change",prop:"onPivotModeChange",description:"Fired when the in-grid Pivot toggle flips `pivotMode`."},{key:"rowAdd",label:"Row Add",prop:"onRowAdd",description:"Fires after the row adder appended a row, with that row. Persist it here."},{key:"columnAdd",label:"Column Add",prop:"onColumnAdd",description:"A field was added (column adder, Insert, Duplicate). `columns` is the whole column list after the change, as declared (store it as your `columns`); `data` is set when values were written too."},{key:"columnChange",label:"Column Change",prop:"onColumnChange",description:"A field was edited. `columns` as in `onColumnAdd`; `data` is set when a type change converted its values."},{key:"columnRemove",label:"Column Remove",prop:"onColumnRemove",description:"A field was deleted from the column menu (its values stay in the rows). `columns` as in `onColumnAdd`."},{key:"rowsDelete",label:"Rows Delete",prop:"onRowsDelete",description:"Rows were deleted from the selection bar's Delete (`deleteRows`): the rows and their ids, and the data without them, to store."},{key:"rowColorChange",label:"Row Color Change",prop:"onRowColorChange",description:'The rows were set to be colored by another field, or no longer colored, from a single select\'s column menu ("Color rows by this field" with `fieldMenu`). Store it and pass it back as `rowColor`.'},{key:"expandedChange",label:"Expanded Change",prop:"onExpandedChange",description:"Fired whenever the expanded set changes - chevron clicks, `api.setRowExpanded()`, `expandAllGroups()` / `collapseAllGroups()`. Receives the full next map, so it can be written straight back into `expanded` for a controlled setup."},{key:"paginationChange",label:"Pagination Change",prop:"onPaginationChange",description:"Fires when the user changes page or page size while `externalPagination` is on. Fetch that page and update `data` / `rowCount` / `pageIndex`."},{key:"columnResize",label:"Column Resize",prop:"onColumnResize",description:"The user dragged a column's edge (or double-clicked it to autosize). Programmatic `api.setColumnWidth` does not fire it."},{key:"rowResize",label:"Row Resize",prop:"onRowResize",description:"The user dragged a row's edge, or double-clicked it: `height` is then `null`, the row back at its declared height. Programmatic `api.setRowHeight` does not fire it."},{key:"pasteClipboard",label:"Paste Clipboard",prop:"onPasteClipboard",description:"Take over a paste. Receives the clipboard's `text/plain` and, when the source put one there, its `text/html` (Excel's carries formats and formulas; a grid's own `clipboardHtml` carries whatever it chose to). Return `true` to say the paste was applied; anything else lets the grid paste the text as it always has. Runs inside one history group, so every `setCellValue` and `recordUndo` the handler makes is one Ctrl+Z. With this set, Ctrl+V lets the browser's own `paste` event through (that is where the unsanitised HTML is), and the async Clipboard API is the fallback for a browser that does not deliver it. `source` says which path the payload came by."},{key:"pasteOverflow",label:"Paste Overflow",prop:"onPasteOverflow",description:"A paste that runs past the last row: the lines there is no row for, split into cells, and the column index the first cell of each belongs to. Without it they are dropped. Runs inside the paste's undo step."},{key:"apiReady",label:"Api Ready",prop:"onApiReady",description:"Receives the imperative grid API once the component has mounted."},{key:"rowSelectionChange",label:"Row Selection Change",prop:"onRowSelectionChange",description:"Fires whenever the row-selection state changes. The first argument is the new selection record `{ [rowId]: true }`; the second is the array of selected `TData` rows."},{key:"cellSelectionChange",label:"Cell Selection Change",prop:"onCellSelectionChange",description:"Fires whenever the cell selection changes (mouse, keyboard, or `api.selectCells()`). `ranges` is every selected rectangle, matching `api.getSelected()`: the ones a Ctrl+click committed and the active one last, each `[rowStart, colStart, rowEnd, colEnd]` in grid coords. Empty array when the user clears the selection."},{key:"sortingChange",label:"Sorting Change",prop:"onSortingChange",description:"Fires whenever the sort clauses change. Receives the new array of `{ id, desc }` entries. Pair with `externalSort={true}` when the consumer wants to own the row ordering."},{key:"advancedFilterChange",label:"Advanced Filter Change",prop:"onAdvancedFilterChange",description:"Fires whenever the advanced-filter expression changes, whatever changed it: `api.setAdvancedFilter()`, `clearAllFilters()`, or the toolbar's clear control. The panel that authors the expression is mounted by you, outside the grid, so it cannot see a change the grid made on its own. Without this, clearing from the toolbar leaves that panel showing a filter the grid is no longer applying. Feed this back into the panel's `expression` prop to keep them agreeing."},{key:"filtersChange",label:"Filters Change",prop:"onFiltersChange",description:"Fires whenever any of the in-grid filter state changes - global search, per-column operator filters, or facet (value-checklist) filters. Pair with `externalFilter={true}` when the consumer wants to push the query to the server."},{key:"noteChange",label:"Note Change",prop:"onNoteChange",description:"Fires when a comment is saved or removed (removed = empty `note`)."},{key:"cellValueChange",label:"Cell Value Change",prop:"onCellValueChange",description:"Fires after an inline edit commits, with the cell's old and new value and the row it belongs to. This is where you persist the change. The grid has already applied the edit to its own state by the time this runs, so it is a notification, not a veto - reject a value with the column's `valueParser` or a validation rule instead."},{key:"activeCellChange",label:"Active Cell Change",prop:"onActiveCellChange",description:"Fires whenever the active cell changes - click, keyboard move, tab, page-up/down, etc. Consumers (toolbars, ribbon UIs) use this to stay synced with the grid's selection without polling the DOM."},{key:"cellClick",label:"Cell Click",prop:"onCellClick",description:"Fires when a data cell (and therefore a row) is single-clicked. Group-header rows are excluded. `value` is the displayed cell value."},{key:"rowClick",label:"Row Click",prop:"onRowClick",description:"Fires when a data row is single-clicked (any cell). Group rows excluded."},{key:"cellDoubleClick",label:"Cell Double Click",prop:"onCellDoubleClick",description:"Fires when a data cell is double-clicked - independent of whether the cell is editable, so it fires even on read-only grids. Group rows excluded."},{key:"rowDoubleClick",label:"Row Double Click",prop:"onRowDoubleClick",description:"Fires when a data row is double-clicked (any cell). Group rows excluded."},{key:"scrollBottomReached",label:"Scroll Bottom Reached",prop:"onScrollBottomReached",description:"Fires once each time the body is scrolled to (within ~32px of) the bottom. Re-arms after the user scrolls back up. The canonical hook for infinite / lazy loading - append more rows to `data` when it fires."},{key:"visibleRangeChange",label:"Visible Range Change",prop:"onVisibleRangeChange",description:'Fires when the range of rows on screen changes, with the first and last row INDEX (not pixels). Coalesced to one call per frame, so it is cheap to wire to something that fetches. This is the hook a block-loading data source needs and `onScrollBottomReached` cannot give it: "the user is looking at rows 4,000-4,020" answers which block to fetch and which to keep, while "they hit the bottom" only ever means "append more". Both are free; use this one with `createServerDataSource({ mode: \'infinite\' })`, or let `rowModel` wire it for you. Reports `0, data.length - 1` when virtualization is off, since every row really is rendered.'},{key:"retryRow",label:"Retry Row",prop:"onRetryRow",description:'Called by the Retry button on a `"failed"` placeholder row.'},{key:"detailToggle",label:"Detail Toggle",prop:"onDetailToggle",description:"Open or close the detail under a row. The chevron of `showDetailToggle` and Ctrl+Enter on a row call it; you keep the open set and insert or remove the detail row in `data`. A server row model supplies its own (the `rowModel` prop wires `toggleDetail`), so this is the client side."},{key:"columnOrderChange",label:"Column Order Change",prop:"onColumnOrderChange",description:"Fires every time the column order changes (drag or `api.setColumnOrder`)."},{key:"columnVisibilityChange",label:"Column Visibility Change",prop:"onColumnVisibilityChange",description:"Fires when the set of hidden columns changes: the column menu, `api.setColumnVisible`, or `api.setState`. Gets the ids of the hidden columns, the same list as `api.getState().hiddenColumns`. Mounting is not reported, so columns declared `visible: false` do not fire it."},{key:"columnPinningChange",label:"Column Pinning Change",prop:"onColumnPinningChange",description:"Fires when a column is pinned or unpinned, from the column menu, `api.setColumnPinning`, or `api.setState`. Gets the same shape as `api.getState().columnPinning`. Mounting is not reported."},{key:"rowDragEnd",label:"Row Drag End",prop:"onRowDragEnd",description:"Fires on the TARGET grid after a managed row drag settles, with the moved row, its landing index, whether it stayed in the same grid, and the source / target grid ids. Use it to mirror the move into your own state (persistence, server sync). The grid has already applied the change to its internal data by the time this fires."},{key:"rowDrop",label:"Row Drop",prop:"onRowDrop",description:"Take the drop yourself. With this set the grid keeps the drag affordance and the drop indicator but does not touch its data: the handler gets the dragged row, the row it landed on (null for the empty space below the rows) and the side - `before` / `after`, or `into` when it landed on the middle of a group or tree row, which makes it that row's child. The path for a `rowModel`, whose rows the grid does not own: hand the move to the model (`moveRow`) or to your server. Only fires within one grid; a drop from another grid stays managed."}]}},zr=[{key:"click",label:"Click",dom:"click",description:"The component (or a child) was clicked."},{key:"dblclick",label:"Double click",dom:"dblclick",description:"The component was double-clicked."},{key:"change",label:"Change",dom:"change",description:"A committed value change (fires on blur for inputs)."},{key:"input",label:"Input",dom:"input",description:"Fires on every keystroke / immediate value edit."},{key:"focus",label:"Focus",dom:"focusin",description:"The component (or a child) gained focus."},{key:"blur",label:"Blur",dom:"focusout",description:"The component (or a child) lost focus."},{key:"keydown",label:"Key down",dom:"keydown",description:"A key was pressed while focused."},{key:"keyup",label:"Key up",dom:"keyup",description:"A key was released while focused."},{key:"contextmenu",label:"Context menu",dom:"contextmenu",description:"Right-click / context-menu request."},{key:"mouseenter",label:"Mouse enter",dom:"mouseenter",description:"The pointer entered the component."},{key:"mouseleave",label:"Mouse leave",dom:"mouseleave",description:"The pointer left the component."}],Yd=[{key:"button",label:"Button",category:"Actions",importName:"SvButton",props:[{key:"variant",label:"Variant",type:"select",options:["primary","secondary","outline","ghost","danger"],default:"primary"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"block",label:"Full width",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Label",contentDefault:"Click me"},{key:"badge",label:"Badge",category:"Feedback",importName:"SvBadge",props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md"},{key:"pill",label:"Pill shape",type:"boolean",default:!0},{key:"dot",label:"Show dot",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Text",contentDefault:"Badge"},{key:"alert",label:"Alert",category:"Feedback",importName:"SvAlert",props:[{key:"variant",label:"Variant",type:"select",options:["info","success","warning","danger","neutral"],default:"info"},{key:"title",label:"Title",type:"string"},{key:"dismissible",label:"Dismissible",type:"boolean",default:!1},{key:"soft",label:"Soft (tinted) style",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Message",contentDefault:"This is an alert message."},{key:"progress",label:"Progress bar",category:"Feedback",importName:"SvProgress",props:[{key:"value",label:"Value",type:"number",default:60},{key:"max",label:"Max",type:"number",default:100},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"showLabel",label:"Show percentage",type:"boolean",default:!1},{key:"striped",label:"Striped",type:"boolean",default:!1}]},{key:"card",label:"Card",category:"Layout",importName:"SvCard",props:[{key:"title",label:"Title",type:"string",default:"Card title"},{key:"subtitle",label:"Subtitle",type:"string"},{key:"hoverable",label:"Hover elevation",type:"boolean",default:!1},{key:"flush",label:"Flush padding",type:"boolean",default:!1}]},{key:"divider",label:"Divider",category:"Layout",importName:"SvDivider",props:[{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal"},{key:"label",label:"Label",type:"string"},{key:"align",label:"Label align",type:"select",options:["start","center","end"],default:"center"},{key:"dashed",label:"Dashed",type:"boolean",default:!1}]},{key:"avatar",label:"Avatar",category:"Display",importName:"SvAvatar",props:[{key:"name",label:"Name",type:"string",default:"Jordan Lee"},{key:"src",label:"Image URL",type:"string"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"shape",label:"Shape",type:"select",options:["circle","square"],default:"circle"},{key:"status",label:"Status",type:"select",options:["","online","offline","busy","away"],default:""},{key:"color",label:"Color override",type:"color"}]},{key:"stat",label:"Stat",category:"Display",importName:"SvStat",props:[{key:"label",label:"Label",type:"string",default:"Revenue"},{key:"value",label:"Value",type:"string",default:"$48,200"},{key:"delta",label:"Delta",type:"string"},{key:"trend",label:"Trend",type:"select",options:["","up","down","flat"],default:""},{key:"hint",label:"Hint",type:"string"},{key:"invert",label:"Invert trend colors",type:"boolean",default:!1}]},{key:"toggle-button",label:"Toggle button",category:"Actions",importName:"SvToggleButton",props:[{key:"pressed",label:"Pressed",type:"boolean",default:!1},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Label",contentDefault:"Toggle"},{key:"switch",label:"Switch",category:"Actions",importName:"SvSwitchButton",props:[{key:"checked",label:"On",type:"boolean",default:!0},{key:"label",label:"Field label",type:"string"},{key:"onLabel",label:"On label",type:"string",default:"On"},{key:"offLabel",label:"Off label",type:"string",default:"Off"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"text-input",label:"Text input",category:"Inputs",importName:"SvTextInput",props:[{key:"label",label:"Label",type:"string",default:"Name"},{key:"placeholder",label:"Placeholder",type:"string",default:"Type here…"},{key:"type",label:"Type",type:"select",options:["text","email","url","tel","search"],default:"text"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"clearable",label:"Clearable",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1},{key:"readonly",label:"Read only",type:"boolean",default:!1}]},{key:"textarea",label:"Text area",category:"Inputs",importName:"SvTextArea",props:[{key:"label",label:"Label",type:"string",default:"Notes"},{key:"placeholder",label:"Placeholder",type:"string",default:"Write something…"},{key:"rows",label:"Rows",type:"number",default:3},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"number-input",label:"Number input",category:"Inputs",importName:"SvNumberInput",props:[{key:"label",label:"Label",type:"string",default:"Amount"},{key:"placeholder",label:"Placeholder",type:"string"},{key:"min",label:"Min",type:"number"},{key:"max",label:"Max",type:"number"},{key:"step",label:"Step",type:"number",default:1},{key:"prefix",label:"Prefix",type:"string"},{key:"suffix",label:"Suffix",type:"string"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"password-input",label:"Password input",category:"Inputs",importName:"SvPasswordInput",props:[{key:"label",label:"Label",type:"string",default:"Password"},{key:"placeholder",label:"Placeholder",type:"string",default:"••••••••"},{key:"revealable",label:"Reveal toggle",type:"boolean",default:!0},{key:"showStrength",label:"Strength meter",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"color-input",label:"Color input",category:"Inputs",importName:"SvColorInput",props:[{key:"label",label:"Label",type:"string",default:"Brand color"},{key:"value",label:"Value",type:"color",default:"#6366f1"},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"checkbox",label:"Checkbox",category:"Inputs",importName:"SvCheckBox",props:[{key:"checked",label:"Checked",type:"boolean",default:!0},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Label",contentDefault:"I agree to the terms"},{key:"rating",label:"Rating",category:"Inputs",importName:"SvRating",props:[{key:"value",label:"Value",type:"number",default:3},{key:"max",label:"Stars",type:"number",default:5},{key:"allowHalf",label:"Allow half",type:"boolean",default:!1},{key:"readOnly",label:"Read only",type:"boolean",default:!1},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}]},{key:"slider",label:"Slider",category:"Inputs",importName:"SvSlider",props:[{key:"value",label:"Value",type:"number",default:50},{key:"min",label:"Min",type:"number",default:0},{key:"max",label:"Max",type:"number",default:100},{key:"step",label:"Step",type:"number",default:1},{key:"showValue",label:"Show value",type:"boolean",default:!1},{key:"labels",label:"Tick labels",type:"select",options:["none","endpoints","all"],default:"none"}]},{key:"otp-input",label:"OTP input",category:"Inputs",importName:"SvOtpInput",props:[{key:"label",label:"Label",type:"string",default:"Verification code"},{key:"length",label:"Digits",type:"number",default:6},{key:"mask",label:"Mask input",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}]},{key:"circular-progress",label:"Circular progress",category:"Feedback",importName:"SvCircularProgress",props:[{key:"value",label:"Value",type:"number",default:66},{key:"max",label:"Max",type:"number",default:100},{key:"size",label:"Diameter (px)",type:"number",default:52},{key:"thickness",label:"Thickness",type:"number",default:4},{key:"color",label:"Color",type:"select",options:["accent","success","warning","danger"],default:"accent"},{key:"showLabel",label:"Show percentage",type:"boolean",default:!0},{key:"indeterminate",label:"Indeterminate",type:"boolean",default:!1}]},{key:"skeleton",label:"Skeleton",category:"Feedback",importName:"SvSkeleton",props:[{key:"variant",label:"Variant",type:"select",options:["text","rect","circle"],default:"text"},{key:"lines",label:"Lines (text)",type:"number",default:3},{key:"width",label:"Width (CSS)",type:"string"},{key:"height",label:"Height (CSS)",type:"string"},{key:"animated",label:"Animated",type:"boolean",default:!0}]},{key:"chip",label:"Chip",category:"Display",importName:"SvChip",props:[{key:"variant",label:"Variant",type:"select",options:["neutral","accent","success","warning","danger","info"],default:"neutral"},{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md"},{key:"solid",label:"Solid",type:"boolean",default:!1},{key:"removable",label:"Removable",type:"boolean",default:!1},{key:"disabled",label:"Disabled",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Text",contentDefault:"Chip"},{key:"empty-state",label:"Empty state",category:"Display",importName:"SvEmptyState",props:[{key:"title",label:"Title",type:"string",default:"No results yet"},{key:"description",label:"Description",type:"string",default:"Try adjusting your filters or add a new record."},{key:"compact",label:"Compact",type:"boolean",default:!1}]},{key:"timeline",label:"Timeline",category:"Display",importName:"SvTimeline",props:[],fixed:[{key:"items",expr:"[{ title: 'Order placed', time: '09:12', color: '#16a34a' }, { title: 'Packed', time: '11:30', description: 'Ready to ship' }, { title: 'Shipped', time: '14:40', color: '#6366f1' }, { title: 'Delivered', time: '17:05' }]",preview:[{title:"Order placed",time:"09:12",color:"#16a34a"},{title:"Packed",time:"11:30",description:"Ready to ship"},{title:"Shipped",time:"14:40",color:"#6366f1"},{title:"Delivered",time:"17:05"}]}]},{key:"sparkline",label:"Sparkline",category:"Display",importName:"SvSparkline",props:[{key:"type",label:"Type",type:"select",options:["line","area","bar","winloss"],default:"area"},{key:"color",label:"Color",type:"color",default:"#6366f1"},{key:"width",label:"Width (px)",type:"number",default:120},{key:"height",label:"Height (px)",type:"number",default:32}],fixed:[{key:"data",expr:"[4, 8, 5, 9, 7, 11, 8, 13, 10, 15]",preview:[4,8,5,9,7,11,8,13,10,15]}]},{key:"avatar-group",label:"Avatar group",category:"Display",importName:"SvAvatarGroup",props:[{key:"max",label:"Max shown",type:"number",default:4},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}],fixed:[{key:"avatars",expr:"[{ name: 'Jordan Lee' }, { name: 'Sam Rivera' }, { name: 'Alex Kim' }, { name: 'Priya Patel' }, { name: 'Chris Diaz' }]",preview:[{name:"Jordan Lee"},{name:"Sam Rivera"},{name:"Alex Kim"},{name:"Priya Patel"},{name:"Chris Diaz"}]}]},{key:"pagination",label:"Pagination",category:"Navigation",importName:"SvPagination",props:[{key:"page",label:"Current page",type:"number",default:1},{key:"pageCount",label:"Page count",type:"number",default:5},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"},{key:"showFirstLast",label:"First / last",type:"boolean",default:!0},{key:"showPrevNext",label:"Prev / next",type:"boolean",default:!0},{key:"siblingCount",label:"Sibling count",type:"number",default:1}]},{key:"breadcrumb",label:"Breadcrumb",category:"Navigation",importName:"SvBreadcrumb",props:[],fixed:[{key:"items",expr:"[{ label: 'Home', href: '/' }, { label: 'Orders', href: '/orders' }, { label: '#1024' }]",preview:[{label:"Home",href:"/"},{label:"Orders",href:"/orders"},{label:"#1024"}]}]},{key:"stepper",label:"Stepper",category:"Navigation",importName:"SvStepper",props:[{key:"current",label:"Current step",type:"number",default:1},{key:"orientation",label:"Orientation",type:"select",options:["horizontal","vertical"],default:"horizontal"},{key:"linear",label:"Linear",type:"boolean",default:!0}],fixed:[{key:"steps",expr:"[{ label: 'Cart' }, { label: 'Shipping' }, { label: 'Payment' }, { label: 'Review' }]",preview:[{label:"Cart"},{label:"Shipping"},{label:"Payment"},{label:"Review"}]}]},{key:"masked-input",label:"Masked input",category:"Inputs",importName:"SvMaskedInput",props:[]},{key:"phone-input",label:"Phone input",category:"Inputs",importName:"SvPhoneInput",props:[]},{key:"tags-input",label:"Tags input",category:"Inputs",importName:"SvTagsInput",props:[{key:"value",label:"Tags",type:"json",default:["svelte","grid"]}]},{key:"duration-input",label:"Duration input",category:"Inputs",importName:"SvDurationInput",props:[]},{key:"radio-group",label:"Radio group",category:"Inputs",importName:"SvRadioGroup",props:[{key:"options",label:"Options",type:"json",default:[{value:"a",label:"Option A"},{value:"b",label:"Option B"},{value:"c",label:"Option C"}]}]},{key:"button-group",label:"Button group",category:"Actions",importName:"SvButtonGroup",props:[{key:"items",label:"Items",type:"json",default:[{value:"day",label:"Day"},{value:"week",label:"Week"},{value:"month",label:"Month"}]}]},{key:"list-box",label:"List box",category:"Inputs",importName:"SvListBox",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"dropdown-list",label:"Dropdown list",category:"Inputs",importName:"SvDropDownList",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"combo-box",label:"Combo box",category:"Inputs",importName:"SvComboBox",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"auto-complete",label:"Auto complete",category:"Inputs",importName:"SvAutoComplete",props:[{key:"options",label:"Options",type:"json",default:[{value:"red",label:"Red"},{value:"green",label:"Green"},{value:"blue",label:"Blue"}]}]},{key:"multi-select",label:"Multi select",category:"Inputs",importName:"SvMultiSelect",props:[{key:"options",label:"Options",type:"json",default:[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"}]}]},{key:"repeat-button",label:"Repeat button",category:"Actions",importName:"SvRepeatButton",props:[],hasContent:!0,contentLabel:"Label",contentDefault:"Hold me"},{key:"rich-text",label:"Rich text editor",category:"Inputs",importName:"SvRichText",props:[]},{key:"tree",label:"Tree",category:"Display",importName:"SvTree",props:[{key:"nodes",label:"Nodes",type:"json",default:[{id:"1",label:"Documents",children:[{id:"1-1",label:"Reports"},{id:"1-2",label:"Invoices"}]},{id:"2",label:"Pictures"}]}]},{key:"country-input",label:"Country input",category:"Inputs",importName:"SvCountryInput",props:[]},{key:"title",label:"Heading",category:"Display",importName:"SvTitle",props:[{key:"size",label:"Level",type:"select",options:["1","2","3","4","5","6"],default:"2"}],hasContent:!0,contentLabel:"Text",contentDefault:"Section heading"},{key:"text",label:"Text",category:"Display",importName:"SvText",props:[{key:"size",label:"Size",type:"select",options:["xs","sm","md","lg","xl"],default:"md"},{key:"weight",label:"Weight",type:"select",options:["normal","medium","semibold","bold"],default:"normal"},{key:"tone",label:"Tone",type:"select",options:["default","muted","accent","success","warning","error"],default:"default"}],hasContent:!0,contentLabel:"Text",contentDefault:"Body text."},{key:"anchor",label:"Link",category:"Display",importName:"SvAnchor",props:[{key:"href",label:"URL",type:"string",default:"#"},{key:"tone",label:"Tone",type:"select",options:["accent","default","muted"],default:"accent"},{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}],hasContent:!0,contentLabel:"Label",contentDefault:"Read more"},{key:"blockquote",label:"Quote",category:"Display",importName:"SvBlockquote",props:[],hasContent:!0,contentLabel:"Quote",contentDefault:"A quoted passage."},{key:"code",label:"Inline code",category:"Display",importName:"SvCode",props:[],hasContent:!0,contentLabel:"Code",contentDefault:"npm install"},{key:"kbd",label:"Keyboard key",category:"Display",importName:"SvKbd",props:[{key:"size",label:"Size",type:"select",options:["sm","md"],default:"md"}],hasContent:!0,contentLabel:"Key",contentDefault:"Ctrl"},{key:"mark",label:"Highlight",category:"Display",importName:"SvMark",props:[{key:"tone",label:"Tone",type:"select",options:["yellow","accent","success","warning","error"],default:"yellow"}],hasContent:!0,contentLabel:"Text",contentDefault:"highlighted"},{key:"list",label:"List",category:"Display",importName:"SvList",props:[],fixed:[{key:"items",expr:"['First item', 'Second item', 'Third item']",preview:["First item","Second item","Third item"]}]},{key:"spinner",label:"Spinner",category:"Feedback",importName:"SvSpinner",props:[{key:"size",label:"Size",type:"select",options:["sm","md","lg"],default:"md"}]},{key:"loading-overlay",label:"Loading overlay",category:"Feedback",importName:"SvLoadingOverlay",props:[{key:"visible",label:"Visible",type:"boolean",default:!0},{key:"label",label:"Label",type:"string",default:"Loading..."}]},{key:"result",label:"Result",category:"Feedback",importName:"SvResult",props:[{key:"status",label:"Status",type:"select",options:["success","error","warning","info"],default:"success"},{key:"title",label:"Title",type:"string",default:"All done"}]},{key:"collapsible",label:"Collapsible",category:"Layout",importName:"SvCollapsible",props:[{key:"title",label:"Title",type:"string",default:"Details"},{key:"open",label:"Open",type:"boolean",default:!1}],hasContent:!0,contentLabel:"Content",contentDefault:"Hidden until expanded."},{key:"carousel",label:"Carousel",category:"Layout",importName:"SvCarousel",props:[]},{key:"date-time-picker",label:"Date & time picker",category:"Inputs",importName:"SvDateTimePicker",props:[]},{key:"time-picker",label:"Time picker",category:"Inputs",importName:"SvTimePicker",props:[]},{key:"date-range-input",label:"Date range",category:"Inputs",importName:"SvDateRangeInput",props:[]},{key:"segmented",label:"Segmented control",category:"Inputs",importName:"SvSegmented",props:[{key:"options",label:"Options",type:"json",default:[{value:"day",label:"Day"},{value:"week",label:"Week"},{value:"month",label:"Month"}]}]},{key:"tree-select",label:"Tree select",category:"Inputs",importName:"SvTreeSelect",props:[{key:"nodes",label:"Nodes",type:"json",default:[{id:"1",label:"Europe",children:[{id:"1-1",label:"France"},{id:"1-2",label:"Spain"}]},{id:"2",label:"Asia"}]}]},{key:"file-upload",label:"File upload",category:"Inputs",importName:"SvFileUpload",props:[]}],Jn={common:0,appearance:1,behavior:2,advanced:3};function Qd(e){const t=qr[e.importName];if(!t)return e;const a=new Set([...e.hiddenProps??[],...(e.fixed??[]).map(l=>l.key),"_content"]),r=new Map(t.props.map(l=>[l.key,l])),o=e.props.filter(l=>!a.has(l.key)).map(l=>{const c=r.get(l.key);return c?{...c,...l,description:l.description??c.description,group:l.group??c.group}:l}),n=new Set(o.map(l=>l.key)),i=t.props.filter(l=>!a.has(l.key)&&!n.has(l.key)).map(l=>({...l})).sort((l,c)=>Jn[l.group??"common"]-Jn[c.group??"common"]),s=new Map((e.events??[]).map(l=>[l.key,l])),d=[...t.events.map(l=>({...l,...s.get(l.key)??{}})),...(e.events??[]).filter(l=>!t.events.some(c=>c.key===l.key))];return{...e,props:[...o,...i],events:d}}var Br=Yd.map(Qd);function Ie(e){return Br.find(t=>t.key===e)}var Zn=new Set(["data","columns","board","scheduler","loading","loadingOverlay","emptyMessage","fitColumns","sortable","externalSort","filterable","externalFilter","filterMode","showGlobalFilter","showColumnFilters","showFilterRow","showFilterMenu","showGroupingControls","groupable","showRowSelection","selectionMode","enableCellSelection","enableRowSummaries","zebraRows","showPagination","pageable","externalPagination","rowCount","pageIndex","pageSize","pageSizeOptions","paginationPosition","rowHeight","containerHeight","columnVirtualization","initialColumnPinning","conditionalFormats","features","editable","enableInlineEditing","icons"]);function Xd(){const e=qr.SvGrid;if(!e)return[];const t={common:0,appearance:1,behavior:2,advanced:3};return e.props.filter(a=>!Zn.has(a.key)).map(a=>({...a})).sort((a,r)=>t[a.group??"common"]-t[r.group??"common"]||a.label.localeCompare(r.label))}var Yn=[{label:"Header + column menu",match:e=>["sort","sort-asc","sort-desc","filter","menu","chevron-down","chevron-right","autosize","columns","reset"].includes(e)},{label:"Filter operators",match:e=>e.startsWith("op-")},{label:"Pinning",match:e=>e==="pin-left"||e==="pin-right"||e==="unpin"},{label:"Rows + grouping",match:e=>["group","group-add","row-number","pinned-row-top","pinned-row-bottom","drag-handle","breadcrumb-separator"].includes(e)},{label:"Toolbar + overlays",match:e=>["search","tool-panel","chart","advanced-filter","column-group-caret","no-rows","no-rows-filtered"].includes(e)},{label:"Pager",match:e=>e.startsWith("page-")},{label:"Find + move",match:e=>e.startsWith("find-")||e.startsWith("move-")},{label:"Close + clear",match:e=>["x","close","clear","remove"].includes(e)},{label:"Other",match:()=>!0}];function ec(e){return Yn.map((t,a)=>({label:t.label,names:e.filter(r=>Yn.findIndex(o=>o.match(r))===a)})).filter(t=>t.names.length)}var tc=new Set(["data","columns","features","loading","onApiReady","externalSort","externalFilter","externalPagination","rowCount","pageIndex","initialSorting","initialColumnPinning","initialHiddenColumns","columnOrder"]);function Ur(){const e=qr.SvGrid;return e?e.props.filter(t=>!tc.has(t.key)&&!t.code&&!/^on[A-Z]/.test(t.key)).map(t=>({...t})).sort((t,a)=>t.key.localeCompare(a.key)):[]}var Kr=["chart","kpi","gauge","dashboard","pivot","tree","component"],Qn=Kr,ac=["chart","kpi","gauge","dashboard","pivot","tree"];function se(e){const t=[];for(const a of e){if(t.push(a),a.config.kind==="tabs")for(const r of a.config.tabs)t.push(...se(r.blocks));if(a.config.kind==="accordion")for(const r of a.config.sections)t.push(...se(r.blocks))}return t}function Ta(e){return(e??"").replace(/[^a-zA-Z0-9 _-]/g,"").trim().replace(/\s+/g," ").slice(0,120)}function Xn(e){return Ta(e.className)}var ei=e=>Math.max(1,Math.min(12,Math.round(e.colSpan??(e.span!=null?e.span*4:12)))),rc=e=>e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,"").slice(0,64);function ti(e){if(!e)return"";const t=[];return e.border===!0?t.push("border: 1px solid var(--sg-border, #e6e8ec)"):e.border===!1&&t.push("border: none"),e.shadow===!0?t.push("box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06)"):e.shadow===!1&&t.push("box-shadow: none"),typeof e.padding=="number"&&t.push(`padding: ${e.padding}px`),typeof e.margin=="number"&&t.push(`margin: ${e.margin}px`),e.background&&t.push(`background: ${rc(e.background)}`),typeof e.radius=="number"&&t.push(`border-radius: ${e.radius}px`),t.join("; ")}function ai(e,t){const a={...e,...t};for(const r of Object.keys(a))a[r]===void 0&&delete a[r];return Object.keys(a).length?a:void 0}var Ht="onLoad",Ia="onDestroy",oc=e=>`click:${e}`,ri=e=>`rowSelect:${e}`,nc=e=>`change:${e}`,oi=(e,t)=>`${e}:${t}`,ni="formSubmit",Vt=[{key:"rowClick",method:"onRowClick",prop:"onRowClick",builtin:!0,desc:"A data row is single-clicked.",params:"e: { rowIndex: number; columnId: string; row: Row }"},{key:"rowDoubleClick",method:"onRowDoubleClick",prop:"onRowDoubleClick",builtin:!0,desc:"A data row is double-clicked.",params:"e: { rowIndex: number; columnId: string; row: Row }"},{key:"cellClick",method:"onCellClick",prop:"onCellClick",builtin:!1,desc:"A data cell is single-clicked.",params:"e: { rowIndex: number; colIndex: number; columnId: string; value: unknown; row: Row }"},{key:"cellDoubleClick",method:"onCellDoubleClick",prop:"onCellDoubleClick",builtin:!1,desc:"A data cell is double-clicked.",params:"e: { rowIndex: number; colIndex: number; columnId: string; value: unknown; row: Row }"},{key:"rowSelectionChange",method:"onRowSelectionChange",prop:"onRowSelectionChange",builtin:!1,desc:"The row selection changes.",params:"selection: Record<string, boolean>, rows: Row[]"},{key:"cellSelectionChange",method:"onCellSelectionChange",prop:"onCellSelectionChange",builtin:!1,desc:"The cell-selection rectangle changes.",params:"ranges: Array<[number, number, number, number]>"},{key:"activeCellChange",method:"onActiveCellChange",prop:"onActiveCellChange",builtin:!1,desc:"The active cell changes.",params:"cell: { rowIndex: number; colIndex: number; columnId: string }"},{key:"cellValueChange",method:"onCellValueChange",prop:"onCellValueChange",builtin:!0,desc:"An inline cell edit is committed.",params:"e: { rowIndex: number; columnId: string; oldValue: unknown; newValue: unknown; row: Row }"},{key:"sortingChange",method:"onSortingChange",prop:"onSortingChange",builtin:!0,desc:"The sort clauses change.",params:"sorting: Array<{ id: string; desc: boolean }>"},{key:"filtersChange",method:"onFiltersChange",prop:"onFiltersChange",builtin:!0,desc:"Any in-grid filter changes.",params:"filters: { global: string; columns: Array<{ id: string; operator: string; value: string; valueTo?: string; selectedValues?: string[] }> }"},{key:"paginationChange",method:"onPaginationChange",prop:"onPaginationChange",builtin:!0,desc:"The page or page size changes.",params:"pagination: { pageIndex: number; pageSize: number }"},{key:"columnOrderChange",method:"onColumnOrderChange",prop:"onColumnOrderChange",builtin:!1,desc:"The column order changes.",params:"order: ReadonlyArray<string>"},{key:"scrollBottomReached",method:"onScrollBottomReached",prop:"onScrollBottomReached",builtin:!1,desc:"The body scrolls near the bottom (lazy-load hook).",params:"e: { scrollTop: number; scrollHeight: number; clientHeight: number }"},{key:"noteChange",method:"onNoteChange",prop:"onNoteChange",builtin:!1,desc:"A cell note/comment is saved or removed (needs editable comments).",params:"e: { rowId: string; columnId: string; note: string }"},{key:"rowDragEnd",method:"onRowDragEnd",prop:"onRowDragEnd",builtin:!1,desc:"A managed row drag settles (needs row dragging enabled).",params:"e: { row: Row; toIndex: number; sameGrid: boolean; fromGridId: number; toGridId: number }"},{key:"rowAdded",method:"onRowAdded",prop:"",builtin:!1,dataEvent:!0,desc:"A row was created (form / ctx.data.create).",params:"row: Row"},{key:"rowUpdated",method:"onRowUpdated",prop:"",builtin:!1,dataEvent:!0,desc:"A row was updated (form / inline edit / ctx.data.update).",params:"row: Row"},{key:"rowDeleted",method:"onRowDeleted",prop:"",builtin:!1,dataEvent:!0,desc:"A row was deleted (delete action / ctx.data.delete).",params:"id: string"}],Gt=e=>(e||"").replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^([0-9])/,"_$1")||"v";function ii(e){const t=(e.initial??"").trim();switch(e.type){case"number":return t===""||Number.isNaN(Number(t))?"0":t;case"boolean":return t==="true"?"true":"false";case"json":return t||"null";case"string":return ce(e.initial??"")}}function Hr(e){return e.type==="number"?"number":e.type==="boolean"?"boolean":e.type==="json"?"unknown":"string"}function qe(e,t="row"){switch(e.kind){case"state":return`ctx.state.${Gt(e.name)}`;case"param":return`ctx.params[${ce(e.name)}]`;case"field":return`${t}?.[${ce(e.name)}]`;case"literal":return Vr(e.value)}}function Ea(e,t="row"){const a=qe(e.left,t),r=e.right?qe(e.right,t):"''";switch(e.op){case"eq":return`${a} === ${r}`;case"neq":return`${a} !== ${r}`;case"gt":return`Number(${a}) > Number(${r})`;case"lt":return`Number(${a}) < Number(${r})`;case"gte":return`Number(${a}) >= Number(${r})`;case"lte":return`Number(${a}) <= Number(${r})`;case"contains":return`String(${a}).includes(String(${r}))`;case"truthy":return`Boolean(${a})`;case"falsy":return`!(${a})`}}var si=e=>`{ ${e.map(t=>`${Gt(t.field)}: ${qe(t.value)}`).join(", ")} }`,ce=e=>`'${String(e).replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`,Vr=e=>{const t=e.trim();return t==="true"||t==="false"||t!==""&&!Number.isNaN(Number(t))?t:ce(e)};function li(e){switch(e.type){case"navigate":return`ctx.goto(${ce(e.to)})`;case"gridExport":{const t=e.format??"csv",a=t==="tsv"?"exportTsv":t==="json"?"exportJson":"exportCsv",r=t==="json"?"application/json":t==="tsv"?"text/tab-separated-values":"text/csv";return["{",` const data = await ctx.grid.${a}()`," const link = document.createElement('a')",` link.href = URL.createObjectURL(new Blob([data], { type: ${ce(r)} }))`,` link.download = ${ce("export."+t)}`," link.click()"," URL.revokeObjectURL(link.href)","}"].join(`
|
|
389
389
|
`)}case"gridCopy":return"ctx.grid.copyToClipboard()";case"gridClear":return e.what==="sort"?"ctx.grid.clearSort()":e.what==="selection"?"ctx.grid.clearRowSelection()":"ctx.grid.clearAllFilters()";case"gridSort":return`ctx.grid.setSort(${ce(e.field)}, ${ce(e.dir??"asc")})`;case"gridFilter":return`ctx.grid.setFilter(${ce(e.field)}, { operator: 'contains', value: ${ce(e.value)} })`;case"reloadData":return"await ctx.data.reload()";case"setProp":return`ctx.${e.target}.${e.prop} = ${Vr(e.value)}`;case"setText":return`ctx.${e.target}.text = ${Vr(e.value)}`;case"alert":return`alert(${ce(e.message)})`;case"apiAction":return`await fetch(${ce("/api/actions/"+e.actionId)}, { method: 'POST' })`;case"setVar":return`ctx.state.${Gt(e.name)} = ${qe(e.value)}`;case"createRecord":return`await ctx.data.create(${si(e.values)})`;case"updateRecord":return`await ctx.data.update(${qe(e.id)}, ${si(e.values)})`;case"deleteRecord":return`await ctx.data.delete(${qe(e.id)})`;case"branch":{const t=Fa(Ee(e.then)),a=e.else?.length?` else {
|
|
390
390
|
${Fa(Ee(e.else))}
|
|
391
391
|
}`:"";return`if (${Ea(e.condition)}) {
|
|
@@ -913,7 +913,7 @@ ${E}
|
|
|
913
913
|
@keyframes st-home-spin { to { transform: rotate(360deg); } }
|
|
914
914
|
</style>
|
|
915
915
|
`}}function Ka(e){for(const r of e)je(r);const t=new Map(e.map(r=>[r.name,r])),a=e.map(r=>{const o=Eu(r,t);return{schema:Fu(r,o),infos:o}});return{entries:a,seed:Du(a)}}function fo(e,t={}){const{entries:a,seed:r}=Ka(e),{file:o,needs:n}=em(a,r,t.sources,t.supabaseConn,t.serverMemory),i=[Lu(a),o];(n.supabase||t.supabaseAuth)&&!n.supabaseUrl&&(t.supabaseConn?.url||t.supabaseConn?.key)&&(n.supabaseUrl=t.supabaseConn.url,n.supabaseKey=t.supabaseConn.key),(n.supabase||t.supabaseAuth)&&i.push(tm(n));for(const s of n.sqlRoutes)i.push(Hu(s.schema,s.table,s.dialect,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(s.schema.name)??[],triggers:t.triggers?.[s.schema.name],dbSchema:s.dbSchema,tenantField:t.tenantField&&t.tenantScoped?.(s.schema.name)!==!1?t.tenantField:void 0}));if(n.memoryRoutes.length){i.push(Gu(n.memoryRoutes));for(const s of n.memoryRoutes)i.push(Vu(s.schema,{access:t.accessEnabled,audit:t.auditEnabled,screenIds:t.screensByEntity?.get(s.schema.name)??[],triggers:t.triggers?.[s.schema.name],tenantField:t.tenantField&&t.tenantScoped?.(s.schema.name)!==!1?t.tenantField:void 0}))}return{files:i,prepared:a.map(s=>s.schema)}}function am(e){if(e.length===0)throw new Error("emitStudioApp: no schemas to emit");const{files:t,prepared:a}=fo(e),r=a.map(n=>{const i=z(n);return{href:`/${i.route}`,label:i.label}}),o={path:"src/custom.css",description:"Your custom styles (imported after app.css so it overrides).",userOwned:!0,contents:`/* Your custom styles. Imported after app.css, so these rules override the defaults. */
|
|
916
|
-
`};return[...t,...a.map(n=>Ni(n)),Mi(r),ji(r),o]}function rm(e){return e.fields.some(t=>!!t.when&&(!!t.when.visible||!!t.when.disabled||!!t.when.required))}var om="3.1.
|
|
916
|
+
`};return[...t,...a.map(n=>Ni(n)),Mi(r),ji(r),o]}function rm(e){return e.fields.some(t=>!!t.when&&(!!t.when.visible||!!t.when.disabled||!!t.when.required))}var om="3.1.40",nm="3.0.35",V=(e,t)=>e.some(a=>a.config.kind===t),qi=e=>`activeTab_${e.replace(/[^a-zA-Z0-9_$]/g,"_")}`,aa=(e,t)=>`${e}-${t}`,zi=e=>`accOpen_${e.replace(/[^a-zA-Z0-9_$]/g,"_")}`,ra=(e,t)=>`${e}-s${t}`,oa=e=>`md_${e.replace(/[^a-zA-Z0-9]/g,"_")}_rows`;function im(e){switch(e.type){case"number":{const t=e.decimals;return t!=null?`{ type: 'number', options: { minimumFractionDigits: ${t}, maximumFractionDigits: ${t} } }`:"{ type: 'number' }"}case"currency":return`{ type: 'currency', currency: ${S(e.currency||"USD")} }`;case"percent":{const t=["type: 'percent'"];return e.valueIsPercentPoints&&t.push("valueIsPercentPoints: true"),e.decimals!=null&&t.push(`options: { minimumFractionDigits: ${e.decimals}, maximumFractionDigits: ${e.decimals} }`),`{ ${t.join(", ")} }`}case"date":case"datetime":return e.pattern?`{ type: '${e.type}', pattern: ${S(e.pattern)} }`:`{ type: '${e.type}' }`}}function sm(e,t,a,r){if(t.config.kind!=="grid")return`schemaToColumns(${e})`;const o=t.config,n=t.id.replace(/-/g,"_"),i=o.columns.filter(b=>b.show),s=new Set(i.map(b=>b.field)),d=new Set,l=i.map(b=>{const y=r?.get(b.field);return{c:b,col:y&&!s.has(y)?y:b.field}}).filter(b=>!d.has(b.col)&&!!d.add(b.col)),c=o.editing==="inline"?"":", editable: false";if(l.length===0)return c?`schemaToColumns(${e}).map((c) => ({ ...c${c} }))`:`schemaToColumns(${e})`;const p=l.map(b=>`'${b.col}'`),u=l.map(({c:b,col:y})=>{const w=[];return b.header&&w.push(`header: ${JSON.stringify(b.header)}`),b.width!=null&&w.push(`width: ${b.width}`),b.align&&w.push(`align: '${b.align}'`),b.aggregate&&w.push(`aggregate: '${b.aggregate}'`),o.treeData&&b.field===o.treeData.labelField&&a?w.push(`cell: (ctx: CellContext<${a}>) => renderSnippet(treeCell_${n}, { value: ctx.getValue(), row: ctx.row.original })`):b.cellType&&a?w.push(`cell: (ctx: CellContext<${a}>) => renderSnippet(${Gi(n,b.field)}, { value: ctx.getValue() })`):b.format&&w.push(`format: ${im(b.format)}`),w.length?`'${y}': { ${w.join(", ")} }`:null}).filter(b=>!!b),m=u.length?` const ov: Record<string, Partial<(typeof all)[number]>> = { ${u.join(", ")} };`:"",g=u.length?", ...(ov[String(c.field)] ?? {})":"",h=`[${p.join(", ")}].map((f) => all.find((c) => c.field === f)).filter((c): c is (typeof all)[number] => !!c)`;return`(() => { const all = schemaToColumns(${e});${m} return ${c||g?`${h}.map((c) => ({ ...c${c}${g} }))`:h} })()`}function Ae(e,t){const a=[`grid-column: span ${ei(e)}`,"min-width: 0"];t&&a.push(t);const r=ti(e.style);return r&&a.push(r),`style="${a.join("; ")}"`}var lm=e=>e&&e.replace(/[^#a-zA-Z0-9(),.%\s_-]/g,"").slice(0,40)||"var(--sg-accent)";function Ue(e,t){const a=[t,Xn(e)].filter(Boolean).join(" ");return a?` class="${a}"`:""}function Ha(e){const t=Ta(e.className);return t?` ${t}`:""}function dm(e){const t=Fe(e);if(t==="grid"){const a=ui(e),r=a.maxWidth?` max-width: ${a.maxWidth}px; margin-inline: auto;`:"";return` .st-screen { grid-template-columns: repeat(12, 1fr); gap: ${a.rowGap}px ${a.colGap}px; align-items: ${a.align};${r} }
|
|
917
917
|
@media (max-width: ${a.mobileBreakpoint}px) { .st-screen { grid-template-columns: 1fr; gap: 12px; } }
|
|
918
918
|
`}if(t==="stack"){const a=mi(e),r=a.maxWidth?` max-width: ${a.maxWidth}px;${a.align==="center"?" margin-inline: auto;":""}`:"",o=a.minHeight?`
|
|
919
919
|
.st-stack > * { min-height: ${a.minHeight}px; }`:"",n=a.dividers?`
|