@solar-taro/ui-vant 1.6.5 → 2.1.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.
Files changed (163) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/cascader/index.vue.d.ts +35 -99
  3. package/cascader-picker/index.vue.d.ts +11 -51
  4. package/date-range-picker/index.vue.d.ts +9 -36
  5. package/directives/bind-function.d.ts +0 -1
  6. package/directives/datetime-picker.d.ts +0 -1
  7. package/directives/readonly.d.ts +0 -1
  8. package/index.d.ts +0 -2
  9. package/index.js +21 -25
  10. package/index.scss +6 -0
  11. package/index10.js +292 -50
  12. package/index100.js +3 -16
  13. package/index101.js +5 -10
  14. package/index102.js +6 -5
  15. package/index103.js +10 -5
  16. package/index104.js +6 -4
  17. package/index105.js +793 -5
  18. package/index106.js +6 -6
  19. package/index107.js +18 -10
  20. package/index108.js +4 -6
  21. package/index109.js +4 -17
  22. package/index11.js +17 -303
  23. package/index110.js +3 -4
  24. package/index111.js +3 -4
  25. package/index112.js +14 -3
  26. package/index113.js +8 -4
  27. package/index114.js +5 -14
  28. package/index115.js +6 -8
  29. package/index116.js +5 -5
  30. package/index117.js +5 -5
  31. package/index118.js +5 -5
  32. package/index119.js +3 -6
  33. package/index12.js +28 -45
  34. package/index120.js +17 -5
  35. package/index121.js +5 -6
  36. package/index122.js +28 -790
  37. package/index123.js +4 -3
  38. package/index124.js +2 -16
  39. package/index125.js +8 -4
  40. package/index126.js +5 -3
  41. package/index127.js +4 -3
  42. package/index128.js +5 -9
  43. package/index129.js +3 -6
  44. package/index13.js +4 -18
  45. package/index130.js +3 -3
  46. package/index131.js +4 -5
  47. package/index132.js +11 -3
  48. package/index133.js +5 -30
  49. package/index134.js +6 -4
  50. package/index135.js +4 -4
  51. package/index136.js +7 -10
  52. package/index137.js +3 -7
  53. package/index14.js +62 -27
  54. package/index15.js +2 -5
  55. package/index16.js +2 -64
  56. package/index17.js +1 -1
  57. package/index18.js +2 -6
  58. package/index19.js +1 -1
  59. package/index2.js +1 -1
  60. package/index20.js +1 -1
  61. package/index22.js +1 -1
  62. package/index23.js +6 -2
  63. package/index24.js +10 -2
  64. package/index25.js +9 -2
  65. package/index26.js +14 -2
  66. package/index27.js +4 -2
  67. package/index28.js +62 -3
  68. package/index29.js +3 -13
  69. package/index3.js +3 -3
  70. package/index30.js +8 -10
  71. package/index31.js +6 -8
  72. package/index32.js +3 -62
  73. package/index33.js +2 -4
  74. package/index34.js +6 -8
  75. package/index35.js +9 -6
  76. package/index36.js +4 -3
  77. package/index37.js +4 -2
  78. package/index38.js +3 -6
  79. package/index39.js +3 -9
  80. package/index4.js +1 -1
  81. package/index40.js +7 -4
  82. package/index41.js +5 -4
  83. package/index42.js +5 -3
  84. package/index43.js +6 -3
  85. package/index44.js +5 -7
  86. package/index45.js +9 -5
  87. package/index46.js +4 -4
  88. package/index47.js +6 -6
  89. package/index48.js +5 -6
  90. package/index49.js +10 -9
  91. package/index5.js +1 -1
  92. package/index50.js +7 -5
  93. package/index51.js +17 -6
  94. package/index52.js +12 -5
  95. package/index53.js +6 -9
  96. package/index54.js +12 -6
  97. package/index55.js +3 -17
  98. package/index56.js +7 -11
  99. package/index57.js +9 -6
  100. package/index58.js +10 -11
  101. package/index59.js +5 -3
  102. package/index6.js +92 -29
  103. package/index60.js +5 -7
  104. package/index61.js +9 -10
  105. package/index62.js +15 -11
  106. package/index63.js +5 -5
  107. package/index64.js +5 -5
  108. package/index65.js +9 -9
  109. package/index66.js +6 -15
  110. package/index67.js +5 -5
  111. package/index68.js +5 -5
  112. package/index69.js +6 -8
  113. package/index7.js +39 -90
  114. package/index70.js +6 -6
  115. package/index71.js +26 -6
  116. package/index72.js +5 -5
  117. package/index73.js +39 -6
  118. package/index74.js +6 -6
  119. package/index75.js +6 -26
  120. package/index76.js +15 -6
  121. package/index77.js +6 -38
  122. package/index78.js +2 -7
  123. package/index79.js +3 -6
  124. package/index8.js +264 -40
  125. package/index80.js +12 -14
  126. package/index81.js +4 -7
  127. package/index82.js +3 -2
  128. package/index83.js +4 -3
  129. package/index84.js +3 -12
  130. package/index85.js +4 -5
  131. package/index86.js +4 -3
  132. package/index87.js +3 -3
  133. package/index88.js +15 -4
  134. package/index89.js +14 -4
  135. package/index9.js +54 -262
  136. package/index90.js +9 -4
  137. package/index91.js +3 -4
  138. package/index92.js +4 -13
  139. package/index93.js +5 -13
  140. package/index94.js +5 -8
  141. package/index95.js +8 -3
  142. package/index96.js +16 -4
  143. package/index97.js +10 -5
  144. package/index98.js +5 -5
  145. package/index99.js +4 -7
  146. package/list/index.vue.d.ts +14 -9
  147. package/modal/index.vue.d.ts +19 -41
  148. package/opper-controller/index.vue.d.ts +8 -36
  149. package/overlay/overlay.d.ts +0 -1
  150. package/package.json +2 -2
  151. package/plugin.d.ts +0 -1
  152. package/select-picker/index.vue.d.ts +11 -45
  153. package/selector/index.vue.d.ts +86 -147
  154. package/index138.js +0 -9
  155. package/index139.js +0 -7
  156. package/index140.js +0 -10
  157. package/index141.js +0 -5
  158. package/item/index.d.ts +0 -1
  159. package/item/index.scss +0 -37
  160. package/item/index.vue.d.ts +0 -44
  161. package/tabbar/index.d.ts +0 -1
  162. package/tabbar/index.scss +0 -78
  163. package/tabbar/index.vue.d.ts +0 -58
