@kong/kongponents 9.32.7 → 9.33.0
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/kongponents.css +1 -1
- package/dist/kongponents.es.js +5785 -5646
- package/dist/kongponents.umd.js +14 -14
- package/dist/types/components/KSlider/KSlider.vue.d.ts +14 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/global-components.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/slider.d.ts +63 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SliderProps } from '../../../types';
|
|
2
|
+
type __VLS_Props = SliderProps;
|
|
3
|
+
declare const inputValue: import("vue").ModelRef<number, string, number, number>;
|
|
4
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
+
modelValue?: typeof inputValue['value'];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
change: (value: number) => any;
|
|
9
|
+
"update:modelValue": (...args: unknown[]) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
onChange?: ((value: number) => any) | undefined;
|
|
12
|
+
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -46,3 +46,4 @@ export { default as KTruncate } from './KTruncate/KTruncate.vue';
|
|
|
46
46
|
export { default as KCopy } from './KCopy/KCopy.vue';
|
|
47
47
|
export { default as KTableView } from './KTableView/KTableView.vue';
|
|
48
48
|
export { default as KTableData } from './KTableData/KTableData.vue';
|
|
49
|
+
export { default as KSlider } from './KSlider/KSlider.vue';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { LabelAttributes } from './label';
|
|
2
|
+
export type SliderMark = number | {
|
|
3
|
+
value: number;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export interface SliderProps {
|
|
7
|
+
/**
|
|
8
|
+
* Slider label.
|
|
9
|
+
* @default ''
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Minimum value of the slider.
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
min?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Maximum value of the slider.
|
|
19
|
+
* @default 10
|
|
20
|
+
*/
|
|
21
|
+
max?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Step value for the slider.
|
|
24
|
+
* @default 1
|
|
25
|
+
*/
|
|
26
|
+
step?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Show mark text for each step.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
showMarks?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Custom mark text for the slider steps.
|
|
34
|
+
* @default undefined
|
|
35
|
+
*/
|
|
36
|
+
marks?: SliderMark[];
|
|
37
|
+
/**
|
|
38
|
+
* Whether or not to show the value in a popover above the thumb.
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
showValue?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the slider is disabled.
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* KSlider has an instance of KLabel for supporting tooltip text.
|
|
49
|
+
* Use the labelAttributes prop to configure the KLabel's props.
|
|
50
|
+
* @default {}
|
|
51
|
+
*/
|
|
52
|
+
labelAttributes?: LabelAttributes;
|
|
53
|
+
}
|
|
54
|
+
export interface SliderEmits {
|
|
55
|
+
/**
|
|
56
|
+
* Fired on change, returns the new value of the slider.
|
|
57
|
+
*/
|
|
58
|
+
change: [value: number];
|
|
59
|
+
/**
|
|
60
|
+
* Fired on change, returns the new value of the slider.
|
|
61
|
+
*/
|
|
62
|
+
'update:modelValue': [modelValue: number];
|
|
63
|
+
}
|