@pixelium/web-vue 0.0.2 → 0.0.3-beta

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 (285) hide show
  1. package/README.md +42 -0
  2. package/README.zh.md +6 -3
  3. package/coverage/base.css +224 -0
  4. package/coverage/block-navigation.js +87 -0
  5. package/coverage/coverage-final.json +106 -0
  6. package/coverage/favicon.png +0 -0
  7. package/coverage/index.html +926 -0
  8. package/coverage/prettify.css +1 -0
  9. package/coverage/prettify.js +2 -0
  10. package/coverage/sort-arrow-sprite.png +0 -0
  11. package/coverage/sorter.js +210 -0
  12. package/dist/font.css +1 -1
  13. package/dist/index.d.ts +1593 -248
  14. package/dist/normalize.css +2 -0
  15. package/dist/pixelium-vue-icon-hn.cjs +1 -1
  16. package/dist/pixelium-vue-icon-hn.css +2 -1
  17. package/dist/pixelium-vue-icon-hn.js +8533 -8154
  18. package/dist/pixelium-vue-icon-hn.umd.cjs +1 -1
  19. package/dist/pixelium-vue-icon-pa.cjs +1 -1
  20. package/dist/pixelium-vue-icon-pa.css +2 -1
  21. package/dist/pixelium-vue-icon-pa.js +10625 -10143
  22. package/dist/pixelium-vue-icon-pa.umd.cjs +1 -1
  23. package/dist/pixelium-vue.cjs +2 -2
  24. package/dist/pixelium-vue.css +2 -1
  25. package/dist/pixelium-vue.js +7402 -5852
  26. package/dist/pixelium-vue.umd.cjs +2 -2
  27. package/es/aside/index.js +46 -151
  28. package/es/auto-complete/draw.d.ts +1 -1
  29. package/es/auto-complete/draw.js +26 -51
  30. package/es/auto-complete/index.css +92 -32
  31. package/es/auto-complete/index.d.ts +12 -15
  32. package/es/auto-complete/index.js +338 -400
  33. package/es/auto-complete/type.d.ts +25 -13
  34. package/es/avatar/css.js +2 -0
  35. package/es/avatar/draw.d.ts +2 -0
  36. package/es/avatar/draw.js +11 -0
  37. package/es/avatar/index.css +49 -0
  38. package/es/avatar/index.d.ts +15 -0
  39. package/es/avatar/index.js +110 -0
  40. package/es/avatar/type.d.ts +34 -0
  41. package/es/button/draw.d.ts +4 -4
  42. package/es/button/draw.js +213 -297
  43. package/es/button/index.css +40 -30
  44. package/es/button/index.d.ts +0 -4
  45. package/es/button/index.js +230 -256
  46. package/es/button/type.d.ts +3 -3
  47. package/es/button-group/index.css +0 -3
  48. package/es/button-group/index.d.ts +1 -2
  49. package/es/button-group/index.js +59 -31
  50. package/es/button-group/type.d.ts +21 -4
  51. package/es/checkbox/css.js +2 -0
  52. package/es/checkbox/draw.d.ts +4 -0
  53. package/es/checkbox/draw.js +46 -0
  54. package/es/checkbox/index.css +85 -0
  55. package/es/checkbox/index.d.ts +31 -0
  56. package/es/checkbox/index.js +206 -0
  57. package/es/checkbox/type.d.ts +88 -0
  58. package/es/checkbox-group/css.js +2 -0
  59. package/es/checkbox-group/index.css +20 -0
  60. package/es/checkbox-group/index.d.ts +23 -0
  61. package/es/checkbox-group/index.js +84 -0
  62. package/es/checkbox-group/type.d.ts +78 -0
  63. package/es/col/index.d.ts +2 -2
  64. package/es/col/index.js +43 -58
  65. package/es/container/index.js +18 -31
  66. package/es/divider/index.js +39 -53
  67. package/es/empty/index.css +4 -4
  68. package/es/empty/index.js +16 -71
  69. package/es/entry.js +102 -0
  70. package/es/footer/index.js +31 -40
  71. package/es/form/css.js +1 -0
  72. package/es/form/index.d.ts +27 -0
  73. package/es/form/index.js +125 -0
  74. package/es/form/type.d.ts +238 -0
  75. package/es/form/use-form.d.ts +4 -0
  76. package/es/form/use-form.js +48 -0
  77. package/es/form-item/css.js +2 -0
  78. package/es/form-item/index.css +77 -0
  79. package/es/form-item/index.d.ts +37 -0
  80. package/es/form-item/index.js +318 -0
  81. package/es/form-item/type.d.ts +96 -0
  82. package/es/grid/index.js +56 -75
  83. package/es/grid-item/css.js +0 -1
  84. package/es/grid-item/index.d.ts +1 -1
  85. package/es/grid-item/index.js +85 -121
  86. package/es/header/index.js +31 -40
  87. package/es/icon/index.js +44 -55
  88. package/es/icons/css-hn.js +0 -1
  89. package/es/icons/css-pa.js +0 -1
  90. package/es/icons/icon-hn.js +10337 -15986
  91. package/es/icons/icon-pa.js +12573 -17447
  92. package/es/image/css.js +2 -0
  93. package/es/image/index.css +69 -0
  94. package/es/image/index.d.ts +35 -0
  95. package/es/image/index.js +199 -0
  96. package/es/image/type.d.ts +126 -0
  97. package/es/index.css +1 -515
  98. package/es/index.d.ts +22 -2
  99. package/es/index.js +143 -123
  100. package/es/input/draw.d.ts +1 -1
  101. package/es/input/draw.js +26 -51
  102. package/es/input/index.css +85 -33
  103. package/es/input/index.d.ts +9 -16
  104. package/es/input/index.js +319 -423
  105. package/es/input/type.d.ts +3 -3
  106. package/es/input-group/index.css +0 -1
  107. package/es/input-group/index.d.ts +2 -2
  108. package/es/input-group/index.js +66 -37
  109. package/es/input-group/type.d.ts +16 -4
  110. package/es/input-group-label/draw.d.ts +1 -1
  111. package/es/input-group-label/draw.js +26 -51
  112. package/es/input-group-label/index.css +33 -22
  113. package/es/input-group-label/index.d.ts +1 -4
  114. package/es/input-group-label/index.js +104 -127
  115. package/es/input-group-label/type.d.ts +3 -3
  116. package/es/input-number/draw.d.ts +1 -1
  117. package/es/input-number/draw.js +26 -51
  118. package/es/input-number/index.css +90 -35
  119. package/es/input-number/index.d.ts +9 -16
  120. package/es/input-number/index.js +428 -536
  121. package/es/input-number/type.d.ts +3 -3
  122. package/es/input-tag/draw.d.ts +1 -1
  123. package/es/input-tag/draw.js +26 -48
  124. package/es/input-tag/index.css +100 -33
  125. package/es/input-tag/index.d.ts +7 -13
  126. package/es/input-tag/index.js +442 -467
  127. package/es/input-tag/type.d.ts +24 -13
  128. package/es/link/index.js +75 -106
  129. package/es/main/index.js +11 -15
  130. package/es/mask/index.js +94 -115
  131. package/es/message/index.css +1 -1
  132. package/es/message/index.js +168 -346
  133. package/es/message-box/css.js +1 -1
  134. package/es/message-box/index.js +98 -114
  135. package/es/message-box/message-box-wrapped.js +33 -46
  136. package/es/message-box/message-box.js +79 -111
  137. package/es/option-list/index.css +13 -13
  138. package/es/option-list/index.d.ts +4 -31
  139. package/es/option-list/index.js +99 -167
  140. package/es/option-list/type.d.ts +5 -1
  141. package/es/pixelate/pixel.d.ts +5 -0
  142. package/es/pixelate/pixel.js +70 -0
  143. package/es/pixelate/pixelate.worker.d.ts +1 -0
  144. package/es/popover/index.d.ts +13 -99
  145. package/es/popover/index.js +75 -238
  146. package/es/popover/type.d.ts +7 -2
  147. package/es/popup/css.js +1 -0
  148. package/es/popup/index.d.ts +210 -0
  149. package/es/popup/index.js +203 -0
  150. package/es/popup/type.d.ts +105 -0
  151. package/es/popup-content/draw.d.ts +2 -2
  152. package/es/popup-content/draw.js +98 -143
  153. package/es/popup-content/index.css +11 -11
  154. package/es/popup-content/index.d.ts +1 -0
  155. package/es/popup-content/index.js +253 -1576
  156. package/es/popup-content/type.d.ts +1 -0
  157. package/es/popup-trigger/index.d.ts +8 -2
  158. package/es/popup-trigger/index.js +122 -95
  159. package/es/popup-trigger/type.d.ts +4 -1
  160. package/es/popup-wrapper/css.js +2 -0
  161. package/es/popup-wrapper/index.css +14 -0
  162. package/es/popup-wrapper/index.d.ts +18 -0
  163. package/es/popup-wrapper/index.js +67 -0
  164. package/es/popup-wrapper/type.d.ts +9 -0
  165. package/es/radio/css.js +1 -0
  166. package/es/radio/draw.d.ts +4 -0
  167. package/es/radio/draw.js +47 -0
  168. package/es/radio/index.d.ts +30 -0
  169. package/es/radio/index.js +190 -0
  170. package/es/radio/style.css +73 -0
  171. package/es/radio/type.d.ts +76 -0
  172. package/es/radio-group/css.js +2 -0
  173. package/es/radio-group/index.css +20 -0
  174. package/es/radio-group/index.d.ts +23 -0
  175. package/es/radio-group/index.js +77 -0
  176. package/es/radio-group/type.d.ts +77 -0
  177. package/es/row/index.js +56 -70
  178. package/es/select/draw.d.ts +1 -1
  179. package/es/select/draw.js +26 -51
  180. package/es/select/index.css +118 -36
  181. package/es/select/index.d.ts +14 -16
  182. package/es/select/index.js +625 -672
  183. package/es/select/type.d.ts +60 -25
  184. package/es/share/const/event-bus-key.js +1 -6
  185. package/es/share/const/index.d.ts +4 -0
  186. package/es/share/const/index.js +22 -24
  187. package/es/share/const/provide-key.d.ts +5 -0
  188. package/es/share/const/provide-key.js +6 -5
  189. package/es/share/const/style.d.ts +6 -0
  190. package/es/share/const/style.js +7 -0
  191. package/es/share/hook/use-cancelable-delay.d.ts +1 -0
  192. package/es/share/hook/use-cancelable-delay.js +42 -0
  193. package/es/share/hook/use-click-outside-listener.d.ts +1 -1
  194. package/es/share/hook/use-click-outside-listener.js +28 -41
  195. package/es/share/hook/use-composition.js +17 -15
  196. package/es/share/hook/use-controlled-mode.d.ts +3 -3
  197. package/es/share/hook/use-controlled-mode.js +20 -23
  198. package/es/share/hook/use-dark-mode.js +51 -65
  199. package/es/share/hook/use-index-of-children.d.ts +2 -1
  200. package/es/share/hook/use-index-of-children.js +47 -45
  201. package/es/share/hook/use-lazy-load.d.ts +10 -0
  202. package/es/share/hook/use-lazy-load.js +133 -0
  203. package/es/share/hook/use-props-detect.d.ts +2 -0
  204. package/es/share/hook/use-resize-observer.d.ts +1 -2
  205. package/es/share/hook/use-resize-observer.js +28 -20
  206. package/es/share/hook/use-screen-width.js +27 -36
  207. package/es/share/hook/use-smooth-transition.d.ts +2 -0
  208. package/es/share/hook/use-smooth-transition.js +65 -0
  209. package/es/share/hook/use-textarea-height.js +86 -92
  210. package/es/share/hook/use-theme-mode.js +41 -42
  211. package/es/share/hook/use-transition-end.d.ts +2 -0
  212. package/es/share/hook/use-transition-end.js +12 -0
  213. package/es/share/hook/use-watch-global-css-var.js +12 -16
  214. package/es/share/hook/use-window-resize-listener.d.ts +1 -0
  215. package/es/share/hook/use-window-resize-listener.js +15 -0
  216. package/es/share/hook/use-z-index.js +30 -27
  217. package/es/share/type/index.d.ts +18 -3
  218. package/es/share/util/color.d.ts +5 -3
  219. package/es/share/util/color.js +156 -149
  220. package/es/share/util/common.d.ts +7 -2
  221. package/es/share/util/common.js +127 -65
  222. package/es/share/util/console.d.ts +3 -3
  223. package/es/share/util/console.js +10 -7
  224. package/es/share/util/dom.d.ts +19 -0
  225. package/es/share/util/dom.js +88 -0
  226. package/es/share/util/env.d.ts +1 -0
  227. package/es/share/util/env.js +5 -4
  228. package/es/share/util/event-bus.js +3 -20
  229. package/es/share/util/lru-cache.js +29 -33
  230. package/es/share/util/pixel.d.ts +4 -0
  231. package/es/share/util/plot.d.ts +8 -3
  232. package/es/share/util/plot.js +457 -229
  233. package/es/share/util/reactivity.d.ts +8 -0
  234. package/es/share/util/reactivity.js +23 -0
  235. package/es/share/util/render.js +31 -41
  236. package/es/share/util/theme.d.ts +3 -0
  237. package/es/share/util/theme.js +77 -57
  238. package/es/slider/css.js +2 -0
  239. package/es/slider/draw.d.ts +25 -0
  240. package/es/slider/draw.js +113 -0
  241. package/es/slider/index.css +119 -0
  242. package/es/slider/index.d.ts +66 -0
  243. package/es/slider/index.js +503 -0
  244. package/es/slider/type.d.ts +162 -0
  245. package/es/slider/util.d.ts +37 -0
  246. package/es/slider/util.js +130 -0
  247. package/es/space/index.css +24 -29
  248. package/es/space/index.js +73 -97
  249. package/es/spin/index.css +18 -17
  250. package/es/spin/index.js +72 -102
  251. package/es/spin/type.d.ts +11 -5
  252. package/es/switch/css.js +2 -0
  253. package/es/switch/draw.d.ts +2 -0
  254. package/es/switch/draw.js +18 -0
  255. package/es/switch/index.css +121 -0
  256. package/es/switch/index.d.ts +42 -0
  257. package/es/switch/index.js +259 -0
  258. package/es/switch/type.d.ts +133 -0
  259. package/es/tag/draw.d.ts +2 -2
  260. package/es/tag/draw.js +80 -127
  261. package/es/tag/index.css +38 -22
  262. package/es/tag/index.d.ts +2 -2
  263. package/es/tag/index.js +121 -190
  264. package/es/tag/type.d.ts +3 -3
  265. package/es/text-outline/css.js +2 -0
  266. package/es/text-outline/index.css +4 -0
  267. package/es/text-outline/index.d.ts +17 -0
  268. package/es/text-outline/index.js +33 -0
  269. package/es/text-outline/type.d.ts +23 -0
  270. package/es/textarea/draw.js +9 -11
  271. package/es/textarea/index.css +37 -23
  272. package/es/textarea/index.d.ts +8 -14
  273. package/es/textarea/index.js +274 -262
  274. package/es/tooltip/index.d.ts +100 -4
  275. package/es/tooltip/index.js +70 -226
  276. package/es/tooltip/type.d.ts +7 -2
  277. package/es/vendor.js +504 -0
  278. package/es/virtual-list/css.js +2 -0
  279. package/es/virtual-list/index.css +25 -0
  280. package/es/virtual-list/index.d.ts +11 -0
  281. package/es/virtual-list/index.js +313 -0
  282. package/es/virtual-list/type.d.ts +26 -0
  283. package/package.json +10 -16
  284. package/es/grid-item/index.css +0 -0
  285. /package/es/message-box/{message-box.css → index.css} +0 -0
