@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.
Files changed (87) hide show
  1. package/es/components.d.ts +2 -0
  2. package/es/global-props.d.ts +12 -6
  3. package/es/index.d.ts +2 -0
  4. package/es/index.js +46 -38
  5. package/es/inerface.d.ts +4 -2
  6. package/es/pro-calendar/calendar.vue.d.ts +4 -4
  7. package/es/pro-calendar/header.vue.d.ts +1 -1
  8. package/es/pro-calendar/index.d.ts +21 -21
  9. package/es/pro-calendar/month.vue.d.ts +1 -1
  10. package/es/pro-calendar/week.vue.d.ts +1 -1
  11. package/es/pro-calendar/year.vue.d.ts +1 -1
  12. package/es/pro-date-range-picker/index.d.ts +12 -11
  13. package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +3 -2
  14. package/es/pro-date-range-picker/pro-date-range-picker.vue.js +2 -2
  15. package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +68 -64
  16. package/es/pro-dates-picker/index.d.ts +6 -6
  17. package/es/pro-dates-picker/index.vue.d.ts +2 -2
  18. package/es/pro-find-password/enum.d.ts +8 -0
  19. package/es/pro-find-password/enum.js +4 -0
  20. package/es/pro-find-password/index.d.ts +9 -0
  21. package/es/pro-find-password/index.js +12 -0
  22. package/es/pro-find-password/index.vue.d.ts +3695 -0
  23. package/es/pro-find-password/index.vue.js +178 -0
  24. package/es/pro-find-password/index.vue3.js +5 -0
  25. package/es/pro-find-password/interface.d.ts +45 -0
  26. package/es/pro-find-password/reset-password.vue.d.ts +400 -0
  27. package/es/pro-find-password/reset-password.vue.js +181 -0
  28. package/es/pro-find-password/reset-password.vue2.js +4 -0
  29. package/es/pro-find-password/verify-user-name.vue.d.ts +413 -0
  30. package/es/pro-find-password/verify-user-name.vue.js +114 -0
  31. package/es/pro-find-password/verify-user-name.vue3.js +5 -0
  32. package/es/pro-footer-bar/index.d.ts +3 -3
  33. package/es/pro-footer-bar/index.vue.d.ts +1 -1
  34. package/es/pro-footer-bar/index.vue.js +2 -2
  35. package/es/pro-form-group/index.d.ts +6 -6
  36. package/es/pro-form-group/index.vue.d.ts +2 -2
  37. package/es/pro-form-group/index.vue.js +1 -1
  38. package/es/pro-image-upload/image-upload.vue.d.ts +1 -1
  39. package/es/pro-image-upload/index.d.ts +3 -3
  40. package/es/pro-layout/index.d.ts +5 -3
  41. package/es/pro-layout/pro-layout.vue.d.ts +3 -1
  42. package/es/pro-layout/pro-layout.vue.js +92 -89
  43. package/es/pro-loader/index.d.ts +3 -3
  44. package/es/pro-loader/index.vue.d.ts +1 -1
  45. package/es/pro-login/enum.d.ts +6 -0
  46. package/es/pro-login/enum.js +4 -0
  47. package/es/pro-login/form-mobile.vue.d.ts +415 -0
  48. package/es/pro-login/form-mobile.vue.js +148 -0
  49. package/es/pro-login/form-mobile.vue2.js +4 -0
  50. package/es/pro-login/form-password.vue.d.ts +393 -0
  51. package/es/pro-login/form-password.vue.js +101 -0
  52. package/es/pro-login/form-password.vue2.js +4 -0
  53. package/es/pro-login/index.d.ts +9 -0
  54. package/es/pro-login/index.js +12 -0
  55. package/es/pro-login/index.vue.d.ts +3665 -0
  56. package/es/pro-login/index.vue.js +107 -0
  57. package/es/pro-login/index.vue3.js +5 -0
  58. package/es/pro-login/interface.d.ts +72 -0
  59. package/es/pro-login/regexp.d.ts +17 -0
  60. package/es/pro-login/regexp.js +28 -0
  61. package/es/pro-page-container/constant.d.ts +2 -0
  62. package/es/pro-page-container/constant.js +9 -0
  63. package/es/pro-page-container/index.d.ts +6 -33
  64. package/es/pro-page-container/interface.d.ts +12 -0
  65. package/es/pro-page-container/pro-page-container.vue.d.ts +4 -19
  66. package/es/pro-page-container/pro-page-container.vue.js +51 -38
  67. package/es/pro-page-header/constant.d.ts +2 -0
  68. package/es/pro-page-header/constant.js +13 -0
  69. package/es/pro-page-header/index.d.ts +3 -153
  70. package/es/pro-page-header/interface.d.ts +21 -0
  71. package/es/pro-page-header/pro-page-header.vue.d.ts +2 -105
  72. package/es/pro-page-header/pro-page-header.vue.js +140 -126
  73. package/es/pro-reuse-tabs/index.d.ts +3 -3
  74. package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +1 -1
  75. package/es/pro-table/index.d.ts +9 -9
  76. package/es/pro-table/index.vue.d.ts +3 -3
  77. package/es/pro-textarea/index.d.ts +4 -4
  78. package/es/pro-textarea/index.vue.d.ts +1 -1
  79. package/es/pro-textarea/index.vue.js +2 -2
  80. package/es/pro-textarea/{inerface.d.ts → interface.d.ts} +19 -18
  81. package/es/style.css +1 -1
  82. package/package.json +2 -1
  83. package/es/pro-page-container/inerface.d.ts +0 -12
  84. /package/es/pro-calendar/{inerface.d.ts → interface.d.ts} +0 -0
  85. /package/es/pro-date-range-picker/{inerface.d.ts → interface.d.ts} +0 -0
  86. /package/es/pro-dates-picker/{inerface.d.ts → interface.d.ts} +0 -0
  87. /package/es/pro-footer-bar/{inerface.d.ts → interface.d.ts} +0 -0
