@v1nt1248/3nclient-lib 0.1.15 → 0.1.17

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Library (Vue3 + Typescript + Vite)
2
2
 
3
- Components, directives and plugins for Vue3 projects and some helpers methods (utils).
3
+ Components, directives and plugins for Vue3 projects and some helpers methods (utils).
4
4
  [The library on npm](https://www.npmjs.com/package/@v1nt1248/3nclient-lib)
5
5
 
6
6
  You can run the project as `pnpm dev` or `npm run dev`.
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ import { DialogInstance } from './plugins/dialogs/types';
33
33
  export * from './constants';
34
34
  export * from './utils';
35
35
  export * from './plugins';
36
+ export * from './plugins/types';
36
37
  export * from './directives';
37
38
  export * from './components';
38
39
  export * from './components/types';
@@ -0,0 +1,7 @@
1
+ import { Store } from 'pinia';
2
+ export type PiniaActionTree<Actions extends Record<string, (...args: any) => any>, UsedStore extends Store> = {
3
+ [Key in keyof Actions]: (this: UsedStore, ...p: Parameters<Actions[Key]>) => ReturnType<Actions[Key]>;
4
+ };
5
+ export type PiniaGetterTree<Getters extends Record<string, any>, UsedStore extends Store> = {
6
+ [k in keyof Getters]: Getters[k] extends (...args: any) => infer R ? (this: UsedStore & Getters, state: UsedStore['$state']) => (...p: Parameters<Getters[k]>) => R : (this: UsedStore & Getters, state: UsedStore['$state']) => Getters[k];
7
+ };
@@ -13,6 +13,7 @@ import { Ui3nDialogComponentProps } from './components/ui3n-dialog/types';
13
13
  import { vueBus } from './plugins/vue-bus/vue-bus';
14
14
  import { storeVueBus } from './plugins/vue-bus/store-vue-bus';
15
15
  import { VUEBUS_KEY, CbFunction, VueEventBus, VueBusPlugin } from './plugins/vue-bus/types';
16
+ import { PiniaActionTree, PiniaGetterTree } from './plugins/types';
16
17
  declare module 'vue' {
17
18
  interface ComponentCustomProperties {
18
19
  $openDialog: <T extends Component, P extends Record<string, unknown>>(params: Ui3nDialogComponentProps<T, P>) => DialogInstance | undefined;
@@ -41,4 +42,4 @@ declare module 'pinia' {
41
42
  };
42
43
  }
43
44
  }
44
- export { i18n, storeI18n, I18N_KEY, I18nOptions, I18nPlugin, notifications, storeNotifications, NOTIFICATIONS_KEY, NotificationsPlugin, dialogs, storeDialogs, DIALOGS_KEY, DialogsPlugin, DialogInstance, vueBus, storeVueBus, VUEBUS_KEY, CbFunction, VueBusPlugin, VueEventBus, };
45
+ export { i18n, storeI18n, I18N_KEY, I18nOptions, I18nPlugin, notifications, storeNotifications, NOTIFICATIONS_KEY, NotificationsPlugin, dialogs, storeDialogs, DIALOGS_KEY, DialogsPlugin, DialogInstance, vueBus, storeVueBus, VUEBUS_KEY, CbFunction, VueBusPlugin, VueEventBus, PiniaActionTree, PiniaGetterTree, };
@@ -7548,11 +7548,11 @@ const hy = {
7548
7548
  ...B.onOpen && { onOpen: B.onOpen },
7549
7549
  duration: i,
7550
7550
  onClose: () => {
7551
- t.removeChild(L.$el), c && c.unmount && c.unmount();
7551
+ L.$el.remove(), c && c.unmount && c.unmount();
7552
7552
  }
7553
7553
  }), L = c.mount(G);
7554
7554
  t.appendChild(L.$el), i && setTimeout(() => {
7555
- t.removeChild(L.$el), c && c.unmount && c.unmount();
7555
+ L.$el.remove(), c && c.unmount && c.unmount();
7556
7556
  }, i);
7557
7557
  }
7558
7558
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.15",
5
+ "version": "0.1.17",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [