@blueking/date-picker 3.0.7 → 3.0.8

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 (39) hide show
  1. package/package.json +14 -15
  2. package/vue2/index.es.min.js +25721 -28432
  3. package/vue2/index.iife.min.js +31860 -36605
  4. package/vue2/index.umd.min.js +26347 -29017
  5. package/vue2/vue2.css +3 -7
  6. package/vue3/components/baseline-select.vue.d.ts +12 -0
  7. package/vue3/components/common-submit.vue.d.ts +14 -0
  8. package/{typings → vue3}/components/common-tab.vue.d.ts +2 -1
  9. package/{typings → vue3}/components/date-list.vue.d.ts +5 -7
  10. package/{typings → vue3}/components/date-panel.vue.d.ts +2 -1
  11. package/{typings → vue3}/components/date-picker.vue.d.ts +5 -5
  12. package/{typings → vue3}/components/date-title.vue.d.ts +2 -1
  13. package/{typings → vue3}/components/natural-picker.vue.d.ts +2 -1
  14. package/{typings → vue3}/components/panel-wrapper.vue.d.ts +5 -7
  15. package/{typings → vue3}/components/recent-picker.vue.d.ts +2 -1
  16. package/{typings → vue3}/components/timezone-picker.vue.d.ts +5 -6
  17. package/{typings → vue3}/date-picker.vue.d.ts +2 -1
  18. package/vue3/index.es.min.js +4706 -4530
  19. package/vue3/index.iife.min.js +26970 -29503
  20. package/vue3/index.umd.min.js +4850 -4591
  21. package/vue3/vue3.css +3 -1
  22. package/typings/components/baseline-select.vue.d.ts +0 -12
  23. package/typings/components/common-submit.vue.d.ts +0 -18
  24. package/vue2/config.json +0 -1
  25. package/vue3/config.json +0 -1
  26. /package/{typings → vue3}/hooks/use-keydown-enter.d.ts +0 -0
  27. /package/{typings → vue3}/hooks/use-validate.d.ts +0 -0
  28. /package/{typings → vue3}/lang/lang.d.ts +0 -0
  29. /package/{typings → vue3}/utils/constant.d.ts +0 -0
  30. /package/{typings → vue3}/utils/cookie.d.ts +0 -0
  31. /package/{typings → vue3}/utils/date.d.ts +0 -0
  32. /package/{typings → vue3}/utils/duration.d.ts +0 -0
  33. /package/{typings → vue3}/utils/index.d.ts +0 -0
  34. /package/{typings → vue3}/utils/provider.d.ts +0 -0
  35. /package/{typings → vue3}/utils/store.d.ts +0 -0
  36. /package/{typings → vue3}/utils/timezone.d.ts +0 -0
  37. /package/{typings → vue3}/utils/types.d.ts +0 -0
  38. /package/{typings → vue3}/vue2.d.ts +0 -0
  39. /package/{typings → vue3}/vue3.d.ts +0 -0
package/vue2/vue2.css CHANGED
@@ -1074,7 +1074,6 @@ optgroup {
1074
1074
  box-sizing: border-box;
1075
1075
  transition: all 0.3s;
1076
1076
  flex-direction: column;
1077
- position: relative;
1078
1077
  }
