@telia-ace/widget-components-widget-header-flamingo 1.1.120-rc.3 → 1.1.120-rc.31
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-BPrveym6.mjs → widget-header-B0fVrAX0.mjs} +2163 -2151
- package/widget-header-vlffCnbj.js +699 -0
- package/widget-header.d.ts +27 -16
- package/widget-header-CkP5f2px.js +0 -679
package/widget-header.d.ts
CHANGED
|
@@ -1,29 +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
7
|
export declare class WidgetHeader extends WidgetElement {
|
|
6
|
-
static styles: import('lit').CSSResultGroup[];
|
|
8
|
+
static readonly styles: import('lit').CSSResultGroup[];
|
|
7
9
|
optionsIsVisible: boolean;
|
|
8
|
-
authState:
|
|
9
|
-
|
|
10
|
+
authState: AuthState;
|
|
11
|
+
userName: string;
|
|
10
12
|
authUrl: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
private options;
|
|
14
|
-
private optionsRef;
|
|
15
|
-
private optionsTriggerRef;
|
|
13
|
+
showAuthOptions: boolean;
|
|
14
|
+
private shouldUseAuth;
|
|
15
|
+
private readonly options;
|
|
16
|
+
private readonly optionsRef;
|
|
17
|
+
private readonly optionsTriggerRef;
|
|
18
|
+
actions$: Subject<{
|
|
19
|
+
key: string;
|
|
20
|
+
data?: any;
|
|
21
|
+
}>;
|
|
16
22
|
addOption(option: CreateWidgetHeaderOption): WidgetHeaderOption;
|
|
17
23
|
removeOption(option: WidgetHeaderOption): void;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
notify
|
|
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;
|
|
32
|
+
private renderAuthSection;
|
|
33
|
+
private renderAuthStatus;
|
|
34
|
+
private setFocusToOptionsTitle;
|
|
21
35
|
connectedCallback(): void;
|
|
36
|
+
updated(changedProps: Map<string, unknown>): void;
|
|
22
37
|
disconnectedCallback(): void;
|
|
23
|
-
private _onClickOutside;
|
|
24
|
-
private _onStartAuth;
|
|
25
|
-
private _showLogoutForm;
|
|
26
|
-
_logout(): void;
|
|
27
38
|
render(): import('lit-html').TemplateResult<1>;
|
|
28
39
|
}
|
|
29
40
|
export default WidgetHeader;
|