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,146 +1,146 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { getRelativeRect as
|
|
3
|
-
import { useOptions as
|
|
4
|
-
import {
|
|
5
|
-
import { selectInjectionKey as
|
|
6
|
-
import { isUndefined as
|
|
1
|
+
import { ref as X, watch as U, nextTick as Z, provide as $, reactive as p } from "vue";
|
|
2
|
+
import { getRelativeRect as R } from "../../../_utils/dom.js";
|
|
3
|
+
import { useOptions as F } from "./use-options.js";
|
|
4
|
+
import { KEYBOARD_KEY as a } from "../../../_utils/keyboard.js";
|
|
5
|
+
import { selectInjectionKey as L } from "../context.js";
|
|
6
|
+
import { isUndefined as f } from "../../../_utils/is.js";
|
|
7
7
|
const le = ({
|
|
8
|
-
multiple:
|
|
9
|
-
options:
|
|
10
|
-
extraOptions:
|
|
11
|
-
inputValue:
|
|
12
|
-
filterOption:
|
|
13
|
-
showExtraOptions:
|
|
14
|
-
component:
|
|
15
|
-
valueKey:
|
|
16
|
-
fieldNames:
|
|
17
|
-
loading:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
multiple: B,
|
|
9
|
+
options: H,
|
|
10
|
+
extraOptions: Y,
|
|
11
|
+
inputValue: T,
|
|
12
|
+
filterOption: E,
|
|
13
|
+
showExtraOptions: j,
|
|
14
|
+
component: M,
|
|
15
|
+
valueKey: h,
|
|
16
|
+
fieldNames: q,
|
|
17
|
+
loading: m,
|
|
18
|
+
disabled: y,
|
|
19
|
+
popupVisible: c,
|
|
20
|
+
valueKeys: x,
|
|
21
|
+
dropdownRef: K,
|
|
22
|
+
optionRefs: O,
|
|
23
|
+
virtualListRef: v,
|
|
24
|
+
onSelect: k,
|
|
25
|
+
onPopupVisibleChange: i,
|
|
26
|
+
getOptionId: z,
|
|
27
|
+
enterToOpen: C = !0,
|
|
28
|
+
defaultActiveFirstOption: g
|
|
28
29
|
}) => {
|
|
29
30
|
const {
|
|
30
|
-
validOptions:
|
|
31
|
-
optionInfoMap:
|
|
32
|
-
validOptionInfos:
|
|
33
|
-
enabledOptionKeys:
|
|
34
|
-
getNextSlotOptionIndex:
|
|
35
|
-
addSlotOptionInfo:
|
|
36
|
-
removeSlotOptionInfo:
|
|
37
|
-
} =
|
|
38
|
-
options:
|
|
39
|
-
extraOptions:
|
|
40
|
-
inputValue:
|
|
41
|
-
filterOption:
|
|
42
|
-
showExtraOptions:
|
|
43
|
-
valueKey:
|
|
44
|
-
fieldNames:
|
|
45
|
-
}),
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
validOptions: G,
|
|
32
|
+
optionInfoMap: D,
|
|
33
|
+
validOptionInfos: J,
|
|
34
|
+
enabledOptionKeys: l,
|
|
35
|
+
getNextSlotOptionIndex: P,
|
|
36
|
+
addSlotOptionInfo: S,
|
|
37
|
+
removeSlotOptionInfo: _
|
|
38
|
+
} = F({
|
|
39
|
+
options: H,
|
|
40
|
+
extraOptions: Y,
|
|
41
|
+
inputValue: T,
|
|
42
|
+
filterOption: E,
|
|
43
|
+
showExtraOptions: j,
|
|
44
|
+
valueKey: h,
|
|
45
|
+
fieldNames: q
|
|
46
|
+
}), t = X();
|
|
47
|
+
let u;
|
|
48
|
+
const w = () => {
|
|
49
|
+
const e = l.value, r = x.value[x.value.length - 1];
|
|
50
|
+
return e.includes(r) ? r : u ? u === "up" ? e[e.length - 1] : e[0] : (g == null ? void 0 : g.value) ?? !0 ? e[0] : void 0;
|
|
51
|
+
};
|
|
52
|
+
U(l, (e) => {
|
|
53
|
+
c.value && u ? t.value = w() : (f(t.value) || !e.includes(t.value)) && (t.value = e[0]);
|
|
48
54
|
});
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
55
|
+
const A = (e) => {
|
|
56
|
+
t.value = e;
|
|
57
|
+
}, N = (e) => {
|
|
58
|
+
const r = l.value.length;
|
|
59
|
+
if (r === 0)
|
|
54
60
|
return;
|
|
55
|
-
if (
|
|
56
|
-
return e === "down" ?
|
|
57
|
-
const
|
|
58
|
-
return
|
|
59
|
-
},
|
|
61
|
+
if (f(t.value))
|
|
62
|
+
return e === "down" ? l.value[0] : l.value[r - 1];
|
|
63
|
+
const o = l.value.indexOf(t.value), n = (r + o + (e === "up" ? -1 : 1)) % r;
|
|
64
|
+
return l.value[n];
|
|
65
|
+
}, I = (e) => {
|
|
60
66
|
var d;
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
67
|
+
v != null && v.value && v.value.scrollTo({ key: e });
|
|
68
|
+
const r = D.get(e), o = (d = K == null ? void 0 : K.value) == null ? void 0 : d.wrapperRef, n = (O == null ? void 0 : O.value[e]) ?? (r == null ? void 0 : r.ref);
|
|
69
|
+
if (!o || !n || o.scrollHeight === o.offsetHeight)
|
|
64
70
|
return;
|
|
65
|
-
const
|
|
66
|
-
|
|
71
|
+
const s = R(n, o), W = o.scrollTop;
|
|
72
|
+
s.top < 0 ? o.scrollTo(0, W + s.top) : s.bottom < 0 && o.scrollTo(0, W - s.bottom);
|
|
67
73
|
};
|
|
68
|
-
|
|
69
|
-
|
|
74
|
+
U(
|
|
75
|
+
c,
|
|
70
76
|
(e) => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
o.value.includes(t) && (n = t), n !== l.value && (l.value = n), P(() => {
|
|
75
|
-
r(l.value) || u(l.value);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
77
|
+
e ? (t.value = w(), Z(() => {
|
|
78
|
+
u = void 0, c.value && !f(t.value) && I(t.value);
|
|
79
|
+
})) : u = void 0;
|
|
78
80
|
},
|
|
79
81
|
{ immediate: !0 }
|
|
80
82
|
);
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
r(t) || (l.value = t, u(t)), e.preventDefault();
|
|
110
|
-
}
|
|
83
|
+
const Q = (e) => {
|
|
84
|
+
if (y != null && y.value || e.isComposing || e.keyCode === 229 || e.ctrlKey || e.altKey || e.metaKey)
|
|
85
|
+
return;
|
|
86
|
+
if (e.key === a.TAB) {
|
|
87
|
+
u = void 0, c.value && i(!1);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (e.shiftKey)
|
|
91
|
+
return;
|
|
92
|
+
const r = () => {
|
|
93
|
+
e.stopPropagation(), e.preventDefault();
|
|
94
|
+
};
|
|
95
|
+
if (e.key === a.ESC) {
|
|
96
|
+
u = void 0, c.value && (r(), i(!1));
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (!(m != null && m.value)) {
|
|
100
|
+
if (e.key === a.ENTER) {
|
|
101
|
+
c.value ? !f(t.value) && l.value.includes(t.value) && (r(), k(t.value, e)) : C && (u = void 0, r(), i(!0));
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (e.key === a.ARROW_DOWN || e.key === a.ARROW_UP) {
|
|
105
|
+
const o = e.key === a.ARROW_UP ? "up" : "down";
|
|
106
|
+
if (r(), !c.value)
|
|
107
|
+
u = o, i(!0);
|
|
108
|
+
else {
|
|
109
|
+
const n = N(o);
|
|
110
|
+
f(n) || (t.value = n, I(n));
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
multiple:
|
|
119
|
-
valueKey:
|
|
120
|
-
inputValue:
|
|
121
|
-
filterOption:
|
|
122
|
-
component:
|
|
123
|
-
valueKeys:
|
|
124
|
-
activeKey:
|
|
125
|
-
getOptionId:
|
|
126
|
-
setActiveKey:
|
|
127
|
-
onSelect:
|
|
128
|
-
getNextSlotOptionIndex:
|
|
129
|
-
addSlotOptionInfo:
|
|
130
|
-
removeSlotOptionInfo:
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return $(
|
|
116
|
+
L,
|
|
117
|
+
p({
|
|
118
|
+
multiple: B,
|
|
119
|
+
valueKey: h,
|
|
120
|
+
inputValue: T,
|
|
121
|
+
filterOption: E,
|
|
122
|
+
component: M,
|
|
123
|
+
valueKeys: x,
|
|
124
|
+
activeKey: t,
|
|
125
|
+
getOptionId: z,
|
|
126
|
+
setActiveKey: A,
|
|
127
|
+
onSelect: k,
|
|
128
|
+
getNextSlotOptionIndex: P,
|
|
129
|
+
addSlotOptionInfo: S,
|
|
130
|
+
removeSlotOptionInfo: _
|
|
131
131
|
})
|
|
132
132
|
), {
|
|
133
|
-
validOptions:
|
|
134
|
-
optionInfoMap:
|
|
135
|
-
validOptionInfos:
|
|
136
|
-
enabledOptionKeys:
|
|
137
|
-
activeKey:
|
|
138
|
-
setActiveKey:
|
|
139
|
-
addSlotOptionInfo:
|
|
140
|
-
removeSlotOptionInfo:
|
|
141
|
-
getNextActiveKey:
|
|
142
|
-
scrollIntoView:
|
|
143
|
-
handleKeyDown:
|
|
133
|
+
validOptions: G,
|
|
134
|
+
optionInfoMap: D,
|
|
135
|
+
validOptionInfos: J,
|
|
136
|
+
enabledOptionKeys: l,
|
|
137
|
+
activeKey: t,
|
|
138
|
+
setActiveKey: A,
|
|
139
|
+
addSlotOptionInfo: S,
|
|
140
|
+
removeSlotOptionInfo: _,
|
|
141
|
+
getNextActiveKey: N,
|
|
142
|
+
scrollIntoView: I,
|
|
143
|
+
handleKeyDown: Q
|
|
144
144
|
};
|
|
145
145
|
};
|
|
146
146
|
export {
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import g from "./Slider.vue2.js";
|
|
2
|
-
import { resolveComponent as n, openBlock as e, createElementBlock as k,
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
const m = n("slider-ticks"),
|
|
6
|
-
return e(), k("div", {
|
|
7
|
-
|
|
8
|
-
}, [
|
|
9
|
-
s("div", {
|
|
2
|
+
import { resolveComponent as n, openBlock as e, createElementBlock as k, mergeProps as a, createElementVNode as d, normalizeClass as s, normalizeStyle as y, createBlock as i, createCommentVNode as l, createVNode as M } from "vue";
|
|
3
|
+
import f from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function w(o, r, C, b, B, S) {
|
|
5
|
+
const m = n("slider-ticks"), p = n("slider-dots"), u = n("slider-marks"), t = n("slider-button"), v = n("slider-input");
|
|
6
|
+
return e(), k("div", a(o.wrapperAttrs, { class: o.cls }), [
|
|
7
|
+
d("div", {
|
|
10
8
|
ref: "trackRef",
|
|
11
|
-
class:
|
|
12
|
-
onClick:
|
|
9
|
+
class: s(o.trackCls),
|
|
10
|
+
onClick: r[0] || (r[0] = (...h) => o.handleClick && o.handleClick(...h))
|
|
13
11
|
}, [
|
|
14
|
-
|
|
15
|
-
class:
|
|
16
|
-
style:
|
|
12
|
+
d("div", {
|
|
13
|
+
class: s(o.className.element("bar")),
|
|
14
|
+
style: y(o.getBarStyle(o.computedValue))
|
|
17
15
|
}, null, 6),
|
|
18
16
|
o.showTicks ? (e(), i(m, {
|
|
19
17
|
key: 0,
|
|
@@ -22,24 +20,23 @@ function f(o, t, w, C, b, B) {
|
|
|
22
20
|
min: o.min,
|
|
23
21
|
max: o.max,
|
|
24
22
|
direction: o.direction
|
|
25
|
-
}, null, 8, ["value", "step", "min", "max", "direction"])) :
|
|
26
|
-
o.marks ? (e(), i(
|
|
23
|
+
}, null, 8, ["value", "step", "min", "max", "direction"])) : l("", !0),
|
|
24
|
+
o.marks ? (e(), i(p, {
|
|
27
25
|
key: 1,
|
|
28
26
|
data: o.markList,
|
|
29
27
|
min: o.min,
|
|
30
28
|
max: o.max,
|
|
31
29
|
direction: o.direction
|
|
32
|
-
}, null, 8, ["data", "min", "max", "direction"])) :
|
|
33
|
-
o.marks ? (e(), i(
|
|
30
|
+
}, null, 8, ["data", "min", "max", "direction"])) : l("", !0),
|
|
31
|
+
o.marks ? (e(), i(u, {
|
|
34
32
|
key: 2,
|
|
35
33
|
data: o.markList,
|
|
36
34
|
min: o.min,
|
|
37
35
|
max: o.max,
|
|
38
36
|
direction: o.direction
|
|
39
|
-
}, null, 8, ["data", "min", "max", "direction"])) :
|
|
40
|
-
o.range ? (e(), i(
|
|
41
|
-
|
|
42
|
-
style: d(o.getBtnStyle(o.computedValue[0])),
|
|
37
|
+
}, null, 8, ["data", "min", "max", "direction"])) : l("", !0),
|
|
38
|
+
o.range ? (e(), i(t, a({ key: 3 }, o.controlAttrs, {
|
|
39
|
+
style: o.getBtnStyle(o.computedValue[0]),
|
|
43
40
|
value: o.computedValue[0],
|
|
44
41
|
direction: o.direction,
|
|
45
42
|
disabled: o.mergedDisabled,
|
|
@@ -54,9 +51,12 @@ function f(o, t, w, C, b, B) {
|
|
|
54
51
|
onKeydown: o.handleStartKeyDown,
|
|
55
52
|
onFocus: o.handleFocus,
|
|
56
53
|
onBlur: o.handleBlur
|
|
57
|
-
}, null,
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
}), null, 16, ["style", "value", "direction", "disabled", "min", "max", "format-tooltip", "show-tooltip", "tooltip-position", "onMovestart", "onMoving", "onMoveend", "onKeydown", "onFocus", "onBlur"])) : l("", !0),
|
|
55
|
+
M(t, a({
|
|
56
|
+
...o.controlAttrs,
|
|
57
|
+
id: o.range && o.controlAttrs.id ? `${o.controlAttrs.id}-end` : o.controlAttrs.id
|
|
58
|
+
}, {
|
|
59
|
+
style: o.getBtnStyle(o.computedValue[1]),
|
|
60
60
|
value: o.computedValue[1],
|
|
61
61
|
direction: o.direction,
|
|
62
62
|
disabled: o.mergedDisabled,
|
|
@@ -71,7 +71,7 @@ function f(o, t, w, C, b, B) {
|
|
|
71
71
|
onKeydown: o.handleEndKeyDown,
|
|
72
72
|
onFocus: o.handleFocus,
|
|
73
73
|
onBlur: o.handleBlur
|
|
74
|
-
}, null,
|
|
74
|
+
}), null, 16, ["style", "value", "direction", "disabled", "min", "max", "format-tooltip", "show-tooltip", "tooltip-position", "onMovestart", "onMoving", "onMoveend", "onKeydown", "onFocus", "onBlur"])
|
|
75
75
|
], 2),
|
|
76
76
|
o.showInput ? (e(), i(v, {
|
|
77
77
|
key: 0,
|
|
@@ -83,10 +83,10 @@ function f(o, t, w, C, b, B) {
|
|
|
83
83
|
disabled: o.mergedDisabled,
|
|
84
84
|
onStartChange: o.handleStartChange,
|
|
85
85
|
onEndChange: o.handleEndChange
|
|
86
|
-
}, null, 8, ["model-value", "min", "max", "step", "range", "disabled", "onStartChange", "onEndChange"])) :
|
|
87
|
-
],
|
|
86
|
+
}, null, 8, ["model-value", "min", "max", "step", "range", "disabled", "onStartChange", "onEndChange"])) : l("", !0)
|
|
87
|
+
], 16);
|
|
88
88
|
}
|
|
89
|
-
const F = /* @__PURE__ */
|
|
89
|
+
const F = /* @__PURE__ */ f(g, [["render", w]]);
|
|
90
90
|
export {
|
|
91
91
|
F as default
|
|
92
92
|
};
|