@vtj/ui 0.8.152 → 0.8.153

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/ui",
3
3
  "private": false,
4
- "version": "0.8.152",
4
+ "version": "0.8.153",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=16.0.0"
@@ -12,8 +12,8 @@
12
12
  "sortablejs": "~1.15.2",
13
13
  "vxe-table": "~4.6.17",
14
14
  "vxe-table-plugin-menus": "~4.0.3",
15
- "@vtj/icons": "~0.8.152",
16
- "@vtj/utils": "~0.8.152"
15
+ "@vtj/icons": "~0.8.153",
16
+ "@vtj/utils": "~0.8.153"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/qrcode": "^1.5.5",
@@ -1,4 +1,4 @@
1
- import { Ref, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
1
+ import { Ref, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
2
2
  import { UploadUserFile, UploadFile, UploadFiles, UploadRawFile, UploadRequestHandler, UploadProgressEvent } from 'element-plus';
3
3
  import { AttachmentFile, AttachmentUploader, AttachmentThumbnail, AttachmentFileType } from './types';
4
4
  import { EpPropMergeType, Awaitable, Mutable, EpPropFinalized } from 'element-plus/es/utils/index.mjs';
@@ -65,121 +65,7 @@ declare function __VLS_template(): {
65
65
  readonly limit?: number | undefined;
66
66
  readonly beforeRemove?: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>) | undefined;
67
67
  readonly headers?: EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown> | undefined;
68
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
69
- readonly beforeUpload: EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | {
70
- (): (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
71
- new (): any;
72
- readonly prototype: any;
73
- } | ((new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>) | {
74
- (): (rawFile: UploadRawFile) => Awaitable<boolean | void | File | Blob | null | undefined>;
75
- new (): any;
76
- readonly prototype: any;
77
- })[], unknown, unknown, () => void, boolean>;
78
- readonly beforeRemove: {
79
- readonly type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
80
- readonly required: false;
81
- readonly validator: ((val: unknown) => boolean) | undefined;
82
- __epPropKey: true;
83
- };
84
- readonly onRemove: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
85
- (): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
86
- new (): any;
87
- readonly prototype: any;
88
- } | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
89
- (): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
90
- new (): any;
91
- readonly prototype: any;
92
- })[], unknown, unknown, () => void, boolean>;
93
- readonly onChange: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
94
- (): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
95
- new (): any;
96
- readonly prototype: any;
97
- } | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
98
- (): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
99
- new (): any;
100
- readonly prototype: any;
101
- })[], unknown, unknown, () => void, boolean>;
102
- readonly onPreview: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
103
- (): (uploadFile: UploadFile) => void;
104
- new (): any;
105
- readonly prototype: any;
106
- } | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
107
- (): (uploadFile: UploadFile) => void;
108
- new (): any;
109
- readonly prototype: any;
110
- })[], unknown, unknown, () => void, boolean>;
111
- readonly onSuccess: EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
112
- (): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
113
- new (): any;
114
- readonly prototype: any;
115
- } | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
116
- (): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
117
- new (): any;
118
- readonly prototype: any;
119
- })[], unknown, unknown, () => void, boolean>;
120
- readonly onProgress: EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
121
- (): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
122
- new (): any;
123
- readonly prototype: any;
124
- } | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
125
- (): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
126
- new (): any;
127
- readonly prototype: any;
128
- })[], unknown, unknown, () => void, boolean>;
129
- readonly onError: EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
130
- (): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
131
- new (): any;
132
- readonly prototype: any;
133
- } | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
134
- (): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
135
- new (): any;
136
- readonly prototype: any;
137
- })[], unknown, unknown, () => void, boolean>;
138
- readonly onExceed: EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
139
- (): (files: File[], uploadFiles: UploadUserFile[]) => void;
140
- new (): any;
141
- readonly prototype: any;
142
- } | ((new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
143
- (): (files: File[], uploadFiles: UploadUserFile[]) => void;
144
- new (): any;
145
- readonly prototype: any;
146
- })[], unknown, unknown, () => void, boolean>;
147
- readonly crossorigin: {
148
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
149
- readonly required: false;
150
- readonly validator: ((val: unknown) => boolean) | undefined;
151
- __epPropKey: true;
152
- };
153
- readonly action: EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
154
- readonly headers: {
155
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
156
- readonly required: false;
157
- readonly validator: ((val: unknown) => boolean) | undefined;
158
- __epPropKey: true;
159
- };
160
- readonly method: EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
161
- readonly data: EpPropFinalized<(new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Mutable<Record<string, any>> | Promise< Mutable<Record<string, any>>>) | (() => ((rawFile: UploadRawFile) => Awaitable<Mutable<Record<string, any>>>) | Awaitable<Mutable<Record<string, any>>>))[], unknown, unknown, () => Mutable<{}>, boolean>;
162
- readonly multiple: BooleanConstructor;
163
- readonly name: EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
164
- readonly drag: BooleanConstructor;
165
- readonly withCredentials: BooleanConstructor;
166
- readonly showFileList: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
167
- readonly accept: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
168
- readonly fileList: EpPropFinalized<(new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]) | ((new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
169
- readonly autoUpload: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
170
- readonly listType: EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
171
- readonly httpRequest: EpPropFinalized<(new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
172
- (): UploadRequestHandler;
173
- new (): any;
174
- readonly prototype: any;
175
- } | ((new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
176
- (): UploadRequestHandler;
177
- new (): any;
178
- readonly prototype: any;
179
- })[], unknown, unknown, UploadRequestHandler, boolean>;
180
- readonly disabled: BooleanConstructor;
181
- readonly limit: NumberConstructor;
182
- }>>, "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "drag" | "action" | "onRemove" | "multiple" | "accept" | "listType" | "beforeUpload" | "autoUpload" | "fileList" | "onPreview" | "onSuccess" | "onExceed" | "method" | "withCredentials" | "showFileList" | "httpRequest">;
68
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "drag" | "action" | "onRemove" | "multiple" | "accept" | "listType" | "beforeUpload" | "autoUpload" | "fileList" | "onPreview" | "onSuccess" | "onExceed" | "method" | "withCredentials" | "showFileList" | "httpRequest">;
183
69
  $attrs: {
184
70
  [x: string]: unknown;
185
71
  };
@@ -192,44 +192,7 @@ declare function __VLS_template(): {
192
192
  readonly width?: string | number | undefined;
193
193
  readonly height?: string | number | undefined;
194
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">;
195
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
233
196
  $attrs: {
234
197
  [x: string]: unknown;
235
198
  };
@@ -1,4 +1,4 @@
1
- import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, Ref, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps } from 'vue';
1
+ import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, Ref, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps } from 'vue';
2
2
  import { BaseSize } from '../shared';
