[{"data":1,"prerenderedAt":1093},["ShallowReactive",2],{"docs-navigation-en":3,"mdc-d0lvp9-key":202,"docs--en-docs-getting-started-migration":223,"surround--en-docs-getting-started-migration":1082,"-en-docs-getting-started-migration-description":1085},[4],{"title":5,"path":6,"stem":7,"children":8,"page":105},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[9,49,106,144,178],{"title":10,"path":11,"stem":12,"children":13,"category":16,"description":16,"icon":48},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F1.getting-started\u002F1.index",[14,18,23,28,33,38,43],{"title":15,"path":11,"stem":12,"category":16,"description":17},"Introduction",null,"Explore forms, data tables, components, and API integration in Movk Nuxt and choose a setup for Nuxt or Vue + Vite.",{"title":19,"path":20,"stem":21,"category":16,"description":22},"Installation","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F1.getting-started\u002F2.installation","Install and configure the Movk Nuxt module in a Nuxt 4 project.",{"title":24,"path":25,"stem":26,"category":16,"description":27},"Module Configuration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fconfiguration","en\u002Fdocs\u002F1.getting-started\u002F3.configuration","Configure component prefix, theme colors, fonts, API endpoints, auth strategy, response parsing rules and Toast notification behavior.",{"title":29,"path":30,"stem":31,"category":16,"description":32},"Vue \u002F Vite","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fvue","en\u002Fdocs\u002F1.getting-started\u002F4.vue","Use Movk standalone components, theming and composables in a plain Vue + Vite project without Nuxt.",{"title":34,"path":35,"stem":36,"category":16,"description":37},"Theme System","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ftheme","en\u002Fdocs\u002F1.getting-started\u002F5.theme","Manage colors, radius, icon sets and dark mode through module defaults, the ThemePicker component and the useTheme composable, with build-time font configuration.",{"title":39,"path":40,"stem":41,"category":16,"description":42},"Migrate to v2","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration","en\u002Fdocs\u002F1.getting-started\u002F6.migration","Breaking changes to handle when upgrading from v1 to v2.",{"title":44,"path":45,"stem":46,"category":16,"description":47},"AI Integration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fai","en\u002Fdocs\u002F1.getting-started\u002F7.ai","Help AI assistants understand Movk Nuxt through MCP, llms.txt and Skills.","i-lucide-square-play",{"title":50,"category":16,"description":16,"icon":51,"path":52,"stem":53,"children":54,"page":105},"Forms","i-lucide-square-pen","\u002Fen\u002Fdocs\u002Fauto-form","en\u002Fdocs\u002F2.auto-form",[55,60,65,70,75,80,85,90,95,100],{"title":56,"path":57,"stem":58,"category":16,"description":59},"Quickstart","\u002Fen\u002Fdocs\u002Fauto-form\u002Fquickstart","en\u002Fdocs\u002F2.auto-form\u002F1.quickstart","Learn the core design philosophy and basic usage of AutoForm.",{"title":61,"path":62,"stem":63,"category":16,"description":64},"Recipes","\u002Fen\u002Fdocs\u002Fauto-form\u002Frecipes","en\u002Fdocs\u002F2.auto-form\u002F10.recipes","Real-world AutoForm scenarios — login, grouped registration validation, multi-file upload and horizontal search form.",{"title":66,"path":67,"stem":68,"category":16,"description":69},"Field Types","\u002Fen\u002Fdocs\u002Fauto-form\u002Ffield-types","en\u002Fdocs\u002F2.auto-form\u002F2.field-types","Mapping of afz field types to controls and their configuration.",{"title":71,"path":72,"stem":73,"category":16,"description":74},"Objects and Arrays","\u002Fen\u002Fdocs\u002Fauto-form\u002Fobject-array","en\u002Fdocs\u002F2.auto-form\u002F3.object-array","Rendering and editing nested object and dynamic array fields.",{"title":76,"path":77,"stem":78,"category":16,"description":79},"Controls","\u002Fen\u002Fdocs\u002Fauto-form\u002Fcontrols","en\u002Fdocs\u002F2.auto-form\u002F4.controls","Map schema fields to Nuxt UI controls via the type field, or register and inject custom Vue components to extend form fields.",{"title":81,"path":82,"stem":83,"category":16,"description":84},"Metadata and Layout","\u002Fen\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","en\u002Fdocs\u002F2.auto-form\u002F5.metadata-layout","Configure field properties through meta and arrange them with afz.layout.",{"title":86,"path":87,"stem":88,"category":16,"description":89},"Slots","\u002Fen\u002Fdocs\u002Fauto-form\u002Fslots","en\u002Fdocs\u002F2.auto-form\u002F6.slots","Customize AutoForm's header\u002Ffooter, field controls, before\u002Fafter field and layout content via named slots.",{"title":91,"path":92,"stem":93,"category":16,"description":94},"Reactivity and Submit","\u002Fen\u002Fdocs\u002Fauto-form\u002Freactive-submit","en\u002Fdocs\u002F2.auto-form\u002F7.reactive-submit","Reactive linkage between fields and form submission handling.",{"title":96,"path":97,"stem":98,"category":16,"description":99},"SearchForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fsearch-form","en\u002Fdocs\u002F2.auto-form\u002F8.search-form","A schema-driven, collapsible search form component.",{"title":101,"path":102,"stem":103,"category":16,"description":104},"useAutoForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","en\u002Fdocs\u002F2.auto-form\u002F9.use-auto-form","A composable for creating typed Zod schemas and managing AutoForm controls.",false,{"title":107,"path":108,"stem":109,"children":110,"category":16,"description":16,"icon":143},"DataTable","\u002Fen\u002Fdocs\u002Fdata-table","en\u002Fdocs\u002F3.data-table\u002F1.index",[111,113,118,123,128,133,138],{"title":15,"path":108,"stem":109,"category":16,"description":112},"A declarative data table based on TanStack Table, with column configuration, selection, expansion, tree data, pagination, load more and complete API reference.",{"title":114,"path":115,"stem":116,"category":16,"description":117},"Appearance","\u002Fen\u002Fdocs\u002Fdata-table\u002Fappearance","en\u002Fdocs\u002F3.data-table\u002F2.appearance","Component style overrides, pagination style overrides, stripe and borders, visual density, fit-content width, empty-cell placeholders and sticky header.",{"title":119,"path":120,"stem":121,"category":16,"description":122},"Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fcolumns","en\u002Fdocs\u002F3.data-table\u002F3.columns","Data column configuration — fixed columns, sorting, column pinning, column resize, text truncation, tooltips, visibility and functional per-column configuration.",{"title":124,"path":125,"stem":126,"category":16,"description":127},"Special Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fspecial-columns","en\u002Fdocs\u002F3.data-table\u002F4.special-columns","Configuration for selection, index, row-pinning and actions columns — including tree selection strategies, dynamic button props and confirmation dialogs.",{"title":129,"path":130,"stem":131,"category":16,"description":132},"Rows & Interaction","\u002Fen\u002Fdocs\u002Fdata-table\u002Frows","en\u002Fdocs\u002F3.data-table\u002F5.rows","Row selection, expandable detail slot, click behaviors, dynamic row class\u002Fstyle, hover, context menu and imperative control.",{"title":134,"path":135,"stem":136,"category":16,"description":137},"Tree Data","\u002Fen\u002Fdocs\u002Fdata-table\u002Ftree","en\u002Fdocs\u002F3.data-table\u002F6.tree","Enable tree-mode tables via childrenKey — configure expansion, cascade selection strategies, indentation and read selection results.",{"title":139,"path":140,"stem":141,"category":16,"description":142},"Pagination & Load More","\u002Fen\u002Fdocs\u002Fdata-table\u002Fpagination","en\u002Fdocs\u002F3.data-table\u002F7.pagination","Client-side auto pagination, server-side manual pagination with loading state, and bottom-trigger load-more for infinite scroll.","i-lucide-table",{"title":145,"path":146,"stem":147,"children":148,"category":16,"description":16,"icon":177},"API","\u002Fen\u002Fdocs\u002Fapi","en\u002Fdocs\u002F4.api\u002F1.index",[149,152,157,162,167,172],{"title":150,"path":146,"stem":147,"category":16,"description":151},"Overview","Nuxt data-fetching fundamentals and the core concepts and architecture of the Movk Nuxt API system.",{"title":153,"path":154,"stem":155,"category":16,"description":156},"$api","\u002Fen\u002Fdocs\u002Fapi\u002Fapi-plugin","en\u002Fdocs\u002F4.api\u002F2.api-plugin","The enhanced $fetch instance created by the api.factory plugin, supporting auth injection, data unwrapping, business code checking and multi-endpoint switching.",{"title":158,"path":159,"stem":160,"category":16,"description":161},"Hooks","\u002Fen\u002Fdocs\u002Fapi\u002Fhooks","en\u002Fdocs\u002F4.api\u002F3.hooks","Extend API system behavior via Nuxt runtime hooks — global request interception, error handling and custom 401 logic.",{"title":163,"path":164,"stem":165,"category":16,"description":166},"useApiFetch","\u002Fen\u002Fdocs\u002Fapi\u002Fuse-api-fetch","en\u002Fdocs\u002F4.api\u002F4.use-api-fetch","An API request composable built on Nuxt useFetch, providing automatic authentication, business status code checking and Toast notifications.",{"title":168,"path":169,"stem":170,"category":16,"description":171},"Upload and Download","\u002Fen\u002Fdocs\u002Fapi\u002Fupload-download","en\u002Fdocs\u002F4.api\u002F5.upload-download","File upload and download with progress tracking.",{"title":173,"path":174,"stem":175,"category":16,"description":176},"Streaming","\u002Fen\u002Fdocs\u002Fapi\u002Fstream","en\u002Fdocs\u002F4.api\u002F6.stream","SSE streaming requests and the AI SDK chat transport.","i-lucide-cloud",{"title":179,"category":16,"description":16,"icon":180,"path":181,"stem":182,"children":183,"page":105},"Components","i-lucide-box","\u002Fen\u002Fdocs\u002Fcomponents","en\u002Fdocs\u002F5.components",[184,190,196],{"title":185,"path":186,"stem":187,"category":188,"description":189},"DatePicker","\u002Fen\u002Fdocs\u002Fcomponents\u002Fdate-picker","en\u002Fdocs\u002F5.components\u002Fdate-picker","advanced","An internationalized date picker component.",{"title":191,"path":192,"stem":193,"category":194,"description":195},"MessageBox","\u002Fen\u002Fdocs\u002Fcomponents\u002Fmessage-box","en\u002Fdocs\u002F5.components\u002Fmessage-box","feedback","A modal message dialog offering both declarative and programmatic usage.",{"title":197,"path":198,"stem":199,"category":188,"description":200,"badge":201},"Tree","\u002Fen\u002Fdocs\u002Fcomponents\u002Ftree","en\u002Fdocs\u002F5.components\u002Ftree","A tree component built on Nuxt UI Tree, adding search, lazy loading, toolbar, checkboxes, and parent\u002Fchild strategy.","v1.4.2",{"data":203,"body":204},{},{"type":205,"children":206},"root",[207],{"type":208,"tag":209,"props":210,"children":211},"element","p",{},[212,215],{"type":213,"value":214},"text","Copyright © 2025 - 2026 YiXuan - ",{"type":208,"tag":216,"props":217,"children":220},"span",{"className":218},[219],"text-highlighted",[221],{"type":213,"value":222},"MIT License",{"id":224,"title":39,"body":225,"category":16,"description":42,"difficulty":16,"extension":1077,"index":105,"keywords":16,"links":16,"meta":1078,"navigation":16,"path":40,"requires":16,"seo":1079,"sitemap":1080,"stem":41,"__hash__":1081},"docs_en\u002Fen\u002Fdocs\u002F1.getting-started\u002F6.migration.md",{"type":226,"value":227,"toc":1067},"minimark",[228,232,235,239,292,296,309,322,326,516,536,540,551,585,603,819,826,829,884,888,894,897,1022,1026,1029,1063],[229,230,150],"h2",{"id":231},"overview",[209,233,234],{},"v2 refocuses on schema-driven admin features (AutoForm, SearchForm, DataTable and API) and removes components that overlap with Nuxt UI or offer little reuse value. This guide covers the behavior changes and replacements to check during the upgrade.",[229,236,238],{"id":237},"upgrade-steps","Upgrade Steps",[240,241,242,256,271,286],"ol",{},[243,244,245,249,250,255],"li",{},[246,247,248],"strong",{},"Check runtime requirements."," Verify the supported versions, then update dependencies and the lockfile. See ",[251,252,254],"a",{"href":253},"#runtime-and-api","Runtime and API",".",[243,257,258,261,262,266,267,255],{},[246,259,260],{},"Replace removed features."," Check the ",[251,263,265],{"href":264},"#removed-components","component and type replacements"," and ",[251,268,270],{"href":269},"#removed-autoform-control-types","AutoForm controls",[243,272,273,276,277,281,282,255],{},[246,274,275],{},"Review behavior changes."," Check ",[251,278,280],{"href":279},"#forms-table-and-locale","Forms, Table and Locale"," and the ",[251,283,285],{"href":284},"\u002Fen\u002Fdocs\u002Fapi#migrating-from-v1-to-v2","API migration table",[243,287,288,291],{},[246,289,290],{},"Verify the migration."," Run the project's lint, type checks, tests and build, then check the workflows your project uses.",[229,293,295],{"id":294},"migrate-with-ai","Migrate with AI",[209,297,298,299,303,304,308],{},"Open your coding assistant in the project root, then expand and copy the prompt or ask the assistant to read ",[251,300,302],{"href":301},"\u002Fraw\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration.md","the Markdown version of this page",". The prompt uses ",[305,306,307],"code",{},"v1.8.3"," as its baseline and asks the assistant to check for earlier v1 changes when they apply.",[310,311,313],"collapsible",{"name":312},"Full migration prompt",[314,315,320],"pre",{"className":316,"code":318,"language":213,"meta":319},[317],"language-text","Upgrade this project from @movk\u002Fnuxt v1 to v2. Preserve its business workflows, data formats and interactions.\n\nStart with the project instructions, package.json, lockfile, Nuxt or Vite configuration, app.config, app entry point and CI configuration. Identify the installed v1 version, the target v2 version, the package manager and whether the project uses Nuxt or Vue + Vite. Verify this checklist against the target version's source, type declarations and migration guide. If the project predates v1.8.3, also check changes between the installed version and v1.8.3. List affected files and the expected changes for each applicable item, then update the features the project uses.\n\nReferences\n- Movk Nuxt migration guide https:\u002F\u002Fnuxt.mhaibaraai.cn\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration\n- Documentation index https:\u002F\u002Fnuxt.mhaibaraai.cn\u002Fllms.txt\n- API migration table https:\u002F\u002Fnuxt.mhaibaraai.cn\u002Fen\u002Fdocs\u002Fapi#migrating-from-v1-to-v2\n- Nuxt Auth Utils migration guide https:\u002F\u002Fnuxt.com\u002Fmodules\u002Fauth-utils#migrate-from-v05\n- Nuxt Site Config v5 changes https:\u002F\u002Fgithub.com\u002Fharlan-zw\u002Fnuxt-site-config\u002Freleases\u002Ftag\u002Fv5.0.0\n\nMigration checklist\n\n1. Runtime and dependencies\n   - Align Node.js in development, CI and deployment with ^22.22.3 || ^24.15.0 || >=26.0.0. Nuxt mode requires Nuxt ^4.6.4. Use compatible Nuxt UI 4 (4.13.0 or later) and Zod 4 (4.3.6 or later). Update dependencies and the lockfile with the project's package manager.\n   - In Vue + Vite projects, check @movk\u002Fnuxt\u002Fvite, virtual:movk-plugins and the CSS entry. API integration, file transfers and streaming require Nuxt. Keep a single Tailwind CSS entry with @import \"@movk\u002Fnuxt\".\n   - If the project pins reka-ui directly, align it with the target Nuxt UI version. If it directly uses nuxt-site-config, tailwind-variants or related modules, check major-version changes to configuration and types. Movk Nuxt removed maska and colortranslator, so keep them as direct dependencies if project code uses them.\n\n2. Removed components, types and themes\n   - Search templates, imports, component types and theme configuration using the project's component prefix. Replace WithClear, WithCopy, WithPasswordToggle, WithCharacterLimit, WithFloatingLabel and AsPhoneNumberInput by composing Nuxt UI input components.\n   - Replace PillGroup with URadioGroup, UCheckboxGroup, UToggleGroup or UTabs according to whether it selects one value, selects multiple values or switches panels. Compose UColorPicker with UPopover for ColorChooser. Use UPopover or useMessageBox().confirm for Popconfirm. Provide a replacement for SlideVerify that preserves the verification workflow.\n   - Check v-model bindings, events, slots, accessibility and styling in replacement wrappers. Remove legacy component type imports and theme entries.\n\n3. AutoForm and SearchForm\n   - Find withClear, withCopy, withPasswordToggle, withCharacterLimit, withFloatingLabel, asPhoneNumberInput, colorChooser, slideVerify and pillGroup in schemas. Use existing controls and controlProps for simple cases. Register custom controls with defineControl and pass them via controls when you need to preserve enhanced interactions.\n   - Replace AutoForm's :state with v-model, type the bound state with z.input, and check submit handlers against the schema's output type. reset() restores the baseline plus schema defaults. clear() retains only the defaults. Both update the bound object in place, and AutoForm emits a state snapshot. Call setBaseline() after loading an existing record to set the reset target.\n   - Check how conditional rendering affects nested objects, layout fields, validation and submitted values. Fields hidden by meta.if are excluded from validation. hiddenValue controls whether their values are cleared from the model, with field settings taking precedence. Review validation and submit handlers that rely on hidden fields.\n   - Use v-model:expanded to control SearchForm expansion, or defaultExpanded for the initial state. Submission trims strings and drops empty strings, null and undefined while preserving 0 and false. Use :transform-payload=\"false\" or supply a custom function when the raw values matter. Review the complete schema field set emitted by reset\u002Fclear, including cleared values represented as undefined, especially when merging filters into an existing object. SearchForm renders supported leaf fields and skips object, array and layout fields.\n   - Adopt asyncItems, array item moves and duplication, toggle \u002F toggleGroup, and isDirty \u002F dirtyFields where needed. With syncQuery in Nuxt or Vue Router, verify initial restore, back and forward navigation, list refresh on query-restore, and whether updates replace or add history entries.\n\n4. DataTable and Tree\n   - Replace confirmText \u002F cancelText \u002F confirmButtonProps \u002F cancelButtonProps in table action confirmations with confirmLabel \u002F cancelLabel \u002F confirmButton \u002F cancelButton. Rewrite paginationUi.text as complete templates using empty, total, range, rangeUnknown, selected and pageSize. Check the pagination docs for placeholders.\n   - Verify client and server pagination, tree expansion, row selection and infinite scrolling. For key arrays that control selection, expansion and column visibility, check the relevant v-model bindings and initial values. Check the skeleton shown when an empty table loads. Set skeletonRows: 0 for UTable's default loading style. A supplied loading slot takes precedence.\n   - Adopt columnSettings, persistKey and CSV export where needed. exportCsv only processes data supplied to the table. To export all matching records with server pagination, use exportServerCsv and serverCsvExport with the page's external filters.\n   - Verify Tree's parent-child selection, disabled nodes, selection and expansion before and after searching, and retries after lazy loading fails. Use the leaf strategy, searchMethod \u002F searchDebounce, reload(), getNode(), loadError and searchError where needed.\n\n5. Locale, dates and themes\n   - AutoForm, SearchForm, DataTable, Tree, DatePicker and MessageBox use the UApp locale with an English fallback. Set \u003CUApp :locale=\"zh_cn\"> to retain Chinese text. Use extendMovkLocale or existing component props to customize text.\n   - Enable movk.zod validation localization where needed. locale: 'auto' follows UApp on the client and uses fallback on the server. The customError set by movk:zod:config applies only to AutoForm and SearchForm in the current app. In Vue + Vite, configure zod.customError through the Vue plugin options. Check direct Zod calls and custom error maps.\n   - Without an explicit locale, useDateFormatter uses the UApp locale and falls back to en outside components. Verify that toDate preserves hours, minutes and seconds for values with a time, and that convertData preserves native Date objects and class instances. Use v-model:open to control DatePicker popovers. popoverProps.defaultOpen initializes uncontrolled state. Check open() \u002F close(), negative time zones, month and year displays, field size and disabled state.\n   - Check custom theme prefixes, neutral palettes and initial colors under SSR. If your project uses a custom component prefix, also verify imperative calls through useMessageBox.\n\n6. API, authentication and file transfers (Nuxt)\n   - Find $api (including .use, .raw and .stream), useApiFetch and its variants, uploads, downloads, chat transport and movk:api:* hooks. Replace skipBusinessCheck \u002F skipUnwrap with the inverse businessCheck \u002F unwrap flags. Omitted options inherit the endpoint and global configuration. Move these options and toast from $api context to the top level of the request options.\n   - Business-code validation and dataKey unwrapping are independent. For endpoints returning a bare array or object, set businessCheck: false and unwrap: false in endpoints.\u003Cname>.response. Override endpoint defaults per request where needed. Custom onRequest \u002F onResponse handlers run after built-in hooks. Set unwrap: false when a handler needs the raw response body.\n   - Check ApiError.data?.kind for business, http, network, timeout or aborted, and read data.code and data.response where needed. Update code that uses FetchError, isBusinessError, error.response or treats error.data as the response body. movk:api:error takes (context, error) and reports at most once after retries finish. User-initiated cancellation skips error reporting. Verify 401s, toasts, retries and SSR authentication.\n   - Rename upload timeoutMs to timeout. Uploads and downloads inherit endpoint publicHeaders and request hooks. Injected authorization headers take precedence over ordinary headers. Disabling business-code validation alone still unwraps the response. Check download progress when Content-Length is absent, JSON error responses and cancellation. SSE and chat transport read streams, and JSON errors follow the endpoint policy.\n   - For nuxt-auth-utils sessions upgrading from v0.5 to v0.6, follow the upstream guide for session configuration, server helpers and deployment. Set NUXT_APP_SECRET in production, remove NUXT_SESSION_PASSWORD and runtimeConfig.session.password, and plan for users to sign in again. Report required environment variable names and keep secret values in the deployment environment.\n\n7. Documentation and AI integration\n   - Update Movk Nuxt doc links in the project. Former composable pages are grouped by feature, SearchForm is under AutoForm, file transfers and streaming are under API, and MCP, llms.txt and Skills are under AI Integration.\n\nRun the project's existing lint, type checks, tests and build. Recheck affected workflows such as form submission, pagination, authentication or file transfers. Report changed files, verification results, manual deployment steps and anything you could not verify.\n","",[305,321,318],{"__ignoreMap":319},[229,323,325],{"id":324},"removed-components","Removed Components",[327,328,329,342],"table",{},[330,331,332],"thead",{},[333,334,335,339],"tr",{},[336,337,338],"th",{},"Component",[336,340,341],{},"Replacement",[343,344,345,366,381,396,411,426,441,471,487,497],"tbody",{},[333,346,347,353],{},[348,349,350],"td",{},[305,351,352],{},"MWithClear",[348,354,355,356,359,360],{},"Compose ",[305,357,358],{},"UInput",", see the ",[251,361,365],{"href":362,"rel":363},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput#with-clear-button",[364],"nofollow","Nuxt UI Input example",[333,367,368,373],{},[348,369,370],{},[305,371,372],{},"MWithCopy",[348,374,355,375,359,377],{},[305,376,358],{},[251,378,365],{"href":379,"rel":380},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput#with-copy-button",[364],[333,382,383,388],{},[348,384,385],{},[305,386,387],{},"MWithPasswordToggle",[348,389,355,390,359,392],{},[305,391,358],{},[251,393,365],{"href":394,"rel":395},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput#with-password-toggle",[364],[333,397,398,403],{},[348,399,400],{},[305,401,402],{},"MWithCharacterLimit",[348,404,355,405,359,407],{},[305,406,358],{},[251,408,365],{"href":409,"rel":410},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput#with-character-limit",[364],[333,412,413,418],{},[348,414,415],{},[305,416,417],{},"MWithFloatingLabel",[348,419,355,420,359,422],{},[305,421,358],{},[251,423,365],{"href":424,"rel":425},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput#with-floating-label",[364],[333,427,428,433],{},[348,429,430],{},[305,431,432],{},"MAsPhoneNumberInput",[348,434,355,435,359,437],{},[305,436,358],{},[251,438,365],{"href":439,"rel":440},"https:\u002F\u002Fui.nuxt.com\u002Fdocs\u002Fcomponents\u002Finput#as-a-phone-number-input",[364],[333,442,443,448],{},[348,444,445],{},[305,446,447],{},"MPillGroup",[348,449,450,451,454,455,458,459,462,463,466,467,470],{},"Choose ",[305,452,453],{},"URadioGroup"," \u002F ",[305,456,457],{},"UCheckboxGroup"," with ",[305,460,461],{},"variant=\"card\"",", ",[305,464,465],{},"UToggleGroup"," or ",[305,468,469],{},"UTabs"," according to the interaction",[333,472,473,478],{},[348,474,475],{},[305,476,477],{},"MColorChooser",[348,479,480,483,484],{},[305,481,482],{},"UColorPicker"," inside a ",[305,485,486],{},"UPopover",[333,488,489,494],{},[348,490,491],{},[305,492,493],{},"MSlideVerify",[348,495,496],{},"No built-in replacement; implement your own or use a third-party human verification service",[333,498,499,504],{},[348,500,501],{},[305,502,503],{},"MPopconfirm",[348,505,506,507,509,510],{},"Confirm buttons inside a ",[305,508,486],{},", or the imperative ",[251,511,513],{"href":512},"\u002Fen\u002Fdocs\u002Fcomponents\u002Fmessage-box#usemessagebox",[305,514,515],{},"useMessageBox",[209,517,518,519,266,522,525,526,462,529,266,532,535],{},"The ",[305,520,521],{},"maska",[305,523,524],{},"colortranslator"," dependencies are removed as well, along with the Props \u002F Emits \u002F Slots type exports of these components (such as ",[305,527,528],{},"WithClearProps",[305,530,531],{},"PillGroupProps",[305,533,534],{},"ColorChooserProps",").",[229,537,539],{"id":538},"removed-autoform-control-types","Removed AutoForm Control Types",[209,541,542,543,546,547,550],{},"The following ",[305,544,545],{},"type"," values are no longer built in. Using them renders a ",[305,548,549],{},"[AutoForm] No control mapped"," notice:",[552,553,554,574],"ul",{},[243,555,556,462,559,462,562,462,565,462,568,462,571],{},[305,557,558],{},"withClear",[305,560,561],{},"withPasswordToggle",[305,563,564],{},"withCopy",[305,566,567],{},"withCharacterLimit",[305,569,570],{},"withFloatingLabel",[305,572,573],{},"asPhoneNumberInput",[243,575,576,462,579,462,582],{},[305,577,578],{},"colorChooser",[305,580,581],{},"slideVerify",[305,583,584],{},"pillGroup",[209,586,587,588,591,592,595,596,599,600,602],{},"For simple cases, configure existing controls through ",[305,589,590],{},"controlProps",". To retain an enhanced input, wrap it in a project component, register it with ",[305,593,594],{},"defineControl"," and pass ",[305,597,598],{},"controls"," to the form. A custom control can keep its original ",[305,601,545],{}," name.",[604,605,606,736],"code-group",{},[314,607,612],{"className":608,"code":609,"filename":610,"language":611,"meta":319,"style":319},"language-ts shiki shiki-themes github-light github-light github-dark","const schema = afz.object({\n  \u002F\u002F Before: afz.string({ type: 'withPasswordToggle' })\n  password: afz.string({ controlProps: { type: 'password' } }),\n  \u002F\u002F Before: afz.enum([...], { type: 'pillGroup' })\n  category: afz.enum(['All', 'Frontend', 'Backend'], {\n    type: 'radioGroup',\n    controlProps: { orientation: 'horizontal' }\n  })\n})\n","Use built-in controls","ts",[305,613,614,640,647,666,672,700,712,724,730],{"__ignoreMap":319},[216,615,618,622,626,629,633,637],{"class":616,"line":617},"line",1,[216,619,621],{"class":620},"s8jYJ","const",[216,623,625],{"class":624},"sBjJW"," schema",[216,627,628],{"class":620}," =",[216,630,632],{"class":631},"sxrX7"," afz.",[216,634,636],{"class":635},"snPdu","object",[216,638,639],{"class":631},"({\n",[216,641,643],{"class":616,"line":642},2,[216,644,646],{"class":645},"sCsY4","  \u002F\u002F Before: afz.string({ type: 'withPasswordToggle' })\n",[216,648,650,653,656,659,663],{"class":616,"line":649},3,[216,651,652],{"class":631},"  password: afz.",[216,654,655],{"class":635},"string",[216,657,658],{"class":631},"({ controlProps: { type: ",[216,660,662],{"class":661},"sIIMD","'password'",[216,664,665],{"class":631}," } }),\n",[216,667,669],{"class":616,"line":668},4,[216,670,671],{"class":645},"  \u002F\u002F Before: afz.enum([...], { type: 'pillGroup' })\n",[216,673,675,678,681,684,687,689,692,694,697],{"class":616,"line":674},5,[216,676,677],{"class":631},"  category: afz.",[216,679,680],{"class":635},"enum",[216,682,683],{"class":631},"([",[216,685,686],{"class":661},"'All'",[216,688,462],{"class":631},[216,690,691],{"class":661},"'Frontend'",[216,693,462],{"class":631},[216,695,696],{"class":661},"'Backend'",[216,698,699],{"class":631},"], {\n",[216,701,703,706,709],{"class":616,"line":702},6,[216,704,705],{"class":631},"    type: ",[216,707,708],{"class":661},"'radioGroup'",[216,710,711],{"class":631},",\n",[216,713,715,718,721],{"class":616,"line":714},7,[216,716,717],{"class":631},"    controlProps: { orientation: ",[216,719,720],{"class":661},"'horizontal'",[216,722,723],{"class":631}," }\n",[216,725,727],{"class":616,"line":726},8,[216,728,729],{"class":631},"  })\n",[216,731,733],{"class":616,"line":732},9,[216,734,735],{"class":631},"})\n",[314,737,740],{"className":608,"code":738,"filename":739,"language":611,"meta":319,"style":319},"import PasswordInput from '~\u002Fcomponents\u002FPasswordInput.vue'\n\nconst { afz, controls } = useAutoForm({\n  withPasswordToggle: defineControl({\n    component: PasswordInput,\n    controlProps: { class: 'w-full' }\n  })\n})\n","Register a custom control",[305,741,742,756,762,787,796,801,811,815],{"__ignoreMap":319},[216,743,744,747,750,753],{"class":616,"line":617},[216,745,746],{"class":620},"import",[216,748,749],{"class":631}," PasswordInput ",[216,751,752],{"class":620},"from",[216,754,755],{"class":661}," '~\u002Fcomponents\u002FPasswordInput.vue'\n",[216,757,758],{"class":616,"line":642},[216,759,761],{"emptyLinePlaceholder":760},true,"\n",[216,763,764,766,769,772,774,776,779,782,785],{"class":616,"line":649},[216,765,621],{"class":620},[216,767,768],{"class":631}," { ",[216,770,771],{"class":624},"afz",[216,773,462],{"class":631},[216,775,598],{"class":624},[216,777,778],{"class":631}," } ",[216,780,781],{"class":620},"=",[216,783,784],{"class":635}," useAutoForm",[216,786,639],{"class":631},[216,788,789,792,794],{"class":616,"line":668},[216,790,791],{"class":631},"  withPasswordToggle: ",[216,793,594],{"class":635},[216,795,639],{"class":631},[216,797,798],{"class":616,"line":674},[216,799,800],{"class":631},"    component: PasswordInput,\n",[216,802,803,806,809],{"class":616,"line":702},[216,804,805],{"class":631},"    controlProps: { class: ",[216,807,808],{"class":661},"'w-full'",[216,810,723],{"class":631},[216,812,813],{"class":616,"line":714},[216,814,729],{"class":631},[216,816,817],{"class":616,"line":726},[216,818,735],{"class":631},[209,820,821,822,825],{},"See ",[251,823,76],{"href":824},"\u002Fen\u002Fdocs\u002Fauto-form\u002Fcontrols#custom-controls"," for details.",[229,827,254],{"id":828},"runtime-and-api",[327,830,831,841],{},[330,832,833],{},[333,834,835,838],{},[336,836,837],{},"Dependency",[336,839,840],{},"Required version",[343,842,843,853,863,874],{},[333,844,845,848],{},[348,846,847],{},"Node.js",[348,849,850],{},[305,851,852],{},"^22.22.3 || ^24.15.0 || >=26.0.0",[333,854,855,858],{},[348,856,857],{},"Nuxt (Nuxt mode)",[348,859,860],{},[305,861,862],{},"^4.6.4",[333,864,865,868],{},[348,866,867],{},"Nuxt UI",[348,869,870,873],{},[305,871,872],{},"4.13.0"," or a later compatible v4 version",[333,875,876,879],{},[348,877,878],{},"Zod",[348,880,881,873],{},[305,882,883],{},"4.3.6",[885,886,887],"note",{"to":284},"See the API migration table for changes to request options, error handling, hooks and transfer timeouts in Nuxt mode.",[209,889,890,891,255],{},"For a standalone Vue project, check the ",[251,892,893],{"href":30},"Vue \u002F Vite setup",[229,895,280],{"id":896},"forms-table-and-locale",[552,898,899,917,935,949,986,996],{},[243,900,901,904,905,908,909,912,913,916],{},[246,902,903],{},"AutoForm binding."," Bind input state with ",[305,906,907],{},"v-model"," and type it with ",[305,910,911],{},"z.input",". The old ",[305,914,915],{},":state"," still works and emits a development deprecation warning.",[243,918,919,922,923,926,927,930,931,934],{},[246,920,921],{},"Reset and clear."," ",[305,924,925],{},"reset()"," restores the baseline plus schema defaults. ",[305,928,929],{},"clear()"," keeps only schema defaults. Both update the bound object in place and emit a snapshot. Call ",[305,932,933],{},"setBaseline()"," after loading a record to make it the reset target.",[243,936,937,940,941,944,945,948],{},[246,938,939],{},"SearchForm."," Bind expansion with ",[305,942,943],{},"v-model:expanded",". Submit payloads trim strings and drop empty values by default. Set ",[305,946,947],{},":transform-payload=\"false\""," to keep the original payload.",[243,950,951,954,955,462,958,462,961,266,964,967,968,462,971,462,974,462,977,462,980,266,983,255],{},[246,952,953],{},"DataTable."," Action confirmations use ",[305,956,957],{},"confirmLabel",[305,959,960],{},"cancelLabel",[305,962,963],{},"confirmButton",[305,965,966],{},"cancelButton",". Pagination uses complete templates with the keys ",[305,969,970],{},"empty",[305,972,973],{},"total",[305,975,976],{},"range",[305,978,979],{},"rangeUnknown",[305,981,982],{},"selected",[305,984,985],{},"pageSize",[243,987,988,991,992,995],{},[246,989,990],{},"Locale."," Component text and ",[305,993,994],{},"useDateFormatter"," follow the UApp locale with an English fallback. Set the UApp locale or pass a formatter locale when needed.",[243,997,998,922,1001,1004,1005,1008,1009,1012,1013,1015,1016,466,1019,255],{},[246,999,1000],{},"DatePicker.",[305,1002,1003],{},"v-model:open"," takes precedence over ",[305,1006,1007],{},"popoverProps.open",". ",[305,1010,1011],{},"popoverProps.defaultOpen"," initializes uncontrolled state. Migrate existing controlled state to ",[305,1014,1003],{}," before calling ",[305,1017,1018],{},"open()",[305,1020,1021],{},"close()",[229,1023,1025],{"id":1024},"documentation-paths","Documentation Paths",[209,1027,1028],{},"The docs are reorganized by capability. Old links redirect automatically:",[552,1030,1031,1049,1058],{},[243,1032,1033,1036,1037,1039,1040,1043,1044,454,1046,1048],{},[305,1034,1035],{},"\u002Fdocs\u002Fcomposables\u002F*"," is split into the matching sections: ",[305,1038,101],{}," → Forms, ",[305,1041,1042],{},"useTheme"," → Theme, ",[305,1045,515],{},[305,1047,994],{}," → their component pages, upload\u002Fdownload and streaming → API",[243,1050,1051,1052,1054,1055,1057],{},"The AutoForm field type pages are merged into ",[251,1053,66],{"href":67},", and ",[305,1056,96],{}," moves into the Forms section",[243,1059,1060,1061],{},"The three AI integration pages are merged into ",[251,1062,44],{"href":45},[1064,1065,1066],"style",{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":319,"searchDepth":642,"depth":642,"links":1068},[1069,1070,1071,1072,1073,1074,1075,1076],{"id":231,"depth":642,"text":150},{"id":237,"depth":642,"text":238},{"id":294,"depth":642,"text":295},{"id":324,"depth":642,"text":325},{"id":538,"depth":642,"text":539},{"id":828,"depth":642,"text":254},{"id":896,"depth":642,"text":280},{"id":1024,"depth":642,"text":1025},"md",{},{"title":39,"description":42},{"loc":40},"kwdEv_iWAEou1kXJiYZQU6eU2Dvu-57UK7ijZg0My7w",[1083,1084],{"title":34,"path":35,"stem":36,"description":37,"children":-1},{"title":44,"path":45,"stem":46,"description":47,"children":-1},{"data":1086,"body":1087},{},{"type":205,"children":1088},[1089],{"type":208,"tag":209,"props":1090,"children":1091},{},[1092],{"type":213,"value":42},1795419755160]