@milaboratories/uikit 2.2.53 → 2.2.54
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/CHANGELOG.md +6 -0
- package/dist/pl-uikit.js +3039 -2989
- package/dist/pl-uikit.js.map +1 -1
- package/dist/pl-uikit.umd.cjs +8 -8
- package/dist/pl-uikit.umd.cjs.map +1 -1
- package/dist/src/components/PlNumberField/PlNumberField.vue.d.ts +21 -5
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/PlNumberField/PlNumberField.vue +135 -75
- package/src/components/PlNumberField/__tests__/PlNumberField.spec.ts +25 -6
- package/src/components/PlNumberField/pl-number-field.scss +4 -0
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import './pl-number-field.scss';
|
|
2
2
|
type NumberInputProps = {
|
|
3
|
-
|
|
3
|
+
/** Input is disabled if true */
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
/** Label on the top border of the field, empty by default */
|
|
5
6
|
label?: string;
|
|
7
|
+
/** Input placeholder, empty by default */
|
|
6
8
|
placeholder?: string;
|
|
9
|
+
/** Step for increment/decrement buttons, 1 by default */
|
|
7
10
|
step?: number;
|
|
11
|
+
/** If defined - show an error if value is lower */
|
|
8
12
|
minValue?: number;
|
|
13
|
+
/** If defined - show an error if value is higher */
|
|
9
14
|
maxValue?: number;
|
|
15
|
+
/** If false - remove buttons on the right */
|
|
16
|
+
useIncrementButtons?: boolean;
|
|
17
|
+
/** If true - changes do not apply immediately, they apply only by removing focus from the input (by click enter or by click outside) */
|
|
18
|
+
updateOnEnterOrClickOutside?: boolean;
|
|
19
|
+
/** Error message that shows always when it's provided, without other checks */
|
|
10
20
|
errorMessage?: string;
|
|
21
|
+
/** Additional validity check for input value that must return an error text if failed */
|
|
11
22
|
validate?: (v: number) => string | undefined;
|
|
12
23
|
};
|
|
24
|
+
type __VLS_Props = NumberInputProps;
|
|
25
|
+
type __VLS_PublicProps = {
|
|
26
|
+
modelValue: number | undefined;
|
|
27
|
+
} & __VLS_Props;
|
|
13
28
|
declare function __VLS_template(): {
|
|
14
29
|
attrs: Partial<{}>;
|
|
15
30
|
slots: {
|
|
@@ -22,16 +37,17 @@ declare function __VLS_template(): {
|
|
|
22
37
|
rootEl: HTMLDivElement;
|
|
23
38
|
};
|
|
24
39
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
26
|
-
"update:modelValue": (
|
|
27
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
28
|
-
"onUpdate:modelValue"?: ((
|
|
40
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
43
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
29
44
|
}>, {
|
|
30
45
|
label: string;
|
|
31
46
|
placeholder: string;
|
|
32
47
|
step: number;
|
|
33
48
|
minValue: number;
|
|
34
49
|
maxValue: number;
|
|
50
|
+
useIncrementButtons: boolean;
|
|
35
51
|
errorMessage: string;
|
|
36
52
|
validate: (v: number) => string | undefined;
|
|
37
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|