@@ -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 {};
@@ -1,10 +1,12 @@
1
- import { ProFooterBarProps } from './pro-footer-bar/inerface';
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/inerface';
5
- import { ProCalendarProps } from './pro-calendar';
6
- import { ProDatesPickerProps } from './pro-dates-picker/inerface';
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 { ProPageHeader as e } from "./pro-page-header/index.js";
2
- import { ProKeepAliveRouterView as m } from "./pro-keep-alive-router-view/index.js";
3
- import { ProLayout as t } from "./pro-layout/index.js";
4
- import { ProMenu as i } from "./pro-menu/index.js";
5
- import { ProPageContainer as s } from "./pro-page-container/index.js";
6
- import { ProReuseTabs as f } from "./pro-reuse-tabs/index.js";
7
- import { ProImageUpload as u } from "./pro-image-upload/index.js";
8
- import { ProDatesPicker as P } from "./pro-dates-picker/index.js";
9
- import { ProDateRangePicker as a } from "./pro-date-range-picker/index.js";
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 n } from "./pro-textarea/index.js";
12
- import { ProFooterBar as d } from "./pro-footer-bar/index.js";
13
- import { ProFormGroup as g } from "./pro-form-group/index.js";
14
- import x from "./pro-calendar/index.js";
15
- import { ProLoader as c } from "./pro-loader/index.js";
16
- import { globalProps as b } from "./global-props.js";
17
- import { splitStringWithCommaAndSpace as E } from "./utils.js";
18
- import { EImageUploadInnerBeforeUploadStep as H } from "./pro-image-upload/types.js";
19
- import { defaultImageUploadOptions as M } from "./pro-image-upload/constant.js";
20
- const v = {
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(b, r || {}), o.use(e), o.use(m), o.use(t), o.use(d), o.use(i), o.use(s), o.use(f), o.use(u), o.use(P), o.use(a), o.use(n), o.use(l), o.use(g), o.use(x), o.use(c);
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
- H as EImageUploadInnerBeforeUploadStep,
27
- x as ProCalendar,
28
- a as ProDateRangePicker,
29
- P as ProDatesPicker,
30
- d as ProFooterBar,
31
- g as ProFormGroup,
32
- u as ProImageUpload,
33
- m as ProKeepAliveRouterView,
34
- t as ProLayout,
35
- c as ProLoader,
36
- i as ProMenu,
37
- s as ProPageContainer,
38
- e as ProPageHeader,
39
- f as ProReuseTabs,
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
- n as ProTextarea,
42
- v as default,
43
- M as defaultImageUploadOptions,
44
- E as splitStringWithCommaAndSpace
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/inerface';
2
- export * from './pro-date-range-picker/inerface';
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 './inerface';
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('./inerface').IHeaderObjProps;
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,4 +1,4 @@
1
- import { IProCalendarHeader } from './inerface';
1
+ import { IProCalendarHeader } from './interface.ts';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
@@ -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 './inerface';
4
+ import { ProCalendarProps } from './interface.ts';
5
5
  declare const ProCalendar: {
6
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./inerface').IProCalendarProps> & Readonly<{
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('./inerface').IHeaderObjProps;
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('./inerface').IProCalendarProps> & Readonly<{
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('./inerface').IHeaderObjProps;
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('./inerface').IProCalendarProps> & Readonly<{
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('./inerface').IHeaderObjProps;
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,4 +1,4 @@
1
- import { IProCalendarMonth } from './inerface';
1
+ import { IProCalendarMonth } from './interface.ts';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
@@ -1,3 +1,3 @@
1
- import { IProCalendarWeek } from './inerface';
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 './inerface';
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('./inerface').IProDateRangePickerProps> & Readonly<{
4
- "onUpdate:modelValue"?: ((value: import('./inerface').IModelValue) => any) | undefined;
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('./inerface').IModelValue) => any;
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('./inerface').IProDateRangePickerProps> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: import('./inerface').IModelValue) => any) | undefined;
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('./inerface').IProDateRangePickerProps> & Readonly<{
38
- "onUpdate:modelValue"?: ((value: import('./inerface').IModelValue) => any) | undefined;
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('./inerface').IModelValue) => any;
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 './inerface';
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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9c48fc7f"]]);
4
+ const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-686f3de9"]]);
5
5
  export {
6
- e as default
6
+ _ as default
7
7
  };
@@ -1,21 +1,21 @@
1
- var M = Object.defineProperty, U = Object.defineProperties;
2
- var $ = Object.getOwnPropertyDescriptors;
1
+ var U = Object.defineProperty, $ = Object.defineProperties;
2
+ var j = Object.getOwnPropertyDescriptors;
3
3
  var E = Object.getOwnPropertySymbols;
4
- var j = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
- var _ = (s, l, e) => l in s ? M(s, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[l] = e, c = (s, l) => {
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
- j.call(l, e) && _(s, e, l[e]);
7
+ z.call(l, e) && R(i, e, l[e]);
8
8
  if (E)
9
9
  for (var e of E(l))
10
- z.call(l, e) && _(s, e, l[e]);
11
- return s;
12
- }, p = (s, l) => U(s, $(l));
13
- import { defineComponent as G, ref as n, computed as v, resolveComponent as T, createElementBlock as J, openBlock as K, normalizeClass as O, createVNode as u, mergeProps as f, withCtx as D, createTextVNode as Q, toDisplayString as W, nextTick as R } from "vue";
14
- import i from "dayjs";
15
- import { conclude as B } from "vue-global-config";
16
- import { globalProps as w } from "../global-props.js";
17
- import { range as h } from "./pro-date-range-picker.js";
18
- const X = "keyblade-pro-date-range-picker", de = /* @__PURE__ */ G({
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(s, { emit: l }) {
37
- const e = s, y = l, P = n(), b = n(), g = n(), F = n(), m = n(), k = v({
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, y("update:modelValue", p(c({}, e.modelValue), {
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
- }), S = v({
44
+ }), _ = D({
45
45
  get: () => e.modelValue[e.endField],
46
46
  set: (t) => {
47
- t ? b.value = "success" : b.value = void 0, y("update:modelValue", p(c({}, e.modelValue), {
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
- }), I = (t) => {
51
+ }), N = (t) => {
52
52
  const a = () => {
53
53
  var r;
54
54
  if (!e.modelValue[e.endField]) return !1;
55
- let o = i(e.modelValue[e.endField]);
56
- return e.intraday && !((r = e.datePickerProps) != null && r.showTime) && (o = o.add(1, "day")), i(t).isAfter(o);
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
- }, N = (t) => {
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), i(t).isBefore(i(e.modelValue[e.startField]))) : !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
- }, q = (t) => {
65
+ }, x = (t) => {
66
66
  if (!e.modelValue[e.startField] || !t || !e.intraday) {
67
- m.value = {};
67
+ c.value = {};
68
68
  return;
69
69
  }
70
- const a = i(e.modelValue[e.startField]), o = i(t);
70
+ const a = s(e.modelValue[e.startField]), o = s(t);
71
71
  if (!a.isSame(o, "day")) {
72
- m.value = {};
72
+ c.value = {};
73
73
  return;
74
74
  }
75
- const d = a.hour(), r = a.minute(), H = a.second();
76
- m.value = {
77
- disabledHours: () => h(0, d),
78
- disabledMinutes: (V) => V === d ? h(0, r) : [],
79
- disabledSeconds: (V, L) => V === d && L === r ? h(0, H) : []
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
- }, x = () => {
81
+ }, A = () => {
82
82
  setTimeout(() => {
83
83
  const t = e.modelValue[e.endField], a = e.modelValue[e.startField];
84
- a && t && i(a).isAfter(i(t)) && (k.value = t), !t && a && R(() => {
84
+ a && t && s(a).isAfter(s(t)) && (v.value = t), !t && a && B(() => {
85
85
  var d;
86
- const o = (d = F.value) == null ? void 0 : d.$el.parentElement.querySelector("input");
86
+ const o = (d = S.value) == null ? void 0 : d.$el.parentElement.querySelector("input");
87
87
  o && o.click();
88
88
  });
89
89
  });
90
- }, A = () => {
90
+ }, H = () => {
91
91
  setTimeout(() => {
92
- e.modelValue[e.endField] && !e.modelValue[e.startField] && R(() => {
92
+ e.modelValue[e.endField] && !e.modelValue[e.startField] && B(() => {
93
93
  var a;
94
- const t = (a = g.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
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 = v(() => {
98
+ }, C = D(() => {
99
99
  var t, a;
100
- return p(c({}, B([e.datePickerProps, (t = w.dateRangePicker) == null ? void 0 : t.datePickerProps, {}])), {
101
- timePickerProps: B([e.timePickerProps, (a = w.dateRangePicker) == null ? void 0 : a.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 K(), J("div", {
107
- class: O(X)
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: D(() => [
116
+ default: h(() => [
115
117
  u(o, f({
116
118
  ref_key: "startDatePickerRef",
117
- ref: g,
118
- modelValue: k.value,
119
- "onUpdate:modelValue": a[0] || (a[0] = (r) => k.value = 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) => I(r),
123
- onChange: x
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: D(() => [
133
- Q(W(t.separator), 1)
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: D(() => [
146
+ default: h(() => [
144
147
  u(o, f({
145
148
  ref_key: "endDatePickerRef",
146
- ref: F,
147
- modelValue: S.value,
148
- "onUpdate:modelValue": a[1] || (a[1] = (r) => S.value = 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) => N(r),
152
- "disabled-time": () => m.value,
153
- onSelect: q,
154
- onChange: A
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
- de as default
168
+ re as default
165
169
  };