3
3
  import { DialogMode } from '../dialog';
4
4
  import { DraggableOptions, ResizableOptions } from '../..';
@@ -110,144 +110,7 @@ declare function __VLS_template(): {
110
110
  isOutside: Ref<boolean, boolean>;
111
111
  stop: () => void;
112
112
  }) => any) | undefined;
113
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
114
- modelValue: {
115
- type: BooleanConstructor;
116
- default: boolean;
117
- };
118
- title: {
119
- type: StringConstructor;
120
- };
121
- subtitle: {
122
- type: StringConstructor;
123
- };
124
- icon: {
125
- type: PropType<IconParam>;
126
- };
127
- size: {
128
- type: PropType<BaseSize>;
129
- default: string;
130
- };
131
- width: {
132
- type: (StringConstructor | NumberConstructor)[];
133
- default: string;
134
- };
135
- height: {
136
- type: (StringConstructor | NumberConstructor)[];
137
- default: string;
138
- };
139
- left: {
140
- type: (StringConstructor | NumberConstructor)[];
141
- };
142
- top: {
143
- type: (StringConstructor | NumberConstructor)[];
144
- };
145
- modal: {
146
- type: BooleanConstructor;
147
- default: boolean;
148
- };
149
- draggable: {
150
- type: PropType<boolean | DraggableOptions>;
151
- default: boolean;
152
- };
153
- resizable: {
154
- type: PropType<boolean | ResizableOptions>;
155
- };
156
- closable: {
157
- type: BooleanConstructor;
158
- default: boolean;
159
- };
160
- maximizable: {
161
- type: BooleanConstructor;
162
- default: boolean;
163
- };
164
- minimizable: {
165
- type: BooleanConstructor;
166
- default: boolean;
167
- };
168
- mode: {
169
- type: PropType<DialogMode>;
170
- default: string;
171
- };
172
- content: {
173
- type: PropType< VNode | DefineComponent<any, any, any, any> | Record<string, any>>;
174
- };
175
- src: {
176
- type: StringConstructor;
177
- };
178
- componentInstance: {
179
- type: PropType<Record<string, any> | null>;
180
- };
181
- beforeClose: {
182
- type: PropType<() => boolean | Promise<boolean>>;
183
- };
184
- submit: {
185
- type: (BooleanConstructor | StringConstructor)[];
186
- };
187
- cancel: {
188
- type: (BooleanConstructor | StringConstructor)[];
189
- };
190
- bodyPadding: {
191
- type: BooleanConstructor;
192
- default: boolean;
193
- };
194
- primary: {
195
- type: BooleanConstructor;
196
- };
197
- }>> & Readonly<{
198
- onClose?: (() => any) | undefined;
199
- onOpen?: ((instance: ComponentInternalInstance) => any) | undefined;
200
- onSubmit?: (() => any) | undefined;
201
- onCancel?: (() => any) | undefined;
202
- onResizing?: ((dir: string, mie: {
203
- x: Ref<number, number>;
204
- y: Ref<number, number>;
205
- sourceType: Ref<UseMouseSourceType, UseMouseSourceType>;
206
- elementX: Ref<number, number>;
207
- elementY: Ref<number, number>;
208
- elementPositionX: Ref<number, number>;
209
- elementPositionY: Ref<number, number>;
210
- elementHeight: Ref<number, number>;
211
- elementWidth: Ref<number, number>;
212
- isOutside: Ref<boolean, boolean>;
213
- stop: () => void;
214
- }) => any) | undefined;
215
- onNormal?: (() => any) | undefined;
216
- onMaximized?: (() => any) | undefined;
217
- onMinimized?: (() => any) | undefined;
218
- onDragging?: ((position: Position) => any) | undefined;
219
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
220
- onDestroy?: (() => any) | undefined;
221
- onModeChange?: ((mode: DialogMode) => any) | undefined;
222
- onDragStart?: ((position: Position) => any) | undefined;
223
- onDragEnd?: ((position: Position) => any) | undefined;
224
- onResizeStart?: ((dir: string, mie: {
225
- x: Ref<number, number>;
226
- y: Ref<number, number>;
227
- sourceType: Ref<UseMouseSourceType, UseMouseSourceType>;
228
- elementX: Ref<number, number>;
229
- elementY: Ref<number, number>;
230
- elementPositionX: Ref<number, number>;
231
- elementPositionY: Ref<number, number>;
232
- elementHeight: Ref<number, number>;
233
- elementWidth: Ref<number, number>;
234
- isOutside: Ref<boolean, boolean>;
235
- stop: () => void;
236
- }) => any) | undefined;
237
- onResizeEnd?: ((dir: string, mie: {
238
- x: Ref<number, number>;
239
- y: Ref<number, number>;
240
- sourceType: Ref<UseMouseSourceType, UseMouseSourceType>;
241
- elementX: Ref<number, number>;
242
- elementY: Ref<number, number>;
243
- elementPositionX: Ref<number, number>;
244
- elementPositionY: Ref<number, number>;
245
- elementHeight: Ref<number, number>;
246
- elementWidth: Ref<number, number>;
247
- isOutside: Ref<boolean, boolean>;
248
- stop: () => void;
249
- }) => any) | undefined;
250
- }>, "size" | "primary" | "mode" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
113
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "primary" | "mode" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
251
114
  $attrs: {
252
115
  [x: string]: unknown;
253
116
  };
