morghulis 1.0.22 → 1.0.24

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.
Files changed (47) hide show
  1. package/README.md +53 -305
  2. package/dist/components/cell/MCell.vue.d.ts +11 -0
  3. package/dist/components/cell/char/CharCell.vue.d.ts +15 -0
  4. package/dist/components/cell/date/DateCell.vue.d.ts +15 -0
  5. package/dist/components/cell/refer/SelectCell.vue.d.ts +15 -0
  6. package/dist/components/cell/simple/BooleanCell.vue.d.ts +15 -0
  7. package/dist/components/cell/simple/DefaultCell.vue.d.ts +15 -0
  8. package/dist/components/cell/simple/NumberCell.vue.d.ts +18 -0
  9. package/dist/components/cell/useCellComponents.d.ts +2 -0
  10. package/dist/components/common/MCtrlBtn.vue.d.ts +30 -0
  11. package/dist/components/common/MOption.vue.d.ts +10 -0
  12. package/dist/components/dialog/MDialog.vue.d.ts +57 -0
  13. package/dist/components/dialog/MDialogHeader.vue.d.ts +9 -0
  14. package/dist/components/form/MForm.vue.d.ts +13 -0
  15. package/dist/components/table/MTable.vue.d.ts +65 -0
  16. package/dist/components/table/MTableButtons.vue.d.ts +17 -0
  17. package/dist/components/table/MTableHeader.vue.d.ts +17 -0
  18. package/dist/components/table/data/DCell.vue.d.ts +18 -0
  19. package/dist/components/table/data/DForm.vue.d.ts +16 -0
  20. package/dist/components/table/data/DTable.vue.d.ts +78 -0
  21. package/dist/components/table/data/DTableController.vue.d.ts +19 -0
  22. package/dist/components/table/data/DTablePopController.vue.d.ts +13 -0
  23. package/dist/components/table/data/useDTable.d.ts +77 -0
  24. package/dist/components/table/data/useDTableCell.d.ts +6 -0
  25. package/dist/components/table/useMTable.d.ts +25 -0
  26. package/dist/favicon.ico +0 -0
  27. package/dist/hooks/authorize.d.ts +13 -0
  28. package/dist/hooks/channel.d.ts +13 -0
  29. package/dist/hooks/cookies.d.ts +6 -0
  30. package/dist/hooks/request.d.ts +5 -0
  31. package/dist/hooks/socket.d.ts +7 -0
  32. package/dist/index.css +1 -0
  33. package/dist/index.d.ts +5 -0
  34. package/dist/index.js +8864 -0
  35. package/dist/index.umd.cjs +38 -0
  36. package/dist/tools/dao.d.ts +27 -0
  37. package/dist/tools/feedback.d.ts +4 -0
  38. package/dist/tools/query.d.ts +20 -0
  39. package/dist/types/dialog/dialog.types.d.ts +41 -0
  40. package/dist/types/table/m.table.types.d.ts +55 -0
  41. package/package.json +37 -32
  42. package/dist/morghulis.es.js +0 -2737
  43. package/dist/morghulis.es.js.map +0 -1
  44. package/dist/morghulis.umd.js +0 -11
  45. package/dist/morghulis.umd.js.map +0 -1
  46. package/dist/style.css +0 -4
  47. package/types/index.d.ts +0 -152
package/README.md CHANGED
@@ -1,337 +1,85 @@
1
- # Morghulis UI 组件库
1
+ # Morghulis
2
2
 
3
- 基于Vue 3和TypeScript的数据库便捷搭建UI组件库,集成了Element Plus和FontAwesome图标,提供丰富的数据库操作界面组件。
3
+ 一个基于Vue 3的组件库,提供了多种实用组件和工具函数。
4
4
 
5
- ## 特性
5
+ ## 安装
6
6
 
