ep-craft 0.1.41 → 0.2.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/dist/components/input-number/EpInputNumber.vue.js +62 -63
- package/dist/components/input-number/input-number.d.ts +5 -0
- package/dist/components/input-number/input-number.js +6 -6
- package/dist/components/select/index.d.ts +6 -3
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +3 -3
- package/dist/components/select/select.vue.d.ts +3 -1
- package/dist/components/select/select.vue.js +9 -9
- package/dist/components/select/select2.vue.js +73 -75
- package/dist/components/select-v2/src/defaults.d.ts +1 -0
- package/dist/components/select-v2/src/defaults.js +1 -1
- package/dist/components/select-v2/src/select.vue.d.ts +3 -1
- package/dist/components/select-v2/src/select.vue.js +21 -21
- package/dist/components/select-v2/src/select2.vue.js +27 -29
- package/dist/components/tree-select/src/tree-select.vue.d.ts +2 -0
- package/dist-ai/components/affix.json +152 -0
- package/dist-ai/components/affix.md +73 -0
- package/dist-ai/components/alert.json +186 -0
- package/dist-ai/components/alert.md +89 -0
- package/dist-ai/components/anchor-link.json +102 -0
- package/dist-ai/components/anchor-link.md +67 -0
- package/dist-ai/components/anchor.json +179 -0
- package/dist-ai/components/anchor.md +87 -0
- package/dist-ai/components/aside.json +87 -0
- package/dist-ai/components/aside.md +63 -0
- package/dist-ai/components/autocomplete.json +613 -0
- package/dist-ai/components/autocomplete.md +140 -0
- package/dist-ai/components/avatar.json +163 -0
- package/dist-ai/components/avatar.md +83 -0
- package/dist-ai/components/backtop.json +118 -0
- package/dist-ai/components/backtop.md +66 -0
- package/dist-ai/components/badge.json +186 -0
- package/dist-ai/components/badge.md +85 -0
- package/dist-ai/components/breadcrumb-item.json +97 -0
- package/dist-ai/components/breadcrumb-item.md +65 -0
- package/dist-ai/components/breadcrumb.json +100 -0
- package/dist-ai/components/breadcrumb.md +68 -0
- package/dist-ai/components/button-group.json +123 -0
- package/dist-ai/components/button-group.md +65 -0
- package/dist-ai/components/button.json +349 -0
- package/dist-ai/components/button.md +124 -0
- package/dist-ai/components/calendar.json +148 -0
- package/dist-ai/components/calendar.md +74 -0
- package/dist-ai/components/card.json +168 -0
- package/dist-ai/components/card.md +87 -0
- package/dist-ai/components/carousel-item.json +99 -0
- package/dist-ai/components/carousel-item.md +68 -0
- package/dist-ai/components/carousel.json +245 -0
- package/dist-ai/components/carousel.md +97 -0
- package/dist-ai/components/cascader-panel.json +242 -0
- package/dist-ai/components/cascader-panel.md +108 -0
- package/dist-ai/components/cascader.json +531 -0
- package/dist-ai/components/cascader.md +146 -0
- package/dist-ai/components/check-tag.json +133 -0
- package/dist-ai/components/check-tag.md +72 -0
- package/dist-ai/components/checkbox-button.json +279 -0
- package/dist-ai/components/checkbox-button.md +94 -0
- package/dist-ai/components/checkbox-group.json +236 -0
- package/dist-ai/components/checkbox-group.md +90 -0
- package/dist-ai/components/checkbox.json +278 -0
- package/dist-ai/components/checkbox.md +91 -0
- package/dist-ai/components/col.json +168 -0
- package/dist-ai/components/col.md +72 -0
- package/dist-ai/components/collapse-item.json +133 -0
- package/dist-ai/components/collapse-item.md +75 -0
- package/dist-ai/components/collapse-transition.json +75 -0
- package/dist-ai/components/collapse-transition.md +59 -0
- package/dist-ai/components/collapse.json +129 -0
- package/dist-ai/components/collapse.md +76 -0
- package/dist-ai/components/color-picker.json +280 -0
- package/dist-ai/components/color-picker.md +85 -0
- package/dist-ai/components/config-provider.json +222 -0
- package/dist-ai/components/config-provider.md +76 -0
- package/dist-ai/components/container.json +95 -0
- package/dist-ai/components/container.md +70 -0
- package/dist-ai/components/countdown.json +155 -0
- package/dist-ai/components/countdown.md +73 -0
- package/dist-ai/components/date-picker-panel.json +346 -0
- package/dist-ai/components/date-picker-panel.md +91 -0
- package/dist-ai/components/date-picker.json +574 -0
- package/dist-ai/components/date-picker.md +153 -0
- package/dist-ai/components/descriptions-item.json +175 -0
- package/dist-ai/components/descriptions-item.md +73 -0
- package/dist-ai/components/descriptions.json +171 -0
- package/dist-ai/components/descriptions.md +78 -0
- package/dist-ai/components/dialog.json +403 -0
- package/dist-ai/components/dialog.md +108 -0
- package/dist-ai/components/divider.json +102 -0
- package/dist-ai/components/divider.md +59 -0
- package/dist-ai/components/drawer.json +468 -0
- package/dist-ai/components/drawer.md +115 -0
- package/dist-ai/components/dropdown-item.json +156 -0
- package/dist-ai/components/dropdown-item.md +84 -0
- package/dist-ai/components/dropdown-menu.json +92 -0
- package/dist-ai/components/dropdown-menu.md +70 -0
- package/dist-ai/components/dropdown.json +374 -0
- package/dist-ai/components/dropdown.md +108 -0
- package/dist-ai/components/empty.json +116 -0
- package/dist-ai/components/empty.md +62 -0
- package/dist-ai/components/footer.json +86 -0
- package/dist-ai/components/footer.md +63 -0
- package/dist-ai/components/form-item.json +242 -0
- package/dist-ai/components/form-item.md +93 -0
- package/dist-ai/components/form.json +277 -0
- package/dist-ai/components/form.md +117 -0
- package/dist-ai/components/header.json +86 -0
- package/dist-ai/components/header.md +63 -0
- package/dist-ai/components/icon.json +95 -0
- package/dist-ai/components/icon.md +61 -0
- package/dist-ai/components/image-viewer.json +235 -0
- package/dist-ai/components/image-viewer.md +88 -0
- package/dist-ai/components/image.json +299 -0
- package/dist-ai/components/image.md +96 -0
- package/dist-ai/components/input-number.json +370 -0
- package/dist-ai/components/input-number.md +127 -0
- package/dist-ai/components/input.json +545 -0
- package/dist-ai/components/input.md +166 -0
- package/dist-ai/components/link.json +162 -0
- package/dist-ai/components/link.md +72 -0
- package/dist-ai/components/main.json +77 -0
- package/dist-ai/components/main.md +58 -0
- package/dist-ai/components/mention.json +598 -0
- package/dist-ai/components/mention.md +136 -0
- package/dist-ai/components/menu-item-group.json +101 -0
- package/dist-ai/components/menu-item-group.md +69 -0
- package/dist-ai/components/menu-item.json +131 -0
- package/dist-ai/components/menu-item.md +76 -0
- package/dist-ai/components/menu.json +314 -0
- package/dist-ai/components/menu.md +104 -0
- package/dist-ai/components/option-group.json +113 -0
- package/dist-ai/components/option-group.md +79 -0
- package/dist-ai/components/option.json +122 -0
- package/dist-ai/components/option.md +70 -0
- package/dist-ai/components/page-header.json +131 -0
- package/dist-ai/components/page-header.md +70 -0
- package/dist-ai/components/pagination.json +325 -0
- package/dist-ai/components/pagination.md +115 -0
- package/dist-ai/components/popconfirm.json +240 -0
- package/dist-ai/components/popconfirm.md +89 -0
- package/dist-ai/components/popover.json +351 -0
- package/dist-ai/components/popover.md +99 -0
- package/dist-ai/components/popper.json +93 -0
- package/dist-ai/components/popper.md +66 -0
- package/dist-ai/components/progress.json +219 -0
- package/dist-ai/components/progress.md +74 -0
- package/dist-ai/components/radio-button.json +142 -0
- package/dist-ai/components/radio-button.md +76 -0
- package/dist-ai/components/radio-group.json +219 -0
- package/dist-ai/components/radio-group.md +88 -0
- package/dist-ai/components/radio.json +177 -0
- package/dist-ai/components/radio.md +83 -0
- package/dist-ai/components/rate.json +286 -0
- package/dist-ai/components/rate.md +83 -0
- package/dist-ai/components/result.json +118 -0
- package/dist-ai/components/result.md +66 -0
- package/dist-ai/components/row.json +115 -0
- package/dist-ai/components/row.md +68 -0
- package/dist-ai/components/scrollbar.json +280 -0
- package/dist-ai/components/scrollbar.md +89 -0
- package/dist-ai/components/segmented.json +204 -0
- package/dist-ai/components/segmented.md +81 -0
- package/dist-ai/components/select-v2.json +729 -0
- package/dist-ai/components/select-v2.md +193 -0
- package/dist-ai/components/select.json +697 -0
- package/dist-ai/components/select.md +188 -0
- package/dist-ai/components/skeleton-item.json +80 -0
- package/dist-ai/components/skeleton-item.md +57 -0
- package/dist-ai/components/skeleton.json +134 -0
- package/dist-ai/components/skeleton.md +65 -0
- package/dist-ai/components/slider.json +326 -0
- package/dist-ai/components/slider.md +88 -0
- package/dist-ai/components/space.json +178 -0
- package/dist-ai/components/space.md +73 -0
- package/dist-ai/components/statistic.json +167 -0
- package/dist-ai/components/statistic.md +66 -0
- package/dist-ai/components/step.json +124 -0
- package/dist-ai/components/step.md +69 -0
- package/dist-ai/components/steps.json +157 -0
- package/dist-ai/components/steps.md +79 -0
- package/dist-ai/components/sub-menu.json +211 -0
- package/dist-ai/components/sub-menu.md +88 -0
- package/dist-ai/components/switch.json +292 -0
- package/dist-ai/components/switch.md +88 -0
- package/dist-ai/components/tab-pane.json +137 -0
- package/dist-ai/components/tab-pane.md +72 -0
- package/dist-ai/components/table-column.json +368 -0
- package/dist-ai/components/table-column.md +103 -0
- package/dist-ai/components/table-v2.json +486 -0
- package/dist-ai/components/table-v2.md +123 -0
- package/dist-ai/components/table.json +734 -0
- package/dist-ai/components/table.md +205 -0
- package/dist-ai/components/tabs.json +231 -0
- package/dist-ai/components/tabs.md +127 -0
- package/dist-ai/components/tag.json +205 -0
- package/dist-ai/components/tag.md +105 -0
- package/dist-ai/components/text.json +143 -0
- package/dist-ai/components/text.md +66 -0
- package/dist-ai/components/time-picker.json +555 -0
- package/dist-ai/components/time-picker.md +123 -0
- package/dist-ai/components/time-select.json +321 -0
- package/dist-ai/components/time-select.md +93 -0
- package/dist-ai/components/timeline-item.json +186 -0
- package/dist-ai/components/timeline-item.md +78 -0
- package/dist-ai/components/timeline.json +99 -0
- package/dist-ai/components/timeline.md +65 -0
- package/dist-ai/components/tooltip.json +599 -0
- package/dist-ai/components/tooltip.md +137 -0
- package/dist-ai/components/tour-step.json +219 -0
- package/dist-ai/components/tour-step.md +88 -0
- package/dist-ai/components/tour.json +258 -0
- package/dist-ai/components/tour.md +96 -0
- package/dist-ai/components/transfer.json +275 -0
- package/dist-ai/components/transfer.md +95 -0
- package/dist-ai/components/tree-select.json +945 -0
- package/dist-ai/components/tree-select.md +181 -0
- package/dist-ai/components/tree-v2.json +395 -0
- package/dist-ai/components/tree-v2.md +113 -0
- package/dist-ai/components/tree.json +485 -0
- package/dist-ai/components/tree.md +131 -0
- package/dist-ai/components/upload.json +382 -0
- package/dist-ai/components/upload.md +130 -0
- package/dist-ai/components/watermark.json +157 -0
- package/dist-ai/components/watermark.md +66 -0
- package/dist-ai/directives/click-outside.json +61 -0
- package/dist-ai/directives/click-outside.md +50 -0
- package/dist-ai/directives/infinite-scroll.json +83 -0
- package/dist-ai/directives/infinite-scroll.md +62 -0
- package/dist-ai/directives/loading.json +89 -0
- package/dist-ai/directives/loading.md +69 -0
- package/dist-ai/directives/mousewheel.json +54 -0
- package/dist-ai/directives/mousewheel.md +48 -0
- package/dist-ai/directives/repeat-click.json +68 -0
- package/dist-ai/directives/repeat-click.md +49 -0
- package/dist-ai/directives/trap-focus.json +46 -0
- package/dist-ai/directives/trap-focus.md +46 -0
- package/dist-ai/icons.json +1 -0
- package/dist-ai/index.json +1 -0
- package/dist-ai/llms.txt +170 -0
- package/dist-ai/manifest.json +26590 -0
- package/dist-ai/schema/manifest.schema.json +793 -0
- package/dist-ai/services/infinite-scroll.json +80 -0
- package/dist-ai/services/infinite-scroll.md +71 -0
- package/dist-ai/services/loading.json +108 -0
- package/dist-ai/services/loading.md +58 -0
- package/dist-ai/services/message-box.json +159 -0
- package/dist-ai/services/message-box.md +78 -0
- package/dist-ai/services/message.json +137 -0
- package/dist-ai/services/message.md +72 -0
- package/dist-ai/services/notification.json +136 -0
- package/dist-ai/services/notification.md +73 -0
- package/package.json +12 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as he, ref as Q, reactive as Ve, computed as N, toRef as Y, watch as Z, onMounted as ye, onUpdated as Ee, openBlock as b, createElementBlock as w, withModifiers as ge, normalizeClass as I, unref as
|
|
2
|
-
import { isNil as
|
|
1
|
+
import { defineComponent as he, ref as Q, reactive as Ve, computed as N, toRef as Y, watch as Z, onMounted as ye, onUpdated as Ee, openBlock as b, createElementBlock as w, withModifiers as ge, normalizeClass as I, unref as n, toDisplayString as xe, createCommentVNode as R, withDirectives as _, withKeys as ee, renderSlot as S, createVNode as $, withCtx as A, createBlock as L, createSlots as we } from "vue";
|
|
2
|
+
import { isNil as F } from "lodash-unified";
|
|
3
3
|
import { EpInput as Ie } from "../input/index.js";
|
|
4
4
|
import { ElIcon as te } from "../icon/index.js";
|
|
5
5
|
import { vRepeatClick as ae } from "../../directives/repeat-click/index.js";
|
|
6
6
|
import { useNamespace as Se } from "../../hooks/use-namespace/index.js";
|
|
7
7
|
import { useLocale as Ae } from "../../hooks/use-locale/index.js";
|
|
8
|
-
import { useId as
|
|
8
|
+
import { useId as Le } from "../../hooks/use-id/index.js";
|
|
9
9
|
import "../../hooks/use-size/index.js";
|
|
10
10
|
import "../../hooks/use-aria/index.js";
|
|
11
|
-
import { useFloatLabel as
|
|
12
|
-
import { debugWarn as z, throwError as
|
|
13
|
-
import { isString as Ce, NOOP as
|
|
14
|
-
import { isNumber as h, isUndefined as
|
|
11
|
+
import { useFloatLabel as Fe } from "../../hooks/use-float-label/index.js";
|
|
12
|
+
import { debugWarn as z, throwError as ke } from "../../utils/error.js";
|
|
13
|
+
import { isString as Ce, NOOP as re } from "@vue/shared";
|
|
14
|
+
import { isNumber as h, isUndefined as k } from "../../utils/types.js";
|
|
15
15
|
import { getEventCode as De, getEventKey as Me } from "../../utils/dom/event.js";
|
|
16
16
|
import { ArrowDown as Pe, Minus as Te, ArrowUp as Be, Plus as Oe } from "@element-plus/icons-vue";
|
|
17
17
|
import { EVENT_CODE as le } from "../../constants/aria.js";
|
|
@@ -40,6 +40,7 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
40
40
|
precision: {},
|
|
41
41
|
validateEvent: { type: Boolean, default: !0 },
|
|
42
42
|
ariaLabel: {},
|
|
43
|
+
ariaLabelledby: {},
|
|
43
44
|
inputmode: { default: void 0 },
|
|
44
45
|
align: { default: "center" },
|
|
45
46
|
disabledScientific: { type: Boolean },
|
|
@@ -49,7 +50,7 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
49
50
|
floatLabel: { type: Boolean }
|
|
50
51
|
},
|
|
51
52
|
emits: $e,
|
|
52
|
-
setup(u, { expose:
|
|
53
|
+
setup(u, { expose: ne, emit: ie }) {
|
|
53
54
|
const a = u, s = ie, { t: G } = Ae(), c = Se("input-number"), p = Q(), i = Ve({
|
|
54
55
|
currentValue: a.modelValue,
|
|
55
56
|
userInput: null
|
|
@@ -59,40 +60,38 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
59
60
|
() => h(a.modelValue) && a.modelValue >= a.max
|
|
60
61
|
), ue = N(() => {
|
|
61
62
|
const e = j(a.step);
|
|
62
|
-
return
|
|
63
|
+
return k(a.precision) ? Math.max(j(a.modelValue), e) : (e > a.precision && z(
|
|
63
64
|
"InputNumber",
|
|
64
65
|
"precision should not be less than the decimal places of step"
|
|
65
66
|
), a.precision);
|
|
66
|
-
}), C = N(() => a.controls && a.controlsPosition === "right"), X = Ke(), v = Ge(), D = Q(!1), oe = N(() => !
|
|
67
|
+
}), C = N(() => a.controls && a.controlsPosition === "right"), X = Ke(), v = Ge(), D = Q(!1), oe = N(() => !F(i.currentValue)), { floatLabelClass: se } = Fe({
|
|
67
68
|
floatLabel: Y(a, "floatLabel"),
|
|
68
69
|
isFocused: D,
|
|
69
70
|
hasValue: oe,
|
|
70
71
|
isDisabled: v,
|
|
71
72
|
isReadonly: Y(a, "readonly")
|
|
72
|
-
}), H =
|
|
73
|
-
() => a.floatLabel && a.placeholder && !a.ariaLabel ? H.value : void 0
|
|
74
|
-
), M = N(() => {
|
|
73
|
+
}), H = Le(), ce = N(() => a.ariaLabelledby ? a.ariaLabelledby : a.floatLabel && a.placeholder && !a.ariaLabel ? H.value : void 0), M = N(() => {
|
|
75
74
|
if (i.userInput !== null)
|
|
76
75
|
return i.userInput;
|
|
77
76
|
let e = i.currentValue;
|
|
78
|
-
if (
|
|
77
|
+
if (F(e)) return "";
|
|
79
78
|
if (h(e)) {
|
|
80
79
|
if (Number.isNaN(e)) return "";
|
|
81
|
-
|
|
80
|
+
k(a.precision) || (e = e.toFixed(a.precision));
|
|
82
81
|
}
|
|
83
82
|
return e;
|
|
84
83
|
}), y = (e, t) => {
|
|
85
|
-
if (
|
|
86
|
-
let
|
|
87
|
-
const l =
|
|
88
|
-
if (l === -1 || !
|
|
89
|
-
const g =
|
|
90
|
-
return
|
|
84
|
+
if (k(t) && (t = ue.value), t === 0) return Math.round(e);
|
|
85
|
+
let r = String(e);
|
|
86
|
+
const l = r.indexOf(".");
|
|
87
|
+
if (l === -1 || !r.replace(".", "").split("")[l + t]) return e;
|
|
88
|
+
const g = r.length;
|
|
89
|
+
return r.charAt(g - 1) === "5" && (r = `${r.slice(0, Math.max(0, g - 1))}6`), Number.parseFloat(Number(r).toFixed(t));
|
|
91
90
|
}, j = (e) => {
|
|
92
|
-
if (
|
|
93
|
-
const t = e.toString(),
|
|
91
|
+
if (F(e)) return 0;
|
|
92
|
+
const t = e.toString(), r = t.indexOf(".");
|
|
94
93
|
let l = 0;
|
|
95
|
-
return
|
|
94
|
+
return r !== -1 && (l = t.length - r - 1), l;
|
|
96
95
|
}, q = (e, t = 1) => h(e) ? e >= Number.MAX_SAFE_INTEGER && t === 1 ? (z(
|
|
97
96
|
"InputNumber",
|
|
98
97
|
"The value has reached the maximum safe integer limit."
|
|
@@ -100,8 +99,8 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
100
99
|
"InputNumber",
|
|
101
100
|
"The value has reached the minimum safe integer limit."
|
|
102
101
|
), e) : y(e + a.step * t) : i.currentValue, de = (e) => {
|
|
103
|
-
const t = De(e),
|
|
104
|
-
if (a.disabledScientific && ["e", "E"].includes(
|
|
102
|
+
const t = De(e), r = Me(e);
|
|
103
|
+
if (a.disabledScientific && ["e", "E"].includes(r)) {
|
|
105
104
|
e.preventDefault();
|
|
106
105
|
return;
|
|
107
106
|
}
|
|
@@ -124,28 +123,28 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
124
123
|
const e = Number(M.value) || 0, t = q(e, -1);
|
|
125
124
|
E(t), s(K, i.currentValue), O();
|
|
126
125
|
}, B = (e, t) => {
|
|
127
|
-
const { max:
|
|
128
|
-
|
|
126
|
+
const { max: r, min: l, step: m, precision: f, stepStrictly: g, valueOnClear: x } = a;
|
|
127
|
+
r < l && ke("InputNumber", "min should not be greater than max.");
|
|
129
128
|
let o = e ? Number.parseFloat(String(e)) : Number(e);
|
|
130
|
-
if (
|
|
129
|
+
if (F(e) || Number.isNaN(o))
|
|
131
130
|
return null;
|
|
132
131
|
if (e === "") {
|
|
133
132
|
if (x === null)
|
|
134
133
|
return null;
|
|
135
|
-
o = Ce(x) ? { min: l, max:
|
|
134
|
+
o = Ce(x) ? { min: l, max: r }[x] : x;
|
|
136
135
|
}
|
|
137
136
|
return g && (o = y(
|
|
138
137
|
Math.round(y(o / m)) * m,
|
|
139
138
|
f
|
|
140
|
-
), o !== e && t && s(V, o)),
|
|
139
|
+
), o !== e && t && s(V, o)), k(f) || (o = y(o, f)), (o > r || o < l) && (o = o > r ? r : l, t && s(V, o)), o;
|
|
141
140
|
}, E = (e, t = !0) => {
|
|
142
141
|
var m;
|
|
143
|
-
const
|
|
142
|
+
const r = i.currentValue, l = B(e);
|
|
144
143
|
if (!t) {
|
|
145
144
|
s(V, l);
|
|
146
145
|
return;
|
|
147
146
|
}
|
|
148
|
-
i.userInput = null, !(
|
|
147
|
+
i.userInput = null, !(r === l && e) && (s(V, l), r !== l && s(Re, l, r), a.validateEvent && ((m = d == null ? void 0 : d.validate) == null || m.call(d, "change").catch(re)), i.currentValue = l);
|
|
149
148
|
}, me = (e) => {
|
|
150
149
|
i.userInput = e;
|
|
151
150
|
let t = e === "" ? null : Number.parseFloat(e);
|
|
@@ -162,8 +161,8 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
162
161
|
}, pe = (e) => {
|
|
163
162
|
D.value = !0, s("focus", e);
|
|
164
163
|
}, Ne = (e) => {
|
|
165
|
-
var t,
|
|
166
|
-
D.value = !1, i.userInput = null, i.currentValue === null && ((t = p.value) != null && t.input) && (p.value.input.value = ((
|
|
164
|
+
var t, r, l;
|
|
165
|
+
D.value = !1, i.userInput = null, i.currentValue === null && ((t = p.value) != null && t.input) && (p.value.input.value = ((r = a.formatter) == null ? void 0 : r.call(a, "")) ?? ""), s("blur", e), a.validateEvent && ((l = d == null ? void 0 : d.validate) == null || l.call(d, "blur").catch(re));
|
|
167
166
|
}, O = () => {
|
|
168
167
|
i.currentValue !== a.modelValue && (i.currentValue = a.modelValue);
|
|
169
168
|
}, ve = (e) => {
|
|
@@ -172,8 +171,8 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
172
171
|
return Z(
|
|
173
172
|
() => a.modelValue,
|
|
174
173
|
(e, t) => {
|
|
175
|
-
const
|
|
176
|
-
i.userInput === null &&
|
|
174
|
+
const r = B(e, !0);
|
|
175
|
+
i.userInput === null && r !== t && (i.currentValue = r);
|
|
177
176
|
},
|
|
178
177
|
{ immediate: !0 }
|
|
179
178
|
), Z(
|
|
@@ -183,12 +182,12 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
183
182
|
}
|
|
184
183
|
), ye(() => {
|
|
185
184
|
var m;
|
|
186
|
-
const { min: e, max: t, modelValue:
|
|
185
|
+
const { min: e, max: t, modelValue: r } = a, l = (m = p.value) == null ? void 0 : m.input;
|
|
187
186
|
if (l.setAttribute("role", "spinbutton"), Number.isFinite(t) ? l.setAttribute("aria-valuemax", String(t)) : l.removeAttribute("aria-valuemax"), Number.isFinite(e) ? l.setAttribute("aria-valuemin", String(e)) : l.removeAttribute("aria-valuemin"), l.setAttribute(
|
|
188
187
|
"aria-valuenow",
|
|
189
188
|
i.currentValue || i.currentValue === 0 ? String(i.currentValue) : ""
|
|
190
|
-
), l.setAttribute("aria-disabled", String(v.value)), !h(
|
|
191
|
-
let f = Number(
|
|
189
|
+
), l.setAttribute("aria-disabled", String(v.value)), !h(r) && r != null) {
|
|
190
|
+
let f = Number(r);
|
|
192
191
|
Number.isNaN(f) && (f = null), s(V, f);
|
|
193
192
|
}
|
|
194
193
|
l.addEventListener("wheel", ve, { passive: !1 });
|
|
@@ -196,67 +195,67 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
196
195
|
var t;
|
|
197
196
|
const e = (t = p.value) == null ? void 0 : t.input;
|
|
198
197
|
e == null || e.setAttribute("aria-valuenow", `${i.currentValue ?? ""}`);
|
|
199
|
-
}),
|
|
198
|
+
}), ne({
|
|
200
199
|
/** @description get focus the input component */
|
|
201
200
|
focus: J,
|
|
202
201
|
/** @description remove focus the input component */
|
|
203
202
|
blur: be
|
|
204
203
|
}), (e, t) => (b(), w("div", {
|
|
205
204
|
class: I([
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
n(c).b(),
|
|
206
|
+
n(c).m(n(X)),
|
|
207
|
+
n(c).is("disabled", n(v)),
|
|
208
|
+
n(c).is("without-controls", !u.controls),
|
|
209
|
+
n(c).is("controls-right", C.value),
|
|
210
|
+
n(c).is(u.align, !!u.align),
|
|
211
|
+
n(c).is("float-label", a.floatLabel)
|
|
213
212
|
]),
|
|
214
213
|
onDragstart: t[0] || (t[0] = ge(() => {
|
|
215
214
|
}, ["prevent"]))
|
|
216
215
|
}, [
|
|
217
216
|
a.floatLabel ? (b(), w("span", {
|
|
218
217
|
key: 0,
|
|
219
|
-
id:
|
|
220
|
-
class: I(["el-float-label",
|
|
218
|
+
id: n(H),
|
|
219
|
+
class: I(["el-float-label", n(se)]),
|
|
221
220
|
onClick: J
|
|
222
221
|
}, xe(u.placeholder), 11, Ue)) : R("", !0),
|
|
223
222
|
u.controls ? _((b(), w("span", {
|
|
224
223
|
key: 1,
|
|
225
224
|
role: "button",
|
|
226
|
-
"aria-label":
|
|
227
|
-
class: I([
|
|
225
|
+
"aria-label": n(G)("el.inputNumber.decrease"),
|
|
226
|
+
class: I([n(c).e("decrease"), n(c).is("disabled", U.value)]),
|
|
228
227
|
onKeydown: ee(T, ["enter"])
|
|
229
228
|
}, [
|
|
230
229
|
S(e.$slots, "decrease-icon", {}, () => [
|
|
231
|
-
$(
|
|
230
|
+
$(n(te), null, {
|
|
232
231
|
default: A(() => [
|
|
233
|
-
C.value ? (b(),
|
|
232
|
+
C.value ? (b(), L(n(Pe), { key: 0 })) : (b(), L(n(Te), { key: 1 }))
|
|
234
233
|
]),
|
|
235
234
|
_: 1
|
|
236
235
|
})
|
|
237
236
|
])
|
|
238
237
|
], 42, We)), [
|
|
239
|
-
[
|
|
238
|
+
[n(ae), T]
|
|
240
239
|
]) : R("", !0),
|
|
241
240
|
u.controls ? _((b(), w("span", {
|
|
242
241
|
key: 2,
|
|
243
242
|
role: "button",
|
|
244
|
-
"aria-label":
|
|
245
|
-
class: I([
|
|
243
|
+
"aria-label": n(G)("el.inputNumber.increase"),
|
|
244
|
+
class: I([n(c).e("increase"), n(c).is("disabled", W.value)]),
|
|
246
245
|
onKeydown: ee(P, ["enter"])
|
|
247
246
|
}, [
|
|
248
247
|
S(e.$slots, "increase-icon", {}, () => [
|
|
249
|
-
$(
|
|
248
|
+
$(n(te), null, {
|
|
250
249
|
default: A(() => [
|
|
251
|
-
C.value ? (b(),
|
|
250
|
+
C.value ? (b(), L(n(Be), { key: 0 })) : (b(), L(n(Oe), { key: 1 }))
|
|
252
251
|
]),
|
|
253
252
|
_: 1
|
|
254
253
|
})
|
|
255
254
|
])
|
|
256
255
|
], 42, Xe)), [
|
|
257
|
-
[
|
|
256
|
+
[n(ae), P]
|
|
258
257
|
]) : R("", !0),
|
|
259
|
-
$(
|
|
258
|
+
$(n(Ie), {
|
|
260
259
|
id: u.id,
|
|
261
260
|
ref_key: "input",
|
|
262
261
|
ref: p,
|
|
@@ -265,8 +264,8 @@ const Ue = ["id"], We = ["aria-label"], Xe = ["aria-label"], ft = /* @__PURE__ *
|
|
|
265
264
|
"model-value": M.value,
|
|
266
265
|
placeholder: a.floatLabel ? void 0 : u.placeholder,
|
|
267
266
|
readonly: u.readonly,
|
|
268
|
-
disabled:
|
|
269
|
-
size:
|
|
267
|
+
disabled: n(v),
|
|
268
|
+
size: n(X),
|
|
270
269
|
max: u.max,
|
|
271
270
|
min: u.min,
|
|
272
271
|
name: u.name,
|
|
@@ -72,6 +72,10 @@ export interface InputNumberProps {
|
|
|
72
72
|
* @description native aria-label attribute
|
|
73
73
|
*/
|
|
74
74
|
ariaLabel?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @description native aria-labelledby attribute
|
|
77
|
+
*/
|
|
78
|
+
ariaLabelledby?: string;
|
|
75
79
|
/**
|
|
76
80
|
* @description native input mode for virtual keyboards
|
|
77
81
|
*/
|
|
@@ -123,6 +127,7 @@ export declare const inputNumberProps: {
|
|
|
123
127
|
};
|
|
124
128
|
readonly tabindex: import("../../utils/index.js").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
125
129
|
readonly ariaLabel: StringConstructor;
|
|
130
|
+
readonly ariaLabelledby: StringConstructor;
|
|
126
131
|
readonly id: import("../../utils/index.js").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
127
132
|
readonly step: import("../../utils/index.js").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
128
133
|
readonly stepStrictly: BooleanConstructor;
|
|
@@ -3,9 +3,9 @@ import { isNumber as r } from "../../utils/types.js";
|
|
|
3
3
|
import { buildProps as n, definePropType as t } from "../../utils/vue/props/runtime.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
import "@vueuse/core";
|
|
6
|
-
import { useSizeProp as
|
|
7
|
-
import { useAriaProps as
|
|
8
|
-
import { floatLabelProp as
|
|
6
|
+
import { useSizeProp as l } from "../../hooks/use-size/index.js";
|
|
7
|
+
import { useAriaProps as a } from "../../hooks/use-aria/index.js";
|
|
8
|
+
import { floatLabelProp as u } from "../../hooks/use-float-label/index.js";
|
|
9
9
|
import { UPDATE_MODEL_EVENT as p, INPUT_EVENT as m, CHANGE_EVENT as d } from "../../constants/event.js";
|
|
10
10
|
n({
|
|
11
11
|
/**
|
|
@@ -60,7 +60,7 @@ n({
|
|
|
60
60
|
/**
|
|
61
61
|
* @description size of the component
|
|
62
62
|
*/
|
|
63
|
-
size:
|
|
63
|
+
size: l,
|
|
64
64
|
/**
|
|
65
65
|
* @description whether to enable the control buttons
|
|
66
66
|
*/
|
|
@@ -106,7 +106,7 @@ n({
|
|
|
106
106
|
type: Boolean,
|
|
107
107
|
default: !0
|
|
108
108
|
},
|
|
109
|
-
...
|
|
109
|
+
...a(["ariaLabel", "ariaLabelledby"]),
|
|
110
110
|
/**
|
|
111
111
|
* @description native input mode for virtual keyboards
|
|
112
112
|
*/
|
|
@@ -144,7 +144,7 @@ n({
|
|
|
144
144
|
type: [String, Number],
|
|
145
145
|
default: 0
|
|
146
146
|
},
|
|
147
|
-
...
|
|
147
|
+
...u
|
|
148
148
|
});
|
|
149
149
|
const P = {
|
|
150
150
|
[d]: (e, i) => i !== e,
|
|
@@ -5,6 +5,7 @@ export default EpSelect;
|
|
|
5
5
|
export declare const ElSelect: {
|
|
6
6
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
ariaLabel: StringConstructor;
|
|
8
|
+
ariaLabelledby: StringConstructor;
|
|
8
9
|
emptyValues: ArrayConstructor;
|
|
9
10
|
valueOnClear: import("../../utils/index.js").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
10
11
|
floatLabel: import("../../utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -111,7 +112,7 @@ export declare const ElSelect: {
|
|
|
111
112
|
floatLabelClass: import("vue").ComputedRef<import("../../hooks/index.js").FloatLabelClass>;
|
|
112
113
|
floatLabelText: import("vue").ComputedRef<string>;
|
|
113
114
|
floatLabelId: import("vue").Ref<string, string>;
|
|
114
|
-
|
|
115
|
+
ariaLabelledbyValue: import("vue").ComputedRef<string | undefined>;
|
|
115
116
|
calculatorRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
116
117
|
inputStyle: import("vue").ComputedRef<{
|
|
117
118
|
minWidth: string;
|
|
@@ -961,6 +962,7 @@ export declare const ElSelect: {
|
|
|
961
962
|
Defaults: {};
|
|
962
963
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
963
964
|
ariaLabel: StringConstructor;
|
|
965
|
+
ariaLabelledby: StringConstructor;
|
|
964
966
|
emptyValues: ArrayConstructor;
|
|
965
967
|
valueOnClear: import("../../utils/index.js").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
966
968
|
floatLabel: import("../../utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -1067,7 +1069,7 @@ export declare const ElSelect: {
|
|
|
1067
1069
|
floatLabelClass: import("vue").ComputedRef<import("../../hooks/index.js").FloatLabelClass>;
|
|
1068
1070
|
floatLabelText: import("vue").ComputedRef<string>;
|
|
1069
1071
|
floatLabelId: import("vue").Ref<string, string>;
|
|
1070
|
-
|
|
1072
|
+
ariaLabelledbyValue: import("vue").ComputedRef<string | undefined>;
|
|
1071
1073
|
calculatorRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
1072
1074
|
inputStyle: import("vue").ComputedRef<{
|
|
1073
1075
|
minWidth: string;
|
|
@@ -1279,6 +1281,7 @@ export declare const ElSelect: {
|
|
|
1279
1281
|
__isSuspense?: never;
|
|
1280
1282
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
1281
1283
|
ariaLabel: StringConstructor;
|
|
1284
|
+
ariaLabelledby: StringConstructor;
|
|
1282
1285
|
emptyValues: ArrayConstructor;
|
|
1283
1286
|
valueOnClear: import("../../utils/index.js").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
1284
1287
|
floatLabel: import("../../utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -1385,7 +1388,7 @@ export declare const ElSelect: {
|
|
|
1385
1388
|
floatLabelClass: import("vue").ComputedRef<import("../../hooks/index.js").FloatLabelClass>;
|
|
1386
1389
|
floatLabelText: import("vue").ComputedRef<string>;
|
|
1387
1390
|
floatLabelId: import("vue").Ref<string, string>;
|
|
1388
|
-
|
|
1391
|
+
ariaLabelledbyValue: import("vue").ComputedRef<string | undefined>;
|
|
1389
1392
|
calculatorRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
1390
1393
|
inputStyle: import("vue").ComputedRef<{
|
|
1391
1394
|
minWidth: string;
|
|
@@ -23,6 +23,7 @@ export interface TagTooltipProps {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const selectProps: {
|
|
25
25
|
ariaLabel: StringConstructor;
|
|
26
|
+
ariaLabelledby: StringConstructor;
|
|
26
27
|
emptyValues: ArrayConstructor;
|
|
27
28
|
valueOnClear: import("../../utils/index.js").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
28
29
|
floatLabel: import("../../utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -10,7 +10,7 @@ import { useEmptyValuesProps as f } from "../../hooks/use-empty-values/index.js"
|
|
|
10
10
|
import { floatLabelProp as m } from "../../hooks/use-float-label/index.js";
|
|
11
11
|
import { ArrowDown as s, CircleClose as d } from "@element-plus/icons-vue";
|
|
12
12
|
import { CHANGE_EVENT as c, UPDATE_MODEL_EVENT as y } from "../../constants/event.js";
|
|
13
|
-
import { defaultProps as
|
|
13
|
+
import { defaultProps as b } from "../select-v2/src/useProps.js";
|
|
14
14
|
import { scrollbarEmits as r } from "../scrollbar/src/scrollbar.js";
|
|
15
15
|
import { useTooltipContentProps as a } from "../tooltip/src/content.js";
|
|
16
16
|
import { tagProps as l } from "../tag/tag.js";
|
|
@@ -286,11 +286,11 @@ const F = i({
|
|
|
286
286
|
},
|
|
287
287
|
props: {
|
|
288
288
|
type: e(Object),
|
|
289
|
-
default: () =>
|
|
289
|
+
default: () => b
|
|
290
290
|
},
|
|
291
291
|
...m,
|
|
292
292
|
...f,
|
|
293
|
-
...u(["ariaLabel"])
|
|
293
|
+
...u(["ariaLabel", "ariaLabelledby"])
|
|
294
294
|
}), L = {
|
|
295
295
|
// todo: use generics to eliminate any
|
|
296
296
|
[y]: (t) => !0,
|
|
@@ -2,6 +2,7 @@ import type { VNode } from 'vue';
|
|
|
2
2
|
import type { SelectContext } from './src/type.js';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
ariaLabel: StringConstructor;
|
|
5
|
+
ariaLabelledby: StringConstructor;
|
|
5
6
|
emptyValues: ArrayConstructor;
|
|
6
7
|
valueOnClear: import("../../utils/index.js").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
7
8
|
floatLabel: import("../../utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -95,7 +96,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
95
96
|
floatLabelClass: import("vue").ComputedRef<import("../../hooks/index.js").FloatLabelClass>;
|
|
96
97
|
floatLabelText: import("vue").ComputedRef<string>;
|
|
97
98
|
floatLabelId: import("vue").Ref<string, string>;
|
|
98
|
-
|
|
99
|
+
ariaLabelledbyValue: import("vue").ComputedRef<string | undefined>;
|
|
99
100
|
calculatorRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
100
101
|
inputStyle: import("vue").ComputedRef<{
|
|
101
102
|
minWidth: string;
|
|
@@ -276,6 +277,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
276
277
|
clear: () => boolean;
|
|
277
278
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
278
279
|
ariaLabel: StringConstructor;
|
|
280
|
+
ariaLabelledby: StringConstructor;
|
|
279
281
|
emptyValues: ArrayConstructor;
|
|
280
282
|
valueOnClear: import("../../utils/index.js").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
281
283
|
floatLabel: import("../../utils/index.js").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import J from "./select2.vue.js";
|
|
2
|
-
import { resolveComponent as b, resolveDirective as Q, withDirectives as c, openBlock as l, createElementBlock as n, mergeProps as
|
|
2
|
+
import { resolveComponent as b, resolveDirective as Q, withDirectives as c, openBlock as l, createElementBlock as n, mergeProps as V, toHandlerKey as W, createVNode as m, withCtx as i, withModifiers as v, normalizeClass as s, renderSlot as f, createCommentVNode as p, createBlock as u, Fragment as C, renderList as k, vShow as X, createElementVNode as r, toDisplayString as g, normalizeStyle as L, createTextVNode as A, resolveDynamicComponent as R } from "vue";
|
|
3
3
|
import Y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const Z = ["id"], x = ["id", "value", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "aria-labelledby"], _ = ["textContent"], ee = { key: 1 };
|
|
5
5
|
function le(e, o, oe, se, ae, ne) {
|
|
6
6
|
const w = b("el-tag"), I = b("el-tooltip"), T = b("el-icon"), h = b("el-option"), F = b("el-option-group"), U = b("el-options"), j = b("el-scrollbar"), q = b("el-select-menu"), G = Q("click-outside");
|
|
7
|
-
return c((l(), n("div",
|
|
7
|
+
return c((l(), n("div", V({
|
|
8
8
|
ref: "selectRef",
|
|
9
9
|
class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
|
|
10
10
|
}, {
|
|
@@ -88,7 +88,7 @@ function le(e, o, oe, se, ae, ne) {
|
|
|
88
88
|
type: e.tagType,
|
|
89
89
|
effect: e.tagEffect,
|
|
90
90
|
"disable-transitions": "",
|
|
91
|
-
style:
|
|
91
|
+
style: L(e.tagStyle),
|
|
92
92
|
onClose: ($) => e.deleteTag($, t)
|
|
93
93
|
}, {
|
|
94
94
|
default: i(() => [
|
|
@@ -141,7 +141,7 @@ function le(e, o, oe, se, ae, ne) {
|
|
|
141
141
|
type: e.tagType,
|
|
142
142
|
effect: e.tagEffect,
|
|
143
143
|
"disable-transitions": "",
|
|
144
|
-
style:
|
|
144
|
+
style: L(e.collapseTagStyle)
|
|
145
145
|
}, {
|
|
146
146
|
default: i(() => [
|
|
147
147
|
r("span", {
|
|
@@ -211,7 +211,7 @@ function le(e, o, oe, se, ae, ne) {
|
|
|
211
211
|
class: s([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
|
|
212
212
|
disabled: e.selectDisabled,
|
|
213
213
|
autocomplete: e.autocomplete,
|
|
214
|
-
style:
|
|
214
|
+
style: L(e.inputStyle),
|
|
215
215
|
tabindex: e.tabindex,
|
|
216
216
|
role: "combobox",
|
|
217
217
|
readonly: !e.filterable,
|
|
@@ -220,7 +220,7 @@ function le(e, o, oe, se, ae, ne) {
|
|
|
220
220
|
"aria-controls": e.contentId,
|
|
221
221
|
"aria-expanded": e.dropdownMenuVisible,
|
|
222
222
|
"aria-label": e.ariaLabel,
|
|
223
|
-
"aria-labelledby": e.
|
|
223
|
+
"aria-labelledby": e.ariaLabelledbyValue,
|
|
224
224
|
"aria-autocomplete": "none",
|
|
225
225
|
"aria-haspopup": "listbox",
|
|
226
226
|
onKeydown: o[0] || (o[0] = (...a) => e.handleKeydown && e.handleKeydown(...a)),
|
|
@@ -324,7 +324,7 @@ function le(e, o, oe, se, ae, ne) {
|
|
|
324
324
|
class: s([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
|
|
325
325
|
role: "listbox",
|
|
326
326
|
"aria-label": e.ariaLabel,
|
|
327
|
-
"aria-labelledby": e.
|
|
327
|
+
"aria-labelledby": e.ariaLabelledbyValue,
|
|
328
328
|
"aria-orientation": "vertical",
|
|
329
329
|
onScroll: e.popupScroll,
|
|
330
330
|
onEndReached: e.endReached
|
|
@@ -347,12 +347,12 @@ function le(e, o, oe, se, ae, ne) {
|
|
|
347
347
|
disabled: e.getDisabled(d)
|
|
348
348
|
}, {
|
|
349
349
|
default: i(() => [
|
|
350
|
-
(l(!0), n(C, null, k(e.getOptions(d), (y) => (l(), u(h,
|
|
350
|
+
(l(!0), n(C, null, k(e.getOptions(d), (y) => (l(), u(h, V({
|
|
351
351
|
key: e.getValue(y)
|
|
352
352
|
}, { ref_for: !0 }, e.getOptionProps(y)), null, 16))), 128))
|
|
353
353
|
]),
|
|
354
354
|
_: 2
|
|
355
|
-
}, 1032, ["label", "disabled"])) : (l(), u(h,
|
|
355
|
+
}, 1032, ["label", "disabled"])) : (l(), u(h, V({
|
|
356
356
|
key: 1,
|
|
357
357
|
ref_for: !0
|
|
358
358
|
}, e.getOptionProps(d)), null, 16))
|