@pushengineering/umg-web-components 2.0.5 → 2.0.10
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/classes/event-manager/event-manager.d.ts +52 -0
- package/dist/classes/event-manager/types.d.ts +6 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/components/badge/badge.d.ts +19 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/banner/banner.d.ts +39 -0
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner-image/banner-image.d.ts +23 -0
- package/dist/components/banner-image/index.d.ts +2 -0
- package/dist/components/box/box.d.ts +28 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +31 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +12 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-icon/button-icon.d.ts +31 -0
- package/dist/components/button-icon/index.d.ts +2 -0
- package/dist/components/caption-card/caption-card.d.ts +38 -0
- package/dist/components/caption-card/index.d.ts +2 -0
- package/dist/components/deferred-media/deferred-media.d.ts +25 -0
- package/dist/components/deferred-media/index.d.ts +2 -0
- package/dist/components/disclosure/disclosure.d.ts +23 -0
- package/dist/components/disclosure/index.d.ts +2 -0
- package/dist/components/event-table/event-content.d.ts +7 -0
- package/dist/components/event-table/event-date.d.ts +5 -0
- package/dist/components/event-table/event-table.d.ts +10 -0
- package/dist/components/event-table/event.d.ts +5 -0
- package/dist/components/event-table/index.d.ts +2 -0
- package/dist/components/footer/footer.d.ts +16 -0
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/grid/grid-cell.d.ts +5 -0
- package/dist/components/grid/grid.d.ts +12 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/header/header.d.ts +36 -0
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header-drawer/header-drawer.d.ts +32 -0
- package/dist/components/header-drawer/index.d.ts +2 -0
- package/dist/components/header-drawer/menu-drawer.d.ts +13 -0
- package/dist/components/horizontal-stack/horizontal-stack.d.ts +13 -0
- package/dist/components/horizontal-stack/index.d.ts +2 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/image/image.d.ts +19 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/link.d.ts +10 -0
- package/dist/components/link-group/index.d.ts +2 -0
- package/dist/components/link-group/link-group.d.ts +13 -0
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +19 -0
- package/dist/components/media-gallery/index.d.ts +2 -0
- package/dist/components/media-gallery/media-gallery.d.ts +14 -0
- package/dist/components/media-gallery/media.d.ts +5 -0
- package/dist/components/media-text/index.d.ts +2 -0
- package/dist/components/media-text/media-text.d.ts +30 -0
- package/dist/components/media-text/styles/media-size.d.ts +1 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +36 -0
- package/dist/components/menu-bar/index.d.ts +2 -0
- package/dist/components/menu-bar/menu-bar.d.ts +16 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +13 -0
- package/dist/components/modal/modal.js +30 -29
- package/dist/components/multiselect/index.d.ts +2 -0
- package/dist/components/multiselect/multiselect.d.ts +60 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.d.ts +28 -0
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/overlay.d.ts +13 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/page.d.ts +13 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +19 -0
- package/dist/components/rich-text/index.d.ts +2 -0
- package/dist/components/rich-text/rich-text.d.ts +11 -0
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/section.d.ts +33 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +44 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slide.d.ts +8 -0
- package/dist/components/slider/slider-controls.d.ts +27 -0
- package/dist/components/slider/slider.d.ts +68 -0
- package/dist/components/slider/styles/controls.d.ts +1 -0
- package/dist/components/slider/styles/slider.d.ts +1 -0
- package/dist/components/socials/index.d.ts +2 -0
- package/dist/components/socials/socials.d.ts +26 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.d.ts +13 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +24 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.d.ts +25 -0
- package/dist/components/thumbnail-slider/index.d.ts +2 -0
- package/dist/components/thumbnail-slider/thumbnail-slide.d.ts +5 -0
- package/dist/components/thumbnail-slider/thumbnail-slider.d.ts +20 -0
- package/dist/components/vertical-stack/index.d.ts +2 -0
- package/dist/components/vertical-stack/vertical-stack.d.ts +13 -0
- package/dist/components/video/index.d.ts +2 -0
- package/dist/components/video/video.d.ts +29 -0
- package/dist/types.d.ts +66 -0
- package/package.json +2 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { Banner } from './banner/banner';
|
|
2
|
+
export { BannerImage } from './banner-image/';
|
|
3
|
+
export { Box } from './box/';
|
|
4
|
+
export { Button } from './button/';
|
|
5
|
+
export { ButtonIcon } from './button-icon/';
|
|
6
|
+
export { ButtonGroup } from './button-group/';
|
|
7
|
+
export { CaptionCard } from './caption-card/';
|
|
8
|
+
export { DeferredMedia } from './deferred-media/';
|
|
9
|
+
export { Disclosure } from './disclosure/';
|
|
10
|
+
export { EventTable } from './event-table/';
|
|
11
|
+
export { Footer } from './footer/';
|
|
12
|
+
export { Grid } from './grid/';
|
|
13
|
+
export { Header } from './header/';
|
|
14
|
+
export { HeaderDrawer } from './header-drawer/';
|
|
15
|
+
export { HorizontalStack } from './horizontal-stack/';
|
|
16
|
+
export { Icon } from './icon/';
|
|
17
|
+
export { Image } from './image/';
|
|
18
|
+
export { Link } from './link/';
|
|
19
|
+
export { LinkGroup } from './link-group/';
|
|
20
|
+
export { Logo } from './logo/';
|
|
21
|
+
export { MediaGallery } from './media-gallery/';
|
|
22
|
+
export { MediaText } from './media-text/';
|
|
23
|
+
export { Menu } from './menu/';
|
|
24
|
+
export { MenuBar } from './menu-bar/';
|
|
25
|
+
export { Modal } from './modal/';
|
|
26
|
+
export { NumberField } from './number-field/';
|
|
27
|
+
export { Overlay } from './overlay/';
|
|
28
|
+
export { Page } from './page/';
|
|
29
|
+
export { Popover } from './popover/';
|
|
30
|
+
export { Section } from './section/';
|
|
31
|
+
export { Select } from './select/';
|
|
32
|
+
export { Slider } from './slider/';
|
|
33
|
+
export { Socials } from './socials/';
|
|
34
|
+
export { Table } from './table/';
|
|
35
|
+
export { Text } from './text/';
|
|
36
|
+
export { TextField } from './text-field/';
|
|
37
|
+
export { RichText } from './rich-text/';
|
|
38
|
+
export { ThumbnailSlider } from './thumbnail-slider';
|
|
39
|
+
export { Video } from './video/';
|
|
40
|
+
export { VerticalStack } from './vertical-stack/';
|
|
41
|
+
export { Badge } from './badge/';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { LinkTarget } from '../../types';
|
|
3
|
+
export declare class Link extends LitElement {
|
|
4
|
+
url?: string | undefined;
|
|
5
|
+
target: LinkTarget;
|
|
6
|
+
underline?: boolean | undefined;
|
|
7
|
+
linkClasses(): any;
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
static styles: import("lit").CSSResultArray;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { GroupSpacing, GroupAlign } from '../../types';
|
|
3
|
+
export declare class LinkGroup extends LitElement {
|
|
4
|
+
spacing: GroupSpacing;
|
|
5
|
+
justify: GroupAlign;
|
|
6
|
+
mobileJustify: GroupAlign | undefined;
|
|
7
|
+
noWrap: boolean;
|
|
8
|
+
stack: boolean;
|
|
9
|
+
mobileStack: boolean;
|
|
10
|
+
getClasses(): any;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../image/';
|
|
3
|
+
export declare class Logo extends LitElement {
|
|
4
|
+
url: string;
|
|
5
|
+
height: number;
|
|
6
|
+
title: string;
|
|
7
|
+
showTitle: boolean;
|
|
8
|
+
imgSrc?: string | undefined;
|
|
9
|
+
imgSrcSet?: string | undefined;
|
|
10
|
+
imgSizes?: string | undefined;
|
|
11
|
+
imgWidth: number;
|
|
12
|
+
imgHeight: number;
|
|
13
|
+
logoStyles(): {};
|
|
14
|
+
logoClasses(): any;
|
|
15
|
+
titleClasses(): any;
|
|
16
|
+
image(): import("lit").TemplateResult<1>;
|
|
17
|
+
render(): import("lit").TemplateResult<1>;
|
|
18
|
+
static styles: import("lit").CSSResultArray;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { EventManager } from '../../classes/event-manager/event-manager.js';
|
|
3
|
+
import { SlideEvent } from '../../classes/event-manager/types.js';
|
|
4
|
+
import './media.js';
|
|
5
|
+
export declare class MediaGallery extends LitElement {
|
|
6
|
+
_mediaItems: Array<HTMLElement>;
|
|
7
|
+
_slideItems: Array<HTMLElement>;
|
|
8
|
+
mediaEventManager: EventManager;
|
|
9
|
+
constructor();
|
|
10
|
+
protected _customEventsHandler: (e: SlideEvent) => void;
|
|
11
|
+
private _updateActiveMedia;
|
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
|
13
|
+
static styles: import("lit").CSSResultArray;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { BoxHeight, MediaSize } from '../../types';
|
|
3
|
+
import '../box/';
|
|
4
|
+
import '../vertical-stack/';
|
|
5
|
+
export declare class MediaText extends LitElement {
|
|
6
|
+
setSizeBy: string;
|
|
7
|
+
mediaHeight: BoxHeight;
|
|
8
|
+
mediaWidth: MediaSize;
|
|
9
|
+
mediaOnRight: boolean;
|
|
10
|
+
blendMedia: boolean;
|
|
11
|
+
alignContent: string;
|
|
12
|
+
mobileAlignContent: string;
|
|
13
|
+
justifyContent: string;
|
|
14
|
+
mobileJustifyContent: string;
|
|
15
|
+
spacing: string;
|
|
16
|
+
padding: string | undefined;
|
|
17
|
+
mobilePadding: string | undefined;
|
|
18
|
+
paddingTop: string | undefined;
|
|
19
|
+
paddingRight: string | undefined;
|
|
20
|
+
paddingBottom: string | undefined;
|
|
21
|
+
paddingLeft: string | undefined;
|
|
22
|
+
colorBg: string | undefined;
|
|
23
|
+
colorText: string | undefined;
|
|
24
|
+
opacity: string | undefined;
|
|
25
|
+
gridClasses(): any;
|
|
26
|
+
contentStackClasses(): any;
|
|
27
|
+
mediaTextStyles(): {};
|
|
28
|
+
render(): import("lit").TemplateResult<1>;
|
|
29
|
+
static styles: import("lit").CSSResultArray;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mediaSize: import("lit").CSSResult;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import type { PageWidth } from '../../types';
|
|
3
|
+
import '../disclosure/';
|
|
4
|
+
interface MenuData {
|
|
5
|
+
linkText: string;
|
|
6
|
+
linkUrl: string;
|
|
7
|
+
linkClasses: Array<string>;
|
|
8
|
+
subItems: Array<MenuData>;
|
|
9
|
+
}
|
|
10
|
+
export declare class Menu extends LitElement {
|
|
11
|
+
src: string;
|
|
12
|
+
data?: MenuData[];
|
|
13
|
+
layout: string;
|
|
14
|
+
vertical: boolean;
|
|
15
|
+
hideMenuTitle: boolean;
|
|
16
|
+
width: PageWidth;
|
|
17
|
+
divider: boolean;
|
|
18
|
+
colorText: undefined | string;
|
|
19
|
+
colorBg: undefined | string;
|
|
20
|
+
constructor();
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
firstUpdated(): Promise<void>;
|
|
23
|
+
fetchData(): Promise<void>;
|
|
24
|
+
private _outsideClick;
|
|
25
|
+
private _handleMenuEvents;
|
|
26
|
+
private _closeDisclosures;
|
|
27
|
+
menuStyles(): {};
|
|
28
|
+
menuClasses(): any;
|
|
29
|
+
menuListClasses(): any;
|
|
30
|
+
menuTitle(title: string): import("lit").TemplateResult<1> | typeof nothing;
|
|
31
|
+
menuItemClasses(classes: Array<string>): string | undefined;
|
|
32
|
+
menuList(): import("lit").TemplateResult<1> | undefined;
|
|
33
|
+
render(): import("lit").TemplateResult<1>;
|
|
34
|
+
static styles: import("lit").CSSResultArray;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../box';
|
|
3
|
+
import '../link-group';
|
|
4
|
+
export declare class MenuBar extends LitElement {
|
|
5
|
+
sticky: boolean;
|
|
6
|
+
spacing: string;
|
|
7
|
+
justify: string;
|
|
8
|
+
mobileJustify: string;
|
|
9
|
+
padding?: string | undefined;
|
|
10
|
+
colorBg: string | undefined;
|
|
11
|
+
colorText: string | undefined;
|
|
12
|
+
opacity: string | undefined;
|
|
13
|
+
menuClasses(): any;
|
|
14
|
+
render(): import("lit").TemplateResult<1>;
|
|
15
|
+
static styles: import("lit").CSSResultArray;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../button-icon';
|
|
3
|
+
export declare class Modal extends LitElement {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
layout: string;
|
|
6
|
+
constructor();
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
disconnectedCallback(): void;
|
|
9
|
+
modalClasses(): any;
|
|
10
|
+
toggleModal(): void;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { customElement as
|
|
3
|
-
import { property as
|
|
4
|
-
import { classMap as
|
|
1
|
+
import { css as c, LitElement as m, html as p } from "lit";
|
|
2
|
+
import { customElement as u } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as d } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as b } from "lit/directives/class-map.js";
|
|
5
5
|
import { global as v } from "../../styles/global.js";
|
|
6
6
|
import { settings as g } from "../../scripts/settings.js";
|
|
7
|
-
import { mergeStyles as
|
|
7
|
+
import { mergeStyles as h } from "../../scripts/mergeStyles.js";
|
|
8
8
|
import "../button-icon/button-icon.js";
|
|
9
|
-
var
|
|
10
|
-
for (var o =
|
|
11
|
-
(s = e[i]) && (o = (
|
|
12
|
-
return
|
|
9
|
+
var f = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (e, l, a, r) => {
|
|
10
|
+
for (var o = r > 1 ? void 0 : r ? _(l, a) : l, i = e.length - 1, s; i >= 0; i--)
|
|
11
|
+
(s = e[i]) && (o = (r ? s(l, a, o) : s(o)) || o);
|
|
12
|
+
return r && o && f(l, a, o), o;
|
|
13
13
|
};
|
|
14
14
|
const { prefix: y } = g;
|
|
15
|
-
let t = class extends
|
|
15
|
+
let t = class extends m {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(), this.visible = !1, this.layout = "list", this.addEventListener("keyup", (e) => {
|
|
18
18
|
e.code.toUpperCase() === "ESCAPE" && this.toggleModal();
|
|
@@ -40,10 +40,10 @@ let t = class extends c {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return
|
|
43
|
+
return p`
|
|
44
44
|
<div
|
|
45
45
|
part="modal"
|
|
46
|
-
class="modal${
|
|
46
|
+
class="modal${b(this.modalClasses())}"
|
|
47
47
|
>
|
|
48
48
|
<div class="modal__close">
|
|
49
49
|
<umg-button-icon
|
|
@@ -54,8 +54,6 @@ let t = class extends c {
|
|
|
54
54
|
label="Close modal"
|
|
55
55
|
borderRadius="full"
|
|
56
56
|
borderWidth='0'
|
|
57
|
-
colorText="240,240,240"
|
|
58
|
-
colorBg="0,0,0"
|
|
59
57
|
colorBgOpacity="0"
|
|
60
58
|
border
|
|
61
59
|
>
|
|
@@ -70,9 +68,9 @@ let t = class extends c {
|
|
|
70
68
|
`;
|
|
71
69
|
}
|
|
72
70
|
};
|
|
73
|
-
t.styles =
|
|
71
|
+
t.styles = h([
|
|
74
72
|
v,
|
|
75
|
-
|
|
73
|
+
c`
|
|
76
74
|
/* Base */
|
|
77
75
|
.modal {
|
|
78
76
|
background-color: rgba(var(--um-color-modal-bg, 255, 255, 255), var(--um-opacity-modal-bg, 0.95));
|
|
@@ -107,16 +105,20 @@ t.styles = f([
|
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
/* Internal layout */
|
|
110
|
-
.modal-layout--single {
|
|
108
|
+
.modal-layout--single .modal__content {
|
|
109
|
+
justify-content: center;
|
|
110
|
+
height: 100%;
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
111
113
|
justify-content: center;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
.modal__content {
|
|
115
|
-
padding: var(--um-space-48, 3rem) 0;
|
|
116
117
|
width: calc(var(--um-breakpoint-lg, 64rem) - var(--um-space-48, 3rem));
|
|
117
118
|
}
|
|
118
119
|
.modal__content-inner {
|
|
119
120
|
padding: 0 var(--um-space-24, 1.5rem);
|
|
121
|
+
min-height: 0;
|
|
120
122
|
}
|
|
121
123
|
.modal__content-inner ::slotted(*) {
|
|
122
124
|
display: block;
|
|
@@ -124,12 +126,11 @@ t.styles = f([
|
|
|
124
126
|
}
|
|
125
127
|
.modal__close {
|
|
126
128
|
background-color: rgba(var(--um-color-modal-bg, 255, 255, 255), 1);
|
|
127
|
-
box-shadow: 0 0 1rem 0.125rem rgb(0,0,0,0.5);
|
|
128
129
|
display: flex;
|
|
129
130
|
align-items: center;
|
|
130
|
-
justify-content:
|
|
131
|
-
padding: var(--um-space-
|
|
132
|
-
position:
|
|
131
|
+
justify-content: end;
|
|
132
|
+
padding: var(--um-space-12) var(--um-space-24);
|
|
133
|
+
position: sticky;
|
|
133
134
|
right: 0;
|
|
134
135
|
top: 0;
|
|
135
136
|
left: 0;
|
|
@@ -141,10 +142,10 @@ t.styles = f([
|
|
|
141
142
|
.modal__close {
|
|
142
143
|
top: initial;
|
|
143
144
|
bottom: 0;
|
|
145
|
+
padding: var(--um-space-16);
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
.modal__content {
|
|
147
|
-
padding: var(--um-space-64, 4rem) 0;
|
|
148
149
|
width: 100%;
|
|
149
150
|
}
|
|
150
151
|
|
|
@@ -158,14 +159,14 @@ t.styles = f([
|
|
|
158
159
|
}
|
|
159
160
|
`
|
|
160
161
|
]);
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
n([
|
|
163
|
+
d({ type: Boolean })
|
|
163
164
|
], t.prototype, "visible", 2);
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
n([
|
|
166
|
+
d()
|
|
166
167
|
], t.prototype, "layout", 2);
|
|
167
|
-
t =
|
|
168
|
-
|
|
168
|
+
t = n([
|
|
169
|
+
u(`${y}-modal`)
|
|
169
170
|
], t);
|
|
170
171
|
export {
|
|
171
172
|
t as Modal
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { EventManager } from '../../classes/event-manager/event-manager';
|
|
3
|
+
import '../disclosure';
|
|
4
|
+
import '../text';
|
|
5
|
+
import '../icon';
|
|
6
|
+
import '../button-group';
|
|
7
|
+
interface Option {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
count: number;
|
|
13
|
+
pluralType: string;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface groupOptions {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
label: string;
|
|
20
|
+
groups: OptionGroup[];
|
|
21
|
+
}
|
|
22
|
+
interface OptionGroup {
|
|
23
|
+
groupLabel: string;
|
|
24
|
+
options: Option[];
|
|
25
|
+
}
|
|
26
|
+
export declare class Multiselect extends LitElement {
|
|
27
|
+
id: string;
|
|
28
|
+
options: Option[];
|
|
29
|
+
groupOptions: groupOptions | undefined;
|
|
30
|
+
label: string;
|
|
31
|
+
name: string;
|
|
32
|
+
selectedItem: number;
|
|
33
|
+
defaultLabel: boolean;
|
|
34
|
+
border: boolean;
|
|
35
|
+
borderRadius: string;
|
|
36
|
+
multiselect: boolean;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
_checkedInputs: Array<HTMLInputElement>;
|
|
39
|
+
_currentSelectedLabel: string;
|
|
40
|
+
windowEventManager: EventManager;
|
|
41
|
+
eventManager: EventManager;
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
disconnectedCallback(): void;
|
|
44
|
+
updated(changedProperties: Map<string, any>): void;
|
|
45
|
+
private _eventsHandler;
|
|
46
|
+
private _eventsDispatcher;
|
|
47
|
+
private _getCheckedValues;
|
|
48
|
+
/** Render UX */
|
|
49
|
+
private _onRadioChange;
|
|
50
|
+
private _onMultiSelectChange;
|
|
51
|
+
optionsListClasses(): any;
|
|
52
|
+
optionsListStyles(): {};
|
|
53
|
+
optionsContent(): import("lit").TemplateResult<1> | undefined;
|
|
54
|
+
selectRadios(): import("lit").TemplateResult<1>;
|
|
55
|
+
selectCheckboxes(): import("lit").TemplateResult<1>;
|
|
56
|
+
currentRadioLabel(): import("lit").TemplateResult<1> | undefined;
|
|
57
|
+
render(): import("lit").TemplateResult<1>;
|
|
58
|
+
static styles: import("lit").CSSResultArray;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../button-icon';
|
|
3
|
+
export declare class NumberField extends LitElement {
|
|
4
|
+
hideLabel: boolean;
|
|
5
|
+
layout: string;
|
|
6
|
+
placeholder: string | undefined;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
required: boolean;
|
|
9
|
+
id: string;
|
|
10
|
+
error: boolean;
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
step: number;
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
_input: HTMLInputElement | undefined;
|
|
17
|
+
changeEvent(): void;
|
|
18
|
+
setNumericalValue(operator: string): void;
|
|
19
|
+
fieldClasses(): any;
|
|
20
|
+
inputClasses(): any;
|
|
21
|
+
labelClasses(): any;
|
|
22
|
+
renderLabel(): import("lit").TemplateResult<1>;
|
|
23
|
+
renderButtons(): import("lit").TemplateResult<1>;
|
|
24
|
+
renderNumber(): import("lit").TemplateResult<1>;
|
|
25
|
+
renderErrorMessage(): import("lit").TemplateResult<1> | undefined;
|
|
26
|
+
render(): import("lit").TemplateResult<1>;
|
|
27
|
+
static styles: import("lit").CSSResultArray;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Overlay extends LitElement {
|
|
3
|
+
colorText: string;
|
|
4
|
+
colorBg: string;
|
|
5
|
+
_visible: boolean;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
disconnectedCallback(): void;
|
|
8
|
+
openOverlay(): void;
|
|
9
|
+
closeOverlay(): void;
|
|
10
|
+
overlayClasses(): any;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { PageWidthScale } from '../../types';
|
|
3
|
+
export declare class Page extends LitElement {
|
|
4
|
+
width: PageWidthScale;
|
|
5
|
+
sectionMargins: number | undefined;
|
|
6
|
+
divider: boolean;
|
|
7
|
+
colorText: string;
|
|
8
|
+
colorBg: string;
|
|
9
|
+
pageClasses(): any;
|
|
10
|
+
pageStyles(): {};
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { EventManager } from '../../classes/event-manager/event-manager.js';
|
|
3
|
+
import '../box/';
|
|
4
|
+
import '../vertical-stack/';
|
|
5
|
+
import '../horizontal-stack/';
|
|
6
|
+
import '../button-icon/';
|
|
7
|
+
export declare class Popover extends LitElement {
|
|
8
|
+
visible: boolean;
|
|
9
|
+
eventManager: EventManager;
|
|
10
|
+
private _eventsDispatcher;
|
|
11
|
+
closePopover(): void;
|
|
12
|
+
popoverClasses(): any;
|
|
13
|
+
popoverStyles(): {
|
|
14
|
+
visibility: string;
|
|
15
|
+
};
|
|
16
|
+
closeButton(): import("lit").TemplateResult<1> | undefined;
|
|
17
|
+
render(): import("lit").TemplateResult<1>;
|
|
18
|
+
static styles: import("lit").CSSResultArray;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { TextVariant, TextAlignment, TextLineHeight } from '../../types';
|
|
3
|
+
export declare class RichText extends LitElement {
|
|
4
|
+
size: TextVariant;
|
|
5
|
+
lineHeight: TextLineHeight | undefined;
|
|
6
|
+
alignment: TextAlignment;
|
|
7
|
+
mobileAlignment: TextAlignment | undefined;
|
|
8
|
+
textClasses(): any;
|
|
9
|
+
render(): import("lit").TemplateResult<1>;
|
|
10
|
+
static styles: import("lit").CSSResultArray;
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { PaddingScale } from '../../types';
|
|
3
|
+
export declare class Section extends LitElement {
|
|
4
|
+
outerWidth: string;
|
|
5
|
+
innerWidth: string;
|
|
6
|
+
maxInnerWidth: number | undefined;
|
|
7
|
+
compactHeader: boolean;
|
|
8
|
+
mobileBleed: boolean;
|
|
9
|
+
mobilePadding: string | undefined;
|
|
10
|
+
paddingTop: PaddingScale | undefined;
|
|
11
|
+
paddingBottom: PaddingScale | undefined;
|
|
12
|
+
paddingLeft: PaddingScale | undefined;
|
|
13
|
+
paddingRight: PaddingScale | undefined;
|
|
14
|
+
colorBg: string | undefined;
|
|
15
|
+
colorText: string | undefined;
|
|
16
|
+
private _withoutHeader;
|
|
17
|
+
private _withoutFooter;
|
|
18
|
+
private _mobilePadding;
|
|
19
|
+
handleSlotchange(e: Event): void;
|
|
20
|
+
firstUpdated(): void;
|
|
21
|
+
updated(changedProperties: Map<string, any>): void;
|
|
22
|
+
isNumeric: (string: unknown) => boolean;
|
|
23
|
+
convertMobilePadding(mobilePadding: string): void;
|
|
24
|
+
sectionClasses(): any;
|
|
25
|
+
sectionInnerClasses(): any;
|
|
26
|
+
sectionStyles(): {};
|
|
27
|
+
headerStyles(): {};
|
|
28
|
+
footerStyles(): {};
|
|
29
|
+
header(): import("lit").TemplateResult<1>;
|
|
30
|
+
footer(): import("lit").TemplateResult<1>;
|
|
31
|
+
render(): import("lit").TemplateResult<1>;
|
|
32
|
+
static styles: import("lit").CSSResultArray;
|
|
33
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { EventManager } from '../../classes/event-manager/event-manager';
|
|
3
|
+
import '../disclosure';
|
|
4
|
+
import '../text';
|
|
5
|
+
import '../icon';
|
|
6
|
+
interface Option {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
count: number;
|
|
12
|
+
pluralType: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class Select extends LitElement {
|
|
16
|
+
id: string;
|
|
17
|
+
options: Option[];
|
|
18
|
+
label: string;
|
|
19
|
+
name: string;
|
|
20
|
+
selectedItem: number;
|
|
21
|
+
defaultLabel: boolean;
|
|
22
|
+
colorText: string | undefined;
|
|
23
|
+
colorBg: string | undefined;
|
|
24
|
+
border: boolean;
|
|
25
|
+
borderRadius: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
_currentSelectedLabel: string;
|
|
28
|
+
windowEventManager: EventManager;
|
|
29
|
+
eventManager: EventManager;
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
disconnectedCallback(): void;
|
|
32
|
+
updated(changedProperties: Map<string, any>): void;
|
|
33
|
+
private _eventsHandler;
|
|
34
|
+
private _eventsDispatcher;
|
|
35
|
+
/** Render UX */
|
|
36
|
+
private _onOptionChange;
|
|
37
|
+
optionsListClasses(): any;
|
|
38
|
+
optionsListStyles(): {};
|
|
39
|
+
optionsList(): import("lit").TemplateResult<1> | undefined;
|
|
40
|
+
currentOptionLabel(): import("lit").TemplateResult<1> | undefined;
|
|
41
|
+
render(): import("lit").TemplateResult<1>;
|
|
42
|
+
static styles: import("lit").CSSResultArray;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Slide extends LitElement {
|
|
3
|
+
contentType: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
content(): import("lit").TemplateResult<1>;
|
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
static styles: import("lit").CSSResultArray;
|
|
8
|
+
}
|