@v1nt1248/3nclient-lib 0.0.42 → 0.1.1

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 (62) hide show
  1. package/README.md +7 -4
  2. package/dist/components/index.d.ts +23 -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 +30 -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 +18 -11
  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-progress-circular.vue.d.ts +43 -0
  19. package/dist/components/ui3n-progress-linear.vue.d.ts +42 -0
  20. package/dist/components/ui3n-step-line-bar.vue.d.ts +30 -0
  21. package/dist/components/ui3n-switch.vue.d.ts +55 -0
  22. package/dist/components/ui3n-table-sort-icon.vue.d.ts +1 -1
  23. package/dist/components/ui3n-table.vue.d.ts +2 -2
  24. package/dist/components/ui3n-tabs.vue.d.ts +2 -2
  25. package/dist/components/ui3n-text.vue.d.ts +29 -3
  26. package/dist/components/ui3n-virtual-scroll.vue.d.ts +9 -6
  27. package/dist/constants/types.d.ts +2 -4
  28. package/dist/directives/index.d.ts +1 -1
  29. package/dist/index.d.ts +31 -27
  30. package/dist/plugins/dialogs.d.ts +1 -1
  31. package/dist/plugins/index.d.ts +8 -8
  32. package/dist/plugins/notifications.d.ts +1 -1
  33. package/dist/plugins/vue-bus.d.ts +1 -1
  34. package/dist/style.css +1 -1
  35. package/dist/tools/sqlite-on-3nstorage/index.d.ts +3 -3
  36. package/dist/ui-3n-lib.js +7273 -6748
  37. package/package.json +58 -59
  38. package/src/components/index.ts +59 -41
  39. package/src/components/ui3n-badge-simple.vue +35 -38
  40. package/src/components/ui3n-badge.vue +25 -25
  41. package/src/components/ui3n-breadcrumb.vue +44 -44
  42. package/src/components/ui3n-breadcrumbs.vue +19 -19
  43. package/src/components/ui3n-button.vue +246 -150
  44. package/src/components/ui3n-checkbox.vue +199 -158
  45. package/src/components/ui3n-chip.vue +96 -98
  46. package/src/components/ui3n-dialog.vue +225 -235
  47. package/src/components/ui3n-drop-files.vue +146 -154
  48. package/src/components/ui3n-emoji.vue +62 -64
  49. package/src/components/ui3n-icon.vue +32 -13
  50. package/src/components/ui3n-input.vue +283 -215
  51. package/src/components/ui3n-list.vue +92 -111
  52. package/src/components/ui3n-menu.vue +101 -100
  53. package/src/components/ui3n-notification.vue +182 -113
  54. package/src/components/ui3n-progress-circular.vue +188 -0
  55. package/src/components/ui3n-progress-linear.vue +119 -0
  56. package/src/components/ui3n-step-line-bar.vue +66 -0
  57. package/src/components/ui3n-switch.vue +146 -0
  58. package/src/components/ui3n-table-sort-icon.vue +1 -2
  59. package/src/components/ui3n-table.vue +233 -228
  60. package/src/components/ui3n-tabs.vue +141 -148
  61. package/src/components/ui3n-text.vue +235 -146
  62. 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,10 @@ 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
+ - Ui3nStepLineBar
28
+ - Ui3nProgressLinear
29
+ - Ui3nProgressCircular
27
30
  - Ui3nTabs
28
31
 
29
32
  ## Directives
@@ -1,21 +1,25 @@
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';
21
+ import { default as Ui3nStepLineBar, Ui3nStepLineBarProps } from './ui3n-step-line-bar.vue';
22
+ import { default as Ui3nProgressLinear, Ui3nProgressLinearProps } from './ui3n-progress-linear.vue';
23
+ import { default as Ui3nProgressCircular, Ui3nProgressCircularProps } from './ui3n-progress-circular.vue';
20
24
 
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, };
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, };
@@ -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,14 @@
1
1
  export interface Ui3nButtonProps {
2
+ type?: 'primary' | 'secondary' | 'tertiary' | 'icon' | 'custom';
3
+ size?: 'regular' | 'small';
4
+ block?: boolean;
2
5
  textColor?: string;
3
6
  color?: string;
4
- round?: boolean;
5
7
  elevation?: boolean;
6
8
  icon?: string;
7
9
  iconSize?: string | number;
8
10
  iconColor?: string;
11
+ iconPosition?: 'left' | 'right';
9
12
  disabled?: boolean;
10
13
  }
