@sdata/web-vue 2.2.1 → 2.3.1
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/picker/input-range.vue.d.ts +2 -2
- package/es/_utils/date.d.ts +10 -9
- package/es/_utils/date.js +23 -7
- package/es/anchor/anchor.vue.d.ts +52 -2
- package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +75 -15
- package/es/anchor/index.d.ts +75 -0
- package/es/button/button.vue.d.ts +16 -3
- package/es/button/button.vue_vue_type_script_setup_true_lang.js +39 -9
- package/es/button/index.d.ts +19 -0
- package/es/button/interface.d.ts +1 -0
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +10 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/index.d.ts +15 -0
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/date-picker/hooks/use-cell-class-name.d.ts +1 -0
- package/es/date-picker/hooks/use-cell-class-name.js +3 -2
- package/es/date-picker/hooks/use-header-value.d.ts +2 -0
- package/es/date-picker/hooks/use-header-value.js +23 -19
- package/es/date-picker/hooks/use-picker-state.d.ts +2 -0
- package/es/date-picker/hooks/use-picker-state.js +3 -3
- package/es/date-picker/hooks/use-range-header-value.d.ts +2 -0
- package/es/date-picker/hooks/use-range-header-value.js +5 -1
- package/es/date-picker/hooks/use-range-picker-state.d.ts +2 -0
- package/es/date-picker/hooks/use-range-picker-state.js +3 -3
- package/es/date-picker/hooks/use-value-format.d.ts +5 -3
- package/es/date-picker/hooks/use-value-format.js +10 -8
- package/es/date-picker/index.d.ts +1361 -0
- package/es/date-picker/interface.d.ts +7 -0
- package/es/date-picker/panels/body.vue.d.ts +24 -6
- package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +13 -12
- package/es/date-picker/panels/date/index.vue.d.ts +26 -8
- package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +18 -9
- package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +13 -20
- package/es/date-picker/panels/month/index.vue.d.ts +13 -8
- package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/date-picker/panels/quarter/index.vue.d.ts +13 -8
- package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +6 -6
- package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +2 -6
- package/es/date-picker/panels/week/index.vue.d.ts +13 -1
- package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/date-picker/panels/year/index.vue.d.ts +13 -8
- package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +25 -15
- package/es/date-picker/picker-panel.vue.d.ts +56 -14
- package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +36 -19
- package/es/date-picker/picker.vue.d.ts +949 -1
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +91 -29
- package/es/date-picker/range-picker-panel.vue.d.ts +77 -15
- package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +52 -28
- package/es/date-picker/range-picker.vue.d.ts +1345 -1
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +114 -34
- package/es/image/preview-toolbar.vue.d.ts +2 -3
- package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +2 -3
- package/es/locale/interface.d.ts +2 -0
- package/es/locale/lang/ar-eg.js +46 -0
- package/es/locale/lang/de-de.js +46 -0
- package/es/locale/lang/es-es.js +46 -0
- package/es/locale/lang/fr-fr.js +46 -0
- package/es/locale/lang/id-id.js +46 -0
- package/es/locale/lang/it-it.js +46 -0
- package/es/locale/lang/km-kh.js +46 -0
- package/es/locale/lang/ko-kr.js +46 -0
- package/es/locale/lang/ms-my.js +46 -0
- package/es/locale/lang/pt-pt.js +46 -0
- package/es/locale/lang/th-th.js +46 -0
- package/es/locale/lang/vi-vn.js +46 -0
- package/es/mention/mention.js +2 -0
- package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/modal/index.d.ts +7 -5
- package/es/modal/index.js +47 -11
- package/es/modal/interface.d.ts +5 -0
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +2 -2
- package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +6 -21
- package/es/tree/node-switcher.vue.d.ts +0 -11
- package/es/tree/node-switcher.vue_vue_type_script_lang.js +1 -5
- package/es/trigger/trigger.js +2 -1
- package/es/verification-code/verification-code.js +17 -7
- package/json/vetur-attributes.json +53 -0
- package/json/vetur-tags.json +14 -0
- package/json/web-types.json +113 -1
- package/package.json +1 -1
- package/es/_components/render-function.d.ts +0 -14
- package/es/_components/render-function.js +0 -14
|
@@ -67,9 +67,13 @@ export interface BasePickerProps {
|
|
|
67
67
|
defaultPopupVisible: boolean;
|
|
68
68
|
triggerProps?: Record<string, unknown>;
|
|
69
69
|
unmountOnClose: boolean;
|
|
70
|
+
inputProps?: Record<string, any>;
|
|
70
71
|
valueFormat?: ValueFormat;
|
|
71
72
|
previewShortcut: boolean;
|
|
72
73
|
showConfirm?: boolean;
|
|
74
|
+
hideNotInViewDates?: boolean;
|
|
75
|
+
utcOffset?: number;
|
|
76
|
+
timezone?: string;
|
|
73
77
|
}
|
|
74
78
|
export type PickerProps = BasePickerProps & DatePickerProps & {
|
|
75
79
|
placeholder?: string;
|
|
@@ -95,6 +99,9 @@ export interface RangePickerProps extends BasePickerProps {
|
|
|
95
99
|
disabledTime?: RangeDisabledTime;
|
|
96
100
|
separator?: string;
|
|
97
101
|
exchangeTime: boolean;
|
|
102
|
+
inputProps?: Record<string, any>[];
|
|
103
|
+
fixedTime?: boolean;
|
|
104
|
+
clearRangeOnReselect?: boolean;
|
|
98
105
|
}
|
|
99
106
|
export interface Cell {
|
|
100
107
|
value: Dayjs;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import type { Cell, DisabledDate, IsSameTime, Mode } from '../interface';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare var __VLS_1: {
|
|
5
|
+
date: Date;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
cell?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
11
|
prefixCls: {
|
|
7
12
|
type: StringConstructor;
|
|
8
13
|
required: true;
|
|
@@ -24,11 +29,14 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
24
29
|
mode: {
|
|
25
30
|
type: PropType<Mode>;
|
|
26
31
|
};
|
|
32
|
+
hideNotInViewDates: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
};
|
|
27
35
|
rangeValues: {
|
|
28
36
|
type: PropType<Array<Dayjs | undefined>>;
|
|
29
37
|
};
|
|
30
|
-
|
|
31
|
-
type: PropType<
|
|
38
|
+
now: {
|
|
39
|
+
type: PropType<Dayjs>;
|
|
32
40
|
};
|
|
33
41
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
42
|
"cell-click": (_cellData: Cell) => any;
|
|
@@ -55,17 +63,27 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
55
63
|
mode: {
|
|
56
64
|
type: PropType<Mode>;
|
|
57
65
|
};
|
|
66
|
+
hideNotInViewDates: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
};
|
|
58
69
|
rangeValues: {
|
|
59
70
|
type: PropType<Array<Dayjs | undefined>>;
|
|
60
71
|
};
|
|
61
|
-
|
|
62
|
-
type: PropType<
|
|
72
|
+
now: {
|
|
73
|
+
type: PropType<Dayjs>;
|
|
63
74
|
};
|
|
64
75
|
}>> & Readonly<{
|
|
65
76
|
"onCell-click"?: ((_cellData: Cell) => any) | undefined;
|
|
66
77
|
"onCell-mouse-enter"?: ((_cellData: Cell) => any) | undefined;
|
|
67
78
|
}>, {
|
|
68
79
|
rows: Cell[][];
|
|
80
|
+
hideNotInViewDates: boolean;
|
|
69
81
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
82
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
70
83
|
declare const _default: typeof __VLS_export;
|
|
71
84
|
export default _default;
|
|
85
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
86
|
+
new (): {
|
|
87
|
+
$slots: S;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { getDateValue } from "../../_utils/date.js";
|
|
3
|
-
import render_function_default from "../../_components/render-function.js";
|
|
4
3
|
import { isDisabledDate } from "../utils/index.js";
|
|
5
4
|
import useCellClassName from "../hooks/use-cell-class-name.js";
|
|
6
|
-
import { Fragment, computed,
|
|
5
|
+
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, reactive, renderList, renderSlot, toDisplayString, toRefs, unref } from "vue";
|
|
7
6
|
//#region components/date-picker/panels/body.vue?vue&type=script&setup=true&lang.ts
|
|
8
7
|
var _hoisted_1 = [
|
|
9
8
|
"onMouseenter",
|
|
@@ -28,36 +27,39 @@ var body_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
28
27
|
required: true
|
|
29
28
|
},
|
|
30
29
|
mode: { type: String },
|
|
30
|
+
hideNotInViewDates: { type: Boolean },
|
|
31
31
|
rangeValues: { type: Array },
|
|
32
|
-
|
|
32
|
+
now: { type: Object }
|
|
33
33
|
},
|
|
34
34
|
emits: ["cell-click", "cell-mouse-enter"],
|
|
35
35
|
setup(__props, { emit: __emit }) {
|
|
36
36
|
const props = __props;
|
|
37
37
|
const emit = __emit;
|
|
38
|
-
const { prefixCls, value, disabledDate, isSameTime, mode, rangeValues } = toRefs(props);
|
|
38
|
+
const { prefixCls, value, disabledDate, isSameTime, mode, rangeValues, now } = toRefs(props);
|
|
39
39
|
const { getCellClassName } = useCellClassName(reactive({
|
|
40
40
|
prefixCls,
|
|
41
41
|
value,
|
|
42
42
|
isSameTime,
|
|
43
43
|
mode,
|
|
44
|
-
rangeValues
|
|
44
|
+
rangeValues,
|
|
45
|
+
now
|
|
45
46
|
}));
|
|
46
47
|
const isCellDisabled = (cellData) => isDisabledDate(cellData.value, disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate.value, mode === null || mode === void 0 ? void 0 : mode.value);
|
|
47
48
|
const isWeek = computed(() => (mode === null || mode === void 0 ? void 0 : mode.value) === "week");
|
|
49
|
+
const isHiddenNotInViewCell = (cellData) => props.hideNotInViewDates && (cellData.isPrev || cellData.isNext);
|
|
48
50
|
const getCellClassNameFn = (cellData) => {
|
|
49
51
|
return getCellClassName(cellData, isCellDisabled(cellData));
|
|
50
52
|
};
|
|
51
53
|
const onCellClick = (cellData) => {
|
|
52
|
-
if (isCellDisabled(cellData)) return;
|
|
54
|
+
if (isCellDisabled(cellData) || isHiddenNotInViewCell(cellData)) return;
|
|
53
55
|
emit("cell-click", cellData);
|
|
54
56
|
};
|
|
55
57
|
const onCellMouseEnter = (cellData) => {
|
|
56
|
-
if (isCellDisabled(cellData)) return;
|
|
58
|
+
if (isCellDisabled(cellData) || isHiddenNotInViewCell(cellData)) return;
|
|
57
59
|
emit("cell-mouse-enter", cellData);
|
|
58
60
|
};
|
|
59
61
|
const onCellMouseLeave = (cellData) => {
|
|
60
|
-
if (isCellDisabled(cellData)) return;
|
|
62
|
+
if (isCellDisabled(cellData) || isHiddenNotInViewCell(cellData)) return;
|
|
61
63
|
emit("cell-mouse-enter", cellData);
|
|
62
64
|
};
|
|
63
65
|
return (_ctx, _cache) => {
|
|
@@ -81,14 +83,13 @@ var body_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
|
|
|
81
83
|
onClick: () => {
|
|
82
84
|
onCellClick(cell);
|
|
83
85
|
}
|
|
84
|
-
}, [
|
|
86
|
+
}, [!isHiddenNotInViewCell(cell) ? renderSlot(_ctx.$slots, "cell", {
|
|
85
87
|
key: 0,
|
|
86
|
-
"render-func": __props.dateRender,
|
|
87
88
|
date: unref(getDateValue)(cell.value)
|
|
88
|
-
},
|
|
89
|
+
}, () => [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-date`) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-date-value`) }, toDisplayString(cell.label), 3)], 2)]) : (openBlock(), createElementBlock("div", {
|
|
89
90
|
key: 1,
|
|
90
91
|
class: normalizeClass(`${unref(prefixCls)}-date`)
|
|
91
|
-
}, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-date-value`) },
|
|
92
|
+
}, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-date-value`) }, null, 2)], 2))], 42, _hoisted_1))], 64);
|
|
92
93
|
}), 256))], 2);
|
|
93
94
|
}), 128))], 2);
|
|
94
95
|
};
|
|
@@ -2,9 +2,14 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import type { TimePickerProps } from '../../../time-picker/interface';
|
|
4
4
|
import type { DisabledDate, DisabledTime, HeaderIcons, HeaderOperations, IsSameTime, Mode, WeekStart } from '../../interface';
|
|
5
|
-
import { RenderFunc } from '../../../_components/render-function';
|
|
6
5
|
import { HeaderLabelClickFunc } from '../header.vue';
|
|
7
|
-
declare
|
|
6
|
+
declare var __VLS_21: {
|
|
7
|
+
date: Date;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
cell?: (props: typeof __VLS_21) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
13
|
isRange: {
|
|
9
14
|
type: BooleanConstructor;
|
|
10
15
|
};
|
|
@@ -58,12 +63,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
58
63
|
currentView: {
|
|
59
64
|
type: PropType<"date" | "time">;
|
|
60
65
|
};
|
|
61
|
-
dateRender: {
|
|
62
|
-
type: PropType<RenderFunc>;
|
|
63
|
-
};
|
|
64
66
|
disabled: {
|
|
65
67
|
type: BooleanConstructor;
|
|
66
68
|
};
|
|
69
|
+
hideNotInViewDates: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
};
|
|
72
|
+
now: {
|
|
73
|
+
type: PropType<Dayjs>;
|
|
74
|
+
};
|
|
67
75
|
onHeaderLabelClick: {
|
|
68
76
|
type: PropType<HeaderLabelClickFunc>;
|
|
69
77
|
};
|
|
@@ -127,12 +135,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
127
135
|
currentView: {
|
|
128
136
|
type: PropType<"date" | "time">;
|
|
129
137
|
};
|
|
130
|
-
dateRender: {
|
|
131
|
-
type: PropType<RenderFunc>;
|
|
132
|
-
};
|
|
133
138
|
disabled: {
|
|
134
139
|
type: BooleanConstructor;
|
|
135
140
|
};
|
|
141
|
+
hideNotInViewDates: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
};
|
|
144
|
+
now: {
|
|
145
|
+
type: PropType<Dayjs>;
|
|
146
|
+
};
|
|
136
147
|
onHeaderLabelClick: {
|
|
137
148
|
type: PropType<HeaderLabelClickFunc>;
|
|
138
149
|
};
|
|
@@ -147,9 +158,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
147
158
|
mode: Mode;
|
|
148
159
|
showTime: boolean;
|
|
149
160
|
isRange: boolean;
|
|
161
|
+
hideNotInViewDates: boolean;
|
|
150
162
|
headerOperations: HeaderOperations;
|
|
151
163
|
headerIcons: HeaderIcons;
|
|
152
164
|
dayStartOfWeek: WeekStart;
|
|
153
165
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
166
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
154
167
|
declare const _default: typeof __VLS_export;
|
|
155
168
|
export default _default;
|
|
169
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
170
|
+
new (): {
|
|
171
|
+
$slots: S;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
@@ -10,7 +10,7 @@ import { newArray } from "../../utils/index.js";
|
|
|
10
10
|
import body_default from "../body.js";
|
|
11
11
|
import header_default from "../header.js";
|
|
12
12
|
import week_list_default from "../week-list.js";
|
|
13
|
-
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, reactive, toDisplayString, toRefs, unref } from "vue";
|
|
13
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, reactive, renderSlot, toDisplayString, toRefs, unref, withCtx } from "vue";
|
|
14
14
|
//#region components/date-picker/panels/date/index.vue?vue&type=script&setup=true&lang.ts
|
|
15
15
|
var ROW_COUNT = 6;
|
|
16
16
|
var COL_COUNT = 7;
|
|
@@ -48,8 +48,9 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
48
48
|
showTime: { type: Boolean },
|
|
49
49
|
timePickerProps: { type: Object },
|
|
50
50
|
currentView: { type: String },
|
|
51
|
-
dateRender: { type: Function },
|
|
52
51
|
disabled: { type: Boolean },
|
|
52
|
+
hideNotInViewDates: { type: Boolean },
|
|
53
|
+
now: { type: Object },
|
|
53
54
|
onHeaderLabelClick: { type: Function }
|
|
54
55
|
},
|
|
55
56
|
emits: [
|
|
@@ -69,7 +70,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
69
70
|
}
|
|
70
71
|
const props = __props;
|
|
71
72
|
const emit = __emit;
|
|
72
|
-
const { isRange, headerValue, footerValue, dayStartOfWeek, isSameTime, mode, showTime, currentView, disabledTime, timePickerProps } = toRefs(props);
|
|
73
|
+
const { isRange, headerValue, footerValue, dayStartOfWeek, isSameTime, mode, showTime, currentView, disabledTime, timePickerProps, hideNotInViewDates, now } = toRefs(props);
|
|
73
74
|
const datePickerT = useDatePickerTransform();
|
|
74
75
|
const isWeek = computed(() => (mode === null || mode === void 0 ? void 0 : mode.value) === "week");
|
|
75
76
|
const prefixCls = computed(() => getPrefixCls(isWeek.value ? "panel-week" : "panel-date"));
|
|
@@ -78,11 +79,12 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
78
79
|
const showViewTabs = computed(() => showTime.value && isRange.value);
|
|
79
80
|
const showDateView = computed(() => !showTime.value || !showViewTabs.value || localCurrentView.value === "date");
|
|
80
81
|
const showTimeView = computed(() => showTime.value && (!showViewTabs.value || localCurrentView.value === "time"));
|
|
82
|
+
const panelNow = computed(() => (now === null || now === void 0 ? void 0 : now.value) || getNow());
|
|
81
83
|
const classNames = computed(() => [prefixCls.value, { [`${prefixCls.value}-with-view-tabs`]: showViewTabs.value }]);
|
|
82
84
|
const headerTitle = computed(() => headerValue.value.format("YYYY-MM"));
|
|
83
85
|
const disabledTimeProps = computed(() => {
|
|
84
86
|
var _disabledTime$value;
|
|
85
|
-
return showTime.value && (disabledTime === null || disabledTime === void 0 || (_disabledTime$value = disabledTime.value) === null || _disabledTime$value === void 0 ? void 0 : _disabledTime$value.call(disabledTime, getDateValue((footerValue === null || footerValue === void 0 ? void 0 : footerValue.value) ||
|
|
87
|
+
return showTime.value && (disabledTime === null || disabledTime === void 0 || (_disabledTime$value = disabledTime.value) === null || _disabledTime$value === void 0 ? void 0 : _disabledTime$value.call(disabledTime, getDateValue((footerValue === null || footerValue === void 0 ? void 0 : footerValue.value) || panelNow.value))) || {};
|
|
86
88
|
});
|
|
87
89
|
const mergedTimePanelProps = computed(() => {
|
|
88
90
|
var _timePickerProps$valu, _timePickerProps$valu2, _timePickerProps$valu3, _timePickerProps$valu4, _timePickerProps$valu5, _timePickerProps$valu6, _timePickerProps$valu7;
|
|
@@ -109,6 +111,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
109
111
|
const index = Math.max(dayStartOfWeek.value % 7, 0);
|
|
110
112
|
return [...list.slice(index), ...list.slice(0, index)];
|
|
111
113
|
});
|
|
114
|
+
const mergedWeekList = computed(() => isWeek.value ? [-1, ...weekList.value] : weekList.value);
|
|
112
115
|
const rows = computed(() => {
|
|
113
116
|
const startDate = methods.startOf(headerValue.value, "month");
|
|
114
117
|
const startDay = startDate.day();
|
|
@@ -117,7 +120,8 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
117
120
|
const flatData = newArray(CELL_COUNT);
|
|
118
121
|
for (let i = 0; i < flatData.length; i++) flatData[i] = _objectSpread2(_objectSpread2({}, getCellData(methods.add(startDate, i - startIndex, "day"))), {}, {
|
|
119
122
|
isPrev: i < startIndex,
|
|
120
|
-
isNext: i > startIndex + days - 1
|
|
123
|
+
isNext: i > startIndex + days - 1,
|
|
124
|
+
classNames: hideNotInViewDates.value && (i < startIndex || i > startIndex + days - 1) ? `${pickerPrefixCls}-cell-hidden` : void 0
|
|
121
125
|
});
|
|
122
126
|
return newArray(ROW_COUNT).map((_, index) => {
|
|
123
127
|
const row = flatData.slice(index * COL_COUNT, (index + 1) * COL_COUNT);
|
|
@@ -169,7 +173,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
169
173
|
]),
|
|
170
174
|
createVNode(week_list_default, {
|
|
171
175
|
"prefix-cls": unref(pickerPrefixCls),
|
|
172
|
-
"week-list":
|
|
176
|
+
"week-list": mergedWeekList.value
|
|
173
177
|
}, null, 8, ["prefix-cls", "week-list"]),
|
|
174
178
|
createVNode(body_default, {
|
|
175
179
|
mode: unref(mode),
|
|
@@ -177,20 +181,25 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
177
181
|
rows: rows.value,
|
|
178
182
|
value: unref(isRange) ? void 0 : __props.value,
|
|
179
183
|
"range-values": __props.rangeValues,
|
|
184
|
+
"hide-not-in-view-dates": unref(hideNotInViewDates),
|
|
180
185
|
"disabled-date": __props.disabledDate,
|
|
181
186
|
"is-same-time": mergedIsSameTime.value,
|
|
182
|
-
|
|
187
|
+
now: panelNow.value,
|
|
183
188
|
onCellClick,
|
|
184
189
|
onCellMouseEnter
|
|
185
|
-
},
|
|
190
|
+
}, {
|
|
191
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
|
|
192
|
+
_: 3
|
|
193
|
+
}, 8, [
|
|
186
194
|
"mode",
|
|
187
195
|
"prefix-cls",
|
|
188
196
|
"rows",
|
|
189
197
|
"value",
|
|
190
198
|
"range-values",
|
|
199
|
+
"hide-not-in-view-dates",
|
|
191
200
|
"disabled-date",
|
|
192
201
|
"is-same-time",
|
|
193
|
-
"
|
|
202
|
+
"now"
|
|
194
203
|
])
|
|
195
204
|
], 2)) : createCommentVNode("", true),
|
|
196
205
|
showTimeView.value ? (openBlock(), createElementBlock("div", {
|
|
@@ -2,10 +2,10 @@ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/hel
|
|
|
2
2
|
import { isFunction } from "../../_utils/is.js";
|
|
3
3
|
import IconRight from "../../icon/icon-right/index.js";
|
|
4
4
|
import IconLeft from "../../icon/icon-left/index.js";
|
|
5
|
-
import
|
|
5
|
+
import useDatePickerTransform from "../hooks/use-inject-datepicker-transform.js";
|
|
6
6
|
import IconDoubleLeft from "../../icon/icon-double-left/index.js";
|
|
7
7
|
import IconDoubleRight from "../../icon/icon-double-right/index.js";
|
|
8
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
8
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref } from "vue";
|
|
9
9
|
//#region components/date-picker/panels/header.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var _hoisted_1 = { key: 1 };
|
|
11
11
|
var header_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "PanelHeader" }), {}, {
|
|
@@ -34,6 +34,11 @@ var header_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
34
34
|
emits: ["label-click"],
|
|
35
35
|
setup(__props) {
|
|
36
36
|
const props = __props;
|
|
37
|
+
const datePickerT = useDatePickerTransform();
|
|
38
|
+
const getLocaleFormat = (key, defaultFormat) => {
|
|
39
|
+
const format = datePickerT(key);
|
|
40
|
+
return typeof format === "string" && format !== key ? format : defaultFormat;
|
|
41
|
+
};
|
|
37
42
|
const showPrev = computed(() => isFunction(props.onPrev));
|
|
38
43
|
const showSuperPrev = computed(() => isFunction(props.onSuperPrev));
|
|
39
44
|
const showNext = computed(() => isFunction(props.onNext));
|
|
@@ -43,25 +48,19 @@ var header_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
43
48
|
"quarter",
|
|
44
49
|
"month",
|
|
45
50
|
"week"
|
|
46
|
-
].includes(props.mode) && props.value ? props.value.format("YYYY") : "");
|
|
47
|
-
const month = computed(() => ["date", "week"].includes(props.mode) && props.value ? props.value.format("MM") : "");
|
|
51
|
+
].includes(props.mode) && props.value ? props.value.format(getLocaleFormat("datePicker.yearFormat", "YYYY")) : "");
|
|
52
|
+
const month = computed(() => ["date", "week"].includes(props.mode) && props.value ? props.value.format(getLocaleFormat("datePicker.monthFormat", "MM")) : "");
|
|
48
53
|
const getIconClassName = (show) => [`${props.prefixCls}-header-icon`, { [`${props.prefixCls}-header-icon-hidden`]: !show }];
|
|
49
54
|
return (_ctx, _cache) => {
|
|
50
55
|
return openBlock(), createElementBlock("div", { class: normalizeClass(`${__props.prefixCls}-header`) }, [
|
|
51
56
|
createElementVNode("div", {
|
|
52
57
|
class: normalizeClass(getIconClassName(showSuperPrev.value)),
|
|
53
58
|
onClick: _cache[0] || (_cache[0] = (...args) => __props.onSuperPrev && __props.onSuperPrev(...args))
|
|
54
|
-
}, [showSuperPrev.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.prevDouble ? (openBlock(), createBlock(unref(
|
|
55
|
-
key: 0,
|
|
56
|
-
"render-func": __props.icons && __props.icons.prevDouble
|
|
57
|
-
}, null, 8, ["render-func"])) : (openBlock(), createBlock(unref(IconDoubleLeft), { key: 1 }))], 64)) : createCommentVNode("", true)], 2),
|
|
59
|
+
}, [showSuperPrev.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.prevDouble ? (openBlock(), createBlock(resolveDynamicComponent(__props.icons.prevDouble), { key: 0 })) : (openBlock(), createBlock(unref(IconDoubleLeft), { key: 1 }))], 64)) : createCommentVNode("", true)], 2),
|
|
58
60
|
createElementVNode("div", {
|
|
59
61
|
class: normalizeClass(getIconClassName(showPrev.value)),
|
|
60
62
|
onClick: _cache[1] || (_cache[1] = (...args) => __props.onPrev && __props.onPrev(...args))
|
|
61
|
-
}, [showPrev.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.prev ? (openBlock(), createBlock(unref(
|
|
62
|
-
key: 0,
|
|
63
|
-
"render-func": __props.icons && __props.icons.prev
|
|
64
|
-
}, null, 8, ["render-func"])) : (openBlock(), createBlock(unref(IconLeft), { key: 1 }))], 64)) : createCommentVNode("", true)], 2),
|
|
63
|
+
}, [showPrev.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.prev ? (openBlock(), createBlock(resolveDynamicComponent(__props.icons.prev), { key: 0 })) : (openBlock(), createBlock(unref(IconLeft), { key: 1 }))], 64)) : createCommentVNode("", true)], 2),
|
|
65
64
|
createElementVNode("div", { class: normalizeClass(`${__props.prefixCls}-header-title`) }, [__props.onLabelClick && (year.value || month.value) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
66
65
|
year.value ? (openBlock(), createElementBlock("span", {
|
|
67
66
|
key: 0,
|
|
@@ -78,17 +77,11 @@ var header_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
78
77
|
createElementVNode("div", {
|
|
79
78
|
class: normalizeClass(getIconClassName(showNext.value)),
|
|
80
79
|
onClick: _cache[4] || (_cache[4] = (...args) => __props.onNext && __props.onNext(...args))
|
|
81
|
-
}, [showNext.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.next ? (openBlock(), createBlock(unref(
|
|
82
|
-
key: 0,
|
|
83
|
-
"render-func": __props.icons && __props.icons.next
|
|
84
|
-
}, null, 8, ["render-func"])) : (openBlock(), createBlock(unref(IconRight), { key: 1 }))], 64)) : createCommentVNode("", true)], 2),
|
|
80
|
+
}, [showNext.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.next ? (openBlock(), createBlock(resolveDynamicComponent(__props.icons.next), { key: 0 })) : (openBlock(), createBlock(unref(IconRight), { key: 1 }))], 64)) : createCommentVNode("", true)], 2),
|
|
85
81
|
createElementVNode("div", {
|
|
86
82
|
class: normalizeClass(getIconClassName(showSuperNext.value)),
|
|
87
83
|
onClick: _cache[5] || (_cache[5] = (...args) => __props.onSuperNext && __props.onSuperNext(...args))
|
|
88
|
-
}, [showSuperNext.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.nextDouble ? (openBlock(), createBlock(unref(
|
|
89
|
-
key: 0,
|
|
90
|
-
"render-func": __props.icons && __props.icons.nextDouble
|
|
91
|
-
}, null, 8, ["render-func"])) : (openBlock(), createBlock(unref(IconDoubleRight), { key: 1 }))], 64)) : createCommentVNode("", true)], 2)
|
|
84
|
+
}, [showSuperNext.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.icons && __props.icons.nextDouble ? (openBlock(), createBlock(resolveDynamicComponent(__props.icons.nextDouble), { key: 0 })) : (openBlock(), createBlock(unref(IconDoubleRight), { key: 1 }))], 64)) : createCommentVNode("", true)], 2)
|
|
92
85
|
], 2);
|
|
93
86
|
};
|
|
94
87
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import type { DisabledDate, HeaderIcons, HeaderOperations } from '../../interface';
|
|
4
|
-
import { RenderFunc } from '../../../_components/render-function';
|
|
5
4
|
import { HeaderLabelClickFunc } from '../header.vue';
|
|
6
|
-
declare
|
|
5
|
+
declare var __VLS_16: {
|
|
6
|
+
date: Date;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
cell?: (props: typeof __VLS_16) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
12
|
headerValue: {
|
|
8
13
|
type: PropType<Dayjs>;
|
|
9
14
|
required: true;
|
|
@@ -25,9 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
25
30
|
rangeValues: {
|
|
26
31
|
type: PropType<Array<Dayjs | undefined>>;
|
|
27
32
|
};
|
|
28
|
-
dateRender: {
|
|
29
|
-
type: PropType<RenderFunc>;
|
|
30
|
-
};
|
|
31
33
|
onHeaderLabelClick: {
|
|
32
34
|
type: PropType<HeaderLabelClickFunc>;
|
|
33
35
|
};
|
|
@@ -60,9 +62,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
60
62
|
rangeValues: {
|
|
61
63
|
type: PropType<Array<Dayjs | undefined>>;
|
|
62
64
|
};
|
|
63
|
-
dateRender: {
|
|
64
|
-
type: PropType<RenderFunc>;
|
|
65
|
-
};
|
|
66
65
|
onHeaderLabelClick: {
|
|
67
66
|
type: PropType<HeaderLabelClickFunc>;
|
|
68
67
|
};
|
|
@@ -78,5 +77,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
78
77
|
headerIcons: HeaderIcons;
|
|
79
78
|
abbreviation: boolean;
|
|
80
79
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
80
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
81
81
|
declare const _default: typeof __VLS_export;
|
|
82
82
|
export default _default;
|
|
83
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -5,7 +5,7 @@ import useDatePickerTransform from "../../hooks/use-inject-datepicker-transform.
|
|
|
5
5
|
import { newArray } from "../../utils/index.js";
|
|
6
6
|
import body_default from "../body.js";
|
|
7
7
|
import header_default from "../header.js";
|
|
8
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, toRefs, unref } from "vue";
|
|
8
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
9
9
|
//#region components/date-picker/panels/month/index.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var CELL_COUNT = 12;
|
|
11
11
|
var ROW_COUNT = 4;
|
|
@@ -28,7 +28,6 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
28
28
|
value: { type: Object },
|
|
29
29
|
disabledDate: { type: Function },
|
|
30
30
|
rangeValues: { type: Array },
|
|
31
|
-
dateRender: { type: Function },
|
|
32
31
|
onHeaderLabelClick: { type: Function },
|
|
33
32
|
abbreviation: {
|
|
34
33
|
type: Boolean,
|
|
@@ -94,16 +93,17 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
94
93
|
"range-values": __props.rangeValues,
|
|
95
94
|
"disabled-date": __props.disabledDate,
|
|
96
95
|
"is-same-time": isSameTime,
|
|
97
|
-
"date-render": __props.dateRender,
|
|
98
96
|
onCellClick,
|
|
99
97
|
onCellMouseEnter
|
|
100
|
-
},
|
|
98
|
+
}, {
|
|
99
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 8, [
|
|
101
102
|
"prefix-cls",
|
|
102
103
|
"rows",
|
|
103
104
|
"value",
|
|
104
105
|
"range-values",
|
|
105
|
-
"disabled-date"
|
|
106
|
-
"date-render"
|
|
106
|
+
"disabled-date"
|
|
107
107
|
])], 2)], 2);
|
|
108
108
|
};
|
|
109
109
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import type { DisabledDate, HeaderIcons, HeaderOperations } from '../../interface';
|
|
4
|
-
import { RenderFunc } from '../../../_components/render-function';
|
|
5
4
|
import { HeaderLabelClickFunc } from '../header.vue';
|
|
6
|
-
declare
|
|
5
|
+
declare var __VLS_16: {
|
|
6
|
+
date: Date;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
cell?: (props: typeof __VLS_16) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
12
|
headerValue: {
|
|
8
13
|
type: PropType<Dayjs>;
|
|
9
14
|
required: true;
|
|
@@ -25,9 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
25
30
|
rangeValues: {
|
|
26
31
|
type: PropType<Array<Dayjs | undefined>>;
|
|
27
32
|
};
|
|
28
|
-
dateRender: {
|
|
29
|
-
type: PropType<RenderFunc>;
|
|
30
|
-
};
|
|
31
33
|
onHeaderLabelClick: {
|
|
32
34
|
type: PropType<HeaderLabelClickFunc>;
|
|
33
35
|
};
|
|
@@ -56,9 +58,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
56
58
|
rangeValues: {
|
|
57
59
|
type: PropType<Array<Dayjs | undefined>>;
|
|
58
60
|
};
|
|
59
|
-
dateRender: {
|
|
60
|
-
type: PropType<RenderFunc>;
|
|
61
|
-
};
|
|
62
61
|
onHeaderLabelClick: {
|
|
63
62
|
type: PropType<HeaderLabelClickFunc>;
|
|
64
63
|
};
|
|
@@ -69,5 +68,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
69
68
|
headerOperations: HeaderOperations;
|
|
70
69
|
headerIcons: HeaderIcons;
|
|
71
70
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
72
72
|
declare const _default: typeof __VLS_export;
|
|
73
73
|
export default _default;
|
|
74
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
75
|
+
new (): {
|
|
76
|
+
$slots: S;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -4,7 +4,7 @@ import { dayjs } from "../../../_utils/date.js";
|
|
|
4
4
|
import { padStart } from "../../../_utils/pad.js";
|
|
5
5
|
import body_default from "../body.js";
|
|
6
6
|
import header_default from "../header.js";
|
|
7
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, toRefs, unref } from "vue";
|
|
7
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
8
8
|
//#region components/date-picker/panels/quarter/index.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "QuarterPanel" }), {}, {
|
|
10
10
|
__name: "index",
|
|
@@ -24,7 +24,6 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
24
24
|
value: { type: Object },
|
|
25
25
|
disabledDate: { type: Function },
|
|
26
26
|
rangeValues: { type: Array },
|
|
27
|
-
dateRender: { type: Function },
|
|
28
27
|
onHeaderLabelClick: { type: Function }
|
|
29
28
|
},
|
|
30
29
|
emits: ["select", "cell-mouse-enter"],
|
|
@@ -74,16 +73,17 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
74
73
|
"range-values": __props.rangeValues,
|
|
75
74
|
"disabled-date": __props.disabledDate,
|
|
76
75
|
"is-same-time": isSameTime,
|
|
77
|
-
"date-render": __props.dateRender,
|
|
78
76
|
onCellClick,
|
|
79
77
|
onCellMouseEnter
|
|
80
|
-
},
|
|
78
|
+
}, {
|
|
79
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
|
|
80
|
+
_: 3
|
|
81
|
+
}, 8, [
|
|
81
82
|
"prefix-cls",
|
|
82
83
|
"rows",
|
|
83
84
|
"value",
|
|
84
85
|
"range-values",
|
|
85
|
-
"disabled-date"
|
|
86
|
-
"date-render"
|
|
86
|
+
"disabled-date"
|
|
87
87
|
])], 2)], 2);
|
|
88
88
|
};
|
|
89
89
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isFunction } from "../../_utils/is.js";
|
|
3
3
|
import Button from "../../button/index.js";
|
|
4
|
-
import render_function_default from "../../_components/render-function.js";
|
|
5
4
|
import useDatePickerTransform from "../hooks/use-inject-datepicker-transform.js";
|
|
6
|
-
import { Fragment, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
5
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
|
|
7
6
|
//#region components/date-picker/panels/shortcuts.vue?vue&type=script&setup=true&lang.ts
|
|
8
7
|
var shortcuts_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "PanelShortcuts" }), {}, {
|
|
9
8
|
__name: "shortcuts",
|
|
@@ -55,10 +54,7 @@ var shortcuts_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
|
|
|
55
54
|
onMouseenter: () => onItemMouseEnter(item),
|
|
56
55
|
onMouseleave: () => onItemMouseLeave(item)
|
|
57
56
|
}, {
|
|
58
|
-
default: withCtx(() => [unref(isFunction)(item.label) ? (openBlock(), createBlock(
|
|
59
|
-
key: 0,
|
|
60
|
-
"render-func": item.label
|
|
61
|
-
}, null, 8, ["render-func"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(item.label), 1)], 64))]),
|
|
57
|
+
default: withCtx(() => [unref(isFunction)(item.label) ? (openBlock(), createBlock(resolveDynamicComponent(item.label), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(item.label), 1)], 64))]),
|
|
62
58
|
_: 2
|
|
63
59
|
}, 1032, [
|
|
64
60
|
"onClick",
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import { HeaderIcons, HeaderOperations, WeekStart } from '../../interface';
|
|
4
|
-
declare
|
|
4
|
+
declare var __VLS_12: {
|
|
5
|
+
date: Date;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
cell?: (props: typeof __VLS_12) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
11
|
dayStartOfWeek: {
|
|
6
12
|
type: PropType<WeekStart>;
|
|
7
13
|
default: number;
|
|
@@ -46,5 +52,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
46
52
|
headerIcons: HeaderIcons;
|
|
47
53
|
dayStartOfWeek: WeekStart;
|
|
48
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
49
56
|
declare const _default: typeof __VLS_export;
|
|
50
57
|
export default _default;
|
|
58
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
59
|
+
new (): {
|
|
60
|
+
$slots: S;
|
|
61
|
+
};
|
|
62
|
+
};
|