@vtj/ui 0.8.136 → 0.8.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2258 -2258
- package/dist/index.umd.js +12 -12
- package/package.json +5 -5
- package/types/adapter.d.ts +0 -1
- package/types/components/action/Action.d.ts +12 -12
- package/types/components/action/Trigger.d.ts +7 -7
- package/types/components/action/hooks.d.ts +0 -1
- package/types/components/action/index.d.ts +0 -1
- package/types/components/action/types.d.ts +0 -1
- package/types/components/action-bar/ActionBar.d.ts +12 -11
- package/types/components/action-bar/index.d.ts +0 -1
- package/types/components/action-bar/types.d.ts +0 -1
- package/types/components/attachment/Attachment.d.ts +536 -23
- package/types/components/attachment/index.d.ts +0 -1
- package/types/components/attachment/props.d.ts +0 -1
- package/types/components/attachment/types.d.ts +0 -1
- package/types/components/attachment/util.d.ts +0 -1
- package/types/components/captcha/Captcha.d.ts +13 -36
- package/types/components/captcha/index.d.ts +0 -1
- package/types/components/captcha/types.d.ts +0 -1
- package/types/components/container/Container.d.ts +15 -8
- package/types/components/container/index.d.ts +0 -1
- package/types/components/container/types.d.ts +0 -1
- package/types/components/data-item/DataItem.d.ts +25 -18
- package/types/components/data-item/index.d.ts +0 -1
- package/types/components/data-item/types.d.ts +0 -1
- package/types/components/dialog/Dialog.d.ts +387 -33
- package/types/components/dialog/create.d.ts +0 -1
- package/types/components/dialog/hooks.d.ts +0 -1
- package/types/components/dialog/index.d.ts +0 -1
- package/types/components/dialog/types.d.ts +0 -1
- package/types/components/dialog-form/DialogForm.d.ts +946 -19
- package/types/components/dialog-form/index.d.ts +0 -1
- package/types/components/dialog-form/types.d.ts +0 -1
- package/types/components/dialog-grid/DialogGrid.d.ts +2117 -92
- package/types/components/dialog-grid/index.d.ts +0 -1
- package/types/components/dialog-grid/types.d.ts +0 -1
- package/types/components/field/Field.d.ts +235 -32
- package/types/components/field/editors/CheckboxEditor.d.ts +3 -27
- package/types/components/field/editors/RadioEditor.d.ts +3 -27
- package/types/components/field/editors/SelectEditor.d.ts +14 -31
- package/types/components/field/editors/index.d.ts +0 -1
- package/types/components/field/hooks/useEditor.d.ts +0 -1
- package/types/components/field/index.d.ts +0 -1
- package/types/components/field/types.d.ts +1 -2
- package/types/components/form/Form.d.ts +244 -18
- package/types/components/form/index.d.ts +0 -1
- package/types/components/form/types.d.ts +0 -1
- package/types/components/grid/Grid.d.ts +157 -140
- package/types/components/grid/hooks/useColumnSortable.d.ts +1 -2
- package/types/components/grid/hooks/useCustom.d.ts +0 -1
- package/types/components/grid/hooks/useEditRender.d.ts +3 -4
- package/types/components/grid/hooks/useFilterRender.d.ts +0 -1
- package/types/components/grid/hooks/useLoader.d.ts +103 -104
- package/types/components/grid/hooks/useProps.d.ts +0 -1
- package/types/components/grid/hooks/useRowSortable.d.ts +1 -2
- package/types/components/grid/hooks/useState.d.ts +103 -104
- package/types/components/grid/hooks/useVxe.d.ts +0 -1
- package/types/components/grid/index.d.ts +0 -1
- package/types/components/grid/props.d.ts +0 -1
- package/types/components/grid/renderers/actions.d.ts +0 -1
- package/types/components/grid/renderers/components/DateEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/DateFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/GridEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/InputEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/InputFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/NumberEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/NumberFilter.d.ts +2 -12
- package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/SelectEdit.d.ts +2 -12
- package/types/components/grid/renderers/components/SelectFilter.d.ts +2 -12
- package/types/components/grid/renderers/date.d.ts +0 -1
- package/types/components/grid/renderers/grid.d.ts +0 -1
- package/types/components/grid/renderers/image.d.ts +0 -1
- package/types/components/grid/renderers/index.d.ts +0 -1
- package/types/components/grid/renderers/input.d.ts +0 -1
- package/types/components/grid/renderers/interceptors.d.ts +0 -1
- package/types/components/grid/renderers/link.d.ts +0 -1
- package/types/components/grid/renderers/number.d.ts +0 -1
- package/types/components/grid/renderers/picker.d.ts +0 -1
- package/types/components/grid/renderers/select.d.ts +0 -1
- package/types/components/grid/renderers/shared.d.ts +0 -1
- package/types/components/grid/renderers/tag.d.ts +0 -1
- package/types/components/grid/renderers/text.d.ts +0 -1
- package/types/components/grid/types.d.ts +0 -1
- package/types/components/grid/utils.d.ts +0 -1
- package/types/components/grid-editor/GridEditor.d.ts +9 -33
- package/types/components/grid-editor/index.d.ts +0 -1
- package/types/components/grid-editor/types.d.ts +0 -1
- package/types/components/header/Header.d.ts +15 -10
- package/types/components/header/index.d.ts +0 -1
- package/types/components/header/types.d.ts +0 -1
- package/types/components/icon/Icon.d.ts +12 -7
- package/types/components/icon/index.d.ts +0 -1
- package/types/components/icon/types.d.ts +0 -1
- package/types/components/import-button/ImportButton.d.ts +15 -10
- package/types/components/import-button/index.d.ts +0 -1
- package/types/components/import-button/props.d.ts +0 -1
- package/types/components/import-button/types.d.ts +0 -1
- package/types/components/input-unit/InputUnit.d.ts +11 -11
- package/types/components/input-unit/index.d.ts +0 -1
- package/types/components/input-unit/types.d.ts +0 -1
- package/types/components/list/List.d.ts +33 -21
- package/types/components/list/index.d.ts +0 -1
- package/types/components/list/types.d.ts +0 -1
- package/types/components/mask/Mask.d.ts +57 -14
- package/types/components/mask/components/Avatar.d.ts +9 -13
- package/types/components/mask/components/Brand.d.ts +11 -27
- package/types/components/mask/components/Content.d.ts +9 -14
- package/types/components/mask/components/Menu.d.ts +6 -28
- package/types/components/mask/components/Sidebar.d.ts +10 -14
- package/types/components/mask/components/SwitchBar.d.ts +5 -28
- package/types/components/mask/components/Tabs.d.ts +10 -20
- package/types/components/mask/components/ThemeSwitch.d.ts +2 -2
- package/types/components/mask/components/Toolbar.d.ts +12 -29
- package/types/components/mask/defineTab.d.ts +0 -1
- package/types/components/mask/hooks/useContent.d.ts +1 -2
- package/types/components/mask/hooks/useHome.d.ts +0 -1
- package/types/components/mask/hooks/useMenus.d.ts +1 -2
- package/types/components/mask/hooks/useSidebar.d.ts +3 -3
- package/types/components/mask/hooks/useTabs.d.ts +3 -4
- package/types/components/mask/index.d.ts +0 -1
- package/types/components/mask/types.d.ts +0 -1
- package/types/components/menu/Menu.d.ts +6 -30
- package/types/components/menu/MenuItem.d.ts +2 -12
- package/types/components/menu/components.d.ts +0 -1
- package/types/components/menu/index.d.ts +0 -1
- package/types/components/menu/types.d.ts +0 -1
- package/types/components/panel/Panel.d.ts +337 -14
- package/types/components/panel/index.d.ts +0 -1
- package/types/components/panel/types.d.ts +0 -1
- package/types/components/picker/Dialog.d.ts +4 -14
- package/types/components/picker/Picker.d.ts +20 -18
- package/types/components/picker/hooks.d.ts +6 -4
- package/types/components/picker/index.d.ts +0 -1
- package/types/components/picker/props.d.ts +1 -2
- package/types/components/picker/types.d.ts +0 -1
- package/types/components/qr-code/QrCode.d.ts +15 -34
- package/types/components/qr-code/index.d.ts +0 -1
- package/types/components/qr-code/types.d.ts +0 -1
- package/types/components/query-form/QueryForm.d.ts +442 -32
- package/types/components/query-form/hooks.d.ts +1 -2
- package/types/components/query-form/index.d.ts +0 -1
- package/types/components/query-form/props.d.ts +0 -1
- package/types/components/query-form/types.d.ts +0 -1
- package/types/components/shared.d.ts +0 -1
- package/types/components/startup/Startup.d.ts +5 -5
- package/types/components/startup/index.d.ts +0 -1
- package/types/components/startup/types.d.ts +0 -1
- package/types/components/tabs/Tabs.d.ts +48 -42
- package/types/components/tabs/index.d.ts +0 -1
- package/types/components/tabs/types.d.ts +0 -1
- package/types/components/test/Test.d.ts +51 -46
- package/types/components/test/index.d.ts +0 -1
- package/types/components/test/types.d.ts +0 -1
- package/types/components/verify/Verify.d.ts +14 -38
- package/types/components/verify/index.d.ts +0 -1
- package/types/directives/vDraggable.d.ts +0 -1
- package/types/directives/vResizable.d.ts +0 -1
- package/types/hooks/useDisabled.d.ts +0 -1
- package/types/hooks/useIcon.d.ts +0 -1
- package/types/hooks/useLoader.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/install.d.ts +1 -1
- package/types/list.d.ts +0 -1
- package/types/utils/install.d.ts +0 -1
- package/types/version.d.ts +2 -2
@@ -1,17 +1,371 @@
|
|
1
|
-
import {
|
2
|
-
import { IconParam } from '../';
|
1
|
+
import { nextTick, ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, VNode, ComputedRef, PublicProps } from 'vue';
|
3
2
|
import { BaseSize } from '../shared';
|
4
|
-
import {
|
3
|
+
import { ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, ContainerProps } from '../container';
|
4
|
+
import { IconParam } from '../icon';
|
5
|
+
import { HeaderProps } from '../header';
|
6
|
+
import { OnCleanup } from '@vue/reactivity';
|
7
|
+
import { DraggableOptions, ResizableOptions } from '../..';
|
5
8
|
import { DialogMode } from './types';
|
6
9
|
import { UseMouseSourceType, Position } from '@vueuse/core';
|
7
10
|
declare function __VLS_template(): {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
slots: {
|
12
|
+
actions?(_: {}): any;
|
13
|
+
default?(_: {}): any;
|
14
|
+
footer?(_: {}): any;
|
15
|
+
extra?(_: {}): any;
|
16
|
+
handle?(_: {}): any;
|
17
|
+
};
|
18
|
+
refs: {
|
19
|
+
wrapper: HTMLDivElement;
|
20
|
+
panelRef: ({
|
21
|
+
$: ComponentInternalInstance;
|
22
|
+
$data: {};
|
23
|
+
$props: Partial<{
|
24
|
+
radius: boolean;
|
25
|
+
fit: boolean;
|
26
|
+
border: boolean;
|
27
|
+
card: boolean;
|
28
|
+
}> & Omit<{
|
29
|
+
readonly radius: boolean;
|
30
|
+
readonly fit: boolean;
|
31
|
+
readonly border: boolean;
|
32
|
+
readonly card: boolean;
|
33
|
+
readonly size?: BaseSize | undefined;
|
34
|
+
readonly body?: Readonly<Partial< ExtractPropTypes<{
|
35
|
+
tag: {
|
36
|
+
type: StringConstructor;
|
37
|
+
default: string;
|
38
|
+
};
|
39
|
+
fit: {
|
40
|
+
type: BooleanConstructor;
|
41
|
+
default: boolean;
|
42
|
+
};
|
43
|
+
width: {
|
44
|
+
type: (StringConstructor | NumberConstructor)[];
|
45
|
+
};
|
46
|
+
height: {
|
47
|
+
type: (StringConstructor | NumberConstructor)[];
|
48
|
+
};
|
49
|
+
flex: {
|
50
|
+
type: BooleanConstructor;
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
inline: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
};
|
56
|
+
direction: {
|
57
|
+
type: PropType<ContainerDirection>;
|
58
|
+
default: string;
|
59
|
+
};
|
60
|
+
wrap: {
|
61
|
+
type: PropType<ContainerWrap>;
|
62
|
+
default: string;
|
63
|
+
};
|
64
|
+
justify: {
|
65
|
+
type: PropType<ContainerJustifyContent>;
|
66
|
+
default: string;
|
67
|
+
};
|
68
|
+
align: {
|
69
|
+
type: PropType<ContainerAlignItems>;
|
70
|
+
default: string;
|
71
|
+
};
|
72
|
+
alignContent: {
|
73
|
+
type: PropType<ContainerAlignContent>;
|
74
|
+
default: string;
|
75
|
+
};
|
76
|
+
grow: {
|
77
|
+
type: BooleanConstructor;
|
78
|
+
default: boolean;
|
79
|
+
};
|
80
|
+
shrink: {
|
81
|
+
type: BooleanConstructor;
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
alignSelf: {
|
85
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
86
|
+
default: string;
|
87
|
+
};
|
88
|
+
overflow: {
|
89
|
+
type: PropType<"auto" | "hidden" | "visible">;
|
90
|
+
};
|
91
|
+
padding: {
|
92
|
+
type: BooleanConstructor;
|
93
|
+
default: boolean;
|
94
|
+
};
|
95
|
+
gap: {
|
96
|
+
type: BooleanConstructor;
|
97
|
+
};
|
98
|
+
autoPointer: {
|
99
|
+
type: BooleanConstructor;
|
100
|
+
};
|
101
|
+
}>>> | undefined;
|
102
|
+
readonly footer?: Readonly<Partial< ExtractPropTypes<{
|
103
|
+
tag: {
|
104
|
+
type: StringConstructor;
|
105
|
+
default: string;
|
106
|
+
};
|
107
|
+
fit: {
|
108
|
+
type: BooleanConstructor;
|
109
|
+
default: boolean;
|
110
|
+
};
|
111
|
+
width: {
|
112
|
+
type: (StringConstructor | NumberConstructor)[];
|
113
|
+
};
|
114
|
+
height: {
|
115
|
+
type: (StringConstructor | NumberConstructor)[];
|
116
|
+
};
|
117
|
+
flex: {
|
118
|
+
type: BooleanConstructor;
|
119
|
+
default: boolean;
|
120
|
+
};
|
121
|
+
inline: {
|
122
|
+
type: BooleanConstructor;
|
123
|
+
};
|
124
|
+
direction: {
|
125
|
+
type: PropType<ContainerDirection>;
|
126
|
+
default: string;
|
127
|
+
};
|
128
|
+
wrap: {
|
129
|
+
type: PropType<ContainerWrap>;
|
130
|
+
default: string;
|
131
|
+
};
|
132
|
+
justify: {
|
133
|
+
type: PropType<ContainerJustifyContent>;
|
134
|
+
default: string;
|
135
|
+
};
|
136
|
+
align: {
|
137
|
+
type: PropType<ContainerAlignItems>;
|
138
|
+
default: string;
|
139
|
+
};
|
140
|
+
alignContent: {
|
141
|
+
type: PropType<ContainerAlignContent>;
|
142
|
+
default: string;
|
143
|
+
};
|
144
|
+
grow: {
|
145
|
+
type: BooleanConstructor;
|
146
|
+
default: boolean;
|
147
|
+
};
|
148
|
+
shrink: {
|
149
|
+
type: BooleanConstructor;
|
150
|
+
default: boolean;
|
151
|
+
};
|
152
|
+
alignSelf: {
|
153
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
154
|
+
default: string;
|
155
|
+
};
|
156
|
+
overflow: {
|
157
|
+
type: PropType<"auto" | "hidden" | "visible">;
|
158
|
+
};
|
159
|
+
padding: {
|
160
|
+
type: BooleanConstructor;
|
161
|
+
default: boolean;
|
162
|
+
};
|
163
|
+
gap: {
|
164
|
+
type: BooleanConstructor;
|
165
|
+
};
|
166
|
+
autoPointer: {
|
167
|
+
type: BooleanConstructor;
|
168
|
+
};
|
169
|
+
}>>> | undefined;
|
170
|
+
readonly header?: string | Readonly<Partial< ExtractPropTypes<{
|
171
|
+
size: {
|
172
|
+
type: PropType<BaseSize>;
|
173
|
+
default: string;
|
174
|
+
};
|
175
|
+
content: {
|
176
|
+
type: StringConstructor;
|
177
|
+
default: string;
|
178
|
+
};
|
179
|
+
subtitle: {
|
180
|
+
type: StringConstructor;
|
181
|
+
};
|
182
|
+
icon: {
|
183
|
+
type: PropType<IconParam>;
|
184
|
+
};
|
185
|
+
border: {
|
186
|
+
type: BooleanConstructor;
|
187
|
+
};
|
188
|
+
more: {
|
189
|
+
type: BooleanConstructor;
|
190
|
+
};
|
191
|
+
}>>> | null | undefined;
|
192
|
+
readonly width?: string | number | undefined;
|
193
|
+
readonly height?: string | number | undefined;
|
194
|
+
readonly shadow?: "hover" | "always" | "none" | undefined;
|
195
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
196
|
+
fit: {
|
197
|
+
type: BooleanConstructor;
|
198
|
+
default: boolean;
|
199
|
+
};
|
200
|
+
width: {
|
201
|
+
type: (StringConstructor | NumberConstructor)[];
|
202
|
+
};
|
203
|
+
height: {
|
204
|
+
type: (StringConstructor | NumberConstructor)[];
|
205
|
+
};
|
206
|
+
border: {
|
207
|
+
type: BooleanConstructor;
|
208
|
+
default: boolean;
|
209
|
+
};
|
210
|
+
radius: {
|
211
|
+
type: BooleanConstructor;
|
212
|
+
default: boolean;
|
213
|
+
};
|
214
|
+
card: {
|
215
|
+
type: BooleanConstructor;
|
216
|
+
};
|
217
|
+
size: {
|
218
|
+
type: PropType<BaseSize>;
|
219
|
+
};
|
220
|
+
shadow: {
|
221
|
+
type: PropType<"none" | "always" | "hover">;
|
222
|
+
};
|
223
|
+
header: {
|
224
|
+
type: PropType<string | HeaderProps | null>;
|
225
|
+
};
|
226
|
+
body: {
|
227
|
+
type: PropType<ContainerProps>;
|
228
|
+
};
|
229
|
+
footer: {
|
230
|
+
type: PropType<ContainerProps>;
|
231
|
+
};
|
232
|
+
}>> & Readonly<{}>, "radius" | "fit" | "border" | "card">;
|
233
|
+
$attrs: {
|
234
|
+
[x: string]: unknown;
|
235
|
+
};
|
236
|
+
$refs: {
|
237
|
+
[x: string]: unknown;
|
238
|
+
};
|
239
|
+
$slots: Readonly<{
|
240
|
+
[name: string]: Slot<any> | undefined;
|
241
|
+
}>;
|
242
|
+
$root: ComponentPublicInstance | null;
|
243
|
+
$parent: ComponentPublicInstance | null;
|
244
|
+
$host: Element | null;
|
245
|
+
$emit: (event: string, ...args: any[]) => void;
|
246
|
+
$el: any;
|
247
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
248
|
+
fit: {
|
249
|
+
type: BooleanConstructor;
|
250
|
+
default: boolean;
|
251
|
+
};
|
252
|
+
width: {
|
253
|
+
type: (StringConstructor | NumberConstructor)[];
|
254
|
+
};
|
255
|
+
height: {
|
256
|
+
type: (StringConstructor | NumberConstructor)[];
|
257
|
+
};
|
258
|
+
border: {
|
259
|
+
type: BooleanConstructor;
|
260
|
+
default: boolean;
|
261
|
+
};
|
262
|
+
radius: {
|
263
|
+
type: BooleanConstructor;
|
264
|
+
default: boolean;
|
265
|
+
};
|
266
|
+
card: {
|
267
|
+
type: BooleanConstructor;
|
268
|
+
};
|
269
|
+
size: {
|
270
|
+
type: PropType<BaseSize>;
|
271
|
+
};
|
272
|
+
shadow: {
|
273
|
+
type: PropType<"none" | "always" | "hover">;
|
274
|
+
};
|
275
|
+
header: {
|
276
|
+
type: PropType<string | HeaderProps | null>;
|
277
|
+
};
|
278
|
+
body: {
|
279
|
+
type: PropType<ContainerProps>;
|
280
|
+
};
|
281
|
+
footer: {
|
282
|
+
type: PropType<ContainerProps>;
|
283
|
+
};
|
284
|
+
}>> & Readonly<{}>, {
|
285
|
+
bodyRef: Ref<any, any>;
|
286
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
287
|
+
radius: boolean;
|
288
|
+
fit: boolean;
|
289
|
+
border: boolean;
|
290
|
+
card: boolean;
|
291
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
292
|
+
beforeCreate?: (() => void) | (() => void)[];
|
293
|
+
created?: (() => void) | (() => void)[];
|
294
|
+
beforeMount?: (() => void) | (() => void)[];
|
295
|
+
mounted?: (() => void) | (() => void)[];
|
296
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
297
|
+
updated?: (() => void) | (() => void)[];
|
298
|
+
activated?: (() => void) | (() => void)[];
|
299
|
+
deactivated?: (() => void) | (() => void)[];
|
300
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
301
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
302
|
+
destroyed?: (() => void) | (() => void)[];
|
303
|
+
unmounted?: (() => void) | (() => void)[];
|
304
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
305
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
306
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
307
|
+
};
|
308
|
+
$forceUpdate: () => void;
|
309
|
+
$nextTick: typeof nextTick;
|
310
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
311
|
+
} & Readonly<{
|
312
|
+
radius: boolean;
|
313
|
+
fit: boolean;
|
314
|
+
border: boolean;
|
315
|
+
card: boolean;
|
316
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
317
|
+
fit: {
|
318
|
+
type: BooleanConstructor;
|
319
|
+
default: boolean;
|
320
|
+
};
|
321
|
+
width: {
|
322
|
+
type: (StringConstructor | NumberConstructor)[];
|
323
|
+
};
|
324
|
+
height: {
|
325
|
+
type: (StringConstructor | NumberConstructor)[];
|
326
|
+
};
|
327
|
+
border: {
|
328
|
+
type: BooleanConstructor;
|
329
|
+
default: boolean;
|
330
|
+
};
|
331
|
+
radius: {
|
332
|
+
type: BooleanConstructor;
|
333
|
+
default: boolean;
|
334
|
+
};
|
335
|
+
card: {
|
336
|
+
type: BooleanConstructor;
|
337
|
+
};
|
338
|
+
size: {
|
339
|
+
type: PropType<BaseSize>;
|
340
|
+
};
|
341
|
+
shadow: {
|
342
|
+
type: PropType<"none" | "always" | "hover">;
|
343
|
+
};
|
344
|
+
header: {
|
345
|
+
type: PropType<string | HeaderProps | null>;
|
346
|
+
};
|
347
|
+
body: {
|
348
|
+
type: PropType<ContainerProps>;
|
349
|
+
};
|
350
|
+
footer: {
|
351
|
+
type: PropType<ContainerProps>;
|
352
|
+
};
|
353
|
+
}>> & Readonly<{}>, "bodyRef" | ("radius" | "fit" | "border" | "card")> & ShallowUnwrapRef<{
|
354
|
+
bodyRef: Ref<any, any>;
|
355
|
+
}> & {} & ComponentCustomProperties & {} & {
|
356
|
+
$slots: {
|
357
|
+
header?(_: {}): any;
|
358
|
+
title?(_: {}): any;
|
359
|
+
actions?(_: {}): any;
|
360
|
+
default?(_: {}): any;
|
361
|
+
footer?(_: {}): any;
|
362
|
+
};
|
363
|
+
}) | null;
|
364
|
+
};
|
365
|
+
attrs: Partial<{}>;
|
13
366
|
};
|
14
|
-
|
367
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
368
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
15
369
|
modelValue: {
|
16
370
|
type: BooleanConstructor;
|
17
371
|
default: boolean;
|
@@ -95,9 +449,9 @@ declare const __VLS_component: DefineComponent<{
|
|
95
449
|
primary: {
|
96
450
|
type: BooleanConstructor;
|
97
451
|
};
|
98
|
-
}
|
452
|
+
}>, {
|
99
453
|
$vtjEl: ComputedRef<any>;
|
100
|
-
panelRef: Ref<any>;
|
454
|
+
panelRef: Ref<any, any>;
|
101
455
|
state: {
|
102
456
|
mode: DialogMode;
|
103
457
|
wrapperWidth: number;
|
@@ -121,11 +475,11 @@ declare const __VLS_component: DefineComponent<{
|
|
121
475
|
componentInstance: {
|
122
476
|
componentInstance: Record<string, any>;
|
123
477
|
} | undefined;
|
124
|
-
},
|
125
|
-
close: () =>
|
126
|
-
|
127
|
-
submit: () =>
|
128
|
-
|
478
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
479
|
+
close: () => any;
|
480
|
+
open: (instance: ComponentInternalInstance) => any;
|
481
|
+
submit: () => any;
|
482
|
+
cancel: () => any;
|
129
483
|
resizing: (dir: string, mie: {
|
130
484
|
x: Ref<number>;
|
131
485
|
y: Ref<number>;
|
@@ -138,16 +492,16 @@ declare const __VLS_component: DefineComponent<{
|
|
138
492
|
elementWidth: Ref<number>;
|
139
493
|
isOutside: Ref<boolean>;
|
140
494
|
stop: () => void;
|
141
|
-
}) =>
|
142
|
-
normal: () =>
|
143
|
-
maximized: () =>
|
144
|
-
minimized: () =>
|
145
|
-
dragging: (position: Position) =>
|
146
|
-
"update:modelValue": (value: boolean) =>
|
147
|
-
destroy: () =>
|
148
|
-
modeChange: (mode: DialogMode) =>
|
149
|
-
dragStart: (position: Position) =>
|
150
|
-
dragEnd: (position: Position) =>
|
495
|
+
}) => any;
|
496
|
+
normal: () => any;
|
497
|
+
maximized: () => any;
|
498
|
+
minimized: () => any;
|
499
|
+
dragging: (position: Position) => any;
|
500
|
+
"update:modelValue": (value: boolean) => any;
|
501
|
+
destroy: () => any;
|
502
|
+
modeChange: (mode: DialogMode) => any;
|
503
|
+
dragStart: (position: Position) => any;
|
504
|
+
dragEnd: (position: Position) => any;
|
151
505
|
resizeStart: (dir: string, mie: {
|
152
506
|
x: Ref<number>;
|
153
507
|
y: Ref<number>;
|
@@ -160,7 +514,7 @@ declare const __VLS_component: DefineComponent<{
|
|
160
514
|
elementWidth: Ref<number>;
|
161
515
|
isOutside: Ref<boolean>;
|
162
516
|
stop: () => void;
|
163
|
-
}) =>
|
517
|
+
}) => any;
|
164
518
|
resizeEnd: (dir: string, mie: {
|
165
519
|
x: Ref<number>;
|
166
520
|
y: Ref<number>;
|
@@ -173,7 +527,7 @@ declare const __VLS_component: DefineComponent<{
|
|
173
527
|
elementWidth: Ref<number>;
|
174
528
|
isOutside: Ref<boolean>;
|
175
529
|
stop: () => void;
|
176
|
-
}) =>
|
530
|
+
}) => any;
|
177
531
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
178
532
|
modelValue: {
|
179
533
|
type: BooleanConstructor;
|
@@ -258,8 +612,9 @@ declare const __VLS_component: DefineComponent<{
|
|
258
612
|
primary: {
|
259
613
|
type: BooleanConstructor;
|
260
614
|
};
|
261
|
-
}>> & {
|
615
|
+
}>> & Readonly<{
|
262
616
|
onClose?: (() => any) | undefined;
|
617
|
+
onOpen?: ((instance: ComponentInternalInstance) => any) | undefined;
|
263
618
|
onSubmit?: (() => any) | undefined;
|
264
619
|
onCancel?: (() => any) | undefined;
|
265
620
|
onResizing?: ((dir: string, mie: {
|
@@ -275,7 +630,6 @@ declare const __VLS_component: DefineComponent<{
|
|
275
630
|
isOutside: Ref<boolean>;
|
276
631
|
stop: () => void;
|
277
632
|
}) => any) | undefined;
|
278
|
-
onOpen?: ((instance: ComponentInternalInstance) => any) | undefined;
|
279
633
|
onNormal?: (() => any) | undefined;
|
280
634
|
onMaximized?: (() => any) | undefined;
|
281
635
|
onMinimized?: (() => any) | undefined;
|
@@ -311,7 +665,7 @@ declare const __VLS_component: DefineComponent<{
|
|
311
665
|
isOutside: Ref<boolean>;
|
312
666
|
stop: () => void;
|
313
667
|
}) => any) | undefined;
|
314
|
-
}
|
668
|
+
}>, {
|
315
669
|
size: BaseSize;
|
316
670
|
primary: boolean;
|
317
671
|
mode: DialogMode;
|
@@ -324,8 +678,8 @@ declare const __VLS_component: DefineComponent<{
|
|
324
678
|
maximizable: boolean;
|
325
679
|
minimizable: boolean;
|
326
680
|
bodyPadding: boolean;
|
327
|
-
}, {}>;
|
328
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
681
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
682
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
329
683
|
export default _default;
|
330
684
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
331
685
|
new (): {
|
@@ -2,7 +2,6 @@ import { MaybeRef, ComputedRef } from 'vue';
|
|
2
2
|
import { DialogProps, DialogState, DialogMode, DialogEmits } from './types';
|
3
3
|
import { Emits } from '../';
|
4
4
|
import { DraggableOptions, ResizableOptions } from '../../directives';
|
5
|
-
|
6
5
|
export declare function useState(props: DialogProps, wrapper: MaybeRef<HTMLElement>): {
|
7
6
|
state: {
|
8
7
|
mode: DialogMode;
|
@@ -3,7 +3,6 @@ import { Position } from '@vueuse/core';
|
|
3
3
|
import { ComponentPropsType, BaseSize } from '../shared';
|
4
4
|
import { IconParam } from '../';
|
5
5
|
import { DraggableOptions, ResizableOptions, UseMouseInElementReturn } from '../../directives';
|
6
|
-
|
7
6
|
export type DialogMode = 'normal' | 'maximized' | 'minimized';
|
8
7
|
export declare const dialogProps: {
|
9
8
|
modelValue: {
|