@keyblade/pro-components 1.13.8-alpha.34 → 1.13.8-alpha.36
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/es/components.d.ts +2 -0
- package/es/global-props.d.ts +12 -6
- package/es/index.d.ts +2 -0
- package/es/index.js +46 -38
- package/es/inerface.d.ts +4 -2
- package/es/pro-calendar/calendar.vue.d.ts +4 -4
- package/es/pro-calendar/header.vue.d.ts +1 -1
- package/es/pro-calendar/index.d.ts +21 -21
- package/es/pro-calendar/month.vue.d.ts +1 -1
- package/es/pro-calendar/week.vue.d.ts +1 -1
- package/es/pro-calendar/year.vue.d.ts +1 -1
- package/es/pro-date-range-picker/index.d.ts +12 -11
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +3 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +2 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +68 -64
- package/es/pro-dates-picker/index.d.ts +6 -6
- package/es/pro-dates-picker/index.vue.d.ts +2 -2
- package/es/pro-find-password/enum.d.ts +8 -0
- package/es/pro-find-password/enum.js +4 -0
- package/es/pro-find-password/index.d.ts +9 -0
- package/es/pro-find-password/index.js +12 -0
- package/es/pro-find-password/index.vue.d.ts +3695 -0
- package/es/pro-find-password/index.vue.js +178 -0
- package/es/pro-find-password/index.vue3.js +5 -0
- package/es/pro-find-password/interface.d.ts +45 -0
- package/es/pro-find-password/reset-password.vue.d.ts +400 -0
- package/es/pro-find-password/reset-password.vue.js +181 -0
- package/es/pro-find-password/reset-password.vue2.js +4 -0
- package/es/pro-find-password/verify-user-name.vue.d.ts +413 -0
- package/es/pro-find-password/verify-user-name.vue.js +114 -0
- package/es/pro-find-password/verify-user-name.vue3.js +5 -0
- package/es/pro-footer-bar/index.d.ts +3 -3
- package/es/pro-footer-bar/index.vue.d.ts +1 -1
- package/es/pro-footer-bar/index.vue.js +2 -2
- package/es/pro-form-group/index.d.ts +6 -6
- package/es/pro-form-group/index.vue.d.ts +2 -2
- package/es/pro-form-group/index.vue.js +1 -1
- package/es/pro-image-upload/image-upload.vue.d.ts +1 -1
- package/es/pro-image-upload/index.d.ts +3 -3
- package/es/pro-layout/index.d.ts +5 -3
- package/es/pro-layout/pro-layout.vue.d.ts +3 -1
- package/es/pro-layout/pro-layout.vue.js +92 -89
- package/es/pro-loader/index.d.ts +3 -3
- package/es/pro-loader/index.vue.d.ts +1 -1
- package/es/pro-login/enum.d.ts +6 -0
- package/es/pro-login/enum.js +4 -0
- package/es/pro-login/form-mobile.vue.d.ts +415 -0
- package/es/pro-login/form-mobile.vue.js +148 -0
- package/es/pro-login/form-mobile.vue2.js +4 -0
- package/es/pro-login/form-password.vue.d.ts +393 -0
- package/es/pro-login/form-password.vue.js +101 -0
- package/es/pro-login/form-password.vue2.js +4 -0
- package/es/pro-login/index.d.ts +9 -0
- package/es/pro-login/index.js +12 -0
- package/es/pro-login/index.vue.d.ts +3665 -0
- package/es/pro-login/index.vue.js +107 -0
- package/es/pro-login/index.vue3.js +5 -0
- package/es/pro-login/interface.d.ts +72 -0
- package/es/pro-login/regexp.d.ts +17 -0
- package/es/pro-login/regexp.js +28 -0
- package/es/pro-page-container/constant.d.ts +2 -0
- package/es/pro-page-container/constant.js +9 -0
- package/es/pro-page-container/index.d.ts +6 -33
- package/es/pro-page-container/interface.d.ts +12 -0
- package/es/pro-page-container/pro-page-container.vue.d.ts +4 -19
- package/es/pro-page-container/pro-page-container.vue.js +51 -38
- package/es/pro-page-header/constant.d.ts +2 -0
- package/es/pro-page-header/constant.js +13 -0
- package/es/pro-page-header/index.d.ts +3 -153
- package/es/pro-page-header/interface.d.ts +21 -0
- package/es/pro-page-header/pro-page-header.vue.d.ts +2 -105
- package/es/pro-page-header/pro-page-header.vue.js +140 -126
- package/es/pro-reuse-tabs/index.d.ts +3 -3
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +1 -1
- package/es/pro-table/index.d.ts +9 -9
- package/es/pro-table/index.vue.d.ts +3 -3
- package/es/pro-textarea/index.d.ts +4 -4
- package/es/pro-textarea/index.vue.d.ts +1 -1
- package/es/pro-textarea/index.vue.js +2 -2
- package/es/pro-textarea/{inerface.d.ts → interface.d.ts} +19 -18
- package/es/style.css +1 -1
- package/package.json +2 -1
- package/es/pro-page-container/inerface.d.ts +0 -12
- /package/es/pro-calendar/{inerface.d.ts → interface.d.ts} +0 -0
- /package/es/pro-date-range-picker/{inerface.d.ts → interface.d.ts} +0 -0
- /package/es/pro-dates-picker/{inerface.d.ts → interface.d.ts} +0 -0
- /package/es/pro-footer-bar/{inerface.d.ts → interface.d.ts} +0 -0
package/es/components.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ declare module 'vue' {
|
|
|
15
15
|
KbProFormGroup: typeof import('./index')['ProFormGroup'];
|
|
16
16
|
KbProCalendar: typeof import('./index')['ProCalendar'];
|
|
17
17
|
KbProLoader: typeof import('./index')['ProLoader'];
|
|
18
|
+
KbProLogin: typeof import('./index')['ProLogin'];
|
|
19
|
+
KbProFindPassword: typeof import('./index')['ProFindPassword'];
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
export {};
|
package/es/global-props.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { ProFooterBarProps } from './pro-footer-bar/
|
|
1
|
+
import { ProFooterBarProps } from './pro-footer-bar/interface.ts';
|
|
2
2
|
import { ProTableProps } from './pro-table/interface';
|
|
3
|
-
import { ProTextareaProps } from './pro-textarea';
|
|
4
|
-
import { ProDateRangePickerProps } from './pro-date-range-picker/
|
|
5
|
-
import { ProCalendarProps } from './pro-calendar';
|
|
6
|
-
import { ProDatesPickerProps } from './pro-dates-picker/
|
|
7
|
-
import { ProLoaderProps } from './pro-loader';
|
|
3
|
+
import { ProTextareaProps } from './pro-textarea/interface.ts';
|
|
4
|
+
import { ProDateRangePickerProps } from './pro-date-range-picker/interface.ts';
|
|
5
|
+
import { ProCalendarProps } from './pro-calendar/interface.ts';
|
|
6
|
+
import { ProDatesPickerProps } from './pro-dates-picker/interface.ts';
|
|
7
|
+
import { ProLoaderProps } from './pro-loader/interface.ts';
|
|
8
|
+
import { PageContainerProps } from './pro-page-container/interface.ts';
|
|
9
|
+
import { PageHeaderProps } from './pro-page-header/interface.ts';
|
|
8
10
|
export interface GlobalProps {
|
|
9
11
|
footerBar?: ProFooterBarProps;
|
|
10
12
|
dateRangePicker?: ProDateRangePickerProps;
|
|
@@ -13,5 +15,9 @@ export interface GlobalProps {
|
|
|
13
15
|
table?: ProTableProps;
|
|
14
16
|
calendar?: ProCalendarProps;
|
|
15
17
|
loader?: ProLoaderProps;
|
|
18
|
+
/** 页面容器 */
|
|
19
|
+
pageContainer?: PageContainerProps;
|
|
20
|
+
/** 页头 */
|
|
21
|
+
pageHeader?: PageHeaderProps;
|
|
16
22
|
}
|
|
17
23
|
export declare const globalProps: GlobalProps;
|
package/es/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ declare const _default: {
|
|
|
4
4
|
install(app: App, options?: GlobalProps): void;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
+
export { default as ProLogin } from './pro-login';
|
|
8
|
+
export { default as ProFindPassword } from './pro-find-password';
|
|
7
9
|
export { default as ProPageHeader } from './pro-page-header';
|
|
8
10
|
export { default as ProKeepAliveRouterView } from './pro-keep-alive-router-view';
|
|
9
11
|
export { default as ProLayout } from './pro-layout';
|
package/es/index.js
CHANGED
|
@@ -1,45 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { ProLogin as e } from "./pro-login/index.js";
|
|
2
|
+
import { ProFindPassword as m } from "./pro-find-password/index.js";
|
|
3
|
+
import { ProPageHeader as t } from "./pro-page-header/index.js";
|
|
4
|
+
import { ProKeepAliveRouterView as i } from "./pro-keep-alive-router-view/index.js";
|
|
5
|
+
import { ProLayout as s } from "./pro-layout/index.js";
|
|
6
|
+
import { ProMenu as f } from "./pro-menu/index.js";
|
|
7
|
+
import { ProPageContainer as P } from "./pro-page-container/index.js";
|
|
8
|
+
import { ProReuseTabs as u } from "./pro-reuse-tabs/index.js";
|
|
9
|
+
import { ProImageUpload as n } from "./pro-image-upload/index.js";
|
|
10
|
+
import { ProDatesPicker as a } from "./pro-dates-picker/index.js";
|
|
11
|
+
import { ProDateRangePicker as d } from "./pro-date-range-picker/index.js";
|
|
10
12
|
import { ProTable as l } from "./pro-table/index.js";
|
|
11
|
-
import { ProTextarea as
|
|
12
|
-
import { ProFooterBar as
|
|
13
|
-
import { ProFormGroup as
|
|
14
|
-
import
|
|
15
|
-
import { ProLoader as
|
|
16
|
-
import { globalProps as
|
|
17
|
-
import { splitStringWithCommaAndSpace as
|
|
18
|
-
import { EImageUploadInnerBeforeUploadStep as
|
|
19
|
-
import { defaultImageUploadOptions as
|
|
20
|
-
|
|
13
|
+
import { ProTextarea as g } from "./pro-textarea/index.js";
|
|
14
|
+
import { ProFooterBar as x } from "./pro-footer-bar/index.js";
|
|
15
|
+
import { ProFormGroup as c } from "./pro-form-group/index.js";
|
|
16
|
+
import p from "./pro-calendar/index.js";
|
|
17
|
+
import { ProLoader as b } from "./pro-loader/index.js";
|
|
18
|
+
import { globalProps as F } from "./global-props.js";
|
|
19
|
+
import { splitStringWithCommaAndSpace as M } from "./utils.js";
|
|
20
|
+
import { EImageUploadInnerBeforeUploadStep as W } from "./pro-image-upload/types.js";
|
|
21
|
+
import { defaultImageUploadOptions as z } from "./pro-image-upload/constant.js";
|
|
22
|
+
import { EProLoginType as N } from "./pro-login/enum.js";
|
|
23
|
+
import { EFindPasswordSteps as X } from "./pro-find-password/enum.js";
|
|
24
|
+
const G = {
|
|
21
25
|
install(o, r) {
|
|
22
|
-
Object.assign(
|
|
26
|
+
Object.assign(F, r || {}), o.use(e), o.use(m), o.use(t), o.use(i), o.use(s), o.use(x), o.use(f), o.use(P), o.use(u), o.use(n), o.use(a), o.use(d), o.use(g), o.use(l), o.use(c), o.use(p), o.use(b);
|
|
23
27
|
}
|
|
24
28
|
};
|
|
25
29
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
d as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
i as
|
|
37
|
-
s as
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
X as EFindPasswordSteps,
|
|
31
|
+
W as EImageUploadInnerBeforeUploadStep,
|
|
32
|
+
N as EProLoginType,
|
|
33
|
+
p as ProCalendar,
|
|
34
|
+
d as ProDateRangePicker,
|
|
35
|
+
a as ProDatesPicker,
|
|
36
|
+
m as ProFindPassword,
|
|
37
|
+
x as ProFooterBar,
|
|
38
|
+
c as ProFormGroup,
|
|
39
|
+
n as ProImageUpload,
|
|
40
|
+
i as ProKeepAliveRouterView,
|
|
41
|
+
s as ProLayout,
|
|
42
|
+
b as ProLoader,
|
|
43
|
+
e as ProLogin,
|
|
44
|
+
f as ProMenu,
|
|
45
|
+
P as ProPageContainer,
|
|
46
|
+
t as ProPageHeader,
|
|
47
|
+
u as ProReuseTabs,
|
|
40
48
|
l as ProTable,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
g as ProTextarea,
|
|
50
|
+
G as default,
|
|
51
|
+
z as defaultImageUploadOptions,
|
|
52
|
+
M as splitStringWithCommaAndSpace
|
|
45
53
|
};
|
package/es/inerface.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export * from './pro-footer-bar/
|
|
2
|
-
export * from './pro-date-range-picker/
|
|
1
|
+
export * from './pro-footer-bar/interface';
|
|
2
|
+
export * from './pro-date-range-picker/interface.ts';
|
|
3
3
|
export * from './pro-table/interface';
|
|
4
|
+
export * from './pro-login/interface';
|
|
5
|
+
export * from './pro-find-password/interface.ts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IProCalendarProps } from './
|
|
1
|
+
import { IProCalendarProps } from './interface.ts';
|
|
2
2
|
import { EMode } from './enum';
|
|
3
3
|
declare function changePageShowDate(type: 'prev' | 'next', unit: EMode): void;
|
|
4
4
|
declare function __VLS_template(): {
|
|
@@ -49,15 +49,15 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
49
49
|
declare const __VLS_component: import('vue').DefineComponent<IProCalendarProps, {
|
|
50
50
|
changePageShowDate: typeof changePageShowDate;
|
|
51
51
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
|
-
"update:modelValue": (date: Date) => any;
|
|
53
52
|
change: (date: Date) => any;
|
|
53
|
+
"update:modelValue": (date: Date) => any;
|
|
54
54
|
panelChange: (date: Date) => any;
|
|
55
55
|
}, string, import('vue').PublicProps, Readonly<IProCalendarProps> & Readonly<{
|
|
56
|
-
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
57
56
|
onChange?: ((date: Date) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
58
58
|
onPanelChange?: ((date: Date) => any) | undefined;
|
|
59
59
|
}>, {
|
|
60
|
-
header: boolean | import('./
|
|
60
|
+
header: boolean | import('./interface.ts').IHeaderObjProps;
|
|
61
61
|
modes: (EMode.month | EMode.year)[];
|
|
62
62
|
defaultMode: EMode.month | EMode.year;
|
|
63
63
|
allowSelect: boolean;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { ArcoOptions } from '@arco-design/web-vue/es/_utils/types';
|
|
3
3
|
import { default as _ProCalendar } from './calendar.vue';
|
|
4
|
-
import { ProCalendarProps } from './
|
|
4
|
+
import { ProCalendarProps } from './interface.ts';
|
|
5
5
|
declare const ProCalendar: {
|
|
6
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./
|
|
7
|
-
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
6
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface.ts').IProCalendarProps> & Readonly<{
|
|
8
7
|
onChange?: ((date: Date) => any) | undefined;
|
|
8
|
+
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
9
9
|
onPanelChange?: ((date: Date) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
|
-
changePageShowDate: (type: "prev" | "next", unit: import('./enum').EMode) => void;
|
|
11
|
+
changePageShowDate: (type: "prev" | "next", unit: import('./enum.ts').EMode) => void;
|
|
12
12
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
-
"update:modelValue": (date: Date) => any;
|
|
14
13
|
change: (date: Date) => any;
|
|
14
|
+
"update:modelValue": (date: Date) => any;
|
|
15
15
|
panelChange: (date: Date) => any;
|
|
16
16
|
}, import('vue').PublicProps, {
|
|
17
|
-
header: boolean | import('./
|
|
18
|
-
modes: (import("./enum").EMode.month | import("./enum").EMode.year)[];
|
|
19
|
-
defaultMode: import("./enum").EMode.month | import("./enum").EMode.year;
|
|
17
|
+
header: boolean | import('./interface.ts').IHeaderObjProps;
|
|
18
|
+
modes: (import("./enum.ts").EMode.month | import("./enum.ts").EMode.year)[];
|
|
19
|
+
defaultMode: import("./enum.ts").EMode.month | import("./enum.ts").EMode.year;
|
|
20
20
|
allowSelect: boolean;
|
|
21
21
|
panelTodayBtn: boolean;
|
|
22
22
|
dayStartOfWeek: 0 | 1;
|
|
@@ -29,16 +29,16 @@ declare const ProCalendar: {
|
|
|
29
29
|
C: {};
|
|
30
30
|
M: {};
|
|
31
31
|
Defaults: {};
|
|
32
|
-
}, Readonly<import('./
|
|
33
|
-
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
32
|
+
}, Readonly<import('./interface.ts').IProCalendarProps> & Readonly<{
|
|
34
33
|
onChange?: ((date: Date) => any) | undefined;
|
|
34
|
+
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
35
35
|
onPanelChange?: ((date: Date) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
changePageShowDate: (type: "prev" | "next", unit: import('./enum').EMode) => void;
|
|
37
|
+
changePageShowDate: (type: "prev" | "next", unit: import('./enum.ts').EMode) => void;
|
|
38
38
|
}, {}, {}, {}, {
|
|
39
|
-
header: boolean | import('./
|
|
40
|
-
modes: (import("./enum").EMode.month | import("./enum").EMode.year)[];
|
|
41
|
-
defaultMode: import("./enum").EMode.month | import("./enum").EMode.year;
|
|
39
|
+
header: boolean | import('./interface.ts').IHeaderObjProps;
|
|
40
|
+
modes: (import("./enum.ts").EMode.month | import("./enum.ts").EMode.year)[];
|
|
41
|
+
defaultMode: import("./enum.ts").EMode.month | import("./enum.ts").EMode.year;
|
|
42
42
|
allowSelect: boolean;
|
|
43
43
|
panelTodayBtn: boolean;
|
|
44
44
|
dayStartOfWeek: 0 | 1;
|
|
@@ -48,20 +48,20 @@ declare const ProCalendar: {
|
|
|
48
48
|
__isFragment?: never;
|
|
49
49
|
__isTeleport?: never;
|
|
50
50
|
__isSuspense?: never;
|
|
51
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./
|
|
52
|
-
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
51
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./interface.ts').IProCalendarProps> & Readonly<{
|
|
53
52
|
onChange?: ((date: Date) => any) | undefined;
|
|
53
|
+
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
54
54
|
onPanelChange?: ((date: Date) => any) | undefined;
|
|
55
55
|
}>, {
|
|
56
|
-
changePageShowDate: (type: "prev" | "next", unit: import('./enum').EMode) => void;
|
|
56
|
+
changePageShowDate: (type: "prev" | "next", unit: import('./enum.ts').EMode) => void;
|
|
57
57
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
58
|
-
"update:modelValue": (date: Date) => any;
|
|
59
58
|
change: (date: Date) => any;
|
|
59
|
+
"update:modelValue": (date: Date) => any;
|
|
60
60
|
panelChange: (date: Date) => any;
|
|
61
61
|
}, string, {
|
|
62
|
-
header: boolean | import('./
|
|
63
|
-
modes: (import("./enum").EMode.month | import("./enum").EMode.year)[];
|
|
64
|
-
defaultMode: import("./enum").EMode.month | import("./enum").EMode.year;
|
|
62
|
+
header: boolean | import('./interface.ts').IHeaderObjProps;
|
|
63
|
+
modes: (import("./enum.ts").EMode.month | import("./enum.ts").EMode.year)[];
|
|
64
|
+
defaultMode: import("./enum.ts").EMode.month | import("./enum.ts").EMode.year;
|
|
65
65
|
allowSelect: boolean;
|
|
66
66
|
panelTodayBtn: boolean;
|
|
67
67
|
dayStartOfWeek: 0 | 1;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IProCalendarWeek } from './
|
|
1
|
+
import { IProCalendarWeek } from './interface.ts';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IProCalendarWeek, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProCalendarWeek> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IProCalendarYear } from './
|
|
1
|
+
import { IProCalendarYear } from './interface.ts';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IProCalendarYear, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProCalendarYear> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3
3
|
export default _default;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
declare const ProDateRangePicker: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./
|
|
4
|
-
"onUpdate:modelValue"?: ((value: import('./
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./interface').IProDateRangePickerProps> & Readonly<{
|
|
4
|
+
"onUpdate:modelValue"?: ((value: import('./interface').IModelValue) => any) | undefined;
|
|
5
5
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
-
"update:modelValue": (value: import('./
|
|
6
|
+
"update:modelValue": (value: import('./interface').IModelValue) => any;
|
|
7
7
|
}, import('vue').PublicProps, {
|
|
8
|
-
separator: string;
|
|
9
8
|
hideLabel: boolean;
|
|
9
|
+
separator: string;
|
|
10
10
|
startField: string;
|
|
11
11
|
endField: string;
|
|
12
12
|
startPlaceholder: string;
|
|
13
13
|
endPlaceholder: string;
|
|
14
14
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
15
|
+
dateRef: HTMLDivElement;
|
|
15
16
|
startDatePickerRef: unknown;
|
|
16
17
|
endDatePickerRef: unknown;
|
|
17
18
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -21,11 +22,11 @@ declare const ProDateRangePicker: {
|
|
|
21
22
|
C: {};
|
|
22
23
|
M: {};
|
|
23
24
|
Defaults: {};
|
|
24
|
-
}, Readonly<import('./
|
|
25
|
-
"onUpdate:modelValue"?: ((value: import('./
|
|
25
|
+
}, Readonly<import('./interface').IProDateRangePickerProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: import('./interface').IModelValue) => any) | undefined;
|
|
26
27
|
}>, {}, {}, {}, {}, {
|
|
27
|
-
separator: string;
|
|
28
28
|
hideLabel: boolean;
|
|
29
|
+
separator: string;
|
|
29
30
|
startField: string;
|
|
30
31
|
endField: string;
|
|
31
32
|
startPlaceholder: string;
|
|
@@ -34,13 +35,13 @@ declare const ProDateRangePicker: {
|
|
|
34
35
|
__isFragment?: never;
|
|
35
36
|
__isTeleport?: never;
|
|
36
37
|
__isSuspense?: never;
|
|
37
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./
|
|
38
|
-
"onUpdate:modelValue"?: ((value: import('./
|
|
38
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./interface').IProDateRangePickerProps> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: import('./interface').IModelValue) => any) | undefined;
|
|
39
40
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
40
|
-
"update:modelValue": (value: import('./
|
|
41
|
+
"update:modelValue": (value: import('./interface').IModelValue) => any;
|
|
41
42
|
}, string, {
|
|
42
|
-
separator: string;
|
|
43
43
|
hideLabel: boolean;
|
|
44
|
+
separator: string;
|
|
44
45
|
startField: string;
|
|
45
46
|
endField: string;
|
|
46
47
|
startPlaceholder: string;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { IModelValue, IProDateRangePickerProps } from './
|
|
1
|
+
import { IModelValue, IProDateRangePickerProps } from './interface.ts';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IProDateRangePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
3
|
"update:modelValue": (value: IModelValue) => any;
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<IProDateRangePickerProps> & Readonly<{
|
|
5
5
|
"onUpdate:modelValue"?: ((value: IModelValue) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
-
separator: string;
|
|
8
7
|
hideLabel: boolean;
|
|
8
|
+
separator: string;
|
|
9
9
|
startField: string;
|
|
10
10
|
endField: string;
|
|
11
11
|
startPlaceholder: string;
|
|
12
12
|
endPlaceholder: string;
|
|
13
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
+
dateRef: HTMLDivElement;
|
|
14
15
|
startDatePickerRef: unknown;
|
|
15
16
|
endDatePickerRef: unknown;
|
|
16
17
|
}, HTMLDivElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./pro-date-range-picker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-686f3de9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var U = Object.defineProperty, $ = Object.defineProperties;
|
|
2
|
+
var j = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var z = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var R = (i, l, e) => l in i ? U(i, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[l] = e, m = (i, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
|
-
|
|
7
|
+
z.call(l, e) && R(i, e, l[e]);
|
|
8
8
|
if (E)
|
|
9
9
|
for (var e of E(l))
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, p = (
|
|
13
|
-
import { defineComponent as
|
|
14
|
-
import
|
|
15
|
-
import { conclude as
|
|
16
|
-
import { globalProps as
|
|
17
|
-
import { range as
|
|
18
|
-
const
|
|
10
|
+
G.call(l, e) && R(i, e, l[e]);
|
|
11
|
+
return i;
|
|
12
|
+
}, p = (i, l) => $(i, j(l));
|
|
13
|
+
import { defineComponent as J, ref as n, computed as D, resolveComponent as T, createElementBlock as K, openBlock as O, normalizeClass as Q, createVNode as u, mergeProps as f, withCtx as h, createTextVNode as W, toDisplayString as X, nextTick as B } from "vue";
|
|
14
|
+
import s from "dayjs";
|
|
15
|
+
import { conclude as w } from "vue-global-config";
|
|
16
|
+
import { globalProps as I } from "../global-props.js";
|
|
17
|
+
import { range as y } from "./pro-date-range-picker.js";
|
|
18
|
+
const Y = "keyblade-pro-date-range-picker", re = /* @__PURE__ */ J({
|
|
19
19
|
__name: "pro-date-range-picker",
|
|
20
20
|
props: {
|
|
21
21
|
modelValue: {},
|
|
@@ -33,95 +33,98 @@ const X = "keyblade-pro-date-range-picker", de = /* @__PURE__ */ G({
|
|
|
33
33
|
disabledEndDate: {}
|
|
34
34
|
},
|
|
35
35
|
emits: ["update:modelValue"],
|
|
36
|
-
setup(
|
|
37
|
-
const e =
|
|
36
|
+
setup(i, { emit: l }) {
|
|
37
|
+
const e = i, g = l, P = n(), b = n(), k = n(), F = n(), S = n(), c = n(), v = D({
|
|
38
38
|
get: () => e.modelValue[e.startField],
|
|
39
39
|
set: (t) => {
|
|
40
|
-
t ? P.value = "success" : P.value = void 0,
|
|
40
|
+
t ? P.value = "success" : P.value = void 0, g("update:modelValue", p(m({}, e.modelValue), {
|
|
41
41
|
[e.startField]: t
|
|
42
42
|
}));
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), _ = D({
|
|
45
45
|
get: () => e.modelValue[e.endField],
|
|
46
46
|
set: (t) => {
|
|
47
|
-
t ? b.value = "success" : b.value = void 0,
|
|
47
|
+
t ? b.value = "success" : b.value = void 0, g("update:modelValue", p(m({}, e.modelValue), {
|
|
48
48
|
[e.endField]: t
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), N = (t) => {
|
|
52
52
|
const a = () => {
|
|
53
53
|
var r;
|
|
54
54
|
if (!e.modelValue[e.endField]) return !1;
|
|
55
|
-
let o =
|
|
56
|
-
return e.intraday && !((r = e.datePickerProps) != null && r.showTime) && (o = o.add(1, "day")),
|
|
55
|
+
let o = s(e.modelValue[e.endField]);
|
|
56
|
+
return e.intraday && !((r = e.datePickerProps) != null && r.showTime) && (o = o.add(1, "day")), s(t).isAfter(o);
|
|
57
57
|
};
|
|
58
58
|
return e.disabledStartDate ? e.disabledStartDate({ current: t, enabled: a() }) : a();
|
|
59
|
-
},
|
|
59
|
+
}, q = (t) => {
|
|
60
60
|
const a = () => {
|
|
61
61
|
var d;
|
|
62
|
-
return e.modelValue[e.startField] ? (e.intraday && ((d = e.datePickerProps) != null && d.showTime) && t.setDate(t.getDate() + 1),
|
|
62
|
+
return e.modelValue[e.startField] ? (e.intraday && ((d = e.datePickerProps) != null && d.showTime) && t.setDate(t.getDate() + 1), s(t).isBefore(s(e.modelValue[e.startField]))) : !1;
|
|
63
63
|
};
|
|
64
64
|
return e.disabledEndDate ? e.disabledEndDate({ current: t, enabled: a() }) : a();
|
|
65
|
-
},
|
|
65
|
+
}, x = (t) => {
|
|
66
66
|
if (!e.modelValue[e.startField] || !t || !e.intraday) {
|
|
67
|
-
|
|
67
|
+
c.value = {};
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
const a =
|
|
70
|
+
const a = s(e.modelValue[e.startField]), o = s(t);
|
|
71
71
|
if (!a.isSame(o, "day")) {
|
|
72
|
-
|
|
72
|
+
c.value = {};
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
const d = a.hour(), r = a.minute(),
|
|
76
|
-
|
|
77
|
-
disabledHours: () =>
|
|
78
|
-
disabledMinutes: (V) => V === d ?
|
|
79
|
-
disabledSeconds: (V,
|
|
75
|
+
const d = a.hour(), r = a.minute(), L = a.second();
|
|
76
|
+
c.value = {
|
|
77
|
+
disabledHours: () => y(0, d),
|
|
78
|
+
disabledMinutes: (V) => V === d ? y(0, r) : [],
|
|
79
|
+
disabledSeconds: (V, M) => V === d && M === r ? y(0, L) : []
|
|
80
80
|
};
|
|
81
|
-
},
|
|
81
|
+
}, A = () => {
|
|
82
82
|
setTimeout(() => {
|
|
83
83
|
const t = e.modelValue[e.endField], a = e.modelValue[e.startField];
|
|
84
|
-
a && t &&
|
|
84
|
+
a && t && s(a).isAfter(s(t)) && (v.value = t), !t && a && B(() => {
|
|
85
85
|
var d;
|
|
86
|
-
const o = (d =
|
|
86
|
+
const o = (d = S.value) == null ? void 0 : d.$el.parentElement.querySelector("input");
|
|
87
87
|
o && o.click();
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
|
-
},
|
|
90
|
+
}, H = () => {
|
|
91
91
|
setTimeout(() => {
|
|
92
|
-
e.modelValue[e.endField] && !e.modelValue[e.startField] &&
|
|
92
|
+
e.modelValue[e.endField] && !e.modelValue[e.startField] && B(() => {
|
|
93
93
|
var a;
|
|
94
|
-
const t = (a =
|
|
94
|
+
const t = (a = F.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
|
|
95
95
|
t && t.click();
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
|
-
}, C =
|
|
98
|
+
}, C = D(() => {
|
|
99
99
|
var t, a;
|
|
100
|
-
return p(
|
|
101
|
-
timePickerProps:
|
|
100
|
+
return p(m({}, w([e.datePickerProps, (t = I.dateRangePicker) == null ? void 0 : t.datePickerProps, {}])), {
|
|
101
|
+
timePickerProps: w([e.timePickerProps, (a = I.dateRangePicker) == null ? void 0 : a.timePickerProps], {})
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
104
|
return (t, a) => {
|
|
105
105
|
const o = T("a-date-picker"), d = T("a-form-item");
|
|
106
|
-
return
|
|
107
|
-
class:
|
|
106
|
+
return O(), K("div", {
|
|
107
|
+
class: Q(Y),
|
|
108
|
+
ref_key: "dateRef",
|
|
109
|
+
ref: k
|
|
108
110
|
}, [
|
|
109
111
|
u(d, f(t.formItemProps, {
|
|
110
112
|
"validate-status": P.value,
|
|
111
113
|
field: t.startField,
|
|
112
114
|
"hide-label": t.hideLabel
|
|
113
115
|
}), {
|
|
114
|
-
default:
|
|
116
|
+
default: h(() => [
|
|
115
117
|
u(o, f({
|
|
116
118
|
ref_key: "startDatePickerRef",
|
|
117
|
-
ref:
|
|
118
|
-
modelValue:
|
|
119
|
-
"onUpdate:modelValue": a[0] || (a[0] = (r) =>
|
|
119
|
+
ref: F,
|
|
120
|
+
modelValue: v.value,
|
|
121
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => v.value = r)
|
|
120
122
|
}, C.value, {
|
|
123
|
+
"popup-container": k.value,
|
|
121
124
|
placeholder: t.startPlaceholder,
|
|
122
|
-
"disabled-date": (r) =>
|
|
123
|
-
onChange:
|
|
124
|
-
}), null, 16, ["modelValue", "placeholder", "disabled-date"])
|
|
125
|
+
"disabled-date": (r) => N(r),
|
|
126
|
+
onChange: A
|
|
127
|
+
}), null, 16, ["modelValue", "popup-container", "placeholder", "disabled-date"])
|
|
125
128
|
]),
|
|
126
129
|
_: 1
|
|
127
130
|
}, 16, ["validate-status", "field", "hide-label"]),
|
|
@@ -129,8 +132,8 @@ const X = "keyblade-pro-date-range-picker", de = /* @__PURE__ */ G({
|
|
|
129
132
|
"hide-label": "",
|
|
130
133
|
style: { "max-height": "32px", top: "0px" }
|
|
131
134
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
135
|
+
default: h(() => [
|
|
136
|
+
W(X(t.separator), 1)
|
|
134
137
|
]),
|
|
135
138
|
_: 1
|
|
136
139
|
}),
|
|
@@ -140,26 +143,27 @@ const X = "keyblade-pro-date-range-picker", de = /* @__PURE__ */ G({
|
|
|
140
143
|
"hide-label": "",
|
|
141
144
|
style: { "margin-right": "0px" }
|
|
142
145
|
}), {
|
|
143
|
-
default:
|
|
146
|
+
default: h(() => [
|
|
144
147
|
u(o, f({
|
|
145
148
|
ref_key: "endDatePickerRef",
|
|
146
|
-
ref:
|
|
147
|
-
modelValue:
|
|
148
|
-
"onUpdate:modelValue": a[1] || (a[1] = (r) =>
|
|
149
|
+
ref: S,
|
|
150
|
+
modelValue: _.value,
|
|
151
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => _.value = r)
|
|
149
152
|
}, C.value, {
|
|
153
|
+
"popup-container": k.value,
|
|
150
154
|
placeholder: t.endPlaceholder,
|
|
151
|
-
"disabled-date": (r) =>
|
|
152
|
-
"disabled-time": () =>
|
|
153
|
-
onSelect:
|
|
154
|
-
onChange:
|
|
155
|
-
}), null, 16, ["modelValue", "placeholder", "disabled-date", "disabled-time"])
|
|
155
|
+
"disabled-date": (r) => q(r),
|
|
156
|
+
"disabled-time": () => c.value,
|
|
157
|
+
onSelect: x,
|
|
158
|
+
onChange: H
|
|
159
|
+
}), null, 16, ["modelValue", "popup-container", "placeholder", "disabled-date", "disabled-time"])
|
|
156
160
|
]),
|
|
157
161
|
_: 1
|
|
158
162
|
}, 16, ["validate-status", "field"])
|
|
159
|
-
]);
|
|
163
|
+
], 512);
|
|
160
164
|
};
|
|
161
165
|
}
|
|
162
166
|
});
|
|
163
167
|
export {
|
|
164
|
-
|
|
168
|
+
re as default
|
|
165
169
|
};
|