7
- - 基于Vue 3和TypeScript开发
8
- - 自动集成Element Plus,无需额外安装
9
- - 集成FontAwesome图标
10
- - 提供高度可定制的对话框组件,适用于数据库操作交互
11
- - 简化数据库表单创建和管理流程
12
- - 内置常用数据库操作UI模板
7
+ ```bash
8
+ npm install morghulis
9
+ ```
13
10
 
14
- ## 快速开始
11
+ ## 使用
15
12
 
16
- 在你的Vue 3项目中引入并使用组件库:
13
+ ### 全局注册
17
14
 
18
- ```js
19
- // main.ts 或 main.js
15
+ ```typescript
20
16
  import { createApp } from 'vue'
21
- import App from './App.vue'
22
17
  import { createMorghulis } from 'morghulis'
23
- import 'morghulis/dist/style.css'
18
+ import App from './App.vue'
24
19
 
25
20
  const app = createApp(App)
26
21
 
27
- // 使用Morghulis UI,自动集成Element Plus
22
+ // 使用默认配置
28
23
  app.use(createMorghulis())
29
24
 
25
+ // 或者自定义配置
26
+ app.use(createMorghulis({
27
+ baseURL: '/api/',
28
+ minioURL: '/dfs/'
29
+ }))
30
+
30
31
  app.mount('#app')
31
32
  ```
32
33
 
33
- ## 组件
34
-
35
- ### MDialog 对话框组件
36
-
37
- 高度可定制的对话框组件,适用于数据库操作交互。
38
-
39
- #### 基本用法
40
-
41
- ```vue
42
- <template>
43
- <m-dialog
44
- v-model="dialogVisible"
45
- title="用户信息"
46
- sub-title="编辑用户详情"
47
- :confirm="handleConfirm"
48
- >
49
- <!-- 对话框内容 -->
50
- </m-dialog>
51
-
52
- <el-button @click="openDialog">打开对话框</el-button>
53
- </template>
34
+ ### 单独使用组件
54
35
 
55
- <script setup>
56
- import { ref } from 'vue'
36
+ ```typescript
37
+ import { MTable, MDialog, MForm, DTable } from 'morghulis'
57
38
 
58
- const dialogVisible = ref(false)
59
- const dialogRef = ref(null)
60
-
61
- function openDialog() {
62
- // 可以通过ref调用open方法打开对话框并传递数据
63
- dialogRef.value.open({id: 1, name: '张三'})
64
- }
65
-
66
- function handleConfirm(data, done) {
67
- // 处理确认逻辑
68
- console.log('提交的数据:', data)
69
- // 完成后关闭对话框
70
- done()
39
+ // 在组件中使用
40
+ export default {
41
+ components: {
42
+ MTable,
43
+ MDialog,
44
+ MForm,
45
+ DTable
46
+ }
71
47
  }
72
- </script>
73
48
  ```
74
49
 
