@unicom-cloud/utils 0.1.32 → 0.1.33

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 (353) hide show
  1. package/case-name/index.js +1 -1
  2. package/caseName.js +1 -1
  3. package/class-name/index.js +1 -1
  4. package/className.js +1 -1
  5. package/clipboard-copy/index.js +1 -1
  6. package/clipboardCopy.js +1 -1
  7. package/constant/address.js +1 -1
  8. package/constant/chineseCharacters.js +1 -1
  9. package/constant/constellations.js +1 -1
  10. package/constant/domain.js +1 -1
  11. package/constant/emoji.js +1 -1
  12. package/constant/identity.js +1 -1
  13. package/constant/index.js +1 -1
  14. package/constant/isMobile.js +1 -1
  15. package/constant/keyboardCode.js +1 -1
  16. package/constant/licensePlate.js +1 -1
  17. package/constant/name.js +1 -1
  18. package/constant/platform.js +1 -1
  19. package/constant/protocol.js +1 -1
  20. package/constant/string.js +1 -1
  21. package/constant/ui.js +1 -1
  22. package/constant.js +1 -1
  23. package/content-disposition/index.js +1 -1
  24. package/contentDisposition.js +1 -1
  25. package/cookie/index.js +1 -1
  26. package/cookie/src/api.js +1 -1
  27. package/cookie/src/assign.js +1 -1
  28. package/cookie/src/converter.js +1 -1
  29. package/cookie.js +1 -1
  30. package/date/convertTime.js +1 -1
  31. package/date/convertToDuration.js +1 -1
  32. package/date/index.js +5 -5
  33. package/date.js +5 -5
  34. package/decimal/decimal.js +1 -1
  35. package/decimal/index.js +1 -1
  36. package/decimal.js +1 -1
  37. package/dom-helpers/activeElement.js +1 -1
  38. package/dom-helpers/addClass.js +1 -1
  39. package/dom-helpers/addEventListener.js +1 -1
  40. package/dom-helpers/animate.js +1 -1
  41. package/dom-helpers/animationFrame.js +1 -1
  42. package/dom-helpers/attribute.js +1 -1
  43. package/dom-helpers/camelize.js +1 -1
  44. package/dom-helpers/camelizeStyle.js +1 -1
  45. package/dom-helpers/canUseDOM.js +1 -1
  46. package/dom-helpers/childElements.js +1 -1
  47. package/dom-helpers/childNodes.js +1 -1
  48. package/dom-helpers/clear.js +1 -1
  49. package/dom-helpers/closest.js +1 -1
  50. package/dom-helpers/collectElements.js +1 -1
  51. package/dom-helpers/collectSiblings.js +1 -1
  52. package/dom-helpers/contains.js +1 -1
  53. package/dom-helpers/css.js +1 -1
  54. package/dom-helpers/filterEventHandler.js +1 -1
  55. package/dom-helpers/getComputedStyle.js +1 -1
  56. package/dom-helpers/getElementCoordinates.js +46 -0
  57. package/dom-helpers/getScrollAccessor.js +1 -1
  58. package/dom-helpers/hasClass.js +1 -1
  59. package/dom-helpers/height.js +1 -1
  60. package/dom-helpers/hyphenate.js +1 -1
  61. package/dom-helpers/hyphenateStyle.js +1 -1
  62. package/dom-helpers/index.js +87 -84
  63. package/dom-helpers/insertAfter.js +1 -1
  64. package/dom-helpers/isDocument.js +1 -1
  65. package/dom-helpers/isInput.js +1 -1
  66. package/dom-helpers/isTransform.js +1 -1
  67. package/dom-helpers/isVisible.js +1 -1
  68. package/dom-helpers/isWindow.js +1 -1
  69. package/dom-helpers/listen.js +1 -1
  70. package/dom-helpers/matches.js +1 -1
  71. package/dom-helpers/nextUntil.js +1 -1
  72. package/dom-helpers/offset.js +1 -1
  73. package/dom-helpers/offsetParent.js +1 -1
  74. package/dom-helpers/ownerDocument.js +1 -1
  75. package/dom-helpers/ownerWindow.js +1 -1
  76. package/dom-helpers/parents.js +1 -1
  77. package/dom-helpers/position.js +1 -1
  78. package/dom-helpers/prepend.js +1 -1
  79. package/dom-helpers/querySelectorAll.js +1 -1
  80. package/dom-helpers/reflow.js +1 -1
  81. package/dom-helpers/remove.js +1 -1
  82. package/dom-helpers/removeClass.js +1 -1
  83. package/dom-helpers/removeEventListener.js +1 -1
  84. package/dom-helpers/scrollLeft.js +1 -1
  85. package/dom-helpers/scrollParent.js +1 -1
  86. package/dom-helpers/scrollTo.js +1 -1
  87. package/dom-helpers/scrollTop.js +1 -1
  88. package/dom-helpers/scrollbarSize.js +1 -1
  89. package/dom-helpers/siblings.js +1 -1
  90. package/dom-helpers/text.js +1 -1
  91. package/dom-helpers/toggleClass.js +1 -1
  92. package/dom-helpers/transitionEnd.js +2 -2
  93. package/dom-helpers/triggerEvent.js +1 -1
  94. package/dom-helpers/types.js +1 -1
  95. package/dom-helpers/width.js +1 -1
  96. package/domHelpers.js +65 -63
  97. package/emitter/index.js +1 -1
  98. package/emitter/src/index.js +1 -1
  99. package/emitter.js +1 -1
  100. package/escape/index.js +11 -0
  101. package/escape.js +6 -0
  102. package/file/fileToURL.js +1 -1
  103. package/file/index.js +1 -1
  104. package/file/saveAs.js +1 -1
  105. package/file.js +1 -1
  106. package/idb/index.js +1 -1
  107. package/idb.js +1 -1
  108. package/index.js +1 -1
  109. package/invariant/index.js +1 -1
  110. package/invariant.js +1 -1
  111. package/is/index.js +196 -141
  112. package/is/lib/isAscii.js +9 -0
  113. package/is/lib/isBase64.js +13 -0
  114. package/is/lib/isChinese.js +19 -0
  115. package/is/lib/isDataURI.js +25 -0
  116. package/is/lib/isEmail.js +72 -0
  117. package/is/lib/isFQDN.js +21 -0
  118. package/is/lib/isFullWidth.js +10 -0
  119. package/is/lib/isHSL.js +11 -0
  120. package/is/lib/isHalfWidth.js +10 -0
  121. package/is/lib/isHash.js +23 -0
  122. package/is/lib/isHexColor.js +12 -0
  123. package/is/lib/isIMEI.js +19 -0
  124. package/is/lib/isIP.js +21 -0
  125. package/is/lib/isIPRange.js +25 -0
  126. package/is/lib/isIdentityCard.js +190 -0
  127. package/is/lib/isJWT.js +14 -0
  128. package/is/lib/isMACAddress.js +9 -0
  129. package/is/lib/isMD5.js +9 -0
  130. package/is/lib/isMimeType.js +9 -0
  131. package/is/lib/isMobilePhone.js +192 -0
  132. package/is/lib/isPort.js +7 -0
  133. package/is/lib/isRgbColor.js +18 -0
  134. package/is/lib/isSemVer.js +20 -0
  135. package/is/lib/isSlug.js +9 -0
  136. package/is/lib/isStrongPassword.js +48 -0
  137. package/is/lib/isURL.js +78 -0
  138. package/is/lib/isUUID.js +24 -0
  139. package/is/lib/isVariableWidth.js +10 -0
  140. package/is/lib/util/assertString.js +12 -0
  141. package/is.js +122 -66
  142. package/lunar/index.js +1 -1
  143. package/lunar/lib/Holiday.js +1 -1
  144. package/lunar/lib/HolidayUtil.js +1 -1
  145. package/lunar/lib/I18n.js +1 -1
  146. package/lunar/lib/JieQi.js +1 -1
  147. package/lunar/lib/Lunar.js +1 -1
  148. package/lunar/lib/LunarMonth.js +1 -1
  149. package/lunar/lib/LunarTime.js +1 -1
  150. package/lunar/lib/LunarUtil.js +1 -1
  151. package/lunar/lib/LunarYear.js +1 -1
  152. package/lunar/lib/ShouXingUtil.js +1 -1
  153. package/lunar/lib/Solar.js +1 -1
  154. package/lunar/lib/SolarHalfYear.js +1 -1
  155. package/lunar/lib/SolarMonth.js +1 -1
  156. package/lunar/lib/SolarSeason.js +1 -1
  157. package/lunar/lib/SolarUtil.js +1 -1
  158. package/lunar/lib/SolarWeek.js +1 -1
  159. package/lunar/lib/SolarYear.js +1 -1
  160. package/lunar/lib/index.js +1 -1
  161. package/lunar.js +1 -1
  162. package/math/index.js +1 -1
  163. package/math.js +1 -1
  164. package/md5/index.js +1 -1
  165. package/md5.js +1 -1
  166. package/mock/MockWebSocket.js +1 -1
  167. package/mock/MockXMLHttpRequest.js +1 -1
  168. package/mock/index.js +1 -1
  169. package/mock.js +1 -1
  170. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  171. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  172. package/normalize-wheel/index.js +1 -1
  173. package/normalize-wheel/isEventSupported.js +1 -1
  174. package/normalizeWheel.js +1 -1
  175. package/number-to-chinese/index.js +1 -1
  176. package/numberToChinese.js +1 -1
  177. package/nzh/cn.js +1 -1
  178. package/nzh/hk.js +1 -1
  179. package/nzh/index.js +1 -1
  180. package/nzh/nzh.js +1 -1
  181. package/nzh/src/autoGet.js +1 -1
  182. package/nzh/src/index.js +1 -1
  183. package/nzh/src/langs/cn_b.js +1 -1
  184. package/nzh/src/langs/cn_s.js +1 -1
  185. package/nzh/src/langs/hk_b.js +1 -1
  186. package/nzh/src/langs/hk_s.js +1 -1
  187. package/nzh/src/utils.js +1 -1
  188. package/nzh.js +1 -1
  189. package/object-keys-sort/index.js +1 -1
  190. package/object-prototype-to-string-call/index.js +2 -2
  191. package/objectKeysSort.js +1 -1
  192. package/objectPrototypeToStringCall.js +1 -1
  193. package/package.json +1 -1
  194. package/pinyin/index.js +1 -1
  195. package/pinyin/simplified.js +1 -1
  196. package/pinyin/src/core.js +1 -1
  197. package/pinyin/src/simplified.js +6 -6
  198. package/pinyin/src/simplified_dict.js +5 -4
  199. package/pinyin/src/traditional.js +4 -4
  200. package/pinyin/src/traditional_dict.js +4 -3
  201. package/pinyin/traditional.js +1 -1
  202. package/pinyin.js +1 -1
  203. package/query-string/base.js +1 -1
  204. package/query-string/index.js +1 -1
  205. package/query-string/splitOnFirst.js +1 -1
  206. package/queryString.js +1 -1
  207. package/random/address.js +1 -1
  208. package/random/constellation.js +1 -1
  209. package/random/image.js +1 -1
  210. package/random/index.js +1 -1
  211. package/random/licensePlate.js +1 -1
  212. package/random/name.js +1 -1
  213. package/random/number.js +1 -1
  214. package/random/text.js +1 -1
  215. package/random/time.js +1 -1
  216. package/random/web.js +1 -1
  217. package/random.js +1 -1
  218. package/screenfull/index.js +1 -1
  219. package/screenfull.js +1 -1
  220. package/sleep/index.js +1 -1
  221. package/sleep.js +1 -1
  222. package/snapdom/index.js +1 -1
  223. package/snapdom/src/api/preCache.js +1 -1
  224. package/snapdom/src/api/snapdom.js +2 -2
  225. package/snapdom/src/core/cache.js +1 -1
  226. package/snapdom/src/core/capture.js +1 -1
  227. package/snapdom/src/core/clone.js +1 -1
  228. package/snapdom/src/core/context.js +1 -1
  229. package/snapdom/src/core/plugins.js +1 -1
  230. package/snapdom/src/core/prepare.js +1 -1
  231. package/snapdom/src/exporters/download.js +14 -9
  232. package/snapdom/src/exporters/toBlob.js +1 -1
  233. package/snapdom/src/exporters/toCanvas.js +1 -1
  234. package/snapdom/src/exporters/toImg.js +1 -1
  235. package/snapdom/src/modules/CSSVar.js +1 -1
  236. package/snapdom/src/modules/background.js +1 -1
  237. package/snapdom/src/modules/changeCSS.js +1 -1
  238. package/snapdom/src/modules/counter.js +1 -1
  239. package/snapdom/src/modules/fonts.js +1 -1
  240. package/snapdom/src/modules/iconFonts.js +1 -1
  241. package/snapdom/src/modules/images.js +1 -1
  242. package/snapdom/src/modules/lineClamp.js +1 -1
  243. package/snapdom/src/modules/pseudo.js +1 -1
  244. package/snapdom/src/modules/rasterize.js +1 -1
  245. package/snapdom/src/modules/snapFetch.js +1 -1
  246. package/snapdom/src/modules/styles.js +2 -2
  247. package/snapdom/src/modules/svgDefs.js +1 -1
  248. package/snapdom/src/utils/browser.js +1 -1
  249. package/snapdom/src/utils/capture.helpers.js +1 -1
  250. package/snapdom/src/utils/clone.helpers.js +1 -1
  251. package/snapdom/src/utils/css.js +1 -1
  252. package/snapdom/src/utils/helpers.js +1 -1
  253. package/snapdom/src/utils/image.js +1 -1
  254. package/snapdom/src/utils/prepare.helpers.js +1 -1
  255. package/snapdom/src/utils/transforms.helpers.js +1 -1
  256. package/snapdom.js +1 -1
  257. package/string/index.js +1 -1
  258. package/string.js +1 -1
  259. package/tinycolor/index.js +1 -1
  260. package/tinycolor/src/conversion.js +1 -1
  261. package/tinycolor/src/css-color-names.js +1 -1
  262. package/tinycolor/src/format-input.js +1 -1
  263. package/tinycolor/src/from-ratio.js +12 -11
  264. package/tinycolor/src/index.js +1 -1
  265. package/tinycolor/src/random.js +30 -29
  266. package/tinycolor/src/readability.js +1 -1
  267. package/tinycolor/src/to-ms-filter.js +1 -1
  268. package/tinycolor/src/utils.js +1 -1
  269. package/tinycolor.js +1 -1
  270. package/tree/index.js +54 -75
  271. package/tree/search/index.js +1 -1
  272. package/tree.js +9 -11
  273. package/tween/index.js +1 -1
  274. package/tween/src/easing.js +1 -1
  275. package/tween/src/tween.js +15 -14
  276. package/tween.js +1 -1
  277. package/types/date/index.d.ts +3 -3
  278. package/types/dom-helpers/getElementCoordinates.d.ts +40 -0
  279. package/types/dom-helpers/index.d.ts +3 -1
  280. package/types/escape/index.d.ts +2 -0
  281. package/types/is/index.d.ts +28 -1
  282. package/types/is/lib/isAscii.d.ts +1 -0
  283. package/types/is/lib/isBase64.d.ts +1 -0
  284. package/types/is/lib/isChinese.d.ts +4 -0
  285. package/types/is/lib/isDataURI.d.ts +1 -0
  286. package/types/is/lib/isEmail.d.ts +1 -0
  287. package/types/is/lib/isFQDN.d.ts +1 -0
  288. package/types/is/lib/isFullWidth.d.ts +2 -0
  289. package/types/is/lib/isHSL.d.ts +1 -0
  290. package/types/is/lib/isHalfWidth.d.ts +2 -0
  291. package/types/is/lib/isHash.d.ts +1 -0
  292. package/types/is/lib/isHexColor.d.ts +1 -0
  293. package/types/is/lib/isIMEI.d.ts +1 -0
  294. package/types/is/lib/isIP.d.ts +1 -0
  295. package/types/is/lib/isIPRange.d.ts +1 -0
  296. package/types/is/lib/isIdentityCard.d.ts +1 -0
  297. package/types/is/lib/isJWT.d.ts +1 -0
  298. package/types/is/lib/isMACAddress.d.ts +1 -0
  299. package/types/is/lib/isMD5.d.ts +1 -0
  300. package/types/is/lib/isMimeType.d.ts +1 -0
  301. package/types/is/lib/isMobilePhone.d.ts +2 -0
  302. package/types/is/lib/isOctal.d.ts +1 -0
  303. package/types/is/lib/isPort.d.ts +1 -0
  304. package/types/is/lib/isRgbColor.d.ts +1 -0
  305. package/types/is/lib/isSemVer.d.ts +1 -0
  306. package/types/is/lib/isSlug.d.ts +1 -0
  307. package/types/is/lib/isStrongPassword.d.ts +1 -0
  308. package/types/is/lib/isURL.d.ts +1 -0
  309. package/types/is/lib/isUUID.d.ts +1 -0
  310. package/types/is/lib/isVariableWidth.d.ts +1 -0
  311. package/types/is/lib/util/assertString.d.ts +1 -0
  312. package/types/pinyin/es/main.d.ts +4 -0
  313. package/types/pinyin/es/traditional.d.ts +4 -0
  314. package/types/snapdom/src/api/snapdom.d.ts +1 -0
  315. package/types/tree/index.d.ts +3 -4
  316. package/types/validate/src/index.d.ts +23 -25
  317. package/types/validate/src/interface.d.ts +5 -3
  318. package/types/validate/src/locale/en-US.d.ts +12 -2
  319. package/types/validate/src/locale/index.d.ts +171 -0
  320. package/types/validate/src/locale/zh-CN.d.ts +12 -2
  321. package/types/validate/src/rules/base.d.ts +3 -1
  322. package/types/validate/src/rules/custom.d.ts +1 -1
  323. package/types/validate/src/rules/type.d.ts +10 -0
  324. package/ui-color/compareColorByRange.js +1 -1
  325. package/ui-color/index.js +8 -7
  326. package/uiColor.js +25 -24
  327. package/url-toolkit/index.js +1 -1
  328. package/url-toolkit/src/url-toolkit.js +1 -1
  329. package/urlToolkit.js +1 -1
  330. package/validate/index.js +23 -25
  331. package/validate/src/index.js +116 -73
  332. package/validate/src/locale/en-US.js +12 -2
  333. package/validate/src/locale/index.js +11 -0
  334. package/validate/src/locale/zh-CN.js +12 -2
  335. package/validate/src/rules/array.js +2 -2
  336. package/validate/src/rules/base.js +35 -31
  337. package/validate/src/rules/boolean.js +1 -1
  338. package/validate/src/rules/custom.js +2 -2
  339. package/validate/src/rules/number.js +1 -1
  340. package/validate/src/rules/object.js +1 -1
  341. package/validate/src/rules/string.js +6 -5
  342. package/validate/src/rules/type.js +84 -14
  343. package/validate.js +23 -25
  344. package/version/index.js +1 -1
  345. package/version.js +1 -1
  346. package/xlsx/index.d.ts +4 -8
  347. package/xlsx/index.js +1 -1
  348. package/xlsx/xlsx.js +2 -2
  349. package/xlsx.js +1 -1
  350. package/types/validate/src/message.d.ts +0 -2
  351. package/types/validate/src/utils.d.ts +0 -3
  352. package/validate/src/message.js +0 -5
  353. package/validate/src/utils.js +0 -8
