@v1nt1248/3nclient-lib 0.1.1 → 0.1.2

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.
Files changed (55) hide show
  1. package/README.md +2 -0
  2. package/dist/components/index.d.ts +3 -3
  3. package/dist/components/ui3n-badge-simple.vue.d.ts +13 -13
  4. package/dist/components/ui3n-badge.vue.d.ts +18 -16
  5. package/dist/components/ui3n-breadcrumb.vue.d.ts +15 -13
  6. package/dist/components/ui3n-breadcrumbs.vue.d.ts +17 -15
  7. package/dist/components/ui3n-button.vue.d.ts +22 -19
  8. package/dist/components/ui3n-checkbox.vue.d.ts +17 -15
  9. package/dist/components/ui3n-chip.vue.d.ts +18 -16
  10. package/dist/components/ui3n-dialog.vue.d.ts +4 -5
  11. package/dist/components/ui3n-drop-files.vue.d.ts +16 -14
  12. package/dist/components/ui3n-emoji.vue.d.ts +11 -11
  13. package/dist/components/ui3n-icon.vue.d.ts +12 -12
  14. package/dist/components/ui3n-input.vue.d.ts +4 -4
  15. package/dist/components/ui3n-list.vue.d.ts +12 -39
  16. package/dist/components/ui3n-menu.vue.d.ts +14 -12
  17. package/dist/components/ui3n-notification.vue.d.ts +14 -15
  18. package/dist/components/ui3n-progress-circular.vue.d.ts +13 -13
  19. package/dist/components/ui3n-progress-linear.vue.d.ts +13 -13
  20. package/dist/components/ui3n-step-line-bar.vue.d.ts +11 -11
  21. package/dist/components/ui3n-switch.vue.d.ts +15 -13
  22. package/dist/components/ui3n-table/composables/useTable.d.ts +26 -0
  23. package/dist/components/ui3n-table/types.d.ts +65 -0
  24. package/dist/components/ui3n-table/ui3n-table.vue.d.ts +22 -0
  25. package/dist/components/ui3n-table-sort-icon.vue.d.ts +2 -2
  26. package/dist/components/ui3n-tabs.vue.d.ts +18 -16
  27. package/dist/components/ui3n-text.vue.d.ts +13 -13
  28. package/dist/components/ui3n-virtual-scroll.vue.d.ts +6 -28
  29. package/dist/directives/index.d.ts +0 -1
  30. package/dist/directives/ui3n-click-outside.d.ts +0 -1
  31. package/dist/directives/ui3n-html.d.ts +0 -1
  32. package/dist/index.d.ts +4 -1
  33. package/dist/plugins/dialogs.d.ts +0 -1
  34. package/dist/plugins/i18n.d.ts +0 -1
  35. package/dist/plugins/icons.d.ts +0 -1
  36. package/dist/plugins/index.d.ts +0 -1
  37. package/dist/plugins/notifications.d.ts +0 -1
  38. package/dist/plugins/store-dialogs.d.ts +0 -1
  39. package/dist/plugins/store-notifications.d.ts +0 -1
  40. package/dist/plugins/store-vue-bus.d.ts +0 -1
  41. package/dist/plugins/vue-bus.d.ts +0 -1
  42. package/dist/style.css +1 -1
  43. package/dist/tools/sqlite-on-3nstorage/index.d.ts +0 -1
  44. package/dist/tools/ui.helpers.d.ts +0 -1
  45. package/dist/ui-3n-lib.js +5471 -5634
  46. package/package.json +28 -27
  47. package/src/components/index.ts +34 -4
  48. package/src/components/ui3n-checkbox.vue +1 -1
  49. package/src/components/ui3n-dialog.vue +6 -1
  50. package/src/components/ui3n-table/composables/useTable.ts +206 -0
  51. package/src/components/ui3n-table/types.ts +80 -0
  52. package/src/components/ui3n-table/ui3n-table.vue +319 -0
  53. package/src/components/ui3n-table-sort-icon.vue +9 -6
  54. package/dist/components/ui3n-table.vue.d.ts +0 -36
  55. /package/src/components/{ui3n-table.vue → ui3n-table-simple.vue} +0 -0
