@webitel/ui-sdk 26.8.115 → 26.8.116

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.
@@ -6,7 +6,6 @@ interface Props {
6
6
  */
7
7
  shown?: boolean;
8
8
  size?: ComponentSize;
9
- height?: string;
10
9
  /**
11
10
  * if true, popup contents will overflow popup container, without scrolling
12
11
  * useful for small popups with select components, which have not enough space
@@ -47,7 +46,6 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, i
47
46
  }>, {
48
47
  disabled: boolean;
49
48
  size: ComponentSize;
50
- height: string;
51
49
  closable: boolean;
52
50
  shown: boolean;
53
51
  overflow: boolean;
@@ -4,6 +4,5 @@ export * from './useCard/useCardComponent';
4
4
  export * from './useClose/useClose';
5
5
  export * from './useDestroyableSortable/useDestroyableSortable';
6
6
  export * from './useEventBus/useEventBus';
7
- export * from './useMinDurationLoader/useMinDurationLoader';
8
7
  export * from './useRepresentableAgentPauseCause/useRepresentableAgentPauseCause';
9
8
  export * from './useValidate/useValidate';
@@ -1,30 +0,0 @@
1
- import { type Ref, ref } from 'vue';
2
-
3
- export interface UseMinDurationLoaderReturn {
4
- isLoading: Ref<boolean>;
5
- runWithMinDuration: <T>(action: () => Promise<T>) => Promise<T>;
6
- }
7
-
8
- export const useMinDurationLoader = (
9
- minDurationMs = 500,
10
- ): UseMinDurationLoaderReturn => {
11
- const isLoading = ref(false);
12
-
13
- const runWithMinDuration = async <T>(
14
- action: () => Promise<T>,
15
- ): Promise<T> => {
16
- isLoading.value = true;
17
- try {
18
- return await action();
19
- } finally {
20
- setTimeout(() => {
21
- isLoading.value = false;
22
- }, minDurationMs);
23
- }
24
- };
25
-
26
- return {
27
- isLoading,
28
- runWithMinDuration,
29
- };
30
- };
@@ -1,6 +0,0 @@
1
- import { type Ref } from 'vue';
2
- export interface UseMinDurationLoaderReturn {
3
- isLoading: Ref<boolean>;
4
- runWithMinDuration: <T>(action: () => Promise<T>) => Promise<T>;
5
- }
6
- export declare const useMinDurationLoader: (minDurationMs?: number) => UseMinDurationLoaderReturn;