@pushengineering/umg-web-components 2.0.2 → 2.0.4
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/{packages/web-components/components → components}/badge/badge.js +47 -49
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/banner/banner.d.ts +39 -0
- package/dist/{packages/web-components/components → components}/banner/banner.js +23 -25
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner-image/banner-image.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/banner-image/banner-image.js +26 -29
- package/dist/components/banner-image/index.d.ts +2 -0
- package/dist/components/box/box.d.ts +28 -0
- package/dist/components/box/box.js +229 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button/button.js +21 -24
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/button-group/button-group.js +20 -23
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-icon/button-icon.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button-icon/button-icon.js +25 -28
- package/dist/components/button-icon/index.d.ts +2 -0
- package/dist/components/caption-card/caption-card.d.ts +38 -0
- package/dist/{packages/web-components/components → components}/caption-card/caption-card.js +19 -21
- package/dist/components/caption-card/index.d.ts +2 -0
- package/dist/components/deferred-media/deferred-media.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/deferred-media/deferred-media.js +27 -27
- package/dist/components/deferred-media/index.d.ts +2 -0
- package/dist/components/disclosure/disclosure.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/disclosure/disclosure.js +16 -19
- package/dist/components/disclosure/index.d.ts +2 -0
- package/dist/components/event-table/event-content.d.ts +7 -0
- package/dist/{packages/web-components/components → components}/event-table/event-content.js +19 -22
- package/dist/components/event-table/event-date.d.ts +5 -0
- package/dist/components/event-table/event-date.js +42 -0
- package/dist/components/event-table/event-table.d.ts +10 -0
- package/dist/components/event-table/event-table.js +71 -0
- package/dist/components/event-table/event.d.ts +5 -0
- package/dist/components/event-table/event.js +42 -0
- package/dist/components/event-table/index.d.ts +2 -0
- package/dist/components/footer/footer.d.ts +16 -0
- package/dist/{packages/web-components/components → components}/footer/footer.js +15 -18
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/grid/grid-cell.d.ts +5 -0
- package/dist/components/grid/grid-cell.js +37 -0
- package/dist/components/grid/grid.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/grid/grid.js +37 -40
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/header/header.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/header/header.js +25 -29
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header-drawer/header-drawer.d.ts +32 -0
- package/dist/{packages/web-components/components → components}/header-drawer/header-drawer.js +18 -21
- package/dist/components/header-drawer/index.d.ts +2 -0
- package/dist/components/header-drawer/menu-drawer.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/header-drawer/menu-drawer.js +16 -19
- package/dist/components/horizontal-stack/horizontal-stack.d.ts +13 -0
- package/dist/components/horizontal-stack/horizontal-stack.js +90 -0
- package/dist/components/horizontal-stack/index.d.ts +2 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/icon/icon.js +20 -23
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/image/image.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/image/image.js +17 -20
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/{packages/web-components/components → components}/index.js +38 -36
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/link.d.ts +10 -0
- package/dist/{packages/web-components/components → components}/link/link.js +27 -30
- package/dist/components/link-group/index.d.ts +2 -0
- package/dist/components/link-group/link-group.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/link-group/link-group.js +15 -18
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/logo/logo.js +32 -35
- package/dist/components/media-gallery/index.d.ts +2 -0
- package/dist/components/media-gallery/media-gallery.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/media-gallery/media-gallery.js +19 -22
- package/dist/components/media-gallery/media.d.ts +5 -0
- package/dist/components/media-gallery/media.js +29 -0
- package/dist/components/media-text/index.d.ts +2 -0
- package/dist/components/media-text/media-text.d.ts +30 -0
- package/dist/{packages/web-components/components → components}/media-text/media-text.js +20 -34
- package/dist/components/media-text/styles/media-size.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/media-text/styles/media-size.js +5 -8
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/menu/menu.js +39 -38
- package/dist/components/menu-bar/index.d.ts +2 -0
- package/dist/components/menu-bar/menu-bar.d.ts +16 -0
- package/dist/components/menu-bar/menu-bar.js +110 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/modal/modal.js +70 -41
- 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/{packages/web-components/components → components}/number-field/number-field.js +22 -25
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/overlay.d.ts +13 -0
- package/dist/components/overlay/overlay.js +74 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/page.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/page/page.js +16 -19
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +19 -0
- package/dist/components/popover/popover.js +181 -0
- package/dist/components/rich-text/index.d.ts +2 -0
- package/dist/components/rich-text/rich-text.d.ts +11 -0
- package/dist/{packages/web-components/components → components}/rich-text/rich-text.js +25 -28
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/section.d.ts +33 -0
- package/dist/{packages/web-components/components → components}/section/section.js +71 -59
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +44 -0
- package/dist/{packages/web-components/components → components}/select/select.js +48 -63
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slide.d.ts +8 -0
- package/dist/components/slider/slide.js +65 -0
- package/dist/components/slider/slider-controls.d.ts +27 -0
- package/dist/{packages/web-components/components → components}/slider/slider-controls.js +45 -47
- package/dist/components/slider/slider.d.ts +68 -0
- package/dist/{packages/web-components/components → components}/slider/slider.js +25 -28
- package/dist/components/slider/styles/controls.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/controls.js +3 -6
- package/dist/components/slider/styles/slider.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/slider.js +3 -6
- package/dist/components/socials/index.d.ts +2 -0
- package/dist/components/socials/socials.d.ts +26 -0
- package/dist/components/socials/socials.js +93 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/table/table.js +30 -33
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +24 -0
- package/dist/{packages/web-components/components → components}/text/text.js +65 -57
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/text-field/text-field.js +13 -16
- 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-slide.js +48 -0
- package/dist/components/thumbnail-slider/thumbnail-slider.d.ts +20 -0
- package/dist/{packages/web-components/components → components}/thumbnail-slider/thumbnail-slider.js +15 -15
- package/dist/components/vertical-stack/index.d.ts +2 -0
- package/dist/components/vertical-stack/vertical-stack.d.ts +13 -0
- package/dist/components/vertical-stack/vertical-stack.js +92 -0
- package/dist/components/video/index.d.ts +2 -0
- package/dist/components/video/video.d.ts +29 -0
- package/dist/{packages/web-components/components → components}/video/video.js +22 -26
- package/dist/{packages/web-components/styles → styles}/button.js +4 -7
- package/dist/{packages/web-components/styles → styles}/fonts.js +21 -14
- package/dist/{packages/web-components/styles → styles}/global.js +3 -6
- package/dist/{packages/web-components/styles → styles}/grid.js +3 -6
- package/dist/{packages/web-components/styles → styles}/group.js +11 -14
- package/dist/{packages/web-components/styles → styles}/link.js +3 -6
- package/dist/{packages/web-components/styles → styles}/placeholder-media.js +3 -6
- package/dist/types.d.ts +66 -0
- package/package.json +47 -49
- package/readme.md +22 -69
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +0 -56
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -19
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query.js +0 -34
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +0 -260
- package/dist/node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js +0 -50
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js +0 -37
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js +0 -10
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/map.js +0 -15
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js +0 -14
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js +0 -39
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js +0 -259
- package/dist/packages/web-components/components/box/box.js +0 -208
- package/dist/packages/web-components/components/event-table/event-date.js +0 -45
- package/dist/packages/web-components/components/event-table/event-table.js +0 -74
- package/dist/packages/web-components/components/event-table/event.js +0 -45
- package/dist/packages/web-components/components/grid/grid-cell.js +0 -40
- package/dist/packages/web-components/components/horizontal-stack/horizontal-stack.js +0 -93
- package/dist/packages/web-components/components/media-gallery/media.js +0 -31
- package/dist/packages/web-components/components/overlay/overlay.js +0 -77
- package/dist/packages/web-components/components/popover/popover.js +0 -163
- package/dist/packages/web-components/components/slider/slide.js +0 -68
- package/dist/packages/web-components/components/socials/socials.js +0 -96
- package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slide.js +0 -51
- package/dist/packages/web-components/components/vertical-stack/vertical-stack.js +0 -95
- /package/dist/{packages/web-components/classes → classes}/event-manager/event-manager.js +0 -0
- /package/dist/{packages/web-components/classes → classes}/index.js +0 -0
- /package/dist/{packages/web-components/components → components}/icon/icons.svg.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/mergeStyles.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/polyfills/scrollyfills.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/settings.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/themeStyleSheet.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/debounce.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/paddingTransformations.js +0 -0
- /package/dist/{packages/web-components/styles → styles}/icon-size.js +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { css as c, LitElement as u, html as y } from "lit";
|
|
2
|
+
import { customElement as g } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as r } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as f } from "lit/directives/class-map.js";
|
|
5
|
+
import { ifDefined as a } from "lit/directives/if-defined.js";
|
|
6
|
+
import "../box/box.js";
|
|
7
|
+
import "../link-group/link-group.js";
|
|
8
|
+
import { global as h } from "../../styles/global.js";
|
|
9
|
+
import { settings as b } from "../../scripts/settings.js";
|
|
10
|
+
import { mergeStyles as d } from "../../scripts/mergeStyles.js";
|
|
11
|
+
var x = Object.defineProperty, v = Object.getOwnPropertyDescriptor, o = (i, e, m, p) => {
|
|
12
|
+
for (var s = p > 1 ? void 0 : p ? v(e, m) : e, n = i.length - 1, l; n >= 0; n--)
|
|
13
|
+
(l = i[n]) && (s = (p ? l(e, m, s) : l(s)) || s);
|
|
14
|
+
return p && s && x(e, m, s), s;
|
|
15
|
+
};
|
|
16
|
+
const { prefix: $ } = b;
|
|
17
|
+
let t = class extends u {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.sticky = !1, this.spacing = "normal", this.justify = "start", this.mobileJustify = "start";
|
|
20
|
+
}
|
|
21
|
+
menuClasses() {
|
|
22
|
+
const i = {};
|
|
23
|
+
return i.sticky = this.sticky, i;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return y`
|
|
27
|
+
<nav part="menu-bar" class="menu-bar${f(this.menuClasses())}">
|
|
28
|
+
<umg-box
|
|
29
|
+
padding="${a(this.padding)}"
|
|
30
|
+
colorText="${a(this.colorText)}"
|
|
31
|
+
colorBg="${a(this.colorBg)}"
|
|
32
|
+
opacity="${a(this.opacity)}"
|
|
33
|
+
>
|
|
34
|
+
<umg-link-group
|
|
35
|
+
spacing="${this.spacing}"
|
|
36
|
+
justify="${this.justify}"
|
|
37
|
+
mobileJustify="${this.mobileJustify}"
|
|
38
|
+
noWrap
|
|
39
|
+
>
|
|
40
|
+
<slot name="link"></slot>
|
|
41
|
+
</umg-link-group>
|
|
42
|
+
</umg-box>
|
|
43
|
+
</nav>
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
t.styles = d([
|
|
48
|
+
h,
|
|
49
|
+
c`
|
|
50
|
+
:host([sticky]) {
|
|
51
|
+
position: sticky;
|
|
52
|
+
top: 0;
|
|
53
|
+
z-index: 1001;
|
|
54
|
+
}
|
|
55
|
+
:host {
|
|
56
|
+
display: block;
|
|
57
|
+
color: rgb(var(--um-color-box-text));
|
|
58
|
+
background-color: rgb(var(--um-color-box-bg));
|
|
59
|
+
margin: auto;
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
.menu-bar {
|
|
63
|
+
display: flex;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
position: sticky;
|
|
66
|
+
top:0;
|
|
67
|
+
margin: 0 auto;
|
|
68
|
+
max-width: var(--um-size-max-section-width);
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
::slotted(*) {
|
|
73
|
+
letter-spacing: 0.07rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
::slotted(umg-link:last-child) {
|
|
77
|
+
margin-right: var(--um-space-8);
|
|
78
|
+
}
|
|
79
|
+
`
|
|
80
|
+
]);
|
|
81
|
+
o([
|
|
82
|
+
r({ type: Boolean })
|
|
83
|
+
], t.prototype, "sticky", 2);
|
|
84
|
+
o([
|
|
85
|
+
r()
|
|
86
|
+
], t.prototype, "spacing", 2);
|
|
87
|
+
o([
|
|
88
|
+
r()
|
|
89
|
+
], t.prototype, "justify", 2);
|
|
90
|
+
o([
|
|
91
|
+
r()
|
|
92
|
+
], t.prototype, "mobileJustify", 2);
|
|
93
|
+
o([
|
|
94
|
+
r()
|
|
95
|
+
], t.prototype, "padding", 2);
|
|
96
|
+
o([
|
|
97
|
+
r()
|
|
98
|
+
], t.prototype, "colorBg", 2);
|
|
99
|
+
o([
|
|
100
|
+
r()
|
|
101
|
+
], t.prototype, "colorText", 2);
|
|
102
|
+
o([
|
|
103
|
+
r()
|
|
104
|
+
], t.prototype, "opacity", 2);
|
|
105
|
+
t = o([
|
|
106
|
+
g(`${$}-menu-bar`)
|
|
107
|
+
], t);
|
|
108
|
+
export {
|
|
109
|
+
t as MenuBar
|
|
110
|
+
};
|
|
@@ -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,23 +1,20 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { settings as u } from "../../scripts/settings.js";
|
|
9
|
-
import { mergeStyles as b } from "../../scripts/mergeStyles.js";
|
|
1
|
+
import { css as m, LitElement as c, html as b } from "lit";
|
|
2
|
+
import { customElement as p } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as n } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as u } from "lit/directives/class-map.js";
|
|
5
|
+
import { global as v } from "../../styles/global.js";
|
|
6
|
+
import { settings as g } from "../../scripts/settings.js";
|
|
7
|
+
import { mergeStyles as f } from "../../scripts/mergeStyles.js";
|
|
10
8
|
import "../button-icon/button-icon.js";
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return l && o && f(t, a, o), o;
|
|
9
|
+
var h = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, d = (e, r, a, l) => {
|
|
10
|
+
for (var o = l > 1 ? void 0 : l ? _(r, a) : r, i = e.length - 1, s; i >= 0; i--)
|
|
11
|
+
(s = e[i]) && (o = (l ? s(r, a, o) : s(o)) || o);
|
|
12
|
+
return l && o && h(r, a, o), o;
|
|
16
13
|
};
|
|
17
|
-
const { prefix:
|
|
18
|
-
let
|
|
14
|
+
const { prefix: y } = g;
|
|
15
|
+
let t = class extends c {
|
|
19
16
|
constructor() {
|
|
20
|
-
super(), this.visible = !1, this.addEventListener("keyup", (e) => {
|
|
17
|
+
super(), this.visible = !1, this.layout = "list", this.addEventListener("keyup", (e) => {
|
|
21
18
|
e.code.toUpperCase() === "ESCAPE" && this.toggleModal();
|
|
22
19
|
});
|
|
23
20
|
}
|
|
@@ -28,9 +25,10 @@ let s = class extends d {
|
|
|
28
25
|
window.removeEventListener("toggle-modal", this.toggleModal.bind(this)), super.disconnectedCallback();
|
|
29
26
|
}
|
|
30
27
|
modalClasses() {
|
|
31
|
-
|
|
28
|
+
const e = {
|
|
32
29
|
"modal--visible": !!this.visible
|
|
33
30
|
};
|
|
31
|
+
return e["modal-layout--" + this.layout] = !0, e;
|
|
34
32
|
}
|
|
35
33
|
toggleModal() {
|
|
36
34
|
if (this.visible = !this.visible, !this.visible) {
|
|
@@ -42,10 +40,10 @@ let s = class extends d {
|
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
render() {
|
|
45
|
-
return
|
|
43
|
+
return b`
|
|
46
44
|
<div
|
|
47
45
|
part="modal"
|
|
48
|
-
class="modal${
|
|
46
|
+
class="modal${u(this.modalClasses())}"
|
|
49
47
|
>
|
|
50
48
|
<div class="modal__close">
|
|
51
49
|
<umg-button-icon
|
|
@@ -55,10 +53,10 @@ let s = class extends d {
|
|
|
55
53
|
size="xLarge"
|
|
56
54
|
label="Close modal"
|
|
57
55
|
borderRadius="full"
|
|
58
|
-
borderWidth='
|
|
59
|
-
colorText="
|
|
60
|
-
colorBg="
|
|
61
|
-
colorBgOpacity="0
|
|
56
|
+
borderWidth='0'
|
|
57
|
+
colorText="240,240,240"
|
|
58
|
+
colorBg="0,0,0"
|
|
59
|
+
colorBgOpacity="0"
|
|
62
60
|
border
|
|
63
61
|
>
|
|
64
62
|
</umg-button-icon>
|
|
@@ -72,27 +70,47 @@ let s = class extends d {
|
|
|
72
70
|
`;
|
|
73
71
|
}
|
|
74
72
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
t.styles = f([
|
|
74
|
+
v,
|
|
75
|
+
m`
|
|
78
76
|
/* Base */
|
|
79
77
|
.modal {
|
|
78
|
+
background-color: rgba(var(--um-color-modal-bg, 255, 255, 255), var(--um-opacity-modal-bg, 0.95));
|
|
79
|
+
backdrop-filter: blur(0.205rem);
|
|
80
80
|
display: none;
|
|
81
81
|
position: fixed;
|
|
82
82
|
top: 0;
|
|
83
83
|
left: 0;
|
|
84
84
|
bottom: 0;
|
|
85
|
-
overflow-y:
|
|
85
|
+
overflow-y: auto;
|
|
86
86
|
overflow-x: hidden;
|
|
87
87
|
width: 100%;
|
|
88
|
-
z-index:
|
|
89
|
-
background-color: rgba(var(--um-color-modal-bg, 255, 255, 255), var(--um-opacity-modal-bg, 0.9));
|
|
88
|
+
z-index: 2000;
|
|
90
89
|
}
|
|
90
|
+
|
|
91
|
+
.modal::-webkit-scrollbar {
|
|
92
|
+
width: 0.25rem;
|
|
93
|
+
}
|
|
94
|
+
.modal::-webkit-scrollbar-track {
|
|
95
|
+
background: rgb(var(--color-section-text, var(--um-color-base-text, 0,0,0)), 0.05);
|
|
96
|
+
border-radius: var(--um-border-radius-30);
|
|
97
|
+
}
|
|
98
|
+
.modal::-webkit-scrollbar-thumb{
|
|
99
|
+
background: rgb(var(--color-section-text, var(--um-color-base-text, 0,0,0)), 0.1);
|
|
100
|
+
border-radius: var(--um-border-radius-30);
|
|
101
|
+
}
|
|
102
|
+
|
|
91
103
|
.modal--visible {
|
|
92
104
|
display: flex;
|
|
93
105
|
flex-direction: column;
|
|
94
106
|
align-items: center;
|
|
95
107
|
}
|
|
108
|
+
|
|
109
|
+
/* Internal layout */
|
|
110
|
+
.modal-layout--single {
|
|
111
|
+
justify-content: center;
|
|
112
|
+
}
|
|
113
|
+
|
|
96
114
|
.modal__content {
|
|
97
115
|
padding: var(--um-space-48, 3rem) 0;
|
|
98
116
|
width: calc(var(--um-breakpoint-lg, 64rem) - var(--um-space-48, 3rem));
|
|
@@ -105,16 +123,24 @@ s.styles = b([
|
|
|
105
123
|
margin-bottom: var(--um-space-grid-desktop-vertical, 1.5rem);
|
|
106
124
|
}
|
|
107
125
|
.modal__close {
|
|
126
|
+
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
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
padding: var(--um-space-16) 0;
|
|
108
132
|
position: fixed;
|
|
109
|
-
right:
|
|
110
|
-
top:
|
|
133
|
+
right: 0;
|
|
134
|
+
top: 0;
|
|
135
|
+
left: 0;
|
|
111
136
|
z-index: 201;
|
|
137
|
+
width: 100%;
|
|
112
138
|
}
|
|
113
139
|
|
|
114
140
|
@media only screen and (max-width: 64rem) {
|
|
115
141
|
.modal__close {
|
|
116
|
-
top:
|
|
117
|
-
|
|
142
|
+
top: initial;
|
|
143
|
+
bottom: 0;
|
|
118
144
|
}
|
|
119
145
|
|
|
120
146
|
.modal__content {
|
|
@@ -132,12 +158,15 @@ s.styles = b([
|
|
|
132
158
|
}
|
|
133
159
|
`
|
|
134
160
|
]);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
],
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
],
|
|
161
|
+
d([
|
|
162
|
+
n({ type: Boolean })
|
|
163
|
+
], t.prototype, "visible", 2);
|
|
164
|
+
d([
|
|
165
|
+
n()
|
|
166
|
+
], t.prototype, "layout", 2);
|
|
167
|
+
t = d([
|
|
168
|
+
p(`${y}-modal`)
|
|
169
|
+
], t);
|
|
141
170
|
export {
|
|
142
|
-
|
|
171
|
+
t as Modal
|
|
143
172
|
};
|
|
@@ -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
|
+
}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { settings as y } from "../../scripts/settings.js";
|
|
12
|
-
import { mergeStyles as g } from "../../scripts/mergeStyles.js";
|
|
1
|
+
import { css as m, LitElement as c, html as o } from "lit";
|
|
2
|
+
import { customElement as b } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as i } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as d } from "lit/directives/class-map.js";
|
|
5
|
+
import { query as h } from "lit/decorators/query.js";
|
|
6
|
+
import { ifDefined as f } from "lit/directives/if-defined.js";
|
|
7
|
+
import { debounce as v } from "../../scripts/utilities/debounce.js";
|
|
8
|
+
import { global as y } from "../../styles/global.js";
|
|
9
|
+
import { settings as g } from "../../scripts/settings.js";
|
|
10
|
+
import { mergeStyles as x } from "../../scripts/mergeStyles.js";
|
|
13
11
|
import "../button-icon/button-icon.js";
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
for (var s = l > 1 ? void 0 : l ? _(n, a) : n, u = r.length - 1, p; u >= 0; u--)
|
|
12
|
+
var _ = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, t = (r, n, a, l) => {
|
|
13
|
+
for (var s = l > 1 ? void 0 : l ? $(n, a) : n, u = r.length - 1, p; u >= 0; u--)
|
|
17
14
|
(p = r[u]) && (s = (l ? p(n, a, s) : p(s)) || s);
|
|
18
|
-
return l && s &&
|
|
15
|
+
return l && s && _(n, a, s), s;
|
|
19
16
|
};
|
|
20
|
-
const { prefix: w } =
|
|
21
|
-
let e = class extends
|
|
17
|
+
const { prefix: w } = g;
|
|
18
|
+
let e = class extends c {
|
|
22
19
|
constructor() {
|
|
23
20
|
super(...arguments), this.hideLabel = !1, this.layout = "arrows", this.placeholder = void 0, this.disabled = !1, this.required = !1, this.id = "", this.error = !1, this.name = "", this.value = "1", this.step = 1, this.min = 1, this.max = 1e3;
|
|
24
21
|
}
|
|
@@ -36,7 +33,7 @@ let e = class extends m {
|
|
|
36
33
|
setNumericalValue(r) {
|
|
37
34
|
this.disabled = !0;
|
|
38
35
|
const n = this.value;
|
|
39
|
-
this._input && (r === "plus" ? (this._input.stepUp(), this.value = this._input.value, this.disabled = !1) : r === "minus" ? (this._input.stepDown(), this.value = this._input.value, this.disabled = !1) : (this.value = this._input.value, this.disabled = !1)), n !== this.value &&
|
|
36
|
+
this._input && (r === "plus" ? (this._input.stepUp(), this.value = this._input.value, this.disabled = !1) : r === "minus" ? (this._input.stepDown(), this.value = this._input.value, this.disabled = !1) : (this.value = this._input.value, this.disabled = !1)), n !== this.value && v(() => {
|
|
40
37
|
this.changeEvent();
|
|
41
38
|
}, 500)();
|
|
42
39
|
}
|
|
@@ -121,7 +118,7 @@ let e = class extends m {
|
|
|
121
118
|
value="${this.value}"
|
|
122
119
|
?disabled="${this.disabled}"
|
|
123
120
|
?required="${this.required}"
|
|
124
|
-
placeholder="${
|
|
121
|
+
placeholder="${f(this.placeholder)}"
|
|
125
122
|
@keyup="${() => this.setNumericalValue("value")}"
|
|
126
123
|
>
|
|
127
124
|
</div>
|
|
@@ -147,9 +144,9 @@ let e = class extends m {
|
|
|
147
144
|
`;
|
|
148
145
|
}
|
|
149
146
|
};
|
|
150
|
-
e.styles =
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
e.styles = x([
|
|
148
|
+
y,
|
|
149
|
+
m`
|
|
153
150
|
:host([disabled]) {
|
|
154
151
|
opacity: 0.4;
|
|
155
152
|
pointer-events: none;
|
|
@@ -329,10 +326,10 @@ t([
|
|
|
329
326
|
i({ type: Number })
|
|
330
327
|
], e.prototype, "max", 2);
|
|
331
328
|
t([
|
|
332
|
-
|
|
329
|
+
h("input")
|
|
333
330
|
], e.prototype, "_input", 2);
|
|
334
331
|
e = t([
|
|
335
|
-
|
|
332
|
+
b(`${w}-number-field`)
|
|
336
333
|
], e);
|
|
337
334
|
export {
|
|
338
335
|
e as NumberField
|
|
@@ -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,74 @@
|
|
|
1
|
+
import { css as c, LitElement as p, html as m } from "lit";
|
|
2
|
+
import { customElement as d } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as v } from "lit/decorators/property.js";
|
|
4
|
+
import { state as y } from "lit/decorators/state.js";
|
|
5
|
+
import { classMap as b } from "lit/directives/class-map.js";
|
|
6
|
+
import { global as h } from "../../styles/global.js";
|
|
7
|
+
import { settings as u } from "../../scripts/settings.js";
|
|
8
|
+
import { mergeStyles as f } from "../../scripts/mergeStyles.js";
|
|
9
|
+
var w = Object.defineProperty, O = Object.getOwnPropertyDescriptor, l = (r, s, i, t) => {
|
|
10
|
+
for (var e = t > 1 ? void 0 : t ? O(s, i) : s, n = r.length - 1, a; n >= 0; n--)
|
|
11
|
+
(a = r[n]) && (e = (t ? a(s, i, e) : a(e)) || e);
|
|
12
|
+
return t && e && w(s, i, e), e;
|
|
13
|
+
};
|
|
14
|
+
const { prefix: _ } = u;
|
|
15
|
+
let o = class extends p {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.colorText = "", this.colorBg = "", this._visible = !1;
|
|
18
|
+
}
|
|
19
|
+
connectedCallback() {
|
|
20
|
+
super.connectedCallback(), window.addEventListener("overlay-open", this.openOverlay.bind(this)), window.addEventListener("overlay-close", this.closeOverlay.bind(this));
|
|
21
|
+
}
|
|
22
|
+
disconnectedCallback() {
|
|
23
|
+
window.removeEventListener("overlay-open", this.openOverlay.bind(this)), window.removeEventListener("overlay-close", this.closeOverlay.bind(this)), super.disconnectedCallback();
|
|
24
|
+
}
|
|
25
|
+
openOverlay() {
|
|
26
|
+
this._visible = !0;
|
|
27
|
+
}
|
|
28
|
+
closeOverlay() {
|
|
29
|
+
this._visible = !1;
|
|
30
|
+
}
|
|
31
|
+
overlayClasses() {
|
|
32
|
+
const r = {};
|
|
33
|
+
return this._visible && (r["menu-overlay--visible"] = !0), r;
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return m`
|
|
37
|
+
<div class="menu-overlay${b(this.overlayClasses())}"></div>
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
o.styles = f([
|
|
42
|
+
h,
|
|
43
|
+
c`
|
|
44
|
+
.menu-overlay {
|
|
45
|
+
display: none;
|
|
46
|
+
position: absolute;
|
|
47
|
+
inset: 0;
|
|
48
|
+
height: 100%;
|
|
49
|
+
width: 100%;
|
|
50
|
+
z-index: 500;
|
|
51
|
+
background-color: rgb(var(--um-color-modal-bg, 0,0,0), 0.7);
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.menu-overlay--visible {
|
|
56
|
+
display: block;
|
|
57
|
+
}
|
|
58
|
+
`
|
|
59
|
+
]);
|
|
60
|
+
l([
|
|
61
|
+
v()
|
|
62
|
+
], o.prototype, "colorText", 2);
|
|
63
|
+
l([
|
|
64
|
+
v()
|
|
65
|
+
], o.prototype, "colorBg", 2);
|
|
66
|
+
l([
|
|
67
|
+
y()
|
|
68
|
+
], o.prototype, "_visible", 2);
|
|
69
|
+
o = l([
|
|
70
|
+
d(`${_}-overlay`)
|
|
71
|
+
], o);
|
|
72
|
+
export {
|
|
73
|
+
o as Overlay
|
|
74
|
+
};
|
|
@@ -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
|
+
}
|