@dv.net/ui-kit 7.6.0 → 7.6.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 (138) hide show
  1. package/dist/components/UiAnimation/UiAnimation.vue.d.ts +747 -0
  2. package/dist/components/UiAnimation/types.d.ts +6 -0
  3. package/dist/components/UiAvatar/UiAvatar.vue.d.ts +3 -0
  4. package/dist/components/UiAvatar/components/AvatarMask.vue.d.ts +5 -0
  5. package/dist/components/UiAvatar/types.d.ts +9 -0
  6. package/dist/components/UiBlockTitle/UiBlockTitle.vue.d.ts +18 -0
  7. package/dist/components/UiBlockTitle/types.d.ts +8 -0
  8. package/dist/components/UiButton/UiButton.vue.d.ts +33 -0
  9. package/dist/components/UiButton/types.d.ts +27 -0
  10. package/dist/components/UiChat/UiChat.vue.d.ts +118 -0
  11. package/dist/components/UiChat/UiChatAttachments.vue.d.ts +17 -0
  12. package/dist/components/UiChat/UiChatFooter.vue.d.ts +96 -0
  13. package/dist/components/UiChat/UiChatHeader.vue.d.ts +14 -0
  14. package/dist/components/UiChat/UiChatManagerAlert.vue.d.ts +5 -0
  15. package/dist/components/UiChat/UiChatMessage.vue.d.ts +7 -0
  16. package/dist/components/UiChat/UiChatMessageAttachments.vue.d.ts +6 -0
  17. package/dist/components/UiChat/types.d.ts +69 -0
  18. package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +34 -0
  19. package/dist/components/UiCheckbox/types.d.ts +8 -0
  20. package/dist/components/UiCheckboxGroup/UiCheckboxGroup.vue.d.ts +30 -0
  21. package/dist/components/UiCheckboxGroup/constants.d.ts +1 -0
  22. package/dist/components/UiCheckboxGroup/types.d.ts +12 -0
  23. package/dist/components/UiCollapse/UiCollapse.vue.d.ts +29 -0
  24. package/dist/components/UiCollapse/constants.d.ts +1 -0
  25. package/dist/components/UiCollapse/types.d.ts +12 -0
  26. package/dist/components/UiCollapseItem/UiCollapseItem.vue.d.ts +19 -0
  27. package/dist/components/UiCollapseItem/types.d.ts +7 -0
  28. package/dist/components/UiConfirm/UiConfirm.vue.d.ts +42 -0
  29. package/dist/components/UiConfirm/types.d.ts +11 -0
  30. package/dist/components/UiCopyText/UiCopyText.vue.d.ts +27 -0
  31. package/dist/components/UiCopyText/types.d.ts +9 -0
  32. package/dist/components/UiDatepicker/UiDatepickerRange.vue.d.ts +861 -0
  33. package/dist/components/UiDatepicker/components/DatePickerInput.vue.d.ts +21 -0
  34. package/dist/components/UiDatepicker/components/DatePickerInputs.vue.d.ts +15 -0
  35. package/dist/components/UiDatepicker/components/DatePickerPresets.vue.d.ts +11 -0
  36. package/dist/components/UiDatepicker/components/DatePickerSlider.vue.d.ts +34 -0
  37. package/dist/components/UiDatepicker/composables/useDatePicker.d.ts +19 -0
  38. package/dist/components/UiDatepicker/composables/useDatePickerPresets.d.ts +6 -0
  39. package/dist/components/UiDatepicker/composables/useDatePickerSelected.d.ts +18 -0
  40. package/dist/components/UiDatepicker/types.d.ts +26 -0
  41. package/dist/components/UiDragAndDrop/UiDragAndDrop.vue.d.ts +19 -0
  42. package/dist/components/UiDragAndDrop/UiFileItem.vue.d.ts +10 -0
  43. package/dist/components/UiDragAndDrop/UiFileItemLoading.vue.d.ts +10 -0
  44. package/dist/components/UiDragAndDrop/UiProgressBar.vue.d.ts +9 -0
  45. package/dist/components/UiDragAndDrop/icons/FileIcon.vue.d.ts +2 -0
  46. package/dist/components/UiDragAndDrop/types.d.ts +13 -0
  47. package/dist/components/UiDrawer/UiDrawer.vue.d.ts +29 -0
  48. package/dist/components/UiDrawer/types.d.ts +7 -0
  49. package/dist/components/UiDropdown/UiDropdown.vue.d.ts +47 -0
  50. package/dist/components/UiDropdown/types.d.ts +14 -0
  51. package/dist/components/UiFlagIcon/UiFlagIcon.vue.d.ts +5 -0
  52. package/dist/components/UiFlagIcon/types.d.ts +4 -0
  53. package/dist/components/UiForm/UiForm.vue.d.ts +23 -0
  54. package/dist/components/UiForm/constants.d.ts +1 -0
  55. package/dist/components/UiForm/types.d.ts +15 -0
  56. package/dist/components/UiForm/useValidate.d.ts +5 -0
  57. package/dist/components/UiForm/validations.d.ts +4 -0
  58. package/dist/components/UiFormItem/UiFormItem.vue.d.ts +26 -0
  59. package/dist/components/UiFormItem/types.d.ts +16 -0
  60. package/dist/components/UiGallery/UiGallery.vue.d.ts +11 -0
  61. package/dist/components/UiGallery/types.d.ts +8 -0
  62. package/dist/components/UiIcon/UiIcon.vue.d.ts +6 -0
  63. package/dist/components/UiIcon/types.d.ts +8 -0
  64. package/dist/components/UiIconButton/UiIconButton.vue.d.ts +14 -0
  65. package/dist/components/UiIconButton/types.d.ts +21 -0
  66. package/dist/components/UiInput/UiInput.vue.d.ts +51 -0
  67. package/dist/components/UiInput/types.d.ts +23 -0
  68. package/dist/components/UiLanguages/UiLanguages.vue.d.ts +261 -0
  69. package/dist/components/UiLanguages/components/UiLanguageButton.vue.d.ts +7 -0
  70. package/dist/components/UiLanguages/types.d.ts +17 -0
  71. package/dist/components/UiLayout/UiLayout.vue.d.ts +27 -0
  72. package/dist/components/UiLayout/types.d.ts +4 -0
  73. package/dist/components/UiLayoutAuth/UiLayoutAuth.vue.d.ts +18 -0
  74. package/dist/components/UiLayoutMenu/UiLayoutMenu.vue.d.ts +9 -0
  75. package/dist/components/UiLayoutMenu/UiLayoutMenuItem.vue.d.ts +7 -0
  76. package/dist/components/UiLayoutMenu/types.d.ts +30 -0
  77. package/dist/components/UiLink/UiLink.vue.d.ts +21 -0
  78. package/dist/components/UiLink/types.d.ts +10 -0
  79. package/dist/components/UiLoading/UiLoading.vue.d.ts +7 -0
  80. package/dist/components/UiLoading/types.d.ts +9 -0
  81. package/dist/components/UiMobileMenu/UiMobileMenu.vue.d.ts +31 -0
  82. package/dist/components/UiModal/UiModal.vue.d.ts +38 -0
  83. package/dist/components/UiModal/types.d.ts +11 -0
  84. package/dist/components/UiOverlay/UiOverlay.vue.d.ts +24 -0
  85. package/dist/components/UiPagination/UiPagination.vue.d.ts +22 -0
  86. package/dist/components/UiPagination/components/IconArrow.vue.d.ts +2 -0
  87. package/dist/components/UiPagination/types.d.ts +13 -0
  88. package/dist/components/UiProfileMenu/UiProfileMenu.vue.d.ts +29 -0
  89. package/dist/components/UiProfileMenu/components/UiProfileMenuItem.vue.d.ts +1258 -0
  90. package/dist/components/UiProfileMenu/types.d.ts +22 -0
  91. package/dist/components/UiRadio/UiRadio.vue.d.ts +21 -0
  92. package/dist/components/UiRadio/types.d.ts +6 -0
  93. package/dist/components/UiRadioGroup/UiRadioGroup.vue.d.ts +30 -0
  94. package/dist/components/UiRadioGroup/constants.d.ts +1 -0
  95. package/dist/components/UiRadioGroup/types.d.ts +12 -0
  96. package/dist/components/UiSelect/UiSelect.vue.d.ts +39 -0
  97. package/dist/components/UiSelect/components/SelectList.vue.d.ts +22 -0
  98. package/dist/components/UiSelect/components/SelectListItem.vue.d.ts +32 -0
  99. package/dist/components/UiSelect/components/SelectSearch.vue.d.ts +124 -0
  100. package/dist/components/UiSelect/components/SelectTrigger.vue.d.ts +33 -0
  101. package/dist/components/UiSelect/components/SelectVirtualList.vue.d.ts +27 -0
  102. package/dist/components/UiSelect/composables/useKeyboard.d.ts +11 -0
  103. package/dist/components/UiSelect/composables/useMultiple.d.ts +4 -0
  104. package/dist/components/UiSelect/types.d.ts +43 -0
  105. package/dist/components/UiSkeleton/UiSkeleton.vue.d.ts +11 -0
  106. package/dist/components/UiSkeleton/types.d.ts +9 -0
  107. package/dist/components/UiSwitch/UiSwitch.vue.d.ts +17 -0
  108. package/dist/components/UiSwitch/types.d.ts +8 -0
  109. package/dist/components/UiTable/UiTable.vue.d.ts +64 -0
  110. package/dist/components/UiTable/components/TableSort.vue.d.ts +27 -0
  111. package/dist/components/UiTable/components/TableSummary.vue.d.ts +26 -0
  112. package/dist/components/UiTable/composables/useExpande.d.ts +6 -0
  113. package/dist/components/UiTable/composables/useSelected.d.ts +9 -0
  114. package/dist/components/UiTable/composables/useSort.d.ts +9 -0
  115. package/dist/components/UiTable/helpers/getValueByHeaderName.d.ts +1 -0
  116. package/dist/components/UiTable/types.d.ts +58 -0
  117. package/dist/components/UiTabs/UiTabs.vue.d.ts +32 -0
  118. package/dist/components/UiTabs/constants.d.ts +1 -0
  119. package/dist/components/UiTabs/types.d.ts +17 -0
  120. package/dist/components/UiTabsItem/UiTabsItem.vue.d.ts +18 -0
  121. package/dist/components/UiTabsItem/types.d.ts +4 -0
  122. package/dist/components/UiTag/UiTag.vue.d.ts +8 -0
  123. package/dist/components/UiTag/types.d.ts +8 -0
  124. package/dist/components/UiTextarea/UiTextarea.vue.d.ts +55 -0
  125. package/dist/components/UiTextarea/type.d.ts +17 -0
  126. package/dist/components/UiTooltip/UiTooltip.vue.d.ts +56 -0
  127. package/dist/components/UiTooltip/types.d.ts +19 -0
  128. package/dist/composables/useBreakpoints.d.ts +5 -0
  129. package/dist/composables/useNotification/UiNotification.vue.d.ts +24 -0
  130. package/dist/composables/useNotification/types.d.ts +1 -0
  131. package/dist/composables/useNotification/useNotification.d.ts +2 -0
  132. package/dist/config/index.d.ts +182 -0
  133. package/dist/helpers/animations-list.d.ts +55 -0
  134. package/dist/helpers/is-mobile-device.d.ts +1 -0
  135. package/dist/helpers/svg-list.d.ts +5 -0
  136. package/dist/helpers/toogleHiddenClass.d.ts +1 -0
  137. package/dist/index.d.ts +48 -0
  138. package/package.json +9 -1