@@ -754,41 +617,7 @@ declare function __VLS_template(): {
754
617
  readonly onReset?: (() => any) | undefined;
755
618
  readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
756
619
  readonly onChange?: ((model: Record<string, any>) => any) | undefined;
757
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
758
- model: {
759
- type: PropType<Record<string, any>>;
760
- default(): any;
761
- };
762
- inline: {
763
- type: BooleanConstructor;
764
- };
765
- inlineColumns: {
766
- type: NumberConstructor;
767
- };
768
- footer: {
769
- type: BooleanConstructor;
770
- default: boolean;
771
- };
772
- submitText: {
773
- type: PropType<string | null>;
774
- default: string;
775
- };
776
- resetText: {
777
- type: PropType<string | null>;
778
- default: string;
779
- };
780
- submitMethod: {
781
- type: PropType<(model: FormModel) => Promise<any>>;
782
- };
783
- tooltipMessage: {
784
- type: PropType<boolean | Partial< ElTooltipProps>>;
785
- default: undefined;
786
- };
787
- }>> & Readonly<{
788
- onReset?: (() => any) | undefined;
789
- onSubmit?: ((model: Record<string, any>) => any) | undefined;
790
- onChange?: ((model: Record<string, any>) => any) | undefined;
791
- }>, "footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText">;
620
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText">;
792
621
  $attrs: {
793
622
  [x: string]: unknown;
794
623
  };
@@ -1,6 +1,6 @@
1
1
  import { DialogGridProps } from './types';
2
2
  import { VxeTableConstructor, VxeGridConstructor, VxeTableDataRow, SlotVNodeType, VxeGridInstance } from 'vxe-table';
