@v1nt1248/3nclient-lib 0.1.5 → 0.1.7

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 (126) hide show
  1. package/dist/components/index.d.ts +42 -23
  2. package/dist/components/ui3n-badge/types.d.ts +13 -0
  3. package/dist/components/{ui3n-badge-simple.vue.d.ts → ui3n-badge/ui3n-badge-simple.vue.d.ts} +2 -7
  4. package/dist/components/{ui3n-badge.vue.d.ts → ui3n-badge/ui3n-badge.vue.d.ts} +2 -8
  5. package/dist/components/ui3n-breadcrumbs/types.d.ts +17 -0
  6. package/dist/components/{ui3n-breadcrumb.vue.d.ts → ui3n-breadcrumbs/ui3n-breadcrumb.vue.d.ts} +1 -12
  7. package/dist/components/{ui3n-breadcrumbs.vue.d.ts → ui3n-breadcrumbs/ui3n-breadcrumbs.vue.d.ts} +1 -4
  8. package/dist/components/ui3n-button/types.d.ts +19 -0
  9. package/dist/components/{ui3n-button.vue.d.ts → ui3n-button/ui3n-button.vue.d.ts} +3 -21
  10. package/dist/components/ui3n-checkbox/types.d.ts +18 -0
  11. package/dist/components/{ui3n-checkbox.vue.d.ts → ui3n-checkbox/ui3n-checkbox.vue.d.ts} +3 -19
  12. package/dist/components/ui3n-chip/types.d.ts +21 -0
  13. package/dist/components/{ui3n-chip.vue.d.ts → ui3n-chip/ui3n-chip.vue.d.ts} +1 -20
  14. package/dist/components/ui3n-dialog/types.d.ts +36 -0
  15. package/dist/components/{ui3n-dialog.vue.d.ts → ui3n-dialog/ui3n-dialog.vue.d.ts} +1 -36
  16. package/dist/components/ui3n-drop-files/types.d.ts +12 -0
  17. package/dist/components/{ui3n-drop-files.vue.d.ts → ui3n-drop-files/ui3n-drop-files.vue.d.ts} +2 -11
  18. package/dist/components/ui3n-emoji/types.d.ts +8 -0
  19. package/dist/components/{ui3n-emoji.vue.d.ts → ui3n-emoji/ui3n-emoji.vue.d.ts} +1 -8
  20. package/dist/components/ui3n-icon/types.d.ts +16 -0
  21. package/dist/components/{ui3n-icon.vue.d.ts → ui3n-icon/ui3n-icon.vue.d.ts} +1 -16
  22. package/dist/components/ui3n-input/types.d.ts +25 -0
  23. package/dist/components/{ui3n-input.vue.d.ts → ui3n-input/ui3n-input.vue.d.ts} +3 -27
  24. package/dist/components/ui3n-list/types.d.ts +20 -0
  25. package/dist/components/{ui3n-list.vue.d.ts → ui3n-list/ui3n-list.vue.d.ts} +1 -19
  26. package/dist/components/ui3n-notification/types.d.ts +11 -0
  27. package/dist/components/{ui3n-notification.vue.d.ts → ui3n-notification/ui3n-notification.vue.d.ts} +2 -2
  28. package/dist/components/ui3n-progress/types.d.ts +17 -0
  29. package/dist/components/{ui3n-progress-circular.vue.d.ts → ui3n-progress/ui3n-progress-circular.vue.d.ts} +3 -11
  30. package/dist/components/{ui3n-progress-linear.vue.d.ts → ui3n-progress/ui3n-progress-linear.vue.d.ts} +2 -9
  31. package/dist/components/ui3n-step-line-bar/types.d.ts +5 -0
  32. package/dist/components/{ui3n-step-line-bar.vue.d.ts → ui3n-step-line-bar/ui3n-step-line-bar.vue.d.ts} +1 -5
  33. package/dist/components/ui3n-switch/types.d.ts +14 -0
  34. package/dist/components/{ui3n-switch.vue.d.ts → ui3n-switch/ui3n-switch.vue.d.ts} +2 -14
  35. package/dist/components/ui3n-table/composables/useTable.d.ts +1 -1
  36. package/dist/components/ui3n-table/types.d.ts +5 -0
  37. package/dist/components/{ui3n-table-sort-icon.vue.d.ts → ui3n-table/ui3n-table-sort-icon.vue.d.ts} +1 -5
  38. package/dist/components/ui3n-tabs/types.d.ts +16 -0
  39. package/dist/components/{ui3n-tabs.vue.d.ts → ui3n-tabs/ui3n-tabs.vue.d.ts} +2 -18
  40. package/dist/components/ui3n-text/types.d.ts +17 -0
  41. package/dist/components/{ui3n-text.vue.d.ts → ui3n-text/ui3n-text.vue.d.ts} +5 -21
  42. package/dist/components/ui3n-tooltip/ui3n-tooltip.vue.d.ts +63 -0
  43. package/dist/components/ui3n-virtual-scroll/types.d.ts +12 -0
  44. package/dist/components/{ui3n-virtual-scroll.vue.d.ts → ui3n-virtual-scroll/ui3n-virtual-scroll.vue.d.ts} +1 -11
  45. package/dist/constants/index.d.ts +0 -1
  46. package/dist/index.d.ts +26 -24
  47. package/dist/plugins/dialogs/dialogs.d.ts +9 -0
  48. package/dist/plugins/{store-dialogs.d.ts → dialogs/store-dialogs.d.ts} +1 -1
  49. package/dist/plugins/dialogs/types.d.ts +12 -0
  50. package/dist/plugins/i18n/i18n.d.ts +9 -0
  51. package/dist/plugins/{i18n.d.ts → i18n/types.d.ts} +1 -9
  52. package/dist/plugins/index.d.ts +13 -9
  53. package/dist/plugins/notifications/notifications.d.ts +8 -0
  54. package/dist/plugins/{store-notifications.d.ts → notifications/store-notifications.d.ts} +1 -1
  55. package/dist/plugins/notifications/types.d.ts +6 -0
  56. package/dist/plugins/{store-vue-bus.d.ts → vue-bus/store-vue-bus.d.ts} +1 -1
  57. package/dist/plugins/vue-bus/types.d.ts +13 -0
  58. package/dist/plugins/{vue-bus.d.ts → vue-bus/vue-bus.d.ts} +2 -6
  59. package/dist/style.css +1 -1
  60. package/dist/ui3n-components.d.ts +60 -0
  61. package/dist/ui3n-components.js +5252 -0
  62. package/dist/ui3n-plugins.d.ts +44 -0
  63. package/dist/ui3n-plugins.js +5678 -0
  64. package/dist/ui3n-utils.d.ts +2 -0
  65. package/dist/{ui-3n-lib.js → ui3n-utils.js} +4477 -14513
  66. package/dist/{tools → utils}/index.d.ts +2 -2
  67. package/package.json +18 -6
  68. package/src/components/index.ts +53 -41
  69. package/src/components/ui3n-badge/types.ts +14 -0
  70. package/src/components/{ui3n-badge-simple.vue → ui3n-badge/ui3n-badge-simple.vue} +29 -35
  71. package/src/components/ui3n-badge/ui3n-badge.vue +82 -0
  72. package/src/components/ui3n-breadcrumbs/types.ts +21 -0
  73. package/src/components/{ui3n-breadcrumb.vue → ui3n-breadcrumbs/ui3n-breadcrumb.vue} +1 -14
  74. package/src/components/{ui3n-breadcrumbs.vue → ui3n-breadcrumbs/ui3n-breadcrumbs.vue} +1 -4
  75. package/src/components/ui3n-button/types.ts +20 -0
  76. package/src/components/{ui3n-button.vue → ui3n-button/ui3n-button.vue} +3 -23
  77. package/src/components/ui3n-checkbox/types.ts +22 -0
  78. package/src/components/{ui3n-checkbox.vue → ui3n-checkbox/ui3n-checkbox.vue} +2 -23
  79. package/src/components/ui3n-chip/types.ts +19 -0
  80. package/src/components/{ui3n-chip.vue → ui3n-chip/ui3n-chip.vue} +32 -50
  81. package/src/components/ui3n-dialog/types.ts +40 -0
  82. package/src/components/{ui3n-dialog.vue → ui3n-dialog/ui3n-dialog.vue} +3 -49
  83. package/src/components/ui3n-drop-files/types.ts +15 -0
  84. package/src/components/{ui3n-drop-files.vue → ui3n-drop-files/ui3n-drop-files.vue} +2 -10
  85. package/src/components/ui3n-emoji/types.ts +9 -0
  86. package/src/components/{ui3n-emoji.vue → ui3n-emoji/ui3n-emoji.vue} +2 -11
  87. package/src/components/ui3n-icon/types.ts +17 -0
  88. package/src/components/ui3n-icon/ui3n-icon.vue +53 -0
  89. package/src/components/ui3n-input/types.ts +26 -0
  90. package/src/components/{ui3n-input.vue → ui3n-input/ui3n-input.vue} +4 -30
  91. package/src/components/ui3n-list/types.ts +17 -0
  92. package/src/components/{ui3n-list.vue → ui3n-list/ui3n-list.vue} +1 -16
  93. package/src/components/ui3n-notification/types.ts +11 -0
  94. package/src/components/{ui3n-notification.vue → ui3n-notification/ui3n-notification.vue} +3 -3
  95. package/src/components/ui3n-progress/types.ts +18 -0
  96. package/src/components/{ui3n-progress-circular.vue → ui3n-progress/ui3n-progress-circular.vue} +1 -10
  97. package/src/components/{ui3n-progress-linear.vue → ui3n-progress/ui3n-progress-linear.vue} +1 -9
  98. package/src/components/ui3n-step-line-bar/types.ts +5 -0
  99. package/src/components/{ui3n-step-line-bar.vue → ui3n-step-line-bar/ui3n-step-line-bar.vue} +1 -5
  100. package/src/components/ui3n-switch/types.ts +17 -0
  101. package/src/components/{ui3n-switch.vue → ui3n-switch/ui3n-switch.vue} +1 -16
  102. package/src/components/ui3n-table/composables/useTable.ts +1 -1
  103. package/src/components/ui3n-table/types.ts +6 -0
  104. package/src/components/{ui3n-table-sort-icon.vue → ui3n-table/ui3n-table-sort-icon.vue} +2 -7
  105. package/src/components/ui3n-table/ui3n-table.vue +3 -3
  106. package/src/components/ui3n-tabs/types.ts +19 -0
  107. package/src/components/{ui3n-tabs.vue → ui3n-tabs/ui3n-tabs.vue} +3 -20
  108. package/src/components/ui3n-text/types.ts +18 -0
  109. package/src/components/{ui3n-text.vue → ui3n-text/ui3n-text.vue} +2 -21
  110. package/src/components/ui3n-virtual-scroll/types.ts +11 -0
  111. package/src/components/{ui3n-virtual-scroll.vue → ui3n-virtual-scroll/ui3n-virtual-scroll.vue} +1 -11
  112. package/dist/constants/types.d.ts +0 -29
  113. package/dist/plugins/dialogs.d.ts +0 -18
  114. package/dist/plugins/notifications.d.ts +0 -12
  115. package/src/components/ui3n-badge.vue +0 -89
  116. package/src/components/ui3n-icon.vue +0 -70
  117. package/src/components/ui3n-table-simple.vue +0 -328
  118. /package/dist/plugins/{store-i18n.d.ts → i18n/store-i18n.d.ts} +0 -0
  119. /package/dist/plugins/{icons.d.ts → icons/icons.d.ts} +0 -0
  120. /package/dist/{tools/common.helpers.d.ts → utils/common.utils.d.ts} +0 -0
  121. /package/dist/{tools → utils}/sqlite-on-3nstorage/deferred.d.ts +0 -0
  122. /package/dist/{tools → utils}/sqlite-on-3nstorage/index.d.ts +0 -0
  123. /package/dist/{tools → utils}/sqlite-on-3nstorage/synced.d.ts +0 -0
  124. /package/dist/{tools → utils}/sqlite-on-3nstorage/types.d.ts +0 -0
  125. /package/dist/{tools → utils}/textarea-max-rows.d.ts +0 -0
  126. /package/dist/{tools/ui.helpers.d.ts → utils/ui.utils.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { Ui3nNotificationProps } from '../constants';
1
+ import { Ui3nNotificationProps } from './types';
2
2
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nNotificationProps>, {
3
3
  type: string;
4
4
  position: string;
@@ -16,8 +16,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
16
16
  }>>>, {
17
17
  type: "success" | "warning" | "info" | "error";
18
18
  onClose: () => void;
19
- onOpen: () => void;
20
19
  withIcon: boolean;
20
+ onOpen: () => void;
21
21
  position: "left" | "center" | "right";
22
22
  duration: number;
23
23
  }, {}>;
@@ -0,0 +1,17 @@
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
+ export interface Ui3nProgressLinearProps {
11
+ value?: number | string;
12
+ height?: number | string;
13
+ withText?: boolean;
14
+ bgColor?: string;
15
+ color?: string;
16
+ indeterminate?: boolean;
17
+ }
@@ -1,12 +1,4 @@
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
- }
1
+ import { Ui3nProgressCircularProps } from './types';
10
2
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nProgressCircularProps>, {
11
3
  value: number;
12
4
  size: number;
@@ -18,9 +10,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
18
10
  bgColor: string;
19
11
  color: string;
20
12
  }>>>, {
21
- color: string;
22
- size: number | string;
23
13
  value: number | string;
14
+ size: number | string;
15
+ color: string;
24
16
  bgColor: string;
25
17
  }, {}>;