@@ -1,35 +1,105 @@
1
- /* 2025-11-27 12:11:03 */
2
- import a from "./base.js";
3
- const s = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, i = new RegExp(
4
- "^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
5
- "i"
6
- ), d = /^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;
7
- class l extends a {
8
- constructor(t, e) {
9
- super(t, {
10
- ...e,
1
+ /* 2025-12-17 18:26:57 */
2
+ import t from "lodash/isUndefined";
3
+ import r from "../../../is/lib/isAscii.js";
4
+ import { isAllChinese as o } from "../../../is/lib/isChinese.js";
5
+ import a from "../../../is/lib/isEmail.js";
6
+ import e from "../../../is/lib/isFullWidth.js";
7
+ import i from "../../../is/lib/isHalfWidth.js";
8
+ import l from "../../../is/lib/isIdentityCard.js";
9
+ import p from "../../../is/lib/isIP.js";
10
+ import d from "../../../is/lib/isMACAddress.js";
11
+ import c from "../../../is/lib/isMobilePhone.js";
12
+ import g from "../../../is/lib/isPort.js";
13
+ import m from "../../../is/lib/isSemVer.js";
14
+ import n from "../../../is/lib/isStrongPassword.js";
15
+ import y from "../../../is/lib/isURL.js";
16
+ import b from "./base.js";
17
+ class E extends b {
18
+ constructor(s, h) {
19
+ super(s, {
20
+ ...h,
11
21
  type: "type"
12
22
  });
13
23
  }
14
24
  get email() {
15
25
  return this.type = "email", this.validate(
16
- this.object === void 0 || s.test(this.object),
26
+ t(this.object) || a(this.object),
17
27
  this.getValidateMsg("type.email")
18
28
  );
19
29
  }
20
30
  get url() {
21
31
  return this.type = "url", this.validate(
22
- this.object === void 0 || i.test(this.object),
32
+ t(this.object) || y(this.object),
23
33
  this.getValidateMsg("type.url")
24
34
  );
25
35
  }
26
36
  get ip() {
27
37
  return this.type = "ip", this.validate(
28
- this.object === void 0 || d.test(this.object),
38
+ t(this.object) || p(this.object),
29
39
  this.getValidateMsg("type.ip")
30
40
  );
31
41
  }
42
+ get port() {
43
+ return this.type = "port", this.validate(
44
+ t(this.object) || g(this.object),
45
+ this.getValidateMsg("type.port")
46
+ );
47
+ }
48
+ get strongPassword() {
49
+ return this.type = "strongPassword", this.validate(
50
+ t(this.object) || n(this.object),
51
+ this.getValidateMsg("type.strongPassword")
52
+ );
53
+ }
54
+ get mac() {
55
+ return this.type = "mac", this.validate(
56
+ t(this.object) || d(this.object),
57
+ this.getValidateMsg("type.mac")
58
+ );
59
+ }
60
+ get identity() {
61
+ return this.type = "identity", this.validate(
62
+ t(this.object) || l(this.object, this.locale),
63
+ this.getValidateMsg("type.identity")
64
+ );
65
+ }
66
+ get phone() {
67
+ return this.type = "phone", this.validate(
68
+ t(this.object) || c(this.object, this.locale),
69
+ this.getValidateMsg("type.phone")
70
+ );
71
+ }
72
+ get semver() {
73
+ return this.type = "semver", this.validate(
74
+ t(this.object) || m(this.object),
75
+ this.getValidateMsg("type.semver")
76
+ );
77
+ }
78
+ get ascii() {
79
+ return this.type = "ascii", this.validate(
80
+ t(this.object) || r(this.object),
81
+ this.getValidateMsg("type.ascii")
82
+ );
83
+ }
84
+ get halfWidth() {
85
+ return this.type = "halfWidth", this.validate(
86
+ t(this.object) || i(this.object) && !e(this.object),
87
+ this.getValidateMsg("type.halfWidth")
88
+ );
89
+ }
90
+ get fullWidth() {
91
+ return this.type = "fullWidth", this.validate(
92
+ t(this.object) || e(this.object) && !i(this.object),
93
+ this.getValidateMsg("type.fullWidth")
94
+ );
95
+ }
96
+ get chinese() {
97
+ return this.type = "chinese", this.validate(
98
+ t(this.object) || o(this.object),
99
+ this.getValidateMsg("type.chinese")
100
+ );
101
+ }
32
102
  }
33
103
  export {
34
- l as default
104
+ E as default
35
105
  };
package/validate.js CHANGED
@@ -1,28 +1,26 @@
1
- /* 2025-11-27 12:11:03 */
2
- import { Schema as t, default as o } from "./validate/src/index.js";
3
- import { default as l } from "./validate/src/rules/array.js";
4
- import { default as d } from "./validate/src/rules/boolean.js";
5
- import { default as u } from "./validate/src/rules/custom.js";
6
- import { default as p, default as i, default as x } from "./validate/src/locale/zh-CN.js";
7
- import { default as c } from "./validate/src/locale/en-US.js";
1
+ /* 2025-12-17 18:26:57 */
2
+ import { PqbValidator as r, Validator as t, ValidatorSchema as e, Validator as l } from "./validate/src/index.js";
3
+ import { default as f } from "./validate/src/rules/array.js";
4
+ import { default as m } from "./validate/src/rules/base.js";
5
+ import { default as u } from "./validate/src/rules/boolean.js";
6
+ import { default as p } from "./validate/src/rules/custom.js";
7
+ import { default as b } from "./validate/src/locale/index.js";
8
8
  import { default as n } from "./validate/src/rules/number.js";
9
- import { default as S } from "./validate/src/rules/object.js";
10
- import { default as h } from "./validate/src/rules/string.js";
11
- import { default as C } from "./validate/src/rules/type.js";
12
- import { mergeTemplate as T } from "./validate/src/utils.js";
9
+ import { default as B } from "./validate/src/rules/object.js";
10
+ import { default as g } from "./validate/src/rules/string.js";
11
+ import { default as j } from "./validate/src/rules/type.js";
13
12
  export {
14
- l as ArrayValidator,
15
- d as BooleanValidator,
16
- u as CustomValidator,
17
- p as DefaultValidateMessage,
18
- n as NumberValidator,
19
- S as ObjectValidator,
20
- t as Schema,
21
- h as StringValidator,
22
- C as TypeValidator,
23
- o as default,
24
- i as defaultValidateLocale,
25
- c as enUSValidateLocale,
26
- T as mergeTemplate,
27
- x as zhCNValidateLocale
13
+ r as PqbValidator,
14
+ t as Validator,
15
+ f as ValidatorArray,
16
+ m as ValidatorBase,
17
+ u as ValidatorBoolean,
18
+ p as ValidatorCustom,
19
+ n as ValidatorNumber,
20
+ B as ValidatorObject,
21
+ e as ValidatorSchema,
22
+ g as ValidatorString,
23
+ j as ValidatorType,
24
+ l as default,
25
+ b as validatorLocale
28
26
  };
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  const t = "0.0.0";
3
3
  export {
4
4
  t as VERSION,
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { VERSION as f, VERSION as o } from "./version/index.js";
3
3
  export {
4
4
  f as VERSION,
package/xlsx/index.d.ts CHANGED
@@ -893,10 +893,7 @@ export interface UTCDateOption {
893
893
  }
894
894
 
895
895
  export interface AOA2SheetOpts
896
- extends CommonOptions,
897
- UTCDateOption,
898
- DateNFOption,
899
- DenseOption {
896
+ extends CommonOptions, UTCDateOption, DateNFOption, DenseOption {
900
897
  /**
901
898
  * Create cell objects for stub cells
902
899
  * @default false
@@ -907,7 +904,8 @@ export interface AOA2SheetOpts
907
904
  export interface SheetAOAOpts extends AOA2SheetOpts, OriginOption {}
908
905
 
909
906
  export interface JSON2SheetOpts
910
- extends CommonOptions,
907
+ extends
908
+ CommonOptions,
911
909
  UTCDateOption,
912
910
  DateNFOption,
913
911
  OriginOption,
@@ -920,9 +918,7 @@ export interface JSON2SheetOpts
920
918
  }
921
919
 
922
920
  export interface Table2SheetOpts
923
- extends CommonOptions,
924
- DateNFOption,
925
- OriginOption {
921
+ extends CommonOptions, DateNFOption, OriginOption {
926
922
  /** If true, plaintext parsing will not parse values */
927
923
  raw?: boolean;
928
924
 
package/xlsx/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { CFB as r, SSF as t, default as l, parse_xlscfb as s, parse_zip as a, read as F, readFile as w, readFile as S, set_cptable as c, set_fs as d, stream as p, utils as f, version as n, write as X, writeFile as _, writeFileAsync as o, writeFile as y, writeFileXLSX as b, writeXLSX as m } from "./xlsx.js";
3
3
  export {
4
4
  r as CFB,
package/xlsx/xlsx.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { saveAs as Ua } from "../file/saveAs.js";
3
3
  const qn = {};
4
4
  qn.version = "0.20.3";
@@ -11131,7 +11131,7 @@ function Mx(e, r) {
11131
11131
  }
11132
11132
  function Bx(e, r, t) {
11133
11133
  let n = 0;
11134
- (lc(e, "shape") || []).forEach(function(s) {
11134
+ (lc(e, "(?:shape|rect)") || []).forEach(function(s) {
11135
11135
  let a = "", i = !0, c = -1, f = -1, o = -1;
11136
11136
  switch (s.replace(Rt, function(u, d) {
11137
11137
  const h = de(u);
package/xlsx.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-11-27 12:11:03 */
1
+ /* 2025-12-17 18:26:57 */
2
2
  import { CFB as r, SSF as t, default as l, parse_xlscfb as s, parse_zip as a, read as F, readFile as w, readFile as S, set_cptable as c, set_fs as d, stream as p, utils as f, version as n, write as X, writeFile as _, writeFileAsync as o, writeFile as y, writeFileXLSX as b, writeXLSX as m } from "./xlsx/xlsx.js";
3
3
  export {
4
4
  r as CFB,
@@ -1,2 +0,0 @@
1
- import defaultValidateLocale from './locale/zh-CN';
2
- export default defaultValidateLocale;
@@ -1,3 +0,0 @@
1
- import type { ValidateMessagesTemplateType, ValidateMessagesType } from './interface';
2
- export declare const mergeTemplate: <T = ValidateMessagesType>(defaultValidateMessages: T, validateMessages: ValidateMessagesType) => T;
3
- export declare const getTemplate: (validateMessages: ValidateMessagesTemplateType, keyPath: string) => any;
@@ -1,5 +0,0 @@
1
- /* 2025-11-27 12:11:03 */
2
- import r from "./locale/zh-CN.js";
3
- export {
4
- r as default
5
- };
@@ -1,8 +0,0 @@
1
- /* 2025-11-27 12:11:03 */
2
- import r from "lodash/defaultsDeep";
3
- import m from "lodash/get";
4
- const n = (e, t) => r({}, t, e), a = (e, t) => m(e, t);
5
- export {
6
- a as getTemplate,
7
- n as mergeTemplate
8
- };