@solar-taro/ui-vant 4.3.8 → 4.3.10

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## 4.3.9 (2026-10-26)
2
+
3
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
4
+
5
+ ## 4.3.8 (2026-10-25)
6
+
7
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
8
+
1
9
  ## 4.3.7 (2026-10-23)
2
10
 
3
11
  This was a version bump only for ui-vant to align it with other projects, there were no code changes.
package/index15.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index3.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index16.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index3.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index17.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.js";
1
+ import f from "./index5.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index18.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index6.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index8.js CHANGED
@@ -39,25 +39,25 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
39
39
  }),
40
40
  emits: /* @__PURE__ */ I(["select", "unselect", "clear", "close", "confirm", "refresh"], ["update:modelValue", "update:keyword"]),
41
41
  setup(s, { expose: E, emit: oe }) {
42
- const [ae, U] = Ae(), w = Q(Ce, void 0), q = Q(Ee, void 0), r = s, h = oe, d = X(s, "modelValue"), $ = Y(!1), se = f(() => {
42
+ const [ae, U] = Ae(), w = Q(Ce, void 0), q = Q(Ee, void 0), r = s, h = oe, d = X(s, "modelValue"), B = Y(!1), se = f(() => {
43
43
  const e = r.optionSize;
44
44
  return typeof e == "function" ? e : () => e;
45
- }), B = f(() => r.options.flatMap((e) => ve(e) ? e.options.map((t) => ({
45
+ }), L = f(() => r.options.flatMap((e) => ve(e) ? e.options.map((t) => ({
46
46
  ...t,
47
47
  parent: e
48
- })) : e)), L = X(s, "keyword"), G = f(() => B.value.filter((e) => {
49
- const t = L.value.toLowerCase();
48
+ })) : e)), V = X(s, "keyword"), G = f(() => L.value.filter((e) => {
49
+ const t = V.value.toLowerCase();
50
50
  return ue.value(e, t);
51
- })), V = f(() => {
51
+ })), T = f(() => {
52
52
  var e;
53
53
  if (m.value) {
54
- const t = B.value.find(
54
+ const t = L.value.find(
55
55
  (l) => r.compareWith(l.value, d.value)
56
56
  );
57
57
  return t ? [t] : [];
58
58
  }
59
59
  return ((e = d.value) != null ? e : []).map(
60
- (t) => B.value.find((l) => r.compareWith(l.value, t))
60
+ (t) => L.value.find((l) => r.compareWith(l.value, t))
61
61
  ).filter(Boolean);
62
62
  }), i = f(() => {
63
63
  const e = G.value, t = /* @__PURE__ */ new Set();
@@ -67,7 +67,7 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
67
67
  });
68
68
  }), j = f(
69
69
  () => i.value.reduce((e, t, l) => (t.kind === "optionGroup" && e.push(l), e), [])
70
- ), re = f(() => [...j.value].reverse()), A = Y(0), ue = f(() => r.filter || ((e, t) => e.label.toLowerCase().includes(t))), P = f(() => V.value.map((e) => e.label).join(r.delimiter)), H = f(() => !ie(d.value) && r.clearable && !r.disabled), m = f(() => r.mode === "single");
70
+ ), re = f(() => [...j.value].reverse()), A = Y(0), ue = f(() => r.filter || ((e, t) => e.label.toLowerCase().includes(t))), P = f(() => T.value.map((e) => e.label).join(r.delimiter)), H = f(() => !ie(d.value) && r.clearable && !r.disabled), m = f(() => r.mode === "single");
71
71
  function ie(e) {
72
72
  return te(e) ? !0 : m.value ? !1 : e.length < 1;
73
73
  }
@@ -77,15 +77,15 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
77
77
  return m.value ? te(d.value) ? !1 : r.compareWith(d.value, t) : ((l = d.value) == null ? void 0 : l.some((n) => r.compareWith(n, t))) || !1;
78
78
  }
79
79
  function z() {
80
- r.disabled || ($.value = !0);
80
+ r.disabled || (B.value = !0);
81
81
  }
82
82
  function J() {
83
- $.value = !1, h("close");
83
+ B.value = !1, h("close");
84
84
  }
