@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,6 @@
1
+ import { Component } from 'vue';
2
+ export interface UiAnimationProps {
3
+ iconComponent: Component;
4
+ autoPlay?: boolean;
5
+ loop?: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { UiAvatarProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<UiAvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ isTransparent?: boolean;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
5
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export type AvatarStatusType = "success" | "pending" | "reject";
2
+ export type AvatarSizeType = "sm" | "md" | "lg";
3
+ export interface UiAvatarProps {
4
+ avatar?: string;
5
+ email: string | null;
6
+ size?: AvatarSizeType;
7
+ status?: AvatarStatusType;
8
+ clickable?: boolean;
9
+ }
@@ -0,0 +1,18 @@
1
+ import { UiBlockTitleProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiBlockTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiBlockTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ export interface UiBlockTitleLink {
2
+ path: string;
3
+ title: string;
4
+ }
5
+ export interface UiBlockTitleProps {
6
+ title?: string;
7
+ links: UiBlockTitleLink[];
8
+ }
@@ -0,0 +1,33 @@
1
+ import { UiButtonProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiButtonProps> & Readonly<{}>, {
12
+ size: import('./types').UiButtonSize;
13
+ type: import('./types').UiButtonStyleType;
14
+ mode: import('./types').UiButtonMode;
15
+ nativeType: import('./types').UiButtonNativeType;
16
+ disabled: boolean;
17
+ loading: boolean;
18
+ leftIconType: import('../UiIcon/types').UiIconType;
19
+ leftIconName: string;
20
+ leftIconColor: string;
21
+ leftIconSize: import('../UiIcon/types').UiIconSize;
22
+ rightIconType: import('../UiIcon/types').UiIconType;
23
+ rightIconName: string;
24
+ rightIconColor: string;
25
+ rightIconSize: import('../UiIcon/types').UiIconSize;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
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 { RouteLocationAsPathGeneric, RouteLocationAsRelativeGeneric } from 'vue-router';
2
+ import { UiIconSize, UiIconType } from '../UiIcon/types';
3
+ import { UiLinkTarget } from '../UiLink/types';
4
+ export type UiButtonSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
5
+ export type UiButtonMode = "neutral" | "accent";
6
+ export type UiButtonNativeType = "button" | "submit" | "reset";
7
+ export type UiButtonStyleType = "primary" | "secondary" | "tertiary" | "outline" | "negative" | "outline-light" | "social";
8
+ export interface UiButtonProps {
9
+ link?: boolean;
10
+ target?: UiLinkTarget;
11
+ size?: UiButtonSize;
12
+ nativeType?: UiButtonNativeType;
13
+ disabled?: boolean;
14
+ loading?: boolean;
15
+ type?: UiButtonStyleType;
16
+ mode?: UiButtonMode;
17
+ leftIconType?: UiIconType;
18
+ leftIconName?: string;
19
+ leftIconColor?: string;
20
+ leftIconSize?: UiIconSize;
21
+ rightIconType?: UiIconType;
22
+ rightIconName?: string;
23
+ rightIconColor?: string;
24
+ rightIconSize?: UiIconSize;
25
+ to?: string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric;
26
+ outlineTypeColor?: string;
27
+ }
@@ -0,0 +1,118 @@
1
+ import { nextTick } from 'vue';
2
+ import { ChatAction, UiChatProps, UiChatSubmitPayload } from './types';
3
+ declare const _default: import('vue').DefineComponent<UiChatProps, {
4
+ clearInputAndFiles: () => void;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ submit: (payload: UiChatSubmitPayload) => any;
7
+ attach: (files: File[]) => any;
8
+ "action-ticket": (value: ChatAction) => any;
9
+ read: (payload: {
10
+ ticketId: number;
11
+ }) => any;
12
+ }, string, import('vue').PublicProps, Readonly<UiChatProps> & Readonly<{
13
+ onSubmit?: ((payload: UiChatSubmitPayload) => any) | undefined;
14
+ onAttach?: ((files: File[]) => any) | undefined;
15
+ "onAction-ticket"?: ((value: ChatAction) => any) | undefined;
16
+ onRead?: ((payload: {
17
+ ticketId: number;
18
+ }) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ chatBodyRef: HTMLDivElement;
21
+ footerRef: ({
22
+ $: import('vue').ComponentInternalInstance;
23
+ $data: {};
24
+ $props: {
25
+ readonly sendingLoading?: boolean | undefined;
26
+ readonly onSubmit?: ((payload: UiChatSubmitPayload) => any) | undefined;
27
+ readonly onAttach?: ((files: File[]) => any) | undefined;
28
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
29
+ $attrs: import('vue').Attrs;
30
+ $refs: {
31
+ [x: string]: unknown;
32
+ } & {
33
+ attachmentsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
34
+ maxFiles?: number;
35
+ accept?: string;
36
+ sendingLoading?: boolean;
37
+ }> & Readonly<{
38
+ onChange?: ((files: File[]) => any) | undefined;
39
+ }>, {
40
+ openFileDialog: () => void;
41
+ clearFiles: () => void;
42
+ addFiles: (newFiles: File[]) => void;
43
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
44
+ change: (files: File[]) => any;
45
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
46
+ fileInput: HTMLInputElement;
47
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
48
+ P: {};
49
+ B: {};
50
+ D: {};
51
+ C: {};
52
+ M: {};
53
+ Defaults: {};
54
+ }, Readonly<{
55
+ maxFiles?: number;
56
+ accept?: string;
57
+ sendingLoading?: boolean;
58
+ }> & Readonly<{
59
+ onChange?: ((files: File[]) => any) | undefined;
60
+ }>, {
61
+ openFileDialog: () => void;
62
+ clearFiles: () => void;
63
+ addFiles: (newFiles: File[]) => void;
64
+ }, {}, {}, {}, {}> | null;
65
+ };
66
+ $slots: Readonly<{
67
+ [name: string]: import('vue').Slot<any> | undefined;
68
+ }>;
69
+ $root: import('vue').ComponentPublicInstance | null;
70
+ $parent: import('vue').ComponentPublicInstance | null;
71
+ $host: Element | null;
72
+ $emit: ((event: "submit", payload: UiChatSubmitPayload) => void) & ((event: "attach", files: File[]) => void);
73
+ $el: HTMLDivElement;
74
+ $options: import('vue').ComponentOptionsBase<Readonly<{
75
+ sendingLoading?: boolean;
76
+ }> & Readonly<{
77
+ onSubmit?: ((payload: UiChatSubmitPayload) => any) | undefined;
78
+ onAttach?: ((files: File[]) => any) | undefined;
79
+ }>, {
80
+ clearInputAndFiles: () => void;
81
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
82
+ submit: (payload: UiChatSubmitPayload) => any;
83
+ attach: (files: File[]) => any;
84
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
85
+ beforeCreate?: (() => void) | (() => void)[];
86
+ created?: (() => void) | (() => void)[];
87
+ beforeMount?: (() => void) | (() => void)[];
88
+ mounted?: (() => void) | (() => void)[];
89
+ beforeUpdate?: (() => void) | (() => void)[];
90
+ updated?: (() => void) | (() => void)[];
91
+ activated?: (() => void) | (() => void)[];
92
+ deactivated?: (() => void) | (() => void)[];
93
+ beforeDestroy?: (() => void) | (() => void)[];
94
+ beforeUnmount?: (() => void) | (() => void)[];
95
+ destroyed?: (() => void) | (() => void)[];
96
+ unmounted?: (() => void) | (() => void)[];
97
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
98
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
99
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
100
+ };
101
+ $forceUpdate: () => void;
102
+ $nextTick: typeof nextTick;
103
+ $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;
104
+ } & Readonly<{}> & Omit<Readonly<{
105
+ sendingLoading?: boolean;
106
+ }> & Readonly<{
107
+ onSubmit?: ((payload: UiChatSubmitPayload) => any) | undefined;
108
+ onAttach?: ((files: File[]) => any) | undefined;
109
+ }>, "clearInputAndFiles"> & {
110
+ clearInputAndFiles: () => void;
111
+ } & {} & import('vue').ComponentCustomProperties & {} & {
112
+ $slots: {
113
+ 'footer-left'?(_: {}): any;
114
+ 'footer-right'?(_: {}): any;
115
+ };
116
+ }) | null;
117
+ }, HTMLDivElement>;
118
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ maxFiles?: number;
3
+ accept?: string;
4
+ sendingLoading?: boolean;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
7
+ openFileDialog: () => void;
8
+ clearFiles: () => void;
9
+ addFiles: (newFiles: File[]) => void;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ change: (files: File[]) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onChange?: ((files: File[]) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
15
+ fileInput: HTMLInputElement;
16
+ }, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,96 @@
1
+ import { UiChatSubmitPayload } from './types';
2
+ type __VLS_Props = {
3
+ sendingLoading?: boolean;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ 'footer-left'?(_: {}): any;
9
+ 'footer-right'?(_: {}): any;
10
+ };
11
+ refs: {
12
+ attachmentsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
13
+ maxFiles?: number;
14
+ accept?: string;
15
+ sendingLoading?: boolean;
16
+ }> & Readonly<{
17
+ onChange?: ((files: File[]) => any) | undefined;
18
+ }>, {
19
+ openFileDialog: () => void;
20
+ clearFiles: () => void;
21
+ addFiles: (newFiles: File[]) => void;
22
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ change: (files: File[]) => any;
24
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
25
+ fileInput: HTMLInputElement;
26
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<{
34
+ maxFiles?: number;
35
+ accept?: string;
36
+ sendingLoading?: boolean;
37
+ }> & Readonly<{
38
+ onChange?: ((files: File[]) => any) | undefined;
39
+ }>, {
40
+ openFileDialog: () => void;
41
+ clearFiles: () => void;
42
+ addFiles: (newFiles: File[]) => void;
43
+ }, {}, {}, {}, {}> | null;
44
+ };
45
+ rootEl: HTMLDivElement;
46
+ };
47
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
48
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
49
+ clearInputAndFiles: () => void;
50
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
51
+ submit: (payload: UiChatSubmitPayload) => any;
52
+ attach: (files: File[]) => any;
53
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
54
+ onSubmit?: ((payload: UiChatSubmitPayload) => any) | undefined;
55
+ onAttach?: ((files: File[]) => any) | undefined;
56
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
57
+ attachmentsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
58
+ maxFiles?: number;
59
+ accept?: string;
60
+ sendingLoading?: boolean;
61
+ }> & Readonly<{
62
+ onChange?: ((files: File[]) => any) | undefined;
63
+ }>, {
64
+ openFileDialog: () => void;
65
+ clearFiles: () => void;
66
+ addFiles: (newFiles: File[]) => void;
67
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
68
+ change: (files: File[]) => any;
69
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
70
+ fileInput: HTMLInputElement;
71
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
72
+ P: {};
73
+ B: {};
74
+ D: {};
75
+ C: {};
76
+ M: {};
77
+ Defaults: {};
78
+ }, Readonly<{
79
+ maxFiles?: number;
80
+ accept?: string;
81
+ sendingLoading?: boolean;
82
+ }> & Readonly<{
83
+ onChange?: ((files: File[]) => any) | undefined;
84
+ }>, {
85
+ openFileDialog: () => void;
86
+ clearFiles: () => void;
87
+ addFiles: (newFiles: File[]) => void;
88
+ }, {}, {}, {}, {}> | null;
89
+ }, HTMLDivElement>;
90
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
91
+ export default _default;
92
+ type __VLS_WithTemplateSlots<T, S> = T & {
93
+ new (): {
94
+ $slots: S;
95
+ };
96
+ };
@@ -0,0 +1,14 @@
1
+ import { ChatAction, UiChatTicket } from './types';
2
+ type __VLS_Props = {
3
+ ticket: UiChatTicket | null | undefined;
4
+ isEmpty: boolean;
5
+ isClosedTicket: boolean;
6
+ ticketLoading?: boolean;
7
+ enableReopenTicket?: boolean;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ "action-ticket": (value: ChatAction) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onAction-ticket"?: ((value: ChatAction) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ seconds?: number;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { UiChatMessage } from './types';
2
+ type __VLS_Props = {
3
+ message: UiChatMessage;
4
+ isOwn?: boolean;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { UiChatMessageAttachment } from './types';
2
+ type __VLS_Props = {
3
+ attachments: UiChatMessageAttachment[];
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,69 @@
1
+ export interface UiChatMessageUser {
2
+ uuid: string;
3
+ avatar: string | null;
4
+ telegram: string | null;
5
+ email: string;
6
+ name: string | null;
7
+ }
8
+ export interface UiChatMessageAttachment {
9
+ uuid: string;
10
+ type: string;
11
+ title: string;
12
+ url: string;
13
+ file_size: number;
14
+ }
15
+ export interface UiChatMessage {
16
+ id: number;
17
+ ticket_id: number;
18
+ message: string;
19
+ created_at: string;
20
+ updated_at: string;
21
+ files: string[];
22
+ attachments: UiChatMessageAttachment[];
23
+ user: UiChatMessageUser;
24
+ }
25
+ export declare enum UiChatTicketStatusValue {
26
+ MANAGER_CLOSED = 5,
27
+ USER_CLOSED = 4,
28
+ USER_WAITING = 3,
29
+ IN_PROGRESS = 2,
30
+ MANAGER_WAITING = 1
31
+ }
32
+ export interface UiChatTicketStatus {
33
+ name: string;
34
+ value: UiChatTicketStatusValue;
35
+ }
36
+ export interface UiChatTicket {
37
+ id: number;
38
+ subject: string;
39
+ status: UiChatTicketStatus;
40
+ created_at: string;
41
+ updated_at: string;
42
+ closed_at: string | null;
43
+ messages_count: number;
44
+ init_message: UiChatMessage;
45
+ support_name: string;
46
+ }
47
+ export type ChatAction = "remind-ticket" | "change-operator" | "close-ticket" | "reopen-ticket";
48
+ export interface ChatActionOption {
49
+ value: ChatAction;
50
+ label: string;
51
+ icon: string;
52
+ color?: string;
53
+ disabled?: boolean;
54
+ }
55
+ export interface UiChatSubmitPayload {
56
+ message: string;
57
+ files: File[];
58
+ }
59
+ export interface UiChatProps {
60
+ ticket: UiChatTicket | null | undefined;
61
+ messages?: UiChatMessage[];
62
+ currentUserUuid?: string;
63
+ showManagerAlert?: boolean;
64
+ managerAlertSeconds?: number;
65
+ ticketLoading?: boolean;
66
+ isCreateTicket?: boolean;
67
+ sendingLoading?: boolean;
68
+ enableReopenTicket?: boolean;
69
+ }
@@ -0,0 +1,34 @@
1
+ import { UiCheckboxProps } from './types';
2
+ type __VLS_Props = UiCheckboxProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ subtitle?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLLabelElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: boolean) => any;
18
+ change: (args_0: boolean) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
+ onChange?: ((args_0: boolean) => any) | undefined;
22
+ }>, {
23
+ size: import('./types').UiCheckboxSize;
24
+ value: string | number;
25
+ indeterminate: boolean;
26
+ isSelectedAll: boolean;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,8 @@
1
+ export type UiCheckboxSize = "sm" | "md";
2
+ export interface UiCheckboxProps {
3
+ size?: UiCheckboxSize;
4
+ disabled?: boolean;
5
+ indeterminate?: boolean;
6
+ value?: string | number;
7
+ isSelectedAll?: boolean;
8
+ }
@@ -0,0 +1,30 @@
1
+ import { UiCheckboxGroupProps } from './types';
2
+ type __VLS_Props = UiCheckboxGroupProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: Array<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 CHECKBOX_GROUP_PROVIDE_VALUE: unique symbol;
@@ -0,0 +1,12 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ import { UiRadioSize } from '../UiRadio/types';
3
+ export interface UiCheckboxGroupProps {
4
+ disabled?: boolean;
5
+ size?: UiRadioSize;
6
+ }
7
+ export interface UiCheckboxGroupProvideData {
8
+ modelValue: Ref<Array<string | number>>;
9
+ disabled?: ComputedRef<boolean>;
10
+ change: (value: string | number) => void;
11
+ size?: ComputedRef<UiRadioSize>;
12
+ }
@@ -0,0 +1,29 @@
1
+ import { UiCollapsProps } from './types';
2
+ type __VLS_Props = UiCollapsProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string | number | unknown[] | undefined;
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 | unknown[] | undefined) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: string | number | unknown[] | undefined) => any) | undefined;
19
+ }>, {
20
+ mode: import('./types').UiCollapseMode;
21
+ multiple: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1 @@
1
+ export declare const COLLAPSE_PROVIDE_VALUE: unique symbol;
@@ -0,0 +1,12 @@
1
+ import { ModelRef } from 'vue';
2
+ export type UiCollapseMode = "default" | "custom";
3
+ export interface UiCollapsProps {
4
+ modelValue: string | number | string[] | number[];
5
+ mode?: UiCollapseMode;
6
+ multiple?: boolean;
7
+ }
8
+ export interface UiCollapseProvideData {
9
+ modelValue: ModelRef<string | number | unknown[] | undefined, string>;
10
+ mode: UiCollapseMode;
11
+ multiple: boolean;
12
+ }
@@ -0,0 +1,19 @@
1
+ import { UiCollapseItemProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ header?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLDivElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<UiCollapseItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiCollapseItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,7 @@
1
+ export interface UiCollapseItemProps {
2
+ value: string | number;
3
+ title?: string;
4
+ disabled?: boolean;
5
+ iconOpened?: string;
6
+ iconClosed?: string;
7
+ }