3
- import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, Ref, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps } from 'vue';
3
+ import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, Ref, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, PublicProps } from 'vue';
4
4
  import { BaseSize, DialogMode, IconParam, GridColumns, GridCustomInfo, GridLoader, GridCellRenders, GridEditRenders, GridFilterRenders, GridSortableEvent, GridSortableOptions } from '..';
5
5
  import { DraggableOptions, ResizableOptions } from '../..';
6
6
  import { UseMouseSourceType, Position } from '@vueuse/core';
@@ -128,144 +128,7 @@ declare function __VLS_template(): {
128
128
  isOutside: Ref<boolean, boolean>;
129
129
  stop: () => void;
130
130
  }) => any) | undefined;
131
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
132
- modelValue: {
133
- type: BooleanConstructor;
134
- default: boolean;
135
- };
136
- title: {
137
- type: StringConstructor;
138
- };
139
- subtitle: {
140
- type: StringConstructor;
141
- };
142
- icon: {
143
- type: PropType<IconParam>;
144
- };
145
- size: {
146
- type: PropType<BaseSize>;
147
- default: string;
148
- };
149
- width: {
150
- type: (StringConstructor | NumberConstructor)[];
151
- default: string;
152
- };
153
- height: {
154
- type: (StringConstructor | NumberConstructor)[];
155
- default: string;
156
- };
157
- left: {
158
- type: (StringConstructor | NumberConstructor)[];
159
- };
160
- top: {
161
- type: (StringConstructor | NumberConstructor)[];
162
- };
163
- modal: {
164
- type: BooleanConstructor;
165
- default: boolean;
166
- };
167
- draggable: {
168
- type: PropType<boolean | DraggableOptions>;
169
- default: boolean;
170
- };
171
- resizable: {
172
- type: PropType<boolean | ResizableOptions>;
173
- };
174
- closable: {
175
- type: BooleanConstructor;
176
- default: boolean;
177
- };
178
- maximizable: {
179
- type: BooleanConstructor;
180
- default: boolean;
181
- };
182
- minimizable: {
183
- type: BooleanConstructor;
184
- default: boolean;
185
- };
186
- mode: {
187
- type: PropType<DialogMode>;
188
- default: string;
189
- };
190
- content: {
191
- type: PropType< VNode | DefineComponent<any, any, any, any> | Record<string, any>>;
192
- };
193
- src: {
194
- type: StringConstructor;
195
- };
196
- componentInstance: {
197
- type: PropType<Record<string, any> | null>;
198
- };
199
- beforeClose: {
200
- type: PropType<() => boolean | Promise<boolean>>;
201
- };
202
- submit: {
203
- type: (BooleanConstructor | StringConstructor)[];
204
- };
205
- cancel: {
206
- type: (BooleanConstructor | StringConstructor)[];
207
- };
208
- bodyPadding: {
209
- type: BooleanConstructor;
210
- default: boolean;
211
- };
212
- primary: {
213
- type: BooleanConstructor;
214
- };
215
- }>> & Readonly<{
216
- onClose?: (() => any) | undefined;
217
- onOpen?: ((instance: ComponentInternalInstance) => any) | undefined;
218
- onSubmit?: (() => any) | undefined;
219
- onCancel?: (() => any) | undefined;
220
- onResizing?: ((dir: string, mie: {
221
- x: Ref<number, number>;
222
- y: Ref<number, number>;
223
- sourceType: Ref<UseMouseSourceType, UseMouseSourceType>;
224
- elementX: Ref<number, number>;
225
- elementY: Ref<number, number>;
226
- elementPositionX: Ref<number, number>;
227
- elementPositionY: Ref<number, number>;
228
- elementHeight: Ref<number, number>;
229
- elementWidth: Ref<number, number>;
230
- isOutside: Ref<boolean, boolean>;
231
- stop: () => void;
232
- }) => any) | undefined;
233
- onNormal?: (() => any) | undefined;
234
- onMaximized?: (() => any) | undefined;
235
- onMinimized?: (() => any) | undefined;
236
- onDragging?: ((position: Position) => any) | undefined;
237
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
238
- onDestroy?: (() => any) | undefined;
239
- onModeChange?: ((mode: DialogMode) => any) | undefined;
240
- onDragStart?: ((position: Position) => any) | undefined;
241
- onDragEnd?: ((position: Position) => any) | undefined;
242
- onResizeStart?: ((dir: string, mie: {
243
- x: Ref<number, number>;
244
- y: Ref<number, number>;
245
- sourceType: Ref<UseMouseSourceType, UseMouseSourceType>;
246
- elementX: Ref<number, number>;
247
- elementY: Ref<number, number>;
248
- elementPositionX: Ref<number, number>;
249
- elementPositionY: Ref<number, number>;
250
- elementHeight: Ref<number, number>;
251
- elementWidth: Ref<number, number>;
252
- isOutside: Ref<boolean, boolean>;
253
- stop: () => void;
254
- }) => any) | undefined;
255
- onResizeEnd?: ((dir: string, mie: {
256
- x: Ref<number, number>;
257
- y: Ref<number, number>;
258
- sourceType: Ref<UseMouseSourceType, UseMouseSourceType>;
259
- elementX: Ref<number, number>;
260
- elementY: Ref<number, number>;
261
- elementPositionX: Ref<number, number>;
262
- elementPositionY: Ref<number, number>;
263
- elementHeight: Ref<number, number>;
264
- elementWidth: Ref<number, number>;
265
- isOutside: Ref<boolean, boolean>;
266
- stop: () => void;
267
- }) => any) | undefined;
268
- }>, "size" | "primary" | "mode" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
131
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "size" | "primary" | "mode" | "draggable" | "width" | "height" | "modelValue" | "modal" | "closable" | "maximizable" | "minimizable" | "bodyPadding">;
269
132
  $attrs: {
270
133
  [x: string]: unknown;
271
134
  };
