@featherk/composables 0.5.6 → 0.6.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/date/useMaskedDateInput.d.ts +8 -2
- package/dist/featherk-composables.es.js +837 -756
- package/dist/featherk-composables.umd.js +1 -1
- package/dist/time/useMaskedTimeInput.d.ts +8 -3
- package/docs/date/useMaskedDateInput.md +23 -7
- package/docs/time/useMaskedTimeInput.md +22 -9
- package/package.json +1 -1
|
@@ -8,8 +8,12 @@ export declare function useMaskedDateInput(args: {
|
|
|
8
8
|
onChange: (p: ChangePayload) => void;
|
|
9
9
|
onShowCalendar: (e: KeyboardEvent) => void;
|
|
10
10
|
externalValue?: Ref<string | Date | null | undefined>;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
min?: Date | null | undefined;
|
|
12
|
+
max?: Date | null | undefined;
|
|
13
|
+
/** When true, empty/incomplete value is considered invalid after blur */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** Optional default date for this field (e.g., today). */
|
|
16
|
+
defaultValue?: Date | null;
|
|
13
17
|
dateFormat?: string;
|
|
14
18
|
debug?: boolean;
|
|
15
19
|
}): {
|
|
@@ -19,6 +23,7 @@ export declare function useMaskedDateInput(args: {
|
|
|
19
23
|
debugLines: import("vue").ComputedRef<string[][]>;
|
|
20
24
|
placeholder: Ref<string, string>;
|
|
21
25
|
isValid: import("vue").ComputedRef<boolean>;
|
|
26
|
+
reason: Readonly<Ref<string, string>>;
|
|
22
27
|
validationMessage: import("vue").ComputedRef<string>;
|
|
23
28
|
digitsOnly: import("vue").ComputedRef<string>;
|
|
24
29
|
month: Readonly<Ref<string, string>>;
|
|
@@ -30,4 +35,5 @@ export declare function useMaskedDateInput(args: {
|
|
|
30
35
|
handleWheel: (event: WheelEvent) => void;
|
|
31
36
|
handleKeyUp: (event: KeyboardEvent) => void;
|
|
32
37
|
handleClick: (event: MouseEvent) => void;
|
|
38
|
+
handleBlur: (event: FocusEvent) => void;
|
|
33
39
|
};
|