@creatorsn/vfluent3 0.3.49 → 0.3.52

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.
@@ -1,143 +1,461 @@
1
1
  import "./style";
2
2
  export declare const FvColorPicker: import("../../types/plugins/component-plugin").ComponentPlugin<{
3
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
4
- modelValue: {
5
- type: StringConstructor[];
6
- };
7
- foreground: {
8
- type: StringConstructor[];
9
- default: string;
10
- };
11
- type: {
12
- type: StringConstructor[];
13
- default: string;
14
- };
15
- theme: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- disabled: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- lang: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- }>> & {
28
- "onUpdate:modelValue"?: ((val: string) => any) | undefined;
29
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
- 'update:modelValue'(val: string): boolean;
31
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
32
- modelValue: {
33
- type: StringConstructor[];
34
- };
35
- foreground: {
36
- type: StringConstructor[];
37
- default: string;
38
- };
39
- type: {
40
- type: StringConstructor[];
41
- default: string;
42
- };
43
- theme: {
44
- type: StringConstructor;
45
- default: string;
46
- };
47
- disabled: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- lang: {
52
- type: StringConstructor;
53
- default: string;
54
- };
55
- }>> & {
56
- "onUpdate:modelValue"?: ((val: string) => any) | undefined;
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {
4
+ $props: {
5
+ readonly theme?: string | undefined;
6
+ readonly type?: string | undefined;
7
+ readonly disabled?: boolean | undefined;
8
+ readonly lang?: string | undefined;
9
+ readonly foreground?: string | undefined;
10
+ readonly showValueSlider?: boolean | undefined;
11
+ readonly showSaturationSlider?: boolean | undefined;
12
+ readonly showAlphaSlider?: boolean | undefined;
13
+ readonly hideFields?: boolean | undefined;
14
+ readonly modelValue?: string | undefined;
15
+ };
16
+ $emit: (event: "update:modelValue" | "color-info", ...args: any[]) => void;
17
+ }, {
18
+ colorModeOptions: {
19
+ key: string;
20
+ text: string;
21
+ }[];
22
+ colorMode: {
23
+ key: string;
24
+ text: string;
25
+ };
26
+ color: string;
27
+ r: string;
28
+ g: string;
29
+ b: string;
30
+ h: string;
31
+ s: string;
32
+ v: string;
33
+ alpha: string;
34
+ syncLock: boolean;
35
+ hueValue: number;
36
+ pointerSaturationValue: number;
37
+ paletteSaturationValue: number;
38
+ brightnessValue: number;
39
+ alphaValue: number;
40
+ colorObj: import("../../utils/common").Color;
41
+ colorLeft: number;
42
+ colorTop: number;
43
+ colorValueLeft: number;
44
+ colorSaturationLeft: number;
45
+ colorAlphaLeft: number;
46
+ baseColorList: import("../../utils/common").Color[];
47
+ colorList: import("../../utils/common").Color[];
48
+ updateCoordsThrottled: undefined;
49
+ updateValueThrottled: undefined;
50
+ updateSaturationThrottled: undefined;
51
+ updateAlphaThrottled: undefined;
52
+ colorAreaMouseMoveEvent: undefined;
53
+ colorValueMouseMoveEvent: undefined;
54
+ colorSaturationMouseMoveEvent: undefined;
55
+ colorAlphaMouseMoveEvent: undefined;
57
56
  }, {
58
- theme: string;
59
- type: string;
60
- disabled: boolean;
61
- lang: string;
62
- foreground: string;
63
- }, true, {}, {}, {
57
+ $theme(): string;
58
+ computedColorPickerClass(): string[];
59
+ hasVisibleControls(): any;
60
+ computedColorPickerStyle(): {
61
+ '--fv-color-picker--color-list': string;
62
+ '--fv-color-picker--color': string;
63
+ '--fv-color-picker--color-alpha': string;
64
+ '--fv-color-picker--color-value': string;
65
+ '--fv-color-picker--color-saturation-empty': string;
66
+ '--fv-color-picker--color-saturation-full': string;
67
+ '--fv-color-picker--pointer-left': string;
68
+ '--fv-color-picker--pointer-top': string;
69
+ '--fv-color-picker--color-value-left': string;
70
+ '--fv-color-picker--color-saturation-left': string;
71
+ '--fv-color-picker--color-alpha-left': string;
72
+ '--fv-color-picker--color-value-empty': string;
73
+ };
74
+ colorListStr(): string;
75
+ computedText: {
76
+ get(): string;
77
+ set(val: any): void;
78
+ };
79
+ computedR: {
80
+ get(): string;
81
+ set(val: any): void;
82
+ };
83
+ computedG: {
84
+ get(): string;
85
+ set(val: any): void;
86
+ };
87
+ computedB: {
88
+ get(): string;
89
+ set(val: any): void;
90
+ };
91
+ computedH: {
92
+ get(): string;
93
+ set(val: any): void;
94
+ };
95
+ computedS: {
96
+ get(): string;
97
+ set(val: any): void;
98
+ };
99
+ computedV: {
100
+ get(): string;
101
+ set(val: any): void;
102
+ };
103
+ computedAlpha: {
104
+ get(): string;
105
+ set(val: any): void;
106
+ };
107
+ }, {
108
+ withSyncLock(task: any): void;
109
+ syncRGBFields(clr: any): void;
110
+ syncText(clr: any, emit?: boolean): void;
111
+ buildColorInfo(clr: any): {
112
+ hex: any;
113
+ rgba: {
114
+ r: any;
115
+ g: any;
116
+ b: any;
117
+ a: number;
118
+ };
119
+ hsla: {
120
+ h: number;
121
+ s: number;
122
+ l: number;
123
+ a: number;
124
+ };
125
+ };
126
+ emitColorChange(clr: any): void;
127
+ syncStateFields(clr: any): void;
128
+ syncPointerFromState(): void;
129
+ syncValueSliderFromState(): void;
130
+ syncSaturationSliderFromState(): void;
131
+ syncAlphaSliderFromState(): void;
132
+ syncColorList(): void;
133
+ buildColorFromState(): import("../../utils/common").Color;
134
+ commitState(syncPointer?: boolean, emit?: boolean): void;
135
+ syncFromColor(clr: any, syncPointer?: boolean, emit?: boolean): void;
136
+ syncHSV(clr: any): void;
137
+ syncAlpha(clr: any): void;
138
+ handleUpdateCoords(mouse: any): void;
139
+ mousemoveEvent(mouse: any): void;
140
+ onMousedown(mouse: any): void;
141
+ handleUpdateValue(mouse: any): void;
142
+ valueMousemoveEvent(mouse: any): void;
143
+ onValueMouseDown(mouse: any): void;
144
+ handleUpdateSaturation(mouse: any): void;
145
+ saturationMousemoveEvent(mouse: any): void;
146
+ onSaturationMouseDown(mouse: any): void;
147
+ applyPaletteSaturation(number: any, emit?: boolean): void;
148
+ handleUpdateAlpha(mouse: any): void;
149
+ alphaMousemoveEvent(mouse: any): void;
150
+ onAlphaMouseDown(mouse: any): void;
151
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, {}, true, {}, {}, {
64
152
  P: {};
65
153
  B: {};
66
154
  D: {};
67
155
  C: {};
68
156
  M: {};
69
157
  Defaults: {};
70
- }, Readonly<import("vue").ExtractPropTypes<{
71
- modelValue: {
72
- type: StringConstructor[];
73
- };
74
- foreground: {
75
- type: StringConstructor[];
76
- default: string;
77
- };
78
- type: {
79
- type: StringConstructor[];
80
- default: string;
81
- };
82
- theme: {
83
- type: StringConstructor;
84
- default: string;
85
- };
86
- disabled: {
87
- type: BooleanConstructor;
88
- default: boolean;
89
- };
90
- lang: {
91
- type: StringConstructor;
92
- default: string;
93
- };
94
- }>> & {
95
- "onUpdate:modelValue"?: ((val: string) => any) | undefined;
96
- }, {}, {}, {}, {}, {
97
- theme: string;
98
- type: string;
99
- disabled: boolean;
100
- lang: string;
101
- foreground: string;
102
- }>;
158
+ }, Readonly<import("vue").ExtractPropTypes<{}>>, {
159
+ $props: {
160
+ readonly theme?: string | undefined;
161
+ readonly type?: string | undefined;
162
+ readonly disabled?: boolean | undefined;
163
+ readonly lang?: string | undefined;
164
+ readonly foreground?: string | undefined;
165
+ readonly showValueSlider?: boolean | undefined;
166
+ readonly showSaturationSlider?: boolean | undefined;
167
+ readonly showAlphaSlider?: boolean | undefined;
168
+ readonly hideFields?: boolean | undefined;
169
+ readonly modelValue?: string | undefined;
170
+ };
171
+ $emit: (event: "update:modelValue" | "color-info", ...args: any[]) => void;
172
+ }, {
173
+ colorModeOptions: {
174
+ key: string;
175
+ text: string;
176
+ }[];
177
+ colorMode: {
178
+ key: string;
179
+ text: string;
180
+ };
181
+ color: string;
182
+ r: string;
183
+ g: string;
184
+ b: string;
185
+ h: string;
186
+ s: string;
187
+ v: string;
188
+ alpha: string;
189
+ syncLock: boolean;
190
+ hueValue: number;
191
+ pointerSaturationValue: number;
192
+ paletteSaturationValue: number;
193
+ brightnessValue: number;
194
+ alphaValue: number;
195
+ colorObj: import("../../utils/common").Color;
196
+ colorLeft: number;
197
+ colorTop: number;
198
+ colorValueLeft: number;
199
+ colorSaturationLeft: number;
200
+ colorAlphaLeft: number;
201
+ baseColorList: import("../../utils/common").Color[];
202
+ colorList: import("../../utils/common").Color[];
203
+ updateCoordsThrottled: undefined;
204
+ updateValueThrottled: undefined;
205
+ updateSaturationThrottled: undefined;
206
+ updateAlphaThrottled: undefined;
207
+ colorAreaMouseMoveEvent: undefined;
208
+ colorValueMouseMoveEvent: undefined;
209
+ colorSaturationMouseMoveEvent: undefined;
210
+ colorAlphaMouseMoveEvent: undefined;
211
+ }, {
212
+ $theme(): string;
213
+ computedColorPickerClass(): string[];
214
+ hasVisibleControls(): any;
215
+ computedColorPickerStyle(): {
216
+ '--fv-color-picker--color-list': string;
217
+ '--fv-color-picker--color': string;
218
+ '--fv-color-picker--color-alpha': string;
219
+ '--fv-color-picker--color-value': string;
220
+ '--fv-color-picker--color-saturation-empty': string;
221
+ '--fv-color-picker--color-saturation-full': string;
222
+ '--fv-color-picker--pointer-left': string;
223
+ '--fv-color-picker--pointer-top': string;
224
+ '--fv-color-picker--color-value-left': string;
225
+ '--fv-color-picker--color-saturation-left': string;
226
+ '--fv-color-picker--color-alpha-left': string;
227
+ '--fv-color-picker--color-value-empty': string;
228
+ };
229
+ colorListStr(): string;
230
+ computedText: {
231
+ get(): string;
232
+ set(val: any): void;
233
+ };
234
+ computedR: {
235
+ get(): string;
236
+ set(val: any): void;
237
+ };
238
+ computedG: {
239
+ get(): string;
240
+ set(val: any): void;
241
+ };
242
+ computedB: {
243
+ get(): string;
244
+ set(val: any): void;
245
+ };
246
+ computedH: {
247
+ get(): string;
248
+ set(val: any): void;
249
+ };
250
+ computedS: {
251
+ get(): string;
252
+ set(val: any): void;
253
+ };
254
+ computedV: {
255
+ get(): string;
256
+ set(val: any): void;
257
+ };
258
+ computedAlpha: {
259
+ get(): string;
260
+ set(val: any): void;
261
+ };
262
+ }, {
263
+ withSyncLock(task: any): void;
264
+ syncRGBFields(clr: any): void;
265
+ syncText(clr: any, emit?: boolean): void;
266
+ buildColorInfo(clr: any): {
267
+ hex: any;
268
+ rgba: {
269
+ r: any;
270
+ g: any;
271
+ b: any;
272
+ a: number;
273
+ };
274
+ hsla: {
275
+ h: number;
276
+ s: number;
277
+ l: number;
278
+ a: number;
279
+ };
280
+ };
281
+ emitColorChange(clr: any): void;
282
+ syncStateFields(clr: any): void;
283
+ syncPointerFromState(): void;
284
+ syncValueSliderFromState(): void;
285
+ syncSaturationSliderFromState(): void;
286
+ syncAlphaSliderFromState(): void;
287
+ syncColorList(): void;
288
+ buildColorFromState(): import("../../utils/common").Color;
289
+ commitState(syncPointer?: boolean, emit?: boolean): void;
290
+ syncFromColor(clr: any, syncPointer?: boolean, emit?: boolean): void;
291
+ syncHSV(clr: any): void;
292
+ syncAlpha(clr: any): void;
293
+ handleUpdateCoords(mouse: any): void;
294
+ mousemoveEvent(mouse: any): void;
295
+ onMousedown(mouse: any): void;
296
+ handleUpdateValue(mouse: any): void;
297
+ valueMousemoveEvent(mouse: any): void;
298
+ onValueMouseDown(mouse: any): void;
299
+ handleUpdateSaturation(mouse: any): void;
300
+ saturationMousemoveEvent(mouse: any): void;
301
+ onSaturationMouseDown(mouse: any): void;
302
+ applyPaletteSaturation(number: any, emit?: boolean): void;
303
+ handleUpdateAlpha(mouse: any): void;
304
+ alphaMousemoveEvent(mouse: any): void;
305
+ onAlphaMouseDown(mouse: any): void;
306
+ }, {}>;
103
307
  __isFragment?: undefined;
104
308
  __isTeleport?: undefined;
105
309
  __isSuspense?: undefined;
106
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
107
- modelValue: {
108
- type: StringConstructor[];
310
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
311
+ $props: {
312
+ readonly theme?: string | undefined;
313
+ readonly type?: string | undefined;
314
+ readonly disabled?: boolean | undefined;
315
+ readonly lang?: string | undefined;
316
+ readonly foreground?: string | undefined;
317
+ readonly showValueSlider?: boolean | undefined;
318
+ readonly showSaturationSlider?: boolean | undefined;
319
+ readonly showAlphaSlider?: boolean | undefined;
320
+ readonly hideFields?: boolean | undefined;
321
+ readonly modelValue?: string | undefined;
322
+ };
323
+ $emit: (event: "update:modelValue" | "color-info", ...args: any[]) => void;
324
+ }, {
325
+ colorModeOptions: {
326
+ key: string;
327
+ text: string;
328
+ }[];
329
+ colorMode: {
330
+ key: string;
331
+ text: string;
332
+ };
333
+ color: string;
334
+ r: string;
335
+ g: string;
336
+ b: string;
337
+ h: string;
338
+ s: string;
339
+ v: string;
340
+ alpha: string;
341
+ syncLock: boolean;
342
+ hueValue: number;
343
+ pointerSaturationValue: number;
344
+ paletteSaturationValue: number;
345
+ brightnessValue: number;
346
+ alphaValue: number;
347
+ colorObj: import("../../utils/common").Color;
348
+ colorLeft: number;
349
+ colorTop: number;
350
+ colorValueLeft: number;
351
+ colorSaturationLeft: number;
352
+ colorAlphaLeft: number;
353
+ baseColorList: import("../../utils/common").Color[];
354
+ colorList: import("../../utils/common").Color[];
355
+ updateCoordsThrottled: undefined;
356
+ updateValueThrottled: undefined;
357
+ updateSaturationThrottled: undefined;
358
+ updateAlphaThrottled: undefined;
359
+ colorAreaMouseMoveEvent: undefined;
360
+ colorValueMouseMoveEvent: undefined;
361
+ colorSaturationMouseMoveEvent: undefined;
362
+ colorAlphaMouseMoveEvent: undefined;
363
+ }, {
364
+ $theme(): string;
365
+ computedColorPickerClass(): string[];
366
+ hasVisibleControls(): any;
367
+ computedColorPickerStyle(): {
368
+ '--fv-color-picker--color-list': string;
369
+ '--fv-color-picker--color': string;
370
+ '--fv-color-picker--color-alpha': string;
371
+ '--fv-color-picker--color-value': string;
372
+ '--fv-color-picker--color-saturation-empty': string;
373
+ '--fv-color-picker--color-saturation-full': string;
374
+ '--fv-color-picker--pointer-left': string;
375
+ '--fv-color-picker--pointer-top': string;
376
+ '--fv-color-picker--color-value-left': string;
377
+ '--fv-color-picker--color-saturation-left': string;
378
+ '--fv-color-picker--color-alpha-left': string;
379
+ '--fv-color-picker--color-value-empty': string;
380
+ };
381
+ colorListStr(): string;
382
+ computedText: {
383
+ get(): string;
384
+ set(val: any): void;
385
+ };
386
+ computedR: {
387
+ get(): string;
388
+ set(val: any): void;
109
389
  };
110
- foreground: {
111
- type: StringConstructor[];
112
- default: string;
390
+ computedG: {
391
+ get(): string;
392
+ set(val: any): void;
113
393
  };
114
- type: {
115
- type: StringConstructor[];
116
- default: string;
394
+ computedB: {
395
+ get(): string;
396
+ set(val: any): void;
117
397
  };
118
- theme: {
119
- type: StringConstructor;
120
- default: string;
398
+ computedH: {
399
+ get(): string;
400
+ set(val: any): void;
121
401
  };
122
- disabled: {
123
- type: BooleanConstructor;
124
- default: boolean;
402
+ computedS: {
403
+ get(): string;
404
+ set(val: any): void;
125
405
  };
126
- lang: {
127
- type: StringConstructor;
128
- default: string;
406
+ computedV: {
407
+ get(): string;
408
+ set(val: any): void;
409
+ };
410
+ computedAlpha: {
411
+ get(): string;
412
+ set(val: any): void;
413
+ };
414
+ }, {
415
+ withSyncLock(task: any): void;
416
+ syncRGBFields(clr: any): void;
417
+ syncText(clr: any, emit?: boolean): void;
418
+ buildColorInfo(clr: any): {
419
+ hex: any;
420
+ rgba: {
421
+ r: any;
422
+ g: any;
423
+ b: any;
424
+ a: number;
425
+ };
426
+ hsla: {
427
+ h: number;
428
+ s: number;
429
+ l: number;
430
+ a: number;
431
+ };
129
432
  };
130
- }>> & {
131
- "onUpdate:modelValue"?: ((val: string) => any) | undefined;
132
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
133
- 'update:modelValue'(val: string): boolean;
134
- }, string, {
135
- theme: string;
136
- type: string;
137
- disabled: boolean;
138
- lang: string;
139
- foreground: string;
140
- }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
433
+ emitColorChange(clr: any): void;
434
+ syncStateFields(clr: any): void;
435
+ syncPointerFromState(): void;
436
+ syncValueSliderFromState(): void;
437
+ syncSaturationSliderFromState(): void;
438
+ syncAlphaSliderFromState(): void;
439
+ syncColorList(): void;
440
+ buildColorFromState(): import("../../utils/common").Color;
441
+ commitState(syncPointer?: boolean, emit?: boolean): void;
442
+ syncFromColor(clr: any, syncPointer?: boolean, emit?: boolean): void;
443
+ syncHSV(clr: any): void;
444
+ syncAlpha(clr: any): void;
445
+ handleUpdateCoords(mouse: any): void;
446
+ mousemoveEvent(mouse: any): void;
447
+ onMousedown(mouse: any): void;
448
+ handleUpdateValue(mouse: any): void;
449
+ valueMousemoveEvent(mouse: any): void;
450
+ onValueMouseDown(mouse: any): void;
451
+ handleUpdateSaturation(mouse: any): void;
452
+ saturationMousemoveEvent(mouse: any): void;
453
+ onSaturationMouseDown(mouse: any): void;
454
+ applyPaletteSaturation(number: any, emit?: boolean): void;
455
+ handleUpdateAlpha(mouse: any): void;
456
+ alphaMousemoveEvent(mouse: any): void;
457
+ onAlphaMouseDown(mouse: any): void;
458
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
141
459
  $slots: {};
142
460
  })>;
143
461
  export default FvColorPicker;