@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
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/ui",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.8.
|
4
|
+
"version": "0.8.138",
|
5
5
|
"type": "module",
|
6
6
|
"engines": {
|
7
7
|
"node": ">=16.0.0"
|
@@ -12,16 +12,16 @@
|
|
12
12
|
"sortablejs": "~1.15.2",
|
13
13
|
"vxe-table": "~4.6.17",
|
14
14
|
"vxe-table-plugin-menus": "~4.0.3",
|
15
|
-
"@vtj/
|
16
|
-
"@vtj/
|
15
|
+
"@vtj/utils": "~0.8.138",
|
16
|
+
"@vtj/icons": "~0.8.138"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
19
|
"@types/qrcode": "^1.5.5",
|
20
20
|
"@types/sortablejs": "~1.15.8",
|
21
21
|
"qrcode": "~1.5.3",
|
22
|
-
"vue": "~3.
|
22
|
+
"vue": "~3.5.5",
|
23
23
|
"vue-router": "~4.4.0",
|
24
|
-
"@vtj/cli": "~0.8.
|
24
|
+
"@vtj/cli": "~0.8.33"
|
25
25
|
},
|
26
26
|
"files": [
|
27
27
|
"dist",
|
package/types/adapter.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Plugin, InjectionKey } from 'vue';
|
2
2
|
import { GridCustomInfo, BuiltinFieldEditor } from './components';
|
3
3
|
import { VXETableConfigOptions } from 'vxe-table';
|
4
|
-
|
5
4
|
export declare const ADAPTER_KEY: InjectionKey<Adapter>;
|
6
5
|
export interface UploaderResponse {
|
7
6
|
url: string;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin,
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { IconParam, BaseSize, BaseType } from '..';
|
3
3
|
import { ActionMode, ActionMenuItem, ActionDropdown } from './types';
|
4
4
|
import { ElTooltipProps, BadgeProps, ButtonProps, TooltipTriggerType } from 'element-plus';
|
5
5
|
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
6
6
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
7
|
-
declare const _default: DefineComponent<{
|
7
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
8
8
|
name: {
|
9
9
|
type: StringConstructor;
|
10
10
|
};
|
@@ -56,7 +56,7 @@ declare const _default: DefineComponent<{
|
|
56
56
|
draggable: {
|
57
57
|
type: BooleanConstructor;
|
58
58
|
};
|
59
|
-
}
|
59
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
60
60
|
click: (props: Readonly<Partial< ExtractPropTypes<{
|
61
61
|
name: {
|
62
62
|
type: StringConstructor;
|
@@ -145,7 +145,8 @@ declare const _default: DefineComponent<{
|
|
145
145
|
draggable: {
|
146
146
|
type: BooleanConstructor;
|
147
147
|
};
|
148
|
-
}>>>) =>
|
148
|
+
}>>>) => any;
|
149
|
+
command: (item: ActionMenuItem) => any;
|
149
150
|
dragend: (props: Readonly<Partial< ExtractPropTypes<{
|
150
151
|
name: {
|
151
152
|
type: StringConstructor;
|
@@ -234,7 +235,7 @@ declare const _default: DefineComponent<{
|
|
234
235
|
draggable: {
|
235
236
|
type: BooleanConstructor;
|
236
237
|
};
|
237
|
-
}>>>, e: any) =>
|
238
|
+
}>>>, e: any) => any;
|
238
239
|
dragstart: (props: Readonly<Partial< ExtractPropTypes<{
|
239
240
|
name: {
|
240
241
|
type: StringConstructor;
|
@@ -323,8 +324,7 @@ declare const _default: DefineComponent<{
|
|
323
324
|
draggable: {
|
324
325
|
type: BooleanConstructor;
|
325
326
|
};
|
326
|
-
}>>>, e: any) =>
|
327
|
-
command: (item: ActionMenuItem) => void;
|
327
|
+
}>>>, e: any) => any;
|
328
328
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
329
329
|
name: {
|
330
330
|
type: StringConstructor;
|
@@ -377,7 +377,7 @@ declare const _default: DefineComponent<{
|
|
377
377
|
draggable: {
|
378
378
|
type: BooleanConstructor;
|
379
379
|
};
|
380
|
-
}>> & {
|
380
|
+
}>> & Readonly<{
|
381
381
|
onClick?: ((props: Readonly<Partial< ExtractPropTypes<{
|
382
382
|
name: {
|
383
383
|
type: StringConstructor;
|
@@ -467,6 +467,7 @@ declare const _default: DefineComponent<{
|
|
467
467
|
type: BooleanConstructor;
|
468
468
|
};
|
469
469
|
}>>>) => any) | undefined;
|
470
|
+
onCommand?: ((item: ActionMenuItem) => any) | undefined;
|
470
471
|
onDragend?: ((props: Readonly<Partial< ExtractPropTypes<{
|
471
472
|
name: {
|
472
473
|
type: StringConstructor;
|
@@ -645,12 +646,11 @@ declare const _default: DefineComponent<{
|
|
645
646
|
type: BooleanConstructor;
|
646
647
|
};
|
647
648
|
}>>>, e: any) => any) | undefined;
|
648
|
-
|
649
|
-
}, {
|
649
|
+
}>, {
|
650
650
|
size: BaseSize;
|
651
651
|
background: "hover" | "always" | "none";
|
652
|
-
mode: ActionMode;
|
653
652
|
circle: boolean;
|
653
|
+
mode: ActionMode;
|
654
654
|
draggable: boolean;
|
655
|
-
}, {}>;
|
655
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
656
656
|
export default _default;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps,
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
2
|
import { IconParam, BaseSize, BaseType } from '..';
|
3
3
|
import { ActionMode, ActionMenuItem, ActionDropdown } from './types';
|
4
4
|
import { ElTooltipProps, BadgeProps, ButtonProps } from 'element-plus';
|
5
|
-
declare const _default: DefineComponent<{
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
6
6
|
name: {
|
7
7
|
type: StringConstructor;
|
8
8
|
};
|
@@ -54,7 +54,7 @@ declare const _default: DefineComponent<{
|
|
54
54
|
draggable: {
|
55
55
|
type: BooleanConstructor;
|
56
56
|
};
|
57
|
-
}
|
57
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
58
58
|
click: (...args: any[]) => void;
|
59
59
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
60
60
|
name: {
|
@@ -108,13 +108,13 @@ declare const _default: DefineComponent<{
|
|
108
108
|
draggable: {
|
109
109
|
type: BooleanConstructor;
|
110
110
|
};
|
111
|
-
}>> & {
|
111
|
+
}>> & Readonly<{
|
112
112
|
onClick?: ((...args: any[]) => any) | undefined;
|
113
|
-
}
|
113
|
+
}>, {
|
114
114
|
size: BaseSize;
|
115
115
|
background: "hover" | "always" | "none";
|
116
|
-
mode: ActionMode;
|
117
116
|
circle: boolean;
|
117
|
+
mode: ActionMode;
|
118
118
|
draggable: boolean;
|
119
|
-
}, {}>;
|
119
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
120
120
|
export default _default;
|
@@ -3,7 +3,6 @@ import { ActionProps } from './types';
|
|
3
3
|
import { ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
4
4
|
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
5
5
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
6
|
-
|
7
6
|
export declare function useTooltip(props: ActionProps): ComputedRef<Partial<ElTooltipProps> | undefined>;
|
8
7
|
export declare function useBadge(props: ActionProps): ComputedRef<Partial<BadgeProps> | undefined>;
|
9
8
|
export declare function useDropdown(props: ActionProps): ComputedRef<Partial< ExtractPropTypes<{
|
@@ -2,7 +2,6 @@ import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ElTooltipProps, BadgeProps, dropdownProps, ButtonProps } from 'element-plus';
|
3
3
|
import { ComponentPropsType, BaseSize, BaseType } from '../shared';
|
4
4
|
import { IconParam } from '../icon';
|
5
|
-
|
6
5
|
export type ActionMode = 'button' | 'text' | 'icon';
|
7
6
|
export interface ActionMenuItem {
|
8
7
|
command: string | number | object;
|
@@ -1,12 +1,13 @@
|
|
1
|
-
import { ActionProps, ActionMenuItem
|
1
|
+
import { ActionProps, ActionMenuItem } from '../';
|
2
2
|
import { ActionBarItems } from './types';
|
3
|
-
import { DefineComponent, PropType, ComponentOptionsMixin,
|
3
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
import { ActionMode, ActionDropdown } from '../action';
|
4
5
|
import { BaseSize, BaseType } from '../shared';
|
5
6
|
import { ElTooltipProps, BadgeProps, ButtonProps, TooltipTriggerType } from 'element-plus';
|
7
|
+
import { IconParam } from '../icon';
|
6
8
|
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
7
9
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
8
|
-
|
9
|
-
declare const _default: DefineComponent<{
|
10
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
10
11
|
items: {
|
11
12
|
type: PropType<ActionBarItems>;
|
12
13
|
};
|
@@ -43,7 +44,7 @@ declare const _default: DefineComponent<{
|
|
43
44
|
button: {
|
44
45
|
type: PropType<Partial< ButtonProps>>;
|
45
46
|
};
|
46
|
-
}
|
47
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
47
48
|
click: (action: Readonly<Partial< ExtractPropTypes<{
|
48
49
|
name: {
|
49
50
|
type: StringConstructor;
|
@@ -132,7 +133,7 @@ declare const _default: DefineComponent<{
|
|
132
133
|
draggable: {
|
133
134
|
type: BooleanConstructor;
|
134
135
|
};
|
135
|
-
}>>>) =>
|
136
|
+
}>>>) => any;
|
136
137
|
command: (action: Readonly<Partial< ExtractPropTypes<{
|
137
138
|
name: {
|
138
139
|
type: StringConstructor;
|
@@ -221,7 +222,7 @@ declare const _default: DefineComponent<{
|
|
221
222
|
draggable: {
|
222
223
|
type: BooleanConstructor;
|
223
224
|
};
|
224
|
-
}>>>, menu: ActionMenuItem) =>
|
225
|
+
}>>>, menu: ActionMenuItem) => any;
|
225
226
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
226
227
|
items: {
|
227
228
|
type: PropType<ActionBarItems>;
|
@@ -259,7 +260,7 @@ declare const _default: DefineComponent<{
|
|
259
260
|
button: {
|
260
261
|
type: PropType<Partial< ButtonProps>>;
|
261
262
|
};
|
262
|
-
}>> & {
|
263
|
+
}>> & Readonly<{
|
263
264
|
onClick?: ((action: Readonly<Partial< ExtractPropTypes<{
|
264
265
|
name: {
|
265
266
|
type: StringConstructor;
|
@@ -438,10 +439,10 @@ declare const _default: DefineComponent<{
|
|
438
439
|
type: BooleanConstructor;
|
439
440
|
};
|
440
441
|
}>>>, menu: ActionMenuItem) => any) | undefined;
|
441
|
-
}
|
442
|
+
}>, {
|
442
443
|
size: BaseSize;
|
443
444
|
background: "hover" | "always" | "none";
|
444
|
-
mode: ActionMode;
|
445
445
|
circle: boolean;
|
446
|
-
|
446
|
+
mode: ActionMode;
|
447
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
447
448
|
export default _default;
|
@@ -2,7 +2,6 @@ import { PropType } from 'vue';
|
|
2
2
|
import { ComponentPropsType, BaseSize, BaseType } from '../shared';
|
3
3
|
import { ActionMode, ActionDropdown, ActionProps, ActionMenuItem, ContainerProps } from '../';
|
4
4
|
import { ElTooltipProps, BadgeProps, ButtonProps } from 'element-plus';
|
5
|
-
|
6
5
|
export type ActionBarItem = ActionProps & {
|
7
6
|
[key: string]: any;
|
8
7
|
};
|