@fy-/fws-vue 2.3.83 → 2.3.85

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.
@@ -97,6 +97,10 @@ const props = withDefaults(
97
97
  selectAllText?: string
98
98
  clearSelectionText?: string
99
99
  selectedCountText?: string
100
+ // Save order support
101
+ saveOrderText?: string
102
+ onSaveOrder?: Function
103
+ showSaveOrder?: boolean
100
104
  }>(),
101
105
  {
102
106
  modelValue: 0,
@@ -123,6 +127,10 @@ const props = withDefaults(
123
127
  selectAllText: 'Select All',
124
128
  clearSelectionText: 'Clear',
125
129
  selectedCountText: 'selected',
130
+ // Save order defaults
131
+ saveOrderText: 'Save Order',
132
+ onSaveOrder: undefined,
133
+ showSaveOrder: false,
126
134
  },
127
135
  )
128
136
 
@@ -933,6 +941,13 @@ onUnmounted(() => {
933
941
  >
934
942
  {{ cancelButtonText }}
935
943
  </button>
944
+ <button
945
+ v-if="showSaveOrder && onSaveOrder"
946
+ class="px-4 py-1.5 text-sm bg-blue-600 hover:bg-blue-700 text-white rounded-md transition-colors font-medium"
947
+ @click="onSaveOrder()"
948
+ >
949
+ {{ saveOrderText }}
950
+ </button>
936
951
  <button
937
952
  class="px-4 py-1.5 text-sm bg-red-600 hover:bg-red-700 text-white rounded-md transition-colors font-medium"
938
953
  :disabled="localSelectedItems.size === 0"
@@ -1118,6 +1133,13 @@ onUnmounted(() => {
1118
1133
  >
1119
1134
  {{ cancelButtonText }}
1120
1135
  </button>
1136
+ <button
1137
+ v-if="showSaveOrder && onSaveOrder"
1138
+ class="px-4 py-1.5 text-sm bg-blue-600 hover:bg-blue-700 text-white rounded-md transition-colors font-medium"
1139
+ @click="onSaveOrder()"
1140
+ >
1141
+ {{ saveOrderText }}
1142
+ </button>
1121
1143
  <button
1122
1144
  class="px-4 py-1.5 text-sm bg-red-600 hover:bg-red-700 text-white rounded-md transition-colors font-medium"
1123
1145
  :disabled="localSelectedItems.size === 0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.3.83",
3
+ "version": "2.3.85",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",
@@ -29,9 +29,9 @@
29
29
  "peerDependencies": {
30
30
  "@fy-/fws-js": "^x.x.x",
31
31
  "@fy-/fws-types": "^x.x.x",
32
- "@unhead/schema-org": "1.9.x",
33
- "@unhead/ssr": "^1.9.x",
34
- "@unhead/vue": "^1.9.x",
32
+ "@unhead/schema-org": "^1.9.x",
33
+ "@unhead/ssr": "^1.x.x",
34
+ "@unhead/vue": "^1.x.x",
35
35
  "@vuelidate/core": "^2.x.x",
36
36
  "@vuelidate/validators": "^2.x.x",
37
37
  "@vueuse/core": "^x.x.x",