@polyv/iar-vote-ui 2.0.0

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/index.es.d.ts ADDED
@@ -0,0 +1,193 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { DefineComponent } from 'vue';
3
+ import { ExtractPropTypes } from 'vue';
4
+ import { PopupConfig } from '@polyv/vue-components';
5
+ import { ValidatorFunction } from 'vue-types/dist/types';
6
+ import { Vote } from '@polyv/vote-sdk';
7
+ import { VoteListItem } from '@polyv/vote-sdk';
8
+ import { VueTypeDef } from 'vue-types';
9
+ import { VueTypeValidableDef } from 'vue-types';
10
+
11
+ /**
12
+ * 投票布局方式
13
+ * single: 单列
14
+ * double: 双列
15
+ */
16
+ export declare type VoteLayout = 'single' | 'double';
17
+
18
+ export declare const VoteList: DefineComponent< {
19
+ voteTarget: VueTypeValidableDef<Vote, ValidatorFunction<Vote>>;
20
+ layout: VueTypeDef<VoteLayout> & {
21
+ default: VoteLayout;
22
+ };
23
+ voteList: VueTypeValidableDef<VoteListItem[], ValidatorFunction<VoteListItem[]>> & {
24
+ default: () => VoteListItem[];
25
+ };
26
+ maxVote: VueTypeValidableDef<number, ValidatorFunction<number>> & {
27
+ default: number;
28
+ } & {
29
+ default: number;
30
+ };
31
+ showHeader: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
32
+ default: boolean;
33
+ } & {
34
+ default: boolean;
35
+ };
36
+ showRule: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
37
+ default: boolean;
38
+ } & {
39
+ default: boolean;
40
+ };
41
+ resultShowType: VueTypeValidableDef<number, ValidatorFunction<number>> & {
42
+ default: number;
43
+ } & {
44
+ default: number;
45
+ };
46
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
47
+ "to-show": () => void;
48
+ "to-hide": () => void;
49
+ "show-entrance": (arg: boolean) => void;
50
+ }, string, Readonly<ExtractPropTypes< {
51
+ voteTarget: VueTypeValidableDef<Vote, ValidatorFunction<Vote>>;
52
+ layout: VueTypeDef<VoteLayout> & {
53
+ default: VoteLayout;
54
+ };
55
+ voteList: VueTypeValidableDef<VoteListItem[], ValidatorFunction<VoteListItem[]>> & {
56
+ default: () => VoteListItem[];
57
+ };
58
+ maxVote: VueTypeValidableDef<number, ValidatorFunction<number>> & {
59
+ default: number;
60
+ } & {
61
+ default: number;
62
+ };
63
+ showHeader: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
64
+ default: boolean;
65
+ } & {
66
+ default: boolean;
67
+ };
68
+ showRule: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
69
+ default: boolean;
70
+ } & {
71
+ default: boolean;
72
+ };
73
+ resultShowType: VueTypeValidableDef<number, ValidatorFunction<number>> & {
74
+ default: number;
75
+ } & {
76
+ default: number;
77
+ };
78
+ }>>, {
79
+ voteList: VoteListItem[];
80
+ layout: VoteLayout;
81
+ resultShowType: number;
82
+ maxVote: number;
83
+ showHeader: boolean;
84
+ showRule: boolean;
85
+ }>;
86
+
87
+ export declare const VoteListPopup: DefineComponent< {
88
+ voteTarget: VueTypeValidableDef<Vote, ValidatorFunction<Vote>>;
89
+ popupConfig: VueTypeValidableDef<PopupConfig, ValidatorFunction<PopupConfig>>;
90
+ layout: VueTypeDef<VoteLayout> & {
91
+ default: VoteLayout;
92
+ };
93
+ maxVote: VueTypeValidableDef<number, ValidatorFunction<number>> & {
94
+ default: number;
95
+ } & {
96
+ default: number;
97
+ };
98
+ showRule: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
99
+ default: boolean;
100
+ } & {
101
+ default: boolean;
102
+ };
103
+ resultShowType: VueTypeValidableDef<number, ValidatorFunction<number>> & {
104
+ default: number;
105
+ } & {
106
+ default: number;
107
+ };
108
+ }, {
109
+ open: () => void;
110
+ close: () => void;
111
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
112
+ voteTarget: VueTypeValidableDef<Vote, ValidatorFunction<Vote>>;
113
+ popupConfig: VueTypeValidableDef<PopupConfig, ValidatorFunction<PopupConfig>>;
114
+ layout: VueTypeDef<VoteLayout> & {
115
+ default: VoteLayout;
116
+ };
117
+ maxVote: VueTypeValidableDef<number, ValidatorFunction<number>> & {
118
+ default: number;
119
+ } & {
120
+ default: number;
121
+ };
122
+ showRule: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
123
+ default: boolean;
124
+ } & {
125
+ default: boolean;
126
+ };
127
+ resultShowType: VueTypeValidableDef<number, ValidatorFunction<number>> & {
128
+ default: number;
129
+ } & {
130
+ default: number;
131
+ };
132
+ }>>, {
133
+ layout: VoteLayout;
134
+ resultShowType: number;
135
+ maxVote: number;
136
+ showRule: boolean;
137
+ }>;
138
+
139
+ export declare const VotePendant: DefineComponent< {
140
+ voteTarget: VueTypeValidableDef<Vote, ValidatorFunction<Vote>>;
141
+ isFullScreen: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
142
+ default: boolean;
143
+ } & {
144
+ default: boolean;
145
+ };
146
+ iconUrl: VueTypeValidableDef<string, ValidatorFunction<string>> & {
147
+ default: string;
148
+ } & {
149
+ default: string;
150
+ };
151
+ beforeClickInterrupt: VueTypeValidableDef<() => boolean | Promise<boolean>, ValidatorFunction<() => boolean | Promise<boolean>>>;
152
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
153
+ "open-vote": (arg?: void | undefined) => void;
154
+ }, string, Readonly<ExtractPropTypes< {
155
+ voteTarget: VueTypeValidableDef<Vote, ValidatorFunction<Vote>>;
156
+ isFullScreen: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
157
+ default: boolean;
158
+ } & {
159
+ default: boolean;
160
+ };
161
+ iconUrl: VueTypeValidableDef<string, ValidatorFunction<string>> & {
162
+ default: string;
163
+ } & {
164
+ default: string;
165
+ };
166
+ beforeClickInterrupt: VueTypeValidableDef<() => boolean | Promise<boolean>, ValidatorFunction<() => boolean | Promise<boolean>>>;
167
+ }>>, {
168
+ isFullScreen: boolean;
169
+ iconUrl: string;
170
+ }>;
171
+
172
+ export declare const VoteRulePopup: DefineComponent< {
173
+ ruleText: VueTypeValidableDef<string, ValidatorFunction<string>> & {
174
+ default: string;
175
+ } & {
176
+ default: string;
177
+ };
178
+ popupConfig: VueTypeValidableDef<PopupConfig, ValidatorFunction<PopupConfig>>;
179
+ }, {
180
+ open: () => void;
181
+ close: () => void;
182
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, Readonly<ExtractPropTypes< {
183
+ ruleText: VueTypeValidableDef<string, ValidatorFunction<string>> & {
184
+ default: string;
185
+ } & {
186
+ default: string;
187
+ };
188
+ popupConfig: VueTypeValidableDef<PopupConfig, ValidatorFunction<PopupConfig>>;
189
+ }>>, {
190
+ ruleText: string;
191
+ }>;
192
+
193
+ export { }