sprintify-ui 0.6.6 → 0.6.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -136,9 +136,9 @@ const model = computed(() => {
136
136
 
137
137
  function onUpdate(newModel: Option | null) {
138
138
  if (!newModel) {
139
- emit('update:modelValue', null);
139
+ emit('update:modelValue', null, null);
140
140
  } else {
141
- emit('update:modelValue', newModel[props.primaryKey]);
141
+ emit('update:modelValue', newModel[props.primaryKey], newModel);
142
142
  }
143
143
  }
144
144
 
@@ -181,10 +181,10 @@ watch(
181
181
  function onUpdate(newModel: Option | null) {
182
182
  if (!newModel) {
183
183
  model.value = null;
184
- emit('update:modelValue', null);
184
+ emit('update:modelValue', null, null);
185
185
  } else {
186
186
  model.value = newModel;
187
- emit('update:modelValue', newModel[props.primaryKey]);
187
+ emit('update:modelValue', newModel[props.primaryKey], newModel);
188
188
  }
189
189
  }
190
190
 
@@ -24,7 +24,7 @@
24
24
  name="loading"
25
25
  >
26
26
  <div
27
- class="absolute inset-0 flex h-full w-full items-center justify-center"
27
+ class="absolute z-[1] inset-0 flex h-full w-full items-center justify-center"
28
28
  >
29
29
  <div
30
30
  class="absolute inset-0 h-full w-full"
@@ -122,7 +122,8 @@ function onUpdate(newModels: Option[]) {
122
122
  models.value = newModels;
123
123
  emit(
124
124
  'update:modelValue',
125
- newModels.map((m) => m[props.primaryKey])
125
+ newModels.map((m) => m[props.primaryKey]),
126
+ newModels,
126
127
  );
127
128
  }
128
129