@webitel/ui-sdk 26.8.104 → 26.8.105
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.
- package/dist/{components-oyMSmFwI.js → components-D574RP8y.js} +10 -6
- package/dist/{composables-OP5kSvlh.js → composables-Vg-QfE_2.js} +112 -86
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +512 -512
- package/dist/{wt-chat-emoji-CdNBvJez.js → wt-chat-emoji-D1RzspYn.js} +1 -1
- package/dist/{wt-display-chip-items-1uWroA2z.js → wt-display-chip-items-D9E7qoJ8.js} +1 -1
- package/dist/{wt-expansion-card-CJjtuFDk.js → wt-expansion-card-DzZYhwnW.js} +1 -1
- package/dist/{wt-galleria-CmaNfz7E.js → wt-galleria-iRpRiDc6.js} +1 -1
- package/dist/{wt-send-message-popup-C3qRY8Lk.js → wt-send-message-popup-C_6OHIhY.js} +1 -1
- package/dist/{wt-table-xmGhfp4p.js → wt-table-_qNHChZt.js} +2 -2
- package/dist/{wt-type-extension-value-input-CkBr5oPm.js → wt-type-extension-value-input-C9aMICVN.js} +1 -1
- package/dist/{wt-vidstack-player-P4fT1R6k.js → wt-vidstack-player-CLimONj6.js} +1 -1
- package/package.json +1 -1
- package/src/components/_internals/composables/useSelect/__tests__/useSelectAutoOpen.spec.ts +206 -0
- package/src/components/_internals/composables/useSelect/types.ts +1 -0
- package/src/components/_internals/composables/useSelect/useSelect.ts +6 -2
- package/src/components/_internals/composables/useSelect/useSelectAutoOpen.ts +106 -0
- package/src/components/_internals/types/PrimevueInstance.ts +1 -0
- package/src/components/wt-multi-select/wt-multi-select.vue +2 -0
- package/src/components/wt-single-select/wt-single-select.vue +2 -0
- package/src/components/wt-table/wt-table.vue +6 -0
- package/src/modules/UploadCsvPopup/components/wt-upload-csv-popup.vue +27 -27
- package/src/modules/UploadCsvPopup/composable/__tests__/useUploadCsv.spec.js +1 -1
- package/src/modules/UploadCsvPopup/composable/useUploadCsv.ts +3 -1
- package/types/.tsbuildinfo +1 -1
- package/types/components/_internals/composables/useSelect/types.d.ts +1 -0
- package/types/components/_internals/composables/useSelect/useSelect.d.ts +1 -1
- package/types/components/_internals/composables/useSelect/useSelectAutoOpen.d.ts +15 -0
- package/types/components/_internals/types/PrimevueInstance.d.ts +1 -0
- package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +2 -2
- package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +1 -0
- package/types/components/wt-popover/wt-popover.vue.d.ts +2 -2
- package/types/components/wt-single-select/wt-single-select.vue.d.ts +1 -0
- package/types/components/wt-tooltip/_internals/wt-tooltip-floating.vue.d.ts +2 -2
|
@@ -48,5 +48,6 @@ export interface UseSelectCustomValuesParams {
|
|
|
48
48
|
export interface UseSelectParams extends UseSelectOptionsParams, Pick<UseSelectDropdownParams, 'selectId' | 'selectRef' | 'filterInput'> {
|
|
49
49
|
manualCustomValues?: boolean;
|
|
50
50
|
isSingle: boolean;
|
|
51
|
+
autoOpen?: () => boolean | undefined;
|
|
51
52
|
emit?: (event: any, ...args: any[]) => void;
|
|
52
53
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UseSelectParams } from './types';
|
|
2
|
-
export declare const useSelect: ({ selected, options, optionLabel, optionValue, dataKey, allowCustomValues, manualCustomValues: _manualCustomValues, filterInput, selectRef, searchMethod, selectId, isSingle, strictApiOptions, emit, }: UseSelectParams) => {
|
|
2
|
+
export declare const useSelect: ({ selected, options, optionLabel, optionValue, dataKey, allowCustomValues, manualCustomValues: _manualCustomValues, filterInput, selectRef, searchMethod, selectId, isSingle, autoOpen, strictApiOptions, emit, }: UseSelectParams) => {
|
|
3
3
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
4
4
|
showFooterLoader: import("vue").Ref<boolean, boolean>;
|
|
5
5
|
isDropdownOpen: import("vue").Ref<boolean, boolean>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { SelectComponentRef } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Opens the dropdown (`autoOpen`) only once the select has stopped moving.
|
|
5
|
+
*
|
|
6
|
+
* In a popover the trigger keeps shifting through the 300ms enter animation,
|
|
7
|
+
* and primevue aligns the overlay to the trigger's rect — open too early and
|
|
8
|
+
* the dropdown sits in the wrong place until it snaps. The options half is the
|
|
9
|
+
* caller's: `useSelect` calls this after the first fetch resolves.
|
|
10
|
+
*
|
|
11
|
+
* [WTEL-10353](https://webitel.atlassian.net/browse/WTEL-10353)
|
|
12
|
+
*/
|
|
13
|
+
export declare const useSelectAutoOpen: (autoOpen: (() => boolean | undefined) | undefined, selectRef: Ref<SelectComponentRef | undefined>) => {
|
|
14
|
+
openWhenSettled: () => Promise<void>;
|
|
15
|
+
};
|
|
@@ -32,9 +32,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
32
32
|
focus: () => any;
|
|
33
33
|
input: () => any;
|
|
34
34
|
keydown: () => any;
|
|
35
|
+
show: () => any;
|
|
35
36
|
hide: () => any;
|
|
36
37
|
"update:modelValue": (...args: unknown[]) => any;
|
|
37
|
-
show: () => any;
|
|
38
38
|
"value-change": () => any;
|
|
39
39
|
"date-select": () => any;
|
|
40
40
|
"today-click": () => any;
|
|
@@ -46,9 +46,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
46
46
|
onFocus?: (() => any) | undefined;
|
|
47
47
|
onInput?: (() => any) | undefined;
|
|
48
48
|
onKeydown?: (() => any) | undefined;
|
|
49
|
+
onShow?: (() => any) | undefined;
|
|
49
50
|
onHide?: (() => any) | undefined;
|
|
50
51
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
51
|
-
onShow?: (() => any) | undefined;
|
|
52
52
|
"onValue-change"?: (() => any) | undefined;
|
|
53
53
|
"onDate-select"?: (() => any) | undefined;
|
|
54
54
|
"onToday-click"?: (() => any) | undefined;
|
|
@@ -24,11 +24,11 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
|
24
24
|
show: (event?: Event, target?: HTMLElement | null | undefined) => void;
|
|
25
25
|
hide: (event?: Event) => void;
|
|
26
26
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
-
hide: () => any;
|
|
28
27
|
show: () => any;
|
|
28
|
+
hide: () => any;
|
|
29
29
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
30
|
-
onHide?: (() => any) | undefined;
|
|
31
30
|
onShow?: (() => any) | undefined;
|
|
31
|
+
onHide?: (() => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
dt: import("@primevue/core").DesignToken<any>;
|
|
34
34
|
disabled: boolean;
|
|
@@ -10,16 +10,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
10
10
|
default: () => never[];
|
|
11
11
|
};
|
|
12
12
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
hide: (...args: any[]) => void;
|
|
14
13
|
show: (...args: any[]) => void;
|
|
14
|
+
hide: (...args: any[]) => void;
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
triggers: {
|
|
17
17
|
type: ArrayConstructor;
|
|
18
18
|
default: () => never[];
|
|
19
19
|
};
|
|
20
20
|
}>> & Readonly<{
|
|
21
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
22
21
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
triggers: unknown[];
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|