11
14
  export interface Ui3nButtonEmits {
@@ -14,17 +17,32 @@ export interface Ui3nButtonEmits {
14
17
  (ev: 'focus', value: Event): void;
15
18
  (ev: 'blur', value: Event): void;
16
19
  }
17
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {
21
+ type: string;
22
+ size: string;
23
+ iconPosition: string;
24
+ disabled: boolean;
25
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
26
  init: (value: HTMLButtonElement) => void;
19
27
  click: (value: Event) => void;
20
28
  focus: (value: Event) => void;
21
29
  blur: (value: Event) => void;
22
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>>> & {
30
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nButtonProps>, {
31
+ type: string;
32
+ size: string;
33
+ iconPosition: string;
34
+ disabled: boolean;
35
+ }>>> & {
23
36
  onFocus?: ((value: Event) => any) | undefined;
24
37
  onBlur?: ((value: Event) => any) | undefined;
25
38
  onClick?: ((value: Event) => any) | undefined;
26
39
  onInit?: ((value: HTMLButtonElement) => any) | undefined;
27
- }, {}, {}>, {
40
+ }, {
41
+ type: "icon" | "primary" | "secondary" | "tertiary" | "custom";
42
+ disabled: boolean;
43
+ size: "small" | "regular";
44
+ iconPosition: "right" | "left";
45
+ }, {}>, {
28
46
  default?(_: {}): any;
29
47
  }>;
30
48
  export default _default;
@@ -37,6 +55,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
37
55
  required: true;
38
56
  };
39
57
  };
58
+ type __VLS_WithDefaults<P, D> = {
59
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
+ default: D[K];
61
+ }> : P[K];
62
+ };
63
+ type __VLS_Prettify<T> = {
64
+ [K in keyof T]: T[K];
65
+ } & {};
40
66
  type __VLS_WithTemplateSlots<T, S> = T & {
41
67
  new (): {
42
68
  $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,38 +1,45 @@
1
1
  export interface Ui3nInputProps {
2
- value: string;
2
+ modelValue: string;
3
3
  label?: string;
4
+ type?: 'text' | 'password';
4
5
  placeholder?: string;
5
6
  clearable?: boolean;
6
7
  autofocus?: boolean;
7
- rules?: Array<(v: string) => any>;
8
- disabled?: boolean;
9
8
  icon?: string;
10
9
  iconColor?: string;
10
+ rules?: Array<(v: string) => any>;
11
+ displayStateMode?: 'error' | 'success';
12
+ displayStateWithIcon?: boolean;
13
+ displayStateMessage?: string;
14
+ disabled?: boolean;
11
15
  }
12
16
  export interface Ui3nInputEmits {
17
+ (ev: 'init', value: HTMLInputElement): void;
13
18
  (ev: 'input', value: string): void;
14
19
  (ev: 'focus', value: Event): void;
15
20
  (ev: 'blur', value: Event): void;
16
- (ev: 'clear', value: string): void;
21
+ (ev: 'clear'): void;
17
22
  (ev: 'change', value: string): void;
18
- (ev: 'update:value', value: string): void;
23
+ (ev: 'update:modelValue', value: string): void;
19
24
  (ev: 'update:valid', value: boolean): void;
20
25
  }
21
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ init: (value: HTMLInputElement) => void;
22
28
  input: (value: string) => void;
23
29
  focus: (value: Event) => void;
24
30
  blur: (value: Event) => void;
25
- clear: (value: string) => void;
31
+ clear: () => void;
26
32
  change: (value: string) => void;
27
- "update:value": (value: string) => void;
33
+ "update:modelValue": (value: string) => void;
28
34
  "update:valid": (value: boolean) => void;
29
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>>> & {
35
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Ui3nInputProps>>> & {
30
36
  onFocus?: ((value: Event) => any) | undefined;
31
37
  onBlur?: ((value: Event) => any) | undefined;
32
38
  onChange?: ((value: string) => any) | undefined;
33
39
  onInput?: ((value: string) => any) | undefined;
34
- onClear?: ((value: string) => any) | undefined;
35
- "onUpdate:value"?: ((value: string) => any) | undefined;
40
+ onInit?: ((value: HTMLInputElement) => any) | undefined;
41
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
+ onClear?: (() => any) | undefined;
36
43
  "onUpdate:valid"?: ((value: boolean) => any) | undefined;
37
44
  }, {}, {}>;
38
45
  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,43 @@
1
+ export interface Ui3nProgressCircularProps {
2
+ value?: number | string;
3
+ size?: number | string;
4
+ width?: number | string;
5
+ withText?: boolean;
6
+ bgColor?: string;
7
+ color?: string;
8
+ indeterminate?: boolean;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nProgressCircularProps>, {
11
+ value: number;
12
+ size: number;
13
+ bgColor: string;
14
+ color: string;
15
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nProgressCircularProps>, {
16
+ value: number;
17
+ size: number;
18
+ bgColor: string;
19
+ color: string;
20
+ }>>>, {
21
+ value: string | number;
22
+ color: string;
23
+ size: string | number;
24
+ bgColor: string;
25
+ }, {}>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
@@ -0,0 +1,42 @@
1
+ export interface Ui3nProgressLinearProps {
2
+ value?: number | string;
3
+ height?: number | string;
4
+ withText?: boolean;
5
+ bgColor?: string;
6
+ color?: string;
7
+ indeterminate?: boolean;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nProgressLinearProps>, {
10
+ value: number;
11
+ height: number;
12
+ bgColor: string;
13
+ color: string;
14
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nProgressLinearProps>, {
15
+ value: number;
16
+ height: number;
17
+ bgColor: string;
18
+ color: string;
19
+ }>>>, {
20
+ value: string | number;
21
+ color: string;
22
+ height: string | number;
23
+ bgColor: string;
24
+ }, {}>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
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,30 @@
1
+ export interface Ui3nStepLineBarProps {
2
+ label: string;
3
+ current: number;
4
+ steps: number;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nStepLineBarProps>, {
7
+ current: number;
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Ui3nStepLineBarProps>, {
9
+ current: number;
10
+ }>>>, {
11
+ current: number;
12
+ }, {}>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
+ default: D[K];
26
+ }> : P[K];
27
+ };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};