@@ -0,0 +1,22 @@
1
+ import { Component } from 'vue';
2
+ import { AvatarStatusType } from '../UiAvatar/types';
3
+ import { UiIconType } from '../UiIcon/types';
4
+ export interface ProfileMenuItem {
5
+ name?: string;
6
+ iconName?: string;
7
+ iconColor?: string;
8
+ iconType?: UiIconType;
9
+ animationIcon?: Component;
10
+ label?: string;
11
+ isShow?: boolean;
12
+ isActive?: boolean;
13
+ action?: () => void;
14
+ class?: () => string;
15
+ id?: () => string;
16
+ }
17
+ export interface UiProfileMenuProps {
18
+ userEmail: string | null;
19
+ status?: AvatarStatusType;
20
+ menuItems: ProfileMenuItem[][];
21
+ avatar?: string;
22
+ }
@@ -0,0 +1,21 @@
1
+ import { UiRadioProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ subtitle?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLLabelElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<UiRadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiRadioProps> & Readonly<{}>, {
13
+ size: import('./types').UiRadioSize;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,6 @@
1
+ export type UiRadioSize = "sm" | "md";
2
+ export interface UiRadioProps {
3
+ size?: UiRadioSize;
4
+ value: string | number;
5
+ disabled?: boolean;
6
+ }
@@ -0,0 +1,30 @@
1
+ import { UiRadioGroupProps } from './types';
2
+ type __VLS_Props = UiRadioGroupProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string | number;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "update:modelValue": (value: string | number) => any;
17
+ change: (value: string | number) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
20
+ onChange?: ((value: string | number) => any) | undefined;
21
+ }>, {
22
+ size: import('../UiRadio/types').UiRadioSize;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1 @@
1
+ export declare const RADIO_GROUP_PROVIDE_VALUE: unique symbol;
@@ -0,0 +1,12 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { UiRadioSize } from '../UiRadio/types';
3
+ export interface UiRadioGroupProps {
4
+ disabled?: boolean;
5
+ size?: UiRadioSize;
6
+ }
7
+ export interface UiRadioGroupProvideData {
8
+ modelValue: Ref<string | number>;
9
+ disabled?: ComputedRef<boolean>;
10
+ change: (value: string | number) => void;
11
+ size?: ComputedRef<UiRadioSize>;
12
+ }
@@ -0,0 +1,39 @@
1
+ import { UiSelectProps } from './types.ts';
2
+ declare const _default: <ModelValue, Options>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onClear?: ((...args: any[]) => any) | undefined;
5
+ readonly onSearch?: ((...args: any[]) => any) | undefined;
6
+ readonly "onUpdate:modelValue"?: ((value: ModelValue | null) => any) | undefined;
7
+ readonly onChange?: ((...args: any[]) => any) | undefined;
8
+ readonly onOnClose?: ((...args: any[]) => any) | undefined;
9
+ readonly onChangeInfinityScroll?: ((...args: any[]) => any) | undefined;
10
+ readonly "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue" | "onClear" | "onChangeInfinityScroll" | "onSearch" | "onOnClose" | "onUpdate:isOpen"> & ({
12
+ modelValue?: ModelValue | null;
13
+ isOpen?: boolean;
14
+ } & UiSelectProps<Options>) & Partial<{}>> & import('vue').PublicProps;
15
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
16
+ attrs: any;
17
+ slots: {
18
+ selected?(_: {
19
+ option: ModelValue;
20
+ }): any;
21
+ header?(_: {}): any;
22
+ default?(_: {
23
+ option: Options;
24
+ checked: boolean;
25
+ }): any;
26
+ default?(_: {
27
+ option: Options;
28
+ checked: boolean;
29
+ }): any;
30
+ footer?(_: {}): any;
31
+ };
32
+ emit: ((event: "clear" | "search" | "change" | "onClose" | "changeInfinityScroll", ...args: any[]) => void) & (((evt: "update:modelValue", value: ModelValue | null) => void) & ((evt: "update:isOpen", value: boolean) => void));
33
+ }>) => import('vue').VNode & {
34
+ __ctx?: Awaited<typeof __VLS_setup>;
35
+ };
36
+ export default _default;
37
+ type __VLS_PrettifyLocal<T> = {
38
+ [K in keyof T]: T[K];
39
+ } & {};
@@ -0,0 +1,22 @@
1
+ declare const _default: <Options>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
3
+ options: Options[];
4
+ } & Partial<{}>> & import('vue').PublicProps;
5
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: {
8
+ default?(_: {
9
+ options: {
10
+ index: number;
11
+ data: Options;
12
+ }[];
13
+ }): any;
14
+ };
15
+ emit: {};
16
+ }>) => import('vue').VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -0,0 +1,32 @@
1
+ import { SelectListItemSizeKeys } from '../types';
2
+ interface UiSelectListItemProps {
3
+ isDisabled: boolean;
4
+ isChecked: boolean;
5
+ isNavigated: boolean;
6
+ size?: SelectListItemSizeKeys;
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: HTMLButtonElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<UiSelectListItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ check: (...args: any[]) => void;
19
+ mouseOver: (...args: any[]) => void;
20
+ }, string, import('vue').PublicProps, Readonly<UiSelectListItemProps> & Readonly<{
21
+ onCheck?: ((...args: any[]) => any) | undefined;
22
+ onMouseOver?: ((...args: any[]) => any) | undefined;
23
+ }>, {
24
+ size: SelectListItemSizeKeys;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,124 @@
1
+ type __VLS_Props = {
2
+ placeholder?: string;
3
+ };
4
+ type __VLS_PublicProps = {
5
+ modelValue?: string;
6
+ } & __VLS_Props;
7
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (value: string) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
+ inputRef: ({
13
+ $: import('vue').ComponentInternalInstance;
14
+ $data: {};
15
+ $props: {
16
+ readonly modelValue?: string | null | number | undefined | undefined;
17
+ readonly isDisabled?: boolean | undefined;
18
+ readonly placeholder?: string | undefined;
19
+ readonly label?: string | undefined;
20
+ readonly size?: import('../../UiInput/types').InputSize | undefined;
21
+ readonly filled?: boolean | undefined;
22
+ readonly error?: boolean | undefined;
23
+ readonly disabled?: boolean | undefined;
24
+ readonly inside?: boolean | undefined;
25
+ readonly type?: string | undefined;
26
+ readonly readonly?: boolean | undefined;
27
+ readonly readonlyInteractive?: boolean | undefined;
28
+ readonly autofocus?: boolean | undefined;
29
+ readonly clearable?: boolean | undefined;
30
+ readonly isEmptyValueNull?: boolean | undefined;
31
+ readonly id?: string | undefined;
32
+ readonly indexTab?: string | undefined;
33
+ readonly autocomplete?: string | undefined;
34
+ readonly showPassword?: boolean | undefined;
35
+ readonly name?: string | undefined;
36
+ readonly step?: string | undefined;
37
+ readonly onClear?: ((args_0?: void | undefined) => any) | undefined;
38
+ readonly onInput?: ((args_0: string) => any) | undefined;
39
+ readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
40
+ readonly onChange?: ((args_0?: void | undefined) => any) | undefined;
41
+ readonly onBlur?: ((args_0?: void | undefined) => any) | undefined;
42
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
43
+ $attrs: import('vue').Attrs;
44
+ $refs: {
45
+ [x: string]: unknown;
46
+ } & {
47
+ prependRef: HTMLDivElement;
48
+ inputRef: HTMLInputElement;
49
+ appendRef: HTMLDivElement;
50
+ };
51
+ $slots: Readonly<{
52
+ [name: string]: import('vue').Slot<any> | undefined;
53
+ }>;
54
+ $root: import('vue').ComponentPublicInstance | null;
55
+ $parent: import('vue').ComponentPublicInstance | null;
56
+ $host: Element | null;
57
+ $emit: ((event: "clear", args_0?: void | undefined) => void) & ((event: "input", args_0: string) => void) & ((event: "update:modelValue", value: string | number | null | undefined) => void) & ((event: "change", args_0?: void | undefined) => void) & ((event: "blur", args_0?: void | undefined) => void);
58
+ $el: HTMLDivElement;
59
+ $options: import('vue').ComponentOptionsBase<Readonly<{
60
+ modelValue?: string | null | number | undefined;
61
+ } & import('../../UiInput/types').InputProps> & Readonly<{
62
+ onClear?: ((args_0?: void | undefined) => any) | undefined;
63
+ onInput?: ((args_0: string) => any) | undefined;
64
+ "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
65
+ onChange?: ((args_0?: void | undefined) => any) | undefined;
66
+ onBlur?: ((args_0?: void | undefined) => any) | undefined;
67
+ }>, {
68
+ focus: () => any;
69
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
70
+ clear: (args_0: void) => any;
71
+ input: (args_0: string) => any;
72
+ "update:modelValue": (value: string | number | null | undefined) => any;
73
+ change: (args_0: void) => any;
74
+ blur: (args_0: void) => any;
75
+ }, string, {
76
+ size: import('../../UiInput/types').InputSize;
77
+ type: string;
78
+ indexTab: string;
79
+ autocomplete: string;
80
+ step: string;
81
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
82
+ beforeCreate?: (() => void) | (() => void)[];
83
+ created?: (() => void) | (() => void)[];
84
+ beforeMount?: (() => void) | (() => void)[];
85
+ mounted?: (() => void) | (() => void)[];
86
+ beforeUpdate?: (() => void) | (() => void)[];
87
+ updated?: (() => void) | (() => void)[];
88
+ activated?: (() => void) | (() => void)[];
89
+ deactivated?: (() => void) | (() => void)[];
90
+ beforeDestroy?: (() => void) | (() => void)[];
91
+ beforeUnmount?: (() => void) | (() => void)[];
92
+ destroyed?: (() => void) | (() => void)[];
93
+ unmounted?: (() => void) | (() => void)[];
94
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
95
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
96
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
97
+ };
98
+ $forceUpdate: () => void;
99
+ $nextTick: typeof import('vue').nextTick;
100
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
101
+ } & Readonly<{
102
+ size: import('../../UiInput/types').InputSize;
103
+ type: string;
104
+ indexTab: string;
105
+ autocomplete: string;
106
+ step: string;
107
+ }> & Omit<Readonly<{
108
+ modelValue?: string | null | number | undefined;
109
+ } & import('../../UiInput/types').InputProps> & Readonly<{
110
+ onClear?: ((args_0?: void | undefined) => any) | undefined;
111
+ onInput?: ((args_0: string) => any) | undefined;
112
+ "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
113
+ onChange?: ((args_0?: void | undefined) => any) | undefined;
114
+ onBlur?: ((args_0?: void | undefined) => any) | undefined;
115
+ }>, "focus" | ("size" | "type" | "indexTab" | "autocomplete" | "step")> & {
116
+ focus: () => any;
117
+ } & {} & import('vue').ComponentCustomProperties & {} & {
118
+ $slots: {
119
+ prepend?(_: {}): any;
120
+ append?(_: {}): any;
121
+ };
122
+ }) | null;
123
+ }, HTMLDivElement>;
124
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { UiIconSize } from '../../UiIcon/types';
2
+ import { SelectType } from '../types';
3
+ interface UiSelectTriggerProps {
4
+ isActive: boolean;
5
+ type: SelectType;
6
+ placeholder: string | undefined;
7
+ clearable: boolean;
8
+ isHasValue: boolean;
9
+ chevronName: string;
10
+ chevronColor: string;
11
+ chevronSize: UiIconSize;
12
+ }
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<UiSelectTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ clear: (...args: any[]) => void;
24
+ }, string, import('vue').PublicProps, Readonly<UiSelectTriggerProps> & Readonly<{
25
+ onClear?: ((...args: any[]) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,27 @@
1
+ import { SelectListItemSizeKeys } from '../types';
2
+ declare const _default: <Options>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onChangeInfinityScroll?: ((...args: any[]) => any) | undefined;
5
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChangeInfinityScroll"> & {
6
+ options: Options[];
7
+ size: SelectListItemSizeKeys;
8
+ isLoading: boolean;
9
+ } & Partial<{}>> & import('vue').PublicProps;
10
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: {
13
+ default?(_: {
14
+ item: {
15
+ index: number;
16
+ option: Options;
17
+ };
18
+ }): any;
19
+ };
20
+ emit: (event: "changeInfinityScroll", ...args: any[]) => void;
21
+ }>) => import('vue').VNode & {
22
+ __ctx?: Awaited<typeof __VLS_setup>;
23
+ };
24
+ export default _default;
25
+ type __VLS_PrettifyLocal<T> = {
26
+ [K in keyof T]: T[K];
27
+ } & {};
@@ -0,0 +1,11 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ export declare function useKeyboard<Options>({ isFocus, checkOption, filteredOptions }: {
3
+ isFocus: Ref<boolean>;
4
+ checkOption: (value: unknown) => void;
5
+ filteredOptions: ComputedRef<Options[]>;
6
+ }): {
7
+ onKeydownEnter: () => void;
8
+ onKeydownDown: () => void;
9
+ onKeydownUp: () => void;
10
+ navigatedIndex: Ref<number | null, number | null>;
11
+ };
@@ -0,0 +1,4 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useMultiple(modelValue: Ref<string[]>): {
3
+ setModelValueItem: (value: string) => void;
4
+ };
@@ -0,0 +1,43 @@
1
+ import { OffsetOptions } from '@floating-ui/vue';
2
+ import { UiIconSize } from '../UiIcon/types';
3
+ import { UiPlacementType } from '../UiTooltip/types.ts';
4
+ export declare enum SelectListItemSize {
5
+ sm = 44,
6
+ md = 52,
7
+ lg = 56,
8
+ xl = 60
9
+ }
10
+ export type SelectSize = "sm" | "md" | "lg" | "xl";
11
+ export type SelectListItemSizeKeys = keyof typeof SelectListItemSize;
12
+ export type SelectType = "default" | "inside" | "outside";
13
+ export interface UiSelectProps<Options> {
14
+ options: Options[];
15
+ valueKey?: string;
16
+ labelKey?: string;
17
+ asObject?: boolean;
18
+ type?: SelectType;
19
+ size?: string;
20
+ error?: boolean;
21
+ filled?: boolean;
22
+ disabled?: boolean;
23
+ placeholder?: string;
24
+ withSearch?: boolean;
25
+ clearable?: boolean;
26
+ loading?: boolean;
27
+ id?: string;
28
+ multiple?: boolean;
29
+ itemSize?: SelectListItemSizeKeys;
30
+ popperClass?: string;
31
+ fitContentWidth?: boolean;
32
+ offset?: OffsetOptions;
33
+ placement?: UiPlacementType;
34
+ readonly?: boolean;
35
+ teleport?: string | boolean;
36
+ isVirtualList?: boolean;
37
+ customSearch?: boolean;
38
+ chevronName?: string;
39
+ chevronColor?: string;
40
+ chevronSize?: UiIconSize;
41
+ optionClass?: (option: Options, index: number) => string;
42
+ searchFn?: (search: string) => Options[];
43
+ }
@@ -0,0 +1,11 @@
1
+ import { UISkeletonProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<UISkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UISkeletonProps> & Readonly<{}>, {
3
+ rows: number;
4
+ animated: boolean;
5
+ rowHeight: number;
6
+ itemBorderRadius: number;
7
+ rowsGap: number;
8
+ firstColor: string;
9
+ secondColor: string;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export type UISkeletonProps = {
2
+ animated?: boolean;
3
+ rows?: number;
4
+ rowHeight?: number;
5
+ itemBorderRadius?: number;
6
+ rowsGap?: number;
7
+ firstColor?: string;
8
+ secondColor?: string;
9
+ };
@@ -0,0 +1,17 @@
1
+ import { UiSwitchProps } from './types';
2
+ type __VLS_Props = UiSwitchProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (...args: any[]) => void;
8
+ "update:modelValue": (value: boolean) => void;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
11
+ onChange?: ((...args: any[]) => any) | undefined;
12
+ }>, {
13
+ disabled: boolean;
14
+ loading: boolean;
15
+ textPositionRight: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
17
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export interface UiSwitchProps {
2
+ disabled?: boolean;
3
+ loading?: boolean;
4
+ label?: string;
5
+ text?: string;
6
+ textPositionRight?: boolean;
7
+ beforeChange?: () => Promise<boolean>;
8
+ }
@@ -0,0 +1,64 @@
1
+ import { UiPaginationMeta } from '../UiPagination/types.ts';
2
+ import { UiTableProps, UiTableSortObject } from './types.ts';
3
+ declare const _default: <Selected, Expanded, Data>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
+ readonly "onUpdate:disabled"?: ((value: Selected[]) => any) | undefined;
6
+ readonly "onUpdate:selected"?: ((value: Selected[]) => any) | undefined;
7
+ readonly "onUpdate:expanded"?: ((value: Expanded[]) => any) | undefined;
8
+ readonly "onUpdate:sort"?: ((value: UiTableSortObject) => any) | undefined;
9
+ readonly onSortChange?: ((value: UiTableSortObject) => any) | undefined;
10
+ readonly onRowClick?: ((row: Data) => any) | undefined;
11
+ readonly onChangePagination?: ((value: UiPaginationMeta) => any) | undefined;
12
+ readonly onIndeterminateChange?: ((value: boolean) => any) | undefined;
13
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:disabled" | "onUpdate:selected" | "onUpdate:expanded" | "onUpdate:sort" | "onSortChange" | "onRowClick" | "onChangePagination" | "onIndeterminateChange"> & ({
14
+ disabled?: Selected[];
15
+ selected?: Selected[];
16
+ expanded?: Expanded[];
17
+ sort?: UiTableSortObject;
18
+ } & UiTableProps<Data>) & Partial<{}>> & import('vue').PublicProps;
19
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
20
+ attrs: any;
21
+ slots: Partial<Record<`header-cell-${string}`, (_: {
22
+ title: string | undefined;
23
+ header: import('./types.ts').UiTableHeader<Data>;
24
+ }) => any>> & Partial<Record<`header-cell-${string}-prepend`, (_: {}) => any>> & Partial<Record<`header-cell-${string}-append`, (_: {}) => any>> & Partial<Record<number, (_: {
25
+ key?: number;
26
+ summary: number | string;
27
+ }) => any>> & Partial<Record<`body-cell-${string}`, (_: {
28
+ row: Data;
29
+ index: number;
30
+ }) => any>> & Partial<Record<number, (_: {
31
+ key?: number;
32
+ summary: number | string;
33
+ }) => any>> & {
34
+ header?(_: {
35
+ headers: import('./types.ts').UiTableHeader<Data>[];
36
+ }): any;
37
+ 'header-cell'?(_: {
38
+ title: string | undefined;
39
+ header: import('./types.ts').UiTableHeader<Data>;
40
+ }): any;
41
+ body?(_: {
42
+ row: Data;
43
+ headers: import('./types.ts').UiTableHeader<Data>[];
44
+ index: number;
45
+ }): any;
46
+ 'body-cell'?(_: {
47
+ row: Data;
48
+ header: import('./types.ts').UiTableHeader<Data>;
49
+ index: number;
50
+ }): any;
51
+ expande?(_: {
52
+ row: Data;
53
+ index: number;
54
+ }): any;
55
+ footer?(_: {}): any;
56
+ };
57
+ emit: (((evt: "sortChange", value: UiTableSortObject) => void) & ((evt: "rowClick", row: Data) => void) & ((evt: "changePagination", value: UiPaginationMeta) => void) & ((evt: "indeterminateChange", value: boolean) => void)) & (((evt: "update:disabled", value: Selected[]) => void) & ((evt: "update:selected", value: Selected[]) => void) & ((evt: "update:expanded", value: Expanded[]) => void) & ((evt: "update:sort", value: UiTableSortObject) => void));
58
+ }>) => import('vue').VNode & {
59
+ __ctx?: Awaited<typeof __VLS_setup>;
60
+ };
61
+ export default _default;
62
+ type __VLS_PrettifyLocal<T> = {
63
+ [K in keyof T]: T[K];
64
+ } & {};
@@ -0,0 +1,27 @@
1
+ import { UiTableSortOrder } from '../types.ts';
2
+ type __VLS_PublicProps = {
3
+ modelValue?: UiTableSortOrder;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLButtonElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ sort: (...args: any[]) => void;
16
+ "update:modelValue": (value: UiTableSortOrder) => void;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ onSort?: ((...args: any[]) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: UiTableSortOrder) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,26 @@
1
+ import { PreparedData, UiTableHeader } from '../types.ts';
2
+ declare const _default: <Data>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
4
+ emptyValue: string | boolean;
5
+ loading?: boolean;
6
+ headers: UiTableHeader<Data>[];
7
+ preparedData: PreparedData<Data>[];
8
+ } & Partial<{}>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: Partial<Record<`summary-cell-${string}`, (_: {
12
+ summary: string | number;
13
+ }) => any>> & {
14
+ 'summary-cell'?(_: {
15
+ index: number;
16
+ header: UiTableHeader<Data>;
17
+ }): any;
18
+ };
19
+ emit: {};
20
+ }>) => import('vue').VNode & {
21
+ __ctx?: Awaited<typeof __VLS_setup>;
22
+ };
23
+ export default _default;
24
+ type __VLS_PrettifyLocal<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
@@ -0,0 +1,6 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { PreparedData } from '../types.ts';
3
+ export declare function useExpande<T>(data: ComputedRef<PreparedData<T>[]>, expandeModel: Ref<unknown[]>, expandeKey: string | undefined): {
4
+ expandeRow: (id: string, value: boolean) => void;
5
+ expandeObj: Ref<{}, {}>;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { PreparedData } from '../types.ts';
3
+ export declare function useSelected<T>(data: ComputedRef<PreparedData<T>[]>, selectedModel: Ref<unknown[]>, selectedKey: string | undefined): {
4
+ isAllSelected: ComputedRef<boolean>;
5
+ isIndeterminate: ComputedRef<boolean>;
6
+ selectRow: (id: string, value: boolean) => void;
7
+ selectAll: (value: boolean) => void;
8
+ selectedObject: Ref<{}, {}>;
9
+ };
@@ -0,0 +1,9 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { PreparedData, UiTableHeader, UiTableSortObject } from '../types';
3
+ export declare function useSort<T>(preparedData: ComputedRef<PreparedData<T>[]>, sortObject: Ref<UiTableSortObject>, emptyValue: string | boolean, headers: UiTableHeader<T>[]): {
4
+ isCustomSortMode: Ref<boolean, boolean>;
5
+ sortedData: ComputedRef<PreparedData<T>[]>;
6
+ sortObject: Ref<UiTableSortObject, UiTableSortObject>;
7
+ isSorting: Ref<boolean, boolean>;
8
+ sort: ({ name, order }: UiTableSortObject, isCustomSort: boolean) => void;
9
+ };