@vtj/ui 0.10.5 → 0.10.6

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 (43) hide show
  1. package/dist/index.mjs +2 -2
  2. package/dist/index.umd.js +2 -2
  3. package/package.json +3 -3
  4. package/types/components/action/Action.d.ts +3 -10
  5. package/types/components/attachment/Attachment.d.ts +274 -805
  6. package/types/components/container/Container.d.ts +178 -15
  7. package/types/components/data-item/DataItem.d.ts +517 -18
  8. package/types/components/dialog/Dialog.d.ts +372 -1143
  9. package/types/components/dialog-form/DialogForm.d.ts +104 -3049
  10. package/types/components/dialog-grid/DialogGrid.d.ts +69 -4907
  11. package/types/components/field/Field.d.ts +222 -353
  12. package/types/components/field/editors/SelectEditor.d.ts +21 -12
  13. package/types/components/form/Form.d.ts +116 -389
  14. package/types/components/grid/Grid.d.ts +787 -57
  15. package/types/components/grid/renderers/components/DateEdit.d.ts +2 -255
  16. package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
  17. package/types/components/grid/renderers/components/GridEdit.d.ts +2 -410
  18. package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
  19. package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
  20. package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -1926
  21. package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
  22. package/types/components/grid-editor/GridEditor.d.ts +2 -375
  23. package/types/components/header/Header.d.ts +76 -14
  24. package/types/components/import-button/ImportButton.d.ts +47 -10
  25. package/types/components/list/List.d.ts +155 -30
  26. package/types/components/mask/Mask.d.ts +546 -562
  27. package/types/components/mask/components/Avatar.d.ts +16 -11
  28. package/types/components/mask/components/Brand.d.ts +17 -12
  29. package/types/components/mask/components/Content.d.ts +13 -12
  30. package/types/components/mask/components/Sidebar.d.ts +15 -12
  31. package/types/components/mask/components/Tabs.d.ts +2 -255
  32. package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
  33. package/types/components/mask/components/Toolbar.d.ts +55 -13
  34. package/types/components/panel/Panel.d.ts +124 -521
  35. package/types/components/picker/Dialog.d.ts +2 -1291
  36. package/types/components/picker/Picker.d.ts +2 -1730
  37. package/types/components/qr-code/QrCode.d.ts +35 -13
  38. package/types/components/query-form/QueryForm.d.ts +418 -1105
  39. package/types/components/startup/Startup.d.ts +1 -1
  40. package/types/components/tabs/Tabs.d.ts +297 -53
  41. package/types/components/test/Test.d.ts +268 -41
  42. package/types/version.d.ts +2 -2
  43. package/types/components/icon/Icon.d.ts +0 -74
@@ -1,31 +1,158 @@
1
1
  import { ListData, ListState, ListInfiniteScroll } from './types';
