admins-components 3.0.3 → 3.0.4
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/admins-components.cjs +107 -107
- package/dist/admins-components.js +27073 -27034
- package/dist/src/components/CalendarComponent.vue.d.ts +7 -3
- package/dist/src/components/DateRangePicker.vue.d.ts +5 -5
- package/dist/src/components/DateTimePicker.vue.d.ts +6 -3
- package/dist/src/utils/dateManipulation.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
export interface IDates {
|
|
2
|
+
local: Date | null;
|
|
3
|
+
utc: string | null;
|
|
4
|
+
}
|
|
1
5
|
type __VLS_Props = {
|
|
2
|
-
|
|
6
|
+
init?: Date | null | undefined;
|
|
3
7
|
dateOnly?: boolean;
|
|
4
8
|
};
|
|
5
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
changed: (
|
|
10
|
+
changed: (dates: IDates) => any;
|
|
7
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
onChanged?: ((
|
|
12
|
+
onChanged?: ((dates: IDates) => any) | undefined;
|
|
9
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
14
|
export default _default;
|
|
@@ -4,13 +4,13 @@ type __VLS_Props = {
|
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
6
|
changed: (range: {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
fromUtc: string | null;
|
|
8
|
+
toUtc: string | null;
|
|
9
9
|
}) => any;
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
11
|
onChanged?: ((range: {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
fromUtc: string | null;
|
|
13
|
+
toUtc: string | null;
|
|
14
14
|
}) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { IDates } from './CalendarComponent.vue';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
placeholder: string;
|
|
3
|
-
initial?:
|
|
4
|
+
initial?: IDates | undefined | null;
|
|
4
5
|
dateOnly?: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
-
changed: (
|
|
8
|
+
changed: (dates: IDates) => any;
|
|
9
|
+
calendar: (open: boolean) => any;
|
|
8
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onChanged?: ((
|
|
11
|
+
onChanged?: ((dates: IDates) => any) | undefined;
|
|
12
|
+
onCalendar?: ((open: boolean) => any) | undefined;
|
|
10
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
14
|
dateTimeInputTextRef: HTMLInputElement;
|
|
12
15
|
iconBtn: HTMLDivElement;
|
|
@@ -5,3 +5,6 @@ export declare const toDateStringFromUtc: (v: string | null) => string;
|
|
|
5
5
|
export declare const localDateTimeToUTC: (v: string) => string;
|
|
6
6
|
export declare const localDateTimeToUTCDate: (v: string) => string;
|
|
7
7
|
export declare const localDateTimeToDate: (v: string) => string;
|
|
8
|
+
export declare const localToStr: (dt: Date | null | undefined) => string | null;
|
|
9
|
+
export declare const localToDateStr: (dt: Date | null | undefined) => string | null;
|
|
10
|
+
export declare const localToUtcStr: (dt: Date | null | undefined, dateOnly?: boolean) => string | null;
|