@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
|
@@ -9,7 +9,7 @@ import useState from "../_hooks/use-state.js";
|
|
|
9
9
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
10
10
|
import Trigger from "../trigger/index.js";
|
|
11
11
|
import { useI18n } from "../locale/index.js";
|
|
12
|
-
import {
|
|
12
|
+
import { getDateValue, getDayjsValue, getNow, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
13
13
|
import input_default from "../_components/picker/input.js";
|
|
14
14
|
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
15
15
|
import IconCalendar from "../icon/icon-calendar/index.js";
|
|
@@ -23,13 +23,16 @@ import useTimePickerValue from "./hooks/use-time-picker-value.js";
|
|
|
23
23
|
import { useReturnValue } from "./hooks/use-value-format.js";
|
|
24
24
|
import { mergeValueWithTime } from "./utils/index.js";
|
|
25
25
|
import picker_panel_default from "./picker-panel.js";
|
|
26
|
-
import { computed, createBlock, createSlots, createVNode, defineComponent, mergeProps, normalizeProps, onUnmounted, openBlock, reactive, ref, renderSlot, toRefs, unref, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
26
|
+
import { computed, createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onUnmounted, openBlock, reactive, ref, renderSlot, resolveDynamicComponent, toRefs, unref, useSlots, watch, watchEffect, withCtx } from "vue";
|
|
27
27
|
//#region components/date-picker/picker.vue?vue&type=script&setup=true&lang.ts
|
|
28
28
|
/**
|
|
29
29
|
* @displayName Common
|
|
30
30
|
* @noBrackets
|
|
31
31
|
*/
|
|
32
|
-
var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
32
|
+
var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, {
|
|
33
|
+
name: "Picker",
|
|
34
|
+
inheritAttrs: false
|
|
35
|
+
}), {}, {
|
|
33
36
|
__name: "picker",
|
|
34
37
|
props: {
|
|
35
38
|
/**
|
|
@@ -118,11 +121,21 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
118
121
|
*/
|
|
119
122
|
unmountOnClose: { type: Boolean },
|
|
120
123
|
/**
|
|
124
|
+
* @zh 面板隐藏不在当前时间范围的灰色日期
|
|
125
|
+
* @en Hide gray dates that are not in the current time range in the panel
|
|
126
|
+
*/
|
|
127
|
+
hideNotInViewDates: { type: Boolean },
|
|
128
|
+
/**
|
|
121
129
|
* @zh 提示文案
|
|
122
130
|
* @en Prompt copy
|
|
123
131
|
*/
|
|
124
132
|
placeholder: { type: String },
|
|
125
133
|
/**
|
|
134
|
+
* @zh 原生输入框属性
|
|
135
|
+
* @en Native input attributes
|
|
136
|
+
*/
|
|
137
|
+
inputProps: { type: Object },
|
|
138
|
+
/**
|
|
126
139
|
* @zh 是否禁用
|
|
127
140
|
* @en Whether to disable
|
|
128
141
|
*/
|
|
@@ -173,6 +186,16 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
173
186
|
*/
|
|
174
187
|
valueFormat: { type: String },
|
|
175
188
|
/**
|
|
189
|
+
* @zh 设置时区偏移,如果需要 utc 时间则设置为 0。
|
|
190
|
+
* @en Set the timezone offset. Set to 0 for UTC time.
|
|
191
|
+
*/
|
|
192
|
+
utcOffset: { type: Number },
|
|
193
|
+
/**
|
|
194
|
+
* @zh 设置时区,如果设置了 `utcOffset`,则以 `utcOffset` 为准。
|
|
195
|
+
* @en Set timezone. If `utcOffset` is set, `utcOffset` takes precedence.
|
|
196
|
+
*/
|
|
197
|
+
timezone: { type: String },
|
|
198
|
+
/**
|
|
176
199
|
* @zh 是否要预览快捷选择的结果
|
|
177
200
|
* @en Whether to preview the result of the shortcut
|
|
178
201
|
* @version 2.28.0
|
|
@@ -242,6 +265,13 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
242
265
|
const props = __props;
|
|
243
266
|
const emit = __emit;
|
|
244
267
|
/**
|
|
268
|
+
* @zh 自定义渲染面板
|
|
269
|
+
* @en Customize panel rendering
|
|
270
|
+
* @slot panelRender
|
|
271
|
+
* @binding {Component} component
|
|
272
|
+
* @binding {object} props
|
|
273
|
+
*/
|
|
274
|
+
/**
|
|
245
275
|
* @zh 输入框前缀
|
|
246
276
|
* @en Input box prefix
|
|
247
277
|
* @slot prefix
|
|
@@ -284,7 +314,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
284
314
|
* @slot icon-next-double
|
|
285
315
|
*/
|
|
286
316
|
const slots = useSlots();
|
|
287
|
-
const { mode, modelValue, defaultValue, format, valueFormat, placeholder, popupVisible, defaultPopupVisible, disabled, showTime, timePickerProps, disabledDate, disabledTime, readonly, allowClear, locale, pickerValue, defaultPickerValue, dayStartOfWeek, shortcuts, shortcutsPosition, previewShortcut, showConfirmBtn, showNowBtn, abbreviation } = toRefs(props);
|
|
317
|
+
const { mode, modelValue, defaultValue, format, valueFormat, placeholder, popupVisible, defaultPopupVisible, disabled, showTime, timePickerProps, disabledDate, disabledTime, readonly, allowClear, locale, pickerValue, defaultPickerValue, dayStartOfWeek, shortcuts, shortcutsPosition, previewShortcut, showConfirmBtn, showNowBtn, abbreviation, utcOffset, timezone } = toRefs(props);
|
|
288
318
|
const { mergedValue: mergedDayStartOfWeek } = useConfigProviderProp(dayStartOfWeek, {
|
|
289
319
|
propNames: ["dayStartOfWeek", "day-start-of-week"],
|
|
290
320
|
getGlobalValue: (configProviderCtx) => {
|
|
@@ -361,7 +391,11 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
361
391
|
var _format$value;
|
|
362
392
|
return (_format$value = format.value) === null || _format$value === void 0 ? void 0 : _format$value.call(format, getDateValue(value));
|
|
363
393
|
} : computedFormat.value);
|
|
364
|
-
const getReturnValue = useReturnValue(reactive({
|
|
394
|
+
const getReturnValue = useReturnValue(reactive({
|
|
395
|
+
format: returnValueFormat,
|
|
396
|
+
utcOffset,
|
|
397
|
+
timezone
|
|
398
|
+
}));
|
|
365
399
|
const isDisabledDate = useIsDisabledDate(reactive({
|
|
366
400
|
mode,
|
|
367
401
|
disabledDate,
|
|
@@ -374,7 +408,9 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
374
408
|
const { value: selectedValue, setValue: setSelectedValue } = usePickerState(reactive({
|
|
375
409
|
modelValue,
|
|
376
410
|
defaultValue,
|
|
377
|
-
format: parseValueFormat
|
|
411
|
+
format: parseValueFormat,
|
|
412
|
+
utcOffset,
|
|
413
|
+
timezone
|
|
378
414
|
}));
|
|
379
415
|
const [processValue, setProcessValue] = useState();
|
|
380
416
|
const [previewValue, setPreviewValue] = useState();
|
|
@@ -401,10 +437,13 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
401
437
|
defaultValue: defaultPickerValue,
|
|
402
438
|
selectedValue: panelValue,
|
|
403
439
|
format: parseValueFormat,
|
|
440
|
+
utcOffset,
|
|
441
|
+
timezone,
|
|
404
442
|
onChange: (newVal) => {
|
|
405
443
|
const returnValue = getReturnValue(newVal);
|
|
406
|
-
const
|
|
407
|
-
|
|
444
|
+
const localValue = toLocal(newVal, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value);
|
|
445
|
+
const formattedValue = getFormattedValue(localValue, parseValueFormat.value);
|
|
446
|
+
emit("picker-value-change", returnValue, getDateValue(localValue), formattedValue);
|
|
408
447
|
emit("update:pickerValue", returnValue);
|
|
409
448
|
}
|
|
410
449
|
}));
|
|
@@ -425,9 +464,10 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
425
464
|
if (!newVisible) setInputValue(void 0);
|
|
426
465
|
});
|
|
427
466
|
function emitChange(value, emitOk) {
|
|
467
|
+
const localValue = value ? toLocal(value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0;
|
|
428
468
|
const returnValue = value ? getReturnValue(value) : void 0;
|
|
429
|
-
const formattedValue = getFormattedValue(
|
|
430
|
-
const dateValue = getDateValue(
|
|
469
|
+
const formattedValue = getFormattedValue(localValue, parseValueFormat.value);
|
|
470
|
+
const dateValue = getDateValue(localValue);
|
|
431
471
|
if (isValueChange(value, selectedValue.value)) {
|
|
432
472
|
var _eventHandlers$value, _eventHandlers$value$;
|
|
433
473
|
emit("update:modelValue", returnValue);
|
|
@@ -453,16 +493,14 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
453
493
|
headerMode.value = void 0;
|
|
454
494
|
if (emitSelect) {
|
|
455
495
|
const returnValue = value ? getReturnValue(value) : void 0;
|
|
456
|
-
const
|
|
457
|
-
|
|
496
|
+
const localValue = value ? toLocal(value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value) : void 0;
|
|
497
|
+
const formattedValue = getFormattedValue(localValue, parseValueFormat.value);
|
|
498
|
+
emit("select", returnValue, getDateValue(localValue), formattedValue);
|
|
458
499
|
}
|
|
459
500
|
}
|
|
460
|
-
function focusInput(index) {
|
|
461
|
-
refInput.value && refInput.value.focus && refInput.value.focus(index);
|
|
462
|
-
}
|
|
463
501
|
function getMergedOpValue(date, time) {
|
|
464
502
|
if (!isDateTime.value && !(timePickerProps === null || timePickerProps === void 0 ? void 0 : timePickerProps.value)) return date;
|
|
465
|
-
return mergeValueWithTime(getNow(), date, time);
|
|
503
|
+
return mergeValueWithTime(getNow(utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value), date, time);
|
|
466
504
|
}
|
|
467
505
|
function onPanelVisibleChange(visible) {
|
|
468
506
|
if (mergedDisabled.value) return;
|
|
@@ -482,7 +520,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
482
520
|
const targetValue = e.target.value;
|
|
483
521
|
setInputValue(targetValue);
|
|
484
522
|
if (!isValidInputValue(targetValue, computedFormat.value)) return;
|
|
485
|
-
const newValue =
|
|
523
|
+
const newValue = getDayjsValue(targetValue, computedFormat.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value);
|
|
486
524
|
if (isDisabledDate(newValue)) return;
|
|
487
525
|
if (needConfirm.value) select(newValue);
|
|
488
526
|
else confirm(newValue, true);
|
|
@@ -503,9 +541,6 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
503
541
|
function onPanelConfirm() {
|
|
504
542
|
confirm(panelValue.value, false, true);
|
|
505
543
|
}
|
|
506
|
-
function onPanelClick() {
|
|
507
|
-
if (props.disabledInput) focusInput();
|
|
508
|
-
}
|
|
509
544
|
let clearPreviewTimer;
|
|
510
545
|
onUnmounted(() => {
|
|
511
546
|
clearTimeout(clearPreviewTimer);
|
|
@@ -545,16 +580,20 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
545
580
|
const computedTimePickerProps = computed(() => _objectSpread2(_objectSpread2({ format: computedFormat.value }, omit((timePickerProps === null || timePickerProps === void 0 ? void 0 : timePickerProps.value) || {}, ["defaultValue"])), {}, { visible: panelVisible.value }));
|
|
546
581
|
const panelProps = computed(() => _objectSpread2(_objectSpread2({}, pick(props, [
|
|
547
582
|
"mode",
|
|
583
|
+
"shortcuts",
|
|
584
|
+
"shortcutsPosition",
|
|
585
|
+
"dayStartOfWeek",
|
|
548
586
|
"disabledDate",
|
|
549
587
|
"disabledTime",
|
|
550
588
|
"showTime",
|
|
551
|
-
"hideTrigger"
|
|
589
|
+
"hideTrigger",
|
|
590
|
+
"abbreviation",
|
|
591
|
+
"hideNotInViewDates",
|
|
592
|
+
"utcOffset",
|
|
593
|
+
"timezone"
|
|
552
594
|
])), {}, {
|
|
553
|
-
shortcuts: mergedShortcuts.value,
|
|
554
|
-
shortcutsPosition: mergedShortcutsPosition.value,
|
|
555
|
-
dayStartOfWeek: mergedDayStartOfWeek.value,
|
|
556
|
-
abbreviation: mergedAbbreviation.value,
|
|
557
595
|
showNowBtn: mergedShowNowBtn.value && mode.value === "date",
|
|
596
|
+
now: getNow(utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value),
|
|
558
597
|
prefixCls,
|
|
559
598
|
format: parseValueFormat.value,
|
|
560
599
|
value: panelValue.value,
|
|
@@ -562,8 +601,6 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
562
601
|
showConfirmBtn: needConfirm.value,
|
|
563
602
|
confirmBtnDisabled: confirmBtnDisabled.value,
|
|
564
603
|
timePickerProps: computedTimePickerProps.value,
|
|
565
|
-
extra: slots.extra,
|
|
566
|
-
dateRender: slots.cell,
|
|
567
604
|
headerValue: headerValue.value,
|
|
568
605
|
headerIcons: {
|
|
569
606
|
prev: slots["icon-prev"],
|
|
@@ -602,7 +639,18 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
602
639
|
"popup-container": __props.popupContainer,
|
|
603
640
|
onPopupVisibleChange: onPanelVisibleChange
|
|
604
641
|
}), {
|
|
605
|
-
content: withCtx(() => [
|
|
642
|
+
content: withCtx(() => [renderSlot(_ctx.$slots, "panelRender", {
|
|
643
|
+
component: picker_panel_default,
|
|
644
|
+
props: panelProps.value
|
|
645
|
+
}, () => [(openBlock(), createBlock(resolveDynamicComponent(picker_panel_default), normalizeProps(guardReactiveProps(panelProps.value)), createSlots({ _: 2 }, [_ctx.$slots.extra ? {
|
|
646
|
+
name: "extra",
|
|
647
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "extra")]),
|
|
648
|
+
key: "0"
|
|
649
|
+
} : void 0, _ctx.$slots.cell ? {
|
|
650
|
+
name: "cell",
|
|
651
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
|
|
652
|
+
key: "1"
|
|
653
|
+
} : void 0]), 1040))])]),
|
|
606
654
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(input_default, mergeProps(_ctx.$attrs, {
|
|
607
655
|
ref_key: "refInput",
|
|
608
656
|
ref: refInput,
|
|
@@ -614,6 +662,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
614
662
|
readonly: !inputEditable.value || __props.disabledInput,
|
|
615
663
|
"allow-clear": unref(mergedAllowClear) && !unref(readonly),
|
|
616
664
|
placeholder: computedPlaceholder.value,
|
|
665
|
+
"input-props": __props.inputProps,
|
|
617
666
|
"input-value": unref(inputValue),
|
|
618
667
|
value: needConfirm.value ? panelValue.value : unref(selectedValue),
|
|
619
668
|
format: inputFormat.value,
|
|
@@ -637,6 +686,7 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
637
686
|
"readonly",
|
|
638
687
|
"allow-clear",
|
|
639
688
|
"placeholder",
|
|
689
|
+
"input-props",
|
|
640
690
|
"input-value",
|
|
641
691
|
"value",
|
|
642
692
|
"format"
|
|
@@ -648,7 +698,19 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
648
698
|
"popup-visible",
|
|
649
699
|
"unmount-on-close",
|
|
650
700
|
"popup-container"
|
|
651
|
-
])) : (
|
|
701
|
+
])) : renderSlot(_ctx.$slots, "panelRender", {
|
|
702
|
+
key: 1,
|
|
703
|
+
component: picker_panel_default,
|
|
704
|
+
props: panelProps.value
|
|
705
|
+
}, () => [(openBlock(), createBlock(resolveDynamicComponent(picker_panel_default), normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, panelProps.value), _ctx.$attrs))), createSlots({ _: 2 }, [_ctx.$slots.extra ? {
|
|
706
|
+
name: "extra",
|
|
707
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "extra")]),
|
|
708
|
+
key: "0"
|
|
709
|
+
} : void 0, _ctx.$slots.cell ? {
|
|
710
|
+
name: "cell",
|
|
711
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(scope)))]),
|
|
712
|
+
key: "1"
|
|
713
|
+
} : void 0]), 1040))]);
|
|
652
714
|
};
|
|
653
715
|
}
|
|
654
716
|
}));
|
|
@@ -1,10 +1,59 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import type { ShortcutType, RangePickerProps, Mode, RangeDisabledTime, RangeDisabledDate, WeekStart, StartHeaderProps } from './interface';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare var __VLS_33: {
|
|
5
|
+
type: string;
|
|
6
|
+
date: Date;
|
|
7
|
+
}, __VLS_42: {
|
|
8
|
+
type: string;
|
|
9
|
+
date: Date;
|
|
10
|
+
}, __VLS_51: {
|
|
11
|
+
type: string;
|
|
12
|
+
date: Date;
|
|
13
|
+
}, __VLS_60: {
|
|
14
|
+
type: string;
|
|
15
|
+
date: Date;
|
|
16
|
+
}, __VLS_69: {
|
|
17
|
+
type: string;
|
|
18
|
+
date: Date;
|
|
19
|
+
}, __VLS_78: {
|
|
20
|
+
type: string;
|
|
21
|
+
date: Date;
|
|
22
|
+
}, __VLS_87: {
|
|
23
|
+
type: string;
|
|
24
|
+
date: Date;
|
|
25
|
+
}, __VLS_96: {
|
|
26
|
+
type: string;
|
|
27
|
+
date: Date;
|
|
28
|
+
}, __VLS_107: {
|
|
29
|
+
type: string;
|
|
30
|
+
date: Date;
|
|
31
|
+
}, __VLS_118: {
|
|
32
|
+
type: string;
|
|
33
|
+
date: Date;
|
|
34
|
+
}, __VLS_129: {};
|
|
6
35
|
type __VLS_Slots = {} & {
|
|
7
|
-
|
|
36
|
+
cell?: (props: typeof __VLS_33) => any;
|
|
37
|
+
} & {
|
|
38
|
+
cell?: (props: typeof __VLS_42) => any;
|
|
39
|
+
} & {
|
|
40
|
+
cell?: (props: typeof __VLS_51) => any;
|
|
41
|
+
} & {
|
|
42
|
+
cell?: (props: typeof __VLS_60) => any;
|
|
43
|
+
} & {
|
|
44
|
+
cell?: (props: typeof __VLS_69) => any;
|
|
45
|
+
} & {
|
|
46
|
+
cell?: (props: typeof __VLS_78) => any;
|
|
47
|
+
} & {
|
|
48
|
+
cell?: (props: typeof __VLS_87) => any;
|
|
49
|
+
} & {
|
|
50
|
+
cell?: (props: typeof __VLS_96) => any;
|
|
51
|
+
} & {
|
|
52
|
+
cell?: (props: typeof __VLS_107) => any;
|
|
53
|
+
} & {
|
|
54
|
+
cell?: (props: typeof __VLS_118) => any;
|
|
55
|
+
} & {
|
|
56
|
+
extra?: (props: typeof __VLS_129) => any;
|
|
8
57
|
};
|
|
9
58
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
59
|
mode: {
|
|
@@ -56,12 +105,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
56
105
|
timePickerProps: {
|
|
57
106
|
type: PropType<RangePickerProps["timePickerProps"]>;
|
|
58
107
|
};
|
|
59
|
-
extra: {
|
|
60
|
-
type: PropType<RenderFunc>;
|
|
61
|
-
};
|
|
62
|
-
dateRender: {
|
|
63
|
-
type: PropType<RenderFunc>;
|
|
64
|
-
};
|
|
65
108
|
hideTrigger: {
|
|
66
109
|
type: BooleanConstructor;
|
|
67
110
|
};
|
|
@@ -92,6 +135,18 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
92
135
|
abbreviation: {
|
|
93
136
|
type: BooleanConstructor;
|
|
94
137
|
};
|
|
138
|
+
hideNotInViewDates: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
};
|
|
141
|
+
utcOffset: {
|
|
142
|
+
type: NumberConstructor;
|
|
143
|
+
};
|
|
144
|
+
timezone: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
};
|
|
147
|
+
now: {
|
|
148
|
+
type: PropType<Dayjs>;
|
|
149
|
+
};
|
|
95
150
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
96
151
|
confirm: () => any;
|
|
97
152
|
"cell-click": (_date: Dayjs) => any;
|
|
@@ -154,12 +209,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
154
209
|
timePickerProps: {
|
|
155
210
|
type: PropType<RangePickerProps["timePickerProps"]>;
|
|
156
211
|
};
|
|
157
|
-
extra: {
|
|
158
|
-
type: PropType<RenderFunc>;
|
|
159
|
-
};
|
|
160
|
-
dateRender: {
|
|
161
|
-
type: PropType<RenderFunc>;
|
|
162
|
-
};
|
|
163
212
|
hideTrigger: {
|
|
164
213
|
type: BooleanConstructor;
|
|
165
214
|
};
|
|
@@ -190,6 +239,18 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
190
239
|
abbreviation: {
|
|
191
240
|
type: BooleanConstructor;
|
|
192
241
|
};
|
|
242
|
+
hideNotInViewDates: {
|
|
243
|
+
type: BooleanConstructor;
|
|
244
|
+
};
|
|
245
|
+
utcOffset: {
|
|
246
|
+
type: NumberConstructor;
|
|
247
|
+
};
|
|
248
|
+
timezone: {
|
|
249
|
+
type: StringConstructor;
|
|
250
|
+
};
|
|
251
|
+
now: {
|
|
252
|
+
type: PropType<Dayjs>;
|
|
253
|
+
};
|
|
193
254
|
}>> & Readonly<{
|
|
194
255
|
onConfirm?: (() => any) | undefined;
|
|
195
256
|
"onCell-click"?: ((_date: Dayjs) => any) | undefined;
|
|
@@ -208,6 +269,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
208
269
|
disabled: boolean[];
|
|
209
270
|
mode: Mode;
|
|
210
271
|
showTime: boolean;
|
|
272
|
+
hideNotInViewDates: boolean;
|
|
211
273
|
dayStartOfWeek: WeekStart;
|
|
212
274
|
showConfirmBtn: boolean;
|
|
213
275
|
confirmBtnDisabled: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
2
|
import { isArray, isFunction } from "../_utils/is.js";
|
|
3
3
|
import { getDayjsValue } from "../_utils/date.js";
|
|
4
|
-
import render_function_default from "../_components/render-function.js";
|
|
5
4
|
import { normalizeRangeValue } from "./utils/index.js";
|
|
6
5
|
import date_default from "./panels/date/index.js";
|
|
7
6
|
import footer_default from "./panels/footer.js";
|
|
@@ -50,8 +49,6 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
50
49
|
disabledDate: { type: Function },
|
|
51
50
|
disabledTime: { type: Function },
|
|
52
51
|
timePickerProps: { type: Object },
|
|
53
|
-
extra: { type: Function },
|
|
54
|
-
dateRender: { type: Function },
|
|
55
52
|
hideTrigger: { type: Boolean },
|
|
56
53
|
startHeaderProps: {
|
|
57
54
|
type: Object,
|
|
@@ -69,7 +66,11 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
69
66
|
visible: { type: Boolean },
|
|
70
67
|
startHeaderMode: { type: String },
|
|
71
68
|
endHeaderMode: { type: String },
|
|
72
|
-
abbreviation: { type: Boolean }
|
|
69
|
+
abbreviation: { type: Boolean },
|
|
70
|
+
hideNotInViewDates: { type: Boolean },
|
|
71
|
+
utcOffset: { type: Number },
|
|
72
|
+
timezone: { type: String },
|
|
73
|
+
now: { type: Object }
|
|
73
74
|
},
|
|
74
75
|
emits: [
|
|
75
76
|
"cell-click",
|
|
@@ -87,7 +88,7 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
87
88
|
setup(__props, { emit: __emit }) {
|
|
88
89
|
const props = __props;
|
|
89
90
|
const emit = __emit;
|
|
90
|
-
const { prefixCls, shortcuts, shortcutsPosition, format, hideTrigger, value, disabledDate, disabledTime, startHeaderProps, endHeaderProps,
|
|
91
|
+
const { prefixCls, shortcuts, shortcutsPosition, format, hideTrigger, value, disabledDate, disabledTime, startHeaderProps, endHeaderProps, visible, startHeaderMode, endHeaderMode, utcOffset, timezone } = toRefs(props);
|
|
91
92
|
const showShortcuts = computed(() => isArray(shortcuts.value) && shortcuts.value.length);
|
|
92
93
|
const classNames = computed(() => [`${prefixCls.value}-range-container`, {
|
|
93
94
|
[`${prefixCls.value}-range-container-panel-only`]: hideTrigger.value,
|
|
@@ -99,7 +100,7 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
99
100
|
if (newVal && !oldVal) currentDateView.value = "date";
|
|
100
101
|
});
|
|
101
102
|
function getShortcutValue(shortcut) {
|
|
102
|
-
return getDayjsValue(normalizeRangeValue(isFunction(shortcut.value) ? shortcut.value() : shortcut.value), shortcut.format || format.value);
|
|
103
|
+
return getDayjsValue(normalizeRangeValue(isFunction(shortcut.value) ? shortcut.value() : shortcut.value), shortcut.format || format.value, utcOffset === null || utcOffset === void 0 ? void 0 : utcOffset.value, timezone === null || timezone === void 0 ? void 0 : timezone.value);
|
|
103
104
|
}
|
|
104
105
|
function onShortcutClick(shortcut) {
|
|
105
106
|
emit("shortcut-click", getShortcutValue(shortcut), shortcut);
|
|
@@ -149,16 +150,6 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
149
150
|
return (_disabledTime$value = disabledTime === null || disabledTime === void 0 || (_disabledTime$value2 = disabledTime.value) === null || _disabledTime$value2 === void 0 ? void 0 : _disabledTime$value2.call(disabledTime, current, index === 0 ? "start" : "end")) !== null && _disabledTime$value !== void 0 ? _disabledTime$value : {};
|
|
150
151
|
} : void 0;
|
|
151
152
|
}
|
|
152
|
-
function getDateRenderFunc(index) {
|
|
153
|
-
return isFunction(dateRender === null || dateRender === void 0 ? void 0 : dateRender.value) ? (props) => {
|
|
154
|
-
const mergeProps = _objectSpread2(_objectSpread2({}, props), {}, { type: index === 0 ? "start" : "end" });
|
|
155
|
-
return dateRender.value(mergeProps);
|
|
156
|
-
} : void 0;
|
|
157
|
-
}
|
|
158
|
-
const resolvedExtra = (slotProps) => {
|
|
159
|
-
var _extra$value, _extra$value2;
|
|
160
|
-
return (_extra$value = extra === null || extra === void 0 || (_extra$value2 = extra.value) === null || _extra$value2 === void 0 ? void 0 : _extra$value2.call(extra, slotProps)) !== null && _extra$value !== void 0 ? _extra$value : "";
|
|
161
|
-
};
|
|
162
153
|
const shortcutsProps = reactive({
|
|
163
154
|
prefixCls,
|
|
164
155
|
shortcuts,
|
|
@@ -169,7 +160,6 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
169
160
|
const startPanelProps = computed(() => _objectSpread2(_objectSpread2({}, startHeaderProps.value), {}, {
|
|
170
161
|
rangeValues: value.value,
|
|
171
162
|
disabledDate: getDisabledDateFunc(0),
|
|
172
|
-
dateRender: getDateRenderFunc(0),
|
|
173
163
|
onSelect: (startHeaderMode === null || startHeaderMode === void 0 ? void 0 : startHeaderMode.value) ? onStartHeaderPanelSelect : onPanelCellClick,
|
|
174
164
|
onCellMouseEnter: onPanelCellMouseEnter,
|
|
175
165
|
onHeaderLabelClick: onStartPanelHeaderLabelClick
|
|
@@ -177,7 +167,6 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
177
167
|
const endPanelProps = computed(() => _objectSpread2(_objectSpread2({}, endHeaderProps.value), {}, {
|
|
178
168
|
rangeValues: value.value,
|
|
179
169
|
disabledDate: getDisabledDateFunc(1),
|
|
180
|
-
dateRender: getDateRenderFunc(1),
|
|
181
170
|
onSelect: (endHeaderMode === null || endHeaderMode === void 0 ? void 0 : endHeaderMode.value) ? onEndHeaderPanelSelect : onPanelCellClick,
|
|
182
171
|
onCellMouseEnter: onPanelCellMouseEnter,
|
|
183
172
|
onHeaderLabelClick: onEndPanelHeaderLabelClick
|
|
@@ -185,7 +174,31 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
185
174
|
return (_ctx, _cache) => {
|
|
186
175
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classNames.value) }, [
|
|
187
176
|
showShortcuts.value && unref(shortcutsPosition) === "left" ? (openBlock(), createBlock(shortcuts_default, normalizeProps(mergeProps({ key: 0 }, shortcutsProps)), null, 16)) : createCommentVNode("", true),
|
|
188
|
-
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-range-panel-wrapper`) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-range`) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-range-wrapper`) }, [unref(startHeaderMode) || unref(endHeaderMode) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(startHeaderMode) === "year" ? (openBlock(), createBlock(year_default, normalizeProps(mergeProps({ key: 0 }, startPanelProps.value)), null, 16)) : createCommentVNode("", true), unref(endHeaderMode) === "year" ? (openBlock(), createBlock(year_default, normalizeProps(mergeProps({ key: 1 }, endPanelProps.value)), null, 16)) : unref(startHeaderMode) === "month" ? (openBlock(), createBlock(month_default, mergeProps({ key: 2 }, startPanelProps.value, { abbreviation: __props.abbreviation }), null, 16, ["abbreviation"])) : unref(endHeaderMode) === "month" ? (openBlock(), createBlock(month_default, mergeProps({ key: 3 }, endPanelProps.value, { abbreviation: __props.abbreviation }), null, 16, ["abbreviation"])) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [__props.mode === "week" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(week_default, mergeProps(startPanelProps.value, { "day-start-of-week": __props.dayStartOfWeek }),
|
|
177
|
+
createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-range-panel-wrapper`) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-range`) }, [createElementVNode("div", { class: normalizeClass(`${unref(prefixCls)}-range-wrapper`) }, [unref(startHeaderMode) || unref(endHeaderMode) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [unref(startHeaderMode) === "year" ? (openBlock(), createBlock(year_default, normalizeProps(mergeProps({ key: 0 }, startPanelProps.value)), null, 16)) : createCommentVNode("", true), unref(endHeaderMode) === "year" ? (openBlock(), createBlock(year_default, normalizeProps(mergeProps({ key: 1 }, endPanelProps.value)), null, 16)) : unref(startHeaderMode) === "month" ? (openBlock(), createBlock(month_default, mergeProps({ key: 2 }, startPanelProps.value, { abbreviation: __props.abbreviation }), null, 16, ["abbreviation"])) : unref(endHeaderMode) === "month" ? (openBlock(), createBlock(month_default, mergeProps({ key: 3 }, endPanelProps.value, { abbreviation: __props.abbreviation }), null, 16, ["abbreviation"])) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [__props.mode === "week" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(week_default, mergeProps(startPanelProps.value, { "day-start-of-week": __props.dayStartOfWeek }), {
|
|
178
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "start" }))))]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 16, ["day-start-of-week"]), createVNode(week_default, mergeProps(endPanelProps.value, { "day-start-of-week": __props.dayStartOfWeek }), {
|
|
181
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "end" }))))]),
|
|
182
|
+
_: 3
|
|
183
|
+
}, 16, ["day-start-of-week"])], 64)) : __props.mode === "month" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(month_default, mergeProps(startPanelProps.value, { abbreviation: __props.abbreviation }), {
|
|
184
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "start" }))))]),
|
|
185
|
+
_: 3
|
|
186
|
+
}, 16, ["abbreviation"]), createVNode(month_default, mergeProps(endPanelProps.value, { abbreviation: __props.abbreviation }), {
|
|
187
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "end" }))))]),
|
|
188
|
+
_: 3
|
|
189
|
+
}, 16, ["abbreviation"])], 64)) : __props.mode === "year" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(year_default, normalizeProps(guardReactiveProps(startPanelProps.value)), {
|
|
190
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "start" }))))]),
|
|
191
|
+
_: 3
|
|
192
|
+
}, 16), createVNode(year_default, normalizeProps(guardReactiveProps(endPanelProps.value)), {
|
|
193
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "end" }))))]),
|
|
194
|
+
_: 3
|
|
195
|
+
}, 16)], 64)) : __props.mode === "quarter" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createVNode(quarter_default, normalizeProps(guardReactiveProps(startPanelProps.value)), {
|
|
196
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "start" }))))]),
|
|
197
|
+
_: 3
|
|
198
|
+
}, 16), createVNode(quarter_default, normalizeProps(guardReactiveProps(endPanelProps.value)), {
|
|
199
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "end" }))))]),
|
|
200
|
+
_: 3
|
|
201
|
+
}, 16)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [createVNode(date_default, mergeProps({
|
|
189
202
|
currentView: currentDateView.value,
|
|
190
203
|
"onUpdate:currentView": _cache[0] || (_cache[0] = ($event) => currentDateView.value = $event)
|
|
191
204
|
}, startPanelProps.value, {
|
|
@@ -194,21 +207,28 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
194
207
|
"footer-value": __props.footerValue && __props.footerValue[0],
|
|
195
208
|
"time-picker-value": __props.timePickerValue && __props.timePickerValue[0],
|
|
196
209
|
"day-start-of-week": __props.dayStartOfWeek,
|
|
210
|
+
"hide-not-in-view-dates": __props.hideNotInViewDates,
|
|
197
211
|
"show-time": __props.showTime,
|
|
198
212
|
"time-picker-props": __props.timePickerProps,
|
|
199
213
|
"disabled-time": getDisabledTimeFunc(0),
|
|
200
214
|
disabled: __props.disabled[0],
|
|
215
|
+
now: __props.now,
|
|
201
216
|
onTimePickerSelect: onStartTimePickerSelect
|
|
202
|
-
}),
|
|
217
|
+
}), {
|
|
218
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "start" }))))]),
|
|
219
|
+
_: 3
|
|
220
|
+
}, 16, [
|
|
203
221
|
"currentView",
|
|
204
222
|
"value",
|
|
205
223
|
"footer-value",
|
|
206
224
|
"time-picker-value",
|
|
207
225
|
"day-start-of-week",
|
|
226
|
+
"hide-not-in-view-dates",
|
|
208
227
|
"show-time",
|
|
209
228
|
"time-picker-props",
|
|
210
229
|
"disabled-time",
|
|
211
|
-
"disabled"
|
|
230
|
+
"disabled",
|
|
231
|
+
"now"
|
|
212
232
|
]), createVNode(date_default, mergeProps({
|
|
213
233
|
currentView: currentDateView.value,
|
|
214
234
|
"onUpdate:currentView": _cache[1] || (_cache[1] = ($event) => currentDateView.value = $event)
|
|
@@ -218,33 +238,37 @@ var range_picker_panel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
218
238
|
"footer-value": __props.footerValue && __props.footerValue[1],
|
|
219
239
|
"time-picker-value": __props.timePickerValue && __props.timePickerValue[1],
|
|
220
240
|
"day-start-of-week": __props.dayStartOfWeek,
|
|
241
|
+
"hide-not-in-view-dates": __props.hideNotInViewDates,
|
|
221
242
|
"show-time": __props.showTime,
|
|
222
243
|
"time-picker-props": __props.timePickerProps,
|
|
223
244
|
"disabled-time": getDisabledTimeFunc(1),
|
|
224
245
|
disabled: __props.disabled[1],
|
|
246
|
+
now: __props.now,
|
|
225
247
|
onTimePickerSelect: onEndTimePickerSelect
|
|
226
|
-
}),
|
|
248
|
+
}), {
|
|
249
|
+
cell: withCtx((scope) => [renderSlot(_ctx.$slots, "cell", normalizeProps(guardReactiveProps(_objectSpread2(_objectSpread2({}, scope), {}, { type: "end" }))))]),
|
|
250
|
+
_: 3
|
|
251
|
+
}, 16, [
|
|
227
252
|
"currentView",
|
|
228
253
|
"value",
|
|
229
254
|
"footer-value",
|
|
230
255
|
"time-picker-value",
|
|
231
256
|
"day-start-of-week",
|
|
257
|
+
"hide-not-in-view-dates",
|
|
232
258
|
"show-time",
|
|
233
259
|
"time-picker-props",
|
|
234
260
|
"disabled-time",
|
|
235
|
-
"disabled"
|
|
261
|
+
"disabled",
|
|
262
|
+
"now"
|
|
236
263
|
])], 64))], 64))], 2)], 2), createVNode(footer_default, {
|
|
237
264
|
"prefix-cls": unref(prefixCls),
|
|
238
265
|
"show-today-btn": false,
|
|
239
266
|
"show-confirm-btn": __props.showConfirmBtn,
|
|
240
267
|
"confirm-btn-disabled": __props.confirmBtnDisabled,
|
|
241
268
|
onConfirmBtnClick
|
|
242
|
-
}, createSlots({ _: 2 }, [
|
|
269
|
+
}, createSlots({ _: 2 }, [_ctx.$slots.extra ? {
|
|
243
270
|
name: "extra",
|
|
244
|
-
fn: withCtx(() => [
|
|
245
|
-
key: 1,
|
|
246
|
-
"render-func": resolvedExtra
|
|
247
|
-
}))]),
|
|
271
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "extra")]),
|
|
248
272
|
key: "0"
|
|
249
273
|
} : void 0, showShortcuts.value && unref(shortcutsPosition) === "bottom" ? {
|
|
250
274
|
name: "btn",
|