2
- import { DefineComponent, ExtractPropTypes, PropType, Ref, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { DataLoader } from '..';
4
- import { PaginationProps } from 'element-plus';
2
+ import { ElEmpty, ElPagination, ElInfiniteScroll as vInfiniteScroll, PaginationProps } from 'element-plus';
3
+ import { ShallowRef, Ref, ComputedRef, StyleValue, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
5
4
  import { UseVirtualListItem } from '@vueuse/core';
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- empty?(_: {}): any;
10
- default?(_: {
11
- item: any;
12
- index: number;
13
- }): any;
14
- default?(_: {
15
- item: any;
16
- index: number;
17
- }): any;
18
- loading?(_: {}): any;
19
- loading?(_: {}): any;
20
- nomore?(_: {}): any;
21
- nomore?(_: {}): any;
22
- };
23
- refs: {
24
- wrapperRef: HTMLDivElement;
25
- };
26
- rootEl: HTMLDivElement;
5
+ import { DataLoader } from '..';
6
+ declare const state: {
7
+ page: number;
8
+ pageSize: number;
27
9
  };
28
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const data: ShallowRef<ListData>, loading: Ref<boolean, boolean>;
11
+ declare const nomore: Ref<boolean, boolean>;
12
+ declare const wrapperRef: Ref<any, any>;
13
+ declare const styleComputed: ComputedRef<{
14
+ width: string;
15
+ height: string;
16
+ }>;
17
+ declare const classComputed: ComputedRef<{
18
+ 'is-virtual': boolean;
19
+ }>;
20
+ declare const infiniteScrollProps: ComputedRef<Record<string, any>>;
21
+ declare const pagerProps: ComputedRef<Partial< PaginationProps>>;
22
+ declare const list: Ref< UseVirtualListItem<any>[], UseVirtualListItem<any>[]>, containerProps: {
23
+ ref: Ref<HTMLElement | null>;
24
+ onScroll: () => void;
25
+ style: StyleValue;
26
+ }, wrapperProps: ComputedRef<{
27
+ style: {
28
+ width: string;
29
+ height: string;
30
+ marginTop: string;
31
+ } | {
32
+ width: string;
33
+ height: string;
34
+ marginLeft: string;
35
+ display: string;
36
+ };
37
+ }>;
38
+ declare const load: () => void;
39
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
40
+ declare var __VLS_1: {}, __VLS_7: {
41
+ item: any;
42
+ index: number;
43
+ }, __VLS_9: {}, __VLS_11: {}, __VLS_13: {
44
+ item: any;
45
+ index: number;
46
+ }, __VLS_15: {}, __VLS_17: {};
47
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
48
+ empty?: (props: typeof __VLS_1) => any;
49
+ } & {
50
+ default?: (props: typeof __VLS_7) => any;
51
+ } & {
52
+ loading?: (props: typeof __VLS_9) => any;
53
+ } & {
54
+ nomore?: (props: typeof __VLS_11) => any;
55
+ } & {
56
+ default?: (props: typeof __VLS_13) => any;
57
+ } & {
58
+ loading?: (props: typeof __VLS_15) => any;
59
+ } & {
60
+ nomore?: (props: typeof __VLS_17) => any;
61
+ }>;
62
+ declare const __VLS_self: DefineComponent<ExtractPropTypes<{
63
+ data: {
64
+ type: PropType<DataLoader<ListData, ListState>>;
65
+ default(): never[];
66
+ };
67
+ itemHeight: {
68
+ type: PropType<number | ((index: number) => number)>;
69
+ };
70
+ width: {
71
+ type: (StringConstructor | NumberConstructor)[];
72
+ default: string;
73
+ };
74
+ height: {
75
+ type: (StringConstructor | NumberConstructor)[];
76
+ default: string;
77
+ };
78
+ pager: {
79
+ type: PropType<boolean | Partial< PaginationProps>>;
80
+ };
81
+ page: {
82
+ type: NumberConstructor;
83
+ default: number;
84
+ };
85
+ pageSize: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ dataKey: {
90
+ type: StringConstructor;
91
+ };
92
+ infiniteScroll: {
93
+ type: PropType<boolean | ListInfiniteScroll>;
94
+ };
95
+ }>, {
96
+ ElEmpty: typeof ElEmpty;
97
+ ElPagination: typeof ElPagination;
98
+ vInfiniteScroll: typeof vInfiniteScroll;
99
+ state: typeof state;
100
+ data: typeof data;
101
+ loading: typeof loading;
102
+ nomore: typeof nomore;
103
+ wrapperRef: typeof wrapperRef;
104
+ styleComputed: typeof styleComputed;
105
+ classComputed: typeof classComputed;
106
+ infiniteScrollProps: typeof infiniteScrollProps;
107
+ pagerProps: typeof pagerProps;
108
+ list: typeof list;
109
+ containerProps: typeof containerProps;
110
+ wrapperProps: typeof wrapperProps;
111
+ load: typeof load;
112
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
113
+ load: (state: ListState) => any;
114
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
115
+ data: {
116
+ type: PropType<DataLoader<ListData, ListState>>;
117
+ default(): never[];
118
+ };
119
+ itemHeight: {
120
+ type: PropType<number | ((index: number) => number)>;
121
+ };
122
+ width: {
123
+ type: (StringConstructor | NumberConstructor)[];
124
+ default: string;
125
+ };
126
+ height: {
127
+ type: (StringConstructor | NumberConstructor)[];
128
+ default: string;
129
+ };
130
+ pager: {
131
+ type: PropType<boolean | Partial< PaginationProps>>;
132
+ };
133
+ page: {
134
+ type: NumberConstructor;
135
+ default: number;
136
+ };
137
+ pageSize: {
138
+ type: NumberConstructor;
139
+ default: number;
140
+ };
141
+ dataKey: {
142
+ type: StringConstructor;
143
+ };
144
+ infiniteScroll: {
145
+ type: PropType<boolean | ListInfiniteScroll>;
146
+ };
147
+ }>> & Readonly<{
148
+ onLoad?: ((state: ListState) => any) | undefined;
149
+ }>, {
150
+ data: DataLoader<ListData, ListState>;
151
+ width: string | number;
152
+ height: string | number;
153
+ page: number;
154
+ pageSize: number;
155
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
29
156
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
30
157
  data: {
31
158
  type: PropType<DataLoader<ListData, ListState>>;
@@ -115,12 +242,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
115
242
  height: string | number;
116
243
  page: number;
117
244
  pageSize: number;
118
- }, {}, {}, {}, string, ComponentProvideOptions, true, {
119
- wrapperRef: HTMLDivElement;
120
- }, HTMLDivElement>;
121
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
245
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
246
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
122
247
  export default _default;
123
- type __VLS_WithTemplateSlots<T, S> = T & {
248
+ type __VLS_WithSlots<T, S> = T & {
124
249
  new (): {
125
250
  $slots: S;
126
251
  };