@cocoar/vue-ui 4.0.0-beta.46 → 4.0.0-beta.51
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/components/number-input/CoarNumberInput.vue.d.ts +15 -3
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +454 -405
- package/package.json +3 -3
- package/skills/cocoar-vue-ui/references/components/number-input.md +18 -1
- package/skills/cocoar-vue-ui/references/components/object-editor.md +72 -2
|
@@ -21,8 +21,16 @@ export interface CoarNumberInputProps {
|
|
|
21
21
|
max?: number;
|
|
22
22
|
/** Step increment for arrows/keyboard */
|
|
23
23
|
step?: number;
|
|
24
|
-
/** Number of decimal places */
|
|
25
|
-
decimals?: number;
|
|
24
|
+
/** Number of decimal places; `null`: as many as the value has (Preview) */
|
|
25
|
+
decimals?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
* The value is stored as typed or not at all: no mask, rounding or clamping (Preview).
|
|
28
|
+
* Accepts the locale's decimal separator or a point. Other text stays in the field,
|
|
29
|
+
* marked as an error, and `entry-refused` reports it.
|
|
30
|
+
*/
|
|
31
|
+
exact?: boolean;
|
|
32
|
+
/** `min` and `max` apply when the field is left, not already while typing (Preview) */
|
|
33
|
+
clampOnBlur?: boolean;
|
|
26
34
|
/** Disables the input */
|
|
27
35
|
disabled?: boolean;
|
|
28
36
|
/** Makes the input read-only */
|
|
@@ -77,11 +85,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
77
85
|
focused: (event: FocusEvent) => any;
|
|
78
86
|
blurred: (event: FocusEvent) => any;
|
|
79
87
|
"update:modelValue": (value: number | null) => any;
|
|
88
|
+
"entry-refused": (refused: boolean) => any;
|
|
80
89
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
81
90
|
onClear?: (() => any) | undefined;
|
|
82
91
|
onFocused?: ((event: FocusEvent) => any) | undefined;
|
|
83
92
|
onBlurred?: ((event: FocusEvent) => any) | undefined;
|
|
84
93
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
94
|
+
"onEntry-refused"?: ((refused: boolean) => any) | undefined;
|
|
85
95
|
}>, {
|
|
86
96
|
error: boolean;
|
|
87
97
|
name: string;
|
|
@@ -99,7 +109,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
99
109
|
prefix: string;
|
|
100
110
|
suffix: string;
|
|
101
111
|
min: number;
|
|
102
|
-
decimals: number;
|
|
112
|
+
decimals: number | null;
|
|
113
|
+
exact: boolean;
|
|
114
|
+
clampOnBlur: boolean;
|
|
103
115
|
stepperButtons: CoarNumberInputStepperButtons;
|
|
104
116
|
locale: string;
|
|
105
117
|
numberFormat: NumberFormatConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoarNumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/CoarNumberInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CoarNumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/CoarNumberInput.vue"],"names":[],"mappings":"AA2vBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAKhF,0CAA0C;AAC1C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACzD,MAAM,MAAM,6BAA6B,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM,CAAC;AAExF,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB;IACjB,IAAI,CAAC,EAAE,mB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