x-next 1.3.1 → 1.5.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/AI_USAGE.md +2 -2
- package/CHANGELOG.md +71 -0
- package/dist/_utils/constant.d.ts +1 -1
- package/dist/_utils/palette.d.ts +6 -14
- package/dist/components/alert/Alert.vue.d.ts +9 -9
- package/dist/components/alert/index.d.ts +6 -6
- package/dist/components/button/ButtonGroup.vue.d.ts +22 -18
- package/dist/components/date-picker/DatePanel.vue.d.ts +342 -1
- package/dist/components/date-picker/DatePicker.vue.d.ts +343 -2
- package/dist/components/date-picker/index.d.ts +1765 -1083
- package/dist/components/dropdown/DropdownButton.vue.d.ts +2 -1
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/form-input-tag/index.d.ts +26 -25
- package/dist/components/form-input-tag/interface.d.ts +8 -0
- package/dist/components/link/Link.vue.d.ts +4 -4
- package/dist/components/link/index.d.ts +6 -6
- package/dist/components/message/index.d.ts +3 -3
- package/dist/components/message/message.vue.d.ts +1 -1
- package/dist/components/notification/Notification.d.ts +1 -1
- package/dist/components/notification/index.d.ts +3 -3
- package/dist/components/popconfirm/src/types.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +3 -3
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/steps/context.d.ts +9 -0
- package/dist/components/tabs/TabPane.vue.d.ts +2 -0
- package/dist/components/tabs/index.d.ts +6 -0
- package/dist/components/tabs/interface.d.ts +4 -0
- package/dist/components/tag/Tag.vue.d.ts +14 -0
- package/dist/components/tag/index.d.ts +9 -0
- package/dist/components/tag/interface.d.ts +5 -0
- package/dist/components/trend-chart/components/TrendChart.d.ts +127 -17
- package/dist/components/trend-chart/components/trend-chart-curve.d.ts +27 -7
- package/dist/components/trend-chart/components/trend-chart-labels.d.ts +4 -0
- package/dist/components/trend-chart/helpers/getPadding.d.ts +3 -2
- package/dist/components/trend-chart/index.d.ts +223 -28
- package/dist/components/trend-chart/props.d.ts +63 -5
- package/dist/es/_styles/palette-aliases.js +182 -127
- package/dist/es/_utils/palette.js +49 -43
- package/dist/es/components/_components/picker/input-range.vue2.js +10 -10
- package/dist/es/components/_components/picker/input.vue2.js +20 -20
- package/dist/es/components/_components/select-view/select-view.js +2 -2
- package/dist/es/components/alert/Alert.vue.js +2 -2
- package/dist/es/components/alert/Alert.vue2.js +21 -20
- package/dist/es/components/button/Button.js +17 -17
- package/dist/es/components/button/ButtonGroup.vue2.js +11 -9
- package/dist/es/components/date-picker/DatePanel.vue.js +71 -62
- package/dist/es/components/date-picker/DatePanel.vue2.js +50 -40
- package/dist/es/components/date-picker/DatePicker.vue2.js +1 -1
- package/dist/es/components/dropdown/Dropdown.vue2.js +11 -4
- package/dist/es/components/dropdown/DropdownButton.vue.js +8 -7
- package/dist/es/components/dropdown/DropdownButton.vue2.js +19 -17
- package/dist/es/components/dropdown/DropdownSubmenu.vue.js +18 -17
- package/dist/es/components/form/form-item-label.vue.js +25 -22
- package/dist/es/components/form/form-item-label.vue2.js +1 -1
- package/dist/es/components/form-checkbox/icon-check.js +12 -43
- package/dist/es/components/form-input/InputPassword.vue2.js +2 -2
- package/dist/es/components/form-input/InputSearch.js +1 -1
- package/dist/es/components/form-input-number/InputNumber.js +4 -4
- package/dist/es/components/form-input-tag/InputTag.js +168 -147
- package/dist/es/components/form-input-tag/utils.js +21 -19
- package/dist/es/components/form-textarea/Textarea.vue2.js +1 -1
- package/dist/es/components/link/Link.vue2.js +1 -1
- package/dist/es/components/menu/MenuSubMenu.js +50 -36
- package/dist/es/components/menu/sub-menu-pop.vue2.js +30 -30
- package/dist/es/components/pagination/Pagination.js +73 -70
- package/dist/es/components/popconfirm/src/popup.vue.js +1 -1
- package/dist/es/components/progress/Progress.vue2.js +1 -1
- package/dist/es/components/steps/Step.vue2.js +51 -47
- package/dist/es/components/steps/Steps.vue2.js +22 -19
- package/dist/es/components/table/Table.js +1 -1
- package/dist/es/components/table/table-th.js +2 -2
- package/dist/es/components/tabs/TabPane.vue.js +11 -9
- package/dist/es/components/tabs/TabPane.vue2.js +28 -24
- package/dist/es/components/tabs/tabs-button.js +2 -2
- package/dist/es/components/tabs/tabs-nav.js +21 -19
- package/dist/es/components/tabs/tabs-tab.vue.js +10 -8
- package/dist/es/components/tag/Tag.vue.js +20 -20
- package/dist/es/components/tag/Tag.vue2.js +35 -28
- package/dist/es/components/time-picker/TimePanel.vue.js +30 -29
- package/dist/es/components/time-picker/TimePicker.vue2.js +1 -1
- package/dist/es/components/time-picker/TimeRangePanel.js +26 -23
- package/dist/es/components/trend-chart/components/TrendChart.js +208 -142
- package/dist/es/components/trend-chart/components/trend-chart-curve.js +124 -59
- package/dist/es/components/trend-chart/components/trend-chart-labels.js +43 -41
- package/dist/es/components/trend-chart/helpers/getPadding.js +3 -3
- package/dist/es/components/trend-chart/props.js +101 -33
- package/dist/es/components/trend-chart/themes.js +15 -15
- package/dist/es/components/watermark/controller.js +40 -40
- package/dist/es/icons/default/calendar.js +15 -0
- package/dist/es/icons/default/clock-circle.js +15 -0
- package/dist/es/icons/default/double-left.js +15 -0
- package/dist/es/icons/default/double-right.js +15 -0
- package/dist/es/icons/default/down.js +16 -0
- package/dist/es/icons/default/eye-invisible.js +20 -0
- package/dist/es/icons/default/eye.js +18 -0
- package/dist/es/icons/default/left.js +15 -0
- package/dist/es/icons/default/minus.js +16 -0
- package/dist/es/icons/default/plus.js +16 -0
- package/dist/es/icons/default/question-circle.js +18 -0
- package/dist/es/icons/default/right.js +15 -0
- package/dist/es/icons/default/search.js +16 -0
- package/dist/es/icons/default/up.js +16 -0
- package/dist/es/icons/icon.js +26 -25
- package/dist/es/icons/public/boxicons/basic.js +1893 -0
- package/dist/es/icons/public/boxicons/brands.js +304 -0
- package/dist/es/icons/public/boxicons/filled.js +1893 -0
- package/dist/es/icons/public/boxicons/index.js +24 -0
- package/dist/es/icons/public/boxicons/names.js +4082 -0
- package/dist/es/icons/registry.js +15 -15
- package/dist/es/locale/en-US.js +2 -1
- package/dist/es/locale/zh-CN.js +2 -1
- package/dist/es/style.css +1 -1
- package/dist/icons/default/calendar.d.ts +93 -0
- package/dist/icons/default/clock-circle.d.ts +93 -0
- package/dist/icons/{_self/down.d.ts → default/double-left.d.ts} +6 -0
- package/dist/icons/{_self/eye-invisible.d.ts → default/double-right.d.ts} +6 -0
- package/dist/icons/default/down.d.ts +93 -0
- package/dist/icons/default/eye-invisible.d.ts +93 -0
- package/dist/icons/default/eye.d.ts +93 -0
- package/dist/icons/{_self/eye.d.ts → default/left.d.ts} +7 -0
- package/dist/icons/default/minus.d.ts +93 -0
- package/dist/icons/{_self → default}/plus.d.ts +7 -0
- package/dist/icons/default/question-circle.d.ts +93 -0
- package/dist/icons/{_self/minus.d.ts → default/right.d.ts} +7 -0
- package/dist/icons/{_self → default}/search.d.ts +7 -0
- package/dist/icons/{_self → default}/up.d.ts +7 -0
- package/dist/icons/public/boxicons/basic.cjs +1 -0
- package/dist/icons/public/boxicons/basic.d.ts +2 -0
- package/dist/icons/public/boxicons/brands.cjs +1 -0
- package/dist/icons/public/boxicons/brands.d.ts +2 -0
- package/dist/icons/public/boxicons/filled.cjs +1 -0
- package/dist/icons/public/boxicons/filled.d.ts +2 -0
- package/dist/icons/public/boxicons/index.cjs +1 -0
- package/dist/icons/public/boxicons/index.d.ts +10 -0
- package/dist/icons/public/boxicons/names.d.ts +10 -0
- package/dist/icons/registry.d.ts +5 -0
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/locale/interface.d.ts +2 -0
- package/dist/style/alert.css +1 -1
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/date-picker.css +1 -1
- package/dist/style/dialog.css +1 -1
- package/dist/style/drawer.css +1 -1
- package/dist/style/dropdown.css +1 -1
- package/dist/style/form-input-number.css +1 -1
- package/dist/style/form-input-tag.css +1 -1
- package/dist/style/form-input.css +1 -1
- package/dist/style/form-radio.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style/form-textarea.css +1 -1
- package/dist/style/form.css +1 -1
- package/dist/style/link.css +1 -1
- package/dist/style/menu.css +1 -1
- package/dist/style/message-box.css +1 -1
- package/dist/style/network.css +1 -1
- package/dist/style/pagination.css +1 -1
- package/dist/style/popconfirm.css +1 -1
- package/dist/style/popover.css +1 -1
- package/dist/style/popup.css +1 -1
- package/dist/style/progress.css +1 -1
- package/dist/style/rate.css +1 -1
- package/dist/style/spin.css +1 -1
- package/dist/style/steps.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style/tabs.css +1 -1
- package/dist/style/tag.css +1 -1
- package/dist/style/time-picker.css +1 -1
- package/dist/style/time-range-selector.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +31 -4
- package/dist/es/icons/_self/down.js +0 -16
- package/dist/es/icons/_self/eye-invisible.js +0 -13
- package/dist/es/icons/_self/eye.js +0 -13
- package/dist/es/icons/_self/minus.js +0 -13
- package/dist/es/icons/_self/plus.js +0 -12
- package/dist/es/icons/_self/question-message.js +0 -12
- package/dist/es/icons/_self/search.js +0 -13
- package/dist/es/icons/_self/up.js +0 -16
- package/dist/es/icons/_ui/calendar.js +0 -13
- package/dist/es/icons/_ui/time.js +0 -12
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as g, toRefs as B, computed as
|
|
1
|
+
import { defineComponent as g, toRefs as B, computed as o, ref as r } from "vue";
|
|
2
2
|
import _ from "../_components/icon-hover/index.vue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { TAG_COLORS as
|
|
6
|
-
import { getClassNameMixin as
|
|
7
|
-
import { useLocale as
|
|
3
|
+
import L from "../../icons/animation/animation-loading.js";
|
|
4
|
+
import S from "../../icons/default/close.js";
|
|
5
|
+
import { TAG_COLORS as f } from "./interface.js";
|
|
6
|
+
import { getClassNameMixin as z } from "../../_utils/config.js";
|
|
7
|
+
import { useLocale as A } from "../../locale/index.js";
|
|
8
8
|
const T = g({
|
|
9
9
|
name: "Tag",
|
|
10
10
|
components: {
|
|
11
11
|
IconHover: _,
|
|
12
|
-
Close:
|
|
13
|
-
AnimationLoading:
|
|
12
|
+
Close: S,
|
|
13
|
+
AnimationLoading: L
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
16
|
/**
|
|
@@ -106,6 +106,13 @@ const T = g({
|
|
|
106
106
|
nowrap: {
|
|
107
107
|
type: Boolean,
|
|
108
108
|
default: !1
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* @zh 关闭按钮的无障碍名称,默认“关闭标签”
|
|
112
|
+
* @en Accessible name of the close button, defaults to "关闭标签"
|
|
113
|
+
*/
|
|
114
|
+
closeAriaLabel: {
|
|
115
|
+
type: String
|
|
109
116
|
}
|
|
110
117
|
},
|
|
111
118
|
emits: {
|
|
@@ -136,39 +143,39 @@ const T = g({
|
|
|
136
143
|
* @slot close-icon
|
|
137
144
|
*/
|
|
138
145
|
setup(e, { emit: t }) {
|
|
139
|
-
const { size: m } = B(e),
|
|
146
|
+
const { size: m } = B(e), l = z("tag"), { t: v } = A(), b = o(() => e.color && f.includes(e.color)), d = o(() => e.color && !f.includes(e.color)), n = r(e.defaultVisible), u = r(e.defaultChecked), s = o(() => e.visible ?? n.value), a = o(
|
|
140
147
|
() => e.selectable ? e.checked ?? u.value : !0
|
|
141
|
-
), h = (
|
|
142
|
-
n.value = !1, t("update:visible", !1), t("close",
|
|
143
|
-
}, k = (
|
|
148
|
+
), h = (c) => {
|
|
149
|
+
n.value = !1, t("update:visible", !1), t("close", c);
|
|
150
|
+
}, k = (c) => {
|
|
144
151
|
if (e.selectable) {
|
|
145
|
-
const i = !
|
|
146
|
-
u.value = i, t("update:checked", i), t("check", i,
|
|
152
|
+
const i = !a.value;
|
|
153
|
+
u.value = i, t("update:checked", i), t("check", i, c);
|
|
147
154
|
}
|
|
148
|
-
}, C =
|
|
149
|
-
|
|
150
|
-
|
|
155
|
+
}, C = o(() => [
|
|
156
|
+
l.block,
|
|
157
|
+
l.modifier(`size-${m.value}`),
|
|
151
158
|
{
|
|
152
|
-
[
|
|
153
|
-
[
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
[
|
|
159
|
+
[l.modifier("loading")]: e.loading,
|
|
160
|
+
[l.modifier("hide")]: !s.value,
|
|
161
|
+
[l.modifier(`color-${e == null ? void 0 : e.color}`)]: b.value,
|
|
162
|
+
[l.modifier("bordered")]: e.bordered,
|
|
163
|
+
[l.modifier("selectable")]: e.selectable,
|
|
164
|
+
[l.modifier("checked")]: a.value,
|
|
165
|
+
[l.modifier("custom-color")]: d.value
|
|
159
166
|
}
|
|
160
|
-
]), y =
|
|
161
|
-
if (d.value)
|
|
167
|
+
]), y = o(() => {
|
|
168
|
+
if (d.value && a.value)
|
|
162
169
|
return {
|
|
163
170
|
backgroundColor: e.color
|
|
164
171
|
};
|
|
165
172
|
});
|
|
166
173
|
return {
|
|
167
|
-
className:
|
|
174
|
+
className: l,
|
|
168
175
|
cls: C,
|
|
169
176
|
style: y,
|
|
170
177
|
computedVisible: s,
|
|
171
|
-
computedChecked:
|
|
178
|
+
computedChecked: a,
|
|
172
179
|
handleClick: k,
|
|
173
180
|
handleClose: h,
|
|
174
181
|
t: v
|
|
@@ -1,69 +1,70 @@
|
|
|
1
1
|
import k from "./TimePanel.vue2.js";
|
|
2
|
-
import { resolveComponent as m, openBlock as o, createElementBlock as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
2
|
+
import { resolveComponent as m, openBlock as o, createElementBlock as n, withModifiers as y, normalizeStyle as C, normalizeClass as l, createElementVNode as c, Fragment as N, renderList as h, createBlock as r, withCtx as d, createTextVNode as u, toDisplayString as p, createCommentVNode as s, renderSlot as w } from "vue";
|
|
3
|
+
import v from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function $(e, a, S, B, z, F) {
|
|
5
5
|
const f = m("TimeColumn"), i = m("Button");
|
|
6
|
-
return o(),
|
|
7
|
-
class:
|
|
8
|
-
|
|
6
|
+
return o(), n("div", {
|
|
7
|
+
class: l(e.className.element("panel")),
|
|
8
|
+
style: C({ "--x-time-picker-column-count": e.columns.length }),
|
|
9
|
+
onMousedown: a[0] || (a[0] = y(() => {
|
|
9
10
|
}, ["prevent"]))
|
|
10
11
|
}, [
|
|
11
|
-
|
|
12
|
-
class:
|
|
12
|
+
c("div", {
|
|
13
|
+
class: l(e.className.element("columns"))
|
|
13
14
|
}, [
|
|
14
|
-
(o(!0),
|
|
15
|
-
key:
|
|
16
|
-
type:
|
|
17
|
-
label: e.columnLabels[
|
|
18
|
-
items: e.lists[
|
|
15
|
+
(o(!0), n(N, null, h(e.columns, (t) => (o(), r(f, {
|
|
16
|
+
key: t,
|
|
17
|
+
type: t,
|
|
18
|
+
label: e.columnLabels[t],
|
|
19
|
+
items: e.lists[t],
|
|
19
20
|
onSelect: e.handleColumnSelect
|
|
20
21
|
}, null, 8, ["type", "label", "items", "onSelect"]))), 128))
|
|
21
22
|
], 2),
|
|
22
|
-
!e.hideFooter || e.$slots.extra ? (o(),
|
|
23
|
+
!e.hideFooter || e.$slots.extra ? (o(), n("div", {
|
|
23
24
|
key: 0,
|
|
24
|
-
class:
|
|
25
|
+
class: l(e.className.element("footer"))
|
|
25
26
|
}, [
|
|
26
|
-
|
|
27
|
-
class:
|
|
27
|
+
c("div", {
|
|
28
|
+
class: l(e.className.element("footer-left"))
|
|
28
29
|
}, [
|
|
29
|
-
e.hideFooter ?
|
|
30
|
+
e.hideFooter ? s("", !0) : (o(), r(i, {
|
|
30
31
|
key: 0,
|
|
31
32
|
type: "text",
|
|
32
33
|
size: "mini",
|
|
33
34
|
narrow: "",
|
|
34
|
-
class:
|
|
35
|
+
class: l(e.className.element("now")),
|
|
35
36
|
onClick: e.handleNow
|
|
36
37
|
}, {
|
|
37
|
-
default:
|
|
38
|
+
default: d(() => [
|
|
38
39
|
u(p(e.t("timePicker.now")), 1)
|
|
39
40
|
]),
|
|
40
41
|
_: 1
|
|
41
42
|
}, 8, ["class", "onClick"])),
|
|
42
|
-
e.$slots.extra ? (o(),
|
|
43
|
+
e.$slots.extra ? (o(), n("div", {
|
|
43
44
|
key: 1,
|
|
44
|
-
class:
|
|
45
|
+
class: l(e.className.element("extra"))
|
|
45
46
|
}, [
|
|
46
47
|
w(e.$slots, "extra")
|
|
47
|
-
], 2)) :
|
|
48
|
+
], 2)) : s("", !0)
|
|
48
49
|
], 2),
|
|
49
|
-
e.hideFooter ?
|
|
50
|
+
e.hideFooter ? s("", !0) : (o(), r(i, {
|
|
50
51
|
key: 0,
|
|
51
52
|
type: "text",
|
|
52
53
|
status: "info",
|
|
53
54
|
size: "mini",
|
|
54
55
|
narrow: "",
|
|
55
|
-
class:
|
|
56
|
+
class: l(e.className.element("confirm")),
|
|
56
57
|
onClick: e.handleConfirm
|
|
57
58
|
}, {
|
|
58
|
-
default:
|
|
59
|
+
default: d(() => [
|
|
59
60
|
u(p(e.t("timePicker.ok")), 1)
|
|
60
61
|
]),
|
|
61
62
|
_: 1
|
|
62
63
|
}, 8, ["class", "onClick"]))
|
|
63
|
-
], 2)) :
|
|
64
|
-
],
|
|
64
|
+
], 2)) : s("", !0)
|
|
65
|
+
], 38);
|
|
65
66
|
}
|
|
66
|
-
const P = /* @__PURE__ */
|
|
67
|
+
const P = /* @__PURE__ */ v(k, [["render", $]]);
|
|
67
68
|
export {
|
|
68
69
|
P as default
|
|
69
70
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ge, useAttrs as Ve, toRefs as he, computed as r, ref
|
|
|
2
2
|
import { Trigger as ye } from "../trigger/index.js";
|
|
3
3
|
import be from "../_components/picker/input.vue.js";
|
|
4
4
|
import Pe from "../_components/picker/input-range.vue.js";
|
|
5
|
-
import H from "../../icons/
|
|
5
|
+
import H from "../../icons/default/clock-circle.js";
|
|
6
6
|
import { getClassNameMixin as Se } from "../../_utils/config.js";
|
|
7
7
|
import { omit as Ie } from "../../_utils/omit.js";
|
|
8
8
|
import { isArray as s, isUndefined as Ce } from "../../_utils/is.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getClassNameMixin as
|
|
3
|
-
import
|
|
4
|
-
import { getNowTime as
|
|
1
|
+
import { defineComponent as k, ref as w, computed as x, watch as S, createVNode as t, isVNode as F } from "vue";
|
|
2
|
+
import { getClassNameMixin as C } from "../../_utils/config.js";
|
|
3
|
+
import H from "./TimePanel.vue.js";
|
|
4
|
+
import { getVisibleColumns as N, getNowTime as O } from "./utils.js";
|
|
5
5
|
import { Button as f } from "../button/index.js";
|
|
6
|
-
import { useLocale as
|
|
6
|
+
import { useLocale as P } from "../../locale/index.js";
|
|
7
7
|
function b(e) {
|
|
8
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !F(e);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const I = /* @__PURE__ */ k({
|
|
11
11
|
name: "TimeRangePanel",
|
|
12
12
|
props: {
|
|
13
13
|
value: {
|
|
@@ -46,29 +46,32 @@ const B = /* @__PURE__ */ h({
|
|
|
46
46
|
},
|
|
47
47
|
slots: Object,
|
|
48
48
|
emits: {
|
|
49
|
-
select: (e,
|
|
49
|
+
select: (e, u) => !0,
|
|
50
50
|
confirm: () => !0
|
|
51
51
|
},
|
|
52
52
|
setup(e, {
|
|
53
|
-
emit:
|
|
54
|
-
slots:
|
|
53
|
+
emit: u,
|
|
54
|
+
slots: d
|
|
55
55
|
}) {
|
|
56
|
-
const n =
|
|
56
|
+
const n = C("time-picker"), {
|
|
57
57
|
t: r
|
|
58
|
-
} =
|
|
58
|
+
} = P(), i = w(e.focusedIndex), v = x(() => N(e.format, e.use12Hours).length);
|
|
59
59
|
S(() => e.focusedIndex, (o) => {
|
|
60
60
|
i.value = o;
|
|
61
61
|
});
|
|
62
62
|
const c = (o, a) => {
|
|
63
63
|
const l = [...e.value];
|
|
64
|
-
l[a] = o, i.value = a,
|
|
65
|
-
},
|
|
66
|
-
c(
|
|
64
|
+
l[a] = o, i.value = a, u("select", l, a);
|
|
65
|
+
}, g = () => {
|
|
66
|
+
c(O(), i.value);
|
|
67
67
|
};
|
|
68
68
|
return () => {
|
|
69
69
|
let o, a;
|
|
70
70
|
return t("div", {
|
|
71
71
|
class: n.element("range-panel"),
|
|
72
|
+
style: {
|
|
73
|
+
"--x-time-picker-range-column-count": v.value
|
|
74
|
+
},
|
|
72
75
|
onMousedown: (l) => l.preventDefault()
|
|
73
76
|
}, [t("div", {
|
|
74
77
|
class: n.element("range-body")
|
|
@@ -85,7 +88,7 @@ const B = /* @__PURE__ */ h({
|
|
|
85
88
|
}
|
|
86
89
|
}, [t("div", {
|
|
87
90
|
class: n.element("range-header")
|
|
88
|
-
}, [t("span", null, [y]), t("strong", null, [((m = e.value[s]) == null ? void 0 : m.format(e.format)) ?? "--:--:--"])]), t(
|
|
91
|
+
}, [t("span", null, [y]), t("strong", null, [((m = e.value[s]) == null ? void 0 : m.format(e.format)) ?? "--:--:--"])]), t(H, {
|
|
89
92
|
value: e.value[s],
|
|
90
93
|
format: e.format,
|
|
91
94
|
use12Hours: e.use12Hours,
|
|
@@ -95,9 +98,9 @@ const B = /* @__PURE__ */ h({
|
|
|
95
98
|
disabledSeconds: e.disabledSeconds,
|
|
96
99
|
hideDisabledOptions: e.hideDisabledOptions,
|
|
97
100
|
hideFooter: !0,
|
|
98
|
-
onSelect: (
|
|
101
|
+
onSelect: (h) => c(h, s)
|
|
99
102
|
}, null)]);
|
|
100
|
-
})]), (!e.hideFooter ||
|
|
103
|
+
})]), (!e.hideFooter || d.extra) && t("div", {
|
|
101
104
|
class: n.element("footer")
|
|
102
105
|
}, [t("div", {
|
|
103
106
|
class: n.element("footer-left")
|
|
@@ -106,18 +109,18 @@ const B = /* @__PURE__ */ h({
|
|
|
106
109
|
size: "mini",
|
|
107
110
|
narrow: !0,
|
|
108
111
|
class: n.element("now"),
|
|
109
|
-
onClick:
|
|
112
|
+
onClick: g
|
|
110
113
|
}, b(o = r("timePicker.now")) ? o : {
|
|
111
114
|
default: () => [o]
|
|
112
|
-
}),
|
|
115
|
+
}), d.extra && t("div", {
|
|
113
116
|
class: n.element("extra")
|
|
114
|
-
}, [
|
|
117
|
+
}, [d.extra()])]), !e.hideFooter && t(f, {
|
|
115
118
|
type: "text",
|
|
116
119
|
status: "info",
|
|
117
120
|
size: "mini",
|
|
118
121
|
narrow: !0,
|
|
119
122
|
class: n.element("confirm"),
|
|
120
|
-
onClick: () =>
|
|
123
|
+
onClick: () => u("confirm")
|
|
121
124
|
}, b(a = r("timePicker.ok")) ? a : {
|
|
122
125
|
default: () => [a]
|
|
123
126
|
})])]);
|
|
@@ -125,5 +128,5 @@ const B = /* @__PURE__ */ h({
|
|
|
125
128
|
}
|
|
126
129
|
});
|
|
127
130
|
export {
|
|
128
|
-
|
|
131
|
+
I as default
|
|
129
132
|
};
|