x-next 1.18.0 → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/AI_USAGE/catalog.md +1 -1
  2. package/AI_USAGE/components/alert-api.md +1 -1
  3. package/AI_USAGE/components/alert.md +1 -1
  4. package/AI_USAGE/components/bar-chart-api.md +1 -1
  5. package/AI_USAGE/components/bar-chart.md +1 -1
  6. package/AI_USAGE/components/boxicons.md +1 -1
  7. package/AI_USAGE/components/button-api.md +1 -1
  8. package/AI_USAGE/components/button.md +4 -4
  9. package/AI_USAGE/components/charts.md +1 -1
  10. package/AI_USAGE/components/checkbox-api.md +1 -1
  11. package/AI_USAGE/components/checkbox.md +1 -1
  12. package/AI_USAGE/components/color-picker-api.md +1 -1
  13. package/AI_USAGE/components/color-picker.md +1 -1
  14. package/AI_USAGE/components/config-provider-api.md +1 -1
  15. package/AI_USAGE/components/config-provider.md +1 -1
  16. package/AI_USAGE/components/date-picker-api.md +44 -26
  17. package/AI_USAGE/components/date-picker.md +78 -3
  18. package/AI_USAGE/components/dialog-api.md +2 -2
  19. package/AI_USAGE/components/dialog.md +5 -1
  20. package/AI_USAGE/components/draggable-api.md +1 -1
  21. package/AI_USAGE/components/draggable.md +1 -1
  22. package/AI_USAGE/components/drawer-api.md +1 -1
  23. package/AI_USAGE/components/drawer.md +1 -1
  24. package/AI_USAGE/components/dropdown-api.md +6 -1
  25. package/AI_USAGE/components/dropdown.md +2 -2
  26. package/AI_USAGE/components/empty-api.md +1 -1
  27. package/AI_USAGE/components/empty.md +1 -1
  28. package/AI_USAGE/components/finicon.md +1 -1
  29. package/AI_USAGE/components/form-api.md +1 -1
  30. package/AI_USAGE/components/form.md +1 -1
  31. package/AI_USAGE/components/grid-api.md +1 -1
  32. package/AI_USAGE/components/grid.md +1 -1
  33. package/AI_USAGE/components/heatmap-api.md +1 -1
  34. package/AI_USAGE/components/heatmap.md +1 -1
  35. package/AI_USAGE/components/icon-api.md +1 -1
  36. package/AI_USAGE/components/icon.md +1 -1
  37. package/AI_USAGE/components/image-api.md +1 -1
  38. package/AI_USAGE/components/image.md +1 -1
  39. package/AI_USAGE/components/input-api.md +1 -1
  40. package/AI_USAGE/components/input-number-api.md +1 -1
  41. package/AI_USAGE/components/input-number.md +1 -1
  42. package/AI_USAGE/components/input-tag-api.md +1 -1
  43. package/AI_USAGE/components/input-tag.md +1 -1
  44. package/AI_USAGE/components/input.md +1 -1
  45. package/AI_USAGE/components/layout-api.md +1 -1
  46. package/AI_USAGE/components/layout.md +1 -1
  47. package/AI_USAGE/components/line-chart-api.md +1 -1
  48. package/AI_USAGE/components/line-chart.md +1 -1
  49. package/AI_USAGE/components/link-api.md +1 -1
  50. package/AI_USAGE/components/link.md +1 -1
  51. package/AI_USAGE/components/menu-api.md +1 -1
  52. package/AI_USAGE/components/menu.md +1 -1
  53. package/AI_USAGE/components/message-api.md +1 -1
  54. package/AI_USAGE/components/message-box-api.md +1 -1
  55. package/AI_USAGE/components/message-box.md +1 -1
  56. package/AI_USAGE/components/message.md +1 -1
  57. package/AI_USAGE/components/network-api.md +1 -1
  58. package/AI_USAGE/components/network.md +1 -1
  59. package/AI_USAGE/components/notification-api.md +1 -1
  60. package/AI_USAGE/components/notification.md +1 -1
  61. package/AI_USAGE/components/pagination-api.md +1 -1
  62. package/AI_USAGE/components/pagination.md +1 -1
  63. package/AI_USAGE/components/pie-chart-api.md +1 -1
  64. package/AI_USAGE/components/pie-chart.md +1 -1
  65. package/AI_USAGE/components/popconfirm-api.md +1 -1
  66. package/AI_USAGE/components/popconfirm.md +1 -1
  67. package/AI_USAGE/components/popover-api.md +1 -1
  68. package/AI_USAGE/components/popover.md +3 -1
  69. package/AI_USAGE/components/popup-api.md +1 -1
  70. package/AI_USAGE/components/popup.md +1 -1
  71. package/AI_USAGE/components/progress-api.md +1 -1
  72. package/AI_USAGE/components/progress.md +1 -1
  73. package/AI_USAGE/components/radio-api.md +1 -1
  74. package/AI_USAGE/components/radio.md +1 -1
  75. package/AI_USAGE/components/rate-api.md +1 -1
  76. package/AI_USAGE/components/rate.md +1 -1
  77. package/AI_USAGE/components/resize-box-api.md +1 -1
  78. package/AI_USAGE/components/resize-box.md +1 -1
  79. package/AI_USAGE/components/scrollbar-api.md +1 -1
  80. package/AI_USAGE/components/scrollbar.md +1 -1
  81. package/AI_USAGE/components/select-api.md +1 -1
  82. package/AI_USAGE/components/select.md +1 -1
  83. package/AI_USAGE/components/skeleton-api.md +1 -1
  84. package/AI_USAGE/components/skeleton.md +1 -1
  85. package/AI_USAGE/components/slider-api.md +1 -1
  86. package/AI_USAGE/components/slider.md +1 -1
  87. package/AI_USAGE/components/space-api.md +1 -1
  88. package/AI_USAGE/components/space.md +1 -1
  89. package/AI_USAGE/components/spin-api.md +1 -1
  90. package/AI_USAGE/components/spin.md +1 -1
  91. package/AI_USAGE/components/steps-api.md +1 -1
  92. package/AI_USAGE/components/steps.md +1 -1
  93. package/AI_USAGE/components/switch-api.md +1 -1
  94. package/AI_USAGE/components/switch.md +1 -1
  95. package/AI_USAGE/components/table-api.md +1 -1
  96. package/AI_USAGE/components/table.md +1 -1
  97. package/AI_USAGE/components/tabs-api.md +1 -1
  98. package/AI_USAGE/components/tabs.md +1 -1
  99. package/AI_USAGE/components/tag-api.md +1 -1
  100. package/AI_USAGE/components/tag.md +1 -1
  101. package/AI_USAGE/components/textarea-api.md +1 -1
  102. package/AI_USAGE/components/textarea.md +1 -1
  103. package/AI_USAGE/components/time-picker-api.md +1 -1
  104. package/AI_USAGE/components/time-picker.md +1 -1
  105. package/AI_USAGE/components/time-range-selector-api.md +1 -1
  106. package/AI_USAGE/components/time-range-selector.md +1 -1
  107. package/AI_USAGE/components/timeline-api.md +1 -1
  108. package/AI_USAGE/components/timeline.md +1 -1
  109. package/AI_USAGE/components/tooltip-api.md +1 -1
  110. package/AI_USAGE/components/tooltip.md +1 -1
  111. package/AI_USAGE/components/transfer-api.md +1 -1
  112. package/AI_USAGE/components/transfer.md +1 -1
  113. package/AI_USAGE/components/tree-select-api.md +1 -1
  114. package/AI_USAGE/components/tree-select.md +1 -1
  115. package/AI_USAGE/components/trend-chart-api.md +1 -1
  116. package/AI_USAGE/components/trend-chart.md +1 -1
  117. package/AI_USAGE/components/trigger-api.md +1 -1
  118. package/AI_USAGE/components/trigger.md +1 -1
  119. package/AI_USAGE/components/upload-api.md +1 -1
  120. package/AI_USAGE/components/upload.md +1 -1
  121. package/AI_USAGE/components/watermark-api.md +1 -1
  122. package/AI_USAGE/components/watermark.md +1 -1
  123. package/AI_USAGE/core.md +1 -1
  124. package/AI_USAGE/index.md +1 -1
  125. package/AI_USAGE/recipes/form-on-demand.md +1 -1
  126. package/AI_USAGE.md +138 -34
  127. package/CHANGELOG.md +28 -0
  128. package/README.md +108 -212
  129. package/dist/_container/render-function.d.ts +2 -2
  130. package/dist/components/_components/picker/input-range.vue.d.ts +1 -1
  131. package/dist/components/date-picker/DatePanel.vue.d.ts +10 -1
  132. package/dist/components/date-picker/DatePicker.vue.d.ts +22 -10
  133. package/dist/components/date-picker/index.d.ts +156 -54
  134. package/dist/components/date-picker/utils.d.ts +4 -4
  135. package/dist/components/dropdown/Dropdown.vue.d.ts +1 -0
  136. package/dist/components/dropdown/DropdownButton.vue.d.ts +1 -0
  137. package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +1 -0
  138. package/dist/components/dropdown/context.d.ts +1 -0
  139. package/dist/components/dropdown/index.d.ts +8 -0
  140. package/dist/components/dropdown/use-keyboard.d.ts +1 -0
  141. package/dist/components/menu/MenuItem.d.ts +2 -2
  142. package/dist/components/menu/context.d.ts +3 -3
  143. package/dist/components/menu/index.d.ts +6 -6
  144. package/dist/components/menu/sub-menu-pop.vue.d.ts +2 -2
  145. package/dist/components/time-picker/TimePicker.vue.d.ts +1 -1
  146. package/dist/components/time-picker/index.d.ts +2 -2
  147. package/dist/es/components/_components/picker/input-range.vue.js +12 -12
  148. package/dist/es/components/_components/picker/input-range.vue2.js +45 -45
  149. package/dist/es/components/_components/picker/input.vue2.js +24 -24
  150. package/dist/es/components/date-picker/DatePanel.vue.js +47 -47
  151. package/dist/es/components/date-picker/DatePanel.vue2.js +68 -59
  152. package/dist/es/components/date-picker/DatePicker.vue.js +65 -59
  153. package/dist/es/components/date-picker/DatePicker.vue2.js +387 -284
  154. package/dist/es/components/date-picker/index.js +57 -36
  155. package/dist/es/components/date-picker/utils.js +132 -122
  156. package/dist/es/components/dialog/Dialog.js +43 -40
  157. package/dist/es/components/dialog/props.js +1 -1
  158. package/dist/es/components/dropdown/Dropdown.vue2.js +66 -50
  159. package/dist/es/components/dropdown/dropdown-panel.vue2.js +48 -43
  160. package/dist/es/components/dropdown/use-keyboard.js +36 -28
  161. package/dist/es/components/popover/Popover.js +72 -32
  162. package/dist/es/style.css +1 -1
  163. package/dist/index.cjs +3 -3
  164. package/dist/index.umd.js +3 -3
  165. package/dist/style/button.css +1 -1
  166. package/dist/style/date-picker.css +1 -1
  167. package/dist/style/dialog.css +1 -1
  168. package/dist/style/message-box.css +1 -1
  169. package/dist/style.css +1 -1
  170. 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 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";
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 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({
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
- i("div", {
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(), s("div", {
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(C, {
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: r }) => [
65
+ fn: t(({ date: a, label: s }) => [
66
66
  u(e.$slots, "cell", {
67
67
  date: a,
68
- label: r
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(C, {
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: r }) => [
95
+ fn: t(({ date: a, label: s }) => [
96
96
  u(e.$slots, "cell", {
97
97
  date: a,
98
- label: r
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(), s("div", {
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(), s(S, null, $(2, (a, r) => {
109
+ (o(), i(S, null, $(2, (a, s) => {
110
110
  var V, N, T;
111
- return i("div", {
112
- key: r,
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 === r }
117
+ { [e.className.is("active")]: e.focusedIndex === s }
116
118
  ])
117
119
  }, [
118
- i("div", {
120
+ r("div", {
119
121
  class: l(e.className.element("time-title"))
120
122
  }, m(e.t("datePicker.selectTime")), 3),
121
- p(b, f({
122
- value: e.rangePanelValue[r],
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[r], r === 0 ? "start" : "end"), {
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, r)
131
+ onSelect: (F) => e.handleTimeSelect(F, s)
130
132
  }), null, 16, ["value", "format", "use12-hours", "step", "hide-disabled-options", "onSelect"])
131
- ], 2);
133
+ ], 10, z);
132
134
  }), 64))
133
135
  ], 2)) : d("", !0),
134
- e.isRange ? d("", !0) : (o(), s("div", {
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(C, {
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: r }) => [
165
+ fn: t(({ date: a, label: s }) => [
163
166
  u(e.$slots, "cell", {
164
167
  date: a,
165
- label: r
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(), s("div", {
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
- i("div", {
185
+ r("div", {
183
186
  class: l(e.className.element("time-title"))
184
187
  }, m(e.t("datePicker.selectTime")), 3),
185
- p(b, f({
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(), s("div", {
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(), s("button", {
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")), 3)) : d("", !0),
207
- e.needConfirm ? (o(), s("button", {
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")), 3)) : d("", !0)
217
+ }, m(e.t("datePicker.ok")), 11, W)) : d("", !0)
213
218
  ], 2)) : d("", !0),
214
- e.isRange && e.isDateTime ? (o(), s("div", {
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
- i("button", {
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
- i("span", null, m(e.formatTimeDate(e.rangePanelValue[0])), 1)
231
+ r("span", null, m(e.formatTimeDate(e.rangePanelValue[0])), 1)
227
232
  ], 2),
228
- i("button", {
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
- i("strong", null, m(e.formatTimeValue(e.rangePanelValue[0])), 1)
241
+ r("strong", null, m(e.formatTimeValue(e.rangePanelValue[0])), 1)
237
242
  ], 2),
238
- i("button", {
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
- i("span", null, m(e.formatTimeDate(e.rangePanelValue[1])), 1)
251
+ r("span", null, m(e.formatTimeDate(e.rangePanelValue[1])), 1)
247
252
  ], 2),
248
- i("button", {
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
- i("strong", null, m(e.formatTimeValue(e.rangePanelValue[1])), 1)
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(), s("div", {
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(), s("div", {
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), s(S, null, $(e.shortcuts, (a) => (o(), s("button", {
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: (r) => e.handleShortcut(a)
272
- }, m(a.label), 11, z))), 128)),
273
- e.$slots.extra ? (o(), s("div", {
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(), s("button", {
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")), 3)) : d("", !0)
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(), P(I, f({
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(), P(M, f({
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 Q = /* @__PURE__ */ B(L, [["render", O]]);
406
+ const Z = /* @__PURE__ */ B(L, [["render", j]]);
401
407
  export {
402
- Q as default
408
+ Z as default
403
409
  };