@solar-taro/ui-sun 1.1.13 → 1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.1.13 (2025-07-21)
2
+
3
+ This was a version bump only for ui-sun to align it with other projects, there were no code changes.
4
+
1
5
  ## 1.1.12 (2025-07-21)
2
6
 
3
7
  This was a version bump only for ui-sun to align it with other projects, there were no code changes.
package/index18.js CHANGED
@@ -3,12 +3,12 @@ import { withPixel as S } from "@solar-kit/core";
3
3
  import { rpxToPx as X, vibrator as Y } from "@solar-taro/core";
4
4
  import { createSelectorQuery as G } from "@tarojs/taro";
5
5
  import H from "./index13.js";
6
- const J = P, U = I, a = 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 = {
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
7
  key: 0,
8
8
  class: "sun-virtual-scroll-placeholder",
9
9
  style: { display: "flex", "justify-content": "center", "align-items": "center", height: "85%" }
10
10
  };
11
- let se = 1;
11
+ let ae = 1;
12
12
  const de = /* @__PURE__ */ F({
13
13
  __name: "index",
14
14
  props: {
@@ -19,7 +19,7 @@ const de = /* @__PURE__ */ F({
19
19
  items: {},
20
20
  itemSize: {},
21
21
  itemKey: {},
22
- id: { default: () => `sun-virtual-scroll-${se++}` },
22
+ id: { default: () => `sun-virtual-scroll-${ae++}` },
23
23
  bottomSpace: { default: 0 },
24
24
  loading: { type: Boolean },
25
25
  loadingText: { default: "Loading" }
@@ -28,7 +28,7 @@ const de = /* @__PURE__ */ F({
28
28
  setup(z, { emit: B }) {
29
29
  const h = B, r = z;
30
30
  let c;
31
- const s = f(0), m = f(0), d = f(0), l = i(() => r.direction === "vertical"), $ = i(() => ({
31
+ const a = f(0), m = f(0), d = f(0), l = i(() => r.direction === "vertical"), $ = i(() => ({
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"
@@ -39,29 +39,29 @@ const de = /* @__PURE__ */ F({
39
39
  [l.value ? "height" : "width"]: S(n.value)
40
40
  })), V = i(
41
41
  () => r.items.slice(
42
- Math.max(m.value - s.value, 0),
43
- m.value + s.value * 2
42
+ Math.max(m.value - a.value, 0),
43
+ m.value + a.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 > s.value - 1 ? d.value = t - n.value * s.value - t % n.value : d.value = t - t % (n.value * s.value), c = 0;
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;
50
50
  });
51
51
  }
52
52
  function g() {
53
53
  setTimeout(() => {
54
54
  G().select(`#${r.id}`).boundingClientRect((e) => {
55
- if (!e)
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
- s.value = Math.ceil(v / n.value);
58
+ a.value = Math.ceil(v / n.value);
59
59
  }).exec();
60
60
  });
61
61
  }
62
62
  return N(() => {
63
63
  g();
64
- }), (e, t) => (a(), u("scroll-view", oe(e.$attrs, {
64
+ }), (e, t) => (s(), u("scroll-view", oe(e.$attrs, {
65
65
  id: e.id,
66
66
  class: "sun-virtual-scroll",
67
67
  "refresher-enabled": e.refresher,
@@ -82,9 +82,9 @@ const de = /* @__PURE__ */ F({
82
82
  class: "sun-virtual-scroll-content-container",
83
83
  style: p($.value)
84
84
  }, [
85
- (a(!0), u(U, null, J(V.value, (o, v) => {
85
+ (s(!0), u(U, null, J(V.value, (o, v) => {
86
86
  var y;
87
- return a(), u("view", {
87
+ return s(), u("view", {
88
88
  key: (y = o[e.itemKey]) != null ? y : v,
89
89
  class: "sun-virtual-scroll-item",
90
90
  style: p(C.value)
@@ -96,8 +96,8 @@ const de = /* @__PURE__ */ F({
96
96
  ], 4);
97
97
  }), 128))
98
98
  ], 4),
99
- e.items.length ? b("", !0) : (a(), u("view", ie, [
100
- e.loading ? (a(), le(k(H), {
99
+ e.items.length ? b("", !0) : (s(), u("view", ie, [
100
+ e.loading ? (s(), le(k(H), {
101
101
  key: 0,
102
102
  spinning: !0
103
103
  }, {
@@ -107,7 +107,7 @@ const de = /* @__PURE__ */ F({
107
107
  _: 1
108
108
  })) : w(e.$slots, "empty", { key: 1 })
109
109
  ])),
110
- e.items.length ? (a(), u("view", {
110
+ e.items.length ? (s(), u("view", {
111
111
  key: 1,
112
112
  class: "sun-virtual-scroll-spacer",
113
113
  style: p(_.value)
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 "./index27.js";
2
+ import c from "./index26.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 "./index27.js";
2
+ import n from "./index26.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 "./index8.js";
1
+ import f from "./index7.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index22.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index7.js";
1
+ import f from "./index4.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index23.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index9.js";
1
+ import f from "./index3.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index24.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index10.js";
1
+ import f from "./index8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index25.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index5.js";
1
+ import f from "./index6.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index26.js CHANGED
@@ -1,4 +1,9 @@
1
- import f from "./index6.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/index27.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 "./index9.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 "./index3.js";
1
+ import f from "./index13.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index29.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index4.js";
1
+ import f from "./index11.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index30.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index11.js";
1
+ import f from "./index12.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index31.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index12.js";
1
+ import f from "./index15.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index32.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index13.js";
1
+ import f from "./index16.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index33.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index18.js";
1
+ import f from "./index17.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index34.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index14.js";
1
+ import f from "./index5.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index35.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index15.js";
1
+ import f from "./index18.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index36.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index16.js";
1
+ import f from "./index10.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/index37.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index17.js";
1
+ import f from "./index14.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.1.13",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",