85
85
  function K() {
86
86
  var t;
87
87
  const e = ((t = d.value) == null ? void 0 : t.map(
88
- (l) => B.value.find(
88
+ (l) => L.value.find(
89
89
  (n) => r.compareWith(n.value, l)
90
90
  )
91
91
  )) || [];
@@ -109,7 +109,7 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
109
109
  return E({
110
110
  present: z,
111
111
  clear: W,
112
- keyword: L
112
+ keyword: V
113
113
  }), Z(() => {
114
114
  q && (q.required.value = r.required, q.disabled.value = r.disabled);
115
115
  }), Z(() => {
@@ -118,7 +118,7 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
118
118
  y(e.$slots, "default", {
119
119
  present: z,
120
120
  label: P.value,
121
- selectedOptions: V.value
121
+ selectedOptions: T.value
122
122
  }, () => [
123
123
  N("view", {
124
124
  class: F(["sun-selector", {
@@ -127,11 +127,11 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
127
127
  }]),
128
128
  onTap: t[1] || (t[1] = (l) => z())
129
129
  }, [
130
- V.value.length ? (o(), p("view", He, [
130
+ T.value.length ? (o(), p("view", He, [
131
131
  m.value ? (o(), p(S, { key: 0 }, [
132
132
  b(g(P.value), 1)
133
133
  ], 64)) : (o(), p("view", Je, [
134
- (o(!0), p(S, null, D(V.value, (l) => (o(), v(a(qe), {
134
+ (o(!0), p(S, null, D(T.value, (l) => (o(), v(a(qe), {
135
135
  color: "medium",
136
136
  type: "translucent"
137
137
  }, {
@@ -157,8 +157,8 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
157
157
  x(a(We), { hook: "created" }, {
158
158
  default: u(() => [
159
159
  x(a(Re), {
160
- show: $.value,
161
- "onUpdate:show": t[7] || (t[7] = (l) => $.value = l),
160
+ show: B.value,
161
+ "onUpdate:show": t[7] || (t[7] = (l) => B.value = l),
162
162
  title: s.placeholder,
163
163
  "with-actions": !m.value,
164
164
  onTap: t[8] || (t[8] = ne(() => {
@@ -179,11 +179,11 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
179
179
  ])
180
180
  ]),
181
181
  default: u(() => [
182
- y(e.$slots, "filter", {}, () => [
182
+ y(e.$slots, "filter", { keyword: V.value }, () => [
183
183
  s.searchable ? (o(), v(a(De), {
184
184
  key: 0,
185
- modelValue: L.value,
186
- "onUpdate:modelValue": t[3] || (t[3] = (l) => L.value = l),
185
+ modelValue: V.value,
186
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => V.value = l),
187
187
  placeholder: "输入关键字搜索"
188
188
  }, null, 8, ["modelValue"])) : k("", !0)
189
189
  ]),
@@ -200,8 +200,8 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
200
200
  overscan: 3,
201
201
  count: i.value.length,
202
202
  rangeExtractor: (l) => {
203
- const n = new Set(a(je)(l)), T = re.value.find((R) => l.startIndex >= R);
204
- return T !== void 0 && (n.add(T), A.value = T), [...n].sort((R, fe) => R - fe);
203
+ const n = new Set(a(je)(l)), $ = re.value.find((R) => l.startIndex >= R);
204
+ return $ !== void 0 && (n.add($), A.value = $), [...n].sort((R, fe) => R - fe);
205
205
  }
206
206
  },
207
207
  refresher: s.refresher,
@@ -237,7 +237,7 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
237
237
  class: F(["sun-selector-option", { "sun-selector-option-active": c(i.value[n.index].value) }]),
238
238
  clickable: !0,
239
239
  style: C(n.style),
240
- onTap: (T) => O(i.value[n.index].value)
240
+ onTap: ($) => O(i.value[n.index].value)
241
241
  }, {
242
242
  start: u(() => [
243
243
  y(e.$slots, "option-start", {
@@ -301,7 +301,7 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
301
301
  key: 1,
302
302
  class: F(["sun-selector-option", { "sun-selector-option-active": c(l.value) }]),
303
303
  clickable: !0,
304
- onTap: (T) => O(l.value)
304
+ onTap: ($) => O(l.value)
305
305
  }, {
306
306
  start: u(() => [
307
307
  y(e.$slots, "option-start", {
@@ -360,7 +360,7 @@ const y = me, g = xe, b = be, S = ye, o = ke, p = he, k = Le, D = we, a = Te, u
360
360
  default: u(() => [
361
361
  t[9] || (t[9] = b(" 清除 ", -1)),
362
362
  m.value ? k("", !0) : (o(), p(S, { key: 0 }, [
363
- b("(" + g(V.value.length) + ")", 1)
363
+ b("(" + g(T.value.length) + ")", 1)
364
364
  ], 64))
365
365
  ]),
366
366
  _: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "4.3.8",
3
+ "version": "4.3.10",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -43,7 +43,9 @@ declare const _default: <TValue, TOption extends SelectorOption<TValue>>(__VLS_p
43
43
  label: string;
44
44
  selectedOptions: TOption[];
45
45
  }): any;
46
- filter?(_: {}): any;
46
+ filter?(_: {
47
+ keyword: string;
48
+ }): any;
47
49
  'option-start'?(_: {
48
50
  option: TOption | SelectorOptionGroup<TOption>;
49
51
  index: number;