@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
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { settings as h } from "../../scripts/settings.js";
|
|
10
|
-
import { mergeStyles as v } from "../../scripts/mergeStyles.js";
|
|
11
|
-
import { css as y } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
1
|
+
import { css as c, LitElement as l, html as f } from "lit";
|
|
2
|
+
import { customElement as g } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as s } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as u } from "lit/directives/class-map.js";
|
|
5
|
+
import { styleMap as m } from "lit/directives/style-map.js";
|
|
6
|
+
import { global as h } from "../../styles/global.js";
|
|
7
|
+
import { settings as v } from "../../scripts/settings.js";
|
|
8
|
+
import { mergeStyles as y } from "../../scripts/mergeStyles.js";
|
|
12
9
|
var _ = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (t, i, n, a) => {
|
|
13
10
|
for (var r = a > 1 ? void 0 : a ? b(i, n) : i, p = t.length - 1, d; p >= 0; p--)
|
|
14
11
|
(d = t[p]) && (r = (a ? d(i, n, r) : d(r)) || r);
|
|
15
12
|
return a && r && _(i, n, r), r;
|
|
16
13
|
};
|
|
17
|
-
const { prefix: x } =
|
|
14
|
+
const { prefix: x } = v;
|
|
18
15
|
let o = class extends l {
|
|
19
16
|
constructor() {
|
|
20
17
|
super(...arguments), this.width = "page-width", this.paddingTop = "", this.paddingBottom = "", this.socialsHidden = !1, this.centerContent = !1, this.colortext = "", this.colorBg = "";
|
|
@@ -50,10 +47,10 @@ let o = class extends l {
|
|
|
50
47
|
}), t;
|
|
51
48
|
}
|
|
52
49
|
render() {
|
|
53
|
-
return
|
|
50
|
+
return f`
|
|
54
51
|
<footer
|
|
55
52
|
part="footer"
|
|
56
|
-
class="${
|
|
53
|
+
class="${u(this.footerClasses())}"
|
|
57
54
|
style="${m(this.footerStyles())}"
|
|
58
55
|
>
|
|
59
56
|
<div
|
|
@@ -70,9 +67,9 @@ let o = class extends l {
|
|
|
70
67
|
`;
|
|
71
68
|
}
|
|
72
69
|
};
|
|
73
|
-
o.styles =
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
o.styles = y([
|
|
71
|
+
h,
|
|
72
|
+
c`
|
|
76
73
|
.footer {
|
|
77
74
|
color: rgba(var(--um-color-section-text, var(--um-color-base-text, 62,62,62)), 1);
|
|
78
75
|
background-color: rgba(var(--um-color-section-bg, var(--um-color-base-bg, 246,246,246)), 1);
|
|
@@ -146,7 +143,7 @@ e([
|
|
|
146
143
|
s()
|
|
147
144
|
], o.prototype, "colorBg", 2);
|
|
148
145
|
o = e([
|
|
149
|
-
|
|
146
|
+
g(`${x}-footer`)
|
|
150
147
|
], o);
|
|
151
148
|
export {
|
|
152
149
|
o as Footer
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { css as p, LitElement as f, html as c } from "lit";
|
|
2
|
+
import { customElement as n } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { global as g } from "../../styles/global.js";
|
|
4
|
+
import { settings as v } from "../../scripts/settings.js";
|
|
5
|
+
import { mergeStyles as d } from "../../scripts/mergeStyles.js";
|
|
6
|
+
var _ = Object.defineProperty, a = Object.getOwnPropertyDescriptor, h = (m, e, l, t) => {
|
|
7
|
+
for (var r = t > 1 ? void 0 : t ? a(e, l) : e, s = m.length - 1, i; s >= 0; s--)
|
|
8
|
+
(i = m[s]) && (r = (t ? i(e, l, r) : i(r)) || r);
|
|
9
|
+
return t && r && _(e, l, r), r;
|
|
10
|
+
};
|
|
11
|
+
const { prefix: u } = v;
|
|
12
|
+
let o = class extends f {
|
|
13
|
+
render() {
|
|
14
|
+
return c`
|
|
15
|
+
<div
|
|
16
|
+
class="grid-item"
|
|
17
|
+
part="grid-cell"
|
|
18
|
+
>
|
|
19
|
+
<slot></slot>
|
|
20
|
+
</div>
|
|
21
|
+
`;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
o.styles = d([
|
|
25
|
+
g,
|
|
26
|
+
p`
|
|
27
|
+
.grid-item {
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
`
|
|
31
|
+
]);
|
|
32
|
+
o = h([
|
|
33
|
+
n(`${u}-grid-cell`)
|
|
34
|
+
], o);
|
|
35
|
+
export {
|
|
36
|
+
o as GridCell
|
|
37
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './grid-cell';
|
|
3
|
+
export declare class Grid extends LitElement {
|
|
4
|
+
columns: number;
|
|
5
|
+
mobileColumns: string;
|
|
6
|
+
gapless?: boolean | undefined;
|
|
7
|
+
fill?: boolean | undefined;
|
|
8
|
+
gridClasses(): any;
|
|
9
|
+
gridStyles(): {};
|
|
10
|
+
render(): import("lit").TemplateResult<1>;
|
|
11
|
+
static styles: import("lit").CSSResultArray;
|
|
12
|
+
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { settings as k } from "../../scripts/settings.js";
|
|
11
|
-
import { mergeStyles as y } from "../../scripts/mergeStyles.js";
|
|
1
|
+
import { css as u, LitElement as g, html as n } from "lit";
|
|
2
|
+
import { customElement as c } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as l } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as a } from "lit/directives/class-map.js";
|
|
5
|
+
import { styleMap as f } from "lit/directives/style-map.js";
|
|
6
|
+
import { global as h } from "../../styles/global.js";
|
|
7
|
+
import { grid as k } from "../../styles/grid.js";
|
|
8
|
+
import { settings as y } from "../../scripts/settings.js";
|
|
9
|
+
import { mergeStyles as b } from "../../scripts/mergeStyles.js";
|
|
12
10
|
import "./grid-cell.js";
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return i && t && w(r, l, t), t;
|
|
11
|
+
var w = Object.defineProperty, v = Object.getOwnPropertyDescriptor, o = (s, r, m, i) => {
|
|
12
|
+
for (var t = i > 1 ? void 0 : i ? v(r, m) : r, p = s.length - 1, d; p >= 0; p--)
|
|
13
|
+
(d = s[p]) && (t = (i ? d(r, m, t) : d(t)) || t);
|
|
14
|
+
return i && t && w(r, m, t), t;
|
|
18
15
|
};
|
|
19
|
-
const { prefix: C } =
|
|
20
|
-
let
|
|
16
|
+
const { prefix: C } = y;
|
|
17
|
+
let e = class extends g {
|
|
21
18
|
constructor() {
|
|
22
19
|
super(...arguments), this.columns = 4, this.mobileColumns = "1", this.gapless = !1, this.fill = !1;
|
|
23
20
|
}
|
|
@@ -66,10 +63,10 @@ let o = class extends g {
|
|
|
66
63
|
}), s;
|
|
67
64
|
}
|
|
68
65
|
render() {
|
|
69
|
-
return
|
|
66
|
+
return n`
|
|
70
67
|
<div
|
|
71
68
|
class="grid${a(this.gridClasses())}"
|
|
72
|
-
style="${
|
|
69
|
+
style="${f(this.gridStyles())}"
|
|
73
70
|
part="grid"
|
|
74
71
|
>
|
|
75
72
|
<slot></slot>
|
|
@@ -77,30 +74,30 @@ let o = class extends g {
|
|
|
77
74
|
`;
|
|
78
75
|
}
|
|
79
76
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
e.styles = b([
|
|
78
|
+
h,
|
|
79
|
+
u`
|
|
83
80
|
:host {
|
|
84
81
|
display: block;
|
|
85
82
|
}
|
|
86
83
|
`,
|
|
87
|
-
|
|
84
|
+
k
|
|
88
85
|
]);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
],
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
],
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
],
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
],
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
],
|
|
86
|
+
o([
|
|
87
|
+
l({ type: Number })
|
|
88
|
+
], e.prototype, "columns", 2);
|
|
89
|
+
o([
|
|
90
|
+
l()
|
|
91
|
+
], e.prototype, "mobileColumns", 2);
|
|
92
|
+
o([
|
|
93
|
+
l({ type: Boolean })
|
|
94
|
+
], e.prototype, "gapless", 2);
|
|
95
|
+
o([
|
|
96
|
+
l({ type: Boolean })
|
|
97
|
+
], e.prototype, "fill", 2);
|
|
98
|
+
e = o([
|
|
99
|
+
c(`${C}-grid`)
|
|
100
|
+
], e);
|
|
104
101
|
export {
|
|
105
|
-
|
|
102
|
+
e as Grid
|
|
106
103
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { HeaderLayout, PageWidth, PaddingScale } from '../../types';
|
|
3
|
+
export declare class Header extends LitElement {
|
|
4
|
+
width: PageWidth;
|
|
5
|
+
paddingTop: PaddingScale;
|
|
6
|
+
paddingBottom: PaddingScale;
|
|
7
|
+
layout: HeaderLayout;
|
|
8
|
+
logoHidden: boolean;
|
|
9
|
+
menuHidden: boolean;
|
|
10
|
+
socialsHidden: boolean;
|
|
11
|
+
signupHidden: boolean;
|
|
12
|
+
colorText: string;
|
|
13
|
+
colorBg: string;
|
|
14
|
+
sticky: boolean;
|
|
15
|
+
stickyHideOnScroll: boolean;
|
|
16
|
+
transparent: boolean;
|
|
17
|
+
_headerOuterHeight: number | undefined;
|
|
18
|
+
_transparentScrolling: boolean;
|
|
19
|
+
_currentScrollPosition: number;
|
|
20
|
+
_header: HTMLElement;
|
|
21
|
+
_menu: Array<HTMLElement>;
|
|
22
|
+
_resizeObserver?: ResizeObserver;
|
|
23
|
+
_debouncedEventsHandler: (e: any) => void;
|
|
24
|
+
protected firstUpdated(): void;
|
|
25
|
+
updated(changedProperties: Map<string, any>): void;
|
|
26
|
+
disconnectedCallback(): void;
|
|
27
|
+
private _initHeader;
|
|
28
|
+
private _eventsHandler;
|
|
29
|
+
private _removeTransparency;
|
|
30
|
+
private _stickyScroll;
|
|
31
|
+
headerClasses(): any;
|
|
32
|
+
headerStyles(): {};
|
|
33
|
+
headerInnerStyles(): {};
|
|
34
|
+
render(): import("lit").TemplateResult<1>;
|
|
35
|
+
static styles: import("lit").CSSResultArray;
|
|
36
|
+
}
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var x = Object.defineProperty, S = Object.getOwnPropertyDescriptor, r = (e, a, n, s) => {
|
|
17
|
-
for (var o = s > 1 ? void 0 : s ? S(a, n) : a, d = e.length - 1, l; d >= 0; d--)
|
|
18
|
-
(l = e[d]) && (o = (s ? l(a, n, o) : l(o)) || o);
|
|
19
|
-
return s && o && x(a, n, o), o;
|
|
1
|
+
import { css as p, LitElement as m, html as u } from "lit";
|
|
2
|
+
import { customElement as g } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as i } from "lit/decorators/property.js";
|
|
4
|
+
import { query as _, queryAssignedElements as y } from "lit/decorators.js";
|
|
5
|
+
import { state as h } from "lit/decorators/state.js";
|
|
6
|
+
import { classMap as v } from "lit/directives/class-map.js";
|
|
7
|
+
import { styleMap as c } from "lit/directives/style-map.js";
|
|
8
|
+
import { debounce as f } from "../../scripts/utilities/debounce.js";
|
|
9
|
+
import { global as w } from "../../styles/global.js";
|
|
10
|
+
import { settings as b } from "../../scripts/settings.js";
|
|
11
|
+
import { mergeStyles as H } from "../../scripts/mergeStyles.js";
|
|
12
|
+
var x = Object.defineProperty, S = Object.getOwnPropertyDescriptor, r = (e, a, s, n) => {
|
|
13
|
+
for (var o = n > 1 ? void 0 : n ? S(a, s) : a, d = e.length - 1, l; d >= 0; d--)
|
|
14
|
+
(l = e[d]) && (o = (n ? l(a, s, o) : l(o)) || o);
|
|
15
|
+
return n && o && x(a, s, o), o;
|
|
20
16
|
};
|
|
21
|
-
const { prefix: k } =
|
|
17
|
+
const { prefix: k } = b;
|
|
22
18
|
let t = class extends m {
|
|
23
19
|
constructor() {
|
|
24
|
-
super(...arguments), this.width = "page-width", this.paddingTop = "", this.paddingBottom = "", this.layout = "logo-left", this.logoHidden = !1, this.menuHidden = !1, this.socialsHidden = !1, this.signupHidden = !1, this.colorText = "", this.colorBg = "", this.sticky = !1, this.stickyHideOnScroll = !1, this.transparent = !1, this._transparentScrolling = !1, this._currentScrollPosition = 0, this._debouncedEventsHandler =
|
|
20
|
+
super(...arguments), this.width = "page-width", this.paddingTop = "", this.paddingBottom = "", this.layout = "logo-left", this.logoHidden = !1, this.menuHidden = !1, this.socialsHidden = !1, this.signupHidden = !1, this.colorText = "", this.colorBg = "", this.sticky = !1, this.stickyHideOnScroll = !1, this.transparent = !1, this._transparentScrolling = !1, this._currentScrollPosition = 0, this._debouncedEventsHandler = f((e) => {
|
|
25
21
|
this._eventsHandler(e);
|
|
26
22
|
}, 100), this._eventsHandler = (e) => {
|
|
27
23
|
e.type === "scroll" && this._stickyScroll();
|
|
@@ -91,11 +87,11 @@ let t = class extends m {
|
|
|
91
87
|
}), e;
|
|
92
88
|
}
|
|
93
89
|
render() {
|
|
94
|
-
return
|
|
90
|
+
return u`
|
|
95
91
|
<header>
|
|
96
92
|
<div
|
|
97
93
|
part="header"
|
|
98
|
-
class="header${
|
|
94
|
+
class="header${v(this.headerClasses())}"
|
|
99
95
|
style="${c(this.headerStyles())}"
|
|
100
96
|
>
|
|
101
97
|
<div
|
|
@@ -129,9 +125,9 @@ let t = class extends m {
|
|
|
129
125
|
`;
|
|
130
126
|
}
|
|
131
127
|
};
|
|
132
|
-
t.styles =
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
t.styles = H([
|
|
129
|
+
w,
|
|
130
|
+
p`
|
|
135
131
|
:host {
|
|
136
132
|
display:block;
|
|
137
133
|
position: relative;
|
|
@@ -355,13 +351,13 @@ r([
|
|
|
355
351
|
h()
|
|
356
352
|
], t.prototype, "_currentScrollPosition", 2);
|
|
357
353
|
r([
|
|
358
|
-
|
|
354
|
+
_(".header")
|
|
359
355
|
], t.prototype, "_header", 2);
|
|
360
356
|
r([
|
|
361
|
-
|
|
357
|
+
y({ slot: "menu" })
|
|
362
358
|
], t.prototype, "_menu", 2);
|
|
363
359
|
t = r([
|
|
364
|
-
|
|
360
|
+
g(`${k}-header`)
|
|
365
361
|
], t);
|
|
366
362
|
export {
|
|
367
363
|
t as Header
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../disclosure/';
|
|
3
|
+
import './menu-drawer';
|
|
4
|
+
import '../icon/';
|
|
5
|
+
interface menuDisclosure {
|
|
6
|
+
closeDisclosure: () => void;
|
|
7
|
+
}
|
|
8
|
+
interface MenuData {
|
|
9
|
+
linkText: string;
|
|
10
|
+
linkUrl: string;
|
|
11
|
+
subItems: Array<MenuData>;
|
|
12
|
+
}
|
|
13
|
+
export declare class HeaderDrawer extends LitElement {
|
|
14
|
+
src: string;
|
|
15
|
+
data?: MenuData[];
|
|
16
|
+
direction: string;
|
|
17
|
+
colorText: undefined | string;
|
|
18
|
+
colorBg: undefined | string;
|
|
19
|
+
_drawerOpen: boolean;
|
|
20
|
+
_drawer: menuDisclosure;
|
|
21
|
+
firstUpdated(): Promise<void>;
|
|
22
|
+
fetchData(): Promise<void>;
|
|
23
|
+
closeDrawer(): void;
|
|
24
|
+
private _openDrawer;
|
|
25
|
+
private _closeDrawer;
|
|
26
|
+
private _closeActiveDrawers;
|
|
27
|
+
menuDrawerStyles(): {};
|
|
28
|
+
menuList(): import("lit").TemplateResult<1> | undefined;
|
|
29
|
+
render(): import("lit").TemplateResult<1>;
|
|
30
|
+
static styles: import("lit").CSSResultArray;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
package/dist/{packages/web-components/components → components}/header-drawer/header-drawer.js
RENAMED
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { settings as b } from "../../scripts/settings.js";
|
|
11
|
-
import { mergeStyles as g } from "../../scripts/mergeStyles.js";
|
|
1
|
+
import { css as m, LitElement as d, html as t } 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 { state as h } from "lit/decorators/state.js";
|
|
5
|
+
import { query as f } from "lit/decorators.js";
|
|
6
|
+
import { styleMap as w } from "lit/directives/style-map.js";
|
|
7
|
+
import { global as b } from "../../styles/global.js";
|
|
8
|
+
import { settings as g } from "../../scripts/settings.js";
|
|
9
|
+
import { mergeStyles as y } from "../../scripts/mergeStyles.js";
|
|
12
10
|
import "../disclosure/disclosure.js";
|
|
13
11
|
import "./menu-drawer.js";
|
|
14
12
|
import "../icon/icon.js";
|
|
15
|
-
import { css as y } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
16
13
|
var v = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, a = (e, r, o, l) => {
|
|
17
14
|
for (var i = l > 1 ? void 0 : l ? _(r, o) : r, c = e.length - 1, u; c >= 0; c--)
|
|
18
15
|
(u = e[c]) && (i = (l ? u(r, o, i) : u(i)) || i);
|
|
19
16
|
return l && i && v(r, o, i), i;
|
|
20
17
|
};
|
|
21
|
-
const { prefix: x } =
|
|
22
|
-
let s = class extends
|
|
18
|
+
const { prefix: x } = g;
|
|
19
|
+
let s = class extends d {
|
|
23
20
|
constructor() {
|
|
24
21
|
super(...arguments), this.src = "", this.direction = "down", this._drawerOpen = !1;
|
|
25
22
|
}
|
|
@@ -134,7 +131,7 @@ let s = class extends m {
|
|
|
134
131
|
<umg-disclosure
|
|
135
132
|
part="disclosure"
|
|
136
133
|
class="header-drawer"
|
|
137
|
-
style="${
|
|
134
|
+
style="${w(this.menuDrawerStyles())}"
|
|
138
135
|
direction=${this.direction}
|
|
139
136
|
overlay
|
|
140
137
|
exportparts="disclosure,disclosure-summary,disclosure-drawer,disclosure-content"
|
|
@@ -183,9 +180,9 @@ let s = class extends m {
|
|
|
183
180
|
`;
|
|
184
181
|
}
|
|
185
182
|
};
|
|
186
|
-
s.styles =
|
|
187
|
-
|
|
188
|
-
|
|
183
|
+
s.styles = y([
|
|
184
|
+
b,
|
|
185
|
+
m`
|
|
189
186
|
/* Burger button */
|
|
190
187
|
.icon--close {
|
|
191
188
|
display: none;
|
|
@@ -279,13 +276,13 @@ a([
|
|
|
279
276
|
n()
|
|
280
277
|
], s.prototype, "colorBg", 2);
|
|
281
278
|
a([
|
|
282
|
-
|
|
279
|
+
h()
|
|
283
280
|
], s.prototype, "_drawerOpen", 2);
|
|
284
281
|
a([
|
|
285
|
-
|
|
282
|
+
f("umg-disclosure")
|
|
286
283
|
], s.prototype, "_drawer", 2);
|
|
287
284
|
s = a([
|
|
288
|
-
|
|
285
|
+
p(`${x}-header-drawer`)
|
|
289
286
|
], s);
|
|
290
287
|
export {
|
|
291
288
|
s as HeaderDrawer
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class MenuDrawer extends LitElement {
|
|
3
|
+
clickOpenAction: string;
|
|
4
|
+
clickBackAction: string;
|
|
5
|
+
_subNavOpen: boolean;
|
|
6
|
+
_menuDrawer: HTMLDetailsElement;
|
|
7
|
+
closeDrawer: () => void;
|
|
8
|
+
constructor();
|
|
9
|
+
private _handleSummaryClick;
|
|
10
|
+
handleBackClick(): void;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { css as h } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
11
|
-
var g = Object.defineProperty, f = Object.getOwnPropertyDescriptor, a = (u, t, n, s) => {
|
|
12
|
-
for (var e = s > 1 ? void 0 : s ? f(t, n) : t, o = u.length - 1, i; o >= 0; o--)
|
|
1
|
+
import { css as l, LitElement as c, html as p } from "lit";
|
|
2
|
+
import { customElement as b } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as m } from "lit/decorators/property.js";
|
|
4
|
+
import { query as d } from "lit/decorators/query.js";
|
|
5
|
+
import { global as v } from "../../styles/global.js";
|
|
6
|
+
import { settings as _ } from "../../scripts/settings.js";
|
|
7
|
+
import { mergeStyles as h } from "../../scripts/mergeStyles.js";
|
|
8
|
+
var g = Object.defineProperty, w = Object.getOwnPropertyDescriptor, a = (u, t, n, s) => {
|
|
9
|
+
for (var e = s > 1 ? void 0 : s ? w(t, n) : t, o = u.length - 1, i; o >= 0; o--)
|
|
13
10
|
(i = u[o]) && (e = (s ? i(t, n, e) : i(e)) || e);
|
|
14
11
|
return s && e && g(t, n, e), e;
|
|
15
12
|
};
|
|
16
|
-
const { prefix:
|
|
13
|
+
const { prefix: y } = _;
|
|
17
14
|
let r = class extends c {
|
|
18
15
|
constructor() {
|
|
19
16
|
super(), this.clickOpenAction = "", this.clickBackAction = "", this._subNavOpen = !1, this.closeDrawer = () => {
|
|
@@ -31,7 +28,7 @@ let r = class extends c {
|
|
|
31
28
|
this._menuDrawer.removeAttribute("open"), this._menuDrawer.classList.remove("menu-opening"), this._subNavOpen = !this._subNavOpen;
|
|
32
29
|
}
|
|
33
30
|
render() {
|
|
34
|
-
return
|
|
31
|
+
return p`
|
|
35
32
|
<details
|
|
36
33
|
part="menu-drawer"
|
|
37
34
|
class="menu-drawer"
|
|
@@ -85,9 +82,9 @@ let r = class extends c {
|
|
|
85
82
|
`;
|
|
86
83
|
}
|
|
87
84
|
};
|
|
88
|
-
r.styles =
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
r.styles = h([
|
|
86
|
+
v,
|
|
87
|
+
l`
|
|
91
88
|
:host {
|
|
92
89
|
width: 100%;
|
|
93
90
|
}
|
|
@@ -166,10 +163,10 @@ a([
|
|
|
166
163
|
m({ state: !0, type: Boolean })
|
|
167
164
|
], r.prototype, "_subNavOpen", 2);
|
|
168
165
|
a([
|
|
169
|
-
|
|
166
|
+
d(".menu-drawer")
|
|
170
167
|
], r.prototype, "_menuDrawer", 2);
|
|
171
168
|
r = a([
|
|
172
|
-
|
|
169
|
+
b(`${y}-menu-drawer`)
|
|
173
170
|
], r);
|
|
174
171
|
export {
|
|
175
172
|
r as MenuDrawer
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { GroupAlign } from '../../types';
|
|
3
|
+
export declare class HorizontalStack extends LitElement {
|
|
4
|
+
gap: number | undefined;
|
|
5
|
+
align: GroupAlign;
|
|
6
|
+
mobileAlign: GroupAlign | undefined;
|
|
7
|
+
justify: GroupAlign;
|
|
8
|
+
mobileJustify: GroupAlign | undefined;
|
|
9
|
+
stackStyles(): {};
|
|
10
|
+
stackClasses(): any;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|