From 569a46b10d7b296abe7ba9488e1ea17bd9684f9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=8D=E5=A6=82=E6=91=B8=E9=B1=BC=E5=8E=BB?=
<1780903673@qq.com>
Date: Fri, 11 Jul 2025 13:22:04 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20=20=E6=9B=BF?=
=?UTF-8?q?=E6=8D=A2=E5=86=85=E7=BD=AE=E7=9A=84dayjs=E4=B8=BA1.11.13?=
=?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E4=BB=A5=E4=BE=BF2.0=E7=89=88?=
=?UTF-8?q?=E6=9C=AC=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8dayjs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 7 +-
pnpm-lock.yaml | 819 +++++-------------
.../wot-design-uni/components/common/dayjs.ts | 148 ----
.../components/wd-calendar-view/utils.ts | 2 +-
.../components/wd-calendar-view/year/year.vue | 2 +-
.../components/wd-calendar/wd-calendar.vue | 2 +-
.../wd-datetime-picker/wd-datetime-picker.vue | 2 +-
.../components/wd-text/wd-text.vue | 2 +-
.../wot-design-uni/dayjs/constant.js | 26 +
.../wot-design-uni/dayjs/index.d.ts | 430 +++++++++
src/uni_modules/wot-design-uni/dayjs/index.js | 542 ++++++++++++
.../wot-design-uni/dayjs/locale/en.js | 13 +
src/uni_modules/wot-design-uni/dayjs/utils.js | 59 ++
src/uni_modules/wot-design-uni/index.ts | 4 +-
tests/components/wd-segmented.test.ts | 2 +-
tests/setup.ts | 4 +-
vitest.config.ts | 2 +-
17 files changed, 1316 insertions(+), 750 deletions(-)
delete mode 100644 src/uni_modules/wot-design-uni/components/common/dayjs.ts
create mode 100644 src/uni_modules/wot-design-uni/dayjs/constant.js
create mode 100644 src/uni_modules/wot-design-uni/dayjs/index.d.ts
create mode 100644 src/uni_modules/wot-design-uni/dayjs/index.js
create mode 100644 src/uni_modules/wot-design-uni/dayjs/locale/en.js
create mode 100644 src/uni_modules/wot-design-uni/dayjs/utils.js
diff --git a/package.json b/package.json
index 8d6b7d44..9be41f1e 100644
--- a/package.json
+++ b/package.json
@@ -113,7 +113,7 @@
"@vant/touch-emulator": "^1.4.0",
"@vitalets/google-translate-api": "^9.2.1",
"@vitejs/plugin-vue": "^5.2.3",
- "@vitest/coverage-v8": "^3.1.1",
+ "@vitest/coverage-v8": "^1.6.0",
"@vue/runtime-core": "^3.4.38",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.1.3",
@@ -142,12 +142,11 @@
"sass": "^1.59.3",
"standard-version": "^9.5.0",
"typescript": "^5.5.4",
- "uni-read-pages-vite": "^0.0.6",
"unplugin-auto-import": "^0.17.5",
"unplugin-vue-components": "^0.26.0",
- "vite": "5",
+ "vite": "^5.4.19",
"vitepress-plugin-llms": "^1.1.3",
- "vitest": "^3.1.1",
+ "vitest": "^1.6.0",
"vue-eslint-parser": "^9.1.0",
"vue-tsc": "^2.0.29"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 86696951..36561d60 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -136,8 +136,8 @@ importers:
specifier: ^5.2.3
version: 5.2.3(vite@5.4.19(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6))(vue@3.4.38(typescript@5.5.4))
'@vitest/coverage-v8':
- specifier: ^3.1.1
- version: 3.1.1(vitest@3.1.1(@types/debug@4.1.12)(@types/node@18.15.3)(jiti@1.21.6)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2))
+ specifier: ^1.6.0
+ version: 1.6.1(vitest@1.6.1(@types/node@18.15.3)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6))
'@vue/runtime-core':
specifier: ^3.4.38
version: 3.4.38
@@ -222,9 +222,6 @@ importers:
typescript:
specifier: ^5.5.4
version: 5.5.4
- uni-read-pages-vite:
- specifier: ^0.0.6
- version: 0.0.6
unplugin-auto-import:
specifier: ^0.17.5
version: 0.17.5(@vueuse/core@12.0.0(typescript@5.5.4))(rollup@3.29.5)
@@ -232,14 +229,14 @@ importers:
specifier: ^0.26.0
version: 0.26.0(@babel/parser@7.27.1)(rollup@3.29.5)(vue@3.4.38(typescript@5.5.4))
vite:
- specifier: '5'
+ specifier: ^5.4.19
version: 5.4.19(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6)
vitepress-plugin-llms:
specifier: ^1.1.3
version: 1.1.3
vitest:
- specifier: ^3.1.1
- version: 3.1.1(@types/debug@4.1.12)(@types/node@18.15.3)(jiti@1.21.6)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2)
+ specifier: ^1.6.0
+ version: 1.6.1(@types/node@18.15.3)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6)
vue-eslint-parser:
specifier: ^9.1.0
version: 9.1.0(eslint@8.57.1)
@@ -1091,10 +1088,6 @@ packages:
'@bcoe/v8-coverage@0.2.3':
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
- '@bcoe/v8-coverage@1.0.2':
- resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==}
- engines: {node: '>=18'}
-
'@commitlint/cli@19.5.0':
resolution: {integrity: sha512-gaGqSliGwB86MDmAAKAtV9SV1SHdmN8pnGq4EJU4+hLisQ7IFfx4jvU4s+pk6tl0+9bv6yT+CaZkufOinkSJIQ==}
engines: {node: '>=v18'}
@@ -1361,12 +1354,6 @@ packages:
cpu: [ppc64]
os: [aix]
- '@esbuild/aix-ppc64@0.25.4':
- resolution: {integrity: sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==}
- engines: {node: '>=18'}
- cpu: [ppc64]
- os: [aix]
-
'@esbuild/android-arm64@0.20.2':
resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==}
engines: {node: '>=12'}
@@ -1385,12 +1372,6 @@ packages:
cpu: [arm64]
os: [android]
- '@esbuild/android-arm64@0.25.4':
- resolution: {integrity: sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [android]
-
'@esbuild/android-arm@0.20.2':
resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==}
engines: {node: '>=12'}
@@ -1409,12 +1390,6 @@ packages:
cpu: [arm]
os: [android]
- '@esbuild/android-arm@0.25.4':
- resolution: {integrity: sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==}
- engines: {node: '>=18'}
- cpu: [arm]
- os: [android]
-
'@esbuild/android-x64@0.20.2':
resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==}
engines: {node: '>=12'}
@@ -1433,12 +1408,6 @@ packages:
cpu: [x64]
os: [android]
- '@esbuild/android-x64@0.25.4':
- resolution: {integrity: sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [android]
-
'@esbuild/darwin-arm64@0.20.2':
resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==}
engines: {node: '>=12'}
@@ -1457,12 +1426,6 @@ packages:
cpu: [arm64]
os: [darwin]
- '@esbuild/darwin-arm64@0.25.4':
- resolution: {integrity: sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [darwin]
-
'@esbuild/darwin-x64@0.20.2':
resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==}
engines: {node: '>=12'}
@@ -1481,12 +1444,6 @@ packages:
cpu: [x64]
os: [darwin]
- '@esbuild/darwin-x64@0.25.4':
- resolution: {integrity: sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [darwin]
-
'@esbuild/freebsd-arm64@0.20.2':
resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==}
engines: {node: '>=12'}
@@ -1505,12 +1462,6 @@ packages:
cpu: [arm64]
os: [freebsd]
- '@esbuild/freebsd-arm64@0.25.4':
- resolution: {integrity: sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [freebsd]
-
'@esbuild/freebsd-x64@0.20.2':
resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==}
engines: {node: '>=12'}
@@ -1529,12 +1480,6 @@ packages:
cpu: [x64]
os: [freebsd]
- '@esbuild/freebsd-x64@0.25.4':
- resolution: {integrity: sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [freebsd]
-
'@esbuild/linux-arm64@0.20.2':
resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==}
engines: {node: '>=12'}
@@ -1553,12 +1498,6 @@ packages:
cpu: [arm64]
os: [linux]
- '@esbuild/linux-arm64@0.25.4':
- resolution: {integrity: sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [linux]
-
'@esbuild/linux-arm@0.20.2':
resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==}
engines: {node: '>=12'}
@@ -1577,12 +1516,6 @@ packages:
cpu: [arm]
os: [linux]
- '@esbuild/linux-arm@0.25.4':
- resolution: {integrity: sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==}
- engines: {node: '>=18'}
- cpu: [arm]
- os: [linux]
-
'@esbuild/linux-ia32@0.20.2':
resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==}
engines: {node: '>=12'}
@@ -1601,12 +1534,6 @@ packages:
cpu: [ia32]
os: [linux]
- '@esbuild/linux-ia32@0.25.4':
- resolution: {integrity: sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==}
- engines: {node: '>=18'}
- cpu: [ia32]
- os: [linux]
-
'@esbuild/linux-loong64@0.20.2':
resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==}
engines: {node: '>=12'}
@@ -1625,12 +1552,6 @@ packages:
cpu: [loong64]
os: [linux]
- '@esbuild/linux-loong64@0.25.4':
- resolution: {integrity: sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==}
- engines: {node: '>=18'}
- cpu: [loong64]
- os: [linux]
-
'@esbuild/linux-mips64el@0.20.2':
resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==}
engines: {node: '>=12'}
@@ -1649,12 +1570,6 @@ packages:
cpu: [mips64el]
os: [linux]
- '@esbuild/linux-mips64el@0.25.4':
- resolution: {integrity: sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==}
- engines: {node: '>=18'}
- cpu: [mips64el]
- os: [linux]
-
'@esbuild/linux-ppc64@0.20.2':
resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==}
engines: {node: '>=12'}
@@ -1673,12 +1588,6 @@ packages:
cpu: [ppc64]
os: [linux]
- '@esbuild/linux-ppc64@0.25.4':
- resolution: {integrity: sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==}
- engines: {node: '>=18'}
- cpu: [ppc64]
- os: [linux]
-
'@esbuild/linux-riscv64@0.20.2':
resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==}
engines: {node: '>=12'}
@@ -1697,12 +1606,6 @@ packages:
cpu: [riscv64]
os: [linux]
- '@esbuild/linux-riscv64@0.25.4':
- resolution: {integrity: sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==}
- engines: {node: '>=18'}
- cpu: [riscv64]
- os: [linux]
-
'@esbuild/linux-s390x@0.20.2':
resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==}
engines: {node: '>=12'}
@@ -1721,12 +1624,6 @@ packages:
cpu: [s390x]
os: [linux]
- '@esbuild/linux-s390x@0.25.4':
- resolution: {integrity: sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==}
- engines: {node: '>=18'}
- cpu: [s390x]
- os: [linux]
-
'@esbuild/linux-x64@0.20.2':
resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==}
engines: {node: '>=12'}
@@ -1745,18 +1642,6 @@ packages:
cpu: [x64]
os: [linux]
- '@esbuild/linux-x64@0.25.4':
- resolution: {integrity: sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [linux]
-
- '@esbuild/netbsd-arm64@0.25.4':
- resolution: {integrity: sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [netbsd]
-
'@esbuild/netbsd-x64@0.20.2':
resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==}
engines: {node: '>=12'}
@@ -1775,24 +1660,12 @@ packages:
cpu: [x64]
os: [netbsd]
- '@esbuild/netbsd-x64@0.25.4':
- resolution: {integrity: sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [netbsd]
-
'@esbuild/openbsd-arm64@0.23.1':
resolution: {integrity: sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==}
engines: {node: '>=18'}
cpu: [arm64]
os: [openbsd]
- '@esbuild/openbsd-arm64@0.25.4':
- resolution: {integrity: sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [openbsd]
-
'@esbuild/openbsd-x64@0.20.2':
resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==}
engines: {node: '>=12'}
@@ -1811,12 +1684,6 @@ packages:
cpu: [x64]
os: [openbsd]
- '@esbuild/openbsd-x64@0.25.4':
- resolution: {integrity: sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [openbsd]
-
'@esbuild/sunos-x64@0.20.2':
resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==}
engines: {node: '>=12'}
@@ -1835,12 +1702,6 @@ packages:
cpu: [x64]
os: [sunos]
- '@esbuild/sunos-x64@0.25.4':
- resolution: {integrity: sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [sunos]
-
'@esbuild/win32-arm64@0.20.2':
resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==}
engines: {node: '>=12'}
@@ -1859,12 +1720,6 @@ packages:
cpu: [arm64]
os: [win32]
- '@esbuild/win32-arm64@0.25.4':
- resolution: {integrity: sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [win32]
-
'@esbuild/win32-ia32@0.20.2':
resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==}
engines: {node: '>=12'}
@@ -1883,12 +1738,6 @@ packages:
cpu: [ia32]
os: [win32]
- '@esbuild/win32-ia32@0.25.4':
- resolution: {integrity: sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==}
- engines: {node: '>=18'}
- cpu: [ia32]
- os: [win32]
-
'@esbuild/win32-x64@0.20.2':
resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==}
engines: {node: '>=12'}
@@ -1907,12 +1756,6 @@ packages:
cpu: [x64]
os: [win32]
- '@esbuild/win32-x64@0.25.4':
- resolution: {integrity: sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [win32]
-
'@eslint-community/eslint-utils@4.2.0':
resolution: {integrity: sha512-gB8T4H4DEfX2IV9zGDJPOBgP1e/DbfCPDTtEqUMckpvzS1OYtva8JdFYBqMwYk7xAQ429WGF/UPqn8uQ//h2vQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -2123,6 +1966,10 @@ packages:
node-notifier:
optional: true
+ '@jest/schemas@29.6.3':
+ resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==}
+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
+
'@jest/source-map@27.5.1':
resolution: {integrity: sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
@@ -2502,6 +2349,9 @@ packages:
'@shikijs/vscode-textmate@10.0.2':
resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
+ '@sinclair/typebox@0.27.8':
+ resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
+
'@sinonjs/commons@1.8.6':
resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==}
@@ -2769,43 +2619,25 @@ packages:
vite: ^5.0.0 || ^6.0.0
vue: ^3.2.25
- '@vitest/coverage-v8@3.1.1':
- resolution: {integrity: sha512-MgV6D2dhpD6Hp/uroUoAIvFqA8AuvXEFBC2eepG3WFc1pxTfdk1LEqqkWoWhjz+rytoqrnUUCdf6Lzco3iHkLQ==}
+ '@vitest/coverage-v8@1.6.1':
+ resolution: {integrity: sha512-6YeRZwuO4oTGKxD3bijok756oktHSIm3eczVVzNe3scqzuhLwltIF3S9ZL/vwOVIpURmU6SnZhziXXAfw8/Qlw==}
peerDependencies:
- '@vitest/browser': 3.1.1
- vitest: 3.1.1
- peerDependenciesMeta:
- '@vitest/browser':
- optional: true
+ vitest: 1.6.1
- '@vitest/expect@3.1.1':
- resolution: {integrity: sha512-q/zjrW9lgynctNbwvFtQkGK9+vvHA5UzVi2V8APrp1C6fG6/MuYYkmlx4FubuqLycCeSdHD5aadWfua/Vr0EUA==}
+ '@vitest/expect@1.6.1':
+ resolution: {integrity: sha512-jXL+9+ZNIJKruofqXuuTClf44eSpcHlgj3CiuNihUF3Ioujtmc0zIa3UJOW5RjDK1YLBJZnWBlPuqhYycLioog==}
- '@vitest/mocker@3.1.1':
- resolution: {integrity: sha512-bmpJJm7Y7i9BBELlLuuM1J1Q6EQ6K5Ye4wcyOpOMXMcePYKSIYlpcrCm4l/O6ja4VJA5G2aMJiuZkZdnxlC3SA==}
- peerDependencies:
- msw: ^2.4.9
- vite: ^5.0.0 || ^6.0.0
- peerDependenciesMeta:
- msw:
- optional: true
- vite:
- optional: true
+ '@vitest/runner@1.6.1':
+ resolution: {integrity: sha512-3nSnYXkVkf3mXFfE7vVyPmi3Sazhb/2cfZGGs0JRzFsPFvAMBEcrweV1V1GsrstdXeKCTXlJbvnQwGWgEIHmOA==}
- '@vitest/pretty-format@3.1.1':
- resolution: {integrity: sha512-dg0CIzNx+hMMYfNmSqJlLSXEmnNhMswcn3sXO7Tpldr0LiGmg3eXdLLhwkv2ZqgHb/d5xg5F7ezNFRA1fA13yA==}
+ '@vitest/snapshot@1.6.1':
+ resolution: {integrity: sha512-WvidQuWAzU2p95u8GAKlRMqMyN1yOJkGHnx3M1PL9Raf7AQ1kwLKg04ADlCa3+OXUZE7BceOhVZiuWAbzCKcUQ==}
- '@vitest/runner@3.1.1':
- resolution: {integrity: sha512-X/d46qzJuEDO8ueyjtKfxffiXraPRfmYasoC4i5+mlLEJ10UvPb0XH5M9C3gWuxd7BAQhpK42cJgJtq53YnWVA==}
+ '@vitest/spy@1.6.1':
+ resolution: {integrity: sha512-MGcMmpGkZebsMZhbQKkAf9CX5zGvjkBTqf8Zx3ApYWXr3wG+QvEu2eXWfnIIWYSJExIp4V9FCKDEeygzkYrXMw==}
- '@vitest/snapshot@3.1.1':
- resolution: {integrity: sha512-bByMwaVWe/+1WDf9exFxWWgAixelSdiwo2p33tpqIlM14vW7PRV5ppayVXtfycqze4Qhtwag5sVhX400MLBOOw==}
-
- '@vitest/spy@3.1.1':
- resolution: {integrity: sha512-+EmrUOOXbKzLkTDwlsc/xrwOlPDXyVk3Z6P6K4oiCndxz7YLpp/0R0UsWVOKT0IXWjjBJuSMk6D27qipaupcvQ==}
-
- '@vitest/utils@3.1.1':
- resolution: {integrity: sha512-1XIjflyaU2k3HMArJ50bwSh3wKWPD6Q47wz/NUSmRV0zNywPc4w79ARjg/i/aNINHwA+mIALhUVqD9/aUvZNgg==}
+ '@vitest/utils@1.6.1':
+ resolution: {integrity: sha512-jOrrUvXM4Av9ZWiG1EajNto0u96kWAhJ1LmPmJhXXQx/32MecEKd10pOLYgS2BQx1TgkGhloPU1ArDW2vvaY6g==}
'@volar/language-core@2.4.5':
resolution: {integrity: sha512-F4tA0DCO5Q1F5mScHmca0umsi2ufKULAnMOVBfMsZdT4myhVl4WdKRwCaKcfOkIEuyrAVvtq1ESBdZ+rSyLVww==}
@@ -3168,9 +3000,8 @@ packages:
resolution: {integrity: sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==}
engines: {node: '>=0.10.0'}
- assertion-error@2.0.1:
- resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
- engines: {node: '>=12'}
+ assertion-error@1.1.0:
+ resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==}
astral-regex@2.0.0:
resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==}
@@ -3362,9 +3193,9 @@ packages:
ccount@2.0.1:
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
- chai@5.2.0:
- resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==}
- engines: {node: '>=12'}
+ chai@4.5.0:
+ resolution: {integrity: sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==}
+ engines: {node: '>=4'}
chalk@2.4.2:
resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}
@@ -3398,9 +3229,8 @@ packages:
chardet@0.7.0:
resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}
- check-error@2.1.1:
- resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==}
- engines: {node: '>= 16'}
+ check-error@1.0.3:
+ resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==}
chokidar@3.5.3:
resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}
@@ -3777,8 +3607,8 @@ packages:
dedent@0.7.0:
resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==}
- deep-eql@5.0.2:
- resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}
+ deep-eql@4.1.4:
+ resolution: {integrity: sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==}
engines: {node: '>=6'}
deep-is@0.1.4:
@@ -3827,6 +3657,10 @@ packages:
resolution: {integrity: sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
+ diff-sequences@29.6.3:
+ resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==}
+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
+
diff@4.0.2:
resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==}
engines: {node: '>=0.3.1'}
@@ -3920,9 +3754,6 @@ packages:
es-module-lexer@1.3.0:
resolution: {integrity: sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==}
- es-module-lexer@1.6.0:
- resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==}
-
es-object-atoms@1.1.1:
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
engines: {node: '>= 0.4'}
@@ -3946,11 +3777,6 @@ packages:
engines: {node: '>=18'}
hasBin: true
- esbuild@0.25.4:
- resolution: {integrity: sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==}
- engines: {node: '>=18'}
- hasBin: true
-
escalade@3.1.1:
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
engines: {node: '>=6'}
@@ -4089,6 +3915,10 @@ packages:
resolution: {integrity: sha512-T6nIJO3LHxUZ6ahVRaxXz9WLEruXLqdcluA+UuTptXmLM7nDAn9lx9IfkxPyzEL21583qSt4RmL44pO71EHaJQ==}
engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0}
+ execa@8.0.1:
+ resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}
+ engines: {node: '>=16.17'}
+
exif-parser@0.1.12:
resolution: {integrity: sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==}
@@ -4096,10 +3926,6 @@ packages:
resolution: {integrity: sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==}
engines: {node: '>= 0.8.0'}
- expect-type@1.2.1:
- resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==}
- engines: {node: '>=12.0.0'}
-
expect@27.5.1:
resolution: {integrity: sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
@@ -4150,14 +3976,6 @@ packages:
fb-watchman@2.0.2:
resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==}
- fdir@6.4.4:
- resolution: {integrity: sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==}
- peerDependencies:
- picomatch: ^3 || ^4
- peerDependenciesMeta:
- picomatch:
- optional: true
-
figures@3.2.0:
resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==}
engines: {node: '>=8'}
@@ -4274,6 +4092,9 @@ packages:
resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
engines: {node: 6.* || 8.* || >= 10.*}
+ get-func-name@2.0.2:
+ resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==}
+
get-intrinsic@1.2.0:
resolution: {integrity: sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==}
@@ -4298,6 +4119,10 @@ packages:
resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
engines: {node: '>=10'}
+ get-stream@8.0.1:
+ resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
+ engines: {node: '>=16'}
+
get-tsconfig@4.10.0:
resolution: {integrity: sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==}
@@ -4341,6 +4166,7 @@ packages:
glob@7.2.3:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
+ deprecated: Glob versions prior to v9 are no longer supported
glob@9.2.1:
resolution: {integrity: sha512-Pxxgq3W0HyA3XUvSXcFhRSs+43Jsx0ddxcFrbjxNGkL2Ak5BAUBxLqI5G6ADDeCHLfzzXFhe0b1yYcctGmytMA==}
@@ -4488,6 +4314,10 @@ packages:
resolution: {integrity: sha512-zyzVyMjpGBX2+6cDVZeFPCdtOtdsxOeseRhB9tkQ6xXmGUNrcnBzdEKPy3VPNYz+4gy1oukVOXcrJCunSyc6QQ==}
engines: {node: '>=14.18.0'}
+ human-signals@5.0.0:
+ resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
+ engines: {node: '>=16.17.0'}
+
husky@8.0.3:
resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==}
engines: {node: '>=14'}
@@ -4546,6 +4376,7 @@ packages:
inflight@1.0.6:
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
+ deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
inherits@2.0.4:
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
@@ -5087,8 +4918,8 @@ packages:
longest-streak@3.1.0:
resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}
- loupe@3.1.3:
- resolution: {integrity: sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==}
+ loupe@2.3.7:
+ resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==}
lru-cache@10.4.3:
resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
@@ -5398,11 +5229,6 @@ packages:
resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==}
engines: {node: ^18.17.0 || >=20.5.0}
- nanoid@3.3.7:
- resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
- engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
- hasBin: true
-
nanoid@3.3.8:
resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
@@ -5532,6 +5358,10 @@ packages:
resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ p-limit@5.0.0:
+ resolution: {integrity: sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==}
+ engines: {node: '>=18'}
+
p-locate@2.0.0:
resolution: {integrity: sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==}
engines: {node: '>=4'}
@@ -5662,9 +5492,8 @@ packages:
pathe@2.0.3:
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
- pathval@2.0.0:
- resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}
- engines: {node: '>= 14.16'}
+ pathval@1.1.1:
+ resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==}
perfect-debounce@1.0.0:
resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}
@@ -5776,10 +5605,6 @@ packages:
postcss-value-parser@4.2.0:
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
- postcss@8.4.47:
- resolution: {integrity: sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==}
- engines: {node: ^10 || ^12 || >=14}
-
postcss@8.4.49:
resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==}
engines: {node: ^10 || ^12 || >=14}
@@ -5808,6 +5633,10 @@ packages:
resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
+ pretty-format@29.7.0:
+ resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==}
+ engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
+
process-nextick-args@2.0.1:
resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==}
@@ -5882,6 +5711,9 @@ packages:
react-is@17.0.2:
resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}
+ react-is@18.3.1:
+ resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
+
read-cache@1.0.0:
resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
@@ -6375,10 +6207,6 @@ packages:
resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}
engines: {node: '>=8'}
- test-exclude@7.0.1:
- resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==}
- engines: {node: '>=18'}
-
text-extensions@1.9.0:
resolution: {integrity: sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==}
engines: {node: '>=0.10'}
@@ -6414,23 +6242,12 @@ packages:
tinyexec@0.3.0:
resolution: {integrity: sha512-tVGE0mVJPGb0chKhqmsoosjsS+qUnJVGJpZgsHYQcGoPlG3B51R3PouqTgEGH2Dc9jjFyOqOpix6ZHNMXp1FZg==}
- tinyexec@0.3.2:
- resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
-
- tinyglobby@0.2.13:
- resolution: {integrity: sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==}
- engines: {node: '>=12.0.0'}
-
- tinypool@1.0.2:
- resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==}
- engines: {node: ^18.0.0 || >=20.0.0}
-
- tinyrainbow@2.0.0:
- resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}
+ tinypool@0.8.4:
+ resolution: {integrity: sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==}
engines: {node: '>=14.0.0'}
- tinyspy@3.0.2:
- resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==}
+ tinyspy@2.2.1:
+ resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==}
engines: {node: '>=14.0.0'}
tldts-core@6.1.85:
@@ -6523,6 +6340,10 @@ packages:
resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==}
engines: {node: '>=4'}
+ type-detect@4.1.0:
+ resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==}
+ engines: {node: '>=4'}
+
type-fest@0.18.1:
resolution: {integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==}
engines: {node: '>=10'}
@@ -6558,9 +6379,6 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
- ufo@1.4.0:
- resolution: {integrity: sha512-Hhy+BhRBleFjpJ2vchUNN40qgkh0366FWJGqVLYBHev0vpHTrXSA0ryT+74UiW6KWsldNurQMKGqCm1M2zBciQ==}
-
ufo@1.5.4:
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
@@ -6572,9 +6390,6 @@ packages:
undici-types@5.26.5:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
- uni-read-pages-vite@0.0.6:
- resolution: {integrity: sha512-x86B6RcueeCKzLujbnv53WrzD/bTm2aQclXR7tXrLQzky0TKKihfWRgTS2qOC2ARXntoN07rD9jfZbGfYj28yQ==}
-
unicode-canonical-property-names-ecmascript@2.0.0:
resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==}
engines: {node: '>=4'}
@@ -6729,9 +6544,9 @@ packages:
vfile@6.0.3:
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
- vite-node@3.1.1:
- resolution: {integrity: sha512-V+IxPAE2FvXpTCHXyNem0M+gWm6J7eRyWPR6vYoG/Gl+IscNOjXzztUhimQgTxaAoUoj40Qqimaa0NLIOOAH4w==}
- engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
+ vite-node@1.6.1:
+ resolution: {integrity: sha512-YAXkfvGtuTzwWbDSACdJSg4A4DZiAqckWe90Zapc/sEX3XvHcw1NdurM/6od8J207tSDqNbSsgdCacBgvJKFuA==}
+ engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
vite-plugin-compression@0.5.1:
@@ -6770,46 +6585,6 @@ packages:
terser:
optional: true
- vite@6.3.5:
- resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==}
- engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
- hasBin: true
- peerDependencies:
- '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
- jiti: '>=1.21.0'
- less: '*'
- lightningcss: ^1.21.0
- sass: '*'
- sass-embedded: '*'
- stylus: '*'
- sugarss: '*'
- terser: ^5.16.0
- tsx: ^4.8.1
- yaml: ^2.4.2
- peerDependenciesMeta:
- '@types/node':
- optional: true
- jiti:
- optional: true
- less:
- optional: true
- lightningcss:
- optional: true
- sass:
- optional: true
- sass-embedded:
- optional: true
- stylus:
- optional: true
- sugarss:
- optional: true
- terser:
- optional: true
- tsx:
- optional: true
- yaml:
- optional: true
-
vitepress-plugin-llms@1.1.3:
resolution: {integrity: sha512-7pJbG92hI70KerMc0SViIsKzwQHNz6ftrwfmwaT/z1TyfIH3p0X2sZ+fHmSIYYtrYhGPEpqiUhGfAVLhLX54hQ==}
@@ -6825,23 +6600,20 @@ packages:
postcss:
optional: true
- vitest@3.1.1:
- resolution: {integrity: sha512-kiZc/IYmKICeBAZr9DQ5rT7/6bD9G7uqQEki4fxazi1jdVl2mWGzedtBs5s6llz59yQhVb7FFY2MbHzHCnT79Q==}
- engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
+ vitest@1.6.1:
+ resolution: {integrity: sha512-Ljb1cnSJSivGN0LqXd/zmDbWEM0RNNg2t1QW/XUhYl/qPqyu7CsqeWtqQXHVaJsecLPuDoak2oJcZN2QoRIOag==}
+ engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
- '@types/debug': ^4.1.12
- '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
- '@vitest/browser': 3.1.1
- '@vitest/ui': 3.1.1
+ '@types/node': ^18.0.0 || >=20.0.0
+ '@vitest/browser': 1.6.1
+ '@vitest/ui': 1.6.1
happy-dom: '*'
jsdom: '*'
peerDependenciesMeta:
'@edge-runtime/vm':
optional: true
- '@types/debug':
- optional: true
'@types/node':
optional: true
'@vitest/browser':
@@ -7323,8 +7095,8 @@ snapshots:
'@babel/generator@7.26.10':
dependencies:
- '@babel/parser': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/parser': 7.27.1
+ '@babel/types': 7.27.1
'@jridgewell/gen-mapping': 0.3.8
'@jridgewell/trace-mapping': 0.3.25
jsesc: 3.1.0
@@ -7423,14 +7195,14 @@ snapshots:
'@babel/helper-member-expression-to-functions@7.24.8':
dependencies:
'@babel/traverse': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
transitivePeerDependencies:
- supports-color
'@babel/helper-member-expression-to-functions@7.25.9':
dependencies:
'@babel/traverse': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
transitivePeerDependencies:
- supports-color
@@ -7444,7 +7216,7 @@ snapshots:
'@babel/helper-module-imports@7.25.9':
dependencies:
'@babel/traverse': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
transitivePeerDependencies:
- supports-color
@@ -7485,11 +7257,11 @@ snapshots:
'@babel/helper-optimise-call-expression@7.24.7':
dependencies:
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
'@babel/helper-optimise-call-expression@7.25.9':
dependencies:
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
'@babel/helper-plugin-utils@7.24.8': {}
@@ -7563,7 +7335,7 @@ snapshots:
dependencies:
'@babel/template': 7.25.9
'@babel/traverse': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
transitivePeerDependencies:
- supports-color
@@ -7579,7 +7351,7 @@ snapshots:
'@babel/parser@7.25.6':
dependencies:
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
'@babel/parser@7.26.10':
dependencies:
@@ -8283,8 +8055,8 @@ snapshots:
'@babel/template@7.26.9':
dependencies:
'@babel/code-frame': 7.26.2
- '@babel/parser': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/parser': 7.27.1
+ '@babel/types': 7.27.1
'@babel/template@7.27.1':
dependencies:
@@ -8296,9 +8068,9 @@ snapshots:
dependencies:
'@babel/code-frame': 7.26.2
'@babel/generator': 7.26.10
- '@babel/parser': 7.26.10
+ '@babel/parser': 7.27.1
'@babel/template': 7.26.9
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
debug: 4.4.0
globals: 11.12.0
transitivePeerDependencies:
@@ -8345,8 +8117,6 @@ snapshots:
'@bcoe/v8-coverage@0.2.3': {}
- '@bcoe/v8-coverage@1.0.2': {}
-
'@commitlint/cli@19.5.0(@types/node@18.15.3)(typescript@5.5.4)':
dependencies:
'@commitlint/format': 19.5.0
@@ -8389,7 +8159,7 @@ snapshots:
'@commitlint/is-ignored@19.5.0':
dependencies:
'@commitlint/types': 19.5.0
- semver: 7.6.3
+ semver: 7.7.1
'@commitlint/lint@19.5.0':
dependencies:
@@ -9009,7 +8779,7 @@ snapshots:
'@dcloudio/uni-nvue-styler@3.0.0-4050720250324001':
dependencies:
parse-css-font: 4.0.0
- postcss: 8.4.49
+ postcss: 8.5.3
'@dcloudio/uni-push@3.0.0-4050720250324001(@vueuse/core@12.0.0(typescript@5.5.4))(postcss@8.5.3)(rollup@3.29.5)(ts-node@10.9.2(@types/node@18.15.3)(typescript@5.5.4))(vue@3.4.38(typescript@5.5.4))':
dependencies:
@@ -9133,9 +8903,6 @@ snapshots:
'@esbuild/aix-ppc64@0.23.1':
optional: true
- '@esbuild/aix-ppc64@0.25.4':
- optional: true
-
'@esbuild/android-arm64@0.20.2':
optional: true
@@ -9145,9 +8912,6 @@ snapshots:
'@esbuild/android-arm64@0.23.1':
optional: true
- '@esbuild/android-arm64@0.25.4':
- optional: true
-
'@esbuild/android-arm@0.20.2':
optional: true
@@ -9157,9 +8921,6 @@ snapshots:
'@esbuild/android-arm@0.23.1':
optional: true
- '@esbuild/android-arm@0.25.4':
- optional: true
-
'@esbuild/android-x64@0.20.2':
optional: true
@@ -9169,9 +8930,6 @@ snapshots:
'@esbuild/android-x64@0.23.1':
optional: true
- '@esbuild/android-x64@0.25.4':
- optional: true
-
'@esbuild/darwin-arm64@0.20.2':
optional: true
@@ -9181,9 +8939,6 @@ snapshots:
'@esbuild/darwin-arm64@0.23.1':
optional: true
- '@esbuild/darwin-arm64@0.25.4':
- optional: true
-
'@esbuild/darwin-x64@0.20.2':
optional: true
@@ -9193,9 +8948,6 @@ snapshots:
'@esbuild/darwin-x64@0.23.1':
optional: true
- '@esbuild/darwin-x64@0.25.4':
- optional: true
-
'@esbuild/freebsd-arm64@0.20.2':
optional: true
@@ -9205,9 +8957,6 @@ snapshots:
'@esbuild/freebsd-arm64@0.23.1':
optional: true
- '@esbuild/freebsd-arm64@0.25.4':
- optional: true
-
'@esbuild/freebsd-x64@0.20.2':
optional: true
@@ -9217,9 +8966,6 @@ snapshots:
'@esbuild/freebsd-x64@0.23.1':
optional: true
- '@esbuild/freebsd-x64@0.25.4':
- optional: true
-
'@esbuild/linux-arm64@0.20.2':
optional: true
@@ -9229,9 +8975,6 @@ snapshots:
'@esbuild/linux-arm64@0.23.1':
optional: true
- '@esbuild/linux-arm64@0.25.4':
- optional: true
-
'@esbuild/linux-arm@0.20.2':
optional: true
@@ -9241,9 +8984,6 @@ snapshots:
'@esbuild/linux-arm@0.23.1':
optional: true
- '@esbuild/linux-arm@0.25.4':
- optional: true
-
'@esbuild/linux-ia32@0.20.2':
optional: true
@@ -9253,9 +8993,6 @@ snapshots:
'@esbuild/linux-ia32@0.23.1':
optional: true
- '@esbuild/linux-ia32@0.25.4':
- optional: true
-
'@esbuild/linux-loong64@0.20.2':
optional: true
@@ -9265,9 +9002,6 @@ snapshots:
'@esbuild/linux-loong64@0.23.1':
optional: true
- '@esbuild/linux-loong64@0.25.4':
- optional: true
-
'@esbuild/linux-mips64el@0.20.2':
optional: true
@@ -9277,9 +9011,6 @@ snapshots:
'@esbuild/linux-mips64el@0.23.1':
optional: true
- '@esbuild/linux-mips64el@0.25.4':
- optional: true
-
'@esbuild/linux-ppc64@0.20.2':
optional: true
@@ -9289,9 +9020,6 @@ snapshots:
'@esbuild/linux-ppc64@0.23.1':
optional: true
- '@esbuild/linux-ppc64@0.25.4':
- optional: true
-
'@esbuild/linux-riscv64@0.20.2':
optional: true
@@ -9301,9 +9029,6 @@ snapshots:
'@esbuild/linux-riscv64@0.23.1':
optional: true
- '@esbuild/linux-riscv64@0.25.4':
- optional: true
-
'@esbuild/linux-s390x@0.20.2':
optional: true
@@ -9313,9 +9038,6 @@ snapshots:
'@esbuild/linux-s390x@0.23.1':
optional: true
- '@esbuild/linux-s390x@0.25.4':
- optional: true
-
'@esbuild/linux-x64@0.20.2':
optional: true
@@ -9325,12 +9047,6 @@ snapshots:
'@esbuild/linux-x64@0.23.1':
optional: true
- '@esbuild/linux-x64@0.25.4':
- optional: true
-
- '@esbuild/netbsd-arm64@0.25.4':
- optional: true
-
'@esbuild/netbsd-x64@0.20.2':
optional: true
@@ -9340,15 +9056,9 @@ snapshots:
'@esbuild/netbsd-x64@0.23.1':
optional: true
- '@esbuild/netbsd-x64@0.25.4':
- optional: true
-
'@esbuild/openbsd-arm64@0.23.1':
optional: true
- '@esbuild/openbsd-arm64@0.25.4':
- optional: true
-
'@esbuild/openbsd-x64@0.20.2':
optional: true
@@ -9358,9 +9068,6 @@ snapshots:
'@esbuild/openbsd-x64@0.23.1':
optional: true
- '@esbuild/openbsd-x64@0.25.4':
- optional: true
-
'@esbuild/sunos-x64@0.20.2':
optional: true
@@ -9370,9 +9077,6 @@ snapshots:
'@esbuild/sunos-x64@0.23.1':
optional: true
- '@esbuild/sunos-x64@0.25.4':
- optional: true
-
'@esbuild/win32-arm64@0.20.2':
optional: true
@@ -9382,9 +9086,6 @@ snapshots:
'@esbuild/win32-arm64@0.23.1':
optional: true
- '@esbuild/win32-arm64@0.25.4':
- optional: true
-
'@esbuild/win32-ia32@0.20.2':
optional: true
@@ -9394,9 +9095,6 @@ snapshots:
'@esbuild/win32-ia32@0.23.1':
optional: true
- '@esbuild/win32-ia32@0.25.4':
- optional: true
-
'@esbuild/win32-x64@0.20.2':
optional: true
@@ -9406,9 +9104,6 @@ snapshots:
'@esbuild/win32-x64@0.23.1':
optional: true
- '@esbuild/win32-x64@0.25.4':
- optional: true
-
'@eslint-community/eslint-utils@4.2.0(eslint@8.57.1)':
dependencies:
eslint: 8.57.1
@@ -9726,6 +9421,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ '@jest/schemas@29.6.3':
+ dependencies:
+ '@sinclair/typebox': 0.27.8
+
'@jest/source-map@27.5.1':
dependencies:
callsites: 3.1.0
@@ -10208,6 +9907,8 @@ snapshots:
'@shikijs/vscode-textmate@10.0.2': {}
+ '@sinclair/typebox@0.27.8': {}
+
'@sinonjs/commons@1.8.6':
dependencies:
type-detect: 4.0.8
@@ -10520,10 +10221,10 @@ snapshots:
vite: 5.4.19(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6)
vue: 3.5.13(typescript@5.5.4)
- '@vitest/coverage-v8@3.1.1(vitest@3.1.1(@types/debug@4.1.12)(@types/node@18.15.3)(jiti@1.21.6)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2))':
+ '@vitest/coverage-v8@1.6.1(vitest@1.6.1(@types/node@18.15.3)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6))':
dependencies:
'@ampproject/remapping': 2.3.0
- '@bcoe/v8-coverage': 1.0.2
+ '@bcoe/v8-coverage': 0.2.3
debug: 4.4.0
istanbul-lib-coverage: 3.2.2
istanbul-lib-report: 3.0.1
@@ -10531,52 +10232,42 @@ snapshots:
istanbul-reports: 3.1.7
magic-string: 0.30.17
magicast: 0.3.5
+ picocolors: 1.1.1
std-env: 3.9.0
- test-exclude: 7.0.1
- tinyrainbow: 2.0.0
- vitest: 3.1.1(@types/debug@4.1.12)(@types/node@18.15.3)(jiti@1.21.6)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2)
+ strip-literal: 2.1.1
+ test-exclude: 6.0.0
+ vitest: 1.6.1(@types/node@18.15.3)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6)
transitivePeerDependencies:
- supports-color
- '@vitest/expect@3.1.1':
+ '@vitest/expect@1.6.1':
dependencies:
- '@vitest/spy': 3.1.1
- '@vitest/utils': 3.1.1
- chai: 5.2.0
- tinyrainbow: 2.0.0
+ '@vitest/spy': 1.6.1
+ '@vitest/utils': 1.6.1
+ chai: 4.5.0
- '@vitest/mocker@3.1.1(vite@6.3.5(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2))':
+ '@vitest/runner@1.6.1':
dependencies:
- '@vitest/spy': 3.1.1
+ '@vitest/utils': 1.6.1
+ p-limit: 5.0.0
+ pathe: 1.1.2
+
+ '@vitest/snapshot@1.6.1':
+ dependencies:
+ magic-string: 0.30.17
+ pathe: 1.1.2
+ pretty-format: 29.7.0
+
+ '@vitest/spy@1.6.1':
+ dependencies:
+ tinyspy: 2.2.1
+
+ '@vitest/utils@1.6.1':
+ dependencies:
+ diff-sequences: 29.6.3
estree-walker: 3.0.3
- magic-string: 0.30.17
- optionalDependencies:
- vite: 6.3.5(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2)
-
- '@vitest/pretty-format@3.1.1':
- dependencies:
- tinyrainbow: 2.0.0
-
- '@vitest/runner@3.1.1':
- dependencies:
- '@vitest/utils': 3.1.1
- pathe: 2.0.3
-
- '@vitest/snapshot@3.1.1':
- dependencies:
- '@vitest/pretty-format': 3.1.1
- magic-string: 0.30.17
- pathe: 2.0.3
-
- '@vitest/spy@3.1.1':
- dependencies:
- tinyspy: 3.0.2
-
- '@vitest/utils@3.1.1':
- dependencies:
- '@vitest/pretty-format': 3.1.1
- loupe: 3.1.3
- tinyrainbow: 2.0.0
+ loupe: 2.3.7
+ pretty-format: 29.7.0
'@volar/language-core@2.4.5':
dependencies:
@@ -10599,7 +10290,7 @@ snapshots:
'@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.25.2)
'@babel/template': 7.26.9
'@babel/traverse': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/types': 7.27.1
'@vue/babel-helper-vue-transform-on': 1.2.5
'@vue/babel-plugin-resolve-type': 1.2.5(@babel/core@7.25.2)
html-tags: 3.3.1
@@ -10615,7 +10306,7 @@ snapshots:
'@babel/core': 7.25.2
'@babel/helper-module-imports': 7.25.9
'@babel/helper-plugin-utils': 7.26.5
- '@babel/parser': 7.26.10
+ '@babel/parser': 7.27.1
'@vue/compiler-sfc': 3.5.13
transitivePeerDependencies:
- supports-color
@@ -10630,7 +10321,7 @@ snapshots:
'@vue/compiler-core@3.4.38':
dependencies:
- '@babel/parser': 7.26.10
+ '@babel/parser': 7.27.1
'@vue/shared': 3.4.38
entities: 4.5.0
estree-walker: 2.0.2
@@ -10638,7 +10329,7 @@ snapshots:
'@vue/compiler-core@3.5.13':
dependencies:
- '@babel/parser': 7.26.10
+ '@babel/parser': 7.27.1
'@vue/shared': 3.5.13
entities: 4.5.0
estree-walker: 2.0.2
@@ -10646,7 +10337,7 @@ snapshots:
'@vue/compiler-core@3.5.7':
dependencies:
- '@babel/parser': 7.26.10
+ '@babel/parser': 7.27.1
'@vue/shared': 3.5.7
entities: 4.5.0
estree-walker: 2.0.2
@@ -10693,19 +10384,19 @@ snapshots:
'@vue/shared': 3.4.38
estree-walker: 2.0.2
magic-string: 0.30.17
- postcss: 8.4.47
+ postcss: 8.5.3
source-map-js: 1.2.1
'@vue/compiler-sfc@3.5.13':
dependencies:
- '@babel/parser': 7.26.10
+ '@babel/parser': 7.27.1
'@vue/compiler-core': 3.5.13
'@vue/compiler-dom': 3.5.13
'@vue/compiler-ssr': 3.5.13
'@vue/shared': 3.5.13
estree-walker: 2.0.2
magic-string: 0.30.17
- postcss: 8.4.49
+ postcss: 8.5.3
source-map-js: 1.2.1
'@vue/compiler-ssr@3.4.21':
@@ -10927,7 +10618,6 @@ snapshots:
acorn-walk@8.3.4:
dependencies:
acorn: 8.14.1
- optional: true
acorn@7.4.1: {}
@@ -11030,7 +10720,7 @@ snapshots:
arrify@1.0.1: {}
- assertion-error@2.0.1: {}
+ assertion-error@1.1.0: {}
astral-regex@2.0.0: {}
@@ -11256,13 +10946,15 @@ snapshots:
ccount@2.0.1: {}
- chai@5.2.0:
+ chai@4.5.0:
dependencies:
- assertion-error: 2.0.1
- check-error: 2.1.1
- deep-eql: 5.0.2
- loupe: 3.1.3
- pathval: 2.0.0
+ assertion-error: 1.1.0
+ check-error: 1.0.3
+ deep-eql: 4.1.4
+ get-func-name: 2.0.2
+ loupe: 2.3.7
+ pathval: 1.1.1
+ type-detect: 4.1.0
chalk@2.4.2:
dependencies:
@@ -11289,7 +10981,9 @@ snapshots:
chardet@0.7.0: {}
- check-error@2.1.1: {}
+ check-error@1.0.3:
+ dependencies:
+ get-func-name: 2.0.2
chokidar@3.5.3:
dependencies:
@@ -11667,7 +11361,9 @@ snapshots:
dedent@0.7.0: {}
- deep-eql@5.0.2: {}
+ deep-eql@4.1.4:
+ dependencies:
+ type-detect: 4.1.0
deep-is@0.1.4: {}
@@ -11697,6 +11393,8 @@ snapshots:
diff-sequences@27.5.1: {}
+ diff-sequences@29.6.3: {}
+
diff@4.0.2:
optional: true
@@ -11736,7 +11434,7 @@ snapshots:
'@one-ini/wasm': 0.1.1
commander: 10.0.0
minimatch: 9.0.1
- semver: 7.6.3
+ semver: 7.7.1
ee-first@1.1.1: {}
@@ -11789,8 +11487,6 @@ snapshots:
es-module-lexer@1.3.0: {}
- es-module-lexer@1.6.0: {}
-
es-object-atoms@1.1.1:
dependencies:
es-errors: 1.3.0
@@ -11881,34 +11577,6 @@ snapshots:
'@esbuild/win32-ia32': 0.23.1
'@esbuild/win32-x64': 0.23.1
- esbuild@0.25.4:
- optionalDependencies:
- '@esbuild/aix-ppc64': 0.25.4
- '@esbuild/android-arm': 0.25.4
- '@esbuild/android-arm64': 0.25.4
- '@esbuild/android-x64': 0.25.4
- '@esbuild/darwin-arm64': 0.25.4
- '@esbuild/darwin-x64': 0.25.4
- '@esbuild/freebsd-arm64': 0.25.4
- '@esbuild/freebsd-x64': 0.25.4
- '@esbuild/linux-arm': 0.25.4
- '@esbuild/linux-arm64': 0.25.4
- '@esbuild/linux-ia32': 0.25.4
- '@esbuild/linux-loong64': 0.25.4
- '@esbuild/linux-mips64el': 0.25.4
- '@esbuild/linux-ppc64': 0.25.4
- '@esbuild/linux-riscv64': 0.25.4
- '@esbuild/linux-s390x': 0.25.4
- '@esbuild/linux-x64': 0.25.4
- '@esbuild/netbsd-arm64': 0.25.4
- '@esbuild/netbsd-x64': 0.25.4
- '@esbuild/openbsd-arm64': 0.25.4
- '@esbuild/openbsd-x64': 0.25.4
- '@esbuild/sunos-x64': 0.25.4
- '@esbuild/win32-arm64': 0.25.4
- '@esbuild/win32-ia32': 0.25.4
- '@esbuild/win32-x64': 0.25.4
-
escalade@3.1.1: {}
escalade@3.2.0: {}
@@ -12052,7 +11720,7 @@ snapshots:
estree-walker@3.0.3:
dependencies:
- '@types/estree': 1.0.6
+ '@types/estree': 1.0.7
esutils@2.0.3: {}
@@ -12082,12 +11750,22 @@ snapshots:
signal-exit: 3.0.7
strip-final-newline: 3.0.0
+ execa@8.0.1:
+ dependencies:
+ cross-spawn: 7.0.6
+ get-stream: 8.0.1
+ human-signals: 5.0.0
+ is-stream: 3.0.0
+ merge-stream: 2.0.0
+ npm-run-path: 5.1.0
+ onetime: 6.0.0
+ signal-exit: 4.1.0
+ strip-final-newline: 3.0.0
+
exif-parser@0.1.12: {}
exit@0.1.2: {}
- expect-type@1.2.1: {}
-
expect@27.5.1:
dependencies:
'@jest/types': 27.5.1
@@ -12175,10 +11853,6 @@ snapshots:
dependencies:
bser: 2.1.1
- fdir@6.4.4(picomatch@4.0.2):
- optionalDependencies:
- picomatch: 4.0.2
-
figures@3.2.0:
dependencies:
escape-string-regexp: 1.0.5
@@ -12291,6 +11965,8 @@ snapshots:
get-caller-file@2.0.5: {}
+ get-func-name@2.0.2: {}
+
get-intrinsic@1.2.0:
dependencies:
function-bind: 1.1.2
@@ -12326,6 +12002,8 @@ snapshots:
get-stream@6.0.1: {}
+ get-stream@8.0.1: {}
+
get-tsconfig@4.10.0:
dependencies:
resolve-pkg-maps: 1.0.0
@@ -12548,6 +12226,8 @@ snapshots:
human-signals@4.3.0: {}
+ human-signals@5.0.0: {}
+
husky@8.0.3: {}
iconv-lite@0.4.24:
@@ -13370,7 +13050,9 @@ snapshots:
longest-streak@3.1.0: {}
- loupe@3.1.3: {}
+ loupe@2.3.7:
+ dependencies:
+ get-func-name: 2.0.2
lru-cache@10.4.3: {}
@@ -13398,13 +13080,13 @@ snapshots:
magicast@0.3.5:
dependencies:
- '@babel/parser': 7.26.10
- '@babel/types': 7.26.10
+ '@babel/parser': 7.27.1
+ '@babel/types': 7.27.1
source-map-js: 1.2.1
make-dir@4.0.0:
dependencies:
- semver: 7.6.3
+ semver: 7.7.1
make-error@1.3.6:
optional: true
@@ -13744,10 +13426,10 @@ snapshots:
mlly@1.6.1:
dependencies:
- acorn: 8.11.3
+ acorn: 8.14.1
pathe: 1.1.2
- pkg-types: 1.0.3
- ufo: 1.4.0
+ pkg-types: 1.3.1
+ ufo: 1.5.4
mlly@1.7.4:
dependencies:
@@ -13770,8 +13452,6 @@ snapshots:
mute-stream@2.0.0: {}
- nanoid@3.3.7: {}
-
nanoid@3.3.8: {}
natural-compare@1.4.0: {}
@@ -13805,7 +13485,7 @@ snapshots:
dependencies:
hosted-git-info: 4.1.0
is-core-module: 2.16.1
- semver: 7.6.3
+ semver: 7.7.1
validate-npm-package-license: 3.0.4
normalize-path@3.0.0: {}
@@ -13893,6 +13573,10 @@ snapshots:
dependencies:
yocto-queue: 1.0.0
+ p-limit@5.0.0:
+ dependencies:
+ yocto-queue: 1.0.0
+
p-locate@2.0.0:
dependencies:
p-limit: 1.3.0
@@ -14008,7 +13692,7 @@ snapshots:
pathe@2.0.3: {}
- pathval@2.0.0: {}
+ pathval@1.1.1: {}
perfect-debounce@1.0.0: {}
@@ -14039,7 +13723,7 @@ snapshots:
pkg-types@1.0.3:
dependencies:
jsonc-parser: 3.2.0
- mlly: 1.6.1
+ mlly: 1.7.4
pathe: 1.1.2
pkg-types@1.3.1:
@@ -14111,12 +13795,6 @@ snapshots:
postcss-value-parser@4.2.0: {}
- postcss@8.4.47:
- dependencies:
- nanoid: 3.3.7
- picocolors: 1.1.1
- source-map-js: 1.2.1
-
postcss@8.4.49:
dependencies:
nanoid: 3.3.8
@@ -14145,6 +13823,12 @@ snapshots:
ansi-styles: 5.2.0
react-is: 17.0.2
+ pretty-format@29.7.0:
+ dependencies:
+ '@jest/schemas': 29.6.3
+ ansi-styles: 5.2.0
+ react-is: 18.3.1
+
process-nextick-args@2.0.1: {}
process@0.11.10: {}
@@ -14206,6 +13890,8 @@ snapshots:
react-is@17.0.2: {}
+ react-is@18.3.1: {}
+
read-cache@1.0.0:
dependencies:
pify: 2.3.0
@@ -14692,7 +14378,7 @@ snapshots:
strip-literal@1.3.0:
dependencies:
- acorn: 8.11.3
+ acorn: 8.14.1
strip-literal@2.1.1:
dependencies:
@@ -14749,12 +14435,6 @@ snapshots:
glob: 7.2.3
minimatch: 3.1.2
- test-exclude@7.0.1:
- dependencies:
- '@istanbuljs/schema': 0.1.3
- glob: 10.4.5
- minimatch: 9.0.5
-
text-extensions@1.9.0: {}
text-extensions@2.4.0: {}
@@ -14782,18 +14462,9 @@ snapshots:
tinyexec@0.3.0: {}
- tinyexec@0.3.2: {}
+ tinypool@0.8.4: {}
- tinyglobby@0.2.13:
- dependencies:
- fdir: 6.4.4(picomatch@4.0.2)
- picomatch: 4.0.2
-
- tinypool@1.0.2: {}
-
- tinyrainbow@2.0.0: {}
-
- tinyspy@3.0.2: {}
+ tinyspy@2.2.1: {}
tldts-core@6.1.85: {}
@@ -14880,6 +14551,8 @@ snapshots:
type-detect@4.0.8: {}
+ type-detect@4.1.0: {}
+
type-fest@0.18.1: {}
type-fest@0.20.2: {}
@@ -14903,8 +14576,6 @@ snapshots:
typescript@5.5.4: {}
- ufo@1.4.0: {}
-
ufo@1.5.4: {}
uglify-js@3.17.4:
@@ -14912,8 +14583,6 @@ snapshots:
undici-types@5.26.5: {}
- uni-read-pages-vite@0.0.6: {}
-
unicode-canonical-property-names-ecmascript@2.0.0: {}
unicode-match-property-ecmascript@2.0.0:
@@ -15127,16 +14796,15 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.2
- vite-node@3.1.1(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2):
+ vite-node@1.6.1(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6):
dependencies:
cac: 6.7.14
debug: 4.4.0
- es-module-lexer: 1.6.0
- pathe: 2.0.3
- vite: 6.3.5(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2)
+ pathe: 1.1.2
+ picocolors: 1.1.1
+ vite: 5.4.19(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6)
transitivePeerDependencies:
- '@types/node'
- - jiti
- less
- lightningcss
- sass
@@ -15145,8 +14813,6 @@ snapshots:
- sugarss
- supports-color
- terser
- - tsx
- - yaml
vite-plugin-compression@0.5.1(vite@5.4.19(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6)):
dependencies:
@@ -15168,22 +14834,6 @@ snapshots:
sass: 1.59.3
terser: 5.16.6
- vite@6.3.5(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2):
- dependencies:
- esbuild: 0.25.4
- fdir: 6.4.4(picomatch@4.0.2)
- picomatch: 4.0.2
- postcss: 8.5.3
- rollup: 4.40.1
- tinyglobby: 0.2.13
- optionalDependencies:
- '@types/node': 18.15.3
- fsevents: 2.3.3
- jiti: 1.21.6
- sass: 1.59.3
- terser: 5.16.6
- tsx: 4.19.2
-
vitepress-plugin-llms@1.1.3:
dependencies:
byte-size: 9.0.1
@@ -15249,45 +14899,40 @@ snapshots:
- typescript
- universal-cookie
- vitest@3.1.1(@types/debug@4.1.12)(@types/node@18.15.3)(jiti@1.21.6)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2):
+ vitest@1.6.1(@types/node@18.15.3)(jsdom@26.0.0)(sass@1.59.3)(terser@5.16.6):
dependencies:
- '@vitest/expect': 3.1.1
- '@vitest/mocker': 3.1.1(vite@6.3.5(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2))
- '@vitest/pretty-format': 3.1.1
- '@vitest/runner': 3.1.1
- '@vitest/snapshot': 3.1.1
- '@vitest/spy': 3.1.1
- '@vitest/utils': 3.1.1
- chai: 5.2.0
+ '@vitest/expect': 1.6.1
+ '@vitest/runner': 1.6.1
+ '@vitest/snapshot': 1.6.1
+ '@vitest/spy': 1.6.1
+ '@vitest/utils': 1.6.1
+ acorn-walk: 8.3.4
+ chai: 4.5.0
debug: 4.4.0
- expect-type: 1.2.1
+ execa: 8.0.1
+ local-pkg: 0.5.1
magic-string: 0.30.17
- pathe: 2.0.3
+ pathe: 1.1.2
+ picocolors: 1.1.1
std-env: 3.9.0
+ strip-literal: 2.1.1
tinybench: 2.9.0
- tinyexec: 0.3.2
- tinypool: 1.0.2
- tinyrainbow: 2.0.0
- vite: 6.3.5(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2)
- vite-node: 3.1.1(@types/node@18.15.3)(jiti@1.21.6)(sass@1.59.3)(terser@5.16.6)(tsx@4.19.2)
+ tinypool: 0.8.4
+ vite: 5.4.19(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6)
+ vite-node: 1.6.1(@types/node@18.15.3)(sass@1.59.3)(terser@5.16.6)
why-is-node-running: 2.3.0
optionalDependencies:
- '@types/debug': 4.1.12
'@types/node': 18.15.3
jsdom: 26.0.0
transitivePeerDependencies:
- - jiti
- less
- lightningcss
- - msw
- sass
- sass-embedded
- stylus
- sugarss
- supports-color
- terser
- - tsx
- - yaml
vscode-uri@3.0.8: {}
diff --git a/src/uni_modules/wot-design-uni/components/common/dayjs.ts b/src/uni_modules/wot-design-uni/components/common/dayjs.ts
deleted file mode 100644
index bc3277ad..00000000
--- a/src/uni_modules/wot-design-uni/components/common/dayjs.ts
+++ /dev/null
@@ -1,148 +0,0 @@
-import { isDate } from './util'
-
-/* eslint-disable */
-class Dayjs {
- utc: boolean
- date: Date
- timeZone: number
- timeZoneString: any
- mYear: any
- mMonth: any
- mDay: any
- mWeek: any
- mHour: any
- mMinute: any
- mSecond: any
- constructor(dateStr?: string | number | Date) {
- this.utc = false
- const parsedDate = this.parseConfig(dateStr)
- this.date = new Date(parsedDate)
- this.timeZone = this.date.getTimezoneOffset() / 60
- this.timeZoneString = this.padNumber(String(-1 * this.timeZone).replace(/^(.)?(\d)/, '$10$200'), 5, '+')
- this.mYear = this.date.getFullYear()
- this.mMonth = this.date.getMonth()
- this.mDay = this.date.getDate()
- this.mWeek = this.date.getDay()
- this.mHour = this.date.getHours()
- this.mMinute = this.date.getMinutes()
- this.mSecond = this.date.getSeconds()
- }
-
- parseConfig(dateStr?:string | number | Date) {
- if (!dateStr) return new Date()
- if (isDate(dateStr)) return dateStr
- if (/^(\d){8}$/.test(dateStr as string)) {
- this.utc = true
- return `${(dateStr as string).substr(0, 4)}-${(dateStr as string).substr(4, 2)}-${(dateStr as string).substr(6, 2)}`
- }
- return dateStr
- }
-
- padNumber(num:string, length:number, padChar:string) {
- return !num || num.length >= length ? num : `${Array(length + 1 - num.length).join(padChar)}${num}`
- }
-
- year() {
- return this.mYear
- }
-
- month() {
- return this.mMonth
- }
-
- unix() {
- const timeZoneOffset = this.utc ? 60 * this.timeZone * 60 * 1000 : 0
- return Math.floor((this.date.getTime() + timeZoneOffset) / 1000)
- }
-
- toString() {
- return this.date.toUTCString()
- }
-
- startOf(unit:string) {
- switch (unit) {
- case 'year':
- return new Dayjs(new Date(this.year(), 0, 1))
- case 'month':
- return new Dayjs(new Date(this.year(), this.month(), 1))
- default:
- return this
- }
- }
-
- add(amount:number, unit:string) {
- let interval
- switch (unit) {
- case 'm':
- case 'minutes':
- interval = 60
- break
- case 'h':
- case 'hours':
- interval = 60 * 60
- break
- case 'd':
- case 'days':
- interval = 24 * 60 * 60
- break
- case 'w':
- case 'weeks':
- interval = 7 * 24 * 60 * 60
- break
- default:
- interval = 1
- }
- const newUnixTime = this.unix() + amount * interval
- return new Dayjs(1000 * newUnixTime)
- }
-
- subtract(amount:number, unit:string) {
- return this.add(-1 * amount, unit)
- }
-
- format(formatStr = 'YYYY-MM-DDTHH:mm:ssZ') {
- const weekdays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
- return formatStr.replace(/Y{2,4}|M{1,2}|D{1,2}|d{1,4}|H{1,2}|m{1,2}|s{1,2}|Z{1,2}/g, (match) => {
- switch (match) {
- case 'YY':
- return String(this.mYear).slice(-2)
- case 'YYYY':
- return String(this.mYear)
- case 'M':
- return String(this.mMonth + 1)
- case 'MM':
- return this.padNumber(String(this.mMonth + 1), 2, '0')
- case 'D':
- return String(this.mDay)
- case 'DD':
- return this.padNumber(String(this.mDay), 2, '0')
- case 'd':
- return String(this.mWeek)
- case 'dddd':
- return weekdays[this.mWeek]
- case 'H':
- return String(this.mHour)
- case 'HH':
- return this.padNumber(String(this.mHour), 2, '0')
- case 'm':
- return String(this.mMinute)
- case 'mm':
- return this.padNumber(String(this.mMinute), 2, '0')
- case 's':
- return String(this.mSecond)
- case 'ss':
- return this.padNumber(String(this.mSecond), 2, '0')
- case 'Z':
- return `${this.timeZoneString.slice(0, -2)}:00`
- case 'ZZ':
- return this.timeZoneString
- default:
- return match
- }
- })
- }
-}
-
-export function dayjs(dateStr?: string | number | Date) {
- return new Dayjs(dateStr)
-}
diff --git a/src/uni_modules/wot-design-uni/components/wd-calendar-view/utils.ts b/src/uni_modules/wot-design-uni/components/wd-calendar-view/utils.ts
index 0491b9db..3098e3f3 100644
--- a/src/uni_modules/wot-design-uni/components/wd-calendar-view/utils.ts
+++ b/src/uni_modules/wot-design-uni/components/wd-calendar-view/utils.ts
@@ -1,5 +1,5 @@
import { computed } from 'vue'
-import { dayjs } from '../common/dayjs'
+import dayjs from '../../dayjs'
import { isArray, isFunction, padZero } from '../common/util'
import { useTranslate } from '../composables/useTranslate'
import type { CalendarDayType, CalendarItem, CalendarTimeFilter, CalendarType } from './types'
diff --git a/src/uni_modules/wot-design-uni/components/wd-calendar-view/year/year.vue b/src/uni_modules/wot-design-uni/components/wd-calendar-view/year/year.vue
index 5657dcee..85ee52c5 100644
--- a/src/uni_modules/wot-design-uni/components/wd-calendar-view/year/year.vue
+++ b/src/uni_modules/wot-design-uni/components/wd-calendar-view/year/year.vue
@@ -36,7 +36,7 @@ import { deepClone, isArray, isFunction } from '../../common/util'
import { compareMonth, formatYearTitle, getDateByDefaultTime, getItemClass, getMonthByOffset, getMonthOffset } from '../utils'
import { useToast } from '../../wd-toast'
import { useTranslate } from '../../composables/useTranslate'
-import { dayjs } from '../../common/dayjs'
+import dayjs from '../../../dayjs'
import { yearProps } from './types'
import type { CalendarDayItem, CalendarDayType } from '../types'
diff --git a/src/uni_modules/wot-design-uni/components/wd-calendar/wd-calendar.vue b/src/uni_modules/wot-design-uni/components/wd-calendar/wd-calendar.vue
index ac372281..5315ee51 100644
--- a/src/uni_modules/wot-design-uni/components/wd-calendar/wd-calendar.vue
+++ b/src/uni_modules/wot-design-uni/components/wd-calendar/wd-calendar.vue
@@ -121,7 +121,7 @@ import wdCalendarView from '../wd-calendar-view/wd-calendar-view.vue'
import wdActionSheet from '../wd-action-sheet/wd-action-sheet.vue'
import wdButton from '../wd-button/wd-button.vue'
import { ref, computed, watch } from 'vue'
-import { dayjs } from '../common/dayjs'
+import dayjs from '../../dayjs'
import { deepClone, isArray, isEqual, padZero, pause } from '../common/util'
import { getWeekNumber, isRange } from '../wd-calendar-view/utils'
import { useCell } from '../composables/useCell'
diff --git a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue
index 4ab00125..cee34de3 100644
--- a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue
+++ b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue
@@ -173,7 +173,7 @@ import { FORM_KEY, type FormItemRule } from '../wd-form/types'
import { useParent } from '../composables/useParent'
import { useTranslate } from '../composables/useTranslate'
import { datetimePickerProps, type DatetimePickerExpose } from './types'
-import { dayjs } from '../common/dayjs'
+import dayjs from '../../dayjs'
import { getPickerValue } from '../wd-datetime-picker-view/util'
const props = defineProps(datetimePickerProps)
diff --git a/src/uni_modules/wot-design-uni/components/wd-text/wd-text.vue b/src/uni_modules/wot-design-uni/components/wd-text/wd-text.vue
index 599ad66b..9af8d452 100644
--- a/src/uni_modules/wot-design-uni/components/wd-text/wd-text.vue
+++ b/src/uni_modules/wot-design-uni/components/wd-text/wd-text.vue
@@ -21,7 +21,7 @@ export default {
import { computed, ref, watch } from 'vue'
import { isDef, objToStyle } from '../common/util'
import { textProps } from './types'
-import { dayjs } from '../common/dayjs'
+import dayjs from '../../dayjs'
// 获取组件的 props 和 emit 函数
const props = defineProps(textProps)
diff --git a/src/uni_modules/wot-design-uni/dayjs/constant.js b/src/uni_modules/wot-design-uni/dayjs/constant.js
new file mode 100644
index 00000000..5a8bd389
--- /dev/null
+++ b/src/uni_modules/wot-design-uni/dayjs/constant.js
@@ -0,0 +1,26 @@
+/* eslint-disable */
+export var SECONDS_A_MINUTE = 60;
+export var SECONDS_A_HOUR = SECONDS_A_MINUTE * 60;
+export var SECONDS_A_DAY = SECONDS_A_HOUR * 24;
+export var SECONDS_A_WEEK = SECONDS_A_DAY * 7;
+export var MILLISECONDS_A_SECOND = 1e3;
+export var MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND;
+export var MILLISECONDS_A_HOUR = SECONDS_A_HOUR * MILLISECONDS_A_SECOND;
+export var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
+export var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND; // English locales
+
+export var MS = 'millisecond';
+export var S = 'second';
+export var MIN = 'minute';
+export var H = 'hour';
+export var D = 'day';
+export var W = 'week';
+export var M = 'month';
+export var Q = 'quarter';
+export var Y = 'year';
+export var DATE = 'date';
+export var FORMAT_DEFAULT = 'YYYY-MM-DDTHH:mm:ssZ';
+export var INVALID_DATE_STRING = 'Invalid Date'; // regex
+
+export var REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/;
+export var REGEX_FORMAT = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
\ No newline at end of file
diff --git a/src/uni_modules/wot-design-uni/dayjs/index.d.ts b/src/uni_modules/wot-design-uni/dayjs/index.d.ts
new file mode 100644
index 00000000..c81ed8a1
--- /dev/null
+++ b/src/uni_modules/wot-design-uni/dayjs/index.d.ts
@@ -0,0 +1,430 @@
+/* eslint-disable */
+///
+
+export = dayjs;
+
+declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs
+
+declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs
+
+declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs
+
+declare namespace dayjs {
+ interface ConfigTypeMap {
+ default: string | number | Date | Dayjs | null | undefined
+ }
+
+ export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
+
+ export interface FormatObject { locale?: string, format?: string, utc?: boolean }
+
+ export type OptionType = FormatObject | string | string[]
+
+ export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
+
+ export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'
+
+ export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'
+
+ export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;
+
+ export type OpUnitType = UnitType | "week" | "weeks" | 'w';
+ export type QUnitType = UnitType | "quarter" | "quarters" | 'Q';
+ export type ManipulateType = Exclude;
+ class Dayjs {
+ constructor (config?: ConfigType)
+ /**
+ * All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
+ * ```
+ * dayjs().clone()// => Dayjs
+ * dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
+ * ```
+ * Docs: https://day.js.org/docs/en/parse/dayjs-clone
+ */
+ clone(): Dayjs
+ /**
+ * This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
+ * ```
+ * dayjs().isValid()// => boolean
+ * ```
+ * Docs: https://day.js.org/docs/en/parse/is-valid
+ */
+ isValid(): boolean
+ /**
+ * Get the year.
+ * ```
+ * dayjs().year()// => 2020
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/year
+ */
+ year(): number
+ /**
+ * Set the year.
+ * ```
+ * dayjs().year(2000)// => Dayjs
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/year
+ */
+ year(value: number): Dayjs
+ /**
+ * Get the month.
+ *
+ * Months are zero indexed, so January is month 0.
+ * ```
+ * dayjs().month()// => 0-11
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/month
+ */
+ month(): number
+ /**
+ * Set the month.
+ *
+ * Months are zero indexed, so January is month 0.
+ *
+ * Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.
+ * ```
+ * dayjs().month(0)// => Dayjs
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/month
+ */
+ month(value: number): Dayjs
+ /**
+ * Get the date of the month.
+ * ```
+ * dayjs().date()// => 1-31
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/date
+ */
+ date(): number
+ /**
+ * Set the date of the month.
+ *
+ * Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.
+ * ```
+ * dayjs().date(1)// => Dayjs
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/date
+ */
+ date(value: number): Dayjs
+ /**
+ * Get the day of the week.
+ *
+ * Returns numbers from 0 (Sunday) to 6 (Saturday).
+ * ```
+ * dayjs().day()// 0-6
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/day
+ */
+ day(): 0 | 1 | 2 | 3 | 4 | 5 | 6
+ /**
+ * Set the day of the week.
+ *
+ * Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.
+ * ```
+ * dayjs().day(0)// => Dayjs
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/day
+ */
+ day(value: number): Dayjs
+ /**
+ * Get the hour.
+ * ```
+ * dayjs().hour()// => 0-23
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/hour
+ */
+ hour(): number
+ /**
+ * Set the hour.
+ *
+ * Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.
+ * ```
+ * dayjs().hour(12)// => Dayjs
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/hour
+ */
+ hour(value: number): Dayjs
+ /**
+ * Get the minutes.
+ * ```
+ * dayjs().minute()// => 0-59
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/minute
+ */
+ minute(): number
+ /**
+ * Set the minutes.
+ *
+ * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.
+ * ```
+ * dayjs().minute(59)// => Dayjs
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/minute
+ */
+ minute(value: number): Dayjs
+ /**
+ * Get the seconds.
+ * ```
+ * dayjs().second()// => 0-59
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/second
+ */
+ second(): number
+ /**
+ * Set the seconds.
+ *
+ * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.
+ * ```
+ * dayjs().second(1)// Dayjs
+ * ```
+ */
+ second(value: number): Dayjs
+ /**
+ * Get the milliseconds.
+ * ```
+ * dayjs().millisecond()// => 0-999
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/millisecond
+ */
+ millisecond(): number
+ /**
+ * Set the milliseconds.
+ *
+ * Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.
+ * ```
+ * dayjs().millisecond(1)// => Dayjs
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/millisecond
+ */
+ millisecond(value: number): Dayjs
+ /**
+ * Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
+ *
+ * In general:
+ * ```
+ * dayjs().set(unit, value) === dayjs()[unit](value)
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ * ```
+ * dayjs().set('date', 1)
+ * dayjs().set('month', 3) // April
+ * dayjs().set('second', 30)
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/set
+ */
+ set(unit: UnitType, value: number): Dayjs
+ /**
+ * String getter, returns the corresponding information getting from Day.js object.
+ *
+ * In general:
+ * ```
+ * dayjs().get(unit) === dayjs()[unit]()
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ * ```
+ * dayjs().get('year')
+ * dayjs().get('month') // start 0
+ * dayjs().get('date')
+ * ```
+ * Docs: https://day.js.org/docs/en/get-set/get
+ */
+ get(unit: UnitType): number
+ /**
+ * Returns a cloned Day.js object with a specified amount of time added.
+ * ```
+ * dayjs().add(7, 'day')// => Dayjs
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ *
+ * Docs: https://day.js.org/docs/en/manipulate/add
+ */
+ add(value: number, unit?: ManipulateType): Dayjs
+ /**
+ * Returns a cloned Day.js object with a specified amount of time subtracted.
+ * ```
+ * dayjs().subtract(7, 'year')// => Dayjs
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ *
+ * Docs: https://day.js.org/docs/en/manipulate/subtract
+ */
+ subtract(value: number, unit?: ManipulateType): Dayjs
+ /**
+ * Returns a cloned Day.js object and set it to the start of a unit of time.
+ * ```
+ * dayjs().startOf('year')// => Dayjs
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ *
+ * Docs: https://day.js.org/docs/en/manipulate/start-of
+ */
+ startOf(unit: OpUnitType): Dayjs
+ /**
+ * Returns a cloned Day.js object and set it to the end of a unit of time.
+ * ```
+ * dayjs().endOf('month')// => Dayjs
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ *
+ * Docs: https://day.js.org/docs/en/manipulate/end-of
+ */
+ endOf(unit: OpUnitType): Dayjs
+ /**
+ * Get the formatted date according to the string of tokens passed in.
+ *
+ * To escape characters, wrap them in square brackets (e.g. [MM]).
+ * ```
+ * dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
+ * dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
+ * dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
+ * ```
+ * Docs: https://day.js.org/docs/en/display/format
+ */
+ format(template?: string): string
+ /**
+ * This indicates the difference between two date-time in the specified unit.
+ *
+ * To get the difference in milliseconds, use `dayjs#diff`
+ * ```
+ * const date1 = dayjs('2019-01-25')
+ * const date2 = dayjs('2018-06-05')
+ * date1.diff(date2) // 20214000000 default milliseconds
+ * date1.diff() // milliseconds to current time
+ * ```
+ *
+ * To get the difference in another unit of measurement, pass that measurement as the second argument.
+ * ```
+ * const date1 = dayjs('2019-01-25')
+ * date1.diff('2018-06-05', 'month') // 7
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ *
+ * Docs: https://day.js.org/docs/en/display/difference
+ */
+ diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number
+ /**
+ * This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
+ * ```
+ * dayjs('2019-01-25').valueOf() // 1548381600000
+ * +dayjs(1548381600000) // 1548381600000
+ * ```
+ * To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
+ *
+ * Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
+ */
+ valueOf(): number
+ /**
+ * This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
+ * ```
+ * dayjs('2019-01-25').unix() // 1548381600
+ * ```
+ * This value is floored to the nearest second, and does not include a milliseconds component.
+ *
+ * Docs: https://day.js.org/docs/en/display/unix-timestamp
+ */
+ unix(): number
+ /**
+ * Get the number of days in the current month.
+ * ```
+ * dayjs('2019-01-25').daysInMonth() // 31
+ * ```
+ * Docs: https://day.js.org/docs/en/display/days-in-month
+ */
+ daysInMonth(): number
+ /**
+ * To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
+ * ```
+ * dayjs('2019-01-25').toDate()// => Date
+ * ```
+ */
+ toDate(): Date
+ /**
+ * To serialize as an ISO 8601 string.
+ * ```
+ * dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
+ * ```
+ * Docs: https://day.js.org/docs/en/display/as-json
+ */
+ toJSON(): string
+ /**
+ * To format as an ISO 8601 string.
+ * ```
+ * dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
+ * ```
+ * Docs: https://day.js.org/docs/en/display/as-iso-string
+ */
+ toISOString(): string
+ /**
+ * Returns a string representation of the date.
+ * ```
+ * dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
+ * ```
+ * Docs: https://day.js.org/docs/en/display/as-string
+ */
+ toString(): string
+ /**
+ * Get the UTC offset in minutes.
+ * ```
+ * dayjs().utcOffset()
+ * ```
+ * Docs: https://day.js.org/docs/en/manipulate/utc-offset
+ */
+ utcOffset(): number
+ /**
+ * This indicates whether the Day.js object is before the other supplied date-time.
+ * ```
+ * dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
+ * ```
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
+ * ```
+ * dayjs().isBefore('2011-01-01', 'year')// => boolean
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ *
+ * Docs: https://day.js.org/docs/en/query/is-before
+ */
+ isBefore(date?: ConfigType, unit?: OpUnitType): boolean
+ /**
+ * This indicates whether the Day.js object is the same as the other supplied date-time.
+ * ```
+ * dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
+ * ```
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
+ * ```
+ * dayjs().isSame('2011-01-01', 'year')// => boolean
+ * ```
+ * Docs: https://day.js.org/docs/en/query/is-same
+ */
+ isSame(date?: ConfigType, unit?: OpUnitType): boolean
+ /**
+ * This indicates whether the Day.js object is after the other supplied date-time.
+ * ```
+ * dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
+ * ```
+ * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
+ * ```
+ * dayjs().isAfter('2011-01-01', 'year')// => boolean
+ * ```
+ * Units are case insensitive, and support plural and short forms.
+ *
+ * Docs: https://day.js.org/docs/en/query/is-after
+ */
+ isAfter(date?: ConfigType, unit?: OpUnitType): boolean
+
+ locale(): string
+
+ locale(preset: string | ILocale, object?: Partial): Dayjs
+ }
+
+ export type PluginFunc = (option: T, c: typeof Dayjs, d: typeof dayjs) => void
+
+ export function extend(plugin: PluginFunc, option?: T): Dayjs
+
+ export function locale(preset?: string | ILocale, object?: Partial, isLocal?: boolean): string
+
+ export function isDayjs(d: any): d is Dayjs
+
+ export function unix(t: number): Dayjs
+
+ const Ls : { [key: string] : ILocale }
+}
diff --git a/src/uni_modules/wot-design-uni/dayjs/index.js b/src/uni_modules/wot-design-uni/dayjs/index.js
new file mode 100644
index 00000000..b1af3446
--- /dev/null
+++ b/src/uni_modules/wot-design-uni/dayjs/index.js
@@ -0,0 +1,542 @@
+/* eslint-disable */
+import * as C from './constant';
+import en from './locale/en';
+import U from './utils';
+var L = 'en'; // global locale
+
+var Ls = {}; // global loaded locale
+
+Ls[L] = en;
+var IS_DAYJS = '$isDayjsObject'; // eslint-disable-next-line no-use-before-define
+
+var isDayjs = function isDayjs(d) {
+ return d instanceof Dayjs || !!(d && d[IS_DAYJS]);
+};
+
+var parseLocale = function parseLocale(preset, object, isLocal) {
+ var l;
+ if (!preset) return L;
+
+ if (typeof preset === 'string') {
+ var presetLower = preset.toLowerCase();
+
+ if (Ls[presetLower]) {
+ l = presetLower;
+ }
+
+ if (object) {
+ Ls[presetLower] = object;
+ l = presetLower;
+ }
+
+ var presetSplit = preset.split('-');
+
+ if (!l && presetSplit.length > 1) {
+ return parseLocale(presetSplit[0]);
+ }
+ } else {
+ var name = preset.name;
+ Ls[name] = preset;
+ l = name;
+ }
+
+ if (!isLocal && l) L = l;
+ return l || !isLocal && L;
+};
+
+var dayjs = function dayjs(date, c) {
+ if (isDayjs(date)) {
+ return date.clone();
+ } // eslint-disable-next-line no-nested-ternary
+
+
+ var cfg = typeof c === 'object' ? c : {};
+ cfg.date = date;
+ cfg.args = arguments; // eslint-disable-line prefer-rest-params
+
+ return new Dayjs(cfg); // eslint-disable-line no-use-before-define
+};
+
+var wrapper = function wrapper(date, instance) {
+ return dayjs(date, {
+ locale: instance.$L,
+ utc: instance.$u,
+ x: instance.$x,
+ $offset: instance.$offset // todo: refactor; do not use this.$offset in you code
+
+ });
+};
+
+var Utils = U; // for plugin use
+
+Utils.l = parseLocale;
+Utils.i = isDayjs;
+Utils.w = wrapper;
+
+var parseDate = function parseDate(cfg) {
+ var date = cfg.date,
+ utc = cfg.utc;
+ if (date === null) return new Date(NaN); // null is invalid
+
+ if (Utils.u(date)) return new Date(); // today
+
+ if (date instanceof Date) return new Date(date);
+
+ if (typeof date === 'string' && !/Z$/i.test(date)) {
+ var d = date.match(C.REGEX_PARSE);
+
+ if (d) {
+ var m = d[2] - 1 || 0;
+ var ms = (d[7] || '0').substring(0, 3);
+
+ if (utc) {
+ return new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms));
+ }
+
+ return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);
+ }
+ }
+
+ return new Date(date); // everything else
+};
+
+var Dayjs = /*#__PURE__*/function () {
+ function Dayjs(cfg) {
+ this.$L = parseLocale(cfg.locale, null, true);
+ this.parse(cfg); // for plugin
+
+ this.$x = this.$x || cfg.x || {};
+ this[IS_DAYJS] = true;
+ }
+
+ var _proto = Dayjs.prototype;
+
+ _proto.parse = function parse(cfg) {
+ this.$d = parseDate(cfg);
+ this.init();
+ };
+
+ _proto.init = function init() {
+ var $d = this.$d;
+ this.$y = $d.getFullYear();
+ this.$M = $d.getMonth();
+ this.$D = $d.getDate();
+ this.$W = $d.getDay();
+ this.$H = $d.getHours();
+ this.$m = $d.getMinutes();
+ this.$s = $d.getSeconds();
+ this.$ms = $d.getMilliseconds();
+ } // eslint-disable-next-line class-methods-use-this
+ ;
+
+ _proto.$utils = function $utils() {
+ return Utils;
+ };
+
+ _proto.isValid = function isValid() {
+ return !(this.$d.toString() === C.INVALID_DATE_STRING);
+ };
+
+ _proto.isSame = function isSame(that, units) {
+ var other = dayjs(that);
+ return this.startOf(units) <= other && other <= this.endOf(units);
+ };
+
+ _proto.isAfter = function isAfter(that, units) {
+ return dayjs(that) < this.startOf(units);
+ };
+
+ _proto.isBefore = function isBefore(that, units) {
+ return this.endOf(units) < dayjs(that);
+ };
+
+ _proto.$g = function $g(input, get, set) {
+ if (Utils.u(input)) return this[get];
+ return this.set(set, input);
+ };
+
+ _proto.unix = function unix() {
+ return Math.floor(this.valueOf() / 1000);
+ };
+
+ _proto.valueOf = function valueOf() {
+ // timezone(hour) * 60 * 60 * 1000 => ms
+ return this.$d.getTime();
+ };
+
+ _proto.startOf = function startOf(units, _startOf) {
+ var _this = this;
+
+ // startOf -> endOf
+ var isStartOf = !Utils.u(_startOf) ? _startOf : true;
+ var unit = Utils.p(units);
+
+ var instanceFactory = function instanceFactory(d, m) {
+ var ins = Utils.w(_this.$u ? Date.UTC(_this.$y, m, d) : new Date(_this.$y, m, d), _this);
+ return isStartOf ? ins : ins.endOf(C.D);
+ };
+
+ var instanceFactorySet = function instanceFactorySet(method, slice) {
+ var argumentStart = [0, 0, 0, 0];
+ var argumentEnd = [23, 59, 59, 999];
+ return Utils.w(_this.toDate()[method].apply( // eslint-disable-line prefer-spread
+ _this.toDate('s'), (isStartOf ? argumentStart : argumentEnd).slice(slice)), _this);
+ };
+
+ var $W = this.$W,
+ $M = this.$M,
+ $D = this.$D;
+ var utcPad = "set" + (this.$u ? 'UTC' : '');
+
+ switch (unit) {
+ case C.Y:
+ return isStartOf ? instanceFactory(1, 0) : instanceFactory(31, 11);
+
+ case C.M:
+ return isStartOf ? instanceFactory(1, $M) : instanceFactory(0, $M + 1);
+
+ case C.W:
+ {
+ var weekStart = this.$locale().weekStart || 0;
+ var gap = ($W < weekStart ? $W + 7 : $W) - weekStart;
+ return instanceFactory(isStartOf ? $D - gap : $D + (6 - gap), $M);
+ }
+
+ case C.D:
+ case C.DATE:
+ return instanceFactorySet(utcPad + "Hours", 0);
+
+ case C.H:
+ return instanceFactorySet(utcPad + "Minutes", 1);
+
+ case C.MIN:
+ return instanceFactorySet(utcPad + "Seconds", 2);
+
+ case C.S:
+ return instanceFactorySet(utcPad + "Milliseconds", 3);
+
+ default:
+ return this.clone();
+ }
+ };
+
+ _proto.endOf = function endOf(arg) {
+ return this.startOf(arg, false);
+ };
+
+ _proto.$set = function $set(units, _int) {
+ var _C$D$C$DATE$C$M$C$Y$C;
+
+ // private set
+ var unit = Utils.p(units);
+ var utcPad = "set" + (this.$u ? 'UTC' : '');
+ var name = (_C$D$C$DATE$C$M$C$Y$C = {}, _C$D$C$DATE$C$M$C$Y$C[C.D] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[C.DATE] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[C.M] = utcPad + "Month", _C$D$C$DATE$C$M$C$Y$C[C.Y] = utcPad + "FullYear", _C$D$C$DATE$C$M$C$Y$C[C.H] = utcPad + "Hours", _C$D$C$DATE$C$M$C$Y$C[C.MIN] = utcPad + "Minutes", _C$D$C$DATE$C$M$C$Y$C[C.S] = utcPad + "Seconds", _C$D$C$DATE$C$M$C$Y$C[C.MS] = utcPad + "Milliseconds", _C$D$C$DATE$C$M$C$Y$C)[unit];
+ var arg = unit === C.D ? this.$D + (_int - this.$W) : _int;
+
+ if (unit === C.M || unit === C.Y) {
+ // clone is for badMutable plugin
+ var date = this.clone().set(C.DATE, 1);
+ date.$d[name](arg);
+ date.init();
+ this.$d = date.set(C.DATE, Math.min(this.$D, date.daysInMonth())).$d;
+ } else if (name) this.$d[name](arg);
+
+ this.init();
+ return this;
+ };
+
+ _proto.set = function set(string, _int2) {
+ return this.clone().$set(string, _int2);
+ };
+
+ _proto.get = function get(unit) {
+ return this[Utils.p(unit)]();
+ };
+
+ _proto.add = function add(number, units) {
+ var _this2 = this,
+ _C$MIN$C$H$C$S$unit;
+
+ number = Number(number); // eslint-disable-line no-param-reassign
+
+ var unit = Utils.p(units);
+
+ var instanceFactorySet = function instanceFactorySet(n) {
+ var d = dayjs(_this2);
+ return Utils.w(d.date(d.date() + Math.round(n * number)), _this2);
+ };
+
+ if (unit === C.M) {
+ return this.set(C.M, this.$M + number);
+ }
+
+ if (unit === C.Y) {
+ return this.set(C.Y, this.$y + number);
+ }
+
+ if (unit === C.D) {
+ return instanceFactorySet(1);
+ }
+
+ if (unit === C.W) {
+ return instanceFactorySet(7);
+ }
+
+ var step = (_C$MIN$C$H$C$S$unit = {}, _C$MIN$C$H$C$S$unit[C.MIN] = C.MILLISECONDS_A_MINUTE, _C$MIN$C$H$C$S$unit[C.H] = C.MILLISECONDS_A_HOUR, _C$MIN$C$H$C$S$unit[C.S] = C.MILLISECONDS_A_SECOND, _C$MIN$C$H$C$S$unit)[unit] || 1; // ms
+
+ var nextTimeStamp = this.$d.getTime() + number * step;
+ return Utils.w(nextTimeStamp, this);
+ };
+
+ _proto.subtract = function subtract(number, string) {
+ return this.add(number * -1, string);
+ };
+
+ _proto.format = function format(formatStr) {
+ var _this3 = this;
+
+ var locale = this.$locale();
+ if (!this.isValid()) return locale.invalidDate || C.INVALID_DATE_STRING;
+ var str = formatStr || C.FORMAT_DEFAULT;
+ var zoneStr = Utils.z(this);
+ var $H = this.$H,
+ $m = this.$m,
+ $M = this.$M;
+ var weekdays = locale.weekdays,
+ months = locale.months,
+ meridiem = locale.meridiem;
+
+ var getShort = function getShort(arr, index, full, length) {
+ return arr && (arr[index] || arr(_this3, str)) || full[index].slice(0, length);
+ };
+
+ var get$H = function get$H(num) {
+ return Utils.s($H % 12 || 12, num, '0');
+ };
+
+ var meridiemFunc = meridiem || function (hour, minute, isLowercase) {
+ var m = hour < 12 ? 'AM' : 'PM';
+ return isLowercase ? m.toLowerCase() : m;
+ };
+
+ var matches = function matches(match) {
+ switch (match) {
+ case 'YY':
+ return String(_this3.$y).slice(-2);
+
+ case 'YYYY':
+ return Utils.s(_this3.$y, 4, '0');
+
+ case 'M':
+ return $M + 1;
+
+ case 'MM':
+ return Utils.s($M + 1, 2, '0');
+
+ case 'MMM':
+ return getShort(locale.monthsShort, $M, months, 3);
+
+ case 'MMMM':
+ return getShort(months, $M);
+
+ case 'D':
+ return _this3.$D;
+
+ case 'DD':
+ return Utils.s(_this3.$D, 2, '0');
+
+ case 'd':
+ return String(_this3.$W);
+
+ case 'dd':
+ return getShort(locale.weekdaysMin, _this3.$W, weekdays, 2);
+
+ case 'ddd':
+ return getShort(locale.weekdaysShort, _this3.$W, weekdays, 3);
+
+ case 'dddd':
+ return weekdays[_this3.$W];
+
+ case 'H':
+ return String($H);
+
+ case 'HH':
+ return Utils.s($H, 2, '0');
+
+ case 'h':
+ return get$H(1);
+
+ case 'hh':
+ return get$H(2);
+
+ case 'a':
+ return meridiemFunc($H, $m, true);
+
+ case 'A':
+ return meridiemFunc($H, $m, false);
+
+ case 'm':
+ return String($m);
+
+ case 'mm':
+ return Utils.s($m, 2, '0');
+
+ case 's':
+ return String(_this3.$s);
+
+ case 'ss':
+ return Utils.s(_this3.$s, 2, '0');
+
+ case 'SSS':
+ return Utils.s(_this3.$ms, 3, '0');
+
+ case 'Z':
+ return zoneStr;
+ // 'ZZ' logic below
+
+ default:
+ break;
+ }
+
+ return null;
+ };
+
+ return str.replace(C.REGEX_FORMAT, function (match, $1) {
+ return $1 || matches(match) || zoneStr.replace(':', '');
+ }); // 'ZZ'
+ };
+
+ _proto.utcOffset = function utcOffset() {
+ // Because a bug at FF24, we're rounding the timezone offset around 15 minutes
+ // https://github.com/moment/moment/pull/1871
+ return -Math.round(this.$d.getTimezoneOffset() / 15) * 15;
+ };
+
+ _proto.diff = function diff(input, units, _float) {
+ var _this4 = this;
+
+ var unit = Utils.p(units);
+ var that = dayjs(input);
+ var zoneDelta = (that.utcOffset() - this.utcOffset()) * C.MILLISECONDS_A_MINUTE;
+ var diff = this - that;
+
+ var getMonth = function getMonth() {
+ return Utils.m(_this4, that);
+ };
+
+ var result;
+
+ switch (unit) {
+ case C.Y:
+ result = getMonth() / 12;
+ break;
+
+ case C.M:
+ result = getMonth();
+ break;
+
+ case C.Q:
+ result = getMonth() / 3;
+ break;
+
+ case C.W:
+ result = (diff - zoneDelta) / C.MILLISECONDS_A_WEEK;
+ break;
+
+ case C.D:
+ result = (diff - zoneDelta) / C.MILLISECONDS_A_DAY;
+ break;
+
+ case C.H:
+ result = diff / C.MILLISECONDS_A_HOUR;
+ break;
+
+ case C.MIN:
+ result = diff / C.MILLISECONDS_A_MINUTE;
+ break;
+
+ case C.S:
+ result = diff / C.MILLISECONDS_A_SECOND;
+ break;
+
+ default:
+ result = diff; // milliseconds
+
+ break;
+ }
+
+ return _float ? result : Utils.a(result);
+ };
+
+ _proto.daysInMonth = function daysInMonth() {
+ return this.endOf(C.M).$D;
+ };
+
+ _proto.$locale = function $locale() {
+ // get locale object
+ return Ls[this.$L];
+ };
+
+ _proto.locale = function locale(preset, object) {
+ if (!preset) return this.$L;
+ var that = this.clone();
+ var nextLocaleName = parseLocale(preset, object, true);
+ if (nextLocaleName) that.$L = nextLocaleName;
+ return that;
+ };
+
+ _proto.clone = function clone() {
+ return Utils.w(this.$d, this);
+ };
+
+ _proto.toDate = function toDate() {
+ return new Date(this.valueOf());
+ };
+
+ _proto.toJSON = function toJSON() {
+ return this.isValid() ? this.toISOString() : null;
+ };
+
+ _proto.toISOString = function toISOString() {
+ // ie 8 return
+ // new Dayjs(this.valueOf() + this.$d.getTimezoneOffset() * 60000)
+ // .format('YYYY-MM-DDTHH:mm:ss.SSS[Z]')
+ return this.$d.toISOString();
+ };
+
+ _proto.toString = function toString() {
+ return this.$d.toUTCString();
+ };
+
+ return Dayjs;
+}();
+
+var proto = Dayjs.prototype;
+dayjs.prototype = proto;
+[['$ms', C.MS], ['$s', C.S], ['$m', C.MIN], ['$H', C.H], ['$W', C.D], ['$M', C.M], ['$y', C.Y], ['$D', C.DATE]].forEach(function (g) {
+ proto[g[1]] = function (input) {
+ return this.$g(input, g[0], g[1]);
+ };
+});
+
+dayjs.extend = function (plugin, option) {
+ if (!plugin.$i) {
+ // install plugin only once
+ plugin(option, Dayjs, dayjs);
+ plugin.$i = true;
+ }
+
+ return dayjs;
+};
+
+dayjs.locale = parseLocale;
+dayjs.isDayjs = isDayjs;
+
+dayjs.unix = function (timestamp) {
+ return dayjs(timestamp * 1e3);
+};
+
+dayjs.en = Ls[L];
+dayjs.Ls = Ls;
+dayjs.p = {};
+export default dayjs;
\ No newline at end of file
diff --git a/src/uni_modules/wot-design-uni/dayjs/locale/en.js b/src/uni_modules/wot-design-uni/dayjs/locale/en.js
new file mode 100644
index 00000000..b0d19f53
--- /dev/null
+++ b/src/uni_modules/wot-design-uni/dayjs/locale/en.js
@@ -0,0 +1,13 @@
+/* eslint-disable */
+// English [en]
+// We don't need weekdaysShort, weekdaysMin, monthsShort in en.js locale
+export default {
+ name: 'en',
+ weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ ordinal: function ordinal(n) {
+ var s = ['th', 'st', 'nd', 'rd'];
+ var v = n % 100;
+ return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
+ }
+};
\ No newline at end of file
diff --git a/src/uni_modules/wot-design-uni/dayjs/utils.js b/src/uni_modules/wot-design-uni/dayjs/utils.js
new file mode 100644
index 00000000..a9958f97
--- /dev/null
+++ b/src/uni_modules/wot-design-uni/dayjs/utils.js
@@ -0,0 +1,59 @@
+/* eslint-disable */
+import * as C from './constant';
+
+var padStart = function padStart(string, length, pad) {
+ var s = String(string);
+ if (!s || s.length >= length) return string;
+ return "" + Array(length + 1 - s.length).join(pad) + string;
+};
+
+var padZoneStr = function padZoneStr(instance) {
+ var negMinutes = -instance.utcOffset();
+ var minutes = Math.abs(negMinutes);
+ var hourOffset = Math.floor(minutes / 60);
+ var minuteOffset = minutes % 60;
+ return "" + (negMinutes <= 0 ? '+' : '-') + padStart(hourOffset, 2, '0') + ":" + padStart(minuteOffset, 2, '0');
+};
+
+var monthDiff = function monthDiff(a, b) {
+ // function from moment.js in order to keep the same result
+ if (a.date() < b.date()) return -monthDiff(b, a);
+ var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
+ var anchor = a.clone().add(wholeMonthDiff, C.M);
+ var c = b - anchor < 0;
+ var anchor2 = a.clone().add(wholeMonthDiff + (c ? -1 : 1), C.M);
+ return +(-(wholeMonthDiff + (b - anchor) / (c ? anchor - anchor2 : anchor2 - anchor)) || 0);
+};
+
+var absFloor = function absFloor(n) {
+ return n < 0 ? Math.ceil(n) || 0 : Math.floor(n);
+};
+
+var prettyUnit = function prettyUnit(u) {
+ var special = {
+ M: C.M,
+ y: C.Y,
+ w: C.W,
+ d: C.D,
+ D: C.DATE,
+ h: C.H,
+ m: C.MIN,
+ s: C.S,
+ ms: C.MS,
+ Q: C.Q
+ };
+ return special[u] || String(u || '').toLowerCase().replace(/s$/, '');
+};
+
+var isUndefined = function isUndefined(s) {
+ return s === undefined;
+};
+
+export default {
+ s: padStart,
+ z: padZoneStr,
+ m: monthDiff,
+ a: absFloor,
+ p: prettyUnit,
+ u: isUndefined
+};
\ No newline at end of file
diff --git a/src/uni_modules/wot-design-uni/index.ts b/src/uni_modules/wot-design-uni/index.ts
index e9cf51ed..e7da357d 100644
--- a/src/uni_modules/wot-design-uni/index.ts
+++ b/src/uni_modules/wot-design-uni/index.ts
@@ -1,7 +1,7 @@
/*
* @Author: weisheng
* @Date: 2021-12-21 14:22:03
- * @LastEditTime: 2025-03-25 14:01:43
+ * @LastEditTime: 2025-07-10 16:25:42
* @LastEditors: weisheng
* @Description:
* @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/index.ts
@@ -15,7 +15,7 @@ export { useUpload } from './components/composables/useUpload'
export { useTouch } from './components/composables/useTouch'
export * from './components/wd-notify'
-export { dayjs } from './components/common/dayjs'
+export { default as dayjs } from './dayjs'
export * as CommonUtil from './components/common/util'
export * as clickOut from './components/common/clickoutside'
diff --git a/tests/components/wd-segmented.test.ts b/tests/components/wd-segmented.test.ts
index 6f5d9591..4307f100 100644
--- a/tests/components/wd-segmented.test.ts
+++ b/tests/components/wd-segmented.test.ts
@@ -11,7 +11,7 @@ describe('分段器组件', () => {
let isSelectAll = false
let boundingClientRectCallback: ((rect: any) => void) | null = null
- const mockQuery = {
+ const mockQuery: any = {
// 简化 in 方法,直接返回 mockQuery 自身
in: vi.fn(() => {
return mockQuery
diff --git a/tests/setup.ts b/tests/setup.ts
index 7bca15cb..b778d012 100644
--- a/tests/setup.ts
+++ b/tests/setup.ts
@@ -92,7 +92,7 @@ vi.stubGlobal('uni', {
scrollLeft: 0
}
- const mockQuery = {
+ const mockQuery: any = {
// 支持 in 方法,用于组件内查询
in: vi.fn((scope) => {
currentScope = scope
@@ -235,7 +235,7 @@ vi.stubGlobal('uni', {
let relativeToOptions: any = null
let relativeToViewportOptions: any = null
- const mockObserver = {
+ const mockObserver: any = {
relativeTo: vi.fn((selector, margins) => {
relativeToOptions = { selector, margins }
return mockObserver
diff --git a/vitest.config.ts b/vitest.config.ts
index d069a97f..9bf3951e 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -1,7 +1,7 @@
/*
* @Author: weisheng
* @Date: 2025-04-09 00:02:58
- * @LastEditTime: 2025-05-05 17:35:42
+ * @LastEditTime: 2025-07-10 15:33:49
* @LastEditors: weisheng
* @Description:
* @FilePath: /wot-design-uni/vitest.config.ts