@webex/cc-components 1.28.0-ccwidgets.88 → 1.28.0-ccwidgets.89

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.
@@ -0,0 +1,48 @@
1
+ import { ICustomState, IdleCode } from '@webex/cc-store';
2
+ /**
3
+ * Gets the CSS class for the dropdown based on current state
4
+ */
5
+ export declare const getDropdownClass: (customState: ICustomState, currentState: string, idleCodes: IdleCode[]) => string;
6
+ /**
7
+ * Gets the icon style configuration for a given item
8
+ */
9
+ export declare const getIconStyle: (item: {
10
+ id: string;
11
+ name: string;
12
+ }) => {
13
+ class: string;
14
+ iconName: string;
15
+ };
16
+ /**
17
+ * Gets the tooltip text based on current state
18
+ */
19
+ export declare const getTooltipText: (customState: ICustomState, currentState: string, idleCodes: IdleCode[]) => string;
20
+ /**
21
+ * Handles selection change in the dropdown
22
+ */
23
+ export declare const handleSelectionChange: (key: string, currentState: string, setAgentStatus: (auxCodeId: string) => void, logger: any) => void;
24
+ /**
25
+ * Sorts dropdown items with Available first, then others
26
+ */
27
+ export declare const sortDropdownItems: (items: Array<{
28
+ id: string;
29
+ name: string;
30
+ }>) => Array<{
31
+ id: string;
32
+ name: string;
33
+ }>;
34
+ /**
35
+ * Gets the previous selectable state (first non-RONA/Engaged state)
36
+ */
37
+ export declare const getPreviousSelectableState: (idleCodes: IdleCode[]) => string;
38
+ /**
39
+ * Gets the selected key for the dropdown
40
+ */
41
+ export declare const getSelectedKey: (customState: ICustomState, currentState: string, idleCodes: IdleCode[]) => string;
42
+ /**
43
+ * Builds the dropdown items including custom state if present
44
+ */
45
+ export declare const buildDropdownItems: (customState: ICustomState, idleCodes: IdleCode[]) => Array<{
46
+ id: string;
47
+ name: string;
48
+ }>;