@progress/kendo-vue-inputs 3.5.0 → 3.5.1-dev.202208150613
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/cdn/js/kendo-vue-inputs.js +1 -1
- package/dist/es/checkbox/Checkbox.js +1 -1
- package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
- package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
- package/dist/es/checkbox/interfaces/CheckboxProps.js +1 -0
- package/dist/es/colors/ColorContrastLabels.js +3 -3
- package/dist/es/colors/ColorContrastSvg.js +2 -2
- package/dist/es/colors/ColorGradient.js +7 -7
- package/dist/es/colors/ColorPalette.js +1 -1
- package/dist/es/colors/ColorPicker.js +4 -4
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorGradientProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPaletteProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerView.js +1 -0
- package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/PickerPopupSettings.js +1 -0
- package/dist/es/colors/interfaces/PickerProps.js +1 -0
- package/dist/es/colors/models/hsva.js +1 -0
- package/dist/es/colors/models/output-format.js +1 -0
- package/dist/es/colors/models/rgb.js +1 -0
- package/dist/es/colors/models/rgba.js +1 -0
- package/dist/es/colors/models/table-cell.js +1 -0
- package/dist/es/colors/models/tile-size.js +1 -0
- package/dist/es/colors/utils/color-parser.js +1 -1
- package/dist/es/colors/utils/svg-calc.js +4 -4
- package/dist/es/input/Input.js +2 -2
- package/dist/es/interfaces/Direction.js +1 -0
- package/dist/es/interfaces/ToggleBaseProps.js +1 -0
- package/dist/es/maskedtextbox/MaskedTextBox.js +3 -3
- package/dist/es/maskedtextbox/MaskedTextBoxProps.js +1 -0
- package/dist/es/maskedtextbox/parsing/result.js +1 -1
- package/dist/es/numerictextbox/NumericTextBox.js +2 -2
- package/dist/es/numerictextbox/interfaces/NumericTextBoxData.js +1 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
- package/dist/es/numerictextbox/utils/index.js +4 -4
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.js +1 -1
- package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonProps.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupProps.js +1 -0
- package/dist/es/range-slider/RangeSlider.js +4 -4
- package/dist/es/slider/SliderLabel.js +2 -2
- package/dist/es/switch/Switch.js +3 -3
- package/dist/es/textarea/TextArea.js +3 -3
- package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaFlow.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaProps.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaResize.js +1 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/checkbox/Checkbox.d.ts +79 -0
- package/dist/esm/checkbox/Checkbox.js +373 -0
- package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.d.ts +9 -0
- package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
- package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.d.ts +5 -0
- package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
- package/dist/esm/checkbox/interfaces/CheckboxProps.d.ts +110 -0
- package/dist/esm/checkbox/interfaces/CheckboxProps.js +1 -0
- package/dist/esm/colors/ColorContrastLabels.d.ts +49 -0
- package/dist/esm/colors/ColorContrastLabels.js +84 -0
- package/dist/esm/colors/ColorContrastSvg.d.ts +50 -0
- package/dist/esm/colors/ColorContrastSvg.js +130 -0
- package/dist/esm/colors/ColorGradient.d.ts +54 -0
- package/dist/esm/colors/ColorGradient.js +515 -0
- package/dist/esm/colors/ColorInput.d.ts +57 -0
- package/dist/esm/colors/ColorInput.js +343 -0
- package/dist/esm/colors/ColorPalette.d.ts +60 -0
- package/dist/esm/colors/ColorPalette.js +343 -0
- package/dist/esm/colors/ColorPicker.d.ts +57 -0
- package/dist/esm/colors/ColorPicker.js +505 -0
- package/dist/esm/colors/FlatColorPicker.d.ts +139 -0
- package/dist/esm/colors/FlatColorPicker.js +539 -0
- package/dist/esm/colors/HexInput.d.ts +52 -0
- package/dist/esm/colors/HexInput.js +110 -0
- package/dist/esm/colors/Picker.d.ts +46 -0
- package/dist/esm/colors/Picker.js +110 -0
- package/dist/esm/colors/interfaces/ColorGradientChangeEvent.d.ts +13 -0
- package/dist/esm/colors/interfaces/ColorGradientChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorGradientProps.d.ts +68 -0
- package/dist/esm/colors/interfaces/ColorGradientProps.js +1 -0
- package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.d.ts +13 -0
- package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPaletteProps.d.ts +71 -0
- package/dist/esm/colors/interfaces/ColorPaletteProps.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.d.ts +13 -0
- package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerBlurEvent.d.ts +9 -0
- package/dist/esm/colors/interfaces/ColorPickerBlurEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerChangeEvent.d.ts +17 -0
- package/dist/esm/colors/interfaces/ColorPickerChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerFocusEvent.d.ts +9 -0
- package/dist/esm/colors/interfaces/ColorPickerFocusEvent.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.d.ts +32 -0
- package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerPopupSettings.d.ts +14 -0
- package/dist/esm/colors/interfaces/ColorPickerPopupSettings.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerProps.d.ts +176 -0
- package/dist/esm/colors/interfaces/ColorPickerProps.js +1 -0
- package/dist/esm/colors/interfaces/ColorPickerView.d.ts +10 -0
- package/dist/esm/colors/interfaces/ColorPickerView.js +1 -0
- package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +13 -0
- package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.js +1 -0
- package/dist/esm/colors/interfaces/PickerPopupSettings.d.ts +14 -0
- package/dist/esm/colors/interfaces/PickerPopupSettings.js +1 -0
- package/dist/esm/colors/interfaces/PickerProps.d.ts +46 -0
- package/dist/esm/colors/interfaces/PickerProps.js +1 -0
- package/dist/esm/colors/models/hsva.d.ts +9 -0
- package/dist/esm/colors/models/hsva.js +1 -0
- package/dist/esm/colors/models/output-format.d.ts +4 -0
- package/dist/esm/colors/models/output-format.js +1 -0
- package/dist/esm/colors/models/palette-presets.d.ts +53 -0
- package/dist/esm/colors/models/palette-presets.js +54 -0
- package/dist/esm/colors/models/rgb.d.ts +8 -0
- package/dist/esm/colors/models/rgb.js +1 -0
- package/dist/esm/colors/models/rgba.d.ts +9 -0
- package/dist/esm/colors/models/rgba.js +1 -0
- package/dist/esm/colors/models/table-cell.d.ts +7 -0
- package/dist/esm/colors/models/table-cell.js +1 -0
- package/dist/esm/colors/models/tile-size.d.ts +11 -0
- package/dist/esm/colors/models/tile-size.js +1 -0
- package/dist/esm/colors/utils/color-cache.d.ts +43 -0
- package/dist/esm/colors/utils/color-cache.js +75 -0
- package/dist/esm/colors/utils/color-palette.service.d.ts +13 -0
- package/dist/esm/colors/utils/color-palette.service.js +67 -0
- package/dist/esm/colors/utils/color-parser.d.ts +71 -0
- package/dist/esm/colors/utils/color-parser.js +145 -0
- package/dist/esm/colors/utils/misc.d.ts +15 -0
- package/dist/esm/colors/utils/misc.js +20 -0
- package/dist/esm/colors/utils/svg-calc.d.ts +62 -0
- package/dist/esm/colors/utils/svg-calc.js +103 -0
- package/dist/esm/input/Input.d.ts +189 -0
- package/dist/esm/input/Input.js +426 -0
- package/dist/esm/input-separator/InputSeparator.d.ts +26 -0
- package/dist/esm/input-separator/InputSeparator.js +43 -0
- package/dist/esm/interfaces/Direction.d.ts +1 -0
- package/dist/esm/interfaces/Direction.js +1 -0
- package/dist/esm/interfaces/ToggleBaseProps.d.ts +8 -0
- package/dist/esm/interfaces/ToggleBaseProps.js +1 -0
- package/dist/esm/main.d.ts +39 -0
- package/dist/esm/main.js +37 -0
- package/dist/esm/maskedtextbox/MaskedTextBox.d.ts +76 -0
- package/dist/esm/maskedtextbox/MaskedTextBox.js +511 -0
- package/dist/esm/maskedtextbox/MaskedTextBoxProps.d.ts +219 -0
- package/dist/esm/maskedtextbox/MaskedTextBoxProps.js +2 -0
- package/dist/esm/maskedtextbox/masking.service.d.ts +41 -0
- package/dist/esm/maskedtextbox/masking.service.js +206 -0
- package/dist/esm/maskedtextbox/parsing/combinators.d.ts +9 -0
- package/dist/esm/maskedtextbox/parsing/combinators.js +24 -0
- package/dist/esm/maskedtextbox/parsing/parsers.d.ts +47 -0
- package/dist/esm/maskedtextbox/parsing/parsers.js +154 -0
- package/dist/esm/maskedtextbox/parsing/result.d.ts +23 -0
- package/dist/esm/maskedtextbox/parsing/result.js +39 -0
- package/dist/esm/maskedtextbox/parsing/stream.d.ts +22 -0
- package/dist/esm/maskedtextbox/parsing/stream.js +41 -0
- package/dist/esm/maskedtextbox/utils.d.ts +16 -0
- package/dist/esm/maskedtextbox/utils.js +56 -0
- package/dist/esm/messages/index.d.ts +160 -0
- package/dist/esm/messages/index.js +162 -0
- package/dist/esm/numerictextbox/NumericTextBox.d.ts +87 -0
- package/dist/esm/numerictextbox/NumericTextBox.js +684 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.d.ts +15 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.js +1 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +178 -0
- package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
- package/dist/esm/numerictextbox/utils/index.d.ts +119 -0
- package/dist/esm/numerictextbox/utils/index.js +646 -0
- package/dist/esm/package-metadata.d.ts +5 -0
- package/dist/esm/package-metadata.js +11 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/radiobutton/RadioButton.d.ts +55 -0
- package/dist/esm/radiobutton/RadioButton.js +195 -0
- package/dist/esm/radiobutton/RadioGroup.d.ts +57 -0
- package/dist/esm/radiobutton/RadioGroup.js +218 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +5 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +9 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +5 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonProps.d.ts +107 -0
- package/dist/esm/radiobutton/interfaces/RadioButtonProps.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +9 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +5 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupProps.d.ts +81 -0
- package/dist/esm/radiobutton/interfaces/RadioGroupProps.js +1 -0
- package/dist/esm/range-slider/RangeSlider.d.ts +176 -0
- package/dist/esm/range-slider/RangeSlider.js +617 -0
- package/dist/esm/range-slider/range-raducer.d.ts +35 -0
- package/dist/esm/range-slider/range-raducer.js +157 -0
- package/dist/esm/slider/Slider.d.ts +140 -0
- package/dist/esm/slider/Slider.js +395 -0
- package/dist/esm/slider/SliderLabel.d.ts +65 -0
- package/dist/esm/slider/SliderLabel.js +121 -0
- package/dist/esm/switch/Switch.d.ts +182 -0
- package/dist/esm/switch/Switch.js +342 -0
- package/dist/esm/switch/util.d.ts +8 -0
- package/dist/esm/switch/util.js +46 -0
- package/dist/esm/textarea/TextArea.d.ts +81 -0
- package/dist/esm/textarea/TextArea.js +422 -0
- package/dist/esm/textarea/interfaces/TextAreaBlurEvent.d.ts +5 -0
- package/dist/esm/textarea/interfaces/TextAreaBlurEvent.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaChangeEvent.d.ts +9 -0
- package/dist/esm/textarea/interfaces/TextAreaChangeEvent.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaFlow.d.ts +8 -0
- package/dist/esm/textarea/interfaces/TextAreaFlow.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaFocusEvent.d.ts +5 -0
- package/dist/esm/textarea/interfaces/TextAreaFocusEvent.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaProps.d.ts +170 -0
- package/dist/esm/textarea/interfaces/TextAreaProps.js +1 -0
- package/dist/esm/textarea/interfaces/TextAreaResize.d.ts +10 -0
- package/dist/esm/textarea/interfaces/TextAreaResize.js +1 -0
- package/dist/npm/checkbox/Checkbox.js +12 -12
- package/dist/npm/colors/ColorContrastLabels.js +5 -5
- package/dist/npm/colors/ColorContrastSvg.js +4 -4
- package/dist/npm/colors/ColorGradient.js +42 -42
- package/dist/npm/colors/ColorInput.js +2 -2
- package/dist/npm/colors/ColorPalette.js +12 -12
- package/dist/npm/colors/ColorPicker.js +15 -15
- package/dist/npm/colors/FlatColorPicker.js +10 -10
- package/dist/npm/colors/HexInput.js +4 -4
- package/dist/npm/colors/Picker.js +2 -2
- package/dist/npm/colors/utils/color-palette.service.js +6 -6
- package/dist/npm/colors/utils/color-parser.js +48 -37
- package/dist/npm/colors/utils/misc.js +5 -3
- package/dist/npm/colors/utils/svg-calc.js +12 -8
- package/dist/npm/input/Input.js +4 -4
- package/dist/npm/input-separator/InputSeparator.js +1 -1
- package/dist/npm/main.js +7 -2
- package/dist/npm/maskedtextbox/MaskedTextBox.js +8 -8
- package/dist/npm/maskedtextbox/masking.service.js +19 -19
- package/dist/npm/maskedtextbox/parsing/combinators.js +4 -2
- package/dist/npm/maskedtextbox/parsing/parsers.js +14 -7
- package/dist/npm/maskedtextbox/parsing/result.js +1 -1
- package/dist/npm/numerictextbox/NumericTextBox.js +22 -22
- package/dist/npm/numerictextbox/utils/index.js +145 -116
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.js +8 -8
- package/dist/npm/radiobutton/RadioGroup.js +5 -5
- package/dist/npm/range-slider/RangeSlider.js +17 -17
- package/dist/npm/range-slider/range-raducer.js +4 -2
- package/dist/npm/slider/Slider.js +7 -7
- package/dist/npm/slider/SliderLabel.js +3 -3
- package/dist/npm/switch/Switch.js +13 -13
- package/dist/npm/switch/util.js +2 -1
- package/dist/npm/textarea/TextArea.js +7 -7
- package/package.json +17 -11
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
}; // @ts-ignore
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as Vue from 'vue';
|
|
19
|
+
var allVue = Vue;
|
|
20
|
+
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
22
|
+
import { Button } from '@progress/kendo-vue-buttons';
|
|
23
|
+
import { classNames, Keys, // useDir,
|
|
24
|
+
getTabIndex, guid, kendoThemeMaps, validatePackage, setRef, getRef } from '@progress/kendo-vue-common';
|
|
25
|
+
import { packageMetadata } from '../package-metadata.js';
|
|
26
|
+
import { Picker } from './Picker.js';
|
|
27
|
+
import { FlatColorPicker } from './FlatColorPicker.js';
|
|
28
|
+
import { DEFAULT_GRADIENT_SETTINGS, DEFAULT_PALETTE_SETTINGS } from './utils/color-cache.js';
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
var isControlled = function isControlled(prop) {
|
|
34
|
+
return prop !== undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var ColorPickerVue2 = {
|
|
42
|
+
name: 'KendoColorPicker',
|
|
43
|
+
model: {
|
|
44
|
+
event: 'changemodel'
|
|
45
|
+
},
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
emits: {
|
|
48
|
+
'open': null,
|
|
49
|
+
'close': null,
|
|
50
|
+
'changemodel': null,
|
|
51
|
+
'update:modelValue': null,
|
|
52
|
+
'update:modelRgbaValue': null,
|
|
53
|
+
'activecolorclick': null,
|
|
54
|
+
'focus': null,
|
|
55
|
+
'blur': null,
|
|
56
|
+
'change': null,
|
|
57
|
+
'viewchange': null
|
|
58
|
+
},
|
|
59
|
+
props: {
|
|
60
|
+
modelValue: String,
|
|
61
|
+
modelRgbaValue: String,
|
|
62
|
+
value: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: undefined
|
|
65
|
+
},
|
|
66
|
+
defaultValue: String,
|
|
67
|
+
disabled: Boolean,
|
|
68
|
+
dir: String,
|
|
69
|
+
id: String,
|
|
70
|
+
ariaLabelledBy: String,
|
|
71
|
+
ariaDescribedBy: String,
|
|
72
|
+
showClearButton: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: true
|
|
75
|
+
},
|
|
76
|
+
showPreview: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
79
|
+
},
|
|
80
|
+
showButtons: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: true
|
|
83
|
+
},
|
|
84
|
+
paletteSettings: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: function _default() {
|
|
87
|
+
return DEFAULT_PALETTE_SETTINGS;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
valid: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: true
|
|
93
|
+
},
|
|
94
|
+
tabIndex: {
|
|
95
|
+
type: Number,
|
|
96
|
+
default: 0
|
|
97
|
+
},
|
|
98
|
+
title: String,
|
|
99
|
+
icon: String,
|
|
100
|
+
iconClassName: String,
|
|
101
|
+
popupSettings: {
|
|
102
|
+
type: Object,
|
|
103
|
+
default: function _default() {
|
|
104
|
+
return {};
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
gradientSettings: {
|
|
108
|
+
type: Object,
|
|
109
|
+
default: function _default() {
|
|
110
|
+
return DEFAULT_GRADIENT_SETTINGS;
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
flatColorPickerSettings: {
|
|
114
|
+
type: Object,
|
|
115
|
+
default: function _default() {
|
|
116
|
+
return {};
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
open: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: undefined
|
|
122
|
+
},
|
|
123
|
+
size: {
|
|
124
|
+
type: String,
|
|
125
|
+
default: 'medium',
|
|
126
|
+
validator: function validator(value) {
|
|
127
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
rounded: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: 'medium',
|
|
133
|
+
validator: function validator(value) {
|
|
134
|
+
return [null, 'small', 'medium', 'large', 'full'].includes(value);
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
fillMode: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: 'solid',
|
|
140
|
+
validator: function validator(value) {
|
|
141
|
+
return [null, 'solid', 'flat', 'outline'].includes(value);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
view: {
|
|
145
|
+
type: String,
|
|
146
|
+
default: 'combo',
|
|
147
|
+
validator: function validator(value) {
|
|
148
|
+
return ['gradient', 'palette', 'combo'].includes(value);
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
selectedView: {
|
|
152
|
+
type: Number,
|
|
153
|
+
default: undefined
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
data: function data() {
|
|
157
|
+
return {
|
|
158
|
+
focused: false,
|
|
159
|
+
currentValue: this.$props.defaultValue,
|
|
160
|
+
currentOpen: false
|
|
161
|
+
};
|
|
162
|
+
},
|
|
163
|
+
computed: {
|
|
164
|
+
isValueControlled: function isValueControlled() {
|
|
165
|
+
return this.$props.value !== undefined;
|
|
166
|
+
},
|
|
167
|
+
isOpenControlled: function isOpenControlled() {
|
|
168
|
+
return this.$props.open !== undefined;
|
|
169
|
+
},
|
|
170
|
+
computedValue: function computedValue() {
|
|
171
|
+
return this.isValueControlled ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.$props.modelRgbaValue !== undefined ? this.$props.modelRgbaValue : this.currentValue !== undefined ? this.currentValue : this.defaultValue;
|
|
172
|
+
},
|
|
173
|
+
computedOpen: function computedOpen() {
|
|
174
|
+
return this.isOpenControlled ? this.$props.open : this.currentOpen;
|
|
175
|
+
},
|
|
176
|
+
computedIconClassName: function computedIconClassName() {
|
|
177
|
+
var icon = this.$props.icon;
|
|
178
|
+
return this.$props.iconClassName || icon && "k-icon k-i-".concat(icon);
|
|
179
|
+
},
|
|
180
|
+
wrapperClassName: function wrapperClassName() {
|
|
181
|
+
var _a;
|
|
182
|
+
|
|
183
|
+
var _b = this.$props,
|
|
184
|
+
size = _b.size,
|
|
185
|
+
fillMode = _b.fillMode,
|
|
186
|
+
rounded = _b.rounded;
|
|
187
|
+
return _a = {
|
|
188
|
+
'k-picker': true,
|
|
189
|
+
'k-colorpicker': true,
|
|
190
|
+
'k-icon-picker': true
|
|
191
|
+
}, _a["k-picker-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-picker-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-invalid'] = !this.valid, _a['k-disabled'] = this.disabled, _a['k-focus'] = this.focused, _a;
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
created: function created() {
|
|
195
|
+
validatePackage(packageMetadata);
|
|
196
|
+
this._popupId = 'popup' + guid();
|
|
197
|
+
this.focusableElementGuid = guid();
|
|
198
|
+
},
|
|
199
|
+
mounted: function mounted() {
|
|
200
|
+
this.button = getRef(this, 'button');
|
|
201
|
+
},
|
|
202
|
+
updated: function updated() {// this.button = getRef(this, 'button');
|
|
203
|
+
},
|
|
204
|
+
// @ts-ignore
|
|
205
|
+
setup: !isV3 ? undefined : function () {
|
|
206
|
+
var v3 = !!isV3;
|
|
207
|
+
return {
|
|
208
|
+
v3: v3
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
// @ts-ignore
|
|
212
|
+
render: function render(createElement) {
|
|
213
|
+
var _this2 = this;
|
|
214
|
+
|
|
215
|
+
var _a;
|
|
216
|
+
|
|
217
|
+
var _this = this;
|
|
218
|
+
|
|
219
|
+
var h = gh || createElement;
|
|
220
|
+
var _b = this.$props,
|
|
221
|
+
disabled = _b.disabled,
|
|
222
|
+
tabIndex = _b.tabIndex,
|
|
223
|
+
dir = _b.dir,
|
|
224
|
+
view = _b.view,
|
|
225
|
+
selectedView = _b.selectedView,
|
|
226
|
+
showClearButton = _b.showClearButton,
|
|
227
|
+
showPreview = _b.showPreview,
|
|
228
|
+
showButtons = _b.showButtons,
|
|
229
|
+
popupSettings = _b.popupSettings;
|
|
230
|
+
|
|
231
|
+
var renderFlatColorPicker = function renderFlatColorPicker() {
|
|
232
|
+
return h(FlatColorPicker, __assign({
|
|
233
|
+
onKeydown: this.onKeyDownHandler,
|
|
234
|
+
on: this.v3 ? undefined : {
|
|
235
|
+
'keydown': this.onKeyDownHandler,
|
|
236
|
+
'change': this.onFlatChangeHandler,
|
|
237
|
+
'focusout': this.onBlurHandler,
|
|
238
|
+
'viewchange': this.onViewChange
|
|
239
|
+
},
|
|
240
|
+
ref: setRef(this, 'flatcolorpicker'),
|
|
241
|
+
view: view,
|
|
242
|
+
selectedView: selectedView,
|
|
243
|
+
showClearButton: showClearButton,
|
|
244
|
+
showPreview: showPreview,
|
|
245
|
+
showButtons: showButtons,
|
|
246
|
+
value: this.computedValue || undefined,
|
|
247
|
+
attrs: this.v3 ? undefined : __assign({
|
|
248
|
+
view: view,
|
|
249
|
+
selectedView: selectedView,
|
|
250
|
+
showClearButton: showClearButton,
|
|
251
|
+
showPreview: showPreview,
|
|
252
|
+
showButtons: showButtons,
|
|
253
|
+
value: this.computedValue || undefined,
|
|
254
|
+
paletteSettings: this.paletteSettings,
|
|
255
|
+
gradientSettings: this.gradientSettings
|
|
256
|
+
}, this.flatColorPickerSettings),
|
|
257
|
+
onChange: this.onFlatChangeHandler,
|
|
258
|
+
onFocusout: this.onBlurHandler,
|
|
259
|
+
onViewchange: this.onViewChange,
|
|
260
|
+
paletteSettings: this.paletteSettings,
|
|
261
|
+
gradientSettings: this.gradientSettings
|
|
262
|
+
}, this.flatColorPickerSettings));
|
|
263
|
+
}; // const dir = useDir(focusableElementGuid, props.dir);
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
return h("span", {
|
|
267
|
+
"class": this.wrapperClassName,
|
|
268
|
+
dir: dir,
|
|
269
|
+
attrs: this.v3 ? undefined : {
|
|
270
|
+
dir: dir,
|
|
271
|
+
id: this.$props.id,
|
|
272
|
+
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
273
|
+
"aria-describedby": this.$props.ariaDescribedBy,
|
|
274
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
275
|
+
title: this.$props.title
|
|
276
|
+
},
|
|
277
|
+
id: this.$props.id,
|
|
278
|
+
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
279
|
+
"aria-describedby": this.$props.ariaDescribedBy,
|
|
280
|
+
ref: this.focusableElementGuid,
|
|
281
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
282
|
+
title: this.$props.title,
|
|
283
|
+
onKeydown: this.onButtonKeyDown,
|
|
284
|
+
on: this.v3 ? undefined : {
|
|
285
|
+
"keydown": this.onButtonKeyDown,
|
|
286
|
+
"focusin": this.onFocusHandler,
|
|
287
|
+
"focusout": this.onButtonBlur
|
|
288
|
+
},
|
|
289
|
+
onFocusin: this.onFocusHandler,
|
|
290
|
+
onFocusout: this.onButtonBlur
|
|
291
|
+
}, [h("span", {
|
|
292
|
+
onClick: this.onActiveColorClickHandler,
|
|
293
|
+
on: this.v3 ? undefined : {
|
|
294
|
+
"click": this.onActiveColorClickHandler
|
|
295
|
+
},
|
|
296
|
+
"class": 'k-input-inner'
|
|
297
|
+
}, [h("span", {
|
|
298
|
+
"class": classNames('k-value-icon', 'k-color-preview', {
|
|
299
|
+
'k-no-color': !this.computedValue,
|
|
300
|
+
'k-icon-color-preview': this.icon || this.iconClassName
|
|
301
|
+
})
|
|
302
|
+
}, [(this.iconClassName || this.icon) && h("span", {
|
|
303
|
+
"class": classNames('k-color-preview-icon', this.iconClassName, (_a = {}, _a["k-icon k-i-".concat(this.icon)] = this.icon && !this.iconClassName, _a))
|
|
304
|
+
}), h("span", {
|
|
305
|
+
"class": "k-color-preview-mask",
|
|
306
|
+
style: {
|
|
307
|
+
backgroundColor: this.computedValue
|
|
308
|
+
}
|
|
309
|
+
})])]), // @ts-ignore
|
|
310
|
+
h(Button, {
|
|
311
|
+
type: "button",
|
|
312
|
+
attrs: this.v3 ? undefined : {
|
|
313
|
+
type: "button",
|
|
314
|
+
tabindex: -1,
|
|
315
|
+
rounded: null,
|
|
316
|
+
icon: 'arrow-s'
|
|
317
|
+
},
|
|
318
|
+
tabindex: -1,
|
|
319
|
+
ref: this.v3 ? function (el) {
|
|
320
|
+
_this.buttonRef = el;
|
|
321
|
+
} : 'button',
|
|
322
|
+
onClick: this.onClickHandler,
|
|
323
|
+
on: this.v3 ? undefined : {
|
|
324
|
+
"click": this.onClickHandler
|
|
325
|
+
},
|
|
326
|
+
rounded: null,
|
|
327
|
+
"class": "k-input-button",
|
|
328
|
+
icon: 'arrow-s'
|
|
329
|
+
}), // @ts-ignore function children
|
|
330
|
+
h(Picker, {
|
|
331
|
+
dir: dir,
|
|
332
|
+
attrs: this.v3 ? undefined : {
|
|
333
|
+
dir: dir,
|
|
334
|
+
id: this._popupId,
|
|
335
|
+
open: this.computedOpen,
|
|
336
|
+
popupAnchor: this.focusableElementGuid,
|
|
337
|
+
popupSettings: __assign({}, popupSettings)
|
|
338
|
+
},
|
|
339
|
+
id: this._popupId,
|
|
340
|
+
open: this.computedOpen,
|
|
341
|
+
onOpen: this.onOpenHandler,
|
|
342
|
+
on: this.v3 ? undefined : {
|
|
343
|
+
"open": this.onOpenHandler
|
|
344
|
+
},
|
|
345
|
+
popupAnchor: this.focusableElementGuid,
|
|
346
|
+
popupSettings: __assign({}, popupSettings)
|
|
347
|
+
}, this.v3 ? function () {
|
|
348
|
+
return [renderFlatColorPicker.call(_this2)];
|
|
349
|
+
} : [renderFlatColorPicker.call(_this2)])]);
|
|
350
|
+
},
|
|
351
|
+
methods: {
|
|
352
|
+
focusElement: function focusElement() {
|
|
353
|
+
if (this.$el) {
|
|
354
|
+
this.$el.focus();
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
setOpen: function setOpen(nextOpen, isBlur) {
|
|
358
|
+
if (!nextOpen && !isBlur && this.$el) {
|
|
359
|
+
this.$el.focus();
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
this.currentOpen = nextOpen;
|
|
363
|
+
this.$emit(nextOpen ? 'open' : 'close');
|
|
364
|
+
},
|
|
365
|
+
onButtonKeyDown: function onButtonKeyDown(event) {
|
|
366
|
+
var altKey = event.altKey,
|
|
367
|
+
keyCode = event.keyCode;
|
|
368
|
+
|
|
369
|
+
if (keyCode === Keys.esc) {
|
|
370
|
+
event.preventDefault();
|
|
371
|
+
event.stopPropagation();
|
|
372
|
+
this.setOpen(false);
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (keyCode === Keys.enter) {
|
|
377
|
+
event.preventDefault();
|
|
378
|
+
event.stopPropagation();
|
|
379
|
+
this.setOpen(!this.computedOpen);
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
if (altKey && keyCode === Keys.down) {
|
|
384
|
+
event.preventDefault();
|
|
385
|
+
event.stopPropagation();
|
|
386
|
+
this.setOpen(true);
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
onKeyDownHandler: function onKeyDownHandler(event) {
|
|
390
|
+
var altKey = event.altKey,
|
|
391
|
+
keyCode = event.keyCode;
|
|
392
|
+
|
|
393
|
+
if (keyCode === Keys.esc) {
|
|
394
|
+
event.preventDefault();
|
|
395
|
+
event.stopPropagation();
|
|
396
|
+
this.setOpen(false);
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if (keyCode === Keys.enter) {
|
|
401
|
+
event.preventDefault();
|
|
402
|
+
event.stopPropagation();
|
|
403
|
+
this.focusElement();
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (altKey && keyCode === Keys.up) {
|
|
408
|
+
event.preventDefault();
|
|
409
|
+
event.stopPropagation();
|
|
410
|
+
this.setOpen(false);
|
|
411
|
+
this.focusElement();
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
onOpenHandler: function onOpenHandler() {
|
|
415
|
+
// Skip content autofocus when in controlled mode
|
|
416
|
+
var flatcolorpicker = getRef(this, 'flatcolorpicker');
|
|
417
|
+
|
|
418
|
+
if (flatcolorpicker) {
|
|
419
|
+
flatcolorpicker.focus();
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
onClickHandler: function onClickHandler() {
|
|
423
|
+
this.setOpen(!this.computedOpen, true);
|
|
424
|
+
},
|
|
425
|
+
onActiveColorClickHandler: function onActiveColorClickHandler(event) {
|
|
426
|
+
this.$emit('activecolorclick', {
|
|
427
|
+
event: event,
|
|
428
|
+
value: this.computedValue
|
|
429
|
+
});
|
|
430
|
+
},
|
|
431
|
+
isViewFocused: function isViewFocused() {
|
|
432
|
+
return !!(document.activeElement && document.activeElement.closest("#".concat(this._popupId)));
|
|
433
|
+
},
|
|
434
|
+
onButtonBlur: function onButtonBlur(event) {
|
|
435
|
+
this.focused = this.isViewFocused();
|
|
436
|
+
this.$emit('blur', {
|
|
437
|
+
event: event
|
|
438
|
+
});
|
|
439
|
+
},
|
|
440
|
+
onFocusHandler: function onFocusHandler(event) {
|
|
441
|
+
if (this.blurTimeoutRef) {
|
|
442
|
+
clearTimeout(this.blurTimeoutRef);
|
|
443
|
+
this.blurTimeoutRef = undefined; // case where moving back to input from popup
|
|
444
|
+
|
|
445
|
+
if (event.target === this.$el) {
|
|
446
|
+
this.setOpen(false); // in this case we should focus input on keydown
|
|
447
|
+
}
|
|
448
|
+
} else {
|
|
449
|
+
this.focused = true;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
this.$emit('focus', {
|
|
453
|
+
event: event
|
|
454
|
+
});
|
|
455
|
+
},
|
|
456
|
+
onBlurTimeout: function onBlurTimeout() {
|
|
457
|
+
var viewIsFocused = this.isViewFocused();
|
|
458
|
+
|
|
459
|
+
if (!viewIsFocused) {
|
|
460
|
+
this.setOpen(false, true);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
this.focused = viewIsFocused;
|
|
464
|
+
this.blurTimeoutRef = undefined;
|
|
465
|
+
},
|
|
466
|
+
onBlurHandler: function onBlurHandler() {
|
|
467
|
+
clearTimeout(this.blurTimeoutRef);
|
|
468
|
+
this.palette = getRef(this, 'palette');
|
|
469
|
+
this.gradient = getRef(this, 'gradient');
|
|
470
|
+
this.blurTimeoutRef = setTimeout(this.onBlurTimeout, 200);
|
|
471
|
+
},
|
|
472
|
+
onViewChange: function onViewChange(event) {
|
|
473
|
+
this.$emit('viewchange', event);
|
|
474
|
+
},
|
|
475
|
+
onChangeHandler: function onChangeHandler(event, isPalette) {
|
|
476
|
+
var currentValue = event.value;
|
|
477
|
+
|
|
478
|
+
if (!this.isValueControlled) {
|
|
479
|
+
this.currentValue = currentValue;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (isPalette) {
|
|
483
|
+
this.setOpen(false);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
this.$emit('changemodel', currentValue);
|
|
487
|
+
this.$emit('update:modelRgbaValue', event.rgbaValue);
|
|
488
|
+
this.$emit('update:modelValue', currentValue);
|
|
489
|
+
this.$emit('change', {
|
|
490
|
+
value: currentValue,
|
|
491
|
+
rgbaValue: event.rgbaValue,
|
|
492
|
+
event: event
|
|
493
|
+
});
|
|
494
|
+
},
|
|
495
|
+
onFlatChangeHandler: function onFlatChangeHandler(event) {
|
|
496
|
+
this.onChangeHandler(event, true);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* @hidden
|
|
502
|
+
*/
|
|
503
|
+
|
|
504
|
+
var ColorPicker = ColorPickerVue2;
|
|
505
|
+
export { ColorPicker, ColorPickerVue2 };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { ColorPickerChangeEvent } from '../main';
|
|
7
|
+
import { FlatColorPickerViewChangeEvent } from './interfaces/FlatColorPickerViewChangeEvent';
|
|
8
|
+
import { ColorGradientProps } from './interfaces/ColorGradientProps';
|
|
9
|
+
import { ColorPickerPaletteSettings } from './interfaces/ColorPickerPaletteSettings';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the properties of [FlatColorPicker](% slug api_inputs_flatcolorpickerprops %) component.
|
|
12
|
+
*/
|
|
13
|
+
export interface FlatColorPickerProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the `id` property of the top `div` element of the FlatColorPicker.
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the color model value.
|
|
20
|
+
*/
|
|
21
|
+
modelValue?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The model rgba value of the FlatColorPicker.
|
|
24
|
+
*/
|
|
25
|
+
modelRgbaValue?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the color value.
|
|
28
|
+
*/
|
|
29
|
+
value?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the previous color value.
|
|
32
|
+
*/
|
|
33
|
+
prevValue?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the `tabIndex` property of the FlatColorPicker.
|
|
36
|
+
*/
|
|
37
|
+
tabIndex?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Determines whether the FlatColorPicker is disabled.
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the FlatColorPicker view. The default is `combo`.
|
|
44
|
+
*/
|
|
45
|
+
view?: 'combo' | 'gradient' | 'palette' | string;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the FlatColorPicker selected view index. The default is `0`.
|
|
48
|
+
*/
|
|
49
|
+
selectedView?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Sets custom header component.
|
|
52
|
+
*/
|
|
53
|
+
header?: any;
|
|
54
|
+
/**
|
|
55
|
+
* Sets custom footer component.
|
|
56
|
+
*/
|
|
57
|
+
footer?: any;
|
|
58
|
+
/**
|
|
59
|
+
* Specifies whether clear button will be rendered in the header.
|
|
60
|
+
*/
|
|
61
|
+
showClearButton?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies whether preview and revert color boxes will be rendered in the header.
|
|
64
|
+
*/
|
|
65
|
+
showPreview?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Specifies whether action buttons will be rendered in the footer.
|
|
68
|
+
*/
|
|
69
|
+
showButtons?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Configures the ColorPalette that is displayed in the ColorPicker popup.
|
|
72
|
+
*/
|
|
73
|
+
paletteSettings?: ColorPickerPaletteSettings;
|
|
74
|
+
/**
|
|
75
|
+
* Configures the ColorGradient that is displayed in the ColorPicker popup.
|
|
76
|
+
*/
|
|
77
|
+
gradientSettings?: ColorGradientProps;
|
|
78
|
+
/**
|
|
79
|
+
* The event handler that will be fired when the view is changed.
|
|
80
|
+
*/
|
|
81
|
+
onViewchange?: (event: FlatColorPickerViewChangeEvent) => void;
|
|
82
|
+
/**
|
|
83
|
+
* The event handler that will be fired when the user edits the value.
|
|
84
|
+
*/
|
|
85
|
+
onChange?: (event: ColorPickerChangeEvent) => void;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @hidden
|
|
89
|
+
*/
|
|
90
|
+
export interface FlatColorPickerHandle {
|
|
91
|
+
/**
|
|
92
|
+
* The current element or `null` if there is none.
|
|
93
|
+
*/
|
|
94
|
+
element: HTMLDivElement | null;
|
|
95
|
+
/**
|
|
96
|
+
* The props values of the FlatColorPicker.
|
|
97
|
+
*/
|
|
98
|
+
props: FlatColorPickerProps;
|
|
99
|
+
/**
|
|
100
|
+
* The focus event callback.
|
|
101
|
+
*/
|
|
102
|
+
focus: () => void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
*/
|
|
107
|
+
export interface FlatColorPickerState {
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @hidden
|
|
111
|
+
*/
|
|
112
|
+
export interface FlatColorPickerComputed {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @hidden
|
|
117
|
+
*/
|
|
118
|
+
export interface FlatColorPickerMethods {
|
|
119
|
+
[key: string]: any;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @hidden
|
|
123
|
+
*/
|
|
124
|
+
export interface FlatColorPickerData {
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @hidden
|
|
128
|
+
*/
|
|
129
|
+
export interface FlatColorPickerAll extends Vue2type, FlatColorPickerMethods, FlatColorPickerData, FlatColorPickerComputed, FlatColorPickerState {
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @hidden
|
|
133
|
+
*/
|
|
134
|
+
declare let FlatColorPickerVue2: ComponentOptions<FlatColorPickerAll, DefaultData<FlatColorPickerData>, DefaultMethods<FlatColorPickerAll>, FlatColorPickerComputed, RecordPropsDefinition<FlatColorPickerProps>>;
|
|
135
|
+
/**
|
|
136
|
+
* @hidden
|
|
137
|
+
*/
|
|
138
|
+
declare const FlatColorPicker: DefineComponent<FlatColorPickerProps, any, FlatColorPickerData, FlatColorPickerComputed, FlatColorPickerMethods, {}, {}, {}, string, FlatColorPickerProps, FlatColorPickerProps, {}>;
|
|
139
|
+
export { FlatColorPicker, FlatColorPickerVue2 };
|