1079
1078
  .time-range-textarea ::placeholder {
1080
1079
  font-size: 12px;
@@ -1169,11 +1168,6 @@ optgroup {
1169
1168
  .time-range-textarea:hover:not(.is-disabled) .show-clear-only-hover {
1170
1169
  display: flex;
1171
1170
  }
1172
- .time-range-textarea--clear-icon {
1173
- position: absolute;
1174
- top: 5px;
1175
- right: 10px;
1176
- }
1177
1171
  .time-range-input {
1178
1172
  display: inline-flex;
1179
1173
  align-items: stretch;
@@ -3335,7 +3329,6 @@ input:-moz-autofill:active {
3335
3329
  color: #63656e;
3336
3330
  border: 1px solid #c4c6cc;
3337
3331
  border-radius: 2px;
3338
- /* stylelint-disable-next-line no-descending-specificity */
3339
3332
  }
3340
3333
  .__bk_date_picker__ div::-webkit-scrollbar,
3341
3334
  .__bk_date_picker__ ul::-webkit-scrollbar,
@@ -3402,6 +3395,9 @@ input:-moz-autofill:active {
3402
3395
  pointer-events: none;
3403
3396
  cursor: not-allowed;
3404
3397
  }
3398
+ .__bk_date_picker__ {
3399
+ /* stylelint-disable-next-line no-descending-specificity */
3400
+ }
3405
3401
  .__bk_date_picker__ .date-content {
3406
3402
  display: flex;
3407
3403
  align-items: center;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ "update:modelValue": (value: string) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
+ }>, {
9
+ modelValue: string;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * 是否禁用
4
+ */
5
+ disabled?: boolean;
6
+ disableTips?: string;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
+ submit: () => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onSubmit?: (() => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { DateMode, ICommonTabItem } from '../utils';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  /** modelValue 选中的tab */
5
5
  modelValue: {
6
6
  required: true;
@@ -29,4 +29,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
29
29
  "onUpdate:modelValue"?: ((args_0: DateMode) => any) | undefined;
30
30
  onConfirm?: (() => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
+ declare const _default: typeof __VLS_export;
32
33
  export default _default;
@@ -1,15 +1,13 @@
1
1
  import { DateRange, DateValue } from '../utils';
2
- declare const _default: import("vue").DefineComponent<{
2
+ type __VLS_Props = {
3
3
  dateList: DateRange[];
4
4
  defaultDate: DateRange;
5
5
  isRecent: boolean;
6
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
8
  change: (date: DateValue) => any;
8
- }, string, import("vue").PublicProps, Readonly<{
9
- dateList: DateRange[];
10
- defaultDate: DateRange;
11
- isRecent: boolean;
12
- }> & Readonly<{
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
10
  onChange?: ((date: DateValue) => any) | undefined;
14
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
15
13
  export default _default;
@@ -17,7 +17,7 @@ interface Props {
17
17
  showTitle?: boolean;
18
18
  title?: string;
19
19
  }
20
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
21
  "update:modelValue": (date: dayjs.Dayjs) => any;
22
22
  "update:isNow": (args_0: boolean) => any;
23
23
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
@@ -27,4 +27,5 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
27
27
  format: string;
28
28
  showTitle: boolean;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
30
31
  export default _default;
@@ -1,14 +1,14 @@
1
1
  import { type DateValue } from '../utils';
2
2
  import { DateRange } from '../utils/date';
3
- declare const _default: import("vue").DefineComponent<{
3
+ type __VLS_Props = {
4
4
  value: DateRange;
5
- }, {
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
6
7
  handleSubmit: () => void;
7
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
9
  change: (value: DateValue) => any;
9
- }, string, import("vue").PublicProps, Readonly<{
10
- value: DateRange;
11
- }> & Readonly<{
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
11
  onChange?: ((value: DateValue) => any) | undefined;
13
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
14
  export default _default;
@@ -1,6 +1,7 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
2
2
  confirm: () => any;
3
3
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
4
4
  onConfirm?: (() => any) | undefined;
5
5
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -4,11 +4,12 @@ interface IProps {
4
4
  /** 已选择自然日期 */
5
5
  value?: DateRange;
6
6
  }
7
- declare const _default: import("vue").DefineComponent<IProps, {
7
+ declare const __VLS_export: import("vue").DefineComponent<IProps, {
8
8
  handleSubmit: () => void;
9
9
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
10
  change: (value: NaturalDateValue) => any;
11
11
  }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
12
12
  onChange?: ((value: NaturalDateValue) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -1,19 +1,17 @@
1
1
  import { type DateValue } from '../utils';
2
2
  import { DateRange } from '../utils/date';
3
3
  import { type ITimezoneItem } from '../utils/timezone';
4
- declare const _default: import("vue").DefineComponent<{
4
+ type __VLS_Props = {
5
5
  defaultDate: DateRange;
6
6
  needTimezone?: boolean;
7
7
  timezone?: string;
8
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
10
  change: (value: DateValue) => any;
10
11
  "update:timezone": (value: string, timezoneInfo: ITimezoneItem) => any;
11
- }, string, import("vue").PublicProps, Readonly<{
12
- defaultDate: DateRange;
13
- needTimezone?: boolean;
14
- timezone?: string;
15
- }> & Readonly<{
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
13
  onChange?: ((value: DateValue) => any) | undefined;
17
14
  "onUpdate:timezone"?: ((value: string, timezoneInfo: ITimezoneItem) => any) | undefined;
18
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
19
17
  export default _default;
@@ -5,7 +5,7 @@ interface IProps {
5
5
  type: DateMode.FUTURE | DateMode.RECENT;
6
6
  value?: DateRange;
7
7
  }
8
- declare const _default: import("vue").DefineComponent<IProps, {
8
+ declare const __VLS_export: import("vue").DefineComponent<IProps, {
9
9
  handleSubmit: () => void;
10
10
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
11
  change: (value: FutureDateValue | RecentDateValue) => any;
@@ -14,4 +14,5 @@ declare const _default: import("vue").DefineComponent<IProps, {
14
14
  }>, {
15
15
  type: DateMode.FUTURE | DateMode.RECENT;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
17
18
  export default _default;
@@ -1,15 +1,14 @@
1
1
  import { type ITimeZoneGroup, type ITimezoneItem } from '../utils/timezone';
2
- declare const _default: import("vue").DefineComponent<{
2
+ type __VLS_Props = {
3
3
  timezoneOptions?: ITimeZoneGroup[] | ITimezoneItem[];
4
4
  value: string;
5
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
7
  "update:value": (value: string, info: ITimezoneItem) => any;
7
- }, string, import("vue").PublicProps, Readonly<{
8
- timezoneOptions?: ITimeZoneGroup[] | ITimezoneItem[];
9
- value: string;
10
- }> & Readonly<{
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  "onUpdate:value"?: ((value: string, info: ITimezoneItem) => any) | undefined;
12
10
  }>, {
13
11
  timezoneOptions: ITimeZoneGroup[] | ITimezoneItem[];
14
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
15
14
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import dayjs from 'dayjs';
2
2
  import { type DateValue, type IDatePickerProps } from './utils';
3
3
  import { type ITimezoneItem } from './utils/timezone';
4
- declare const _default: import("vue").DefineComponent<IDatePickerProps, {
4
+ declare const __VLS_export: import("vue").DefineComponent<IDatePickerProps, {
5
5
  handleHidePanel: () => void;
6
6
  handleShowPanel: () => void;
7
7
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
@@ -30,4 +30,5 @@ declare const _default: import("vue").DefineComponent<IDatePickerProps, {
30
30
  enableFormatClick: boolean;
31
31
  needTimezone: boolean;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: typeof __VLS_export;
33
34
  export default _default;