@vtj/designer 0.13.16 → 0.13.18
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/Editor-C46Axool.js +4 -0
- package/dist/{index-Cz7lb3tK.js → index-DOGS-4QF.js} +4054 -4010
- package/dist/index.mjs +15 -14
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/types/components/setters/image.d.ts +553 -2
- package/types/components/setters/index.d.ts +553 -2
- package/types/components/shared/viewer.d.ts +750 -750
- package/types/components/widgets/ai/chat-input.d.ts +2 -0
- package/types/components/widgets/ai/json-input.d.ts +19 -6
- package/types/components/widgets/apis/form.d.ts +1 -1
- package/types/utils.d.ts +25 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-BYRlEJ7f.js +0 -4
@@ -12,9 +12,11 @@ export interface Props {
|
|
12
12
|
declare const _default: DefineComponent<Props, {
|
13
13
|
currentModel: Ref<any, any>;
|
14
14
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
15
|
+
cancel: () => any;
|
15
16
|
"update:modelValue": (value: string) => any;
|
16
17
|
send: (value: AISendData) => any;
|
17
18
|
}, string, PublicProps, Readonly<Props> & Readonly<{
|
19
|
+
onCancel?: (() => any) | undefined;
|
18
20
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
19
21
|
onSend?: ((value: AISendData) => any) | undefined;
|
20
22
|
}>, {
|
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
25
25
|
readonly validateEvent: boolean;
|
26
26
|
readonly inputStyle: StyleValue;
|
27
27
|
readonly rows: number;
|
28
|
-
readonly inputmode: "
|
28
|
+
readonly inputmode: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
29
29
|
readonly clearable: boolean;
|
30
30
|
readonly showPassword: boolean;
|
31
31
|
readonly showWordLimit: boolean;
|
@@ -51,12 +51,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
51
51
|
readonly ariaLabel?: string | undefined;
|
52
52
|
readonly form?: string | undefined;
|
53
53
|
readonly placeholder?: string | undefined;
|
54
|
-
readonly inputmode?: "
|
54
|
+
readonly inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
55
55
|
readonly maxlength?: (string | number) | undefined;
|
56
56
|
readonly minlength?: (string | number) | undefined;
|
57
57
|
readonly resize?: ("none" | "horizontal" | "vertical" | "both") | undefined;
|
58
58
|
readonly formatter?: Function | undefined;
|
59
59
|
readonly parser?: Function | undefined;
|
60
|
+
readonly clearIcon?: (string | Component) | undefined;
|
60
61
|
readonly suffixIcon?: (string | Component) | undefined;
|
61
62
|
readonly prefixIcon?: (string | Component) | undefined;
|
62
63
|
readonly containerRole?: string | undefined;
|
@@ -89,7 +90,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
89
90
|
$el: any;
|
90
91
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
91
92
|
readonly inputmode: {
|
92
|
-
readonly type: PropType<"
|
93
|
+
readonly type: PropType<"text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
|
93
94
|
readonly required: false;
|
94
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
95
96
|
__epPropKey: true;
|
@@ -189,6 +190,12 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
189
190
|
};
|
190
191
|
readonly readonly: BooleanConstructor;
|
191
192
|
readonly clearable: BooleanConstructor;
|
193
|
+
readonly clearIcon: {
|
194
|
+
readonly type: PropType<string | Component>;
|
195
|
+
readonly required: false;
|
196
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
197
|
+
__epPropKey: true;
|
198
|
+
};
|
192
199
|
readonly showPassword: BooleanConstructor;
|
193
200
|
readonly showWordLimit: BooleanConstructor;
|
194
201
|
readonly suffixIcon: {
|
@@ -295,7 +302,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
295
302
|
readonly validateEvent: boolean;
|
296
303
|
readonly inputStyle: StyleValue;
|
297
304
|
readonly rows: number;
|
298
|
-
readonly inputmode: "
|
305
|
+
readonly inputmode: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
299
306
|
readonly clearable: boolean;
|
300
307
|
readonly showPassword: boolean;
|
301
308
|
readonly showWordLimit: boolean;
|
@@ -333,14 +340,14 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
333
340
|
readonly validateEvent: boolean;
|
334
341
|
readonly inputStyle: StyleValue;
|
335
342
|
readonly rows: number;
|
336
|
-
readonly inputmode: "
|
343
|
+
readonly inputmode: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
337
344
|
readonly clearable: boolean;
|
338
345
|
readonly showPassword: boolean;
|
339
346
|
readonly showWordLimit: boolean;
|
340
347
|
readonly autofocus: boolean;
|
341
348
|
}> & Omit<Readonly< ExtractPropTypes<{
|
342
349
|
readonly inputmode: {
|
343
|
-
readonly type: PropType<"
|
350
|
+
readonly type: PropType<"text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
|
344
351
|
readonly required: false;
|
345
352
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
346
353
|
__epPropKey: true;
|
@@ -440,6 +447,12 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
440
447
|
};
|
441
448
|
readonly readonly: BooleanConstructor;
|
442
449
|
readonly clearable: BooleanConstructor;
|
450
|
+
readonly clearIcon: {
|
451
|
+
readonly type: PropType<string | Component>;
|
452
|
+
readonly required: false;
|
453
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
454
|
+
__epPropKey: true;
|
455
|
+
};
|
443
456
|
readonly showPassword: BooleanConstructor;
|
444
457
|
readonly showWordLimit: BooleanConstructor;
|
445
458
|
readonly suffixIcon: {
|
@@ -48,6 +48,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
48
48
|
readonly cancel?: string | boolean | undefined;
|
49
49
|
readonly icon?: IconParam | undefined;
|
50
50
|
readonly zIndex?: number | undefined;
|
51
|
+
readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
51
52
|
readonly content?: Record<string, any> | VNode<RendererNode, RendererElement, {
|
52
53
|
[key: string]: any;
|
53
54
|
}> | DefineComponent<any, any, any, any> | undefined;
|
@@ -56,7 +57,6 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
56
57
|
readonly subtitle?: string | undefined;
|
57
58
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
58
59
|
readonly componentInstance?: Record<string, any> | null | undefined;
|
59
|
-
readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
60
60
|
readonly onClose?: (() => any) | undefined | undefined;
|
61
61
|
readonly onOpen?: ((instance: ComponentInternalInstance) => any) | undefined | undefined;
|
62
62
|
readonly onCancel?: (() => any) | undefined | undefined;
|
package/types/utils.d.ts
CHANGED
@@ -1,7 +1,31 @@
|
|
1
1
|
import { JSExpression, JSFunction } from '@vtj/core';
|
2
|
-
import { MessageBoxData, NotificationHandle, MessageHandler } from 'element-plus';
|
2
|
+
import { LoadingOptions, MessageBoxData, NotificationHandle, LoadingParentElement, MessageHandler } from 'element-plus';
|
3
|
+
import { ComponentPublicInstance, ComponentOptionsBase, Ref } from 'vue';
|
3
4
|
export declare function alert(message: string, options?: any): Promise< MessageBoxData>;
|
4
5
|
export declare function notify(message: string, title?: string): NotificationHandle;
|
6
|
+
export declare function loading(options?: LoadingOptions): {
|
7
|
+
setText: (text: string) => void;
|
8
|
+
removeElLoadingChild: () => void;
|
9
|
+
close: () => void;
|
10
|
+
handleAfterLeave: () => void;
|
11
|
+
vm: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
12
|
+
$el: HTMLElement;
|
13
|
+
originalPosition: Ref<string>;
|
14
|
+
originalOverflow: Ref<string>;
|
15
|
+
visible: Ref<boolean>;
|
16
|
+
parent: Ref<LoadingParentElement>;
|
17
|
+
background: Ref<string>;
|
18
|
+
svg: Ref<string>;
|
19
|
+
svgViewBox: Ref<string>;
|
20
|
+
spinner: Ref<string | boolean>;
|
21
|
+
text: Ref<string>;
|
22
|
+
fullscreen: Ref<boolean>;
|
23
|
+
lock: Ref<boolean>;
|
24
|
+
customClass: Ref<string>;
|
25
|
+
target: Ref<HTMLElement>;
|
26
|
+
beforeClose?: Ref<(() => boolean) | undefined> | undefined;
|
27
|
+
closed?: Ref<(() => void) | undefined> | undefined;
|
28
|
+
};
|
5
29
|
export declare function confirm(message: string, options?: any): Promise<boolean | MessageBoxData>;
|
6
30
|
export declare function message(message: string, type?: 'success' | 'warning'): MessageHandler;
|
7
31
|
export declare function proxyContext(context: any): any;
|
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/designer
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.13.
|
5
|
+
* @version 0.13.17
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.13.
|
8
|
+
export declare const version = "0.13.17";
|
package/dist/Editor-BYRlEJ7f.js
DELETED