From cb627fc821570014489b1b6791f02a0ef2ba0eda Mon Sep 17 00:00:00 2001 From: sfxcode Date: Sun, 3 Aug 2025 09:54:47 +0200 Subject: [PATCH 1/8] chore: update @antfu/eslint-config, vue-tsc, and other dependencies in package.json and pnpm-lock.yaml --- package.json | 4 +- pnpm-lock.yaml | 153 ++++++++++++++++++++++++------------------------- 2 files changed, 77 insertions(+), 80 deletions(-) diff --git a/package.json b/package.json index 7be2c62..55ea40a 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "vue-i18n": "^11.1.11" }, "devDependencies": { - "@antfu/eslint-config": "^5.0.0", + "@antfu/eslint-config": "^5.1.0", "@formkit/core": "^1.6.9", "@formkit/drag-and-drop": "^0.5.3", "@primeuix/themes": "^1.2.3", @@ -140,6 +140,6 @@ "vue": "^3.5.18", "vue-demi": "^0.14.10", "vue-router": "^4.5.1", - "vue-tsc": "^3.0.4" + "vue-tsc": "^3.0.5" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e78be20..9351dd2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,8 +34,8 @@ importers: version: 11.1.11(vue@3.5.18(typescript@5.9.2)) devDependencies: '@antfu/eslint-config': - specifier: ^5.0.0 - version: 5.0.0(@vue/compiler-sfc@3.5.18)(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2)(vitest@3.2.4) + specifier: ^5.1.0 + version: 5.1.0(@vue/compiler-sfc@3.5.18)(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2)(vitest@3.2.4) '@formkit/core': specifier: ^1.6.9 version: 1.6.9 @@ -110,7 +110,7 @@ importers: version: 0.18.1(vue@3.5.18(typescript@5.9.2)) mkdist: specifier: ^2.3.0 - version: 2.3.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.4(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)) + version: 2.3.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.5(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)) sass: specifier: ^1.89.2 version: 1.89.2 @@ -122,7 +122,7 @@ importers: version: 5.9.2 unbuild: specifier: ^3.6.0 - version: 3.6.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.4(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)) + version: 3.6.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.5(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)) unocss: specifier: 66.3.3 version: 66.3.3(postcss@8.5.6)(vite@7.0.6(@types/node@24.1.0)(jiti@2.5.1)(sass@1.89.2)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.18(typescript@5.9.2)) @@ -163,8 +163,8 @@ importers: specifier: ^4.5.1 version: 4.5.1(vue@3.5.18(typescript@5.9.2)) vue-tsc: - specifier: ^3.0.4 - version: 3.0.4(typescript@5.9.2) + specifier: ^3.0.5 + version: 3.0.5(typescript@5.9.2) packages: @@ -248,8 +248,8 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@antfu/eslint-config@5.0.0': - resolution: {integrity: sha512-uAMv8PiW9BOAGmIyTDtWXGnNfv6PFV4DmpqmlUpST5k4bue38VRdIfnM4jvgPuny1xnjYX3flN3kB9++6LknMw==} + '@antfu/eslint-config@5.1.0': + resolution: {integrity: sha512-JirdCHnt2frnUf7kmXBxvFfdca1UnC19AP89/nKgZIV71PXxhH6pX/jqF13OKpbOo4hxJQfs6yuS1Kl5LoW4Yw==} hasBin: true peerDependencies: '@eslint-react/eslint-plugin': ^1.38.4 @@ -260,6 +260,7 @@ packages: eslint: ^9.10.0 eslint-plugin-astro: ^1.2.0 eslint-plugin-format: '>=0.1.0' + eslint-plugin-jsx-a11y: '>=6.10.2' eslint-plugin-react-hooks: ^5.2.0 eslint-plugin-react-refresh: ^0.4.19 eslint-plugin-solid: ^0.14.3 @@ -283,6 +284,8 @@ packages: optional: true eslint-plugin-format: optional: true + eslint-plugin-jsx-a11y: + optional: true eslint-plugin-react-hooks: optional: true eslint-plugin-react-refresh: @@ -883,6 +886,14 @@ packages: resolution: {integrity: sha512-RIBFTIqxZSsxUqlcyoR7iiC632bq7kkOwYvZlvcVObHfrF4NhuKc4FKvu8iPCrEO+e3XsY7/UVpfgzg+M7ETzA==} engines: {node: '>= 16'} + '@isaacs/balanced-match@4.0.1': + resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==} + engines: {node: 20 || >=22} + + '@isaacs/brace-expansion@5.0.0': + resolution: {integrity: sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==} + engines: {node: 20 || >=22} + '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} @@ -944,8 +955,8 @@ packages: '@microsoft/api-extractor-model@7.30.7': resolution: {integrity: sha512-TBbmSI2/BHpfR9YhQA7nH0nqVmGgJ0xH0Ex4D99/qBDAUpnhA2oikGmdXanbw9AWWY/ExBYIpkmY8dBHdla3YQ==} - '@microsoft/api-extractor@7.52.9': - resolution: {integrity: sha512-313nyhc6DSSMVKD43jZK6Yp5XbliGw5vjN7QOw1FHzR1V6DQ67k4dzkd3BSxMtWcm+cEs1Ux8rmDqots6EABFA==} + '@microsoft/api-extractor@7.52.10': + resolution: {integrity: sha512-LhKytJM5ZJkbHQVfW/3o747rZUNs/MGg6j/wt/9qwwqEOfvUDTYXXxIBuMgrRXhJ528p41iyz4zjBVHZU74Odg==} hasBin: true '@microsoft/tsdoc-config@0.17.1': @@ -1622,21 +1633,12 @@ packages: '@vitest/utils@3.2.4': resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} - '@volar/language-core@2.4.20': - resolution: {integrity: sha512-dRDF1G33xaAIDqR6+mXUIjXYdu9vzSxlMGfMEwBxQsfY/JMUEXSpLTR057oTKlUQ2nIvCmP9k94A8h8z2VrNSA==} - '@volar/language-core@2.4.22': resolution: {integrity: sha512-gp4M7Di5KgNyIyO903wTClYBavRt6UyFNpc5LWfyZr1lBsTUY+QrVZfmbNF2aCyfklBOVk9YC4p+zkwoyT7ECg==} - '@volar/source-map@2.4.20': - resolution: {integrity: sha512-mVjmFQH8mC+nUaVwmbxoYUy8cww+abaO8dWzqPUjilsavjxH0jCJ3Mp8HFuHsdewZs2c+SP+EO7hCd8Z92whJg==} - '@volar/source-map@2.4.22': resolution: {integrity: sha512-L2nVr/1vei0xKRgO2tYVXtJYd09HTRjaZi418e85Q+QdbbqA8h7bBjfNyPPSsjnrOO4l4kaAo78c8SQUAdHvgA==} - '@volar/typescript@2.4.20': - resolution: {integrity: sha512-Oc4DczPwQyXcVbd+5RsNEqX6ia0+w3p+klwdZQ6ZKhFjWoBP9PCPQYlKYRi/tDemWphW93P/Vv13vcE9I9D2GQ==} - '@volar/typescript@2.4.22': resolution: {integrity: sha512-6ZczlJW1/GWTrNnkmZxJp4qyBt/SGVlcTuCWpI5zLrdPdCZsj66Aff9ZsfFaT3TyjG8zVYgBMYPuCm/eRkpcpQ==} @@ -1675,8 +1677,8 @@ packages: typescript: optional: true - '@vue/language-core@3.0.4': - resolution: {integrity: sha512-BvueED4LfBCSNH66eeUQk37MQCb7hjdezzGgxniM0LbriW53AJIyLorgshAtStmjfsAuOCcTl/c1b+nz/ye8xQ==} + '@vue/language-core@3.0.5': + resolution: {integrity: sha512-gCEjn9Ik7I/seHVNIEipOm8W+f3/kg60e8s1IgIkMYma2wu9ZGUTMv3mSL2bX+Md2L8fslceJ4SU8j1fgSRoiw==} peerDependencies: typescript: '*' peerDependenciesMeta: @@ -1835,8 +1837,8 @@ packages: alien-signals@0.4.14: resolution: {integrity: sha512-itUAVzhczTmP2U5yX67xVpsbbOiquusbWVyA9N+sy6+r6YVbFkahXvNCeEPWEOMhwDYwbVbGHFkVL03N9I5g+Q==} - alien-signals@2.0.5: - resolution: {integrity: sha512-PdJB6+06nUNAClInE3Dweq7/2xVAYM64vvvS1IHVHSJmgeOtEdrAGyp7Z2oJtYm0B342/Exd2NT0uMJaThcjLQ==} + alien-signals@2.0.6: + resolution: {integrity: sha512-P3TxJSe31bUHBiblg59oU1PpaWPtmxF9GhJ/cB7OkgJ0qN/ifFSKUI25/v8ZhsT+lIG6ac8DpTOplXxORX6F3Q==} ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} @@ -1880,8 +1882,8 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - ast-v8-to-istanbul@0.3.3: - resolution: {integrity: sha512-MuXMrSLVVoA6sYN/6Hke18vMzrT4TZNbZIj/hvh0fnYFpO+/kFXcLIaiPwXXWaQUPg4yJD8fj+lfJ7/1EBconw==} + ast-v8-to-istanbul@0.3.4: + resolution: {integrity: sha512-cxrAnZNLBnQwBPByK4CeDaw5sWZtMilJE/Q3iDA0aamgaIVNDF9T6K2/8DfYDZEejZ2jNnDrG9m8MY72HFd0KA==} autoprefixer@10.4.21: resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==} @@ -2369,8 +2371,8 @@ packages: typescript: optional: true - eslint-plugin-jsdoc@51.4.1: - resolution: {integrity: sha512-y4CA9OkachG8v5nAtrwvcvjIbdcKgSyS6U//IfQr4FZFFyeBFwZFf/tfSsMr46mWDJgidZjBTqoCRlXywfFBMg==} + eslint-plugin-jsdoc@52.0.2: + resolution: {integrity: sha512-fYrnc7OpRifxxKjH78Y9/D/EouQDYD3G++bpR1Y+A+fy+CMzKZAdGIiHTIxCd2U10hb2y1NxN5TJt9aupq1vmw==} engines: {node: '>=20.11.0'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 @@ -2402,8 +2404,8 @@ packages: peerDependencies: eslint: ^9.0.0 - eslint-plugin-regexp@2.9.0: - resolution: {integrity: sha512-9WqJMnOq8VlE/cK+YAo9C9YHhkOtcEtEk9d12a+H7OSZFwlpI6stiHmYPGa2VE0QhTzodJyhlyprUaXDZLgHBw==} + eslint-plugin-regexp@2.9.1: + resolution: {integrity: sha512-JwK6glV/aoYDxvXcrvMQbw/pByBewZwqXVSBzzjot3GxSbmjDYuWU4LWiLdBO8JKi4o8A1+rygO6JWRBg4qAQQ==} engines: {node: ^18 || >=20} peerDependencies: eslint: '>=8.44.0' @@ -3162,8 +3164,9 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - minimatch@3.0.8: - resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} + minimatch@10.0.3: + resolution: {integrity: sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==} + engines: {node: 20 || >=22} minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -3245,8 +3248,8 @@ packages: node-addon-api@7.1.1: resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} - node-fetch-native@1.6.6: - resolution: {integrity: sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==} + node-fetch-native@1.6.7: + resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==} node-releases@2.0.19: resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} @@ -3850,8 +3853,8 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - svelte@5.37.1: - resolution: {integrity: sha512-h8arWpQZ+3z8eahyBT5KkiBOUsG6xvI5Ykg0ozRr9xEdImgSMUPUlOFWRNkUsT7Ti0DSUCTEbPoped0aoxFyWA==} + svelte@5.37.3: + resolution: {integrity: sha512-7t/ejshehHd+95z3Z7ebS7wsqHDQxi/8nBTuTRwpMgNegfRBfuitCSKTUDKIBOExqfT2+DhQ2VLG8Xn+cBXoaQ==} engines: {node: '>=18'} svgo@4.0.0: @@ -4294,8 +4297,8 @@ packages: peerDependencies: vue: ^3.2.0 - vue-tsc@3.0.4: - resolution: {integrity: sha512-kZmSEjGtROApVBuaIcoprrXZsFNGon5ggkTJokmhQ/H1hMzCFRPQ0Ed8IHYFsmYJYvHBcdmEQVGVcRuxzPzNbw==} + vue-tsc@3.0.5: + resolution: {integrity: sha512-PsTFN9lo1HJCrZw9NoqjYcAbYDXY0cOKyuW2E7naX5jcaVyWpqEsZOHN9Dws5890E8e5SDAD4L4Zam3dxG3/Cw==} hasBin: true peerDependencies: typescript: '>=5.0.0' @@ -4531,7 +4534,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.12 '@jridgewell/trace-mapping': 0.3.29 - '@antfu/eslint-config@5.0.0(@vue/compiler-sfc@3.5.18)(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2)(vitest@3.2.4)': + '@antfu/eslint-config@5.1.0(@vue/compiler-sfc@3.5.18)(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2)(vitest@3.2.4)': dependencies: '@antfu/install-pkg': 1.1.0 '@clack/prompts': 0.11.0 @@ -4550,13 +4553,13 @@ snapshots: eslint-plugin-antfu: 3.1.1(eslint@9.32.0(jiti@2.5.1)) eslint-plugin-command: 3.3.1(eslint@9.32.0(jiti@2.5.1)) eslint-plugin-import-lite: 0.3.0(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2) - eslint-plugin-jsdoc: 51.4.1(eslint@9.32.0(jiti@2.5.1)) + eslint-plugin-jsdoc: 52.0.2(eslint@9.32.0(jiti@2.5.1)) eslint-plugin-jsonc: 2.20.1(eslint@9.32.0(jiti@2.5.1)) eslint-plugin-n: 17.21.3(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2) eslint-plugin-no-only-tests: 3.3.0 eslint-plugin-perfectionist: 4.15.0(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2) eslint-plugin-pnpm: 1.1.0(eslint@9.32.0(jiti@2.5.1)) - eslint-plugin-regexp: 2.9.0(eslint@9.32.0(jiti@2.5.1)) + eslint-plugin-regexp: 2.9.1(eslint@9.32.0(jiti@2.5.1)) eslint-plugin-toml: 0.12.0(eslint@9.32.0(jiti@2.5.1)) eslint-plugin-unicorn: 60.0.0(eslint@9.32.0(jiti@2.5.1)) eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.38.0(@typescript-eslint/parser@8.38.0(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2))(eslint@9.32.0(jiti@2.5.1))(typescript@5.9.2))(eslint@9.32.0(jiti@2.5.1)) @@ -5082,6 +5085,12 @@ snapshots: '@intlify/shared@11.1.11': {} + '@isaacs/balanced-match@4.0.1': {} + + '@isaacs/brace-expansion@5.0.0': + dependencies: + '@isaacs/balanced-match': 4.0.1 + '@isaacs/cliui@8.0.2': dependencies: string-width: 5.1.2 @@ -5150,7 +5159,7 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@microsoft/api-extractor@7.52.9(@types/node@24.1.0)': + '@microsoft/api-extractor@7.52.10(@types/node@24.1.0)': dependencies: '@microsoft/api-extractor-model': 7.30.7(@types/node@24.1.0) '@microsoft/tsdoc': 0.15.1 @@ -5160,7 +5169,7 @@ snapshots: '@rushstack/terminal': 0.15.4(@types/node@24.1.0) '@rushstack/ts-command-line': 5.0.2(@types/node@24.1.0) lodash: 4.17.21 - minimatch: 3.0.8 + minimatch: 10.0.3 resolve: 1.22.10 semver: 7.5.4 source-map: 0.6.1 @@ -5858,7 +5867,7 @@ snapshots: dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 - ast-v8-to-istanbul: 0.3.3 + ast-v8-to-istanbul: 0.3.4 debug: 4.4.1 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 @@ -5936,24 +5945,12 @@ snapshots: loupe: 3.2.0 tinyrainbow: 2.0.0 - '@volar/language-core@2.4.20': - dependencies: - '@volar/source-map': 2.4.20 - '@volar/language-core@2.4.22': dependencies: '@volar/source-map': 2.4.22 - '@volar/source-map@2.4.20': {} - '@volar/source-map@2.4.22': {} - '@volar/typescript@2.4.20': - dependencies: - '@volar/language-core': 2.4.20 - path-browserify: 1.0.1 - vscode-uri: 3.1.0 - '@volar/typescript@2.4.22': dependencies: '@volar/language-core': 2.4.22 @@ -6028,13 +6025,13 @@ snapshots: optionalDependencies: typescript: 5.9.2 - '@vue/language-core@3.0.4(typescript@5.9.2)': + '@vue/language-core@3.0.5(typescript@5.9.2)': dependencies: - '@volar/language-core': 2.4.20 + '@volar/language-core': 2.4.22 '@vue/compiler-dom': 3.5.18 '@vue/compiler-vue2': 2.7.16 '@vue/shared': 3.5.18 - alien-signals: 2.0.5 + alien-signals: 2.0.6 muggle-string: 0.4.1 path-browserify: 1.0.1 picomatch: 4.0.3 @@ -6190,7 +6187,7 @@ snapshots: alien-signals@0.4.14: {} - alien-signals@2.0.5: {} + alien-signals@2.0.6: {} ansi-regex@5.0.1: {} @@ -6221,7 +6218,7 @@ snapshots: assertion-error@2.0.1: {} - ast-v8-to-istanbul@0.3.3: + ast-v8-to-istanbul@0.3.4: dependencies: '@jridgewell/trace-mapping': 0.3.29 estree-walker: 3.0.3 @@ -6334,7 +6331,7 @@ snapshots: consola: 3.4.2 convert-gitmoji: 0.1.5 mri: 1.2.0 - node-fetch-native: 1.6.6 + node-fetch-native: 1.6.7 ofetch: 1.4.1 open: 10.2.0 pathe: 2.0.3 @@ -6751,7 +6748,7 @@ snapshots: optionalDependencies: typescript: 5.9.2 - eslint-plugin-jsdoc@51.4.1(eslint@9.32.0(jiti@2.5.1)): + eslint-plugin-jsdoc@52.0.2(eslint@9.32.0(jiti@2.5.1)): dependencies: '@es-joy/jsdoccomment': 0.52.0 are-docs-informative: 0.0.2 @@ -6818,7 +6815,7 @@ snapshots: tinyglobby: 0.2.14 yaml-eslint-parser: 1.3.0 - eslint-plugin-regexp@2.9.0(eslint@9.32.0(jiti@2.5.1)): + eslint-plugin-regexp@2.9.1(eslint@9.32.0(jiti@2.5.1)): dependencies: '@eslint-community/eslint-utils': 4.7.0(eslint@9.32.0(jiti@2.5.1)) '@eslint-community/regexpp': 4.12.1 @@ -7092,7 +7089,7 @@ snapshots: citty: 0.1.6 consola: 3.4.2 defu: 6.1.4 - node-fetch-native: 1.6.6 + node-fetch-native: 1.6.7 nypm: 0.6.1 pathe: 2.0.3 @@ -7809,9 +7806,9 @@ snapshots: min-indent@1.0.1: {} - minimatch@3.0.8: + minimatch@10.0.3: dependencies: - brace-expansion: 1.1.12 + '@isaacs/brace-expansion': 5.0.0 minimatch@3.1.2: dependencies: @@ -7831,7 +7828,7 @@ snapshots: mitt@3.0.1: {} - mkdist@2.3.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.4(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)): + mkdist@2.3.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.5(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)): dependencies: autoprefixer: 10.4.21(postcss@8.5.6) citty: 0.1.6 @@ -7850,7 +7847,7 @@ snapshots: sass: 1.89.2 typescript: 5.9.2 vue: 3.5.18(typescript@5.9.2) - vue-tsc: 3.0.4(typescript@5.9.2) + vue-tsc: 3.0.5(typescript@5.9.2) mlly@1.7.4: dependencies: @@ -7883,7 +7880,7 @@ snapshots: node-addon-api@7.1.1: optional: true - node-fetch-native@1.6.6: {} + node-fetch-native@1.6.7: {} node-releases@2.0.19: {} @@ -7912,7 +7909,7 @@ snapshots: ofetch@1.4.1: dependencies: destr: 2.0.5 - node-fetch-native: 1.6.6 + node-fetch-native: 1.6.7 ufo: 1.6.1 ohash@2.0.11: {} @@ -8472,7 +8469,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte@5.37.1: + svelte@5.37.3: dependencies: '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.5.4 @@ -8586,7 +8583,7 @@ snapshots: ufo@1.6.1: {} - unbuild@3.6.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.4(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)): + unbuild@3.6.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.5(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)): dependencies: '@rollup/plugin-alias': 5.1.1(rollup@4.46.2) '@rollup/plugin-commonjs': 28.0.6(rollup@4.46.2) @@ -8602,7 +8599,7 @@ snapshots: hookable: 5.5.3 jiti: 2.5.1 magic-string: 0.30.17 - mkdist: 2.3.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.4(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)) + mkdist: 2.3.0(sass@1.89.2)(typescript@5.9.2)(vue-tsc@3.0.5(typescript@5.9.2))(vue@3.5.18(typescript@5.9.2)) mlly: 1.7.4 pathe: 2.0.3 pkg-types: 2.2.0 @@ -8796,7 +8793,7 @@ snapshots: lodash-es: 4.17.21 memoize-one: 6.0.0 natural-compare-lite: 1.4.0 - svelte: 5.37.1 + svelte: 5.37.3 vanilla-picker: 2.12.3 vanilla-picker@2.12.3: @@ -8836,7 +8833,7 @@ snapshots: vite-plugin-dts@4.5.4(@types/node@24.1.0)(rollup@4.46.2)(typescript@5.9.2)(vite@7.0.6(@types/node@24.1.0)(jiti@2.5.1)(sass@1.89.2)(terser@5.43.1)(yaml@2.8.0)): dependencies: - '@microsoft/api-extractor': 7.52.9(@types/node@24.1.0) + '@microsoft/api-extractor': 7.52.10(@types/node@24.1.0) '@rollup/pluginutils': 5.2.0(rollup@4.46.2) '@volar/typescript': 2.4.22 '@vue/language-core': 2.2.0(typescript@5.9.2) @@ -9057,10 +9054,10 @@ snapshots: '@vue/devtools-api': 6.6.4 vue: 3.5.18(typescript@5.9.2) - vue-tsc@3.0.4(typescript@5.9.2): + vue-tsc@3.0.5(typescript@5.9.2): dependencies: - '@volar/typescript': 2.4.20 - '@vue/language-core': 3.0.4(typescript@5.9.2) + '@volar/typescript': 2.4.22 + '@vue/language-core': 3.0.5(typescript@5.9.2) typescript: 5.9.2 vue@3.5.18(typescript@5.9.2): From a09d3de53f7176a71a4e5e5ad5c42d4b7774073e Mon Sep 17 00:00:00 2001 From: sfxcode Date: Sun, 3 Aug 2025 11:58:30 +0200 Subject: [PATCH 2/8] feat(PrimeOutputList): add converter functions for output list and update props to support conversion --- dev/pages/outputs/OutputList.vue | 34 ++++++++++++++++++++++++++++++ src/components/PrimeOutputList.vue | 22 ++++++++++++++----- src/definitions/output.ts | 2 +- 3 files changed, 52 insertions(+), 6 deletions(-) diff --git a/dev/pages/outputs/OutputList.vue b/dev/pages/outputs/OutputList.vue index be838b6..6b45f87 100644 --- a/dev/pages/outputs/OutputList.vue +++ b/dev/pages/outputs/OutputList.vue @@ -5,6 +5,18 @@ const primeAttributes = '' const customAttributes = 'iconPrefix, prefix, suffix, iconSuffix' const { addElement } = useFormKitSchema() +function convertValues(value: string[]): string[] { + return value.map(item => item.toUpperCase()) +} + +function convertValuesCharCount(value: string[]): string[] { + return value.map(item => `${item} (${item.length})`) +} + +function convertValuesSortedReverse(value: string[]): string[] { + return value.sort((a, b) => a.localeCompare(b)).reverse() +} + const schema = [ addElement('h3', ['Default (listStyle: span)']), @@ -27,6 +39,28 @@ const schema iconPrefix: 'pi pi-list', divider: ' - ', }, + addElement('h3', ['Converter']), + + { + $formkit: 'primeOutputList', + name: 'list1', + label: 'Converter Function', + convertValue: convertValues, + divider: ' - ', + }, + { + $formkit: 'primeOutputList', + name: 'list2', + label: 'Converter Function - Char Count', + convertValue: convertValuesCharCount, + }, + { + $formkit: 'primeOutputList', + name: 'list2', + label: 'Converter Function - Sorted Reverse', + convertValue: convertValuesSortedReverse, + }, + addElement('h3', ['Chips']), { $formkit: 'primeOutputList', name: 'list2', diff --git a/src/components/PrimeOutputList.vue b/src/components/PrimeOutputList.vue index 2a99744..bd624f0 100644 --- a/src/components/PrimeOutputList.vue +++ b/src/components/PrimeOutputList.vue @@ -8,9 +8,13 @@ import FormKitIcon from './FormKitIcon.vue' import FormKitPrefix from './FormKitPrefix.vue' import FormKitSuffix from './FormKitSuffix.vue' +export interface PrimeOutputListProps { + convertValue?: (array: []) => [] +} + const props = defineProps({ context: { - type: Object as PropType & FormKitIconProps, + type: Object as PropType & FormKitIconProps & PrimeOutputListProps, required: true, }, }) @@ -20,6 +24,14 @@ const listStyle = computed(() => { }) const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context) + +const getListValues = computed(() => { + const values = Array.isArray(props.context?._value) ? props.context._value : [] + if (typeof props.context?.convertValue === 'function') { + return [props.context.convertValue([...values])] + } + return values +})