@telia-ace/widget-components-widget-header-flamingo 1.1.120-rc.9 → 1.1.120
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/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/{widget-header-zHiwTPKk.mjs → widget-header-B0fVrAX0.mjs} +2120 -2114
- package/widget-header-vlffCnbj.js +699 -0
- package/widget-header.d.ts +23 -16
- package/widget-header-vMZgjB_p.js +0 -681
package/widget-header.d.ts
CHANGED
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { AuthState } from '../../core/src/index.ts';
|
|
3
4
|
import { WidgetHeaderOption } from './widget-header-option';
|
|
5
|
+
import { CreateWidgetHeaderOption } from './types';
|
|
4
6
|
declare const WidgetElement: (new (...args: any[]) => import('../../core/src/index.ts').WidgetComponentType) & typeof LitElement;
|
|
5
|
-
type authStateType = 'non-authenticated' | 'authenticating' | 'authenticated' | 'chat-ended';
|
|
6
7
|
export declare class WidgetHeader extends WidgetElement {
|
|
7
8
|
static readonly styles: import('lit').CSSResultGroup[];
|
|
8
9
|
optionsIsVisible: boolean;
|
|
9
|
-
authState:
|
|
10
|
-
|
|
10
|
+
authState: AuthState;
|
|
11
|
+
userName: string;
|
|
11
12
|
authUrl: string;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
showAuthOptions: boolean;
|
|
14
|
+
private shouldUseAuth;
|
|
14
15
|
private readonly options;
|
|
15
16
|
private readonly optionsRef;
|
|
16
17
|
private readonly optionsTriggerRef;
|
|
18
|
+
actions$: Subject<{
|
|
19
|
+
key: string;
|
|
20
|
+
data?: any;
|
|
21
|
+
}>;
|
|
17
22
|
addOption(option: CreateWidgetHeaderOption): WidgetHeaderOption;
|
|
18
23
|
removeOption(option: WidgetHeaderOption): void;
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
notify
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private shouldUseAuth;
|
|
28
|
-
_logout(state?: authStateType): void;
|
|
24
|
+
private onToggleOptionsMenuClick;
|
|
25
|
+
private onMinimizeClick;
|
|
26
|
+
private notify;
|
|
27
|
+
private readonly onClickOutside;
|
|
28
|
+
private onStartAuth;
|
|
29
|
+
private onLogoutAuth;
|
|
30
|
+
private readonly onGlobalKeyDown;
|
|
31
|
+
private handleFocusTrap;
|
|
29
32
|
private renderAuthSection;
|
|
30
33
|
private renderAuthStatus;
|
|
34
|
+
private setFocusToOptionsTitle;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
updated(changedProps: Map<string, unknown>): void;
|
|
37
|
+
disconnectedCallback(): void;
|
|
31
38
|
render(): import('lit-html').TemplateResult<1>;
|
|
32
39
|
}
|
|
33
40
|
export default WidgetHeader;
|