x-next 1.1.0 → 1.3.0
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/CHANGELOG.md +38 -0
- package/dist/_hooks/use-form-item.d.ts +5 -0
- package/dist/_hooks/use-picker-focus.d.ts +17 -0
- package/dist/components/_components/feedback-icon/index.vue.d.ts +4 -4
- package/dist/components/_components/picker/input-range.vue.d.ts +10 -6
- package/dist/components/_components/picker/input.vue.d.ts +9 -5
- package/dist/components/alert/Alert.vue.d.ts +5 -5
- package/dist/components/alert/index.d.ts +10 -10
- package/dist/components/date-picker/DatePanel.vue.d.ts +5 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +36 -16
- package/dist/components/date-picker/index.d.ts +77 -33
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/index.d.ts +3 -3
- package/dist/components/drawer/index.d.ts +3 -3
- package/dist/components/drawer/src/Drawer.vue.d.ts +1 -1
- package/dist/components/dropdown/Dropdown.vue.d.ts +30 -4
- package/dist/components/dropdown/DropdownButton.vue.d.ts +31 -5
- package/dist/components/dropdown/DropdownOption.vue.d.ts +2 -0
- package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +162 -5
- package/dist/components/dropdown/context.d.ts +14 -1
- package/dist/components/dropdown/dropdown-panel.vue.d.ts +7 -1
- package/dist/components/dropdown/index.d.ts +610 -28
- package/dist/components/dropdown/use-keyboard.d.ts +10 -0
- package/dist/components/form/FormItem.vue.d.ts +12 -4
- package/dist/components/form/context.d.ts +6 -0
- package/dist/components/form/form-item-label.vue.d.ts +4 -4
- package/dist/components/form/form-item-message.vue.d.ts +2 -0
- package/dist/components/form/index.d.ts +30 -8
- package/dist/components/form/interface.d.ts +2 -2
- package/dist/components/form-input/InputPassword.vue.d.ts +20 -2
- package/dist/components/form-input/index.d.ts +22 -4
- package/dist/components/form-select/Select.d.ts +3 -3
- package/dist/components/form-select/hooks/use-select.d.ts +2 -1
- package/dist/components/form-select/index.d.ts +6 -6
- package/dist/components/form-slider/Slider.vue.d.ts +10 -3
- package/dist/components/form-slider/index.d.ts +26 -6
- package/dist/components/form-slider/slider-button.vue.d.ts +4 -3
- package/dist/components/form-switch/Switch.vue.d.ts +2 -1
- package/dist/components/form-switch/index.d.ts +5 -2
- package/dist/components/form-textarea/Textarea.vue.d.ts +2 -2
- package/dist/components/form-textarea/index.d.ts +5 -5
- package/dist/components/image/Image.vue.d.ts +10 -9
- package/dist/components/image/ImagePreview.vue.d.ts +8 -7
- package/dist/components/image/ImagePreviewAction.d.ts +3 -3
- package/dist/components/image/ImagePreviewGroup.vue.d.ts +8 -7
- package/dist/components/image/index.d.ts +59 -52
- package/dist/components/image/preview-arrow.vue.d.ts +2 -2
- package/dist/components/image/preview-toolbar.vue.d.ts +3 -3
- package/dist/components/layout/LayoutSidebar.vue.d.ts +2 -2
- package/dist/components/layout/index.d.ts +4 -4
- package/dist/components/link/Link.vue.d.ts +2 -2
- package/dist/components/link/index.d.ts +4 -4
- package/dist/components/menu/Menu.d.ts +2 -2
- package/dist/components/menu/base-menu.vue.d.ts +2 -2
- package/dist/components/menu/index.d.ts +4 -4
- package/dist/components/menu/sub-menu-pop.vue.d.ts +5 -5
- package/dist/components/message/index.d.ts +17 -17
- package/dist/components/message/message.vue.d.ts +8 -8
- package/dist/components/notification/Notification.d.ts +1 -1
- package/dist/components/notification/index.d.ts +3 -3
- package/dist/components/pagination/page-item-ellipsis.vue.d.ts +1 -1
- package/dist/components/pagination/page-item-step.vue.d.ts +2 -2
- package/dist/components/pagination/page-options.vue.d.ts +6 -6
- package/dist/components/popconfirm/src/popup.vue.d.ts +1 -1
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popup/Popup.d.ts +1 -1
- package/dist/components/popup/index.d.ts +3 -3
- package/dist/components/progress/Progress.vue.d.ts +4 -4
- package/dist/components/progress/circle.vue.d.ts +2 -2
- package/dist/components/progress/index.d.ts +8 -8
- package/dist/components/progress/line.vue.d.ts +1 -1
- package/dist/components/progress/steps.vue.d.ts +1 -1
- package/dist/components/steps/Step.vue.d.ts +2 -2
- package/dist/components/steps/index.d.ts +4 -4
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/tabs-tab.vue.d.ts +1 -1
- package/dist/components/tag/Tag.vue.d.ts +2 -2
- package/dist/components/tag/index.d.ts +4 -4
- package/dist/components/time-picker/TimeColumn.vue.d.ts +3 -0
- package/dist/components/time-picker/TimePanel.vue.d.ts +3 -0
- package/dist/components/time-picker/TimePicker.vue.d.ts +33 -17
- package/dist/components/time-picker/index.d.ts +73 -36
- package/dist/components/time-range-selector/TimeRangeSelector.vue.d.ts +8 -0
- package/dist/components/time-range-selector/index.d.ts +22 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/trigger/Trigger.d.ts +1 -1
- package/dist/components/trigger/index.d.ts +3 -3
- package/dist/es/_hooks/use-form-item.js +36 -10
- package/dist/es/_hooks/use-overflow.js +45 -40
- package/dist/es/_hooks/use-picker-focus.js +57 -0
- package/dist/es/_utils/constant.js +17 -5
- package/dist/es/components/_components/picker/input-range.vue.js +45 -55
- package/dist/es/components/_components/picker/input-range.vue2.js +105 -70
- package/dist/es/components/_components/picker/input.vue.js +22 -25
- package/dist/es/components/_components/picker/input.vue2.js +58 -43
- package/dist/es/components/_components/select-view/select-view.js +61 -66
- package/dist/es/components/date-picker/DatePanel.vue.js +102 -94
- package/dist/es/components/date-picker/DatePanel.vue2.js +97 -44
- package/dist/es/components/date-picker/DatePicker.vue.js +71 -58
- package/dist/es/components/date-picker/DatePicker.vue2.js +285 -231
- package/dist/es/components/dialog/Dialog.js +159 -128
- package/dist/es/components/dropdown/Dropdown.vue.js +18 -15
- package/dist/es/components/dropdown/Dropdown.vue2.js +52 -31
- package/dist/es/components/dropdown/DropdownOption.vue.js +22 -21
- package/dist/es/components/dropdown/DropdownOption.vue2.js +23 -19
- package/dist/es/components/dropdown/DropdownSubmenu.vue.js +49 -36
- package/dist/es/components/dropdown/DropdownSubmenu.vue2.js +45 -24
- package/dist/es/components/dropdown/context.js +3 -2
- package/dist/es/components/dropdown/dropdown-panel.vue.js +24 -21
- package/dist/es/components/dropdown/dropdown-panel.vue2.js +83 -31
- package/dist/es/components/dropdown/use-keyboard.js +45 -0
- package/dist/es/components/form/Form.vue2.js +113 -101
- package/dist/es/components/form/FormItem.vue.js +26 -22
- package/dist/es/components/form/FormItem.vue2.js +162 -125
- package/dist/es/components/form/form-item-message.vue.js +31 -24
- package/dist/es/components/form/form-item-message.vue2.js +4 -2
- package/dist/es/components/form-checkbox/Checkbox.js +80 -76
- package/dist/es/components/form-checkbox/CheckboxGroup.js +43 -38
- package/dist/es/components/form-input/Input.js +83 -79
- package/dist/es/components/form-input/InputPassword.vue.js +19 -16
- package/dist/es/components/form-input/InputPassword.vue2.js +39 -29
- package/dist/es/components/form-input/InputSearch.js +47 -37
- package/dist/es/components/form-input-number/InputNumber.js +134 -133
- package/dist/es/components/form-input-tag/InputTag.js +173 -162
- package/dist/es/components/form-radio/Radio.js +74 -71
- package/dist/es/components/form-radio/RadioGroup.js +55 -49
- package/dist/es/components/form-select/Select.js +116 -114
- package/dist/es/components/form-select/hooks/use-select.js +128 -128
- package/dist/es/components/form-slider/Slider.vue.js +28 -28
- package/dist/es/components/form-slider/Slider.vue2.js +139 -132
- package/dist/es/components/form-slider/slider-button.vue.js +6 -6
- package/dist/es/components/form-slider/slider-button.vue2.js +39 -34
- package/dist/es/components/form-switch/Switch.vue.js +9 -9
- package/dist/es/components/form-switch/Switch.vue2.js +81 -74
- package/dist/es/components/form-textarea/Textarea.vue2.js +123 -108
- package/dist/es/components/image/Image.vue2.js +77 -76
- package/dist/es/components/image/ImagePreview.vue.js +13 -12
- package/dist/es/components/image/ImagePreview.vue2.js +141 -136
- package/dist/es/components/image/ImagePreviewGroup.vue.js +1 -1
- package/dist/es/components/image/ImagePreviewGroup.vue2.js +82 -83
- package/dist/es/components/rate/Rate.js +106 -103
- package/dist/es/components/time-picker/TimeColumn.vue.js +34 -23
- package/dist/es/components/time-picker/TimeColumn.vue2.js +37 -28
- package/dist/es/components/time-picker/TimePicker.vue.js +83 -64
- package/dist/es/components/time-picker/TimePicker.vue2.js +192 -156
- package/dist/es/components/time-range-selector/TimeRangeSelector.vue.js +327 -193
- package/dist/es/locale/en-US.js +6 -0
- package/dist/es/locale/zh-CN.js +6 -0
- package/dist/es/style.css +1 -1
- package/dist/icons/_self/down.d.ts +1 -1
- package/dist/icons/_self/dropdown/more.d.ts +1 -1
- package/dist/icons/_self/empty-better.d.ts +1 -1
- package/dist/icons/_self/empty.d.ts +1 -1
- package/dist/icons/_self/eye-invisible.d.ts +1 -1
- package/dist/icons/_self/eye.d.ts +1 -1
- package/dist/icons/_self/full-screen.d.ts +1 -1
- package/dist/icons/_self/left.d.ts +1 -1
- package/dist/icons/_self/menu/down.d.ts +1 -1
- package/dist/icons/_self/minus.d.ts +1 -1
- package/dist/icons/_self/more-dot.d.ts +1 -1
- package/dist/icons/_self/next.d.ts +1 -1
- package/dist/icons/_self/original-size.d.ts +1 -1
- package/dist/icons/_self/plus.d.ts +1 -1
- package/dist/icons/_self/prev.d.ts +1 -1
- package/dist/icons/_self/question-message.d.ts +1 -1
- package/dist/icons/_self/right.d.ts +1 -1
- package/dist/icons/_self/rotate-left.d.ts +1 -1
- package/dist/icons/_self/rotate-right.d.ts +1 -1
- package/dist/icons/_self/search.d.ts +1 -1
- package/dist/icons/_self/up.d.ts +1 -1
- package/dist/icons/_self/zoom-in.d.ts +1 -1
- package/dist/icons/_self/zoom-out.d.ts +1 -1
- package/dist/icons/_ui/alone-left.d.ts +1 -1
- package/dist/icons/_ui/alone-margin-left.d.ts +1 -1
- package/dist/icons/_ui/alone-margin-right.d.ts +1 -1
- package/dist/icons/_ui/alone-right.d.ts +1 -1
- package/dist/icons/_ui/calendar.d.ts +1 -1
- package/dist/icons/_ui/time.d.ts +1 -1
- package/dist/icons/animation/animation-loading.d.ts +1 -1
- package/dist/icons/default/check-circle-fill.d.ts +1 -1
- package/dist/icons/default/check.d.ts +1 -1
- package/dist/icons/default/close-circle-fill.d.ts +1 -1
- package/dist/icons/default/close.d.ts +1 -1
- package/dist/icons/default/exclamation-circle-fill.d.ts +1 -1
- package/dist/icons/default/exclamation.d.ts +1 -1
- package/dist/icons/default/filter.d.ts +1 -1
- package/dist/icons/default/info-circle-fill.d.ts +1 -1
- package/dist/icons/default/link.d.ts +1 -1
- package/dist/icons/default/logo-simple.d.ts +1 -1
- package/dist/icons/default/minus-circle-fill.d.ts +1 -1
- package/dist/icons/icon.d.ts +2 -2
- package/dist/icons/index.d.ts +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/locale/interface.d.ts +6 -0
- package/dist/style/base.css +1 -1
- package/dist/style/date-picker.css +1 -1
- package/dist/style/form.css +1 -1
- package/dist/style/image.css +1 -1
- package/dist/style/time-range-selector.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import L from "./DatePicker.vue2.js";
|
|
2
|
-
import { resolveComponent as g, openBlock as o, createBlock as
|
|
2
|
+
import { resolveComponent as g, openBlock as o, createBlock as P, mergeProps as f, withCtx as t, withKeys as v, withModifiers as R, createSlots as h, renderSlot as u, createVNode as p, createElementVNode as i, normalizeClass as l, createElementBlock as s, createCommentVNode as d, Fragment as S, renderList as $, toDisplayString as m } from "vue";
|
|
3
3
|
import B from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const z = ["onClick"];
|
|
5
|
-
function O(e,
|
|
6
|
-
const
|
|
7
|
-
return o(),
|
|
4
|
+
const K = ["id", "aria-label"], z = ["onClick"];
|
|
5
|
+
function O(e, n, W, A, H, j) {
|
|
6
|
+
const y = g("IconCalendar"), I = g("DateRangeInput"), M = g("DateInput"), C = g("DatePanel"), b = g("TimePanel"), E = g("Trigger");
|
|
7
|
+
return o(), P(E, f({
|
|
8
8
|
trigger: "click",
|
|
9
9
|
"animation-name": "x-fade-in",
|
|
10
10
|
"auto-fit-transform-origin": "",
|
|
@@ -19,10 +19,17 @@ function O(e, l, K, W, A, H) {
|
|
|
19
19
|
"content-class": e.className.element("popup")
|
|
20
20
|
}, e.triggerProps, { onPopupVisibleChange: e.handlePopupVisibleChange }), {
|
|
21
21
|
content: t(() => {
|
|
22
|
-
var
|
|
22
|
+
var w, k, D;
|
|
23
23
|
return [
|
|
24
24
|
i("div", {
|
|
25
|
-
|
|
25
|
+
ref: "popupRef",
|
|
26
|
+
id: e.panelId,
|
|
27
|
+
role: "dialog",
|
|
28
|
+
"aria-label": e.t("common.date"),
|
|
29
|
+
tabindex: "-1",
|
|
30
|
+
onKeydown: n[10] || (n[10] = (...a) => e.handlePanelKeydown && e.handlePanelKeydown(...a)),
|
|
31
|
+
onFocusout: n[11] || (n[11] = (...a) => e.handlePopupFocusout && e.handlePopupFocusout(...a)),
|
|
32
|
+
class: l([
|
|
26
33
|
e.className.element("popup-inner"),
|
|
27
34
|
{
|
|
28
35
|
[e.className.modifier("popup-range")]: e.isRange,
|
|
@@ -32,7 +39,7 @@ function O(e, l, K, W, A, H) {
|
|
|
32
39
|
}, [
|
|
33
40
|
e.isRange && (!e.isDateTime || e.rangePanelMode === "date") ? (o(), s("div", {
|
|
34
41
|
key: 0,
|
|
35
|
-
class:
|
|
42
|
+
class: l(e.className.element("panels"))
|
|
36
43
|
}, [
|
|
37
44
|
p(C, {
|
|
38
45
|
mode: e.mode,
|
|
@@ -50,7 +57,7 @@ function O(e, l, K, W, A, H) {
|
|
|
50
57
|
onSelect: e.handlePanelSelect,
|
|
51
58
|
onCellMouseEnter: e.handlePanelCellMouseEnter,
|
|
52
59
|
onCellMouseLeave: e.handlePanelCellMouseLeave,
|
|
53
|
-
onViewDateChange:
|
|
60
|
+
onViewDateChange: n[0] || (n[0] = (a) => e.handleRangeViewDateChange(a, 0)),
|
|
54
61
|
onCancel: e.handleEsc
|
|
55
62
|
}, h({ _: 2 }, [
|
|
56
63
|
e.$slots.cell ? {
|
|
@@ -80,7 +87,7 @@ function O(e, l, K, W, A, H) {
|
|
|
80
87
|
onSelect: e.handlePanelSelect,
|
|
81
88
|
onCellMouseEnter: e.handlePanelCellMouseEnter,
|
|
82
89
|
onCellMouseLeave: e.handlePanelCellMouseLeave,
|
|
83
|
-
onViewDateChange:
|
|
90
|
+
onViewDateChange: n[1] || (n[1] = (a) => e.handleRangeViewDateChange(a, 1)),
|
|
84
91
|
onCancel: e.handleEsc
|
|
85
92
|
}, h({ _: 2 }, [
|
|
86
93
|
e.$slots.cell ? {
|
|
@@ -97,25 +104,25 @@ function O(e, l, K, W, A, H) {
|
|
|
97
104
|
], 2)) : d("", !0),
|
|
98
105
|
e.isRange && e.isDateTime && e.rangePanelMode === "time" ? (o(), s("div", {
|
|
99
106
|
key: 1,
|
|
100
|
-
class:
|
|
107
|
+
class: l(e.className.element("range-time-panel"))
|
|
101
108
|
}, [
|
|
102
|
-
(o(), s(
|
|
103
|
-
var
|
|
109
|
+
(o(), s(S, null, $(2, (a, r) => {
|
|
110
|
+
var V, N, T;
|
|
104
111
|
return i("div", {
|
|
105
112
|
key: r,
|
|
106
|
-
class:
|
|
113
|
+
class: l([
|
|
107
114
|
e.className.element("range-time-column"),
|
|
108
115
|
{ [e.className.is("active")]: e.focusedIndex === r }
|
|
109
116
|
])
|
|
110
117
|
}, [
|
|
111
118
|
i("div", {
|
|
112
|
-
class:
|
|
119
|
+
class: l(e.className.element("time-title"))
|
|
113
120
|
}, m(e.t("datePicker.selectTime")), 3),
|
|
114
|
-
p(
|
|
121
|
+
p(b, f({
|
|
115
122
|
value: e.rangePanelValue[r],
|
|
116
123
|
format: e.timeFormat,
|
|
117
|
-
"use12-hours": (
|
|
118
|
-
step: (
|
|
124
|
+
"use12-hours": (V = e.timePickerProps) == null ? void 0 : V.use12Hours,
|
|
125
|
+
step: (N = e.timePickerProps) == null ? void 0 : N.step
|
|
119
126
|
}, { ref_for: !0 }, e.getDisabledTimeProps(e.rangePanelValue[r], r === 0 ? "start" : "end"), {
|
|
120
127
|
"hide-disabled-options": (T = e.timePickerProps) == null ? void 0 : T.hideDisabledOptions,
|
|
121
128
|
"hide-footer": "",
|
|
@@ -126,9 +133,7 @@ function O(e, l, K, W, A, H) {
|
|
|
126
133
|
], 2)) : d("", !0),
|
|
127
134
|
e.isRange ? d("", !0) : (o(), s("div", {
|
|
128
135
|
key: 2,
|
|
129
|
-
class:
|
|
130
|
-
{ [e.className.element("datetime-body")]: e.isDateTime }
|
|
131
|
-
])
|
|
136
|
+
class: l([{ [e.className.element("datetime-body")]: e.isDateTime }])
|
|
132
137
|
}, [
|
|
133
138
|
p(C, {
|
|
134
139
|
mode: e.mode,
|
|
@@ -172,102 +177,102 @@ function O(e, l, K, W, A, H) {
|
|
|
172
177
|
]), 1032, ["mode", "value", "range-value", "preview-range-value", "is-range", "view-date", "day-start-of-week", "disabled-date", "show-lunar", "hide-not-in-view-dates", "shortcuts", "show-today", "show-confirm-btn", "onSelect", "onCellMouseEnter", "onCellMouseLeave", "onViewDateChange", "onShortcut", "onConfirm", "onCancel"]),
|
|
173
178
|
e.isDateTime ? (o(), s("div", {
|
|
174
179
|
key: 0,
|
|
175
|
-
class:
|
|
180
|
+
class: l(e.className.element("time-side"))
|
|
176
181
|
}, [
|
|
177
182
|
i("div", {
|
|
178
|
-
class:
|
|
183
|
+
class: l(e.className.element("time-title"))
|
|
179
184
|
}, m(e.t("datePicker.selectTime")), 3),
|
|
180
|
-
p(
|
|
185
|
+
p(b, f({
|
|
181
186
|
value: e.singlePanelValue,
|
|
182
187
|
format: e.timeFormat,
|
|
183
|
-
"use12-hours": (
|
|
184
|
-
step: (
|
|
188
|
+
"use12-hours": (w = e.timePickerProps) == null ? void 0 : w.use12Hours,
|
|
189
|
+
step: (k = e.timePickerProps) == null ? void 0 : k.step
|
|
185
190
|
}, e.getDisabledTimeProps(e.singlePanelValue), {
|
|
186
191
|
"hide-disabled-options": (D = e.timePickerProps) == null ? void 0 : D.hideDisabledOptions,
|
|
187
192
|
"hide-footer": "",
|
|
188
|
-
onSelect:
|
|
193
|
+
onSelect: n[2] || (n[2] = (a) => e.handleTimeSelect(a))
|
|
189
194
|
}), null, 16, ["value", "format", "use12-hours", "step", "hide-disabled-options"])
|
|
190
195
|
], 2)) : d("", !0)
|
|
191
196
|
], 2)),
|
|
192
197
|
!e.isRange && e.isDateTime && (e.showToday || e.needConfirm) ? (o(), s("div", {
|
|
193
198
|
key: 3,
|
|
194
|
-
class:
|
|
199
|
+
class: l(e.className.element("datetime-footer"))
|
|
195
200
|
}, [
|
|
196
201
|
e.showToday ? (o(), s("button", {
|
|
197
202
|
key: 0,
|
|
198
203
|
type: "button",
|
|
199
|
-
class:
|
|
200
|
-
onClick:
|
|
204
|
+
class: l([e.className.element("footer-btn"), e.className.element("today")]),
|
|
205
|
+
onClick: n[3] || (n[3] = (...a) => e.handleToday && e.handleToday(...a))
|
|
201
206
|
}, m(e.t("datePicker.today")), 3)) : d("", !0),
|
|
202
207
|
e.needConfirm ? (o(), s("button", {
|
|
203
208
|
key: 1,
|
|
204
209
|
type: "button",
|
|
205
|
-
class:
|
|
206
|
-
onClick:
|
|
210
|
+
class: l([e.className.element("footer-btn"), e.className.element("confirm")]),
|
|
211
|
+
onClick: n[4] || (n[4] = (...a) => e.handleConfirm && e.handleConfirm(...a))
|
|
207
212
|
}, m(e.t("datePicker.ok")), 3)) : d("", !0)
|
|
208
213
|
], 2)) : d("", !0),
|
|
209
214
|
e.isRange && e.isDateTime ? (o(), s("div", {
|
|
210
215
|
key: 4,
|
|
211
|
-
class:
|
|
216
|
+
class: l(e.className.element("range-datetime-footer"))
|
|
212
217
|
}, [
|
|
213
218
|
i("button", {
|
|
214
219
|
type: "button",
|
|
215
|
-
class:
|
|
220
|
+
class: l([
|
|
216
221
|
e.className.element("range-datetime-item"),
|
|
217
222
|
{ [e.className.is("active")]: e.rangePanelMode === "date" }
|
|
218
223
|
]),
|
|
219
|
-
onClick:
|
|
224
|
+
onClick: n[5] || (n[5] = (a) => e.openRangeDatePanel(0))
|
|
220
225
|
}, [
|
|
221
226
|
i("span", null, m(e.formatTimeDate(e.rangePanelValue[0])), 1)
|
|
222
227
|
], 2),
|
|
223
228
|
i("button", {
|
|
224
229
|
type: "button",
|
|
225
|
-
class:
|
|
230
|
+
class: l([
|
|
226
231
|
e.className.element("range-datetime-item"),
|
|
227
232
|
{ [e.className.is("active")]: e.rangePanelMode === "time" }
|
|
228
233
|
]),
|
|
229
|
-
onClick:
|
|
234
|
+
onClick: n[6] || (n[6] = (a) => e.openRangeTimePanel(0))
|
|
230
235
|
}, [
|
|
231
236
|
i("strong", null, m(e.formatTimeValue(e.rangePanelValue[0])), 1)
|
|
232
237
|
], 2),
|
|
233
238
|
i("button", {
|
|
234
239
|
type: "button",
|
|
235
|
-
class:
|
|
240
|
+
class: l([
|
|
236
241
|
e.className.element("range-datetime-item"),
|
|
237
242
|
{ [e.className.is("active")]: e.rangePanelMode === "date" }
|
|
238
243
|
]),
|
|
239
|
-
onClick:
|
|
244
|
+
onClick: n[7] || (n[7] = (a) => e.openRangeDatePanel(1))
|
|
240
245
|
}, [
|
|
241
246
|
i("span", null, m(e.formatTimeDate(e.rangePanelValue[1])), 1)
|
|
242
247
|
], 2),
|
|
243
248
|
i("button", {
|
|
244
249
|
type: "button",
|
|
245
|
-
class:
|
|
250
|
+
class: l([
|
|
246
251
|
e.className.element("range-datetime-item"),
|
|
247
252
|
{ [e.className.is("active")]: e.rangePanelMode === "time" }
|
|
248
253
|
]),
|
|
249
|
-
onClick:
|
|
254
|
+
onClick: n[8] || (n[8] = (a) => e.openRangeTimePanel(1))
|
|
250
255
|
}, [
|
|
251
256
|
i("strong", null, m(e.formatTimeValue(e.rangePanelValue[1])), 1)
|
|
252
257
|
], 2)
|
|
253
258
|
], 2)) : d("", !0),
|
|
254
259
|
e.isRange && (e.shortcuts.length || e.$slots.extra || e.needConfirm) ? (o(), s("div", {
|
|
255
260
|
key: 5,
|
|
256
|
-
class:
|
|
261
|
+
class: l(e.className.element("range-footer"))
|
|
257
262
|
}, [
|
|
258
263
|
e.shortcuts.length || e.$slots.extra ? (o(), s("div", {
|
|
259
264
|
key: 0,
|
|
260
|
-
class:
|
|
265
|
+
class: l(e.className.element("range-shortcuts"))
|
|
261
266
|
}, [
|
|
262
|
-
(o(!0), s(
|
|
267
|
+
(o(!0), s(S, null, $(e.shortcuts, (a) => (o(), s("button", {
|
|
263
268
|
key: String(a.label),
|
|
264
269
|
type: "button",
|
|
265
|
-
class:
|
|
270
|
+
class: l(e.className.element("shortcut")),
|
|
266
271
|
onClick: (r) => e.handleShortcut(a)
|
|
267
272
|
}, m(a.label), 11, z))), 128)),
|
|
268
273
|
e.$slots.extra ? (o(), s("div", {
|
|
269
274
|
key: 0,
|
|
270
|
-
class:
|
|
275
|
+
class: l(e.className.element("extra"))
|
|
271
276
|
}, [
|
|
272
277
|
u(e.$slots, "extra")
|
|
273
278
|
], 2)) : d("", !0)
|
|
@@ -275,18 +280,22 @@ function O(e, l, K, W, A, H) {
|
|
|
275
280
|
e.needConfirm ? (o(), s("button", {
|
|
276
281
|
key: 1,
|
|
277
282
|
type: "button",
|
|
278
|
-
class:
|
|
279
|
-
onClick:
|
|
283
|
+
class: l([e.className.element("footer-btn"), e.className.element("confirm")]),
|
|
284
|
+
onClick: n[9] || (n[9] = (...a) => e.handleConfirm && e.handleConfirm(...a))
|
|
280
285
|
}, m(e.t("datePicker.ok")), 3)) : d("", !0)
|
|
281
286
|
], 2)) : d("", !0)
|
|
282
|
-
],
|
|
287
|
+
], 42, K)
|
|
283
288
|
];
|
|
284
289
|
}),
|
|
285
290
|
default: t(() => [
|
|
286
|
-
e.isRange ? (o(),
|
|
291
|
+
e.isRange ? (o(), P(I, f({
|
|
287
292
|
key: 0,
|
|
288
293
|
ref: "inputRef"
|
|
289
294
|
}, e.inputAttrs, {
|
|
295
|
+
role: "combobox",
|
|
296
|
+
"aria-haspopup": "dialog",
|
|
297
|
+
"aria-expanded": e.mergedPopupVisible,
|
|
298
|
+
"aria-controls": e.mergedPopupVisible ? e.panelId : void 0,
|
|
290
299
|
class: [
|
|
291
300
|
e.className.block,
|
|
292
301
|
e.className.modifier("range"),
|
|
@@ -314,12 +323,12 @@ function O(e, l, K, W, A, H) {
|
|
|
314
323
|
onBlur: e.handleBlur,
|
|
315
324
|
onKeydown: [
|
|
316
325
|
v(e.handleEsc, ["esc"]),
|
|
317
|
-
v(
|
|
326
|
+
v(R(e.openPanel, ["prevent"]), ["down"])
|
|
318
327
|
]
|
|
319
328
|
}), h({
|
|
320
329
|
"suffix-icon": t(() => [
|
|
321
330
|
u(e.$slots, "suffix-icon", {}, () => [
|
|
322
|
-
p(
|
|
331
|
+
p(y)
|
|
323
332
|
])
|
|
324
333
|
]),
|
|
325
334
|
_: 2
|
|
@@ -338,10 +347,14 @@ function O(e, l, K, W, A, H) {
|
|
|
338
347
|
]),
|
|
339
348
|
key: "1"
|
|
340
349
|
} : void 0
|
|
341
|
-
]), 1040, ["class", "style", "value", "input-value", "focused", "focused-index", "format", "size", "disabled", "readonly", "error", "allow-clear", "placeholder", "onFocusedIndexChange", "onChange", "onPressEnter", "onClear", "onFocus", "onBlur", "onKeydown"])) : (o(),
|
|
350
|
+
]), 1040, ["aria-expanded", "aria-controls", "class", "style", "value", "input-value", "focused", "focused-index", "format", "size", "disabled", "readonly", "error", "allow-clear", "placeholder", "onFocusedIndexChange", "onChange", "onPressEnter", "onClear", "onFocus", "onBlur", "onKeydown"])) : (o(), P(M, f({
|
|
342
351
|
key: 1,
|
|
343
352
|
ref: "inputRef"
|
|
344
353
|
}, e.inputAttrs, {
|
|
354
|
+
role: "combobox",
|
|
355
|
+
"aria-haspopup": "dialog",
|
|
356
|
+
"aria-expanded": e.mergedPopupVisible,
|
|
357
|
+
"aria-controls": e.mergedPopupVisible ? e.panelId : void 0,
|
|
345
358
|
class: [e.className.block, e.attrs.class],
|
|
346
359
|
style: e.attrs.style,
|
|
347
360
|
value: e.singleInputValue,
|
|
@@ -362,12 +375,12 @@ function O(e, l, K, W, A, H) {
|
|
|
362
375
|
onBlur: e.handleBlur,
|
|
363
376
|
onKeydown: [
|
|
364
377
|
v(e.handleEsc, ["esc"]),
|
|
365
|
-
v(
|
|
378
|
+
v(R(e.openPanel, ["prevent"]), ["down"])
|
|
366
379
|
]
|
|
367
380
|
}), h({
|
|
368
381
|
"suffix-icon": t(() => [
|
|
369
382
|
u(e.$slots, "suffix-icon", {}, () => [
|
|
370
|
-
p(
|
|
383
|
+
p(y)
|
|
371
384
|
])
|
|
372
385
|
]),
|
|
373
386
|
_: 2
|
|
@@ -379,12 +392,12 @@ function O(e, l, K, W, A, H) {
|
|
|
379
392
|
]),
|
|
380
393
|
key: "0"
|
|
381
394
|
} : void 0
|
|
382
|
-
]), 1040, ["class", "style", "value", "input-value", "focused", "format", "size", "disabled", "readonly", "error", "allow-clear", "placeholder", "onChange", "onPressEnter", "onClear", "onFocus", "onBlur", "onKeydown"]))
|
|
395
|
+
]), 1040, ["aria-expanded", "aria-controls", "class", "style", "value", "input-value", "focused", "format", "size", "disabled", "readonly", "error", "allow-clear", "placeholder", "onChange", "onPressEnter", "onClear", "onFocus", "onBlur", "onKeydown"]))
|
|
383
396
|
]),
|
|
384
397
|
_: 3
|
|
385
398
|
}, 16, ["position", "disabled", "popup-visible", "unmount-on-close", "popup-container", "content-class", "onPopupVisibleChange"]);
|
|
386
399
|
}
|
|
387
|
-
const
|
|
400
|
+
const Q = /* @__PURE__ */ B(L, [["render", O]]);
|
|
388
401
|
export {
|
|
389
|
-
|
|
402
|
+
Q as default
|
|
390
403
|
};
|