From 619200c2dffb71a77b5259059397113c53e8db33 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 2 Jun 2021 15:08:17 +0800 Subject: [PATCH] build(deps): bump @vitejs/plugin-legacy from 1.3.4 to 1.4.1, @vitejs/plugin-vue from 1.2.2 to 1.2.3, @vitejs/plugin-vue-jsx from 1.1.4 to 1.1.5, @vue/compiler-sfc from 3.1.0-beta.5 to 3.1.0-beta.6 --- package.json | 10 +- packages/playground/ssr/package.json | 13 +- packages/playground/ssr/yarn.lock | 221 +- packages/uni-h5/dist/uni-h5.cjs.js | 1294 ++++++------ packages/uni-h5/dist/uni-h5.es.js | 1793 +++++++++-------- .../uni-h5/lib/babel-plugin-jsx/README.md | 334 --- .../lib/babel-plugin-jsx/dist/buildProps.d.ts | 14 - .../lib/babel-plugin-jsx/dist/buildProps.js | 293 --- .../lib/babel-plugin-jsx/dist/helpers.js | 17 - .../lib/babel-plugin-jsx/dist/index.d.ts | 38 - .../uni-h5/lib/babel-plugin-jsx/dist/index.js | 145 -- .../dist/parseDirectives.d.ts | 19 - .../babel-plugin-jsx/dist/parseDirectives.js | 150 -- .../lib/babel-plugin-jsx/dist/patchFlags.d.ts | 18 - .../lib/babel-plugin-jsx/dist/patchFlags.js | 19 - .../lib/babel-plugin-jsx/dist/rumtime.js | 8 - .../lib/babel-plugin-jsx/dist/slotFlags.d.ts | 22 - .../lib/babel-plugin-jsx/dist/slotFlags.js | 2 - .../babel-plugin-jsx/dist/sugar-fragment.d.ts | 9 - .../babel-plugin-jsx/dist/sugar-fragment.js | 37 - .../dist/transform-vue-jsx.d.ts | 11 - .../dist/transform-vue-jsx.js | 162 -- .../lib/babel-plugin-jsx/dist/utils.d.ts | 68 - .../uni-h5/lib/babel-plugin-jsx/dist/utils.js | 210 -- .../uni-h5/lib/babel-plugin-jsx/package.json | 51 - packages/uni-h5/vite.config.ts | 11 +- yarn.lock | 412 ++-- 27 files changed, 2005 insertions(+), 3376 deletions(-) delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/README.md delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/helpers.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/index.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/index.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/rumtime.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/utils.d.ts delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/dist/utils.js delete mode 100644 packages/uni-h5/lib/babel-plugin-jsx/package.json diff --git a/package.json b/package.json index 4bfb3f297..346d8fd87 100644 --- a/package.json +++ b/package.json @@ -57,10 +57,10 @@ "@types/quill": "^1.3.7", "@types/resolve": "^1.20.0", "@typescript-eslint/parser": "^4.12.0", - "@vitejs/plugin-legacy": "^1.3.4", - "@vitejs/plugin-vue": "^1.2.2", - "@vitejs/plugin-vue-jsx": "^1.1.4", - "@vue/compiler-sfc": "^3.1.0-beta.5", + "@vitejs/plugin-legacy": "^1.4.1", + "@vitejs/plugin-vue": "^1.2.3", + "@vitejs/plugin-vue-jsx": "^1.1.5", + "@vue/compiler-sfc": "^3.1.0-beta.6", "eslint": "^7.17.0", "fs-extra": "^9.0.1", "jest": "^26.6.3", @@ -80,7 +80,7 @@ "semver": "^7.3.4", "ts-jest": "^26.4.4", "typescript": "~4.1.3", - "vite": "^2.3.4", + "vite": "^2.3.6", "vue": "^3.1.0-beta.5", "yorkie": "^2.0.0" }, diff --git a/packages/playground/ssr/package.json b/packages/playground/ssr/package.json index d866d1f00..e2912d9fa 100644 --- a/packages/playground/ssr/package.json +++ b/packages/playground/ssr/package.json @@ -16,19 +16,20 @@ "@dcloudio/uni-h5-vue": "../../uni-h5-vue", "@dcloudio/uni-i18n": "../../uni-i18n", "@dcloudio/uni-shared": "../../uni-shared", - "@vue/shared": "^3.1.0-beta.5", - "vue": "^3.1.0-beta.5", + "@vue/shared": "^3.1.0-beta.6", + "vue": "^3.1.0-beta.6", + "vue-router": "^4.0.8", "vuex": "^4.0.1" }, "devDependencies": { "@dcloudio/uni-cli-shared": "../../uni-cli-shared", "@dcloudio/vite-plugin-uni": "../../vite-plugin-uni", - "@vitejs/plugin-vue": "^1.2.2", - "@vue/compiler-sfc": "^3.1.0-beta.5", - "@vue/server-renderer": "^3.1.0-beta.5", + "@vitejs/plugin-vue": "^1.2.3", + "@vue/compiler-sfc": "^3.1.0-beta.6", + "@vue/server-renderer": "^3.1.0-beta.6", "compression": "^1.7.4", "cypress": "^7.3.0", "serve-static": "^1.14.1", - "vite": "^2.3.4" + "vite": "^2.3.6" } } diff --git a/packages/playground/ssr/yarn.lock b/packages/playground/ssr/yarn.lock index b86bd7a99..423e3087b 100644 --- a/packages/playground/ssr/yarn.lock +++ b/packages/playground/ssr/yarn.lock @@ -8,14 +8,14 @@ integrity sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A== "@babel/parser@^7.12.0", "@babel/parser@^7.13.9": - version "7.14.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.3.tgz#9b530eecb071fd0c93519df25c5ff9f14759f298" - integrity sha512-7MpZDIfI7sUC5zWo2+foJ50CSI5lcqDehZ0lVgIhSi4bFEk94fLAKlF3Q0nzSQQ+ca0lm+O6G9ztKVBeu8PMRQ== + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.4.tgz#a5c560d6db6cd8e6ed342368dea8039232cbab18" + integrity sha512-ArliyUsWDUqEGfWcmzpGUzNfLxTdTp6WU4IuP6QFSp9gGfWS6boxFCkJSJ/L4+RG8z/FnIU3WxCk6hPL9SSWeA== "@babel/types@^7.12.0", "@babel/types@^7.13.0": - version "7.14.2" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.2.tgz#4208ae003107ef8a057ea8333e56eb64d2f6a2c3" - integrity sha512-SdjAG/3DikRHpUOjxZgnkbR11xUlyDMUFJdvnIgZEE16mqmY0BINMmc4//JMJglEmn6i7sq6p+mGrFWyZ98EEw== + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.4.tgz#bfd6980108168593b38b3eb48a24aa026b919bc0" + integrity sha512-lCj4aIs0xUefJFQnwwQv2Bxg7Omd6bgquZ6LGC+gGMh6/s5qDVfjuCMlDmYQ15SLsWHd9n+X3E75lKIhl5Lkiw== dependencies: "@babel/helper-validator-identifier" "^7.14.0" to-fast-properties "^2.0.0" @@ -200,41 +200,41 @@ dependencies: "@types/node" "*" -"@vitejs/plugin-vue@^1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.2.tgz#b0038fc11b9099f4cd01fcbf0ee419adda417b52" - integrity sha512-5BI2WFfs/Z0pAV4S/IQf1oH3bmFYlL5ATMBHgTt1Lf7hAnfpNd5oUAAs6hZPfk3QhvyUQgtk0rJBlabwNFcBJQ== +"@vitejs/plugin-vue@^1.2.3": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.3.tgz#2e8e008b1cc3a6ad1dfbec75743c7ffd9b4872a6" + integrity sha512-LlnLpObkGKZ+b7dcpL4T24l13nPSHLjo+6Oc7MbZiKz5PMAUzADfNJ3EKfYIQ0l0969nxf2jp/9vsfnuJ7h6fw== -"@vue/compiler-core@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.1.0-beta.5.tgz#e99427a810d1f1603d58ba5e213f83e2c54688c6" - integrity sha512-pL6XvPUvZLsGd6wHxZ+KXBEc8oOiKZKCuQ+DGBU2HWSvSP0YrIVA2y1fc/8NP7dFvBq3Eqr79oIPDIQHbmVDIw== +"@vue/compiler-core@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.1.0-beta.6.tgz#19238d596dfb70bd03c62aaefab2022a22264593" + integrity sha512-8HgII0+tgOvSLtw8DFgI0Maobk8bsPygtzfgH/erb5NLUX73YI1xx91pGtUxLIZvJsVjnF3X4viW+aJqMcFhyg== dependencies: "@babel/parser" "^7.12.0" "@babel/types" "^7.12.0" - "@vue/shared" "3.1.0-beta.5" + "@vue/shared" "3.1.0-beta.6" estree-walker "^2.0.1" source-map "^0.6.1" -"@vue/compiler-dom@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.1.0-beta.5.tgz#c0cccdda578845351c9876f28cc4d68e2e021a61" - integrity sha512-DZTx4UViFxALOEsCNNb44hClDJEV02JW46G3cdCJwakcLE0o6vppgrazF+7zIOV5qjrN00sAQeCf9EbaLrgY2Q== +"@vue/compiler-dom@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.1.0-beta.6.tgz#ccdc415d4b9078cd9553797fca216e8730d5cd5a" + integrity sha512-IKLVm8ysBXeAQlxCzaiDrcaXHPf5n56Poy/IO+RRCgOuimMwA/6bbZBocAY1GxBc4zes+GwectRCPMmr/JU0pA== dependencies: - "@vue/compiler-core" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-core" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" -"@vue/compiler-sfc@^3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.1.0-beta.5.tgz#2c3c8aa4148ca17d2b46eb6fa36363b84b99ce46" - integrity sha512-mjozHyFFbMOPRFYD1YqpHGvcncnGkPidud9Q+93E0db4crfXJ8dK7jQhc8HYXcoXaQ7WCz9oeF7AaRrAv9CmBw== +"@vue/compiler-sfc@^3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.1.0-beta.6.tgz#22375518c69c1bff8ca6a4e541cf211c7b8f5c77" + integrity sha512-kpXB28+XKGfyIQ4q2yPBefS+Cnxph/rtGMbo7xeym45B/P88VxEcuCEtSGZg5SnlX5O39jYzSju7aZY+aziv8Q== dependencies: "@babel/parser" "^7.13.9" "@babel/types" "^7.13.0" - "@vue/compiler-core" "3.1.0-beta.5" - "@vue/compiler-dom" "3.1.0-beta.5" - "@vue/compiler-ssr" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-core" "3.1.0-beta.6" + "@vue/compiler-dom" "3.1.0-beta.6" + "@vue/compiler-ssr" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" consolidate "^0.16.0" estree-walker "^2.0.1" hash-sum "^2.0.0" @@ -246,55 +246,55 @@ postcss-selector-parser "^6.0.4" source-map "^0.6.1" -"@vue/compiler-ssr@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.1.0-beta.5.tgz#2ec33b389c86329c5ebeb873e4228c28c26a1bf5" - integrity sha512-MLuBIj1Sd8yfL44HK5Cm36PFFiQIOHj5I32e/DftbKLaxisrHrUulBniMeQa3aQufIqUUXBfFNC09ejIiojEfg== +"@vue/compiler-ssr@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.1.0-beta.6.tgz#9ecd0f8e2decfa00e8fda9a8dce85e1f5230c687" + integrity sha512-nFwAeOdmrVEEhSnZVfA8QOGnqKePVm36xZYs6IxAO7xOLAV7KyO9D6hb+d3SHHh8TSE9frSa2Vg0CvuulPBCWQ== dependencies: - "@vue/compiler-dom" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-dom" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" -"@vue/devtools-api@^6.0.0-beta.11": - version "6.0.0-beta.11" - resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.11.tgz#4fb4161ee41ba75f3f5198d4bfd80e4ffb7f2462" - integrity sha512-vpw61AkW9U8c2upjJCljHq9eh1KkD4FJ7DYbRzIETpj9WAw2VESudJZosAk4M+7npBo1Zu1jNQY03HUMVO/czQ== +"@vue/devtools-api@^6.0.0-beta.10", "@vue/devtools-api@^6.0.0-beta.11": + version "6.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.12.tgz#693ffc77bfb66b080e5c9576abb5786c85470a32" + integrity sha512-PtHmAxFmCyCElV7uTWMrXj+fefwn4lCfTtPo9fPw0SK8/7e3UaFl8IL7lnugJmNFfeKQyuTkSoGvTq1uDaRF6Q== -"@vue/reactivity@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.1.0-beta.5.tgz#c5b279a3d95ab35fa92489f2abc94f613bc6734c" - integrity sha512-lf+DVxUWZZMgOgt8QN4N91JmpxjkuDu/A3pk3jwwrb6yB4Q759IfmbD2PTKcTqgmQWaSw5CJPjRjyTe1wkWAeg== +"@vue/reactivity@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.1.0-beta.6.tgz#3636311abe7ae28014d069438890bd48484ed1d2" + integrity sha512-QpEOaK03YvZvgwWpwTLabNJ4vZVilhPQpf//ZGVZqcbY2yM6fChSkoWpicjR1uobV8aS2Rgt9OWIkU32jsIg6g== dependencies: - "@vue/shared" "3.1.0-beta.5" + "@vue/shared" "3.1.0-beta.6" -"@vue/runtime-core@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.1.0-beta.5.tgz#9da74fb070e7152a4486fb7e477ba9fdfbc8f8c6" - integrity sha512-YNKmKr0xI5KMplju7XfTPRsK1ePewaiEyKvvsLROQ3609HGkJWeKZlWAPdYb5j2i1ub8v4hM4iZXxQtZmrQGhg== +"@vue/runtime-core@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.1.0-beta.6.tgz#b5e0c1f1a2689149f4b6546569b29ef6bba02b19" + integrity sha512-WdtOShb+0NFCOCNdi8XcWzI0uaPEwwE4c9oJAVo8sCZ2SRiUrKFccisN6M2YdbvYC7z56JzD1IYK0vfaX9vciQ== dependencies: - "@vue/reactivity" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/reactivity" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" -"@vue/runtime-dom@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.1.0-beta.5.tgz#e5ebf4f13103198b0bb43b0d2eba699a5a022d1f" - integrity sha512-eLML5RNn9q/QJo802GRBvNC9W1BABJ8xyvexrruZCZAlKocTq9J0j2vS2IwAl/WbG1X8cY6yPgdQEQ/8eUy0Og== +"@vue/runtime-dom@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.1.0-beta.6.tgz#b0cfecd30f1a5f952b2da1e9cede023d0def03ab" + integrity sha512-Aqjm+1FbW3UsOoLlghOt3O8ytJ+uEY+SWRvqcDitglK/lYVneqJxPY1eN8VSn+0N7VVpYF3QmnLJEs4dBAvIRQ== dependencies: - "@vue/runtime-core" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/runtime-core" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" csstype "^2.6.8" -"@vue/server-renderer@^3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.1.0-beta.5.tgz#287758733a64b0c1827b2313826ae115fcf8f8bb" - integrity sha512-8A7A7BlTkYIzEohRBJzWesHLzzsnN1SQ+66MBGaNmK/6RPKSeeff2KxsPI8poYauInFYoeLvHiSWyLzA4WeQKw== +"@vue/server-renderer@^3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.1.0-beta.6.tgz#55627a7856636ac64c6a4df5ebee69c8d3506442" + integrity sha512-AGcKlaudsw2wbPp9troxP4zLlQGiOPd+TESLPsn/U1d81Vsf6udznLYSNpXkT9JQMHyglKfv1neNazt3YFLBPA== dependencies: - "@vue/compiler-ssr" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-ssr" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" -"@vue/shared@3.1.0-beta.5", "@vue/shared@^3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.1.0-beta.5.tgz#ef971d6f1c64f89c5918529dcbee67de9de15cfa" - integrity sha512-jtQGnIERLNZWbj4Uy6uddALlzemqH5YpCQtwIT1e0DbDpEQ+OUMP6j5TCuFWARblv63lT9t/e+nOZcC1iTr6zg== +"@vue/shared@3.1.0-beta.6", "@vue/shared@^3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.1.0-beta.6.tgz#c106fd343b801d63fabdc97ab741b25a6b6c47ea" + integrity sha512-Camy6ETEk42N5YXZDH+bEW7WKJOE8ORyB+wu+GR8wc5J2ucVebToZqVqGHt9q6UiEhoYCTQNcgEAiwus/DWcFA== accepts@~1.3.5, accepts@~1.3.7: version "1.3.7" @@ -517,9 +517,9 @@ cachedir@^2.3.0: integrity sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw== caniuse-lite@^1.0.30001219, caniuse-lite@^1.0.30001230: - version "1.0.30001230" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz#8135c57459854b2240b57a4a6786044bdc5a9f71" - integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ== + version "1.0.30001233" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001233.tgz#b7cb4a377a4b12ed240d2fa5c792951a06e5f2c4" + integrity sha512-BmkbxLfStqiPA7IEzQpIk0UFZFf3A4E6fzjPJ6OR+bFC2L8ES9J8zGA/asoi47p8XDVkev+WJo2I2Nc8c/34Yg== caseless@~0.12.0: version "0.12.0" @@ -856,9 +856,9 @@ ee-first@1.1.1: integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= electron-to-chromium@^1.3.723: - version "1.3.741" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.741.tgz#dc1024b19b31e27fb2c8c0a1f120cb05fc6ca695" - integrity sha512-4i3T0cwnHo1O4Mnp9JniEco8bZiXoqbm3PhW5hv7uu8YLg35iajYrRnNyKFaN8/8SSTskU2hYqVTeYVPceSpUA== + version "1.3.743" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.743.tgz#fcec24d6d647cb84fd796b42caa1b4039a180894" + integrity sha512-K2wXfo9iZQzNJNx67+Pld0DRF+9bYinj62gXCdgPhcu1vidwVuLPHQPPFnCdO55njWigXXpfBiT90jGUPbw8Zg== elegant-spinner@^1.0.1: version "1.0.1" @@ -887,10 +887,10 @@ end-of-stream@^1.1.0: dependencies: once "^1.4.0" -esbuild@^0.11.23: - version "0.11.23" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" - integrity sha512-iaiZZ9vUF5wJV8ob1tl+5aJTrwDczlvGP0JoMmnpC2B0ppiMCu8n8gmy5ZTGl5bcG081XBVn+U+jP+mPFm5T5Q== +esbuild@^0.12.5: + version "0.12.5" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.5.tgz#36076a6bc1966ba2741981d30512e95e8aaff495" + integrity sha512-vcuP53pA5XiwUU4FnlXM+2PnVjTfHGthM7uP1gtp+9yfheGvFFbq/KyuESThmtoHPUrfZH5JpxGVJIFDVD1Egw== escalade@^3.1.1: version "3.1.1" @@ -1096,10 +1096,10 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" -forwarded@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" - integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== fraction.js@^4.1.1: version "4.1.1" @@ -1673,17 +1673,17 @@ micromatch@^4.0.2: braces "^3.0.1" picomatch "^2.2.3" -mime-db@1.47.0, "mime-db@>= 1.43.0 < 2": - version "1.47.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" - integrity sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw== +mime-db@1.48.0, "mime-db@>= 1.43.0 < 2": + version "1.48.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.48.0.tgz#e35b31045dd7eada3aaad537ed88a33afbef2d1d" + integrity sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ== mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.24: - version "2.1.30" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" - integrity sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg== + version "2.1.31" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.31.tgz#a00d76b74317c61f9c2db2218b8e9f8e9c5c9e6b" + integrity sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg== dependencies: - mime-db "1.47.0" + mime-db "1.48.0" mime@1.6.0: version "1.6.0" @@ -1957,11 +1957,11 @@ pretty-bytes@^5.6.0: integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg== proxy-addr@~2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.6.tgz#fdc2336505447d3f2f2c638ed272caf614bbb2bf" - integrity sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw== + version "2.0.7" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== dependencies: - forwarded "~0.1.2" + forwarded "0.2.0" ipaddr.js "1.9.1" psl@^1.1.28: @@ -2082,9 +2082,9 @@ rollup-plugin-copy@^3.4.0: is-plain-object "^3.0.0" rollup@^2.38.5: - version "2.50.3" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.50.3.tgz#71021dedf2e3423bee28e795860783feea2be63e" - integrity sha512-58KiHnaCzZn6F5yRMjHe7WTZuFj6r4iJVJz5UwvKD6f/xfTy2IdtbR2AVHN6cyfK1tBy//hJ66ebXy6Y1h7HlQ== + version "2.50.5" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.50.5.tgz#bbee9d6411af3f5fa5c6e7e2c69f7a65b753e568" + integrity sha512-Ztz4NurU2LbS3Jn5rlhnYv35z6pkjBUmYKr94fOBIKINKRO6kug9NTFHArT7jqwMP2kqEZ39jJuEtkk91NBltQ== optionalDependencies: fsevents "~2.3.1" @@ -2437,26 +2437,33 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -vite@^2.3.4: - version "2.3.4" - resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" - integrity sha512-7orxrF65+Q5n/sMCnO91S8OS0gkPJ7g+y3bLlc7CPCXVswK8to1T8YycCk9SZh+AcIc0TuN6YajWTBFS5atMNA== +vite@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.6.tgz#1f7cfde88a51a802d69000c7bac85d481c2e871c" + integrity sha512-fsEpNKDHgh3Sn66JH06ZnUBnIgUVUtw6ucDhlOj1CEqxIkymU25yv1/kWDPlIjyYHnalr0cN6V+zzUJ+fmWHYw== dependencies: - esbuild "^0.11.23" + esbuild "^0.12.5" postcss "^8.2.10" resolve "^1.19.0" rollup "^2.38.5" optionalDependencies: fsevents "~2.3.1" -vue@^3.1.0-beta.5: - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.0-beta.5.tgz#6fe228f0b4e20203b4755cb18a958af79a8ac63f" - integrity sha512-g2tHxOLkXq6OUk5hCEJDgwvmeG00v1301SBsyn9ATCyhvHm8NBl4IOWLoUAmucHXexTVwFokrIXZVDTZlLou0g== +vue-router@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.0.8.tgz#55d4290a3122444edbc91a3cd2492bb1d0cef494" + integrity sha512-42mWSQaH7CCBQDspQTHv63f34VEnZC20g9QNK4WJ/zW8SdIUeT6TQ2i/78fjF/pVBUPLBWrGhvB7uDnaz7O/pA== + dependencies: + "@vue/devtools-api" "^6.0.0-beta.10" + +vue@^3.1.0-beta.6: + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.0-beta.6.tgz#bd1307916c58a07712ea6281078e36e1cb4fd1bf" + integrity sha512-p5r+T0Dcrzd77K1cp1v/T3R+uMSrvr8B3SDSa6KZOqkEOwZl48IpnX0nMegnIHSX8/WXi3x6nqa+CE/aVP2EfA== dependencies: - "@vue/compiler-dom" "3.1.0-beta.5" - "@vue/runtime-dom" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-dom" "3.1.0-beta.6" + "@vue/runtime-dom" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" vuex@^4.0.1: version "4.0.1" diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index 7ec41d628..e65c234ba 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -1,5 +1,5 @@ "use strict"; -Object.defineProperty(exports, "__esModule", {value: true}); +Object.defineProperty(exports, "__esModule", { value: true }); exports[Symbol.toStringTag] = "Module"; var shared = require("@vue/shared"); var vue = require("vue"); @@ -57,46 +57,46 @@ const initI18nAsyncMsgsOnce = /* @__PURE__ */ uniShared.once(() => { })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(uniI18n.LOCALE_ZH_HANS, normalizeMessages(name, {error: "\u8FDE\u63A5\u670D\u52A1\u5668\u8D85\u65F6\uFF0C\u70B9\u51FB\u5C4F\u5E55\u91CD\u8BD5"})); + i18n.add(uniI18n.LOCALE_ZH_HANS, normalizeMessages(name, { error: "\u8FDE\u63A5\u670D\u52A1\u5668\u8D85\u65F6\uFF0C\u70B9\u51FB\u5C4F\u5E55\u91CD\u8BD5" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(uniI18n.LOCALE_ZH_HANT, normalizeMessages(name, {error: "\u9023\u63A5\u670D\u52D9\u5668\u8D85\u6642\uFF0C\u9EDE\u64CA\u5C4F\u5E55\u91CD\u8A66"})); + i18n.add(uniI18n.LOCALE_ZH_HANT, normalizeMessages(name, { error: "\u9023\u63A5\u670D\u52D9\u5668\u8D85\u6642\uFF0C\u9EDE\u64CA\u5C4F\u5E55\u91CD\u8A66" })); } }); const initI18nPickerMsgsOnce = /* @__PURE__ */ uniShared.once(() => { const name = "uni.picker."; if (__UNI_FEATURE_I18N_EN__) { - i18n.add(uniI18n.LOCALE_EN, normalizeMessages(name, {done: "Done", cancel: "Cancel"})); + i18n.add(uniI18n.LOCALE_EN, normalizeMessages(name, { done: "Done", cancel: "Cancel" })); } if (__UNI_FEATURE_I18N_ES__) { - i18n.add(uniI18n.LOCALE_ES, normalizeMessages(name, {done: "OK", cancel: "Cancelar"})); + i18n.add(uniI18n.LOCALE_ES, normalizeMessages(name, { done: "OK", cancel: "Cancelar" })); } if (__UNI_FEATURE_I18N_FR__) { - i18n.add(uniI18n.LOCALE_FR, normalizeMessages(name, {done: "OK", cancel: "Annuler"})); + i18n.add(uniI18n.LOCALE_FR, normalizeMessages(name, { done: "OK", cancel: "Annuler" })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(uniI18n.LOCALE_ZH_HANS, normalizeMessages(name, {done: "\u5B8C\u6210", cancel: "\u53D6\u6D88"})); + i18n.add(uniI18n.LOCALE_ZH_HANS, normalizeMessages(name, { done: "\u5B8C\u6210", cancel: "\u53D6\u6D88" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(uniI18n.LOCALE_ZH_HANT, normalizeMessages(name, {done: "\u5B8C\u6210", cancel: "\u53D6\u6D88"})); + i18n.add(uniI18n.LOCALE_ZH_HANT, normalizeMessages(name, { done: "\u5B8C\u6210", cancel: "\u53D6\u6D88" })); } }); const initI18nVideoMsgsOnce = /* @__PURE__ */ uniShared.once(() => { const name = "uni.video."; if (__UNI_FEATURE_I18N_EN__) { - i18n.add(uniI18n.LOCALE_EN, normalizeMessages(name, {danmu: "Danmu", volume: "Volume"})); + i18n.add(uniI18n.LOCALE_EN, normalizeMessages(name, { danmu: "Danmu", volume: "Volume" })); } if (__UNI_FEATURE_I18N_ES__) { - i18n.add(uniI18n.LOCALE_ES, normalizeMessages(name, {danmu: "Danmu", volume: "Volumen"})); + i18n.add(uniI18n.LOCALE_ES, normalizeMessages(name, { danmu: "Danmu", volume: "Volumen" })); } if (__UNI_FEATURE_I18N_FR__) { - i18n.add(uniI18n.LOCALE_FR, normalizeMessages(name, {danmu: "Danmu", volume: "Le Volume"})); + i18n.add(uniI18n.LOCALE_FR, normalizeMessages(name, { danmu: "Danmu", volume: "Le Volume" })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(uniI18n.LOCALE_ZH_HANS, normalizeMessages(name, {danmu: "\u5F39\u5E55", volume: "\u97F3\u91CF"})); + i18n.add(uniI18n.LOCALE_ZH_HANS, normalizeMessages(name, { danmu: "\u5F39\u5E55", volume: "\u97F3\u91CF" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(uniI18n.LOCALE_ZH_HANT, normalizeMessages(name, {danmu: "\u5F48\u5E55", volume: "\u97F3\u91CF"})); + i18n.add(uniI18n.LOCALE_ZH_HANT, normalizeMessages(name, { danmu: "\u5F48\u5E55", volume: "\u97F3\u91CF" })); } }); const E = function() { @@ -275,7 +275,7 @@ function findUniTarget(target) { return target; } function createNativeEvent(evt) { - const {type, timeStamp, target, currentTarget} = evt; + const { type, timeStamp, target, currentTarget } = evt; const event = { type, timeStamp, @@ -395,7 +395,7 @@ function usePageRoute() { if (searchPos > -1) { query = uniShared.parseQuery(url.slice(searchPos + 1, hashPos > -1 ? hashPos : url.length)); } - const {meta} = __uniRoutes[0]; + const { meta } = __uniRoutes[0]; return { meta, query, @@ -413,7 +413,7 @@ const PAGE_META_KEYS = [ "refreshOptions" ]; function mergePageMeta(id, pageMeta) { - const res = shared.extend({id}, __uniConfig.globalStyle, pageMeta); + const res = shared.extend({ id }, __uniConfig.globalStyle, pageMeta); PAGE_META_KEYS.forEach((name) => { res[name] = shared.extend({}, __uniConfig.globalStyle[name], pageMeta[name]); }); @@ -421,7 +421,7 @@ function mergePageMeta(id, pageMeta) { } function normalizePageMeta(pageMeta) { if (__UNI_FEATURE_PULL_DOWN_REFRESH__) { - const {enablePullDownRefresh, navigationBar} = pageMeta; + const { enablePullDownRefresh, navigationBar } = pageMeta; if (enablePullDownRefresh) { const refreshOptions = shared.extend({ support: true, @@ -432,7 +432,7 @@ function normalizePageMeta(pageMeta) { offset: 0 }, pageMeta.refreshOptions); let offset = rpx2px(refreshOptions.offset); - const {type} = navigationBar; + const { type } = navigationBar; if (type !== "transparent" && type !== "none") { offset += uniShared.NAVBAR_HEIGHT + 0; } @@ -443,8 +443,8 @@ function normalizePageMeta(pageMeta) { } } if (__UNI_FEATURE_NAVIGATIONBAR__) { - const {navigationBar} = pageMeta; - const {titleSize, titleColor, backgroundColor} = navigationBar; + const { navigationBar } = pageMeta; + const { titleSize, titleColor, backgroundColor } = navigationBar; navigationBar.type = navigationBar.type || "default"; navigationBar.backButton = pageMeta.isQuit ? false : true; navigationBar.titleSize = titleSize || "16px"; @@ -511,14 +511,14 @@ function validateProtocols(name, args, protocol, onFail) { if (argsLen > i) { data[opts.name] = args[i]; } - validateProtocol(name, data, {[opts.name]: opts}, onFail); + validateProtocol(name, data, { [opts.name]: opts }, onFail); } } function validateProp(name, value, prop, isAbsent) { if (!shared.isPlainObject(prop)) { - prop = {type: prop}; + prop = { type: prop }; } - const {type, required, validator} = prop; + const { type, required, validator } = prop; if (required && isAbsent) { return 'Missing required args: "' + name + '"'; } @@ -530,7 +530,7 @@ function validateProp(name, value, prop, isAbsent) { const types = shared.isArray(type) ? type : [type]; const expectedTypes = []; for (let i = 0; i < types.length && !isValid; i++) { - const {valid, expectedType} = assertType(value, types[i]); + const { valid, expectedType } = assertType(value, types[i]); expectedTypes.push(expectedType || ""); isValid = valid; } @@ -652,11 +652,11 @@ function normalizeErrMsg(errMsg, name) { } return name + errMsg.substring(errMsg.indexOf(":fail")); } -function createAsyncApiCallback(name, args = {}, {beforeAll, beforeSuccess} = {}) { +function createAsyncApiCallback(name, args = {}, { beforeAll, beforeSuccess } = {}) { if (!shared.isPlainObject(args)) { args = {}; } - const {success, fail, complete} = getApiCallbacks(args); + const { success, fail, complete } = getApiCallbacks(args); const hasSuccess = shared.isFunction(success); const hasFail = shared.isFunction(fail); const hasComplete = shared.isFunction(complete); @@ -696,7 +696,7 @@ function promisify(fn) { return fn(args); } return handlePromise(new Promise((resolve, reject) => { - fn(shared.extend(args, {success: resolve, fail: reject})); + fn(shared.extend(args, { success: resolve, fail: reject })); })); }; } @@ -723,10 +723,10 @@ function formatApiArgs(args, options) { } } function invokeSuccess(id, name, res) { - return invokeCallback(id, shared.extend(res || {}, {errMsg: name + ":ok"})); + return invokeCallback(id, shared.extend(res || {}, { errMsg: name + ":ok" })); } function invokeFail(id, name, err) { - return invokeCallback(id, {errMsg: name + ":fail" + (err ? " " + err : "")}); + return invokeCallback(id, { errMsg: name + ":fail" + (err ? " " + err : "") }); } function beforeInvokeApi(name, args, protocol, options) { if (process.env.NODE_ENV !== "production") { @@ -988,12 +988,12 @@ const _sfc_main$1 = { } } }; -const _hoisted_1$1 = {class: "uni-audio-default"}; -const _hoisted_2$1 = {class: "uni-audio-right"}; -const _hoisted_3$1 = {class: "uni-audio-time"}; -const _hoisted_4$1 = {class: "uni-audio-info"}; -const _hoisted_5 = {class: "uni-audio-name"}; -const _hoisted_6 = {class: "uni-audio-author"}; +const _hoisted_1$1 = { class: "uni-audio-default" }; +const _hoisted_2$1 = { class: "uni-audio-right" }; +const _hoisted_3$1 = { class: "uni-audio-time" }; +const _hoisted_4$1 = { class: "uni-audio-info" }; +const _hoisted_5 = { class: "uni-audio-name" }; +const _hoisted_6 = { class: "uni-audio-author" }; function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createBlock("uni-audio", vue.mergeProps({ id: $props.id, @@ -1002,7 +1002,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { vue.createVNode("audio", { ref: "audio", loop: $props.loop, - style: {"display": "none"} + style: { "display": "none" } }, null, 8, ["loop"]), vue.createVNode("div", _hoisted_1$1, [ vue.createVNode("div", { @@ -1010,7 +1010,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { class: "uni-audio-left" }, [ vue.createVNode("div", { - class: [{play: !$data.playing, pause: $data.playing}, "uni-audio-button"], + class: [{ play: !$data.playing, pause: $data.playing }, "uni-audio-button"], onClick: _cache[1] || (_cache[1] = (...args) => $options.trigger && $options.trigger(...args)) }, null, 2) ], 4), @@ -1135,7 +1135,7 @@ var animation = { } }; const defineBuiltInComponent = (options) => { - const {props: props2, mixins} = options; + const { props: props2, mixins } = options; if (!props2 || !props2.animation) { (mixins || (options.mixins = [])).push(animation); } @@ -1263,7 +1263,9 @@ var index$y = /* @__PURE__ */ defineBuiltInComponent({ emit: emit2 }) { provideForm(emit2); - return () => vue.createVNode("uni-form", null, [vue.createVNode("span", null, [slots.default && slots.default()])]); + return () => vue.createVNode("uni-form", null, { + default: () => [vue.createVNode("span", null, [slots.default && slots.default()])] + }); } }); function provideForm(emit2) { @@ -1331,7 +1333,9 @@ var index$x = /* @__PURE__ */ defineBuiltInComponent({ "uni-label-pointer": pointer }, "onClick": _onClick - }, [slots.default && slots.default()], 10, ["onClick"]); + }, { + default: () => [slots.default && slots.default()] + }, 8, ["class", "onClick"]); } }); function useProvideLabel() { @@ -1429,7 +1433,9 @@ var index$w = /* @__PURE__ */ defineBuiltInComponent({ "ref": rootRef, "onClick": onClick, "class": hasHoverClass && hovering.value ? hoverClass : "" - }, hasHoverClass && binding, booleanAttrs, loadingAttrs), [slots.default && slots.default()], 16, ["onClick"]); + }, hasHoverClass && binding, booleanAttrs, loadingAttrs), { + default: () => [slots.default && slots.default()] + }, 16, ["onClick", "class"]); }; } }); @@ -1451,11 +1457,14 @@ var ResizeSensor = /* @__PURE__ */ defineBuiltInComponent({ return () => vue.createVNode("uni-resize-sensor", { "ref": rootRef, "onAnimationstartOnce": update - }, [vue.createVNode("div", { - "onScroll": update - }, [vue.createVNode("div", null, null)], 40, ["onScroll"]), vue.createVNode("div", { - "onScroll": update - }, [vue.createVNode("div", null, null)], 40, ["onScroll"])], 40, ["onAnimationstartOnce"]); + }, { + default: () => [vue.createVNode("div", { + "onScroll": update + }, [vue.createVNode("div", null, null)], 40, ["onScroll"]), vue.createVNode("div", { + "onScroll": update + }, [vue.createVNode("div", null, null)], 40, ["onScroll"])], + _: 1 + }, 8, ["onAnimationstartOnce"]); } }); function useResizeSensorUpdate(rootRef, emit2, reset) { @@ -1599,17 +1608,20 @@ var index$v = /* @__PURE__ */ defineBuiltInComponent({ return vue.createVNode("uni-canvas", vue.mergeProps({ "canvas-id": canvasId, "disable-scroll": disableScroll - }, $attrs.value, $excludeAttrs.value, _listeners.value), [vue.createVNode("canvas", { - "ref": canvas, - "class": "uni-canvas-canvas", - "width": "300", - "height": "150" - }, null, 512), vue.createVNode("div", { - "style": "position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;" - }, [slots.default && slots.default()]), vue.createVNode(ResizeSensor, { - "ref": sensor, - "onResize": _resize - }, null, 8, ["onResize"])], 16, ["canvas-id", "disable-scroll"]); + }, $attrs.value, $excludeAttrs.value, _listeners.value), { + default: () => [vue.createVNode("canvas", { + "ref": canvas, + "class": "uni-canvas-canvas", + "width": "300", + "height": "150" + }, null, 512), vue.createVNode("div", { + "style": "position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;" + }, [slots.default && slots.default()]), vue.createVNode(ResizeSensor, { + "ref": sensor, + "onResize": _resize + }, null, 8, ["onResize"])], + _: 1 + }, 16, ["canvas-id", "disable-scroll"]); }; } }); @@ -2057,7 +2069,9 @@ var index$u = /* @__PURE__ */ defineBuiltInComponent({ return () => { return vue.createVNode("uni-checkbox-group", { "ref": rootRef - }, [slots.default && slots.default()], 512); + }, { + default: () => [slots.default && slots.default()] + }, 512); }; } }); @@ -2154,13 +2168,15 @@ var index$t = /* @__PURE__ */ defineBuiltInComponent({ } = useBooleanAttr(props2, "disabled"); return vue.createVNode("uni-checkbox", vue.mergeProps(booleanAttrs, { "onClick": _onClick - }), [vue.createVNode("div", { - "class": "uni-checkbox-wrapper" - }, [vue.createVNode("div", { - "class": ["uni-checkbox-input", { - "uni-checkbox-input-disabled": props2.disabled - }] - }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])], 16, ["onClick"]); + }), { + default: () => [vue.createVNode("div", { + "class": "uni-checkbox-wrapper" + }, [vue.createVNode("div", { + "class": ["uni-checkbox-input", { + "uni-checkbox-input-disabled": props2.disabled + }] + }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])] + }, 16, ["onClick"]); }; } }); @@ -2360,7 +2376,7 @@ function useQuill(props2, rootRef, trigger) { }); const id = useContextInfo(); useSubscribe((type, data) => { - const {options, callbackId} = data; + const { options, callbackId } = data; let res; let errMsg; { @@ -2486,7 +2502,9 @@ var index$r = /* @__PURE__ */ defineBuiltInComponent({ const { value } = path; - return vue.createVNode("uni-icon", null, [value && value.d && createSvgIconVNode(value.d, props2.color || value.c, rpx2px(props2.size))]); + return vue.createVNode("uni-icon", null, { + default: () => [value && value.d && createSvgIconVNode(value.d, props2.color || value.c, rpx2px(props2.size))] + }); }; } }); @@ -2553,14 +2571,17 @@ var index$q = /* @__PURE__ */ defineBuiltInComponent({ } = state; return vue.createVNode("uni-image", { "ref": rootRef - }, [vue.createVNode("div", { - "style": modeStyle - }, null, 4), imgSrc ? vue.createVNode("img", { - "src": imgSrc, - "draggable": props2.draggable - }, null, 8, ["src", "draggable"]) : vue.createVNode("img", null, null), FIX_MODES[mode2] ? vue.createVNode(ResizeSensor, { - "onResize": fixSize - }, null, 8, ["onResize"]) : vue.createVNode("span", null, null)], 512); + }, { + default: () => [vue.createVNode("div", { + "style": modeStyle + }, null, 4), imgSrc ? vue.createVNode("img", { + "src": imgSrc, + "draggable": props2.draggable + }, null, 8, ["src", "draggable"]) : vue.createVNode("img", null, null), FIX_MODES[mode2] ? vue.createVNode(ResizeSensor, { + "onResize": fixSize + }, null, 8, ["onResize"]) : vue.createVNode("span", null, null)], + _: 1 + }, 512); }; } }); @@ -2744,7 +2765,7 @@ const UniViewJSBridgeSubscribe = function() { if (pageIds.includes(pageId)) return; pageIds.push(pageId); - UniViewJSBridge.subscribe(pageId + ".getSelectedTextRange", function({pageId: pageId2, callbackId}) { + UniViewJSBridge.subscribe(pageId + ".getSelectedTextRange", function({ pageId: pageId2, callbackId }) { const activeElement = document.activeElement; if (!activeElement) return; @@ -3000,11 +3021,11 @@ function useEvent(fieldRef, state, trigger, triggerInput, beforeInput) { } function useField(props2, rootRef, emit2, beforeInput) { UniViewJSBridgeSubscribe(); - const {fieldRef, state, trigger} = useBase(props2, rootRef, emit2); - const {triggerInput} = useValueSync(props2, state, emit2, trigger); + const { fieldRef, state, trigger } = useBase(props2, rootRef, emit2); + const { triggerInput } = useValueSync(props2, state, emit2, trigger); useAutoFocus(props2, fieldRef); useKeyboard$1(props2, fieldRef); - const {state: scopedAttrsState} = useScopedAttrs(); + const { state: scopedAttrsState } = useScopedAttrs(); useFormField("name", state); useEvent(fieldRef, state, trigger, triggerInput, beforeInput); const fixDisabledColor = false; @@ -3108,16 +3129,18 @@ var Input = /* @__PURE__ */ defineBuiltInComponent({ }, null, 40, ["value", "disabled", "type", "maxlength", "step", "enterkeyhint", "onKeyup"]); return vue.createVNode("uni-input", { "ref": rootRef - }, [vue.createVNode("div", { - "class": "uni-input-wrapper" - }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-input-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vue.vShow, !(state.value.length || !valid.value)]]), props2.confirmType === "search" ? vue.createVNode("form", { - "action": "", - "onSubmit": (event) => event.preventDefault(), - "class": "uni-input-form" - }, [inputNode], 40, ["onSubmit"]) : inputNode])], 512); + }, { + default: () => [vue.createVNode("div", { + "class": "uni-input-wrapper" + }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { + "style": props2.placeholderStyle, + "class": ["uni-input-placeholder", props2.placeholderClass] + }), [props2.placeholder], 16), [[vue.vShow, !(state.value.length || !valid.value)]]), props2.confirmType === "search" ? vue.createVNode("form", { + "action": "", + "onSubmit": (event) => event.preventDefault(), + "class": "uni-input-form" + }, [inputNode], 40, ["onSubmit"]) : inputNode])] + }, 512); }; } }); @@ -3127,7 +3150,7 @@ function entries(obj) { const DEFAULT_EXCLUDE_KEYS = ["class", "style"]; const LISTENER_PREFIX = /^on[A-Z]+/; const useAttrs = (params = {}) => { - const {excludeListeners = false, excludeKeys = []} = params; + const { excludeListeners = false, excludeKeys = [] } = params; const instance = vue.getCurrentInstance(); const attrs = vue.shallowRef({}); const listeners = vue.shallowRef({}); @@ -3156,11 +3179,11 @@ const useAttrs = (params = {}) => { listeners.value = res.listeners; excludeAttrs.value = res.exclude; }); - return {$attrs: attrs, $listeners: listeners, $excludeAttrs: excludeAttrs}; + return { $attrs: attrs, $listeners: listeners, $excludeAttrs: excludeAttrs }; }; function initScrollBounce() { } -function disableScrollBounce({disable}) { +function disableScrollBounce({ disable }) { } function flatVNode(nodes) { const array = []; @@ -3243,9 +3266,12 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({ movableViewItems = flatVNode(defaultSlots); return vue.createVNode("uni-movable-area", vue.mergeProps({ "ref": rootRef - }, $attrs.value, $excludeAttrs.value, _listeners), [vue.createVNode(ResizeSensor, { - "onReize": movableAreaEvents._resize - }, null, 8, ["onReize"]), movableViewItems], 16); + }, $attrs.value, $excludeAttrs.value, _listeners), { + default: () => [vue.createVNode(ResizeSensor, { + "onReize": movableAreaEvents._resize + }, null, 8, ["onReize"]), movableViewItems], + _: 2 + }, 16); }; } }); @@ -3844,9 +3870,12 @@ var index$o = /* @__PURE__ */ defineBuiltInComponent({ return () => { return vue.createVNode("uni-movable-view", { "ref": rootRef - }, [vue.createVNode(ResizeSensor, { - "onResize": setParent - }, null, 8, ["onResize"]), slots.default && slots.default()], 512); + }, { + default: () => [vue.createVNode(ResizeSensor, { + "onResize": setParent + }, null, 8, ["onResize"]), slots.default && slots.default()], + _: 1 + }, 512); }; } }); @@ -4295,7 +4324,9 @@ var index$n = /* @__PURE__ */ defineBuiltInComponent({ "class": hasHoverClass && hovering.value ? hoverClass : "" }, hasHoverClass && binding, { "onClick": onClick - }), [slots.default && slots.default()], 16, ["onClick"]); + }), { + default: () => [slots.default && slots.default()] + }, 16, ["class", "onClick"]); }; } }); @@ -4389,14 +4420,17 @@ var PickerView = /* @__PURE__ */ defineBuiltInComponent({ columnVNodes = flatVNode(defaultSlots); return vue.createVNode("uni-picker-view", { "ref": rootRef - }, [vue.createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": ({ - height - }) => state.height = height - }, null, 8, ["onResize"]), vue.createVNode("div", { - "class": "uni-picker-view-wrapper" - }, [defaultSlots])], 512); + }, { + default: () => [vue.createVNode(ResizeSensor, { + "ref": resizeSensorRef, + "onResize": ({ + height + }) => state.height = height + }, null, 8, ["onResize"]), vue.createVNode("div", { + "class": "uni-picker-view-wrapper" + }, [defaultSlots])], + _: 2 + }, 512); }; } }); @@ -5161,28 +5195,30 @@ var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({ const padding = `${maskSize.value}px 0`; return vue.createVNode("uni-picker-view-column", { "ref": rootRef - }, [vue.createVNode("div", { - "onWheel": handleWheel, - "onClick": handleTap, - "class": "uni-picker-view-group" - }, [vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-mask", pickerViewProps.maskClass], - "style": `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` - }), null, 16), vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass], - "style": pickerViewProps.indicatorStyle - }), [vue.createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": ({ - height - }) => indicatorHeight.value = height - }, null, 8, ["onResize"])], 16), vue.createVNode("div", { - "ref": contentRef, - "class": ["uni-picker-view-content", className], - "style": { - padding - } - }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])], 512); + }, { + default: () => [vue.createVNode("div", { + "onWheel": handleWheel, + "onClick": handleTap, + "class": "uni-picker-view-group" + }, [vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { + "class": ["uni-picker-view-mask", pickerViewProps.maskClass], + "style": `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` + }), null, 16), vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { + "class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass], + "style": pickerViewProps.indicatorStyle + }), [vue.createVNode(ResizeSensor, { + "ref": resizeSensorRef, + "onResize": ({ + height + }) => indicatorHeight.value = height + }, null, 8, ["onResize"])], 16), vue.createVNode("div", { + "ref": contentRef, + "class": ["uni-picker-view-content", className], + "style": { + padding + } + }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])] + }, 512); }; } }); @@ -5260,15 +5296,18 @@ var index$m = /* @__PURE__ */ defineBuiltInComponent({ } = state; return vue.createVNode("uni-progress", { "class": "uni-progress" - }, [vue.createVNode("div", { - "style": outerBarStyle, - "class": "uni-progress-bar" - }, [vue.createVNode("div", { - "style": innerBarStyle, - "class": "uni-progress-inner-bar" - }, null, 4)], 4), showInfo ? vue.createVNode("p", { - "class": "uni-progress-info" - }, [currentPercent + "%"]) : ""]); + }, { + default: () => [vue.createVNode("div", { + "style": outerBarStyle, + "class": "uni-progress-bar" + }, [vue.createVNode("div", { + "style": innerBarStyle, + "class": "uni-progress-inner-bar" + }, null, 4)], 4), showInfo ? vue.createVNode("p", { + "class": "uni-progress-info" + }, [currentPercent + "%"]) : ""], + _: 1 + }); }; } }); @@ -5330,7 +5369,9 @@ var index$l = /* @__PURE__ */ defineBuiltInComponent({ return () => { return vue.createVNode("uni-radio-group", { "ref": rootRef - }, [slots.default && slots.default()], 512); + }, { + default: () => [slots.default && slots.default()] + }, 512); }; } }); @@ -5454,14 +5495,16 @@ var index$k = /* @__PURE__ */ defineBuiltInComponent({ } = useBooleanAttr(props2, "disabled"); return vue.createVNode("uni-radio", vue.mergeProps(booleanAttrs, { "onClick": _onClick - }), [vue.createVNode("div", { - "class": "uni-radio-wrapper" - }, [vue.createVNode("div", { - "class": ["uni-radio-input", { - "uni-radio-input-disabled": props2.disabled - }], - "style": radioChecked.value ? checkedStyle.value : "" - }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])], 16, ["onClick"]); + }), { + default: () => [vue.createVNode("div", { + "class": "uni-radio-wrapper" + }, [vue.createVNode("div", { + "class": ["uni-radio-input", { + "uni-radio-input-disabled": props2.disabled + }], + "style": radioChecked.value ? checkedStyle.value : "" + }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])] + }, 16, ["onClick"]); }; } }); @@ -5733,7 +5776,9 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({ return () => { return vue.createVNode("uni-rich-text", { "ref": rootRef - }, [vue.createVNode("div", null, null)], 512); + }, { + default: () => [vue.createVNode("div", null, null)] + }, 512); }; } }); @@ -5838,54 +5883,56 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ } = state; return vue.createVNode("uni-scroll-view", { "ref": rootRef - }, [vue.createVNode("div", { - "ref": wrap, - "class": "uni-scroll-view" - }, [vue.createVNode("div", { - "ref": main, - "style": mainStyle.value, - "class": "uni-scroll-view" - }, [vue.createVNode("div", { - "ref": content, - "class": "uni-scroll-view-content" - }, [refresherEnabled ? vue.createVNode("div", { - "ref": refresherinner, - "style": { - backgroundColor: refresherBackground, - height: refresherHeight + "px" - }, - "class": "uni-scroll-view-refresher" - }, [refresherDefaultStyle !== "none" ? vue.createVNode("div", { - "class": "uni-scroll-view-refresh" - }, [vue.createVNode("div", { - "class": "uni-scroll-view-refresh-inner" - }, [refreshState == "pulling" ? vue.createVNode("svg", { - "style": { - transform: "rotate(" + refreshRotate + "deg)" - }, - "fill": "#2BD009", - "class": "uni-scroll-view-refresh__icon", - "width": "24", - "height": "24", - "viewBox": "0 0 24 24" - }, [vue.createVNode("path", { - "d": "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" - }, null), vue.createVNode("path", { - "d": "M0 0h24v24H0z", - "fill": "none" - }, null)], 4) : null, refreshState == "refreshing" ? vue.createVNode("svg", { - "class": "uni-scroll-view-refresh__spinner", - "width": "24", - "height": "24", - "viewBox": "25 25 50 50" - }, [vue.createVNode("circle", { - "cx": "50", - "cy": "50", - "r": "20", - "fill": "none", - "style": "color: #2bd009", - "stroke-width": "3" - }, null)]) : null])]) : null, refresherDefaultStyle == "none" ? slots.refresher && slots.refresher() : null], 4) : null, slots.default && slots.default()], 512)], 4)], 512)], 512); + }, { + default: () => [vue.createVNode("div", { + "ref": wrap, + "class": "uni-scroll-view" + }, [vue.createVNode("div", { + "ref": main, + "style": mainStyle.value, + "class": "uni-scroll-view" + }, [vue.createVNode("div", { + "ref": content, + "class": "uni-scroll-view-content" + }, [refresherEnabled ? vue.createVNode("div", { + "ref": refresherinner, + "style": { + backgroundColor: refresherBackground, + height: refresherHeight + "px" + }, + "class": "uni-scroll-view-refresher" + }, [refresherDefaultStyle !== "none" ? vue.createVNode("div", { + "class": "uni-scroll-view-refresh" + }, [vue.createVNode("div", { + "class": "uni-scroll-view-refresh-inner" + }, [refreshState == "pulling" ? vue.createVNode("svg", { + "style": { + transform: "rotate(" + refreshRotate + "deg)" + }, + "fill": "#2BD009", + "class": "uni-scroll-view-refresh__icon", + "width": "24", + "height": "24", + "viewBox": "0 0 24 24" + }, [vue.createVNode("path", { + "d": "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" + }, null), vue.createVNode("path", { + "d": "M0 0h24v24H0z", + "fill": "none" + }, null)], 4) : null, refreshState == "refreshing" ? vue.createVNode("svg", { + "class": "uni-scroll-view-refresh__spinner", + "width": "24", + "height": "24", + "viewBox": "25 25 50 50" + }, [vue.createVNode("circle", { + "cx": "50", + "cy": "50", + "r": "20", + "fill": "none", + "style": "color: #2bd009", + "stroke-width": "3" + }, null)]) : null])]) : null, refresherDefaultStyle == "none" ? slots.refresher && slots.refresher() : null], 4) : null, slots.default && slots.default()], 512)], 4)], 512)] + }, 512); }; } }); @@ -6136,27 +6183,30 @@ var index$h = /* @__PURE__ */ defineBuiltInComponent({ return vue.createVNode("uni-slider", { "ref": sliderRef, "onClick": withWebEvent(_onClick) - }, [vue.createVNode("div", { - "class": "uni-slider-wrapper" - }, [vue.createVNode("div", { - "class": "uni-slider-tap-area" - }, [vue.createVNode("div", { - "style": setBgColor.value, - "class": "uni-slider-handle-wrapper" - }, [vue.createVNode("div", { - "ref": sliderHandleRef, - "style": setBlockBg.value, - "class": "uni-slider-handle" - }, null, 4), vue.createVNode("div", { - "style": setBlockStyle.value, - "class": "uni-slider-thumb" - }, null, 4), vue.createVNode("div", { - "style": setActiveColor.value, - "class": "uni-slider-track" - }, null, 4)], 4)]), vue.withDirectives(vue.createVNode("span", { - "ref": sliderValueRef, - "class": "uni-slider-value" - }, [sliderValue.value], 512), [[vue.vShow, props2.showValue]])]), vue.createVNode("slot", null, null)], 8, ["onClick"]); + }, { + default: () => [vue.createVNode("div", { + "class": "uni-slider-wrapper" + }, [vue.createVNode("div", { + "class": "uni-slider-tap-area" + }, [vue.createVNode("div", { + "style": setBgColor.value, + "class": "uni-slider-handle-wrapper" + }, [vue.createVNode("div", { + "ref": sliderHandleRef, + "style": setBlockBg.value, + "class": "uni-slider-handle" + }, null, 4), vue.createVNode("div", { + "style": setBlockStyle.value, + "class": "uni-slider-thumb" + }, null, 4), vue.createVNode("div", { + "style": setActiveColor.value, + "class": "uni-slider-track" + }, null, 4)], 4)]), vue.withDirectives(vue.createVNode("span", { + "ref": sliderValueRef, + "class": "uni-slider-value" + }, [sliderValue.value], 512), [[vue.vShow, props2.showValue]])]), vue.createVNode("slot", null, null)], + _: 1 + }, 8, ["onClick"]); }; } }); @@ -6723,28 +6773,30 @@ var index$g = /* @__PURE__ */ defineBuiltInComponent({ swiperItems = flatVNode(defaultSlots); return vue.createVNode("uni-swiper", { "ref": rootRef - }, [vue.createVNode("div", { - "ref": slidesWrapperRef, - "class": "uni-swiper-wrapper" - }, [vue.createVNode("div", { - "class": "uni-swiper-slides", - "style": slidesStyle.value - }, [vue.createVNode("div", { - "ref": slideFrameRef, - "class": "uni-swiper-slide-frame", - "style": slideFrameStyle.value - }, [defaultSlots], 4)], 4), props2.indicatorDots && vue.createVNode("div", { - "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] - }, [swiperContexts.value.map((_, index2, array) => vue.createVNode("div", { - "onClick": () => onSwiperDotClick(index2), - "class": { - "uni-swiper-dot": true, - "uni-swiper-dot-active": index2 < state.current + state.displayMultipleItems && index2 >= state.current || index2 < state.current + state.displayMultipleItems - array.length - }, - "style": { - background: index2 === state.current ? props2.indicatorActiveColor : props2.indicatorColor - } - }, null, 14, ["onClick"]))], 2)], 512)], 512); + }, { + default: () => [vue.createVNode("div", { + "ref": slidesWrapperRef, + "class": "uni-swiper-wrapper" + }, [vue.createVNode("div", { + "class": "uni-swiper-slides", + "style": slidesStyle.value + }, [vue.createVNode("div", { + "ref": slideFrameRef, + "class": "uni-swiper-slide-frame", + "style": slideFrameStyle.value + }, [defaultSlots], 4)], 4), props2.indicatorDots && vue.createVNode("div", { + "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] + }, [swiperContexts.value.map((_, index2, array) => vue.createVNode("div", { + "onClick": () => onSwiperDotClick(index2), + "class": { + "uni-swiper-dot": true, + "uni-swiper-dot-active": index2 < state.current + state.displayMultipleItems && index2 >= state.current || index2 < state.current + state.displayMultipleItems - array.length + }, + "style": { + background: index2 === state.current ? props2.indicatorActiveColor : props2.indicatorColor + } + }, null, 14, ["onClick"]))], 2)], 512)] + }, 512); }; } }); @@ -6769,7 +6821,9 @@ var index$f = /* @__PURE__ */ defineBuiltInComponent({ width: "100%", height: "100%" } - }, [slots.default && slots.default()], 512); + }, { + default: () => [slots.default && slots.default()] + }, 512); }; } }); @@ -6837,17 +6891,19 @@ var index$e = /* @__PURE__ */ defineBuiltInComponent({ "ref": rootRef }, booleanAttrs, { "onClick": _onClick - }), [vue.createVNode("div", { - "class": "uni-switch-wrapper" - }, [vue.withDirectives(vue.createVNode("div", { - "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], - "style": { - backgroundColor: switchChecked.value ? color : "#DFDFDF", - borderColor: switchChecked.value ? color : "#DFDFDF" - } - }, null, 6), [[vue.vShow, type === "switch"]]), vue.withDirectives(vue.createVNode("div", { - "class": "uni-checkbox-input" - }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vue.vShow, type === "checkbox"]])])], 16, ["onClick"]); + }), { + default: () => [vue.createVNode("div", { + "class": "uni-switch-wrapper" + }, [vue.withDirectives(vue.createVNode("div", { + "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], + "style": { + backgroundColor: switchChecked.value ? color : "#DFDFDF", + borderColor: switchChecked.value ? color : "#DFDFDF" + } + }, null, 6), [[vue.vShow, type === "switch"]]), vue.withDirectives(vue.createVNode("div", { + "class": "uni-checkbox-input" + }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vue.vShow, type === "checkbox"]])])] + }, 16, ["onClick"]); }; } }); @@ -6872,6 +6928,9 @@ function useSwitchInject(props2, switchChecked) { } return uniLabel; } +function _isSlot$3(s) { + return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s); +} const SPACE_UNICODE = { ensp: "\u2002", emsp: "\u2003", @@ -6909,6 +6968,7 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({ slots }) { return () => { + let _slot; const children = []; if (slots.default) { slots.default().forEach((vnode) => { @@ -6938,7 +6998,10 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({ } return vue.createVNode("uni-text", { "selectable": props2.selectable ? true : null - }, [vue.createVNode("span", null, children)], 8, ["selectable"]); + }, _isSlot$3(_slot = vue.createVNode("span", null, children)) ? _slot : { + default: () => [_slot], + _: 1 + }, 8, ["selectable"]); }; } }); @@ -7055,24 +7118,26 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({ }, null, 46, ["value", "disabled", "maxlength", "enterkeyhint", "onKeydown", "onKeyup"]); return vue.createVNode("uni-textarea", { "ref": rootRef - }, [vue.createVNode("div", { - "class": "uni-textarea-wrapper" - }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-textarea-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vue.vShow, !state.value.length]]), vue.createVNode("div", { - "ref": lineRef, - "class": "uni-textarea-line" - }, [" "], 512), vue.createVNode("div", { - "class": "uni-textarea-compute" - }, [valueCompute.value.map((item) => vue.createVNode("div", null, [item.trim() ? item : "."])), vue.createVNode(ResizeSensor, { - "initial": true, - "onResize": onResize - }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? vue.createVNode("form", { - "action": "", - "onSubmit": () => false, - "class": "uni-input-form" - }, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); + }, { + default: () => [vue.createVNode("div", { + "class": "uni-textarea-wrapper" + }, [vue.withDirectives(vue.createVNode("div", vue.mergeProps(scopedAttrsState.attrs, { + "style": props2.placeholderStyle, + "class": ["uni-textarea-placeholder", props2.placeholderClass] + }), [props2.placeholder], 16), [[vue.vShow, !state.value.length]]), vue.createVNode("div", { + "ref": lineRef, + "class": "uni-textarea-line" + }, [" "], 512), vue.createVNode("div", { + "class": "uni-textarea-compute" + }, [valueCompute.value.map((item) => vue.createVNode("div", null, [item.trim() ? item : "."])), vue.createVNode(ResizeSensor, { + "initial": true, + "onResize": onResize + }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? vue.createVNode("form", { + "action": "", + "onSubmit": () => false, + "class": "uni-input-form" + }, [textareaNode], 40, ["onSubmit"]) : textareaNode])] + }, 512); }; } }); @@ -7091,9 +7156,13 @@ var index$b = /* @__PURE__ */ defineBuiltInComponent({ if (hoverClass && hoverClass !== "none") { return vue.createVNode("uni-view", vue.mergeProps({ "class": hovering.value ? hoverClass : "" - }, binding), [slots.default && slots.default()], 16); + }, binding), { + default: () => [slots.default && slots.default()] + }, 16, ["class"]); } - return vue.createVNode("uni-view", null, [slots.default && slots.default()]); + return vue.createVNode("uni-view", null, { + default: () => [slots.default && slots.default()] + }); }; } }); @@ -7166,9 +7235,9 @@ function blobToFile(blob, type) { type = type || blob.type || ""; const filename = `${Date.now()}${getExtname(type)}`; try { - file = new File([blob], filename, {type}); + file = new File([blob], filename, { type }); } catch (error) { - blob = blob instanceof Blob ? blob : new Blob([blob], {type}); + blob = blob instanceof Blob ? blob : new Blob([blob], { type }); file = blob; file.name = file.name || filename; } @@ -7210,7 +7279,7 @@ const upx2px = /* @__PURE__ */ defineSyncApi(API_UPX2PX, (number, newDeviceWidth } }, Upx2pxProtocol); const canvasEventCallbacks = createCallbacks("canvasEvent"); -ServiceJSBridge.subscribe("onCanvasMethodCallback", ({callbackId, data}) => { +ServiceJSBridge.subscribe("onCanvasMethodCallback", ({ callbackId, data }) => { const callback = canvasEventCallbacks.pop(callbackId); if (callback) { callback(data); @@ -7218,7 +7287,7 @@ ServiceJSBridge.subscribe("onCanvasMethodCallback", ({callbackId, data}) => { }); const API_ON_TAB_BAR_MID_BUTTON_TAP = "onTabBarMidButtonTap"; const getSelectedTextRangeEventCallbacks = createCallbacks("getSelectedTextRangeEvent"); -ServiceJSBridge.subscribe && ServiceJSBridge.subscribe("onGetSelectedTextRange", ({callbackId, data}) => { +ServiceJSBridge.subscribe && ServiceJSBridge.subscribe("onGetSelectedTextRange", ({ callbackId, data }) => { const callback = getSelectedTextRangeEventCallbacks.pop(callbackId); if (callback) { callback(data); @@ -7381,7 +7450,7 @@ function getCurrentPages$1() { function initPublicPage(route) { const meta = usePageMeta(); if (!__UNI_FEATURE_PAGES__) { - const {path: path2, alias} = __uniRoutes[0]; + const { path: path2, alias } = __uniRoutes[0]; return { id: meta.id, path: path2, @@ -7391,7 +7460,7 @@ function initPublicPage(route) { meta }; } - const {path} = route; + const { path } = route; return { id: meta.id, path, @@ -7481,7 +7550,7 @@ function createRouterOptions() { }; } function initHistory() { - let {base} = __uniConfig.router; + let { base } = __uniConfig.router; if (base === "/") { base = ""; } @@ -7506,7 +7575,7 @@ function initApp(vm) { appVm.$vm = vm; appVm.globalData = appVm.$options.globalData || {}; } -function wrapperComponentSetup(comp, {init, setup, before}) { +function wrapperComponentSetup(comp, { init, setup, before }) { before && before(comp); const oldSetup = comp.setup; comp.setup = (props2, ctx) => { @@ -8208,147 +8277,149 @@ var index$8 = /* @__PURE__ */ defineBuiltInComponent({ return vue.createVNode("uni-video", { "ref": rootRef, "id": props2.id - }, [vue.createVNode("div", { - "ref": containerRef, - "class": "uni-video-container", - "onTouchstart": onTouchstart, - "onTouchend": onTouchend, - "onTouchmove": onTouchmove, - "onFullscreenchange": vue.withModifiers(onFullscreenChange, ["stop"]), - "onWebkitfullscreenchange": vue.withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) - }, [vue.createVNode("video", vue.mergeProps({ - "ref": videoRef, - "style": { - "object-fit": props2.objectFit - }, - "muted": !!props2.muted, - "loop": !!props2.loop, - "src": videoState.src, - "poster": props2.poster, - "autoplay": !!props2.autoplay - }, videoAttrs.value, { - "class": "uni-video-video", - "webkit-playsinline": true, - "playsinline": true, - "onClick": toggleControls, - "onDurationchange": onDurationChange, - "onLoadedmetadata": onLoadedMetadata, - "onProgress": onProgress, - "onWaiting": onWaiting, - "onError": onVideoError, - "onPlay": onPlay, - "onPause": onPause, - "onEnded": onEnded, - "onTimeupdate": (event) => { - onTimeUpdate(event); - updateDanmu(event); - }, - "onWebkitbeginfullscreen": () => emitFullscreenChange(true), - "onX5videoenterfullscreen": () => emitFullscreenChange(true), - "onWebkitendfullscreen": () => emitFullscreenChange(false), - "onX5videoexitfullscreen": () => emitFullscreenChange(false) - }), null, 16, ["muted", "loop", "src", "poster", "autoplay", "webkit-playsinline", "playsinline", "onClick", "onDurationchange", "onLoadedmetadata", "onProgress", "onWaiting", "onError", "onPlay", "onPause", "onEnded", "onTimeupdate", "onWebkitbeginfullscreen", "onX5videoenterfullscreen", "onWebkitendfullscreen", "onX5videoexitfullscreen"]), vue.withDirectives(vue.createVNode("div", { - "class": "uni-video-bar uni-video-bar-full", - "onClick": vue.withModifiers(() => { - }, ["stop"]) - }, [vue.createVNode("div", { - "class": "uni-video-controls" - }, [vue.withDirectives(vue.createVNode("div", { - "class": { - "uni-video-control-button": true, - "uni-video-control-button-play": !videoState.playing, - "uni-video-control-button-pause": videoState.playing - }, - "onClick": vue.withModifiers(toggle, ["stop"]) - }, null, 10, ["onClick"]), [[vue.vShow, props2.showPlayBtn]]), vue.createVNode("div", { - "class": "uni-video-current-time" - }, [formatTime(videoState.currentTime)]), vue.createVNode("div", { - "ref": progressRef, - "class": "uni-video-progress-container", - "onClick": vue.withModifiers(clickProgress, ["stop"]) - }, [vue.createVNode("div", { - "class": "uni-video-progress" - }, [vue.createVNode("div", { - "style": { - width: videoState.buffered + "%" - }, - "class": "uni-video-progress-buffered" - }, null, 4), vue.createVNode("div", { - "ref": ballRef, - "style": { - left: videoState.progress + "%" - }, - "class": "uni-video-ball" - }, [vue.createVNode("div", { - "class": "uni-video-inner" - }, null)], 4)])], 8, ["onClick"]), vue.createVNode("div", { - "class": "uni-video-duration" - }, [formatTime(Number(props2.duration) || videoState.duration)])]), vue.withDirectives(vue.createVNode("div", { - "class": { - "uni-video-danmu-button": true, - "uni-video-danmu-button-active": danmuState.enable - }, - "onClick": vue.withModifiers(toggleDanmu, ["stop"]) - }, [t2("uni.video.danmu")], 10, ["onClick"]), [[vue.vShow, props2.danmuBtn]]), vue.withDirectives(vue.createVNode("div", { - "class": { - "uni-video-fullscreen": true, - "uni-video-type-fullscreen": fullscreenState.fullscreen - }, - "onClick": vue.withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) - }, null, 10, ["onClick"]), [[vue.vShow, props2.showFullscreenBtn]])], 8, ["onClick"]), [[vue.vShow, controlsState.controlsShow]]), vue.withDirectives(vue.createVNode("div", { - "ref": danmuRef, - "style": "z-index: 0;", - "class": "uni-video-danmu" - }, null, 512), [[vue.vShow, videoState.start && danmuState.enable]]), controlsState.centerPlayBtnShow && vue.createVNode("div", { - "class": "uni-video-cover", - "onClick": vue.withModifiers(() => { - }, ["stop"]) - }, [vue.createVNode("div", { - "class": "uni-video-cover-play-button", - "onClick": vue.withModifiers(play, ["stop"]) - }, null, 8, ["onClick"]), vue.createVNode("p", { - "class": "uni-video-cover-duration" - }, [formatTime(Number(props2.duration) || videoState.duration)])], 8, ["onClick"]), vue.createVNode("div", { - "class": { - "uni-video-toast": true, - "uni-video-toast-volume": gestureState.gestureType === "volume" - } - }, [vue.createVNode("div", { - "class": "uni-video-toast-title" - }, [t2("uni.video.volume")]), vue.createVNode("svg", { - "class": "uni-video-toast-icon", - "width": "200px", - "height": "200px", - "viewBox": "0 0 1024 1024", - "version": "1.1", - "xmlns": "http://www.w3.org/2000/svg" - }, [vue.createVNode("path", { - "d": "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" - }, null)]), vue.createVNode("div", { - "class": "uni-video-toast-value" - }, [vue.createVNode("div", { - "style": { - width: gestureState.volumeNew * 100 + "%" - }, - "class": "uni-video-toast-value-content" - }, [vue.createVNode("div", { - "class": "uni-video-toast-volume-grids" - }, [vue.renderList(10, () => vue.createVNode("div", { - "class": "uni-video-toast-volume-grids-item" - }, null))])], 4)])], 2), vue.createVNode("div", { - "class": { - "uni-video-toast": true, - "uni-video-toast-progress": gestureState.gestureType === "progress" - } - }, [vue.createVNode("div", { - "class": "uni-video-toast-title" - }, [formatTime(gestureState.currentTimeNew), " / ", formatTime(videoState.duration)])], 2), vue.createVNode("div", { - "class": "uni-video-slots" - }, [slots.default && slots.default()])], 40, ["onTouchstart", "onTouchend", "onTouchmove", "onFullscreenchange", "onWebkitfullscreenchange"])], 8, ["id"]); + }, { + default: () => [vue.createVNode("div", { + "ref": containerRef, + "class": "uni-video-container", + "onTouchstart": onTouchstart, + "onTouchend": onTouchend, + "onTouchmove": onTouchmove, + "onFullscreenchange": vue.withModifiers(onFullscreenChange, ["stop"]), + "onWebkitfullscreenchange": vue.withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) + }, [vue.createVNode("video", vue.mergeProps({ + "ref": videoRef, + "style": { + "object-fit": props2.objectFit + }, + "muted": !!props2.muted, + "loop": !!props2.loop, + "src": videoState.src, + "poster": props2.poster, + "autoplay": !!props2.autoplay + }, videoAttrs.value, { + "class": "uni-video-video", + "webkit-playsinline": true, + "playsinline": true, + "onClick": toggleControls, + "onDurationchange": onDurationChange, + "onLoadedmetadata": onLoadedMetadata, + "onProgress": onProgress, + "onWaiting": onWaiting, + "onError": onVideoError, + "onPlay": onPlay, + "onPause": onPause, + "onEnded": onEnded, + "onTimeupdate": (event) => { + onTimeUpdate(event); + updateDanmu(event); + }, + "onWebkitbeginfullscreen": () => emitFullscreenChange(true), + "onX5videoenterfullscreen": () => emitFullscreenChange(true), + "onWebkitendfullscreen": () => emitFullscreenChange(false), + "onX5videoexitfullscreen": () => emitFullscreenChange(false) + }), null, 16, ["muted", "loop", "src", "poster", "autoplay", "webkit-playsinline", "playsinline", "onClick", "onDurationchange", "onLoadedmetadata", "onProgress", "onWaiting", "onError", "onPlay", "onPause", "onEnded", "onTimeupdate", "onWebkitbeginfullscreen", "onX5videoenterfullscreen", "onWebkitendfullscreen", "onX5videoexitfullscreen"]), vue.withDirectives(vue.createVNode("div", { + "class": "uni-video-bar uni-video-bar-full", + "onClick": vue.withModifiers(() => { + }, ["stop"]) + }, [vue.createVNode("div", { + "class": "uni-video-controls" + }, [vue.withDirectives(vue.createVNode("div", { + "class": { + "uni-video-control-button": true, + "uni-video-control-button-play": !videoState.playing, + "uni-video-control-button-pause": videoState.playing + }, + "onClick": vue.withModifiers(toggle, ["stop"]) + }, null, 10, ["onClick"]), [[vue.vShow, props2.showPlayBtn]]), vue.createVNode("div", { + "class": "uni-video-current-time" + }, [formatTime(videoState.currentTime)]), vue.createVNode("div", { + "ref": progressRef, + "class": "uni-video-progress-container", + "onClick": vue.withModifiers(clickProgress, ["stop"]) + }, [vue.createVNode("div", { + "class": "uni-video-progress" + }, [vue.createVNode("div", { + "style": { + width: videoState.buffered + "%" + }, + "class": "uni-video-progress-buffered" + }, null, 4), vue.createVNode("div", { + "ref": ballRef, + "style": { + left: videoState.progress + "%" + }, + "class": "uni-video-ball" + }, [vue.createVNode("div", { + "class": "uni-video-inner" + }, null)], 4)])], 8, ["onClick"]), vue.createVNode("div", { + "class": "uni-video-duration" + }, [formatTime(Number(props2.duration) || videoState.duration)])]), vue.withDirectives(vue.createVNode("div", { + "class": { + "uni-video-danmu-button": true, + "uni-video-danmu-button-active": danmuState.enable + }, + "onClick": vue.withModifiers(toggleDanmu, ["stop"]) + }, [t2("uni.video.danmu")], 10, ["onClick"]), [[vue.vShow, props2.danmuBtn]]), vue.withDirectives(vue.createVNode("div", { + "class": { + "uni-video-fullscreen": true, + "uni-video-type-fullscreen": fullscreenState.fullscreen + }, + "onClick": vue.withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) + }, null, 10, ["onClick"]), [[vue.vShow, props2.showFullscreenBtn]])], 8, ["onClick"]), [[vue.vShow, controlsState.controlsShow]]), vue.withDirectives(vue.createVNode("div", { + "ref": danmuRef, + "style": "z-index: 0;", + "class": "uni-video-danmu" + }, null, 512), [[vue.vShow, videoState.start && danmuState.enable]]), controlsState.centerPlayBtnShow && vue.createVNode("div", { + "class": "uni-video-cover", + "onClick": vue.withModifiers(() => { + }, ["stop"]) + }, [vue.createVNode("div", { + "class": "uni-video-cover-play-button", + "onClick": vue.withModifiers(play, ["stop"]) + }, null, 8, ["onClick"]), vue.createVNode("p", { + "class": "uni-video-cover-duration" + }, [formatTime(Number(props2.duration) || videoState.duration)])], 8, ["onClick"]), vue.createVNode("div", { + "class": { + "uni-video-toast": true, + "uni-video-toast-volume": gestureState.gestureType === "volume" + } + }, [vue.createVNode("div", { + "class": "uni-video-toast-title" + }, [t2("uni.video.volume")]), vue.createVNode("svg", { + "class": "uni-video-toast-icon", + "width": "200px", + "height": "200px", + "viewBox": "0 0 1024 1024", + "version": "1.1", + "xmlns": "http://www.w3.org/2000/svg" + }, [vue.createVNode("path", { + "d": "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" + }, null)]), vue.createVNode("div", { + "class": "uni-video-toast-value" + }, [vue.createVNode("div", { + "style": { + width: gestureState.volumeNew * 100 + "%" + }, + "class": "uni-video-toast-value-content" + }, [vue.createVNode("div", { + "class": "uni-video-toast-volume-grids" + }, [vue.renderList(10, () => vue.createVNode("div", { + "class": "uni-video-toast-volume-grids-item" + }, null))])], 4)])], 2), vue.createVNode("div", { + "class": { + "uni-video-toast": true, + "uni-video-toast-progress": gestureState.gestureType === "progress" + } + }, [vue.createVNode("div", { + "class": "uni-video-toast-title" + }, [formatTime(gestureState.currentTimeNew), " / ", formatTime(videoState.duration)])], 2), vue.createVNode("div", { + "class": "uni-video-slots" + }, [slots.default && slots.default()])], 40, ["onTouchstart", "onTouchend", "onTouchmove", "onFullscreenchange", "onWebkitfullscreenchange"])] + }, 8, ["id"]); }; } }); -const onWebInvokeAppService = ({name, arg}, pageId) => { +const onWebInvokeAppService = ({ name, arg }, pageId) => { if (name === "postMessage") ; else { @@ -8383,9 +8454,11 @@ var index$7 = /* @__PURE__ */ defineBuiltInComponent({ return () => { return vue.createVNode(vue.Fragment, null, [vue.createVNode("uni-web-view", vue.mergeProps($listeners.value, $excludeAttrs.value, { "ref": rootRef - }), [vue.createVNode(ResizeSensor, { - "onResize": _resize - }, null, 8, ["onResize"])], 16), vue.createVNode(vue.Teleport, { + }), { + default: () => [vue.createVNode(ResizeSensor, { + "onResize": _resize + }, null, 8, ["onResize"])] + }, 16), vue.createVNode(vue.Teleport, { "to": "body" }, { default: () => [vue.createVNode("iframe", vue.mergeProps({ @@ -9174,14 +9247,17 @@ var index$6 = /* @__PURE__ */ defineBuiltInComponent({ return vue.createVNode("uni-map", { "ref": rootRef, "id": props2.id - }, [vue.createVNode("div", { - "ref": mapRef, - "style": "width: 100%; height: 100%; position: relative; overflow: hidden" - }, null, 512), props2.markers.map((item) => item.id && vue.createVNode(MapMarker, vue.mergeProps({ - "key": item.id - }, item), null, 16)), props2.polyline.map((item) => vue.createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => vue.createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => vue.createVNode(MapControl, item, null, 16)), props2.showLocation && vue.createVNode(MapLocation, null, null), vue.createVNode("div", { - "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" - }, [slots.default && slots.default()])], 8, ["id"]); + }, { + default: () => [vue.createVNode("div", { + "ref": mapRef, + "style": "width: 100%; height: 100%; position: relative; overflow: hidden" + }, null, 512), props2.markers.map((item) => item.id && vue.createVNode(MapMarker, vue.mergeProps({ + "key": item.id + }, item), null, 16)), props2.polyline.map((item) => vue.createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => vue.createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => vue.createVNode(MapControl, item, null, 16)), props2.showLocation && vue.createVNode(MapLocation, null, null), vue.createVNode("div", { + "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" + }, [slots.default && slots.default()])], + _: 1 + }, 8, ["id"]); }; } }); @@ -9222,10 +9298,12 @@ var index$5 = /* @__PURE__ */ defineBuiltInComponent({ return () => { return vue.createVNode("uni-cover-view", { "scroll-top": props2.scrollTop - }, [vue.createVNode("div", { - "ref": content, - "class": "uni-cover-view" - }, [slots.default && slots.default()], 512)], 8, ["scroll-top"]); + }, { + default: () => [vue.createVNode("div", { + "ref": content, + "class": "uni-cover-view" + }, [slots.default && slots.default()], 512)] + }, 8, ["scroll-top"]); }; } }); @@ -9259,13 +9337,15 @@ var index$4 = /* @__PURE__ */ defineBuiltInComponent({ return vue.createVNode("uni-cover-image", { "ref": root, "src": src - }, [vue.createVNode("div", { - "class": "uni-cover-image" - }, [src ? vue.createVNode("img", { - "src": getRealPath(src), - "onLoad": load, - "onError": error - }, null, 40, ["src", "onLoad", "onError"]) : null])], 8, ["src"]); + }, { + default: () => [vue.createVNode("div", { + "class": "uni-cover-image" + }, [src ? vue.createVNode("img", { + "src": getRealPath(src), + "onLoad": load, + "onError": error + }, null, 40, ["src", "onLoad", "onError"]) : null])] + }, 8, ["src"]); }; } }); @@ -9343,7 +9423,7 @@ function useKeyboard() { disable }; } -function _isSlot(s) { +function _isSlot$2(s) { return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s); } function getDefaultStartValue(props2) { @@ -9547,83 +9627,86 @@ var index$3 = /* @__PURE__ */ defineBuiltInComponent({ "ref": rootRef }, booleanAttrs, { "onClick": withWebEvent(_show) - }), [vue.createVNode("div", { - "ref": pickerRef, - "class": ["uni-picker-container", `uni-${mode2}-${selectorTypeComputed.value}`], - "onWheel": onEventPrevent, - "onTouchmove": onEventPrevent - }, [vue.createVNode(vue.Transition, { - "name": "uni-fade" - }, { - default: () => [vue.withDirectives(vue.createVNode("div", { - "class": "uni-mask uni-picker-mask", - "onClick": withWebEvent(_cancel), - "onMousemove": _fixInputPosition - }, null, 40, ["onClick", "onMousemove"]), [[vue.vShow, visible]])] - }), !system.value ? vue.createVNode("div", { - "class": [{ - "uni-picker-toggle": visible - }, "uni-picker-custom"], - "style": popupStyle.content - }, [vue.createVNode("div", { - "class": "uni-picker-header", - "onClick": onEventStop - }, [vue.createVNode("div", { - "class": "uni-picker-action uni-picker-action-cancel", - "onClick": withWebEvent(_cancel) - }, [t2("uni.picker.cancel")], 8, ["onClick"]), vue.createVNode("div", { - "class": "uni-picker-action uni-picker-action-confirm", - "onClick": _change - }, [t2("uni.picker.done")], 8, ["onClick"])], 8, ["onClick"]), contentVisible ? vue.createVNode(PickerView, { - "value": _l10nColumn(valueArray), - "class": "uni-picker-content", - "onChange": _pickerViewChange - }, _isSlot(_slot2 = vue.renderList(_l10nColumn(rangeArray.value), (rangeItem, index0) => { - let _slot; - return vue.createVNode(PickerViewColumn, { - "key": index0 - }, _isSlot(_slot = vue.renderList(rangeItem, (item, index2) => vue.createVNode("div", { - "key": index2, - "class": "uni-picker-item" - }, [typeof item === "object" ? item[rangeKey] || "" : _l10nItem(item, index0)]))) ? _slot : { - default: () => [_slot], + }), { + default: () => [vue.createVNode("div", { + "ref": pickerRef, + "class": ["uni-picker-container", `uni-${mode2}-${selectorTypeComputed.value}`], + "onWheel": onEventPrevent, + "onTouchmove": onEventPrevent + }, [vue.createVNode(vue.Transition, { + "name": "uni-fade" + }, { + default: () => [vue.withDirectives(vue.createVNode("div", { + "class": "uni-mask uni-picker-mask", + "onClick": withWebEvent(_cancel), + "onMousemove": _fixInputPosition + }, null, 40, ["onClick", "onMousemove"]), [[vue.vShow, visible]])] + }), !system.value ? vue.createVNode("div", { + "class": [{ + "uni-picker-toggle": visible + }, "uni-picker-custom"], + "style": popupStyle.content + }, [vue.createVNode("div", { + "class": "uni-picker-header", + "onClick": onEventStop + }, [vue.createVNode("div", { + "class": "uni-picker-action uni-picker-action-cancel", + "onClick": withWebEvent(_cancel) + }, [t2("uni.picker.cancel")], 8, ["onClick"]), vue.createVNode("div", { + "class": "uni-picker-action uni-picker-action-confirm", + "onClick": _change + }, [t2("uni.picker.done")], 8, ["onClick"])], 8, ["onClick"]), contentVisible ? vue.createVNode(PickerView, { + "value": _l10nColumn(valueArray), + "class": "uni-picker-content", + "onChange": _pickerViewChange + }, _isSlot$2(_slot2 = vue.renderList(_l10nColumn(rangeArray.value), (rangeItem, index0) => { + let _slot; + return vue.createVNode(PickerViewColumn, { + "key": index0 + }, _isSlot$2(_slot = vue.renderList(rangeItem, (item, index2) => vue.createVNode("div", { + "key": index2, + "class": "uni-picker-item" + }, [typeof item === "object" ? item[rangeKey] || "" : _l10nItem(item, index0)]))) ? _slot : { + default: () => [_slot], + _: 1 + }); + })) ? _slot2 : { + default: () => [_slot2], _: 1 - }); - })) ? _slot2 : { - default: () => [_slot2], + }, 8, ["value", "onChange"]) : null, vue.createVNode("div", { + "ref": selectRef, + "class": "uni-picker-select", + "onWheel": onEventStop, + "onTouchmove": onEventStop + }, [vue.renderList(rangeArray.value[0], (item, index2) => vue.createVNode("div", { + "key": index2, + "class": ["uni-picker-item", { + selected: valueArray[0] === index2 + }], + "onClick": () => { + valueArray[0] = index2; + _change(); + } + }, [typeof item === "object" ? item[rangeKey] || "" : item], 10, ["onClick"]))], 40, ["onWheel", "onTouchmove"]), vue.createVNode("div", { + "style": popupStyle.triangle + }, null, 4)], 6) : null], 40, ["onWheel", "onTouchmove"]), vue.createVNode("div", null, [slots.default && slots.default()]), system.value ? vue.createVNode("div", { + "class": "uni-picker-system", + "onMousemove": withWebEvent(_fixInputPosition) + }, [vue.createVNode("input", { + "class": ["uni-picker-system_input", system.value], + "ref": inputRef, + "value": valueSync, + "type": mode2, + "tabindex": "-1", + "min": start, + "max": end, + "onChange": ($event) => { + _input($event); + onEventStop($event); + } + }, null, 42, ["value", "type", "min", "max", "onChange"])], 40, ["onMousemove"]) : null], _: 1 - }, 8, ["value", "onChange"]) : null, vue.createVNode("div", { - "ref": selectRef, - "class": "uni-picker-select", - "onWheel": onEventStop, - "onTouchmove": onEventStop - }, [vue.renderList(rangeArray.value[0], (item, index2) => vue.createVNode("div", { - "key": index2, - "class": ["uni-picker-item", { - selected: valueArray[0] === index2 - }], - "onClick": () => { - valueArray[0] = index2; - _change(); - } - }, [typeof item === "object" ? item[rangeKey] || "" : item], 10, ["onClick"]))], 40, ["onWheel", "onTouchmove"]), vue.createVNode("div", { - "style": popupStyle.triangle - }, null, 4)], 6) : null], 40, ["onWheel", "onTouchmove"]), vue.createVNode("div", null, [slots.default && slots.default()]), system.value ? vue.createVNode("div", { - "class": "uni-picker-system", - "onMousemove": withWebEvent(_fixInputPosition) - }, [vue.createVNode("input", { - "class": ["uni-picker-system_input", system.value], - "ref": inputRef, - "value": valueSync, - "type": mode2, - "tabindex": "-1", - "min": start, - "max": end, - "onChange": ($event) => { - _input($event); - onEventStop($event); - } - }, null, 42, ["value", "type", "min", "max", "onChange"])], 40, ["onMousemove"]) : null], 16, ["onClick"]); + }, 16, ["onClick"]); }; } }); @@ -10070,7 +10153,7 @@ const request = /* @__PURE__ */ defineTaskApi(API_REQUEST, ({ responseType, withCredentials, timeout = __uniConfig.networkTimeout.request -}, {resolve, reject}) => { +}, { resolve, reject }) => { let body = null; const contentType = normalizeContentType(header); if (method !== "GET") { @@ -10210,7 +10293,7 @@ const setStorageSync = /* @__PURE__ */ defineSyncApi(API_SET_STORAGE_SYNC, (key, }); localStorage.setItem(key, value); }, SetStorageSyncProtocol); -const setStorage = /* @__PURE__ */ defineAsyncApi(API_SET_STORAGE, ({key, data}, {resolve, reject}) => { +const setStorage = /* @__PURE__ */ defineAsyncApi(API_SET_STORAGE, ({ key, data }, { resolve, reject }) => { try { setStorageSync(key, data); resolve(); @@ -10241,7 +10324,7 @@ const getStorageSync = /* @__PURE__ */ defineSyncApi(API_GET_STORAGE_SYNC, (key, return ""; } }, GetStorageSyncProtocol); -const getStorage = /* @__PURE__ */ defineAsyncApi(API_GET_STORAGE, ({key}, {resolve, reject}) => { +const getStorage = /* @__PURE__ */ defineAsyncApi(API_GET_STORAGE, ({ key }, { resolve, reject }) => { try { const data = getStorageOrigin(key); resolve({ @@ -10256,7 +10339,7 @@ const removeStorageSync = /* @__PURE__ */ defineSyncApi(API_REMOVE_STORAGE, (key localStorage.removeItem(key); } }, RemoveStorageSyncProtocol); -const removeStorage = /* @__PURE__ */ defineAsyncApi(API_REMOVE_STORAGE, ({key}, {resolve}) => { +const removeStorage = /* @__PURE__ */ defineAsyncApi(API_REMOVE_STORAGE, ({ key }, { resolve }) => { removeStorageSync(key); resolve(); }, RemoveStorageProtocol); @@ -10265,7 +10348,7 @@ const clearStorageSync = /* @__PURE__ */ defineSyncApi("clearStorageSync", () => localStorage.clear(); } }); -const clearStorage = /* @__PURE__ */ defineAsyncApi("clearStorage", (_, {resolve}) => { +const clearStorage = /* @__PURE__ */ defineAsyncApi("clearStorage", (_, { resolve }) => { clearStorageSync(); resolve(); }); @@ -10287,7 +10370,7 @@ const getStorageInfoSync = /* @__PURE__ */ defineSyncApi("getStorageInfoSync", ( limitSize: Number.MAX_VALUE }; }); -const getStorageInfo = /* @__PURE__ */ defineAsyncApi("getStorageInfo", (_, {resolve}) => { +const getStorageInfo = /* @__PURE__ */ defineAsyncApi("getStorageInfo", (_, { resolve }) => { resolve(getStorageInfoSync()); }); const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", () => { @@ -10314,11 +10397,11 @@ function setNavigationBar(pageMeta, type, args, resolve, reject) { if (!pageMeta) { return reject("page not found"); } - const {navigationBar} = pageMeta; + const { navigationBar } = pageMeta; switch (type) { case API_SET_NAVIGATION_BAR_COLOR: - const {frontColor, backgroundColor, animation: animation2} = args; - const {duration, timingFunc} = animation2; + const { frontColor, backgroundColor, animation: animation2 } = args; + const { duration, timingFunc } = animation2; if (frontColor) { navigationBar.titleColor = frontColor === "#000000" ? "#000" : "#fff"; } @@ -10335,7 +10418,7 @@ function setNavigationBar(pageMeta, type, args, resolve, reject) { navigationBar.loading = false; break; case API_SET_NAVIGATION_BAR_TITLE: - const {title} = args; + const { title } = args; navigationBar.titleText = title; { updateDocumentTitle(args.title); @@ -10344,7 +10427,7 @@ function setNavigationBar(pageMeta, type, args, resolve, reject) { } resolve(); } -const setNavigationBarTitle = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_BAR_TITLE, (args, {resolve, reject}) => { +const setNavigationBarTitle = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_BAR_TITLE, (args, { resolve, reject }) => { setNavigationBar(getCurrentPageMeta(), API_SET_NAVIGATION_BAR_TITLE, args, resolve, reject); }, SetNavigationBarTitleProtocol); require("localstorage-polyfill"); @@ -10387,16 +10470,19 @@ var TabBar = /* @__PURE__ */ defineSystemComponent({ const tabBarItemsTsx = createTabBarItemsTsx(tabBar2, onSwitchTab); return vue.createVNode("uni-tabbar", { "class": "uni-tabbar-" + tabBar2.position - }, [vue.createVNode("div", { - "class": "uni-tabbar", - "style": style.value - }, [vue.createVNode("div", { - "class": "uni-tabbar-border", - "style": borderStyle.value - }, null, 4), tabBarItemsTsx], 4), vue.createVNode("div", { - "class": "uni-placeholder", - "style": placeholderStyle.value - }, null, 4)], 2); + }, { + default: () => [vue.createVNode("div", { + "class": "uni-tabbar", + "style": style.value + }, [vue.createVNode("div", { + "class": "uni-tabbar-border", + "style": borderStyle.value + }, null, 4), tabBarItemsTsx], 4), vue.createVNode("div", { + "class": "uni-placeholder", + "style": placeholderStyle.value + }, null, 4)], + _: 2 + }, 8, ["class"]); }; } }); @@ -10611,6 +10697,9 @@ function createTabBarMidButtonTsx(color, iconPath, midButton, tabBar2, index2, o "src": getRealPath(iconPath) }, null, 12, ["src"])], 4), createTabBarItemBdTsx(color, iconPath, midButton, tabBar2)], 12, ["onClick"]); } +function _isSlot$1(s) { + return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s); +} var LayoutComponent = /* @__PURE__ */ defineSystemComponent({ name: "Layout", setup(_props, { @@ -10634,7 +10723,10 @@ var LayoutComponent = /* @__PURE__ */ defineSystemComponent({ return vue.createVNode("uni-app", { "ref": rootRef, "class": clazz2.value - }, [layoutTsx, tabBarTsx], 2); + }, { + default: () => [layoutTsx, tabBarTsx], + _: 2 + }, 8, ["class"]); }; } }); @@ -10762,7 +10854,16 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le const topWindowTsx = __UNI_FEATURE_TOPWINDOW__ ? createTopWindowTsx(topWindow, layoutState, windowState) : null; const leftWindowTsx = __UNI_FEATURE_LEFTWINDOW__ ? createLeftWindowTsx(leftWindow, layoutState, windowState) : null; const rightWindowTsx = __UNI_FEATURE_RIGHTWINDOW__ ? createRightWindowTsx(rightWindow, layoutState, windowState) : null; - return vue.createVNode("uni-layout", null, [topWindowTsx, vue.createVNode("uni-content", null, [vue.createVNode("uni-main", null, [routerVNode]), leftWindowTsx, rightWindowTsx])]); + return vue.createVNode("uni-layout", null, { + default: () => [topWindowTsx, vue.createVNode("uni-content", null, { + default: () => [vue.createVNode("uni-main", null, _isSlot$1(routerVNode) ? routerVNode : { + default: () => [routerVNode], + _: 2 + }), leftWindowTsx, rightWindowTsx], + _: 2 + })], + _: 2 + }); } function useShowTabBar(emit2) { const route = vueRouter.useRoute(); @@ -10857,17 +10958,20 @@ function createTopWindowTsx(topWindow, layoutState, windowState) { component: TopWindow, windowRef } = topWindow; - return vue.withDirectives(vue.createVNode("uni-top-window", null, [vue.createVNode("div", { - "class": "uni-top-window", - "style": layoutState.topWindowStyle - }, [vue.createVNode(TopWindow, vue.mergeProps({ - "ref": windowRef - }, windowState), null, 16)], 4), vue.createVNode("div", { - "class": "uni-top-window--placeholder", - "style": { - height: layoutState.topWindowHeight + "px" - } - }, null, 4)], 512), [[vue.vShow, layoutState.showTopWindow || layoutState.apiShowTopWindow]]); + return vue.withDirectives(vue.createVNode("uni-top-window", null, { + default: () => [vue.createVNode("div", { + "class": "uni-top-window", + "style": layoutState.topWindowStyle + }, [vue.createVNode(TopWindow, vue.mergeProps({ + "ref": windowRef + }, windowState), null, 16)], 4), vue.createVNode("div", { + "class": "uni-top-window--placeholder", + "style": { + height: layoutState.topWindowHeight + "px" + } + }, null, 4)], + _: 2 + }, 512), [[vue.vShow, layoutState.showTopWindow || layoutState.apiShowTopWindow]]); } } function createLeftWindowTsx(leftWindow, layoutState, windowState) { @@ -10879,14 +10983,17 @@ function createLeftWindowTsx(leftWindow, layoutState, windowState) { return vue.withDirectives(vue.createVNode("uni-left-window", { "data-show": layoutState.apiShowLeftWindow || void 0, "style": layoutState.leftWindowStyle - }, [layoutState.apiShowLeftWindow ? vue.createVNode("div", { - "class": "uni-mask", - "onClick": () => layoutState.apiShowLeftWindow = false - }, null, 8, ["onClick"]) : null, vue.createVNode("div", { - "class": "uni-left-window" - }, [vue.createVNode(LeftWindow, vue.mergeProps({ - "ref": windowRef - }, windowState), null, 16)])], 12, ["data-show"]), [[vue.vShow, layoutState.showLeftWindow || layoutState.apiShowLeftWindow]]); + }, { + default: () => [layoutState.apiShowLeftWindow ? vue.createVNode("div", { + "class": "uni-mask", + "onClick": () => layoutState.apiShowLeftWindow = false + }, null, 8, ["onClick"]) : null, vue.createVNode("div", { + "class": "uni-left-window" + }, [vue.createVNode(LeftWindow, vue.mergeProps({ + "ref": windowRef + }, windowState), null, 16)])], + _: 2 + }, 8, ["data-show", "style"]), [[vue.vShow, layoutState.showLeftWindow || layoutState.apiShowLeftWindow]]); } } function createRightWindowTsx(rightWindow, layoutState, windowState) { @@ -10898,14 +11005,17 @@ function createRightWindowTsx(rightWindow, layoutState, windowState) { return vue.withDirectives(vue.createVNode("uni-right-window", { "data-show": layoutState.apiShowRightWindow || void 0, "style": layoutState.rightWindowStyle - }, [layoutState.apiShowRightWindow ? vue.createVNode("div", { - "class": "uni-mask", - "onClick": () => layoutState.apiShowRightWindow = false - }, null, 8, ["onClick"]) : null, vue.createVNode("div", { - "class": "uni-right-window" - }, [vue.createVNode(RightWindow, vue.mergeProps({ - "ref": windowRef - }, windowState), null, 16)])], 12, ["data-show"]), [[vue.vShow, layoutState.showRightWindow || layoutState.apiShowRightWindow]]); + }, { + default: () => [layoutState.apiShowRightWindow ? vue.createVNode("div", { + "class": "uni-mask", + "onClick": () => layoutState.apiShowRightWindow = false + }, null, 8, ["onClick"]) : null, vue.createVNode("div", { + "class": "uni-right-window" + }, [vue.createVNode(RightWindow, vue.mergeProps({ + "ref": windowRef + }, windowState), null, 16)])], + _: 2 + }, 8, ["data-show", "style"]), [[vue.vShow, layoutState.showRightWindow || layoutState.apiShowRightWindow]]); } } function hexToRgba(hex) { @@ -10922,7 +11032,7 @@ function hexToRgba(hex) { g2 = hex.substring(1, 2); b = hex.substring(2, 3); } else { - return {r: 0, g: 0, b: 0}; + return { r: 0, g: 0, b: 0 }; } if (r.length === 1) { r += r; @@ -10943,12 +11053,12 @@ function hexToRgba(hex) { }; } function usePageHeadTransparentBackgroundColor(backgroundColor) { - const {r, g: g2, b} = hexToRgba(backgroundColor); + const { r, g: g2, b } = hexToRgba(backgroundColor); return `rgba(${r},${g2},${b},0)`; } function usePageHeadTransparent(headRef, { id, - navigationBar: {titleColor, coverage, backgroundColor} + navigationBar: { titleColor, coverage, backgroundColor } }) { vue.computed(() => hexToRgba(backgroundColor)); } @@ -10988,15 +11098,18 @@ var PageHead = /* @__PURE__ */ defineSystemComponent({ }, null, 2); return vue.createVNode("uni-page-head", { "uni-page-head-type": type - }, [vue.createVNode("div", { - "ref": headRef, - "class": clazz2.value, - "style": style.value - }, [vue.createVNode("div", { - "class": "uni-page-head-hd" - }, [backButtonTsx, ...leftButtonsTsx]), createPageHeadBdTsx(navigationBar, searchInput), vue.createVNode("div", { - "class": "uni-page-head-ft" - }, [...rightButtonsTsx])], 6), placeholderTsx], 8, ["uni-page-head-type"]); + }, { + default: () => [vue.createVNode("div", { + "ref": headRef, + "class": clazz2.value, + "style": style.value + }, [vue.createVNode("div", { + "class": "uni-page-head-hd" + }, [backButtonTsx, ...leftButtonsTsx]), createPageHeadBdTsx(navigationBar, searchInput), vue.createVNode("div", { + "class": "uni-page-head-ft" + }, [...rightButtonsTsx])], 6), placeholderTsx], + _: 2 + }, 8, ["uni-page-head-type"]); }; } }); @@ -11297,15 +11410,15 @@ function usePageHeadSearchInput({ var _sfc_main = { name: "PageRefresh", setup() { - const {refreshOptions} = usePageMeta(); + const { refreshOptions } = usePageMeta(); return { offset: refreshOptions.offset, color: refreshOptions.color }; } }; -const _hoisted_1 = {class: "uni-page-refresh-inner"}; -const _hoisted_2 = /* @__PURE__ */ vue.createVNode("path", {d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}, null, -1); +const _hoisted_1 = { class: "uni-page-refresh-inner" }; +const _hoisted_2 = /* @__PURE__ */ vue.createVNode("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }, null, -1); const _hoisted_3 = /* @__PURE__ */ vue.createVNode("path", { d: "M0 0h24v24H0z", fill: "none" @@ -11319,7 +11432,7 @@ const _hoisted_4 = { function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createBlock("uni-page-refresh", null, [ vue.createVNode("div", { - style: {"margin-top": $setup.offset + "px"}, + style: { "margin-top": $setup.offset + "px" }, class: "uni-page-refresh" }, [ vue.createVNode("div", _hoisted_1, [ @@ -11350,6 +11463,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { ]); } _sfc_main.render = _sfc_render; +function _isSlot(s) { + return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s); +} var PageBody = defineSystemComponent({ name: "PageBody", setup(props2, ctx) { @@ -11357,8 +11473,14 @@ var PageBody = defineSystemComponent({ const refreshRef = __UNI_FEATURE_PULL_DOWN_REFRESH__ && vue.ref(null); const pageRefresh = null; return () => { + let _slot; const pageRefreshTsx = __UNI_FEATURE_PULL_DOWN_REFRESH__ && createPageRefreshTsx(refreshRef, pageMeta); - return vue.createVNode(vue.Fragment, null, [pageRefreshTsx, vue.createVNode("uni-page-wrapper", pageRefresh, [vue.createVNode("uni-page-body", null, [vue.renderSlot(ctx.slots, "default")])], 16)]); + return vue.createVNode(vue.Fragment, null, [pageRefreshTsx, vue.createVNode("uni-page-wrapper", pageRefresh, { + default: () => [vue.createVNode("uni-page-body", null, _isSlot(_slot = vue.renderSlot(ctx.slots, "default")) ? _slot : { + default: () => [_slot], + _: 1 + })] + }, 16)]); }; } }); @@ -11380,7 +11502,7 @@ var index$2 = defineSystemComponent({ } }); function createPageBodyVNode(ctx) { - return vue.openBlock(), vue.createBlock(PageBody, {key: 0}, { + return vue.openBlock(), vue.createBlock(PageBody, { key: 0 }, { default: vue.withCtx(() => [vue.renderSlot(ctx.slots, "page")]), _: 3 }); @@ -11401,8 +11523,8 @@ var index$1 = /* @__PURE__ */ defineSystemComponent({ }, [t2("uni.async.error")], 8, ["onClick"]); } }); -const clazz = {class: "uni-async-loading"}; -const loadingVNode = /* @__PURE__ */ vue.createVNode("i", {class: "uni-loading"}, null, -1); +const clazz = { class: "uni-async-loading" }; +const loadingVNode = /* @__PURE__ */ vue.createVNode("i", { class: "uni-loading" }, null, -1); var index = /* @__PURE__ */ defineSystemComponent({ name: "AsyncLoading", render() { diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 50a645576..de6703a14 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -1,8 +1,8 @@ -import {isFunction, extend, hyphenate, isPlainObject, isString, isArray, hasOwn, isObject, capitalize, toRawType, makeMap as makeMap$1, isPromise, invokeArrayFns as invokeArrayFns$1} from "@vue/shared"; -import {injectHook, withModifiers, createVNode, getCurrentInstance, inject, provide, reactive, openBlock, createBlock, mergeProps, toDisplayString, defineComponent, ref, computed, watch, onUnmounted, onBeforeUnmount, onActivated, onMounted, nextTick, onBeforeMount, withDirectives, vShow, shallowRef, watchEffect, isVNode, Fragment, markRaw, createTextVNode, onBeforeActivate, onBeforeDeactivate, renderList, onDeactivated, Teleport, createApp, Transition, withCtx, KeepAlive, resolveDynamicComponent, renderSlot} from "vue"; -import {once, passive, normalizeTarget, isBuiltInComponent, initCustomDataset, invokeArrayFns, NAVBAR_HEIGHT, parseQuery, PRIMARY_COLOR, debounce, getCustomDataset, callOptions, removeLeadingSlash, getLen, ON_REACH_BOTTOM_DISTANCE, decodedQuery, updateElementStyle, addFont, scrollTo, RESPONSIVE_MIN_WIDTH, formatDateTime} from "@dcloudio/uni-shared"; -import {initVueI18n, LOCALE_EN, LOCALE_ES, LOCALE_FR, LOCALE_ZH_HANS, LOCALE_ZH_HANT} from "@dcloudio/uni-i18n"; -import {useRoute, createRouter, createWebHistory, createWebHashHistory, useRouter, isNavigationFailure, RouterView} from "vue-router"; +import { isFunction, extend, hyphenate, isPlainObject, isString, isArray, hasOwn, isObject, capitalize, toRawType, makeMap as makeMap$1, isPromise, invokeArrayFns as invokeArrayFns$1 } from "@vue/shared"; +import { injectHook, withModifiers, createVNode, getCurrentInstance, inject, provide, reactive, openBlock, createBlock, mergeProps, toDisplayString, defineComponent, ref, computed, watch, onUnmounted, onBeforeUnmount, onActivated, onMounted, nextTick, onBeforeMount, withDirectives, vShow, shallowRef, watchEffect, isVNode, Fragment, markRaw, createTextVNode, onBeforeActivate, onBeforeDeactivate, renderList, onDeactivated, Teleport, createApp, Transition, withCtx, KeepAlive, resolveDynamicComponent, renderSlot } from "vue"; +import { once, passive, normalizeTarget, isBuiltInComponent, initCustomDataset, invokeArrayFns, NAVBAR_HEIGHT, parseQuery, PRIMARY_COLOR, debounce, getCustomDataset, callOptions, removeLeadingSlash, getLen, ON_REACH_BOTTOM_DISTANCE, decodedQuery, updateElementStyle, addFont, scrollTo, RESPONSIVE_MIN_WIDTH, formatDateTime } from "@dcloudio/uni-shared"; +import { initVueI18n, LOCALE_EN, LOCALE_ES, LOCALE_FR, LOCALE_ZH_HANS, LOCALE_ZH_HANT } from "@dcloudio/uni-i18n"; +import { useRoute, createRouter, createWebHistory, createWebHashHistory, useRouter, isNavigationFailure, RouterView } from "vue-router"; function applyOptions(options, instance2, publicThis) { Object.keys(options).forEach((name) => { if (name.indexOf("on") === 0) { @@ -54,28 +54,28 @@ const initI18nAsyncMsgsOnce = /* @__PURE__ */ once(() => { })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, {error: "\u8FDE\u63A5\u670D\u52A1\u5668\u8D85\u65F6\uFF0C\u70B9\u51FB\u5C4F\u5E55\u91CD\u8BD5"})); + i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, { error: "\u8FDE\u63A5\u670D\u52A1\u5668\u8D85\u65F6\uFF0C\u70B9\u51FB\u5C4F\u5E55\u91CD\u8BD5" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, {error: "\u9023\u63A5\u670D\u52D9\u5668\u8D85\u6642\uFF0C\u9EDE\u64CA\u5C4F\u5E55\u91CD\u8A66"})); + i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, { error: "\u9023\u63A5\u670D\u52D9\u5668\u8D85\u6642\uFF0C\u9EDE\u64CA\u5C4F\u5E55\u91CD\u8A66" })); } }); const initI18nShowActionSheetMsgsOnce = /* @__PURE__ */ once(() => { const name = "uni.showActionSheet."; if (__UNI_FEATURE_I18N_EN__) { - i18n.add(LOCALE_EN, normalizeMessages(name, {cancel: "Cancel"})); + i18n.add(LOCALE_EN, normalizeMessages(name, { cancel: "Cancel" })); } if (__UNI_FEATURE_I18N_ES__) { - i18n.add(LOCALE_ES, normalizeMessages(name, {cancel: "Cancelar"})); + i18n.add(LOCALE_ES, normalizeMessages(name, { cancel: "Cancelar" })); } if (__UNI_FEATURE_I18N_FR__) { - i18n.add(LOCALE_FR, normalizeMessages(name, {cancel: "Annuler"})); + i18n.add(LOCALE_FR, normalizeMessages(name, { cancel: "Annuler" })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, {cancel: "\u53D6\u6D88"})); + i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, { cancel: "\u53D6\u6D88" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, {cancel: "\u53D6\u6D88"})); + i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, { cancel: "\u53D6\u6D88" })); } }); const initI18nShowToastMsgsOnce = /* @__PURE__ */ once(() => { @@ -137,55 +137,55 @@ const initI18nShowLoadingMsgsOnce = /* @__PURE__ */ once(() => { const initI18nShowModalMsgsOnce = /* @__PURE__ */ once(() => { const name = "uni.showModal."; if (__UNI_FEATURE_I18N_EN__) { - i18n.add(LOCALE_EN, normalizeMessages(name, {cancel: "Cancel", confirm: "OK"})); + i18n.add(LOCALE_EN, normalizeMessages(name, { cancel: "Cancel", confirm: "OK" })); } if (__UNI_FEATURE_I18N_ES__) { - i18n.add(LOCALE_ES, normalizeMessages(name, {cancel: "Cancelar", confirm: "OK"})); + i18n.add(LOCALE_ES, normalizeMessages(name, { cancel: "Cancelar", confirm: "OK" })); } if (__UNI_FEATURE_I18N_FR__) { - i18n.add(LOCALE_FR, normalizeMessages(name, {cancel: "Annuler", confirm: "OK"})); + i18n.add(LOCALE_FR, normalizeMessages(name, { cancel: "Annuler", confirm: "OK" })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, {cancel: "\u53D6\u6D88", confirm: "\u786E\u5B9A"})); + i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, { cancel: "\u53D6\u6D88", confirm: "\u786E\u5B9A" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, {cancel: "\u53D6\u6D88", confirm: "\u78BA\u5B9A"})); + i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, { cancel: "\u53D6\u6D88", confirm: "\u78BA\u5B9A" })); } }); const initI18nPickerMsgsOnce = /* @__PURE__ */ once(() => { const name = "uni.picker."; if (__UNI_FEATURE_I18N_EN__) { - i18n.add(LOCALE_EN, normalizeMessages(name, {done: "Done", cancel: "Cancel"})); + i18n.add(LOCALE_EN, normalizeMessages(name, { done: "Done", cancel: "Cancel" })); } if (__UNI_FEATURE_I18N_ES__) { - i18n.add(LOCALE_ES, normalizeMessages(name, {done: "OK", cancel: "Cancelar"})); + i18n.add(LOCALE_ES, normalizeMessages(name, { done: "OK", cancel: "Cancelar" })); } if (__UNI_FEATURE_I18N_FR__) { - i18n.add(LOCALE_FR, normalizeMessages(name, {done: "OK", cancel: "Annuler"})); + i18n.add(LOCALE_FR, normalizeMessages(name, { done: "OK", cancel: "Annuler" })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, {done: "\u5B8C\u6210", cancel: "\u53D6\u6D88"})); + i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, { done: "\u5B8C\u6210", cancel: "\u53D6\u6D88" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, {done: "\u5B8C\u6210", cancel: "\u53D6\u6D88"})); + i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, { done: "\u5B8C\u6210", cancel: "\u53D6\u6D88" })); } }); const initI18nVideoMsgsOnce = /* @__PURE__ */ once(() => { const name = "uni.video."; if (__UNI_FEATURE_I18N_EN__) { - i18n.add(LOCALE_EN, normalizeMessages(name, {danmu: "Danmu", volume: "Volume"})); + i18n.add(LOCALE_EN, normalizeMessages(name, { danmu: "Danmu", volume: "Volume" })); } if (__UNI_FEATURE_I18N_ES__) { - i18n.add(LOCALE_ES, normalizeMessages(name, {danmu: "Danmu", volume: "Volumen"})); + i18n.add(LOCALE_ES, normalizeMessages(name, { danmu: "Danmu", volume: "Volumen" })); } if (__UNI_FEATURE_I18N_FR__) { - i18n.add(LOCALE_FR, normalizeMessages(name, {danmu: "Danmu", volume: "Le Volume"})); + i18n.add(LOCALE_FR, normalizeMessages(name, { danmu: "Danmu", volume: "Le Volume" })); } if (__UNI_FEATURE_I18N_ZH_HANS__) { - i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, {danmu: "\u5F39\u5E55", volume: "\u97F3\u91CF"})); + i18n.add(LOCALE_ZH_HANS, normalizeMessages(name, { danmu: "\u5F39\u5E55", volume: "\u97F3\u91CF" })); } if (__UNI_FEATURE_I18N_ZH_HANT__) { - i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, {danmu: "\u5F48\u5E55", volume: "\u97F3\u91CF"})); + i18n.add(LOCALE_ZH_HANT, normalizeMessages(name, { danmu: "\u5F48\u5E55", volume: "\u97F3\u91CF" })); } }); const E = function() { @@ -267,7 +267,7 @@ function touchstart(evt) { if (evt.touches.length !== 1) { return; } - const {pageX, pageY} = evt.touches[0]; + const { pageX, pageY } = evt.touches[0]; startPageX = pageX; startPageY = pageY; longPressTimer = setTimeout(function() { @@ -289,7 +289,7 @@ function touchmove(evt) { if (evt.touches.length !== 1) { return clearLongPressTimer(); } - const {pageX, pageY} = evt.touches[0]; + const { pageX, pageY } = evt.touches[0]; if (Math.abs(pageX - startPageX) > LONGPRESS_THRESHOLD || Math.abs(pageY - startPageY) > LONGPRESS_THRESHOLD) { return clearLongPressTimer(); } @@ -345,7 +345,7 @@ function init() { try { var opts = Object.defineProperty({}, "passive", { get: function() { - passiveEvents = {passive: true}; + passiveEvents = { passive: true }; } }); window.addEventListener("test", null, opts); @@ -604,7 +604,7 @@ function createScrollListener({ let hasReachBottom = false; let reachBottomLocking = true; const isReachBottom = () => { - const {scrollHeight} = document.documentElement; + const { scrollHeight } = document.documentElement; const windowHeight = window.innerHeight; const scrollY = window.scrollY; const isBottom = scrollY > 0 && scrollHeight > windowHeight && scrollY + windowHeight + onReachBottomDistance >= scrollHeight; @@ -710,7 +710,7 @@ function createCallbacks(namespace) { const isClickEvent = (val) => val.type === "click"; const isMouseEvent = (val) => val.type.indexOf("mouse") === 0; function $nne(evt) { - const {currentTarget} = evt; + const { currentTarget } = evt; if (!(evt instanceof Event) || !(currentTarget instanceof HTMLElement)) { return evt; } @@ -723,7 +723,7 @@ function $nne(evt) { } else if (isMouseEvent(evt)) { normalizeMouseEvent(res, evt); } else if (evt instanceof TouchEvent) { - const {top} = getWindowOffset(); + const { top } = getWindowOffset(); res.touches = normalizeTouchEvent(evt.touches, top); res.changedTouches = normalizeTouchEvent(evt.changedTouches, top); } @@ -736,7 +736,7 @@ function findUniTarget(target) { return target; } function createNativeEvent(evt) { - const {type, timeStamp, target, currentTarget} = evt; + const { type, timeStamp, target, currentTarget } = evt; const event = { type, timeStamp, @@ -764,13 +764,13 @@ function createNativeEvent(evt) { return event; } function normalizeClickEvent(evt, mouseEvt) { - const {x, y} = mouseEvt; - const {top} = getWindowOffset(); - evt.detail = {x, y: y - top}; + const { x, y } = mouseEvt; + const { top } = getWindowOffset(); + evt.detail = { x, y: y - top }; evt.touches = evt.changedTouches = [createTouchEvent(mouseEvt)]; } function normalizeMouseEvent(evt, mouseEvt) { - const {top} = getWindowOffset(); + const { top } = getWindowOffset(); evt.pageX = mouseEvt.pageX; evt.pageY = mouseEvt.pageY - top; evt.clientX = mouseEvt.clientX; @@ -789,7 +789,7 @@ function createTouchEvent(evt) { function normalizeTouchEvent(touches, top) { const res = []; for (let i = 0; i < touches.length; i++) { - const {identifier, pageX, pageY, clientX, clientY, force} = touches[i]; + const { identifier, pageX, pageY, clientX, clientY, force } = touches[i]; res.push({ identifier, pageX, @@ -1181,7 +1181,7 @@ function usePageRoute() { if (searchPos > -1) { query = parseQuery(url.slice(searchPos + 1, hashPos > -1 ? hashPos : url.length)); } - const {meta} = __uniRoutes[0]; + const { meta } = __uniRoutes[0]; return { meta, query, @@ -1199,7 +1199,7 @@ const PAGE_META_KEYS = [ "refreshOptions" ]; function mergePageMeta(id2, pageMeta) { - const res = extend({id: id2}, __uniConfig.globalStyle, pageMeta); + const res = extend({ id: id2 }, __uniConfig.globalStyle, pageMeta); PAGE_META_KEYS.forEach((name) => { res[name] = extend({}, __uniConfig.globalStyle[name], pageMeta[name]); }); @@ -1207,7 +1207,7 @@ function mergePageMeta(id2, pageMeta) { } function normalizePageMeta(pageMeta) { if (__UNI_FEATURE_PULL_DOWN_REFRESH__) { - const {enablePullDownRefresh, navigationBar} = pageMeta; + const { enablePullDownRefresh, navigationBar } = pageMeta; if (enablePullDownRefresh) { const refreshOptions = extend({ support: true, @@ -1218,7 +1218,7 @@ function normalizePageMeta(pageMeta) { offset: 0 }, pageMeta.refreshOptions); let offset = rpx2px(refreshOptions.offset); - const {type} = navigationBar; + const { type } = navigationBar; if (type !== "transparent" && type !== "none") { offset += NAVBAR_HEIGHT + out.top; } @@ -1229,8 +1229,8 @@ function normalizePageMeta(pageMeta) { } } if (__UNI_FEATURE_NAVIGATIONBAR__) { - const {navigationBar} = pageMeta; - const {titleSize, titleColor, backgroundColor} = navigationBar; + const { navigationBar } = pageMeta; + const { titleSize, titleColor, backgroundColor } = navigationBar; navigationBar.type = navigationBar.type || "default"; navigationBar.backButton = pageMeta.isQuit ? false : true; navigationBar.titleSize = titleSize || "16px"; @@ -1366,14 +1366,14 @@ function validateProtocols(name, args, protocol, onFail) { if (argsLen > i) { data[opts.name] = args[i]; } - validateProtocol(name, data, {[opts.name]: opts}, onFail); + validateProtocol(name, data, { [opts.name]: opts }, onFail); } } function validateProp(name, value, prop, isAbsent) { if (!isPlainObject(prop)) { - prop = {type: prop}; + prop = { type: prop }; } - const {type, required, validator: validator2} = prop; + const { type, required, validator: validator2 } = prop; if (required && isAbsent) { return 'Missing required args: "' + name + '"'; } @@ -1385,7 +1385,7 @@ function validateProp(name, value, prop, isAbsent) { const types = isArray(type) ? type : [type]; const expectedTypes = []; for (let i = 0; i < types.length && !isValid; i++) { - const {valid, expectedType} = assertType(value, types[i]); + const { valid, expectedType } = assertType(value, types[i]); expectedTypes.push(expectedType || ""); isValid = valid; } @@ -1539,11 +1539,11 @@ function normalizeErrMsg(errMsg, name) { } return name + errMsg.substring(errMsg.indexOf(":fail")); } -function createAsyncApiCallback(name, args = {}, {beforeAll, beforeSuccess} = {}) { +function createAsyncApiCallback(name, args = {}, { beforeAll, beforeSuccess } = {}) { if (!isPlainObject(args)) { args = {}; } - const {success, fail, complete} = getApiCallbacks(args); + const { success, fail, complete } = getApiCallbacks(args); const hasSuccess = isFunction(success); const hasFail = isFunction(fail); const hasComplete = isFunction(complete); @@ -1583,7 +1583,7 @@ function promisify(fn) { return fn(args); } return handlePromise(new Promise((resolve, reject) => { - fn(extend(args, {success: resolve, fail: reject})); + fn(extend(args, { success: resolve, fail: reject })); })); }; } @@ -1610,10 +1610,10 @@ function formatApiArgs(args, options) { } } function invokeSuccess(id2, name, res) { - return invokeCallback(id2, extend(res || {}, {errMsg: name + ":ok"})); + return invokeCallback(id2, extend(res || {}, { errMsg: name + ":ok" })); } function invokeFail(id2, name, err) { - return invokeCallback(id2, {errMsg: name + ":fail" + (err ? " " + err : "")}); + return invokeCallback(id2, { errMsg: name + ":fail" + (err ? " " + err : "") }); } function beforeInvokeApi(name, args, protocol, options) { if (process.env.NODE_ENV !== "production") { @@ -1716,7 +1716,7 @@ function createUnsupportedSyncApi(name) { } const createUnsupportedOnApi = createUnsupportedSyncApi; function createUnsupportedAsyncApi(name) { - return (_args, {reject}) => { + return (_args, { reject }) => { return reject(createUnsupportedMsg(name)); }; } @@ -2000,12 +2000,12 @@ const _sfc_main$1 = { } } }; -const _hoisted_1$1 = {class: "uni-audio-default"}; -const _hoisted_2$1 = {class: "uni-audio-right"}; -const _hoisted_3$1 = {class: "uni-audio-time"}; -const _hoisted_4$1 = {class: "uni-audio-info"}; -const _hoisted_5 = {class: "uni-audio-name"}; -const _hoisted_6 = {class: "uni-audio-author"}; +const _hoisted_1$1 = { class: "uni-audio-default" }; +const _hoisted_2$1 = { class: "uni-audio-right" }; +const _hoisted_3$1 = { class: "uni-audio-time" }; +const _hoisted_4$1 = { class: "uni-audio-info" }; +const _hoisted_5 = { class: "uni-audio-name" }; +const _hoisted_6 = { class: "uni-audio-author" }; function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createBlock("uni-audio", mergeProps({ id: $props.id, @@ -2014,7 +2014,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { createVNode("audio", { ref: "audio", loop: $props.loop, - style: {"display": "none"} + style: { "display": "none" } }, null, 8, ["loop"]), createVNode("div", _hoisted_1$1, [ createVNode("div", { @@ -2022,7 +2022,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { class: "uni-audio-left" }, [ createVNode("div", { - class: [{play: !$data.playing, pause: $data.playing}, "uni-audio-button"], + class: [{ play: !$data.playing, pause: $data.playing }, "uni-audio-button"], onClick: _cache[1] || (_cache[1] = (...args) => $options.trigger && $options.trigger(...args)) }, null, 2) ], 4), @@ -2147,7 +2147,7 @@ var animation = { } }; const defineBuiltInComponent = (options) => { - const {props: props2, mixins} = options; + const { props: props2, mixins } = options; if (!props2 || !props2.animation) { (mixins || (options.mixins = [])).push(animation); } @@ -2275,7 +2275,9 @@ var index$u = /* @__PURE__ */ defineBuiltInComponent({ emit: emit2 }) { provideForm(emit2); - return () => createVNode("uni-form", null, [createVNode("span", null, [slots.default && slots.default()])]); + return () => createVNode("uni-form", null, { + default: () => [createVNode("span", null, [slots.default && slots.default()])] + }); } }); function provideForm(emit2) { @@ -2343,7 +2345,9 @@ var index$t = /* @__PURE__ */ defineBuiltInComponent({ "uni-label-pointer": pointer }, "onClick": _onClick - }, [slots.default && slots.default()], 10, ["onClick"]); + }, { + default: () => [slots.default && slots.default()] + }, 8, ["class", "onClick"]); } }); function useProvideLabel() { @@ -2501,7 +2505,9 @@ var index$s = /* @__PURE__ */ defineBuiltInComponent({ "ref": rootRef, "onClick": onClick, "class": hasHoverClass && hovering.value ? hoverClass : "" - }, hasHoverClass && binding, booleanAttrs, loadingAttrs), [slots.default && slots.default()], 16, ["onClick"]); + }, hasHoverClass && binding, booleanAttrs, loadingAttrs), { + default: () => [slots.default && slots.default()] + }, 16, ["onClick", "class"]); }; } }); @@ -2524,11 +2530,14 @@ var ResizeSensor = /* @__PURE__ */ defineBuiltInComponent({ return () => createVNode("uni-resize-sensor", { "ref": rootRef, "onAnimationstartOnce": update - }, [createVNode("div", { - "onScroll": update - }, [createVNode("div", null, null)], 40, ["onScroll"]), createVNode("div", { - "onScroll": update - }, [createVNode("div", null, null)], 40, ["onScroll"])], 40, ["onAnimationstartOnce"]); + }, { + default: () => [createVNode("div", { + "onScroll": update + }, [createVNode("div", null, null)], 40, ["onScroll"]), createVNode("div", { + "onScroll": update + }, [createVNode("div", null, null)], 40, ["onScroll"])], + _: 1 + }, 8, ["onAnimationstartOnce"]); } }); function useResizeSensorUpdate(rootRef, emit2, reset) { @@ -2795,17 +2804,20 @@ var index$r = /* @__PURE__ */ defineBuiltInComponent({ return createVNode("uni-canvas", mergeProps({ "canvas-id": canvasId, "disable-scroll": disableScroll - }, $attrs.value, $excludeAttrs.value, _listeners.value), [createVNode("canvas", { - "ref": canvas, - "class": "uni-canvas-canvas", - "width": "300", - "height": "150" - }, null, 512), createVNode("div", { - "style": "position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;" - }, [slots.default && slots.default()]), createVNode(ResizeSensor, { - "ref": sensor, - "onResize": _resize - }, null, 8, ["onResize"])], 16, ["canvas-id", "disable-scroll"]); + }, $attrs.value, $excludeAttrs.value, _listeners.value), { + default: () => [createVNode("canvas", { + "ref": canvas, + "class": "uni-canvas-canvas", + "width": "300", + "height": "150" + }, null, 512), createVNode("div", { + "style": "position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;" + }, [slots.default && slots.default()]), createVNode(ResizeSensor, { + "ref": sensor, + "onResize": _resize + }, null, 8, ["onResize"])], + _: 1 + }, 16, ["canvas-id", "disable-scroll"]); }; } }); @@ -3253,7 +3265,9 @@ var index$q = /* @__PURE__ */ defineBuiltInComponent({ return () => { return createVNode("uni-checkbox-group", { "ref": rootRef - }, [slots.default && slots.default()], 512); + }, { + default: () => [slots.default && slots.default()] + }, 512); }; } }); @@ -3356,13 +3370,15 @@ var index$p = /* @__PURE__ */ defineBuiltInComponent({ } = useBooleanAttr(props2, "disabled"); return createVNode("uni-checkbox", mergeProps(booleanAttrs, { "onClick": _onClick - }), [createVNode("div", { - "class": "uni-checkbox-wrapper" - }, [createVNode("div", { - "class": ["uni-checkbox-input", { - "uni-checkbox-input-disabled": props2.disabled - }] - }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])], 16, ["onClick"]); + }), { + default: () => [createVNode("div", { + "class": "uni-checkbox-wrapper" + }, [createVNode("div", { + "class": ["uni-checkbox-input", { + "uni-checkbox-input-disabled": props2.disabled + }] + }, [checkboxChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 2), slots.default && slots.default()])] + }, 16, ["onClick"]); }; } }); @@ -3600,7 +3616,7 @@ function ins(Quill) { }; } function align(Quill) { - const {Scope, Attributor} = Quill.import("parchment"); + const { Scope, Attributor } = Quill.import("parchment"); const config = { scope: Scope.BLOCK, whitelist: ["left", "right", "center", "justify"] @@ -3611,7 +3627,7 @@ function align(Quill) { }; } function direction(Quill) { - const {Scope, Attributor} = Quill.import("parchment"); + const { Scope, Attributor } = Quill.import("parchment"); const config = { scope: Scope.BLOCK, whitelist: ["rtl"] @@ -3667,7 +3683,7 @@ function list(Quill) { } } formats() { - return {[this.statics.blotName]: this.statics.formats(this.domNode)}; + return { [this.statics.blotName]: this.statics.formats(this.domNode) }; } insertBefore(blot, ref2) { if (blot instanceof ListItem) { @@ -3705,7 +3721,7 @@ function list(Quill) { }; } function background(Quill) { - const {Scope} = Quill.import("parchment"); + const { Scope } = Quill.import("parchment"); const BackgroundStyle = Quill.import("formats/background"); const BackgroundColorStyle = new BackgroundStyle.constructor("backgroundColor", "background-color", { scope: Scope.INLINE @@ -3715,7 +3731,7 @@ function background(Quill) { }; } function box(Quill) { - const {Scope, Attributor} = Quill.import("parchment"); + const { Scope, Attributor } = Quill.import("parchment"); const config = { scope: Scope.BLOCK }; @@ -3740,7 +3756,7 @@ function box(Quill) { return result; } function font(Quill) { - const {Scope, Attributor} = Quill.import("parchment"); + const { Scope, Attributor } = Quill.import("parchment"); const config = { scope: Scope.INLINE }; @@ -3759,7 +3775,7 @@ function font(Quill) { return result; } function text(Quill) { - const {Scope, Attributor} = Quill.import("parchment"); + const { Scope, Attributor } = Quill.import("parchment"); const text2 = [ { name: "lineHeight", @@ -3779,7 +3795,7 @@ function text(Quill) { } ]; const result = {}; - text2.forEach(({name, scope}) => { + text2.forEach(({ name, scope }) => { result[`formats/${name}`] = new Attributor.Style(name, hyphenate(name), { scope }); @@ -3890,7 +3906,7 @@ function useQuill(props2, rootRef, trigger) { return; } disable = false; - const arrts = attrs2.map(({name, value}) => `${name}="${value}"`).join(" "); + const arrts = attrs2.map(({ name, value }) => `${name}="${value}"`).join(" "); const start = `<${tag} ${arrts} ${unary ? "/" : ""}>`; content += start; }, @@ -3971,7 +3987,7 @@ function useQuill(props2, rootRef, trigger) { return delta; } if (delta.ops) { - delta.ops = delta.ops.filter(({insert}) => typeof insert === "string").map(({insert}) => ({insert})); + delta.ops = delta.ops.filter(({ insert }) => typeof insert === "string").map(({ insert }) => ({ insert })); } return delta; }); @@ -4003,7 +4019,7 @@ function useQuill(props2, rootRef, trigger) { }); const id2 = useContextInfo(); useSubscribe((type, data) => { - const {options, callbackId} = data; + const { options, callbackId } = data; let res; let range; let errMsg; @@ -4012,7 +4028,7 @@ function useQuill(props2, rootRef, trigger) { switch (type) { case "format": { - let {name = "", value = false} = options; + let { name = "", value = false } = options; range = quill.getSelection(true); let format = quill.getFormat(range)[name] || false; if (["bold", "italic", "underline", "strike", "ins"].includes(name)) { @@ -4074,14 +4090,14 @@ function useQuill(props2, rootRef, trigger) { case "insertText": { range = quill.getSelection(true); - const {text: text2 = ""} = options; + const { text: text2 = "" } = options; quill.insertText(range.index, text2, "user"); quill.setSelection(range.index + text2.length, 0, "silent"); } break; case "setContents": { - const {delta, html} = options; + const { delta, html } = options; if (typeof delta === "object") { quill.setContents(delta, "silent"); } else if (typeof html === "string") { @@ -4123,7 +4139,7 @@ function useQuill(props2, rootRef, trigger) { break; case "getSelectionText": range = quill.selection.savedRange; - res = {text: ""}; + res = { text: "" }; if (range && range.length !== 0) { res.text = quill.getText(range.index, range.length); } @@ -4257,7 +4273,9 @@ var index$n = /* @__PURE__ */ defineBuiltInComponent({ const { value } = path; - return createVNode("uni-icon", null, [value && value.d && createSvgIconVNode(value.d, props2.color || value.c, rpx2px(props2.size))]); + return createVNode("uni-icon", null, { + default: () => [value && value.d && createSvgIconVNode(value.d, props2.color || value.c, rpx2px(props2.size))] + }); }; } }); @@ -4324,14 +4342,17 @@ var index$m = /* @__PURE__ */ defineBuiltInComponent({ } = state2; return createVNode("uni-image", { "ref": rootRef - }, [createVNode("div", { - "style": modeStyle - }, null, 4), imgSrc ? createVNode("img", { - "src": imgSrc, - "draggable": props2.draggable - }, null, 8, ["src", "draggable"]) : createVNode("img", null, null), FIX_MODES[mode2] ? createVNode(ResizeSensor, { - "onResize": fixSize - }, null, 8, ["onResize"]) : createVNode("span", null, null)], 512); + }, { + default: () => [createVNode("div", { + "style": modeStyle + }, null, 4), imgSrc ? createVNode("img", { + "src": imgSrc, + "draggable": props2.draggable + }, null, 8, ["src", "draggable"]) : createVNode("img", null, null), FIX_MODES[mode2] ? createVNode(ResizeSensor, { + "onResize": fixSize + }, null, 8, ["onResize"]) : createVNode("span", null, null)], + _: 1 + }, 512); }; } }); @@ -4582,7 +4603,7 @@ const UniViewJSBridgeSubscribe = function() { if (pageIds.includes(pageId)) return; pageIds.push(pageId); - UniViewJSBridge.subscribe(pageId + ".getSelectedTextRange", function({pageId: pageId2, callbackId}) { + UniViewJSBridge.subscribe(pageId + ".getSelectedTextRange", function({ pageId: pageId2, callbackId }) { const activeElement = document.activeElement; if (!activeElement) return; @@ -4847,11 +4868,11 @@ function useEvent(fieldRef, state2, trigger, triggerInput, beforeInput) { } function useField(props2, rootRef, emit2, beforeInput) { UniViewJSBridgeSubscribe(); - const {fieldRef, state: state2, trigger} = useBase(props2, rootRef, emit2); - const {triggerInput} = useValueSync(props2, state2, emit2, trigger); + const { fieldRef, state: state2, trigger } = useBase(props2, rootRef, emit2); + const { triggerInput } = useValueSync(props2, state2, emit2, trigger); useAutoFocus(props2, fieldRef); useKeyboard$1(props2, fieldRef); - const {state: scopedAttrsState} = useScopedAttrs(); + const { state: scopedAttrsState } = useScopedAttrs(); useFormField("name", state2); useEvent(fieldRef, state2, trigger, triggerInput, beforeInput); const fixDisabledColor = String(navigator.vendor).indexOf("Apple") === 0 && CSS.supports("image-orientation:from-image"); @@ -4955,16 +4976,18 @@ var Input = /* @__PURE__ */ defineBuiltInComponent({ }, null, 40, ["value", "disabled", "type", "maxlength", "step", "enterkeyhint", "onKeyup"]); return createVNode("uni-input", { "ref": rootRef - }, [createVNode("div", { - "class": "uni-input-wrapper" - }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-input-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vShow, !(state2.value.length || !valid.value)]]), props2.confirmType === "search" ? createVNode("form", { - "action": "", - "onSubmit": (event) => event.preventDefault(), - "class": "uni-input-form" - }, [inputNode], 40, ["onSubmit"]) : inputNode])], 512); + }, { + default: () => [createVNode("div", { + "class": "uni-input-wrapper" + }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { + "style": props2.placeholderStyle, + "class": ["uni-input-placeholder", props2.placeholderClass] + }), [props2.placeholder], 16), [[vShow, !(state2.value.length || !valid.value)]]), props2.confirmType === "search" ? createVNode("form", { + "action": "", + "onSubmit": (event) => event.preventDefault(), + "class": "uni-input-form" + }, [inputNode], 40, ["onSubmit"]) : inputNode])] + }, 512); }; } }); @@ -4974,7 +4997,7 @@ function entries(obj) { const DEFAULT_EXCLUDE_KEYS = ["class", "style"]; const LISTENER_PREFIX = /^on[A-Z]+/; const useAttrs = (params = {}) => { - const {excludeListeners = false, excludeKeys = []} = params; + const { excludeListeners = false, excludeKeys = [] } = params; const instance2 = getCurrentInstance(); const attrs2 = shallowRef({}); const listeners = shallowRef({}); @@ -5003,11 +5026,11 @@ const useAttrs = (params = {}) => { listeners.value = res.listeners; excludeAttrs.value = res.exclude; }); - return {$attrs: attrs2, $listeners: listeners, $excludeAttrs: excludeAttrs}; + return { $attrs: attrs2, $listeners: listeners, $excludeAttrs: excludeAttrs }; }; function initScrollBounce() { } -function disableScrollBounce({disable}) { +function disableScrollBounce({ disable }) { } function flatVNode(nodes) { const array = []; @@ -5094,9 +5117,12 @@ var MovableArea = /* @__PURE__ */ defineBuiltInComponent({ movableViewItems = flatVNode(defaultSlots); return createVNode("uni-movable-area", mergeProps({ "ref": rootRef - }, $attrs.value, $excludeAttrs.value, _listeners), [createVNode(ResizeSensor, { - "onReize": movableAreaEvents._resize - }, null, 8, ["onReize"]), movableViewItems], 16); + }, $attrs.value, $excludeAttrs.value, _listeners), { + default: () => [createVNode(ResizeSensor, { + "onReize": movableAreaEvents._resize + }, null, 8, ["onReize"]), movableViewItems], + _: 2 + }, 16); }; } }); @@ -5706,9 +5732,12 @@ var MovableView = /* @__PURE__ */ defineBuiltInComponent({ return () => { return createVNode("uni-movable-view", { "ref": rootRef - }, [createVNode(ResizeSensor, { - "onResize": setParent - }, null, 8, ["onResize"]), slots.default && slots.default()], 512); + }, { + default: () => [createVNode(ResizeSensor, { + "onResize": setParent + }, null, 8, ["onResize"]), slots.default && slots.default()], + _: 1 + }, 512); }; } }); @@ -6368,7 +6397,9 @@ var index$l = /* @__PURE__ */ defineBuiltInComponent({ "class": hasHoverClass && hovering.value ? hoverClass : "" }, hasHoverClass && binding, { "onClick": onClick - }), [slots.default && slots.default()], 16, ["onClick"]); + }), { + default: () => [slots.default && slots.default()] + }, 16, ["class", "onClick"]); }; } }); @@ -6466,14 +6497,17 @@ var PickerView = /* @__PURE__ */ defineBuiltInComponent({ columnVNodes = flatVNode(defaultSlots); return createVNode("uni-picker-view", { "ref": rootRef - }, [createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": ({ - height - }) => state2.height = height - }, null, 8, ["onResize"]), createVNode("div", { - "class": "uni-picker-view-wrapper" - }, [defaultSlots])], 512); + }, { + default: () => [createVNode(ResizeSensor, { + "ref": resizeSensorRef, + "onResize": ({ + height + }) => state2.height = height + }, null, 8, ["onResize"]), createVNode("div", { + "class": "uni-picker-view-wrapper" + }, [defaultSlots])], + _: 2 + }, 512); }; } }); @@ -7315,28 +7349,30 @@ var PickerViewColumn = /* @__PURE__ */ defineBuiltInComponent({ const padding = `${maskSize.value}px 0`; return createVNode("uni-picker-view-column", { "ref": rootRef - }, [createVNode("div", { - "onWheel": handleWheel, - "onClick": handleTap, - "class": "uni-picker-view-group" - }, [createVNode("div", mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-mask", pickerViewProps.maskClass], - "style": `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` - }), null, 16), createVNode("div", mergeProps(scopedAttrsState.attrs, { - "class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass], - "style": pickerViewProps.indicatorStyle - }), [createVNode(ResizeSensor, { - "ref": resizeSensorRef, - "onResize": ({ - height - }) => indicatorHeight.value = height - }, null, 8, ["onResize"])], 16), createVNode("div", { - "ref": contentRef, - "class": ["uni-picker-view-content", className], - "style": { - padding - } - }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])], 512); + }, { + default: () => [createVNode("div", { + "onWheel": handleWheel, + "onClick": handleTap, + "class": "uni-picker-view-group" + }, [createVNode("div", mergeProps(scopedAttrsState.attrs, { + "class": ["uni-picker-view-mask", pickerViewProps.maskClass], + "style": `background-size: 100% ${maskSize.value}px;${pickerViewProps.maskStyle}` + }), null, 16), createVNode("div", mergeProps(scopedAttrsState.attrs, { + "class": ["uni-picker-view-indicator", pickerViewProps.indicatorClass], + "style": pickerViewProps.indicatorStyle + }), [createVNode(ResizeSensor, { + "ref": resizeSensorRef, + "onResize": ({ + height + }) => indicatorHeight.value = height + }, null, 8, ["onResize"])], 16), createVNode("div", { + "ref": contentRef, + "class": ["uni-picker-view-content", className], + "style": { + padding + } + }, [defaultSlots], 6)], 40, ["onWheel", "onClick"])] + }, 512); }; } }); @@ -7414,15 +7450,18 @@ var index$k = /* @__PURE__ */ defineBuiltInComponent({ } = state2; return createVNode("uni-progress", { "class": "uni-progress" - }, [createVNode("div", { - "style": outerBarStyle, - "class": "uni-progress-bar" - }, [createVNode("div", { - "style": innerBarStyle, - "class": "uni-progress-inner-bar" - }, null, 4)], 4), showInfo ? createVNode("p", { - "class": "uni-progress-info" - }, [currentPercent + "%"]) : ""]); + }, { + default: () => [createVNode("div", { + "style": outerBarStyle, + "class": "uni-progress-bar" + }, [createVNode("div", { + "style": innerBarStyle, + "class": "uni-progress-inner-bar" + }, null, 4)], 4), showInfo ? createVNode("p", { + "class": "uni-progress-info" + }, [currentPercent + "%"]) : ""], + _: 1 + }); }; } }); @@ -7484,7 +7523,9 @@ var index$j = /* @__PURE__ */ defineBuiltInComponent({ return () => { return createVNode("uni-radio-group", { "ref": rootRef - }, [slots.default && slots.default()], 512); + }, { + default: () => [slots.default && slots.default()] + }, 512); }; } }); @@ -7614,14 +7655,16 @@ var index$i = /* @__PURE__ */ defineBuiltInComponent({ } = useBooleanAttr(props2, "disabled"); return createVNode("uni-radio", mergeProps(booleanAttrs, { "onClick": _onClick - }), [createVNode("div", { - "class": "uni-radio-wrapper" - }, [createVNode("div", { - "class": ["uni-radio-input", { - "uni-radio-input-disabled": props2.disabled - }], - "style": radioChecked.value ? checkedStyle.value : "" - }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])], 16, ["onClick"]); + }), { + default: () => [createVNode("div", { + "class": "uni-radio-wrapper" + }, [createVNode("div", { + "class": ["uni-radio-input", { + "uni-radio-input-disabled": props2.disabled + }], + "style": radioChecked.value ? checkedStyle.value : "" + }, [radioChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, "#fff", 18) : ""], 6), slots.default && slots.default()])] + }, 16, ["onClick"]); }; } }); @@ -7900,7 +7943,9 @@ var index$h = /* @__PURE__ */ defineBuiltInComponent({ return () => { return createVNode("uni-rich-text", { "ref": rootRef - }, [createVNode("div", null, null)], 512); + }, { + default: () => [createVNode("div", null, null)] + }, 512); }; } }); @@ -8005,54 +8050,56 @@ var ScrollView = /* @__PURE__ */ defineBuiltInComponent({ } = state2; return createVNode("uni-scroll-view", { "ref": rootRef - }, [createVNode("div", { - "ref": wrap, - "class": "uni-scroll-view" - }, [createVNode("div", { - "ref": main, - "style": mainStyle.value, - "class": "uni-scroll-view" - }, [createVNode("div", { - "ref": content, - "class": "uni-scroll-view-content" - }, [refresherEnabled ? createVNode("div", { - "ref": refresherinner, - "style": { - backgroundColor: refresherBackground, - height: refresherHeight + "px" - }, - "class": "uni-scroll-view-refresher" - }, [refresherDefaultStyle !== "none" ? createVNode("div", { - "class": "uni-scroll-view-refresh" - }, [createVNode("div", { - "class": "uni-scroll-view-refresh-inner" - }, [refreshState == "pulling" ? createVNode("svg", { - "style": { - transform: "rotate(" + refreshRotate + "deg)" - }, - "fill": "#2BD009", - "class": "uni-scroll-view-refresh__icon", - "width": "24", - "height": "24", - "viewBox": "0 0 24 24" - }, [createVNode("path", { - "d": "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" - }, null), createVNode("path", { - "d": "M0 0h24v24H0z", - "fill": "none" - }, null)], 4) : null, refreshState == "refreshing" ? createVNode("svg", { - "class": "uni-scroll-view-refresh__spinner", - "width": "24", - "height": "24", - "viewBox": "25 25 50 50" - }, [createVNode("circle", { - "cx": "50", - "cy": "50", - "r": "20", - "fill": "none", - "style": "color: #2bd009", - "stroke-width": "3" - }, null)]) : null])]) : null, refresherDefaultStyle == "none" ? slots.refresher && slots.refresher() : null], 4) : null, slots.default && slots.default()], 512)], 4)], 512)], 512); + }, { + default: () => [createVNode("div", { + "ref": wrap, + "class": "uni-scroll-view" + }, [createVNode("div", { + "ref": main, + "style": mainStyle.value, + "class": "uni-scroll-view" + }, [createVNode("div", { + "ref": content, + "class": "uni-scroll-view-content" + }, [refresherEnabled ? createVNode("div", { + "ref": refresherinner, + "style": { + backgroundColor: refresherBackground, + height: refresherHeight + "px" + }, + "class": "uni-scroll-view-refresher" + }, [refresherDefaultStyle !== "none" ? createVNode("div", { + "class": "uni-scroll-view-refresh" + }, [createVNode("div", { + "class": "uni-scroll-view-refresh-inner" + }, [refreshState == "pulling" ? createVNode("svg", { + "style": { + transform: "rotate(" + refreshRotate + "deg)" + }, + "fill": "#2BD009", + "class": "uni-scroll-view-refresh__icon", + "width": "24", + "height": "24", + "viewBox": "0 0 24 24" + }, [createVNode("path", { + "d": "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" + }, null), createVNode("path", { + "d": "M0 0h24v24H0z", + "fill": "none" + }, null)], 4) : null, refreshState == "refreshing" ? createVNode("svg", { + "class": "uni-scroll-view-refresh__spinner", + "width": "24", + "height": "24", + "viewBox": "25 25 50 50" + }, [createVNode("circle", { + "cx": "50", + "cy": "50", + "r": "20", + "fill": "none", + "style": "color: #2bd009", + "stroke-width": "3" + }, null)]) : null])]) : null, refresherDefaultStyle == "none" ? slots.refresher && slots.refresher() : null], 4) : null, slots.default && slots.default()], 512)], 4)], 512)] + }, 512); }; } }); @@ -8454,27 +8501,30 @@ var index$g = /* @__PURE__ */ defineBuiltInComponent({ return createVNode("uni-slider", { "ref": sliderRef, "onClick": withWebEvent(_onClick) - }, [createVNode("div", { - "class": "uni-slider-wrapper" - }, [createVNode("div", { - "class": "uni-slider-tap-area" - }, [createVNode("div", { - "style": setBgColor.value, - "class": "uni-slider-handle-wrapper" - }, [createVNode("div", { - "ref": sliderHandleRef, - "style": setBlockBg.value, - "class": "uni-slider-handle" - }, null, 4), createVNode("div", { - "style": setBlockStyle.value, - "class": "uni-slider-thumb" - }, null, 4), createVNode("div", { - "style": setActiveColor.value, - "class": "uni-slider-track" - }, null, 4)], 4)]), withDirectives(createVNode("span", { - "ref": sliderValueRef, - "class": "uni-slider-value" - }, [sliderValue.value], 512), [[vShow, props2.showValue]])]), createVNode("slot", null, null)], 8, ["onClick"]); + }, { + default: () => [createVNode("div", { + "class": "uni-slider-wrapper" + }, [createVNode("div", { + "class": "uni-slider-tap-area" + }, [createVNode("div", { + "style": setBgColor.value, + "class": "uni-slider-handle-wrapper" + }, [createVNode("div", { + "ref": sliderHandleRef, + "style": setBlockBg.value, + "class": "uni-slider-handle" + }, null, 4), createVNode("div", { + "style": setBlockStyle.value, + "class": "uni-slider-thumb" + }, null, 4), createVNode("div", { + "style": setActiveColor.value, + "class": "uni-slider-track" + }, null, 4)], 4)]), withDirectives(createVNode("span", { + "ref": sliderValueRef, + "class": "uni-slider-value" + }, [sliderValue.value], 512), [[vShow, props2.showValue]])]), createVNode("slot", null, null)], + _: 1 + }, 8, ["onClick"]); }; } }); @@ -9150,28 +9200,30 @@ var Swiper = /* @__PURE__ */ defineBuiltInComponent({ swiperItems = flatVNode(defaultSlots); return createVNode("uni-swiper", { "ref": rootRef - }, [createVNode("div", { - "ref": slidesWrapperRef, - "class": "uni-swiper-wrapper" - }, [createVNode("div", { - "class": "uni-swiper-slides", - "style": slidesStyle.value - }, [createVNode("div", { - "ref": slideFrameRef, - "class": "uni-swiper-slide-frame", - "style": slideFrameStyle.value - }, [defaultSlots], 4)], 4), props2.indicatorDots && createVNode("div", { - "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] - }, [swiperContexts.value.map((_, index2, array) => createVNode("div", { - "onClick": () => onSwiperDotClick(index2), - "class": { - "uni-swiper-dot": true, - "uni-swiper-dot-active": index2 < state2.current + state2.displayMultipleItems && index2 >= state2.current || index2 < state2.current + state2.displayMultipleItems - array.length - }, - "style": { - background: index2 === state2.current ? props2.indicatorActiveColor : props2.indicatorColor - } - }, null, 14, ["onClick"]))], 2)], 512)], 512); + }, { + default: () => [createVNode("div", { + "ref": slidesWrapperRef, + "class": "uni-swiper-wrapper" + }, [createVNode("div", { + "class": "uni-swiper-slides", + "style": slidesStyle.value + }, [createVNode("div", { + "ref": slideFrameRef, + "class": "uni-swiper-slide-frame", + "style": slideFrameStyle.value + }, [defaultSlots], 4)], 4), props2.indicatorDots && createVNode("div", { + "class": ["uni-swiper-dots", props2.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"] + }, [swiperContexts.value.map((_, index2, array) => createVNode("div", { + "onClick": () => onSwiperDotClick(index2), + "class": { + "uni-swiper-dot": true, + "uni-swiper-dot-active": index2 < state2.current + state2.displayMultipleItems && index2 >= state2.current || index2 < state2.current + state2.displayMultipleItems - array.length + }, + "style": { + background: index2 === state2.current ? props2.indicatorActiveColor : props2.indicatorColor + } + }, null, 14, ["onClick"]))], 2)], 512)] + }, 512); }; } }); @@ -9228,7 +9280,9 @@ var SwiperItem = /* @__PURE__ */ defineBuiltInComponent({ width: "100%", height: "100%" } - }, [slots.default && slots.default()], 512); + }, { + default: () => [slots.default && slots.default()] + }, 512); }; } }); @@ -9302,17 +9356,19 @@ var index$f = /* @__PURE__ */ defineBuiltInComponent({ "ref": rootRef }, booleanAttrs, { "onClick": _onClick - }), [createVNode("div", { - "class": "uni-switch-wrapper" - }, [withDirectives(createVNode("div", { - "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], - "style": { - backgroundColor: switchChecked.value ? color : "#DFDFDF", - borderColor: switchChecked.value ? color : "#DFDFDF" - } - }, null, 6), [[vShow, type === "switch"]]), withDirectives(createVNode("div", { - "class": "uni-checkbox-input" - }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vShow, type === "checkbox"]])])], 16, ["onClick"]); + }), { + default: () => [createVNode("div", { + "class": "uni-switch-wrapper" + }, [withDirectives(createVNode("div", { + "class": ["uni-switch-input", [switchChecked.value ? "uni-switch-input-checked" : ""]], + "style": { + backgroundColor: switchChecked.value ? color : "#DFDFDF", + borderColor: switchChecked.value ? color : "#DFDFDF" + } + }, null, 6), [[vShow, type === "switch"]]), withDirectives(createVNode("div", { + "class": "uni-checkbox-input" + }, [switchChecked.value ? createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE, props2.color, 22) : ""], 512), [[vShow, type === "checkbox"]])])] + }, 16, ["onClick"]); }; } }); @@ -9340,6 +9396,9 @@ function useSwitchInject(props2, switchChecked) { } return uniLabel; } +function _isSlot$5(s) { + return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s); +} const SPACE_UNICODE = { ensp: "\u2002", emsp: "\u2003", @@ -9377,6 +9436,7 @@ var index$e = /* @__PURE__ */ defineBuiltInComponent({ slots }) { return () => { + let _slot; const children = []; if (slots.default) { slots.default().forEach((vnode) => { @@ -9406,7 +9466,10 @@ var index$e = /* @__PURE__ */ defineBuiltInComponent({ } return createVNode("uni-text", { "selectable": props2.selectable ? true : null - }, [createVNode("span", null, children)], 8, ["selectable"]); + }, _isSlot$5(_slot = createVNode("span", null, children)) ? _slot : { + default: () => [_slot], + _: 1 + }, 8, ["selectable"]); }; } }); @@ -9523,24 +9586,26 @@ var index$d = /* @__PURE__ */ defineBuiltInComponent({ }, null, 46, ["value", "disabled", "maxlength", "enterkeyhint", "onKeydown", "onKeyup"]); return createVNode("uni-textarea", { "ref": rootRef - }, [createVNode("div", { - "class": "uni-textarea-wrapper" - }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { - "style": props2.placeholderStyle, - "class": ["uni-textarea-placeholder", props2.placeholderClass] - }), [props2.placeholder], 16), [[vShow, !state2.value.length]]), createVNode("div", { - "ref": lineRef, - "class": "uni-textarea-line" - }, [" "], 512), createVNode("div", { - "class": "uni-textarea-compute" - }, [valueCompute.value.map((item) => createVNode("div", null, [item.trim() ? item : "."])), createVNode(ResizeSensor, { - "initial": true, - "onResize": onResize2 - }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? createVNode("form", { - "action": "", - "onSubmit": () => false, - "class": "uni-input-form" - }, [textareaNode], 40, ["onSubmit"]) : textareaNode])], 512); + }, { + default: () => [createVNode("div", { + "class": "uni-textarea-wrapper" + }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, { + "style": props2.placeholderStyle, + "class": ["uni-textarea-placeholder", props2.placeholderClass] + }), [props2.placeholder], 16), [[vShow, !state2.value.length]]), createVNode("div", { + "ref": lineRef, + "class": "uni-textarea-line" + }, [" "], 512), createVNode("div", { + "class": "uni-textarea-compute" + }, [valueCompute.value.map((item) => createVNode("div", null, [item.trim() ? item : "."])), createVNode(ResizeSensor, { + "initial": true, + "onResize": onResize2 + }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? createVNode("form", { + "action": "", + "onSubmit": () => false, + "class": "uni-input-form" + }, [textareaNode], 40, ["onSubmit"]) : textareaNode])] + }, 512); }; } }); @@ -9559,9 +9624,13 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({ if (hoverClass && hoverClass !== "none") { return createVNode("uni-view", mergeProps({ "class": hovering.value ? hoverClass : "" - }, binding), [slots.default && slots.default()], 16); + }, binding), { + default: () => [slots.default && slots.default()] + }, 16, ["class"]); } - return createVNode("uni-view", null, [slots.default && slots.default()]); + return createVNode("uni-view", null, { + default: () => [slots.default && slots.default()] + }); }; } }); @@ -9578,7 +9647,7 @@ function addSubscribe(name, callback) { if (!name) { return; } - UniViewJSBridge.subscribe(name, ({type, data}) => { + UniViewJSBridge.subscribe(name, ({ type, data }) => { callback(type, data); }); } @@ -9659,7 +9728,7 @@ function getRootInfo(fields2) { } function getNodeInfo(el, fields2) { const info = {}; - const {top} = getWindowOffset(); + const { top } = getWindowOffset(); if (fields2.id) { info.id = el.id; } @@ -9738,7 +9807,7 @@ function getNodesInfo(pageVm, component, selector, single, fields2) { } function requestComponentInfo(page, reqs, callback) { const result = []; - reqs.forEach(({component, selector, single, fields: fields2}) => { + reqs.forEach(({ component, selector, single, fields: fields2 }) => { if (component === null) { result.push(getRootInfo(fields2)); } else { @@ -9747,11 +9816,11 @@ function requestComponentInfo(page, reqs, callback) { }); callback(result); } -function addIntersectionObserver({reqId, component, options, callback}, _pageId) { +function addIntersectionObserver({ reqId, component, options, callback }, _pageId) { const $el = findElem(component); ($el.__io || ($el.__io = {}))[reqId] = requestComponentObserver($el, options, callback); } -function removeIntersectionObserver({reqId, component}, _pageId) { +function removeIntersectionObserver({ reqId, component }, _pageId) { const $el = findElem(component); const intersectionObserver = $el.__io && $el.__io[reqId]; if (intersectionObserver) { @@ -9786,13 +9855,13 @@ function handleMediaQueryStr($props) { function humpToLine(name) { return name.replace(/([A-Z])/g, "-$1").toLowerCase(); } -function addMediaQueryObserver({reqId, component, options, callback}, _pageId) { +function addMediaQueryObserver({ reqId, component, options, callback }, _pageId) { mediaQueryObserver = window.matchMedia(handleMediaQueryStr(options)); listener$2 = (observer) => callback(observer.matches); listener$2(mediaQueryObserver); mediaQueryObserver.addListener(listener$2); } -function removeMediaQueryObserver({reqId, component}, _pageId) { +function removeMediaQueryObserver({ reqId, component }, _pageId) { if (mediaQueryObserver) { mediaQueryObserver.removeListener(listener$2); } @@ -9853,9 +9922,9 @@ function blobToFile(blob, type) { type = type || blob.type || ""; const filename = `${Date.now()}${getExtname(type)}`; try { - file = new File([blob], filename, {type}); + file = new File([blob], filename, { type }); } catch (error) { - blob = blob instanceof Blob ? blob : new Blob([blob], {type}); + blob = blob instanceof Blob ? blob : new Blob([blob], { type }); file = blob; file.name = file.name || filename; } @@ -9902,7 +9971,7 @@ let isIOS = false; let deviceWidth = 0; let deviceDPR = 0; function checkDeviceWidth() { - const {platform, pixelRatio: pixelRatio2, windowWidth} = getBaseSystemInfo(); + const { platform, pixelRatio: pixelRatio2, windowWidth } = getBaseSystemInfo(); deviceWidth = windowWidth; deviceDPR = pixelRatio2; isIOS = platform === "ios"; @@ -10297,7 +10366,7 @@ const CanvasToTempFilePathProtocol = { quality: Number }; const canvasEventCallbacks = createCallbacks("canvasEvent"); -ServiceJSBridge.subscribe("onCanvasMethodCallback", ({callbackId, data}) => { +ServiceJSBridge.subscribe("onCanvasMethodCallback", ({ callbackId, data }) => { const callback = canvasEventCallbacks.pop(callbackId); if (callback) { callback(data); @@ -11038,7 +11107,7 @@ const createCanvasContext = /* @__PURE__ */ defineSyncApi(API_CREATE_CANVAS_CONT UniServiceJSBridge.emit("onError", "createCanvasContext:fail"); } }, CreateCanvasContextProtocol); -const canvasGetImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_GET_IMAGE_DATA, ({canvasId, x, y, width, height}, {resolve, reject}) => { +const canvasGetImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_GET_IMAGE_DATA, ({ canvasId, x, y, width, height }, { resolve, reject }) => { const pageId = getPageIdByVm(getCurrentPageVm()); if (!pageId) { reject(); @@ -11059,7 +11128,7 @@ const canvasGetImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_GET_IMAGE_D callbackId: cId }); }, CanvasGetImageDataProtocol, CanvasGetImageDataOptions); -const canvasPutImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_PUT_IMAGE_DATA, async ({canvasId, data, x, y, width, height}, {resolve, reject}) => { +const canvasPutImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_PUT_IMAGE_DATA, async ({ canvasId, data, x, y, width, height }, { resolve, reject }) => { var pageId = getPageIdByVm(getCurrentPageVm()); if (!pageId) { reject(); @@ -11092,7 +11161,7 @@ const canvasToTempFilePath = /* @__PURE__ */ defineAsyncApi(API_CANVAS_TO_TEMP_F canvasId, fileType, quality -}, {resolve, reject}) => { +}, { resolve, reject }) => { var pageId = getPageIdByVm(getCurrentPageVm()); if (!pageId) { reject(); @@ -11155,7 +11224,7 @@ class ServiceIntersectionObserver { }, this._pageId); } disconnect() { - this._reqId && removeIntersectionObserver({reqId: this._reqId, component: this._component}, this._pageId); + this._reqId && removeIntersectionObserver({ reqId: this._reqId, component: this._component }, this._pageId); } } const createIntersectionObserver = /* @__PURE__ */ defineSyncApi("createIntersectionObserver", (context, options) => { @@ -11212,7 +11281,7 @@ function operateEditor(componentId, pageId, type, options) { data.callbackId = callbackId; optionsCache[callbackId] = options; if (!eventReady) { - ServiceJSBridge.subscribe("onEditorMethodCallback", ({callbackId: callbackId2, data: data2}) => { + ServiceJSBridge.subscribe("onEditorMethodCallback", ({ callbackId: callbackId2, data: data2 }) => { callOptions(optionsCache[callbackId2], data2); delete optionsCache[callbackId2]; }); @@ -11285,7 +11354,7 @@ const ContextClasss = { }; function convertContext(result) { if (result && result.contextInfo) { - const {id: id2, type, page} = result.contextInfo; + const { id: id2, type, page } = result.contextInfo; const ContextClass = ContextClasss[type]; result.context = new ContextClass(id2, page); delete result.contextInfo; @@ -11499,13 +11568,13 @@ const onTabBarMidButtonTap = /* @__PURE__ */ defineOnApi(API_ON_TAB_BAR_MID_BUTT }); const API_GET_SELECTED_TEXT_RANGE = "getSelectedTextRange"; const getSelectedTextRangeEventCallbacks = createCallbacks("getSelectedTextRangeEvent"); -ServiceJSBridge.subscribe && ServiceJSBridge.subscribe("onGetSelectedTextRange", ({callbackId, data}) => { +ServiceJSBridge.subscribe && ServiceJSBridge.subscribe("onGetSelectedTextRange", ({ callbackId, data }) => { const callback = getSelectedTextRangeEventCallbacks.pop(callbackId); if (callback) { callback(data); } }); -const getSelectedTextRange = /* @__PURE__ */ defineAsyncApi(API_GET_SELECTED_TEXT_RANGE, (_, {resolve, reject}) => { +const getSelectedTextRange = /* @__PURE__ */ defineAsyncApi(API_GET_SELECTED_TEXT_RANGE, (_, { resolve, reject }) => { const pageId = getCurrentPageId(); ServiceJSBridge.publishHandler && ServiceJSBridge.publishHandler("getSelectedTextRange", { pageId, @@ -12071,7 +12140,7 @@ function createNormalizeUrl(type) { } url = getRealRoute(url); const pagePath = url.split("?")[0]; - const routeOptions = __uniRoutes.find(({path, alias}) => path === pagePath || alias === pagePath); + const routeOptions = __uniRoutes.find(({ path, alias }) => path === pagePath || alias === pagePath); if (!routeOptions) { return "page `" + url + "` is not found"; } @@ -12131,7 +12200,7 @@ const SetNavigationBarColorOptions = { formatArgs: { animation(animation2, params) { if (!animation2) { - animation2 = {duration: 0, timingFunc: "linear"}; + animation2 = { duration: 0, timingFunc: "linear" }; } params.animation = { duration: animation2.duration || 0, @@ -12224,14 +12293,14 @@ const ShowModalOptions = { showCancel: true, cancelText(_value, params) { if (!hasOwn(params, "cancelText")) { - const {t: t2} = useI18n(); + const { t: t2 } = useI18n(); params.cancelText = t2("uni.showModal.cancel"); } }, cancelColor: "#000", confirmText(_value, params) { if (!hasOwn(params, "confirmText")) { - const {t: t2} = useI18n(); + const { t: t2 } = useI18n(); params.confirmText = t2("uni.showModal.confirm"); } }, @@ -12471,7 +12540,7 @@ const initIntersectionObserverPolyfill = function() { throw new Error("target must be an Element"); } this._registerInstance(); - this._observationTargets.push({element: target, entry: null}); + this._observationTargets.push({ element: target, entry: null }); this._monitorIntersections(target.ownerDocument); this._checkForIntersections(); }; @@ -12512,7 +12581,7 @@ const initIntersectionObserverPolyfill = function() { if (!parts) { throw new Error("rootMargin must be specified in pixels or percent"); } - return {value: parseFloat(parts[1]), unit: parts[2]}; + return { value: parseFloat(parts[1]), unit: parts[2] }; }); margins[1] = margins[1] || margins[0]; margins[2] = margins[2] || margins[0]; @@ -12894,7 +12963,7 @@ const initIntersectionObserverPolyfill = function() { window.IntersectionObserverEntry = IntersectionObserverEntry; }; function normalizeRect(rect) { - const {bottom, height, left, right, top, width} = rect || {}; + const { bottom, height, left, right, top, width } = rect || {}; return { bottom, height, @@ -13028,7 +13097,7 @@ function createPageState(type, __id__) { function initPublicPage(route) { const meta = usePageMeta(); if (!__UNI_FEATURE_PAGES__) { - const {path: path2, alias} = __uniRoutes[0]; + const { path: path2, alias } = __uniRoutes[0]; return { id: meta.id, path: path2, @@ -13038,7 +13107,7 @@ function initPublicPage(route) { meta }; } - const {path} = route; + const { path } = route; return { id: meta.id, path, @@ -13143,7 +13212,7 @@ function getScopeId(instance2) { let curScopeId; function updateBodyScopeId(instance2) { const scopeId = getScopeId(instance2); - const {body} = document; + const { body } = document; curScopeId && body.removeAttribute(curScopeId); scopeId && body.setAttribute(scopeId, ""); curScopeId = scopeId; @@ -13157,7 +13226,7 @@ function initPageScrollListener(instance2, pageMeta) { if (pageMeta.disableScroll) { return document.addEventListener("touchmove", disableScrollListener); } - const {onPageScroll, onReachBottom} = instance2; + const { onPageScroll, onReachBottom } = instance2; const navigationBarTransparent = pageMeta.navigationBar.type === "transparent"; if (!onPageScroll && !onReachBottom && !navigationBarTransparent) { return; @@ -13177,7 +13246,7 @@ function initPageScrollListener(instance2, pageMeta) { function createOnPageScroll(pageId, onPageScroll, navigationBarTransparent) { return (scrollTop) => { if (onPageScroll) { - UniViewJSBridge.publishHandler("onPageScroll", {scrollTop}, pageId); + UniViewJSBridge.publishHandler("onPageScroll", { scrollTop }, pageId); } if (navigationBarTransparent) { UniViewJSBridge.emit(pageId + ".onPageScroll", { @@ -13214,7 +13283,7 @@ function removeCurrentPages(delta = 1) { } } function initHistory() { - let {base} = __uniConfig.router; + let { base } = __uniConfig.router; if (base === "/") { base = ""; } @@ -13245,7 +13314,7 @@ function initApp(vm) { appVm.$vm = vm; appVm.globalData = appVm.$options.globalData || {}; } -function wrapperComponentSetup(comp, {init: init2, setup, before}) { +function wrapperComponentSetup(comp, { init: init2, setup, before }) { before && before(comp); const oldSetup = comp.setup; comp.setup = (props2, ctx) => { @@ -13278,28 +13347,28 @@ function setupPage(comp) { const pageMeta = usePageMeta(); onBeforeMount(() => { onPageShow(instance2, pageMeta); - const {onLoad, onShow} = instance2; + const { onLoad, onShow } = instance2; onLoad && invokeArrayFns$1(onLoad, decodedQuery(route.query)); instance2.__isVisible = true; onShow && invokeArrayFns$1(onShow); }); onMounted(() => { onPageReady(instance2); - const {onReady} = instance2; + const { onReady } = instance2; onReady && invokeArrayFns$1(onReady); }); onBeforeActivate(() => { if (!instance2.__isVisible) { onPageShow(instance2, pageMeta); instance2.__isVisible = true; - const {onShow} = instance2; + const { onShow } = instance2; onShow && invokeArrayFns$1(onShow); } }); onBeforeDeactivate(() => { if (instance2.__isVisible && !instance2.__isUnload) { instance2.__isVisible = false; - const {onHide} = instance2; + const { onHide } = instance2; onHide && invokeArrayFns$1(onHide); } }); @@ -13313,7 +13382,7 @@ function setupApp(comp) { setup(instance2) { const route = usePageRoute(); const onLaunch = () => { - const {onLaunch: onLaunch2, onShow} = instance2; + const { onLaunch: onLaunch2, onShow } = instance2; const path = route.path.substr(1); const launchOptions = { path: path || __uniRoutes[0].meta.route, @@ -14060,147 +14129,149 @@ var index$8 = /* @__PURE__ */ defineBuiltInComponent({ return createVNode("uni-video", { "ref": rootRef, "id": props2.id - }, [createVNode("div", { - "ref": containerRef, - "class": "uni-video-container", - "onTouchstart": onTouchstart, - "onTouchend": onTouchend, - "onTouchmove": onTouchmove, - "onFullscreenchange": withModifiers(onFullscreenChange, ["stop"]), - "onWebkitfullscreenchange": withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) - }, [createVNode("video", mergeProps({ - "ref": videoRef, - "style": { - "object-fit": props2.objectFit - }, - "muted": !!props2.muted, - "loop": !!props2.loop, - "src": videoState.src, - "poster": props2.poster, - "autoplay": !!props2.autoplay - }, videoAttrs.value, { - "class": "uni-video-video", - "webkit-playsinline": true, - "playsinline": true, - "onClick": toggleControls, - "onDurationchange": onDurationChange, - "onLoadedmetadata": onLoadedMetadata, - "onProgress": onProgress, - "onWaiting": onWaiting, - "onError": onVideoError, - "onPlay": onPlay, - "onPause": onPause, - "onEnded": onEnded, - "onTimeupdate": (event) => { - onTimeUpdate(event); - updateDanmu(event); - }, - "onWebkitbeginfullscreen": () => emitFullscreenChange(true), - "onX5videoenterfullscreen": () => emitFullscreenChange(true), - "onWebkitendfullscreen": () => emitFullscreenChange(false), - "onX5videoexitfullscreen": () => emitFullscreenChange(false) - }), null, 16, ["muted", "loop", "src", "poster", "autoplay", "webkit-playsinline", "playsinline", "onClick", "onDurationchange", "onLoadedmetadata", "onProgress", "onWaiting", "onError", "onPlay", "onPause", "onEnded", "onTimeupdate", "onWebkitbeginfullscreen", "onX5videoenterfullscreen", "onWebkitendfullscreen", "onX5videoexitfullscreen"]), withDirectives(createVNode("div", { - "class": "uni-video-bar uni-video-bar-full", - "onClick": withModifiers(() => { - }, ["stop"]) - }, [createVNode("div", { - "class": "uni-video-controls" - }, [withDirectives(createVNode("div", { - "class": { - "uni-video-control-button": true, - "uni-video-control-button-play": !videoState.playing, - "uni-video-control-button-pause": videoState.playing - }, - "onClick": withModifiers(toggle, ["stop"]) - }, null, 10, ["onClick"]), [[vShow, props2.showPlayBtn]]), createVNode("div", { - "class": "uni-video-current-time" - }, [formatTime(videoState.currentTime)]), createVNode("div", { - "ref": progressRef, - "class": "uni-video-progress-container", - "onClick": withModifiers(clickProgress, ["stop"]) - }, [createVNode("div", { - "class": "uni-video-progress" - }, [createVNode("div", { - "style": { - width: videoState.buffered + "%" - }, - "class": "uni-video-progress-buffered" - }, null, 4), createVNode("div", { - "ref": ballRef, - "style": { - left: videoState.progress + "%" - }, - "class": "uni-video-ball" - }, [createVNode("div", { - "class": "uni-video-inner" - }, null)], 4)])], 8, ["onClick"]), createVNode("div", { - "class": "uni-video-duration" - }, [formatTime(Number(props2.duration) || videoState.duration)])]), withDirectives(createVNode("div", { - "class": { - "uni-video-danmu-button": true, - "uni-video-danmu-button-active": danmuState.enable - }, - "onClick": withModifiers(toggleDanmu, ["stop"]) - }, [t2("uni.video.danmu")], 10, ["onClick"]), [[vShow, props2.danmuBtn]]), withDirectives(createVNode("div", { - "class": { - "uni-video-fullscreen": true, - "uni-video-type-fullscreen": fullscreenState.fullscreen - }, - "onClick": withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) - }, null, 10, ["onClick"]), [[vShow, props2.showFullscreenBtn]])], 8, ["onClick"]), [[vShow, controlsState.controlsShow]]), withDirectives(createVNode("div", { - "ref": danmuRef, - "style": "z-index: 0;", - "class": "uni-video-danmu" - }, null, 512), [[vShow, videoState.start && danmuState.enable]]), controlsState.centerPlayBtnShow && createVNode("div", { - "class": "uni-video-cover", - "onClick": withModifiers(() => { - }, ["stop"]) - }, [createVNode("div", { - "class": "uni-video-cover-play-button", - "onClick": withModifiers(play, ["stop"]) - }, null, 8, ["onClick"]), createVNode("p", { - "class": "uni-video-cover-duration" - }, [formatTime(Number(props2.duration) || videoState.duration)])], 8, ["onClick"]), createVNode("div", { - "class": { - "uni-video-toast": true, - "uni-video-toast-volume": gestureState.gestureType === "volume" - } - }, [createVNode("div", { - "class": "uni-video-toast-title" - }, [t2("uni.video.volume")]), createVNode("svg", { - "class": "uni-video-toast-icon", - "width": "200px", - "height": "200px", - "viewBox": "0 0 1024 1024", - "version": "1.1", - "xmlns": "http://www.w3.org/2000/svg" - }, [createVNode("path", { - "d": "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" - }, null)]), createVNode("div", { - "class": "uni-video-toast-value" - }, [createVNode("div", { - "style": { - width: gestureState.volumeNew * 100 + "%" - }, - "class": "uni-video-toast-value-content" - }, [createVNode("div", { - "class": "uni-video-toast-volume-grids" - }, [renderList(10, () => createVNode("div", { - "class": "uni-video-toast-volume-grids-item" - }, null))])], 4)])], 2), createVNode("div", { - "class": { - "uni-video-toast": true, - "uni-video-toast-progress": gestureState.gestureType === "progress" - } - }, [createVNode("div", { - "class": "uni-video-toast-title" - }, [formatTime(gestureState.currentTimeNew), " / ", formatTime(videoState.duration)])], 2), createVNode("div", { - "class": "uni-video-slots" - }, [slots.default && slots.default()])], 40, ["onTouchstart", "onTouchend", "onTouchmove", "onFullscreenchange", "onWebkitfullscreenchange"])], 8, ["id"]); + }, { + default: () => [createVNode("div", { + "ref": containerRef, + "class": "uni-video-container", + "onTouchstart": onTouchstart, + "onTouchend": onTouchend, + "onTouchmove": onTouchmove, + "onFullscreenchange": withModifiers(onFullscreenChange, ["stop"]), + "onWebkitfullscreenchange": withModifiers(($event) => onFullscreenChange($event, true), ["stop"]) + }, [createVNode("video", mergeProps({ + "ref": videoRef, + "style": { + "object-fit": props2.objectFit + }, + "muted": !!props2.muted, + "loop": !!props2.loop, + "src": videoState.src, + "poster": props2.poster, + "autoplay": !!props2.autoplay + }, videoAttrs.value, { + "class": "uni-video-video", + "webkit-playsinline": true, + "playsinline": true, + "onClick": toggleControls, + "onDurationchange": onDurationChange, + "onLoadedmetadata": onLoadedMetadata, + "onProgress": onProgress, + "onWaiting": onWaiting, + "onError": onVideoError, + "onPlay": onPlay, + "onPause": onPause, + "onEnded": onEnded, + "onTimeupdate": (event) => { + onTimeUpdate(event); + updateDanmu(event); + }, + "onWebkitbeginfullscreen": () => emitFullscreenChange(true), + "onX5videoenterfullscreen": () => emitFullscreenChange(true), + "onWebkitendfullscreen": () => emitFullscreenChange(false), + "onX5videoexitfullscreen": () => emitFullscreenChange(false) + }), null, 16, ["muted", "loop", "src", "poster", "autoplay", "webkit-playsinline", "playsinline", "onClick", "onDurationchange", "onLoadedmetadata", "onProgress", "onWaiting", "onError", "onPlay", "onPause", "onEnded", "onTimeupdate", "onWebkitbeginfullscreen", "onX5videoenterfullscreen", "onWebkitendfullscreen", "onX5videoexitfullscreen"]), withDirectives(createVNode("div", { + "class": "uni-video-bar uni-video-bar-full", + "onClick": withModifiers(() => { + }, ["stop"]) + }, [createVNode("div", { + "class": "uni-video-controls" + }, [withDirectives(createVNode("div", { + "class": { + "uni-video-control-button": true, + "uni-video-control-button-play": !videoState.playing, + "uni-video-control-button-pause": videoState.playing + }, + "onClick": withModifiers(toggle, ["stop"]) + }, null, 10, ["onClick"]), [[vShow, props2.showPlayBtn]]), createVNode("div", { + "class": "uni-video-current-time" + }, [formatTime(videoState.currentTime)]), createVNode("div", { + "ref": progressRef, + "class": "uni-video-progress-container", + "onClick": withModifiers(clickProgress, ["stop"]) + }, [createVNode("div", { + "class": "uni-video-progress" + }, [createVNode("div", { + "style": { + width: videoState.buffered + "%" + }, + "class": "uni-video-progress-buffered" + }, null, 4), createVNode("div", { + "ref": ballRef, + "style": { + left: videoState.progress + "%" + }, + "class": "uni-video-ball" + }, [createVNode("div", { + "class": "uni-video-inner" + }, null)], 4)])], 8, ["onClick"]), createVNode("div", { + "class": "uni-video-duration" + }, [formatTime(Number(props2.duration) || videoState.duration)])]), withDirectives(createVNode("div", { + "class": { + "uni-video-danmu-button": true, + "uni-video-danmu-button-active": danmuState.enable + }, + "onClick": withModifiers(toggleDanmu, ["stop"]) + }, [t2("uni.video.danmu")], 10, ["onClick"]), [[vShow, props2.danmuBtn]]), withDirectives(createVNode("div", { + "class": { + "uni-video-fullscreen": true, + "uni-video-type-fullscreen": fullscreenState.fullscreen + }, + "onClick": withModifiers(() => toggleFullscreen(!fullscreenState.fullscreen), ["stop"]) + }, null, 10, ["onClick"]), [[vShow, props2.showFullscreenBtn]])], 8, ["onClick"]), [[vShow, controlsState.controlsShow]]), withDirectives(createVNode("div", { + "ref": danmuRef, + "style": "z-index: 0;", + "class": "uni-video-danmu" + }, null, 512), [[vShow, videoState.start && danmuState.enable]]), controlsState.centerPlayBtnShow && createVNode("div", { + "class": "uni-video-cover", + "onClick": withModifiers(() => { + }, ["stop"]) + }, [createVNode("div", { + "class": "uni-video-cover-play-button", + "onClick": withModifiers(play, ["stop"]) + }, null, 8, ["onClick"]), createVNode("p", { + "class": "uni-video-cover-duration" + }, [formatTime(Number(props2.duration) || videoState.duration)])], 8, ["onClick"]), createVNode("div", { + "class": { + "uni-video-toast": true, + "uni-video-toast-volume": gestureState.gestureType === "volume" + } + }, [createVNode("div", { + "class": "uni-video-toast-title" + }, [t2("uni.video.volume")]), createVNode("svg", { + "class": "uni-video-toast-icon", + "width": "200px", + "height": "200px", + "viewBox": "0 0 1024 1024", + "version": "1.1", + "xmlns": "http://www.w3.org/2000/svg" + }, [createVNode("path", { + "d": "M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z" + }, null)]), createVNode("div", { + "class": "uni-video-toast-value" + }, [createVNode("div", { + "style": { + width: gestureState.volumeNew * 100 + "%" + }, + "class": "uni-video-toast-value-content" + }, [createVNode("div", { + "class": "uni-video-toast-volume-grids" + }, [renderList(10, () => createVNode("div", { + "class": "uni-video-toast-volume-grids-item" + }, null))])], 4)])], 2), createVNode("div", { + "class": { + "uni-video-toast": true, + "uni-video-toast-progress": gestureState.gestureType === "progress" + } + }, [createVNode("div", { + "class": "uni-video-toast-title" + }, [formatTime(gestureState.currentTimeNew), " / ", formatTime(videoState.duration)])], 2), createVNode("div", { + "class": "uni-video-slots" + }, [slots.default && slots.default()])], 40, ["onTouchstart", "onTouchend", "onTouchmove", "onFullscreenchange", "onWebkitfullscreenchange"])] + }, 8, ["id"]); }; } }); -const onWebInvokeAppService = ({name, arg}, pageId) => { +const onWebInvokeAppService = ({ name, arg }, pageId) => { if (name === "postMessage") ; else { @@ -14244,9 +14315,11 @@ var index$7 = /* @__PURE__ */ defineBuiltInComponent({ return () => { return createVNode(Fragment, null, [createVNode("uni-web-view", mergeProps($listeners.value, $excludeAttrs.value, { "ref": rootRef - }), [createVNode(ResizeSensor, { - "onResize": _resize - }, null, 8, ["onResize"])], 16), createVNode(Teleport, { + }), { + default: () => [createVNode(ResizeSensor, { + "onResize": _resize + }, null, 8, ["onResize"])] + }, 16), createVNode(Teleport, { "to": "body" }, { default: () => [createVNode("iframe", mergeProps({ @@ -15076,7 +15149,7 @@ class InnerAudioContext { const createInnerAudioContext = /* @__PURE__ */ defineSyncApi(API_CREATE_INNER_AUDIO_CONTEXT, () => { return new InnerAudioContext(); }); -const makePhoneCall = /* @__PURE__ */ defineAsyncApi(API_MAKE_PHONE_CALL, ({phoneNumber}, {resolve}) => { +const makePhoneCall = /* @__PURE__ */ defineAsyncApi(API_MAKE_PHONE_CALL, ({ phoneNumber }, { resolve }) => { window.location.href = `tel:${phoneNumber}`; return resolve(); }, MakePhoneCallProtocol); @@ -15209,7 +15282,7 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", () width: windowWidth - out.left - out.right, height: windowHeight - out.top - out.bottom }; - const {top: windowTop, bottom: windowBottom} = getWindowOffset(); + const { top: windowTop, bottom: windowBottom } = getWindowOffset(); windowHeight -= windowTop; windowHeight -= windowBottom; return { @@ -15234,12 +15307,12 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", () } }; }); -const getSystemInfo = /* @__PURE__ */ defineAsyncApi("getSystemInfo", (_args, {resolve}) => { +const getSystemInfo = /* @__PURE__ */ defineAsyncApi("getSystemInfo", (_args, { resolve }) => { return resolve(getSystemInfoSync()); }); const API_ON_NETWORK_STATUS_CHANGE = "onNetworkStatusChange"; function networkListener() { - getNetworkType().then(({networkType}) => { + getNetworkType().then(({ networkType }) => { UniServiceJSBridge.invokeOnCallback(API_ON_NETWORK_STATUS_CHANGE, { isConnected: networkType !== "none", networkType @@ -15267,7 +15340,7 @@ const offNetworkStatusChange = /* @__PURE__ */ defineOffApi("offNetworkStatusCha window.removeEventListener("online", networkListener); } }); -const getNetworkType = /* @__PURE__ */ defineAsyncApi("getNetworkType", (_args, {resolve}) => { +const getNetworkType = /* @__PURE__ */ defineAsyncApi("getNetworkType", (_args, { resolve }) => { const connection = getConnection(); let networkType = "unknown"; if (connection) { @@ -15280,7 +15353,7 @@ const getNetworkType = /* @__PURE__ */ defineAsyncApi("getNetworkType", (_args, } else if (navigator.onLine === false) { networkType = "none"; } - return resolve({networkType}); + return resolve({ networkType }); }); let listener$1 = null; const onAccelerometerChange = /* @__PURE__ */ defineOnApi(API_ON_ACCELEROMETER, () => { @@ -15289,7 +15362,7 @@ const onAccelerometerChange = /* @__PURE__ */ defineOnApi(API_ON_ACCELEROMETER, const offAccelerometerChange = /* @__PURE__ */ defineOnApi(API_OFF_ACCELEROMETER, () => { stopAccelerometer(); }); -const startAccelerometer = /* @__PURE__ */ defineAsyncApi(API_START_ACCELEROMETER, (_, {resolve, reject}) => { +const startAccelerometer = /* @__PURE__ */ defineAsyncApi(API_START_ACCELEROMETER, (_, { resolve, reject }) => { if (!window.DeviceMotionEvent) { reject(); return; @@ -15323,7 +15396,7 @@ const startAccelerometer = /* @__PURE__ */ defineAsyncApi(API_START_ACCELEROMETE } resolve(); }); -const stopAccelerometer = /* @__PURE__ */ defineAsyncApi(API_STOP_ACCELEROMETER, (_, {resolve}) => { +const stopAccelerometer = /* @__PURE__ */ defineAsyncApi(API_STOP_ACCELEROMETER, (_, { resolve }) => { if (listener$1) { window.removeEventListener("devicemotion", listener$1, false); listener$1 = null; @@ -15337,7 +15410,7 @@ const onCompassChange = /* @__PURE__ */ defineOnApi(API_ON_COMPASS, () => { const offCompassChange = /* @__PURE__ */ defineOnApi(API_OFF_COMPASS, () => { stopCompass(); }); -const startCompass = /* @__PURE__ */ defineAsyncApi(API_START_COMPASS, (_, {resolve, reject}) => { +const startCompass = /* @__PURE__ */ defineAsyncApi(API_START_COMPASS, (_, { resolve, reject }) => { if (!window.DeviceOrientationEvent) { reject(); return; @@ -15369,7 +15442,7 @@ const startCompass = /* @__PURE__ */ defineAsyncApi(API_START_COMPASS, (_, {reso } resolve(); }); -const stopCompass = /* @__PURE__ */ defineAsyncApi(API_STOP_COMPASS, (_, {resolve}) => { +const stopCompass = /* @__PURE__ */ defineAsyncApi(API_STOP_COMPASS, (_, { resolve }) => { if (listener) { window.removeEventListener("deviceorientation", listener, false); listener = null; @@ -15377,14 +15450,14 @@ const stopCompass = /* @__PURE__ */ defineAsyncApi(API_STOP_COMPASS, (_, {resolv resolve(); }); const _isSupport = !!window.navigator.vibrate; -const vibrateShort = /* @__PURE__ */ defineAsyncApi(API_VIBRATE_SHORT, (args, {resolve, reject}) => { +const vibrateShort = /* @__PURE__ */ defineAsyncApi(API_VIBRATE_SHORT, (args, { resolve, reject }) => { if (_isSupport && window.navigator.vibrate(15)) { resolve(); } else { reject("vibrateLong:fail"); } }); -const vibrateLong = /* @__PURE__ */ defineAsyncApi(API_VIBRATE_LONG, (args, {resolve, reject}) => { +const vibrateLong = /* @__PURE__ */ defineAsyncApi(API_VIBRATE_LONG, (args, { resolve, reject }) => { if (_isSupport && window.navigator.vibrate(400)) { resolve(); } else { @@ -15421,7 +15494,7 @@ const setStorageSync = /* @__PURE__ */ defineSyncApi(API_SET_STORAGE_SYNC, (key, }); localStorage.setItem(key, value); }, SetStorageSyncProtocol); -const setStorage = /* @__PURE__ */ defineAsyncApi(API_SET_STORAGE, ({key, data}, {resolve, reject}) => { +const setStorage = /* @__PURE__ */ defineAsyncApi(API_SET_STORAGE, ({ key, data }, { resolve, reject }) => { try { setStorageSync(key, data); resolve(); @@ -15452,7 +15525,7 @@ const getStorageSync = /* @__PURE__ */ defineSyncApi(API_GET_STORAGE_SYNC, (key, return ""; } }, GetStorageSyncProtocol); -const getStorage = /* @__PURE__ */ defineAsyncApi(API_GET_STORAGE, ({key}, {resolve, reject}) => { +const getStorage = /* @__PURE__ */ defineAsyncApi(API_GET_STORAGE, ({ key }, { resolve, reject }) => { try { const data = getStorageOrigin(key); resolve({ @@ -15467,7 +15540,7 @@ const removeStorageSync = /* @__PURE__ */ defineSyncApi(API_REMOVE_STORAGE, (key localStorage.removeItem(key); } }, RemoveStorageSyncProtocol); -const removeStorage = /* @__PURE__ */ defineAsyncApi(API_REMOVE_STORAGE, ({key}, {resolve}) => { +const removeStorage = /* @__PURE__ */ defineAsyncApi(API_REMOVE_STORAGE, ({ key }, { resolve }) => { removeStorageSync(key); resolve(); }, RemoveStorageProtocol); @@ -15476,7 +15549,7 @@ const clearStorageSync = /* @__PURE__ */ defineSyncApi("clearStorageSync", () => localStorage.clear(); } }); -const clearStorage = /* @__PURE__ */ defineAsyncApi("clearStorage", (_, {resolve}) => { +const clearStorage = /* @__PURE__ */ defineAsyncApi("clearStorage", (_, { resolve }) => { clearStorageSync(); resolve(); }); @@ -15498,10 +15571,10 @@ const getStorageInfoSync = /* @__PURE__ */ defineSyncApi("getStorageInfoSync", ( limitSize: Number.MAX_VALUE }; }); -const getStorageInfo = /* @__PURE__ */ defineAsyncApi("getStorageInfo", (_, {resolve}) => { +const getStorageInfo = /* @__PURE__ */ defineAsyncApi("getStorageInfo", (_, { resolve }) => { resolve(getStorageInfoSync()); }); -const getFileInfo = /* @__PURE__ */ defineAsyncApi(API_GET_FILE_INFO, ({filePath}, {resolve, reject}) => { +const getFileInfo = /* @__PURE__ */ defineAsyncApi(API_GET_FILE_INFO, ({ filePath }, { resolve, reject }) => { urlToFile(filePath).then((res) => { resolve({ size: res.size @@ -15510,11 +15583,11 @@ const getFileInfo = /* @__PURE__ */ defineAsyncApi(API_GET_FILE_INFO, ({filePath reject(String(err)); }); }, GetFileInfoProtocol, GetFileInfoOptions); -const openDocument = /* @__PURE__ */ defineAsyncApi(API_OPEN_DOCUMENT, ({filePath}, {resolve}) => { +const openDocument = /* @__PURE__ */ defineAsyncApi(API_OPEN_DOCUMENT, ({ filePath }, { resolve }) => { window.open(filePath); return resolve(); }, OpenDocumentProtocol, OpenDocumentOptions); -const hideKeyboard = /* @__PURE__ */ defineAsyncApi(API_HIDE_KEYBOARD, (args, {resolve, reject}) => { +const hideKeyboard = /* @__PURE__ */ defineAsyncApi(API_HIDE_KEYBOARD, (args, { resolve, reject }) => { const activeElement = document.activeElement; if (activeElement && (activeElement.tagName === "TEXTAREA" || activeElement.tagName === "INPUT")) { activeElement.blur(); @@ -15524,7 +15597,7 @@ const hideKeyboard = /* @__PURE__ */ defineAsyncApi(API_HIDE_KEYBOARD, (args, {r function getServiceAddress() { return window.location.protocol + "//" + window.location.host; } -const getImageInfo = /* @__PURE__ */ defineAsyncApi(API_GET_IMAGE_INFO, ({src}, {resolve, reject}) => { +const getImageInfo = /* @__PURE__ */ defineAsyncApi(API_GET_IMAGE_INFO, ({ src }, { resolve, reject }) => { const img = new Image(); img.onload = function() { resolve({ @@ -15538,7 +15611,7 @@ const getImageInfo = /* @__PURE__ */ defineAsyncApi(API_GET_IMAGE_INFO, ({src}, }; img.src = src; }, GetImageInfoProtocol, GetImageInfoOptions); -const getVideoInfo = /* @__PURE__ */ defineAsyncApi(API_GET_VIDEO_INFO, ({src}, {resolve, reject}) => { +const getVideoInfo = /* @__PURE__ */ defineAsyncApi(API_GET_VIDEO_INFO, ({ src }, { resolve, reject }) => { urlToFile(src, true).then((file) => { return file; }).catch(() => { @@ -15667,7 +15740,7 @@ const chooseFile = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_FILE, ({ sourceType, type, extension -}, {resolve, reject}) => { +}, { resolve, reject }) => { if (fileInput) { document.body.removeChild(fileInput); fileInput = null; @@ -15699,7 +15772,7 @@ const chooseFile = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_FILE, ({ } const res = { get tempFilePaths() { - return tempFiles.map(({path}) => path); + return tempFiles.map(({ path }) => path); }, tempFiles }; @@ -15712,7 +15785,7 @@ const chooseImage = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_IMAGE, ({ count, sourceType, extension -}, {resolve, reject}) => { +}, { resolve, reject }) => { if (imageInput) { document.body.removeChild(imageInput); imageInput = null; @@ -15744,7 +15817,7 @@ const chooseImage = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_IMAGE, ({ } const res = { get tempFilePaths() { - return tempFiles.map(({path}) => path); + return tempFiles.map(({ path }) => path); }, tempFiles }; @@ -15781,7 +15854,7 @@ function useKeyboard() { disable }; } -const VNODE_MASK = /* @__PURE__ */ createVNode("div", {class: "uni-mask"}, null, -1); +const VNODE_MASK = /* @__PURE__ */ createVNode("div", { class: "uni-mask" }, null, -1); function createRootApp(component, rootState, callback) { const onClose = (...args) => (rootState.visible = false, callback.apply(null, args)); return createApp(defineComponent({ @@ -15806,11 +15879,11 @@ function usePopup(props2, { onEnter }) { const visible = ref(props2.visible); - const {key, disable} = useKeyboard(); + const { key, disable } = useKeyboard(); watch(() => props2.visible, (value) => visible.value = value); watch(() => visible.value, (value) => disable.value = !value); watchEffect(() => { - const {value} = key; + const { value } = key; if (value === "esc") { onEsc && onEsc(); } else if (value === "enter") { @@ -15934,7 +16007,7 @@ var ImageView = /* @__PURE__ */ defineSystemComponent({ }; } }); -function _isSlot$2(s) { +function _isSlot$4(s) { return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s); } const props$8 = { @@ -16019,7 +16092,7 @@ var ImagePreview = /* @__PURE__ */ defineSystemComponent({ width: "100%", height: "100%" } - }, _isSlot$2(_slot = props2.urls.map((src) => createVNode(SwiperItem, null, { + }, _isSlot$4(_slot = props2.urls.map((src) => createVNode(SwiperItem, null, { default: () => [createVNode(ImageView, { "src": src }, null, 8, ["src"])] @@ -16031,7 +16104,7 @@ var ImagePreview = /* @__PURE__ */ defineSystemComponent({ } }); let state$2 = null; -const previewImage = /* @__PURE__ */ defineAsyncApi(API_PREVIEW_IMAGE, (args, {resolve}) => { +const previewImage = /* @__PURE__ */ defineAsyncApi(API_PREVIEW_IMAGE, (args, { resolve }) => { if (!state$2) { state$2 = reactive(args); nextTick(() => { @@ -16049,7 +16122,7 @@ const previewImage = /* @__PURE__ */ defineAsyncApi(API_PREVIEW_IMAGE, (args, {r resolve(); }, PreviewImageProtocol, PreviewImageOptions); let videoInput = null; -const chooseVideo = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_VIDEO, ({sourceType, extension}, {resolve, reject}) => { +const chooseVideo = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_VIDEO, ({ sourceType, extension }, { resolve, reject }) => { if (videoInput) { document.body.removeChild(videoInput); videoInput = null; @@ -16111,7 +16184,7 @@ const request = /* @__PURE__ */ defineTaskApi(API_REQUEST, ({ responseType, withCredentials, timeout = __uniConfig.networkTimeout.request -}, {resolve, reject}) => { +}, { resolve, reject }) => { let body = null; const contentType = normalizeContentType(header); if (method !== "GET") { @@ -16251,7 +16324,7 @@ class DownloadTask { throw new Error("Method not implemented."); } } -const downloadFile = /* @__PURE__ */ defineTaskApi(API_DOWNLOAD_FILE, ({url, header, timeout = __uniConfig.networkTimeout.downloadFile}, {resolve, reject}) => { +const downloadFile = /* @__PURE__ */ defineTaskApi(API_DOWNLOAD_FILE, ({ url, header, timeout = __uniConfig.networkTimeout.downloadFile }, { resolve, reject }) => { var timer; var xhr = new XMLHttpRequest(); var downloadTask = new DownloadTask(xhr); @@ -16346,7 +16419,7 @@ const uploadFile = /* @__PURE__ */ defineTaskApi(API_UPLOAD_FILE, ({ header, formData, timeout = __uniConfig.networkTimeout.uploadFile -}, {resolve, reject}) => { +}, { resolve, reject }) => { var uploadTask = new UploadTask(); if (!Array.isArray(files2) || !files2.length) { files2 = [ @@ -16364,7 +16437,7 @@ const uploadFile = /* @__PURE__ */ defineTaskApi(API_UPLOAD_FILE, ({ Object.keys(formData).forEach((key) => { form.append(key, formData[key]); }); - Object.values(files2).forEach(({name: name2}, index2) => { + Object.values(files2).forEach(({ name: name2 }, index2) => { const file2 = realFiles[index2]; form.append(name2 || "file", file2, file2.name || `file-${Date.now()}`); }); @@ -16412,7 +16485,7 @@ const uploadFile = /* @__PURE__ */ defineTaskApi(API_UPLOAD_FILE, ({ reject("abort"); } } - Promise.all(files2.map(({file: file2, uri}) => file2 instanceof Blob ? Promise.resolve(blobToFile(file2)) : urlToFile(uri))).then(upload).catch(() => { + Promise.all(files2.map(({ file: file2, uri }) => file2 instanceof Blob ? Promise.resolve(blobToFile(file2)) : urlToFile(uri))).then(upload).catch(() => { setTimeout(() => { reject("file error"); }, 0); @@ -16525,7 +16598,7 @@ ${e2};at socketTask.on${capitalize(name)} callback function this._callbacks.close.push(callback); } } -const connectSocket = /* @__PURE__ */ defineTaskApi(API_CONNECT_SOCKET, ({url, protocols}, {resolve, reject}) => { +const connectSocket = /* @__PURE__ */ defineTaskApi(API_CONNECT_SOCKET, ({ url, protocols }, { resolve, reject }) => { return new SocketTask(url, protocols, (error, socketTask) => { if (error) { reject(error.toString()); @@ -16542,14 +16615,14 @@ function callSocketTask(socketTask, method, option, resolve, reject) { success() { resolve(); }, - fail({errMsg}) { + fail({ errMsg }) { reject(errMsg.replace("sendSocketMessage:fail ", "")); }, complete: void 0 })); } } -const sendSocketMessage = /* @__PURE__ */ defineAsyncApi(API_SEND_SOCKET_MESSAGE, (options, {resolve, reject}) => { +const sendSocketMessage = /* @__PURE__ */ defineAsyncApi(API_SEND_SOCKET_MESSAGE, (options, { resolve, reject }) => { const socketTask = socketTasks[0]; if (socketTask && socketTask.readyState === socketTask.OPEN) { callSocketTask(socketTask, "send", options, resolve, reject); @@ -16557,7 +16630,7 @@ const sendSocketMessage = /* @__PURE__ */ defineAsyncApi(API_SEND_SOCKET_MESSAGE reject("WebSocket is not connected"); } }, SendSocketMessageProtocol); -const closeSocket = /* @__PURE__ */ defineAsyncApi(API_CLOSE_SOCKET, (options, {resolve, reject}) => { +const closeSocket = /* @__PURE__ */ defineAsyncApi(API_CLOSE_SOCKET, (options, { resolve, reject }) => { const socketTask = socketTasks[0]; if (socketTask) { callSocketTask(socketTask, "send", options, resolve, reject); @@ -16607,7 +16680,7 @@ function getJSONP(url, options, success, error) { js.src = url + (url.indexOf("?") >= 0 ? "&" : "?") + callbackKey + "=" + callbackName; document.body.appendChild(js); } -const getLocation = /* @__PURE__ */ defineAsyncApi(API_GET_LOCATION, ({type, altitude}, {resolve, reject}) => { +const getLocation = /* @__PURE__ */ defineAsyncApi(API_GET_LOCATION, ({ type, altitude }, { resolve, reject }) => { const key = __uniConfig.qqMapKey; new Promise((resolve2, reject2) => { if (navigator.geolocation) { @@ -16760,7 +16833,7 @@ var LocationView = /* @__PURE__ */ defineSystemComponent({ } }); let state$1 = null; -const openLocation = /* @__PURE__ */ defineAsyncApi(API_OPEN_LOCATION, (args, {resolve}) => { +const openLocation = /* @__PURE__ */ defineAsyncApi(API_OPEN_LOCATION, (args, { resolve }) => { if (!state$1) { state$1 = reactive(args); nextTick(() => { @@ -16777,7 +16850,7 @@ const openLocation = /* @__PURE__ */ defineAsyncApi(API_OPEN_LOCATION, (args, {r } resolve(); }, OpenLocationProtocol, OpenLocationOptions); -function _isSlot$1(s) { +function _isSlot$3(s) { return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s); } const ICON_PATH_LOCTAION = "M13.3334375 16 q0.033125 1.1334375 0.783125 1.8834375 q0.75 0.75 1.8834375 0.75 q1.1334375 0 1.8834375 -0.75 q0.75 -0.75 0.75 -1.8834375 q0 -1.1334375 -0.75 -1.8834375 q-0.75 -0.75 -1.8834375 -0.75 q-1.1334375 0 -1.8834375 0.75 q-0.75 0.75 -0.783125 1.8834375 ZM30.9334375 14.9334375 l-1.1334375 0 q-0.5 -5.2 -4.0165625 -8.716875 q-3.516875 -3.5165625 -8.716875 -4.0165625 l0 -1.1334375 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 1.1334375 q-5.2 0.5 -8.716875 4.0165625 q-3.5165625 3.516875 -4.0165625 8.716875 l-1.1334375 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l1.1334375 0 q0.5 5.2 4.0165625 8.716875 q3.516875 3.5165625 8.716875 4.0165625 l0 1.1334375 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -1.1334375 q5.2 -0.5 8.716875 -4.0165625 q3.5165625 -3.516875 4.0165625 -8.716875 l1.1334375 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 ZM17.0665625 27.6665625 l0 -2.0665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 l0 2.0665625 q-4.3 -0.4665625 -7.216875 -3.383125 q-2.916875 -2.916875 -3.3834375 -7.216875 l2.0665625 0 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 q0 -0.4665625 -0.3 -0.7665625 q-0.3 -0.3 -0.7665625 -0.3 l-2.0665625 0 q0.4665625 -4.3 3.3834375 -7.216875 q2.9165625 -2.916875 7.216875 -3.3834375 l0 2.0665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 q0.4665625 0 0.7665625 -0.3 q0.3 -0.3 0.3 -0.7665625 l0 -2.0665625 q4.3 0.4665625 7.216875 3.3834375 q2.9165625 2.9165625 3.383125 7.216875 l-2.0665625 0 q-0.4665625 0 -0.7665625 0.3 q-0.3 0.3 -0.3 0.7665625 q0 0.4665625 0.3 0.7665625 q0.3 0.3 0.7665625 0.3 l2.0665625 0 q-0.4665625 4.3 -3.383125 7.216875 q-2.916875 2.9165625 -7.216875 3.383125 Z"; @@ -17023,7 +17096,7 @@ var LoctaionPicker = /* @__PURE__ */ defineSystemComponent({ "scroll-y": true, "class": "list", "onScrolltolower": loadMore - }, _isSlot$1(content) ? content : { + }, _isSlot$3(content) ? content : { default: () => [content], _: 2 }, 8, ["scroll-y", "onScrolltolower"])])]); @@ -17031,7 +17104,7 @@ var LoctaionPicker = /* @__PURE__ */ defineSystemComponent({ } }); let state = null; -const chooseLocation = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_LOCATION, (args, {resolve, reject}) => { +const chooseLocation = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_LOCATION, (args, { resolve, reject }) => { if (!state) { state = reactive(args); nextTick(() => { @@ -17048,7 +17121,7 @@ const chooseLocation = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_LOCATION, (args reject("cancel"); } }, ChooseLocationProtocol); -const navigateBack = /* @__PURE__ */ defineAsyncApi(API_NAVIGATE_BACK, ({delta}, {resolve, reject}) => { +const navigateBack = /* @__PURE__ */ defineAsyncApi(API_NAVIGATE_BACK, ({ delta }, { resolve, reject }) => { let canBack = true; if (invokeHook("onBackPress") === true) { canBack = false; @@ -17074,7 +17147,7 @@ function navigate(type, url, __id__) { }); }); } -const navigateTo = /* @__PURE__ */ defineAsyncApi(API_NAVIGATE_TO, ({url}, {resolve, reject}) => navigate(API_NAVIGATE_TO, url).then(resolve).catch(reject), NavigateToProtocol, NavigateToOptions); +const navigateTo = /* @__PURE__ */ defineAsyncApi(API_NAVIGATE_TO, ({ url }, { resolve, reject }) => navigate(API_NAVIGATE_TO, url).then(resolve).catch(reject), NavigateToProtocol, NavigateToOptions); function removeLastPage() { const page = getCurrentPage(); if (!page) { @@ -17083,7 +17156,7 @@ function removeLastPage() { const $page = page.$page; removePage(normalizeRouteKey($page.path, $page.id)); } -const redirectTo = /* @__PURE__ */ defineAsyncApi(API_REDIRECT_TO, ({url}, {resolve, reject}) => { +const redirectTo = /* @__PURE__ */ defineAsyncApi(API_REDIRECT_TO, ({ url }, { resolve, reject }) => { return removeLastPage(), navigate(API_REDIRECT_TO, url).then(resolve).catch(reject); }, RedirectToProtocol, RedirectToOptions); function removeAllPages() { @@ -17092,7 +17165,7 @@ function removeAllPages() { removePage(routeKey); } } -const reLaunch = /* @__PURE__ */ defineAsyncApi(API_RE_LAUNCH, ({url}, {resolve, reject}) => { +const reLaunch = /* @__PURE__ */ defineAsyncApi(API_RE_LAUNCH, ({ url }, { resolve, reject }) => { return removeAllPages(), navigate(API_RE_LAUNCH, url).then(resolve).catch(reject); }, ReLaunchProtocol, ReLaunchOptions); function removeNonTabBarPages() { @@ -17125,10 +17198,10 @@ function getTabBarPageId(url) { } } } -const switchTab = /* @__PURE__ */ defineAsyncApi(API_SWITCH_TAB, ({url}, {resolve, reject}) => { +const switchTab = /* @__PURE__ */ defineAsyncApi(API_SWITCH_TAB, ({ url }, { resolve, reject }) => { return removeNonTabBarPages(), navigate(API_SWITCH_TAB, url, getTabBarPageId(url)).then(resolve).catch(reject); }, SwitchTabProtocol, SwitchTabOptions); -const preloadPage = /* @__PURE__ */ defineAsyncApi(API_PRELOAD_PAGE, ({url}, {resolve, reject}) => { +const preloadPage = /* @__PURE__ */ defineAsyncApi(API_PRELOAD_PAGE, ({ url }, { resolve, reject }) => { const path = url.split("?")[0]; const route = __uniRoutes.find((item) => item.path === path); if (!route) { @@ -17202,32 +17275,35 @@ var modal = /* @__PURE__ */ defineComponent({ }, { default: () => [withDirectives(createVNode("uni-modal", { "onTouchmove": onEventPrevent - }, [VNODE_MASK, createVNode("div", { - "class": "uni-modal" - }, [title && createVNode("div", { - "class": "uni-modal__hd" - }, [createVNode("strong", { - "class": "uni-modal__title", - "textContent": title - }, null, 8, ["textContent"])]), createVNode("div", { - "class": "uni-modal__bd", - "onTouchmovePassive": onEventStop, - "textContent": content - }, null, 40, ["onTouchmovePassive", "textContent"]), createVNode("div", { - "class": "uni-modal__ft" - }, [showCancel && createVNode("div", { - "style": { - color: props2.cancelColor - }, - "class": "uni-modal__btn uni-modal__btn_default", - "onClick": cancel - }, [props2.cancelText], 12, ["onClick"]), createVNode("div", { - "style": { - color: confirmColor - }, - "class": "uni-modal__btn uni-modal__btn_primary", - "onClick": confirm - }, [confirmText], 12, ["onClick"])])])], 40, ["onTouchmove"]), [[vShow, visible.value]])] + }, { + default: () => [VNODE_MASK, createVNode("div", { + "class": "uni-modal" + }, [title && createVNode("div", { + "class": "uni-modal__hd" + }, [createVNode("strong", { + "class": "uni-modal__title", + "textContent": title + }, null, 8, ["textContent"])]), createVNode("div", { + "class": "uni-modal__bd", + "onTouchmovePassive": onEventStop, + "textContent": content + }, null, 40, ["onTouchmovePassive", "textContent"]), createVNode("div", { + "class": "uni-modal__ft" + }, [showCancel && createVNode("div", { + "style": { + color: props2.cancelColor + }, + "class": "uni-modal__btn uni-modal__btn_default", + "onClick": cancel + }, [props2.cancelText], 12, ["onClick"]), createVNode("div", { + "style": { + color: confirmColor + }, + "class": "uni-modal__btn uni-modal__btn_primary", + "onClick": confirm + }, [confirmText], 12, ["onClick"])])])], + _: 2 + }, 8, ["onTouchmove"]), [[vShow, visible.value]])] }); }; } @@ -17240,7 +17316,7 @@ function onModalClose(type) { cancel: type === "cancel" }); } -const showModal = /* @__PURE__ */ defineAsyncApi(API_SHOW_MODAL, (args, {resolve}) => { +const showModal = /* @__PURE__ */ defineAsyncApi(API_SHOW_MODAL, (args, { resolve }) => { currentShowModalResolve = resolve; if (!showModalState) { showModalState = reactive(args); @@ -17300,22 +17376,25 @@ var Toast = /* @__PURE__ */ defineComponent({ }, { default: () => [withDirectives(createVNode("uni-toast", { "data-duration": duration - }, [mask ? createVNode("div", { - "class": "uni-mask", - "style": "background: transparent;", - "onTouchmove": onEventPrevent - }, null, 40, ["onTouchmove"]) : "", !image2 && !Icon.value ? createVNode("div", { - "class": "uni-sample-toast" - }, [createVNode("p", { - "class": "uni-simple-toast__text" - }, [title])]) : createVNode("div", { - "class": "uni-toast" - }, [image2 ? createVNode("img", { - "src": image2, - "class": ToastIconClassName - }, null, 10, ["src"]) : Icon.value, createVNode("p", { - "class": "uni-toast__content" - }, [title])])], 8, ["data-duration"]), [[vShow, visible.value]])] + }, { + default: () => [mask ? createVNode("div", { + "class": "uni-mask", + "style": "background: transparent;", + "onTouchmove": onEventPrevent + }, null, 40, ["onTouchmove"]) : "", !image2 && !Icon.value ? createVNode("div", { + "class": "uni-sample-toast" + }, [createVNode("p", { + "class": "uni-simple-toast__text" + }, [title])]) : createVNode("div", { + "class": "uni-toast" + }, [image2 ? createVNode("img", { + "src": image2, + "class": ToastIconClassName + }, null, 10, ["src"]) : Icon.value, createVNode("p", { + "class": "uni-toast__content" + }, [title])])], + _: 2 + }, 8, ["data-duration"]), [[vShow, visible.value]])] }); }; } @@ -17361,7 +17440,7 @@ function createToast(args) { }); onHidePopupOnce(); } -const showToast = /* @__PURE__ */ defineAsyncApi(API_SHOW_TOAST, (args, {resolve, reject}) => { +const showToast = /* @__PURE__ */ defineAsyncApi(API_SHOW_TOAST, (args, { resolve, reject }) => { createToast(args); showType = "onShowToast"; resolve(); @@ -17371,22 +17450,22 @@ const showLoadingDefaultState = { duration: 1e8, image: "" }; -const showLoading = /* @__PURE__ */ defineAsyncApi(API_SHOW_LOADING, (args, {resolve, reject}) => { +const showLoading = /* @__PURE__ */ defineAsyncApi(API_SHOW_LOADING, (args, { resolve, reject }) => { extend(args, showLoadingDefaultState); createToast(args); showType = "onShowLoading"; resolve(); }, ShowLoadingProtocol, ShowLoadingOptions); -const hideToast = /* @__PURE__ */ defineAsyncApi(API_HIDE_TOAST, (args, {resolve, reject}) => { +const hideToast = /* @__PURE__ */ defineAsyncApi(API_HIDE_TOAST, (args, { resolve, reject }) => { hidePopup("onHideToast"); resolve(); }); -const hideLoading = /* @__PURE__ */ defineAsyncApi(API_HIDE_LOADING, (args, {resolve, reject}) => { +const hideLoading = /* @__PURE__ */ defineAsyncApi(API_HIDE_LOADING, (args, { resolve, reject }) => { hidePopup("onHideLoading"); resolve(); }); function hidePopup(type) { - const {t: t2} = useI18n(); + const { t: t2 } = useI18n(); if (!showType) { return; } @@ -17467,7 +17546,7 @@ function usePopupStyle(props2) { }); onMounted(() => { const fixSize = () => { - const {windowWidth, windowHeight, windowTop} = uni.getSystemInfoSync(); + const { windowWidth, windowHeight, windowTop } = uni.getSystemInfoSync(); popupWidth.value = windowWidth; popupHeight.value = windowHeight + windowTop; }; @@ -17589,54 +17668,57 @@ var actionSheet = /* @__PURE__ */ defineComponent({ return () => { return createVNode("uni-actionsheet", { "onTouchmove": onEventPrevent - }, [createVNode(Transition, { - "name": "uni-fade" }, { - default: () => [withDirectives(createVNode("div", { - "class": "uni-mask uni-actionsheet__mask", + default: () => [createVNode(Transition, { + "name": "uni-fade" + }, { + default: () => [withDirectives(createVNode("div", { + "class": "uni-mask uni-actionsheet__mask", + "onClick": () => _close(-1) + }, null, 8, ["onClick"]), [[vShow, props2.visible]])] + }), createVNode("div", { + "class": ["uni-actionsheet", { + "uni-actionsheet_toggle": props2.visible + }], + "style": popupStyle.value.content + }, [createVNode("div", { + "ref": main, + "class": "uni-actionsheet__menu", + "onWheel": _handleWheel + }, [props2.title ? createVNode(Fragment, null, [createVNode("div", { + "class": "uni-actionsheet__cell", + "style": { + height: `${titleHeight.value}px` + } + }, null), createVNode("div", { + "class": "uni-actionsheet__title" + }, [props2.title])]) : "", createVNode("div", { + "style": { + maxHeight: `${HEIGHT.value}px`, + overflow: "hidden" + } + }, [createVNode("div", { + "ref": content + }, [props2.itemList.map((itemTitle, index2) => createVNode("div", { + "key": index2, + "style": { + color: props2.itemColor + }, + "class": "uni-actionsheet__cell", + "onClick": () => _close(index2) + }, [itemTitle], 12, ["onClick"]))], 512)])], 40, ["onWheel"]), createVNode("div", { + "class": "uni-actionsheet__action" + }, [createVNode("div", { + "style": { + color: props2.itemColor + }, + "class": "uni-actionsheet__cell", "onClick": () => _close(-1) - }, null, 8, ["onClick"]), [[vShow, props2.visible]])] - }), createVNode("div", { - "class": ["uni-actionsheet", { - "uni-actionsheet_toggle": props2.visible - }], - "style": popupStyle.value.content - }, [createVNode("div", { - "ref": main, - "class": "uni-actionsheet__menu", - "onWheel": _handleWheel - }, [props2.title ? createVNode(Fragment, null, [createVNode("div", { - "class": "uni-actionsheet__cell", - "style": { - height: `${titleHeight.value}px` - } - }, null), createVNode("div", { - "class": "uni-actionsheet__title" - }, [props2.title])]) : "", createVNode("div", { - "style": { - maxHeight: `${HEIGHT.value}px`, - overflow: "hidden" - } - }, [createVNode("div", { - "ref": content - }, [props2.itemList.map((itemTitle, index2) => createVNode("div", { - "key": index2, - "style": { - color: props2.itemColor - }, - "class": "uni-actionsheet__cell", - "onClick": () => _close(index2) - }, [itemTitle], 12, ["onClick"]))], 512)])], 40, ["onWheel"]), createVNode("div", { - "class": "uni-actionsheet__action" - }, [createVNode("div", { - "style": { - color: props2.itemColor - }, - "class": "uni-actionsheet__cell", - "onClick": () => _close(-1) - }, [t2("uni.showActionSheet.cancel")], 12, ["onClick"])]), createVNode("div", { - "style": popupStyle.value.triangle - }, null, 4)], 6)], 40, ["onTouchmove"]); + }, [t2("uni.showActionSheet.cancel")], 12, ["onClick"])]), createVNode("div", { + "style": popupStyle.value.triangle + }, null, 4)], 6)], + _: 1 + }, 8, ["onTouchmove"]); }; } }); @@ -17695,10 +17777,10 @@ function onActionSheetClose(tapIndex) { if (tapIndex === -1) { rejectAction && rejectAction("cancel"); } else { - resolveAction && resolveAction({tapIndex}); + resolveAction && resolveAction({ tapIndex }); } } -const showActionSheet = /* @__PURE__ */ defineAsyncApi(API_SHOW_ACTION_SHEET, (args, {resolve, reject}) => { +const showActionSheet = /* @__PURE__ */ defineAsyncApi(API_SHOW_ACTION_SHEET, (args, { resolve, reject }) => { resolveAction = resolve; rejectAction = reject; if (!showActionSheetState) { @@ -17709,7 +17791,7 @@ const showActionSheet = /* @__PURE__ */ defineAsyncApi(API_SHOW_ACTION_SHEET, (a showActionSheetState.visible = true; } }, ShowActionSheetProtocol, ShowActionSheetOptions); -const loadFontFace = /* @__PURE__ */ defineAsyncApi(API_LOAD_FONT_FACE, ({family, source, desc}, {resolve, reject}) => { +const loadFontFace = /* @__PURE__ */ defineAsyncApi(API_LOAD_FONT_FACE, ({ family, source, desc }, { resolve, reject }) => { addFont(family, source, desc).then(() => { resolve(); }).catch((err) => { @@ -17732,11 +17814,11 @@ function setNavigationBar(pageMeta, type, args, resolve, reject) { if (!pageMeta) { return reject("page not found"); } - const {navigationBar} = pageMeta; + const { navigationBar } = pageMeta; switch (type) { case API_SET_NAVIGATION_BAR_COLOR: - const {frontColor, backgroundColor, animation: animation2} = args; - const {duration, timingFunc} = animation2; + const { frontColor, backgroundColor, animation: animation2 } = args; + const { duration, timingFunc } = animation2; if (frontColor) { navigationBar.titleColor = frontColor === "#000000" ? "#000" : "#fff"; } @@ -17753,33 +17835,33 @@ function setNavigationBar(pageMeta, type, args, resolve, reject) { navigationBar.loading = false; break; case API_SET_NAVIGATION_BAR_TITLE: - const {title} = args; + const { title } = args; navigationBar.titleText = title; break; } resolve(); } -const setNavigationBarColor = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_BAR_COLOR, (args, {resolve, reject}) => { +const setNavigationBarColor = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_BAR_COLOR, (args, { resolve, reject }) => { setNavigationBar(getCurrentPageMeta(), API_SET_NAVIGATION_BAR_COLOR, args, resolve, reject); }, SetNavigationBarColorProtocol, SetNavigationBarColorOptions); -const showNavigationBarLoading = /* @__PURE__ */ defineAsyncApi(API_SHOW_NAVIGATION_BAR_LOADING, (args, {resolve, reject}) => { +const showNavigationBarLoading = /* @__PURE__ */ defineAsyncApi(API_SHOW_NAVIGATION_BAR_LOADING, (args, { resolve, reject }) => { setNavigationBar(getCurrentPageMeta(), API_SHOW_NAVIGATION_BAR_LOADING, args, resolve, reject); }); -const hideNavigationBarLoading = /* @__PURE__ */ defineAsyncApi(API_HIDE_NAVIGATION_BAR_LOADING, (args, {resolve, reject}) => { +const hideNavigationBarLoading = /* @__PURE__ */ defineAsyncApi(API_HIDE_NAVIGATION_BAR_LOADING, (args, { resolve, reject }) => { setNavigationBar(getCurrentPageMeta(), API_HIDE_NAVIGATION_BAR_LOADING, args, resolve, reject); }); -const setNavigationBarTitle = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_BAR_TITLE, (args, {resolve, reject}) => { +const setNavigationBarTitle = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_BAR_TITLE, (args, { resolve, reject }) => { setNavigationBar(getCurrentPageMeta(), API_SET_NAVIGATION_BAR_TITLE, args, resolve, reject); }, SetNavigationBarTitleProtocol); -const pageScrollTo = /* @__PURE__ */ defineAsyncApi(API_PAGE_SCROLL_TO, ({scrollTop, selector, duration}, {resolve}) => { +const pageScrollTo = /* @__PURE__ */ defineAsyncApi(API_PAGE_SCROLL_TO, ({ scrollTop, selector, duration }, { resolve }) => { scrollTo(selector || scrollTop || 0, duration); resolve(); }, PageScrollToProtocol, PageScrollToOptions); -const startPullDownRefresh = /* @__PURE__ */ defineAsyncApi(API_START_PULL_DOWN_REFRESH, (_args, {resolve}) => { +const startPullDownRefresh = /* @__PURE__ */ defineAsyncApi(API_START_PULL_DOWN_REFRESH, (_args, { resolve }) => { UniServiceJSBridge.publishHandler(API_START_PULL_DOWN_REFRESH, {}, getCurrentPageId()); resolve(); }); -const stopPullDownRefresh = /* @__PURE__ */ defineAsyncApi(API_STOP_PULL_DOWN_REFRESH, (_args, {resolve}) => { +const stopPullDownRefresh = /* @__PURE__ */ defineAsyncApi(API_STOP_PULL_DOWN_REFRESH, (_args, { resolve }) => { UniServiceJSBridge.publishHandler(API_STOP_PULL_DOWN_REFRESH, {}, getCurrentPageId()); resolve(); }); @@ -17801,13 +17883,13 @@ function setProperties(item, props2, propsData) { function normalizeRoute(index2, oldPagePath, newPagePath) { const oldTabBarRoute = __uniRoutes.find((item) => item.meta.route === oldPagePath); if (oldTabBarRoute) { - const {meta} = oldTabBarRoute; + const { meta } = oldTabBarRoute; delete meta.tabBarIndex; meta.isQuit = meta.isTabBar = false; } const newTabBarRoute = __uniRoutes.find((item) => item.meta.route === newPagePath); if (newTabBarRoute) { - const {meta} = newTabBarRoute; + const { meta } = newTabBarRoute; meta.tabBarIndex = index2; meta.isQuit = meta.isTabBar = false; } @@ -17822,11 +17904,11 @@ function setTabBar(type, args, resolve) { tabBar2.shown = false; break; case API_SET_TAB_BAR_ITEM: - const {index: index2} = args; + const { index: index2 } = args; const tabBarItem = tabBar2.list[index2]; const oldPagePath = tabBarItem.pagePath; setProperties(tabBarItem, setTabBarItemProps, args); - const {pagePath} = args; + const { pagePath } = args; if (pagePath && pagePath !== oldPagePath) { normalizeRoute(index2, oldPagePath, pagePath); } @@ -17856,28 +17938,28 @@ function setTabBar(type, args, resolve) { } resolve(); } -const setTabBarItem = /* @__PURE__ */ defineAsyncApi(API_SET_TAB_BAR_ITEM, (args, {resolve}) => { +const setTabBarItem = /* @__PURE__ */ defineAsyncApi(API_SET_TAB_BAR_ITEM, (args, { resolve }) => { setTabBar(API_SET_TAB_BAR_ITEM, args, resolve); }, SetTabBarItemProtocol, SetTabBarItemOptions); -const setTabBarStyle = /* @__PURE__ */ defineAsyncApi(API_SET_TAB_BAR_STYLE, (args, {resolve}) => { +const setTabBarStyle = /* @__PURE__ */ defineAsyncApi(API_SET_TAB_BAR_STYLE, (args, { resolve }) => { setTabBar(API_SET_TAB_BAR_STYLE, args, resolve); }, SetTabBarStyleProtocol, SetTabBarStyleOptions); -const hideTabBar = /* @__PURE__ */ defineAsyncApi(API_HIDE_TAB_BAR, (args, {resolve}) => { +const hideTabBar = /* @__PURE__ */ defineAsyncApi(API_HIDE_TAB_BAR, (args, { resolve }) => { setTabBar(API_HIDE_TAB_BAR, args, resolve); }, HideTabBarProtocol); -const showTabBar = /* @__PURE__ */ defineAsyncApi(API_SHOW_TAB_BAR, (args, {resolve}) => { +const showTabBar = /* @__PURE__ */ defineAsyncApi(API_SHOW_TAB_BAR, (args, { resolve }) => { setTabBar(API_SHOW_TAB_BAR, args, resolve); }, ShowTabBarProtocol); -const hideTabBarRedDot = /* @__PURE__ */ defineAsyncApi(API_HIDE_TAB_BAR_RED_DOT, (args, {resolve}) => { +const hideTabBarRedDot = /* @__PURE__ */ defineAsyncApi(API_HIDE_TAB_BAR_RED_DOT, (args, { resolve }) => { setTabBar(API_HIDE_TAB_BAR_RED_DOT, args, resolve); }, HideTabBarRedDotProtocol, HideTabBarRedDotOptions); -const showTabBarRedDot = /* @__PURE__ */ defineAsyncApi(API_SHOW_TAB_BAR_RED_DOT, (args, {resolve}) => { +const showTabBarRedDot = /* @__PURE__ */ defineAsyncApi(API_SHOW_TAB_BAR_RED_DOT, (args, { resolve }) => { setTabBar(API_SHOW_TAB_BAR_RED_DOT, args, resolve); }, ShowTabBarRedDotProtocol, ShowTabBarRedDotOptions); -const removeTabBarBadge = /* @__PURE__ */ defineAsyncApi(API_REMOVE_TAB_BAR_BADGE, (args, {resolve}) => { +const removeTabBarBadge = /* @__PURE__ */ defineAsyncApi(API_REMOVE_TAB_BAR_BADGE, (args, { resolve }) => { setTabBar(API_REMOVE_TAB_BAR_BADGE, args, resolve); }, RemoveTabBarBadgeProtocol, RemoveTabBarBadgeOptions); -const setTabBarBadge = /* @__PURE__ */ defineAsyncApi(API_SET_TAB_BAR_BADGE, (args, {resolve}) => { +const setTabBarBadge = /* @__PURE__ */ defineAsyncApi(API_SET_TAB_BAR_BADGE, (args, { resolve }) => { setTabBar(API_SET_TAB_BAR_BADGE, args, resolve); }, SetTabBarBadgeProtocol, SetTabBarBadgeOptions); var TabBar = /* @__PURE__ */ defineSystemComponent({ @@ -17895,16 +17977,19 @@ var TabBar = /* @__PURE__ */ defineSystemComponent({ const tabBarItemsTsx = createTabBarItemsTsx(tabBar2, onSwitchTab); return createVNode("uni-tabbar", { "class": "uni-tabbar-" + tabBar2.position - }, [createVNode("div", { - "class": "uni-tabbar", - "style": style.value - }, [createVNode("div", { - "class": "uni-tabbar-border", - "style": borderStyle.value - }, null, 4), tabBarItemsTsx], 4), createVNode("div", { - "class": "uni-placeholder", - "style": placeholderStyle.value - }, null, 4)], 2); + }, { + default: () => [createVNode("div", { + "class": "uni-tabbar", + "style": style.value + }, [createVNode("div", { + "class": "uni-tabbar-border", + "style": borderStyle.value + }, null, 4), tabBarItemsTsx], 4), createVNode("div", { + "class": "uni-placeholder", + "style": placeholderStyle.value + }, null, 4)], + _: 2 + }, 8, ["class"]); }; } }); @@ -18119,6 +18204,9 @@ function createTabBarMidButtonTsx(color, iconPath, midButton, tabBar2, index2, o "src": getRealPath(iconPath) }, null, 12, ["src"])], 4), createTabBarItemBdTsx(color, iconPath, midButton, tabBar2)], 12, ["onClick"]); } +function _isSlot$2(s) { + return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s); +} const DEFAULT_CSS_VAR_VALUE = "0px"; let globalLayoutState = void 0; function getLayoutState() { @@ -18149,7 +18237,10 @@ var LayoutComponent = /* @__PURE__ */ defineSystemComponent({ return createVNode("uni-app", { "ref": rootRef, "class": clazz2.value - }, [layoutTsx, tabBarTsx], 2); + }, { + default: () => [layoutTsx, tabBarTsx], + _: 2 + }, 8, ["class"]); }; } }); @@ -18298,7 +18389,16 @@ function createLayoutTsx(keepAliveRoute, layoutState, windowState, topWindow, le const topWindowTsx = __UNI_FEATURE_TOPWINDOW__ ? createTopWindowTsx(topWindow, layoutState, windowState) : null; const leftWindowTsx = __UNI_FEATURE_LEFTWINDOW__ ? createLeftWindowTsx(leftWindow, layoutState, windowState) : null; const rightWindowTsx = __UNI_FEATURE_RIGHTWINDOW__ ? createRightWindowTsx(rightWindow, layoutState, windowState) : null; - return createVNode("uni-layout", null, [topWindowTsx, createVNode("uni-content", null, [createVNode("uni-main", null, [routerVNode]), leftWindowTsx, rightWindowTsx])]); + return createVNode("uni-layout", null, { + default: () => [topWindowTsx, createVNode("uni-content", null, { + default: () => [createVNode("uni-main", null, _isSlot$2(routerVNode) ? routerVNode : { + default: () => [routerVNode], + _: 2 + }), leftWindowTsx, rightWindowTsx], + _: 2 + })], + _: 2 + }); } function useShowTabBar(emit2) { const route = useRoute(); @@ -18399,17 +18499,20 @@ function createTopWindowTsx(topWindow, layoutState, windowState) { component: TopWindow, windowRef } = topWindow; - return withDirectives(createVNode("uni-top-window", null, [createVNode("div", { - "class": "uni-top-window", - "style": layoutState.topWindowStyle - }, [createVNode(TopWindow, mergeProps({ - "ref": windowRef - }, windowState), null, 16)], 4), createVNode("div", { - "class": "uni-top-window--placeholder", - "style": { - height: layoutState.topWindowHeight + "px" - } - }, null, 4)], 512), [[vShow, layoutState.showTopWindow || layoutState.apiShowTopWindow]]); + return withDirectives(createVNode("uni-top-window", null, { + default: () => [createVNode("div", { + "class": "uni-top-window", + "style": layoutState.topWindowStyle + }, [createVNode(TopWindow, mergeProps({ + "ref": windowRef + }, windowState), null, 16)], 4), createVNode("div", { + "class": "uni-top-window--placeholder", + "style": { + height: layoutState.topWindowHeight + "px" + } + }, null, 4)], + _: 2 + }, 512), [[vShow, layoutState.showTopWindow || layoutState.apiShowTopWindow]]); } } function createLeftWindowTsx(leftWindow, layoutState, windowState) { @@ -18421,14 +18524,17 @@ function createLeftWindowTsx(leftWindow, layoutState, windowState) { return withDirectives(createVNode("uni-left-window", { "data-show": layoutState.apiShowLeftWindow || void 0, "style": layoutState.leftWindowStyle - }, [layoutState.apiShowLeftWindow ? createVNode("div", { - "class": "uni-mask", - "onClick": () => layoutState.apiShowLeftWindow = false - }, null, 8, ["onClick"]) : null, createVNode("div", { - "class": "uni-left-window" - }, [createVNode(LeftWindow, mergeProps({ - "ref": windowRef - }, windowState), null, 16)])], 12, ["data-show"]), [[vShow, layoutState.showLeftWindow || layoutState.apiShowLeftWindow]]); + }, { + default: () => [layoutState.apiShowLeftWindow ? createVNode("div", { + "class": "uni-mask", + "onClick": () => layoutState.apiShowLeftWindow = false + }, null, 8, ["onClick"]) : null, createVNode("div", { + "class": "uni-left-window" + }, [createVNode(LeftWindow, mergeProps({ + "ref": windowRef + }, windowState), null, 16)])], + _: 2 + }, 8, ["data-show", "style"]), [[vShow, layoutState.showLeftWindow || layoutState.apiShowLeftWindow]]); } } function createRightWindowTsx(rightWindow, layoutState, windowState) { @@ -18440,14 +18546,17 @@ function createRightWindowTsx(rightWindow, layoutState, windowState) { return withDirectives(createVNode("uni-right-window", { "data-show": layoutState.apiShowRightWindow || void 0, "style": layoutState.rightWindowStyle - }, [layoutState.apiShowRightWindow ? createVNode("div", { - "class": "uni-mask", - "onClick": () => layoutState.apiShowRightWindow = false - }, null, 8, ["onClick"]) : null, createVNode("div", { - "class": "uni-right-window" - }, [createVNode(RightWindow, mergeProps({ - "ref": windowRef - }, windowState), null, 16)])], 12, ["data-show"]), [[vShow, layoutState.showRightWindow || layoutState.apiShowRightWindow]]); + }, { + default: () => [layoutState.apiShowRightWindow ? createVNode("div", { + "class": "uni-mask", + "onClick": () => layoutState.apiShowRightWindow = false + }, null, 8, ["onClick"]) : null, createVNode("div", { + "class": "uni-right-window" + }, [createVNode(RightWindow, mergeProps({ + "ref": windowRef + }, windowState), null, 16)])], + _: 2 + }, 8, ["data-show", "style"]), [[vShow, layoutState.showRightWindow || layoutState.apiShowRightWindow]]); } } var tasks = []; @@ -18455,7 +18564,7 @@ function onResize() { tasks.push(setTimeout(() => { tasks.forEach((task) => clearTimeout(task)); tasks.length = 0; - const {windowWidth, windowHeight, screenWidth, screenHeight} = uni.getSystemInfoSync(); + const { windowWidth, windowHeight, screenWidth, screenHeight } = uni.getSystemInfoSync(); var landscape = Math.abs(Number(window.orientation)) === 90; var deviceOrientation = landscape ? "landscape" : "portrait"; UniServiceJSBridge.invokeOnCallback(API_ON_WINDOW_RESIZE, { @@ -18475,7 +18584,7 @@ const onWindowResize = /* @__PURE__ */ defineOnApi(API_ON_WINDOW_RESIZE, () => { const offWindowResize = /* @__PURE__ */ defineOffApi(API_OFF_WINDOW_RESIZE, () => { window.removeEventListener("resize", onResize); }); -const showTopWindow = /* @__PURE__ */ defineAsyncApi("showTopWindow", (_, {resolve, reject}) => { +const showTopWindow = /* @__PURE__ */ defineAsyncApi("showTopWindow", (_, { resolve, reject }) => { const state2 = getLayoutState(); if (!state2) { reject(); @@ -18484,7 +18593,7 @@ const showTopWindow = /* @__PURE__ */ defineAsyncApi("showTopWindow", (_, {resol state2.apiShowTopWindow = true; nextTick(resolve); }); -const hideTopWindow = /* @__PURE__ */ defineAsyncApi("hideTopWindow", (_, {resolve, reject}) => { +const hideTopWindow = /* @__PURE__ */ defineAsyncApi("hideTopWindow", (_, { resolve, reject }) => { const state2 = getLayoutState(); if (!state2) { reject(); @@ -18493,7 +18602,7 @@ const hideTopWindow = /* @__PURE__ */ defineAsyncApi("hideTopWindow", (_, {resol state2.apiShowTopWindow = false; nextTick(resolve); }); -const showLeftWindow = /* @__PURE__ */ defineAsyncApi("showLeftWindow", (_, {resolve, reject}) => { +const showLeftWindow = /* @__PURE__ */ defineAsyncApi("showLeftWindow", (_, { resolve, reject }) => { const state2 = getLayoutState(); if (!state2) { reject(); @@ -18502,7 +18611,7 @@ const showLeftWindow = /* @__PURE__ */ defineAsyncApi("showLeftWindow", (_, {res state2.apiShowLeftWindow = true; nextTick(resolve); }); -const hideLeftWindow = /* @__PURE__ */ defineAsyncApi("hideLeftWindow", (_, {resolve, reject}) => { +const hideLeftWindow = /* @__PURE__ */ defineAsyncApi("hideLeftWindow", (_, { resolve, reject }) => { const state2 = getLayoutState(); if (!state2) { reject(); @@ -18511,7 +18620,7 @@ const hideLeftWindow = /* @__PURE__ */ defineAsyncApi("hideLeftWindow", (_, {res state2.apiShowLeftWindow = false; nextTick(resolve); }); -const showRightWindow = /* @__PURE__ */ defineAsyncApi("showRightWindow", (_, {resolve, reject}) => { +const showRightWindow = /* @__PURE__ */ defineAsyncApi("showRightWindow", (_, { resolve, reject }) => { const state2 = getLayoutState(); if (!state2) { reject(); @@ -18520,7 +18629,7 @@ const showRightWindow = /* @__PURE__ */ defineAsyncApi("showRightWindow", (_, {r state2.apiShowRightWindow = true; nextTick(resolve); }); -const hideRightWindow = /* @__PURE__ */ defineAsyncApi("hideRightWindow", (_, {resolve, reject}) => { +const hideRightWindow = /* @__PURE__ */ defineAsyncApi("hideRightWindow", (_, { resolve, reject }) => { const state2 = getLayoutState(); if (!state2) { reject(); @@ -19137,14 +19246,17 @@ var Map$1 = /* @__PURE__ */ defineBuiltInComponent({ return createVNode("uni-map", { "ref": rootRef, "id": props2.id - }, [createVNode("div", { - "ref": mapRef, - "style": "width: 100%; height: 100%; position: relative; overflow: hidden" - }, null, 512), props2.markers.map((item) => item.id && createVNode(MapMarker, mergeProps({ - "key": item.id - }, item), null, 16)), props2.polyline.map((item) => createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => createVNode(MapControl, item, null, 16)), props2.showLocation && createVNode(MapLocation, null, null), createVNode("div", { - "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" - }, [slots.default && slots.default()])], 8, ["id"]); + }, { + default: () => [createVNode("div", { + "ref": mapRef, + "style": "width: 100%; height: 100%; position: relative; overflow: hidden" + }, null, 512), props2.markers.map((item) => item.id && createVNode(MapMarker, mergeProps({ + "key": item.id + }, item), null, 16)), props2.polyline.map((item) => createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => createVNode(MapControl, item, null, 16)), props2.showLocation && createVNode(MapLocation, null, null), createVNode("div", { + "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" + }, [slots.default && slots.default()])], + _: 1 + }, 8, ["id"]); }; } }); @@ -19188,10 +19300,12 @@ var index$5 = /* @__PURE__ */ defineBuiltInComponent({ return () => { return createVNode("uni-cover-view", { "scroll-top": props2.scrollTop - }, [createVNode("div", { - "ref": content, - "class": "uni-cover-view" - }, [slots.default && slots.default()], 512)], 8, ["scroll-top"]); + }, { + default: () => [createVNode("div", { + "ref": content, + "class": "uni-cover-view" + }, [slots.default && slots.default()], 512)] + }, 8, ["scroll-top"]); }; } }); @@ -19225,17 +19339,19 @@ var index$4 = /* @__PURE__ */ defineBuiltInComponent({ return createVNode("uni-cover-image", { "ref": root, "src": src - }, [createVNode("div", { - "class": "uni-cover-image" - }, [src ? createVNode("img", { - "src": getRealPath(src), - "onLoad": load, - "onError": error - }, null, 40, ["src", "onLoad", "onError"]) : null])], 8, ["src"]); + }, { + default: () => [createVNode("div", { + "class": "uni-cover-image" + }, [src ? createVNode("img", { + "src": getRealPath(src), + "onLoad": load, + "onError": error + }, null, 40, ["src", "onLoad", "onError"]) : null])] + }, 8, ["src"]); }; } }); -function _isSlot(s) { +function _isSlot$1(s) { return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s); } function getDefaultStartValue(props2) { @@ -19442,83 +19558,86 @@ var index$3 = /* @__PURE__ */ defineBuiltInComponent({ "ref": rootRef }, booleanAttrs, { "onClick": withWebEvent(_show) - }), [createVNode("div", { - "ref": pickerRef, - "class": ["uni-picker-container", `uni-${mode2}-${selectorTypeComputed.value}`], - "onWheel": onEventPrevent, - "onTouchmove": onEventPrevent - }, [createVNode(Transition, { - "name": "uni-fade" - }, { - default: () => [withDirectives(createVNode("div", { - "class": "uni-mask uni-picker-mask", - "onClick": withWebEvent(_cancel), - "onMousemove": _fixInputPosition - }, null, 40, ["onClick", "onMousemove"]), [[vShow, visible]])] - }), !system.value ? createVNode("div", { - "class": [{ - "uni-picker-toggle": visible - }, "uni-picker-custom"], - "style": popupStyle.content - }, [createVNode("div", { - "class": "uni-picker-header", - "onClick": onEventStop - }, [createVNode("div", { - "class": "uni-picker-action uni-picker-action-cancel", - "onClick": withWebEvent(_cancel) - }, [t2("uni.picker.cancel")], 8, ["onClick"]), createVNode("div", { - "class": "uni-picker-action uni-picker-action-confirm", - "onClick": _change - }, [t2("uni.picker.done")], 8, ["onClick"])], 8, ["onClick"]), contentVisible ? createVNode(PickerView, { - "value": _l10nColumn(valueArray), - "class": "uni-picker-content", - "onChange": _pickerViewChange - }, _isSlot(_slot2 = renderList(_l10nColumn(rangeArray.value), (rangeItem, index0) => { - let _slot; - return createVNode(PickerViewColumn, { - "key": index0 - }, _isSlot(_slot = renderList(rangeItem, (item, index2) => createVNode("div", { - "key": index2, - "class": "uni-picker-item" - }, [typeof item === "object" ? item[rangeKey] || "" : _l10nItem(item, index0)]))) ? _slot : { - default: () => [_slot], + }), { + default: () => [createVNode("div", { + "ref": pickerRef, + "class": ["uni-picker-container", `uni-${mode2}-${selectorTypeComputed.value}`], + "onWheel": onEventPrevent, + "onTouchmove": onEventPrevent + }, [createVNode(Transition, { + "name": "uni-fade" + }, { + default: () => [withDirectives(createVNode("div", { + "class": "uni-mask uni-picker-mask", + "onClick": withWebEvent(_cancel), + "onMousemove": _fixInputPosition + }, null, 40, ["onClick", "onMousemove"]), [[vShow, visible]])] + }), !system.value ? createVNode("div", { + "class": [{ + "uni-picker-toggle": visible + }, "uni-picker-custom"], + "style": popupStyle.content + }, [createVNode("div", { + "class": "uni-picker-header", + "onClick": onEventStop + }, [createVNode("div", { + "class": "uni-picker-action uni-picker-action-cancel", + "onClick": withWebEvent(_cancel) + }, [t2("uni.picker.cancel")], 8, ["onClick"]), createVNode("div", { + "class": "uni-picker-action uni-picker-action-confirm", + "onClick": _change + }, [t2("uni.picker.done")], 8, ["onClick"])], 8, ["onClick"]), contentVisible ? createVNode(PickerView, { + "value": _l10nColumn(valueArray), + "class": "uni-picker-content", + "onChange": _pickerViewChange + }, _isSlot$1(_slot2 = renderList(_l10nColumn(rangeArray.value), (rangeItem, index0) => { + let _slot; + return createVNode(PickerViewColumn, { + "key": index0 + }, _isSlot$1(_slot = renderList(rangeItem, (item, index2) => createVNode("div", { + "key": index2, + "class": "uni-picker-item" + }, [typeof item === "object" ? item[rangeKey] || "" : _l10nItem(item, index0)]))) ? _slot : { + default: () => [_slot], + _: 1 + }); + })) ? _slot2 : { + default: () => [_slot2], _: 1 - }); - })) ? _slot2 : { - default: () => [_slot2], + }, 8, ["value", "onChange"]) : null, createVNode("div", { + "ref": selectRef, + "class": "uni-picker-select", + "onWheel": onEventStop, + "onTouchmove": onEventStop + }, [renderList(rangeArray.value[0], (item, index2) => createVNode("div", { + "key": index2, + "class": ["uni-picker-item", { + selected: valueArray[0] === index2 + }], + "onClick": () => { + valueArray[0] = index2; + _change(); + } + }, [typeof item === "object" ? item[rangeKey] || "" : item], 10, ["onClick"]))], 40, ["onWheel", "onTouchmove"]), createVNode("div", { + "style": popupStyle.triangle + }, null, 4)], 6) : null], 40, ["onWheel", "onTouchmove"]), createVNode("div", null, [slots.default && slots.default()]), system.value ? createVNode("div", { + "class": "uni-picker-system", + "onMousemove": withWebEvent(_fixInputPosition) + }, [createVNode("input", { + "class": ["uni-picker-system_input", system.value], + "ref": inputRef, + "value": valueSync, + "type": mode2, + "tabindex": "-1", + "min": start, + "max": end, + "onChange": ($event) => { + _input($event); + onEventStop($event); + } + }, null, 42, ["value", "type", "min", "max", "onChange"])], 40, ["onMousemove"]) : null], _: 1 - }, 8, ["value", "onChange"]) : null, createVNode("div", { - "ref": selectRef, - "class": "uni-picker-select", - "onWheel": onEventStop, - "onTouchmove": onEventStop - }, [renderList(rangeArray.value[0], (item, index2) => createVNode("div", { - "key": index2, - "class": ["uni-picker-item", { - selected: valueArray[0] === index2 - }], - "onClick": () => { - valueArray[0] = index2; - _change(); - } - }, [typeof item === "object" ? item[rangeKey] || "" : item], 10, ["onClick"]))], 40, ["onWheel", "onTouchmove"]), createVNode("div", { - "style": popupStyle.triangle - }, null, 4)], 6) : null], 40, ["onWheel", "onTouchmove"]), createVNode("div", null, [slots.default && slots.default()]), system.value ? createVNode("div", { - "class": "uni-picker-system", - "onMousemove": withWebEvent(_fixInputPosition) - }, [createVNode("input", { - "class": ["uni-picker-system_input", system.value], - "ref": inputRef, - "value": valueSync, - "type": mode2, - "tabindex": "-1", - "min": start, - "max": end, - "onChange": ($event) => { - _input($event); - onEventStop($event); - } - }, null, 42, ["value", "type", "min", "max", "onChange"])], 40, ["onMousemove"]) : null], 16, ["onClick"]); + }, 16, ["onClick"]); }; } }); @@ -19986,7 +20105,7 @@ function hexToRgba(hex) { g2 = hex.substring(1, 2); b = hex.substring(2, 3); } else { - return {r: 0, g: 0, b: 0}; + return { r: 0, g: 0, b: 0 }; } if (r.length === 1) { r += r; @@ -20007,12 +20126,12 @@ function hexToRgba(hex) { }; } function usePageHeadTransparentBackgroundColor(backgroundColor) { - const {r, g: g2, b} = hexToRgba(backgroundColor); + const { r, g: g2, b } = hexToRgba(backgroundColor); return `rgba(${r},${g2},${b},0)`; } function usePageHeadTransparent(headRef, { id: id2, - navigationBar: {titleColor, coverage, backgroundColor} + navigationBar: { titleColor, coverage, backgroundColor } }) { let A = 0; const rgb = computed(() => hexToRgba(backgroundColor)); @@ -20037,7 +20156,7 @@ function usePageHeadTransparent(headRef, { borderRadiusElemsStyles.push(borderRadiusElem.style); } }); - useOn(id2 + ".onPageScroll", ({scrollTop}) => { + useOn(id2 + ".onPageScroll", ({ scrollTop }) => { const alpha = Math.min(scrollTop / offset, 1); if (alpha === 1 && A === 1) { return; @@ -20101,15 +20220,18 @@ var PageHead = /* @__PURE__ */ defineSystemComponent({ }, null, 2); return createVNode("uni-page-head", { "uni-page-head-type": type - }, [createVNode("div", { - "ref": headRef, - "class": clazz2.value, - "style": style.value - }, [createVNode("div", { - "class": "uni-page-head-hd" - }, [backButtonTsx, ...leftButtonsTsx]), createPageHeadBdTsx(navigationBar, searchInput), createVNode("div", { - "class": "uni-page-head-ft" - }, [...rightButtonsTsx])], 6), placeholderTsx], 8, ["uni-page-head-type"]); + }, { + default: () => [createVNode("div", { + "ref": headRef, + "class": clazz2.value, + "style": style.value + }, [createVNode("div", { + "class": "uni-page-head-hd" + }, [backButtonTsx, ...leftButtonsTsx]), createPageHeadBdTsx(navigationBar, searchInput), createVNode("div", { + "class": "uni-page-head-ft" + }, [...rightButtonsTsx])], 6), placeholderTsx], + _: 2 + }, 8, ["uni-page-head-type"]); }; } }); @@ -20411,15 +20533,15 @@ function usePageHeadSearchInput({ var _sfc_main = { name: "PageRefresh", setup() { - const {refreshOptions} = usePageMeta(); + const { refreshOptions } = usePageMeta(); return { offset: refreshOptions.offset, color: refreshOptions.color }; } }; -const _hoisted_1 = {class: "uni-page-refresh-inner"}; -const _hoisted_2 = /* @__PURE__ */ createVNode("path", {d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}, null, -1); +const _hoisted_1 = { class: "uni-page-refresh-inner" }; +const _hoisted_2 = /* @__PURE__ */ createVNode("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }, null, -1); const _hoisted_3 = /* @__PURE__ */ createVNode("path", { d: "M0 0h24v24H0z", fill: "none" @@ -20433,7 +20555,7 @@ const _hoisted_4 = { function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createBlock("uni-page-refresh", null, [ createVNode("div", { - style: {"margin-top": $setup.offset + "px"}, + style: { "margin-top": $setup.offset + "px" }, class: "uni-page-refresh" }, [ createVNode("div", _hoisted_1, [ @@ -20478,8 +20600,8 @@ const ABORTING = "aborting"; const REFRESHING = "refreshing"; const RESTORING = "restoring"; function usePageRefresh(refreshRef) { - const {id: id2, refreshOptions} = usePageMeta(); - const {range, height} = refreshOptions; + const { id: id2, refreshOptions } = usePageMeta(); + const { range, height } = refreshOptions; let refreshContainerElem; let refreshControllerElem; let refreshControllerElemStyle; @@ -20562,7 +20684,7 @@ function usePageRefresh(refreshRef) { if (!processDeltaY(ev, touchId, startY)) { return; } - let {deltaY} = ev; + let { deltaY } = ev; if ((document.documentElement.scrollTop || document.body.scrollTop) !== 0) { touchId = null; return; @@ -20662,6 +20784,9 @@ function usePageRefresh(refreshRef) { onTouchcancel: onTouchend }; } +function _isSlot(s) { + return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s); +} var PageBody = defineSystemComponent({ name: "PageBody", setup(props2, ctx) { @@ -20669,8 +20794,14 @@ var PageBody = defineSystemComponent({ const refreshRef = __UNI_FEATURE_PULL_DOWN_REFRESH__ && ref(null); const pageRefresh = __UNI_FEATURE_PULL_DOWN_REFRESH__ && pageMeta.enablePullDownRefresh ? usePageRefresh(refreshRef) : null; return () => { + let _slot; const pageRefreshTsx = __UNI_FEATURE_PULL_DOWN_REFRESH__ && createPageRefreshTsx(refreshRef, pageMeta); - return createVNode(Fragment, null, [pageRefreshTsx, createVNode("uni-page-wrapper", pageRefresh, [createVNode("uni-page-body", null, [renderSlot(ctx.slots, "default")])], 16)]); + return createVNode(Fragment, null, [pageRefreshTsx, createVNode("uni-page-wrapper", pageRefresh, { + default: () => [createVNode("uni-page-body", null, _isSlot(_slot = renderSlot(ctx.slots, "default")) ? _slot : { + default: () => [_slot], + _: 1 + })] + }, 16)]); }; } }); @@ -20692,7 +20823,7 @@ var index$2 = defineSystemComponent({ } }); function createPageBodyVNode(ctx) { - return openBlock(), createBlock(PageBody, {key: 0}, { + return openBlock(), createBlock(PageBody, { key: 0 }, { default: withCtx(() => [renderSlot(ctx.slots, "page")]), _: 3 }); @@ -20713,12 +20844,12 @@ var index$1 = /* @__PURE__ */ defineSystemComponent({ }, [t2("uni.async.error")], 8, ["onClick"]); } }); -const clazz = {class: "uni-async-loading"}; -const loadingVNode = /* @__PURE__ */ createVNode("i", {class: "uni-loading"}, null, -1); +const clazz = { class: "uni-async-loading" }; +const loadingVNode = /* @__PURE__ */ createVNode("i", { class: "uni-loading" }, null, -1); var index = /* @__PURE__ */ defineSystemComponent({ name: "AsyncLoading", render() { return openBlock(), createBlock("div", clazz, [loadingVNode]); } }); -export {$emit, $off, $on, $once, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, _sfc_main$1 as Audio, index$s as Button, index$r as Canvas, index$p as Checkbox, index$q as CheckboxGroup, index$4 as CoverImage, index$5 as CoverView, index$o as Editor, index$u as Form, Friction, index$n as Icon, index$m as Image, Input, index$t as Label, LayoutComponent, Map$1 as Map, MovableArea, MovableView, index$l as Navigator, index$2 as PageComponent, index$3 as Picker, PickerView, PickerViewColumn, index$k as Progress, index$i as Radio, index$j as RadioGroup, ResizeSensor, index$h as RichText, ScrollView, Scroller, index$g as Slider, Spring, Swiper, SwiperItem, index$f as Switch, index$e as Text, index$d as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$8 as Video, index$c as View, index$7 as WebView, addInterceptor, addPhoneContact, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closeSocket, connectSocket, createAnimation, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, defineBuiltInComponent, defineSystemComponent, disableScrollBounce, downloadFile, getApp$1 as getApp, getContextInfo, getCurrentPages$1 as getCurrentPages, getFileInfo, getImageInfo, getLeftWindowStyle, getLocation, getNetworkType, getProvider, getRealPath, getRecorderManager, getRightWindowStyle, getSavedFileInfo, getSavedFileList, getScreenBrightness, getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, initScrollBounce, loadFontFace, login, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, offWindowResize, onAccelerometerChange, onCompassChange, onGyroscopeChange, onMemoryWarning, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onUserCaptureScreen, onWindowResize, openDocument, openLocation, pageScrollTo, index$9 as plugin, preloadPage, previewImage, promiseInterceptor, reLaunch, redirectTo, removeInterceptor, removeSavedFileInfo, removeStorage, removeStorageSync, removeTabBarBadge, request, saveFile, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, sendSocketMessage, setKeepScreenOn, setLeftWindowStyle, setNavigationBarColor, setNavigationBarTitle, setRightWindowStyle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startGyroscope, startPullDownRefresh, stopAccelerometer, stopCompass, stopGyroscope, stopPullDownRefresh, switchTab, uni$1 as uni, uniFormKey, uploadFile, upx2px, useAttrs, useBooleanAttr, useContextInfo, useCustomEvent, useNativeEvent, useOn, useScroller, useSubscribe, useTabBar, useTouchtrack, useUserAction, vibrateLong, vibrateShort, withWebEvent}; +export { $emit, $off, $on, $once, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, _sfc_main$1 as Audio, index$s as Button, index$r as Canvas, index$p as Checkbox, index$q as CheckboxGroup, index$4 as CoverImage, index$5 as CoverView, index$o as Editor, index$u as Form, Friction, index$n as Icon, index$m as Image, Input, index$t as Label, LayoutComponent, Map$1 as Map, MovableArea, MovableView, index$l as Navigator, index$2 as PageComponent, index$3 as Picker, PickerView, PickerViewColumn, index$k as Progress, index$i as Radio, index$j as RadioGroup, ResizeSensor, index$h as RichText, ScrollView, Scroller, index$g as Slider, Spring, Swiper, SwiperItem, index$f as Switch, index$e as Text, index$d as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$8 as Video, index$c as View, index$7 as WebView, addInterceptor, addPhoneContact, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closeSocket, connectSocket, createAnimation, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, defineBuiltInComponent, defineSystemComponent, disableScrollBounce, downloadFile, getApp$1 as getApp, getContextInfo, getCurrentPages$1 as getCurrentPages, getFileInfo, getImageInfo, getLeftWindowStyle, getLocation, getNetworkType, getProvider, getRealPath, getRecorderManager, getRightWindowStyle, getSavedFileInfo, getSavedFileList, getScreenBrightness, getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, initScrollBounce, loadFontFace, login, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offCompassChange, offNetworkStatusChange, offWindowResize, onAccelerometerChange, onCompassChange, onGyroscopeChange, onMemoryWarning, onNetworkStatusChange, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onUserCaptureScreen, onWindowResize, openDocument, openLocation, pageScrollTo, index$9 as plugin, preloadPage, previewImage, promiseInterceptor, reLaunch, redirectTo, removeInterceptor, removeSavedFileInfo, removeStorage, removeStorageSync, removeTabBarBadge, request, saveFile, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, sendSocketMessage, setKeepScreenOn, setLeftWindowStyle, setNavigationBarColor, setNavigationBarTitle, setRightWindowStyle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startGyroscope, startPullDownRefresh, stopAccelerometer, stopCompass, stopGyroscope, stopPullDownRefresh, switchTab, uni$1 as uni, uniFormKey, uploadFile, upx2px, useAttrs, useBooleanAttr, useContextInfo, useCustomEvent, useNativeEvent, useOn, useScroller, useSubscribe, useTabBar, useTouchtrack, useUserAction, vibrateLong, vibrateShort, withWebEvent }; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/README.md b/packages/uni-h5/lib/babel-plugin-jsx/README.md deleted file mode 100644 index aef7dc5e7..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/README.md +++ /dev/null @@ -1,334 +0,0 @@ -# Babel Plugin JSX for Vue 3.0 - -[![CircleCI](https://circleci.com/gh/vuejs/jsx-next.svg?style=svg)](https://circleci.com/gh/vuejs/vue-next) [![npm package](https://img.shields.io/npm/v/@vue/babel-plugin-jsx.svg?style=flat-square)](https://www.npmjs.com/package/@vue/babel-plugin-jsx) - -To add Vue JSX support. - -English | [简体中文](/packages/babel-plugin-jsx/README-zh_CN.md) - -## Installation - -Install the plugin with: - -```bash -npm install @vue/babel-plugin-jsx -D -``` - -Then add the plugin to .babelrc: - -```js -{ - "plugins": ["@vue/babel-plugin-jsx"] -} -``` - -## Usage - -### options - -#### transformOn - -Type: `boolean` - -Default: `false` - -transform `on: { click: xx }` to `onClick: xxx` - -#### optimize - -Type: `boolean` - -Default: `false` - -enable optimization or not. It's not recommended to enable it If you are not familiar with Vue 3. - -#### isCustomElement - -Type: `(tag: string) => boolean` - -Default: `undefined` - -configuring custom elements - -#### mergeProps - -Type: `boolean` - -Default: `true` - -merge static and dynamic class / style attributes / onXXX handlers - -#### enableObjectSlots - -Type: `boolean` - -Default: `true` - -Whether to enable `object slots` (mentioned below the document) syntax". It might be useful in JSX, but it will add a lot of `_isSlot` condition expressions which increase your bundle size. And `v-slots` is still available even if `enableObjectSlots` is turned off. - -## Syntax - -### Content - -functional component - -```jsx -const App = () =>
Vue 3.0
; -``` - -with render - -```jsx -const App = { - render() { - return
Vue 3.0
; - }, -}; -``` - -```jsx -import { withModifiers, defineComponent } from "vue"; - -const App = defineComponent({ - setup() { - const count = ref(0); - - const inc = () => { - count.value++; - }; - - return () => ( -
{count.value}
- ); - }, -}); -``` - -Fragment - -```jsx -const App = () => ( - <> - I'm - Fragment - -); -``` - -### Attributes / Props - -```jsx -const App = () => ; -``` - -with a dynamic binding: - -```jsx -const placeholderText = "email"; -const App = () => ; -``` - -### Directives - -v-show - -```jsx -const App = { - data() { - return { visible: true }; - }, - render() { - return ; - }, -}; -``` - -v-model - -> Note: You should pass the second param as string for using `arg`. - -```jsx - -``` - -```jsx - -``` - -```jsx - -``` - -Will compile to: - -```js -h(A, { - argument: val, - argumentModifiers: { - modifier: true, - }, - "onUpdate:argument": ($event) => (val = $event), -}); -``` - -v-models - -> Note: You should pass a Two-dimensional Arrays to v-models. - -```jsx - -``` - -```jsx - -``` - -```jsx - -``` - -Will compile to: - -```js -h(A, { - modelValue: foo, - modelModifiers: { - modifier: true, - }, - "onUpdate:modelValue": ($event) => (foo = $event), - bar: bar, - barModifiers: { - modifier: true, - }, - "onUpdate:bar": ($event) => (bar = $event), -}); -``` - -custom directive - -```jsx -const App = { - directives: { custom: customDirective }, - setup() { - return () => ; - }, -}; -``` - -### Slot - -> Note: In `jsx`, _`v-slot`_ should be replace with **`v-slots`** - -```jsx -const App = { - setup() { - const slots = { - foo: () => B, - }; - return () => ( - -
A
-
- ); - }, -}; - -// or - -const App = { - setup() { - const slots = { - default: () =>
A
, - foo: () => B, - }; - return () => ; - }, -}; - -// or you can use object slots when `enableObjectSlots` is not false. -const App = { - setup() { - return () => ( - <> - - {{ - default: () =>
A
, - foo: () => B, - }} -
- {() => "foo"} - - ); - }, -}; -``` - -### In TypeScript - -`tsconfig.json`: - -```json -{ - "compilerOptions": { - "jsx": "preserve" - } -} -``` - -## Who is using - - - - - - - - - -
- - -
- Ant Design Vue -
-
- - -
- Vant -
-
- - -
- Element Plus -
-
- -## Compatibility - -This repo is only compatible with: - -- **Babel 7+** -- **Vue 3+** diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.d.ts deleted file mode 100644 index 91679f42d..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import * as t from '@babel/types'; -import { NodePath } from '@babel/traverse'; -import { State } from '.'; -export declare type Slots = t.Identifier | t.ObjectExpression | null; -declare const buildProps: (path: NodePath, state: State) => { - tag: t.CallExpression | t.Identifier | t.StringLiteral | t.MemberExpression; - props: t.Expression; - isComponent: boolean; - slots: null; - directives: t.ArrayExpression[]; - patchFlag: number; - dynamicPropNames: Set; -}; -export default buildProps; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.js deleted file mode 100644 index 77e66ab62..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/buildProps.js +++ /dev/null @@ -1,293 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const t = __importStar(require("@babel/types")); -const helper_module_imports_1 = require("@babel/helper-module-imports"); -const utils_1 = require("./utils"); -const parseDirectives_1 = __importDefault(require("./parseDirectives")); -const transform_vue_jsx_1 = require("./transform-vue-jsx"); -const xlinkRE = /^xlink([A-Z])/; -const onRE = /^on[^a-z]/; -const isOn = (key) => onRE.test(key); -const getJSXAttributeValue = (path, state) => { - const valuePath = path.get('value'); - if (valuePath.isJSXElement()) { - return transform_vue_jsx_1.transformJSXElement(valuePath, state); - } - if (valuePath.isStringLiteral()) { - return valuePath.node; - } - if (valuePath.isJSXExpressionContainer()) { - return utils_1.transformJSXExpressionContainer(valuePath); - } - return null; -}; -const transformJSXSpreadAttribute = (nodePath, path, mergeProps, args) => { - const argument = path.get('argument'); - const { properties } = argument.node; - if (!properties) { - if (argument.isIdentifier()) { - utils_1.walksScope(nodePath, argument.name, 2 /* DYNAMIC */); - } - args.push(mergeProps ? argument.node : t.spreadElement(argument.node)); - } - else if (mergeProps) { - args.push(t.objectExpression(properties)); - } - else { - args.push(...properties); - } -}; -const mergeAsArray = (existing, incoming) => { - if (t.isArrayExpression(existing.value)) { - existing.value.elements.push(incoming.value); - } - else { - existing.value = t.arrayExpression([ - existing.value, - incoming.value, - ]); - } -}; -const dedupeProperties = (properties = [], mergeProps) => { - if (!mergeProps) { - return properties; - } - const knownProps = new Map(); - const deduped = []; - properties.forEach((prop) => { - const { value: name } = prop.key; - const existing = knownProps.get(name); - if (existing) { - if (name === 'style' || name === 'class' || name.startsWith('on')) { - mergeAsArray(existing, prop); - } - } - else { - knownProps.set(name, prop); - deduped.push(prop); - } - }); - return deduped; -}; -/** - * Check if an attribute value is constant - * @param node - * @returns boolean - */ -const isConstant = (node) => { - if (t.isIdentifier(node)) { - return node.name === 'undefined'; - } - if (t.isArrayExpression(node)) { - const { elements } = node; - return elements.every((element) => element && isConstant(element)); - } - if (t.isObjectExpression(node)) { - return node.properties.every((property) => isConstant(property.value)); - } - if (t.isLiteral(node)) { - return true; - } - return false; -}; -const buildProps = (path, state) => { - const tag = utils_1.getTag(path, state); - const isComponent = utils_1.checkIsComponent(path.get('openingElement'), state); - const props = path.get('openingElement').get('attributes'); - const directives = []; - const dynamicPropNames = new Set(); - let slots = null; - let patchFlag = 0; - if (props.length === 0) { - return { - tag, - isComponent, - slots, - props: t.nullLiteral(), - directives, - patchFlag, - dynamicPropNames, - }; - } - let properties = []; - // patchFlag analysis - let hasRef = false; - let hasClassBinding = false; - let hasStyleBinding = false; - let hasHydrationEventBinding = false; - let hasDynamicKeys = false; - const mergeArgs = []; - const { mergeProps = true } = state.opts; - props - .forEach((prop) => { - if (prop.isJSXAttribute()) { - let name = utils_1.getJSXAttributeName(prop); - const attributeValue = getJSXAttributeValue(prop, state); - if (!isConstant(attributeValue) || name === 'ref') { - if (!isComponent - && isOn(name) - // omit the flag for click handlers becaues hydration gives click - // dedicated fast path. - && name.toLowerCase() !== 'onclick' - // omit v-model handlers - && name !== 'onUpdate:modelValue') { - hasHydrationEventBinding = true; - } - if (name === 'ref') { - hasRef = true; - } - else if (name === 'class' && !isComponent) { - hasClassBinding = true; - } - else if (name === 'style' && !isComponent) { - hasStyleBinding = true; - } - else if (name !== 'key' - && !utils_1.isDirective(name) - && name !== 'on') { - dynamicPropNames.add(name); - } - } - if (state.opts.transformOn && (name === 'on' || name === 'nativeOn')) { - if (!state.get('transformOn')) { - state.set('transformOn', helper_module_imports_1.addDefault(path, '@vue/babel-helper-vue-transform-on', { nameHint: '_transformOn' })); - } - mergeArgs.push(t.callExpression(state.get('transformOn'), [attributeValue || t.booleanLiteral(true)])); - return; - } - if (utils_1.isDirective(name)) { - const { directive, modifiers, values, args, directiveName, } = parseDirectives_1.default({ - tag, - isComponent, - name, - path: prop, - state, - value: attributeValue, - }); - if (directiveName === 'slots') { - slots = attributeValue; - return; - } - if (directive) { - directives.push(t.arrayExpression(directive)); - } - else if (directiveName === 'html') { - properties.push(t.objectProperty(t.stringLiteral('innerHTML'), values[0])); - dynamicPropNames.add('innerHTML'); - } - else if (directiveName === 'text') { - properties.push(t.objectProperty(t.stringLiteral('textContent'), values[0])); - dynamicPropNames.add('textContent'); - } - if (['models', 'model'].includes(directiveName)) { - values.forEach((value, index) => { - var _a, _b; - const argVal = (_a = args[index]) === null || _a === void 0 ? void 0 : _a.value; - const propName = argVal || 'modelValue'; - // must be v-model or v-models and is a component - if (!directive) { - properties.push(t.objectProperty(t.stringLiteral(propName), value)); - dynamicPropNames.add(propName); - if ((_b = modifiers[index]) === null || _b === void 0 ? void 0 : _b.size) { - properties.push(t.objectProperty(t.stringLiteral(`${argVal || 'model'}Modifiers`), t.objectExpression([...modifiers[index]].map((modifier) => t.objectProperty(t.stringLiteral(modifier), t.booleanLiteral(true)))))); - } - } - properties.push(t.objectProperty(t.stringLiteral(`onUpdate:${propName}`), t.arrowFunctionExpression([t.identifier('$event')], t.assignmentExpression('=', value, t.identifier('$event'))))); - dynamicPropNames.add(`onUpdate:${propName}`); - }); - } - } - else { - if (name.match(xlinkRE)) { - name = name.replace(xlinkRE, (_, firstCharacter) => `xlink:${firstCharacter.toLowerCase()}`); - } - properties.push(t.objectProperty(t.stringLiteral(name), attributeValue || t.booleanLiteral(true))); - } - } - else { - if (properties.length && mergeProps) { - mergeArgs.push(t.objectExpression(dedupeProperties(properties, mergeProps))); - properties = []; - } - // JSXSpreadAttribute - hasDynamicKeys = true; - transformJSXSpreadAttribute(path, prop, mergeProps, mergeProps ? mergeArgs : properties); - } - }); - // patchFlag analysis - if (hasDynamicKeys) { - patchFlag |= 16 /* FULL_PROPS */; - } - else { - if (hasClassBinding) { - patchFlag |= 2 /* CLASS */; - } - if (hasStyleBinding) { - patchFlag |= 4 /* STYLE */; - } - if (dynamicPropNames.size) { - patchFlag |= 8 /* PROPS */; - } - if (hasHydrationEventBinding) { - patchFlag |= 32 /* HYDRATE_EVENTS */; - } - } - if ((patchFlag === 0 || patchFlag === 32 /* HYDRATE_EVENTS */) - && (hasRef || directives.length > 0)) { - patchFlag |= 512 /* NEED_PATCH */; - } - let propsExpression = t.nullLiteral(); - if (mergeArgs.length) { - if (properties.length) { - mergeArgs.push(t.objectExpression(dedupeProperties(properties, mergeProps))); - } - if (mergeArgs.length > 1) { - propsExpression = t.callExpression(utils_1.createIdentifier(state, 'mergeProps'), mergeArgs); - } - else { - // single no need for a mergeProps call - propsExpression = mergeArgs[0]; - } - } - else if (properties.length) { - // single no need for spread - if (properties.length === 1 && t.isSpreadElement(properties[0])) { - propsExpression = properties[0].argument; - } - else { - propsExpression = t.objectExpression(dedupeProperties(properties, mergeProps)); - } - } - return { - tag, - props: propsExpression, - isComponent, - slots, - directives, - patchFlag, - dynamicPropNames, - }; -}; -exports.default = buildProps; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/helpers.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/helpers.js deleted file mode 100644 index 929b49e25..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/helpers.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const template_1 = __importDefault(require("@babel/template")); -const helpers = Object.create(null); -const helper = (tpl) => ({ - ast: () => template_1.default.program.ast(tpl), -}); -helpers.isSlot = helper ` - import { isVNode } from 'vue'; - export default function _isSlot(s) { - return typeof s === 'function' || (Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s)); - } -`; -exports.default = helpers; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/index.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/index.d.ts deleted file mode 100644 index 1cde9e6a1..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/index.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import * as t from '@babel/types'; -import * as BabelCore from '@babel/core'; -import { NodePath } from '@babel/traverse'; -export declare type State = { - get: (name: string) => any; - set: (name: string, value: any) => any; - opts: VueJSXPluginOptions; -}; -export interface VueJSXPluginOptions { - /** transform `on: { click: xx }` to `onClick: xxx` */ - transformOn?: boolean; - /** enable optimization or not. */ - optimize?: boolean; - /** merge static and dynamic class / style attributes / onXXX handlers */ - mergeProps?: boolean; - /** configuring custom elements */ - isCustomElement?: (tag: string) => boolean; - /** enable object slots syntax */ - enableObjectSlots?: boolean; -} -export declare type ExcludesBoolean = (x: T | false | true) => x is T; -declare const _default: ({ types }: typeof BabelCore) => { - name: string; - inherits: any; - visitor: { - Program: { - enter(path: NodePath, state: State): void; - exit(path: NodePath): void; - }; - JSXFragment: { - enter(path: BabelCore.NodePath, state: State): void; - }; - JSXElement: { - exit(path: BabelCore.NodePath, state: State): void; - }; - }; -}; -export default _default; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/index.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/index.js deleted file mode 100644 index d8fbbdcbe..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/index.js +++ /dev/null @@ -1,145 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const t = __importStar(require("@babel/types")); -const template_1 = __importDefault(require("@babel/template")); -const plugin_syntax_jsx_1 = __importDefault(require("@babel/plugin-syntax-jsx")); -const helper_module_imports_1 = require("@babel/helper-module-imports"); -const transform_vue_jsx_1 = __importDefault(require("./transform-vue-jsx")); -const sugar_fragment_1 = __importDefault(require("./sugar-fragment")); -const hasJSX = (parentPath) => { - let fileHasJSX = false; - parentPath.traverse({ - JSXElement(path) { - fileHasJSX = true; - path.stop(); - }, - JSXFragment(path) { - fileHasJSX = true; - path.stop(); - }, - }); - return fileHasJSX; -}; -exports.default = ({ types }) => ({ - name: 'babel-plugin-jsx', - inherits: plugin_syntax_jsx_1.default, - visitor: Object.assign(Object.assign(Object.assign({}, transform_vue_jsx_1.default), sugar_fragment_1.default), { Program: { - enter(path, state) { - if (hasJSX(path)) { - const importNames = [ - 'createVNode', - 'Fragment', - 'resolveComponent', - 'withDirectives', - 'vShow', - 'vModelSelect', - 'vModelText', - 'vModelCheckbox', - 'vModelRadio', - 'vModelText', - 'vModelDynamic', - 'resolveDirective', - 'mergeProps', - 'createTextVNode', - 'isVNode', - ]; - if (helper_module_imports_1.isModule(path)) { - // import { createVNode } from "vue"; - const importMap = {}; - importNames.forEach((name) => { - state.set(name, () => { - if (importMap[name]) { - return types.cloneNode(importMap[name]); - } - const identifier = helper_module_imports_1.addNamed(path, name, 'vue', { - ensureLiveReference: true, - }); - importMap[name] = identifier; - return identifier; - }); - }); - const { enableObjectSlots = true } = state.opts; - if (enableObjectSlots) { - state.set('@vue/babel-plugin-jsx/runtimeIsSlot', () => { - if (importMap.runtimeIsSlot) { - return importMap.runtimeIsSlot; - } - const { name: isVNodeName } = state.get('isVNode')(); - const isSlot = path.scope.generateUidIdentifier('isSlot'); - const ast = template_1.default.ast ` - function ${isSlot.name}(s) { - return typeof s === 'function' || (Object.prototype.toString.call(s) === '[object Object]' && !${isVNodeName}(s)); - } - `; - const lastImport = path.get('body').filter((p) => p.isImportDeclaration()).pop(); - if (lastImport) { - lastImport.insertAfter(ast); - } - importMap.runtimeIsSlot = isSlot; - return isSlot; - }); - } - } - else { - // var _vue = require('vue'); - let sourceName = ''; - importNames.forEach((name) => { - state.set(name, () => { - if (!sourceName) { - sourceName = helper_module_imports_1.addNamespace(path, 'vue', { - ensureLiveReference: true, - }).name; - } - return t.memberExpression(t.identifier(sourceName), t.identifier(name)); - }); - }); - } - } - }, - exit(path) { - const body = path.get('body'); - const specifiersMap = new Map(); - body.filter((nodePath) => t.isImportDeclaration(nodePath.node) - && nodePath.node.source.value === 'vue') - .forEach((nodePath) => { - const { specifiers } = nodePath.node; - let shouldRemove = false; - specifiers.forEach((specifier) => { - if (!specifier.loc && t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported)) { - specifiersMap.set(specifier.imported.name, specifier); - shouldRemove = true; - } - }); - if (shouldRemove) { - nodePath.remove(); - } - }); - const specifiers = [...specifiersMap.keys()].map((imported) => specifiersMap.get(imported)); - if (specifiers.length) { - path.unshiftContainer('body', t.importDeclaration(specifiers, t.stringLiteral('vue'))); - } - }, - } }), -}); diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.d.ts deleted file mode 100644 index 046471ce1..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import * as t from '@babel/types'; -import { NodePath } from '@babel/traverse'; -import { State } from '.'; -export declare type Tag = t.Identifier | t.MemberExpression | t.StringLiteral | t.CallExpression; -declare const parseDirectives: (params: { - name: string; - path: NodePath; - value: t.StringLiteral | t.Expression | null; - state: State; - tag: Tag; - isComponent: boolean; -}) => { - directiveName: string; - modifiers: Set[]; - values: (t.ArrayExpression | t.ArrowFunctionExpression | t.AssignmentExpression | t.AwaitExpression | t.BigIntLiteral | t.BinaryExpression | t.LogicalExpression | t.BindExpression | t.FunctionExpression | t.BooleanLiteral | t.CallExpression | t.ClassExpression | t.ConditionalExpression | t.DecimalLiteral | t.DoExpression | t.Identifier | t.StringLiteral | t.NumericLiteral | t.NullLiteral | t.RegExpLiteral | t.MemberExpression | t.NewExpression | t.ObjectExpression | t.SequenceExpression | t.ParenthesizedExpression | t.ThisExpression | t.UnaryExpression | t.UpdateExpression | t.MetaProperty | t.Super | t.TaggedTemplateExpression | t.TemplateLiteral | t.YieldExpression | t.Import | t.OptionalMemberExpression | t.OptionalCallExpression | t.TypeCastExpression | t.JSXElement | t.JSXFragment | t.PipelinePrimaryTopicReference | t.RecordExpression | t.TupleExpression | t.TSAsExpression | t.TSTypeAssertion | t.TSNonNullExpression | null)[]; - args: (t.StringLiteral | t.NullLiteral)[]; - directive: t.Expression[] | undefined; -}; -export default parseDirectives; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.js deleted file mode 100644 index 4bf7d07a4..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/parseDirectives.js +++ /dev/null @@ -1,150 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const t = __importStar(require("@babel/types")); -const utils_1 = require("./utils"); -/** - * Get JSX element type - * - * @param path Path - */ -const getType = (path) => { - const typePath = path - .get('attributes') - .find((attribute) => { - if (!t.isJSXAttribute(attribute)) { - return false; - } - return t.isJSXIdentifier(attribute.get('name')) - && attribute.get('name').node.name === 'type'; - }); - return typePath ? typePath.get('value').node : null; -}; -const parseModifiers = (value) => (t.isArrayExpression(value) - ? value.elements - .map((el) => (t.isStringLiteral(el) ? el.value : '')) - .filter(Boolean) - : []); -const parseDirectives = (params) => { - var _a, _b, _c; - const { name, path, value, state, tag, isComponent, } = params; - const args = []; - const vals = []; - const modifiersSet = []; - const underscoreModifiers = name.split('_'); - const directiveName = ((_a = underscoreModifiers.shift()) === null || _a === void 0 ? void 0 : _a.replace(/^v/, '').replace(/^-/, '').replace(/^\S/, (s) => s.toLowerCase())) || ''; - const isVModels = directiveName === 'models'; - const isVModel = directiveName === 'model'; - if (isVModel && !t.isJSXExpressionContainer(path.get('value'))) { - throw new Error('You have to use JSX Expression inside your v-model'); - } - if (isVModels && !isComponent) { - throw new Error('v-models can only use in custom components'); - } - const shouldResolve = !['html', 'text', 'model', 'models'].includes(directiveName) - || (isVModel && !isComponent); - if (['models', 'model'].includes(directiveName)) { - if (t.isArrayExpression(value)) { - const elementsList = isVModels ? value.elements : [value]; - elementsList.forEach((element) => { - if (isVModels && !t.isArrayExpression(element)) { - throw new Error('You should pass a Two-dimensional Arrays to v-models'); - } - const { elements } = element; - const [first, second, third] = elements; - let modifiers = underscoreModifiers; - if (t.isStringLiteral(second)) { - args.push(second); - modifiers = parseModifiers(third); - } - else if (t.isArrayExpression(second)) { - args.push(t.nullLiteral()); - modifiers = parseModifiers(second); - } - else { - // work as v-model={[value]} or v-models={[[value]]} - args.push(t.nullLiteral()); - } - modifiersSet.push(new Set(modifiers)); - vals.push(first); - }); - } - else if (isVModel) { - // work as v-model={value} - args.push(t.nullLiteral()); - modifiersSet.push(new Set(underscoreModifiers)); - } - } - else { - modifiersSet.push(new Set(underscoreModifiers)); - } - return { - directiveName, - modifiers: modifiersSet, - values: vals.length ? vals : [value], - args, - directive: shouldResolve ? [ - resolveDirective(path, state, tag, directiveName), - vals[0] || value, - !!((_b = modifiersSet[0]) === null || _b === void 0 ? void 0 : _b.size) && t.unaryExpression('void', t.numericLiteral(0), true), - !!((_c = modifiersSet[0]) === null || _c === void 0 ? void 0 : _c.size) && t.objectExpression([...modifiersSet[0]].map((modifier) => t.objectProperty(t.identifier(modifier), t.booleanLiteral(true)))), - ].filter(Boolean) : undefined, - }; -}; -const resolveDirective = (path, state, tag, directiveName) => { - var _a; - if (directiveName === 'show') { - return utils_1.createIdentifier(state, 'vShow'); - } - if (directiveName === 'model') { - let modelToUse; - const type = getType(path.parentPath); - switch (tag.value) { - case 'select': - modelToUse = utils_1.createIdentifier(state, 'vModelSelect'); - break; - case 'textarea': - modelToUse = utils_1.createIdentifier(state, 'vModelText'); - break; - default: - if (t.isStringLiteral(type) || !type) { - switch ((_a = type) === null || _a === void 0 ? void 0 : _a.value) { - case 'checkbox': - modelToUse = utils_1.createIdentifier(state, 'vModelCheckbox'); - break; - case 'radio': - modelToUse = utils_1.createIdentifier(state, 'vModelRadio'); - break; - default: - modelToUse = utils_1.createIdentifier(state, 'vModelText'); - } - } - else { - modelToUse = utils_1.createIdentifier(state, 'vModelDynamic'); - } - } - return modelToUse; - } - return t.callExpression(utils_1.createIdentifier(state, 'resolveDirective'), [ - t.stringLiteral(directiveName), - ]); -}; -exports.default = parseDirectives; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.d.ts deleted file mode 100644 index ba11ca7c6..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare const enum PatchFlags { - TEXT = 1, - CLASS = 2, - STYLE = 4, - PROPS = 8, - FULL_PROPS = 16, - HYDRATE_EVENTS = 32, - STABLE_FRAGMENT = 64, - KEYED_FRAGMENT = 128, - UNKEYED_FRAGMENT = 256, - NEED_PATCH = 512, - DYNAMIC_SLOTS = 1024, - HOISTED = -1, - BAIL = -2 -} -export declare const PatchFlagNames: { - [x: number]: string; -}; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.js deleted file mode 100644 index e1b71b5e3..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/patchFlags.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PatchFlagNames = void 0; -// dev only flag -> name mapping -exports.PatchFlagNames = { - [1 /* TEXT */]: 'TEXT', - [2 /* CLASS */]: 'CLASS', - [4 /* STYLE */]: 'STYLE', - [8 /* PROPS */]: 'PROPS', - [16 /* FULL_PROPS */]: 'FULL_PROPS', - [32 /* HYDRATE_EVENTS */]: 'HYDRATE_EVENTS', - [64 /* STABLE_FRAGMENT */]: 'STABLE_FRAGMENT', - [128 /* KEYED_FRAGMENT */]: 'KEYED_FRAGMENT', - [256 /* UNKEYED_FRAGMENT */]: 'UNKEYED_FRAGMENT', - [1024 /* DYNAMIC_SLOTS */]: 'DYNAMIC_SLOTS', - [512 /* NEED_PATCH */]: 'NEED_PATCH', - [-1 /* HOISTED */]: 'HOISTED', - [-2 /* BAIL */]: 'BAIL', -}; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/rumtime.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/rumtime.js deleted file mode 100644 index c8924fa69..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/rumtime.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSlot = void 0; -const vue_1 = require("vue"); -const isFunction = (val) => typeof val === 'function'; -const isObject = (val) => Object.prototype.toString.call(val) === '[object Object]'; -const isSlot = (s) => isFunction(s) || (isObject(s) && !vue_1.isVNode(s)); -exports.isSlot = isSlot; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.d.ts deleted file mode 100644 index 986e87ef2..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -declare const enum SlotFlags { - /** - * Stable slots that only reference slot props or context state. The slot - * can fully capture its own dependencies so when passed down the parent won't - * need to force the child to update. - */ - STABLE = 1, - /** - * Slots that reference scope variables (v-for or an outer slot prop), or - * has conditional structure (v-if, v-for). The parent will need to force - * the child to update because the slot does not fully capture its dependencies. - */ - DYNAMIC = 2, - /** - * `` being forwarded into a child component. Whether the parent needs - * to update the child is dependent on what kind of slots the parent itself - * received. This has to be refined at runtime, when the child's vnode - * is being created (in `normalizeChildren`) - */ - FORWARDED = 3 -} -export default SlotFlags; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.js deleted file mode 100644 index c8ad2e549..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/slotFlags.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.d.ts deleted file mode 100644 index acaac91dc..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import * as t from '@babel/types'; -import { NodePath } from '@babel/traverse'; -import { State } from '.'; -declare const _default: { - JSXFragment: { - enter(path: NodePath, state: State): void; - }; -}; -export default _default; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.js deleted file mode 100644 index 18f1eb177..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/sugar-fragment.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const t = __importStar(require("@babel/types")); -const utils_1 = require("./utils"); -const transformFragment = (path, Fragment) => { - const children = path.get('children') || []; - return t.jsxElement(t.jsxOpeningElement(Fragment, []), t.jsxClosingElement(Fragment), children.map(({ node }) => node), false); -}; -exports.default = ({ - JSXFragment: { - enter(path, state) { - const fragmentCallee = utils_1.createIdentifier(state, utils_1.FRAGMENT); - path.replaceWith(transformFragment(path, t.isIdentifier(fragmentCallee) - ? t.jsxIdentifier(fragmentCallee.name) - : t.jsxMemberExpression(t.jsxIdentifier(fragmentCallee.object.name), t.jsxIdentifier(fragmentCallee.property.name)))); - }, - }, -}); diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.d.ts deleted file mode 100644 index 45a0c7b8f..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as t from '@babel/types'; -import { NodePath } from '@babel/traverse'; -import { State } from '.'; -declare const transformJSXElement: (path: NodePath, state: State) => t.CallExpression; -export { transformJSXElement }; -declare const _default: { - JSXElement: { - exit(path: NodePath, state: State): void; - }; -}; -export default _default; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.js deleted file mode 100644 index 66ee20296..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/transform-vue-jsx.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.transformJSXElement = void 0; -const t = __importStar(require("@babel/types")); -const utils_1 = require("./utils"); -const buildProps_1 = __importDefault(require("./buildProps")); -/** - * Get children from Array of JSX children - * @param paths Array - * @returns Array - */ -const getChildren = (paths, state) => paths - .map((path) => { - if (path.isJSXText()) { - const transformedText = utils_1.transformJSXText(path); - if (transformedText) { - return t.callExpression(utils_1.createIdentifier(state, 'createTextVNode'), [transformedText]); - } - return transformedText; - } - if (path.isJSXExpressionContainer()) { - const expression = utils_1.transformJSXExpressionContainer(path); - if (t.isIdentifier(expression)) { - const { name } = expression; - const { referencePaths = [] } = path.scope.getBinding(name) || {}; - referencePaths.forEach((referencePath) => { - utils_1.walksScope(referencePath, name, 2 /* DYNAMIC */); - }); - } - return expression; - } - if (t.isJSXSpreadChild(path)) { - return utils_1.transformJSXSpreadChild(path); - } - if (path.isCallExpression()) { - return path.node; - } - if (path.isJSXElement()) { - return transformJSXElement(path, state); - } - throw new Error(`getChildren: ${path.type} is not supported`); -}).filter(((value) => (value !== undefined - && value !== null - && !t.isJSXEmptyExpression(value)))); -const transformJSXElement = (path, state) => { - const children = getChildren(path.get('children'), state); - const { tag, props, isComponent, directives, patchFlag, dynamicPropNames, slots, } = buildProps_1.default(path, state); - const { optimize = false } = state.opts; - const slotFlag = path.getData('slotFlag') || 1 /* STABLE */; - let VNodeChild; - if (children.length > 1 || slots) { - /* - {a}{b} - ---> {{ default: () => [a, b], ...slots }} - ---> {[a, b]} - */ - VNodeChild = isComponent ? t.objectExpression([ - !!children.length && t.objectProperty(t.identifier('default'), t.arrowFunctionExpression([], t.arrayExpression(utils_1.buildIIFE(path, children)))), - ...(slots ? (t.isObjectExpression(slots) - ? slots.properties - : [t.spreadElement(slots)]) : []), - optimize && t.objectProperty(t.identifier('_'), t.numericLiteral(slotFlag)), - ].filter(Boolean)) : t.arrayExpression(children); - } - else if (children.length === 1) { - /* - {a} or {() => a} - */ - const { enableObjectSlots = true } = state.opts; - const child = children[0]; - const objectExpression = t.objectExpression([ - t.objectProperty(t.identifier('default'), t.arrowFunctionExpression([], t.arrayExpression(utils_1.buildIIFE(path, [child])))), - optimize && t.objectProperty(t.identifier('_'), t.numericLiteral(slotFlag)), - ].filter(Boolean)); - if (t.isIdentifier(child) && isComponent) { - VNodeChild = enableObjectSlots ? t.conditionalExpression(t.callExpression(state.get('@vue/babel-plugin-jsx/runtimeIsSlot')(), [child]), child, objectExpression) : objectExpression; - } - else if (t.isCallExpression(child) && child.loc && isComponent) { // the element was generated and doesn't have location information - if (enableObjectSlots) { - const { scope } = path; - const slotId = scope.generateUidIdentifier('slot'); - if (scope) { - scope.push({ - id: slotId, - kind: 'let', - }); - } - const alternate = t.objectExpression([ - t.objectProperty(t.identifier('default'), t.arrowFunctionExpression([], t.arrayExpression(utils_1.buildIIFE(path, [slotId])))), - optimize && t.objectProperty(t.identifier('_'), t.numericLiteral(slotFlag)), - ].filter(Boolean)); - const assignment = t.assignmentExpression('=', slotId, child); - const condition = t.callExpression(state.get('@vue/babel-plugin-jsx/runtimeIsSlot')(), [assignment]); - VNodeChild = t.conditionalExpression(condition, slotId, alternate); - } - else { - VNodeChild = objectExpression; - } - } - else if (t.isFunctionExpression(child) || t.isArrowFunctionExpression(child)) { - VNodeChild = t.objectExpression([ - t.objectProperty(t.identifier('default'), child), - ]); - } - else if (t.isObjectExpression(child)) { - VNodeChild = t.objectExpression([ - ...child.properties, - optimize && t.objectProperty(t.identifier('_'), t.numericLiteral(slotFlag)), - ].filter(Boolean)); - } - else { - VNodeChild = isComponent ? t.objectExpression([ - t.objectProperty(t.identifier('default'), t.arrowFunctionExpression([], t.arrayExpression([child]))), - ]) : t.arrayExpression([child]); - } - } - const createVNode = t.callExpression(utils_1.createIdentifier(state, 'createVNode'), [ - tag, - props, - VNodeChild || t.nullLiteral(), - !!patchFlag && optimize && t.numericLiteral(patchFlag), - !!dynamicPropNames.size && optimize - && t.arrayExpression([...dynamicPropNames.keys()].map((name) => t.stringLiteral(name))), - ].filter(Boolean)); - if (!directives.length) { - return createVNode; - } - return t.callExpression(utils_1.createIdentifier(state, 'withDirectives'), [ - createVNode, - t.arrayExpression(directives), - ]); -}; -exports.transformJSXElement = transformJSXElement; -exports.default = ({ - JSXElement: { - exit(path, state) { - path.replaceWith(transformJSXElement(path, state)); - }, - }, -}); diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/utils.d.ts b/packages/uni-h5/lib/babel-plugin-jsx/dist/utils.d.ts deleted file mode 100644 index 861a33bca..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/utils.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import * as t from '@babel/types'; -import { NodePath } from '@babel/traverse'; -import { State } from '.'; -import SlotFlags from './slotFlags'; -declare const JSX_HELPER_KEY = "JSX_HELPER_KEY"; -declare const FRAGMENT = "Fragment"; -/** - * create Identifier - * @param path NodePath - * @param state - * @param name string - * @returns MemberExpression - */ -declare const createIdentifier: (state: State, name: string) => t.Identifier | t.MemberExpression; -/** - * Checks if string is describing a directive - * @param src string - */ -declare const isDirective: (src: string) => boolean; -/** - * Should transformed to slots - * @param tag string - * @returns boolean - */ -declare const shouldTransformedToSlots: (tag: string) => boolean; -/** - * Check if a Node is a component - * - * @param t - * @param path JSXOpeningElement - * @returns boolean - */ -declare const checkIsComponent: (path: NodePath) => boolean; -/** - * Transform JSXMemberExpression to MemberExpression - * @param path JSXMemberExpression - * @returns MemberExpression - */ -declare const transformJSXMemberExpression: (path: NodePath) => t.MemberExpression; -/** - * Get tag (first attribute for h) from JSXOpeningElement - * @param path JSXElement - * @param state State - * @returns Identifier | StringLiteral | MemberExpression | CallExpression - */ -declare const getTag: (path: NodePath, state: State) => t.Identifier | t.CallExpression | t.StringLiteral | t.MemberExpression; -declare const getJSXAttributeName: (path: NodePath) => string; -/** - * Transform JSXText to StringLiteral - * @param path JSXText - * @returns StringLiteral | null - */ -declare const transformJSXText: (path: NodePath) => t.StringLiteral | null; -/** - * Transform JSXExpressionContainer to Expression - * @param path JSXExpressionContainer - * @returns Expression - */ -declare const transformJSXExpressionContainer: (path: NodePath) => (t.Expression); -/** - * Transform JSXSpreadChild - * @param path JSXSpreadChild - * @returns SpreadElement - */ -declare const transformJSXSpreadChild: (path: NodePath) => t.SpreadElement; -declare const walksScope: (path: NodePath, name: string, slotFlag: SlotFlags) => void; -declare const buildIIFE: (path: NodePath, children: t.Expression[]) => t.Expression[]; -export { createIdentifier, isDirective, checkIsComponent, transformJSXMemberExpression, getTag, getJSXAttributeName, transformJSXText, transformJSXSpreadChild, transformJSXExpressionContainer, shouldTransformedToSlots, FRAGMENT, walksScope, buildIIFE, JSX_HELPER_KEY, }; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/dist/utils.js b/packages/uni-h5/lib/babel-plugin-jsx/dist/utils.js deleted file mode 100644 index 8e4e84f58..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/dist/utils.js +++ /dev/null @@ -1,210 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.JSX_HELPER_KEY = exports.buildIIFE = exports.walksScope = exports.FRAGMENT = exports.shouldTransformedToSlots = exports.transformJSXExpressionContainer = exports.transformJSXSpreadChild = exports.transformJSXText = exports.getJSXAttributeName = exports.getTag = exports.transformJSXMemberExpression = exports.checkIsComponent = exports.isDirective = exports.createIdentifier = void 0; -const t = __importStar(require("@babel/types")); -const html_tags_1 = __importDefault(require("html-tags")); -const svg_tags_1 = __importDefault(require("svg-tags")); -const JSX_HELPER_KEY = 'JSX_HELPER_KEY'; -exports.JSX_HELPER_KEY = JSX_HELPER_KEY; -const FRAGMENT = 'Fragment'; -exports.FRAGMENT = FRAGMENT; -const KEEP_ALIVE = 'KeepAlive'; -/** - * create Identifier - * @param path NodePath - * @param state - * @param name string - * @returns MemberExpression - */ -const createIdentifier = (state, name) => state.get(name)(); -exports.createIdentifier = createIdentifier; -/** - * Checks if string is describing a directive - * @param src string - */ -const isDirective = (src) => src.startsWith('v-') - || (src.startsWith('v') && src.length >= 2 && src[1] >= 'A' && src[1] <= 'Z'); -exports.isDirective = isDirective; -/** - * Should transformed to slots - * @param tag string - * @returns boolean - */ -const shouldTransformedToSlots = (tag) => !(tag.endsWith(FRAGMENT) || tag === KEEP_ALIVE); -exports.shouldTransformedToSlots = shouldTransformedToSlots; -/** - * Check if a Node is a component - * - * @param t - * @param path JSXOpeningElement - * @returns boolean - */ -const checkIsComponent = (path, state) => { - const namePath = path.get('name'); - if (namePath.isJSXMemberExpression()) { - return shouldTransformedToSlots(namePath.node.property.name); // For withCtx - } - const tag = namePath.node.name; - if(state.opts.isCustomElement && state.opts.isCustomElement(tag)){ - return false - } - return shouldTransformedToSlots(tag) && !html_tags_1.default.includes(tag) && !svg_tags_1.default.includes(tag); -}; -exports.checkIsComponent = checkIsComponent; -/** - * Transform JSXMemberExpression to MemberExpression - * @param path JSXMemberExpression - * @returns MemberExpression - */ -const transformJSXMemberExpression = (path) => { - const objectPath = path.node.object; - const propertyPath = path.node.property; - const transformedObject = t.isJSXMemberExpression(objectPath) - ? transformJSXMemberExpression(path.get('object')) - : t.isJSXIdentifier(objectPath) - ? t.identifier(objectPath.name) - : t.nullLiteral(); - const transformedProperty = t.identifier(propertyPath.name); - return t.memberExpression(transformedObject, transformedProperty); -}; -exports.transformJSXMemberExpression = transformJSXMemberExpression; -/** - * Get tag (first attribute for h) from JSXOpeningElement - * @param path JSXElement - * @param state State - * @returns Identifier | StringLiteral | MemberExpression | CallExpression - */ -const getTag = (path, state) => { - var _a, _b; - const namePath = path.get('openingElement').get('name'); - if (namePath.isJSXIdentifier()) { - const { name } = namePath.node; - if (!html_tags_1.default.includes(name) && !svg_tags_1.default.includes(name)) { - return (name === FRAGMENT - ? createIdentifier(state, FRAGMENT) - : path.scope.hasBinding(name) - ? t.identifier(name) - : ((_b = (_a = state.opts).isCustomElement) === null || _b === void 0 ? void 0 : _b.call(_a, name)) ? t.stringLiteral(name) - : t.callExpression(createIdentifier(state, 'resolveComponent'), [t.stringLiteral(name)])); - } - return t.stringLiteral(name); - } - if (namePath.isJSXMemberExpression()) { - return transformJSXMemberExpression(namePath); - } - throw new Error(`getTag: ${namePath.type} is not supported`); -}; -exports.getTag = getTag; -const getJSXAttributeName = (path) => { - const nameNode = path.node.name; - if (t.isJSXIdentifier(nameNode)) { - return nameNode.name; - } - return `${nameNode.namespace.name}:${nameNode.name.name}`; -}; -exports.getJSXAttributeName = getJSXAttributeName; -/** - * Transform JSXText to StringLiteral - * @param path JSXText - * @returns StringLiteral | null - */ -const transformJSXText = (path) => { - const { node } = path; - const lines = node.value.split(/\r\n|\n|\r/); - let lastNonEmptyLine = 0; - for (let i = 0; i < lines.length; i++) { - if (lines[i].match(/[^ \t]/)) { - lastNonEmptyLine = i; - } - } - let str = ''; - for (let i = 0; i < lines.length; i++) { - const line = lines[i]; - const isFirstLine = i === 0; - const isLastLine = i === lines.length - 1; - const isLastNonEmptyLine = i === lastNonEmptyLine; - // replace rendered whitespace tabs with spaces - let trimmedLine = line.replace(/\t/g, ' '); - // trim whitespace touching a newline - if (!isFirstLine) { - trimmedLine = trimmedLine.replace(/^[ ]+/, ''); - } - // trim whitespace touching an endline - if (!isLastLine) { - trimmedLine = trimmedLine.replace(/[ ]+$/, ''); - } - if (trimmedLine) { - if (!isLastNonEmptyLine) { - trimmedLine += ' '; - } - str += trimmedLine; - } - } - return str !== '' ? t.stringLiteral(str) : null; -}; -exports.transformJSXText = transformJSXText; -/** - * Transform JSXExpressionContainer to Expression - * @param path JSXExpressionContainer - * @returns Expression - */ -const transformJSXExpressionContainer = (path) => path.get('expression').node; -exports.transformJSXExpressionContainer = transformJSXExpressionContainer; -/** - * Transform JSXSpreadChild - * @param path JSXSpreadChild - * @returns SpreadElement - */ -const transformJSXSpreadChild = (path) => t.spreadElement(path.get('expression').node); -exports.transformJSXSpreadChild = transformJSXSpreadChild; -const walksScope = (path, name, slotFlag) => { - if (path.scope.hasBinding(name) && path.parentPath) { - if (t.isJSXElement(path.parentPath.node)) { - path.parentPath.setData('slotFlag', slotFlag); - } - walksScope(path.parentPath, name, slotFlag); - } -}; -exports.walksScope = walksScope; -const buildIIFE = (path, children) => { - const { parentPath } = path; - if (t.isAssignmentExpression(parentPath)) { - const { left } = parentPath.node; - if (t.isIdentifier(left)) { - return children.map((child) => { - if (t.isIdentifier(child) && child.name === left.name) { - const insertName = path.scope.generateUidIdentifier(child.name); - parentPath.insertBefore(t.variableDeclaration('const', [ - t.variableDeclarator(insertName, t.callExpression(t.functionExpression(null, [], t.blockStatement([t.returnStatement(child)])), [])), - ])); - return insertName; - } - return child; - }); - } - } - return children; -}; -exports.buildIIFE = buildIIFE; diff --git a/packages/uni-h5/lib/babel-plugin-jsx/package.json b/packages/uni-h5/lib/babel-plugin-jsx/package.json deleted file mode 100644 index d40be471b..000000000 --- a/packages/uni-h5/lib/babel-plugin-jsx/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "@vue/babel-plugin-jsx", - "version": "1.0.3", - "description": "Babel plugin for Vue 3.0 JSX", - "author": "Amour1688 ", - "homepage": "https://github.com/vuejs/jsx-next/tree/dev/packages/babel-plugin-jsx#readme", - "license": "MIT", - "main": "dist/index.js", - "repository": { - "type": "git", - "url": "git+https://github.com/vuejs/jsx-next.git" - }, - "scripts": { - "build": "tsc", - "lint": "eslint 'src/*.ts'", - "test": "yarn build && jest --coverage", - "prepublishOnly": "yarn build" - }, - "bugs": { - "url": "https://github.com/vuejs/jsx-next/issues" - }, - "files": [ - "dist" - ], - "dependencies": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/plugin-syntax-jsx": "^7.0.0", - "@babel/template": "^7.0.0", - "@babel/traverse": "^7.0.0", - "@babel/types": "^7.0.0", - "@vue/babel-helper-vue-transform-on": "^1.0.2", - "camelcase": "^6.0.0", - "html-tags": "^3.1.0", - "svg-tags": "^1.0.0" - }, - "devDependencies": { - "@babel/core": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "@types/jest": "^26.0.7", - "@types/svg-tags": "^1.0.0", - "@typescript-eslint/eslint-plugin": "^4.0.1", - "@typescript-eslint/parser": "^4.0.1", - "@vue/compiler-dom": "3.0.5", - "@vue/test-utils": "2.0.0-beta.2", - "jest": "^26.0.1", - "regenerator-runtime": "^0.13.5", - "ts-jest": "^26.1.3", - "typescript": "^4.0.2", - "vue": "3.0.5" - } -} diff --git a/packages/uni-h5/vite.config.ts b/packages/uni-h5/vite.config.ts index 74aac2150..ff8299ed6 100644 --- a/packages/uni-h5/vite.config.ts +++ b/packages/uni-h5/vite.config.ts @@ -1,21 +1,16 @@ import path from 'path' import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' import jscc from 'rollup-plugin-jscc' import strip from '@rollup/plugin-strip' import replace from '@rollup/plugin-replace' +import vue from '@vitejs/plugin-vue' +import vueJsx from '@vitejs/plugin-vue-jsx' + import { stripOptions } from '@dcloudio/uni-cli-shared' import { isCustomElement } from '@dcloudio/uni-shared' -const moduleAlias = require('module-alias') -moduleAlias.addAlias( - '@vue/babel-plugin-jsx', - path.join(__dirname, 'lib/babel-plugin-jsx') -) -const vueJsx = require('@vitejs/plugin-vue-jsx') - function resolve(file: string) { return path.resolve(__dirname, file) } diff --git a/yarn.lock b/yarn.lock index 4027cb9b6..c2d5738c2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,10 +16,10 @@ dependencies: "@babel/highlight" "^7.12.13" -"@babel/compat-data@^7.13.15": - version "7.14.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.0.tgz#a901128bce2ad02565df95e6ecbf195cf9465919" - integrity sha512-vu9V3uMM/1o5Hl5OekMUowo3FqXLJSw+s+66nt0fSWVWTtmosdzn45JHOB3cPtZoe6CTBDzvSw0RdOY85Q37+Q== +"@babel/compat-data@^7.14.4": + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.4.tgz#45720fe0cecf3fd42019e1d12cc3d27fadc98d58" + integrity sha512-i2wXrWQNkH6JplJQGn3Rd2I4Pij8GdHkXwHMxm+zV5YG/Jci+bCNrWZEWC4o+umiDkRrRs4dVzH3X4GP7vyjQQ== "@babel/core@^7.1.0", "@babel/core@^7.12.10", "@babel/core@^7.7.5": version "7.14.3" @@ -59,25 +59,25 @@ "@babel/types" "^7.12.13" "@babel/helper-compilation-targets@^7.13.16": - version "7.13.16" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.13.16.tgz#6e91dccf15e3f43e5556dffe32d860109887563c" - integrity sha512-3gmkYIrpqsLlieFwjkGgLaSHmhnvlAYzZLlYVjlW+QwI+1zE17kGxuJGmIqDQdYp56XdmGeD+Bswx0UTyG18xA== + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.14.4.tgz#33ebd0ffc34248051ee2089350a929ab02f2a516" + integrity sha512-JgdzOYZ/qGaKTVkn5qEDV/SXAh8KcyUVkCoSWGN8T3bwrgd6m+/dJa2kVGi6RJYJgEYPBdZ84BZp9dUjNWkBaA== dependencies: - "@babel/compat-data" "^7.13.15" + "@babel/compat-data" "^7.14.4" "@babel/helper-validator-option" "^7.12.17" - browserslist "^4.14.5" + browserslist "^4.16.6" semver "^6.3.0" -"@babel/helper-create-class-features-plugin@^7.14.3": - version "7.14.3" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.14.3.tgz#832111bcf4f57ca57a4c5b1a000fc125abc6554a" - integrity sha512-BnEfi5+6J2Lte9LeiL6TxLWdIlEv9Woacc1qXzXBgbikcOzMRM2Oya5XGg/f/ngotv1ej2A/b+3iJH8wbS1+lQ== +"@babel/helper-create-class-features-plugin@^7.14.4": + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.14.4.tgz#abf888d836a441abee783c75229279748705dc42" + integrity sha512-idr3pthFlDCpV+p/rMgGLGYIVtazeatrSOQk8YzO2pAepIjQhCN3myeihVg58ax2bbbGK9PUE1reFi7axOYIOw== dependencies: "@babel/helper-annotate-as-pure" "^7.12.13" "@babel/helper-function-name" "^7.14.2" "@babel/helper-member-expression-to-functions" "^7.13.12" "@babel/helper-optimise-call-expression" "^7.12.13" - "@babel/helper-replace-supers" "^7.14.3" + "@babel/helper-replace-supers" "^7.14.4" "@babel/helper-split-export-declaration" "^7.12.13" "@babel/helper-function-name@^7.14.2": @@ -136,15 +136,15 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz#806526ce125aed03373bc416a828321e3a6a33af" integrity sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ== -"@babel/helper-replace-supers@^7.13.12", "@babel/helper-replace-supers@^7.14.3": - version "7.14.3" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.14.3.tgz#ca17b318b859d107f0e9b722d58cf12d94436600" - integrity sha512-Rlh8qEWZSTfdz+tgNV/N4gz1a0TMNwCUcENhMjHTHKp3LseYH5Jha0NSlyTQWMnjbYcwFt+bqAMqSLHVXkQ6UA== +"@babel/helper-replace-supers@^7.13.12", "@babel/helper-replace-supers@^7.14.4": + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.14.4.tgz#b2ab16875deecfff3ddfcd539bc315f72998d836" + integrity sha512-zZ7uHCWlxfEAAOVDYQpEf/uyi1dmeC7fX4nCf2iz9drnCwi1zvwXL3HwWWNXUQEJ1k23yVn3VbddiI9iJEXaTQ== dependencies: "@babel/helper-member-expression-to-functions" "^7.13.12" "@babel/helper-optimise-call-expression" "^7.12.13" "@babel/traverse" "^7.14.2" - "@babel/types" "^7.14.2" + "@babel/types" "^7.14.4" "@babel/helper-simple-access@^7.13.12": version "7.13.12" @@ -189,9 +189,9 @@ js-tokens "^4.0.0" "@babel/parser@^7.1.0", "@babel/parser@^7.12.0", "@babel/parser@^7.12.13", "@babel/parser@^7.13.9", "@babel/parser@^7.14.2", "@babel/parser@^7.14.3": - version "7.14.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.3.tgz#9b530eecb071fd0c93519df25c5ff9f14759f298" - integrity sha512-7MpZDIfI7sUC5zWo2+foJ50CSI5lcqDehZ0lVgIhSi4bFEk94fLAKlF3Q0nzSQQ+ca0lm+O6G9ztKVBeu8PMRQ== + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.4.tgz#a5c560d6db6cd8e6ed342368dea8039232cbab18" + integrity sha512-ArliyUsWDUqEGfWcmzpGUzNfLxTdTp6WU4IuP6QFSp9gGfWS6boxFCkJSJ/L4+RG8z/FnIU3WxCk6hPL9SSWeA== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -292,18 +292,18 @@ "@babel/helper-plugin-utils" "^7.12.13" "@babel/plugin-transform-typescript@^7.12.1": - version "7.14.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.14.3.tgz#44f67f725a60cccee33d9d6fee5e4f338258f34f" - integrity sha512-G5Bb5pY6tJRTC4ag1visSgiDoGgJ1u1fMUgmc2ijLkcIdzP83Q1qyZX4ggFQ/SkR+PNOatkaYC+nKcTlpsX4ag== + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.14.4.tgz#1c48829fa6d5f2de646060cd08abb6cda4b521a7" + integrity sha512-WYdcGNEO7mCCZ2XzRlxwGj3PgeAr50ifkofOUC/+IN/GzKLB+biDPVBUAQN2C/dVZTvEXCp80kfQ1FFZPrwykQ== dependencies: - "@babel/helper-create-class-features-plugin" "^7.14.3" + "@babel/helper-create-class-features-plugin" "^7.14.4" "@babel/helper-plugin-utils" "^7.13.0" "@babel/plugin-syntax-typescript" "^7.12.13" "@babel/standalone@^7.13.12": - version "7.14.3" - resolved "https://registry.yarnpkg.com/@babel/standalone/-/standalone-7.14.3.tgz#0b65ed93c6b5a911d1e62dc10e7ea73d201d6783" - integrity sha512-nv9eIzaXjrPwfytt5SfKAbM5DJWfpJ6EiGhRar+p95k8r6ZNydF8svvjQVpbqqPIubR+tz1WyRlMJ3AUfXg4Pg== + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/standalone/-/standalone-7.14.4.tgz#b50522a9119bea33f0d8e13e7f7d51274fad0530" + integrity sha512-oBvBtSdACtNeH2YAg2kyZhfbqfKQK7lgudfHo8IC03JiBrfuvvMlfkBaSrqxrpf9DmUCZJnDZH3uLNVN5QoXog== "@babel/template@^7.0.0", "@babel/template@^7.12.13", "@babel/template@^7.3.3": version "7.12.13" @@ -328,10 +328,10 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.12.0", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.14.0", "@babel/types@^7.14.2", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.14.2" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.2.tgz#4208ae003107ef8a057ea8333e56eb64d2f6a2c3" - integrity sha512-SdjAG/3DikRHpUOjxZgnkbR11xUlyDMUFJdvnIgZEE16mqmY0BINMmc4//JMJglEmn6i7sq6p+mGrFWyZ98EEw== +"@babel/types@^7.0.0", "@babel/types@^7.12.0", "@babel/types@^7.12.13", "@babel/types@^7.13.0", "@babel/types@^7.13.12", "@babel/types@^7.14.0", "@babel/types@^7.14.2", "@babel/types@^7.14.4", "@babel/types@^7.3.0", "@babel/types@^7.3.3": + version "7.14.4" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.4.tgz#bfd6980108168593b38b3eb48a24aa026b919bc0" + integrity sha512-lCj4aIs0xUefJFQnwwQv2Bxg7Omd6bgquZ6LGC+gGMh6/s5qDVfjuCMlDmYQ15SLsWHd9n+X3E75lKIhl5Lkiw== dependencies: "@babel/helper-validator-identifier" "^7.14.0" to-fast-properties "^2.0.0" @@ -1418,12 +1418,12 @@ resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz#70a62be213e1edc04bb8897ee48c311482f9700d" integrity sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ== -"@octokit/plugin-rest-endpoint-methods@5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.3.0.tgz#bcc8b4432ee24b30d6a4934c9e2baacda46a5aaf" - integrity sha512-+4NAJ9WzPN5gW6W1H1tblw/DesTD6PaWuU5+/x3Pa7nyK6qjR6cn4jwkJtzxVPTgtzryOFLX+5vs7MROFswp5Q== +"@octokit/plugin-rest-endpoint-methods@5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.3.1.tgz#deddce769b4ec3179170709ab42e4e9e6195aaa9" + integrity sha512-3B2iguGmkh6bQQaVOtCsS0gixrz8Lg0v4JuXPqBcFqLKuJtxAUf3K88RxMEf/naDOI73spD+goJ/o7Ie7Cvdjg== dependencies: - "@octokit/types" "^6.16.0" + "@octokit/types" "^6.16.2" deprecation "^2.3.1" "@octokit/request-error@^2.0.0", "@octokit/request-error@^2.0.5": @@ -1448,16 +1448,16 @@ universal-user-agent "^6.0.0" "@octokit/rest@^18.1.0": - version "18.5.4" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.5.4.tgz#cb4ace20915a6d18b5afe945f8076ea7b044dd77" - integrity sha512-n3Q5ikar6dFvGmSrzRwIrPvSAkwibQr5Ti0h722T/YuylsPYahRTmVEU1Vg+XIg8MHgHBTKmwBzz0IwpbseOtQ== + version "18.5.6" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.5.6.tgz#8c9a7c9329c7bbf478af20df78ddeab0d21f6d89" + integrity sha512-8HdG6ZjQdZytU6tCt8BQ2XLC7EJ5m4RrbyU/EARSkAM1/HP3ceOzMG/9atEfe17EDMer3IVdHWLedz2wDi73YQ== dependencies: "@octokit/core" "^3.2.3" "@octokit/plugin-paginate-rest" "^2.6.2" "@octokit/plugin-request-log" "^1.0.2" - "@octokit/plugin-rest-endpoint-methods" "5.3.0" + "@octokit/plugin-rest-endpoint-methods" "5.3.1" -"@octokit/types@^6.0.3", "@octokit/types@^6.11.0", "@octokit/types@^6.16.0", "@octokit/types@^6.7.1": +"@octokit/types@^6.0.3", "@octokit/types@^6.11.0", "@octokit/types@^6.16.2", "@octokit/types@^6.7.1": version "6.16.2" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.16.2.tgz#62242e0565a3eb99ca2fd376283fe78b4ea057b4" integrity sha512-wWPSynU4oLy3i4KGyk+J1BLwRKyoeW2TwRHgwbDz17WtVFzSK2GOErGliruIx8c+MaYtHSYTx36DSmLNoNbtgA== @@ -1658,9 +1658,9 @@ integrity sha512-XI3MGSejUQIJ3wzY0i5IHy5J3eb36M/ytgG8jIOssP08ovtRPcjpjXQqrx51AHBNBOisTS/NQNWJitI17+EwzQ== "@types/estree@*": - version "0.0.47" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.47.tgz#d7a51db20f0650efec24cd04994f523d93172ed4" - integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg== + version "0.0.48" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.48.tgz#18dc8091b285df90db2f25aa7d906cfc394b7f74" + integrity sha512-LfZwXoGUDo0C3me81HXgkBg5CTQYb6xzEl+fNmbO4JdRiSKQ8A0GD1OBBvKAIsbCUgoyAty7m99GqqMQe784ew== "@types/estree@0.0.39": version "0.0.39" @@ -1728,9 +1728,9 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-reports@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz#508b13aa344fa4976234e75dddcc34925737d821" - integrity sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA== + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" + integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== dependencies: "@types/istanbul-lib-report" "*" @@ -1871,53 +1871,53 @@ "@types/yargs-parser" "*" "@typescript-eslint/parser@^4.12.0": - version "4.25.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.25.0.tgz#6b2cb6285aa3d55bfb263c650739091b0f19aceb" - integrity sha512-OZFa1SKyEJpAhDx8FcbWyX+vLwh7OEtzoo2iQaeWwxucyfbi0mT4DijbOSsTgPKzGHr6GrF2V5p/CEpUH/VBxg== - dependencies: - "@typescript-eslint/scope-manager" "4.25.0" - "@typescript-eslint/types" "4.25.0" - "@typescript-eslint/typescript-estree" "4.25.0" - debug "^4.1.1" - -"@typescript-eslint/scope-manager@4.25.0": - version "4.25.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.25.0.tgz#9d86a5bcc46ef40acd03d85ad4e908e5aab8d4ca" - integrity sha512-2NElKxMb/0rya+NJG1U71BuNnp1TBd1JgzYsldsdA83h/20Tvnf/HrwhiSlNmuq6Vqa0EzidsvkTArwoq+tH6w== - dependencies: - "@typescript-eslint/types" "4.25.0" - "@typescript-eslint/visitor-keys" "4.25.0" - -"@typescript-eslint/types@4.25.0": - version "4.25.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.25.0.tgz#0e444a5c5e3c22d7ffa5e16e0e60510b3de5af87" - integrity sha512-+CNINNvl00OkW6wEsi32wU5MhHti2J25TJsJJqgQmJu3B3dYDBcmOxcE5w9cgoM13TrdE/5ND2HoEnBohasxRQ== - -"@typescript-eslint/typescript-estree@4.25.0": - version "4.25.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.25.0.tgz#942e4e25888736bff5b360d9b0b61e013d0cfa25" - integrity sha512-1B8U07TGNAFMxZbSpF6jqiDs1cVGO0izVkf18Q/SPcUAc9LhHxzvSowXDTvkHMWUVuPpagupaW63gB6ahTXVlg== - dependencies: - "@typescript-eslint/types" "4.25.0" - "@typescript-eslint/visitor-keys" "4.25.0" - debug "^4.1.1" - globby "^11.0.1" + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.26.0.tgz#31b6b732c9454f757b020dab9b6754112aa5eeaf" + integrity sha512-b4jekVJG9FfmjUfmM4VoOItQhPlnt6MPOBUL0AQbiTmm+SSpSdhHYlwayOm4IW9KLI/4/cRKtQCmDl1oE2OlPg== + dependencies: + "@typescript-eslint/scope-manager" "4.26.0" + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/typescript-estree" "4.26.0" + debug "^4.3.1" + +"@typescript-eslint/scope-manager@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.26.0.tgz#60d1a71df162404e954b9d1c6343ff3bee496194" + integrity sha512-G6xB6mMo4xVxwMt5lEsNTz3x4qGDt0NSGmTBNBPJxNsrTXJSm21c6raeYroS2OwQsOyIXqKZv266L/Gln1BWqg== + dependencies: + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/visitor-keys" "4.26.0" + +"@typescript-eslint/types@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.26.0.tgz#7c6732c0414f0a69595f4f846ebe12616243d546" + integrity sha512-rADNgXl1kS/EKnDr3G+m7fB9yeJNnR9kF7xMiXL6mSIWpr3Wg5MhxyfEXy/IlYthsqwBqHOr22boFbf/u6O88A== + +"@typescript-eslint/typescript-estree@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.0.tgz#aea17a40e62dc31c63d5b1bbe9a75783f2ce7109" + integrity sha512-GHUgahPcm9GfBuy3TzdsizCcPjKOAauG9xkz9TR8kOdssz2Iz9jRCSQm6+aVFa23d5NcSpo1GdHGSQKe0tlcbg== + dependencies: + "@typescript-eslint/types" "4.26.0" + "@typescript-eslint/visitor-keys" "4.26.0" + debug "^4.3.1" + globby "^11.0.3" is-glob "^4.0.1" - semver "^7.3.2" - tsutils "^3.17.1" + semver "^7.3.5" + tsutils "^3.21.0" -"@typescript-eslint/visitor-keys@4.25.0": - version "4.25.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.25.0.tgz#863e7ed23da4287c5b469b13223255d0fde6aaa7" - integrity sha512-AmkqV9dDJVKP/TcZrbf6s6i1zYXt5Hl8qOLrRDTFfRNae4+LB8A4N3i+FLZPW85zIxRy39BgeWOfMS3HoH5ngg== +"@typescript-eslint/visitor-keys@4.26.0": + version "4.26.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.0.tgz#26d2583169222815be4dcd1da4fe5459bc3bcc23" + integrity sha512-cw4j8lH38V1ycGBbF+aFiLUls9Z0Bw8QschP3mkth50BbWzgFS33ISIgBzUMuQ2IdahoEv/rXstr8Zhlz4B1Zg== dependencies: - "@typescript-eslint/types" "4.25.0" + "@typescript-eslint/types" "4.26.0" eslint-visitor-keys "^2.0.0" -"@vitejs/plugin-legacy@^1.3.4": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-legacy/-/plugin-legacy-1.4.0.tgz#1cf30419d75e841d3fe31384b84179d69b5b8a3c" - integrity sha512-QcAdw/NkMBjESgyhzOoErQ7O6vAlb81Ij+gsWQqPdf0uwWCWxXgn1eHDGq03bBxl6ZBzfo7hYKYH5hgG6boZrw== +"@vitejs/plugin-legacy@^1.4.1": + version "1.4.1" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-legacy/-/plugin-legacy-1.4.1.tgz#e9f7030081df0534ebc6d6c0f9f7c90adb9e60a9" + integrity sha512-xfcBaNYpPCFzDjvhvoUYOGh87SNvvJNmrHtRdAe6lmnmSOgMYW+QNOvWwdHFEUpWaWUGtgeyYfcVN024IgBafA== dependencies: "@babel/standalone" "^7.13.12" core-js "^3.8.2" @@ -1925,10 +1925,10 @@ regenerator-runtime "^0.13.7" systemjs "^6.8.3" -"@vitejs/plugin-vue-jsx@^1.1.4": - version "1.1.4" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.4.tgz#3af194202f9ed38a7384f7a7c72f5b66ce863859" - integrity sha512-QomJwH9oF5Ixl000fLK4TjKE4gwnxpArZdcHs6ANrtgsXwxyoib8msz9tNgiP2TiBfg7VdShbaUBYMvm0gPGsA== +"@vitejs/plugin-vue-jsx@^1.1.5": + version "1.1.5" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.5.tgz#e856ef42f59048e59c85f8714dc8397e15f81738" + integrity sha512-YujG7IgbZR8zWGY/hZFxYKrAUdO+9OV4t3pqqQrvbtP/ESwvTY8vb0Zpw1VMO8zLWNGqf8jSbjBaCjN49diplw== dependencies: "@babel/core" "^7.12.10" "@babel/plugin-syntax-import-meta" "^7.10.4" @@ -1937,10 +1937,10 @@ "@vue/babel-plugin-jsx" "^1.0.3" hash-sum "^2.0.0" -"@vitejs/plugin-vue@^1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.2.tgz#b0038fc11b9099f4cd01fcbf0ee419adda417b52" - integrity sha512-5BI2WFfs/Z0pAV4S/IQf1oH3bmFYlL5ATMBHgTt1Lf7hAnfpNd5oUAAs6hZPfk3QhvyUQgtk0rJBlabwNFcBJQ== +"@vitejs/plugin-vue@^1.2.3": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-1.2.3.tgz#2e8e008b1cc3a6ad1dfbec75743c7ffd9b4872a6" + integrity sha512-LlnLpObkGKZ+b7dcpL4T24l13nPSHLjo+6Oc7MbZiKz5PMAUzADfNJ3EKfYIQ0l0969nxf2jp/9vsfnuJ7h6fw== "@vue/babel-helper-vue-transform-on@^1.0.2": version "1.0.2" @@ -1962,36 +1962,36 @@ html-tags "^3.1.0" svg-tags "^1.0.0" -"@vue/compiler-core@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.1.0-beta.5.tgz#e99427a810d1f1603d58ba5e213f83e2c54688c6" - integrity sha512-pL6XvPUvZLsGd6wHxZ+KXBEc8oOiKZKCuQ+DGBU2HWSvSP0YrIVA2y1fc/8NP7dFvBq3Eqr79oIPDIQHbmVDIw== +"@vue/compiler-core@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.1.0-beta.6.tgz#19238d596dfb70bd03c62aaefab2022a22264593" + integrity sha512-8HgII0+tgOvSLtw8DFgI0Maobk8bsPygtzfgH/erb5NLUX73YI1xx91pGtUxLIZvJsVjnF3X4viW+aJqMcFhyg== dependencies: "@babel/parser" "^7.12.0" "@babel/types" "^7.12.0" - "@vue/shared" "3.1.0-beta.5" + "@vue/shared" "3.1.0-beta.6" estree-walker "^2.0.1" source-map "^0.6.1" -"@vue/compiler-dom@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.1.0-beta.5.tgz#c0cccdda578845351c9876f28cc4d68e2e021a61" - integrity sha512-DZTx4UViFxALOEsCNNb44hClDJEV02JW46G3cdCJwakcLE0o6vppgrazF+7zIOV5qjrN00sAQeCf9EbaLrgY2Q== +"@vue/compiler-dom@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.1.0-beta.6.tgz#ccdc415d4b9078cd9553797fca216e8730d5cd5a" + integrity sha512-IKLVm8ysBXeAQlxCzaiDrcaXHPf5n56Poy/IO+RRCgOuimMwA/6bbZBocAY1GxBc4zes+GwectRCPMmr/JU0pA== dependencies: - "@vue/compiler-core" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-core" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" -"@vue/compiler-sfc@^3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.1.0-beta.5.tgz#2c3c8aa4148ca17d2b46eb6fa36363b84b99ce46" - integrity sha512-mjozHyFFbMOPRFYD1YqpHGvcncnGkPidud9Q+93E0db4crfXJ8dK7jQhc8HYXcoXaQ7WCz9oeF7AaRrAv9CmBw== +"@vue/compiler-sfc@^3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.1.0-beta.6.tgz#22375518c69c1bff8ca6a4e541cf211c7b8f5c77" + integrity sha512-kpXB28+XKGfyIQ4q2yPBefS+Cnxph/rtGMbo7xeym45B/P88VxEcuCEtSGZg5SnlX5O39jYzSju7aZY+aziv8Q== dependencies: "@babel/parser" "^7.13.9" "@babel/types" "^7.13.0" - "@vue/compiler-core" "3.1.0-beta.5" - "@vue/compiler-dom" "3.1.0-beta.5" - "@vue/compiler-ssr" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-core" "3.1.0-beta.6" + "@vue/compiler-dom" "3.1.0-beta.6" + "@vue/compiler-ssr" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" consolidate "^0.16.0" estree-walker "^2.0.1" hash-sum "^2.0.0" @@ -2003,47 +2003,47 @@ postcss-selector-parser "^6.0.4" source-map "^0.6.1" -"@vue/compiler-ssr@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.1.0-beta.5.tgz#2ec33b389c86329c5ebeb873e4228c28c26a1bf5" - integrity sha512-MLuBIj1Sd8yfL44HK5Cm36PFFiQIOHj5I32e/DftbKLaxisrHrUulBniMeQa3aQufIqUUXBfFNC09ejIiojEfg== +"@vue/compiler-ssr@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.1.0-beta.6.tgz#9ecd0f8e2decfa00e8fda9a8dce85e1f5230c687" + integrity sha512-nFwAeOdmrVEEhSnZVfA8QOGnqKePVm36xZYs6IxAO7xOLAV7KyO9D6hb+d3SHHh8TSE9frSa2Vg0CvuulPBCWQ== dependencies: - "@vue/compiler-dom" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-dom" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" "@vue/devtools-api@^6.0.0-beta.10": - version "6.0.0-beta.11" - resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.11.tgz#4fb4161ee41ba75f3f5198d4bfd80e4ffb7f2462" - integrity sha512-vpw61AkW9U8c2upjJCljHq9eh1KkD4FJ7DYbRzIETpj9WAw2VESudJZosAk4M+7npBo1Zu1jNQY03HUMVO/czQ== + version "6.0.0-beta.12" + resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.12.tgz#693ffc77bfb66b080e5c9576abb5786c85470a32" + integrity sha512-PtHmAxFmCyCElV7uTWMrXj+fefwn4lCfTtPo9fPw0SK8/7e3UaFl8IL7lnugJmNFfeKQyuTkSoGvTq1uDaRF6Q== -"@vue/reactivity@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.1.0-beta.5.tgz#c5b279a3d95ab35fa92489f2abc94f613bc6734c" - integrity sha512-lf+DVxUWZZMgOgt8QN4N91JmpxjkuDu/A3pk3jwwrb6yB4Q759IfmbD2PTKcTqgmQWaSw5CJPjRjyTe1wkWAeg== +"@vue/reactivity@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.1.0-beta.6.tgz#3636311abe7ae28014d069438890bd48484ed1d2" + integrity sha512-QpEOaK03YvZvgwWpwTLabNJ4vZVilhPQpf//ZGVZqcbY2yM6fChSkoWpicjR1uobV8aS2Rgt9OWIkU32jsIg6g== dependencies: - "@vue/shared" "3.1.0-beta.5" + "@vue/shared" "3.1.0-beta.6" -"@vue/runtime-core@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.1.0-beta.5.tgz#9da74fb070e7152a4486fb7e477ba9fdfbc8f8c6" - integrity sha512-YNKmKr0xI5KMplju7XfTPRsK1ePewaiEyKvvsLROQ3609HGkJWeKZlWAPdYb5j2i1ub8v4hM4iZXxQtZmrQGhg== +"@vue/runtime-core@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.1.0-beta.6.tgz#b5e0c1f1a2689149f4b6546569b29ef6bba02b19" + integrity sha512-WdtOShb+0NFCOCNdi8XcWzI0uaPEwwE4c9oJAVo8sCZ2SRiUrKFccisN6M2YdbvYC7z56JzD1IYK0vfaX9vciQ== dependencies: - "@vue/reactivity" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/reactivity" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" -"@vue/runtime-dom@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.1.0-beta.5.tgz#e5ebf4f13103198b0bb43b0d2eba699a5a022d1f" - integrity sha512-eLML5RNn9q/QJo802GRBvNC9W1BABJ8xyvexrruZCZAlKocTq9J0j2vS2IwAl/WbG1X8cY6yPgdQEQ/8eUy0Og== +"@vue/runtime-dom@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.1.0-beta.6.tgz#b0cfecd30f1a5f952b2da1e9cede023d0def03ab" + integrity sha512-Aqjm+1FbW3UsOoLlghOt3O8ytJ+uEY+SWRvqcDitglK/lYVneqJxPY1eN8VSn+0N7VVpYF3QmnLJEs4dBAvIRQ== dependencies: - "@vue/runtime-core" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/runtime-core" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" csstype "^2.6.8" -"@vue/shared@3.1.0-beta.5": - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.1.0-beta.5.tgz#ef971d6f1c64f89c5918529dcbee67de9de15cfa" - integrity sha512-jtQGnIERLNZWbj4Uy6uddALlzemqH5YpCQtwIT1e0DbDpEQ+OUMP6j5TCuFWARblv63lT9t/e+nOZcC1iTr6zg== +"@vue/shared@3.1.0-beta.6": + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.1.0-beta.6.tgz#c106fd343b801d63fabdc97ab741b25a6b6c47ea" + integrity sha512-Camy6ETEk42N5YXZDH+bEW7WKJOE8ORyB+wu+GR8wc5J2ucVebToZqVqGHt9q6UiEhoYCTQNcgEAiwus/DWcFA== JSONStream@^1.0.4: version "1.3.5" @@ -2107,9 +2107,9 @@ acorn@^7.1.1, acorn@^7.4.0: integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== acorn@^8.2.4: - version "8.2.4" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.2.4.tgz#caba24b08185c3b56e3168e97d15ed17f4d31fd0" - integrity sha512-Ibt84YwBDDA890eDiDCEqcbwvHlBvzzDkU2cGBBDDI1QWT12jTiXIOn2CIw5KK4i6N5Z2HUxwYjzriDyqaqqZg== + version "8.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.3.0.tgz#1193f9b96c4e8232f00b11a9edff81b2c8b98b88" + integrity sha512-tqPKHZ5CaBJw0Xmy0ZZvLs1qTV+BNFSyvn77ASXkpBNfIRk8ev26fKrD9iLGwGA9zedPao52GSHzq8lyZG0NUw== add-stream@^1.0.0: version "1.0.0" @@ -2609,7 +2609,7 @@ browserify-sign@^4.0.0: readable-stream "^3.6.0" safe-buffer "^5.2.0" -browserslist@^4.14.5, browserslist@^4.16.6: +browserslist@^4.16.6: version "4.16.6" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.6.tgz#d7901277a5a88e554ed305b183ec9b0c08f66fa2" integrity sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ== @@ -2763,9 +2763,9 @@ camelcase@^6.0.0: integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== caniuse-lite@^1.0.30001219, caniuse-lite@^1.0.30001230: - version "1.0.30001230" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz#8135c57459854b2240b57a4a6786044bdc5a9f71" - integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ== + version "1.0.30001233" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001233.tgz#b7cb4a377a4b12ed240d2fa5c792951a06e5f2c4" + integrity sha512-BmkbxLfStqiPA7IEzQpIk0UFZFf3A4E6fzjPJ6OR+bFC2L8ES9J8zGA/asoi47p8XDVkev+WJo2I2Nc8c/34Yg== capture-exit@^2.0.0: version "2.0.0" @@ -3183,9 +3183,9 @@ copy-descriptor@^0.1.0: integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= core-js@^3.8.2: - version "3.13.0" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.13.0.tgz#58ca436bf01d6903aee3d364089868d0d89fe58d" - integrity sha512-iWDbiyha1M5vFwPFmQnvRv+tJzGbFAm6XimJUT0NgHYW3xZEs1SkCAcasWSVFxpI2Xb/V1DDJckq3v90+bQnog== + version "3.13.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.13.1.tgz#30303fabd53638892062d8b4e802cac7599e9fb7" + integrity sha512-JqveUc4igkqwStL2RTRn/EPFGBOfEZHxJl/8ej1mXJR75V3go2mFF4bmUYkEIT1rveHKnkUlcJX/c+f1TyIovQ== core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" @@ -3564,9 +3564,9 @@ ee-first@1.1.1: integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= electron-to-chromium@^1.3.723: - version "1.3.741" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.741.tgz#dc1024b19b31e27fb2c8c0a1f120cb05fc6ca695" - integrity sha512-4i3T0cwnHo1O4Mnp9JniEco8bZiXoqbm3PhW5hv7uu8YLg35iajYrRnNyKFaN8/8SSTskU2hYqVTeYVPceSpUA== + version "1.3.743" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.743.tgz#fcec24d6d647cb84fd796b42caa1b4039a180894" + integrity sha512-K2wXfo9iZQzNJNx67+Pld0DRF+9bYinj62gXCdgPhcu1vidwVuLPHQPPFnCdO55njWigXXpfBiT90jGUPbw8Zg== elliptic@^6.5.3: version "6.5.4" @@ -3682,10 +3682,10 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" -esbuild@^0.11.23: - version "0.11.23" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8" - integrity sha512-iaiZZ9vUF5wJV8ob1tl+5aJTrwDczlvGP0JoMmnpC2B0ppiMCu8n8gmy5ZTGl5bcG081XBVn+U+jP+mPFm5T5Q== +esbuild@^0.12.5: + version "0.12.5" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.5.tgz#36076a6bc1966ba2741981d30512e95e8aaff495" + integrity sha512-vcuP53pA5XiwUU4FnlXM+2PnVjTfHGthM7uP1gtp+9yfheGvFFbq/KyuESThmtoHPUrfZH5JpxGVJIFDVD1Egw== escalade@^3.1.1: version "3.1.1" @@ -3922,9 +3922,9 @@ execa@^4.0.0, execa@^4.1.0: strip-final-newline "^2.0.0" execa@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.0.0.tgz#4029b0007998a841fbd1032e5f4de86a3c1e3376" - integrity sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ== + version "5.0.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.0.1.tgz#aee63b871c9b2cb56bc9addcd3c70a785c6bf0d1" + integrity sha512-4hFTjFbFzQa3aCLobpbPJR/U+VoL1wdV5ozOWjeet0AWDeYr9UFGM1eUFWHX+VtOWFq4p0xXUXfW1YxUaP4fpw== dependencies: cross-spawn "^7.0.3" get-stream "^6.0.0" @@ -4223,10 +4223,10 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" -forwarded@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" - integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== fraction.js@^4.1.1: version "4.1.1" @@ -4522,7 +4522,7 @@ globby@10.0.1: merge2 "^1.2.3" slash "^3.0.0" -globby@^11.0.1, globby@^11.0.2: +globby@^11.0.2, globby@^11.0.3: version "11.0.3" resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb" integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg== @@ -6447,17 +6447,17 @@ miller-rabin@^4.0.0: bn.js "^4.0.0" brorand "^1.0.1" -mime-db@1.47.0: - version "1.47.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" - integrity sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw== +mime-db@1.48.0: + version "1.48.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.48.0.tgz#e35b31045dd7eada3aaad537ed88a33afbef2d1d" + integrity sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ== mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.24: - version "2.1.30" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" - integrity sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg== + version "2.1.31" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.31.tgz#a00d76b74317c61f9c2db2218b8e9f8e9c5c9e6b" + integrity sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg== dependencies: - mime-db "1.47.0" + mime-db "1.48.0" mime@1.6.0: version "1.6.0" @@ -6480,9 +6480,9 @@ min-indent@^1.0.0: integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== mini-types@^0.1.4: - version "0.1.6" - resolved "https://registry.yarnpkg.com/mini-types/-/mini-types-0.1.6.tgz#92c85e4cb391a68f7ae99485d3ec81eef827770c" - integrity sha512-dI6jX2QulRoQfG93a6cusfZG+Ax3+yauGF9veUU2Cpw4mkN0MVpcrkPEJJCv2jH5cLGRPYAJO3whGSZzZEQZAQ== + version "0.1.7" + resolved "https://registry.yarnpkg.com/mini-types/-/mini-types-0.1.7.tgz#36d5ea2cf18653b16f5d1a02c8d9b329c727d20a" + integrity sha512-aSoVvrIr/O9tbzFjSCeKr/T53Hu+un+FXkfWPfGcb/q8eAHXX1CDgSHv8l0GtFTlfHzznmn4hbRGB3UTWmZ3fA== minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" @@ -7608,11 +7608,11 @@ protocols@^1.1.0, protocols@^1.4.0: integrity sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg== proxy-addr@~2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.6.tgz#fdc2336505447d3f2f2c638ed272caf614bbb2bf" - integrity sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw== + version "2.0.7" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== dependencies: - forwarded "~0.1.2" + forwarded "0.2.0" ipaddr.js "1.9.1" prr@~0.0.0: @@ -8165,9 +8165,9 @@ rollup-pluginutils@^2.3.1, rollup-pluginutils@^2.8.2: estree-walker "^0.6.1" rollup@^2.35.1, rollup@^2.38.5: - version "2.50.3" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.50.3.tgz#71021dedf2e3423bee28e795860783feea2be63e" - integrity sha512-58KiHnaCzZn6F5yRMjHe7WTZuFj6r4iJVJz5UwvKD6f/xfTy2IdtbR2AVHN6cyfK1tBy//hJ66ebXy6Y1h7HlQ== + version "2.50.5" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.50.5.tgz#bbee9d6411af3f5fa5c6e7e2c69f7a65b753e568" + integrity sha512-Ztz4NurU2LbS3Jn5rlhnYv35z6pkjBUmYKr94fOBIKINKRO6kug9NTFHArT7jqwMP2kqEZ39jJuEtkk91NBltQ== optionalDependencies: fsevents "~2.3.1" @@ -9070,9 +9070,9 @@ trim-newlines@^1.0.0: integrity sha1-WIeWa7WCpFA6QetST301ARgVphM= trim-newlines@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.0.tgz#79726304a6a898aa8373427298d54c2ee8b1cb30" - integrity sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA== + version "3.0.1" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" + integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== trim-off-newlines@^1.0.0: version "1.0.1" @@ -9105,7 +9105,7 @@ tslib@^1.8.1, tslib@^1.9.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tsutils@^3.17.1: +tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== @@ -9382,12 +9382,12 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -vite@^2.3.4: - version "2.3.4" - resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.4.tgz#370118e0334725b898ff754ea43d5db4c5e120e3" - integrity sha512-7orxrF65+Q5n/sMCnO91S8OS0gkPJ7g+y3bLlc7CPCXVswK8to1T8YycCk9SZh+AcIc0TuN6YajWTBFS5atMNA== +vite@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.6.tgz#1f7cfde88a51a802d69000c7bac85d481c2e871c" + integrity sha512-fsEpNKDHgh3Sn66JH06ZnUBnIgUVUtw6ucDhlOj1CEqxIkymU25yv1/kWDPlIjyYHnalr0cN6V+zzUJ+fmWHYw== dependencies: - esbuild "^0.11.23" + esbuild "^0.12.5" postcss "^8.2.10" resolve "^1.19.0" rollup "^2.38.5" @@ -9407,13 +9407,13 @@ vue-router@^4.0.8: "@vue/devtools-api" "^6.0.0-beta.10" vue@^3.1.0-beta.5: - version "3.1.0-beta.5" - resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.0-beta.5.tgz#6fe228f0b4e20203b4755cb18a958af79a8ac63f" - integrity sha512-g2tHxOLkXq6OUk5hCEJDgwvmeG00v1301SBsyn9ATCyhvHm8NBl4IOWLoUAmucHXexTVwFokrIXZVDTZlLou0g== + version "3.1.0-beta.6" + resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.0-beta.6.tgz#bd1307916c58a07712ea6281078e36e1cb4fd1bf" + integrity sha512-p5r+T0Dcrzd77K1cp1v/T3R+uMSrvr8B3SDSa6KZOqkEOwZl48IpnX0nMegnIHSX8/WXi3x6nqa+CE/aVP2EfA== dependencies: - "@vue/compiler-dom" "3.1.0-beta.5" - "@vue/runtime-dom" "3.1.0-beta.5" - "@vue/shared" "3.1.0-beta.5" + "@vue/compiler-dom" "3.1.0-beta.6" + "@vue/runtime-dom" "3.1.0-beta.6" + "@vue/shared" "3.1.0-beta.6" w3c-hr-time@^1.0.2: version "1.0.2" -- GitLab