lkt-item-crud 2.0.36 → 2.0.37
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 +12 -6
- package/package.json +1 -1
- package/src/lib-components/LktItemCrud.vue +11 -2
package/dist/build.js
CHANGED
|
@@ -661,7 +661,8 @@ const T = (...P) => {
|
|
|
661
661
|
text: k.defaultCreateErrorText,
|
|
662
662
|
details: k.defaultCreateErrorDetails,
|
|
663
663
|
icon: k.defaultCreateErrorIcon,
|
|
664
|
-
positionX: me.Right
|
|
664
|
+
positionX: me.Right,
|
|
665
|
+
...o.toast
|
|
665
666
|
});
|
|
666
667
|
return;
|
|
667
668
|
}
|
|
@@ -669,7 +670,8 @@ const T = (...P) => {
|
|
|
669
670
|
text: k.defaultCreateSuccessText,
|
|
670
671
|
details: k.defaultCreateSuccessDetails,
|
|
671
672
|
icon: k.defaultCreateSuccessIcon,
|
|
672
|
-
positionX: me.Right
|
|
673
|
+
positionX: me.Right,
|
|
674
|
+
...o.toast
|
|
673
675
|
}), Ke(o, a.redirectOnCreate), T("onCreate -> beforeEmitCreate"), D("create", o);
|
|
674
676
|
}, Ee = (e, o) => {
|
|
675
677
|
if (T("onUpdate"), !Fe(o, W.value.resource)) {
|
|
@@ -677,7 +679,8 @@ const T = (...P) => {
|
|
|
677
679
|
text: k.defaultUpdateErrorText,
|
|
678
680
|
details: k.defaultUpdateErrorDetails,
|
|
679
681
|
icon: k.defaultUpdateErrorIcon,
|
|
680
|
-
positionX: me.Right
|
|
682
|
+
positionX: me.Right,
|
|
683
|
+
...o.toast
|
|
681
684
|
});
|
|
682
685
|
return;
|
|
683
686
|
}
|
|
@@ -685,7 +688,8 @@ const T = (...P) => {
|
|
|
685
688
|
text: k.defaultUpdateSuccessText,
|
|
686
689
|
details: k.defaultUpdateSuccessDetails,
|
|
687
690
|
icon: k.defaultUpdateSuccessIcon,
|
|
688
|
-
positionX: me.Right
|
|
691
|
+
positionX: me.Right,
|
|
692
|
+
...o.toast
|
|
689
693
|
}), Ke(o), D("update", o);
|
|
690
694
|
}, Me = (e, o) => {
|
|
691
695
|
if (T("onDrop"), !Fe(o, G.value.resource)) {
|
|
@@ -693,7 +697,8 @@ const T = (...P) => {
|
|
|
693
697
|
text: k.defaultDropErrorText,
|
|
694
698
|
details: k.defaultDropErrorDetails,
|
|
695
699
|
icon: k.defaultDropErrorIcon,
|
|
696
|
-
positionX: me.Right
|
|
700
|
+
positionX: me.Right,
|
|
701
|
+
...o.toast
|
|
697
702
|
});
|
|
698
703
|
return;
|
|
699
704
|
}
|
|
@@ -701,7 +706,8 @@ const T = (...P) => {
|
|
|
701
706
|
text: k.defaultDropSuccessText,
|
|
702
707
|
details: k.defaultDropSuccessDetails,
|
|
703
708
|
icon: k.defaultDropSuccessIcon,
|
|
704
|
-
positionX: me.Right
|
|
709
|
+
positionX: me.Right,
|
|
710
|
+
...o.toast
|
|
705
711
|
}), D("drop", o), a.view === ze.Modal && (T("onDrop -> close modal"), ct(a.modalConfig.modalName, a.modalConfig.modalKey)), typeof a.redirectOnDrop < "u") {
|
|
706
712
|
let q = a.redirectOnDrop;
|
|
707
713
|
typeof a.redirectOnDrop == "function" && (q = a.redirectOnDrop()), i.push(q);
|
package/package.json
CHANGED
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
import { debug } from '../functions/debug';
|
|
6
6
|
import {
|
|
7
7
|
ButtonConfig,
|
|
8
|
-
ensureButtonConfig,
|
|
8
|
+
ensureButtonConfig,
|
|
9
|
+
extractI18nValue,
|
|
10
|
+
FormUiConfig,
|
|
9
11
|
getDefaultValues,
|
|
10
|
-
getFormDataState,
|
|
12
|
+
getFormDataState,
|
|
13
|
+
getFormSlotKeys,
|
|
11
14
|
ItemCrud,
|
|
12
15
|
ItemCrudButtonNavPosition,
|
|
13
16
|
ItemCrudConfig,
|
|
@@ -323,6 +326,7 @@
|
|
|
323
326
|
details: LktSettings.defaultCreateErrorDetails,
|
|
324
327
|
icon: LktSettings.defaultCreateErrorIcon,
|
|
325
328
|
positionX: ToastPositionX.Right,
|
|
329
|
+
...r.toast,
|
|
326
330
|
});
|
|
327
331
|
}
|
|
328
332
|
return;
|
|
@@ -337,6 +341,7 @@
|
|
|
337
341
|
details: LktSettings.defaultCreateSuccessDetails,
|
|
338
342
|
icon: LktSettings.defaultCreateSuccessIcon,
|
|
339
343
|
positionX: ToastPositionX.Right,
|
|
344
|
+
...r.toast,
|
|
340
345
|
});
|
|
341
346
|
}
|
|
342
347
|
doAutoReloadId(r, props.redirectOnCreate);
|
|
@@ -352,6 +357,7 @@
|
|
|
352
357
|
details: LktSettings.defaultUpdateErrorDetails,
|
|
353
358
|
icon: LktSettings.defaultUpdateErrorIcon,
|
|
354
359
|
positionX: ToastPositionX.Right,
|
|
360
|
+
...r.toast,
|
|
355
361
|
});
|
|
356
362
|
}
|
|
357
363
|
return;
|
|
@@ -365,6 +371,7 @@
|
|
|
365
371
|
details: LktSettings.defaultUpdateSuccessDetails,
|
|
366
372
|
icon: LktSettings.defaultUpdateSuccessIcon,
|
|
367
373
|
positionX: ToastPositionX.Right,
|
|
374
|
+
...r.toast,
|
|
368
375
|
});
|
|
369
376
|
}
|
|
370
377
|
doAutoReloadId(r);
|
|
@@ -379,6 +386,7 @@
|
|
|
379
386
|
details: LktSettings.defaultDropErrorDetails,
|
|
380
387
|
icon: LktSettings.defaultDropErrorIcon,
|
|
381
388
|
positionX: ToastPositionX.Right,
|
|
389
|
+
...r.toast,
|
|
382
390
|
});
|
|
383
391
|
}
|
|
384
392
|
return;
|
|
@@ -389,6 +397,7 @@
|
|
|
389
397
|
details: LktSettings.defaultDropSuccessDetails,
|
|
390
398
|
icon: LktSettings.defaultDropSuccessIcon,
|
|
391
399
|
positionX: ToastPositionX.Right,
|
|
400
|
+
...r.toast,
|
|
392
401
|
});
|
|
393
402
|
}
|
|
394
403
|
emit('drop', r);
|