lkt-item-crud 1.1.8 → 1.1.10

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/dist/build.js CHANGED
@@ -6,7 +6,7 @@ const T = class T {
6
6
  T.debugEnabled = !1;
7
7
  let L = T;
8
8
  const p = (...u) => {
9
- L.debugEnabled && console.info("[LktHttpClient] ", ...u);
9
+ L.debugEnabled && console.info("[LktItemCrud] ", ...u);
10
10
  }, Oe = (u = !0) => {
11
11
  L.debugEnabled = u;
12
12
  }, ve = { class: "lkt-item-crud" }, fe = {
@@ -106,7 +106,7 @@ const p = (...u) => {
106
106
  C.value && typeof C.value.click == "function" && C.value.click();
107
107
  }
108
108
  });
109
- const H = d(() => !e.hiddenDrop && !o.value && v.value && f.value), A = d(() => o.value ? !1 : a.value ? !0 : !e.hiddenSave && v.value && f.value), P = d(() => !o.value && !a.value && f.value), oe = d(() => !e.hiddenButtons && (A.value || H.value || P.value));
109
+ const A = d(() => !e.hiddenDrop && !o.value && v.value && f.value), H = d(() => o.value ? !1 : a.value ? !0 : !e.hiddenSave && v.value && f.value), P = d(() => !o.value && !a.value && f.value), oe = d(() => !e.hiddenButtons && (H.value || A.value || P.value));
110
110
  return (t, l) => {
111
111
  const b = w("lkt-button"), re = w("lkt-field-switch"), z = w("lkt-http-info"), de = w("lkt-loader");
112
112
  return c(), h("article", ve, [
@@ -145,7 +145,7 @@ const p = (...u) => {
145
145
  ]),
146
146
  _: 3
147
147
  }, 8, ["disabled", "confirm-modal", "confirm-data", "resource", "resource-data"])), [
148
- [I, H.value]
148
+ [I, A.value]
149
149
  ]),
150
150
  V(Q(b, {
151
151
  ref: (y) => C.value = y,
@@ -171,7 +171,7 @@ const p = (...u) => {
171
171
  ]),
172
172
  _: 3
173
173
  }, 8, ["disabled", "confirm-modal", "confirm-data", "resource", "resource-data"]), [
174
- [I, A.value]
174
+ [I, H.value]
175
175
  ]),
176
176
  V(Q(re, {
177
177
  modelValue: v.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-item-crud",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "./dist/build.js",
@@ -202,12 +202,12 @@ const onDrop = ($event: PointerEvent, r: HTTPResponse) => {
202
202
  if (emits === 'create') {
203
203
  if (typeof props.onCreate === 'function') {
204
204
  debug('onSave -> trigger onCreate callback');
205
- props.onCreate();
205
+ props.onCreate(r);
206
206
  }
207
207
  } else {
208
208
  if (typeof props.onUpdate === 'function') {
209
209
  debug('onSave -> trigger onUpdate callback');
210
- props.onUpdate();
210
+ props.onUpdate(r);
211
211
  }
212
212
  }
213
213
  emit(emits, r)