26
18
  export default _default;
@@ -1,11 +1,4 @@
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
- }
1
+ import { Ui3nProgressLinearProps } from './types';
9
2
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nProgressLinearProps>, {
10
3
  value: number;
11
4
  height: number;
@@ -17,9 +10,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
17
10
  bgColor: string;
18
11
  color: string;
19
12
  }>>>, {
13
+ value: number | string;
20
14
  height: number | string;
21
15
  color: string;
22
- value: number | string;
23
16
  bgColor: string;
24
17
  }, {}>;
25
18
  export default _default;
@@ -0,0 +1,5 @@
1
+ export interface Ui3nStepLineBarProps {
2
+ label: string;
3
+ current: number;
4
+ steps: number;
5
+ }
@@ -1,8 +1,4 @@
1
- export interface Ui3nStepLineBarProps {
2
- label: string;
3
- current: number;
4
- steps: number;
5
- }
1
+ import { Ui3nStepLineBarProps } from './types';
6
2
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nStepLineBarProps>, {
7
3
  current: number;
8
4
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nStepLineBarProps>, {
@@ -0,0 +1,14 @@
1
+ import { VNode } from 'vue';
2
+ export interface Ui3nSwitchProps {
3
+ modelValue: boolean;
4
+ size?: number | string;
5
+ color?: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface Ui3nSwitchEmits {
9
+ (ev: 'change', value: boolean): void;
10
+ (ev: 'update:modelValue', value: boolean): void;
11
+ }
12
+ export interface Ui3nSwitchSlots {
13
+ default: () => VNode;
14
+ }
@@ -1,16 +1,4 @@
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
- }
1
+ import { Ui3nSwitchProps, Ui3nSwitchSlots } from './types';
14
2
  declare function __VLS_template(): Readonly<Ui3nSwitchSlots> & Ui3nSwitchSlots;
15
3
  declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nSwitchProps>, {
16
4
  size: number;
@@ -27,8 +15,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
27
15
  onChange?: ((value: boolean) => any) | undefined;
28
16
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
29
17
  }, {
30
- color: string;
31
18
  size: number | string;
19
+ color: string;
32
20
  disabled: boolean;
33
21
  }, {}>;
34
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -1,6 +1,6 @@
1
1
  import { Ref, UnwrapRef } from 'vue';
2
2
  import { Ui3nTableBodyBaseItem, Ui3nTableEmits, Ui3nTableProps } from '../types';
3
- import { Ui3nCheckboxValue } from '../../ui3n-checkbox.vue';
3
+ import { Ui3nCheckboxValue } from '../../ui3n-checkbox/types';
4
4
  export declare function useTable<T extends Ui3nTableBodyBaseItem>(props: Ui3nTableProps<T>, emits: Ui3nTableEmits<T>): {
5
5
  tableEl: Ref<HTMLDivElement | null>;
6
6
  currentConfig: Ref<{
@@ -63,3 +63,8 @@ export type Ui3nTableBodyRowCellSlot<T extends Ui3nTableBodyBaseItem, K extends
63
63
  [p in `body-row-cell-${K}`]: (scope: Ui3nTableBodyRowCellSlotScope<T, K>) => VNode;
64
64
  };
65
65
  export type Ui3nTableSlots<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = Ui3nTableGroupActionsSlot & Ui3nTableHeaderCellSlot<T, K> & Ui3nTableBodyRowSlot<T> & Ui3nTableBodyRowCellSlot<T, K>;
66
+ export interface Ui3nTableSortIconProps {
67
+ size?: string | number;
68
+ color?: string;
69
+ value: 'asc' | 'desc';
70
+ }
@@ -1,8 +1,4 @@
1
- export interface Ui3nTableSortIconProps {
2
- size?: string | number;
3
- color?: string;
4
- value: 'asc' | 'desc';
5
- }
1
+ import { Ui3nTableSortIconProps } from './types';
6
2
  declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<Ui3nTableSortIconProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<Ui3nTableSortIconProps>>>, {}, {}>;
7
3
  export default _default;
8
4
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,16 @@
1
+ import { VNode } from 'vue';
2
+ export interface Ui3nTabsProps {
3
+ modelValue: number;
4
+ itemDirection?: 'horizontal' | 'vertical';
5
+ activeColor?: string;
6
+ inactiveColor?: string;
7
+ indicatorColor?: string;
8
+ indicatorSize?: number | string;
9
+ indicatorPosition?: 'normal' | 'reverse';
10
+ }
11
+ export interface Ui3nTabsEmits {
12
+ (ev: 'update:modelValue', val: number): void;
13
+ }
14
+ export interface Ui3nTabsSlots {
15
+ default: () => VNode;
16
+ }
@@ -1,21 +1,5 @@
1
- export interface Ui3nTabsProps {
2
- modelValue: number;
3
- itemDirection?: 'horizontal' | 'vertical';
4
- activeColor?: string;
5
- inactiveColor?: string;
6
- indicatorColor?: string;
7
- indicatorSize?: number | string;
8
- indicatorPosition?: 'normal' | 'reverse';
9
- }
10
- export interface Ui3nTabsEmits {
11
- (ev: 'update:modelValue', val: number): void;
12
- }
13
- export interface Ui3nTabsSlots {
14
- default: () => any;
15
- }
16
- declare function __VLS_template(): {
17
- default?(_: {}): any;
18
- };
1
+ import { Ui3nTabsProps, Ui3nTabsSlots } from './types';
2
+ declare function __VLS_template(): Readonly<Ui3nTabsSlots> & Ui3nTabsSlots;
19
3
  declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTabsProps>, {
20
4
  modelValue: number;
21
5
  itemDirection: string;
@@ -0,0 +1,17 @@
1
+ export interface Ui3nTextProps {
2
+ text: string;
3
+ rows?: number;
4
+ maxRows?: number;
5
+ label?: string;
6
+ placeholder?: string;
7
+ rules?: Array<(v: string) => string | boolean>;
8
+ disabled?: boolean;
9
+ }
10
+ export interface Ui3nTextEmits {
11
+ (ev: 'init', value: HTMLTextAreaElement): void;
12
+ (ev: 'input', value: string): void;
13
+ (ev: 'focus', value: Event): void;
14
+ (ev: 'blur', value: Event): void;
15
+ (ev: 'update:text', value: string): void;
16
+ (ev: 'update:valid', value: boolean): void;
17
+ }
@@ -1,20 +1,4 @@
1
- export interface Ui3nTextProps {
2
- text: string;
3
- rows?: number;
4
- maxRows?: number;
5
- label?: string;
6
- placeholder?: string;
7
- rules?: Array<(v: string) => any>;
8
- disabled?: boolean;
9
- }
10
- export interface Ui3nTextEmits {
11
- (ev: 'init', value: HTMLTextAreaElement): void;
12
- (ev: 'input', value: string): void;
13
- (ev: 'focus', value: Event): void;
14
- (ev: 'blur', value: Event): void;
15
- (ev: 'update:text', value: string): void;
16
- (ev: 'update:valid', value: boolean): void;
17
- }
1
+ import { Ui3nTextProps } from './types';
18
2
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTextProps>, {
19
3
  rows: number;
20
4
  maxRows: number;
@@ -35,17 +19,17 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
35
19
  placeholder: string;
36
20
  disabled: boolean;
37
21
  }>>> & {
38
- onInit?: ((value: HTMLTextAreaElement) => any) | undefined;
39
- onFocus?: ((value: Event) => any) | undefined;
40
22
  onBlur?: ((value: Event) => any) | undefined;
23
+ onFocus?: ((value: Event) => any) | undefined;
24
+ onInit?: ((value: HTMLTextAreaElement) => any) | undefined;
41
25
  onInput?: ((value: string) => any) | undefined;
42
26
  "onUpdate:valid"?: ((value: boolean) => any) | undefined;
43
27
  "onUpdate:text"?: ((value: string) => any) | undefined;
44
28
  }, {
45
- disabled: boolean;
46
29
  label: string;
47
- placeholder: string;
48
30
  rows: number;
31
+ disabled: boolean;
32
+ placeholder: string;
49
33
  maxRows: number;
50
34
  }, {}>;
51
35
  export default _default;
@@ -0,0 +1,63 @@
1
+ import { Ui3nTooltipProps, Ui3nTooltipSlots } from './types';
2
+ declare function __VLS_template(): Readonly<Ui3nTooltipSlots> & Ui3nTooltipSlots;
3
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTooltipProps>, {
4
+ color: string;
5
+ textColor: string;
6
+ placement: string;
7
+ positionStrategy: string;
8
+ offsetX: number;
9
+ offsetY: number;
10
+ trigger: string;
11
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ open: () => void;
13
+ opened: () => void;
14
+ close: () => void;
15
+ closed: () => void;
16
+ "update:modelValue": (value: boolean) => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTooltipProps>, {
18
+ color: string;
19
+ textColor: string;
20
+ placement: string;
21
+ positionStrategy: string;
22
+ offsetX: number;
23
+ offsetY: number;
24
+ trigger: string;
25
+ }>>> & {
26
+ onClose?: (() => any) | undefined;
27
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
28
+ onOpen?: (() => any) | undefined;
29
+ onOpened?: (() => any) | undefined;
30
+ onClosed?: (() => any) | undefined;
31
+ }, {
32
+ color: string;
33
+ textColor: string;
34
+ positionStrategy: "absolute" | "fixed";
35
+ offsetX: string | number;
36
+ offsetY: string | number;
37
+ placement: import('./types').Ui3nTooltipPlacement;
38
+ trigger: "click" | "hover" | "manual";
39
+ }, {}>;
40
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
41
+ export default _default;
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
55
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
+ type __VLS_TypePropsToOption<T> = {
57
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
58
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
+ } : {
60
+ type: import('vue').PropType<T[K]>;
61
+ required: true;
62
+ };
63
+ };
@@ -0,0 +1,12 @@
1
+ import { VNode } from 'vue';
2
+ export interface Ui3nVirtualScrollProps<T> {
3
+ items: T[];
4
+ minChildHeight: number;
5
+ renderAhead?: number;
6
+ }
7
+ export interface Ui3nVirtualScrollSlots<T> {
8
+ item: ({ value, index }: {
9
+ value: T;
10
+ index: number;
11
+ }) => VNode;
12
+ }
@@ -1,14 +1,4 @@
1
- export interface Ui3nVirtualScrollProps<T> {
2
- items: T[];
3
- minChildHeight: number;
4
- renderAhead?: number;
5
- }
6
- export interface Ui3nVirtualScrollSlots<T> {
7
- item: ({ value, index }: {
8
- value: T;
9
- index: number;
10
- }) => any;
11
- }
1
+ import { Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots } from './types';
12
2
  declare const _default: <T extends {
13
3
  id?: string;
14
4
  }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
@@ -1,3 +1,2 @@
1
- export type * from './types';
2
1
  export * from './general';
3
2
  export * from './emoticons';
package/dist/index.d.ts CHANGED
@@ -1,32 +1,34 @@
1
- import { CbFunction, Ui3nNotificationProps, VueEventBus } from './constants';
2
- import { DialogInstance } from './plugins/dialogs';
3
- import { default as Ui3nButton } from './components/ui3n-button.vue';
4
- import { default as Ui3nChip } from './components/ui3n-chip.vue';
5
- import { default as Ui3nCheckbox } from './components/ui3n-checkbox.vue';
6
- import { default as Ui3nDialog, Ui3nDialogComponentProps } from './components/ui3n-dialog.vue';
7
- import { default as Ui3nDropFiles } from './components/ui3n-drop-files.vue';
8
- import { default as Ui3nEmoji } from './components/ui3n-emoji.vue';
9
- import { default as Ui3nIcon } from './components/ui3n-icon.vue';
10
- import { default as Ui3nInput } from './components/ui3n-input.vue';
11
- import { default as Ui3nList } from './components/ui3n-list.vue';
1
+ import { default as Ui3nButton } from './components/ui3n-button/ui3n-button.vue';
2
+ import { default as Ui3nChip } from './components/ui3n-chip/ui3n-chip.vue';
3
+ import { default as Ui3nCheckbox } from './components/ui3n-checkbox/ui3n-checkbox.vue';
4
+ import { default as Ui3nDialog } from './components/ui3n-dialog/ui3n-dialog.vue';
5
+ import { Ui3nDialogComponentProps } from './components/ui3n-dialog/types';
6
+ import { default as Ui3nDropFiles } from './components/ui3n-drop-files/ui3n-drop-files.vue';
7
+ import { default as Ui3nEmoji } from './components/ui3n-emoji/ui3n-emoji.vue';
8
+ import { default as Ui3nIcon } from './components/ui3n-icon/ui3n-icon.vue';
9
+ import { default as Ui3nInput } from './components/ui3n-input/ui3n-input.vue';
10
+ import { default as Ui3nList } from './components/ui3n-list/ui3n-list.vue';
12
11
  import { default as Ui3nMenu } from './components/ui3n-menu/ui3n-menu.vue';
13
- import { default as Ui3nNotification } from './components/ui3n-notification.vue';
14
- import { default as Ui3nTableSortIcon } from './components/ui3n-table-sort-icon.vue';
12
+ import { default as Ui3nNotification } from './components/ui3n-notification/ui3n-notification.vue';
13
+ import { Ui3nNotificationProps } from './components/ui3n-notification/types';
14
+ import { default as Ui3nTableSortIcon } from './components/ui3n-table/ui3n-table-sort-icon.vue';
15
15
  import { default as Ui3nTable } from './components/ui3n-table/ui3n-table.vue';
16
- import { default as Ui3nText } from './components/ui3n-text.vue';
17
- import { default as Ui3nVirtualScroll } from './components/ui3n-virtual-scroll.vue';
18
- import { default as Ui3nTabs } from './components/ui3n-tabs.vue';
19
- import { default as Ui3nBadge } from './components/ui3n-badge.vue';
20
- import { default as Ui3nBreadcrumb } from './components/ui3n-breadcrumb.vue';
21
- import { default as Ui3nBreadcrumbs } from './components/ui3n-breadcrumbs.vue';
22
- import { default as Ui3nSwitch } from './components/ui3n-switch.vue';
23
- import { default as Ui3nStepLineBar } from './components/ui3n-step-line-bar.vue';
24
- import { default as Ui3nProgressLinear } from './components/ui3n-progress-linear.vue';
25
- import { default as Ui3nProgressCircular } from './components/ui3n-progress-circular.vue';
16
+ import { default as Ui3nText } from './components/ui3n-text/ui3n-text.vue';
17
+ import { default as Ui3nVirtualScroll } from './components/ui3n-virtual-scroll/ui3n-virtual-scroll.vue';
18
+ import { default as Ui3nTabs } from './components/ui3n-tabs/ui3n-tabs.vue';
19
+ import { default as Ui3nBadge } from './components/ui3n-badge/ui3n-badge.vue';
20
+ import { default as Ui3nBreadcrumb } from './components/ui3n-breadcrumbs/ui3n-breadcrumb.vue';
21
+ import { default as Ui3nBreadcrumbs } from './components/ui3n-breadcrumbs/ui3n-breadcrumbs.vue';
22
+ import { default as Ui3nSwitch } from './components/ui3n-switch/ui3n-switch.vue';
23
+ import { default as Ui3nStepLineBar } from './components/ui3n-step-line-bar/ui3n-step-line-bar.vue';
24
+ import { default as Ui3nProgressLinear } from './components/ui3n-progress/ui3n-progress-linear.vue';
25
+ import { default as Ui3nProgressCircular } from './components/ui3n-progress/ui3n-progress-circular.vue';
26
26
  import { default as Ui3nHtml } from './directives/ui3n-html';
27
27
  import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
28
+ import { CbFunction, VueEventBus } from './plugins/vue-bus/types';
29
+ import { DialogInstance } from './plugins/dialogs/types';
28
30
  export * from './constants';
29
- export * from './tools';
31
+ export * from './utils';
30
32
  export * from './plugins';
31
33
  export * from './directives';
32
34
  export * from './components';
@@ -0,0 +1,9 @@
1
+ import { Plugin } from 'vue';
2
+ import { Ui3nDialogComponentProps } from '../../components/ui3n-dialog/types';
3
+ import { DialogInstance } from './types';
4
+ export declare const dialogs: Plugin;
5
+ declare module '@vue/runtime-core' {
6
+ interface ComponentCustomProperties {
7
+ $openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
8
+ }
9
+ }
@@ -1,4 +1,4 @@
1
- import { Ui3nDialogComponentProps } from '../components/ui3n-dialog.vue';
1
+ import { Ui3nDialogComponentProps } from '../../components/ui3n-dialog/types';
2
2
  export declare function storeDialogs(context: any): {
3
3
  $openDialog: (params: Ui3nDialogComponentProps) => void;
4
4
  };
@@ -0,0 +1,12 @@
1
+ import { InjectionKey, VNode } from 'vue';
2
+ import { Ui3nDialogComponentProps } from '../../components/ui3n-dialog/types';
3
+ export type DialogInstance = {
4
+ id: string;
5
+ el: HTMLDivElement;
6
+ vNode: VNode;
7
+ destroy: () => void;
8
+ };
9
+ export interface DialogsPlugin {
10
+ $openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
11
+ }
12
+ export declare const DIALOGS_KEY: InjectionKey<DialogsPlugin>;
@@ -0,0 +1,9 @@
1
+ import { Plugin } from 'vue';
2
+ export declare const i18n: Plugin;
3
+ declare module '@vue/runtime-core' {
4
+ interface ComponentCustomProperties {
5
+ $locale: string;
6
+ $tr: (key: string, placeholders?: Record<string, string>) => string;
7
+ $changeLocale: (lang: string) => void;
8
+ }
9
+ }
@@ -1,4 +1,4 @@
1
- import { Plugin, InjectionKey } from 'vue';
1
+ import { InjectionKey } from 'vue';
2
2
  export interface I18nOptions {
3
3
  lang: string;
4
4
  messages: Record<string, Record<string, string>>;
@@ -9,11 +9,3 @@ export interface I18nPlugin {
9
9
  $changeLocale: (lang: string) => void;
10
10
  }
11
11
  export declare const I18N_KEY: InjectionKey<I18nPlugin>;
12
- export declare const i18n: Plugin;
13
- declare module '@vue/runtime-core' {
14
- interface ComponentCustomProperties {
15
- $locale: string;
16
- $tr: (key: string, placeholders?: Record<string, string>) => string;
17
- $changeLocale: (lang: string) => void;
18
- }
19
- }
@@ -1,10 +1,14 @@
1
- import { i18n, I18N_KEY, I18nOptions, I18nPlugin } from './i18n';
2
- import { useIcons } from './icons';
3
- import { notifications, NOTIFICATIONS_KEY, NotificationsPlugin } from './notifications';
4
- import { vueBus, VUEBUS_KEY, VueBusPlugin } from './vue-bus';
5
- import { dialogs, DIALOGS_KEY, DialogsPlugin } from './dialogs';
6
- import { storeI18n } from './store-i18n';
7
- import { storeNotifications } from './store-notifications';
8
- import { storeVueBus } from './store-vue-bus';
9
- import { storeDialogs } from './store-dialogs';
1
+ import { i18n } from './i18n/i18n';
2
+ import { I18N_KEY, I18nOptions, I18nPlugin } from './i18n/types';
3
+ import { useIcons } from './icons/icons';
4
+ import { notifications } from './notifications/notifications';
5
+ import { NOTIFICATIONS_KEY, NotificationsPlugin } from './notifications/types';
6
+ import { vueBus } from './vue-bus/vue-bus';
7
+ import { VUEBUS_KEY, VueBusPlugin } from './vue-bus/types';
8
+ import { dialogs } from './dialogs/dialogs';
9
+ import { DIALOGS_KEY, DialogsPlugin } from './dialogs/types';
10
+ import { storeI18n } from './i18n/store-i18n';
11
+ import { storeNotifications } from './notifications/store-notifications';
12
+ import { storeVueBus } from './vue-bus/store-vue-bus';
13
+ import { storeDialogs } from './dialogs/store-dialogs';
10
14
  export { i18n, I18nOptions, I18nPlugin, I18N_KEY, useIcons, notifications, NotificationsPlugin, NOTIFICATIONS_KEY, vueBus, VueBusPlugin, VUEBUS_KEY, dialogs, DialogsPlugin, DIALOGS_KEY, storeI18n, storeNotifications, storeVueBus, storeDialogs, };
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'vue';
2
+ import { Ui3nNotificationProps } from '../../components/ui3n-notification/types';
3
+ export declare const notifications: Plugin;
4
+ declare module '@vue/runtime-core' {
5
+ interface ComponentCustomProperties {
6
+ $createNotice: (params: Ui3nNotificationProps) => void;
7
+ }
8
+ }
@@ -1,4 +1,4 @@
1
- import { Ui3nNotificationProps } from '../constants';
1
+ import { Ui3nNotificationProps } from '../../components/ui3n-notification/types';
2
2
  export declare function storeNotifications(context: any): {
3
3
  $createNotice: (params: Ui3nNotificationProps) => void;
4
4
  };
@@ -0,0 +1,6 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { Ui3nNotificationProps } from '../../components/ui3n-notification/types';
3
+ export interface NotificationsPlugin {
4
+ $createNotice: (params: Ui3nNotificationProps) => void;
5
+ }
6
+ export declare const NOTIFICATIONS_KEY: InjectionKey<NotificationsPlugin>;
@@ -1,4 +1,4 @@
1
- import { VueEventBus } from '../constants';
1
+ import { VueEventBus } from './types';
2
2
  export declare function storeVueBus(context: any): {
3
3
  $emitter: VueEventBus;
4
4
  };
@@ -0,0 +1,13 @@
1
+ import { InjectionKey } from 'vue';
2
+ export type CbFunction = (...args: any[]) => void;
3
+ export interface VueEventBus {
4
+ on: (type: string | symbol, handler: CbFunction) => void;
5
+ off: (type: string | symbol, handler?: CbFunction) => void;
6
+ emit: (type: string | symbol, arg?: any) => void;
7
+ once: (type: string | symbol, handler: CbFunction) => void;
8
+ clear: () => void;
9
+ }
10
+ export interface VueBusPlugin {
11
+ $emitter: VueEventBus;
12
+ }
13
+ export declare const VUEBUS_KEY: InjectionKey<VueBusPlugin>;
@@ -1,9 +1,5 @@
1
- import { Plugin, InjectionKey } from 'vue';
2
- import { CbFunction, VueEventBus } from '../constants';
3
- export interface VueBusPlugin {
4
- $emitter: VueEventBus;
5
- }
6
- export declare const VUEBUS_KEY: InjectionKey<VueBusPlugin>;
1
+ import { Plugin } from 'vue';
2
+ import { CbFunction } from './types';
7
3
  export declare const vueBus: Plugin;
8
4
  declare module '@vue/runtime-core' {
9
5
  interface ComponentCustomProperties {