@telia-ace/widget-core-flamingo 1.0.14 → 1.1.12-rc.5

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.
Files changed (81) hide show
  1. package/bootstrap.d.ts +3 -0
  2. package/components/ace-widget.component.d.ts +21 -0
  3. package/components/trigger.component.d.ts +14 -0
  4. package/components/unresolved.component.d.ts +7 -0
  5. package/components/widget.component.d.ts +18 -0
  6. package/components/wrapper.component.d.ts +13 -0
  7. package/index-5087564d.mjs +335 -0
  8. package/index-6dd00f59.js +1 -0
  9. package/index.d.ts +9 -0
  10. package/index.js +261 -0
  11. package/index.mjs +2021 -0
  12. package/models/application.d.ts +27 -0
  13. package/models/container.d.ts +16 -0
  14. package/models/environment.d.ts +12 -0
  15. package/models/site.d.ts +12 -0
  16. package/package.json +7 -43
  17. package/services/component-platform.d.ts +13 -0
  18. package/services/component-resolver.d.ts +8 -0
  19. package/services/http-client.service.d.ts +11 -0
  20. package/types.d.ts +47 -0
  21. package/utils/map-branding.d.ts +1 -0
  22. package/LICENSE.txt +0 -6
  23. package/README.md +0 -3
  24. package/dist/action-resolver.d.ts +0 -9
  25. package/dist/action-resolver.d.ts.map +0 -1
  26. package/dist/bootstrap.d.ts +0 -16
  27. package/dist/bootstrap.d.ts.map +0 -1
  28. package/dist/component-platform/actions-controller.d.ts +0 -41
  29. package/dist/component-platform/actions-controller.d.ts.map +0 -1
  30. package/dist/component-platform/changeset-provider.d.ts +0 -9
  31. package/dist/component-platform/changeset-provider.d.ts.map +0 -1
  32. package/dist/component-platform/component-configuration-api.d.ts +0 -3
  33. package/dist/component-platform/component-configuration-api.d.ts.map +0 -1
  34. package/dist/component-platform/component-controller.d.ts +0 -39
  35. package/dist/component-platform/component-controller.d.ts.map +0 -1
  36. package/dist/component-platform/component-node-collection.d.ts +0 -19
  37. package/dist/component-platform/component-node-collection.d.ts.map +0 -1
  38. package/dist/component-platform/component-node.d.ts +0 -64
  39. package/dist/component-platform/component-node.d.ts.map +0 -1
  40. package/dist/component-platform/component-platform.d.ts +0 -55
  41. package/dist/component-platform/component-platform.d.ts.map +0 -1
  42. package/dist/component-platform/component-query.d.ts +0 -17
  43. package/dist/component-platform/component-query.d.ts.map +0 -1
  44. package/dist/component-platform/create-component-model.d.ts +0 -37
  45. package/dist/component-platform/create-component-model.d.ts.map +0 -1
  46. package/dist/component-platform/custom-component-handler.d.ts +0 -22
  47. package/dist/component-platform/custom-component-handler.d.ts.map +0 -1
  48. package/dist/component-platform/descriptor.d.ts +0 -9
  49. package/dist/component-platform/descriptor.d.ts.map +0 -1
  50. package/dist/component-platform/extend-component.d.ts +0 -9
  51. package/dist/component-platform/extend-component.d.ts.map +0 -1
  52. package/dist/component-platform/index.d.ts +0 -19
  53. package/dist/component-platform/index.d.ts.map +0 -1
  54. package/dist/component-platform/queries.d.ts +0 -7
  55. package/dist/component-platform/queries.d.ts.map +0 -1
  56. package/dist/component-platform/state-processor.d.ts +0 -13
  57. package/dist/component-platform/state-processor.d.ts.map +0 -1
  58. package/dist/component-resolver.d.ts +0 -15
  59. package/dist/component-resolver.d.ts.map +0 -1
  60. package/dist/environment.d.ts +0 -49
  61. package/dist/environment.d.ts.map +0 -1
  62. package/dist/event-subscriber.d.ts +0 -8
  63. package/dist/event-subscriber.d.ts.map +0 -1
  64. package/dist/implementation.d.ts +0 -8
  65. package/dist/implementation.d.ts.map +0 -1
  66. package/dist/index.d.ts +0 -15
  67. package/dist/index.d.ts.map +0 -1
  68. package/dist/index.js +0 -2076
  69. package/dist/index.js.map +0 -1
  70. package/dist/plugin.d.ts +0 -8
  71. package/dist/plugin.d.ts.map +0 -1
  72. package/dist/types/configuration.d.ts +0 -87
  73. package/dist/types/configuration.d.ts.map +0 -1
  74. package/dist/types/index.d.ts +0 -3
  75. package/dist/types/index.d.ts.map +0 -1
  76. package/dist/types/ui.d.ts +0 -49
  77. package/dist/types/ui.d.ts.map +0 -1
  78. package/dist/version.d.ts +0 -3
  79. package/dist/version.d.ts.map +0 -1
  80. package/dist/widget-type.d.ts +0 -8
  81. package/dist/widget-type.d.ts.map +0 -1
package/bootstrap.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { Environment } from './models/environment';
2
+ import { InitConfig } from './types';
3
+ export declare const bootstrap: (urlOrConfig: string | InitConfig, handler: (environment: Environment) => void) => Promise<void>;
@@ -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(): typeof nothing | Trigger | import("./wrapper.component").Wrapper | 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
+ }