@solar-taro/ui-sun 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.2.1 (2025-07-26)
2
+
3
+ This was a version bump only for ui-sun to align it with other projects, there were no code changes.
4
+
5
+ ## 1.2.0 (2025-07-25)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **ui-vant/cascader:** add cascader component
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - HyperLife1119
14
+
1
15
  ## 1.1.13 (2025-07-21)
2
16
 
3
17
  This was a version bump only for ui-sun to align it with other projects, there were no code changes.
package/index18.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as F, ref as f, computed as i, onMounted as N, renderList as P, Fragment as I, openBlock as E, createElementBlock as L, renderSlot as D, normalizeStyle as M, createElementVNode as A, toDisplayString as K, createTextVNode as R, unref as j, withCtx as q, createBlock as O, createCommentVNode as Q, mergeProps as W } from "vue";
1
+ import { defineComponent as F, ref as f, computed as n, onMounted as P, renderList as V, Fragment as I, openBlock as L, createElementBlock as N, renderSlot as D, normalizeStyle as M, createCommentVNode as A, toDisplayString as E, createTextVNode as K, unref as R, withCtx as j, createBlock as q, mergeProps as O } from "vue";
2
2
  import { withPixel as S } from "@solar-kit/core";
3
- import { rpxToPx as X, vibrator as Y } from "@solar-taro/core";
4
- import { createSelectorQuery as G } from "@tarojs/taro";
5
- import H from "./index13.js";
6
- const J = P, U = I, s = E, u = L, w = D, p = M, Z = A, ee = K, te = R, k = j, re = q, le = O, b = Q, oe = W, ne = ["id", "refresher-enabled", "refresher-triggered", "refresher-background", "scroll-x", "scroll-y"], ie = {
7
- key: 0,
3
+ import { rpxToPx as Q, vibrator as W } from "@solar-taro/core";
4
+ import { createSelectorQuery as X } from "@tarojs/taro";
5
+ import Y from "./index13.js";
6
+ const G = V, H = I, a = L, u = N, w = D, h = M, J = A, U = E, Z = K, k = R, ee = j, te = q, re = O, le = ["id", "refresher-enabled", "refresher-triggered", "refresher-background", "scroll-x", "scroll-y"], oe = {
7
+ key: 1,
8
8
  class: "sun-virtual-scroll-placeholder",
9
9
  style: { display: "flex", "justify-content": "center", "align-items": "center", height: "85%" }
10
10
  };
11
- let ae = 1;
12
- const de = /* @__PURE__ */ F({
11
+ let ie = 1;
12
+ const me = /* @__PURE__ */ F({
13
13
  __name: "index",
14
14
  props: {
15
15
  refreshing: { type: Boolean },
@@ -19,49 +19,49 @@ const de = /* @__PURE__ */ F({
19
19
  items: {},
20
20
  itemSize: {},
21
21
  itemKey: {},
22
- id: { default: () => `sun-virtual-scroll-${ae++}` },
22
+ id: { default: () => `sun-virtual-scroll-${ie++}` },
23
23
  bottomSpace: { default: 0 },
24
24
  loading: { type: Boolean },
25
25
  loadingText: { default: "Loading" }
26
26
  },
27
27
  emits: ["refresh", "lower"],
28
- setup(z, { emit: B }) {
29
- const h = B, r = z;
28
+ setup(b, { emit: z }) {
29
+ const p = z, r = b;
30
30
  let c;
31
- const a = f(0), m = f(0), d = f(0), l = i(() => r.direction === "vertical"), $ = i(() => ({
31
+ const s = f(0), m = f(0), d = f(0), l = n(() => r.direction === "vertical"), B = n(() => ({
32
32
  right: l.value ? "0" : "auto",
33
33
  transform: `translate${l.value ? "Y" : "X"}(${d.value}px)`,
34
34
  "white-space": l.value ? "normal" : "nowrap"
35
- })), n = i(() => typeof r.itemSize == "number" ? r.itemSize : r.itemSize.endsWith("rpx") ? X(parseFloat(r.itemSize)) : parseFloat(r.itemSize)), x = i(() => n.value * r.items.length), _ = i(() => ({
36
- [l.value ? "height" : "width"]: S(x.value + r.bottomSpace)
37
- })), C = i(() => ({
35
+ })), i = n(() => typeof r.itemSize == "number" ? r.itemSize : r.itemSize.endsWith("rpx") ? Q(parseFloat(r.itemSize)) : parseFloat(r.itemSize)), $ = n(() => i.value * r.items.length), x = n(() => ({
36
+ [l.value ? "height" : "width"]: S($.value + r.bottomSpace)
37
+ })), C = n(() => ({
38
38
  display: l.value ? "block" : "inline-block",
39
- [l.value ? "height" : "width"]: S(n.value)
40
- })), V = i(
39
+ [l.value ? "height" : "width"]: S(i.value)
40
+ })), _ = n(
41
41
  () => r.items.slice(
42
- Math.max(m.value - a.value, 0),
43
- m.value + a.value * 2
42
+ Math.max(m.value - s.value, 0),
43
+ m.value + s.value * 2
44
44
  )
45
45
  );
46
46
  function T({ detail: e }) {
47
47
  c && cancelAnimationFrame(c), c = requestAnimationFrame(() => {
48
48
  const t = l.value ? e.scrollTop : e.scrollLeft;
49
- m.value = ~~(t / n.value), m.value > a.value - 1 ? d.value = t - n.value * a.value - t % n.value : d.value = t - t % (n.value * a.value), c = 0;
49
+ m.value = ~~(t / i.value), m.value > s.value - 1 ? d.value = t - i.value * s.value - t % i.value : d.value = t - t % (i.value * s.value), c = 0;
50
50
  });
51
51
  }
52
52
  function g() {
53
53
  setTimeout(() => {
54
- G().select(`#${r.id}`).boundingClientRect((e) => {
54
+ X().select(`#${r.id}`).boundingClientRect((e) => {
55
55
  if (e = e, !(e != null && e.height) || !(e != null && e.width))
56
56
  return g();
57
57
  const { height: t, width: o } = e, v = l.value ? t : o;
58
- a.value = Math.ceil(v / n.value);
58
+ s.value = Math.ceil(v / i.value);
59
59
  }).exec();
60
60
  });
61
61
  }
62
- return N(() => {
62
+ return P(() => {
63
63
  g();
64
- }), (e, t) => (s(), u("scroll-view", oe(e.$attrs, {
64
+ }), (e, t) => (a(), u("scroll-view", re(e.$attrs, {
65
65
  id: e.id,
66
66
  class: "sun-virtual-scroll",
67
67
  "refresher-enabled": e.refresher,
@@ -70,24 +70,24 @@ const de = /* @__PURE__ */ F({
70
70
  "scroll-x": !l.value,
71
71
  "scroll-y": l.value,
72
72
  enhanced: !0,
73
- "enable-passive": !0,
74
73
  "lower-threshold": 300,
75
74
  onScrollPassive: t[0] || (t[0] = (o) => T(o)),
76
75
  onRefresherrefresh: t[1] || (t[1] = (o) => {
77
- k(Y).short("light"), h("refresh");
76
+ k(W).short("light"), p("refresh");
78
77
  }),
79
- onScrolltolower: t[2] || (t[2] = (o) => h("lower"))
78
+ onScrolltolower: t[2] || (t[2] = (o) => p("lower"))
80
79
  }), [
81
- Z("view", {
80
+ e.items.length ? (a(), u("view", {
81
+ key: 0,
82
82
  class: "sun-virtual-scroll-content-container",
83
- style: p($.value)
83
+ style: h(B.value)
84
84
  }, [
85
- (s(!0), u(U, null, J(V.value, (o, v) => {
85
+ (a(!0), u(H, null, G(_.value, (o, v) => {
86
86
  var y;
87
- return s(), u("view", {
87
+ return a(), u("view", {
88
88
  key: (y = o[e.itemKey]) != null ? y : v,
89
89
  class: "sun-virtual-scroll-item",
90
- style: p(C.value)
90
+ style: h(C.value)
91
91
  }, [
92
92
  w(e.$slots, "default", {
93
93
  item: o,
@@ -95,26 +95,25 @@ const de = /* @__PURE__ */ F({
95
95
  })
96
96
  ], 4);
97
97
  }), 128))
98
- ], 4),
99
- e.items.length ? b("", !0) : (s(), u("view", ie, [
100
- e.loading ? (s(), le(k(H), {
98
+ ], 4)) : (a(), u("view", oe, [
99
+ e.loading ? (a(), te(k(Y), {
101
100
  key: 0,
102
101
  spinning: !0
103
102
  }, {
104
- default: re(() => [
105
- te(ee(e.loadingText), 1)
103
+ default: ee(() => [
104
+ Z(U(e.loadingText), 1)
106
105
  ]),
107
106
  _: 1
108
107
  })) : w(e.$slots, "empty", { key: 1 })
109
108
  ])),
110
- e.items.length ? (s(), u("view", {
111
- key: 1,
109
+ e.items.length ? (a(), u("view", {
110
+ key: 2,
112
111
  class: "sun-virtual-scroll-spacer",
113
- style: p(_.value)
114
- }, null, 4)) : b("", !0)
115
- ], 16, ne));
112
+ style: h(x.value)
113
+ }, null, 4)) : J("", !0)
114
+ ], 16, le));
116
115
  }
117
116
  });
118
117
  export {
119
- de as default
118
+ me as default
120
119
  };
package/index19.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { renderSlot as r, mergeProps as o, openBlock as t, createElementBlock as n } from "vue";
2
- import c from "./index26.js";
2
+ import c from "./index23.js";
3
3
  const s = {}, l = r, a = o, f = t, _ = n;
4
4
  function m(e, p) {
5
5
  return f(), _("view", a(e.$attrs, { class: "sun-fab" }), [
package/index20.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { renderSlot as o, mergeProps as r, openBlock as t, createElementBlock as s } from "vue";
2
- import n from "./index26.js";
2
+ import n from "./index23.js";
3
3
  const c = {}, l = o, m = r, _ = t, a = s;
4
4
  function u(e, d) {
5
5
  return _(), a("view", m(e.$attrs, { class: "sun-sudoku-item" }), [
package/index21.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index3.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.js";
1
+ import f from "./index6.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index23.js CHANGED
@@ -1,4 +1,9 @@
1
- import f from "./index3.js";
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
2
7
  export {
3
- f as default
8
+ s as default
4
9
  };
package/index24.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index8.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index25.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index6.js";
1
+ import f from "./index10.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index26.js CHANGED
@@ -1,9 +1,4 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
1
+ import f from "./index13.js";
7
2
  export {
8
- s as default
3
+ f as default
9
4
  };
package/index28.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index13.js";
1
+ import f from "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index29.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index11.js";
1
+ import f from "./index14.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index30.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index12.js";
1
+ import f from "./index11.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index31.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index15.js";
1
+ import f from "./index12.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index32.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index16.js";
1
+ import f from "./index15.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index33.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index17.js";
1
+ import f from "./index16.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index34.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index17.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index35.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index18.js";
1
+ import f from "./index5.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index36.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index10.js";
1
+ import f from "./index18.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index37.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index14.js";
1
+ import f from "./index4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-sun",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",