diff --git a/MIGRATING.md b/MIGRATING.md index 95924b0b6..fba85d38e 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -2,6 +2,11 @@ This doc contains information that will help you migrate your code from an older version of SMUI to a newer one. Things that you will need to change in your existing code will be written here. It would also be helpful to check the MDC changelog if the upstream MDC versions has changed between SMUI versions. +# SMUI 7 -> SMUI 8 + +- Svelte 5 is required! Svelte 4 will not work. +- Event listeners no longer need to use the CustomEvent type. They can use the correct type, like MouseEvent and KeyboardEvent. + # SMUI 6 -> SMUI 7 SMUI 7 migrated to upstream MDC 14.0 from 13.0: diff --git a/README.md b/README.md index 8e428f2ba..75f7cf406 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ SMUI v7 works with Svelte 4 only, due to the way it handles events. SMUI v8 is i Upgrading from an old version? Be sure to read the [migration doc](MIGRATING.md). +Upgrading from v7? You need Svelte 5. Event listeners no longer to use the CustomEvent type. Check out the [upgrade instructions](MIGRATING.md#smui-7---smui-8). + Upgrading from v6? You need Svelte 4. No more elemental components; you can now use the "tag" prop to change the element. No more "ComponentDev" types; components can now be used as their type. Check out the [upgrade instructions](MIGRATING.md#smui-6---smui-7). Upgrading from v5? If you're still using the advanced styling method, it's really time to switch to the easy styling method. '/styled' endpoints are no longer provided. Check out the [upgrade instructions](MIGRATING.md#smui-5---smui-6). diff --git a/package-lock.json b/package-lock.json index a97ed1fb0..01ea6407b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "prettier": "^3.2.5", "prettier-plugin-svelte": "^3.2.3", "sass": "^1.76.0", - "svelte": "^4.2.15" + "svelte": "^5.0.0-next.123" } }, "node_modules/@ampproject/remapping": { @@ -893,17 +893,17 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@lerna/create": { @@ -3051,6 +3051,18 @@ "vite": "^5.0.0" } }, + "node_modules/@sveltejs/vite-plugin-svelte/node_modules/svelte-hmr": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.16.0.tgz", + "integrity": "sha512-Gyc7cOS3VJzLlfj7wKS0ZnzDVdv3Pn2IuVeJPk9m2skfhcu5bq3wtIZyQGggr7/Iim5rH5cncyQft/kRLupcnA==", + "dev": true, + "engines": { + "node": "^12.20 || ^14.13.1 || >= 16" + }, + "peerDependencies": { + "svelte": "^3.19.0 || ^4.0.0" + } + }, "node_modules/@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", @@ -3232,9 +3244,9 @@ } }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "bin": { "acorn": "bin/acorn" }, @@ -3242,6 +3254,14 @@ "node": ">=0.4.0" } }, + "node_modules/acorn-typescript": { + "version": "1.4.13", + "resolved": "https://registry.npmjs.org/acorn-typescript/-/acorn-typescript-1.4.13.tgz", + "integrity": "sha512-xsc9Xv0xlVfwp2o7sQ+GCQ1PgbkdcpWdTzrwXxO3xDMTAywVS3oXVOcOHuRjAPkS4P9b+yc/qNF15460v+jp4Q==", + "peerDependencies": { + "acorn": ">=8.9.0" + } + }, "node_modules/add-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/add-stream/-/add-stream-1.0.0.tgz", @@ -3903,23 +3923,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/code-red": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz", - "integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.15", - "@types/estree": "^1.0.1", - "acorn": "^8.10.0", - "estree-walker": "^3.0.3", - "periscopic": "^3.1.0" - } - }, - "node_modules/code-red/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -4877,18 +4880,6 @@ "node": ">= 8" } }, - "node_modules/css-tree": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", - "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", - "dependencies": { - "mdn-data": "2.0.30", - "source-map-js": "^1.0.1" - }, - "engines": { - "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" - } - }, "node_modules/dargs": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", @@ -5279,8 +5270,7 @@ "node_modules/esm-env": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.0.0.tgz", - "integrity": "sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==", - "dev": true + "integrity": "sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==" }, "node_modules/esprima": { "version": "4.0.1", @@ -5295,12 +5285,13 @@ "node": ">=4" } }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "node_modules/esrap": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/esrap/-/esrap-1.2.2.tgz", + "integrity": "sha512-F2pSJklxx1BlQIQgooczXCPHmcWpn6EsP5oo73LQfonG9fIlIENQ8vMmfGXeojP9MrkzUNAfyU5vdFlR9shHAw==", "dependencies": { - "@types/estree": "^1.0.0" + "@jridgewell/sourcemap-codec": "^1.4.15", + "@types/estree": "^1.0.1" } }, "node_modules/eventemitter3": { @@ -6913,9 +6904,9 @@ } }, "node_modules/is-reference": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.1.tgz", - "integrity": "sha512-baJJdQLiYaJdvFbJqXrcGv3WU3QCzBlUcI5QhbesIm6/xPsvmO+2CDoi/GMOFBQEQm+PXkwOPrp9KK5ozZsp2w==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz", + "integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==", "dependencies": { "@types/estree": "*" } @@ -8091,11 +8082,6 @@ "@jridgewell/sourcemap-codec": "^1.4.15" } }, - "node_modules/magic-string/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, "node_modules/make-dir": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", @@ -8170,11 +8156,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mdn-data": { - "version": "2.0.30", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", - "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==" - }, "node_modules/mdsvex": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/mdsvex/-/mdsvex-0.11.0.tgz", @@ -9915,16 +9896,6 @@ "node": ">=8" } }, - "node_modules/periscopic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz", - "integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^3.0.0", - "is-reference": "^3.0.0" - } - }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -11463,27 +11434,26 @@ } }, "node_modules/svelte": { - "version": "4.2.15", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.15.tgz", - "integrity": "sha512-j9KJSccHgLeRERPlhMKrCXpk2TqL2m5Z+k+OBTQhZOhIdCCd3WfqV+ylPWeipEwq17P/ekiSFWwrVQv93i3bsg==", + "version": "5.0.0-next.123", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.0.0-next.123.tgz", + "integrity": "sha512-EKdXcqT795J34V8TyyUO5ExI0amjeKBECA2t7Py8QeDTMgS9//pQElD0jKsCT/sfmKV4HEoOwf7sqPYINKEfUQ==", "dependencies": { "@ampproject/remapping": "^2.2.1", "@jridgewell/sourcemap-codec": "^1.4.15", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/estree": "^1.0.1", - "acorn": "^8.9.0", + "@types/estree": "^1.0.5", + "acorn": "^8.11.3", + "acorn-typescript": "^1.4.13", "aria-query": "^5.3.0", "axobject-query": "^4.0.0", - "code-red": "^1.0.3", - "css-tree": "^2.3.1", - "estree-walker": "^3.0.3", - "is-reference": "^3.0.1", + "esm-env": "^1.0.0", + "esrap": "^1.2.2", + "is-reference": "^3.0.2", "locate-character": "^3.0.0", - "magic-string": "^0.30.4", - "periscopic": "^3.1.0" + "magic-string": "^0.30.5", + "zimmerframe": "^1.1.2" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/svelte-check": { @@ -11508,28 +11478,6 @@ "svelte": "^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0" } }, - "node_modules/svelte-check/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "node_modules/svelte-hmr": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.16.0.tgz", - "integrity": "sha512-Gyc7cOS3VJzLlfj7wKS0ZnzDVdv3Pn2IuVeJPk9m2skfhcu5bq3wtIZyQGggr7/Iim5rH5cncyQft/kRLupcnA==", - "dev": true, - "engines": { - "node": "^12.20 || ^14.13.1 || >= 16" - }, - "peerDependencies": { - "svelte": "^3.19.0 || ^4.0.0" - } - }, "node_modules/svelte-material-ui": { "resolved": "packages/svelte-material-ui", "link": true @@ -11611,63 +11559,6 @@ "node": ">=8" } }, - "node_modules/svelte-strip": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/svelte-strip/-/svelte-strip-3.1.1.tgz", - "integrity": "sha512-u0KIKGtYCBD3DrsQbTvjEokHfB13Ey2PycEQoncl0pTWU8XXNbJ8QLCrXvVmtxr6J/zG0T0uoEy99tHLRypcbw==", - "dev": true, - "dependencies": { - "glob": "^10.3.4", - "minimatch": "^9.0.3", - "svelte-preprocess": "^5.0.4", - "typescript": "^5.2.2", - "yargs": "^17.7.2" - }, - "bin": { - "svelte-strip": "svelte-strip" - }, - "peerDependencies": { - "svelte": "^3.0.0 || ^4.0.0" - } - }, - "node_modules/svelte-strip/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/svelte-strip/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/svelte/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "node_modules/svelte/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, "node_modules/svelte2tsx": { "version": "0.7.8", "resolved": "https://registry.npmjs.org/svelte2tsx/-/svelte2tsx-0.7.8.tgz", @@ -12442,6 +12333,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/zimmerframe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.2.tgz", + "integrity": "sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==" + }, "packages/accordion": { "name": "@smui-extra/accordion", "version": "7.0.0", @@ -12462,7 +12358,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12483,7 +12378,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12505,7 +12399,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12523,7 +12416,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12543,7 +12435,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12567,7 +12458,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12590,7 +12480,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12609,7 +12498,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12630,7 +12518,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12648,7 +12535,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12665,7 +12551,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12688,7 +12573,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12708,7 +12592,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12727,7 +12610,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12747,7 +12629,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12765,7 +12646,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12785,7 +12665,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12805,7 +12684,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12823,7 +12701,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12841,7 +12718,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12859,7 +12735,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12877,7 +12752,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12898,7 +12772,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12919,7 +12792,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12938,7 +12810,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12957,7 +12828,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12979,7 +12849,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -12998,7 +12867,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13017,7 +12885,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13038,7 +12905,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13067,7 +12933,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13140,7 +13005,7 @@ "sass": "^1.76.0", "simple-icons": "^10.4.0", "smui-theme": "^7.0.0", - "svelte": "^4.2.15", + "svelte": "^5.0.0-next.123", "svelte-check": "^3.7.1", "svelte-portal": "^2.2.1", "svelte-preprocess": "^5.1.4", @@ -13174,7 +13039,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13276,7 +13140,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13348,7 +13211,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13368,7 +13230,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13388,7 +13249,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13406,7 +13266,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13425,7 +13284,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13451,7 +13309,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13469,7 +13326,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13488,7 +13344,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -13506,7 +13361,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } @@ -14053,17 +13907,17 @@ "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" }, "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "@lerna/create": { @@ -15620,7 +15474,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15637,7 +15490,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15655,7 +15507,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15671,7 +15522,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15743,7 +15593,7 @@ "sass": "^1.76.0", "simple-icons": "^10.4.0", "smui-theme": "^7.0.0", - "svelte": "^4.2.15", + "svelte": "^5.0.0-next.123", "svelte-check": "^3.7.1", "svelte-portal": "^2.2.1", "svelte-preprocess": "^5.1.4", @@ -15770,7 +15620,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15790,7 +15639,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15809,7 +15657,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15824,7 +15671,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15841,7 +15687,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15855,7 +15700,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15868,7 +15712,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15887,7 +15730,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15903,7 +15745,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15918,7 +15759,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15934,7 +15774,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15948,7 +15787,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15964,7 +15802,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15980,7 +15817,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -15994,7 +15830,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16008,7 +15843,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16022,7 +15856,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16036,7 +15869,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16053,7 +15885,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16070,7 +15901,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16085,7 +15915,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16100,7 +15929,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16118,7 +15946,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16133,7 +15960,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16148,7 +15974,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16165,7 +15990,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16190,7 +16014,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16206,7 +16029,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16225,7 +16047,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16242,7 +16063,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16258,7 +16078,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16274,7 +16093,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16288,7 +16106,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16303,7 +16120,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16325,7 +16141,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16339,7 +16154,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16354,7 +16168,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16368,7 +16181,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "svelte2tsx": "^0.7.8", "tslib": "^2.6.2", "typescript": "^5.4.5" @@ -16407,6 +16219,15 @@ "magic-string": "^0.30.9", "svelte-hmr": "^0.16.0", "vitefu": "^0.2.5" + }, + "dependencies": { + "svelte-hmr": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.16.0.tgz", + "integrity": "sha512-Gyc7cOS3VJzLlfj7wKS0ZnzDVdv3Pn2IuVeJPk9m2skfhcu5bq3wtIZyQGggr7/Iim5rH5cncyQft/kRLupcnA==", + "dev": true, + "requires": {} + } } }, "@sveltejs/vite-plugin-svelte-inspector": { @@ -16576,9 +16397,15 @@ "dev": true }, "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==" + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==" + }, + "acorn-typescript": { + "version": "1.4.13", + "resolved": "https://registry.npmjs.org/acorn-typescript/-/acorn-typescript-1.4.13.tgz", + "integrity": "sha512-xsc9Xv0xlVfwp2o7sQ+GCQ1PgbkdcpWdTzrwXxO3xDMTAywVS3oXVOcOHuRjAPkS4P9b+yc/qNF15460v+jp4Q==", + "requires": {} }, "add-stream": { "version": "1.0.0", @@ -17057,25 +16884,6 @@ "integrity": "sha512-S9iI9y0nKR4hwEQsVWpyxld/6kRfGepGfzff83FcaiEBpmvlbA2nnGe7Cylgrx2f/p1P5S5wpRm9oL8z1PbS3Q==", "dev": true }, - "code-red": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz", - "integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==", - "requires": { - "@jridgewell/sourcemap-codec": "^1.4.15", - "@types/estree": "^1.0.1", - "acorn": "^8.10.0", - "estree-walker": "^3.0.3", - "periscopic": "^3.1.0" - }, - "dependencies": { - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - } - } - }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -17794,15 +17602,6 @@ "which": "^2.0.1" } }, - "css-tree": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz", - "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==", - "requires": { - "mdn-data": "2.0.30", - "source-map-js": "^1.0.1" - } - }, "dargs": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", @@ -18098,8 +17897,7 @@ "esm-env": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.0.0.tgz", - "integrity": "sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==", - "dev": true + "integrity": "sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==" }, "esprima": { "version": "4.0.1", @@ -18107,12 +17905,13 @@ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, - "estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "esrap": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/esrap/-/esrap-1.2.2.tgz", + "integrity": "sha512-F2pSJklxx1BlQIQgooczXCPHmcWpn6EsP5oo73LQfonG9fIlIENQ8vMmfGXeojP9MrkzUNAfyU5vdFlR9shHAw==", "requires": { - "@types/estree": "^1.0.0" + "@jridgewell/sourcemap-codec": "^1.4.15", + "@types/estree": "^1.0.1" } }, "eventemitter3": { @@ -19334,9 +19133,9 @@ "dev": true }, "is-reference": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.1.tgz", - "integrity": "sha512-baJJdQLiYaJdvFbJqXrcGv3WU3QCzBlUcI5QhbesIm6/xPsvmO+2CDoi/GMOFBQEQm+PXkwOPrp9KK5ozZsp2w==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz", + "integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==", "requires": { "@types/estree": "*" } @@ -20193,13 +19992,6 @@ "integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==", "requires": { "@jridgewell/sourcemap-codec": "^1.4.15" - }, - "dependencies": { - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - } } }, "make-dir": { @@ -20257,11 +20049,6 @@ "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", "dev": true }, - "mdn-data": { - "version": "2.0.30", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", - "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==" - }, "mdsvex": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/mdsvex/-/mdsvex-0.11.0.tgz", @@ -21588,16 +21375,6 @@ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true }, - "periscopic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz", - "integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==", - "requires": { - "@types/estree": "^1.0.0", - "estree-walker": "^3.0.0", - "is-reference": "^3.0.0" - } - }, "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -22781,40 +22558,23 @@ "dev": true }, "svelte": { - "version": "4.2.15", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.15.tgz", - "integrity": "sha512-j9KJSccHgLeRERPlhMKrCXpk2TqL2m5Z+k+OBTQhZOhIdCCd3WfqV+ylPWeipEwq17P/ekiSFWwrVQv93i3bsg==", + "version": "5.0.0-next.123", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.0.0-next.123.tgz", + "integrity": "sha512-EKdXcqT795J34V8TyyUO5ExI0amjeKBECA2t7Py8QeDTMgS9//pQElD0jKsCT/sfmKV4HEoOwf7sqPYINKEfUQ==", "requires": { "@ampproject/remapping": "^2.2.1", "@jridgewell/sourcemap-codec": "^1.4.15", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/estree": "^1.0.1", - "acorn": "^8.9.0", + "@types/estree": "^1.0.5", + "acorn": "^8.11.3", + "acorn-typescript": "^1.4.13", "aria-query": "^5.3.0", "axobject-query": "^4.0.0", - "code-red": "^1.0.3", - "css-tree": "^2.3.1", - "estree-walker": "^3.0.3", - "is-reference": "^3.0.1", + "esm-env": "^1.0.0", + "esrap": "^1.2.2", + "is-reference": "^3.0.2", "locate-character": "^3.0.0", - "magic-string": "^0.30.4", - "periscopic": "^3.1.0" - }, - "dependencies": { - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" - }, - "@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", - "requires": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - } + "magic-string": "^0.30.5", + "zimmerframe": "^1.1.2" } }, "svelte-check": { @@ -22831,27 +22591,8 @@ "sade": "^1.7.4", "svelte-preprocess": "^5.1.3", "typescript": "^5.0.3" - }, - "dependencies": { - "@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - } } }, - "svelte-hmr": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.16.0.tgz", - "integrity": "sha512-Gyc7cOS3VJzLlfj7wKS0ZnzDVdv3Pn2IuVeJPk9m2skfhcu5bq3wtIZyQGggr7/Iim5rH5cncyQft/kRLupcnA==", - "dev": true, - "requires": {} - }, "svelte-material-ui": { "version": "file:packages/svelte-material-ui", "requires": { @@ -22927,39 +22668,6 @@ } } }, - "svelte-strip": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/svelte-strip/-/svelte-strip-3.1.1.tgz", - "integrity": "sha512-u0KIKGtYCBD3DrsQbTvjEokHfB13Ey2PycEQoncl0pTWU8XXNbJ8QLCrXvVmtxr6J/zG0T0uoEy99tHLRypcbw==", - "dev": true, - "requires": { - "glob": "^10.3.4", - "minimatch": "^9.0.3", - "svelte-preprocess": "^5.0.4", - "typescript": "^5.2.2", - "yargs": "^17.7.2" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, "svelte2tsx": { "version": "0.7.8", "resolved": "https://registry.npmjs.org/svelte2tsx/-/svelte2tsx-0.7.8.tgz", @@ -23526,6 +23234,11 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true + }, + "zimmerframe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.2.tgz", + "integrity": "sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==" } } } diff --git a/package.json b/package.json index 37248031e..6933490e1 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,6 @@ "prettier": "^3.2.5", "prettier-plugin-svelte": "^3.2.3", "sass": "^1.76.0", - "svelte": "^4.2.15" + "svelte": "^5.0.0-next.123" } } diff --git a/packages/accordion/package.json b/packages/accordion/package.json index a9167761a..01eb9bd14 100644 --- a/packages/accordion/package.json +++ b/packages/accordion/package.json @@ -29,7 +29,7 @@ "scripts": { "build": "npm run build:js && npm run build:svelte && npm run build:sass", "build:js": "tsc -p . --outDir dist/ --rootDir src/", - "build:svelte": "svelte-strip strip src/ dist", + "build:svelte": "cp src/*.svelte dist/", "build:sass": "sass --no-source-map -I node_modules -I ../smui-theme/node_modules -I ../../node_modules _style.scss bare.css", "clean": "git status --ignored -u --porcelain . | grep -v node_modules/ | grep -e '^!! ' | sed 's/^!! packages\\/[a-z-]*\\///g' | tr '\\n' ' ' | xargs rm", "check": "npx svelte-check --ignore dist", @@ -64,7 +64,6 @@ "@tsconfig/svelte": "^5.0.4", "sass": "^1.76.0", "svelte-check": "^3.7.1", - "svelte-strip": "^3.1.1", "tslib": "^2.6.2", "typescript": "^5.4.5" } diff --git a/packages/accordion/src/Accordion.svelte b/packages/accordion/src/Accordion.svelte index a45f6490e..b53e00a09 100644 --- a/packages/accordion/src/Accordion.svelte +++ b/packages/accordion/src/Accordion.svelte @@ -1,34 +1,38 @@
(withOpenDialog = true)} - on:SMUIDialog:closed|capture={() => (withOpenDialog = false)} {...$$restProps} + onSMUIAccordionPanelActivate={(e) => { + handlePanelActivate(e); + $$restProps.onSMUIAccordionPanelActivate?.(e); + }} + onSMUIAccordionPanelOpening={(e) => { + handlePanelOpening(e); + $$restProps.onSMUIAccordionPanelOpening?.(e); + }} + onSMUIDialogOpeningcapture={(e) => { + withOpenDialog = true; + $$restProps.onSMUIDialogOpeningcapture?.(e); + }} + onSMUIDialogClosedcapture={(e) => { + withOpenDialog = false; + $$restProps.onSMUIDialogClosedcapture?.(e); + }} >
+``` + +## preventDefault + +Call `preventDefault()` on the event. + +```svelte + + + +``` + +## selfEvent + +Only run the event listener when `event.target === event.currentTarget`. + +```svelte + + + +``` + +## stopImmediatePropagation + +Call `stopImmediatePropagation()` on the event. + +```svelte + + + +``` + +## stopPropagation + +Call `stopPropagation()` on the event. + +```svelte + + + +``` + +## trustedEvent + +Only run the event listener when `event.isTrusted` is true. + +```svelte + + + +``` + # Helper Utilities Helper utilities are exported from the `@smui/common/internal` endpoint. They are used within SMUI to provide additional functionality outside of the features the Svelte API is natively capable of. You can use them in your own components to provide the same additional functionality. @@ -78,6 +172,7 @@ Build a class string from a map of class names to conditions. This is useful whe diff --git a/packages/select/src/Option.svelte b/packages/select/src/Option.svelte index 8fac10fd5..19f36860a 100644 --- a/packages/select/src/Option.svelte +++ b/packages/select/src/Option.svelte @@ -1,6 +1,6 @@ , keyof OwnProps>; - const forwardEvents = forwardEventsBuilder(get_current_component()); - export let use: ActionArray = []; - $: usePass = [forwardEvents, ...use] as ActionArray; const className = ''; export { className as class }; export let value: any = ''; diff --git a/packages/select/src/Select.svelte b/packages/select/src/Select.svelte index 465049845..56f74782c 100644 --- a/packages/select/src/Select.svelte +++ b/packages/select/src/Select.svelte @@ -9,7 +9,6 @@ }} use:Anchor={{ addClass, removeClass }} use:useActions={use} - use:forwardEvents class={classMap({ [className]: true, 'mdc-select': true, @@ -32,8 +31,6 @@ .map(([name, value]) => `${name}: ${value};`) .concat([style]) .join(' ')} - on:SMUISelectLeadingIcon:mount={handleLeadingIconMount} - on:SMUISelectLeadingIcon:unmount={() => (leadingIcon = undefined)} {...exclude($$restProps, [ 'input$', 'anchor$', @@ -71,22 +68,38 @@ aria-describedby={helperId} role="combobox" tabindex="0" - on:focus={() => instance && instance.handleFocus()} - on:blur={() => instance && instance.handleBlur()} - on:click={(event) => { + {...selectAnchorAttrs} + {...prefixFilter($$restProps, 'anchor$')} + onclick={(e) => { selectAnchor.focus(); if (instance) { - instance.handleClick(getNormalizedXCoordinate(event)); + instance.handleClick(getNormalizedXCoordinate(e)); } + $$restProps.anchor$onclick?.(e); + }} + onkeydown={(e) => { + if (instance) { + instance.handleKeydown(e); + } + $$restProps.onkeydown?.(e); + }} + onblur={(e) => { + if (instance) { + instance.handleBlur(); + } + dispatch(getElement(), 'blur', e); + $$restProps.anchor$onblur?.(e); + }} + onfocus={(e) => { + if (instance) { + instance.handleFocus(); + } + dispatch(getElement(), 'focus', e); + $$restProps.anchor$onfocus?.(e); }} - on:keydown={instance && instance.handleKeydown.bind(instance)} - on:focus - on:blur - {...selectAnchorAttrs} - {...prefixFilter($$restProps, 'anchor$')} > {#if variant === 'filled'} - + {/if} {#if variant !== 'outlined' && !noLabel && (label != null || $$slots.label)} - instance && instance.handleMenuItemAction(event.detail.index)} - on:SMUIMenuSurface:closing={() => instance && instance.handleMenuClosing()} - on:SMUIMenuSurface:closed={() => instance && instance.handleMenuClosed()} - on:SMUIMenuSurface:opened={() => instance && instance.handleMenuOpened()} {...prefixFilter($$restProps, 'menu$')} + onSMUIMenuSelected={(e) => { + if (instance) { + instance.handleMenuItemAction(e.detail.index); + } + $$restProps.onSMUIMenuSelected?.(e); + }} + onSMUIMenuSurfaceClosing={(e) => { + if (instance) { + instance.handleMenuClosing(); + } + $$restProps.onSMUIMenuSurfaceClosing?.(e); + }} + onSMUIMenuSurfaceClosed={(e) => { + if (instance) { + instance.handleMenuClosed(); + } + $$restProps.onSMUIMenuSurfaceClosed?.(e); + }} + onSMUIMenuSurfaceOpened={(e) => { + if (instance) { + instance.handleMenuOpened(); + } + $$restProps.onSMUIMenuSurfaceOpened?.(e); + }} > (list = event.detail)} {...prefixFilter($$restProps, 'list$')}> {#if $$slots.helperText} - (helperId = event.detail)} - on:SMUISelectHelperText:mount={(event) => (helperText = event.detail)} - on:SMUISelectHelperText:unmount={() => { - helperId = undefined; - helperText = undefined; - }} - {...prefixFilter($$restProps, 'helperText$')} + {/if} @@ -229,8 +253,6 @@ import type { ComponentProps } from 'svelte'; import { onMount, onDestroy, getContext, setContext } from 'svelte'; import { writable } from 'svelte/store'; - // @ts-ignore Need to use internal Svelte function - import { get_current_component } from 'svelte/internal'; import type { AddLayoutListener, RemoveLayoutListener, @@ -239,7 +261,6 @@ } from '@smui/common'; import type { ActionArray } from '@smui/common/internal'; import { - forwardEventsBuilder, classMap, exclude, prefixFilter, @@ -315,7 +336,6 @@ input$value?: never; }; - const forwardEvents = forwardEventsBuilder(get_current_component()); interface UninitializedValue extends Function {} let uninitializedValue: UninitializedValue = () => {}; function isUninitializedValue(value: any): value is UninitializedValue { @@ -440,6 +460,32 @@ removeLayoutListener = addLayoutListener(layout); } + setContext( + 'SMUI:select:leading-icon:mount', + (accessor: MDCSelectIconFoundation) => { + leadingIcon = accessor; + }, + ); + setContext('SMUI:select:leading-icon:unmount', () => { + leadingIcon = undefined; + }); + setContext('SMUI:list:mount', (accessor: SMUIListAccessor) => { + list = accessor; + }); + setContext('SMUI:select:helper-text:id', (id: string) => { + helperId = id; + }); + setContext( + 'SMUI:select:helper-text:mount', + (accessor: MDCSelectHelperTextFoundation) => { + helperText = accessor; + }, + ); + setContext('SMUI:select:helper-text:unmount', () => { + helperId = undefined; + helperText = undefined; + }); + onMount(() => { instance = new MDCSelectFoundation( { @@ -504,7 +550,7 @@ } dispatch( getElement(), - 'SMUISelect:change', + 'SMUISelectChange', { value, index: selectedIndex, @@ -554,10 +600,6 @@ } }); - function handleLeadingIconMount(event: CustomEvent) { - leadingIcon = event.detail; - } - function hasClass(className: string) { return className in internalClasses ? internalClasses[className] diff --git a/packages/select/src/ambient-select.d.ts b/packages/select/src/ambient-select.d.ts index 8dc44c1e4..461c82587 100644 --- a/packages/select/src/ambient-select.d.ts +++ b/packages/select/src/ambient-select.d.ts @@ -1,13 +1,2 @@ /// /// - -declare namespace svelteHTML { - interface HTMLAttributes { - ['on:SMUISelectLeadingIcon:mount']?: ( - event: CustomEvent & { target: T }, - ) => any; - ['on:SMUISelectLeadingIcon:unmount']?: ( - event: CustomEvent & { target: T }, - ) => any; - } -} diff --git a/packages/select/src/helper-text/HelperText.svelte b/packages/select/src/helper-text/HelperText.svelte index 95e36e30b..f1a541ca7 100644 --- a/packages/select/src/helper-text/HelperText.svelte +++ b/packages/select/src/helper-text/HelperText.svelte @@ -1,7 +1,6 @@
import { MDCSelectHelperTextFoundation } from '@material/select'; - import { onMount } from 'svelte'; - // @ts-ignore Need to use internal Svelte function - import { get_current_component } from 'svelte/internal'; + import { onMount, getContext } from 'svelte'; import type { SmuiAttrs } from '@smui/common'; import type { ActionArray } from '@smui/common/internal'; - import { - forwardEventsBuilder, - classMap, - useActions, - dispatch, - } from '@smui/common/internal'; + import { classMap, useActions } from '@smui/common/internal'; type OwnProps = { use?: ActionArray; @@ -44,8 +36,6 @@ }; type $$Props = OwnProps & SmuiAttrs<'div', keyof OwnProps>; - const forwardEvents = forwardEventsBuilder(get_current_component()); - // Remember to update $$Props if you add/remove/rename props. export let use: ActionArray = []; let className = ''; @@ -60,6 +50,16 @@ let internalAttrs: { [k: string]: string | undefined } = {}; let content: string | undefined = undefined; + const SMUISelectHelperTextId = getContext< + ((accessor: string) => void) | undefined + >('SMUI:select:helper-text:id'); + const SMUISelectHelperTextMount = getContext< + ((accessor: MDCSelectHelperTextFoundation) => void) | undefined + >('SMUI:select:helper-text:mount'); + const SMUISelectHelperTextUnmount = getContext< + ((accessor: MDCSelectHelperTextFoundation) => void) | undefined + >('SMUI:select:helper-text:unmount'); + onMount(() => { instance = new MDCSelectHelperTextFoundation({ addClass, @@ -73,15 +73,13 @@ }, }); - if (id.startsWith('SMUI-select-helper-text-')) { - dispatch(getElement(), 'SMUISelectHelperText:id', id); - } - dispatch(getElement(), 'SMUISelectHelperText:mount', instance); + SMUISelectHelperTextId && SMUISelectHelperTextId(id); + SMUISelectHelperTextMount && SMUISelectHelperTextMount(instance); instance.init(); return () => { - dispatch(getElement(), 'SMUISelectHelperText:unmount', instance); + SMUISelectHelperTextUnmount && SMUISelectHelperTextUnmount(instance); instance.destroy(); }; diff --git a/packages/select/src/icon/Icon.svelte b/packages/select/src/icon/Icon.svelte index 49739a429..02ada9e17 100644 --- a/packages/select/src/icon/Icon.svelte +++ b/packages/select/src/icon/Icon.svelte @@ -1,7 +1,6 @@ import { MDCSelectIconFoundation } from '@material/select'; - import { onMount } from 'svelte'; - // @ts-ignore Need to use internal Svelte function - import { get_current_component } from 'svelte/internal'; + import { onMount, getContext } from 'svelte'; import type { SmuiAttrs } from '@smui/common'; import type { ActionArray } from '@smui/common/internal'; - import { - forwardEventsBuilder, - classMap, - useActions, - dispatch, - } from '@smui/common/internal'; + import { classMap, useActions, dispatch } from '@smui/common/internal'; type OwnProps = { use?: ActionArray; @@ -37,8 +29,6 @@ }; type $$Props = OwnProps & SmuiAttrs<'i', keyof OwnProps>; - const forwardEvents = forwardEventsBuilder(get_current_component()); - // Remember to update $$Props if you add/remove/rename props. export let use: ActionArray = []; let className = ''; @@ -57,6 +47,13 @@ tabindex, }; + const SMUISelectLeadingIconMount = getContext< + ((accessor: MDCSelectIconFoundation) => void) | undefined + >('SMUI:select:leading-icon:mount'); + const SMUISelectLeadingIconUnmount = getContext< + ((accessor: MDCSelectIconFoundation) => void) | undefined + >('SMUI:select:leading-icon:unmount'); + onMount(() => { instance = new MDCSelectIconFoundation({ getAttr, @@ -70,15 +67,15 @@ deregisterInteractionHandler: (evtType, handler) => getElement().removeEventListener(evtType, handler), notifyIconAction: () => - dispatch(getElement(), 'SMUISelect:icon', undefined, undefined, true), + dispatch(getElement(), 'SMUISelectIcon', undefined, undefined, true), }); - dispatch(getElement(), 'SMUISelectLeadingIcon:mount', instance); + SMUISelectLeadingIconMount && SMUISelectLeadingIconMount(instance); instance.init(); return () => { - dispatch(getElement(), 'SMUISelectLeadingIcon:unmount', instance); + SMUISelectLeadingIconUnmount && SMUISelectLeadingIconUnmount(instance); instance.destroy(); }; diff --git a/packages/site/package.json b/packages/site/package.json index 0d221719f..815e1f523 100644 --- a/packages/site/package.json +++ b/packages/site/package.json @@ -123,7 +123,7 @@ "sass": "^1.76.0", "simple-icons": "^10.4.0", "smui-theme": "^7.0.0", - "svelte": "^4.2.15", + "svelte": "^5.0.0-next.123", "svelte-check": "^3.7.1", "svelte-portal": "^2.2.1", "svelte-preprocess": "^5.1.4", diff --git a/packages/site/src/lib/Demo.svelte b/packages/site/src/lib/Demo.svelte index 792266adf..8d50efc21 100644 --- a/packages/site/src/lib/Demo.svelte +++ b/packages/site/src/lib/Demo.svelte @@ -75,7 +75,7 @@ diff --git a/packages/site/src/routes/demo/common/_ForwardEventsBuilderComponent.svelte b/packages/site/src/routes/demo/common/_ForwardEventsBuilderComponent.svelte index 4dd0b29d1..6416daf3f 100644 --- a/packages/site/src/routes/demo/common/_ForwardEventsBuilderComponent.svelte +++ b/packages/site/src/routes/demo/common/_ForwardEventsBuilderComponent.svelte @@ -1,11 +1,7 @@ -
+
diff --git a/packages/site/src/routes/demo/common/_Svg.svelte b/packages/site/src/routes/demo/common/_Svg.svelte index 5e4789d1b..69dab3219 100644 --- a/packages/site/src/routes/demo/common/_Svg.svelte +++ b/packages/site/src/routes/demo/common/_Svg.svelte @@ -99,7 +99,7 @@
- clicked++}> + clicked++}> diff --git a/packages/site/src/routes/demo/common/ambient.d.ts b/packages/site/src/routes/demo/common/ambient.d.ts deleted file mode 100644 index a9c8e550a..000000000 --- a/packages/site/src/routes/demo/common/ambient.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Needed until https://github.com/sveltejs/language-tools/issues/431 is solved. -declare namespace svelteHTML { - interface HTMLAttributes { - ['on:MyEvent']?: (event: CustomEvent & { target: T }) => any; - } -} diff --git a/packages/site/src/routes/demo/data-table/_Pagination.svelte b/packages/site/src/routes/demo/data-table/_Pagination.svelte index 5febd9804..2f245ccaa 100644 --- a/packages/site/src/routes/demo/data-table/_Pagination.svelte +++ b/packages/site/src/routes/demo/data-table/_Pagination.svelte @@ -35,28 +35,28 @@ class="material-icons" action="first-page" title="First page" - on:click={() => (currentPage = 0)} + onclick={() => (currentPage = 0)} disabled={currentPage === 0}>first_page currentPage--} + onclick={() => currentPage--} disabled={currentPage === 0}>chevron_left currentPage++} + onclick={() => currentPage++} disabled={currentPage === lastPage}>chevron_right (currentPage = lastPage)} + onclick={() => (currentPage = lastPage)} disabled={currentPage === lastPage}>last_page diff --git a/packages/site/src/routes/demo/data-table/_ProgressIndicator.svelte b/packages/site/src/routes/demo/data-table/_ProgressIndicator.svelte index f70235bf7..85fe74293 100644 --- a/packages/site/src/routes/demo/data-table/_ProgressIndicator.svelte +++ b/packages/site/src/routes/demo/data-table/_ProgressIndicator.svelte @@ -1,5 +1,5 @@
- +
diff --git a/packages/site/src/routes/demo/data-table/_Sortable.svelte b/packages/site/src/routes/demo/data-table/_Sortable.svelte index e8abe607b..7371e122f 100644 --- a/packages/site/src/routes/demo/data-table/_Sortable.svelte +++ b/packages/site/src/routes/demo/data-table/_Sortable.svelte @@ -2,7 +2,7 @@ sortable bind:sort bind:sortDirection - on:SMUIDataTable:sorted={handleSort} + onSMUIDataTableSorted={handleSort} table$aria-label="User list" style="width: 100%;" > diff --git a/packages/site/src/routes/demo/dialog/_DefaultFocus.svelte b/packages/site/src/routes/demo/dialog/_DefaultFocus.svelte index 8a2d4483e..4571c66ad 100644 --- a/packages/site/src/routes/demo/dialog/_DefaultFocus.svelte +++ b/packages/site/src/routes/demo/dialog/_DefaultFocus.svelte @@ -8,20 +8,20 @@ Build something today, even if it sucks. - - diff --git a/packages/site/src/routes/demo/dialog/_Event.svelte b/packages/site/src/routes/demo/dialog/_Event.svelte index d152b167c..7b48c494e 100644 --- a/packages/site/src/routes/demo/dialog/_Event.svelte +++ b/packages/site/src/routes/demo/dialog/_Event.svelte @@ -2,7 +2,7 @@ bind:open aria-labelledby="event-title" aria-describedby="event-content" - on:SMUIDialog:closed={closeHandler} + onSMUIDialogClosed={closeHandler} > The Best Dog @@ -18,7 +18,7 @@ - diff --git a/packages/site/src/routes/demo/dialog/_Fullscreen.svelte b/packages/site/src/routes/demo/dialog/_Fullscreen.svelte index 61bdf144a..6d5783e1f 100644 --- a/packages/site/src/routes/demo/dialog/_Fullscreen.svelte +++ b/packages/site/src/routes/demo/dialog/_Fullscreen.svelte @@ -3,7 +3,7 @@ fullscreen aria-labelledby="fullscreen-title" aria-describedby="fullscreen-content" - on:SMUIDialog:closed={closeHandler} + onSMUIDialogClosed={closeHandler} >
Terms and Conditions @@ -24,7 +24,7 @@ - diff --git a/packages/site/src/routes/demo/dialog/_LargeScroll.svelte b/packages/site/src/routes/demo/dialog/_LargeScroll.svelte index 02f04fbcd..9b6649c08 100644 --- a/packages/site/src/routes/demo/dialog/_LargeScroll.svelte +++ b/packages/site/src/routes/demo/dialog/_LargeScroll.svelte @@ -17,7 +17,7 @@ - diff --git a/packages/site/src/routes/demo/dialog/_List.svelte b/packages/site/src/routes/demo/dialog/_List.svelte index 47bad0733..f1f0a06d5 100644 --- a/packages/site/src/routes/demo/dialog/_List.svelte +++ b/packages/site/src/routes/demo/dialog/_List.svelte @@ -9,7 +9,7 @@ {#each [...Array(100)].map((_v, i) => i + 1) as item} { + onclick={() => { clicked = item; open = false; }} @@ -21,7 +21,7 @@ - +
Clicked: {clicked}{clicked === 69
     ? ', nice'
diff --git a/packages/site/src/routes/demo/dialog/_Mandatory.svelte b/packages/site/src/routes/demo/dialog/_Mandatory.svelte
index b2e808f61..9600489d9 100644
--- a/packages/site/src/routes/demo/dialog/_Mandatory.svelte
+++ b/packages/site/src/routes/demo/dialog/_Mandatory.svelte
@@ -13,22 +13,22 @@
     How old is Alice's brother now?
   
   
-    
-    
-    
-    
   
 
 
-
 
diff --git a/packages/site/src/routes/demo/dialog/_ManyActions.svelte b/packages/site/src/routes/demo/dialog/_ManyActions.svelte
index 5819f1240..30318de93 100644
--- a/packages/site/src/routes/demo/dialog/_ManyActions.svelte
+++ b/packages/site/src/routes/demo/dialog/_ManyActions.svelte
@@ -3,7 +3,7 @@
   aria-labelledby="buttons-title"
   aria-describedby="buttons-content"
   autoStackButtons={false}
-  on:SMUIDialog:closed={(e) => (buttoned = e.detail.action)}
+  onSMUIDialogClosed={(e) => (buttoned = e.detail.action)}
 >
   Use speed bost?
   
@@ -24,7 +24,7 @@
   
 
 
-
 
diff --git a/packages/site/src/routes/demo/dialog/_OverFullscreen.svelte b/packages/site/src/routes/demo/dialog/_OverFullscreen.svelte
index e7584995e..72d67a5d0 100644
--- a/packages/site/src/routes/demo/dialog/_OverFullscreen.svelte
+++ b/packages/site/src/routes/demo/dialog/_OverFullscreen.svelte
@@ -3,14 +3,14 @@
   fullscreen
   aria-labelledby="over-fullscreen-title"
   aria-describedby="over-fullscreen-content"
-  on:SMUIDialog:closed={closeHandler}
+  onSMUIDialogClosed={closeHandler}
 >
   
Terms and Conditions close
- {#each Array(3) as _item} @@ -32,7 +32,7 @@ selection aria-labelledby="over-fullscreen-confirmation-title" aria-describedby="over-fullscreen-confirmation-content" - on:SMUIDialog:closed={confirmationCloseHandler} + onSMUIDialogClosed={confirmationCloseHandler} >
Confirmation @@ -64,7 +64,7 @@ - diff --git a/packages/site/src/routes/demo/dialog/_Selection.svelte b/packages/site/src/routes/demo/dialog/_Selection.svelte index d6760d6b3..72c6af946 100644 --- a/packages/site/src/routes/demo/dialog/_Selection.svelte +++ b/packages/site/src/routes/demo/dialog/_Selection.svelte @@ -3,7 +3,7 @@ selection aria-labelledby="list-selection-title" aria-describedby="list-selection-content" - on:SMUIDialog:closed={closeHandler} + onSMUIDialogClosed={closeHandler} > Dialog Title @@ -38,7 +38,7 @@ - diff --git a/packages/site/src/routes/demo/dialog/_Sheet.svelte b/packages/site/src/routes/demo/dialog/_Sheet.svelte index 33db17e49..cbd22e791 100644 --- a/packages/site/src/routes/demo/dialog/_Sheet.svelte +++ b/packages/site/src/routes/demo/dialog/_Sheet.svelte @@ -17,11 +17,11 @@ - - diff --git a/packages/site/src/routes/demo/dialog/_Simple.svelte b/packages/site/src/routes/demo/dialog/_Simple.svelte index ada14d599..b88098d26 100644 --- a/packages/site/src/routes/demo/dialog/_Simple.svelte +++ b/packages/site/src/routes/demo/dialog/_Simple.svelte @@ -7,16 +7,16 @@ Dialog Title Super awesome dialog body text? - - - diff --git a/packages/site/src/routes/demo/dialog/_Sliders.svelte b/packages/site/src/routes/demo/dialog/_Sliders.svelte index b3799adeb..567d9583a 100644 --- a/packages/site/src/routes/demo/dialog/_Sliders.svelte +++ b/packages/site/src/routes/demo/dialog/_Sliders.svelte @@ -35,7 +35,7 @@ - diff --git a/packages/site/src/routes/demo/drawer/_Dismissible.svelte b/packages/site/src/routes/demo/drawer/_Dismissible.svelte index 379b3afa0..e72f8cfa4 100644 --- a/packages/site/src/routes/demo/drawer/_Dismissible.svelte +++ b/packages/site/src/routes/demo/drawer/_Dismissible.svelte @@ -8,35 +8,35 @@ setActive('Gray Kittens')} + onclick={() => setActive('Gray Kittens')} activated={active === 'Gray Kittens'} > Gray Kittens setActive('A Space Rocket')} + onclick={() => setActive('A Space Rocket')} activated={active === 'A Space Rocket'} > A Space Rocket setActive('100 Pounds of Gravel')} + onclick={() => setActive('100 Pounds of Gravel')} activated={active === '100 Pounds of Gravel'} > 100 Pounds of Gravel setActive('All of the Shrimp')} + onclick={() => setActive('All of the Shrimp')} activated={active === 'All of the Shrimp'} > All of the Shrimp setActive('A Planet with a Mall')} + onclick={() => setActive('A Planet with a Mall')} activated={active === 'A Planet with a Mall'} > A Planet with a Mall @@ -47,7 +47,7 @@
-
diff --git a/packages/site/src/routes/demo/drawer/_Modal.svelte b/packages/site/src/routes/demo/drawer/_Modal.svelte index 4177b7a88..a5de586d1 100644 --- a/packages/site/src/routes/demo/drawer/_Modal.svelte +++ b/packages/site/src/routes/demo/drawer/_Modal.svelte @@ -10,7 +10,7 @@ setActive('Inbox')} + onclick={() => setActive('Inbox')} activated={active === 'Inbox'} > @@ -18,7 +18,7 @@ setActive('Star')} + onclick={() => setActive('Star')} activated={active === 'Star'} > @@ -26,7 +26,7 @@ setActive('Sent Mail')} + onclick={() => setActive('Sent Mail')} activated={active === 'Sent Mail'} > @@ -34,7 +34,7 @@ setActive('Drafts')} + onclick={() => setActive('Drafts')} activated={active === 'Drafts'} > @@ -45,7 +45,7 @@ Labels setActive('Family')} + onclick={() => setActive('Family')} activated={active === 'Family'} > @@ -53,7 +53,7 @@ setActive('Friends')} + onclick={() => setActive('Friends')} activated={active === 'Friends'} > @@ -61,7 +61,7 @@ setActive('Work')} + onclick={() => setActive('Work')} activated={active === 'Work'} > @@ -76,7 +76,7 @@
-
diff --git a/packages/site/src/routes/demo/drawer/_Permanent.svelte b/packages/site/src/routes/demo/drawer/_Permanent.svelte index bfe9ba36b..b311b3016 100644 --- a/packages/site/src/routes/demo/drawer/_Permanent.svelte +++ b/packages/site/src/routes/demo/drawer/_Permanent.svelte @@ -4,31 +4,31 @@ (clicked = 'Gray Kittens')} + onclick={() => (clicked = 'Gray Kittens')} > Gray Kittens (clicked = 'A Space Rocket')} + onclick={() => (clicked = 'A Space Rocket')} > A Space Rocket (clicked = '100 Pounds of Gravel')} + onclick={() => (clicked = '100 Pounds of Gravel')} > 100 Pounds of Gravel (clicked = 'All of the Shrimp')} + onclick={() => (clicked = 'All of the Shrimp')} > All of the Shrimp (clicked = 'A Planet with a Mall')} + onclick={() => (clicked = 'A Planet with a Mall')} > A Planet with a Mall diff --git a/packages/site/src/routes/demo/fab/_Exited.svelte b/packages/site/src/routes/demo/fab/_Exited.svelte index 8ac24ab8f..5b113fe96 100644 --- a/packages/site/src/routes/demo/fab/_Exited.svelte +++ b/packages/site/src/routes/demo/fab/_Exited.svelte @@ -1,6 +1,6 @@
- clicked++} {exited}> + clicked++} {exited}> favorite
@@ -14,7 +14,7 @@
- clicked++} exited={exitedPrimary}> + clicked++} exited={exitedPrimary}> favorite
diff --git a/packages/site/src/routes/demo/fab/_Extended.svelte b/packages/site/src/routes/demo/fab/_Extended.svelte index 9e1e4673a..74ce73e37 100644 --- a/packages/site/src/routes/demo/fab/_Extended.svelte +++ b/packages/site/src/routes/demo/fab/_Extended.svelte @@ -1,23 +1,23 @@
- clicked++} extended> + clicked++} extended> favorite
- clicked++} extended> + clicked++} extended> favorite
- clicked++} extended> + clicked++} extended>
- clicked++} extended> + clicked++} extended>
diff --git a/packages/site/src/routes/demo/fab/_Link.svelte b/packages/site/src/routes/demo/fab/_Link.svelte index 76f43d5c7..18cd9be1a 100644 --- a/packages/site/src/routes/demo/fab/_Link.svelte +++ b/packages/site/src/routes/demo/fab/_Link.svelte @@ -1,13 +1,13 @@
- clicked++} href="http://example.com" target="_blank"> + clicked++} href="http://example.com" target="_blank"> favorite
clicked++} + onclick={() => clicked++} href="http://example.com" target="_blank" > @@ -16,7 +16,7 @@
clicked++} + onclick={() => clicked++} href="http://example.com" target="_blank" extended @@ -27,7 +27,7 @@
clicked++} + onclick={() => clicked++} href="http://example.com" target="_blank" extended diff --git a/packages/site/src/routes/demo/fab/_Mini.svelte b/packages/site/src/routes/demo/fab/_Mini.svelte index a95e10864..713beb191 100644 --- a/packages/site/src/routes/demo/fab/_Mini.svelte +++ b/packages/site/src/routes/demo/fab/_Mini.svelte @@ -1,11 +1,11 @@
- clicked++} mini> + clicked++} mini> favorite
- clicked++} mini> + clicked++} mini> favorite
diff --git a/packages/site/src/routes/demo/fab/_NoRipple.svelte b/packages/site/src/routes/demo/fab/_NoRipple.svelte index 2b9423e6b..c44200a29 100644 --- a/packages/site/src/routes/demo/fab/_NoRipple.svelte +++ b/packages/site/src/routes/demo/fab/_NoRipple.svelte @@ -1,22 +1,22 @@
- clicked++} ripple={false}> + clicked++} ripple={false}> favorite
- clicked++} ripple={false}> + clicked++} ripple={false}> favorite
- clicked++} extended ripple={false}> + clicked++} extended ripple={false}> favorite
- clicked++} extended ripple={false}> + clicked++} extended ripple={false}> favorite diff --git a/packages/site/src/routes/demo/fab/_PrimaryColor.svelte b/packages/site/src/routes/demo/fab/_PrimaryColor.svelte index d2bc0cf01..adbd539a2 100644 --- a/packages/site/src/routes/demo/fab/_PrimaryColor.svelte +++ b/packages/site/src/routes/demo/fab/_PrimaryColor.svelte @@ -1,6 +1,6 @@
- clicked++}> + clicked++}> favorite
diff --git a/packages/site/src/routes/demo/fab/_Simple.svelte b/packages/site/src/routes/demo/fab/_Simple.svelte index 3016dca62..efdb3f159 100644 --- a/packages/site/src/routes/demo/fab/_Simple.svelte +++ b/packages/site/src/routes/demo/fab/_Simple.svelte @@ -1,6 +1,6 @@
- clicked++}> + clicked++}> favorite
diff --git a/packages/site/src/routes/demo/fab/_Svg.svelte b/packages/site/src/routes/demo/fab/_Svg.svelte index 405496667..502a4e48e 100644 --- a/packages/site/src/routes/demo/fab/_Svg.svelte +++ b/packages/site/src/routes/demo/fab/_Svg.svelte @@ -5,7 +5,7 @@ viewBox="0 0 24 24" because the mdiPlus icon is particularly small. This embiggens it. --> - clicked++}> + clicked++}> diff --git a/packages/site/src/routes/demo/icon-button/_Simple.svelte b/packages/site/src/routes/demo/icon-button/_Simple.svelte index 2421d771b..28cf97944 100644 --- a/packages/site/src/routes/demo/icon-button/_Simple.svelte +++ b/packages/site/src/routes/demo/icon-button/_Simple.svelte @@ -1,15 +1,14 @@
- clicked++} - >build clicked++}>build
- clicked++} disabled + clicked++} disabled >search (disabled)
- clicked++} ripple={false} + clicked++} ripple={false} >add_shopping_cart (no ripple)
diff --git a/packages/site/src/routes/demo/icon-button/_Sizes.svelte b/packages/site/src/routes/demo/icon-button/_Sizes.svelte index 2f6bc6abb..039fdf2de 100644 --- a/packages/site/src/routes/demo/icon-button/_Sizes.svelte +++ b/packages/site/src/routes/demo/icon-button/_Sizes.svelte @@ -1,19 +1,19 @@
- clicked++} size="normal"> + clicked++} size="normal">  (normal = standard icon button size)
- clicked++} size="mini"> + clicked++} size="mini">  (mini = same size as mini FAB)
- clicked++} size="button"> + clicked++} size="button"> diff --git a/packages/site/src/routes/demo/icon-button/_Svgs.svelte b/packages/site/src/routes/demo/icon-button/_Svgs.svelte index e5e4495dd..3d39917a3 100644 --- a/packages/site/src/routes/demo/icon-button/_Svgs.svelte +++ b/packages/site/src/routes/demo/icon-button/_Svgs.svelte @@ -1,19 +1,19 @@
- clicked++}> + clicked++}>
- clicked++} disabled> + clicked++} disabled>  (disabled)
- clicked++} ripple={false}> + clicked++} ripple={false}> diff --git a/packages/site/src/routes/demo/icon-button/_Toggle.svelte b/packages/site/src/routes/demo/icon-button/_Toggle.svelte index 9586136e7..03630ee22 100644 --- a/packages/site/src/routes/demo/icon-button/_Toggle.svelte +++ b/packages/site/src/routes/demo/icon-button/_Toggle.svelte @@ -1,11 +1,11 @@
- toggleClicked++} toggle bind:pressed={initialOff}> + toggleClicked++} toggle bind:pressed={initialOff}> star star_border
- toggleClicked++} toggle bind:pressed={initialOn}> + toggleClicked++} toggle bind:pressed={initialOn}> alarm_on alarm_off @@ -13,15 +13,17 @@   -
toggleClicked++} - on:click={() => (usingEvents = !usingEvents)} + onclick={() => { + toggleClicked++; + usingEvents = !usingEvents; + }} pressed={usingEvents} > bookmark diff --git a/packages/site/src/routes/demo/icon-button/_Touch.svelte b/packages/site/src/routes/demo/icon-button/_Touch.svelte index 376462f5b..26df2bcd2 100644 --- a/packages/site/src/routes/demo/icon-button/_Touch.svelte +++ b/packages/site/src/routes/demo/icon-button/_Touch.svelte @@ -1,4 +1,4 @@ - clicked++} touch + clicked++} touch >build diff --git a/packages/site/src/routes/demo/linear-progress/_Simple.svelte b/packages/site/src/routes/demo/linear-progress/_Simple.svelte index 2e9fdff78..7f527f604 100644 --- a/packages/site/src/routes/demo/linear-progress/_Simple.svelte +++ b/packages/site/src/routes/demo/linear-progress/_Simple.svelte @@ -2,7 +2,7 @@
- + diff --git a/packages/site/src/routes/demo/list/_Check.svelte b/packages/site/src/routes/demo/list/_Check.svelte index fea2c391c..4b9810cb8 100644 --- a/packages/site/src/routes/demo/list/_Check.svelte +++ b/packages/site/src/routes/demo/list/_Check.svelte @@ -2,7 +2,7 @@ (changeEvent = event)} + onSMUIListSelectionChange={(event) => (changeEvent = event)} > diff --git a/packages/site/src/routes/demo/list/_GraphicsDense.svelte b/packages/site/src/routes/demo/list/_GraphicsDense.svelte index 9d1154603..7abf5b3cf 100644 --- a/packages/site/src/routes/demo/list/_GraphicsDense.svelte +++ b/packages/site/src/routes/demo/list/_GraphicsDense.svelte @@ -1,19 +1,19 @@
- (clicked = 'Edit')}> + (clicked = 'Edit')}> edit Edit - (clicked = 'Send')}> + (clicked = 'Send')}> send Send - (clicked = 'Archive')}> + (clicked = 'Archive')}> archive Archive - (clicked = 'Delete')}> + (clicked = 'Delete')}> clear Delete diff --git a/packages/site/src/routes/demo/list/_Groups.svelte b/packages/site/src/routes/demo/list/_Groups.svelte index 6ca9bf5e0..cdddac982 100644 --- a/packages/site/src/routes/demo/list/_Groups.svelte +++ b/packages/site/src/routes/demo/list/_Groups.svelte @@ -2,39 +2,37 @@ Actors - (clicked = 'Bruce Willis')}> + (clicked = 'Bruce Willis')}> Bruce Willis - (clicked = 'Tom Hanks')}> + (clicked = 'Tom Hanks')}> Tom Hanks - (clicked = 'Jack Nicholson')}> + (clicked = 'Jack Nicholson')}> Jack Nicholson - (clicked = 'Leonardo DiCaprio')}> + (clicked = 'Leonardo DiCaprio')}> Leonardo DiCaprio - (clicked = 'Matt Damon')}> + (clicked = 'Matt Damon')}> Matt Damon Books - (clicked = 'To Kill a Mockingbird')}> + (clicked = 'To Kill a Mockingbird')}> To Kill a Mockingbird - (clicked = 'The Great Gatsby')}> + (clicked = 'The Great Gatsby')}> The Great Gatsby - (clicked = '1984')}> + (clicked = '1984')}> 1984 - (clicked = 'Catch-22')}> + (clicked = 'Catch-22')}> Catch-22 - (clicked = "Alice's Adventures in Wonderland")} - > + (clicked = "Alice's Adventures in Wonderland")}> Alice's Adventures in Wonderland diff --git a/packages/site/src/routes/demo/list/_MultiLevel.svelte b/packages/site/src/routes/demo/list/_MultiLevel.svelte index 6d4691203..107a0a502 100644 --- a/packages/site/src/routes/demo/list/_MultiLevel.svelte +++ b/packages/site/src/routes/demo/list/_MultiLevel.svelte @@ -1,33 +1,33 @@
- (clicked = 'Level 1 - 1')}> + (clicked = 'Level 1 - 1')}> Level 1 - 1 - (clicked = 'Level 1 - 2')}> + (clicked = 'Level 1 - 2')}> Level 1 - 2 - (clicked = 'Level 1 - 3')}> + (clicked = 'Level 1 - 3')}> Level 1 - 3 - (clicked = 'Level 2.1 - 1')}> + (clicked = 'Level 2.1 - 1')}> Level 2.1 - 1 - (clicked = 'Level 2.1 - 2')}> + (clicked = 'Level 2.1 - 2')}> Level 2.1 - 2 - (clicked = 'Level 1 - 4')}> + (clicked = 'Level 1 - 4')}> Level 1 - 4 - (clicked = 'Level 2.2 - 1')}> + (clicked = 'Level 2.2 - 1')}> Level 2.2 - 1 - (clicked = 'Level 2.2 - 2')}> + (clicked = 'Level 2.2 - 2')}> Level 2.2 - 2 diff --git a/packages/site/src/routes/demo/list/_Simple.svelte b/packages/site/src/routes/demo/list/_Simple.svelte index 9bd46e158..5ca54afa1 100644 --- a/packages/site/src/routes/demo/list/_Simple.svelte +++ b/packages/site/src/routes/demo/list/_Simple.svelte @@ -1,10 +1,10 @@
- (clicked = 'Cut')}>Cut - (clicked = 'Copy')}>Copy - (clicked = 'Paste')}>Paste + (clicked = 'Cut')}>Cut + (clicked = 'Copy')}>Copy + (clicked = 'Paste')}>Paste - (clicked = 'Delete')}>Delete + (clicked = 'Delete')}>Delete
diff --git a/packages/site/src/routes/demo/list/_TwoLineSelection.svelte b/packages/site/src/routes/demo/list/_TwoLineSelection.svelte index 3c017ba8f..f313c4063 100644 --- a/packages/site/src/routes/demo/list/_TwoLineSelection.svelte +++ b/packages/site/src/routes/demo/list/_TwoLineSelection.svelte @@ -9,7 +9,7 @@ > {#each options as item, i} (selectionIndex = i)} + onSMUIAction={() => (selectionIndex = i)} disabled={item.disabled} selected={selectionIndex === i} > @@ -35,7 +35,7 @@
Programmatically select:
{#each options as option, i} - {/each} @@ -44,7 +44,7 @@
Programmatically focus:
{#each options as option, i} - {/each} diff --git a/packages/site/src/routes/demo/menu-surface/_Anchored.svelte b/packages/site/src/routes/demo/menu-surface/_Anchored.svelte index a9863ff16..5e73d3946 100644 --- a/packages/site/src/routes/demo/menu-surface/_Anchored.svelte +++ b/packages/site/src/routes/demo/menu-surface/_Anchored.svelte @@ -1,12 +1,12 @@
- +
-
diff --git a/packages/site/src/routes/demo/menu-surface/_ManualAnchor.svelte b/packages/site/src/routes/demo/menu-surface/_ManualAnchor.svelte index 99209bbad..b3f2fef7c 100644 --- a/packages/site/src/routes/demo/menu-surface/_ManualAnchor.svelte +++ b/packages/site/src/routes/demo/menu-surface/_ManualAnchor.svelte @@ -15,7 +15,7 @@ }} bind:this={anchor} > - + {#each Array(4) as _unused, i} diff --git a/packages/site/src/routes/demo/menu-surface/_Static.svelte b/packages/site/src/routes/demo/menu-surface/_Static.svelte index 16c4216e5..a00616d61 100644 --- a/packages/site/src/routes/demo/menu-surface/_Static.svelte +++ b/packages/site/src/routes/demo/menu-surface/_Static.svelte @@ -1,16 +1,16 @@ - (clicked = 'Cut')}> + (clicked = 'Cut')}> Cut - (clicked = 'Copy')}> + (clicked = 'Copy')}> Copy - (clicked = 'Paste')}> + (clicked = 'Paste')}> Paste - (clicked = 'Delete')}> + (clicked = 'Delete')}> Delete diff --git a/packages/site/src/routes/demo/menu/_Anchored.svelte b/packages/site/src/routes/demo/menu/_Anchored.svelte index b3fba1681..43f5b33f9 100644 --- a/packages/site/src/routes/demo/menu/_Anchored.svelte +++ b/packages/site/src/routes/demo/menu/_Anchored.svelte @@ -1,20 +1,20 @@
- - (clicked = 'Cut')}> + (clicked = 'Cut')}> Cut - (clicked = 'Copy')}> + (clicked = 'Copy')}> Copy - (clicked = 'Paste')}> + (clicked = 'Paste')}> Paste - (clicked = 'Delete')}> + (clicked = 'Delete')}> Delete diff --git a/packages/site/src/routes/demo/menu/_Portal.svelte b/packages/site/src/routes/demo/menu/_Portal.svelte index ce8fe7b61..b67ea9cb4 100644 --- a/packages/site/src/routes/demo/menu/_Portal.svelte +++ b/packages/site/src/routes/demo/menu/_Portal.svelte @@ -5,21 +5,18 @@ -->
- - subMenu.setOpen(false)} - > + subMenu.setOpen(false)}> - (clicked = 'Cut')}> + (clicked = 'Cut')}> Cut - (clicked = 'Copy')}> + (clicked = 'Copy')}> Copy - (clicked = 'Paste')}> + (clicked = 'Paste')}> Paste @@ -70,7 +67,7 @@ > { + onSMUIAction={() => { clicked = 'Move'; menu.setOpen(false); }} @@ -79,7 +76,7 @@ { + onSMUIAction={() => { clicked = 'Delete'; menu.setOpen(false); }} diff --git a/packages/site/src/routes/demo/menu/_SelectionGroup.svelte b/packages/site/src/routes/demo/menu/_SelectionGroup.svelte index e16d33b60..85f83a487 100644 --- a/packages/site/src/routes/demo/menu/_SelectionGroup.svelte +++ b/packages/site/src/routes/demo/menu/_SelectionGroup.svelte @@ -1,5 +1,5 @@
- @@ -7,7 +7,7 @@ {#each ['Red', 'Green', 'Blue'] as item} (selected1 = item)} + onSMUIAction={() => (selected1 = item)} selected={selected1 === item} > @@ -21,7 +21,7 @@ {#each ['Small', 'Medium', 'Large'] as item} (selected2 = item)} + onSMUIAction={() => (selected2 = item)} selected={selected2 === item} > @@ -32,7 +32,7 @@ {/each} - (clicked = 'Save for Later')}> + (clicked = 'Save for Later')}> Save for Later diff --git a/packages/site/src/routes/demo/menu/_Static.svelte b/packages/site/src/routes/demo/menu/_Static.svelte index bdd2064bf..9024779ed 100644 --- a/packages/site/src/routes/demo/menu/_Static.svelte +++ b/packages/site/src/routes/demo/menu/_Static.svelte @@ -1,16 +1,16 @@ - (clicked = 'Cut')}> + (clicked = 'Cut')}> Cut - (clicked = 'Copy')}> + (clicked = 'Copy')}> Copy - (clicked = 'Paste')}> + (clicked = 'Paste')}> Paste - (clicked = 'Delete')}> + (clicked = 'Delete')}> Delete diff --git a/packages/site/src/routes/demo/menu/_TwoLineManunalAnchor.svelte b/packages/site/src/routes/demo/menu/_TwoLineManunalAnchor.svelte index 0194bcf17..aeea8028c 100644 --- a/packages/site/src/routes/demo/menu/_TwoLineManunalAnchor.svelte +++ b/packages/site/src/routes/demo/menu/_TwoLineManunalAnchor.svelte @@ -15,7 +15,7 @@ }} bind:this={anchor} > - - (clicked = 'Cut')}> + (clicked = 'Cut')}> Cut Copy to clipboard and remove. - (clicked = 'Copy')}> + (clicked = 'Copy')}> Copy Copy to clipboard. - (clicked = 'Paste')}> + (clicked = 'Paste')}> Paste Paste from clipboard. - (clicked = 'Delete')}> + (clicked = 'Delete')}> Delete Remove item. diff --git a/packages/site/src/routes/demo/quick-guide/+page.svelte b/packages/site/src/routes/demo/quick-guide/+page.svelte index 9a845ac16..4ead354db 100644 --- a/packages/site/src/routes/demo/quick-guide/+page.svelte +++ b/packages/site/src/routes/demo/quick-guide/+page.svelte @@ -26,8 +26,8 @@ > Events and Modifiers - SMUI supports listening to all events. You can also use modifiers - with the "$" syntax. + SMUI supports listening to all events. You can also add modifiers + from the @smui/common/events endpoint. diff --git a/packages/site/src/routes/demo/quick-guide/_EventsAndModifiers.svelte b/packages/site/src/routes/demo/quick-guide/_EventsAndModifiers.svelte index 3bd63e575..4ee0b9917 100644 --- a/packages/site/src/routes/demo/quick-guide/_EventsAndModifiers.svelte +++ b/packages/site/src/routes/demo/quick-guide/_EventsAndModifiers.svelte @@ -1,22 +1,22 @@
@@ -37,7 +37,7 @@
-
@@ -60,29 +60,16 @@
-

- -
- TypeScript event types can be tricky with SMUI components. This example shows - you how to get them right. -
- -
- -
- -
Mouse Button: {button}
-