lkt-item-crud 2.0.38 → 2.0.39

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.
@@ -1,12 +1,12 @@
1
1
  import { ButtonConfig, FormUiConfig, ItemCrudButtonNavPosition, ItemCrudConfig, ItemCrudMode, ItemCrudView, LktObject, ModalConfig, ModificationView, NotificationType } from 'lkt-vue-kernel';
2
2
  declare var __VLS_17: {
3
- canUpdate: boolean | undefined;
4
- canDrop: boolean | undefined;
5
- perms: string[] | undefined;
3
+ canUpdate: any;
4
+ canDrop: any;
5
+ perms: any;
6
6
  }, __VLS_19: {
7
- canUpdate: boolean | undefined;
8
- canDrop: boolean | undefined;
9
- perms: string[] | undefined;
7
+ canUpdate: any;
8
+ canDrop: any;
9
+ perms: any;
10
10
  }, __VLS_25: {
11
11
  item: LktObject;
12
12
  loading: boolean;
@@ -14,21 +14,21 @@ declare var __VLS_17: {
14
14
  item: LktObject;
15
15
  loading: boolean;
16
16
  }, __VLS_40: {
17
- canUpdate: boolean | undefined;
18
- canDrop: boolean | undefined;
19
- perms: string[] | undefined;
17
+ canUpdate: any;
18
+ canDrop: any;
19
+ perms: any;
20
20
  }, __VLS_42: {
21
- canUpdate: boolean | undefined;
22
- canDrop: boolean | undefined;
23
- perms: string[] | undefined;
21
+ canUpdate: any;
22
+ canDrop: any;
23
+ perms: any;
24
24
  }, __VLS_55: {
25
- canUpdate: boolean | undefined;
26
- canDrop: boolean | undefined;
27
- perms: string[] | undefined;
25
+ canUpdate: any;
26
+ canDrop: any;
27
+ perms: any;
28
28
  }, __VLS_57: {
29
- canUpdate: boolean | undefined;
30
- canDrop: boolean | undefined;
31
- perms: string[] | undefined;
29
+ canUpdate: any;
30
+ canDrop: any;
31
+ perms: any;
32
32
  }, __VLS_74: string, __VLS_75: {}, __VLS_77: {
33
33
  item: LktObject;
34
34
  loading: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkt-item-crud",
3
- "version": "2.0.38",
3
+ "version": "2.0.39",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "module": "./dist/build.js",
@@ -153,15 +153,6 @@
153
153
  try {
154
154
  const r: HTTPResponse = await httpCall(props.readResource, props.readData);
155
155
 
156
- r.notifications?.forEach(notification => {
157
- if (notification.category === 'toast'){
158
- openToast(<ToastConfig>{
159
- positionX: ToastPositionX.Right,
160
- ...notification.payload,
161
- });
162
- }
163
- })
164
-
165
156
  debug('fetchItem -> response', r);
166
157
  isLoading.value = false;
167
158
  httpStatus.value = r.httpStatus;
@@ -329,14 +320,6 @@
329
320
  },
330
321
  onCreate = ($event: PointerEvent, r: HTTPResponse) => {
331
322
  debug('onCreate');
332
- r.notifications?.forEach(notification => {
333
- if (notification.category === 'toast'){
334
- openToast(<ToastConfig>{
335
- positionX: ToastPositionX.Right,
336
- ...notification.payload,
337
- });
338
- }
339
- })
340
323
 
341
324
  if (!ensureValidResourceSave(r, safeCreateButton.value.resource)) {
342
325
  if (props.notificationType === NotificationType.Toast) {
@@ -370,15 +353,6 @@
370
353
  onUpdate = ($event: PointerEvent, r: HTTPResponse) => {
371
354
  debug('onUpdate');
372
355
 
373
- r.notifications?.forEach(notification => {
374
- if (notification.category === 'toast'){
375
- openToast(<ToastConfig>{
376
- positionX: ToastPositionX.Right,
377
- ...notification.payload,
378
- });
379
- }
380
- })
381
-
382
356
  if (!ensureValidResourceSave(r, safeUpdateButton.value.resource)) {
383
357
  if (props.notificationType === NotificationType.Toast) {
384
358
  openToast(<ToastConfig>{
@@ -408,14 +382,6 @@
408
382
  },
409
383
  onDrop = ($event: PointerEvent, r: HTTPResponse) => {
410
384
  debug('onDrop');
411
- r.notifications?.forEach(notification => {
412
- if (notification.category === 'toast'){
413
- openToast(<ToastConfig>{
414
- positionX: ToastPositionX.Right,
415
- ...notification.payload,
416
- });
417
- }
418
- })
419
385
 
420
386
  if (!ensureValidResourceSave(r, safeDropButton.value.resource)) {
421
387
  if (props.notificationType === NotificationType.Toast) {