@opentiny/tiny-robot 0.4.0 → 0.4.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +192 -1
- package/README.zh-CN.md +192 -0
- package/dist/index.d.ts +47 -62
- package/dist/index5.js +62 -62
- package/dist/index6.js +61 -61
- package/dist/sender/index.js +782 -783
- package/dist/style.css +1 -1
- package/package.json +36 -5
package/README.md
CHANGED
|
@@ -1 +1,192 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TinyRobot
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://opentiny.design" target="_blank" rel="noopener noreferrer">
|
|
5
|
+
<img alt="OpenTiny Logo" src="https://raw.githubusercontent.com/opentiny/tiny-robot/HEAD/logo.svg" height="100" style="max-width:100%;">
|
|
6
|
+
</a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/@opentiny/tiny-robot)
|
|
10
|
+
[](https://opensource.org/licenses/MIT)
|
|
11
|
+
|
|
12
|
+
**TinyRobot** is an AI component library built for Vue 3, following the OpenTiny Design system. It provides rich AI interaction components to help developers quickly build enterprise-level AI applications.
|
|
13
|
+
|
|
14
|
+
## ✨ Features
|
|
15
|
+
|
|
16
|
+
- 🤖 **Rich AI Components**: Comprehensive set of AI interaction components including chat bubbles, message input, conversation management, and more
|
|
17
|
+
- 🎨 **OpenTiny Design**: Follows OpenTiny Design system for consistent UI/UX
|
|
18
|
+
- 🚀 **Out of the Box**: Get started in minutes with minimal configuration
|
|
19
|
+
- 🎯 **TypeScript Support**: Full TypeScript support with complete type definitions
|
|
20
|
+
- 🌈 **Theme Customization**: Flexible theme system supporting multiple themes and custom styles
|
|
21
|
+
- 📦 **Tree Shaking**: Optimized for tree shaking, import only what you need
|
|
22
|
+
- 🔄 **Streaming Support**: Built-in support for streaming AI responses
|
|
23
|
+
- 💾 **Storage Strategy**: Flexible storage strategies (LocalStorage, IndexedDB, custom)
|
|
24
|
+
|
|
25
|
+
English | [简体中文](https://github.com/opentiny/tiny-robot/blob/HEAD/README.zh-CN.md)
|
|
26
|
+
|
|
27
|
+
[](https://deepwiki.com/opentiny/tiny-robot)
|
|
28
|
+
|
|
29
|
+
## 📦 Packages
|
|
30
|
+
|
|
31
|
+
TinyRobot is a monorepo containing the following packages:
|
|
32
|
+
|
|
33
|
+
| Package | Description | Version |
|
|
34
|
+
| --------------------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
35
|
+
| `@opentiny/tiny-robot` | Core component library with all AI interaction components | [](https://www.npmjs.com/package/@opentiny/tiny-robot) |
|
|
36
|
+
| `@opentiny/tiny-robot-kit` | Utility functions and AI client tools for model interactions | [](https://www.npmjs.com/package/@opentiny/tiny-robot-kit) |
|
|
37
|
+
| `@opentiny/tiny-robot-svgs` | SVG icon library with all component icons | [](https://www.npmjs.com/package/@opentiny/tiny-robot-svgs) |
|
|
38
|
+
|
|
39
|
+
## 🚀 Quick Start
|
|
40
|
+
|
|
41
|
+
### Prerequisites
|
|
42
|
+
|
|
43
|
+
- Node.js >= 20.13.0
|
|
44
|
+
- Vue >= 3.2.0
|
|
45
|
+
- Package manager: npm, yarn, or pnpm
|
|
46
|
+
|
|
47
|
+
### Installation
|
|
48
|
+
|
|
49
|
+
**Core package** — `@opentiny/tiny-robot` is the main package.
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Using pnpm (recommended)
|
|
53
|
+
pnpm add @opentiny/tiny-robot
|
|
54
|
+
|
|
55
|
+
# Using npm
|
|
56
|
+
npm install @opentiny/tiny-robot
|
|
57
|
+
|
|
58
|
+
# Using yarn
|
|
59
|
+
yarn add @opentiny/tiny-robot
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Optional packages**:
|
|
63
|
+
|
|
64
|
+
- `@opentiny/tiny-robot-kit` — Only needed if you use AI model request or data-processing features. Add it when required:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pnpm add @opentiny/tiny-robot-kit
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- `@opentiny/tiny-robot-svgs` — Optional. Install separately only if you need to use the SVG icon library standalone or with custom icons:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pnpm add @opentiny/tiny-robot-svgs
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Basic Usage
|
|
77
|
+
|
|
78
|
+
#### 1. Import Styles
|
|
79
|
+
|
|
80
|
+
In your `main.js` or `main.ts`:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import { createApp } from 'vue'
|
|
84
|
+
import App from './App.vue'
|
|
85
|
+
import '@opentiny/tiny-robot/dist/style.css'
|
|
86
|
+
|
|
87
|
+
const app = createApp(App)
|
|
88
|
+
app.mount('#app')
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
#### 2. Use Components
|
|
92
|
+
|
|
93
|
+
```vue
|
|
94
|
+
<template>
|
|
95
|
+
<div class="chat-container">
|
|
96
|
+
<tr-bubble role="ai" content="Hello! I'm TinyRobot, an AI component library for Vue 3." placement="start" />
|
|
97
|
+
<tr-bubble role="user" content="That's great! How can I get started?" placement="end" />
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<script setup>
|
|
102
|
+
import { TrBubble } from '@opentiny/tiny-robot'
|
|
103
|
+
</script>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## 📚 Documentation
|
|
107
|
+
|
|
108
|
+
- 📖 [Full Documentation](https://docs.opentiny.design/tiny-robot/) - Complete API reference and guides
|
|
109
|
+
- 🎯 [Quick Start Guide](https://docs.opentiny.design/tiny-robot/guide/quick-start) - Get started in minutes
|
|
110
|
+
- 🎨 [Theme Configuration](https://docs.opentiny.design/tiny-robot/guide/theme-config) - Customize themes
|
|
111
|
+
- 📝 [Update Log](https://docs.opentiny.design/tiny-robot/guide/update-log) - Version history
|
|
112
|
+
- 💡 [Examples](https://docs.opentiny.design/tiny-robot/examples/assistant) - Complete application examples
|
|
113
|
+
|
|
114
|
+
## 🏗️ Project Structure
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
tiny-robot/
|
|
118
|
+
├── packages/
|
|
119
|
+
│ ├── components/ # Core component library
|
|
120
|
+
│ │ ├── src/
|
|
121
|
+
│ │ │ ├── bubble/ # Chat bubble components
|
|
122
|
+
│ │ │ ├── sender/ # Message input component
|
|
123
|
+
│ │ │ ├── container/ # Container component
|
|
124
|
+
│ │ │ ├── history/ # Conversation history
|
|
125
|
+
│ │ │ ├── attachments/ # File attachments
|
|
126
|
+
│ │ │ └── ... # Other components
|
|
127
|
+
│ │ └── package.json
|
|
128
|
+
│ ├── kit/ # Utility functions and AI tools
|
|
129
|
+
│ │ ├── src/
|
|
130
|
+
│ │ │ ├── providers/ # AI provider implementations
|
|
131
|
+
│ │ │ ├── vue/ # Vue composables
|
|
132
|
+
│ │ │ │ ├── message/ # useMessage composable
|
|
133
|
+
│ │ │ │ └── conversation/ # useConversation composable
|
|
134
|
+
│ │ │ └── storage/ # Storage utilities
|
|
135
|
+
│ │ └── package.json
|
|
136
|
+
│ ├── svgs/ # SVG icon library
|
|
137
|
+
│ ├── playground/ # Development playground
|
|
138
|
+
│ └── test/ # Test suite
|
|
139
|
+
├── docs/ # Documentation site
|
|
140
|
+
│ ├── src/ # Documentation source
|
|
141
|
+
│ └── demos/ # Component demos
|
|
142
|
+
├── scripts/ # Build and utility scripts
|
|
143
|
+
└── package.json
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## 🛠️ Development
|
|
147
|
+
|
|
148
|
+
### Setup
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# Install dependencies
|
|
152
|
+
pnpm install
|
|
153
|
+
|
|
154
|
+
# Start development server (playground + docs)
|
|
155
|
+
pnpm dev
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Development Workflow
|
|
159
|
+
|
|
160
|
+
1. **Start Development Server**:
|
|
161
|
+
- Run `pnpm dev` in the project root directory
|
|
162
|
+
- This starts both the playground and documentation site
|
|
163
|
+
- After modifying components in `packages/components/src/`, changes will be automatically reflected in the documentation page
|
|
164
|
+
|
|
165
|
+
2. **Documentation**:
|
|
166
|
+
- Documentation source: `docs/src/`
|
|
167
|
+
- Component demos: `docs/demos/`
|
|
168
|
+
|
|
169
|
+
3. **Testing**:
|
|
170
|
+
- Run `pnpm test` to execute tests
|
|
171
|
+
|
|
172
|
+
## 📄 License
|
|
173
|
+
|
|
174
|
+
MIT License - see [LICENSE](https://github.com/opentiny/tiny-robot/blob/HEAD/LICENSE) file for details.
|
|
175
|
+
|
|
176
|
+
## 🤝 Contributing
|
|
177
|
+
|
|
178
|
+
Contributions are welcome! Please read our [Contributing Guide](https://github.com/opentiny/tiny-robot/blob/HEAD/CONTRIBUTING.md) to understand the recommended workflow, commit message conventions, and how to submit Issues and Pull Requests.
|
|
179
|
+
|
|
180
|
+
## 📞 Support
|
|
181
|
+
|
|
182
|
+
- 📖 [Documentation](https://docs.opentiny.design/tiny-robot/)
|
|
183
|
+
- 🐛 [Issue Tracker](https://github.com/opentiny/tiny-robot/issues)
|
|
184
|
+
- 💬 [Discussions](https://github.com/opentiny/tiny-robot/discussions)
|
|
185
|
+
|
|
186
|
+
## 🙏 Acknowledgments
|
|
187
|
+
|
|
188
|
+
Built with ❤️ by the OpenTiny team.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
**Note**: This project is part of the [OpenTiny](https://github.com/opentiny) ecosystem.
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# TinyRobot
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://opentiny.design" target="_blank" rel="noopener noreferrer">
|
|
5
|
+
<img alt="OpenTiny Logo" src="https://raw.githubusercontent.com/opentiny/tiny-robot/HEAD/logo.svg" height="100" style="max-width:100%;">
|
|
6
|
+
</a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/@opentiny/tiny-robot)
|
|
10
|
+
[](https://opensource.org/licenses/MIT)
|
|
11
|
+
|
|
12
|
+
**TinyRobot** 是一个基于 Vue 3 构建的 AI 组件库,遵循 OpenTiny Design 设计体系。它提供了丰富的 AI 交互组件,帮助开发者快速构建企业级 AI 应用。
|
|
13
|
+
|
|
14
|
+
## ✨ 特性
|
|
15
|
+
|
|
16
|
+
- 🤖 **丰富的 AI 组件**:包含聊天气泡、消息输入、会话管理等完整的 AI 交互组件
|
|
17
|
+
- 🎨 **OpenTiny Design**:遵循 OpenTiny Design 设计体系,提供一致的 UI/UX
|
|
18
|
+
- 🚀 **开箱即用**:几分钟内即可开始使用,配置简单
|
|
19
|
+
- 🎯 **TypeScript 支持**:完整的 TypeScript 支持,提供完整的类型定义
|
|
20
|
+
- 🌈 **主题定制**:灵活的主题系统,支持多种主题和自定义样式
|
|
21
|
+
- 📦 **Tree Shaking**:针对 Tree Shaking 优化,按需导入
|
|
22
|
+
- 🔄 **流式支持**:内置流式 AI 响应支持
|
|
23
|
+
- 💾 **存储策略**:灵活的存储策略(LocalStorage、IndexedDB、自定义)
|
|
24
|
+
|
|
25
|
+
[English](https://github.com/opentiny/tiny-robot/blob/HEAD/README.md) | 简体中文
|
|
26
|
+
|
|
27
|
+
[](https://deepwiki.com/opentiny/tiny-robot)
|
|
28
|
+
|
|
29
|
+
## 📦 包说明
|
|
30
|
+
|
|
31
|
+
TinyRobot 是一个 monorepo,包含以下包:
|
|
32
|
+
|
|
33
|
+
| 包 | 说明 | 版本 |
|
|
34
|
+
| --------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
35
|
+
| `@opentiny/tiny-robot` | 核心组件库,包含所有 AI 交互组件 | [](https://www.npmjs.com/package/@opentiny/tiny-robot) |
|
|
36
|
+
| `@opentiny/tiny-robot-kit` | 工具函数和 AI 客户端工具,用于模型交互 | [](https://www.npmjs.com/package/@opentiny/tiny-robot-kit) |
|
|
37
|
+
| `@opentiny/tiny-robot-svgs` | SVG 图标库,包含所有组件所需的图标 | [](https://www.npmjs.com/package/@opentiny/tiny-robot-svgs) |
|
|
38
|
+
|
|
39
|
+
## 🚀 快速开始
|
|
40
|
+
|
|
41
|
+
### 环境要求
|
|
42
|
+
|
|
43
|
+
- Node.js >= 20.13.0
|
|
44
|
+
- Vue >= 3.2.0
|
|
45
|
+
- 包管理器:npm、yarn 或 pnpm
|
|
46
|
+
|
|
47
|
+
### 安装
|
|
48
|
+
|
|
49
|
+
**核心包** — `@opentiny/tiny-robot` 是主包。
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# 使用 pnpm(推荐)
|
|
53
|
+
pnpm add @opentiny/tiny-robot
|
|
54
|
+
|
|
55
|
+
# 使用 npm
|
|
56
|
+
npm install @opentiny/tiny-robot
|
|
57
|
+
|
|
58
|
+
# 使用 yarn
|
|
59
|
+
yarn add @opentiny/tiny-robot
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**可选包**:
|
|
63
|
+
|
|
64
|
+
- `@opentiny/tiny-robot-kit` — 仅在需要 AI 模型请求或数据处理功能时使用。需要时添加:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pnpm add @opentiny/tiny-robot-kit
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- `@opentiny/tiny-robot-svgs` — 可选。仅在需要单独使用 SVG 图标库或自定义图标时单独安装:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pnpm add @opentiny/tiny-robot-svgs
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 基本用法
|
|
77
|
+
|
|
78
|
+
#### 1. 引入样式
|
|
79
|
+
|
|
80
|
+
在 `main.js` 或 `main.ts` 中:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import { createApp } from 'vue'
|
|
84
|
+
import App from './App.vue'
|
|
85
|
+
import '@opentiny/tiny-robot/dist/style.css'
|
|
86
|
+
|
|
87
|
+
const app = createApp(App)
|
|
88
|
+
app.mount('#app')
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
#### 2. 使用组件
|
|
92
|
+
|
|
93
|
+
```vue
|
|
94
|
+
<template>
|
|
95
|
+
<div class="chat-container">
|
|
96
|
+
<tr-bubble role="ai" content="Hello! I'm TinyRobot, an AI component library for Vue 3." placement="start" />
|
|
97
|
+
<tr-bubble role="user" content="That's great! How can I get started?" placement="end" />
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<script setup>
|
|
102
|
+
import { TrBubble } from '@opentiny/tiny-robot'
|
|
103
|
+
</script>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## 📚 文档
|
|
107
|
+
|
|
108
|
+
- 📖 [完整文档](https://docs.opentiny.design/tiny-robot/) - 完整的 API 参考和指南
|
|
109
|
+
- 🎯 [快速开始指南](https://docs.opentiny.design/tiny-robot/guide/quick-start) - 几分钟内快速上手
|
|
110
|
+
- 🎨 [主题配置](https://docs.opentiny.design/tiny-robot/guide/theme-config) - 自定义主题
|
|
111
|
+
- 📝 [更新日志](https://docs.opentiny.design/tiny-robot/guide/update-log) - 版本历史
|
|
112
|
+
- 💡 [示例](https://docs.opentiny.design/tiny-robot/examples/assistant) - 完整的应用示例
|
|
113
|
+
|
|
114
|
+
## 🏗️ 项目结构
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
tiny-robot/
|
|
118
|
+
├── packages/
|
|
119
|
+
│ ├── components/ # 核心组件库
|
|
120
|
+
│ │ ├── src/
|
|
121
|
+
│ │ │ ├── bubble/ # 聊天气泡组件
|
|
122
|
+
│ │ │ ├── sender/ # 消息输入组件
|
|
123
|
+
│ │ │ ├── container/ # 容器组件
|
|
124
|
+
│ │ │ ├── history/ # 会话历史
|
|
125
|
+
│ │ │ ├── attachments/ # 文件附件
|
|
126
|
+
│ │ │ └── ... # 其他组件
|
|
127
|
+
│ │ └── package.json
|
|
128
|
+
│ ├── kit/ # 工具函数和 AI 工具
|
|
129
|
+
│ │ ├── src/
|
|
130
|
+
│ │ │ ├── providers/ # AI 提供商实现
|
|
131
|
+
│ │ │ ├── vue/ # Vue 组合式函数
|
|
132
|
+
│ │ │ │ ├── message/ # useMessage 组合式函数
|
|
133
|
+
│ │ │ │ └── conversation/ # useConversation 组合式函数
|
|
134
|
+
│ │ │ └── storage/ # 存储工具
|
|
135
|
+
│ │ └── package.json
|
|
136
|
+
│ ├── svgs/ # SVG 图标库
|
|
137
|
+
│ ├── playground/ # 开发演练场
|
|
138
|
+
│ └── test/ # 测试套件
|
|
139
|
+
├── docs/ # 文档站点
|
|
140
|
+
│ ├── src/ # 文档源码
|
|
141
|
+
│ └── demos/ # 组件示例
|
|
142
|
+
├── scripts/ # 构建和工具脚本
|
|
143
|
+
└── package.json
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## 🛠️ 开发
|
|
147
|
+
|
|
148
|
+
### 环境设置
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# 安装依赖
|
|
152
|
+
pnpm install
|
|
153
|
+
|
|
154
|
+
# 启动开发服务器(演练场 + 文档)
|
|
155
|
+
pnpm dev
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### 开发流程
|
|
159
|
+
|
|
160
|
+
1. **启动开发服务器**:
|
|
161
|
+
- 在项目根目录运行 `pnpm dev`
|
|
162
|
+
- 这将同时启动演练场和文档站点
|
|
163
|
+
- 修改 `packages/components/src/` 中的组件后,更改会自动反映在文档页面中
|
|
164
|
+
|
|
165
|
+
2. **文档**:
|
|
166
|
+
- 文档源码:`docs/src/`
|
|
167
|
+
- 组件示例:`docs/demos/`
|
|
168
|
+
|
|
169
|
+
3. **测试**:
|
|
170
|
+
- 运行 `pnpm test` 执行测试
|
|
171
|
+
|
|
172
|
+
## 📄 许可证
|
|
173
|
+
|
|
174
|
+
MIT 许可证 - 查看 [LICENSE](https://github.com/opentiny/tiny-robot/blob/HEAD/LICENSE) 文件了解详情。
|
|
175
|
+
|
|
176
|
+
## 🤝 贡献
|
|
177
|
+
|
|
178
|
+
欢迎贡献!请阅读[贡献指南](https://github.com/opentiny/tiny-robot/blob/HEAD/CONTRIBUTING_zh.md)了解推荐的工作流程、Commit 规范以及如何提交 Issue 和 Pull Request。
|
|
179
|
+
|
|
180
|
+
## 📞 支持
|
|
181
|
+
|
|
182
|
+
- 📖 [文档](https://docs.opentiny.design/tiny-robot/)
|
|
183
|
+
- 🐛 [问题追踪](https://github.com/opentiny/tiny-robot/issues)
|
|
184
|
+
- 💬 [讨论](https://github.com/opentiny/tiny-robot/discussions)
|
|
185
|
+
|
|
186
|
+
## 🙏 致谢
|
|
187
|
+
|
|
188
|
+
由 OpenTiny 团队用 ❤️ 构建。
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
**注意**:本项目是 [OpenTiny](https://github.com/opentiny) 生态系统的一部分。
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AllowedComponentProps } from 'vue';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
+
import { Attrs } from 'vue';
|
|
3
4
|
import { Component } from 'vue';
|
|
4
5
|
import { ComponentCustomProperties } from 'vue';
|
|
5
6
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -116,9 +117,7 @@ readonly show?: boolean | undefined;
|
|
|
116
117
|
readonly transitionProps?: TransitionProps | undefined;
|
|
117
118
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
118
119
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
119
|
-
$attrs:
|
|
120
|
-
[x: string]: unknown;
|
|
121
|
-
};
|
|
120
|
+
$attrs: Attrs;
|
|
122
121
|
$refs: {
|
|
123
122
|
[x: string]: unknown;
|
|
124
123
|
};
|
|
@@ -180,11 +179,11 @@ preventOverflow?: boolean;
|
|
|
180
179
|
show?: boolean;
|
|
181
180
|
transitionProps?: TransitionProps;
|
|
182
181
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
183
|
-
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> &
|
|
184
|
-
triggerRef:
|
|
185
|
-
popperRef:
|
|
182
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
|
|
183
|
+
triggerRef: HTMLElement | SVGElement | null | undefined;
|
|
184
|
+
popperRef: HTMLDivElement | null;
|
|
186
185
|
update: () => void;
|
|
187
|
-
}
|
|
186
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
188
187
|
$slots: Readonly<{
|
|
189
188
|
trigger?: () => VNode[];
|
|
190
189
|
content?: () => VNode[];
|
|
@@ -378,9 +377,7 @@ readonly show?: boolean | undefined;
|
|
|
378
377
|
readonly transitionProps?: TransitionProps | undefined;
|
|
379
378
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
380
379
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
381
|
-
$attrs:
|
|
382
|
-
[x: string]: unknown;
|
|
383
|
-
};
|
|
380
|
+
$attrs: Attrs;
|
|
384
381
|
$refs: {
|
|
385
382
|
[x: string]: unknown;
|
|
386
383
|
};
|
|
@@ -442,11 +439,11 @@ preventOverflow?: boolean;
|
|
|
442
439
|
show?: boolean;
|
|
443
440
|
transitionProps?: TransitionProps;
|
|
444
441
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
445
|
-
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> &
|
|
446
|
-
triggerRef:
|
|
447
|
-
popperRef:
|
|
442
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
|
|
443
|
+
triggerRef: HTMLElement | SVGElement | null | undefined;
|
|
444
|
+
popperRef: HTMLDivElement | null;
|
|
448
445
|
update: () => void;
|
|
449
|
-
}
|
|
446
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
450
447
|
$slots: Readonly<{
|
|
451
448
|
trigger?: () => VNode[];
|
|
452
449
|
content?: () => VNode[];
|
|
@@ -537,9 +534,7 @@ readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
|
537
534
|
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
538
535
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
539
536
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
540
|
-
$attrs:
|
|
541
|
-
[x: string]: unknown;
|
|
542
|
-
};
|
|
537
|
+
$attrs: Attrs;
|
|
543
538
|
$refs: {
|
|
544
539
|
[x: string]: unknown;
|
|
545
540
|
};
|
|
@@ -620,7 +615,7 @@ onCancel?: (() => any) | undefined;
|
|
|
620
615
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
621
616
|
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
622
617
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
623
|
-
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "placeholder" | "mode" | "enterkeyhint" | "autoSize" | "extensions" | "submitType") | "getContent"> &
|
|
618
|
+
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "placeholder" | "mode" | "enterkeyhint" | "autoSize" | "extensions" | "submitType") | "getContent"> & {
|
|
624
619
|
submit: () => void;
|
|
625
620
|
clear: () => void;
|
|
626
621
|
cancel: () => void;
|
|
@@ -628,8 +623,8 @@ focus: () => void;
|
|
|
628
623
|
blur: () => void;
|
|
629
624
|
setContent: (content: string) => void;
|
|
630
625
|
getContent: () => string;
|
|
631
|
-
editor:
|
|
632
|
-
}
|
|
626
|
+
editor: Editor | undefined;
|
|
627
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
633
628
|
$slots: {
|
|
634
629
|
header?(_: {}): any;
|
|
635
630
|
header?(_: {}): any;
|
|
@@ -665,9 +660,7 @@ readonly "onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
|
665
660
|
readonly "onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
666
661
|
readonly "onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
667
662
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
668
|
-
$attrs:
|
|
669
|
-
[x: string]: unknown;
|
|
670
|
-
};
|
|
663
|
+
$attrs: Attrs;
|
|
671
664
|
$refs: {
|
|
672
665
|
[x: string]: unknown;
|
|
673
666
|
};
|
|
@@ -727,11 +720,11 @@ autoInsert: boolean;
|
|
|
727
720
|
"onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
728
721
|
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
729
722
|
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
730
|
-
}>, "stop" | "start" | "speechState" | ("tooltipPlacement" | "autoInsert")> &
|
|
723
|
+
}>, "stop" | "start" | "speechState" | ("tooltipPlacement" | "autoInsert")> & {
|
|
731
724
|
start: () => void;
|
|
732
725
|
stop: () => void;
|
|
733
726
|
speechState: SpeechState;
|
|
734
|
-
}
|
|
727
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
735
728
|
$slots: {
|
|
736
729
|
icon?(_: {
|
|
737
730
|
isRecording: boolean;
|
|
@@ -829,9 +822,7 @@ declare function __VLS_template_11(): {
|
|
|
829
822
|
readonly transitionProps?: TransitionProps | undefined;
|
|
830
823
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
831
824
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
832
|
-
$attrs:
|
|
833
|
-
[x: string]: unknown;
|
|
834
|
-
};
|
|
825
|
+
$attrs: Attrs;
|
|
835
826
|
$refs: {
|
|
836
827
|
[x: string]: unknown;
|
|
837
828
|
};
|
|
@@ -893,11 +884,11 @@ declare function __VLS_template_11(): {
|
|
|
893
884
|
show?: boolean;
|
|
894
885
|
transitionProps?: TransitionProps;
|
|
895
886
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
896
|
-
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> &
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
}
|
|
887
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
|
|
888
|
+
triggerRef: HTMLElement | SVGElement | null | undefined;
|
|
889
|
+
popperRef: HTMLDivElement | null;
|
|
890
|
+
update: () => void;
|
|
891
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
901
892
|
$slots: Readonly<{
|
|
902
893
|
trigger?: () => VNode[];
|
|
903
894
|
content?: () => VNode[];
|
|
@@ -1036,9 +1027,7 @@ declare function __VLS_template_6(): {
|
|
|
1036
1027
|
readonly transitionProps?: TransitionProps | undefined;
|
|
1037
1028
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
1038
1029
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1039
|
-
$attrs:
|
|
1040
|
-
[x: string]: unknown;
|
|
1041
|
-
};
|
|
1030
|
+
$attrs: Attrs;
|
|
1042
1031
|
$refs: {
|
|
1043
1032
|
[x: string]: unknown;
|
|
1044
1033
|
};
|
|
@@ -1100,11 +1089,11 @@ declare function __VLS_template_6(): {
|
|
|
1100
1089
|
show?: boolean;
|
|
1101
1090
|
transitionProps?: TransitionProps;
|
|
1102
1091
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1103
|
-
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> &
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
}
|
|
1092
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & {
|
|
1093
|
+
triggerRef: HTMLElement | SVGElement | null | undefined;
|
|
1094
|
+
popperRef: HTMLDivElement | null;
|
|
1095
|
+
update: () => void;
|
|
1096
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
1108
1097
|
$slots: Readonly<{
|
|
1109
1098
|
trigger?: () => VNode[];
|
|
1110
1099
|
content?: () => VNode[];
|
|
@@ -1167,9 +1156,7 @@ declare function __VLS_template_8(): {
|
|
|
1167
1156
|
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1168
1157
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1169
1158
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1170
|
-
$attrs:
|
|
1171
|
-
[x: string]: unknown;
|
|
1172
|
-
};
|
|
1159
|
+
$attrs: Attrs;
|
|
1173
1160
|
$refs: {
|
|
1174
1161
|
[x: string]: unknown;
|
|
1175
1162
|
};
|
|
@@ -1250,16 +1237,16 @@ declare function __VLS_template_8(): {
|
|
|
1250
1237
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1251
1238
|
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1252
1239
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1253
|
-
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "placeholder" | "mode" | "enterkeyhint" | "autoSize" | "extensions" | "submitType") | "getContent"> &
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
}
|
|
1240
|
+
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "placeholder" | "mode" | "enterkeyhint" | "autoSize" | "extensions" | "submitType") | "getContent"> & {
|
|
1241
|
+
submit: () => void;
|
|
1242
|
+
clear: () => void;
|
|
1243
|
+
cancel: () => void;
|
|
1244
|
+
focus: () => void;
|
|
1245
|
+
blur: () => void;
|
|
1246
|
+
setContent: (content: string) => void;
|
|
1247
|
+
getContent: () => string;
|
|
1248
|
+
editor: Editor | undefined;
|
|
1249
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
1263
1250
|
$slots: {
|
|
1264
1251
|
header?(_: {}): any;
|
|
1265
1252
|
header?(_: {}): any;
|
|
@@ -1295,9 +1282,7 @@ declare function __VLS_template_8(): {
|
|
|
1295
1282
|
readonly "onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
1296
1283
|
readonly "onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
1297
1284
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1298
|
-
$attrs:
|
|
1299
|
-
[x: string]: unknown;
|
|
1300
|
-
};
|
|
1285
|
+
$attrs: Attrs;
|
|
1301
1286
|
$refs: {
|
|
1302
1287
|
[x: string]: unknown;
|
|
1303
1288
|
};
|
|
@@ -1357,11 +1342,11 @@ declare function __VLS_template_8(): {
|
|
|
1357
1342
|
"onSpeech-final"?: ((transcript: string) => any) | undefined;
|
|
1358
1343
|
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
1359
1344
|
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
1360
|
-
}>, "stop" | "start" | "speechState" | ("tooltipPlacement" | "autoInsert")> &
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
}
|
|
1345
|
+
}>, "stop" | "start" | "speechState" | ("tooltipPlacement" | "autoInsert")> & {
|
|
1346
|
+
start: () => void;
|
|
1347
|
+
stop: () => void;
|
|
1348
|
+
speechState: SpeechState;
|
|
1349
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
1365
1350
|
$slots: {
|
|
1366
1351
|
icon?(_: {
|
|
1367
1352
|
isRecording: boolean;
|