package/index9.js CHANGED
@@ -1,272 +1,64 @@
1
- import { defineComponent as J, ref as I, computed as Q, watch as X, onUnmounted as Y, unref as Z, createElementVNode as ee, toDisplayString as te, vShow as ne, withDirectives as oe, normalizeClass as ie, createTextVNode as se, Fragment as re, openBlock as le, createElementBlock as ce, renderList as ae, normalizeStyle as ue, withCtx as de, createVNode as pe } from "vue";
2
- import { isOpperDevice as ve } from "@opper/core";
3
- import { BluetoothLowEnergeDevice as me } from "@opper/wx";
4
- import { checkBluetooth as V, bluetoothService as w, vibrator as fe, overlay as r, withLoading as we } from "@solar-taro/core";
5
- import { getSystemInfo as he, openSetting as be } from "@tarojs/taro";
6
- import { filter as A, switchMap as m, combineLatest as ge, of as E, map as $, catchError as D, tap as B, timer as ye, takeUntil as N, finalize as O, from as _e } from "rxjs";
7
- import { useObservable as j } from "./index30.js";
8
- import De from "./index7.js";
9
- import { dialog as Se } from "./index16.js";
10
- import { useDestroyed as F } from "./index31.js";
11
- const l = Z, n = ee, p = te, Ce = ne, ke = oe, xe = ie, Ie = se, T = re, h = le, b = ce, Ee = ae, $e = ue, Be = de, Ne = pe, Oe = { class: "sun-opper-controller" }, Te = ["show"], Me = { class: "sun-opper-controller-device" }, Pe = { class: "sun-opper-controller-device-header" }, Re = { class: "sun-opper-controller-device-name" }, ze = { class: "sun-opper-controller-device-infos" }, Le = { class: "sun-opper-controller-device-info" }, Ve = { class: "sun-opper-controller-device-info" }, Ae = { class: "sun-opper-controller-device-info" }, je = { class: "sun-opper-controller-device-info" }, Fe = { class: "van-button-container" }, Ue = ["title", "label", "onTap"], qe = { class: "van-button-container" }, Ke = ["show"], nt = /* @__PURE__ */ J({
1
+ import { defineComponent as v, computed as y, unref as h, mergeProps as w, createElementVNode as k, openBlock as C, createElementBlock as V, createCommentVNode as g } from "vue";
2
+ import { useFilterList as B } from "@solar-taro/core";
3
+ const b = h, K = w, N = k, u = C, r = V, E = g, L = ["show"], $ = ["title", "value-key", "columns", "loading", "default-index"], A = /* @__PURE__ */ v({
4
+ inheritAttrs: !1,
12
5
  __name: "index",
13
6
  props: {
14
- show: { type: Boolean, default: !1 },
15
- mac: {},
16
- deviceId: {},
17
- opper: {}
7
+ show: { type: Boolean },
8
+ labelKey: { default: "fullName" },
9
+ valueKey: { default: "id" },
10
+ searchable: { type: Boolean, default: !0 },
11
+ title: {},
12
+ loading: { type: Boolean },
13
+ options: {},
14
+ modelValue: {},
15
+ required: { type: Boolean }
18
16
  },
19
- emits: ["update:show", "connect", "disconnect"],
20
- setup(U, { emit: q }) {
21
- const v = U, S = q, s = v.opper, M = F(), C = F(), a = I({}), u = I(!1), P = j(() => s.connected), g = I(!1), R = Q(() => Object.values(a.value)), d = j(() => s.connected.pipe(
22
- A(Boolean),
23
- m(() => {
24
- const o = s.device;
25
- return ge({
26
- id: E(o.id),
27
- name: o.name,
28
- version: o.firmwareRevision,
29
- accuracy: s.accuracyChange,
30
- volt: s.batteryChange.pipe(
31
- $(([e]) => e)
32
- ),
33
- charging: s.batteryChange.pipe(
34
- $(([, e]) => !!e)
35
- ),
36
- serialNumber: o.serialNumber
37
- });
38
- })
39
- ), {}), K = [
40
- { id: 1, name: "断开连接" },
41
- { id: 2, name: "断开连接并关机", color: "var(--color-danger)" }
42
- ];
43
- let k = !1;
44
- function x() {
45
- if (!V()) return;
46
- let o = null;
47
- u.value = !0, w.openAdapter().pipe(
48
- D((e) => {
49
- var t, c;
50
- if ((c = (t = e.errMsg) == null ? void 0 : t.includes) != null && c.call(t, "already"))
51
- return E(null);
52
- throw e;
53
- }),
54
- m(
55
- () => w.startDevicesDiscovery({
56
- allowDuplicatesKey: !0,
57
- powerLevel: "high"
58
- })
59
- ),
60
- B(
61
- () => ye(0, 1250).pipe(
62
- N(C)
63
- ).subscribe(() => fe.short())
64
- ),
65
- m(() => w.devicesChange),
66
- $((e) => e.filter((t) => ve({
67
- id: t.deviceId,
68
- name: t.name
69
- }))),
70
- N(C),
71
- D((e) => {
72
- var t, c, i;
73
- throw e.errno === 103 ? r.modal("温馨提示", "请先授予小程序蓝牙与位置权限").then(() => {
74
- be();
75
- }) : (c = (t = e.errMsg) == null ? void 0 : t.includes) != null && c.call(t, "permission") ? r.tips("请先授予微信蓝牙与位置权限") : (i = e.errMsg) != null && i.includes("frequently") ? r.tips("操作频繁,请稍后再试") : r.tips(e.errMsg), f(), e;
76
- }),
77
- O(() => {
78
- u.value = !1, a.value = {}, w.stopDevicesDiscovery().subscribe();
79
- })
80
- ).subscribe((e) => {
81
- const t = v.mac || v.deviceId;
82
- if (t) {
83
- const i = t.slice(-5).replace(":", ""), _ = e.find(
84
- (L) => L.deviceId === t || // 由于 iOS 的 deviceId 不是 MAC,但是蓝牙名字上有 MAC 后四位,这里通过比对 MAC 来选择设备
85
- L.name.endsWith(i)
86
- );
87
- if (_)
88
- return y(_.deviceId);
89
- }
90
- if (e.length === 1) {
91
- if (o != null || (o = Date.now()), Date.now() - o > 5e3)
92
- return y(e[0].deviceId);
93
- } else e.length > 1 && (o = null);
94
- Object.keys(a.value).forEach((i) => {
95
- a.value[i].recommended = !1, Date.now() - a.value[i].discoveryTime > 5e3 && delete a.value[i];
96
- }), e.forEach((i) => {
97
- a.value[i.deviceId] = i, i.discoveryTime = Date.now();
98
- });
99
- const c = [...Object.values(a.value)].sort((i, _) => _.RSSI - i.RSSI)[0];
100
- c && (c.recommended = !0);
101
- });
17
+ emits: ["close", "cancel", "confirm", "update:show", "update:modelValue"],
18
+ setup(s, { emit: i }) {
19
+ const n = i, l = s, d = y(() => {
20
+ var e;
21
+ return (e = l.options.findIndex((o) => o[l.valueKey] === l.modelValue)) != null ? e : 0;
22
+ }), { keyword: p, filteredList: m } = B(
23
+ () => l.options,
24
+ (e, o) => e[l.labelKey].toLowerCase().includes(o.value.toLowerCase())
25
+ );
26
+ function c() {
27
+ l.required || n("update:modelValue", null), n("cancel", l.modelValue), a();
102
28
  }
103
- function f() {
104
- C.next();
29
+ function a() {
30
+ n("update:show", !1), n("close");
105
31
  }
106
- function y(o) {
107
- k || (r.loading("正在连接"), k = !0, M.next(), s.connect(new me(o)).pipe(
108
- B(() => {
109
- f(), S("connect", o), r.success("连接成功"), setTimeout(z, 600);
110
- }),
111
- D((e) => {
112
- throw e.errCode === 10003 ? r.tips("连接超时,请重试") : r.tips(`连接失败:${e.errCode}:${e.errMsg}`), e;
113
- }),
114
- O(() => k = !1),
115
- m(() => s.connected.pipe(A((e) => !e))),
116
- // 监听断开
117
- N(M)
118
- ).subscribe(() => {
119
- S("disconnect", o), r.error("连接断开");
120
- }));
32
+ function f({ detail: e }) {
33
+ n("update:modelValue", e.value[l.valueKey]), n("confirm", e.value), n("update:show", !1);
121
34
  }
122
- function W(o) {
123
- V() && (u.value = !0, w.openAdapter().pipe(
124
- O(() => {
125
- u.value = !1;
126
- })
127
- ).subscribe(() => {
128
- y(o);
129
- }));
130
- }
131
- function G() {
132
- var o;
133
- (o = s.disconnect()) == null || o.pipe(
134
- we("正在断开")
135
- ).subscribe();
136
- }
137
- function H({ detail: o }) {
138
- switch (o.id) {
139
- case 1:
140
- G();
141
- break;
142
- case 2:
143
- _e(Se.confirm("温馨提示", "您确定要关闭设备电源吗?")).pipe(
144
- B(() => r.loading("正在关机")),
145
- m(() => s.shutdown()),
146
- D(() => E(null)),
147
- // 关机后距离信号丢失还有一段时间,这里主动断开连接,改进用户体验
148
- m(() => s.disconnect())
149
- ).subscribe(() => {
150
- r.success("设备已关机");
151
- });
152
- break;
153
- }
154
- }
155
- function z() {
156
- S("update:show", !1);
157
- }
158
- return X(() => v.show, async (o) => {
159
- if (o) {
160
- if (!P.value)
161
- if (v.mac) {
162
- const { platform: e } = await he();
163
- e === "ios" ? x() : W(v.mac);
164
- } else
165
- x();
166
- } else
167
- u.value && f();
168
- }), Y(() => {
169
- f();
170
- }), (o, e) => (h(), b("view", Oe, [
171
- n("van-action-sheet", {
172
- show: o.show,
173
- title: "OPPER",
174
- "close-on-click-overlay": !0,
175
- onClose: e[2] || (e[2] = (t) => z())
176
- }, [
177
- l(P) ? (h(), b(T, { key: 0 }, [
178
- n("view", Me, [
179
- n("view", Pe, [
180
- e[7] || (e[7] = n("view", { class: "sun-opper-controller-device-title" }, "设备已连接", -1)),
181
- n("view", Re, [
182
- Ie(p(l(d).name || "OPPER") + " ", 1),
183
- n("view", {
184
- class: xe(["sun-opper-controller-device-battery", { "sun-opper-controller-device-battery-active": l(d).charging }])
185
- }, [
186
- e[6] || (e[6] = n("van-icon", {
187
- "class-prefix": "iconfont",
188
- name: "lightning"
189
- }, null, -1)),
190
- ke(n("text", null, p(l(d).volt) + "%", 513), [
191
- [Ce, l(d).volt]
192
- ])
193
- ], 2)
194
- ])
195
- ]),
196
- n("view", ze, [
197
- n("view", Le, [
198
- e[8] || (e[8] = n("view", null, "设备号", -1)),
199
- n("view", null, p(l(d).id), 1)
200
- ]),
201
- n("view", Ve, [
202
- e[9] || (e[9] = n("view", null, "秤台精度", -1)),
203
- n("view", null, p(l(d).accuracy || 1) + "克", 1)
204
- ]),
205
- n("view", Ae, [
206
- e[10] || (e[10] = n("view", null, "固件版本", -1)),
207
- n("view", null, p(l(d).version), 1)
208
- ]),
209
- n("view", je, [
210
- e[11] || (e[11] = n("view", null, "序列号", -1)),
211
- n("view", null, p(l(d).serialNumber), 1)
212
- ])
213
- ])
214
- ]),
215
- n("view", Fe, [
216
- n("van-button", {
217
- type: "danger",
218
- round: "true",
219
- block: "true",
220
- onTap: e[0] || (e[0] = (t) => g.value = !0)
221
- }, " 断开连接 ", 32)
222
- ])
223
- ], 64)) : (h(), b(T, { key: 1 }, [
224
- Ne(l(De), {
225
- class: "sun-opper-controller-device-list",
226
- refresher: !1,
227
- data: R.value,
228
- loading: u.value,
229
- "loading-text": "正在扫描",
230
- "empty-type": "search",
231
- "empty-text": "暂无设备"
232
- }, {
233
- default: Be(() => [
234
- (h(!0), b(T, null, Ee(R.value, (t) => (h(), b("van-cell", {
235
- key: t.deviceId,
236
- title: t.name,
237
- label: t.deviceId,
238
- size: "large",
239
- clickable: !0,
240
- onTap: (c) => y(t.deviceId)
241
- }, [
242
- n("text", {
243
- style: $e({ color: t.recommended ? "var(--color-success)" : "inherit" })
244
- }, p(t.RSSI) + "dBm", 5)
245
- ], 40, Ue))), 128))
246
- ]),
247
- _: 1
248
- }, 8, ["data", "loading"]),
249
- n("view", qe, [
250
- n("van-button", {
251
- type: "primary",
252
- round: "true",
253
- block: "true",
254
- onTap: e[1] || (e[1] = (t) => u.value ? f() : x())
255
- }, p(u.value ? "停止扫描" : "扫描 OPPER 设备"), 33)
256
- ])
257
- ], 64))
258
- ], 40, Te),
259
- n("van-action-sheet", {
260
- show: g.value,
261
- actions: K,
262
- "cancel-text": "取消",
263
- onSelect: e[3] || (e[3] = (t) => H(t)),
264
- onCancel: e[4] || (e[4] = (t) => g.value = !1),
265
- onClose: e[5] || (e[5] = (t) => g.value = !1)
266
- }, null, 40, Ke)
267
- ]));
35
+ return (e, o) => (u(), r("van-popup", {
36
+ show: e.show,
37
+ position: "bottom",
38
+ round: !0,
39
+ "close-on-click-overlay": !0,
40
+ onClose: o[3] || (o[3] = (t) => a())
41
+ }, [
42
+ N("van-picker", K(e.$attrs, {
43
+ title: e.title,
44
+ "show-toolbar": !0,
45
+ "value-key": e.labelKey,
46
+ columns: b(m),
47
+ loading: e.loading,
48
+ "default-index": d.value,
49
+ onCancel: o[0] || (o[0] = (t) => c()),
50
+ onConfirm: o[1] || (o[1] = (t) => f(t))
51
+ }), null, 16, $),
52
+ e.searchable && e.options.length ? (u(), r("van-search", {
53
+ key: 0,
54
+ shape: "round",
55
+ "input-align": "center",
56
+ placeholder: "请输入搜索关键词",
57
+ onChange: o[2] || (o[2] = (t) => p.value = t.detail)
58
+ }, null, 32)) : E("", !0)
59
+ ], 40, L));
268
60
  }
269
61
  });
270
62
  export {
271
- nt as default
63
+ A as default
272
64
  };
package/index90.js CHANGED
@@ -1,6 +1,11 @@
1
- import t from "./index108.js";
2
- import o from "./index42.js";
3
- var a = t(o, "Set");
1
+ import e from "./index119.js";
2
+ var a = function() {
3
+ var r = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
4
+ return r ? "Symbol(src)_1." + r : "";
5
+ }();
6
+ function t(r) {
7
+ return !!a && a in r;
8
+ }
4
9
  export {
5
- a as default
10
+ t as default
6
11
  };
package/index91.js CHANGED
@@ -1,6 +1,5 @@
1
- import a from "./index108.js";
2
- import o from "./index42.js";
3
- var e = a(o, "WeakMap");
1
+ import t from "./index92.js";
2
+ var o = t(Object.getPrototypeOf, Object);
4
3
  export {
5
- e as default
4
+ o as default
6
5
  };
package/index92.js CHANGED
@@ -1,16 +1,7 @@
1
- var o = Function.prototype, n = o.toString;
2
- function e(t) {
3
- if (t != null) {
4
- try {
5
- return n.call(t);
6
- } catch {
7
- }
8
- try {
9
- return t + "";
10
- } catch {
11
- }
12
- }
13
- return "";
1
+ function e(r, n) {
2
+ return function(t) {
3
+ return r(n(t));
4
+ };
14
5
  }
15
6
  export {
16
7
  e as default
package/index93.js CHANGED
@@ -1,16 +1,8 @@
1
- import o from "./index39.js";
2
- import e from "./index94.js";
3
- import a from "./index45.js";
4
- import n from "./index92.js";
5
- var p = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, s = Function.prototype, c = Object.prototype, f = s.toString, m = c.hasOwnProperty, u = RegExp(
6
- "^" + f.call(m).replace(p, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
7
- );
8
- function O(r) {
9
- if (!a(r) || e(r))
10
- return !1;
11
- var t = o(r) ? u : i;
12
- return t.test(n(r));
1
+ function i(r, t) {
2
+ for (var e = -1, a = Array(r); ++e < r; )
3
+ a[e] = t(e);
4
+ return a;
13
5
  }
14
6
  export {
15
- O as default
7
+ i as default
16
8
  };
package/index94.js CHANGED
@@ -1,11 +1,8 @@
1
- import e from "./index123.js";
2
- var a = function() {
3
- var r = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
4
- return r ? "Symbol(src)_1." + r : "";
5
- }();
6
- function t(r) {
7
- return !!a && a in r;
1
+ var o = 9007199254740991, d = /^(?:0|[1-9]\d*)$/;
2
+ function f(r, s) {
3
+ var t = typeof r;
4
+ return s = s == null ? o : s, !!s && (t == "number" || t != "symbol" && d.test(r)) && r > -1 && r % 1 == 0 && r < s;
8
5
  }
9
6
  export {
10
- t as default
7
+ f as default
11
8
  };
package/index95.js CHANGED
@@ -1,5 +1,10 @@
1
- import t from "./index96.js";
2
- var o = t(Object.getPrototypeOf, Object);
1
+ function t(n) {
2
+ var r = [];
3
+ if (n != null)
4
+ for (var e in Object(n))
5
+ r.push(e);
6
+ return r;
7
+ }
3
8
  export {
4
- o as default
9
+ t as default
5
10
  };
package/index96.js CHANGED
@@ -1,8 +1,20 @@
1
- function e(r, n) {
2
- return function(t) {
3
- return r(n(t));
4
- };
1
+ import r from "./index97.js";
2
+ import m from "./index98.js";
3
+ import h from "./index99.js";
4
+ import l from "./index100.js";
5
+ import c from "./index101.js";
6
+ function e(t) {
7
+ var o = -1, a = t == null ? 0 : t.length;
8
+ for (this.clear(); ++o < a; ) {
9
+ var p = t[o];
10
+ this.set(p[0], p[1]);
11
+ }
5
12
  }
13
+ e.prototype.clear = r;
14
+ e.prototype.delete = m;
15
+ e.prototype.get = h;
16
+ e.prototype.has = l;
17
+ e.prototype.set = c;
6
18
  export {
7
19
  e as default
8
20
  };
package/index97.js CHANGED
@@ -1,8 +1,13 @@
1
- function i(r, t) {
2
- for (var e = -1, a = Array(r); ++e < r; )
3
- a[e] = t(e);
4
- return a;
1
+ import a from "./index120.js";
2
+ import t from "./index107.js";
3
+ import e from "./index84.js";
4
+ function o() {
5
+ this.size = 0, this.__data__ = {
6
+ hash: new a(),
7
+ map: new (e || t)(),
8
+ string: new a()
9
+ };
5
10
  }
6
11
  export {
7
- i as default
12
+ o as default
8
13
  };
package/index98.js CHANGED
@@ -1,8 +1,8 @@
1
- var o = 9007199254740991, d = /^(?:0|[1-9]\d*)$/;
2
- function f(r, s) {
3
- var t = typeof r;
4
- return s = s == null ? o : s, !!s && (t == "number" || t != "symbol" && d.test(r)) && r > -1 && r % 1 == 0 && r < s;
1
+ import a from "./index121.js";
2
+ function i(e) {
3
+ var t = a(this, e).delete(e);
4
+ return this.size -= t ? 1 : 0, t;
5
5
  }
6
6
  export {
7
- f as default
7
+ i as default
8
8
  };
package/index99.js CHANGED
@@ -1,10 +1,7 @@
1
- function t(n) {
2
- var r = [];
3
- if (n != null)
4
- for (var e in Object(n))
5
- r.push(e);
6
- return r;
1
+ import a from "./index121.js";
2
+ function r(t) {
3
+ return a(this, t).get(t);
7
4
  }
8
5
  export {
9
- t as default
6
+ r as default
10
7
  };
@@ -1,10 +1,15 @@
1
1
  import { PropType } from 'vue';
2
-
3
2
  declare function __VLS_template(): {
4
- default?(_: {}): any;
5
- empty?(_: {}): any;
6
- "empty-content"?(_: {}): any;
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ empty?(_: {}): any;
7
+ 'empty-content'?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
7
11
  };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
8
13
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
9
14
  refreshing: {
10
15
  type: BooleanConstructor;
@@ -42,9 +47,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
42
47
  type: StringConstructor;
43
48
  default: string;
44
49
  };
45
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
- refresh: () => void;
47
- lower: () => void;
50
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
51
+ refresh: () => any;
52
+ lower: () => any;
48
53
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
49
54
  refreshing: {
50
55
  type: BooleanConstructor;
@@ -93,10 +98,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
93
98
  refresherBg: string;
94
99
  loadingText: string;
95
100
  flex: boolean;
96
- emptyType: "default" | "error" | "search" | "network";
101
+ emptyType: "search" | "default" | "error" | "network";
97
102
  emptyText: string;
98
103
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
99
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
104
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
100
105
  export default _default;
101
106
  type __VLS_WithTemplateSlots<T, S> = T & {
102
107
  new (): {
@@ -1,56 +1,34 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- buttons?(_: {}): any;
4
- };
5
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
- show: boolean;
7
- title: string;
8
- showButtons?: boolean;
9
- confirmText?: string;
10
- confirmDisabled?: boolean;
11
- }>, {
12
- confirmText: string;
13
- showButtons: boolean;
14
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- close: () => void;
16
- confirm: () => void;
17
- "update:show": (args_0: boolean) => void;
18
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ type __VLS_Props = {
19
2
  show: boolean;
20
3
  title: string;
21
4
  showButtons?: boolean;
22
5
  confirmText?: string;
23
6
  confirmDisabled?: boolean;
24
- }>, {
25
- confirmText: string;
26
- showButtons: boolean;
27
- }>>> & Readonly<{
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ buttons?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ close: () => any;
20
+ confirm: () => any;
21
+ "update:show": (args_0: boolean) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
23
  onClose?: (() => any) | undefined;
29
24
  onConfirm?: (() => any) | undefined;
30
25
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
31
26
  }>, {
32
27
  showButtons: boolean;
33
28
  confirmText: string;
34
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
31
  export default _default;
37
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
- type __VLS_TypePropsToRuntimeProps<T> = {
39
- [K in keyof T]-?: {} extends Pick<T, K> ? {
40
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
- } : {
42
- type: import('vue').PropType<T[K]>;
43
- required: true;
44
- };
45
- };
46
- type __VLS_WithDefaults<P, D> = {
47
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
- default: D[K];
49
- }> : P[K];
50
- };
51
- type __VLS_Prettify<T> = {
52
- [K in keyof T]: T[K];
53
- } & {};
54
32
  type __VLS_WithTemplateSlots<T, S> = T & {
55
33
  new (): {
56
34
  $slots: S;