@telia-ace/widget-core-flamingo 1.0.14 → 1.1.12-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/bootstrap.d.ts +3 -0
- package/components/ace-widget.component.d.ts +21 -0
- package/components/trigger.component.d.ts +14 -0
- package/components/unresolved.component.d.ts +7 -0
- package/components/widget.component.d.ts +18 -0
- package/components/wrapper.component.d.ts +13 -0
- package/index-5087564d.mjs +335 -0
- package/index-6dd00f59.js +1 -0
- package/index.d.ts +9 -0
- package/index.js +257 -0
- package/index.mjs +1998 -0
- package/models/application.d.ts +27 -0
- package/models/container.d.ts +16 -0
- package/models/environment.d.ts +12 -0
- package/models/site.d.ts +12 -0
- package/package.json +7 -43
- package/services/component-platform.d.ts +13 -0
- package/services/component-resolver.d.ts +8 -0
- package/services/http-client.service.d.ts +11 -0
- package/types.d.ts +47 -0
- package/utils/map-branding.d.ts +1 -0
- package/LICENSE.txt +0 -6
- package/README.md +0 -3
- package/dist/action-resolver.d.ts +0 -9
- package/dist/action-resolver.d.ts.map +0 -1
- package/dist/bootstrap.d.ts +0 -16
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/component-platform/actions-controller.d.ts +0 -41
- package/dist/component-platform/actions-controller.d.ts.map +0 -1
- package/dist/component-platform/changeset-provider.d.ts +0 -9
- package/dist/component-platform/changeset-provider.d.ts.map +0 -1
- package/dist/component-platform/component-configuration-api.d.ts +0 -3
- package/dist/component-platform/component-configuration-api.d.ts.map +0 -1
- package/dist/component-platform/component-controller.d.ts +0 -39
- package/dist/component-platform/component-controller.d.ts.map +0 -1
- package/dist/component-platform/component-node-collection.d.ts +0 -19
- package/dist/component-platform/component-node-collection.d.ts.map +0 -1
- package/dist/component-platform/component-node.d.ts +0 -64
- package/dist/component-platform/component-node.d.ts.map +0 -1
- package/dist/component-platform/component-platform.d.ts +0 -55
- package/dist/component-platform/component-platform.d.ts.map +0 -1
- package/dist/component-platform/component-query.d.ts +0 -17
- package/dist/component-platform/component-query.d.ts.map +0 -1
- package/dist/component-platform/create-component-model.d.ts +0 -37
- package/dist/component-platform/create-component-model.d.ts.map +0 -1
- package/dist/component-platform/custom-component-handler.d.ts +0 -22
- package/dist/component-platform/custom-component-handler.d.ts.map +0 -1
- package/dist/component-platform/descriptor.d.ts +0 -9
- package/dist/component-platform/descriptor.d.ts.map +0 -1
- package/dist/component-platform/extend-component.d.ts +0 -9
- package/dist/component-platform/extend-component.d.ts.map +0 -1
- package/dist/component-platform/index.d.ts +0 -19
- package/dist/component-platform/index.d.ts.map +0 -1
- package/dist/component-platform/queries.d.ts +0 -7
- package/dist/component-platform/queries.d.ts.map +0 -1
- package/dist/component-platform/state-processor.d.ts +0 -13
- package/dist/component-platform/state-processor.d.ts.map +0 -1
- package/dist/component-resolver.d.ts +0 -15
- package/dist/component-resolver.d.ts.map +0 -1
- package/dist/environment.d.ts +0 -49
- package/dist/environment.d.ts.map +0 -1
- package/dist/event-subscriber.d.ts +0 -8
- package/dist/event-subscriber.d.ts.map +0 -1
- package/dist/implementation.d.ts +0 -8
- package/dist/implementation.d.ts.map +0 -1
- package/dist/index.d.ts +0 -15
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -2076
- package/dist/index.js.map +0 -1
- package/dist/plugin.d.ts +0 -8
- package/dist/plugin.d.ts.map +0 -1
- package/dist/types/configuration.d.ts +0 -87
- package/dist/types/configuration.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/ui.d.ts +0 -49
- package/dist/types/ui.d.ts.map +0 -1
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/widget-type.d.ts +0 -8
- package/dist/widget-type.d.ts.map +0 -1
package/bootstrap.d.ts
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
2
|
+
import { Application } from '../models/application';
|
3
|
+
import { Trigger } from './trigger.component';
|
4
|
+
declare enum AceWidgetState {
|
5
|
+
Deactivated = "deactivated",
|
6
|
+
Activated = "activated"
|
7
|
+
}
|
8
|
+
export declare class AceWidget extends LitElement {
|
9
|
+
static styles: import("lit").CSSResult[];
|
10
|
+
name: string;
|
11
|
+
widget?: Application;
|
12
|
+
status: AceWidgetState;
|
13
|
+
constructor();
|
14
|
+
connectedCallback(): Promise<void>;
|
15
|
+
disconnectedCallback(): void;
|
16
|
+
onEnvironmentCreated(event: any): Promise<void>;
|
17
|
+
activate(): Promise<void>;
|
18
|
+
getGlobalEnvironment(): Promise<void>;
|
19
|
+
render(): Trigger | import("./wrapper.component").Wrapper | typeof nothing | undefined;
|
20
|
+
}
|
21
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
2
|
+
import { Application } from '../models/application';
|
3
|
+
export declare class Trigger extends LitElement {
|
4
|
+
static styles: import("lit").CSSResult[];
|
5
|
+
application?: Application;
|
6
|
+
active: boolean;
|
7
|
+
loaded: boolean;
|
8
|
+
icon: any;
|
9
|
+
connectedCallback(): Promise<void>;
|
10
|
+
_toggleActive(): void;
|
11
|
+
_applyBranding(): void;
|
12
|
+
_renderSymbol(): Promise<typeof nothing | import("lit").TemplateResult<1>>;
|
13
|
+
render(): import("lit").TemplateResult<1>;
|
14
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
declare const UnresolvedComponent_base: (new (...args: any[]) => import("./widget.component").WidgetComponentType) & typeof LitElement;
|
3
|
+
export declare class UnresolvedComponent extends UnresolvedComponent_base {
|
4
|
+
static styles: import("lit").CSSResult[];
|
5
|
+
render(): import("lit").TemplateResult<1>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import { Application } from '../models/application';
|
3
|
+
type Constructor<T = object> = new (...args: any[]) => T;
|
4
|
+
export declare class WidgetComponentType {
|
5
|
+
name: string;
|
6
|
+
type: string;
|
7
|
+
application: Application;
|
8
|
+
parent?: WidgetComponentType;
|
9
|
+
properties: Record<string, any>;
|
10
|
+
context: Record<string, any>;
|
11
|
+
layout: Record<string, any>;
|
12
|
+
writeProperties: (properties: Record<string, any>) => void;
|
13
|
+
writeContext: (context: Record<string, any>) => void;
|
14
|
+
writeLayout: (layout: Record<string, any>) => void;
|
15
|
+
addChild: (node: WidgetComponentType) => void;
|
16
|
+
}
|
17
|
+
export declare const WidgetComponent: <T extends Constructor<LitElement>>(superClass: T) => Constructor<WidgetComponentType> & T;
|
18
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LitElement, PropertyValueMap } from 'lit';
|
2
|
+
import { Ref } from 'lit/directives/ref.js';
|
3
|
+
import { Application } from '../models/application';
|
4
|
+
export declare class Wrapper extends LitElement {
|
5
|
+
static styles: import("lit").CSSResult;
|
6
|
+
private nodes;
|
7
|
+
wrapperRef: Ref<HTMLDivElement>;
|
8
|
+
application: Application;
|
9
|
+
addChild(node: any): void;
|
10
|
+
private applyBranding;
|
11
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
13
|
+
}
|