@v1nt1248/3nclient-lib 0.2.96 → 0.2.97

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,10 +1,45 @@
1
1
  import { VNodeProps, AllowedComponentProps } from 'vue';
2
- export type ExtractComponentProps<TComponent> = TComponent extends new () => {
3
- $props: infer P;
4
- } ? Omit<P, keyof VNodeProps | keyof AllowedComponentProps> : never;
5
2
  export type Nullable<T> = T | null;
6
3
  export type Ui3nIconField = {
7
4
  icon: string;
8
5
  size?: string | number;
9
6
  color?: string;
10
7
  };
8
+ export type ExtractComponentProps<TComponent> = TComponent extends new () => {
9
+ $props: infer P;
10
+ } ? Omit<P, keyof VNodeProps | keyof AllowedComponentProps> : never;
11
+ export interface PrepareComponentEmits<ComponentsEventMap> {
12
+ <K extends keyof ComponentsEventMap>(event: K, value?: ComponentsEventMap[K]): void;
13
+ }
14
+ export type ComponentsEmitsToMap<T> = T extends {
15
+ (event: infer E1, ...args: infer A1): any;
16
+ (event: infer E2, ...args: infer A2): any;
17
+ (event: infer E3, ...args: infer A3): any;
18
+ (event: infer E4, ...args: infer A4): any;
19
+ (event: infer E5, ...args: infer A5): any;
20
+ (event: infer E6, ...args: infer A6): any;
21
+ (event: infer E7, ...args: infer A7): any;
22
+ (event: infer E8, ...args: infer A8): any;
23
+ (event: infer E9, ...args: infer A9): any;
24
+ (event: infer E10, ...args: infer A10): any;
25
+ } ? (E1 extends string ? {
26
+ [K in E1]: A1[0];
27
+ } : {}) & (E2 extends string ? {
28
+ [K in E2]: A2[0];
29
+ } : {}) & (E3 extends string ? {
30
+ [K in E3]: A3[0];
31
+ } : {}) & (E4 extends string ? {
32
+ [K in E4]: A4[0];
33
+ } : {}) & (E5 extends string ? {
34
+ [K in E5]: A5[0];
35
+ } : {}) & (E6 extends string ? {
36
+ [K in E6]: A6[0];
37
+ } : {}) & (E7 extends string ? {
38
+ [K in E7]: A7[0];
39
+ } : {}) & (E8 extends string ? {
40
+ [K in E8]: A8[0];
41
+ } : {}) & (E9 extends string ? {
42
+ [K in E9]: A9[0];
43
+ } : {}) & (E10 extends string ? {
44
+ [K in E10]: A10[0];
45
+ } : {}) : never;
@@ -28,6 +28,7 @@ import { default as Ui3nRadioGroup } from './components/ui3n-radio-group/ui3n-ra
28
28
  import { default as Ui3nEditable } from './components/ui3n-editable/ui3n-editable.vue';
29
29
  import { default as Ui3nAutocomplete } from './components/ui3n-autocomplete/ui3n-autocomplete.vue';
30
30
  import { default as Ui3nSlider } from './components/ui3n-slider/ui3n-slider.vue';
31
+ import { default as Ui3nSelector } from './components/ui3n-selector/ui3n-selector.vue';
31
32
  import { default as Ui3nHtml } from './directives/ui3n-html';
32
33
  import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
33
34
  import { default as Ui3nResize } from './directives/ui3n-resize';
@@ -63,6 +64,7 @@ declare module 'vue' {
63
64
  Ui3nProgressCircular: typeof Ui3nProgressCircular;
64
65
  Ui3nRadio: typeof Ui3nRadio;
65
66
  Ui3nRadioGroup: typeof Ui3nRadioGroup;
67
+ Ui3nSelector: typeof Ui3nSelector;
66
68
  Ui3nSlider: typeof Ui3nSlider;
67
69
  Ui3nTableSortIcon: typeof Ui3nTableSortIcon;
68
70
  Ui3nTable: typeof Ui3nTable;