75
- #### 属性
76
-
77
- | 属性名 | 类型 | 默认值 | 说明 |
78
- | --- | --- | --- | --- |
79
- | modelValue | boolean | false | 控制对话框显示/隐藏 |
80
- | title | string | '对话框' | 对话框标题 |
81
- | subTitle | string | '' | 对话框副标题 |
82
- | width | string/number | 600 | 对话框宽度 |
83
- | fullscreen | boolean | false | 是否全屏显示 |
84
- | top | string | '30px' | 对话框距离顶部的距离 |
85
- | modal | boolean | true | 是否显示遮罩层 |
86
- | modalClass | string | 'mor-dialog-modal' | 遮罩层的自定义类名 |
87
- | headerClass | string | 'mor-dialog-header' | 头部的自定义类名 |
88
- | bodyClass | string | 'mor-dialog-body-wrapper' | 内容区的自定义类名 |
89
- | footerClass | string | 'mor-dialog-footer' | 底部的自定义类名 |
90
- | appendToBody | boolean | true | 是否将对话框插入至body元素 |
91
- | lockScroll | boolean | true | 是否在对话框出现时将body滚动锁定 |
92
- | closeOnClickModal | boolean | true | 是否可以通过点击遮罩层关闭对话框 |
93
- | closeOnPressEscape | boolean | true | 是否可以通过按下ESC键关闭对话框 |
94
- | showClose | boolean | true | 是否显示关闭按钮 |
95
- | draggable | boolean | false | 是否可拖拽 |
96
- | center | boolean | false | 是否对头部和底部采用居中布局 |
97
- | destroyOnClose | boolean | false | 关闭时是否销毁对话框内的元素 |
98
- | confirm | Function | - | 确认按钮点击时的回调函数,参数为(data, done) |
99
- | cancel | Function | - | 取消按钮点击时的回调函数,参数为(data, done) |
100
- | confirmButtonText | string | '确定' | 确认按钮文本 |
101
- | cancelButtonText | string | '取消' | 取消按钮文本 |
102
-
103
- #### 方法
104
-
105
- | 方法名 | 参数 | 说明 |
106
- | --- | --- | --- |
107
- | open | (data, config) | 打开对话框并传入数据,config可选,包含title和subTitle |
108
- | close | - | 关闭对话框 |
109
-
110
- #### 插槽
111
-
112
- | 插槽名 | 说明 |
113
- | --- | --- |
114
- | default | 对话框内容 |
115
- | title | 自定义标题区域 |
116
- | sub-title | 自定义副标题区域 |
117
- | header | 自定义头部区域 |
118
- | footer | 自定义底部区域 |
119
-
120
- ## Hooks
121
-
122
- ### useMorghulisCookies
123
-
124
- 提供Cookie操作的工具函数。
125
-
126
- ```js
127
- import { useMorghulisCookies } from 'morghulis'
128
-
129
- const { get, set, remove, load } = useMorghulisCookies()
130
-
131
- // 设置Cookie
132
- set('user.name', '张三')
133
-
134
- // 获取Cookie
135
- const userName = get('user.name')
136
-
137
- // 加载Cookie,如果不存在则设置默认值
138
- const config = load('config', { theme: 'dark' })
139
-
140
- // 删除Cookie
141
- remove('user.name')
142
- ```
143
-
144
- #### 方法
145
-
146
- | 方法名 | 参数 | 返回值 | 说明 |
147
- | --- | --- | --- | --- |
148
- | get | (path: string) | any | 获取指定路径的Cookie值 |
149
- | set | (path: string, value?: any) | void | 设置指定路径的Cookie值 |
150
- | load | (key: string, value?: any) | any | 获取指定键的Cookie值,如果不存在则设置默认值 |
151
- | remove | (path: string) | void | 删除指定路径的Cookie值 |
152
-
153
- ### useMorghulisAuthorize
154
-
155
- 提供用户授权相关的工具函数。
156
-
157
- ```js
158
- import { useMorghulisAuthorize } from 'morghulis'
159
-
160
- const { $client, user, check, login, logout, bearer } = useMorghulisAuthorize()
161
-
162
- // 获取当前用户ID
163
- const currentUser = user()
164
-
165
- // 检查是否为指定用户
166
- const isAdmin = check('admin')
167
-
168
- // 登录
169
- login('user123')
170
-
171
- // 登出
172
- logout()
173
-
174
- // 获取Bearer令牌
175
- const token = bearer()
176
- ```
177
-
178
- #### 方法和属性
179
-
180
- | 名称 | 类型 | 说明 |
181
- | --- | --- | --- |
182
- | $client | string | 客户端唯一标识 |
183
- | user | Function | 获取当前用户ID |
184
- | check | Function | 检查当前用户是否为指定用户 |
185
- | login | Function | 设置用户登录状态 |
186
- | logout | Function | 清除用户登录状态 |
187
- | bearer | Function | 获取Bearer认证令牌 |
188
-
189
- ### useMorghulisChannel
50
+ ### 使用工具函数
190
51
 
