@fy-/fws-vue 2.3.79 → 2.3.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -894,22 +894,19 @@ onUnmounted(() => {
894
894
 
895
895
  <!-- Edit Mode Controls (only if editEnabled is true) -->
896
896
  <div v-if="editEnabled && images.length > 0 && (mode === 'grid' || mode === 'mason' || mode === 'custom')">
897
- <!-- Edit Mode Toggle Button -->
898
- <div class="flex justify-end mb-3">
897
+ <!-- Edit Mode Toggle Button (only show when not in edit mode) -->
898
+ <div v-if="!localEditMode" class="flex justify-end mb-3">
899
899
  <button
900
- class="px-4 py-2 rounded-lg font-medium text-sm transition-colors"
901
- :class="localEditMode
902
- ? 'bg-red-600 hover:bg-red-700 text-white'
903
- : 'bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 text-gray-800 dark:text-gray-200'"
900
+ class="px-4 py-2 rounded-lg font-medium text-sm transition-colors bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 text-gray-800 dark:text-gray-200"
904
901
  @click="toggleEditMode"
905
902
  >
906
- {{ localEditMode ? cancelButtonText : editButtonText }}
903
+ {{ editButtonText }}
907
904
  </button>
908
905
  </div>
909
906
 
910
- <!-- Bulk Actions Bar (shown when items are selected) -->
907
+ <!-- Bulk Actions Bar TOP (shown when in edit mode) -->
911
908
  <div
912
- v-if="localEditMode && localSelectedItems.size > 0"
909
+ v-if="localEditMode"
913
910
  class="flex flex-wrap items-center justify-between gap-2 p-3 mb-3 bg-gray-100 dark:bg-gray-800 rounded-lg border border-gray-300 dark:border-gray-700"
914
911
  >
915
912
  <div class="flex items-center gap-3">
@@ -929,12 +926,22 @@ onUnmounted(() => {
929
926
  {{ clearSelectionText }}
930
927
  </button>
931
928
  </div>
932
- <button
933
- class="px-4 py-1.5 text-sm bg-red-600 hover:bg-red-700 text-white rounded-md transition-colors font-medium"
934
- @click="handleBulkAction"
935
- >
936
- {{ bulkActionText }}
937
- </button>
929
+ <div class="flex items-center gap-2">
930
+ <button
931
+ class="px-4 py-1.5 text-sm bg-gray-600 hover:bg-gray-700 text-white rounded-md transition-colors font-medium"
932
+ @click="toggleEditMode"
933
+ >
934
+ {{ cancelButtonText }}
935
+ </button>
936
+ <button
937
+ class="px-4 py-1.5 text-sm bg-red-600 hover:bg-red-700 text-white rounded-md transition-colors font-medium"
938
+ :disabled="localSelectedItems.size === 0"
939
+ :class="{ 'opacity-50 cursor-not-allowed': localSelectedItems.size === 0 }"
940
+ @click="handleBulkAction"
941
+ >
942
+ {{ bulkActionText }}
943
+ </button>
944
+ </div>
938
945
  </div>
939
946
  </div>
940
947
 
@@ -1082,6 +1089,47 @@ onUnmounted(() => {
1082
1089
  </div>
1083
1090
  </div>
1084
1091
 
1092
+ <!-- Bulk Actions Bar BOTTOM (duplicate bar below gallery when in edit mode) -->
1093
+ <div v-if="editEnabled && localEditMode && images.length > 0 && (mode === 'grid' || mode === 'mason' || mode === 'custom')" class="mt-3">
1094
+ <div
1095
+ class="flex flex-wrap items-center justify-between gap-2 p-3 bg-gray-100 dark:bg-gray-800 rounded-lg border border-gray-300 dark:border-gray-700"
1096
+ >
1097
+ <div class="flex items-center gap-3">
1098
+ <span class="text-sm font-medium">
1099
+ {{ localSelectedItems.size }} {{ selectedCountText }}
1100
+ </span>
1101
+ <button
1102
+ class="px-3 py-1 text-sm bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 rounded-md transition-colors"
1103
+ @click="selectAll"
1104
+ >
1105
+ {{ selectAllText }}
1106
+ </button>
1107
+ <button
1108
+ class="px-3 py-1 text-sm bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 rounded-md transition-colors"
1109
+ @click="clearSelection"
1110
+ >
1111
+ {{ clearSelectionText }}
1112
+ </button>
1113
+ </div>
1114
+ <div class="flex items-center gap-2">
1115
+ <button
1116
+ class="px-4 py-1.5 text-sm bg-gray-600 hover:bg-gray-700 text-white rounded-md transition-colors font-medium"
1117
+ @click="toggleEditMode"
1118
+ >
1119
+ {{ cancelButtonText }}
1120
+ </button>
1121
+ <button
1122
+ class="px-4 py-1.5 text-sm bg-red-600 hover:bg-red-700 text-white rounded-md transition-colors font-medium"
1123
+ :disabled="localSelectedItems.size === 0"
1124
+ :class="{ 'opacity-50 cursor-not-allowed': localSelectedItems.size === 0 }"
1125
+ @click="handleBulkAction"
1126
+ >
1127
+ {{ bulkActionText }}
1128
+ </button>
1129
+ </div>
1130
+ </div>
1131
+ </div>
1132
+
1085
1133
  <!-- Button Mode -->
1086
1134
  <button
1087
1135
  v-if="mode === 'button'"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.3.79",
3
+ "version": "2.3.80",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",