@telia-ace/widget-ui 1.0.28-experimental.2 → 1.0.28-experimental.20
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/dist/components/_icon.d.ts +7 -0
- package/dist/components/button/button.d.ts +10 -0
- package/dist/components/icon.d.ts +8 -6
- package/dist/components/index.d.ts +1 -2
- package/dist/components/ui-html.d.ts +13 -0
- package/dist/components/ui-symbol-badge.d.ts +22 -0
- package/dist/components/ui-timestamp.d.ts +23 -0
- package/dist/components/ui-typography.d.ts +13 -0
- package/dist/controllers/index.d.ts +1 -0
- package/dist/controllers/node-connector.d.ts +8 -0
- package/dist/create-web-component.d.ts +4 -0
- package/dist/data-provider.d.ts +11 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.js +1977 -1719
- package/dist/index.js.map +1 -1
- package/dist/mixins/context.d.ts +9 -0
- package/dist/mixins/index.d.ts +5 -0
- package/dist/mixins/pending-state.d.ts +6 -0
- package/dist/mixins/provider.d.ts +7 -0
- package/dist/mixins/requester.d.ts +7 -0
- package/dist/mixins/widget-component.d.ts +8 -0
- package/dist/utils/animations.d.ts +2 -2
- package/dist/utils/map-context-style.d.ts +5 -0
- package/package.json +24 -7
- package/src/styles/mixins.scss +257 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Button extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
4
|
+
render(): import("lit").TemplateResult<1>;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
interface HTMLElementTagNameMap {
|
|
8
|
+
'ui-button': Button;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Icon extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
4
|
faIcon: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
title: string;
|
|
6
|
+
role: string;
|
|
7
|
+
constructor();
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
}
|
|
@@ -12,8 +12,7 @@ export { default as Grid } from './grid';
|
|
|
12
12
|
export type { Props as GridProps } from './grid';
|
|
13
13
|
export { default as Html } from './html';
|
|
14
14
|
export type { HtmlParseInstruction, Props as HtmlProps } from './html';
|
|
15
|
-
export {
|
|
16
|
-
export type { Props as IconProps } from './icon';
|
|
15
|
+
export { Icon } from './icon';
|
|
17
16
|
export { default as Input } from './input';
|
|
18
17
|
export type { Props as InputProps } from './input';
|
|
19
18
|
export { default as ItemList } from './item-list';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Html extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
html: string;
|
|
5
|
+
constructor();
|
|
6
|
+
render(): import("lit").TemplateResult<2 | 1>;
|
|
7
|
+
protected createRenderRoot(): Element | ShadowRoot;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'ui-html': Html;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import { StyleInfo } from 'lit/directives/style-map.js';
|
|
3
|
+
import './icon';
|
|
4
|
+
export declare class SymbolBadge extends LitElement {
|
|
5
|
+
symbol: {
|
|
6
|
+
content: string;
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
elementStyle: {};
|
|
10
|
+
size: number;
|
|
11
|
+
text: string;
|
|
12
|
+
backgroundSize: string;
|
|
13
|
+
styles: StyleInfo;
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
constructor();
|
|
16
|
+
render(): import("lit").TemplateResult<1> | typeof nothing;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'ui-symbol-badge': SymbolBadge;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare enum DateFormats {
|
|
3
|
+
HH_MM = "hh:mm",
|
|
4
|
+
YYYY_MM_DD = "yyyy-mm-dd",
|
|
5
|
+
YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm"
|
|
6
|
+
}
|
|
7
|
+
export type Props = {
|
|
8
|
+
timestamp: string;
|
|
9
|
+
format?: DateFormats;
|
|
10
|
+
};
|
|
11
|
+
export declare class Timestamp extends LitElement {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
timestamp: string;
|
|
14
|
+
format: DateFormats;
|
|
15
|
+
constructor();
|
|
16
|
+
render(): import("lit").TemplateResult<1>;
|
|
17
|
+
protected createRenderRoot(): Element | ShadowRoot;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'ui-timestamp': Timestamp;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Typography extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
variant: string;
|
|
5
|
+
constructor();
|
|
6
|
+
private _getTag;
|
|
7
|
+
render(): import("lit").TemplateResult<2 | 1>;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'ui-typography': Typography;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NodeConnector } from './node-connector';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
export declare class NodeConnector implements ReactiveController {
|
|
3
|
+
host: ReactiveControllerHost;
|
|
4
|
+
constructor(host: ReactiveControllerHost);
|
|
5
|
+
propertyChangeHandler(event: any): void;
|
|
6
|
+
hostConnected(): void;
|
|
7
|
+
hostDisconnected(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExtendComponentHandler, ExtendComponentOptions } from '@telia-ace/widget-core';
|
|
2
|
+
import { Container } from '@webprovisions/platform';
|
|
3
|
+
declare const createWebComponent: (container: Container, type: string, registerComponent: any, fn?: ExtendComponentHandler, options?: ExtendComponentOptions) => Promise<void>;
|
|
4
|
+
export default createWebComponent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentNode } from '@telia-ace/widget-core';
|
|
2
|
+
import { Container } from '@webprovisions/platform';
|
|
3
|
+
export declare class DataProvider {
|
|
4
|
+
private _host;
|
|
5
|
+
node: ComponentNode | undefined;
|
|
6
|
+
nodeId: string;
|
|
7
|
+
container: Container | undefined;
|
|
8
|
+
constructor(elem: HTMLElement);
|
|
9
|
+
initialize(): Promise<void>;
|
|
10
|
+
_requestInstance(key: string): any;
|
|
11
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import { AnchorLink, Button, ButtonProps, Checkbox, CheckboxProps, Confirm, DateFormats, Drawer, DrawerAnimationType, Dropdown, DropdownProps, Empty, EmptyProps, Grid, GridProps, Html, HtmlIconProps, HtmlParseInstruction, HtmlProps, Icon,
|
|
1
|
+
import { AnchorLink, Button, ButtonProps, Checkbox, CheckboxProps, Confirm, DateFormats, Drawer, DrawerAnimationType, Dropdown, DropdownProps, Empty, EmptyProps, Grid, GridProps, Html, HtmlIconProps, HtmlParseInstruction, HtmlProps, Icon, Input, InputProps, ItemList, ItemListProps, ItemRenderer, ItemTree, ItemTreeProps, Lightbox, LightboxProps, Link, LinkProps, List, ListProps, Modal, ModalProps, NotFound, NotFoundProps, Overlay, OverlayProps, Paragraph, ParagraphProps, Portal, PortalProps, RouteLink, RouteLinkProps, Symbol, SymbolBadge, SymbolBadgeProps, TabStop, TabStopProps, Text, TextLink, TextLinkProps, TextProps, Timestamp, TimestampProps, Tooltip, TooltipProps, TransitionComponent, TransitionComponentProps, Typography, TypographyProps, WidgetLink, WidgetLinkProps, WidgetOverlayOutlet } from './components';
|
|
2
2
|
import { ColumnContext, ComponentNodeContext, ComponentPropertyContext, ContainerContext, ConversationContext, RoutingContext } from './contexts';
|
|
3
3
|
import { default as createReactComponent } from './create-react-component';
|
|
4
|
+
import { default as createWebComponent } from './create-web-component';
|
|
4
5
|
import { DispatchAction, useAction, useChildren, useColumns, useComponent, useComponentDescriptor, useComponentNode, useComponentPlatform, useContainer, useContext, useConversation, useDispatch, useEventListener, useEvents, useIsMounted, useIsTabbing, useKeyPress, useLayout, usePrevious, useProperties, useRenderState, useRouteData, useRouter, useScroll, useSettings, useToggle, useTransitionEnd, useUniqueMenu, useWidgetEvent } from './hooks';
|
|
5
6
|
import { borderTabStyle, buttonCss, contentBox, genericHtml, invertedHoverButton, itemList, linkTabStyle, list, paddedBorderTabStyle, StyledText } from './styles';
|
|
6
7
|
import { browser, Browsers, convertToStringAttributes, createEmptyComponent, defaultRenderInstructions, embeddedLinkMapper, filterCssProps, filterCssPropsStyle, genericHashLink, GenericHashLinkProps, headingElement, imageLightboxRenderer, processHtmlString, transitionComposer, TransitionStateSettings } from './utils';
|
|
8
|
+
export { Button as ButtonUi } from './components/button/button';
|
|
9
|
+
export { Html as HtmlUi } from './components/ui-html';
|
|
10
|
+
export { SymbolBadge as SymbolBadgeUi } from './components/ui-symbol-badge';
|
|
11
|
+
export { Timestamp as TimestampUi } from './components/ui-timestamp';
|
|
12
|
+
export { Typography as TypographyUi } from './components/ui-typography';
|
|
13
|
+
export * from './controllers';
|
|
14
|
+
export { DataProvider } from './data-provider';
|
|
15
|
+
export * from './mixins';
|
|
16
|
+
export type { WidgetComponentConstructor, _LitElement } from './mixins/widget-component';
|
|
7
17
|
export { AnchorLink, borderTabStyle, Button, buttonCss, Checkbox, ColumnContext, ComponentNodeContext, ComponentPropertyContext, ConversationContext, Confirm, ContainerContext, contentBox, createEmptyComponent, createReactComponent, DateFormats, Drawer, DrawerAnimationType, Dropdown, filterCssProps, filterCssPropsStyle, Grid, headingElement, Html, Icon, Input, genericHtml, invertedHoverButton, ItemList, ItemTree, Lightbox, Link, linkTabStyle, List, paddedBorderTabStyle, RoutingContext, SymbolBadge, Text, TextLink, TransitionComponent, transitionComposer, Typography, useChildren, useColumns, useComponent, useIsTabbing, useComponentDescriptor, useComponentNode, useComponentPlatform, useContainer, useContext, useDispatch, useIsMounted, useLayout, useProperties, useRenderState, useRouteData, useRouter, useScroll, useTransitionEnd, useAction, useEventListener, useEvents, useKeyPress, usePrevious, useSettings, useToggle, useConversation, useUniqueMenu, useWidgetEvent, Empty, Modal, NotFound, Overlay, Paragraph, Portal, RouteLink, TabStop, Timestamp, Tooltip, WidgetLink, WidgetOverlayOutlet, itemList, list, StyledText, browser, convertToStringAttributes, defaultRenderInstructions, embeddedLinkMapper, genericHashLink, processHtmlString, imageLightboxRenderer, };
|
|
8
|
-
export type { ButtonProps, CheckboxProps, DropdownProps, EmptyProps, GridProps, HtmlIconProps, HtmlParseInstruction, HtmlProps,
|
|
18
|
+
export type { ButtonProps, CheckboxProps, DropdownProps, EmptyProps, GridProps, HtmlIconProps, HtmlParseInstruction, HtmlProps, InputProps, ItemListProps, ItemRenderer, ItemTreeProps, LightboxProps, LinkProps, ListProps, ModalProps, NotFoundProps, OverlayProps, ParagraphProps, PortalProps, RouteLinkProps, Symbol, SymbolBadgeProps, TabStopProps, TextLinkProps, TextProps, TimestampProps, TooltipProps, TransitionComponentProps, TypographyProps, WidgetLinkProps, Browsers, GenericHashLinkProps, TransitionStateSettings, };
|
|
9
19
|
export type { DispatchAction };
|
|
20
|
+
export { createWebComponent };
|