@rotki/ui-library 2.4.1 → 2.4.3
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/date-time-picker/types.d.ts +1 -1
- package/dist/components/date-time-picker/use-keyboard-handler.d.ts +5 -1
- package/dist/components/index.es.js +2751 -2719
- package/dist/composables/{index-DggmQIbL.js → index-DkSOnEOp.js} +39 -39
- package/dist/composables/index.es.js +1 -1
- package/dist/{index-B4Z0iEL-.js → index-QzEscGAT.js} +12 -12
- package/dist/index.es.js +3 -3
- package/dist/style.css +1 -1
- package/dist/utils/{index-B__GIRn7.js → index-Zd3DrIW8.js} +1 -1
- package/dist/vendor-CYFK77Oj.js +1896 -0
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
- package/dist/vendor-DONK-IZM.js +0 -1770
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
export declare const DATE_TIME_SEGMENT_TYPES: readonly ["DD", "MM", "YYYY", "
|
|
2
|
+
export declare const DATE_TIME_SEGMENT_TYPES: readonly ["DD", "MM", "YYYY", "HH", "mm", "ss", "SSS"];
|
|
3
3
|
export type DateTimeSegmentType = typeof DATE_TIME_SEGMENT_TYPES[number];
|
|
4
4
|
export declare function isDateTimeSegmentType(value: string): value is DateTimeSegmentType;
|
|
5
5
|
export type SegmentData = Record<DateTimeSegmentType, Ref<number | undefined>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TimeAccuracy } from '../../consts/time-accuracy';
|
|
2
2
|
import type { Ref } from 'vue';
|
|
3
3
|
import { type DateTimeSegmentType } from '../../components/date-time-picker/types';
|
|
4
|
+
import { type Dayjs } from 'dayjs';
|
|
4
5
|
interface Segment {
|
|
5
6
|
start: number;
|
|
6
7
|
end: number;
|
|
@@ -16,14 +17,17 @@ interface KeyboardHandlerOptions {
|
|
|
16
17
|
getDateTime: () => Dayjs;
|
|
17
18
|
disabled: boolean;
|
|
18
19
|
readonly: boolean;
|
|
20
|
+
accuracy: TimeAccuracy;
|
|
19
21
|
}
|
|
20
22
|
export declare function useKeyboardHandler(options: KeyboardHandlerOptions): {
|
|
21
23
|
clear: (segmentType?: string) => void;
|
|
22
24
|
getCurrentSegment: (position?: number) => Segment | undefined;
|
|
23
25
|
handleClick: (event: MouseEvent) => void;
|
|
24
26
|
handleFocus: () => void;
|
|
27
|
+
handleInput: (event: Event) => void;
|
|
25
28
|
handleInputSelection: (event: Event) => void;
|
|
26
29
|
handleKeyDown: (event: KeyboardEvent) => void;
|
|
30
|
+
handlePaste: (event: ClipboardEvent) => void;
|
|
27
31
|
setSegment: (segmentType: DateTimeSegmentType) => void;
|
|
28
32
|
};
|
|
29
33
|
export {};
|