package/es/vendor.js ADDED
@@ -0,0 +1,504 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, normalizeStyle, openBlock } from "vue";
2
+ var spinner_third_solid_default = /* @__PURE__ */ defineComponent({
3
+ props: {
4
+ size: {},
5
+ color: {}
6
+ },
7
+ setup(__props) {
8
+ const props = __props;
9
+ return (_ctx, _cache) => {
10
+ return openBlock(), createElementBlock("svg", {
11
+ class: "px-icon-hn",
12
+ style: normalizeStyle({
13
+ color: props.color,
14
+ fontSize: props.size + "px"
15
+ }),
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ viewBox: "0 0 24 24"
18
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M23 9v6h-1v2h-3v-2h1V9h-1V7h-1V6h-1V5h-2V4h-2V3h-1V1h3v1h2v1h2v1h1v1h1v2h1v2z" }, null, -1)])], 4);
19
+ };
20
+ }
21
+ });
22
+ var Q = /\.|\[(\d+)\]/;
23
+ function O(n) {
24
+ return n.split(Q).filter(Boolean);
25
+ }
26
+ function _(n) {
27
+ return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
28
+ }
29
+ function d(n) {
30
+ return n !== null && (typeof n == "object" || typeof n == "function");
31
+ }
32
+ function f(n, e, t) {
33
+ const s = O(e), o = s.length;
34
+ let i = n;
35
+ for (let c = 0; c < o; c++) if (d(i)) i = i[s[c]];
36
+ else return t;
37
+ return t ?? i;
38
+ }
39
+ function m(n) {
40
+ return typeof n == "function";
41
+ }
42
+ function Nn(n, e, t = {}) {
43
+ const { start: s = "{", end: o = "}" } = t, i = new RegExp(`${_(s)}(.*?)${_(o)}`, "g");
44
+ return n.replace(i, (c, r) => {
45
+ return (m(e) ? e(r) : f(e, r)) ?? c;
46
+ });
47
+ }
48
+ function y(n) {
49
+ return typeof n == "string" || n instanceof String;
50
+ }
51
+ function Pn(n) {
52
+ return typeof n == "boolean" || n instanceof Boolean;
53
+ }
54
+ function $n(n) {
55
+ return n === null;
56
+ }
57
+ function A(n) {
58
+ return typeof n == "number" || n instanceof Number;
59
+ }
60
+ function en(n) {
61
+ return n === void 0;
62
+ }
63
+ function v(n) {
64
+ return y(n) && /^\d+$/.test(n);
65
+ }
66
+ function S(n) {
67
+ return Array.isArray(n);
68
+ }
69
+ function tn(n) {
70
+ return n !== null && typeof n == "object";
71
+ }
72
+ function R(n) {
73
+ return A(n) && (typeof n == "number" ? n === Infinity || n === -Infinity : n.valueOf() === Infinity || n.valueOf() === -Infinity);
74
+ }
75
+ function F(n) {
76
+ return A(n) && (typeof n == "number" ? Number.isNaN(n) : Number.isNaN(n.valueOf()));
77
+ }
78
+ var B = (n) => Object.prototype.toString.apply(n).slice(8, -1);
79
+ function E(n) {
80
+ return n == null;
81
+ }
82
+ var Ln = (n) => E(n) || F(n) || n === "" || S(n) && n.length === 0;
83
+ function on(n, e, t) {
84
+ const s = O(e), o = s.length;
85
+ let i = n;
86
+ for (let c = 0; c < o; c++) {
87
+ let r;
88
+ if (v(s[c]) && (r = parseInt(s[c])), c === o - 1) i[r === void 0 ? s[c] : r] = t;
89
+ else {
90
+ const l = v(s[c + 1]), u = r === void 0 ? s[c] : r;
91
+ d(i[u]) || (i[u] = l ? [] : {}), i = i[u];
92
+ }
93
+ }
94
+ }
95
+ function Rn(n) {
96
+ if (tn(n)) {
97
+ let e = {};
98
+ const t = B(n);
99
+ if (n instanceof Map) {
100
+ e = /* @__PURE__ */ new Map();
101
+ for (const s of n.entries()) e.set(s[0], s[1]);
102
+ } else if (n instanceof Set) {
103
+ e = /* @__PURE__ */ new Set();
104
+ for (const s of n.values()) e.add(s);
105
+ } else if (Array.isArray(n) || t === "Arguments") {
106
+ e = new Array(n.length);
107
+ const s = Object.keys(n);
108
+ for (const o of s) e[o] = n[o];
109
+ } else if (e = Z(n, t), !e) if (t === "Object") {
110
+ n.__proto__ ? (e = Object.create(n.__proto__), Object.defineProperty(e, "constructor", {
111
+ value: n.constructor,
112
+ writable: !0,
113
+ enumerable: !1,
114
+ configurable: !0
115
+ })) : e = {};
116
+ const s = Object.keys(n);
117
+ for (const o of s) e[o] = n[o];
118
+ } else e = {};
119
+ return e;
120
+ } else return n;
121
+ }
122
+ var Z = (n, e, t) => {
123
+ if (t && t.has(n)) return t.get(n);
124
+ let s;
125
+ switch (e) {
126
+ case "Number":
127
+ s = new Number(n.valueOf());
128
+ break;
129
+ case "String":
130
+ s = new String(n.valueOf());
131
+ break;
132
+ case "Boolean":
133
+ s = new Boolean(n.valueOf());
134
+ break;
135
+ case "Date":
136
+ s = new Date(n.valueOf());
137
+ break;
138
+ case "RegExp":
139
+ s = new RegExp(n.source, n.flags);
140
+ break;
141
+ case "Blob":
142
+ s = new Blob([n], { type: n.type });
143
+ break;
144
+ case "File":
145
+ s = new File([n], n.name, { type: n.type });
146
+ break;
147
+ case "ArrayBuffer":
148
+ case "Int8Array":
149
+ case "Uint8Array":
150
+ case "Uint8ClampedArray":
151
+ case "Int16Array":
152
+ case "Uint16Array":
153
+ case "Int32Array":
154
+ case "Uint32Array":
155
+ case "Float32Array":
156
+ case "Float64Array":
157
+ case "BigInt64Array":
158
+ case "BigUint64Array":
159
+ s = n.slice();
160
+ break;
161
+ }
162
+ return t && s && t.set(n, s), s;
163
+ };
164
+ function Wn(n, e) {
165
+ const t = e.map((i) => O(i)[0]).map((i) => v(i) ? parseInt(i) : i), s = Array.isArray(n) ? [] : {}, o = Object.keys(n);
166
+ for (const i of o) s[i] = n[i];
167
+ return t.sort((i, c) => {
168
+ const r = A(i), l = A(c);
169
+ return r && l ? c - i : r || l ? r ? -1 : 1 : i.localeCompare(c);
170
+ }), t.forEach((i) => {
171
+ Array.isArray(s) && A(i) ? s.splice(i, 1) : delete s[i];
172
+ }), s;
173
+ }
174
+ function Qn(...n) {
175
+ return n.reduce((e, t) => {
176
+ if (E(t)) return e;
177
+ const s = Object.keys(t);
178
+ for (const o of s) {
179
+ const i = e[o], c = t[o];
180
+ (E(i) || !E(c)) && (e[o] = c);
181
+ }
182
+ return e;
183
+ }, {});
184
+ }
185
+ function gn(n, e) {
186
+ const t = {}, s = Object.keys(n);
187
+ for (const o of s) t[o] = e(n[o], o, n);
188
+ return t;
189
+ }
190
+ var ke = (n, e = -Infinity, t = Infinity) => Math.max(e, Math.min(t, n));
191
+ function Oe(n, e) {
192
+ let t = -Infinity;
193
+ const s = n.length;
194
+ for (let o = 0; o < s; o++) {
195
+ const i = e !== void 0 ? y(e) ? f(n[o], e) : e(n[o], o, n) : n[o];
196
+ i > t && (t = i);
197
+ }
198
+ return t;
199
+ }
200
+ function Ue(n, e, t) {
201
+ let s, o;
202
+ const { immediate: i = !1, maxWait: c } = t || {};
203
+ return function(...l) {
204
+ c !== void 0 && !o && (o = setTimeout(() => {
205
+ o = void 0, n.apply(this, l);
206
+ }, c)), !s && i && n.apply(this, l), s && clearTimeout(s), s = setTimeout(() => {
207
+ o && (clearTimeout(o), o = void 0), n.apply(this, l);
208
+ }, e);
209
+ };
210
+ }
211
+ function qe(n, e, t) {
212
+ let s = 0, o;
213
+ const { leading: i = !1, trailing: c = !0 } = t || {};
214
+ return function(...l) {
215
+ const u = +/* @__PURE__ */ new Date();
216
+ i === !1 && (s = u);
217
+ const a = e - (u - s);
218
+ a <= 0 && (o && (clearTimeout(o), o = void 0), s = u, n.apply(this, l)), !o && c && (o = setTimeout(() => {
219
+ o = void 0, s = i ? +/* @__PURE__ */ new Date() : 0, n.apply(this, l);
220
+ }, a));
221
+ };
222
+ }
223
+ typeof process < "u" && process.env.NODE_ENV;
224
+ var xn = /^[a-zA-Z0-9]+([._-]?[a-zA-Z0-9]+)*@[a-zA-Z0-9]+([a-zA-Z0-9-]*[a-zA-Z0-9]+)*(\.[a-zA-Z0-9]+([a-zA-Z0-9-]*[a-zA-Z0-9]+)*)*\.[a-zA-Z]{2,}$/, Ge = (n) => y(n) && xn.test(n);
225
+ function mitt_default(n) {
226
+ return {
227
+ all: n = n || /* @__PURE__ */ new Map(),
228
+ on: function(t, e) {
229
+ var i = n.get(t);
230
+ i ? i.push(e) : n.set(t, [e]);
231
+ },
232
+ off: function(t, e) {
233
+ var i = n.get(t);
234
+ i && (e ? i.splice(i.indexOf(e) >>> 0, 1) : n.set(t, []));
235
+ },
236
+ emit: function(t, e) {
237
+ var i = n.get(t);
238
+ i && i.slice().map(function(n$1) {
239
+ n$1(e);
240
+ }), (i = n.get("*")) && i.slice().map(function(n$1) {
241
+ n$1(t, e);
242
+ });
243
+ }
244
+ };
245
+ }
246
+ var info_circle_solid_default = /* @__PURE__ */ defineComponent({
247
+ props: {
248
+ size: {},
249
+ color: {}
250
+ },
251
+ setup(__props) {
252
+ const props = __props;
253
+ return (_ctx, _cache) => {
254
+ return openBlock(), createElementBlock("svg", {
255
+ class: "px-icon-hn",
256
+ style: normalizeStyle({
257
+ color: props.color,
258
+ fontSize: props.size + "px"
259
+ }),
260
+ xmlns: "http://www.w3.org/2000/svg",
261
+ viewBox: "0 0 24 24"
262
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M22 9V7h-1V5h-1V4h-1V3h-2V2h-2V1H9v1H7v1H5v1H4v1H3v2H2v2H1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1V9zM11 6h2v2h-2zm-1 9h1v-5h-1V9h3v6h1v2h-4z" }, null, -1), createElementVNode("path", {
263
+ fill: "none",
264
+ d: "M0 0h24v24H0z"
265
+ }, null, -1)])], 4);
266
+ };
267
+ }
268
+ });
269
+ var exclamation_triangle_solid_default = /* @__PURE__ */ defineComponent({
270
+ props: {
271
+ size: {},
272
+ color: {}
273
+ },
274
+ setup(__props) {
275
+ const props = __props;
276
+ return (_ctx, _cache) => {
277
+ return openBlock(), createElementBlock("svg", {
278
+ class: "px-icon-hn",
279
+ style: normalizeStyle({
280
+ color: props.color,
281
+ fontSize: props.size + "px"
282
+ }),
283
+ xmlns: "http://www.w3.org/2000/svg",
284
+ viewBox: "0 0 24 24"
285
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M22 20v-2h-1v-2h-1v-2h-1v-2h-1v-2h-1V8h-1V6h-1V4h-1V2h-1V1h-2v1h-1v2H9v2H8v2H7v2H6v2H5v2H4v2H3v2H2v2H1v2h1v1h20v-1h1v-2zm-12-9h4v3h-1v3h-2v-3h-1zm1 7h2v2h-2z" }, null, -1)])], 4);
286
+ };
287
+ }
288
+ });
289
+ var octagon_times_solid_default = /* @__PURE__ */ defineComponent({
290
+ props: {
291
+ size: {},
292
+ color: {}
293
+ },
294
+ setup(__props) {
295
+ const props = __props;
296
+ return (_ctx, _cache) => {
297
+ return openBlock(), createElementBlock("svg", {
298
+ class: "px-icon-hn",
299
+ style: normalizeStyle({
300
+ color: props.color,
301
+ fontSize: props.size + "px"
302
+ }),
303
+ xmlns: "http://www.w3.org/2000/svg",
304
+ viewBox: "0 0 24 24"
305
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M22 8V7h-1V6h-1V5h-1V4h-1V3h-1V2h-1V1H8v1H7v1H6v1H5v1H4v1H3v1H2v1H1v8h1v1h1v1h1v1h1v1h1v1h1v1h1v1h8v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1V8zm-6 9h-2v-1h-1v-1h-2v1h-1v1H8v-1H7v-2h1v-1h1v-2H8v-1H7V8h1V7h2v1h1v1h2V8h1V7h2v1h1v2h-1v1h-1v2h1v1h1v2h-1z" }, null, -1)])], 4);
306
+ };
307
+ }
308
+ });
309
+ var check_circle_solid_default = /* @__PURE__ */ defineComponent({
310
+ props: {
311
+ size: {},
312
+ color: {}
313
+ },
314
+ setup(__props) {
315
+ const props = __props;
316
+ return (_ctx, _cache) => {
317
+ return openBlock(), createElementBlock("svg", {
318
+ class: "px-icon-hn",
319
+ style: normalizeStyle({
320
+ color: props.color,
321
+ fontSize: props.size + "px"
322
+ }),
323
+ xmlns: "http://www.w3.org/2000/svg",
324
+ viewBox: "0 0 24 24"
325
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M22 9V7h-1V5h-1V4h-1V3h-2V2h-2V1H9v1H7v1H5v1H4v1H3v2H2v2H1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1V9zm-4 3h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-2v-1H9v-1H8v-1H7v-1H6v-2h1v-1h2v1h1v1h2v-1h1v-1h1v-1h1V9h1V8h2v1h1v2h-1z" }, null, -1)])], 4);
326
+ };
327
+ }
328
+ });
329
+ var times_circle_solid_default = /* @__PURE__ */ defineComponent({
330
+ props: {
331
+ size: {},
332
+ color: {}
333
+ },
334
+ setup(__props) {
335
+ const props = __props;
336
+ return (_ctx, _cache) => {
337
+ return openBlock(), createElementBlock("svg", {
338
+ class: "px-icon-hn",
339
+ style: normalizeStyle({
340
+ color: props.color,
341
+ fontSize: props.size + "px"
342
+ }),
343
+ xmlns: "http://www.w3.org/2000/svg",
344
+ viewBox: "0 0 24 24"
345
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M22 9V7h-1V5h-1V4h-1V3h-2V2h-2V1H9v1H7v1H5v1H4v1H3v2H2v2H1v6h1v2h1v2h1v1h1v1h2v1h2v1h6v-1h2v-1h2v-1h1v-1h1v-2h1v-2h1V9zm-8 7v-1h-1v-1h-2v1h-1v1H9v1H8v-1H7v-1h1v-1h1v-1h1v-2H9v-1H8V9H7V8h1V7h1v1h1v1h1v1h2V9h1V8h1V7h1v1h1v1h-1v1h-1v1h-1v2h1v1h1v1h1v1h-1v1h-1v-1z" }, null, -1)])], 4);
346
+ };
347
+ }
348
+ });
349
+ const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
350
+ let nanoid = (size = 21) => {
351
+ let id = "";
352
+ let bytes = crypto.getRandomValues(new Uint8Array(size |= 0));
353
+ while (size--) id += urlAlphabet[bytes[size] & 63];
354
+ return id;
355
+ };
356
+ var eye_default = /* @__PURE__ */ defineComponent({
357
+ props: {
358
+ size: {},
359
+ color: {}
360
+ },
361
+ setup(__props) {
362
+ const props = __props;
363
+ return (_ctx, _cache) => {
364
+ return openBlock(), createElementBlock("svg", {
365
+ class: "px-icon-hn",
366
+ style: normalizeStyle({
367
+ color: props.color,
368
+ fontSize: props.size + "px"
369
+ }),
370
+ xmlns: "http://www.w3.org/2000/svg",
371
+ viewBox: "0 0 24 24"
372
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M16 11h1v2h-1zM16 13v2h-1v1h-2v-1h1v-1h1v-1zM16 9v2h-1v-1h-1V9h-1V8h2v1zM11 16h2v1h-2zM11 15v1H9v-1H8v-2h1v1h1v1zM13 7v1h-1v3h-1v1H8v1H7v-2h1V9h1V8h2V7z" }, null, -1), createElementVNode("path", { d: "M22 11V9h-1V8h-1V7h-1V6h-2V5H7v1H5v1H4v1H3v1H2v2H1v2h1v2h1v1h1v1h1v1h2v1h10v-1h2v-1h1v-1h1v-1h1v-2h1v-2zm-1 3h-1v1h-1v1h-1v1h-2v1H8v-1H7v-1H5v-1H4v-1H3v-4h1V9h1V8h1V7h2V6h8v1h2v1h1v1h1v1h1z" }, null, -1)])], 4);
373
+ };
374
+ }
375
+ });
376
+ var eye_cross_default = /* @__PURE__ */ defineComponent({
377
+ props: {
378
+ size: {},
379
+ color: {}
380
+ },
381
+ setup(__props) {
382
+ const props = __props;
383
+ return (_ctx, _cache) => {
384
+ return openBlock(), createElementBlock("svg", {
385
+ class: "px-icon-hn",
386
+ style: normalizeStyle({
387
+ color: props.color,
388
+ fontSize: props.size + "px"
389
+ }),
390
+ xmlns: "http://www.w3.org/2000/svg",
391
+ viewBox: "0 0 24 24"
392
+ }, [..._cache[0] || (_cache[0] = [
393
+ createElementVNode("path", { d: "M15 13h1v2h-1v1h-2v-1h1v-1h1zM16 11h1v2h-1z" }, null, -1),
394
+ createElementVNode("path", { d: "M23 11v2h-1v2h-1v1h-1v1h-1v1h-2v1H9v-1h7v-1h2v-1h1v-1h1v-1h1v-4h-1V9h-1V8h2v1h1v2zM2 13H1v-2h1V9h1V8h1V7h1V6h2V5h8v1H8v1H6v1H5v1H4v1H3v4h1v1h1v1H3v-1H2z" }, null, -1),
395
+ createElementVNode("path", { d: "M13 7v1h-1v1h-1v1h-1v1H9v1H8v1H7v-2h1V9h1V8h2V7zM9 17H8v1H7v1H6v1H5v1H4v1H3v-1H2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1V9h1V8h1V7h1V6h1V5h1V4h1V3h1V2h1v1h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1H9zM11 16h2v1h-2z" }, null, -1)
396
+ ])], 4);
397
+ };
398
+ }
399
+ });
400
+ var minus_default = /* @__PURE__ */ defineComponent({
401
+ props: {
402
+ size: {},
403
+ color: {}
404
+ },
405
+ setup(__props) {
406
+ const props = __props;
407
+ return (_ctx, _cache) => {
408
+ return openBlock(), createElementBlock("svg", {
409
+ class: "px-icon-hn",
410
+ style: normalizeStyle({
411
+ color: props.color,
412
+ fontSize: props.size + "px"
413
+ }),
414
+ xmlns: "http://www.w3.org/2000/svg",
415
+ viewBox: "0 0 24 24"
416
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M1 11h22v2H1z" }, null, -1)])], 4);
417
+ };
418
+ }
419
+ });
420
+ var plus_default = /* @__PURE__ */ defineComponent({
421
+ props: {
422
+ size: {},
423
+ color: {}
424
+ },
425
+ setup(__props) {
426
+ const props = __props;
427
+ return (_ctx, _cache) => {
428
+ return openBlock(), createElementBlock("svg", {
429
+ class: "px-icon-hn",
430
+ style: normalizeStyle({
431
+ color: props.color,
432
+ fontSize: props.size + "px"
433
+ }),
434
+ xmlns: "http://www.w3.org/2000/svg",
435
+ viewBox: "0 0 24 24"
436
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M23 11v2H13v10h-2V13H1v-2h10V1h2v10z" }, null, -1)])], 4);
437
+ };
438
+ }
439
+ });
440
+ var times_default = /* @__PURE__ */ defineComponent({
441
+ props: {
442
+ size: {},
443
+ color: {}
444
+ },
445
+ setup(__props) {
446
+ const props = __props;
447
+ return (_ctx, _cache) => {
448
+ return openBlock(), createElementBlock("svg", {
449
+ class: "px-icon-hn",
450
+ style: normalizeStyle({
451
+ color: props.color,
452
+ fontSize: props.size + "px"
453
+ }),
454
+ xmlns: "http://www.w3.org/2000/svg",
455
+ viewBox: "0 0 24 24"
456
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M14 13h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h-1v1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v-1h-2v1h-1v1H9v1H8v1H7v1H6v1H5v1H4v1H3v-1H2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-2H9v-1H8V9H7V8H6V7H5V6H4V5H3V4H2V3h1V2h1v1h1v1h1v1h1v1h1v1h1v1h1v1h1v1h2V9h1V8h1V7h1V6h1V5h1V4h1V3h1V2h1v1h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1z" }, null, -1)])], 4);
457
+ };
458
+ }
459
+ });
460
+ var file_delete_default = /* @__PURE__ */ defineComponent({
461
+ props: {
462
+ size: {},
463
+ color: {}
464
+ },
465
+ setup(__props) {
466
+ const props = __props;
467
+ return (_ctx, _cache) => {
468
+ return openBlock(), createElementBlock("svg", {
469
+ class: "px-icon-pa",
470
+ style: normalizeStyle({
471
+ color: props.color,
472
+ fontSize: props.size + "px"
473
+ }),
474
+ xmlns: "http://www.w3.org/2000/svg",
475
+ fill: "none",
476
+ viewBox: "0 0 24 24"
477
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
478
+ fill: "currentColor",
479
+ d: "M11 22h10V8h-2V6h-2v2h-2V6h2V4h-2V2H3v12h2V4h8v6h6v10h-8zm-4-2H5v2H3v-2h2v-2H3v-2h2v2h2v-2h2v2H7zm0 0h2v2H7z"
480
+ }, null, -1)])], 4);
481
+ };
482
+ }
483
+ });
484
+ var check_solid_default = /* @__PURE__ */ defineComponent({
485
+ props: {
486
+ size: {},
487
+ color: {}
488
+ },
489
+ setup(__props) {
490
+ const props = __props;
491
+ return (_ctx, _cache) => {
492
+ return openBlock(), createElementBlock("svg", {
493
+ class: "px-icon-hn",
494
+ style: normalizeStyle({
495
+ color: props.color,
496
+ fontSize: props.size + "px"
497
+ }),
498
+ xmlns: "http://www.w3.org/2000/svg",
499
+ viewBox: "0 0 24 24"
500
+ }, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M23 5v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1H8v-1H7v-1H6v-1H5v-1H4v-1H3v-1H2v-1H1v-1h1v-1h1V9h1v1h1v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h1V9h1V8h1V7h1V6h1V5h1V4h1V3h1v1h1v1z" }, null, -1)])], 4);
501
+ };
502
+ }
503
+ });
504
+ export { d as A, y as B, Pn as C, S as D, Rn as E, m as F, on as I, qe as L, f as M, gn as N, Ue as O, ke as P, tn as R, Oe as S, R as T, spinner_third_solid_default as V, E as _, minus_default as a, Ln as b, nanoid as c, octagon_times_solid_default as d, exclamation_triangle_solid_default as f, A as g, $n as h, plus_default as i, en as j, Wn as k, times_circle_solid_default as l, mitt_default as m, file_delete_default as n, eye_cross_default as o, info_circle_solid_default as p, times_default as r, eye_default as s, check_solid_default as t, check_circle_solid_default as u, F as v, Qn as w, Nn as x, Ge as y, v as z };
@@ -0,0 +1,2 @@
1
+ import '../index.css'
2
+ import './index.css'
@@ -0,0 +1,25 @@
1
+ .px-virtual-list {
2
+ height: 100%;
3
+ width: 100%;
4
+ overflow: hidden;
5
+ }
6
+ .px-virtual-list-scroll-area {
7
+ width: 100%;
8
+ height: 100%;
9
+ overflow: auto;
10
+ position: relative;
11
+ }
12
+ .px-virtual-list-content {
13
+ position: relative;
14
+ overflow: hidden;
15
+ }
16
+ .px-virtual-list-placeholder {
17
+ width: 1px;
18
+ opacity: 0;
19
+ }
20
+ .px-virtual-list-item {
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ }
@@ -0,0 +1,11 @@
1
+ import type { VirtualListProps } from './type';
2
+ declare const _default: import("vue").DefineComponent<VirtualListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VirtualListProps> & Readonly<{}>, {
3
+ list: {
4
+ render: import("..").ValidContent;
5
+ key?: string | number | symbol;
6
+ }[];
7
+ fixedHeight: boolean;
8
+ estimatedHeight: number;
9
+ buffer: number;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ export default _default;