@getblock/core 0.0.76
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/README.md +16 -0
- package/dist/components/badges/Badges.vue.d.ts +23 -0
- package/dist/components/breadcrumbs/Breadcrumbs.vue.d.ts +61 -0
- package/dist/components/button/Button.types.d.ts +3 -0
- package/dist/components/button/Button.vue.d.ts +63 -0
- package/dist/components/checkbox/Checkbox.vue.d.ts +117 -0
- package/dist/components/checkbox/types.d.ts +5 -0
- package/dist/components/chips/Chips.vue.d.ts +48 -0
- package/dist/components/dropdown/Dropdown.vue.d.ts +217 -0
- package/dist/components/dropdownWithCheckbox/Dropdown.vue.d.ts +431 -0
- package/dist/components/droplist/Droplist.vue.d.ts +208 -0
- package/dist/components/icon/Icon.types.d.ts +2 -0
- package/dist/components/icon/Icon.vue.d.ts +41 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/input/Input.vue.d.ts +195 -0
- package/dist/components/input/types.d.ts +10 -0
- package/dist/components/lineTab/LineTab.vue.d.ts +33 -0
- package/dist/components/listItem/ListItem.vue.d.ts +23 -0
- package/dist/components/loading/CustomLoader.vue.d.ts +24 -0
- package/dist/components/notification/Notification.vue.d.ts +190 -0
- package/dist/components/radioButton/RadioButton.vue.d.ts +88 -0
- package/dist/components/range/Range.vue.d.ts +61 -0
- package/dist/components/tabBar/TabBar.vue.d.ts +92 -0
- package/dist/components/tag/Tag.vue.d.ts +75 -0
- package/dist/components/textArea/TextArea.vue.d.ts +119 -0
- package/dist/components/toggle/Toggle.vue.d.ts +30 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +42 -0
- package/dist/getblockui-core.es.ts +1873 -0
- package/dist/getblockui-core.umd.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/vite-env.d.ts +9 -0
- package/dist/vite.svg +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
interface IItem {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
generalText: string;
|
|
6
|
+
value: string;
|
|
7
|
+
additionalText: string;
|
|
8
|
+
}
|
|
9
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
10
|
+
items: {
|
|
11
|
+
type: PropType<IItem[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
locale: {
|
|
19
|
+
type: PropType<"en" | "cn">;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
updateSignal: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
props: any;
|
|
28
|
+
texts: {
|
|
29
|
+
en: {
|
|
30
|
+
button: string;
|
|
31
|
+
other: string;
|
|
32
|
+
inputPlaceholder: string;
|
|
33
|
+
};
|
|
34
|
+
cn: {
|
|
35
|
+
button: string;
|
|
36
|
+
other: string;
|
|
37
|
+
inputPlaceholder: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
isFocused: import("vue").Ref<boolean>;
|
|
41
|
+
searchValue: import("vue").Ref<string>;
|
|
42
|
+
otherChecked: import("vue").Ref<boolean>;
|
|
43
|
+
selectedItems: import("vue").Ref<string[]>;
|
|
44
|
+
isUpdatedSignal: import("vue").Ref<boolean>;
|
|
45
|
+
timerId: import("vue").Ref<number | null>;
|
|
46
|
+
arrowDownColorType: import("vue").ComputedRef<"main" | "tertiary">;
|
|
47
|
+
foundedItems: import("vue").ComputedRef<IItem[]>;
|
|
48
|
+
change: (item: {
|
|
49
|
+
id: string;
|
|
50
|
+
checked: boolean;
|
|
51
|
+
}) => void;
|
|
52
|
+
clear: () => void;
|
|
53
|
+
otherChange: () => void;
|
|
54
|
+
onFocusIn: () => void;
|
|
55
|
+
onFocusOut: () => void;
|
|
56
|
+
dropdownContent: import("vue").Ref<HTMLElement | null>;
|
|
57
|
+
scrollBar: import("vue").Ref<HTMLElement | null>;
|
|
58
|
+
thumb: import("vue").Ref<HTMLElement | null>;
|
|
59
|
+
isScrolling: import("vue").Ref<boolean>;
|
|
60
|
+
onScroll: (event: Event) => void;
|
|
61
|
+
onThumbMouseDown: (e: any) => void;
|
|
62
|
+
onScrollbarClick: (e: any) => void;
|
|
63
|
+
readonly dropdown: CSSModuleClasses;
|
|
64
|
+
Icon: import("vue").DefineComponent<{
|
|
65
|
+
iconName: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
colorType: {
|
|
70
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
71
|
+
default: string;
|
|
72
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
73
|
+
};
|
|
74
|
+
sizeType: {
|
|
75
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
76
|
+
default: string;
|
|
77
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
props: any;
|
|
81
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
82
|
+
classObject: import("vue").ComputedRef<object>;
|
|
83
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
iconName: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
colorType: {
|
|
89
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
90
|
+
default: string;
|
|
91
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
92
|
+
};
|
|
93
|
+
sizeType: {
|
|
94
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
95
|
+
default: string;
|
|
96
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
97
|
+
};
|
|
98
|
+
}>>, {
|
|
99
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
100
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
101
|
+
}>;
|
|
102
|
+
Checkbox: import("vue").DefineComponent<{
|
|
103
|
+
isMaster: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
isRounded: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
checked: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
disabled: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
allChecked: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
id: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
value: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
emits: (event: "change", ...args: any[]) => void;
|
|
133
|
+
props: any;
|
|
134
|
+
retObjCheck: import("../checkbox/types").RetObjCheckType;
|
|
135
|
+
onChange: () => void;
|
|
136
|
+
typeIcon: import("vue").ComputedRef<import("../checkbox/types").IconType>;
|
|
137
|
+
iconColor: import("vue").ComputedRef<object>;
|
|
138
|
+
classObject: import("vue").ComputedRef<object>;
|
|
139
|
+
Icon: import("vue").DefineComponent<{
|
|
140
|
+
iconName: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
required: true;
|
|
143
|
+
};
|
|
144
|
+
colorType: {
|
|
145
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
146
|
+
default: string;
|
|
147
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
148
|
+
};
|
|
149
|
+
sizeType: {
|
|
150
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
151
|
+
default: string;
|
|
152
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
153
|
+
};
|
|
154
|
+
}, {
|
|
155
|
+
props: any;
|
|
156
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
157
|
+
classObject: import("vue").ComputedRef<object>;
|
|
158
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
159
|
+
iconName: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
required: true;
|
|
162
|
+
};
|
|
163
|
+
colorType: {
|
|
164
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
165
|
+
default: string;
|
|
166
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
167
|
+
};
|
|
168
|
+
sizeType: {
|
|
169
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
170
|
+
default: string;
|
|
171
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
172
|
+
};
|
|
173
|
+
}>>, {
|
|
174
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
175
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
176
|
+
}>;
|
|
177
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
178
|
+
isMaster: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
isRounded: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: boolean;
|
|
185
|
+
};
|
|
186
|
+
checked: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
disabled: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
194
|
+
allChecked: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
id: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
value: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
}>> & {
|
|
207
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
disabled: boolean;
|
|
210
|
+
isMaster: boolean;
|
|
211
|
+
isRounded: boolean;
|
|
212
|
+
checked: boolean;
|
|
213
|
+
allChecked: boolean;
|
|
214
|
+
id: string;
|
|
215
|
+
value: string;
|
|
216
|
+
}>;
|
|
217
|
+
Input: import("vue").DefineComponent<{
|
|
218
|
+
disabled: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
222
|
+
error: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
placeholder: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
inputName: {
|
|
231
|
+
type: StringConstructor;
|
|
232
|
+
required: true;
|
|
233
|
+
};
|
|
234
|
+
inputValue: {
|
|
235
|
+
type: StringConstructor;
|
|
236
|
+
required: true;
|
|
237
|
+
};
|
|
238
|
+
inputType: {
|
|
239
|
+
type: PropType<import("../input/types").InputTypeProps>;
|
|
240
|
+
default: string;
|
|
241
|
+
validator: (value: import("../input/types").InputTypeProps) => boolean;
|
|
242
|
+
};
|
|
243
|
+
colorType: {
|
|
244
|
+
type: PropType<import("../input/types").ColorTypeProps>;
|
|
245
|
+
default: string;
|
|
246
|
+
validator: (value: import("../input/types").ColorTypeProps) => boolean;
|
|
247
|
+
};
|
|
248
|
+
sizeType: {
|
|
249
|
+
type: PropType<import("../input/types").SizeTypeProps>;
|
|
250
|
+
default: string;
|
|
251
|
+
validator: (value: import("../input/types").SizeTypeProps) => boolean;
|
|
252
|
+
};
|
|
253
|
+
iconName: {
|
|
254
|
+
type: StringConstructor;
|
|
255
|
+
default: string;
|
|
256
|
+
};
|
|
257
|
+
statusIcon: {
|
|
258
|
+
type: PropType<import("../input/types").StatusIconProps>;
|
|
259
|
+
default: string;
|
|
260
|
+
validator: (value: import("../input/types").StatusIconProps) => boolean;
|
|
261
|
+
};
|
|
262
|
+
customEventRightButton: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: boolean;
|
|
265
|
+
};
|
|
266
|
+
rightIconName: {
|
|
267
|
+
type: StringConstructor;
|
|
268
|
+
default: string;
|
|
269
|
+
};
|
|
270
|
+
tabIndex: {
|
|
271
|
+
type: NumberConstructor;
|
|
272
|
+
default: number;
|
|
273
|
+
};
|
|
274
|
+
}, {
|
|
275
|
+
emits: (event: "resetError" | "update:inputValue" | "focusOut" | "onClickRightButton", ...args: any[]) => void;
|
|
276
|
+
props: any;
|
|
277
|
+
iconStatus: import("vue").ComputedRef<import("../input/types").IconStatus>;
|
|
278
|
+
inputRef: import("vue").Ref<HTMLInputElement | null>;
|
|
279
|
+
isFocused: import("vue").Ref<boolean>;
|
|
280
|
+
inputType: import("vue").Ref<import("../input/types").InputTypeProps>;
|
|
281
|
+
value: import("vue").WritableComputedRef<string>;
|
|
282
|
+
iconRight: import("vue").ComputedRef<string>;
|
|
283
|
+
classObject: import("vue").ComputedRef<object>;
|
|
284
|
+
hintClassObject: import("vue").ComputedRef<object>;
|
|
285
|
+
labelClassObject: import("vue").ComputedRef<object>;
|
|
286
|
+
clearInput: () => void;
|
|
287
|
+
changeTypeInput: () => void;
|
|
288
|
+
eventRightButton: () => void;
|
|
289
|
+
onFocus: () => void;
|
|
290
|
+
onFocusOut: () => void;
|
|
291
|
+
slots: Readonly<{
|
|
292
|
+
[name: string]: import("vue").Slot | undefined;
|
|
293
|
+
}>;
|
|
294
|
+
Icon: import("vue").DefineComponent<{
|
|
295
|
+
iconName: {
|
|
296
|
+
type: StringConstructor;
|
|
297
|
+
required: true;
|
|
298
|
+
};
|
|
299
|
+
colorType: {
|
|
300
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
301
|
+
default: string;
|
|
302
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
303
|
+
};
|
|
304
|
+
sizeType: {
|
|
305
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
306
|
+
default: string;
|
|
307
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
308
|
+
};
|
|
309
|
+
}, {
|
|
310
|
+
props: any;
|
|
311
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
312
|
+
classObject: import("vue").ComputedRef<object>;
|
|
313
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
314
|
+
iconName: {
|
|
315
|
+
type: StringConstructor;
|
|
316
|
+
required: true;
|
|
317
|
+
};
|
|
318
|
+
colorType: {
|
|
319
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
320
|
+
default: string;
|
|
321
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
322
|
+
};
|
|
323
|
+
sizeType: {
|
|
324
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
325
|
+
default: string;
|
|
326
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
327
|
+
};
|
|
328
|
+
}>>, {
|
|
329
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
330
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
331
|
+
}>;
|
|
332
|
+
readonly input: CSSModuleClasses;
|
|
333
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("resetError" | "update:inputValue" | "focusOut" | "onClickRightButton")[], "resetError" | "update:inputValue" | "focusOut" | "onClickRightButton", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
334
|
+
disabled: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
error: {
|
|
339
|
+
type: BooleanConstructor;
|
|
340
|
+
default: boolean;
|
|
341
|
+
};
|
|
342
|
+
placeholder: {
|
|
343
|
+
type: StringConstructor;
|
|
344
|
+
default: string;
|
|
345
|
+
};
|
|
346
|
+
inputName: {
|
|
347
|
+
type: StringConstructor;
|
|
348
|
+
required: true;
|
|
349
|
+
};
|
|
350
|
+
inputValue: {
|
|
351
|
+
type: StringConstructor;
|
|
352
|
+
required: true;
|
|
353
|
+
};
|
|
354
|
+
inputType: {
|
|
355
|
+
type: PropType<import("../input/types").InputTypeProps>;
|
|
356
|
+
default: string;
|
|
357
|
+
validator: (value: import("../input/types").InputTypeProps) => boolean;
|
|
358
|
+
};
|
|
359
|
+
colorType: {
|
|
360
|
+
type: PropType<import("../input/types").ColorTypeProps>;
|
|
361
|
+
default: string;
|
|
362
|
+
validator: (value: import("../input/types").ColorTypeProps) => boolean;
|
|
363
|
+
};
|
|
364
|
+
sizeType: {
|
|
365
|
+
type: PropType<import("../input/types").SizeTypeProps>;
|
|
366
|
+
default: string;
|
|
367
|
+
validator: (value: import("../input/types").SizeTypeProps) => boolean;
|
|
368
|
+
};
|
|
369
|
+
iconName: {
|
|
370
|
+
type: StringConstructor;
|
|
371
|
+
default: string;
|
|
372
|
+
};
|
|
373
|
+
statusIcon: {
|
|
374
|
+
type: PropType<import("../input/types").StatusIconProps>;
|
|
375
|
+
default: string;
|
|
376
|
+
validator: (value: import("../input/types").StatusIconProps) => boolean;
|
|
377
|
+
};
|
|
378
|
+
customEventRightButton: {
|
|
379
|
+
type: BooleanConstructor;
|
|
380
|
+
default: boolean;
|
|
381
|
+
};
|
|
382
|
+
rightIconName: {
|
|
383
|
+
type: StringConstructor;
|
|
384
|
+
default: string;
|
|
385
|
+
};
|
|
386
|
+
tabIndex: {
|
|
387
|
+
type: NumberConstructor;
|
|
388
|
+
default: number;
|
|
389
|
+
};
|
|
390
|
+
}>> & {
|
|
391
|
+
onResetError?: ((...args: any[]) => any) | undefined;
|
|
392
|
+
"onUpdate:inputValue"?: ((...args: any[]) => any) | undefined;
|
|
393
|
+
onFocusOut?: ((...args: any[]) => any) | undefined;
|
|
394
|
+
onOnClickRightButton?: ((...args: any[]) => any) | undefined;
|
|
395
|
+
}, {
|
|
396
|
+
error: boolean;
|
|
397
|
+
colorType: import("../input/types").ColorTypeProps;
|
|
398
|
+
iconName: string;
|
|
399
|
+
sizeType: import("../input/types").SizeTypeProps;
|
|
400
|
+
disabled: boolean;
|
|
401
|
+
placeholder: string;
|
|
402
|
+
tabIndex: number;
|
|
403
|
+
inputType: import("../input/types").InputTypeProps;
|
|
404
|
+
statusIcon: import("../input/types").StatusIconProps;
|
|
405
|
+
customEventRightButton: boolean;
|
|
406
|
+
rightIconName: string;
|
|
407
|
+
}>;
|
|
408
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
409
|
+
items: {
|
|
410
|
+
type: PropType<IItem[]>;
|
|
411
|
+
default: () => never[];
|
|
412
|
+
};
|
|
413
|
+
placeholder: {
|
|
414
|
+
type: StringConstructor;
|
|
415
|
+
default: string;
|
|
416
|
+
};
|
|
417
|
+
locale: {
|
|
418
|
+
type: PropType<"en" | "cn">;
|
|
419
|
+
default: string;
|
|
420
|
+
};
|
|
421
|
+
updateSignal: {
|
|
422
|
+
type: BooleanConstructor;
|
|
423
|
+
default: boolean;
|
|
424
|
+
};
|
|
425
|
+
}>>, {
|
|
426
|
+
items: IItem[];
|
|
427
|
+
placeholder: string;
|
|
428
|
+
locale: "en" | "cn";
|
|
429
|
+
updateSignal: boolean;
|
|
430
|
+
}>;
|
|
431
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
type ColorTypeProps = 'alert' | 'main';
|
|
4
|
+
interface DroplistItem {
|
|
5
|
+
value: string;
|
|
6
|
+
imgName?: string;
|
|
7
|
+
color: ColorTypeProps;
|
|
8
|
+
divider: boolean;
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
action: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
13
|
+
items: {
|
|
14
|
+
type: PropType<DroplistItem[]>;
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
showDroplist: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
isCheckboxes: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
emit: (event: "selectItem" | "hideDroplist", ...args: any[]) => void;
|
|
27
|
+
props: any;
|
|
28
|
+
getColorClass: (color: ColorTypeProps) => {
|
|
29
|
+
[x: string]: boolean;
|
|
30
|
+
};
|
|
31
|
+
hideDroplist: () => void;
|
|
32
|
+
handleItemSelected: (value: string) => void;
|
|
33
|
+
readonly droplist: CSSModuleClasses;
|
|
34
|
+
Icon: import("vue").DefineComponent<{
|
|
35
|
+
iconName: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
colorType: {
|
|
40
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
41
|
+
default: string;
|
|
42
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
43
|
+
};
|
|
44
|
+
sizeType: {
|
|
45
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
46
|
+
default: string;
|
|
47
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
props: any;
|
|
51
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
52
|
+
classObject: import("vue").ComputedRef<object>;
|
|
53
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
iconName: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
colorType: {
|
|
59
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
60
|
+
default: string;
|
|
61
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
62
|
+
};
|
|
63
|
+
sizeType: {
|
|
64
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
65
|
+
default: string;
|
|
66
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
67
|
+
};
|
|
68
|
+
}>>, {
|
|
69
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
70
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
71
|
+
}>;
|
|
72
|
+
Checkbox: import("vue").DefineComponent<{
|
|
73
|
+
isMaster: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
isRounded: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
checked: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
disabled: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
allChecked: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
id: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
value: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
emits: (event: "change", ...args: any[]) => void;
|
|
103
|
+
props: any;
|
|
104
|
+
retObjCheck: import("../checkbox/types").RetObjCheckType;
|
|
105
|
+
onChange: () => void;
|
|
106
|
+
typeIcon: import("vue").ComputedRef<import("../checkbox/types").IconType>;
|
|
107
|
+
iconColor: import("vue").ComputedRef<object>;
|
|
108
|
+
classObject: import("vue").ComputedRef<object>;
|
|
109
|
+
Icon: import("vue").DefineComponent<{
|
|
110
|
+
iconName: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
colorType: {
|
|
115
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
116
|
+
default: string;
|
|
117
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
118
|
+
};
|
|
119
|
+
sizeType: {
|
|
120
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
121
|
+
default: string;
|
|
122
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
props: any;
|
|
126
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
127
|
+
classObject: import("vue").ComputedRef<object>;
|
|
128
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
+
iconName: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
required: true;
|
|
132
|
+
};
|
|
133
|
+
colorType: {
|
|
134
|
+
type: PropType<import("../icon/Icon.types").IconColorTypeProps>;
|
|
135
|
+
default: string;
|
|
136
|
+
validator: (value: import("../icon/Icon.types").IconColorTypeProps) => boolean;
|
|
137
|
+
};
|
|
138
|
+
sizeType: {
|
|
139
|
+
type: PropType<import("../icon/Icon.types").IconSizeTypeProps>;
|
|
140
|
+
default: string;
|
|
141
|
+
validator: (value: import("../icon/Icon.types").IconSizeTypeProps) => boolean;
|
|
142
|
+
};
|
|
143
|
+
}>>, {
|
|
144
|
+
colorType: import("../icon/Icon.types").IconColorTypeProps;
|
|
145
|
+
sizeType: import("../icon/Icon.types").IconSizeTypeProps;
|
|
146
|
+
}>;
|
|
147
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
148
|
+
isMaster: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
isRounded: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
checked: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
disabled: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
allChecked: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
id: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
value: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
}>> & {
|
|
177
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
disabled: boolean;
|
|
180
|
+
isMaster: boolean;
|
|
181
|
+
isRounded: boolean;
|
|
182
|
+
checked: boolean;
|
|
183
|
+
allChecked: boolean;
|
|
184
|
+
id: string;
|
|
185
|
+
value: string;
|
|
186
|
+
}>;
|
|
187
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectItem" | "hideDroplist")[], "selectItem" | "hideDroplist", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
188
|
+
items: {
|
|
189
|
+
type: PropType<DroplistItem[]>;
|
|
190
|
+
default: () => never[];
|
|
191
|
+
};
|
|
192
|
+
showDroplist: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
isCheckboxes: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
}>> & {
|
|
201
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
onHideDroplist?: ((...args: any[]) => any) | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
items: DroplistItem[];
|
|
205
|
+
showDroplist: boolean;
|
|
206
|
+
isCheckboxes: boolean;
|
|
207
|
+
}>;
|
|
208
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type IconSizeTypeProps = 'large' | 'medium' | 'small' | 'xs';
|
|
2
|
+
export type IconColorTypeProps = 'none' | 'main' | 'secondary' | 'tertiary' | 'disable' | 'action' | 'tint-blue' | 'tint-red' | 'attention' | 'alert' | 'success' | 'color-bg' | 'light-bg' | 'default' | 'accent-hover' | 'tint-hover' | 'attention-hover' | 'reverse-main' | 'error-hover' | 'contrast' | 'violet';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IconSizeTypeProps, IconColorTypeProps } from '../../components/icon/Icon.types';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
iconName: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
colorType: {
|
|
9
|
+
type: PropType<IconColorTypeProps>;
|
|
10
|
+
default: string;
|
|
11
|
+
validator: (value: IconColorTypeProps) => boolean;
|
|
12
|
+
};
|
|
13
|
+
sizeType: {
|
|
14
|
+
type: PropType<IconSizeTypeProps>;
|
|
15
|
+
default: string;
|
|
16
|
+
validator: (value: IconSizeTypeProps) => boolean;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
props: any;
|
|
20
|
+
imgSize: import("vue").ComputedRef<number>;
|
|
21
|
+
classObject: import("vue").ComputedRef<object>;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
iconName: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
colorType: {
|
|
28
|
+
type: PropType<IconColorTypeProps>;
|
|
29
|
+
default: string;
|
|
30
|
+
validator: (value: IconColorTypeProps) => boolean;
|
|
31
|
+
};
|
|
32
|
+
sizeType: {
|
|
33
|
+
type: PropType<IconSizeTypeProps>;
|
|
34
|
+
default: string;
|
|
35
|
+
validator: (value: IconSizeTypeProps) => boolean;
|
|
36
|
+
};
|
|
37
|
+
}>>, {
|
|
38
|
+
colorType: IconColorTypeProps;
|
|
39
|
+
sizeType: IconSizeTypeProps;
|
|
40
|
+
}>;
|
|
41
|
+
export default _sfc_main;
|