Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency svelte to v4 #194

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
768 changes: 427 additions & 341 deletions etp-front/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions etp-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"prettier": "^3.0.0",
"prettier-plugin-svelte": "^3.2.2",
"storybook": "^7.6.17",
"svelte": "^3.37.0",
"svelte": "^4.0.0",
"svelte-loader": "^3.2.0",
"svelte-preprocess": "^3.3.0",
"svelte-preprocess": "^5.0.3",
"tailwindcss": "^1.7.6",
"webpack": "^5.90.3",
"webpack-bundle-analyzer": "^3.8.0",
Expand Down Expand Up @@ -91,4 +91,4 @@
"include": "src",
"exclude": "src/**/*_test.js"
}
}
}
2 changes: 1 addition & 1 deletion etp-front/src/components/DropdownList/DropdownList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<!-- purgecss: active -->
<ol
bind:this={listElement}
transition:slide|local={{ duration: 200 }}
transition:slide={{ duration: 200 }}
on:introend={() => scrollIndexToView(Maybe.orSome(0, active))}>
{#each items as item, index}
<li
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</style>

<!-- purgecss: active -->
<ol transition:slide|local={{ duration: 200 }}>
<ol transition:slide={{ duration: 200 }}>
{#each items as item}
<HierarchicalNode {onclick} {item} {labelLens} {leafsLens} />
{/each}
Expand Down
2 changes: 1 addition & 1 deletion etp-front/src/components/FlashMessage/FlashMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{#if !R.isEmpty(messages)}
<div class="w-full min-h-3em">
{#each messages as message}
<div transition:fly|local={{ y: 50 }}>
<div transition:fly={{ y: 50 }}>
<Alert
type={message.type}
text={message.text}
Expand Down
2 changes: 1 addition & 1 deletion etp-front/src/components/Overlay/Overlay.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<slot name="content" />
</div>
{#if overlay}
<div transition:fade|local={{ duration: 50 }} class="overlay">
<div transition:fade={{ duration: 50 }} class="overlay">
<slot name="overlay-content" />
</div>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion etp-front/src/pages/energiatodistus/ToolBar/toolbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
{/each}
{#if pendingExecution}
<div
transition:fade|local={{ duration: 50 }}
transition:fade={{ duration: 50 }}
class="absolute bg-light opacity-75 top-0 bottom-0 left-0 right-0 flex flex-wrap justify-center content-center">
<Spinner />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

{#if Validation.isIlmanvaihtoKuvausRequired(energiatodistus)}
<div
transition:slide|local={{ duration: 200 }}
transition:slide={{ duration: 200 }}
on:introend={evt => {
const input = evt.target.getElementsByTagName('input')[0];
input.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

{#if Validation.isLammitysmuoto1KuvausRequired(energiatodistus)}
<div
transition:slide|local={{ duration: 200 }}
transition:slide={{ duration: 200 }}
on:introend={evt => {
const input = evt.target.getElementsByTagName('input')[0];
input.focus();
Expand Down Expand Up @@ -95,7 +95,7 @@

{#if Validation.isLammitysmuoto2KuvausRequired(energiatodistus)}
<div
transition:slide|local={{ duration: 200 }}
transition:slide={{ duration: 200 }}
on:introend={evt => {
const input = evt.target.getElementsByTagName('input')[0];
input.focus();
Expand Down Expand Up @@ -127,7 +127,7 @@

{#if Validation.isLammonjakoKuvausRequired(energiatodistus)}
<div
transition:slide|local={{ duration: 200 }}
transition:slide={{ duration: 200 }}
on:introend={evt => {
const input = evt.target.getElementsByTagName('input')[0];
input.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@
{i18n(i18nRoot + '.ehdotus.info-p3-3')}
</p>
<div class="flex flex-col gap-x-8 mt-2">
<div
class="w-full py-4 relative"
transition:slide|local={{ duration: 200 }}>
<div class="w-full py-4 relative" transition:slide={{ duration: 200 }}>
<div class="overflow-auto">
<table class="etp-table">
<thead class="etp-table--thead">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@
<div class="flex flex-col gap-x-8 mt-2">
{#if !overlay}
{#each Maybe.toArray(korvaavaEnergiatodistus) as et}
<div
class="w-full py-4 relative"
transition:slide|local={{ duration: 200 }}>
<div class="w-full py-4 relative" transition:slide={{ duration: 200 }}>
<EtTable energiatodistus={et} {whoami} {postinumerot} />
{#if Maybe.exists(ET.isDraft, korvaavaEnergiatodistus)}
<p class="text-sm flex mt-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
{#if checked}
<div
class="flex flex-col gap-x-8 mt-2"
transition:slide|local={{ duration: 200 }}>
transition:slide={{ duration: 200 }}>
{#if enabled}
<div class="w-full lg:w-1/2 py-2" on:input={updateQuery}>
<Input
Expand All @@ -178,7 +178,7 @@
{#if !searching}
<div class="w-full">
{#each Maybe.toArray(korvattavaEnergiatodistus) as et}
<div class="w-full py-4" transition:slide|local={{ duration: 200 }}>
<div class="w-full py-4" transition:slide={{ duration: 200 }}>
<EtTable energiatodistus={et} {whoami} {postinumerot} />
</div>
{/each}
Expand Down
2 changes: 1 addition & 1 deletion etp-front/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
'@Utility': path.resolve(__dirname, 'src/utils'),
'@Language': path.resolve(__dirname, 'src/language'),
'@': path.resolve(__dirname, 'src'),
svelte: path.resolve('node_modules', 'svelte')
svelte: path.resolve('node_modules', 'svelte/src/runtime')
},
mainFields: ['svelte', 'browser', 'module', 'main'],
// https://github.com/sveltejs/svelte-loader?tab=readme-ov-file#resolveconditionnames
Expand Down
Loading