191
- 提供通道相关的工具函数。
52
+ ```typescript
53
+ import { useMorghulisRequest, useMorghulisCookies } from 'morghulis'
192
54
 
193
- ```js
194
- import { useMorghulisChannel } from 'morghulis'
195
-
196
- const { http } = useMorghulisChannel('/api')
197
-
198
- // 使用http发送请求
199
- http.get('/users').then(response => {
200
- console.log(response.data)
201
- })
202
- ```
203
-
204
- #### 方法
205
-
206
- | 方法名 | 返回值 | 说明 |
207
- | --- | --- | --- |
208
- | http | AxiosInstance | 返回配置好的Axios实例 |
209
-
210
- ### useMorghulisRequest
211
-
212
- 提供请求相关的工具函数。
213
-
214
- ```js
215
- import { useMorghulisRequest } from 'morghulis'
216
-
217
- const { getRequest } = useMorghulisRequest('/api')
218
-
219
- // 获取配置好的请求实例
220
- const http = getRequest()
221
-
222
- // 发送请求
223
- http.get('/users').then(response => {
224
- console.log(response.data)
225
- })
55
+ // 在组件中使用
56
+ setup() {
57
+ const { get, post } = useMorghulisRequest()
58
+ const { get: getCookie, set: setCookie } = useMorghulisCookies()
59
+
60
+ // 使用这些函数...
61
+ }
226
62
  ```
227
63
 
228
- #### 方法
64
+ ## 组件
229
65
 
230
- | 方法名 | 参数 | 返回值 | 说明 |
231
- | --- | --- | --- | --- |
232
- | getRequest | (auth?: boolean) | AxiosInstance | 获取配置好的Axios实例,auth参数指定是否需要认证 |
66
+ - `MTable`: 表格组件
67
+ - `MDialog`: 对话框组件
68
+ - `MForm`: 表单组件
69
+ - `DTable`: 数据表格组件
233
70
 
234
71
  ## 工具函数
235
72
 
236
- ### $message
237
-
238
- 提供消息提示功能。
239
-
240
- ```js
241
- import { $message } from 'morghulis'
242
-
243
- // 成功提示
244
- $message.success('操作成功')
245
-
246
- // 信息提示
247
- $message.info('提示信息')
248
-
249
- // 警告提示
250
- $message.warning('警告信息')
251
-
252
- // 错误提示
253
- $message.error('错误信息')
254
- ```
255
-
256
- #### 方法
73
+ - `useMorghulisAuthorize`: 授权相关函数
74
+ - `useMorghulisChannel`: 通道相关函数
75
+ - `useMorghulisSockets`: Socket相关函数
76
+ - `useMorghulisRequest`: 请求相关函数
77
+ - `useMorghulisCookies`: Cookie相关函数
257
78
 
258
- | 方法名 | 参数 | 说明 |
259
- | --- | --- | --- |
260
- | info | (message: string) | 显示信息提示 |
261
- | success | (message: string) | 显示成功提示 |
262
- | warning | (message: string) | 显示警告提示 |
263
- | error | (message: string) | 显示错误提示 |
79
+ ## 类型
264
80
 
265
- ### $alert
266
-
267
- 提供警告对话框功能。
268
-
269
- ```js
270
- import { $alert } from 'morghulis'
271
-
272
- // 成功提示
273
- $alert.success('操作成功', '提示').then(() => {
274
- // 点击确定按钮后的回调
275
- })
276
-
277
- // 信息提示
278
- $alert.info('提示信息')
279
-
280
- // 警告提示
281
- $alert.warning('警告信息', '警告')
282
-
283
- // 错误提示
284
- $alert.error('错误信息', '错误')
285
- ```
286
-
287
- #### 方法
288
-
289
- | 方法名 | 参数 | 返回值 | 说明 |
290
- | --- | --- | --- | --- |
291
- | info | (message: string, title?: string) | Promise | 显示信息警告框 |
292
- | success | (message: string, title?: string) | Promise | 显示成功警告框 |
293
- | warning | (message: string, title?: string) | Promise | 显示警告警告框 |
294
- | error | (message: string, title?: string) | Promise | 显示错误警告框 |
295
-
296
- ### $confirm
297
-
298
- 提供确认对话框功能。
299
-
300
- ```js
301
- import { $confirm } from 'morghulis'
302
-
303
- // 确认操作
304
- $confirm.warning('确定要删除吗?', '警告').then(() => {
305
- // 点击确定按钮后的回调
306
- }).catch(() => {
307
- // 点击取消按钮后的回调
308
- })
309
- ```
310
-
311
- #### 方法
312
-
313
- | 方法名 | 参数 | 返回值 | 说明 |
314
- | --- | --- | --- | --- |
315
- | info | (message: string, title?: string) | Promise | 显示信息确认框 |
316
- | success | (message: string, title?: string) | Promise | 显示成功确认框 |
317
- | warning | (message: string, title?: string) | Promise | 显示警告确认框 |
318
- | error | (message: string, title?: string) | Promise | 显示错误确认框 |
319
-
320
- ## 配置选项
321
-
322
- 在使用`createMorghulis`函数时,可以传入以下配置选项:
323
-
324
- ```js
325
- app.use(createMorghulis({
326
- baseURL: '/api/', // API基础路径
327
- minioURL: '/dfs/', // 文件服务基础路径
328
- // 其他配置...
329
- }))
330
- ```
81
+ 所有类型都已导出,可以直接导入使用:
331
82
 
332
- | 选项名 | 类型 | 默认值 | 说明 |
333
- | --- | --- | --- | --- |
334
- | baseURL | string | '/api/' | API基础路径 |
335
- | minioURL | string | '/dfs/' | 文件服务基础路径 |
336
- | timeout | number | - | 请求超时时间 |
337
- | headers | object | - | 请求头配置 |
83
+ ```typescript
84
+ import { MorghulisOptions, UIFeedbackTypes } from 'morghulis'
85
+ ```
@@ -0,0 +1,11 @@
1
+ import { MetaField } from '../../types/tool/meta.types.ts';
2
+ import { DaoTypes, DataItem } from '../../types/tool/dao.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ field: MetaField;
6
+ bean: DataItem;
7
+ db: DaoTypes;
8
+ disabled: boolean;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { DaoTypes } from '../../../types/tool/dao.types.ts';
2
+ import { MetaField } from '../../../types/tool/meta.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ modelValue: any;
6
+ disabled: boolean;
7
+ field: MetaField;
8
+ db: DaoTypes;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:modelValue": (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: (...args: any[]) => any;
14
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { MetaField } from '../../../types/tool/meta.types.ts';
2
+ import { DaoTypes } from '../../../types/tool/dao.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ modelValue: any;
6
+ disabled: boolean;
7
+ db: DaoTypes;
8
+ field: MetaField;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:modelValue": (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: (...args: any[]) => any;
14
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { MetaField } from '../../../types/tool/meta.types.ts';
2
+ import { DaoTypes } from '../../../types/tool/dao.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ modelValue: any;
6
+ disabled: boolean;
7
+ db: DaoTypes;
8
+ field: MetaField;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:modelValue": (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: (...args: any[]) => any;
14
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { DaoTypes } from '../../../types/tool/dao.types.ts';
2
+ import { MetaField } from '../../../types/tool/meta.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ modelValue: any;
6
+ disabled: boolean;
7
+ db: DaoTypes;
8
+ field: MetaField;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:modelValue": (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: (...args: any[]) => any;
14
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { DaoTypes } from '../../../types/tool/dao.types.ts';
2
+ import { MetaField } from '../../../types/tool/meta.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ modelValue: any;
6
+ disabled: boolean;
7
+ db: DaoTypes;
8
+ field: MetaField;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:modelValue": (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ "onUpdate:modelValue"?: (...args: any[]) => any;
14
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { MetaField } from '../../../types/tool/meta.types.ts';
2
+ import { DaoTypes } from '../../../types/tool/dao.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ /**
5
+ * 通用
6
+ */
7
+ type __VLS_Props = {
8
+ modelValue: any;
9
+ disabled: boolean;
10
+ db: DaoTypes;
11
+ field: MetaField;
12
+ };
13
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ "update:modelValue": (...args: any[]) => void;
15
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: (...args: any[]) => any;
17
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { Component } from 'vue';
2
+ export declare function getComponentByDomain(domain: String): Component;
@@ -0,0 +1,30 @@
1
+ import { UISizeTypes, UITextTypes } from '../../types/morghulis.types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ disabled?: boolean;
5
+ type?: UITextTypes;
6
+ size?: UISizeTypes;
7
+ title?: string;
8
+ icon?: string;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ click: (...args: any[]) => void;
21
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onClick?: (...args: any[]) => any;
23
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,10 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ option: {
4
+ label: any;
5
+ value: any;
6
+ display: any;
7
+ };
8
+ };
9
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import { MorghulisDialogProps, MorghulisDialogConfig } from '../../types/dialog/dialog.types.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare function open(data?: any, config?: MorghulisDialogConfig): void;
4
+ declare function close(): void;
5
+ declare function __VLS_template(): any;
6
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
7
+ declare const __VLS_component: DefineComponent<MorghulisDialogProps, {
8
+ open: typeof open;
9
+ close: typeof close;
10
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ close: (...args: any[]) => void;
12
+ "update:title": (...args: any[]) => void;
13
+ "update:subtitle": (...args: any[]) => void;
14
+ }, string, PublicProps, Readonly<MorghulisDialogProps> & Readonly<{
15
+ onClose?: (...args: any[]) => any;
16
+ "onUpdate:title"?: (...args: any[]) => any;
17
+ "onUpdate:subtitle"?: (...args: any[]) => any;
18
+ }>, {
19
+ title: string;
20
+ subtitle: string;
21
+ confirmButtonText: string;
22
+ cancelButtonText: string;
23
+ cancel: (data: any, done: () => void) => void;
24
+ width: string | number;
25
+ fullscreen: boolean;
26
+ top: string;
27
+ modal: boolean;
28
+ modalClass: string;
29
+ headerClass: string;
30
+ bodyClass: string;
31
+ footerClass: string;
32
+ appendToBody: boolean;
33
+ appendTo: string;
34
+ lockScroll: boolean;
35
+ openDelay: number;
36
+ closeDelay: number;
37
+ closeOnClickModal: boolean;
38
+ closeOnPressEscape: boolean;
39
+ showClose: boolean;
40
+ beforeClose: (done: () => void) => void;
41
+ draggable: boolean;
42
+ overFlow: boolean;
43
+ center: boolean;
44
+ alignCenter: boolean;
45
+ destroyOnClose: boolean;
46
+ closeIcon: string;
47
+ zIndex: number;
48
+ headerAriaLevel: string;
49
+ confirm: (data: any, done: () => void) => void;
50
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
51
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
+ export default _default;
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,9 @@
1
+ import { MorghulisDialogConfig } from '../../types/dialog/dialog.types.ts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ title: string;
5
+ subtitle: string;
6
+ config: MorghulisDialogConfig;
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { DaoTypes, DataItem } from '../../types/tool/dao.types.ts';
2
+ import { MetaView } from '../../types/tool/meta.types.ts';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ item: DataItem;
6
+ view: MetaView;
7
+ db: DaoTypes;
8
+ };
9
+ declare function getData(): any;
10
+ declare const _default: DefineComponent<__VLS_Props, {
11
+ getData: typeof getData;
12
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ export default _default;