@webitel/ui-sdk 26.8.116 → 26.8.118

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,6 +6,12 @@ interface Props {
6
6
  */
7
7
  shown?: boolean;
8
8
  size?: ComponentSize;
9
+ /**
10
+ * temprorary height of the popup for WS2
11
+ * to avoid WS1 popup broken
12
+ * will be removed after primevue migration
13
+ */
14
+ height?: ComponentSize;
9
15
  /**
10
16
  * if true, popup contents will overflow popup container, without scrolling
11
17
  * useful for small popups with select components, which have not enough space
@@ -4,5 +4,6 @@ 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';
7
8
  export * from './useRepresentableAgentPauseCause/useRepresentableAgentPauseCause';
8
9
  export * from './useValidate/useValidate';
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Walks a tree depth-first and returns the nodes from a root down to the
3
+ * first node matching `isTarget`, both ends included, or `null` when nothing
4
+ * matches. Children are read from `childrenKey` (e.g. `service` for case
5
+ * service catalogs, whose services nest under `service`).
6
+ *
7
+ * The path is what a breadcrumb, an "A / B / C" label or an ancestor check
8
+ * needs: `path.map(({ name }) => name)`, `path.slice(0, -1)`, and so on.
9
+ */
10
+ export declare function findTreePath<TNode extends object>(nodes: readonly TNode[] | null | undefined, isTarget: (node: TNode) => boolean, childrenKey: NoInfer<keyof TNode>): TNode[] | null;
@@ -1,3 +1,4 @@
1
1
  export * from './displayText';
2
+ export * from './findTreePath';
2
3
  export * from './formatDate';
3
4
  export * from './prettifyDate';