@progress/kendo-vue-inputs 8.0.3-develop.2 → 8.0.3-develop.3
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/checkbox/Checkbox.d.ts +193 -0
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxProps.d.ts +120 -0
- package/colors/ColorContrastLabels.d.ts +27 -0
- package/colors/ColorContrastSvg.d.ts +30 -0
- package/colors/ColorGradient.d.ts +128 -0
- package/colors/ColorInput.d.ts +67 -0
- package/colors/ColorPalette.d.ts +112 -0
- package/colors/ColorPicker.d.ts +279 -0
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +7 -6
- package/colors/FlatColorPicker.d.ts +286 -0
- package/colors/FlatColorPicker.mjs +3 -3
- package/colors/HexInput.d.ts +55 -0
- package/colors/Picker.d.ts +35 -0
- package/colors/common/ColorsAdaptiveMode.d.ts +47 -0
- package/colors/interfaces/ColorGradientBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorGradientFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientProps.d.ts +95 -0
- package/colors/interfaces/ColorPaletteBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPaletteFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteProps.d.ts +93 -0
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +24 -0
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/ColorPickerProps.d.ts +190 -0
- package/colors/interfaces/ColorPickerView.d.ts +17 -0
- package/colors/interfaces/FlatColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusoutEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +20 -0
- package/colors/interfaces/HexInputBlurEvent.d.ts +17 -0
- package/colors/interfaces/HexInputFocusEvent.d.ts +17 -0
- package/colors/interfaces/PickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/PickerProps.d.ts +53 -0
- package/colors/models/hsva.d.ts +16 -0
- package/colors/models/output-format.d.ts +11 -0
- package/colors/models/palette-presets.d.ts +60 -0
- package/colors/models/rgb.d.ts +15 -0
- package/colors/models/rgba.d.ts +16 -0
- package/colors/models/table-cell.d.ts +14 -0
- package/colors/models/tile-size.d.ts +18 -0
- package/colors/utils/color-cache.d.ts +50 -0
- package/colors/utils/color-palette.service.d.ts +20 -0
- package/colors/utils/color-parser.d.ts +78 -0
- package/colors/utils/misc.d.ts +22 -0
- package/colors/utils/svg-calc.d.ts +69 -0
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/index.d.mts +74 -5820
- package/index.d.ts +74 -5820
- package/input/Input.d.ts +378 -0
- package/input/InputBlurEvent.d.ts +16 -0
- package/input/InputFocusEvent.d.ts +16 -0
- package/input-separator/InputSeparator.d.ts +42 -0
- package/input-separator/interfaces/InputSeparatorOrientation.d.ts +15 -0
- package/interfaces/Direction.d.ts +8 -0
- package/interfaces/ToggleBaseProps.d.ts +15 -0
- package/maskedtextbox/MaskedTextBox.d.ts +269 -0
- package/maskedtextbox/MaskedTextBoxBlurEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxFocusEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxProps.d.ts +230 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/parsing/combinators.d.ts +16 -0
- package/maskedtextbox/parsing/parsers.d.ts +54 -0
- package/maskedtextbox/parsing/result.d.ts +30 -0
- package/maskedtextbox/parsing/stream.d.ts +29 -0
- package/maskedtextbox/utils.d.ts +23 -0
- package/messages/main.d.ts +212 -0
- package/numerictextbox/NumericTextBox.d.ts +264 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +2 -0
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxData.d.ts +22 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +188 -0
- package/numerictextbox/utils/main.d.ts +126 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -11
- package/radiobutton/RadioButton.d.ts +94 -0
- package/radiobutton/RadioGroup.d.ts +97 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonProps.d.ts +120 -0
- package/radiobutton/interfaces/RadioGroupBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupProps.d.ts +86 -0
- package/range-slider/RangeSlider.d.ts +256 -0
- package/range-slider/range-raducer.d.ts +42 -0
- package/range-slider/range-raducer.js +1 -1
- package/range-slider/range-raducer.mjs +2 -2
- package/rating/Rating.d.ts +132 -0
- package/rating/RatingItem.d.ts +98 -0
- package/rating/interfaces/RatingBlurEvent.d.ts +16 -0
- package/rating/interfaces/RatingEvents.d.ts +54 -0
- package/rating/interfaces/RatingFocusEvent.d.ts +16 -0
- package/rating/interfaces/RatingItemProps.d.ts +99 -0
- package/rating/interfaces/RatingProps.d.ts +123 -0
- package/rating/utils/main.d.ts +31 -0
- package/rating/utils/rating-reducer.d.ts +39 -0
- package/signature/Signature.d.ts +219 -0
- package/signature/SignatureBottomActions.d.ts +35 -0
- package/signature/SignatureCanvas.d.ts +66 -0
- package/signature/SignatureDialog.d.ts +90 -0
- package/signature/SignatureLine.d.ts +12 -0
- package/signature/interfaces/SignatureBlurEvent.d.ts +12 -0
- package/signature/interfaces/SignatureCanvasProps.d.ts +23 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +16 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +12 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +12 -0
- package/signature/interfaces/SignatureHandle.d.ts +49 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +12 -0
- package/signature/interfaces/SignatureProps.d.ts +197 -0
- package/signature/interfaces/main.d.ts +14 -0
- package/signature/utils/main.d.ts +11 -0
- package/slider/Slider.d.ts +201 -0
- package/slider/SliderLabel.d.ts +57 -0
- package/slider/interfaces/SliderBlurEvent.d.ts +16 -0
- package/slider/interfaces/SliderFocusEvent.d.ts +16 -0
- package/switch/Switch.d.ts +318 -0
- package/switch/interfaces/SwitchBlurEvent.d.ts +16 -0
- package/switch/interfaces/SwitchFocusEvent.d.ts +16 -0
- package/switch/util.d.ts +15 -0
- package/textarea/TextArea.d.ts +237 -0
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +16 -0
- package/textarea/interfaces/TextAreaFlow.d.ts +15 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaProps.d.ts +191 -0
- package/textarea/interfaces/TextAreaResize.d.ts +38 -0
- package/textbox/TextBox.d.ts +422 -0
- package/textbox/interfaces/TextBoxBlurEvent.d.ts +16 -0
- package/textbox/interfaces/TextBoxFocusEvent.d.ts +16 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ColorPickerChangeEvent } from '..';
|
|
9
|
+
import { FlatColorPickerViewChangeEvent } from './interfaces/FlatColorPickerViewChangeEvent';
|
|
10
|
+
import { FlatColorPickerFocusEvent } from './interfaces/FlatColorPickerFocusEvent';
|
|
11
|
+
import { FlatColorPickerBlurEvent } from './interfaces/FlatColorPickerBlurEvent';
|
|
12
|
+
import { FlatColorPickerFocusoutEvent } from './interfaces/FlatColorPickerFocusoutEvent';
|
|
13
|
+
import { ColorGradientProps } from './interfaces/ColorGradientProps';
|
|
14
|
+
import { ColorPickerPaletteSettings } from './interfaces/ColorPickerPaletteSettings';
|
|
15
|
+
import { PropType } from 'vue';
|
|
16
|
+
/**
|
|
17
|
+
* Represents the properties of [FlatColorPicker](% slug api_inputs_flatcolorpickerprops %) component.
|
|
18
|
+
*/
|
|
19
|
+
export interface FlatColorPickerProps {
|
|
20
|
+
/**
|
|
21
|
+
* Sets the `id` property of the top `div` element of the FlatColorPicker.
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the color model value.
|
|
26
|
+
*/
|
|
27
|
+
modelValue?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The model rgba value of the FlatColorPicker.
|
|
30
|
+
*/
|
|
31
|
+
modelRgbaValue?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the color value.
|
|
34
|
+
*/
|
|
35
|
+
value?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the previous color value.
|
|
38
|
+
*/
|
|
39
|
+
prevValue?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the `tabIndex` property of the FlatColorPicker.
|
|
42
|
+
*/
|
|
43
|
+
tabIndex?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Determines whether the FlatColorPicker is disabled.
|
|
46
|
+
*/
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Sets the FlatColorPicker view. The default is `combo`.
|
|
50
|
+
*/
|
|
51
|
+
view?: 'combo' | 'gradient' | 'palette' | string;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the FlatColorPicker selected view index. The default is `0`.
|
|
54
|
+
*/
|
|
55
|
+
selectedView?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Sets custom header component.
|
|
58
|
+
*/
|
|
59
|
+
header?: any;
|
|
60
|
+
/**
|
|
61
|
+
* Sets custom footer component.
|
|
62
|
+
*/
|
|
63
|
+
footer?: any;
|
|
64
|
+
/**
|
|
65
|
+
* Specifies whether clear button will be rendered in the header.
|
|
66
|
+
*/
|
|
67
|
+
showClearButton?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Specifies whether preview and revert color boxes will be rendered in the header.
|
|
70
|
+
*/
|
|
71
|
+
showPreview?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Specifies whether action buttons will be rendered in the footer.
|
|
74
|
+
*/
|
|
75
|
+
showButtons?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Configures the ColorPalette that is displayed in the ColorPicker popup.
|
|
78
|
+
*/
|
|
79
|
+
paletteSettings?: ColorPickerPaletteSettings;
|
|
80
|
+
/**
|
|
81
|
+
* Configures the ColorGradient that is displayed in the ColorPicker popup.
|
|
82
|
+
*/
|
|
83
|
+
gradientSettings?: ColorGradientProps;
|
|
84
|
+
/**
|
|
85
|
+
* Configures the `size` of the FlatColorPicker.
|
|
86
|
+
*
|
|
87
|
+
* The available options are:
|
|
88
|
+
* - `small`
|
|
89
|
+
* - `medium`
|
|
90
|
+
* - `large`
|
|
91
|
+
*
|
|
92
|
+
* @default undefined
|
|
93
|
+
*/
|
|
94
|
+
size?: 'small' | 'medium' | 'large';
|
|
95
|
+
/**
|
|
96
|
+
* The event handler that will be fired when the view is changed.
|
|
97
|
+
*/
|
|
98
|
+
onViewchange?: (event: FlatColorPickerViewChangeEvent) => void;
|
|
99
|
+
/**
|
|
100
|
+
* The event handler that will be fired when the user edits the value.
|
|
101
|
+
*/
|
|
102
|
+
onChange?: (event: ColorPickerChangeEvent) => void;
|
|
103
|
+
/**
|
|
104
|
+
* @hidden
|
|
105
|
+
* Internal prop that determines whether the ColorGradient is in adaptive state.
|
|
106
|
+
*/
|
|
107
|
+
adaptive?: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @hidden
|
|
111
|
+
*/
|
|
112
|
+
export interface FlatColorPickerHandle {
|
|
113
|
+
/**
|
|
114
|
+
* The current element or `null` if there is none.
|
|
115
|
+
*/
|
|
116
|
+
element: HTMLDivElement | null;
|
|
117
|
+
/**
|
|
118
|
+
* The props values of the FlatColorPicker.
|
|
119
|
+
*/
|
|
120
|
+
props: FlatColorPickerProps;
|
|
121
|
+
/**
|
|
122
|
+
* The focus event callback.
|
|
123
|
+
*/
|
|
124
|
+
focus: () => void;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @hidden
|
|
128
|
+
*/
|
|
129
|
+
declare const FlatColorPicker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
130
|
+
modelValue: PropType<string>;
|
|
131
|
+
modelRgbaValue: PropType<string>;
|
|
132
|
+
value: PropType<string>;
|
|
133
|
+
prevValue: PropType<string>;
|
|
134
|
+
tabIndex: PropType<number>;
|
|
135
|
+
disabled: PropType<boolean>;
|
|
136
|
+
view: {
|
|
137
|
+
type: PropType<string>;
|
|
138
|
+
default: string;
|
|
139
|
+
validator: (value: any) => boolean;
|
|
140
|
+
};
|
|
141
|
+
selectedView: {
|
|
142
|
+
type: PropType<number>;
|
|
143
|
+
default: any;
|
|
144
|
+
};
|
|
145
|
+
header: PropType<any>;
|
|
146
|
+
footer: PropType<any>;
|
|
147
|
+
showClearButton: {
|
|
148
|
+
type: PropType<boolean>;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
showPreview: {
|
|
152
|
+
type: PropType<boolean>;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
showButtons: {
|
|
156
|
+
type: PropType<boolean>;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
gradientSettings: {
|
|
160
|
+
type: PropType<ColorGradientProps>;
|
|
161
|
+
default: () => {
|
|
162
|
+
opacity: boolean;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
paletteSettings: {
|
|
166
|
+
type: PropType<ColorPickerPaletteSettings>;
|
|
167
|
+
default: () => {
|
|
168
|
+
palette: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
size: {
|
|
172
|
+
type: PropType<"small" | "medium" | "large">;
|
|
173
|
+
};
|
|
174
|
+
adaptive: PropType<boolean>;
|
|
175
|
+
}>, {}, {
|
|
176
|
+
currentView: string;
|
|
177
|
+
colorValue: string | Function;
|
|
178
|
+
currentPrevColor: string | Function;
|
|
179
|
+
focused: boolean;
|
|
180
|
+
}, {
|
|
181
|
+
isColorGradient(): boolean;
|
|
182
|
+
computedColor(): any;
|
|
183
|
+
computedPrevColor(): any;
|
|
184
|
+
previewClass(): {
|
|
185
|
+
'k-coloreditor-preview-color': boolean;
|
|
186
|
+
'k-color-preview': boolean;
|
|
187
|
+
'k-no-color': boolean;
|
|
188
|
+
};
|
|
189
|
+
currentClass(): {
|
|
190
|
+
'k-coloreditor-current-color': boolean;
|
|
191
|
+
'k-color-preview': boolean;
|
|
192
|
+
'k-no-color': boolean;
|
|
193
|
+
};
|
|
194
|
+
computedTabIndex(): 0 | -1;
|
|
195
|
+
}, {
|
|
196
|
+
focus(): void;
|
|
197
|
+
onKeyDownHandler(e: any): void;
|
|
198
|
+
handleViewChange(event: any, viewType: any): void;
|
|
199
|
+
handleResetColor(): void;
|
|
200
|
+
handleColorChange(event: any): void;
|
|
201
|
+
handlePaletteColorChange(event: any): void;
|
|
202
|
+
triggerChange(event: any): void;
|
|
203
|
+
innerKeyDown(event: any): void;
|
|
204
|
+
gradientKeyDown(event: any): void;
|
|
205
|
+
handleButtonKeydown(e: any): void;
|
|
206
|
+
handleCancelBtnClick(): void;
|
|
207
|
+
handlePrevColorClick(): void;
|
|
208
|
+
onFocus(event: FocusEvent): void;
|
|
209
|
+
onBlur(event: FocusEvent): void;
|
|
210
|
+
onFocusout(event: FocusEvent): void;
|
|
211
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
212
|
+
viewchange: (event: FlatColorPickerViewChangeEvent) => true;
|
|
213
|
+
changemodel: (value: string) => true;
|
|
214
|
+
'update:modelValue': (value: string) => true;
|
|
215
|
+
'update:modelRgbaValue': (value: string) => true;
|
|
216
|
+
focus: (event: FlatColorPickerFocusEvent) => true;
|
|
217
|
+
blur: (event: FlatColorPickerBlurEvent) => true;
|
|
218
|
+
focusout: (event: FlatColorPickerFocusoutEvent) => true;
|
|
219
|
+
keydown: (event: KeyboardEvent) => true;
|
|
220
|
+
change: (event: ColorPickerChangeEvent) => true;
|
|
221
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
222
|
+
modelValue: PropType<string>;
|
|
223
|
+
modelRgbaValue: PropType<string>;
|
|
224
|
+
value: PropType<string>;
|
|
225
|
+
prevValue: PropType<string>;
|
|
226
|
+
tabIndex: PropType<number>;
|
|
227
|
+
disabled: PropType<boolean>;
|
|
228
|
+
view: {
|
|
229
|
+
type: PropType<string>;
|
|
230
|
+
default: string;
|
|
231
|
+
validator: (value: any) => boolean;
|
|
232
|
+
};
|
|
233
|
+
selectedView: {
|
|
234
|
+
type: PropType<number>;
|
|
235
|
+
default: any;
|
|
236
|
+
};
|
|
237
|
+
header: PropType<any>;
|
|
238
|
+
footer: PropType<any>;
|
|
239
|
+
showClearButton: {
|
|
240
|
+
type: PropType<boolean>;
|
|
241
|
+
default: boolean;
|
|
242
|
+
};
|
|
243
|
+
showPreview: {
|
|
244
|
+
type: PropType<boolean>;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
showButtons: {
|
|
248
|
+
type: PropType<boolean>;
|
|
249
|
+
default: boolean;
|
|
250
|
+
};
|
|
251
|
+
gradientSettings: {
|
|
252
|
+
type: PropType<ColorGradientProps>;
|
|
253
|
+
default: () => {
|
|
254
|
+
opacity: boolean;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
paletteSettings: {
|
|
258
|
+
type: PropType<ColorPickerPaletteSettings>;
|
|
259
|
+
default: () => {
|
|
260
|
+
palette: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
size: {
|
|
264
|
+
type: PropType<"small" | "medium" | "large">;
|
|
265
|
+
};
|
|
266
|
+
adaptive: PropType<boolean>;
|
|
267
|
+
}>> & Readonly<{
|
|
268
|
+
onBlur?: (event: FlatColorPickerBlurEvent) => any;
|
|
269
|
+
onChange?: (event: ColorPickerChangeEvent) => any;
|
|
270
|
+
onFocus?: (event: FlatColorPickerFocusEvent) => any;
|
|
271
|
+
onFocusout?: (event: FlatColorPickerFocusoutEvent) => any;
|
|
272
|
+
onKeydown?: (event: KeyboardEvent) => any;
|
|
273
|
+
onChangemodel?: (value: string) => any;
|
|
274
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
275
|
+
"onUpdate:modelRgbaValue"?: (value: string) => any;
|
|
276
|
+
onViewchange?: (event: FlatColorPickerViewChangeEvent) => any;
|
|
277
|
+
}>, {
|
|
278
|
+
view: string;
|
|
279
|
+
showClearButton: boolean;
|
|
280
|
+
selectedView: number;
|
|
281
|
+
showPreview: boolean;
|
|
282
|
+
showButtons: boolean;
|
|
283
|
+
gradientSettings: ColorGradientProps;
|
|
284
|
+
paletteSettings: ColorPickerPaletteSettings;
|
|
285
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
286
|
+
export { FlatColorPicker };
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as T, h as l, createVNode as t, isVNode as z } from "vue";
|
|
9
9
|
import { dropletSliderIcon as F, paletteIcon as L, dropletSlashIcon as R } from "@progress/kendo-svg-icons";
|
|
10
|
-
import { Keys as c, focusContainer as M, focusFirstFocusableChild as G, templateRendering as h, getListeners as p, getTemplate as g, classNames as D,
|
|
10
|
+
import { Keys as c, focusContainer as M, focusFirstFocusableChild as G, templateRendering as h, getListeners as p, getTemplate as g, classNames as D, kendoThemeMaps as j, getTabIndex as N, Icon as u, validatePackage as E, setRef as m } from "@progress/kendo-vue-common";
|
|
11
11
|
import { ButtonGroup as O, Button as a } from "@progress/kendo-vue-buttons";
|
|
12
12
|
import { DEFAULT_PRESET as A, ColorPalette as _ } from "./ColorPalette.mjs";
|
|
13
13
|
import { ColorGradient as H } from "./ColorGradient.mjs";
|
|
@@ -162,13 +162,13 @@ const ne = /* @__PURE__ */ T({
|
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
return t("div", {
|
|
165
|
-
tabindex:
|
|
165
|
+
tabindex: N(this.$props.tabIndex, this.$props.disabled),
|
|
166
166
|
onFocus: this.onFocus,
|
|
167
167
|
onBlur: this.onBlur,
|
|
168
168
|
onFocusout: this.onFocusout,
|
|
169
169
|
onKeydown: this.onKeyDownHandler,
|
|
170
170
|
class: D("k-flatcolorpicker k-coloreditor", {
|
|
171
|
-
[`k-coloreditor-${
|
|
171
|
+
[`k-coloreditor-${j.sizeMap[e] || e}`]: e,
|
|
172
172
|
"k-disabled": this.$props.disabled
|
|
173
173
|
}),
|
|
174
174
|
"aria-disabled": this.$props.disabled
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
import { HexInputFocusEvent } from './interfaces/HexInputFocusEvent';
|
|
10
|
+
import { HexInputBlurEvent } from './interfaces/HexInputBlurEvent';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface HexInputProps {
|
|
15
|
+
tabIndex: number;
|
|
16
|
+
hex: string;
|
|
17
|
+
onHexChange?: any;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
id?: string;
|
|
20
|
+
size?: 'small' | 'medium' | 'large' | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
declare const HexInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
26
|
+
tabIndex: PropType<number>;
|
|
27
|
+
hex: PropType<string>;
|
|
28
|
+
disabled: PropType<boolean>;
|
|
29
|
+
id: PropType<string>;
|
|
30
|
+
size: PropType<"small" | "medium" | "large">;
|
|
31
|
+
}>, {}, {
|
|
32
|
+
currentHex: string;
|
|
33
|
+
originalHex: string;
|
|
34
|
+
}, {
|
|
35
|
+
isHexValid(): boolean;
|
|
36
|
+
}, {
|
|
37
|
+
onChange(event: any): void;
|
|
38
|
+
onBlur(event: FocusEvent): void;
|
|
39
|
+
onFocus(event: FocusEvent): void;
|
|
40
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
41
|
+
hexchange: (hex: string) => true;
|
|
42
|
+
blur: (event: HexInputBlurEvent) => true;
|
|
43
|
+
focus: (event: HexInputFocusEvent) => true;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
tabIndex: PropType<number>;
|
|
46
|
+
hex: PropType<string>;
|
|
47
|
+
disabled: PropType<boolean>;
|
|
48
|
+
id: PropType<string>;
|
|
49
|
+
size: PropType<"small" | "medium" | "large">;
|
|
50
|
+
}>> & Readonly<{
|
|
51
|
+
onBlur?: (event: HexInputBlurEvent) => any;
|
|
52
|
+
onFocus?: (event: HexInputFocusEvent) => any;
|
|
53
|
+
onHexchange?: (hex: string) => any;
|
|
54
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
export { HexInput };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Align } from '@progress/kendo-vue-popup';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
declare const Picker: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
|
+
popupSettings: PropType<import('./interfaces/PickerPopupSettings').PickerPopupSettings>;
|
|
15
|
+
dir: PropType<string>;
|
|
16
|
+
open: PropType<boolean>;
|
|
17
|
+
popupAnchor: PropType<String>;
|
|
18
|
+
id: PropType<String>;
|
|
19
|
+
onOpen: PropType<() => void>;
|
|
20
|
+
}>, {}, {}, {
|
|
21
|
+
horizontalAlign(): 'right' | 'left';
|
|
22
|
+
anchorAlign(): Align;
|
|
23
|
+
popupAlign(): Align;
|
|
24
|
+
}, {
|
|
25
|
+
handleOpen(): void;
|
|
26
|
+
handleClose(): void;
|
|
27
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
popupSettings: PropType<import('./interfaces/PickerPopupSettings').PickerPopupSettings>;
|
|
29
|
+
dir: PropType<string>;
|
|
30
|
+
open: PropType<boolean>;
|
|
31
|
+
popupAnchor: PropType<String>;
|
|
32
|
+
id: PropType<String>;
|
|
33
|
+
onOpen: PropType<() => void>;
|
|
34
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export { Picker };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export interface AdaptiveModeProps {
|
|
11
|
+
expand?: boolean;
|
|
12
|
+
animationStyles?: object;
|
|
13
|
+
classNameAdaptive?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
componentToRender?: object;
|
|
16
|
+
applyText?: string;
|
|
17
|
+
cancelText?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
declare const ColorsAdaptiveMode: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
23
|
+
expand: PropType<boolean>;
|
|
24
|
+
animationStyles: PropType<object>;
|
|
25
|
+
classNameAdaptive: PropType<string>;
|
|
26
|
+
title: PropType<string>;
|
|
27
|
+
componentToRender: PropType<object>;
|
|
28
|
+
applyText: PropType<string>;
|
|
29
|
+
cancelText: PropType<string>;
|
|
30
|
+
}>, {}, {}, {}, {
|
|
31
|
+
onClose(): void;
|
|
32
|
+
onCancel(): void;
|
|
33
|
+
onApply(event: any): void;
|
|
34
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("actionSheetClose" | "cancelBtnClick" | "applyBtnClick")[], "actionSheetClose" | "cancelBtnClick" | "applyBtnClick", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
|
+
expand: PropType<boolean>;
|
|
36
|
+
animationStyles: PropType<object>;
|
|
37
|
+
classNameAdaptive: PropType<string>;
|
|
38
|
+
title: PropType<string>;
|
|
39
|
+
componentToRender: PropType<object>;
|
|
40
|
+
applyText: PropType<string>;
|
|
41
|
+
cancelText: PropType<string>;
|
|
42
|
+
}>> & Readonly<{
|
|
43
|
+
onActionSheetClose?: (...args: any[]) => any;
|
|
44
|
+
onCancelBtnClick?: (...args: any[]) => any;
|
|
45
|
+
onApplyBtnClick?: (...args: any[]) => any;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
export { ColorsAdaptiveMode };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onBlur` ColorGradient event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorGradientBlurEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onChange` ColorGradient event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorGradientChangeEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The current value of the ColorGradient.
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* The current value of the ColorGradient in RGBA format.
|
|
18
|
+
*/
|
|
19
|
+
rgbaValue: string;
|
|
20
|
+
/**
|
|
21
|
+
* The native Event from the DOM.
|
|
22
|
+
*/
|
|
23
|
+
event: Event;
|
|
24
|
+
/**
|
|
25
|
+
* The ColorGradient component instance.
|
|
26
|
+
*/
|
|
27
|
+
target?: any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onFocus` ColorGradient event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorGradientFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ColorGradientChangeEvent } from './ColorGradientChangeEvent';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the [Kendo UI for Vue ColorGradient component]({% slug overview_colorgradient %}).
|
|
11
|
+
*/
|
|
12
|
+
export interface ColorGradientProps {
|
|
13
|
+
/**
|
|
14
|
+
* The model value of the ColorGradient.
|
|
15
|
+
*/
|
|
16
|
+
modelValue?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The model rgba value of the ColorGradient.
|
|
19
|
+
*/
|
|
20
|
+
modelRgbaValue?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The default value of the ColorGradient.
|
|
23
|
+
*/
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The value of the ColorGradient.
|
|
27
|
+
*/
|
|
28
|
+
value?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Determines the event handler that will be fired when the user edits the value.
|
|
31
|
+
*/
|
|
32
|
+
onChange?: (event: ColorGradientChangeEvent) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Represents the focus event.
|
|
35
|
+
*/
|
|
36
|
+
onFocus?: (event: any) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Determines whether the alpha slider and the alpha input will be displayed. Defaults to `true`.
|
|
39
|
+
*/
|
|
40
|
+
opacity?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Enables the color contrast tool.
|
|
43
|
+
* Sets the background color that will be compared to the selected value.
|
|
44
|
+
* The tool will calculate the contrast ratio between two colors.
|
|
45
|
+
* Currently, only the RGBA format is supported.
|
|
46
|
+
*/
|
|
47
|
+
backgroundColor?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Determines whether the ColorGradient is disabled
|
|
50
|
+
* ([more information and example]({% slug disabled_colorgradient %})).
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Sets the `tabIndex` property of the ColorGradient.
|
|
56
|
+
*/
|
|
57
|
+
tabIndex?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Sets tabindex of the inner components of the ColorGradient.
|
|
60
|
+
*/
|
|
61
|
+
innerTabIndex?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the id of the component.
|
|
64
|
+
*/
|
|
65
|
+
id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Sets additional CSS classes to the ColorGradient.
|
|
68
|
+
*/
|
|
69
|
+
class?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
72
|
+
* For example these elements could contain error or hint message.
|
|
73
|
+
*/
|
|
74
|
+
ariaDescribedBy?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Identifies the element(s) which will label the component.
|
|
77
|
+
*/
|
|
78
|
+
ariaLabelledBy?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Configures the `size` of the ColorGradient.
|
|
81
|
+
*
|
|
82
|
+
* The available options are:
|
|
83
|
+
* - `small`
|
|
84
|
+
* - `medium`
|
|
85
|
+
* - `large`
|
|
86
|
+
*
|
|
87
|
+
* @default undefined
|
|
88
|
+
*/
|
|
89
|
+
size?: 'small' | 'medium' | 'large';
|
|
90
|
+
/**
|
|
91
|
+
* @hidden
|
|
92
|
+
* Internal prop that determines whether the ColorGradient is in adaptive state.
|
|
93
|
+
*/
|
|
94
|
+
adaptive?: boolean;
|
|
95
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onBlur` ColorPalette event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorPaletteBlurEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onChange` ColorPalette event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorPaletteChangeEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The current value of the ColorPalette.
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* The current value of the ColorPalette in RGBA format.
|
|
18
|
+
*/
|
|
19
|
+
rgbaValue: string;
|
|
20
|
+
/**
|
|
21
|
+
* The native Event from the DOM.
|
|
22
|
+
*/
|
|
23
|
+
event: Event;
|
|
24
|
+
/**
|
|
25
|
+
* The ColorPalette component instance.
|
|
26
|
+
*/
|
|
27
|
+
component?: any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onFocus` ColorPalette event.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorPaletteFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|