package/README.md CHANGED
@@ -28,6 +28,8 @@ You can run the project as `pnpm dev` or `npm run dev` if you don't want to use
28
28
  - Ui3nProgressLinear
29
29
  - Ui3nProgressCircular
30
30
  - Ui3nTabs
31
+ - Ui3nTableSortIcon
32
+ - Ui3nTable
31
33
 
32
34
  ## Directives
33
35
  - Ui3nHtml
@@ -8,7 +8,8 @@ import { default as Ui3nText, Ui3nTextProps, Ui3nTextEmits } from './ui3n-text.v
8
8
  import { default as Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots } from './ui3n-checkbox.vue';
9
9
  import { default as Ui3nNotification } from './ui3n-notification.vue';
10
10
  import { default as Ui3nTableSortIcon, Ui3nTableSortIconProps } from './ui3n-table-sort-icon.vue';
11
- import { default as Ui3nTable, Ui3nTableProps, Ui3nTableEmits } from './ui3n-table.vue';
11
+ import { default as Ui3nTable } from './ui3n-table/ui3n-table.vue';
12
+ import { Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits } from './ui3n-table/types';
12
13
  import { default as Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent } from './ui3n-dialog.vue';
13
14
  import { default as Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots } from './ui3n-menu.vue';
14
15
  import { default as Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots } from './ui3n-list.vue';
@@ -21,5 +22,4 @@ import { default as Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlot
21
22
  import { default as Ui3nStepLineBar, Ui3nStepLineBarProps } from './ui3n-step-line-bar.vue';
22
23
  import { default as Ui3nProgressLinear, Ui3nProgressLinearProps } from './ui3n-progress-linear.vue';
23
24
  import { default as Ui3nProgressCircular, Ui3nProgressCircularProps } from './ui3n-progress-circular.vue';
24
-
25
- export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableProps, Ui3nTableEmits, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent, Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots, Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots, Ui3nTabs, Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots, Ui3nBadge, Ui3nBadgeProps, Ui3nBreadcrumb, Ui3nBreadcrumbProps, Ui3nBreadcrumbEmits, Ui3nBreadcrumbSlots, Ui3nBreadcrumbs, Ui3nBreadcrumbsProps, Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots, Ui3nStepLineBar, Ui3nStepLineBarProps, Ui3nProgressLinear, Ui3nProgressLinearProps, Ui3nProgressCircular, Ui3nProgressCircularProps, };
25
+ export { Ui3nIcon, Ui3nIconProps, Ui3nIconEmits, Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits, Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots, Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits, Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits, Ui3nInput, Ui3nInputProps, Ui3nInputEmits, Ui3nText, Ui3nTextProps, Ui3nTextEmits, Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots, Ui3nNotification, Ui3nTableSortIcon, Ui3nTableSortIconProps, Ui3nTable, Ui3nTableSort, Ui3nTableConfig, Ui3nTableHeadProps, Ui3nTableBodyProps, Ui3nTableGroupActionsSlot, Ui3nTableHeaderCellSlot, Ui3nTableBodyRowSlotScope, Ui3nTableBodyRowSlot, Ui3nTableBodyRowCellSlotScope, Ui3nTableBodyRowCellSlot, Ui3nTableSlots, Ui3nTableProps, Ui3nTableEmits, Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent, Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots, Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots, Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots, Ui3nTabs, Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots, Ui3nBadge, Ui3nBadgeProps, Ui3nBreadcrumb, Ui3nBreadcrumbProps, Ui3nBreadcrumbEmits, Ui3nBreadcrumbSlots, Ui3nBreadcrumbs, Ui3nBreadcrumbsProps, Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots, Ui3nStepLineBar, Ui3nStepLineBarProps, Ui3nProgressLinear, Ui3nProgressLinearProps, Ui3nProgressCircular, Ui3nProgressCircularProps, };
@@ -4,7 +4,7 @@ export interface Ui3nBadgeSimpleProps {
4
4
  color?: string;
5
5
  textColor?: string;
6
6
  }
