@v1nt1248/3nclient-lib 0.0.42 → 0.1.0

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 (56) hide show
  1. package/README.md +4 -4
  2. package/dist/components/index.d.ts +20 -19
  3. package/dist/components/ui3n-badge-simple.vue.d.ts +2 -2
  4. package/dist/components/ui3n-badge.vue.d.ts +1 -1
  5. package/dist/components/ui3n-breadcrumb.vue.d.ts +7 -7
  6. package/dist/components/ui3n-breadcrumbs.vue.d.ts +3 -3
  7. package/dist/components/ui3n-button.vue.d.ts +29 -4
  8. package/dist/components/ui3n-checkbox.vue.d.ts +2 -2
  9. package/dist/components/ui3n-chip.vue.d.ts +2 -2
  10. package/dist/components/ui3n-dialog.vue.d.ts +4 -4
  11. package/dist/components/ui3n-drop-files.vue.d.ts +23 -3
  12. package/dist/components/ui3n-emoji.vue.d.ts +2 -2
  13. package/dist/components/ui3n-icon.vue.d.ts +29 -3
  14. package/dist/components/ui3n-input.vue.d.ts +9 -9
  15. package/dist/components/ui3n-list.vue.d.ts +1 -1
  16. package/dist/components/ui3n-menu.vue.d.ts +2 -2
  17. package/dist/components/ui3n-notification.vue.d.ts +30 -1
  18. package/dist/components/ui3n-switch.vue.d.ts +55 -0
  19. package/dist/components/ui3n-table-sort-icon.vue.d.ts +1 -1
  20. package/dist/components/ui3n-table.vue.d.ts +2 -2
  21. package/dist/components/ui3n-tabs.vue.d.ts +2 -2
  22. package/dist/components/ui3n-text.vue.d.ts +29 -3
  23. package/dist/components/ui3n-virtual-scroll.vue.d.ts +9 -6
  24. package/dist/constants/types.d.ts +2 -4
  25. package/dist/directives/index.d.ts +1 -1
  26. package/dist/index.d.ts +25 -27
  27. package/dist/plugins/dialogs.d.ts +1 -1
  28. package/dist/plugins/index.d.ts +8 -8
  29. package/dist/plugins/notifications.d.ts +1 -1
  30. package/dist/plugins/vue-bus.d.ts +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/tools/sqlite-on-3nstorage/index.d.ts +3 -3
  33. package/dist/ui-3n-lib.js +6794 -6469
  34. package/package.json +57 -59
  35. package/src/components/index.ts +47 -41
  36. package/src/components/ui3n-badge-simple.vue +35 -38
  37. package/src/components/ui3n-badge.vue +25 -25
  38. package/src/components/ui3n-breadcrumb.vue +44 -44
  39. package/src/components/ui3n-breadcrumbs.vue +19 -19
  40. package/src/components/ui3n-button.vue +240 -150
  41. package/src/components/ui3n-checkbox.vue +199 -158
  42. package/src/components/ui3n-chip.vue +96 -98
  43. package/src/components/ui3n-dialog.vue +225 -235
  44. package/src/components/ui3n-drop-files.vue +146 -154
  45. package/src/components/ui3n-emoji.vue +62 -64
  46. package/src/components/ui3n-icon.vue +32 -13
  47. package/src/components/ui3n-input.vue +239 -221
  48. package/src/components/ui3n-list.vue +92 -111
  49. package/src/components/ui3n-menu.vue +101 -100
  50. package/src/components/ui3n-notification.vue +182 -113
  51. package/src/components/ui3n-switch.vue +146 -0
  52. package/src/components/ui3n-table-sort-icon.vue +1 -2
  53. package/src/components/ui3n-table.vue +229 -223
  54. package/src/components/ui3n-tabs.vue +141 -148
  55. package/src/components/ui3n-text.vue +235 -146
  56. package/src/components/ui3n-virtual-scroll.vue +68 -68
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Library (Vue3 + Typescript + Vite)
2
2
 
3
3
  Components, directives and plugins for Vue3 projects and some helpers methods (tools).
4
- Storybook is used for documentation and demo.
4
+ Vitepress is used for documentation and demo.
5
5
 
