@v1nt1248/3nclient-lib 0.2.85 → 0.2.87

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.
@@ -20,7 +20,7 @@ import { default as Ui3nNotification } from './ui3n-notification/ui3n-notificati
20
20
  import { default as Ui3nTableSortIcon } from './ui3n-table/ui3n-table-sort-icon.vue';
21
21
  import { default as Ui3nTable } from './ui3n-table/ui3n-table.vue';
22
22
  import { Ui3nTableSortIconProps, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nTableExpose } from './ui3n-table/types';
23
- import { default as Ui3nDialogProvider } from '../plugins/dialogs/ui3n-dialog-provider.vue';
23
+ import { default as Ui3nDialogProvider } from './ui3n-dialog/ui3n-dialog-provider.vue';
24
24
  import { default as Ui3nDialog } from './ui3n-dialog/ui3n-dialog.vue';
25
25
  import { Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogComponentSlots, Ui3nDialogEvent } from './ui3n-dialog/types';
26
26
  import { default as Ui3nMenu } from './ui3n-menu/ui3n-menu.vue';
@@ -34,4 +34,5 @@ export interface Ui3nDialogComponentSlots {
34
34
  header?: () => VNode;
35
35
  body: () => VNode;
36
36
  actions?: () => VNode;
37
+ loading?: () => VNode;
37
38
  }
@@ -4,7 +4,7 @@ declare const _default: import('../../../vue/dist/vue.esm-bundler.js').DefineCom
4
4
  duration: number;
5
5
  withIcon: boolean;
6
6
  onClose: () => void;
7
- onOpen: () => void;
8
7
  position: "left" | "center" | "right";
8
+ onOpen: () => void;
9
9
  }, {}, {}, {}, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
10
10
  export default _default;
package/dist/index.d.ts CHANGED
@@ -49,11 +49,11 @@ declare module '../vue/dist/vue.esm-bundler.js' {
49
49
  interface ComponentCustomProperties {
50
50
  $openDialog: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
51
51
  event: Ui3nDialogEvent;
52
- data?: V | null | Event | undefined;
52
+ data?: V;
53
53
  }>;
54
54
  $closeDialog: <V>(id: string, value: {
55
55
  event: Ui3nDialogEvent;
56
- data?: V | null | Event | undefined;
56
+ data?: V;
57
57
  }) => void;
58
58
  $closeDialogs: () => void;
59
59
  dialogStack: Reactive<DialogOptions<any>[]>;
@@ -108,11 +108,11 @@ declare module 'pinia' {
108
108
  $dialogs: {
109
109
  open: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
110
110
  event: Ui3nDialogEvent;
111
- data?: V | null | Event | undefined;
111
+ data?: V;
112
112
  }>;
113
113
  close: <V>(id: string, value: {
114
114
  event: Ui3nDialogEvent;
115
- data?: V | null | Event | undefined;
115
+ data?: V;
116
116
  }) => void;
117
117
  closeAll: () => void;
118
118
  dialogStack: Reactive<DialogOptions<any>[]>;
@@ -5,11 +5,11 @@ import { ExtractComponentProps } from '../../types';
5
5
  export declare const dialogService: {
6
6
  $openDialog<V>(component: Component, props: ExtractComponentProps<Component>): Promise<{
7
7
  event: Ui3nDialogEvent;
8
- data?: V | null | Event | undefined;
8
+ data?: V;
9
9
  }>;
10
10
  $closeDialog<V>(id: string, value: {
11
11
  event: Ui3nDialogEvent;
12
- data?: V | null | Event | undefined;
12
+ data?: V;
13
13
  }): void;
14
14
  $closeDialogs(): void;
15
15
  readonly dialogStack: Reactive<DialogOptions<any>[]>;
@@ -22,11 +22,11 @@ declare module '@vue/runtime-core' {
22
22
  interface ComponentCustomProperties {
23
23
  $openDialog: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
24
24
  event: Ui3nDialogEvent;
25
- data?: V | null | Event | undefined;
25
+ data?: V;
26
26
  }>;
27
27
  $closeDialog: <V>(id: string, value: {
28
28
  event: Ui3nDialogEvent;
29
- data?: V | null | Event | undefined;
29
+ data?: V;
30
30
  }) => void;
31
31
  $closeDialogs: () => void;
32
32
  dialogStack: Reactive<DialogOptions<any>[]>;
@@ -6,11 +6,11 @@ export declare function storeDialogs(context: any): {
6
6
  $dialogs: {
7
7
  open: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
8
8
  event: Ui3nDialogEvent;
9
- data?: V | null | Event | undefined;
9
+ data?: V;
10
10
  }>;
11
11
  close: <V>(id: string, value: {
12
12
  event: Ui3nDialogEvent;
13
- data?: V | null | Event | undefined;
13
+ data?: V;
14
14
  }) => void;
15
15
  closeAll: () => void;
16
16
  dialogStack: Reactive<DialogOptions<any>[]>;
@@ -7,17 +7,17 @@ export interface DialogOptions<V> {
7
7
  props: ExtractComponentProps<Component>;
8
8
  resolve: (value: {
9
9
  event: Ui3nDialogEvent;
10
- data?: V | null | Event | undefined;
10
+ data?: V;
11
11
  }) => void;
12
12
  }
13
13
  export interface DialogsPlugin {
14
14
  $openDialog: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
15
15
  event: Ui3nDialogEvent;
16
- data?: V | null | Event | undefined;
16
+ data?: V;
17
17
  }>;
18
18
  $closeDialog: <V>(id: string, value: {
19
19
  event: Ui3nDialogEvent;
20
- data?: V | null | Event | undefined;
20
+ data?: V;
21
21
  }) => void;
22
22
  $closeDialogs: () => void;
23
23
  dialogStack: Reactive<DialogOptions<any>[]>;