x-next 1.17.0 → 1.18.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/AI_USAGE/catalog.md +1 -1
- package/AI_USAGE/components/alert-api.md +1 -1
- package/AI_USAGE/components/alert.md +33 -1
- package/AI_USAGE/components/bar-chart-api.md +1 -1
- package/AI_USAGE/components/bar-chart.md +1 -1
- package/AI_USAGE/components/boxicons.md +1 -1
- package/AI_USAGE/components/button-api.md +13 -16
- package/AI_USAGE/components/button.md +245 -34
- package/AI_USAGE/components/charts.md +1 -1
- package/AI_USAGE/components/checkbox-api.md +1 -1
- package/AI_USAGE/components/checkbox.md +1 -1
- package/AI_USAGE/components/color-picker-api.md +1 -1
- package/AI_USAGE/components/color-picker.md +1 -1
- package/AI_USAGE/components/config-provider-api.md +1 -1
- package/AI_USAGE/components/config-provider.md +1 -1
- package/AI_USAGE/components/date-picker-api.md +44 -26
- package/AI_USAGE/components/date-picker.md +78 -3
- package/AI_USAGE/components/dialog-api.md +2 -2
- package/AI_USAGE/components/dialog.md +5 -1
- package/AI_USAGE/components/draggable-api.md +1 -1
- package/AI_USAGE/components/draggable.md +1 -1
- package/AI_USAGE/components/drawer-api.md +3 -3
- package/AI_USAGE/components/drawer.md +1 -1
- package/AI_USAGE/components/dropdown-api.md +8 -3
- package/AI_USAGE/components/dropdown.md +2 -2
- package/AI_USAGE/components/empty-api.md +1 -1
- package/AI_USAGE/components/empty.md +1 -1
- package/AI_USAGE/components/finicon.md +1 -1
- package/AI_USAGE/components/form-api.md +1 -1
- package/AI_USAGE/components/form.md +1 -1
- package/AI_USAGE/components/grid-api.md +1 -1
- package/AI_USAGE/components/grid.md +1 -1
- package/AI_USAGE/components/heatmap-api.md +1 -1
- package/AI_USAGE/components/heatmap.md +1 -1
- package/AI_USAGE/components/icon-api.md +1 -1
- package/AI_USAGE/components/icon.md +1 -1
- package/AI_USAGE/components/image-api.md +1 -1
- package/AI_USAGE/components/image.md +1 -1
- package/AI_USAGE/components/input-api.md +2 -2
- package/AI_USAGE/components/input-number-api.md +1 -1
- package/AI_USAGE/components/input-number.md +1 -1
- package/AI_USAGE/components/input-tag-api.md +1 -1
- package/AI_USAGE/components/input-tag.md +1 -1
- package/AI_USAGE/components/input.md +1 -1
- package/AI_USAGE/components/layout-api.md +1 -1
- package/AI_USAGE/components/layout.md +1 -1
- package/AI_USAGE/components/line-chart-api.md +1 -1
- package/AI_USAGE/components/line-chart.md +1 -1
- package/AI_USAGE/components/link-api.md +1 -1
- package/AI_USAGE/components/link.md +1 -1
- package/AI_USAGE/components/menu-api.md +1 -1
- package/AI_USAGE/components/menu.md +1 -1
- package/AI_USAGE/components/message-api.md +1 -1
- package/AI_USAGE/components/message-box-api.md +1 -1
- package/AI_USAGE/components/message-box.md +1 -1
- package/AI_USAGE/components/message.md +1 -1
- package/AI_USAGE/components/network-api.md +1 -1
- package/AI_USAGE/components/network.md +1 -1
- package/AI_USAGE/components/notification-api.md +1 -1
- package/AI_USAGE/components/notification.md +1 -1
- package/AI_USAGE/components/pagination-api.md +1 -1
- package/AI_USAGE/components/pagination.md +1 -1
- package/AI_USAGE/components/pie-chart-api.md +1 -1
- package/AI_USAGE/components/pie-chart.md +1 -1
- package/AI_USAGE/components/popconfirm-api.md +3 -3
- package/AI_USAGE/components/popconfirm.md +1 -1
- package/AI_USAGE/components/popover-api.md +1 -1
- package/AI_USAGE/components/popover.md +3 -1
- package/AI_USAGE/components/popup-api.md +1 -1
- package/AI_USAGE/components/popup.md +1 -1
- package/AI_USAGE/components/progress-api.md +1 -1
- package/AI_USAGE/components/progress.md +1 -1
- package/AI_USAGE/components/radio-api.md +1 -1
- package/AI_USAGE/components/radio.md +1 -1
- package/AI_USAGE/components/rate-api.md +1 -1
- package/AI_USAGE/components/rate.md +1 -1
- package/AI_USAGE/components/resize-box-api.md +1 -1
- package/AI_USAGE/components/resize-box.md +1 -1
- package/AI_USAGE/components/scrollbar-api.md +1 -1
- package/AI_USAGE/components/scrollbar.md +1 -1
- package/AI_USAGE/components/select-api.md +1 -1
- package/AI_USAGE/components/select.md +1 -1
- package/AI_USAGE/components/skeleton-api.md +1 -1
- package/AI_USAGE/components/skeleton.md +1 -1
- package/AI_USAGE/components/slider-api.md +1 -1
- package/AI_USAGE/components/slider.md +1 -1
- package/AI_USAGE/components/space-api.md +1 -1
- package/AI_USAGE/components/space.md +1 -1
- package/AI_USAGE/components/spin-api.md +1 -1
- package/AI_USAGE/components/spin.md +1 -1
- package/AI_USAGE/components/steps-api.md +1 -1
- package/AI_USAGE/components/steps.md +1 -1
- package/AI_USAGE/components/switch-api.md +1 -1
- package/AI_USAGE/components/switch.md +1 -1
- package/AI_USAGE/components/table-api.md +1 -1
- package/AI_USAGE/components/table.md +1 -1
- package/AI_USAGE/components/tabs-api.md +1 -1
- package/AI_USAGE/components/tabs.md +1 -1
- package/AI_USAGE/components/tag-api.md +1 -1
- package/AI_USAGE/components/tag.md +1 -1
- package/AI_USAGE/components/textarea-api.md +1 -1
- package/AI_USAGE/components/textarea.md +1 -1
- package/AI_USAGE/components/time-picker-api.md +1 -1
- package/AI_USAGE/components/time-picker.md +1 -1
- package/AI_USAGE/components/time-range-selector-api.md +1 -1
- package/AI_USAGE/components/time-range-selector.md +1 -1
- package/AI_USAGE/components/timeline-api.md +3 -3
- package/AI_USAGE/components/timeline.md +1 -1
- package/AI_USAGE/components/tooltip-api.md +1 -1
- package/AI_USAGE/components/tooltip.md +1 -1
- package/AI_USAGE/components/transfer-api.md +1 -1
- package/AI_USAGE/components/transfer.md +1 -1
- package/AI_USAGE/components/tree-select-api.md +1 -1
- package/AI_USAGE/components/tree-select.md +1 -1
- package/AI_USAGE/components/trend-chart-api.md +1 -1
- package/AI_USAGE/components/trend-chart.md +1 -1
- package/AI_USAGE/components/trigger-api.md +1 -1
- package/AI_USAGE/components/trigger.md +1 -1
- package/AI_USAGE/components/upload-api.md +1 -1
- package/AI_USAGE/components/upload.md +1 -1
- package/AI_USAGE/components/watermark-api.md +1 -1
- package/AI_USAGE/components/watermark.md +1 -1
- package/AI_USAGE/core.md +1 -1
- package/AI_USAGE/index.md +1 -1
- package/AI_USAGE/recipes/form-on-demand.md +1 -1
- package/AI_USAGE.md +432 -88
- package/CHANGELOG.md +36 -0
- package/dist/_container/render-function.d.ts +2 -2
- package/dist/_styles/palette-aliases.d.ts +1 -0
- package/dist/components/_components/picker/input-range.vue.d.ts +1 -1
- package/dist/components/button/Button.d.ts +0 -9
- package/dist/components/button/appearance.d.ts +7 -0
- package/dist/components/button/index.d.ts +0 -16
- package/dist/components/button/props.d.ts +2 -6
- package/dist/components/color-picker/panel.d.ts +0 -9
- package/dist/components/date-picker/DatePanel.vue.d.ts +10 -1
- package/dist/components/date-picker/DatePicker.vue.d.ts +22 -25
- package/dist/components/date-picker/index.d.ts +156 -84
- package/dist/components/date-picker/utils.d.ts +4 -4
- package/dist/components/drawer/index.d.ts +0 -30
- package/dist/components/drawer/src/Drawer.vue.d.ts +0 -15
- package/dist/components/dropdown/Dropdown.vue.d.ts +1 -0
- package/dist/components/dropdown/DropdownButton.vue.d.ts +1 -15
- package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +1 -0
- package/dist/components/dropdown/context.d.ts +1 -0
- package/dist/components/dropdown/index.d.ts +8 -30
- package/dist/components/dropdown/use-keyboard.d.ts +1 -0
- package/dist/components/menu/MenuItem.d.ts +2 -2
- package/dist/components/menu/context.d.ts +3 -3
- package/dist/components/menu/index.d.ts +6 -6
- package/dist/components/menu/sub-menu-pop.vue.d.ts +2 -2
- package/dist/components/popconfirm/src/popup.vue.d.ts +0 -15
- package/dist/components/time-picker/TimePanel.vue.d.ts +0 -15
- package/dist/components/time-picker/TimePicker.vue.d.ts +1 -16
- package/dist/components/time-picker/index.d.ts +2 -32
- package/dist/es/_styles/palette-aliases.js +102 -17
- package/dist/es/_utils/palette.js +54 -54
- package/dist/es/components/_components/picker/input-range.vue.js +12 -12
- package/dist/es/components/_components/picker/input-range.vue2.js +45 -45
- package/dist/es/components/_components/picker/input.vue2.js +24 -24
- package/dist/es/components/button/Button.js +77 -49
- package/dist/es/components/button/appearance.js +7 -0
- package/dist/es/components/button/props.js +0 -4
- package/dist/es/components/date-picker/DatePanel.vue.js +47 -47
- package/dist/es/components/date-picker/DatePanel.vue2.js +68 -59
- package/dist/es/components/date-picker/DatePicker.vue.js +65 -59
- package/dist/es/components/date-picker/DatePicker.vue2.js +387 -284
- package/dist/es/components/date-picker/index.js +57 -36
- package/dist/es/components/date-picker/utils.js +132 -122
- package/dist/es/components/dialog/Dialog.js +43 -40
- package/dist/es/components/dialog/props.js +1 -1
- package/dist/es/components/dropdown/Dropdown.vue2.js +66 -50
- package/dist/es/components/dropdown/dropdown-panel.vue2.js +48 -43
- package/dist/es/components/dropdown/use-keyboard.js +36 -28
- package/dist/es/components/popover/Popover.js +72 -32
- package/dist/es/directives/wave.js +14 -8
- package/dist/es/style.css +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/style/alert.css +1 -1
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/color-picker.css +1 -1
- package/dist/style/date-picker.css +1 -1
- package/dist/style/dialog.css +1 -1
- package/dist/style/link.css +1 -1
- package/dist/style/message-box.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -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 C, mergeProps as f, withCtx as t, withKeys as v, withModifiers as R, createSlots as h, renderSlot as u, createVNode as p, createElementVNode as r, normalizeClass as l, createElementBlock as i, 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 K = ["id", "aria-label"], z = ["onClick"];
|
|
5
|
-
function
|
|
6
|
-
const y = g("IconCalendar"), I = g("DateRangeInput"), M = g("DateInput"),
|
|
7
|
-
return o(),
|
|
4
|
+
const K = ["id", "aria-label"], z = ["inert", "aria-disabled"], O = ["disabled"], W = ["disabled"], A = ["onClick"], H = ["disabled"];
|
|
5
|
+
function j(e, n, q, G, J, Q) {
|
|
6
|
+
const y = g("IconCalendar"), I = g("DateRangeInput"), M = g("DateInput"), b = g("DatePanel"), P = g("TimePanel"), E = g("Trigger");
|
|
7
|
+
return o(), C(E, f({
|
|
8
8
|
trigger: "click",
|
|
9
9
|
"animation-name": "x-fade-in",
|
|
10
10
|
"auto-fit-transform-origin": "",
|
|
@@ -21,7 +21,7 @@ function O(e, n, W, A, H, j) {
|
|
|
21
21
|
content: t(() => {
|
|
22
22
|
var w, k, D;
|
|
23
23
|
return [
|
|
24
|
-
|
|
24
|
+
r("div", {
|
|
25
25
|
ref: "popupRef",
|
|
26
26
|
id: e.panelId,
|
|
27
27
|
role: "dialog",
|
|
@@ -37,11 +37,11 @@ function O(e, n, W, A, H, j) {
|
|
|
37
37
|
}
|
|
38
38
|
])
|
|
39
39
|
}, [
|
|
40
|
-
e.isRange && (!e.isDateTime || e.rangePanelMode === "date") ? (o(),
|
|
40
|
+
e.isRange && (!e.isDateTime || e.rangePanelMode === "date") ? (o(), i("div", {
|
|
41
41
|
key: 0,
|
|
42
42
|
class: l(e.className.element("panels"))
|
|
43
43
|
}, [
|
|
44
|
-
p(
|
|
44
|
+
p(b, {
|
|
45
45
|
mode: e.mode,
|
|
46
46
|
"range-value": e.rangePanelValue,
|
|
47
47
|
"preview-range-value": e.previewRangeValue,
|
|
@@ -62,16 +62,16 @@ function O(e, n, W, A, H, j) {
|
|
|
62
62
|
}, h({ _: 2 }, [
|
|
63
63
|
e.$slots.cell ? {
|
|
64
64
|
name: "cell",
|
|
65
|
-
fn: t(({ date: a, label:
|
|
65
|
+
fn: t(({ date: a, label: s }) => [
|
|
66
66
|
u(e.$slots, "cell", {
|
|
67
67
|
date: a,
|
|
68
|
-
label:
|
|
68
|
+
label: s
|
|
69
69
|
})
|
|
70
70
|
]),
|
|
71
71
|
key: "0"
|
|
72
72
|
} : void 0
|
|
73
73
|
]), 1032, ["mode", "range-value", "preview-range-value", "view-date", "day-start-of-week", "disabled-date", "show-lunar", "onSelect", "onCellMouseEnter", "onCellMouseLeave", "onCancel"]),
|
|
74
|
-
p(
|
|
74
|
+
p(b, {
|
|
75
75
|
mode: e.mode,
|
|
76
76
|
"range-value": e.rangePanelValue,
|
|
77
77
|
"preview-range-value": e.previewRangeValue,
|
|
@@ -92,50 +92,52 @@ function O(e, n, W, A, H, j) {
|
|
|
92
92
|
}, h({ _: 2 }, [
|
|
93
93
|
e.$slots.cell ? {
|
|
94
94
|
name: "cell",
|
|
95
|
-
fn: t(({ date: a, label:
|
|
95
|
+
fn: t(({ date: a, label: s }) => [
|
|
96
96
|
u(e.$slots, "cell", {
|
|
97
97
|
date: a,
|
|
98
|
-
label:
|
|
98
|
+
label: s
|
|
99
99
|
})
|
|
100
100
|
]),
|
|
101
101
|
key: "0"
|
|
102
102
|
} : void 0
|
|
103
103
|
]), 1032, ["mode", "range-value", "preview-range-value", "view-date", "day-start-of-week", "disabled-date", "show-lunar", "onSelect", "onCellMouseEnter", "onCellMouseLeave", "onCancel"])
|
|
104
104
|
], 2)) : d("", !0),
|
|
105
|
-
e.isRange && e.isDateTime && e.rangePanelMode === "time" ? (o(),
|
|
105
|
+
e.isRange && e.isDateTime && e.rangePanelMode === "time" ? (o(), i("div", {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: l(e.className.element("range-time-panel"))
|
|
108
108
|
}, [
|
|
109
|
-
(o(),
|
|
109
|
+
(o(), i(S, null, $(2, (a, s) => {
|
|
110
110
|
var V, N, T;
|
|
111
|
-
return
|
|
112
|
-
key:
|
|
111
|
+
return r("div", {
|
|
112
|
+
key: s,
|
|
113
|
+
inert: e.rangeDisabled[s] || void 0,
|
|
114
|
+
"aria-disabled": e.rangeDisabled[s] || void 0,
|
|
113
115
|
class: l([
|
|
114
116
|
e.className.element("range-time-column"),
|
|
115
|
-
{ [e.className.is("active")]: e.focusedIndex ===
|
|
117
|
+
{ [e.className.is("active")]: e.focusedIndex === s }
|
|
116
118
|
])
|
|
117
119
|
}, [
|
|
118
|
-
|
|
120
|
+
r("div", {
|
|
119
121
|
class: l(e.className.element("time-title"))
|
|
120
122
|
}, m(e.t("datePicker.selectTime")), 3),
|
|
121
|
-
p(
|
|
122
|
-
value: e.rangePanelValue[
|
|
123
|
+
p(P, f({
|
|
124
|
+
value: e.rangePanelValue[s],
|
|
123
125
|
format: e.timeFormat,
|
|
124
126
|
"use12-hours": (V = e.timePickerProps) == null ? void 0 : V.use12Hours,
|
|
125
127
|
step: (N = e.timePickerProps) == null ? void 0 : N.step
|
|
126
|
-
}, { ref_for: !0 }, e.getDisabledTimeProps(e.rangePanelValue[
|
|
128
|
+
}, { ref_for: !0 }, e.getDisabledTimeProps(e.rangePanelValue[s], s === 0 ? "start" : "end"), {
|
|
127
129
|
"hide-disabled-options": (T = e.timePickerProps) == null ? void 0 : T.hideDisabledOptions,
|
|
128
130
|
"hide-footer": "",
|
|
129
|
-
onSelect: (F) => e.handleTimeSelect(F,
|
|
131
|
+
onSelect: (F) => e.handleTimeSelect(F, s)
|
|
130
132
|
}), null, 16, ["value", "format", "use12-hours", "step", "hide-disabled-options", "onSelect"])
|
|
131
|
-
],
|
|
133
|
+
], 10, z);
|
|
132
134
|
}), 64))
|
|
133
135
|
], 2)) : d("", !0),
|
|
134
|
-
e.isRange ? d("", !0) : (o(),
|
|
136
|
+
e.isRange ? d("", !0) : (o(), i("div", {
|
|
135
137
|
key: 2,
|
|
136
138
|
class: l([{ [e.className.element("datetime-body")]: e.isDateTime }])
|
|
137
139
|
}, [
|
|
138
|
-
p(
|
|
140
|
+
p(b, {
|
|
139
141
|
mode: e.mode,
|
|
140
142
|
value: e.singlePanelValue,
|
|
141
143
|
"range-value": e.rangePanelValue,
|
|
@@ -149,6 +151,7 @@ function O(e, n, W, A, H, j) {
|
|
|
149
151
|
shortcuts: e.shortcuts,
|
|
150
152
|
"show-today": !e.isDateTime && e.showToday,
|
|
151
153
|
"show-confirm-btn": !e.isDateTime && e.needConfirm,
|
|
154
|
+
"confirm-disabled": !e.canConfirm,
|
|
152
155
|
onSelect: e.handlePanelSelect,
|
|
153
156
|
onCellMouseEnter: e.handlePanelCellMouseEnter,
|
|
154
157
|
onCellMouseLeave: e.handlePanelCellMouseLeave,
|
|
@@ -159,10 +162,10 @@ function O(e, n, W, A, H, j) {
|
|
|
159
162
|
}, h({ _: 2 }, [
|
|
160
163
|
e.$slots.cell ? {
|
|
161
164
|
name: "cell",
|
|
162
|
-
fn: t(({ date: a, label:
|
|
165
|
+
fn: t(({ date: a, label: s }) => [
|
|
163
166
|
u(e.$slots, "cell", {
|
|
164
167
|
date: a,
|
|
165
|
-
label:
|
|
168
|
+
label: s
|
|
166
169
|
})
|
|
167
170
|
]),
|
|
168
171
|
key: "0"
|
|
@@ -174,15 +177,15 @@ function O(e, n, W, A, H, j) {
|
|
|
174
177
|
]),
|
|
175
178
|
key: "1"
|
|
176
179
|
} : void 0
|
|
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"]),
|
|
178
|
-
e.isDateTime ? (o(),
|
|
180
|
+
]), 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", "confirm-disabled", "onSelect", "onCellMouseEnter", "onCellMouseLeave", "onViewDateChange", "onShortcut", "onConfirm", "onCancel"]),
|
|
181
|
+
e.isDateTime ? (o(), i("div", {
|
|
179
182
|
key: 0,
|
|
180
183
|
class: l(e.className.element("time-side"))
|
|
181
184
|
}, [
|
|
182
|
-
|
|
185
|
+
r("div", {
|
|
183
186
|
class: l(e.className.element("time-title"))
|
|
184
187
|
}, m(e.t("datePicker.selectTime")), 3),
|
|
185
|
-
p(
|
|
188
|
+
p(P, f({
|
|
186
189
|
value: e.singlePanelValue,
|
|
187
190
|
format: e.timeFormat,
|
|
188
191
|
"use12-hours": (w = e.timePickerProps) == null ? void 0 : w.use12Hours,
|
|
@@ -194,28 +197,30 @@ function O(e, n, W, A, H, j) {
|
|
|
194
197
|
}), null, 16, ["value", "format", "use12-hours", "step", "hide-disabled-options"])
|
|
195
198
|
], 2)) : d("", !0)
|
|
196
199
|
], 2)),
|
|
197
|
-
!e.isRange && e.isDateTime && (e.showToday || e.needConfirm) ? (o(),
|
|
200
|
+
!e.isRange && e.isDateTime && (e.showToday || e.needConfirm) ? (o(), i("div", {
|
|
198
201
|
key: 3,
|
|
199
202
|
class: l(e.className.element("datetime-footer"))
|
|
200
203
|
}, [
|
|
201
|
-
e.showToday ? (o(),
|
|
204
|
+
e.showToday ? (o(), i("button", {
|
|
202
205
|
key: 0,
|
|
203
206
|
type: "button",
|
|
204
207
|
class: l([e.className.element("footer-btn"), e.className.element("today")]),
|
|
208
|
+
disabled: e.todayDisabled,
|
|
205
209
|
onClick: n[3] || (n[3] = (...a) => e.handleToday && e.handleToday(...a))
|
|
206
|
-
}, m(e.t("datePicker.today")),
|
|
207
|
-
e.needConfirm ? (o(),
|
|
210
|
+
}, m(e.t("datePicker.today")), 11, O)) : d("", !0),
|
|
211
|
+
e.needConfirm ? (o(), i("button", {
|
|
208
212
|
key: 1,
|
|
209
213
|
type: "button",
|
|
210
214
|
class: l([e.className.element("footer-btn"), e.className.element("confirm")]),
|
|
215
|
+
disabled: !e.canConfirm,
|
|
211
216
|
onClick: n[4] || (n[4] = (...a) => e.handleConfirm && e.handleConfirm(...a))
|
|
212
|
-
}, m(e.t("datePicker.ok")),
|
|
217
|
+
}, m(e.t("datePicker.ok")), 11, W)) : d("", !0)
|
|
213
218
|
], 2)) : d("", !0),
|
|
214
|
-
e.isRange && e.isDateTime ? (o(),
|
|
219
|
+
e.isRange && e.isDateTime ? (o(), i("div", {
|
|
215
220
|
key: 4,
|
|
216
221
|
class: l(e.className.element("range-datetime-footer"))
|
|
217
222
|
}, [
|
|
218
|
-
|
|
223
|
+
r("button", {
|
|
219
224
|
type: "button",
|
|
220
225
|
class: l([
|
|
221
226
|
e.className.element("range-datetime-item"),
|
|
@@ -223,9 +228,9 @@ function O(e, n, W, A, H, j) {
|
|
|
223
228
|
]),
|
|
224
229
|
onClick: n[5] || (n[5] = (a) => e.openRangeDatePanel(0))
|
|
225
230
|
}, [
|
|
226
|
-
|
|
231
|
+
r("span", null, m(e.formatTimeDate(e.rangePanelValue[0])), 1)
|
|
227
232
|
], 2),
|
|
228
|
-
|
|
233
|
+
r("button", {
|
|
229
234
|
type: "button",
|
|
230
235
|
class: l([
|
|
231
236
|
e.className.element("range-datetime-item"),
|
|
@@ -233,9 +238,9 @@ function O(e, n, W, A, H, j) {
|
|
|
233
238
|
]),
|
|
234
239
|
onClick: n[6] || (n[6] = (a) => e.openRangeTimePanel(0))
|
|
235
240
|
}, [
|
|
236
|
-
|
|
241
|
+
r("strong", null, m(e.formatTimeValue(e.rangePanelValue[0])), 1)
|
|
237
242
|
], 2),
|
|
238
|
-
|
|
243
|
+
r("button", {
|
|
239
244
|
type: "button",
|
|
240
245
|
class: l([
|
|
241
246
|
e.className.element("range-datetime-item"),
|
|
@@ -243,9 +248,9 @@ function O(e, n, W, A, H, j) {
|
|
|
243
248
|
]),
|
|
244
249
|
onClick: n[7] || (n[7] = (a) => e.openRangeDatePanel(1))
|
|
245
250
|
}, [
|
|
246
|
-
|
|
251
|
+
r("span", null, m(e.formatTimeDate(e.rangePanelValue[1])), 1)
|
|
247
252
|
], 2),
|
|
248
|
-
|
|
253
|
+
r("button", {
|
|
249
254
|
type: "button",
|
|
250
255
|
class: l([
|
|
251
256
|
e.className.element("range-datetime-item"),
|
|
@@ -253,42 +258,43 @@ function O(e, n, W, A, H, j) {
|
|
|
253
258
|
]),
|
|
254
259
|
onClick: n[8] || (n[8] = (a) => e.openRangeTimePanel(1))
|
|
255
260
|
}, [
|
|
256
|
-
|
|
261
|
+
r("strong", null, m(e.formatTimeValue(e.rangePanelValue[1])), 1)
|
|
257
262
|
], 2)
|
|
258
263
|
], 2)) : d("", !0),
|
|
259
|
-
e.isRange && (e.shortcuts.length || e.$slots.extra || e.needConfirm) ? (o(),
|
|
264
|
+
e.isRange && (e.shortcuts.length || e.$slots.extra || e.needConfirm) ? (o(), i("div", {
|
|
260
265
|
key: 5,
|
|
261
266
|
class: l(e.className.element("range-footer"))
|
|
262
267
|
}, [
|
|
263
|
-
e.shortcuts.length || e.$slots.extra ? (o(),
|
|
268
|
+
e.shortcuts.length || e.$slots.extra ? (o(), i("div", {
|
|
264
269
|
key: 0,
|
|
265
270
|
class: l(e.className.element("range-shortcuts"))
|
|
266
271
|
}, [
|
|
267
|
-
(o(!0),
|
|
272
|
+
(o(!0), i(S, null, $(e.shortcuts, (a) => (o(), i("button", {
|
|
268
273
|
key: String(a.label),
|
|
269
274
|
type: "button",
|
|
270
275
|
class: l(e.className.element("shortcut")),
|
|
271
|
-
onClick: (
|
|
272
|
-
}, m(a.label), 11,
|
|
273
|
-
e.$slots.extra ? (o(),
|
|
276
|
+
onClick: (s) => e.handleShortcut(a)
|
|
277
|
+
}, m(a.label), 11, A))), 128)),
|
|
278
|
+
e.$slots.extra ? (o(), i("div", {
|
|
274
279
|
key: 0,
|
|
275
280
|
class: l(e.className.element("extra"))
|
|
276
281
|
}, [
|
|
277
282
|
u(e.$slots, "extra")
|
|
278
283
|
], 2)) : d("", !0)
|
|
279
284
|
], 2)) : d("", !0),
|
|
280
|
-
e.needConfirm ? (o(),
|
|
285
|
+
e.needConfirm ? (o(), i("button", {
|
|
281
286
|
key: 1,
|
|
282
287
|
type: "button",
|
|
283
288
|
class: l([e.className.element("footer-btn"), e.className.element("confirm")]),
|
|
289
|
+
disabled: !e.canConfirm,
|
|
284
290
|
onClick: n[9] || (n[9] = (...a) => e.handleConfirm && e.handleConfirm(...a))
|
|
285
|
-
}, m(e.t("datePicker.ok")),
|
|
291
|
+
}, m(e.t("datePicker.ok")), 11, H)) : d("", !0)
|
|
286
292
|
], 2)) : d("", !0)
|
|
287
293
|
], 42, K)
|
|
288
294
|
];
|
|
289
295
|
}),
|
|
290
296
|
default: t(() => [
|
|
291
|
-
e.isRange ? (o(),
|
|
297
|
+
e.isRange ? (o(), C(I, f({
|
|
292
298
|
key: 0,
|
|
293
299
|
ref: "inputRef"
|
|
294
300
|
}, e.inputAttrs, {
|
|
@@ -312,7 +318,7 @@ function O(e, n, W, A, H, j) {
|
|
|
312
318
|
disabled: e.rangeDisabled,
|
|
313
319
|
readonly: e.mergedInputReadonly,
|
|
314
320
|
error: e.mergedError,
|
|
315
|
-
"allow-clear": e.allowClear && !e.mergedInputReadonly,
|
|
321
|
+
"allow-clear": e.allowClear && !e.mergedInputReadonly && !e.hasDisabledRange,
|
|
316
322
|
"clear-target-key": "common.dateRange",
|
|
317
323
|
placeholder: e.rangePlaceholder,
|
|
318
324
|
onFocusedIndexChange: e.handleFocusedIndexChange,
|
|
@@ -347,7 +353,7 @@ function O(e, n, W, A, H, j) {
|
|
|
347
353
|
]),
|
|
348
354
|
key: "1"
|
|
349
355
|
} : void 0
|
|
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(),
|
|
356
|
+
]), 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(), C(M, f({
|
|
351
357
|
key: 1,
|
|
352
358
|
ref: "inputRef"
|
|
353
359
|
}, e.inputAttrs, {
|
|
@@ -397,7 +403,7 @@ function O(e, n, W, A, H, j) {
|
|
|
397
403
|
_: 3
|
|
398
404
|
}, 16, ["position", "disabled", "popup-visible", "unmount-on-close", "popup-container", "content-class", "onPopupVisibleChange"]);
|
|
399
405
|
}
|
|
400
|
-
const
|
|
406
|
+
const Z = /* @__PURE__ */ B(L, [["render", j]]);
|
|
401
407
|
export {
|
|
402
|
-
|
|
408
|
+
Z as default
|
|
403
409
|
};
|