diff --git a/package.json b/package.json index 70506c24..be3a0b32 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "dependencies": { "@tanstack/svelte-query": "^5.87.1", "bits-ui": "^2.9.6", + "fluid-dnd": "^2.6.2", "modern-normalize": "^3.0.1", "zod": "^4.1.5" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dc7b6124..cd661096 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: bits-ui: specifier: ^2.9.6 version: 2.9.6(@internationalized/date@3.9.0)(svelte@5.38.7) + fluid-dnd: + specifier: ^2.6.2 + version: 2.6.2 modern-normalize: specifier: ^3.0.1 version: 3.0.1 @@ -1338,6 +1341,9 @@ packages: flatted@3.3.3: resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} + fluid-dnd@2.6.2: + resolution: {integrity: sha512-NB11wa6QmKkelLi/PrV95nfXM0oA3lrynQD91VrLbhk2BEfH7PLTUMjqlSkavu+fqPlPVCL8HFhYsfv9GVqd7Q==} + fsevents@2.3.2: resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -3332,6 +3338,8 @@ snapshots: flatted@3.3.3: {} + fluid-dnd@2.6.2: {} + fsevents@2.3.2: optional: true diff --git a/src/lib/components/grids/CharacterGrid.svelte b/src/lib/components/grids/CharacterGrid.svelte index 969a94d6..87c0e5f0 100644 --- a/src/lib/components/grids/CharacterGrid.svelte +++ b/src/lib/components/grids/CharacterGrid.svelte @@ -1,61 +1,75 @@
- +
diff --git a/src/lib/components/grids/SummonGrid.svelte b/src/lib/components/grids/SummonGrid.svelte index 317e214d..e09d81d5 100644 --- a/src/lib/components/grids/SummonGrid.svelte +++ b/src/lib/components/grids/SummonGrid.svelte @@ -1,120 +1,133 @@
-
-
-
Main
- -
+
+
+
Main
+ +
-
-
Summons
-
    - {#each grid as s, i} -
  • - -
  • - {/each} -
-
+
+
Summons
+
    + {#each Array(4) as _, i} + {@const summon = summons.find((s) => s.position === i)} +
  • + +
  • + {/each} +
+
-
-
Friend
- -
-
- +
+
Friend
+ +
+
+
diff --git a/src/lib/components/grids/WeaponGrid.svelte b/src/lib/components/grids/WeaponGrid.svelte index 669fa555..2841bd81 100644 --- a/src/lib/components/grids/WeaponGrid.svelte +++ b/src/lib/components/grids/WeaponGrid.svelte @@ -1,124 +1,135 @@
-
-
- -
+
+
+ +
-
    - {#each grid as w, i} -
  • - -
  • - {/each} -
-
- {#if raidExtra} - - {/if} - {#if showGuidebooks} - - {/if} +
    + {#each Array(9) as _, i} + {@const weapon = weapons.find((w) => w.position === i)} +
  • + +
  • + {/each} +
+
+ {#if raidExtra} + + {/if} + {#if showGuidebooks} + + {/if}