7
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBadgeSimpleProps>, {
7
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBadgeSimpleProps>, {
8
8
  dot: boolean;
9
9
  value: string;
10
10
  color: string;
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
14
14
  width: number;
15
15
  height: number;
16
16
  }) => void;
17
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBadgeSimpleProps>, {
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBadgeSimpleProps>, {
18
18
  dot: boolean;
19
19
  value: string;
20
20
  color: string;
@@ -25,21 +25,12 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
25
25
  height: number;
26
26
  }) => any) | undefined;
27
27
  }, {
28
- dot: boolean;
29
- value: string | number;
30
28
  color: string;
31
29
  textColor: string;
30
+ value: string | number;
31
+ dot: boolean;
32
32
  }, {}>;
33
33
  export default _default;
34
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
- type __VLS_TypePropsToRuntimeProps<T> = {
36
- [K in keyof T]-?: {} extends Pick<T, K> ? {
37
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
- } : {
39
- type: import('vue').PropType<T[K]>;
40
- required: true;
41
- };
42
- };
43
34
  type __VLS_WithDefaults<P, D> = {
44
35
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
36
  default: D[K];
@@ -48,3 +39,12 @@ type __VLS_WithDefaults<P, D> = {
48
39
  type __VLS_Prettify<T> = {
49
40
  [K in keyof T]: T[K];
50
41
  } & {};
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToOption<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: import('vue').PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
@@ -5,37 +5,30 @@ export interface Ui3nBadgeProps {
5
5
  textColor?: string;
6
6
  position?: 'right-top' | 'right-bottom' | 'left-top' | 'left-bottom';
7
7
  }
8
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBadgeProps>, {
8
+ declare function __VLS_template(): {
9
+ default?(_: {}): any;
10
+ };
11
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBadgeProps>, {
9
12
  dot: boolean;
10
13
  value: string;
11
14
  color: string;
12
15
  textColor: string;
13
16
  position: string;
14
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBadgeProps>, {
17
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBadgeProps>, {
15
18
  dot: boolean;
16
19
  value: string;
17
20
  color: string;
18
21
  textColor: string;
19
22
  position: string;
20
23
  }>>>, {
21
- dot: boolean;
22
- value: string | number;
23
24
  color: string;
24
25
  textColor: string;
26
+ value: string | number;
25
27
  position: "right-top" | "right-bottom" | "left-top" | "left-bottom";
26
- }, {}>, {
27
- default?(_: {}): any;
28
- }>;
28
+ dot: boolean;
29
+ }, {}>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
31
  export default _default;
30
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
- type __VLS_TypePropsToRuntimeProps<T> = {
32
- [K in keyof T]-?: {} extends Pick<T, K> ? {
33
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
- } : {
35
- type: import('vue').PropType<T[K]>;
36
- required: true;
37
- };
38
- };
39
32
  type __VLS_WithDefaults<P, D> = {
40
33
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
34
  default: D[K];
@@ -49,3 +42,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
49
42
  $slots: S;
50
43
  };
51
44
  };
45
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
46
+ type __VLS_TypePropsToOption<T> = {
47
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
48
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
49
+ } : {
50
+ type: import('vue').PropType<T[K]>;
51
+ required: true;
52
+ };
53
+ };
@@ -10,33 +10,26 @@ export interface Ui3nBreadcrumbSlots {
10
10
  separator: () => unknown;
11
11
  default: () => unknown;
12
12
  }
13
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbProps>, {
13
+ declare function __VLS_template(): Readonly<Ui3nBreadcrumbSlots> & Ui3nBreadcrumbSlots;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBreadcrumbProps>, {
14
15
  separator: undefined;
15
16
  isActive: boolean;
16
17
  disabled: boolean;
17
18
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
19
  click: (value: Event) => void;
19
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbProps>, {
20
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBreadcrumbProps>, {
20
21
  separator: undefined;
21
22
  isActive: boolean;
22
23
  disabled: boolean;
23
24
  }>>> & {
24
25
  onClick?: ((value: Event) => any) | undefined;
25
26
  }, {
27
+ disabled: boolean;
26
28
  separator: string;
27
29
  isActive: boolean;
28
- disabled: boolean;
29
- }, {}>, Readonly<Ui3nBreadcrumbSlots> & Ui3nBreadcrumbSlots>;
30
+ }, {}>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
30
32
  export default _default;
31
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
- type __VLS_TypePropsToRuntimeProps<T> = {
33
- [K in keyof T]-?: {} extends Pick<T, K> ? {
34
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
- } : {
36
- type: import('vue').PropType<T[K]>;
37
- required: true;
38
- };
39
- };
40
33
  type __VLS_WithDefaults<P, D> = {
41
34
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
35
  default: D[K];
@@ -50,3 +43,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
50
43
  $slots: S;
51
44
  };
52
45
  };
46
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
47
+ type __VLS_TypePropsToOption<T> = {
48
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
49
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
50
+ } : {
51
+ type: import('vue').PropType<T[K]>;
52
+ required: true;
53
+ };
54
+ };
@@ -2,28 +2,21 @@ export interface Ui3nBreadcrumbsProps {
2
2
  separator?: string;
3
3
  disabled?: boolean;
4
4
  }
5
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbsProps>, {
5
+ declare function __VLS_template(): {
6
+ default?(_: {}): any;
7
+ };
8
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBreadcrumbsProps>, {
6
9
  separator: string;
7
10
  disabled: boolean;
8
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbsProps>, {
11
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nBreadcrumbsProps>, {
9
12
  separator: string;
10
13
  disabled: boolean;
11
14
  }>>>, {
12
- separator: string;
13
15
  disabled: boolean;
14
- }, {}>, {
15
- default?(_: {}): any;
16
- }>;
16
+ separator: string;
17
+ }, {}>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
19
  export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
20
  type __VLS_WithDefaults<P, D> = {
28
21
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
22
  default: D[K];
@@ -37,3 +30,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
37
30
  $slots: S;
38
31
  };
39
32
  };
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
@@ -17,7 +17,10 @@ export interface Ui3nButtonEmits {
17
17
  (ev: 'focus', value: Event): void;
18
18
  (ev: 'blur', value: Event): void;
19
19
  }
20
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {
20
+ declare function __VLS_template(): {
21
+ default?(_: {}): any;
22
+ };
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nButtonProps>, {
21
24
  type: string;
22
25
  size: string;
23
26
  iconPosition: string;
@@ -27,34 +30,25 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
27
30
  click: (value: Event) => void;
28
31
  focus: (value: Event) => void;
29
32
  blur: (value: Event) => void;
30
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {
33
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nButtonProps>, {
31
34
  type: string;
32
35
  size: string;
33
36
  iconPosition: string;
34
37
  disabled: boolean;
35
38
  }>>> & {
36
- onFocus?: ((value: Event) => any) | undefined;
37
- onBlur?: ((value: Event) => any) | undefined;
38
39
  onClick?: ((value: Event) => any) | undefined;
39
40
  onInit?: ((value: HTMLButtonElement) => any) | undefined;
41
+ onFocus?: ((value: Event) => any) | undefined;
42
+ onBlur?: ((value: Event) => any) | undefined;
40
43
  }, {
41
- type: "icon" | "primary" | "secondary" | "tertiary" | "custom";
44
+ type: "primary" | "secondary" | "tertiary" | "icon" | "custom";
45
+ size: "regular" | "small";
46
+ iconPosition: "left" | "right";
42
47
  disabled: boolean;
43
- size: "small" | "regular";
44
- iconPosition: "right" | "left";
45
- }, {}>, {
46
- default?(_: {}): any;
47
- }>;
48
+ }, {}>;
49
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
48
50
  export default _default;
49
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
- type __VLS_TypePropsToRuntimeProps<T> = {
51
- [K in keyof T]-?: {} extends Pick<T, K> ? {
52
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
53
- } : {
54
- type: import('vue').PropType<T[K]>;
55
- required: true;
56
- };
57
- };
51
+
58
52
  type __VLS_WithDefaults<P, D> = {
59
53
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
54
  default: D[K];
@@ -68,3 +62,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
68
62
  $slots: S;
69
63
  };
70
64
  };
65
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
+ type __VLS_TypePropsToOption<T> = {
67
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
68
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
69
+ } : {
70
+ type: import('vue').PropType<T[K]>;
71
+ required: true;
72
+ };
73
+ };
@@ -1,4 +1,4 @@
1
- type Ui3nCheckboxValue = boolean | string | number;
1
+ export type Ui3nCheckboxValue = boolean | string | number;
2
2
  export interface Ui3nCheckboxProps {
3
3
  modelValue: Ui3nCheckboxValue;
4
4
  checkedValue?: Ui3nCheckboxValue;
@@ -15,7 +15,8 @@ export interface Ui3nCheckboxEmits {
15
15
  export interface Ui3nCheckboxSlots {
16
16
  default: () => any;
17
17
  }
18
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nCheckboxProps>, {
18
+ declare function __VLS_template(): Readonly<Ui3nCheckboxSlots> & Ui3nCheckboxSlots;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nCheckboxProps>, {
19
20
  modelValue: boolean;
20
21
  checkedValue: boolean;
21
22
  uncheckedValue: boolean;
@@ -26,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
26
27
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
28
  change: (value: Ui3nCheckboxValue) => void;
28
29
  "update:modelValue": (value: Ui3nCheckboxValue) => void;
29
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nCheckboxProps>, {
30
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nCheckboxProps>, {
30
31
  modelValue: boolean;
31
32
  checkedValue: boolean;
32
33
  uncheckedValue: boolean;
@@ -39,23 +40,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
39
40
  "onUpdate:modelValue"?: ((value: Ui3nCheckboxValue) => any) | undefined;
40
41
  }, {
41
42
  color: string;
43
+ size: number | string;
42
44
  disabled: boolean;
43
- size: string | number;
45
+ indeterminate: boolean;
44
46
  modelValue: Ui3nCheckboxValue;
45
47
  checkedValue: Ui3nCheckboxValue;
46
48
  uncheckedValue: Ui3nCheckboxValue;
47
- indeterminate: boolean;
48
- }, {}>, Readonly<Ui3nCheckboxSlots> & Ui3nCheckboxSlots>;
49
+ }, {}>;
50
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
49
51
  export default _default;
50
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
- type __VLS_TypePropsToRuntimeProps<T> = {
52
- [K in keyof T]-?: {} extends Pick<T, K> ? {
53
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
- } : {
55
- type: import('vue').PropType<T[K]>;
56
- required: true;
57
- };
58
- };
59
52
  type __VLS_WithDefaults<P, D> = {
60
53
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
61
54
  default: D[K];
@@ -69,3 +62,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
69
62
  $slots: S;
70
63
  };
71
64
  };
65
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
+ type __VLS_TypePropsToOption<T> = {
67
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
68
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
69
+ } : {
70
+ type: import('vue').PropType<T[K]>;
71
+ required: true;
72
+ };
73
+ };
@@ -18,7 +18,8 @@ export interface Ui3nChipSlots {
18
18
  }) => any;
19
19
  default: () => any;
20
20
  }
21
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nChipProps>, {
21
+ declare function __VLS_template(): Readonly<Ui3nChipSlots> & Ui3nChipSlots;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nChipProps>, {
22
23
  height: number;
23
24
  maxWidth: number;
24
25
  plain: boolean;
@@ -29,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
29
30
  textColor: string;
30
31
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
32
  close: () => void;
32
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nChipProps>, {
33
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nChipProps>, {
33
34
  height: number;
34
35
  maxWidth: number;
35
36
  plain: boolean;
@@ -41,25 +42,17 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
41
42
  }>>> & {
42
43
  onClose?: (() => any) | undefined;
43
44
  }, {
45
+ height: number | string;
44
46
  color: string;
45
47
  textColor: string;
46
- height: string | number;
47
- round: boolean;
48
- maxWidth: string | number;
48
+ maxWidth: number | string;
49
49
  plain: boolean;
50
+ round: boolean;
50
51
  closeable: boolean;
51
- textSize: string | number;
52
- }, {}>, Readonly<Ui3nChipSlots> & Ui3nChipSlots>;
52
+ textSize: number | string;
53
+ }, {}>;
54
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
53
55
  export default _default;
54
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
- type __VLS_TypePropsToRuntimeProps<T> = {
56
- [K in keyof T]-?: {} extends Pick<T, K> ? {
57
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
58
- } : {
59
- type: import('vue').PropType<T[K]>;
60
- required: true;
61
- };
62
- };
63
56
  type __VLS_WithDefaults<P, D> = {
64
57
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
65
58
  default: D[K];
@@ -73,3 +66,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
73
66
  $slots: S;
74
67
  };
75
68
  };
69
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
+ type __VLS_TypePropsToOption<T> = {
71
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
72
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
+ } : {
74
+ type: import('vue').PropType<T[K]>;
75
+ required: true;
76
+ };
77
+ };
@@ -1,5 +1,4 @@
1
1
  import { Component } from 'vue';
2
-
3
2
  export type Ui3nDialogEvent = 'open' | 'before-close' | 'close' | 'confirm' | 'cancel' | 'click-overlay';
4
3
  export interface Ui3nDialogProps {
5
4
  teleport?: string;
@@ -35,24 +34,24 @@ export interface Ui3nDialogComponentEmits {
35
34
  (ev: 'cancel', value?: any): void;
36
35
  (ev: 'click-overlay', value?: any): void;
37
36
  }
38
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nDialogComponentProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<Ui3nDialogComponentProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
38
  open: (value?: any) => void;
40
39
  "before-close": (value?: any) => void;
41
40
  close: (value?: any) => void;
42
41
  confirm: (value?: any) => void;
43
42
  cancel: (value?: any) => void;
44
43
  "click-overlay": (value?: any) => void;
45
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nDialogComponentProps>>> & {
44
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<Ui3nDialogComponentProps>>> & {
46
45
  onClose?: ((value?: any) => any) | undefined;
46
+ onConfirm?: ((value?: any) => any) | undefined;
47
47
  onCancel?: ((value?: any) => any) | undefined;
48
48
  onOpen?: ((value?: any) => any) | undefined;
49
49
  "onBefore-close"?: ((value?: any) => any) | undefined;
50
- onConfirm?: ((value?: any) => any) | undefined;
51
50
  "onClick-overlay"?: ((value?: any) => any) | undefined;
52
51
  }, {}, {}>;
53
52
  export default _default;
54
53
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
- type __VLS_TypePropsToRuntimeProps<T> = {
54
+ type __VLS_TypePropsToOption<T> = {
56
55
  [K in keyof T]-?: {} extends Pick<T, K> ? {
57
56
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
58
57
  } : {
@@ -6,13 +6,16 @@ export interface Ui3nDropFilesProps {
6
6
  export interface Ui3nDropFilesEmits {
7
7
  (e: 'select', fileList: FileList): void;
8
8
  }
9
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nDropFilesProps>, {
9
+ declare function __VLS_template(): {
10
+ default?(_: {}): any;
11
+ };
12
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nDropFilesProps>, {
10
13
  title: string;
11
14
  text: string;
12
15
  additionalText: string;
13
16
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
17
  select: (fileList: FileList) => void;
15
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nDropFilesProps>, {
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nDropFilesProps>, {
16
19
  title: string;
17
20
  text: string;
18
21
  additionalText: string;
@@ -22,19 +25,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
22
25
  title: string;
23
26
  text: string;
24
27
  additionalText: string;
25
- }, {}>, {
26
- default?(_: {}): any;
27
- }>;
28
+ }, {}>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
30
  export default _default;
29
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
- type __VLS_TypePropsToRuntimeProps<T> = {
31
- [K in keyof T]-?: {} extends Pick<T, K> ? {
32
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
- } : {
34
- type: import('vue').PropType<T[K]>;
35
- required: true;
36
- };
37
- };
38
31
  type __VLS_WithDefaults<P, D> = {
39
32
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
33
  default: D[K];
@@ -48,3 +41,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
48
41
  $slots: S;
49
42
  };
50
43
  };
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToOption<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: import('vue').PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
@@ -6,12 +6,12 @@ export interface Ui3nEmojiProps {
6
6
  export interface Ui3nEmojiEmits {
7
7
  (ev: 'click', value: Event): void;
8
8
  }
9
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nEmojiProps>, {
9
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nEmojiProps>, {
10
10
  size: number;
11
11
  readonly: boolean;
12
12
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
13
  click: (value: Event) => void;
14
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nEmojiProps>, {
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nEmojiProps>, {
15
15
  size: number;
16
16
  readonly: boolean;
17
17
  }>>> & {
@@ -21,15 +21,6 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
21
21
  readonly: boolean;
22
22
  }, {}>;
23
23
  export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
24
  type __VLS_WithDefaults<P, D> = {
34
25
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
26
  default: D[K];
@@ -38,3 +29,12 @@ type __VLS_WithDefaults<P, D> = {
38
29
  type __VLS_Prettify<T> = {
39
30
  [K in keyof T]: T[K];
40
31
  } & {};
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToOption<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: import('vue').PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
@@ -14,7 +14,7 @@ export interface Ui3nIconProps {
14
14
  export interface Ui3nIconEmits {
15
15
  (ev: 'click', value: Event): void;
16
16
  }
17
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nIconProps>, {
17
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nIconProps>, {
18
18
  title: string;
19
19
  width: number;
20
20
  height: number;
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
22
22
  color: string;
23
23
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
24
  click: (value: Event) => void;
25
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nIconProps>, {
25
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nIconProps>, {
26
26
  title: string;
27
27
  width: number;
28
28
  height: number;
@@ -31,22 +31,13 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
31
31
  }>>> & {
32
32
  onClick?: ((value: Event) => any) | undefined;
33
33
  }, {
34
- color: string;
35
34
  title: string;
36
35
  width: string | number;
37
36
  height: string | number;
38
37
  rotate: number;
38
+ color: string;
39
39
  }, {}>;
40
40
  export default _default;
41
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
- type __VLS_TypePropsToRuntimeProps<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
- } : {
46
- type: import('vue').PropType<T[K]>;
47
- required: true;
48
- };
49
- };
50
41
  type __VLS_WithDefaults<P, D> = {
51
42
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
43
  default: D[K];
@@ -55,3 +46,12 @@ type __VLS_WithDefaults<P, D> = {
55
46
  type __VLS_Prettify<T> = {
56
47
  [K in keyof T]: T[K];
57
48
  } & {};
49
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
+ type __VLS_TypePropsToOption<T> = {
51
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
52
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
53
+ } : {
54
+ type: import('vue').PropType<T[K]>;
55
+ required: true;
56
+ };
57
+ };