@webitel/ui-sdk 26.8.104 → 26.8.106
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/{clients-BZ1QzRFi.js → clients-Dm3JLACL.js} +2 -2
- package/dist/{components-oyMSmFwI.js → components-CRmvV0ze.js} +21 -17
- package/dist/{composables-OP5kSvlh.js → composables-Vg-QfE_2.js} +112 -86
- package/dist/{convertDuration-CGW5IDMW.js → convertDuration-heRoQzks.js} +8 -8
- package/dist/{enums-Bd-8yrmg.js → enums-BDtfwdQu.js} +1 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +19 -3
- package/dist/ui-sdk.umd.cjs +342 -341
- package/dist/{useValidation-CtEfmUkB.js → useValidation-B4q8qUvG.js} +1 -1
- package/dist/{utils-B_8uwL9P.js → utils-DaacyMAw.js} +1 -1
- package/dist/{wt-action-bar-B4rcG26w.js → wt-action-bar-ChLl_-jR.js} +2 -2
- package/dist/{wt-badge-lFnfK2an.js → wt-badge-C8O4Oarp.js} +1 -1
- package/dist/{wt-button-BzYDkfhK.js → wt-button-C-BRwWdy.js} +2 -2
- package/dist/{wt-chat-emoji-CdNBvJez.js → wt-chat-emoji-DUYgD7x0.js} +4 -4
- package/dist/{wt-datepicker-D_O49-Ab.js → wt-datepicker-C1kACub3.js} +2 -2
- package/dist/{wt-display-chip-items-1uWroA2z.js → wt-display-chip-items-Dm6I2JFC.js} +2 -2
- package/dist/{wt-dual-panel-B0inNxRm.js → wt-dual-panel-D5TCilWN.js} +1 -1
- package/dist/{wt-expansion-card-CJjtuFDk.js → wt-expansion-card-2wdr_Hpi.js} +2 -2
- package/dist/{wt-expansion-panel-tqCCM3go.js → wt-expansion-panel-DP8zz2tS.js} +1 -1
- package/dist/{wt-galleria-CmaNfz7E.js → wt-galleria-iRpRiDc6.js} +1 -1
- package/dist/{wt-icon-DFtSR4bO.js → wt-icon-B8nQuJZu.js} +1 -1
- package/dist/{wt-icon-action-DUAnoMrj.js → wt-icon-action-g26vM7fD.js} +1 -1
- package/dist/{wt-icon-btn-CeGGT2PO.js → wt-icon-btn-BFRfANYh.js} +1 -1
- package/dist/{wt-notifications-bar-DWME3pmb.js → wt-notifications-bar-BnCbODMe.js} +2 -2
- package/dist/{wt-player-DXCQLKch.js → wt-player-DnoC6Gci.js} +3 -3
- package/dist/{wt-screen-recordings-action-Cx7-2gDE.js → wt-screen-recordings-action-biHVl6lR.js} +1 -1
- package/dist/{wt-search-bar-BkopW1qp.js → wt-search-bar-ByF2Wjsg.js} +1 -1
- package/dist/{wt-send-message-popup-C3qRY8Lk.js → wt-send-message-popup-afA26_0Q.js} +3 -3
- package/dist/{wt-status-select-DnaJ04Gw.js → wt-status-select-BOmAd__4.js} +2 -2
- package/dist/{wt-table-xmGhfp4p.js → wt-table-C_91bkNX.js} +5 -5
- package/dist/{wt-timepicker-C0DHJSeR.js → wt-timepicker-C4kMPkNd.js} +2 -2
- package/dist/{wt-toast-Lge1Y6IO.js → wt-toast-CBQIP-YS.js} +2 -2
- package/dist/{wt-tree-table-BTHxl_MY.js → wt-tree-table-DMK0J0Jx.js} +1 -1
- package/dist/{wt-type-extension-value-input-CkBr5oPm.js → wt-type-extension-value-input-CEX06xVC.js} +3 -3
- package/dist/{wt-vidstack-player-P4fT1R6k.js → wt-vidstack-player-1Z1fEhkA.js} +5 -5
- 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-chip/wt-chip.vue +4 -2
- 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/enums/ChipColor/ChipColor.ts +1 -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/src/plugins/primevue/theme/components/chip/chip.js +4 -0
- package/src/scripts/__tests__/convertDuration.spec.js +32 -0
- 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-chip/wt-chip.vue.d.ts +4 -2
- 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
- package/types/enums/ChipColor/ChipColor.d.ts +1 -0
- package/types/plugins/primevue/theme/components/chip/chip.d.ts +12 -0
|
@@ -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
|
+
};
|
|
@@ -2,10 +2,12 @@ import type { ChipProps } from 'primevue/chip';
|
|
|
2
2
|
import { ChipColor } from '../../enums';
|
|
3
3
|
interface WtProps extends ChipProps {
|
|
4
4
|
/**
|
|
5
|
-
* Chip color. "main" and "
|
|
5
|
+
* Chip color. "main" and "transfer" are chip-specific colors; the rest follow
|
|
6
|
+
* the semantic scheme. "info" renders as a light tint with dark text, like
|
|
7
|
+
* "main", rather than a solid fill.
|
|
6
8
|
* @type {ChipColor}
|
|
7
9
|
* @default ChipColor.MAIN
|
|
8
|
-
* @options ['main', '
|
|
10
|
+
* @options ['main', 'primary', 'on-primary', 'secondary', 'success', 'warning', 'error', 'info', 'transfer']
|
|
9
11
|
*/
|
|
10
12
|
color?: ChipColor;
|
|
11
13
|
/**
|
|
@@ -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>;
|
|
@@ -56,6 +56,12 @@ declare namespace chip {
|
|
|
56
56
|
iconColor: string;
|
|
57
57
|
iconHoverColor: string;
|
|
58
58
|
};
|
|
59
|
+
info: {
|
|
60
|
+
background: string;
|
|
61
|
+
color: string;
|
|
62
|
+
iconColor: string;
|
|
63
|
+
iconHoverColor: string;
|
|
64
|
+
};
|
|
59
65
|
transfer: {
|
|
60
66
|
background: string;
|
|
61
67
|
color: string;
|
|
@@ -107,6 +113,12 @@ declare namespace chip {
|
|
|
107
113
|
iconColor: string;
|
|
108
114
|
iconHoverColor: string;
|
|
109
115
|
};
|
|
116
|
+
info: {
|
|
117
|
+
background: string;
|
|
118
|
+
color: string;
|
|
119
|
+
iconColor: string;
|
|
120
|
+
iconHoverColor: string;
|
|
121
|
+
};
|
|
110
122
|
transfer: {
|
|
111
123
|
background: string;
|
|
112
124
|
color: string;
|