@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,79 @@
|
|
|
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 { LocalizationService } from '@progress/kendo-vue-intl';
|
|
7
|
+
import { CheckboxProps } from './interfaces/CheckboxProps';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface CheckboxHandle {
|
|
12
|
+
element: any;
|
|
13
|
+
focus: any;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface CheckboxData {
|
|
19
|
+
valueDuringOnChange?: any;
|
|
20
|
+
currentValue?: any;
|
|
21
|
+
currentChecked?: boolean;
|
|
22
|
+
currentDir: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export interface CheckboxState {
|
|
28
|
+
defaultValidationMessage: string;
|
|
29
|
+
optionalMessage: string;
|
|
30
|
+
localizationService: LocalizationService;
|
|
31
|
+
calculatedId: string;
|
|
32
|
+
input: any;
|
|
33
|
+
inputRef: any;
|
|
34
|
+
v3: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export interface CheckboxMethods {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
localizeMessage: (message: string) => string;
|
|
42
|
+
focusElement: () => void;
|
|
43
|
+
setValue: (e: any, val: boolean) => void;
|
|
44
|
+
onChangeHandler: (e: any) => void;
|
|
45
|
+
onKeyDownHandler: (e: any) => void;
|
|
46
|
+
onFocusHandler: (e: any) => void;
|
|
47
|
+
onBlurHandler: (e: any) => void;
|
|
48
|
+
setValidity: () => void;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
export interface CheckboxComputed {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
valueIsBooleanOrNull: boolean;
|
|
56
|
+
isCheckedControlled: boolean;
|
|
57
|
+
isValueControlled: boolean;
|
|
58
|
+
computedValue: any;
|
|
59
|
+
computedChecked?: boolean;
|
|
60
|
+
useValueAsChecked: boolean;
|
|
61
|
+
checkedProp?: any;
|
|
62
|
+
valueProp: any;
|
|
63
|
+
indeterminateProp: any;
|
|
64
|
+
isValid: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
export interface CheckboxAll extends Vue2type, CheckboxMethods, CheckboxState, CheckboxData, CheckboxComputed {
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @hidden
|
|
73
|
+
*/
|
|
74
|
+
declare let CheckboxVue2: ComponentOptions<CheckboxAll, DefaultData<CheckboxData>, DefaultMethods<CheckboxAll>, CheckboxComputed, RecordPropsDefinition<CheckboxProps>>;
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
declare const Checkbox: DefineComponent<CheckboxProps, any, CheckboxData, CheckboxComputed, CheckboxMethods, {}, {}, {}, string, CheckboxProps, CheckboxProps, {}>;
|
|
79
|
+
export { Checkbox, CheckboxVue2 };
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
var ref = allVue.ref;
|
|
7
|
+
var inject = allVue.inject;
|
|
8
|
+
import { Keys, classNames, guid, getTabIndex, getDefaultSlots, validatePackage, templateRendering, getTemplate, getListeners, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
9
|
+
import { packageMetadata } from '../package-metadata.js';
|
|
10
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
11
|
+
import { messages, checkboxValidation, checkboxOptionalText } from './../messages.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
var CheckboxVue2 = {
|
|
17
|
+
name: 'KendoCheckbox',
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
emits: {
|
|
20
|
+
'changemodel': null,
|
|
21
|
+
'update:modelValue': null,
|
|
22
|
+
change: null,
|
|
23
|
+
focus: null,
|
|
24
|
+
blur: null
|
|
25
|
+
},
|
|
26
|
+
model: {
|
|
27
|
+
event: 'changemodel'
|
|
28
|
+
},
|
|
29
|
+
inject: {
|
|
30
|
+
kendoLocalizationService: {
|
|
31
|
+
default: null
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
checked: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: undefined
|
|
38
|
+
},
|
|
39
|
+
defaultChecked: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: undefined
|
|
42
|
+
},
|
|
43
|
+
defaultValue: {
|
|
44
|
+
type: [String, Boolean],
|
|
45
|
+
default: undefined
|
|
46
|
+
},
|
|
47
|
+
modelValue: {
|
|
48
|
+
type: [String, Boolean],
|
|
49
|
+
default: undefined
|
|
50
|
+
},
|
|
51
|
+
dir: String,
|
|
52
|
+
disabled: Boolean,
|
|
53
|
+
id: String,
|
|
54
|
+
ariaLabelledBy: String,
|
|
55
|
+
ariaDescribedBy: String,
|
|
56
|
+
label: String,
|
|
57
|
+
labelRender: [String, Number, Boolean, Object],
|
|
58
|
+
labelPlacement: String,
|
|
59
|
+
labelOptional: Boolean,
|
|
60
|
+
name: String,
|
|
61
|
+
size: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: 'medium',
|
|
64
|
+
validator: function validator(value) {
|
|
65
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
rounded: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: 'medium',
|
|
71
|
+
validator: function validator(value) {
|
|
72
|
+
return [null, 'small', 'medium', 'large'].includes(value);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
tabIndex: Number,
|
|
76
|
+
value: {
|
|
77
|
+
type: [String, Boolean],
|
|
78
|
+
default: undefined
|
|
79
|
+
},
|
|
80
|
+
validationMessage: String,
|
|
81
|
+
required: Boolean,
|
|
82
|
+
valid: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: undefined
|
|
85
|
+
},
|
|
86
|
+
validityStyles: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: true
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
data: function data() {
|
|
92
|
+
return {
|
|
93
|
+
valueDuringOnChange: undefined,
|
|
94
|
+
currentDir: 'ltr',
|
|
95
|
+
currentChecked: undefined,
|
|
96
|
+
currentValue: undefined
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
created: function created() {
|
|
100
|
+
validatePackage(packageMetadata);
|
|
101
|
+
this.calculatedId = guid();
|
|
102
|
+
|
|
103
|
+
if (this.$props.defaultChecked !== undefined) {
|
|
104
|
+
this.currentChecked = this.$props.defaultChecked;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (this.$props.defaultValue !== undefined) {
|
|
108
|
+
this.currentValue = this.$props.defaultValue;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
this.currentDir = this.$props.dir;
|
|
112
|
+
},
|
|
113
|
+
computed: {
|
|
114
|
+
valueIsBooleanOrNull: function valueIsBooleanOrNull() {
|
|
115
|
+
var value = this.$props.value;
|
|
116
|
+
return typeof value === 'boolean' || value === null;
|
|
117
|
+
},
|
|
118
|
+
isCheckedControlled: function isCheckedControlled() {
|
|
119
|
+
return this.$props.checked !== undefined;
|
|
120
|
+
},
|
|
121
|
+
isValueControlled: function isValueControlled() {
|
|
122
|
+
return this.$props.value !== undefined && this.valueIsBooleanOrNull;
|
|
123
|
+
},
|
|
124
|
+
computedValue: function computedValue() {
|
|
125
|
+
return this.$data.valueDuringOnChange !== undefined ? this.$data.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.$data.currentValue;
|
|
126
|
+
},
|
|
127
|
+
computedChecked: function computedChecked() {
|
|
128
|
+
return this.$data.valueDuringOnChange !== undefined ? this.$data.valueDuringOnChange : this.$props.checked !== undefined ? this.$props.checked : this.$props.modelValue !== undefined ? this.$props.modelValue : this.$data.currentChecked;
|
|
129
|
+
},
|
|
130
|
+
useValueAsChecked: function useValueAsChecked() {
|
|
131
|
+
return this.computedChecked === undefined && this.computedValue;
|
|
132
|
+
},
|
|
133
|
+
checkedProp: function checkedProp() {
|
|
134
|
+
return this.useValueAsChecked ? this.computedValue : this.computedChecked;
|
|
135
|
+
},
|
|
136
|
+
valueProp: function valueProp() {
|
|
137
|
+
var value = this.$props.value;
|
|
138
|
+
return this.useValueAsChecked || this.isValueControlled ? value === null ? value : undefined : value || this.computedValue;
|
|
139
|
+
},
|
|
140
|
+
indeterminateProp: function indeterminateProp() {
|
|
141
|
+
return this.checkedProp === null || this.valueProp === null;
|
|
142
|
+
},
|
|
143
|
+
isValid: function isValid() {
|
|
144
|
+
var valid = this.$props.valid;
|
|
145
|
+
return valid !== undefined ? valid : !this.$props.required ? true : this.computedChecked ? true : false;
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
mounted: function mounted() {
|
|
149
|
+
this.input = getRef(this, 'input');
|
|
150
|
+
|
|
151
|
+
if (!this.currentDir && window && this.$el) {
|
|
152
|
+
// Note: getComputedStyle forces reflow
|
|
153
|
+
var direction = window.getComputedStyle(this.$el).direction;
|
|
154
|
+
|
|
155
|
+
if (direction) {
|
|
156
|
+
this.currentDir = direction;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
this.setValidity();
|
|
161
|
+
},
|
|
162
|
+
updated: function updated() {
|
|
163
|
+
if (!this.input) {
|
|
164
|
+
this.input = getRef(this, 'input');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
this.setValidity();
|
|
168
|
+
},
|
|
169
|
+
// @ts-ignore
|
|
170
|
+
setup: !isV3 ? undefined : function () {
|
|
171
|
+
var v3 = !!isV3;
|
|
172
|
+
var inputRef = ref(null);
|
|
173
|
+
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
174
|
+
return {
|
|
175
|
+
v3: v3,
|
|
176
|
+
inputRef: inputRef,
|
|
177
|
+
kendoLocalizationService: kendoLocalizationService
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
render: function render(createElement) {
|
|
181
|
+
var _a;
|
|
182
|
+
|
|
183
|
+
var h = gh || createElement;
|
|
184
|
+
var _b = this.$props,
|
|
185
|
+
ariaDescribedBy = _b.ariaDescribedBy,
|
|
186
|
+
ariaLabelledBy = _b.ariaLabelledBy,
|
|
187
|
+
disabled = _b.disabled,
|
|
188
|
+
id = _b.id,
|
|
189
|
+
label = _b.label,
|
|
190
|
+
labelRender = _b.labelRender,
|
|
191
|
+
labelPlacement = _b.labelPlacement,
|
|
192
|
+
name = _b.name,
|
|
193
|
+
labelOptional = _b.labelOptional,
|
|
194
|
+
tabIndex = _b.tabIndex,
|
|
195
|
+
required = _b.required,
|
|
196
|
+
validityStyles = _b.validityStyles,
|
|
197
|
+
size = _b.size,
|
|
198
|
+
rounded = _b.rounded;
|
|
199
|
+
var defaultSlot = getDefaultSlots(this);
|
|
200
|
+
var renderedLabel = label;
|
|
201
|
+
this.localizationService = provideLocalizationService(this);
|
|
202
|
+
this.defaultValidationMessage = this.localizeMessage(checkboxValidation);
|
|
203
|
+
this.optionalMessage = this.localizeMessage(checkboxOptionalText);
|
|
204
|
+
var checkboxClasses = classNames({
|
|
205
|
+
'k-disabled': disabled
|
|
206
|
+
});
|
|
207
|
+
var inputClasses = classNames((_a = {
|
|
208
|
+
'k-checkbox': true
|
|
209
|
+
}, _a["k-checkbox-".concat(kendoThemeMaps.sizeMap[size])] = size, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded])] = rounded, _a['k-indeterminate'] = this.indeterminateProp, _a['k-invalid k-invalid'] = !(this.isValid || validityStyles !== undefined || validityStyles === true), _a));
|
|
210
|
+
|
|
211
|
+
var checkboxInput = function checkboxInput() {
|
|
212
|
+
return h("input", {
|
|
213
|
+
type: 'checkbox',
|
|
214
|
+
attrs: this.v3 ? undefined : {
|
|
215
|
+
type: 'checkbox',
|
|
216
|
+
name: name,
|
|
217
|
+
id: id || this.calculatedId,
|
|
218
|
+
"aria-labelledby": ariaLabelledBy,
|
|
219
|
+
"aria-describedby": ariaDescribedBy,
|
|
220
|
+
disabled: disabled,
|
|
221
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
222
|
+
role: 'checkbox',
|
|
223
|
+
required: required !== undefined ? required : false,
|
|
224
|
+
"aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
|
|
225
|
+
"aria-disabled": disabled || undefined
|
|
226
|
+
},
|
|
227
|
+
"class": inputClasses,
|
|
228
|
+
name: name,
|
|
229
|
+
id: id || this.calculatedId,
|
|
230
|
+
ref: setRef(this, 'input'),
|
|
231
|
+
"aria-labelledby": ariaLabelledBy,
|
|
232
|
+
"aria-describedby": ariaDescribedBy,
|
|
233
|
+
checked: this.v3 ? Boolean(this.checkedProp) : null,
|
|
234
|
+
domProps: this.v3 ? undefined : {
|
|
235
|
+
"checked": Boolean(this.checkedProp)
|
|
236
|
+
},
|
|
237
|
+
disabled: disabled,
|
|
238
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
239
|
+
role: 'checkbox',
|
|
240
|
+
required: required !== undefined ? required : false,
|
|
241
|
+
"aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
|
|
242
|
+
"aria-disabled": disabled || undefined,
|
|
243
|
+
onChange: this.onChangeHandler,
|
|
244
|
+
on: this.v3 ? undefined : {
|
|
245
|
+
"change": this.onChangeHandler,
|
|
246
|
+
"keydown": this.onKeyDownHandler,
|
|
247
|
+
"focus": this.onFocusHandler,
|
|
248
|
+
"blur": this.onBlurHandler
|
|
249
|
+
},
|
|
250
|
+
onKeydown: this.onKeyDownHandler,
|
|
251
|
+
onFocus: this.onFocusHandler,
|
|
252
|
+
onBlur: this.onBlurHandler
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
if (labelRender) {
|
|
257
|
+
var renderTemplate = labelRender ? templateRendering.call(this, labelRender, getListeners.call(this)) : null;
|
|
258
|
+
renderedLabel = getTemplate.call(this, {
|
|
259
|
+
h: h,
|
|
260
|
+
template: renderTemplate
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
var checkboxLabel = function checkboxLabel() {
|
|
265
|
+
return renderedLabel !== undefined ? h("label", {
|
|
266
|
+
"class": 'k-checkbox-label',
|
|
267
|
+
"for": id || this.calculatedId,
|
|
268
|
+
attrs: this.v3 ? undefined : {
|
|
269
|
+
"for": id || this.calculatedId
|
|
270
|
+
},
|
|
271
|
+
style: {
|
|
272
|
+
userSelect: 'none'
|
|
273
|
+
}
|
|
274
|
+
}, [renderedLabel, labelOptional && h("span", {
|
|
275
|
+
"class": "k-label-optional"
|
|
276
|
+
}, [this.optionalMessage])]) : null;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
return labelPlacement === 'before' ? h("span", {
|
|
280
|
+
"class": checkboxClasses,
|
|
281
|
+
dir: 'rtl',
|
|
282
|
+
attrs: this.v3 ? undefined : {
|
|
283
|
+
dir: 'rtl'
|
|
284
|
+
}
|
|
285
|
+
}, [checkboxInput.call(this), checkboxLabel.call(this), defaultSlot]) : h("span", {
|
|
286
|
+
"class": checkboxClasses,
|
|
287
|
+
dir: this.currentDir,
|
|
288
|
+
attrs: this.v3 ? undefined : {
|
|
289
|
+
dir: this.currentDir
|
|
290
|
+
}
|
|
291
|
+
}, [checkboxInput.call(this), checkboxLabel.call(this), defaultSlot]);
|
|
292
|
+
},
|
|
293
|
+
methods: {
|
|
294
|
+
setValidity: function setValidity() {
|
|
295
|
+
var isValid = this.$props.valid !== undefined ? this.$props.valid : !this.$props.required ? true : this.computedChecked ? true : false; // @ts-ignore
|
|
296
|
+
|
|
297
|
+
if (this.input && this.input.setCustomValidity) {
|
|
298
|
+
// @ts-ignore
|
|
299
|
+
this.input.setCustomValidity(isValid ? '' : this.$props.validationMessage || this.defaultValidationMessage);
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
localizeMessage: function localizeMessage(message) {
|
|
303
|
+
return this.localizationService.toLanguageString(message, messages[message]);
|
|
304
|
+
},
|
|
305
|
+
focusElement: function focusElement() {
|
|
306
|
+
if (this.input) {
|
|
307
|
+
// @ts-ignore
|
|
308
|
+
this.input.focus();
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
setValue: function setValue(e, val) {
|
|
312
|
+
this.$data.valueDuringOnChange = val;
|
|
313
|
+
var that = this;
|
|
314
|
+
this.$nextTick(function () {
|
|
315
|
+
if (!that.isCheckedControlled && !that.isValueControlled && !that.$props.disabled) {
|
|
316
|
+
that.currentValue = val;
|
|
317
|
+
that.currentChecked = val;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (!that.$props.disabled) {
|
|
321
|
+
var handle = {
|
|
322
|
+
element: that.$el,
|
|
323
|
+
focus: null // focusElement
|
|
324
|
+
|
|
325
|
+
};
|
|
326
|
+
that.$emit('changemodel', val);
|
|
327
|
+
that.$emit('update:modelValue', val);
|
|
328
|
+
that.$emit('change', {
|
|
329
|
+
e: e,
|
|
330
|
+
handle: handle,
|
|
331
|
+
value: val
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
this.$data.valueDuringOnChange = undefined;
|
|
336
|
+
});
|
|
337
|
+
},
|
|
338
|
+
onChangeHandler: function onChangeHandler(e) {
|
|
339
|
+
var newValue = e.target.checked;
|
|
340
|
+
this.setValue(e, newValue);
|
|
341
|
+
},
|
|
342
|
+
onKeyDownHandler: function onKeyDownHandler(e) {
|
|
343
|
+
if (this.$props.disabled) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
var keyCode = e.keyCode;
|
|
348
|
+
var currentVal = e.currentTarget.checked;
|
|
349
|
+
|
|
350
|
+
if (keyCode === Keys.space) {
|
|
351
|
+
e.preventDefault();
|
|
352
|
+
e.stopPropagation();
|
|
353
|
+
this.setValue(e, !currentVal);
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
onBlurHandler: function onBlurHandler(e) {
|
|
357
|
+
if (!this.$props.disabled) {
|
|
358
|
+
this.$emit('blur', e);
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
onFocusHandler: function onFocusHandler(e) {
|
|
362
|
+
if (!this.$props.disabled) {
|
|
363
|
+
this.$emit('focus', e);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* @hidden
|
|
370
|
+
*/
|
|
371
|
+
|
|
372
|
+
var Checkbox = CheckboxVue2;
|
|
373
|
+
export { Checkbox, CheckboxVue2 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ToggleBaseProps } from '../../interfaces/ToggleBaseProps';
|
|
2
|
+
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
3
|
+
import { CheckboxChangeEvent } from './CheckboxChangeEvent';
|
|
4
|
+
import { CheckboxFocusEvent } from './CheckboxFocusEvent';
|
|
5
|
+
/**
|
|
6
|
+
* Represents the props of the [Kendo UI for Vue Checkbox component]({% slug overview_checkbox %}).
|
|
7
|
+
*/
|
|
8
|
+
export interface CheckboxProps extends ToggleBaseProps, FormComponentProps {
|
|
9
|
+
/**
|
|
10
|
+
* Sets the checked state of the Checkbox.
|
|
11
|
+
* Set to null to enable the indeterminate state of the Checkbox ([see example]({% slug overview_checkbox %})).
|
|
12
|
+
*/
|
|
13
|
+
checked?: boolean | null;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
modelValue?: string | number | string[] | boolean | null;
|
|
18
|
+
/**
|
|
19
|
+
* If the type is different than boolean and the `checked` property is provided it's
|
|
20
|
+
* passed to the underlying `input` element.
|
|
21
|
+
* If set to boolean and the `checked` property is omitted sets the checked state of the Checkbox.
|
|
22
|
+
* Set null to enable the indeterminate state of the Checkbox ([see example]({% slug overview_checkbox %})).
|
|
23
|
+
*/
|
|
24
|
+
value?: string | number | string[] | boolean | null;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the default value of checked attribute when used in
|
|
27
|
+
* uncontrolled mode ([see example]({% slug default_state %})).
|
|
28
|
+
*/
|
|
29
|
+
defaultChecked?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The default value of the Checkbox.
|
|
32
|
+
*/
|
|
33
|
+
defaultValue?: any;
|
|
34
|
+
/**
|
|
35
|
+
* Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
|
|
36
|
+
*/
|
|
37
|
+
dir?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the disabled state of the Checkbox
|
|
40
|
+
* ([see example]({% slug disabled_checkbox %})).
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the `id` of the Checkbox.
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Configures the `size` of the Checkbox.
|
|
49
|
+
*
|
|
50
|
+
* The available options are:
|
|
51
|
+
* - small
|
|
52
|
+
* - medium
|
|
53
|
+
* - large
|
|
54
|
+
* - null—Does not set a size `className`.
|
|
55
|
+
*
|
|
56
|
+
* @default `medium`
|
|
57
|
+
*/
|
|
58
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
59
|
+
/**
|
|
60
|
+
* Configures the `rounded` style of the Checkbox.
|
|
61
|
+
*
|
|
62
|
+
* The available options are:
|
|
63
|
+
* - small
|
|
64
|
+
* - medium
|
|
65
|
+
* - large
|
|
66
|
+
* - null—Does not set a rounded `className`.
|
|
67
|
+
*
|
|
68
|
+
* @default `medium`
|
|
69
|
+
*/
|
|
70
|
+
rounded?: null | 'small' | 'medium' | 'large' | string;
|
|
71
|
+
/**
|
|
72
|
+
* 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).
|
|
73
|
+
* For example these elements could contain error or hint message.
|
|
74
|
+
*/
|
|
75
|
+
ariaDescribedBy?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Identifies the element(s) which will label the component.
|
|
78
|
+
*/
|
|
79
|
+
ariaLabelledBy?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the label of the Checkbox component ([see example]({% slug labels_checkbox %})).
|
|
82
|
+
*/
|
|
83
|
+
label?: string | HTMLElement;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the label render template of the Checkbox component.
|
|
86
|
+
* Accepts a slot name, a `render` function, or a Vue component.
|
|
87
|
+
*/
|
|
88
|
+
labelRender?: any;
|
|
89
|
+
/**
|
|
90
|
+
* Sets the label position of the Checkbox component 'before' | 'after' ([see example]({% slug labels_checkbox %})).
|
|
91
|
+
*/
|
|
92
|
+
labelPlacement?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Sets the optional text after the label of the Checkbox component.
|
|
95
|
+
*/
|
|
96
|
+
labelOptional?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* The event handler that will be fired when the user edits the value.
|
|
99
|
+
*/
|
|
100
|
+
onChange?: (event: CheckboxChangeEvent) => void;
|
|
101
|
+
/**
|
|
102
|
+
* The event handler that will be fired when Checkbox is focused.
|
|
103
|
+
*/
|
|
104
|
+
onFocus?: (event: CheckboxFocusEvent) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Sets the `tabIndex` property of the Checkbox.
|
|
107
|
+
* Defaults to `0`.
|
|
108
|
+
*/
|
|
109
|
+
tabIndex?: number;
|
|
110
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { RGBA } from './models/rgba';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface ColorContrastLabelsProps {
|
|
11
|
+
bgColor: RGBA;
|
|
12
|
+
rgba: RGBA;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export interface ColorContrastLabelsState {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export interface ColorContrastLabelsComputed {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export interface ColorContrastLabelsMethods {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface ColorContrastLabelsData {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export interface ColorContrastLabelsAll extends Vue2type, ColorContrastLabelsMethods, ColorContrastLabelsData, ColorContrastLabelsComputed, ColorContrastLabelsState {
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
declare let ColorContrastLabelsVue2: ComponentOptions<ColorContrastLabelsAll, DefaultData<ColorContrastLabelsData>, DefaultMethods<ColorContrastLabelsAll>, ColorContrastLabelsComputed, RecordPropsDefinition<ColorContrastLabelsProps>>;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
declare const ColorContrastLabels: DefineComponent<ColorContrastLabelsProps, any, ColorContrastLabelsData, ColorContrastLabelsComputed, ColorContrastLabelsMethods, {}, {}, {}, string, ColorContrastLabelsProps, ColorContrastLabelsProps, {}>;
|
|
49
|
+
export { ColorContrastLabels, ColorContrastLabelsVue2 };
|