@tongfun/ui 0.0.1-alpha.1 → 0.0.1-alpha.2
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/.claude/settings.local.json +7 -0
- package/.hermes/plans/datapicker-object-mode.md +57 -0
- package/.hermes/plans/design-spec-fusion-5175-v2.md +146 -0
- package/.hermes/plans/design-spec-fusion-5175.md +88 -0
- package/.hermes/plans/file-upload-chip-redesign.md +66 -0
- package/.hermes/plans/form-image-upload-modelvalue-fix.md +38 -0
- package/.hermes/plans/form-layout-responsive-span-plan.md +137 -0
- package/.hermes/plans/global-audit-report.md +728 -0
- package/.hermes/plans/global-audit-report.v1.md +604 -0
- package/.hermes/plans/global-audit-report.v3.md +777 -0
- package/.hermes/plans/image-file-erp-redesign.md +173 -0
- package/.hermes/plans/location-picker-baidu-modal.md +173 -0
- package/.hermes/plans/new-document-3b-color-componentization-plan.md +155 -0
- package/.hermes/plans/new-document-form-layout-rebuild-plan.md +150 -0
- package/.hermes/plans/new-document-fullwidth-3col-plan.md +177 -0
- package/.hermes/plans/picker-quick-options-range-mode.md +143 -0
- package/.hermes/plans/region-picker-mock-contract.md +202 -0
- package/.hermes/plans/zero-div-component-contracts.md +466 -0
- package/README.md +110 -101
- package/components.json +19 -0
- package/docs/DEVELOPMENT.md +315 -0
- package/docs/PRD.md +170 -0
- package/docs/ai-api-layering.md +141 -0
- package/docs/anchor-component-plan.md +165 -0
- package/docs/components-analysis.md +2911 -0
- package/docs/demo-scan-report.md +142 -0
- package/docs/editable-table-research.md +8 -0
- package/docs/form-panorama-plan.md +141 -0
- package/docs/lowcode-agent-component-registry.sample.json +36364 -0
- package/docs/tf-form-table-modification-plan.md +503 -0
- package/docs/token-compliance-audit-report.md +542 -0
- package/env.d.ts +5 -0
- package/eslint.config.js +66 -0
- package/package.json +85 -110
- package/packages/ui/__tests__/package-exports.test.ts +23 -0
- package/packages/ui/components/affix/README.md +78 -0
- package/packages/ui/components/affix/__tests__/affix.test.ts +204 -0
- package/packages/ui/components/affix/index.ts +13 -0
- package/packages/ui/components/affix/src/affix.vue +216 -0
- package/packages/ui/components/affix/src/types.ts +47 -0
- package/packages/ui/components/affix/styles/affix.css +17 -0
- package/packages/ui/components/ai-overlay/README.md +180 -0
- package/packages/ui/components/ai-overlay/__tests__/ai-action-menu.test.ts +133 -0
- package/packages/ui/components/ai-overlay/__tests__/ai-overlay.test.ts +117 -0
- package/packages/ui/components/ai-overlay/index.ts +32 -0
- package/packages/ui/components/ai-overlay/src/ai-action-menu-types.ts +22 -0
- package/packages/ui/components/ai-overlay/src/ai-action-menu.vue +200 -0
- package/packages/ui/components/ai-overlay/src/ai-overlay.vue +329 -0
- package/packages/ui/components/ai-overlay/src/types.ts +84 -0
- package/packages/ui/components/ai-overlay/styles/ai-overlay.css +306 -0
- package/packages/ui/components/ai-state-flow/README.md +111 -0
- package/packages/ui/components/ai-state-flow/__tests__/ai-state-flow.test.ts +69 -0
- package/packages/ui/components/ai-state-flow/ai-state-flow.ts +16 -0
- package/packages/ui/components/ai-state-flow/ai-state-flow.vue +67 -0
- package/packages/ui/components/ai-state-flow/index.ts +24 -0
- package/packages/ui/components/ai-state-flow/styles/ai-state-flow.css +144 -0
- package/packages/ui/components/alert/README.md +83 -0
- package/packages/ui/components/alert/__tests__/alert.test.ts +155 -0
- package/packages/ui/components/alert/index.ts +13 -0
- package/packages/ui/components/alert/src/alert.ts +90 -0
- package/packages/ui/components/alert/src/alert.vue +87 -0
- package/packages/ui/components/alert/styles/alert.css +158 -0
- package/packages/ui/components/anchor/README.md +50 -0
- package/packages/ui/components/anchor/__tests__/anchor.test.ts +284 -0
- package/packages/ui/components/anchor/index.ts +13 -0
- package/packages/ui/components/anchor/src/anchor.vue +94 -0
- package/packages/ui/components/anchor/src/types.ts +55 -0
- package/packages/ui/components/anchor/src/use-anchor.ts +253 -0
- package/packages/ui/components/anchor/styles/anchor.css +90 -0
- package/packages/ui/components/avatar/README.md +118 -0
- package/packages/ui/components/avatar/__tests__/avatar.test.ts +83 -0
- package/packages/ui/components/avatar/index.ts +12 -0
- package/packages/ui/components/avatar/src/avatar.ts +62 -0
- package/packages/ui/components/avatar/src/avatar.vue +106 -0
- package/packages/ui/components/back-top/README.md +63 -0
- package/packages/ui/components/back-top/__tests__/back-top.test.ts +215 -0
- package/packages/ui/components/back-top/index.ts +13 -0
- package/packages/ui/components/back-top/src/back-top.ts +51 -0
- package/packages/ui/components/back-top/src/back-top.vue +104 -0
- package/packages/ui/components/back-top/styles/back-top.css +24 -0
- package/packages/ui/components/badge/README.md +71 -0
- package/packages/ui/components/badge/__tests__/badge.test.ts +142 -0
- package/packages/ui/components/badge/index.ts +13 -0
- package/packages/ui/components/badge/src/badge.ts +64 -0
- package/packages/ui/components/badge/src/badge.vue +76 -0
- package/packages/ui/components/badge/styles/badge.css +45 -0
- package/packages/ui/components/batch-action-button/README.md +68 -0
- package/packages/ui/components/batch-action-button/__tests__/batch-action-button.test.ts +30 -0
- package/packages/ui/components/batch-action-button/index.ts +11 -0
- package/packages/ui/components/batch-action-button/src/batch-action-button.vue +59 -0
- package/packages/ui/components/batch-action-button/src/types.ts +9 -0
- package/packages/ui/components/breadcrumb/README.md +115 -0
- package/packages/ui/components/breadcrumb/__tests__/breadcrumb.test.ts +168 -0
- package/packages/ui/components/breadcrumb/index.ts +13 -0
- package/packages/ui/components/breadcrumb/src/breadcrumb.ts +60 -0
- package/packages/ui/components/breadcrumb/src/breadcrumb.vue +86 -0
- package/packages/ui/components/business/document/action-header/index.ts +14 -0
- package/packages/ui/components/business/document/action-header/src/context.ts +10 -0
- package/packages/ui/components/business/document/action-header/src/document-action-header.vue +296 -0
- package/packages/ui/components/business/document/action-header/src/types.ts +100 -0
- package/packages/ui/components/business/document/ai-toolbar/index.ts +12 -0
- package/packages/ui/components/business/document/ai-toolbar/src/document-ai-toolbar.vue +72 -0
- package/packages/ui/components/business/document/form-page/index.ts +16 -0
- package/packages/ui/components/business/document/form-page/src/composables/use-document-ai-toolbar.ts +37 -0
- package/packages/ui/components/business/document/form-page/src/composables/use-document-layout-mode.ts +24 -0
- package/packages/ui/components/business/document/form-page/src/composables/use-document-recognition.ts +55 -0
- package/packages/ui/components/business/document/form-page/src/composables/use-document-save.ts +243 -0
- package/packages/ui/components/business/document/form-page/src/composables/use-document-sections.ts +234 -0
- package/packages/ui/components/business/document/form-page/src/context.ts +15 -0
- package/packages/ui/components/business/document/form-page/src/document-form-page.vue +251 -0
- package/packages/ui/components/business/document/form-page/src/document-section-card.vue +187 -0
- package/packages/ui/components/business/document/form-page/src/types.ts +245 -0
- package/packages/ui/components/business/document/form-page/styles/document-form-page.css +40 -0
- package/packages/ui/components/business/enum-select/index.ts +18 -0
- package/packages/ui/components/business/enum-select/src/enum-select.vue +171 -0
- package/packages/ui/components/business/enum-select/src/types.ts +33 -0
- package/packages/ui/components/button/README.md +155 -0
- package/packages/ui/components/button/__tests__/button.test.ts +261 -0
- package/packages/ui/components/button/index.ts +14 -0
- package/packages/ui/components/button/src/button.ts +168 -0
- package/packages/ui/components/button/src/button.vue +341 -0
- package/packages/ui/components/button/styles/button.css +149 -0
- package/packages/ui/components/carousel/README.md +48 -0
- package/packages/ui/components/carousel/__tests__/carousel.test.ts +82 -0
- package/packages/ui/components/carousel/index.ts +11 -0
- package/packages/ui/components/carousel/src/carousel.ts +38 -0
- package/packages/ui/components/carousel/src/carousel.vue +101 -0
- package/packages/ui/components/carousel/styles/carousel.css +40 -0
- package/packages/ui/components/chart/README.md +120 -0
- package/packages/ui/components/chart/__tests__/chart.test.ts +86 -0
- package/packages/ui/components/chart/__tests__/simple-charts.test.ts +130 -0
- package/packages/ui/components/chart/index.ts +22 -0
- package/packages/ui/components/chart/src/bar-chart.vue +83 -0
- package/packages/ui/components/chart/src/chart.ts +135 -0
- package/packages/ui/components/chart/src/chart.vue +147 -0
- package/packages/ui/components/chart/src/donut-chart.vue +96 -0
- package/packages/ui/components/chart/src/line-chart.vue +101 -0
- package/packages/ui/components/chart/src/metric-grid.vue +55 -0
- package/packages/ui/components/chart/src/types.ts +91 -0
- package/packages/ui/components/chart/src/utils.ts +68 -0
- package/packages/ui/components/chart/styles/bar-chart.css +134 -0
- package/packages/ui/components/chart/styles/chart.css +48 -0
- package/packages/ui/components/chart/styles/donut-chart.css +114 -0
- package/packages/ui/components/chart/styles/line-chart.css +61 -0
- package/packages/ui/components/chart/styles/metric-grid.css +115 -0
- package/packages/ui/components/code-block/README.md +56 -0
- package/packages/ui/components/code-block/__tests__/code-block.test.ts +166 -0
- package/packages/ui/components/code-block/index.ts +13 -0
- package/packages/ui/components/code-block/src/code-block.vue +216 -0
- package/packages/ui/components/code-block/src/types.ts +31 -0
- package/packages/ui/components/code-block/styles/code-block.css +192 -0
- package/packages/ui/components/data-grid/CellRendererActions.vue +77 -0
- package/packages/ui/components/data-grid/CellRendererButton.vue +51 -0
- package/packages/ui/components/data-grid/CellRendererCsCheckbox.vue +16 -0
- package/packages/ui/components/data-grid/CellRendererCsInput.vue +29 -0
- package/packages/ui/components/data-grid/CellRendererCsSelect.vue +19 -0
- package/packages/ui/components/data-grid/CellRendererInput.vue +120 -0
- package/packages/ui/components/data-grid/CellRendererText.vue +94 -0
- package/packages/ui/components/data-grid/ColumnSettings.vue +40 -0
- package/packages/ui/components/data-grid/ColumnSettingsDialog.vue +367 -0
- package/packages/ui/components/data-grid/DataGrid.vue +850 -0
- package/packages/ui/components/data-grid/DataGridFilter.vue +242 -0
- package/packages/ui/components/data-grid/column-settings-api.ts +62 -0
- package/packages/ui/components/data-grid/index.ts +29 -0
- package/packages/ui/components/data-grid/props.ts +246 -0
- package/packages/ui/components/data-grid/variants.ts +26 -0
- package/packages/ui/components/divider/README.md +84 -0
- package/packages/ui/components/divider/__tests__/divider.test.ts +105 -0
- package/packages/ui/components/divider/index.ts +13 -0
- package/packages/ui/components/divider/src/divider.ts +50 -0
- package/packages/ui/components/divider/src/divider.vue +76 -0
- package/packages/ui/components/divider/styles/divider.css +65 -0
- package/packages/ui/components/drawer/README.md +90 -0
- package/packages/ui/components/drawer/__tests__/drawer.test.ts +218 -0
- package/packages/ui/components/drawer/index.ts +13 -0
- package/packages/ui/components/drawer/src/drawer.ts +88 -0
- package/packages/ui/components/drawer/src/drawer.vue +157 -0
- package/packages/ui/components/drawer/styles/drawer.css +164 -0
- package/packages/ui/components/dropdown/README.md +51 -0
- package/packages/ui/components/dropdown/__tests__/dropdown.test.ts +143 -0
- package/packages/ui/components/dropdown/index.ts +11 -0
- package/packages/ui/components/dropdown/src/dropdown.ts +47 -0
- package/packages/ui/components/dropdown/src/dropdown.vue +75 -0
- package/packages/ui/components/dropdown/styles/dropdown.css +16 -0
- package/packages/ui/components/dropdown-button/README.md +78 -0
- package/packages/ui/components/dropdown-button/__tests__/dropdown-button.test.ts +75 -0
- package/packages/ui/components/dropdown-button/index.ts +11 -0
- package/packages/ui/components/dropdown-button/src/dropdown-button-menu-items.vue +79 -0
- package/packages/ui/components/dropdown-button/src/dropdown-button.vue +152 -0
- package/packages/ui/components/dropdown-button/src/types.ts +98 -0
- package/packages/ui/components/dropdown-button/styles/dropdown-button.css +171 -0
- package/packages/ui/components/empty/README.md +48 -0
- package/packages/ui/components/empty/__tests__/empty.test.ts +37 -0
- package/packages/ui/components/empty/index.ts +13 -0
- package/packages/ui/components/empty/src/empty.vue +73 -0
- package/packages/ui/components/empty/src/types.ts +32 -0
- package/packages/ui/components/empty/styles/empty.css +69 -0
- package/packages/ui/components/error/README.md +44 -0
- package/packages/ui/components/error/__tests__/error.test.ts +34 -0
- package/packages/ui/components/error/index.ts +13 -0
- package/packages/ui/components/error/src/error.vue +65 -0
- package/packages/ui/components/error/src/types.ts +28 -0
- package/packages/ui/components/error/styles/error.css +69 -0
- package/packages/ui/components/filter-button/README.md +68 -0
- package/packages/ui/components/filter-button/__tests__/filter-button.test.ts +30 -0
- package/packages/ui/components/filter-button/index.ts +11 -0
- package/packages/ui/components/filter-button/src/filter-button.vue +59 -0
- package/packages/ui/components/filter-button/src/types.ts +9 -0
- package/packages/ui/components/form/README.md +750 -0
- package/packages/ui/components/form/__tests__/form-ai-registry-integration.test.ts +214 -0
- package/packages/ui/components/form/__tests__/form-field.test.ts +377 -0
- package/packages/ui/components/form/__tests__/form-item-ai-actions.test.ts +299 -0
- package/packages/ui/components/form/__tests__/form-item.test.ts +110 -0
- package/packages/ui/components/form/__tests__/form-wrapper-reject-forward.test.ts +269 -0
- package/packages/ui/components/form/__tests__/form.test.ts +148 -0
- package/packages/ui/components/form/base/cascader/README.md +75 -0
- package/packages/ui/components/form/base/cascader/__tests__/ai-capability.test.ts +507 -0
- package/packages/ui/components/form/base/cascader/__tests__/cascader.test.ts +203 -0
- package/packages/ui/components/form/base/cascader/index.ts +14 -0
- package/packages/ui/components/form/base/cascader/src/cascader.vue +505 -0
- package/packages/ui/components/form/base/cascader/src/types.ts +168 -0
- package/packages/ui/components/form/base/cascader/styles/cascader.css +186 -0
- package/packages/ui/components/form/base/checkbox/README.md +110 -0
- package/packages/ui/components/form/base/checkbox/__tests__/ai-capability.test.ts +465 -0
- package/packages/ui/components/form/base/checkbox/__tests__/checkbox.test.ts +98 -0
- package/packages/ui/components/form/base/checkbox/__tests__/group-integration.test.ts +192 -0
- package/packages/ui/components/form/base/checkbox/index.ts +18 -0
- package/packages/ui/components/form/base/checkbox/src/checkbox-group.vue +311 -0
- package/packages/ui/components/form/base/checkbox/src/checkbox.ts +210 -0
- package/packages/ui/components/form/base/checkbox/src/checkbox.vue +368 -0
- package/packages/ui/components/form/base/checkbox/styles/checkbox.css +24 -0
- package/packages/ui/components/form/base/data-picker/README.md +192 -0
- package/packages/ui/components/form/base/data-picker/__tests__/ai-capability.test.ts +566 -0
- package/packages/ui/components/form/base/data-picker/__tests__/data-picker.test.ts +628 -0
- package/packages/ui/components/form/base/data-picker/index.ts +23 -0
- package/packages/ui/components/form/base/data-picker/src/data-picker.ts +192 -0
- package/packages/ui/components/form/base/data-picker/src/data-picker.vue +1267 -0
- package/packages/ui/components/form/base/data-picker/styles/data-picker.css +174 -0
- package/packages/ui/components/form/base/date-picker/README.md +94 -0
- package/packages/ui/components/form/base/date-picker/__tests__/ai-capability.test.ts +462 -0
- package/packages/ui/components/form/base/date-picker/__tests__/date-picker.test.ts +115 -0
- package/packages/ui/components/form/base/date-picker/index.ts +13 -0
- package/packages/ui/components/form/base/date-picker/src/date-picker.ts +212 -0
- package/packages/ui/components/form/base/date-picker/src/date-picker.vue +871 -0
- package/packages/ui/components/form/base/date-picker/styles/date-picker.css +210 -0
- package/packages/ui/components/form/base/datetime-picker/README.md +197 -0
- package/packages/ui/components/form/base/datetime-picker/__tests__/ai-capability.test.ts +368 -0
- package/packages/ui/components/form/base/datetime-picker/__tests__/datetime-picker.test.ts +445 -0
- package/packages/ui/components/form/base/datetime-picker/index.ts +13 -0
- package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.ts +149 -0
- package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.vue +1158 -0
- package/packages/ui/components/form/base/datetime-picker/styles/datetime-picker.css +570 -0
- package/packages/ui/components/form/base/file-upload/README.md +73 -0
- package/packages/ui/components/form/base/file-upload/__tests__/ai-capability.test.ts +223 -0
- package/packages/ui/components/form/base/file-upload/__tests__/file-upload.spec.ts +199 -0
- package/packages/ui/components/form/base/file-upload/index.ts +11 -0
- package/packages/ui/components/form/base/file-upload/src/file-upload.ts +95 -0
- package/packages/ui/components/form/base/file-upload/src/file-upload.vue +451 -0
- package/packages/ui/components/form/base/file-upload/styles/file-upload.css +57 -0
- package/packages/ui/components/form/base/image-upload/README.md +70 -0
- package/packages/ui/components/form/base/image-upload/__tests__/ai-capability.test.ts +149 -0
- package/packages/ui/components/form/base/image-upload/__tests__/image-upload.spec.ts +282 -0
- package/packages/ui/components/form/base/image-upload/index.ts +11 -0
- package/packages/ui/components/form/base/image-upload/src/image-upload.ts +76 -0
- package/packages/ui/components/form/base/image-upload/src/image-upload.vue +657 -0
- package/packages/ui/components/form/base/index.ts +24 -0
- package/packages/ui/components/form/base/input/README.md +63 -0
- package/packages/ui/components/form/base/input/__tests__/ai-capability.test.ts +143 -0
- package/packages/ui/components/form/base/input/__tests__/input.test.ts +195 -0
- package/packages/ui/components/form/base/input/index.ts +37 -0
- package/packages/ui/components/form/base/input/src/input.ts +104 -0
- package/packages/ui/components/form/base/input/src/input.vue +384 -0
- package/packages/ui/components/form/base/input/styles/input.css +198 -0
- package/packages/ui/components/form/base/location-picker/README.md +92 -0
- package/packages/ui/components/form/base/location-picker/__tests__/ai-capability.test.ts +147 -0
- package/packages/ui/components/form/base/location-picker/__tests__/location-picker.test.ts +161 -0
- package/packages/ui/components/form/base/location-picker/index.ts +13 -0
- package/packages/ui/components/form/base/location-picker/src/location-picker.ts +99 -0
- package/packages/ui/components/form/base/location-picker/src/location-picker.vue +558 -0
- package/packages/ui/components/form/base/radio/README.md +95 -0
- package/packages/ui/components/form/base/radio/__tests__/ai-capability.test.ts +578 -0
- package/packages/ui/components/form/base/radio/__tests__/group-integration.test.ts +191 -0
- package/packages/ui/components/form/base/radio/__tests__/radio.test.ts +64 -0
- package/packages/ui/components/form/base/radio/index.ts +18 -0
- package/packages/ui/components/form/base/radio/src/radio-group.vue +270 -0
- package/packages/ui/components/form/base/radio/src/radio.ts +154 -0
- package/packages/ui/components/form/base/radio/src/radio.vue +141 -0
- package/packages/ui/components/form/base/radio/styles/radio.css +12 -0
- package/packages/ui/components/form/base/region-picker/README.md +166 -0
- package/packages/ui/components/form/base/region-picker/__tests__/ai-capability.test.ts +147 -0
- package/packages/ui/components/form/base/region-picker/__tests__/region-picker.spec.ts +556 -0
- package/packages/ui/components/form/base/region-picker/index.ts +19 -0
- package/packages/ui/components/form/base/region-picker/src/region-picker.ts +333 -0
- package/packages/ui/components/form/base/region-picker/src/region-picker.vue +552 -0
- package/packages/ui/components/form/base/select/README.md +66 -0
- package/packages/ui/components/form/base/select/__tests__/ai-capability.test.ts +463 -0
- package/packages/ui/components/form/base/select/__tests__/select.test.ts +167 -0
- package/packages/ui/components/form/base/select/index.ts +15 -0
- package/packages/ui/components/form/base/select/src/select.ts +173 -0
- package/packages/ui/components/form/base/select/src/select.vue +534 -0
- package/packages/ui/components/form/base/select/styles/select.css +206 -0
- package/packages/ui/components/form/base/signature/README.md +96 -0
- package/packages/ui/components/form/base/signature/__tests__/ai-capability.test.ts +147 -0
- package/packages/ui/components/form/base/signature/__tests__/signature.spec.ts +156 -0
- package/packages/ui/components/form/base/signature/index.ts +14 -0
- package/packages/ui/components/form/base/signature/src/signature.ts +100 -0
- package/packages/ui/components/form/base/signature/src/signature.vue +871 -0
- package/packages/ui/components/form/base/switch/README.md +102 -0
- package/packages/ui/components/form/base/switch/__tests__/ai-capability.test.ts +545 -0
- package/packages/ui/components/form/base/switch/__tests__/switch.test.ts +105 -0
- package/packages/ui/components/form/base/switch/index.ts +12 -0
- package/packages/ui/components/form/base/switch/src/switch.ts +133 -0
- package/packages/ui/components/form/base/switch/src/switch.vue +385 -0
- package/packages/ui/components/form/base/switch/styles/switch.css +35 -0
- package/packages/ui/components/form/base/text-area/README.md +89 -0
- package/packages/ui/components/form/base/text-area/__tests__/ai-capability.test.ts +176 -0
- package/packages/ui/components/form/base/text-area/__tests__/text-area.test.ts +152 -0
- package/packages/ui/components/form/base/text-area/index.ts +37 -0
- package/packages/ui/components/form/base/text-area/src/text-area.ts +137 -0
- package/packages/ui/components/form/base/text-area/src/text-area.vue +405 -0
- package/packages/ui/components/form/base/text-area/styles/text-area.css +137 -0
- package/packages/ui/components/form/base/time-picker/README.md +75 -0
- package/packages/ui/components/form/base/time-picker/__tests__/ai-capability.test.ts +135 -0
- package/packages/ui/components/form/base/time-picker/__tests__/time-picker.test.ts +258 -0
- package/packages/ui/components/form/base/time-picker/index.ts +13 -0
- package/packages/ui/components/form/base/time-picker/src/time-picker.ts +141 -0
- package/packages/ui/components/form/base/time-picker/src/time-picker.vue +844 -0
- package/packages/ui/components/form/base/time-picker/styles/time-picker.css +124 -0
- package/packages/ui/components/form/base/upload/README.md +126 -0
- package/packages/ui/components/form/base/upload/__tests__/ai-capability.test.ts +145 -0
- package/packages/ui/components/form/base/upload/__tests__/upload.spec.ts +288 -0
- package/packages/ui/components/form/base/upload/index.ts +11 -0
- package/packages/ui/components/form/base/upload/src/upload.ts +171 -0
- package/packages/ui/components/form/base/upload/src/upload.vue +890 -0
- package/packages/ui/components/form/base/upload/styles/upload.css +116 -0
- package/packages/ui/components/form/index.ts +138 -0
- package/packages/ui/components/form/items/form-array/README.md +61 -0
- package/packages/ui/components/form/items/form-array/__tests__/form-array.test.ts +122 -0
- package/packages/ui/components/form/items/form-array/index.ts +2 -0
- package/packages/ui/components/form/items/form-array/src/form-array.vue +80 -0
- package/packages/ui/components/form/items/form-array/src/types.ts +27 -0
- package/packages/ui/components/form/items/form-array/styles/form-array.css +99 -0
- package/packages/ui/components/form/items/form-cascader/README.md +132 -0
- package/packages/ui/components/form/items/form-cascader/__tests__/form-cascader.test.ts +99 -0
- package/packages/ui/components/form/items/form-cascader/index.ts +1 -0
- package/packages/ui/components/form/items/form-cascader/src/form-cascader.ts +7 -0
- package/packages/ui/components/form/items/form-cascader/src/form-cascader.vue +15 -0
- package/packages/ui/components/form/items/form-checkbox/README.md +121 -0
- package/packages/ui/components/form/items/form-checkbox/__tests__/form-checkbox.test.ts +93 -0
- package/packages/ui/components/form/items/form-checkbox/index.ts +1 -0
- package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.ts +7 -0
- package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.vue +15 -0
- package/packages/ui/components/form/items/form-data-picker/README.md +111 -0
- package/packages/ui/components/form/items/form-data-picker/__tests__/form-data-picker.test.ts +98 -0
- package/packages/ui/components/form/items/form-data-picker/index.ts +1 -0
- package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.ts +7 -0
- package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.vue +17 -0
- package/packages/ui/components/form/items/form-date-picker/README.md +119 -0
- package/packages/ui/components/form/items/form-date-picker/__tests__/form-date-picker.test.ts +104 -0
- package/packages/ui/components/form/items/form-date-picker/index.ts +1 -0
- package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.ts +7 -0
- package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.vue +17 -0
- package/packages/ui/components/form/items/form-datetime-picker/README.md +112 -0
- package/packages/ui/components/form/items/form-datetime-picker/__tests__/form-datetime-picker.test.ts +105 -0
- package/packages/ui/components/form/items/form-datetime-picker/index.ts +1 -0
- package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.ts +7 -0
- package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.vue +17 -0
- package/packages/ui/components/form/items/form-dynamic/README.md +105 -0
- package/packages/ui/components/form/items/form-dynamic/__tests__/form-dynamic.test.ts +172 -0
- package/packages/ui/components/form/items/form-dynamic/index.ts +2 -0
- package/packages/ui/components/form/items/form-dynamic/src/form-dynamic.vue +222 -0
- package/packages/ui/components/form/items/form-dynamic/src/types.ts +63 -0
- package/packages/ui/components/form/items/form-file-upload/README.md +92 -0
- package/packages/ui/components/form/items/form-file-upload/__tests__/form-file-upload.test.ts +99 -0
- package/packages/ui/components/form/items/form-file-upload/index.ts +1 -0
- package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.ts +7 -0
- package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.vue +15 -0
- package/packages/ui/components/form/items/form-group/README.md +57 -0
- package/packages/ui/components/form/items/form-group/__tests__/form-group.test.ts +108 -0
- package/packages/ui/components/form/items/form-group/index.ts +2 -0
- package/packages/ui/components/form/items/form-group/src/form-group.vue +85 -0
- package/packages/ui/components/form/items/form-group/src/types.ts +37 -0
- package/packages/ui/components/form/items/form-group/styles/form-group.css +92 -0
- package/packages/ui/components/form/items/form-image-upload/README.md +92 -0
- package/packages/ui/components/form/items/form-image-upload/__tests__/form-image-upload.test.ts +109 -0
- package/packages/ui/components/form/items/form-image-upload/index.ts +1 -0
- package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.ts +7 -0
- package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.vue +37 -0
- package/packages/ui/components/form/items/form-input/README.md +110 -0
- package/packages/ui/components/form/items/form-input/__tests__/form-input.test.ts +87 -0
- package/packages/ui/components/form/items/form-input/index.ts +1 -0
- package/packages/ui/components/form/items/form-input/src/form-input.ts +7 -0
- package/packages/ui/components/form/items/form-input/src/form-input.vue +15 -0
- package/packages/ui/components/form/items/form-location-picker/README.md +119 -0
- package/packages/ui/components/form/items/form-location-picker/__tests__/form-location-picker.test.ts +98 -0
- package/packages/ui/components/form/items/form-location-picker/index.ts +1 -0
- package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.ts +7 -0
- package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.vue +15 -0
- package/packages/ui/components/form/items/form-radio/README.md +125 -0
- package/packages/ui/components/form/items/form-radio/__tests__/form-radio.test.ts +104 -0
- package/packages/ui/components/form/items/form-radio/index.ts +1 -0
- package/packages/ui/components/form/items/form-radio/src/form-radio.ts +7 -0
- package/packages/ui/components/form/items/form-radio/src/form-radio.vue +15 -0
- package/packages/ui/components/form/items/form-region-picker/README.md +111 -0
- package/packages/ui/components/form/items/form-region-picker/__tests__/form-region-picker.test.ts +95 -0
- package/packages/ui/components/form/items/form-region-picker/index.ts +1 -0
- package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.ts +7 -0
- package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.vue +15 -0
- package/packages/ui/components/form/items/form-select/README.md +117 -0
- package/packages/ui/components/form/items/form-select/__tests__/form-select.test.ts +80 -0
- package/packages/ui/components/form/items/form-select/index.ts +1 -0
- package/packages/ui/components/form/items/form-select/src/form-select.ts +7 -0
- package/packages/ui/components/form/items/form-select/src/form-select.vue +15 -0
- package/packages/ui/components/form/items/form-signature/README.md +89 -0
- package/packages/ui/components/form/items/form-signature/__tests__/form-signature.test.ts +109 -0
- package/packages/ui/components/form/items/form-signature/index.ts +1 -0
- package/packages/ui/components/form/items/form-signature/src/form-signature.ts +7 -0
- package/packages/ui/components/form/items/form-signature/src/form-signature.vue +15 -0
- package/packages/ui/components/form/items/form-slider/README.md +125 -0
- package/packages/ui/components/form/items/form-slider/__tests__/form-slider.test.ts +95 -0
- package/packages/ui/components/form/items/form-slider/index.ts +1 -0
- package/packages/ui/components/form/items/form-slider/src/form-slider.ts +7 -0
- package/packages/ui/components/form/items/form-slider/src/form-slider.vue +15 -0
- package/packages/ui/components/form/items/form-subform/README.md +71 -0
- package/packages/ui/components/form/items/form-subform/__tests__/form-subform.test.ts +116 -0
- package/packages/ui/components/form/items/form-subform/index.ts +2 -0
- package/packages/ui/components/form/items/form-subform/src/form-subform.vue +92 -0
- package/packages/ui/components/form/items/form-subform/src/types.ts +32 -0
- package/packages/ui/components/form/items/form-subform/styles/form-subform.css +127 -0
- package/packages/ui/components/form/items/form-switch/README.md +118 -0
- package/packages/ui/components/form/items/form-switch/__tests__/form-switch.test.ts +88 -0
- package/packages/ui/components/form/items/form-switch/index.ts +1 -0
- package/packages/ui/components/form/items/form-switch/src/form-switch.ts +7 -0
- package/packages/ui/components/form/items/form-switch/src/form-switch.vue +15 -0
- package/packages/ui/components/form/items/form-table/OPTIMIZATION_REPORT.md +205 -0
- package/packages/ui/components/form/items/form-table/README.md +144 -0
- package/packages/ui/components/form/items/form-table/__tests__/form-table.test.ts +373 -0
- package/packages/ui/components/form/items/form-table/index.ts +3 -0
- package/packages/ui/components/form/items/form-table/src/column-filter-popover.vue +149 -0
- package/packages/ui/components/form/items/form-table/src/form-table.vue +1315 -0
- package/packages/ui/components/form/items/form-table/src/types.ts +165 -0
- package/packages/ui/components/form/items/form-table/styles/column-filter-popover.css +138 -0
- package/packages/ui/components/form/items/form-table/styles/form-table.css +393 -0
- package/packages/ui/components/form/items/form-textarea/README.md +123 -0
- package/packages/ui/components/form/items/form-textarea/__tests__/form-textarea.test.ts +93 -0
- package/packages/ui/components/form/items/form-textarea/index.ts +1 -0
- package/packages/ui/components/form/items/form-textarea/src/form-textarea.ts +7 -0
- package/packages/ui/components/form/items/form-textarea/src/form-textarea.vue +15 -0
- package/packages/ui/components/form/items/form-time-picker/README.md +117 -0
- package/packages/ui/components/form/items/form-time-picker/__tests__/form-time-picker.test.ts +105 -0
- package/packages/ui/components/form/items/form-time-picker/index.ts +1 -0
- package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.ts +7 -0
- package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.vue +17 -0
- package/packages/ui/components/form/items/form-upload/README.md +92 -0
- package/packages/ui/components/form/items/form-upload/__tests__/form-upload.test.ts +137 -0
- package/packages/ui/components/form/items/form-upload/index.ts +1 -0
- package/packages/ui/components/form/items/form-upload/src/form-upload.ts +7 -0
- package/packages/ui/components/form/items/form-upload/src/form-upload.vue +15 -0
- package/packages/ui/components/form/shared/types.ts +82 -0
- package/packages/ui/components/form/src/form-field.ts +96 -0
- package/packages/ui/components/form/src/form-field.vue +404 -0
- package/packages/ui/components/form/src/form-item.vue +646 -0
- package/packages/ui/components/form/src/form.ts +11 -0
- package/packages/ui/components/form/src/form.vue +156 -0
- package/packages/ui/components/form/src/types.ts +337 -0
- package/packages/ui/components/form/src/use-form-field.ts +190 -0
- package/packages/ui/components/form/styles/form-ai-actions.css +41 -0
- package/packages/ui/components/form/styles/form-field.css +123 -0
- package/packages/ui/components/form/styles/form-item-ai-status.css +212 -0
- package/packages/ui/components/form/styles/form-item.css +218 -0
- package/packages/ui/components/form/styles/form.css +132 -0
- package/packages/ui/components/form-ai-status/README.md +86 -0
- package/packages/ui/components/form-ai-status/__tests__/form-ai-status.test.ts +183 -0
- package/packages/ui/components/form-ai-status/index.ts +12 -0
- package/packages/ui/components/form-ai-status/src/form-ai-status.vue +254 -0
- package/packages/ui/components/form-ai-status/src/types.ts +36 -0
- package/packages/ui/components/form-ai-status/styles/form-ai-status.css +238 -0
- package/packages/ui/components/form-ai-toolbar/README.md +100 -0
- package/packages/ui/components/form-ai-toolbar/__tests__/form-ai-toolbar.test.ts +344 -0
- package/packages/ui/components/form-ai-toolbar/index.ts +13 -0
- package/packages/ui/components/form-ai-toolbar/src/form-ai-toolbar.vue +598 -0
- package/packages/ui/components/form-ai-toolbar/src/types.ts +130 -0
- package/packages/ui/components/form-ai-toolbar/styles/form-ai-toolbar.css +281 -0
- package/packages/ui/components/icon/README.md +137 -0
- package/packages/ui/components/icon/__tests__/icon.test.ts +125 -0
- package/packages/ui/components/icon/index.ts +13 -0
- package/packages/ui/components/icon/src/icon.ts +67 -0
- package/packages/ui/components/icon/src/icon.vue +69 -0
- package/packages/ui/components/icon/styles/icon.css +41 -0
- package/packages/ui/components/image-preview/README.md +90 -0
- package/packages/ui/components/image-preview/__tests__/image-preview.test.ts +183 -0
- package/packages/ui/components/image-preview/index.ts +13 -0
- package/packages/ui/components/image-preview/src/image-preview.vue +71 -0
- package/packages/ui/components/image-preview/src/index.ts +11 -0
- package/packages/ui/components/image-preview/src/preview-layer.vue +90 -0
- package/packages/ui/components/image-preview/src/types.ts +63 -0
- package/packages/ui/components/image-preview/styles/image-preview.css +39 -0
- package/packages/ui/components/layout/app-bar/README.md +59 -0
- package/packages/ui/components/layout/app-bar/__tests__/app-bar.test.ts +124 -0
- package/packages/ui/components/layout/app-bar/index.ts +13 -0
- package/packages/ui/components/layout/app-bar/src/app-bar.vue +106 -0
- package/packages/ui/components/layout/app-bar/src/types.ts +43 -0
- package/packages/ui/components/layout/app-bar/styles/app-bar.css +175 -0
- package/packages/ui/components/layout/card/README.md +90 -0
- package/packages/ui/components/layout/card/__tests__/card.test.ts +321 -0
- package/packages/ui/components/layout/card/index.ts +13 -0
- package/packages/ui/components/layout/card/src/card.vue +210 -0
- package/packages/ui/components/layout/card/src/types.ts +79 -0
- package/packages/ui/components/layout/card/styles/card.css +334 -0
- package/packages/ui/components/layout/container/README.md +29 -0
- package/packages/ui/components/layout/container/__tests__/container.test.ts +74 -0
- package/packages/ui/components/layout/container/index.ts +13 -0
- package/packages/ui/components/layout/container/src/container.vue +35 -0
- package/packages/ui/components/layout/container/src/types.ts +15 -0
- package/packages/ui/components/layout/container/styles/container.css +50 -0
- package/packages/ui/components/layout/detail-layout/README.md +30 -0
- package/packages/ui/components/layout/detail-layout/__tests__/detail-layout.test.ts +75 -0
- package/packages/ui/components/layout/detail-layout/index.ts +13 -0
- package/packages/ui/components/layout/detail-layout/src/detail-layout.vue +53 -0
- package/packages/ui/components/layout/detail-layout/src/types.ts +22 -0
- package/packages/ui/components/layout/detail-layout/styles/detail-layout.css +71 -0
- package/packages/ui/components/layout/form-layout/README.md +59 -0
- package/packages/ui/components/layout/form-layout/__tests__/form-layout.test.ts +140 -0
- package/packages/ui/components/layout/form-layout/index.ts +13 -0
- package/packages/ui/components/layout/form-layout/src/form-layout.vue +93 -0
- package/packages/ui/components/layout/form-layout/src/types.ts +64 -0
- package/packages/ui/components/layout/form-layout/styles/form-layout.css +98 -0
- package/packages/ui/components/layout/grid/README.md +41 -0
- package/packages/ui/components/layout/grid/__tests__/grid.test.ts +77 -0
- package/packages/ui/components/layout/grid/index.ts +13 -0
- package/packages/ui/components/layout/grid/src/grid.vue +79 -0
- package/packages/ui/components/layout/grid/src/types.ts +44 -0
- package/packages/ui/components/layout/grid/styles/grid.css +46 -0
- package/packages/ui/components/layout/hero/README.md +59 -0
- package/packages/ui/components/layout/hero/__tests__/hero.test.ts +112 -0
- package/packages/ui/components/layout/hero/index.ts +13 -0
- package/packages/ui/components/layout/hero/src/hero.vue +143 -0
- package/packages/ui/components/layout/hero/src/types.ts +44 -0
- package/packages/ui/components/layout/hero/styles/hero.css +129 -0
- package/packages/ui/components/layout/inline/README.md +30 -0
- package/packages/ui/components/layout/inline/__tests__/inline.test.ts +154 -0
- package/packages/ui/components/layout/inline/index.ts +13 -0
- package/packages/ui/components/layout/inline/src/inline.vue +99 -0
- package/packages/ui/components/layout/inline/src/types.ts +23 -0
- package/packages/ui/components/layout/inline/styles/inline.css +150 -0
- package/packages/ui/components/layout/master-detail/README.md +36 -0
- package/packages/ui/components/layout/master-detail/__tests__/master-detail.test.ts +104 -0
- package/packages/ui/components/layout/master-detail/index.ts +13 -0
- package/packages/ui/components/layout/master-detail/src/master-detail.vue +72 -0
- package/packages/ui/components/layout/master-detail/src/types.ts +28 -0
- package/packages/ui/components/layout/master-detail/styles/master-detail.css +82 -0
- package/packages/ui/components/layout/page/README.md +35 -0
- package/packages/ui/components/layout/page/__tests__/page.test.ts +136 -0
- package/packages/ui/components/layout/page/index.ts +13 -0
- package/packages/ui/components/layout/page/src/page.vue +85 -0
- package/packages/ui/components/layout/page/src/types.ts +39 -0
- package/packages/ui/components/layout/page/styles/page.css +177 -0
- package/packages/ui/components/layout/page-header/README.md +39 -0
- package/packages/ui/components/layout/page-header/__tests__/page-header.test.ts +198 -0
- package/packages/ui/components/layout/page-header/index.ts +13 -0
- package/packages/ui/components/layout/page-header/src/page-header.vue +133 -0
- package/packages/ui/components/layout/page-header/src/types.ts +56 -0
- package/packages/ui/components/layout/page-header/styles/page-header.css +155 -0
- package/packages/ui/components/layout/section/README.md +40 -0
- package/packages/ui/components/layout/section/__tests__/section.test.ts +121 -0
- package/packages/ui/components/layout/section/index.ts +13 -0
- package/packages/ui/components/layout/section/src/section.vue +79 -0
- package/packages/ui/components/layout/section/src/types.ts +28 -0
- package/packages/ui/components/layout/section/styles/section.css +103 -0
- package/packages/ui/components/layout/sidebar-layout/README.md +60 -0
- package/packages/ui/components/layout/sidebar-layout/__tests__/sidebar-layout.test.ts +220 -0
- package/packages/ui/components/layout/sidebar-layout/index.ts +13 -0
- package/packages/ui/components/layout/sidebar-layout/src/sidebar-layout.vue +113 -0
- package/packages/ui/components/layout/sidebar-layout/src/types.ts +54 -0
- package/packages/ui/components/layout/sidebar-layout/styles/sidebar-layout.css +211 -0
- package/packages/ui/components/layout/split/README.md +40 -0
- package/packages/ui/components/layout/split/__tests__/split.test.ts +99 -0
- package/packages/ui/components/layout/split/index.ts +13 -0
- package/packages/ui/components/layout/split/src/split.vue +65 -0
- package/packages/ui/components/layout/split/src/types.ts +49 -0
- package/packages/ui/components/layout/split/styles/split.css +40 -0
- package/packages/ui/components/layout/stack/README.md +29 -0
- package/packages/ui/components/layout/stack/__tests__/stack.test.ts +66 -0
- package/packages/ui/components/layout/stack/index.ts +13 -0
- package/packages/ui/components/layout/stack/src/stack.vue +31 -0
- package/packages/ui/components/layout/stack/src/types.ts +14 -0
- package/packages/ui/components/layout/stack/styles/stack.css +61 -0
- package/packages/ui/components/layout/state-container/README.md +45 -0
- package/packages/ui/components/layout/state-container/__tests__/state-container.test.ts +123 -0
- package/packages/ui/components/layout/state-container/index.ts +13 -0
- package/packages/ui/components/layout/state-container/src/state-container.vue +72 -0
- package/packages/ui/components/layout/state-container/src/types.ts +46 -0
- package/packages/ui/components/layout/state-container/styles/state-container.css +71 -0
- package/packages/ui/components/layout/toolbar/README.md +34 -0
- package/packages/ui/components/layout/toolbar/__tests__/toolbar.test.ts +90 -0
- package/packages/ui/components/layout/toolbar/index.ts +13 -0
- package/packages/ui/components/layout/toolbar/src/toolbar.vue +50 -0
- package/packages/ui/components/layout/toolbar/src/types.ts +19 -0
- package/packages/ui/components/layout/toolbar/styles/toolbar.css +80 -0
- package/packages/ui/components/loading/README.md +39 -0
- package/packages/ui/components/loading/__tests__/loading.test.ts +37 -0
- package/packages/ui/components/loading/index.ts +13 -0
- package/packages/ui/components/loading/src/loading.vue +59 -0
- package/packages/ui/components/loading/src/types.ts +27 -0
- package/packages/ui/components/loading/styles/loading.css +59 -0
- package/packages/ui/components/menu/README.md +51 -0
- package/packages/ui/components/menu/__tests__/menu.test.ts +80 -0
- package/packages/ui/components/menu/index.ts +11 -0
- package/packages/ui/components/menu/src/menu.ts +49 -0
- package/packages/ui/components/menu/src/menu.vue +103 -0
- package/packages/ui/components/menu/styles/menu.css +19 -0
- package/packages/ui/components/message/README.md +69 -0
- package/packages/ui/components/message/__tests__/message.test.ts +98 -0
- package/packages/ui/components/message/index.ts +13 -0
- package/packages/ui/components/message/src/message.ts +87 -0
- package/packages/ui/components/message/src/message.vue +88 -0
- package/packages/ui/components/message/styles/message.css +70 -0
- package/packages/ui/components/metric/README.md +63 -0
- package/packages/ui/components/metric/__tests__/metric.test.ts +166 -0
- package/packages/ui/components/metric/index.ts +13 -0
- package/packages/ui/components/metric/src/metric.vue +107 -0
- package/packages/ui/components/metric/src/types.ts +50 -0
- package/packages/ui/components/metric/styles/metric.css +233 -0
- package/packages/ui/components/modal/README.md +91 -0
- package/packages/ui/components/modal/__tests__/modal.test.ts +145 -0
- package/packages/ui/components/modal/index.ts +13 -0
- package/packages/ui/components/modal/src/modal.ts +153 -0
- package/packages/ui/components/modal/src/modal.vue +234 -0
- package/packages/ui/components/modal/styles/modal.css +104 -0
- package/packages/ui/components/more-action-button/README.md +68 -0
- package/packages/ui/components/more-action-button/__tests__/more-action-button.test.ts +30 -0
- package/packages/ui/components/more-action-button/index.ts +11 -0
- package/packages/ui/components/more-action-button/src/more-action-button.vue +59 -0
- package/packages/ui/components/more-action-button/src/types.ts +9 -0
- package/packages/ui/components/navigation/side-nav/README.md +59 -0
- package/packages/ui/components/navigation/side-nav/__tests__/side-nav.test.ts +105 -0
- package/packages/ui/components/navigation/side-nav/index.ts +13 -0
- package/packages/ui/components/navigation/side-nav/src/side-nav.vue +147 -0
- package/packages/ui/components/navigation/side-nav/src/types.ts +50 -0
- package/packages/ui/components/navigation/side-nav/styles/side-nav.css +171 -0
- package/packages/ui/components/notification/README.md +82 -0
- package/packages/ui/components/notification/__tests__/notification.test.ts +150 -0
- package/packages/ui/components/notification/index.ts +30 -0
- package/packages/ui/components/notification/src/notification.vue +114 -0
- package/packages/ui/components/notification/src/types.ts +67 -0
- package/packages/ui/components/notification/src/use-notification.ts +136 -0
- package/packages/ui/components/notification/styles/notification.css +4 -0
- package/packages/ui/components/pagination/README.md +82 -0
- package/packages/ui/components/pagination/__tests__/pagination.test.ts +210 -0
- package/packages/ui/components/pagination/index.ts +13 -0
- package/packages/ui/components/pagination/src/pagination.ts +86 -0
- package/packages/ui/components/pagination/src/pagination.vue +270 -0
- package/packages/ui/components/pagination/styles/pagination.css +143 -0
- package/packages/ui/components/progress/README.md +132 -0
- package/packages/ui/components/progress/__tests__/progress.test.ts +81 -0
- package/packages/ui/components/progress/index.ts +12 -0
- package/packages/ui/components/progress/src/progress.ts +80 -0
- package/packages/ui/components/progress/src/progress.vue +202 -0
- package/packages/ui/components/skeleton/README.md +71 -0
- package/packages/ui/components/skeleton/__tests__/skeleton.test.ts +138 -0
- package/packages/ui/components/skeleton/index.ts +13 -0
- package/packages/ui/components/skeleton/src/skeleton.ts +46 -0
- package/packages/ui/components/skeleton/src/skeleton.vue +67 -0
- package/packages/ui/components/skeleton/styles/skeleton.css +75 -0
- package/packages/ui/components/slider/README.md +87 -0
- package/packages/ui/components/slider/__tests__/ai-capability.test.ts +469 -0
- package/packages/ui/components/slider/__tests__/slider.test.ts +235 -0
- package/packages/ui/components/slider/index.ts +26 -0
- package/packages/ui/components/slider/src/slider.ts +192 -0
- package/packages/ui/components/slider/src/slider.vue +504 -0
- package/packages/ui/components/slider/src/use-slider.ts +399 -0
- package/packages/ui/components/slider/styles/slider.css +344 -0
- package/packages/ui/components/split-button/README.md +71 -0
- package/packages/ui/components/split-button/__tests__/split-button.test.ts +32 -0
- package/packages/ui/components/split-button/index.ts +11 -0
- package/packages/ui/components/split-button/src/split-button.vue +69 -0
- package/packages/ui/components/split-button/src/types.ts +34 -0
- package/packages/ui/components/split-button/styles/split-button.css +15 -0
- package/packages/ui/components/status-dot/README.md +42 -0
- package/packages/ui/components/status-dot/__tests__/status-dot.test.ts +53 -0
- package/packages/ui/components/status-dot/index.ts +13 -0
- package/packages/ui/components/status-dot/src/status-dot.vue +39 -0
- package/packages/ui/components/status-dot/src/types.ts +23 -0
- package/packages/ui/components/status-dot/styles/status-dot.css +65 -0
- package/packages/ui/components/steps/README.md +101 -0
- package/packages/ui/components/steps/__tests__/steps.test.ts +261 -0
- package/packages/ui/components/steps/index.ts +15 -0
- package/packages/ui/components/steps/src/step.vue +99 -0
- package/packages/ui/components/steps/src/steps.ts +93 -0
- package/packages/ui/components/steps/src/steps.vue +143 -0
- package/packages/ui/components/steps/styles/step.css +116 -0
- package/packages/ui/components/steps/styles/steps.css +200 -0
- package/packages/ui/components/table/README.md +81 -0
- package/packages/ui/components/table/__tests__/table.test.ts +162 -0
- package/packages/ui/components/table/index.ts +13 -0
- package/packages/ui/components/table/src/table.ts +195 -0
- package/packages/ui/components/table/src/table.vue +453 -0
- package/packages/ui/components/table/styles/table.css +88 -0
- package/packages/ui/components/tabs/README.md +88 -0
- package/packages/ui/components/tabs/__tests__/tabs.test.ts +161 -0
- package/packages/ui/components/tabs/index.ts +19 -0
- package/packages/ui/components/tabs/src/tab-pane.ts +18 -0
- package/packages/ui/components/tabs/src/tab-pane.vue +11 -0
- package/packages/ui/components/tabs/src/tabs-content.vue +58 -0
- package/packages/ui/components/tabs/src/tabs-list.vue +36 -0
- package/packages/ui/components/tabs/src/tabs-trigger.vue +70 -0
- package/packages/ui/components/tabs/src/tabs.ts +94 -0
- package/packages/ui/components/tabs/src/tabs.vue +101 -0
- package/packages/ui/components/tabs/src/types.ts +126 -0
- package/packages/ui/components/tabs/styles/tabs.css +239 -0
- package/packages/ui/components/tag/README.md +67 -0
- package/packages/ui/components/tag/__tests__/tag.test.ts +222 -0
- package/packages/ui/components/tag/index.ts +13 -0
- package/packages/ui/components/tag/src/tag.ts +87 -0
- package/packages/ui/components/tag/src/tag.vue +163 -0
- package/packages/ui/components/tag/styles/tag.css +47 -0
- package/packages/ui/components/timeline/README.md +80 -0
- package/packages/ui/components/timeline/__tests__/timeline.test.ts +78 -0
- package/packages/ui/components/timeline/index.ts +15 -0
- package/packages/ui/components/timeline/src/timeline-item.vue +38 -0
- package/packages/ui/components/timeline/src/timeline.ts +76 -0
- package/packages/ui/components/timeline/src/timeline.vue +30 -0
- package/packages/ui/components/timeline/styles/timeline-item.css +49 -0
- package/packages/ui/components/timeline/styles/timeline.css +43 -0
- package/packages/ui/components/tooltip/README.md +134 -0
- package/packages/ui/components/tooltip/__tests__/tooltip.test.ts +125 -0
- package/packages/ui/components/tooltip/index.ts +12 -0
- package/packages/ui/components/tooltip/src/tooltip.ts +66 -0
- package/packages/ui/components/tooltip/src/tooltip.vue +189 -0
- package/packages/ui/components/tree/README.md +54 -0
- package/packages/ui/components/tree/__tests__/tree.test.ts +80 -0
- package/packages/ui/components/tree/index.ts +11 -0
- package/packages/ui/components/tree/src/tree.ts +51 -0
- package/packages/ui/components/tree/src/tree.vue +242 -0
- package/packages/ui/components/tree/styles/tree.css +31 -0
- package/packages/ui/components/typography/README.md +120 -0
- package/packages/ui/components/typography/__tests__/typography.test.ts +164 -0
- package/packages/ui/components/typography/index.ts +13 -0
- package/packages/ui/components/typography/src/typography.ts +95 -0
- package/packages/ui/components/typography/src/typography.vue +94 -0
- package/packages/ui/components/typography/styles/typography.css +47 -0
- package/packages/ui/components/upload/README.md +103 -0
- package/packages/ui/components/upload/__tests__/upload.test.ts +181 -0
- package/packages/ui/components/upload/index.ts +11 -0
- package/packages/ui/components/upload/src/upload.ts +92 -0
- package/packages/ui/components/upload/src/upload.vue +382 -0
- package/packages/ui/components/upload/styles/upload.css +283 -0
- package/packages/ui/components/watermark/README.md +94 -0
- package/packages/ui/components/watermark/__tests__/watermark.test.ts +252 -0
- package/packages/ui/components/watermark/index.ts +13 -0
- package/packages/ui/components/watermark/src/index.ts +13 -0
- package/packages/ui/components/watermark/src/types.ts +86 -0
- package/packages/ui/components/watermark/src/use-watermark.ts +132 -0
- package/packages/ui/components/watermark/src/watermark.vue +181 -0
- package/packages/ui/components/watermark/styles/watermark.css +27 -0
- package/packages/ui/index.ts +338 -0
- package/packages/ui/lib/utils.ts +6 -0
- package/packages/ui/lowcode-agent/icons.ts +148 -0
- package/packages/ui/lowcode-agent/index.ts +26 -0
- package/packages/ui/lowcode-agent/registry.json +37004 -0
- package/packages/ui/lowcode-agent/types.ts +312 -0
- package/packages/ui/src/composables/__tests__/use-floating-popup.test.ts +275 -0
- package/packages/ui/src/composables/__tests__/use-form-ai-actions.test.ts +101 -0
- package/packages/ui/src/composables/__tests__/use-form-ai-registry.test.ts +92 -0
- package/packages/ui/src/composables/__tests__/use-form-ai.test.ts +116 -0
- package/packages/ui/src/composables/index.ts +10 -0
- package/packages/ui/src/composables/use-ai-state-machine.ts +142 -0
- package/packages/ui/src/composables/use-floating-popup.ts +237 -0
- package/packages/ui/src/composables/use-form-ai-registry.ts +198 -0
- package/packages/ui/src/composables/use-form-ai.ts +280 -0
- package/packages/ui/src/composables/useLightbox.ts +51 -0
- package/packages/ui/src/request/document.ts +53 -0
- package/packages/ui/src/request/enum.ts +18 -0
- package/packages/ui/src/request/index.ts +4 -0
- package/packages/ui/src/request/request.ts +200 -0
- package/packages/ui/src/request/types.ts +27 -0
- package/packages/ui/src/types/form-ai-registry.ts +70 -0
- package/packages/ui/src/types/form-ai.ts +84 -0
- package/packages/ui/src/utils/date-format.ts +60 -0
- package/packages/ui/styles/design-tokens.css +383 -0
- package/packages/ui/styles/tailwind.css +76 -0
- package/packages/ui/styles/tokens.css +7 -0
- package/playground/index.html +12 -0
- package/playground/postcss.config.cjs +5 -0
- package/playground/src/App.vue +3 -0
- package/playground/src/__tests__/__debug-input.test.ts +29 -0
- package/playground/src/__tests__/button-ai-confirm.test.ts +41 -0
- package/playground/src/__tests__/home-render.test.ts +87 -0
- package/playground/src/__tests__/icon-library.test.ts +107 -0
- package/playground/src/__tests__/input-ai-confirm.test.ts +113 -0
- package/playground/src/__tests__/textarea-ai-button.test.ts +87 -0
- package/playground/src/__tests__/textarea-wordlimit.test.ts +66 -0
- package/playground/src/chart-theme.ts +22 -0
- package/playground/src/components/AiStateFlow.vue +59 -0
- package/playground/src/components/ComponentShowcase.vue +180 -0
- package/playground/src/composables/useAiStateMachine.ts +111 -0
- package/playground/src/data/component-api.ts +187 -0
- package/playground/src/data/component-meta.ts +84 -0
- package/playground/src/layouts/DefaultLayout.vue +318 -0
- package/playground/src/main.ts +18 -0
- package/playground/src/router/index.ts +101 -0
- package/playground/src/views/AffixDemo.vue +133 -0
- package/playground/src/views/AiStateFlowDemo.vue +170 -0
- package/playground/src/views/AlertDemo.vue +554 -0
- package/playground/src/views/AnchorDemo.vue +150 -0
- package/playground/src/views/AppBarDemo.vue +722 -0
- package/playground/src/views/AvatarDemo.vue +266 -0
- package/playground/src/views/BackTopDemo.vue +71 -0
- package/playground/src/views/BadgeDemo.vue +109 -0
- package/playground/src/views/BatchActionButtonDemo.vue +65 -0
- package/playground/src/views/BreadcrumbDemo.vue +248 -0
- package/playground/src/views/ButtonDemo.vue +344 -0
- package/playground/src/views/CardDemo.vue +254 -0
- package/playground/src/views/CarouselDemo.vue +158 -0
- package/playground/src/views/CascaderDemo.vue +425 -0
- package/playground/src/views/ChartDemo.vue +232 -0
- package/playground/src/views/CheckboxDemo.vue +339 -0
- package/playground/src/views/DataGridDemo.vue +518 -0
- package/playground/src/views/DataPickerDemo.vue +240 -0
- package/playground/src/views/DatePickerDemo.vue +292 -0
- package/playground/src/views/DateTimePickerDemo.vue +208 -0
- package/playground/src/views/DesignSpecDemo.vue +1647 -0
- package/playground/src/views/DividerDemo.vue +77 -0
- package/playground/src/views/DocumentActionHeaderDemo.vue +113 -0
- package/playground/src/views/DocumentFormPageDemo.vue +200 -0
- package/playground/src/views/DrawerDemo.vue +166 -0
- package/playground/src/views/DropdownButtonDemo.vue +74 -0
- package/playground/src/views/DropdownDemo.vue +306 -0
- package/playground/src/views/EmptyDemo.vue +104 -0
- package/playground/src/views/ErrorDemo.vue +111 -0
- package/playground/src/views/FileUploadDemo.vue +241 -0
- package/playground/src/views/FilterButtonDemo.vue +65 -0
- package/playground/src/views/FormFieldAiDemo.vue +364 -0
- package/playground/src/views/FormFieldBasicDemo.vue +174 -0
- package/playground/src/views/FormFieldBusinessDemo.vue +245 -0
- package/playground/src/views/FormFieldDemo.vue +178 -0
- package/playground/src/views/FormFieldLayoutDemo.vue +183 -0
- package/playground/src/views/FormFieldValidationDemo.vue +163 -0
- package/playground/src/views/FormItemAiDemo.vue +371 -0
- package/playground/src/views/FormSelectDemo.vue +519 -0
- package/playground/src/views/FormUploadDemo.vue +536 -0
- package/playground/src/views/HeroDemo.vue +836 -0
- package/playground/src/views/Home.vue +213 -0
- package/playground/src/views/IconDemo.vue +186 -0
- package/playground/src/views/IconLibraryView.vue +370 -0
- package/playground/src/views/IconRenderTest.vue +86 -0
- package/playground/src/views/ImagePreviewDemo.vue +368 -0
- package/playground/src/views/ImageUploadDemo.vue +199 -0
- package/playground/src/views/InputDemo.vue +348 -0
- package/playground/src/views/LayoutDemo.vue +946 -0
- package/playground/src/views/LoadingDemo.vue +95 -0
- package/playground/src/views/LocationPickerDemo.vue +218 -0
- package/playground/src/views/MenuDemo.vue +283 -0
- package/playground/src/views/MessageDemo.vue +201 -0
- package/playground/src/views/MetricDemo.vue +535 -0
- package/playground/src/views/ModalDemo.vue +291 -0
- package/playground/src/views/MoreActionButtonDemo.vue +65 -0
- package/playground/src/views/NewDocumentDemo.vue +973 -0
- package/playground/src/views/NotificationDemo.vue +255 -0
- package/playground/src/views/PaginationDemo.vue +292 -0
- package/playground/src/views/ProgressDemo.vue +356 -0
- package/playground/src/views/RadioDemo.vue +414 -0
- package/playground/src/views/RegionPickerDemo.vue +249 -0
- package/playground/src/views/ScalingRulesDemo.vue +333 -0
- package/playground/src/views/SelectDemo.vue +453 -0
- package/playground/src/views/SideNavDemo.vue +769 -0
- package/playground/src/views/SignatureDemo.vue +205 -0
- package/playground/src/views/SkeletonDemo.vue +109 -0
- package/playground/src/views/SliderDemo.vue +312 -0
- package/playground/src/views/SplitButtonDemo.vue +65 -0
- package/playground/src/views/StatusDotDemo.vue +131 -0
- package/playground/src/views/StepsDemo.vue +587 -0
- package/playground/src/views/SwitchDemo.vue +442 -0
- package/playground/src/views/TableDemo.vue +438 -0
- package/playground/src/views/TabsDemo.vue +246 -0
- package/playground/src/views/TagDemo.vue +113 -0
- package/playground/src/views/TextAreaDemo.vue +317 -0
- package/playground/src/views/TimePickerDemo.vue +291 -0
- package/playground/src/views/TimelineDemo.vue +133 -0
- package/playground/src/views/TooltipDemo.vue +102 -0
- package/playground/src/views/TreeDemo.vue +521 -0
- package/playground/src/views/TypographyDemo.vue +175 -0
- package/playground/src/views/UploadDemo.vue +331 -0
- package/playground/src/views/WatermarkDemo.vue +112 -0
- package/playground/src/views/_mocks/new-document.mock.ts +506 -0
- package/playground/src/views/data/form-field-events-table.ts +243 -0
- package/playground/src/views/data/form-field-options.ts +77 -0
- package/playground/src/views/data/form-field-props-table.ts +227 -0
- package/playground/src/views/data/form-field-snippets.ts +149 -0
- package/playground/src/views/data/slider-snippets.ts +100 -0
- package/playground/src/views/inner/FormFieldEventsDoc.vue +147 -0
- package/playground/src/views/inner/FormFieldPropsDoc.vue +138 -0
- package/playground/vite.config.ts +25 -0
- package/pnpm-workspace.yaml +3 -0
- package/postcss.config.cjs +5 -0
- package/scripts/check-design-token-compliance.mjs +223 -0
- package/scripts/generate-package-dts.mjs +105 -0
- package/tsconfig.json +35 -0
- package/tsconfig.node.json +13 -0
- package/vite.config.ts +68 -0
- package/dist/Accordion.vue_vue_type_script_setup_true_lang--wy6blIE.js +0 -215
- package/dist/Accordion.vue_vue_type_script_setup_true_lang-BLeKfnsj.cjs +0 -1
- package/dist/Alert.vue_vue_type_script_setup_true_lang-D-jeM-WY.cjs +0 -1
- package/dist/Alert.vue_vue_type_script_setup_true_lang-TxBBGtUT.js +0 -84
- package/dist/AlertDialog.vue_vue_type_script_setup_true_lang-Bu2DzAMe.js +0 -154
- package/dist/AlertDialog.vue_vue_type_script_setup_true_lang-UYpaBI80.cjs +0 -1
- package/dist/AspectRatio.vue_vue_type_script_setup_true_lang-C1Vsh6aT.js +0 -53
- package/dist/AspectRatio.vue_vue_type_script_setup_true_lang-ClsMtGoF.cjs +0 -1
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-BH6iM5tr.js +0 -73
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-DO68pMXd.cjs +0 -1
- package/dist/Badge.vue_vue_type_script_setup_true_lang-CEWGZXh5.js +0 -51
- package/dist/Badge.vue_vue_type_script_setup_true_lang-ywvX3cQa.cjs +0 -1
- package/dist/BasicData.vue_vue_type_script_setup_true_lang-BIj7l5cr.cjs +0 -1
- package/dist/BasicData.vue_vue_type_script_setup_true_lang-CbariCIQ.js +0 -128
- package/dist/Breadcrumb.vue_vue_type_script_setup_true_lang-CydnFxPt.cjs +0 -1
- package/dist/Breadcrumb.vue_vue_type_script_setup_true_lang-DEb9qtjR.js +0 -129
- package/dist/Button.vue_vue_type_script_setup_true_lang-BKdqhxHb.js +0 -77
- package/dist/Button.vue_vue_type_script_setup_true_lang-DDvMH9EZ.cjs +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-B4hE3gsW.cjs +0 -1
- package/dist/ButtonGroup.vue_vue_type_script_setup_true_lang-Bs0B8Vd8.js +0 -120
- package/dist/Calendar.vue_vue_type_script_setup_true_lang-BDi2p9Jy.js +0 -190
- package/dist/Calendar.vue_vue_type_script_setup_true_lang-DGZRfB16.cjs +0 -1
- package/dist/Card.vue_vue_type_script_setup_true_lang-B3VTzVMY.cjs +0 -1
- package/dist/Card.vue_vue_type_script_setup_true_lang-CCOp9xQD.js +0 -119
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-DsZtCSP7.cjs +0 -1
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-pkxqabIY.js +0 -65
- package/dist/Collapsible.vue_vue_type_script_setup_true_lang-CkP6uzq2.js +0 -195
- package/dist/Collapsible.vue_vue_type_script_setup_true_lang-DQt_yIv4.cjs +0 -1
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-DH4Rseiw.js +0 -192
- package/dist/Combobox.vue_vue_type_script_setup_true_lang-MmX7xgxo.cjs +0 -1
- package/dist/Command.vue_vue_type_script_setup_true_lang-FUM9Zk8T.cjs +0 -1
- package/dist/Command.vue_vue_type_script_setup_true_lang-S58WiQYS.js +0 -210
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-K0H6qX1E.js +0 -54
- package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-ru3M-m26.cjs +0 -1
- package/dist/ContextMenu.vue_vue_type_script_setup_true_lang-BoVF4TPX.js +0 -179
- package/dist/ContextMenu.vue_vue_type_script_setup_true_lang-C6tWKeM7.cjs +0 -1
- package/dist/DatePicker.vue_vue_type_script_setup_true_lang-B6LaPpp6.cjs +0 -1
- package/dist/DatePicker.vue_vue_type_script_setup_true_lang-_f_sZGq1.js +0 -242
- package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-C43ZwNIn.cjs +0 -1
- package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-DQUWt_Wu.js +0 -271
- package/dist/DateTimePicker.vue_vue_type_script_setup_true_lang-BlKdEbyK.cjs +0 -1
- package/dist/DateTimePicker.vue_vue_type_script_setup_true_lang-LTCCmsla.js +0 -410
- package/dist/DateTimeRangePicker.vue_vue_type_script_setup_true_lang-ClYv_nVS.js +0 -576
- package/dist/DateTimeRangePicker.vue_vue_type_script_setup_true_lang-Cw7MNCi2.cjs +0 -1
- package/dist/DecimalField.vue_vue_type_script_setup_true_lang-BJjaNs3A.cjs +0 -1
- package/dist/DecimalField.vue_vue_type_script_setup_true_lang-D7aOG5Dh.js +0 -91
- package/dist/DescriptionList.vue_vue_type_script_setup_true_lang-AfzkSyE9.js +0 -93
- package/dist/DescriptionList.vue_vue_type_script_setup_true_lang-Bmf_3Dc1.cjs +0 -1
- package/dist/Dialog.vue_vue_type_script_setup_true_lang-CIRDXaZe.cjs +0 -1
- package/dist/Dialog.vue_vue_type_script_setup_true_lang-DO5uFv4H.js +0 -197
- package/dist/Drawer.vue_vue_type_script_setup_true_lang-CFARHqW5.cjs +0 -1
- package/dist/Drawer.vue_vue_type_script_setup_true_lang-DD3XKgWN.js +0 -224
- package/dist/DropdownMenu.vue_vue_type_script_setup_true_lang-DEIcofhM.js +0 -187
- package/dist/DropdownMenu.vue_vue_type_script_setup_true_lang-LPRBC-sT.cjs +0 -1
- package/dist/Empty.vue_vue_type_script_setup_true_lang-BcHRqYVE.cjs +0 -1
- package/dist/Empty.vue_vue_type_script_setup_true_lang-Dpi0qEtn.js +0 -54
- package/dist/Field.vue_vue_type_script_setup_true_lang-BpHsfsic.cjs +0 -1
- package/dist/Field.vue_vue_type_script_setup_true_lang-DJJy-YPW.js +0 -131
- package/dist/Form.vue_vue_type_script_setup_true_lang-C1U8snBS.cjs +0 -1
- package/dist/Form.vue_vue_type_script_setup_true_lang-QWZ4SdKT.js +0 -261
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BF42kZLr.js +0 -423
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-DITQLBpA.cjs +0 -1
- package/dist/FormRenderer.vue_vue_type_script_setup_true_lang-CAxNwqHD.cjs +0 -1
- package/dist/FormRenderer.vue_vue_type_script_setup_true_lang-Dhm-WjC8.js +0 -233
- package/dist/Grid.vue_vue_type_script_setup_true_lang-BPbW0pD8.cjs +0 -1
- package/dist/Grid.vue_vue_type_script_setup_true_lang-DdUORFs2.js +0 -104
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-BX1R_w3e.cjs +0 -1
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DQyN5fZJ.js +0 -171
- package/dist/ImagePreview.vue_vue_type_script_setup_true_lang-B0OOqOY8.js +0 -302
- package/dist/ImagePreview.vue_vue_type_script_setup_true_lang-DzqU_CNv.cjs +0 -1
- package/dist/Input.vue_vue_type_script_setup_true_lang-Cp2TGrCk.js +0 -49
- package/dist/Input.vue_vue_type_script_setup_true_lang-z96sVbKu.cjs +0 -1
- package/dist/InputGroup.vue_vue_type_script_setup_true_lang-D_OJAjSL.cjs +0 -1
- package/dist/InputGroup.vue_vue_type_script_setup_true_lang-DhMJFd3E.js +0 -254
- package/dist/InputOtp.vue_vue_type_script_setup_true_lang-BfhYqjWQ.cjs +0 -1
- package/dist/InputOtp.vue_vue_type_script_setup_true_lang-BppDfxqy.js +0 -104
- package/dist/IntegerField.vue_vue_type_script_setup_true_lang-9l6zsnms.js +0 -138
- package/dist/IntegerField.vue_vue_type_script_setup_true_lang-DKHzNN7U.cjs +0 -1
- package/dist/Item.vue_vue_type_script_setup_true_lang-C-HydRiq.cjs +0 -1
- package/dist/Item.vue_vue_type_script_setup_true_lang-a96_Oj5N.js +0 -294
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-CLohvO70.js +0 -59
- package/dist/Kbd.vue_vue_type_script_setup_true_lang-DmNRZNY7.cjs +0 -1
- package/dist/Label.vue_vue_type_script_setup_true_lang-B24W9bVo.cjs +0 -1
- package/dist/Label.vue_vue_type_script_setup_true_lang-DiEbF66L.js +0 -36
- package/dist/Layout.vue_vue_type_script_setup_true_lang-DhuBYtXR.cjs +0 -1
- package/dist/Layout.vue_vue_type_script_setup_true_lang-qyWN0Zic.js +0 -266
- package/dist/Loading-3o1JTfTo.js +0 -151
- package/dist/Loading-Bb__Xu0A.cjs +0 -1
- package/dist/Menubar.vue_vue_type_script_setup_true_lang-Bv2izUjc.cjs +0 -1
- package/dist/Menubar.vue_vue_type_script_setup_true_lang-D_tfSoC2.js +0 -158
- package/dist/Message.vue_vue_type_script_setup_true_lang-DXupIlLr.cjs +0 -1
- package/dist/Message.vue_vue_type_script_setup_true_lang-Dlfgz0TE.js +0 -103
- package/dist/MonthPicker.vue_vue_type_script_setup_true_lang-BC6_j8NI.js +0 -208
- package/dist/MonthPicker.vue_vue_type_script_setup_true_lang-CPViB4Ld.cjs +0 -1
- package/dist/NavigationMenu.vue_vue_type_script_setup_true_lang-BsGhzlGm.cjs +0 -1
- package/dist/NavigationMenu.vue_vue_type_script_setup_true_lang-D2uAwqI7.js +0 -222
- package/dist/Notification.vue_vue_type_script_setup_true_lang-BvtuThJf.js +0 -148
- package/dist/Notification.vue_vue_type_script_setup_true_lang-DEyslU7t.cjs +0 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-BbVMAU2p.cjs +0 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-Byu8A8uh.js +0 -105
- package/dist/PageContainer.vue_vue_type_script_setup_true_lang-CKe6JoYl.js +0 -234
- package/dist/PageContainer.vue_vue_type_script_setup_true_lang-Dj20ALwk.cjs +0 -1
- package/dist/PageRenderer.vue_vue_type_script_setup_true_lang-CEnN5hpQ.cjs +0 -1
- package/dist/PageRenderer.vue_vue_type_script_setup_true_lang-yFhOgQ0d.js +0 -323
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-CaA7p1U_.js +0 -139
- package/dist/Pagination.vue_vue_type_script_setup_true_lang-Lh-HNwDK.cjs +0 -1
- package/dist/Popover.vue_vue_type_script_setup_true_lang-BjbI4KXM.js +0 -134
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Cm77KH2H.cjs +0 -1
- package/dist/Progress.vue_vue_type_script_setup_true_lang-87j8mX2L.cjs +0 -1
- package/dist/Progress.vue_vue_type_script_setup_true_lang-CgHMn6cZ.js +0 -78
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-BCD6_cQf.js +0 -97
- package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-Dy6pu-sy.cjs +0 -1
- package/dist/ResizablePanelGroup.vue_vue_type_script_setup_true_lang-C6Hrh-OK.cjs +0 -1
- package/dist/ResizablePanelGroup.vue_vue_type_script_setup_true_lang-DnQJzPd5.js +0 -97
- package/dist/Result.vue_vue_type_script_setup_true_lang-C7tmhboo.js +0 -141
- package/dist/Result.vue_vue_type_script_setup_true_lang-CY_5_FQA.cjs +0 -1
- package/dist/ScrollArea.vue_vue_type_script_setup_true_lang-CGlecwYE.js +0 -72
- package/dist/ScrollArea.vue_vue_type_script_setup_true_lang-DotfmsY-.cjs +0 -1
- package/dist/Section.vue_vue_type_script_setup_true_lang-C7N8AafD.cjs +0 -1
- package/dist/Section.vue_vue_type_script_setup_true_lang-D5u3369q.js +0 -252
- package/dist/Select.vue_vue_type_script_setup_true_lang-DTZtMKx_.js +0 -67
- package/dist/Select.vue_vue_type_script_setup_true_lang-Xq-QJSlA.cjs +0 -1
- package/dist/Separator.vue_vue_type_script_setup_true_lang-BOSUjxhy.js +0 -49
- package/dist/Separator.vue_vue_type_script_setup_true_lang-fp-6WKch.cjs +0 -1
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-Bypym9gW.js +0 -200
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-DQMXcp7q.cjs +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-8P4v4YYK.js +0 -33
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DvTCib5t.cjs +0 -1
- package/dist/Slider.vue_vue_type_script_setup_true_lang-5qILedGS.js +0 -130
- package/dist/Slider.vue_vue_type_script_setup_true_lang-DpOQgMTW.cjs +0 -1
- package/dist/Space.vue_vue_type_script_setup_true_lang-DUCQzntm.cjs +0 -1
- package/dist/Space.vue_vue_type_script_setup_true_lang-ikc41cqV.js +0 -125
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-CkR6YQjH.cjs +0 -1
- package/dist/Spinner.vue_vue_type_script_setup_true_lang-RVwVkb2d.js +0 -26
- package/dist/Steps.vue_vue_type_script_setup_true_lang-BvboiRtG.cjs +0 -1
- package/dist/Steps.vue_vue_type_script_setup_true_lang-COm_8BK4.js +0 -228
- package/dist/Switch.vue_vue_type_script_setup_true_lang-ZRKl1Zni.cjs +0 -1
- package/dist/Switch.vue_vue_type_script_setup_true_lang-a1UgZsjV.js +0 -102
- package/dist/Table.vue_vue_type_script_setup_true_lang-7A--ssWe.js +0 -172
- package/dist/Table.vue_vue_type_script_setup_true_lang-BuP_bKG9.cjs +0 -1
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-BUSu2vID.cjs +0 -1
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-CkvqMjSo.js +0 -100
- package/dist/Text.vue_vue_type_script_setup_true_lang-4oqbt-Uo.js +0 -111
- package/dist/Text.vue_vue_type_script_setup_true_lang-Cen2Rzgv.cjs +0 -1
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-Bt_S9rml.js +0 -62
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-CsdJqI4Y.cjs +0 -1
- package/dist/TimePicker.vue_vue_type_script_setup_true_lang-5I_hONIZ.js +0 -256
- package/dist/TimePicker.vue_vue_type_script_setup_true_lang-C9UhNJIv.cjs +0 -1
- package/dist/TimeRangePicker.vue_vue_type_script_setup_true_lang-23XAbOog.js +0 -392
- package/dist/TimeRangePicker.vue_vue_type_script_setup_true_lang-Cjsue_WN.cjs +0 -1
- package/dist/Toast.vue_vue_type_script_setup_true_lang-B3klIVmK.cjs +0 -1
- package/dist/Toast.vue_vue_type_script_setup_true_lang-DPFmb7FU.js +0 -165
- package/dist/Toggle.vue_vue_type_script_setup_true_lang-DMbVbYBd.cjs +0 -1
- package/dist/Toggle.vue_vue_type_script_setup_true_lang-lgv-RLr_.js +0 -56
- package/dist/ToggleGroup.vue_vue_type_script_setup_true_lang-IUOuR9p4.js +0 -90
- package/dist/ToggleGroup.vue_vue_type_script_setup_true_lang-NuidvvgX.cjs +0 -1
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-BCAtYvdC.cjs +0 -1
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-D0opA9eL.js +0 -88
- package/dist/Upload.vue_vue_type_script_setup_true_lang-BJtdtelu.js +0 -496
- package/dist/Upload.vue_vue_type_script_setup_true_lang-CCOuXxZN.cjs +0 -1
- package/dist/WeekPicker.vue_vue_type_script_setup_true_lang-DhKqIXY4.cjs +0 -1
- package/dist/WeekPicker.vue_vue_type_script_setup_true_lang-YNWQQCeH.js +0 -271
- package/dist/YearPicker.vue_vue_type_script_setup_true_lang-BwNZyS4Q.cjs +0 -1
- package/dist/YearPicker.vue_vue_type_script_setup_true_lang-C2M6HDSn.js +0 -195
- package/dist/accordion.cjs +0 -1
- package/dist/accordion.js +0 -13
- package/dist/agent-schema.cjs +0 -1
- package/dist/agent-schema.js +0 -10516
- package/dist/alert-dialog.cjs +0 -1
- package/dist/alert-dialog.js +0 -15
- package/dist/alert.cjs +0 -1
- package/dist/alert.js +0 -9
- package/dist/aspect-ratio.cjs +0 -1
- package/dist/aspect-ratio.js +0 -6
- package/dist/avatar.cjs +0 -1
- package/dist/avatar.js +0 -7
- package/dist/badge.cjs +0 -1
- package/dist/badge.js +0 -7
- package/dist/basic-data.cjs +0 -1
- package/dist/basic-data.js +0 -14
- package/dist/breadcrumb.cjs +0 -1
- package/dist/breadcrumb.js +0 -11
- package/dist/button-group.cjs +0 -1
- package/dist/button-group.js +0 -10
- package/dist/button.cjs +0 -1
- package/dist/button.js +0 -7
- package/dist/calendar.cjs +0 -1
- package/dist/calendar.js +0 -38
- package/dist/card.cjs +0 -1
- package/dist/card.js +0 -13
- package/dist/checkbox.cjs +0 -1
- package/dist/checkbox.js +0 -10
- package/dist/cn-B6yFEsav.js +0 -8
- package/dist/cn-IjLH3w2e.cjs +0 -1
- package/dist/collapsible.cjs +0 -1
- package/dist/collapsible.js +0 -11
- package/dist/combobox.cjs +0 -1
- package/dist/combobox.js +0 -13
- package/dist/command.cjs +0 -1
- package/dist/command.js +0 -17
- package/dist/components.cjs +0 -1
- package/dist/components.js +0 -831
- package/dist/config-provider.cjs +0 -1
- package/dist/config-provider.js +0 -8
- package/dist/context-menu.cjs +0 -1
- package/dist/context-menu.js +0 -12
- package/dist/date-BJhpbnm4.js +0 -238
- package/dist/date-aqfSS7Zy.cjs +0 -1
- package/dist/date-picker.cjs +0 -1
- package/dist/date-picker.js +0 -20
- package/dist/date-range-picker.cjs +0 -1
- package/dist/date-range-picker.js +0 -20
- package/dist/date-time-picker.cjs +0 -1
- package/dist/date-time-picker.js +0 -30
- package/dist/date-time-range-picker.cjs +0 -1
- package/dist/date-time-range-picker.js +0 -35
- package/dist/decimal-field.cjs +0 -1
- package/dist/decimal-field.js +0 -6
- package/dist/description-list.cjs +0 -1
- package/dist/description-list.js +0 -11
- package/dist/dialog.cjs +0 -1
- package/dist/dialog.js +0 -12
- package/dist/drawer.cjs +0 -1
- package/dist/drawer.js +0 -13
- package/dist/dropdown-menu.cjs +0 -1
- package/dist/dropdown-menu.js +0 -13
- package/dist/empty.cjs +0 -1
- package/dist/empty.js +0 -5
- package/dist/engines.cjs +0 -1
- package/dist/engines.js +0 -72
- package/dist/field.cjs +0 -1
- package/dist/field.js +0 -10
- package/dist/form-item.cjs +0 -1
- package/dist/form-item.js +0 -7
- package/dist/form-renderer.cjs +0 -1
- package/dist/form-renderer.js +0 -4
- package/dist/form.cjs +0 -1
- package/dist/form.js +0 -8
- package/dist/grid.cjs +0 -1
- package/dist/grid.js +0 -7
- package/dist/hover-card.cjs +0 -1
- package/dist/hover-card.js +0 -11
- package/dist/image-preview.cjs +0 -1
- package/dist/image-preview.js +0 -29
- package/dist/index.cjs +0 -1
- package/dist/index.js +0 -870
- package/dist/input-group.cjs +0 -1
- package/dist/input-group.js +0 -12
- package/dist/input-otp.cjs +0 -1
- package/dist/input-otp.js +0 -11
- package/dist/input.cjs +0 -1
- package/dist/input.js +0 -7
- package/dist/integer-field.cjs +0 -1
- package/dist/integer-field.js +0 -10
- package/dist/item.cjs +0 -1
- package/dist/item.js +0 -15
- package/dist/kbd.cjs +0 -1
- package/dist/kbd.js +0 -7
- package/dist/label.cjs +0 -1
- package/dist/label.js +0 -7
- package/dist/layout.cjs +0 -1
- package/dist/layout.js +0 -13
- package/dist/loading.cjs +0 -1
- package/dist/loading.js +0 -13
- package/dist/menubar.cjs +0 -1
- package/dist/menubar.js +0 -12
- package/dist/message.cjs +0 -1
- package/dist/message.js +0 -11
- package/dist/month-picker.cjs +0 -1
- package/dist/month-picker.js +0 -15
- package/dist/navigation-menu.cjs +0 -1
- package/dist/navigation-menu.js +0 -16
- package/dist/notification.cjs +0 -1
- package/dist/notification.js +0 -16
- package/dist/number-field.cjs +0 -1
- package/dist/number-field.js +0 -11
- package/dist/page-container.cjs +0 -1
- package/dist/page-container.js +0 -17
- package/dist/page-renderer.cjs +0 -1
- package/dist/page-renderer.js +0 -28
- package/dist/pagination.cjs +0 -1
- package/dist/pagination.js +0 -14
- package/dist/plugin.cjs +0 -1
- package/dist/plugin.js +0 -12
- package/dist/popover.cjs +0 -1
- package/dist/popover.js +0 -13
- package/dist/progress.cjs +0 -1
- package/dist/progress.js +0 -8
- package/dist/radio-group.cjs +0 -1
- package/dist/radio-group.js +0 -9
- package/dist/resizable.cjs +0 -1
- package/dist/resizable.js +0 -10
- package/dist/result.cjs +0 -1
- package/dist/result.js +0 -11
- package/dist/schemas.cjs +0 -1
- package/dist/schemas.js +0 -1
- package/dist/scroll-area.cjs +0 -1
- package/dist/scroll-area.js +0 -10
- package/dist/section.cjs +0 -1
- package/dist/section.js +0 -13
- package/dist/select.cjs +0 -1
- package/dist/select.js +0 -7
- package/dist/separator.cjs +0 -1
- package/dist/separator.js +0 -7
- package/dist/sheet.cjs +0 -1
- package/dist/sheet.js +0 -12
- package/dist/skeleton.cjs +0 -1
- package/dist/skeleton.js +0 -7
- package/dist/slider.cjs +0 -1
- package/dist/slider.js +0 -8
- package/dist/space.cjs +0 -1
- package/dist/space.js +0 -7
- package/dist/spinner.cjs +0 -1
- package/dist/spinner.js +0 -5
- package/dist/src/agent-schema/components.d.ts +0 -7935
- package/dist/src/agent-schema/index.d.ts +0 -2
- package/dist/src/agent-schema/types.d.ts +0 -169
- package/dist/src/agent-schema.d.ts +0 -1
- package/dist/src/components/accordion/Accordion.vue.d.ts +0 -33
- package/dist/src/components/accordion/index.d.ts +0 -6
- package/dist/src/components/accordion/props.d.ts +0 -40
- package/dist/src/components/accordion/variants.d.ts +0 -30
- package/dist/src/components/alert/Alert.vue.d.ts +0 -16
- package/dist/src/components/alert/index.d.ts +0 -6
- package/dist/src/components/alert/props.d.ts +0 -10
- package/dist/src/components/alert/variants.d.ts +0 -10
- package/dist/src/components/alert-dialog/AlertDialog.vue.d.ts +0 -33
- package/dist/src/components/alert-dialog/index.d.ts +0 -6
- package/dist/src/components/alert-dialog/props.d.ts +0 -23
- package/dist/src/components/alert-dialog/variants.d.ts +0 -19
- package/dist/src/components/aspect-ratio/AspectRatio.vue.d.ts +0 -16
- package/dist/src/components/aspect-ratio/index.d.ts +0 -4
- package/dist/src/components/aspect-ratio/props.d.ts +0 -8
- package/dist/src/components/aspect-ratio/variants.d.ts +0 -5
- package/dist/src/components/avatar/Avatar.vue.d.ts +0 -20
- package/dist/src/components/avatar/index.d.ts +0 -4
- package/dist/src/components/avatar/props.d.ts +0 -12
- package/dist/src/components/avatar/variants.d.ts +0 -10
- package/dist/src/components/badge/Badge.vue.d.ts +0 -16
- package/dist/src/components/badge/index.d.ts +0 -6
- package/dist/src/components/badge/props.d.ts +0 -7
- package/dist/src/components/badge/variants.d.ts +0 -6
- package/dist/src/components/basic-data/BasicData.vue.d.ts +0 -30
- package/dist/src/components/basic-data/index.d.ts +0 -3
- package/dist/src/components/basic-data/props.d.ts +0 -27
- package/dist/src/components/basic-data/variants.d.ts +0 -21
- package/dist/src/components/breadcrumb/Breadcrumb.vue.d.ts +0 -18
- package/dist/src/components/breadcrumb/index.d.ts +0 -4
- package/dist/src/components/breadcrumb/props.d.ts +0 -23
- package/dist/src/components/breadcrumb/variants.d.ts +0 -15
- package/dist/src/components/button/Button.vue.d.ts +0 -24
- package/dist/src/components/button/index.d.ts +0 -6
- package/dist/src/components/button/props.d.ts +0 -15
- package/dist/src/components/button/variants.d.ts +0 -10
- package/dist/src/components/button-group/ButtonGroup.vue.d.ts +0 -23
- package/dist/src/components/button-group/index.d.ts +0 -6
- package/dist/src/components/button-group/props.d.ts +0 -30
- package/dist/src/components/button-group/variants.d.ts +0 -9
- package/dist/src/components/calendar/Calendar.vue.d.ts +0 -18
- package/dist/src/components/calendar/index.d.ts +0 -4
- package/dist/src/components/calendar/props.d.ts +0 -25
- package/dist/src/components/calendar/variants.d.ts +0 -27
- package/dist/src/components/card/Card.vue.d.ts +0 -25
- package/dist/src/components/card/index.d.ts +0 -6
- package/dist/src/components/card/props.d.ts +0 -13
- package/dist/src/components/card/variants.d.ts +0 -13
- package/dist/src/components/checkbox/Checkbox.vue.d.ts +0 -15
- package/dist/src/components/checkbox/index.d.ts +0 -6
- package/dist/src/components/checkbox/props.d.ts +0 -17
- package/dist/src/components/checkbox/variants.d.ts +0 -7
- package/dist/src/components/collapsible/Collapsible.vue.d.ts +0 -29
- package/dist/src/components/collapsible/index.d.ts +0 -6
- package/dist/src/components/collapsible/props.d.ts +0 -25
- package/dist/src/components/collapsible/variants.d.ts +0 -25
- package/dist/src/components/combobox/Combobox.vue.d.ts +0 -15
- package/dist/src/components/combobox/index.d.ts +0 -4
- package/dist/src/components/combobox/props.d.ts +0 -33
- package/dist/src/components/combobox/variants.d.ts +0 -26
- package/dist/src/components/command/Command.vue.d.ts +0 -25
- package/dist/src/components/command/index.d.ts +0 -4
- package/dist/src/components/command/props.d.ts +0 -54
- package/dist/src/components/command/variants.d.ts +0 -27
- package/dist/src/components/config-provider/ConfigProvider.vue.d.ts +0 -20
- package/dist/src/components/config-provider/context.d.ts +0 -12
- package/dist/src/components/config-provider/index.d.ts +0 -4
- package/dist/src/components/config-provider/props.d.ts +0 -16
- package/dist/src/components/config-provider/variants.d.ts +0 -3
- package/dist/src/components/context-menu/ContextMenu.vue.d.ts +0 -32
- package/dist/src/components/context-menu/index.d.ts +0 -4
- package/dist/src/components/context-menu/props.d.ts +0 -38
- package/dist/src/components/context-menu/variants.d.ts +0 -21
- package/dist/src/components/date-picker/DatePicker.vue.d.ts +0 -15
- package/dist/src/components/date-picker/index.d.ts +0 -3
- package/dist/src/components/date-picker/props.d.ts +0 -24
- package/dist/src/components/date-picker/variants.d.ts +0 -35
- package/dist/src/components/date-range-picker/DateRangePicker.vue.d.ts +0 -15
- package/dist/src/components/date-range-picker/index.d.ts +0 -3
- package/dist/src/components/date-range-picker/props.d.ts +0 -27
- package/dist/src/components/date-range-picker/variants.d.ts +0 -37
- package/dist/src/components/date-time-picker/DateTimePicker.vue.d.ts +0 -19
- package/dist/src/components/date-time-picker/index.d.ts +0 -3
- package/dist/src/components/date-time-picker/props.d.ts +0 -28
- package/dist/src/components/date-time-picker/variants.d.ts +0 -57
- package/dist/src/components/date-time-range-picker/DateTimeRangePicker.vue.d.ts +0 -20
- package/dist/src/components/date-time-range-picker/index.d.ts +0 -3
- package/dist/src/components/date-time-range-picker/props.d.ts +0 -32
- package/dist/src/components/date-time-range-picker/variants.d.ts +0 -69
- package/dist/src/components/decimal-field/DecimalField.vue.d.ts +0 -16
- package/dist/src/components/decimal-field/index.d.ts +0 -3
- package/dist/src/components/decimal-field/props.d.ts +0 -23
- package/dist/src/components/decimal-field/variants.d.ts +0 -2
- package/dist/src/components/description-list/DescriptionList.vue.d.ts +0 -5
- package/dist/src/components/description-list/index.d.ts +0 -3
- package/dist/src/components/description-list/props.d.ts +0 -15
- package/dist/src/components/description-list/variants.d.ts +0 -19
- package/dist/src/components/dialog/Dialog.vue.d.ts +0 -27
- package/dist/src/components/dialog/index.d.ts +0 -3
- package/dist/src/components/dialog/props.d.ts +0 -39
- package/dist/src/components/dialog/variants.d.ts +0 -7
- package/dist/src/components/drawer/Drawer.vue.d.ts +0 -29
- package/dist/src/components/drawer/index.d.ts +0 -3
- package/dist/src/components/drawer/props.d.ts +0 -43
- package/dist/src/components/drawer/variants.d.ts +0 -13
- package/dist/src/components/dropdown-menu/DropdownMenu.vue.d.ts +0 -27
- package/dist/src/components/dropdown-menu/index.d.ts +0 -5
- package/dist/src/components/dropdown-menu/props.d.ts +0 -44
- package/dist/src/components/dropdown-menu/variants.d.ts +0 -14
- package/dist/src/components/empty/Empty.vue.d.ts +0 -19
- package/dist/src/components/empty/index.d.ts +0 -3
- package/dist/src/components/empty/props.d.ts +0 -11
- package/dist/src/components/empty/variants.d.ts +0 -3
- package/dist/src/components/field/Field.vue.d.ts +0 -21
- package/dist/src/components/field/index.d.ts +0 -3
- package/dist/src/components/field/props.d.ts +0 -30
- package/dist/src/components/field/variants.d.ts +0 -10
- package/dist/src/components/form/Form.vue.d.ts +0 -55
- package/dist/src/components/form/context.d.ts +0 -11
- package/dist/src/components/form/index.d.ts +0 -3
- package/dist/src/components/form/props.d.ts +0 -85
- package/dist/src/components/form/variants.d.ts +0 -15
- package/dist/src/components/form-item/FormItem.vue.d.ts +0 -24
- package/dist/src/components/form-item/index.d.ts +0 -3
- package/dist/src/components/form-item/props.d.ts +0 -67
- package/dist/src/components/form-item/variants.d.ts +0 -14
- package/dist/src/components/form-renderer/FormRenderer.vue.d.ts +0 -15
- package/dist/src/components/form-renderer/index.d.ts +0 -2
- package/dist/src/components/form-renderer/props.d.ts +0 -11
- package/dist/src/components/form-renderer/variants.d.ts +0 -17
- package/dist/src/components/grid/Grid.vue.d.ts +0 -19
- package/dist/src/components/grid/index.d.ts +0 -5
- package/dist/src/components/grid/props.d.ts +0 -14
- package/dist/src/components/grid/variants.d.ts +0 -5
- package/dist/src/components/hover-card/HoverCard.vue.d.ts +0 -24
- package/dist/src/components/hover-card/index.d.ts +0 -3
- package/dist/src/components/hover-card/props.d.ts +0 -53
- package/dist/src/components/hover-card/variants.d.ts +0 -7
- package/dist/src/components/image-preview/ImagePreview.vue.d.ts +0 -19
- package/dist/src/components/image-preview/index.d.ts +0 -3
- package/dist/src/components/image-preview/props.d.ts +0 -29
- package/dist/src/components/image-preview/variants.d.ts +0 -57
- package/dist/src/components/index.d.ts +0 -164
- package/dist/src/components/input/Input.vue.d.ts +0 -14
- package/dist/src/components/input/index.d.ts +0 -6
- package/dist/src/components/input/props.d.ts +0 -19
- package/dist/src/components/input/variants.d.ts +0 -5
- package/dist/src/components/input-group/InputGroup.vue.d.ts +0 -32
- package/dist/src/components/input-group/index.d.ts +0 -5
- package/dist/src/components/input-group/props.d.ts +0 -75
- package/dist/src/components/input-group/variants.d.ts +0 -13
- package/dist/src/components/input-otp/InputOtp.vue.d.ts +0 -21
- package/dist/src/components/input-otp/index.d.ts +0 -5
- package/dist/src/components/input-otp/props.d.ts +0 -34
- package/dist/src/components/input-otp/variants.d.ts +0 -5
- package/dist/src/components/integer-field/IntegerField.vue.d.ts +0 -14
- package/dist/src/components/integer-field/index.d.ts +0 -3
- package/dist/src/components/integer-field/props.d.ts +0 -21
- package/dist/src/components/integer-field/variants.d.ts +0 -6
- package/dist/src/components/item/Item.vue.d.ts +0 -22
- package/dist/src/components/item/index.d.ts +0 -3
- package/dist/src/components/item/props.d.ts +0 -100
- package/dist/src/components/item/variants.d.ts +0 -22
- package/dist/src/components/kbd/Kbd.vue.d.ts +0 -16
- package/dist/src/components/kbd/index.d.ts +0 -3
- package/dist/src/components/kbd/props.d.ts +0 -9
- package/dist/src/components/kbd/variants.d.ts +0 -7
- package/dist/src/components/label/Label.vue.d.ts +0 -15
- package/dist/src/components/label/index.d.ts +0 -6
- package/dist/src/components/label/props.d.ts +0 -6
- package/dist/src/components/label/variants.d.ts +0 -3
- package/dist/src/components/layout/Layout.vue.d.ts +0 -22
- package/dist/src/components/layout/index.d.ts +0 -5
- package/dist/src/components/layout/props.d.ts +0 -27
- package/dist/src/components/layout/variants.d.ts +0 -27
- package/dist/src/components/loading/Loading.vue.d.ts +0 -17
- package/dist/src/components/loading/index.d.ts +0 -3
- package/dist/src/components/loading/props.d.ts +0 -11
- package/dist/src/components/loading/variants.d.ts +0 -31
- package/dist/src/components/menubar/Menubar.vue.d.ts +0 -25
- package/dist/src/components/menubar/index.d.ts +0 -5
- package/dist/src/components/menubar/props.d.ts +0 -50
- package/dist/src/components/menubar/variants.d.ts +0 -13
- package/dist/src/components/message/Message.vue.d.ts +0 -25
- package/dist/src/components/message/index.d.ts +0 -3
- package/dist/src/components/message/props.d.ts +0 -16
- package/dist/src/components/message/variants.d.ts +0 -17
- package/dist/src/components/month-picker/MonthPicker.vue.d.ts +0 -14
- package/dist/src/components/month-picker/index.d.ts +0 -3
- package/dist/src/components/month-picker/props.d.ts +0 -19
- package/dist/src/components/month-picker/variants.d.ts +0 -27
- package/dist/src/components/navigation-menu/NavigationMenu.vue.d.ts +0 -27
- package/dist/src/components/navigation-menu/index.d.ts +0 -5
- package/dist/src/components/navigation-menu/props.d.ts +0 -54
- package/dist/src/components/navigation-menu/variants.d.ts +0 -10
- package/dist/src/components/notification/Notification.vue.d.ts +0 -27
- package/dist/src/components/notification/index.d.ts +0 -3
- package/dist/src/components/notification/props.d.ts +0 -17
- package/dist/src/components/notification/variants.d.ts +0 -29
- package/dist/src/components/number-field/NumberField.vue.d.ts +0 -10
- package/dist/src/components/number-field/index.d.ts +0 -3
- package/dist/src/components/number-field/props.d.ts +0 -21
- package/dist/src/components/number-field/utils.d.ts +0 -9
- package/dist/src/components/number-field/variants.d.ts +0 -7
- package/dist/src/components/page-container/PageContainer.vue.d.ts +0 -17
- package/dist/src/components/page-container/index.d.ts +0 -5
- package/dist/src/components/page-container/props.d.ts +0 -28
- package/dist/src/components/page-container/variants.d.ts +0 -25
- package/dist/src/components/page-renderer/PageRenderer.vue.d.ts +0 -10
- package/dist/src/components/page-renderer/index.d.ts +0 -3
- package/dist/src/components/page-renderer/props.d.ts +0 -16
- package/dist/src/components/page-renderer/variants.d.ts +0 -30
- package/dist/src/components/pagination/Pagination.vue.d.ts +0 -30
- package/dist/src/components/pagination/index.d.ts +0 -5
- package/dist/src/components/pagination/props.d.ts +0 -28
- package/dist/src/components/pagination/variants.d.ts +0 -8
- package/dist/src/components/popover/Popover.vue.d.ts +0 -22
- package/dist/src/components/popover/index.d.ts +0 -5
- package/dist/src/components/popover/props.d.ts +0 -34
- package/dist/src/components/popover/variants.d.ts +0 -7
- package/dist/src/components/progress/Progress.vue.d.ts +0 -6
- package/dist/src/components/progress/index.d.ts +0 -6
- package/dist/src/components/progress/props.d.ts +0 -14
- package/dist/src/components/progress/variants.d.ts +0 -10
- package/dist/src/components/radio-group/RadioGroup.vue.d.ts +0 -22
- package/dist/src/components/radio-group/index.d.ts +0 -5
- package/dist/src/components/radio-group/props.d.ts +0 -29
- package/dist/src/components/radio-group/variants.d.ts +0 -3
- package/dist/src/components/resizable/ResizablePanelGroup.vue.d.ts +0 -21
- package/dist/src/components/resizable/index.d.ts +0 -5
- package/dist/src/components/resizable/props.d.ts +0 -37
- package/dist/src/components/resizable/variants.d.ts +0 -6
- package/dist/src/components/result/Result.vue.d.ts +0 -20
- package/dist/src/components/result/index.d.ts +0 -3
- package/dist/src/components/result/props.d.ts +0 -11
- package/dist/src/components/result/variants.d.ts +0 -26
- package/dist/src/components/scroll-area/ScrollArea.vue.d.ts +0 -19
- package/dist/src/components/scroll-area/index.d.ts +0 -5
- package/dist/src/components/scroll-area/props.d.ts +0 -12
- package/dist/src/components/scroll-area/variants.d.ts +0 -8
- package/dist/src/components/section/Section.vue.d.ts +0 -16
- package/dist/src/components/section/index.d.ts +0 -5
- package/dist/src/components/section/props.d.ts +0 -27
- package/dist/src/components/section/variants.d.ts +0 -27
- package/dist/src/components/select/Select.vue.d.ts +0 -22
- package/dist/src/components/select/index.d.ts +0 -6
- package/dist/src/components/select/props.d.ts +0 -21
- package/dist/src/components/select/variants.d.ts +0 -5
- package/dist/src/components/separator/Separator.vue.d.ts +0 -7
- package/dist/src/components/separator/index.d.ts +0 -6
- package/dist/src/components/separator/props.d.ts +0 -7
- package/dist/src/components/separator/variants.d.ts +0 -5
- package/dist/src/components/sheet/Sheet.vue.d.ts +0 -26
- package/dist/src/components/sheet/index.d.ts +0 -3
- package/dist/src/components/sheet/props.d.ts +0 -39
- package/dist/src/components/sheet/variants.d.ts +0 -12
- package/dist/src/components/skeleton/Skeleton.vue.d.ts +0 -15
- package/dist/src/components/skeleton/index.d.ts +0 -6
- package/dist/src/components/skeleton/props.d.ts +0 -5
- package/dist/src/components/skeleton/variants.d.ts +0 -3
- package/dist/src/components/slider/Slider.vue.d.ts +0 -20
- package/dist/src/components/slider/index.d.ts +0 -3
- package/dist/src/components/slider/props.d.ts +0 -21
- package/dist/src/components/slider/variants.d.ts +0 -15
- package/dist/src/components/space/Space.vue.d.ts +0 -22
- package/dist/src/components/space/index.d.ts +0 -5
- package/dist/src/components/space/props.d.ts +0 -15
- package/dist/src/components/space/variants.d.ts +0 -10
- package/dist/src/components/spinner/Spinner.vue.d.ts +0 -5
- package/dist/src/components/spinner/index.d.ts +0 -3
- package/dist/src/components/spinner/props.d.ts +0 -6
- package/dist/src/components/spinner/variants.d.ts +0 -3
- package/dist/src/components/steps/Steps.vue.d.ts +0 -15
- package/dist/src/components/steps/index.d.ts +0 -3
- package/dist/src/components/steps/props.d.ts +0 -24
- package/dist/src/components/steps/variants.d.ts +0 -40
- package/dist/src/components/switch/Switch.vue.d.ts +0 -18
- package/dist/src/components/switch/index.d.ts +0 -6
- package/dist/src/components/switch/props.d.ts +0 -14
- package/dist/src/components/switch/variants.d.ts +0 -9
- package/dist/src/components/table/Table.vue.d.ts +0 -16
- package/dist/src/components/table/index.d.ts +0 -5
- package/dist/src/components/table/props.d.ts +0 -42
- package/dist/src/components/table/variants.d.ts +0 -9
- package/dist/src/components/tabs/Tabs.vue.d.ts +0 -19
- package/dist/src/components/tabs/index.d.ts +0 -5
- package/dist/src/components/tabs/props.d.ts +0 -30
- package/dist/src/components/tabs/variants.d.ts +0 -4
- package/dist/src/components/text/Text.vue.d.ts +0 -21
- package/dist/src/components/text/index.d.ts +0 -6
- package/dist/src/components/text/props.d.ts +0 -15
- package/dist/src/components/text/variants.d.ts +0 -14
- package/dist/src/components/textarea/Textarea.vue.d.ts +0 -13
- package/dist/src/components/textarea/index.d.ts +0 -6
- package/dist/src/components/textarea/props.d.ts +0 -18
- package/dist/src/components/textarea/variants.d.ts +0 -5
- package/dist/src/components/time-picker/TimePicker.vue.d.ts +0 -19
- package/dist/src/components/time-picker/index.d.ts +0 -3
- package/dist/src/components/time-picker/props.d.ts +0 -23
- package/dist/src/components/time-picker/variants.d.ts +0 -33
- package/dist/src/components/time-range-picker/TimeRangePicker.vue.d.ts +0 -19
- package/dist/src/components/time-range-picker/index.d.ts +0 -3
- package/dist/src/components/time-range-picker/props.d.ts +0 -26
- package/dist/src/components/time-range-picker/variants.d.ts +0 -45
- package/dist/src/components/toast/Toast.vue.d.ts +0 -33
- package/dist/src/components/toast/index.d.ts +0 -3
- package/dist/src/components/toast/props.d.ts +0 -54
- package/dist/src/components/toast/variants.d.ts +0 -17
- package/dist/src/components/toggle/Toggle.vue.d.ts +0 -26
- package/dist/src/components/toggle/index.d.ts +0 -3
- package/dist/src/components/toggle/props.d.ts +0 -17
- package/dist/src/components/toggle/variants.d.ts +0 -3
- package/dist/src/components/toggle-group/ToggleGroup.vue.d.ts +0 -27
- package/dist/src/components/toggle-group/index.d.ts +0 -5
- package/dist/src/components/toggle-group/props.d.ts +0 -37
- package/dist/src/components/toggle-group/variants.d.ts +0 -6
- package/dist/src/components/tooltip/Tooltip.vue.d.ts +0 -23
- package/dist/src/components/tooltip/index.d.ts +0 -5
- package/dist/src/components/tooltip/props.d.ts +0 -26
- package/dist/src/components/tooltip/variants.d.ts +0 -1
- package/dist/src/components/upload/Upload.vue.d.ts +0 -46
- package/dist/src/components/upload/index.d.ts +0 -3
- package/dist/src/components/upload/props.d.ts +0 -53
- package/dist/src/components/upload/variants.d.ts +0 -47
- package/dist/src/components/week-picker/WeekPicker.vue.d.ts +0 -15
- package/dist/src/components/week-picker/index.d.ts +0 -3
- package/dist/src/components/week-picker/props.d.ts +0 -24
- package/dist/src/components/week-picker/variants.d.ts +0 -41
- package/dist/src/components/year-picker/YearPicker.vue.d.ts +0 -13
- package/dist/src/components/year-picker/index.d.ts +0 -3
- package/dist/src/components/year-picker/props.d.ts +0 -19
- package/dist/src/components/year-picker/variants.d.ts +0 -27
- package/dist/src/components.d.ts +0 -1
- package/dist/src/composables/use-confirm.d.ts +0 -1
- package/dist/src/composables/use-loading.d.ts +0 -6
- package/dist/src/composables/use-locale.d.ts +0 -6
- package/dist/src/composables/use-theme.d.ts +0 -9
- package/dist/src/composables/use-toast.d.ts +0 -1
- package/dist/src/engines/defaults.d.ts +0 -6
- package/dist/src/engines/index.d.ts +0 -2
- package/dist/src/engines/visibility.d.ts +0 -3
- package/dist/src/engines.d.ts +0 -1
- package/dist/src/index.d.ts +0 -15
- package/dist/src/locales/en-US.d.ts +0 -13
- package/dist/src/locales/zh-CN.d.ts +0 -13
- package/dist/src/plugin/context.d.ts +0 -32
- package/dist/src/plugin/index.d.ts +0 -3
- package/dist/src/plugin.d.ts +0 -7
- package/dist/src/schemas/action.d.ts +0 -18
- package/dist/src/schemas/field.d.ts +0 -60
- package/dist/src/schemas/index.d.ts +0 -3
- package/dist/src/schemas/page.d.ts +0 -56
- package/dist/src/schemas.d.ts +0 -1
- package/dist/src/services/confirm/ConfirmDialog.vue.d.ts +0 -13
- package/dist/src/services/confirm/index.d.ts +0 -2
- package/dist/src/services/confirm/service.d.ts +0 -4
- package/dist/src/services/confirm/types.d.ts +0 -13
- package/dist/src/services/loading/LoadingOverlay.vue.d.ts +0 -9
- package/dist/src/services/loading/index.d.ts +0 -2
- package/dist/src/services/loading/service.d.ts +0 -10
- package/dist/src/services/loading/types.d.ts +0 -7
- package/dist/src/services/toast/ToastProviderHost.vue.d.ts +0 -2
- package/dist/src/services/toast/index.d.ts +0 -2
- package/dist/src/services/toast/service.d.ts +0 -6
- package/dist/src/services/toast/store.d.ts +0 -8
- package/dist/src/services/toast/types.d.ts +0 -22
- package/dist/src/utils/cn.d.ts +0 -2
- package/dist/src/utils/date.d.ts +0 -40
- package/dist/steps.cjs +0 -1
- package/dist/steps.js +0 -13
- package/dist/style.css +0 -1
- package/dist/switch.cjs +0 -1
- package/dist/switch.js +0 -8
- package/dist/table.cjs +0 -1
- package/dist/table.js +0 -15
- package/dist/tabs.cjs +0 -1
- package/dist/tabs.js +0 -10
- package/dist/text.cjs +0 -1
- package/dist/text.js +0 -7
- package/dist/textarea.cjs +0 -1
- package/dist/textarea.js +0 -7
- package/dist/time-picker.cjs +0 -1
- package/dist/time-picker.js +0 -18
- package/dist/time-range-picker.cjs +0 -1
- package/dist/time-range-picker.js +0 -24
- package/dist/toast.cjs +0 -1
- package/dist/toast.js +0 -12
- package/dist/toggle-group.cjs +0 -1
- package/dist/toggle-group.js +0 -8
- package/dist/toggle.cjs +0 -1
- package/dist/toggle.js +0 -5
- package/dist/tooltip.cjs +0 -1
- package/dist/tooltip.js +0 -7
- package/dist/upload.cjs +0 -1
- package/dist/upload.js +0 -41
- package/dist/use-toast-CVNjgE9a.js +0 -657
- package/dist/use-toast-Cj_Ukd84.cjs +0 -1
- package/dist/utils-C0vnPoY0.js +0 -60
- package/dist/utils-UI2zegLo.cjs +0 -1
- package/dist/variants-Brr3yHhf.cjs +0 -1
- package/dist/variants-BwUifyts.cjs +0 -1
- package/dist/variants-CX5PAVtU.cjs +0 -1
- package/dist/variants-Dw8sMIE2.js +0 -5
- package/dist/variants-L_ACzsUn.js +0 -19
- package/dist/variants-O5HI2qRP.js +0 -32
- package/dist/vite.config.d.ts +0 -2
- package/dist/week-picker.cjs +0 -1
- package/dist/week-picker.js +0 -22
- package/dist/year-picker.cjs +0 -1
- package/dist/year-picker.js +0 -15
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Input 输入框
|
|
2
|
+
|
|
3
|
+
用于表单文本录入,支持尺寸、状态、前后缀、清空、字数统计与无障碍属性。
|
|
4
|
+
|
|
5
|
+
## 基础用法
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<TfInput v-model="taskName" placeholder="请输入任务名称" />
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 高级用法
|
|
12
|
+
|
|
13
|
+
```vue
|
|
14
|
+
<TfInput v-model="keyword" type="search" clearable placeholder="搜索任务" />
|
|
15
|
+
|
|
16
|
+
<TfInput v-model="mixCode" status="success">
|
|
17
|
+
<template #prefix>C30</template>
|
|
18
|
+
</TfInput>
|
|
19
|
+
|
|
20
|
+
<TfInput v-model="remark" :maxlength="50" show-word-limit />
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## API
|
|
24
|
+
|
|
25
|
+
### Props
|
|
26
|
+
|
|
27
|
+
| 名称 | 说明 | 类型 | 默认值 |
|
|
28
|
+
| --- | --- | --- | --- |
|
|
29
|
+
| modelValue | 绑定值 | `string \| number` | `''` |
|
|
30
|
+
| type | 原生输入类型 | `text/password/email/number/search/tel/url` | `text` |
|
|
31
|
+
| size | 尺寸 | `small/medium/large` | `medium` |
|
|
32
|
+
| status | 校验状态 | `default/success/warning/error` | `default` |
|
|
33
|
+
| placeholder | 占位提示 | `string` | `''` |
|
|
34
|
+
| disabled | 禁用 | `boolean` | `false` |
|
|
35
|
+
| readonly | 只读 | `boolean` | `false` |
|
|
36
|
+
| clearable | 可清空 | `boolean` | `false` |
|
|
37
|
+
| maxlength | 最大长度 | `number` | - |
|
|
38
|
+
| showWordLimit | 展示字数统计 | `boolean` | `false` |
|
|
39
|
+
| name | 原生 name | `string` | - |
|
|
40
|
+
| autocomplete | 自动完成 | `string` | `off` |
|
|
41
|
+
| ariaLabel | 无障碍标签 | `string` | - |
|
|
42
|
+
|
|
43
|
+
### Events
|
|
44
|
+
|
|
45
|
+
| 名称 | 说明 | 参数 |
|
|
46
|
+
| --- | --- | --- |
|
|
47
|
+
| update:modelValue | v-model 更新 | `value: string` |
|
|
48
|
+
| input | 输入时触发 | `value, event` |
|
|
49
|
+
| change | 变更时触发 | `value, event` |
|
|
50
|
+
| focus | 聚焦 | `FocusEvent` |
|
|
51
|
+
| blur | 失焦 | `FocusEvent` |
|
|
52
|
+
| clear | 清空 | - |
|
|
53
|
+
|
|
54
|
+
### Slots
|
|
55
|
+
|
|
56
|
+
| 名称 | 说明 |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| prefix | 前置内容 |
|
|
59
|
+
| suffix | 后置内容 |
|
|
60
|
+
|
|
61
|
+
## 设计变量
|
|
62
|
+
|
|
63
|
+
复用全局 `--tf-color-*`、`--tf-spacing-*`、`--tf-border-radius-*`、`--tf-shadow-*`、`--tf-transition-*` 设计令牌。
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TfInput AI 增强能力测试
|
|
3
|
+
*
|
|
4
|
+
* Input 组件已内置完整 AI 增强 (ai prop + AI bar)
|
|
5
|
+
* 本测试验证 AI 行为独立可复用
|
|
6
|
+
*/
|
|
7
|
+
import { mount } from '@vue/test-utils'
|
|
8
|
+
import { describe, it, expect, vi, beforeEach } from 'vitest'
|
|
9
|
+
import { nextTick } from 'vue'
|
|
10
|
+
|
|
11
|
+
import TfInput from '../src/input.vue'
|
|
12
|
+
import { useAiStateMachine } from '../../../../../src/composables/use-ai-state-machine'
|
|
13
|
+
|
|
14
|
+
describe('TfInput AI 增强能力', () => {
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
vi.useFakeTimers()
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
describe('1. useAiStateMachine composable', () => {
|
|
20
|
+
it('should export useAiStateMachine', () => {
|
|
21
|
+
expect(typeof useAiStateMachine).toBe('function')
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
it('create state machine with 5 states', () => {
|
|
25
|
+
const machine = useAiStateMachine({ runningDuration: 1000 })
|
|
26
|
+
expect(machine.state.value).toBe('idle')
|
|
27
|
+
expect(typeof machine.trigger).toBe('function')
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
describe('2. ai prop 渲染条件', () => {
|
|
32
|
+
it('不传 ai prop 时不渲染 AI bar', () => {
|
|
33
|
+
const wrapper = mount(TfInput, {
|
|
34
|
+
props: { modelValue: '' }
|
|
35
|
+
})
|
|
36
|
+
expect(wrapper.find('.tf-input__ai-bar').exists()).toBe(false)
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
it('传 ai prop 时渲染 AI bar', () => {
|
|
40
|
+
const wrapper = mount(TfInput, {
|
|
41
|
+
props: {
|
|
42
|
+
modelValue: 'test',
|
|
43
|
+
ai: { preset: 'complete', onTrigger: () => ({ text: '补全结果' }) }
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
expect(wrapper.find('.tf-input__ai-bar').exists()).toBe(true)
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
it('idle 状态显示触发按钮', () => {
|
|
50
|
+
const wrapper = mount(TfInput, {
|
|
51
|
+
props: {
|
|
52
|
+
modelValue: 'test',
|
|
53
|
+
ai: { triggerLabel: 'AI 补全', onTrigger: () => ({}) }
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
const btn = wrapper.find('.tf-input__ai-bar button')
|
|
57
|
+
expect(btn.text()).toContain('AI 补全')
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
describe('3. 5 状态转换', () => {
|
|
62
|
+
it('should transition idle→running→confirming→done', async () => {
|
|
63
|
+
const onTrigger = vi.fn(() => ({ text: 'AI 补全文本' }))
|
|
64
|
+
const wrapper = mount(TfInput, {
|
|
65
|
+
props: {
|
|
66
|
+
modelValue: 'hello',
|
|
67
|
+
ai: { preset: 'complete', onTrigger, runningDuration: 100 }
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
const triggerBtn = wrapper.findAll('.tf-input__ai-bar button').find(b => b.text().includes('AI'))
|
|
72
|
+
const p = triggerBtn!.trigger('click')
|
|
73
|
+
await nextTick()
|
|
74
|
+
expect(wrapper.html()).toContain('AI 处理中')
|
|
75
|
+
|
|
76
|
+
vi.advanceTimersByTime(100)
|
|
77
|
+
await nextTick(); await nextTick()
|
|
78
|
+
await p; await nextTick()
|
|
79
|
+
|
|
80
|
+
const confirmBtn = wrapper.findAll('.tf-input__ai-bar button').find(b => b.text().includes('应用'))
|
|
81
|
+
expect(confirmBtn).toBeTruthy()
|
|
82
|
+
await confirmBtn!.trigger('click')
|
|
83
|
+
await nextTick()
|
|
84
|
+
|
|
85
|
+
const updates = wrapper.emitted('update:modelValue') || []
|
|
86
|
+
expect(updates.length).toBeGreaterThan(0)
|
|
87
|
+
expect(updates[updates.length - 1]?.[0]).toBe('AI 补全文本')
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
describe('4. ai-state-change 事件', () => {
|
|
92
|
+
it('should emit ai-state-change', async () => {
|
|
93
|
+
const wrapper = mount(TfInput, {
|
|
94
|
+
props: {
|
|
95
|
+
modelValue: 'test',
|
|
96
|
+
ai: { onTrigger: () => ({}), runningDuration: 50 }
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
const triggerBtn = wrapper.findAll('.tf-input__ai-bar button').find(b => b.text().includes('AI'))
|
|
101
|
+
const p = triggerBtn!.trigger('click')
|
|
102
|
+
await nextTick()
|
|
103
|
+
vi.advanceTimersByTime(50)
|
|
104
|
+
await nextTick(); await nextTick()
|
|
105
|
+
await p; await nextTick()
|
|
106
|
+
|
|
107
|
+
const events = wrapper.emitted('ai-state-change')
|
|
108
|
+
expect(events).toBeTruthy()
|
|
109
|
+
const states = events!.map(e => (e[0] as any))
|
|
110
|
+
expect(states).toContain('confirming')
|
|
111
|
+
})
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
describe('5. 错误兜底', () => {
|
|
115
|
+
it('onTrigger 失败时显示 error + 重试', async () => {
|
|
116
|
+
const wrapper = mount(TfInput, {
|
|
117
|
+
props: {
|
|
118
|
+
modelValue: '',
|
|
119
|
+
ai: { errorRate: 1, runningDuration: 50, onTrigger: () => ({}) }
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
|
|
123
|
+
const triggerBtn = wrapper.findAll('.tf-input__ai-bar button').find(b => b.text().includes('AI'))
|
|
124
|
+
await triggerBtn!.trigger('click')
|
|
125
|
+
await nextTick()
|
|
126
|
+
vi.advanceTimersByTime(50)
|
|
127
|
+
await nextTick(); await nextTick()
|
|
128
|
+
|
|
129
|
+
expect(wrapper.html()).toContain('失败')
|
|
130
|
+
expect(wrapper.html()).toContain('再次补全')
|
|
131
|
+
})
|
|
132
|
+
})
|
|
133
|
+
|
|
134
|
+
describe('6. 向后兼容', () => {
|
|
135
|
+
it('不传 ai 时原有行为不变', () => {
|
|
136
|
+
const wrapper = mount(TfInput, {
|
|
137
|
+
props: { modelValue: '' }
|
|
138
|
+
})
|
|
139
|
+
expect(wrapper.find('.tf-input').exists()).toBe(true)
|
|
140
|
+
expect(wrapper.find('.tf-input__ai-bar').exists()).toBe(false)
|
|
141
|
+
})
|
|
142
|
+
})
|
|
143
|
+
})
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { mount } from '@vue/test-utils'
|
|
2
|
+
import { describe, it, expect, vi } from 'vitest'
|
|
3
|
+
import TfInput from '../src/input.vue'
|
|
4
|
+
|
|
5
|
+
describe('TfInput', () => {
|
|
6
|
+
// ============== 基础渲染 ==============
|
|
7
|
+
it('should render correctly', () => {
|
|
8
|
+
const wrapper = mount(TfInput, {
|
|
9
|
+
props: { modelValue: '混凝土配比' }
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
expect(wrapper.find('.tf-input').classes()).toContain('tf-input')
|
|
13
|
+
expect(wrapper.find('input').element.value).toBe('混凝土配比')
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
// ============== Props 测试 ==============
|
|
17
|
+
describe('Props', () => {
|
|
18
|
+
it('should apply size class', () => {
|
|
19
|
+
const sizes = ['sm', 'md', 'lg'] as const
|
|
20
|
+
sizes.forEach(size => {
|
|
21
|
+
const wrapper = mount(TfInput, { props: { size } })
|
|
22
|
+
expect(wrapper.find('.tf-input').classes()).toContain(`tf-input--${size}`)
|
|
23
|
+
})
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
it('should apply status class', () => {
|
|
27
|
+
const statuses = ['default', 'success', 'warning', 'error'] as const
|
|
28
|
+
statuses.forEach(status => {
|
|
29
|
+
const wrapper = mount(TfInput, { props: { status } })
|
|
30
|
+
expect(wrapper.find('.tf-input').classes()).toContain(`tf-input--${status}`)
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
it('should pass native input attributes', () => {
|
|
35
|
+
const wrapper = mount(TfInput, {
|
|
36
|
+
props: {
|
|
37
|
+
type: 'search',
|
|
38
|
+
placeholder: '请输入任务名称',
|
|
39
|
+
disabled: true,
|
|
40
|
+
readonly: true,
|
|
41
|
+
maxlength: 20,
|
|
42
|
+
name: 'taskName'
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
const input = wrapper.find('input')
|
|
46
|
+
|
|
47
|
+
expect(input.attributes('type')).toBe('search')
|
|
48
|
+
expect(input.attributes('placeholder')).toBe('请输入任务名称')
|
|
49
|
+
expect(input.attributes('disabled')).toBeDefined()
|
|
50
|
+
expect(input.attributes('readonly')).toBeDefined()
|
|
51
|
+
expect(input.attributes('maxlength')).toBe('20')
|
|
52
|
+
expect(input.attributes('name')).toBe('taskName')
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
it('should show word limit when enabled', () => {
|
|
56
|
+
const wrapper = mount(TfInput, {
|
|
57
|
+
props: { modelValue: 'ABC', maxlength: 10, showWordLimit: true }
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
expect(wrapper.find('.tf-input__count').text()).toBe('3 / 10')
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
// ============== Events 测试 ==============
|
|
65
|
+
describe('Events', () => {
|
|
66
|
+
it('should emit update:modelValue and input when user types', async () => {
|
|
67
|
+
const wrapper = mount(TfInput, { props: { modelValue: '' } })
|
|
68
|
+
await wrapper.find('input').setValue('C30 配合比')
|
|
69
|
+
|
|
70
|
+
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual(['C30 配合比'])
|
|
71
|
+
expect(wrapper.emitted('input')?.[0]).toEqual(['C30 配合比'])
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
it('should emit change event', async () => {
|
|
75
|
+
const wrapper = mount(TfInput)
|
|
76
|
+
await wrapper.find('input').trigger('change')
|
|
77
|
+
|
|
78
|
+
expect(wrapper.emitted('change')).toHaveLength(1)
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it('should emit focus and blur events', async () => {
|
|
82
|
+
const wrapper = mount(TfInput)
|
|
83
|
+
await wrapper.find('input').trigger('focus')
|
|
84
|
+
await wrapper.find('input').trigger('blur')
|
|
85
|
+
|
|
86
|
+
expect(wrapper.emitted('focus')).toHaveLength(1)
|
|
87
|
+
expect(wrapper.emitted('blur')).toHaveLength(1)
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
it('should clear value and emit clear event', async () => {
|
|
91
|
+
const wrapper = mount(TfInput, {
|
|
92
|
+
props: { modelValue: '待清空', clearable: true }
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
await wrapper.find('.tf-input__clear').trigger('click')
|
|
96
|
+
|
|
97
|
+
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual([''])
|
|
98
|
+
expect(wrapper.emitted('clear')).toHaveLength(1)
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it('should not clear when disabled', async () => {
|
|
102
|
+
const wrapper = mount(TfInput, {
|
|
103
|
+
props: { modelValue: '禁用值', clearable: true, disabled: true }
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
expect(wrapper.find('.tf-input__clear').exists()).toBe(false)
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
// ============== Slots 测试 ==============
|
|
111
|
+
describe('Slots', () => {
|
|
112
|
+
it('should render prefix and suffix slots', () => {
|
|
113
|
+
const wrapper = mount(TfInput, {
|
|
114
|
+
slots: {
|
|
115
|
+
prefix: '<span class="prefix-icon">P</span>',
|
|
116
|
+
suffix: '<span class="suffix-icon">S</span>'
|
|
117
|
+
}
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
expect(wrapper.find('.tf-input__prefix').html()).toContain('prefix-icon')
|
|
121
|
+
expect(wrapper.find('.tf-input__suffix').html()).toContain('suffix-icon')
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
// ============== 无障碍测试 ==============
|
|
126
|
+
describe('Accessibility', () => {
|
|
127
|
+
it('should expose aria attributes', () => {
|
|
128
|
+
const wrapper = mount(TfInput, {
|
|
129
|
+
props: { disabled: true, status: 'error', ariaLabel: '任务名称' }
|
|
130
|
+
})
|
|
131
|
+
const input = wrapper.find('input')
|
|
132
|
+
|
|
133
|
+
expect(input.attributes('aria-label')).toBe('任务名称')
|
|
134
|
+
expect(input.attributes('aria-disabled')).toBe('true')
|
|
135
|
+
expect(input.attributes('aria-invalid')).toBe('true')
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
// ============== 默认值测试 ==============
|
|
140
|
+
describe('Default Props', () => {
|
|
141
|
+
it('should have correct default props', () => {
|
|
142
|
+
const wrapper = mount(TfInput)
|
|
143
|
+
const vm = wrapper.vm as any
|
|
144
|
+
|
|
145
|
+
expect(vm.$props.modelValue).toBe('')
|
|
146
|
+
expect(vm.$props.type).toBe('text')
|
|
147
|
+
expect(vm.$props.size).toBe('md')
|
|
148
|
+
expect(vm.$props.status).toBe('default')
|
|
149
|
+
expect(vm.$props.disabled).toBe(false)
|
|
150
|
+
expect(vm.$props.readonly).toBe(false)
|
|
151
|
+
expect(vm.$props.clearable).toBe(false)
|
|
152
|
+
})
|
|
153
|
+
})
|
|
154
|
+
|
|
155
|
+
describe('AI Elements', () => {
|
|
156
|
+
it('should render AI bar when ai prop is provided', async () => {
|
|
157
|
+
const wrapper = mount(TfInput, {
|
|
158
|
+
props: {
|
|
159
|
+
modelValue: '生成质检建议',
|
|
160
|
+
ai: {
|
|
161
|
+
preset: 'complete',
|
|
162
|
+
onTrigger: async (text: string) => ({ text: text + ' - AI' })
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
})
|
|
166
|
+
expect(wrapper.find('.tf-input').classes()).toContain('is-ai')
|
|
167
|
+
// AI 状态行渲染
|
|
168
|
+
expect(wrapper.find('.tf-input__ai-bar').exists()).toBe(true)
|
|
169
|
+
// AI 图标渲染
|
|
170
|
+
expect(wrapper.find('.tf-input__ai-icon').exists()).toBe(true)
|
|
171
|
+
// 触发按钮渲染 (idle 状态)
|
|
172
|
+
expect(wrapper.find('.tf-input__ai-bar button').exists()).toBe(true)
|
|
173
|
+
// data-ai-status
|
|
174
|
+
expect(wrapper.find('.tf-input-wrapper').attributes('data-ai-status')).toBe('idle')
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
it('should expose ai-state-change event when state transitions', async () => {
|
|
178
|
+
const onTrigger = vi.fn(async (text: string) => ({ text: text + '!' }))
|
|
179
|
+
const wrapper = mount(TfInput, {
|
|
180
|
+
props: {
|
|
181
|
+
modelValue: 'hello',
|
|
182
|
+
ai: { preset: 'complete', onTrigger, runningDuration: 10 }
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
// 点击触发按钮
|
|
186
|
+
await wrapper.find('.tf-input__ai-bar button').trigger('click')
|
|
187
|
+
// 等待状态机走完
|
|
188
|
+
await new Promise(r => setTimeout(r, 50))
|
|
189
|
+
// 至少收到一次 ai-state-change
|
|
190
|
+
const events = wrapper.emitted('ai-state-change')
|
|
191
|
+
expect(events).toBeTruthy()
|
|
192
|
+
expect(events!.length).toBeGreaterThan(0)
|
|
193
|
+
})
|
|
194
|
+
})
|
|
195
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input 组件入口
|
|
3
|
+
*
|
|
4
|
+
* ⚠️ 3 个不同"输入"概念的清晰区分:
|
|
5
|
+
*
|
|
6
|
+
* 1. Input - 单行文本 (<input>) ← 当前组件
|
|
7
|
+
* <TfInput v-model="name" placeholder="用户名" />
|
|
8
|
+
* - Enter = 提交
|
|
9
|
+
* - 适用: 用户名、邮箱、搜索、单值选择
|
|
10
|
+
*
|
|
11
|
+
* 2. TextArea - 多行文本 (<textarea>)
|
|
12
|
+
* <TfTextArea v-model="comment" :rows="4" placeholder="请输入评论" />
|
|
13
|
+
* - Enter = 换行
|
|
14
|
+
* - 适用: 评论、备注、反馈、长描述
|
|
15
|
+
*
|
|
16
|
+
* 3. RichEditor (规划中) - 文本域 / 富文本
|
|
17
|
+
* - 嵌入图片、字体、颜色等
|
|
18
|
+
* - 适用: 文章、邮件正文
|
|
19
|
+
*
|
|
20
|
+
* 错误做法: 用 <textarea> 配合 CSS 做"单行"输入 - 语义错误
|
|
21
|
+
* 正确做法: 单行场景使用 Input (原生 <input>)
|
|
22
|
+
*/
|
|
23
|
+
import type { App, Plugin } from 'vue'
|
|
24
|
+
import TfInput from './src/input.vue'
|
|
25
|
+
|
|
26
|
+
export { TfInput }
|
|
27
|
+
// 显式 re-export AiConfig (虽然 export * 已经覆盖, 这里写出来更清晰, 也便于 tree-shaking)
|
|
28
|
+
export type { AiConfig, InputProps, InputEmits, InputSlots, InputSize, InputStatus, InputType } from './src/input'
|
|
29
|
+
export * from './src/input'
|
|
30
|
+
|
|
31
|
+
export const Input: Plugin = {
|
|
32
|
+
install(app: App) {
|
|
33
|
+
app.component('TfInput', TfInput)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default Input
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input 组件类型定义
|
|
3
|
+
*
|
|
4
|
+
* ⚠️ 与 TextArea 的区别:
|
|
5
|
+
* - Input -> 单行文本 (<input>), Enter 提交
|
|
6
|
+
* - TextArea -> 多行文本 (<textarea>), Enter 换行
|
|
7
|
+
* - 富文本编辑器 (规划中) -> 文本域 / RichEditor, 带 HTML 格式
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import type { AiConfigBase } from '../../../shared/types'
|
|
11
|
+
|
|
12
|
+
export type InputSize = 'sm' | 'md' | 'lg'
|
|
13
|
+
export type InputStatus = 'default' | 'success' | 'warning' | 'error'
|
|
14
|
+
export type InputType = 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* AI 增强配置 (传了 ai prop 则组件内部自动集成状态机/徽章/按钮)
|
|
18
|
+
*
|
|
19
|
+
* 设计目标: 业务代码只需 <TfInput :ai="{ onTrigger: ... }" /> 即可
|
|
20
|
+
* 无需手写 useAiStateMachine / 状态徽章 / 触发按钮 / 确认按钮
|
|
21
|
+
*
|
|
22
|
+
* 3 个 preset 语义:
|
|
23
|
+
* - 'complete' 智能补全: confirm 后把推荐内容填到 input
|
|
24
|
+
* - 'search' 模糊搜索: confirm 后把第一个结果填到 input
|
|
25
|
+
* - 'validate' 实时校验: 不需要 confirm, 直接显示结果
|
|
26
|
+
*
|
|
27
|
+
* 基于泛型 AiConfigBase<string, any>, onTrigger 接收 string, 返回 any
|
|
28
|
+
*/
|
|
29
|
+
export type AiConfig = AiConfigBase<string, any>
|
|
30
|
+
|
|
31
|
+
export interface InputProps {
|
|
32
|
+
/** 输入框绑定值 @default '' */
|
|
33
|
+
modelValue?: string | number
|
|
34
|
+
/** 原生 input type @default 'text' */
|
|
35
|
+
type?: InputType
|
|
36
|
+
/** 输入框尺寸 @default 'md' */
|
|
37
|
+
size?: InputSize
|
|
38
|
+
/** 校验状态 @default 'default' */
|
|
39
|
+
status?: InputStatus
|
|
40
|
+
/** 占位提示 */
|
|
41
|
+
placeholder?: string
|
|
42
|
+
/** 是否禁用 @default false */
|
|
43
|
+
disabled?: boolean
|
|
44
|
+
/** 是否只读 @default false */
|
|
45
|
+
readonly?: boolean
|
|
46
|
+
/** 是否可清空 @default false */
|
|
47
|
+
clearable?: boolean
|
|
48
|
+
/** 最大输入长度 */
|
|
49
|
+
maxlength?: number
|
|
50
|
+
/** 是否展示字数统计 @default false */
|
|
51
|
+
showWordLimit?: boolean
|
|
52
|
+
/** 原生 name 属性 */
|
|
53
|
+
name?: string
|
|
54
|
+
/** 自动完成 */
|
|
55
|
+
autocomplete?: string
|
|
56
|
+
/** 自定义 aria-label */
|
|
57
|
+
ariaLabel?: string
|
|
58
|
+
/**
|
|
59
|
+
* AI 增强配置.
|
|
60
|
+
* 传了则组件内部自动集成 useAiStateMachine 状态机,
|
|
61
|
+
* 在 input 下方渲染: 状态徽章 + 触发按钮 + 确认按钮 + 校验结果,
|
|
62
|
+
* 业务方无需再手写这些.
|
|
63
|
+
* @example
|
|
64
|
+
* <TfInput v-model="材料" :ai="{
|
|
65
|
+
* preset: 'complete',
|
|
66
|
+
* onTrigger: async (text) => ({ text: await aiApi.suggest(text) })
|
|
67
|
+
* }" />
|
|
68
|
+
*/
|
|
69
|
+
ai?: AiConfig
|
|
70
|
+
/** 自定义类名 */
|
|
71
|
+
class?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface InputEmits {
|
|
75
|
+
/** v-model 更新 */
|
|
76
|
+
(e: 'update:modelValue', value: string): void
|
|
77
|
+
/** 输入事件 */
|
|
78
|
+
(e: 'input', value: string): void
|
|
79
|
+
/** 变更事件 */
|
|
80
|
+
(e: 'change', value: string): void
|
|
81
|
+
/** 聚焦事件 */
|
|
82
|
+
(e: 'focus', event: FocusEvent): void
|
|
83
|
+
/** 失焦事件 */
|
|
84
|
+
(e: 'blur', event: FocusEvent): void
|
|
85
|
+
/** 清空事件 */
|
|
86
|
+
(e: 'clear'): void
|
|
87
|
+
/**
|
|
88
|
+
* AI 状态变化时触发 (idle/running/confirming/done/error)
|
|
89
|
+
* 业务方可用于埋点/联动
|
|
90
|
+
*/
|
|
91
|
+
(e: 'ai-state-change', state: string, result?: any, error?: string): void
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface InputSlots {
|
|
95
|
+
/** 前置内容 */
|
|
96
|
+
prefix?: () => any
|
|
97
|
+
/** 后置内容 */
|
|
98
|
+
suffix?: () => any
|
|
99
|
+
/**
|
|
100
|
+
* AI 状态徽章前的内容 (与徽章同一行, 左侧)
|
|
101
|
+
* 仅在传了 ai prop 时渲染
|
|
102
|
+
*/
|
|
103
|
+
aiPrefix?: () => any
|
|
104
|
+
}
|