sprintify-ui 0.6.6 → 0.6.7

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.
@@ -8397,7 +8397,7 @@ const Dd = /* @__PURE__ */ Se({
8397
8397
  setup(n, { expose: t, emit: e }) {
8398
8398
  const r = n, i = oe(null), o = F(() => r.modelValue ? r.options.find((l) => l[r.primaryKey] === r.modelValue) : null);
8399
8399
  function a(l) {
8400
- l ? e("update:modelValue", l[r.primaryKey]) : e("update:modelValue", null);
8400
+ l ? e("update:modelValue", l[r.primaryKey], l) : e("update:modelValue", null, null);
8401
8401
  }
8402
8402
  return t({
8403
8403
  focus: () => {
@@ -8562,7 +8562,7 @@ const Dd = /* @__PURE__ */ Se({
8562
8562
  { immediate: !0 }
8563
8563
  );
8564
8564
  function l(s) {
8565
- s ? (a.value = s, e("update:modelValue", s[r.primaryKey])) : (a.value = null, e("update:modelValue", null));
8565
+ s ? (a.value = s, e("update:modelValue", s[r.primaryKey], s)) : (a.value = null, e("update:modelValue", null, null));
8566
8566
  }
8567
8567
  return t({
8568
8568
  focus: () => {
@@ -30692,7 +30692,8 @@ const LI = ["onClick"], jI = { class: "px-2 flex items-center" }, $I = { class:
30692
30692
  function a(l) {
30693
30693
  o.value = l, e(
30694
30694
  "update:modelValue",
30695
- l.map((s) => s[r.primaryKey])
30695
+ l.map((s) => s[r.primaryKey]),
30696
+ l
30696
30697
  );
30697
30698
  }
30698
30699
  return t({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
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
 
@@ -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