6
- For demo and development - `pnpm run storybook` or `npm run storybook`.
7
- You can run the project as `pnpm dev` or `npm run dev` if you don't want to use Storybook.
6
+ For demo and development - `pnpm run docs:dev` or `npm run docs:dev`.
7
+ You can run the project as `pnpm dev` or `npm run dev` if you don't want to use Vitepress.
8
8
 
9
9
  ## Components
10
10
  - Ui3nBadge,
@@ -23,7 +23,7 @@ You can run the project as `pnpm dev` or `npm run dev` if you don't want to use
23
23
  - Ui3nVirtualScroll
24
24
  - Ui3nNotification
25
25
  - Ui3nDialog
26
- - Ui3nTable
26
+ - Ui3nSwitch
27
27
  - Ui3nTabs
28
28
 
29
29
  ## Directives
@@ -1,21 +1,22 @@
1
- import { default as Ui3nBreadcrumbs, Ui3nBreadcrumdsProps } from './ui3n-breadcrumbs.vue';
2
- import { default as Ui3nBreadcrumb, Ui3nBreadcrumdProps, Ui3nBreadcrumdEmits, Ui3nBreadcrumdSlots } from './ui3n-breadcrumb.vue';
3
- import { default as Ui3nBadge, Ui3nBadgeProps } from './ui3n-badge.vue';
4
- import { default as Ui3nTabs, Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots } from './ui3n-tabs.vue';
5
- import { default as Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots } from './ui3n-virtual-scroll.vue';
6
- import { default as Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots } from './ui3n-list.vue';
7
- import { default as Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots } from './ui3n-menu.vue';
8
- import { default as Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent } from './ui3n-dialog.vue';
9
- import { default as Ui3nTable, Ui3nTableProps, Ui3nTableEmits } from './ui3n-table.vue';
10
- import { default as Ui3nTableSortIcon, Ui3nTableSortIconProps } from './ui3n-table-sort-icon.vue';
11
- import { default as Ui3nNotification } from './ui3n-notification.vue';
12
- import { default as Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots } from './ui3n-checkbox.vue';
13
- import { default as Ui3nText, Ui3nTextProps, Ui3nTextEmits } from './ui3n-text.vue';
14
- import { default as Ui3nInput, Ui3nInputProps, Ui3nInputEmits } from './ui3n-input.vue';
15
- import { default as Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits } from './ui3n-emoji.vue';
16
- import { default as Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits } from './ui3n-drop-files.vue';
17
- import { default as Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots } from './ui3n-chip.vue';
18
- import { default as Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits } from './ui3n-button.vue';
19
1
  import { default as Ui3nIcon, Ui3nIconProps, Ui3nIconEmits } from './ui3n-icon.vue';
2
+ import { default as Ui3nButton, Ui3nButtonProps, Ui3nButtonEmits } from './ui3n-button.vue';
3
+ import { default as Ui3nChip, Ui3nChipProps, Ui3nChipEmits, Ui3nChipSlots } from './ui3n-chip.vue';
4
+ import { default as Ui3nDropFiles, Ui3nDropFilesProps, Ui3nDropFilesEmits } from './ui3n-drop-files.vue';
5
+ import { default as Ui3nEmoji, Ui3nEmojiProps, Ui3nEmojiEmits } from './ui3n-emoji.vue';
6
+ import { default as Ui3nInput, Ui3nInputProps, Ui3nInputEmits } from './ui3n-input.vue';
7
+ import { default as Ui3nText, Ui3nTextProps, Ui3nTextEmits } from './ui3n-text.vue';
8
+ import { default as Ui3nCheckbox, Ui3nCheckboxProps, Ui3nCheckboxEmits, Ui3nCheckboxSlots } from './ui3n-checkbox.vue';
9
+ import { default as Ui3nNotification } from './ui3n-notification.vue';
10
+ import { default as Ui3nTableSortIcon, Ui3nTableSortIconProps } from './ui3n-table-sort-icon.vue';
11
+ import { default as Ui3nTable, Ui3nTableProps, Ui3nTableEmits } from './ui3n-table.vue';
12
+ import { default as Ui3nDialog, Ui3nDialogComponentProps, Ui3nDialogComponentEmits, Ui3nDialogProps, Ui3nDialogEvent } from './ui3n-dialog.vue';
13
+ import { default as Ui3nMenu, Ui3nMenuProps, Ui3nMenuEmits, Ui3nMenuSlots } from './ui3n-menu.vue';
14
+ import { default as Ui3nList, Ui3nListProps, Ui3nListEmits, Ui3nListSlots } from './ui3n-list.vue';
15
+ import { default as Ui3nVirtualScroll, Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots } from './ui3n-virtual-scroll.vue';
16
+ import { default as Ui3nTabs, Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots } from './ui3n-tabs.vue';
17
+ import { default as Ui3nBadge, Ui3nBadgeProps } from './ui3n-badge.vue';
18
+ import { default as Ui3nBreadcrumb, Ui3nBreadcrumbProps, Ui3nBreadcrumbEmits, Ui3nBreadcrumbSlots } from './ui3n-breadcrumb.vue';
19
+ import { default as Ui3nBreadcrumbs, Ui3nBreadcrumbsProps } from './ui3n-breadcrumbs.vue';
20
+ import { default as Ui3nSwitch, Ui3nSwitchProps, Ui3nSwitchEmits, Ui3nSwitchSlots } from './ui3n-switch.vue';
20
21
 
