@v1nt1248/3nclient-lib 0.1.37 → 0.1.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.
@@ -16,7 +16,9 @@ import { VUEBUS_KEY, CbFunction, VueEventBus, VueBusPlugin } from './plugins/vue
16
16
  import { PiniaActionTree, PiniaGetterTree } from './plugins/types';
17
17
  declare module 'vue' {
18
18
  interface ComponentCustomProperties {
19
- $openDialog: <T extends Component, P extends Record<string, unknown>>(params: Ui3nDialogComponentProps<T, P>) => DialogInstance | undefined;
19
+ $openDialog: <T extends Component>(params: Ui3nDialogComponentProps<T>) => DialogInstance | undefined;
20
+ $closeDialog: (id: string) => void;
21
+ $closeDialogs: () => void;
20
22
  $createNotice: (params: Ui3nNotificationProps) => void;
21
23
  $locale: string;
22
24
  $tr: (key: string, placeholders?: Record<string, string>) => string;
@@ -26,7 +28,9 @@ declare module 'vue' {
26
28
  }
27
29
  declare module 'pinia' {
28
30
  interface PiniaCustomProperties {
29
- $openDialog: <T extends Component, P extends Record<string, unknown>>(params: Ui3nDialogComponentProps<T, P>) => DialogInstance | undefined;
31
+ $openDialog: <T extends Component>(params: Ui3nDialogComponentProps<T>) => DialogInstance | undefined;
32
+ $closeDialog: (id: string) => void;
33
+ $closeDialogs: () => void;
30
34
  $createNotice: (params: Ui3nNotificationProps) => void;
31
35
  $emitter: VueEventBus<any>;
32
36
  $i18n: {