@@ -794,90 +657,7 @@ declare function __VLS_template(): {
794
657
  readonly onCellSelected?: ((params: any) => any) | undefined;
795
658
  readonly onEditChange?: ((data: any[]) => any) | undefined;
796
659
  readonly onLoaded?: ((rows: any[]) => any) | undefined;
797
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
798
- id: {
799
- type: StringConstructor;
800
- };
801
- columns: {
802
- type: PropType<GridColumns>;
803
- default(): GridColumns;
804
- };
805
- loader: {
806
- type: PropType<GridLoader>;
807
- };
808
- rowSortable: {
809
- type: PropType<boolean | GridSortableOptions>;
810
- default: boolean;
811
- };
812
- columnSortable: {
813
- type: PropType<boolean | GridSortableOptions>;
814
- default: boolean;
815
- };
816
- customable: {
817
- type: BooleanConstructor;
818
- };
819
- getCustom: {
820
- type: PropType<(id: string) => Promise< GridCustomInfo>>;
821
- };
822
- saveCustom: {
823
- type: PropType<(info: GridCustomInfo) => Promise<any>>;
824
- };
825
- resizable: {
826
- type: BooleanConstructor;
827
- default: boolean;
828
- };
829
- pager: {
830
- type: BooleanConstructor;
831
- };
832
- page: {
833
- type: NumberConstructor;
834
- default: number;
835
- };
836
- pageSize: {
837
- type: NumberConstructor;
838
- default: number;
839
- };
840
- pageSizes: {
841
- type: PropType<number[]>;
842
- default: () => number[];
843
- };
844
- auto: {
845
- type: BooleanConstructor;
846
- default: boolean;
847
- };
848
- virtual: {
849
- type: BooleanConstructor;
850
- default: boolean;
851
- };
852
- cellRenders: {
853
- type: PropType<GridCellRenders>;
854
- };
855
- editRenders: {
856
- type: PropType<GridEditRenders>;
857
- };
858
- filterRenders: {
859
- type: PropType<GridFilterRenders>;
860
- };
861
- editable: {
862
- type: BooleanConstructor;
863
- default: boolean;
864
- };
865
- sumFields: {
866
- type: PropType<string[]>;
867
- };
868
- avgFields: {
869
- type: PropType<string[]>;
870
- };
871
- sumAllFields: {
872
- type: PropType<Record<string, number>>;
873
- };
874
- }>> & Readonly<{
875
- onRowSort?: ((e: GridSortableEvent) => any) | undefined;
876
- onColumnSort?: ((e: GridSortableEvent) => any) | undefined;
877
- onCellSelected?: ((params: any) => any) | undefined;
878
- onEditChange?: ((data: any[]) => any) | undefined;
879
- onLoaded?: ((rows: any[]) => any) | undefined;
880
- }>, "auto" | "resizable" | "editable" | "page" | "pageSize" | "columns" | "rowSortable" | "columnSortable" | "customable" | "pager" | "pageSizes" | "virtual">;
660
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "auto" | "resizable" | "editable" | "page" | "pageSize" | "columns" | "rowSortable" | "columnSortable" | "customable" | "pager" | "pageSizes" | "virtual">;
881
661
  $attrs: {
882
662
  [x: string]: unknown;
883
663
  };