21
- 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, Ui3nBreadcrumdProps, Ui3nBreadcrumdEmits, Ui3nBreadcrumdSlots, Ui3nBreadcrumbs, Ui3nBreadcrumdsProps, };
22
+ 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, };
@@ -9,12 +9,12 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
9
9
  value: string;
10
10
  color: string;
11
11
  textColor: string;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
13
  "change:size": (val: {
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_TypePropsToRuntimeProps<Ui3nBadgeSimpleProps>, {
18
18
  dot: boolean;
19
19
  value: string;
20
20
  color: string;
@@ -11,7 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
11
11
  color: string;
12
12
  textColor: string;
13
13
  position: string;
14
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBadgeProps>, {
14
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBadgeProps>, {
15
15
  dot: boolean;
16
16
  value: string;
17
17
  color: string;
@@ -1,22 +1,22 @@
1
- export interface Ui3nBreadcrumdProps {
1
+ export interface Ui3nBreadcrumbProps {
2
2
  separator?: string | undefined;
3
3
  isActive?: boolean;
4
4
  disabled?: boolean;
5
5
  }
6
- export interface Ui3nBreadcrumdEmits {
6
+ export interface Ui3nBreadcrumbEmits {
7
7
  (ev: 'click', value: Event): void;
8
8
  }
9
- export interface Ui3nBreadcrumdSlots {
9
+ 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<Ui3nBreadcrumdProps>, {
13
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbProps>, {
14
14
  separator: undefined;
15
15
  isActive: boolean;
16
16
  disabled: boolean;
17
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
18
  click: (value: Event) => void;
19
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumdProps>, {
19
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbProps>, {
20
20
  separator: undefined;
21
21
  isActive: boolean;
22
22
  disabled: boolean;
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
26
26
  separator: string;
27
27
  isActive: boolean;
28
28
  disabled: boolean;
29
- }, {}>, Readonly<Ui3nBreadcrumdSlots> & Ui3nBreadcrumdSlots>;
29
+ }, {}>, Readonly<Ui3nBreadcrumbSlots> & Ui3nBreadcrumbSlots>;
30
30
  export default _default;
31
31
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
32
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,11 +1,11 @@
1
- export interface Ui3nBreadcrumdsProps {
1
+ 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<Ui3nBreadcrumdsProps>, {
5
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbsProps>, {
6
6
  separator: string;
7
7
  disabled: boolean;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumdsProps>, {
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nBreadcrumbsProps>, {
9
9
  separator: string;
10
10
  disabled: boolean;
11
11
  }>>>, {
@@ -1,11 +1,13 @@
1
1
  export interface Ui3nButtonProps {
2
+ type?: 'primary' | 'secondary' | 'tertiary' | 'icon' | 'custom';
3
+ size?: 'regular' | 'small';
2
4
  textColor?: string;
3
5
  color?: string;
4
- round?: boolean;
5
6
  elevation?: boolean;
6
7
  icon?: string;
7
8
  iconSize?: string | number;
8
9
  iconColor?: string;
10
+ iconPosition?: 'left' | 'right';
9
11
  disabled?: boolean;
10
12
  }
11
13
  export interface Ui3nButtonEmits {
@@ -14,17 +16,32 @@ export interface Ui3nButtonEmits {
14
16
  (ev: 'focus', value: Event): void;
15
17
  (ev: 'blur', value: Event): void;
16
18
  }
17
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {
20
+ type: string;
21
+ size: string;
22
+ iconPosition: string;
23
+ disabled: boolean;
24
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
25
  init: (value: HTMLButtonElement) => void;
19
26
  click: (value: Event) => void;
20
27
  focus: (value: Event) => void;
21
28
  blur: (value: Event) => void;
22
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>>> & {
29
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {
30
+ type: string;
31
+ size: string;
32
+ iconPosition: string;
33
+ disabled: boolean;
34
+ }>>> & {
23
35
  onFocus?: ((value: Event) => any) | undefined;
24
36
  onBlur?: ((value: Event) => any) | undefined;
25
37
  onClick?: ((value: Event) => any) | undefined;
26
38
  onInit?: ((value: HTMLButtonElement) => any) | undefined;
27
- }, {}, {}>, {
39
+ }, {
40
+ type: "icon" | "primary" | "secondary" | "tertiary" | "custom";
41
+ disabled: boolean;
42
+ size: "small" | "regular";
43
+ iconPosition: "right" | "left";
44
+ }, {}>, {
28
45
  default?(_: {}): any;
29
46
  }>;
30
47
  export default _default;
@@ -37,6 +54,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
37
54
  required: true;
38
55
  };
39
56
  };
57
+ type __VLS_WithDefaults<P, D> = {
58
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
59
+ default: D[K];
60
+ }> : P[K];
61
+ };
62
+ type __VLS_Prettify<T> = {
63
+ [K in keyof T]: T[K];
64
+ } & {};
40
65
  type __VLS_WithTemplateSlots<T, S> = T & {
41
66
  new (): {
42
67
  $slots: S;
@@ -23,10 +23,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
23
23
  color: string;
24
24
  indeterminate: boolean;
25
25
  disabled: boolean;
26
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
27
  change: (value: Ui3nCheckboxValue) => void;
28
28
  "update:modelValue": (value: Ui3nCheckboxValue) => void;
29
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nCheckboxProps>, {
29
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nCheckboxProps>, {
30
30
  modelValue: boolean;
31
31
  checkedValue: boolean;
32
32
  uncheckedValue: boolean;
@@ -27,9 +27,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
27
27
  color: string;
28
28
  textSize: number;
29
29
  textColor: string;
30
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
31
  close: () => void;
32
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nChipProps>, {
32
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nChipProps>, {
33
33
  height: number;
34
34
  maxWidth: number;
35
35
  plain: boolean;
@@ -5,9 +5,9 @@ export interface Ui3nDialogProps {
5
5
  teleport?: string;
6
6
  title?: string;
7
7
  width?: string | number;
8
- cssClass?: string;
8
+ cssClass?: string[];
9
9
  cssStyle?: Record<string, string>;
10
- contentCssClass?: string;
10
+ contentCssClass?: string[];
11
11
  contentCssStyle?: Record<string, string>;
12
12
  confirmButton?: boolean;
13
13
  cancelButton?: boolean;
@@ -35,14 +35,14 @@ export interface Ui3nDialogComponentEmits {
35
35
  (ev: 'cancel', value?: any): void;
36
36
  (ev: 'click-overlay', value?: any): void;
37
37
  }
38
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nDialogComponentProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nDialogComponentProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
39
  open: (value?: any) => void;
40
40
  "before-close": (value?: any) => void;
41
41
  close: (value?: any) => void;
42
42
  confirm: (value?: any) => void;
43
43
  cancel: (value?: any) => void;
44
44
  "click-overlay": (value?: any) => void;
45
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nDialogComponentProps>>> & {
45
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nDialogComponentProps>>> & {
46
46
  onClose?: ((value?: any) => any) | undefined;
47
47
  onCancel?: ((value?: any) => any) | undefined;
48
48
  onOpen?: ((value?: any) => any) | undefined;
@@ -6,11 +6,23 @@ 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_TypePropsToRuntimeProps<Ui3nDropFilesProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nDropFilesProps>, {
10
+ title: string;
11
+ text: string;
12
+ additionalText: string;
13
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
14
  select: (fileList: FileList) => void;
11
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nDropFilesProps>>> & {
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nDropFilesProps>, {
16
+ title: string;
17
+ text: string;
18
+ additionalText: string;
19
+ }>>> & {
12
20
  onSelect?: ((fileList: FileList) => any) | undefined;
13
- }, {}, {}>, {
21
+ }, {
22
+ title: string;
23
+ text: string;
24
+ additionalText: string;
25
+ }, {}>, {
14
26
  default?(_: {}): any;
15
27
  }>;
16
28
  export default _default;
@@ -23,6 +35,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
23
35
  required: true;
24
36
  };
25
37
  };
38
+ type __VLS_WithDefaults<P, D> = {
39
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
+ default: D[K];
41
+ }> : P[K];
42
+ };
43
+ type __VLS_Prettify<T> = {
44
+ [K in keyof T]: T[K];
45
+ } & {};
26
46
  type __VLS_WithTemplateSlots<T, S> = T & {
27
47
  new (): {
28
48
  $slots: S;
@@ -9,9 +9,9 @@ export interface Ui3nEmojiEmits {
9
9
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nEmojiProps>, {
10
10
  size: number;
11
11
  readonly: boolean;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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_TypePropsToRuntimeProps<Ui3nEmojiProps>, {
15
15
  size: number;
16
16
  readonly: boolean;
17
17
  }>>> & {
@@ -14,11 +14,29 @@ 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_TypePropsToRuntimeProps<Ui3nIconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nIconProps>, {
18
+ title: string;
19
+ width: number;
20
+ height: number;
21
+ rotate: number;
22
+ color: string;
23
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
24
  click: (value: Event) => void;
19
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nIconProps>>> & {
25
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nIconProps>, {
26
+ title: string;
27
+ width: number;
28
+ height: number;
29
+ rotate: number;
30
+ color: string;
31
+ }>>> & {
20
32
  onClick?: ((value: Event) => any) | undefined;
21
- }, {}, {}>;
33
+ }, {
34
+ color: string;
35
+ title: string;
36
+ width: string | number;
37
+ height: string | number;
38
+ rotate: number;
39
+ }, {}>;
22
40
  export default _default;
23
41
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
42
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -29,3 +47,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
29
47
  required: true;
30
48
  };
31
49
  };
50
+ type __VLS_WithDefaults<P, D> = {
51
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
+ default: D[K];
53
+ }> : P[K];
54
+ };
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
@@ -1,5 +1,5 @@
1
1
  export interface Ui3nInputProps {
2
- value: string;
2
+ modelValue: string;
3
3
  label?: string;
4
4
  placeholder?: string;
5
5
  clearable?: boolean;
@@ -13,26 +13,26 @@ export interface Ui3nInputEmits {
13
13
  (ev: 'input', value: string): void;
14
14
  (ev: 'focus', value: Event): void;
15
15
  (ev: 'blur', value: Event): void;
16
- (ev: 'clear', value: string): void;
16
+ (ev: 'clear'): void;
17
17
  (ev: 'change', value: string): void;
18
- (ev: 'update:value', value: string): void;
18
+ (ev: 'update:modelValue', value: string): void;
19
19
  (ev: 'update:valid', value: boolean): void;
20
20
  }
21
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
22
  input: (value: string) => void;
23
23
  focus: (value: Event) => void;
24
24
  blur: (value: Event) => void;
25
- clear: (value: string) => void;
25
+ clear: () => void;
26
26
  change: (value: string) => void;
27
- "update:value": (value: string) => void;
27
+ "update:modelValue": (value: string) => void;
28
28
  "update:valid": (value: boolean) => void;
29
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>>> & {
29
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>>> & {
30
30
  onFocus?: ((value: Event) => any) | undefined;
31
31
  onBlur?: ((value: Event) => any) | undefined;
32
32
  onChange?: ((value: string) => any) | undefined;
33
33
  onInput?: ((value: string) => any) | undefined;
34
- onClear?: ((value: string) => any) | undefined;
35
- "onUpdate:value"?: ((value: string) => any) | undefined;
34
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
35
+ onClear?: (() => any) | undefined;
36
36
  "onUpdate:valid"?: ((value: boolean) => any) | undefined;
37
37
  }, {}, {}>;
38
38
  export default _default;
@@ -47,7 +47,7 @@ declare const _default: <T extends {
47
47
  attrs: any;
48
48
  slots: Readonly<Ui3nListSlots<T>> & Ui3nListSlots<T>;
49
49
  emit: Ui3nListEmits<T>;
50
- }>) => import('vue').VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
51
51
  [key: string]: any;
52
52
  }> & {
53
53
  __ctx?: {
@@ -22,13 +22,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
22
22
  closeOnClick: boolean;
23
23
  closeOnClickOutside: boolean;
24
24
  disabled: boolean;
25
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
26
  open: () => void;
27
27
  opened: () => void;
28
28
  close: () => void;
29
29
  closed: () => void;
30
30
  "click-outside": () => void;
31
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nMenuProps>, {
31
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nMenuProps>, {
32
32
  offsetX: number;
33
33
  offsetY: number;
34
34
  closeOnClick: boolean;
@@ -1,6 +1,27 @@
1
1
  import { Ui3nNotificationProps } from '../constants';
2
2
 
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nNotificationProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nNotificationProps>>>, {}, {}>;
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nNotificationProps>, {
4
+ type: string;
5
+ position: string;
6
+ duration: number;
7
+ withIcon: boolean;
8
+ onOpen: () => undefined;
9
+ onClose: () => undefined;
10
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nNotificationProps>, {
11
+ type: string;
12
+ position: string;
13
+ duration: number;
14
+ withIcon: boolean;
15
+ onOpen: () => undefined;
16
+ onClose: () => undefined;
17
+ }>>>, {
18
+ type: "error" | "success" | "warning" | "info";
19
+ position: "right" | "left" | "center";
20
+ onClose: () => void;
21
+ withIcon: boolean;
22
+ onOpen: () => void;
23
+ duration: number;
24
+ }, {}>;
4
25
  export default _default;
5
26
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
6
27
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -11,3 +32,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
11
32
  required: true;
12
33
  };
13
34
  };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
@@ -0,0 +1,55 @@
1
+ export interface Ui3nSwitchProps {
2
+ modelValue: boolean;
3
+ size?: number | string;
4
+ color?: string;
5
+ disabled?: boolean;
6
+ }
7
+ export interface Ui3nSwitchEmits {
8
+ (ev: 'change', value: boolean): void;
9
+ (ev: 'update:modelValue', value: boolean): void;
10
+ }
11
+ export interface Ui3nSwitchSlots {
12
+ default: () => any;
13
+ }
14
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nSwitchProps>, {
15
+ size: number;
16
+ color: string;
17
+ disabled: boolean;
18
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
+ change: (value: boolean) => void;
20
+ "update:modelValue": (value: boolean) => void;
21
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nSwitchProps>, {
22
+ size: number;
23
+ color: string;
24
+ disabled: boolean;
25
+ }>>> & {
26
+ onChange?: ((value: boolean) => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
28
+ }, {
29
+ color: string;
30
+ disabled: boolean;
31
+ size: string | number;
32
+ }, {}>, Readonly<Ui3nSwitchSlots> & Ui3nSwitchSlots>;
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
+ type __VLS_WithDefaults<P, D> = {
44
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
+ default: D[K];
46
+ }> : P[K];
47
+ };
48
+ type __VLS_Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -3,7 +3,7 @@ export interface Ui3nTableSortIconProps {
3
3
  color?: string;
4
4
  value: 'asc' | 'desc';
5
5
  }
6
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nTableSortIconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nTableSortIconProps>>>, {}, {}>;
6
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nTableSortIconProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nTableSortIconProps>>>, {}, {}>;
7
7
  export default _default;
8
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
9
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -11,13 +11,13 @@ export interface Ui3nTableEmits {
11
11
  entity: ListingEntryTypeExtended;
12
12
  }): void;
13
13
  }
14
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nTableProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nTableProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  go: (name: string) => void;
16
16
  action: (value: {
17
17
  action: EntityAction;
18
18
  entity: ListingEntryTypeExtended;
19
19
  }) => void;
20
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nTableProps>>> & {
20
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nTableProps>>> & {
21
21
  onGo?: ((name: string) => any) | undefined;
22
22
  onAction?: ((value: {
23
23
  action: EntityAction;
@@ -21,9 +21,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
21
21
  indicatorColor: string;
22
22
  indicatorSize: number;
23
23
  indicatorPosition: string;
24
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
25
  "update:modelValue": (val: number) => void;
26
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nTabsProps>, {
26
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nTabsProps>, {
27
27
  modelValue: number;
28
28
  itemDirection: string;
29
29
  activeColor: string;