@pushengineering/umg-web-components 2.0.1 → 2.0.3
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 -48
- 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,50 +1,48 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { range as d } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js";
|
|
9
|
-
import { classMap as h } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js";
|
|
1
|
+
import { LitElement as m, html as o, nothing as f } from "lit";
|
|
2
|
+
import { property as l } from "lit/decorators/property.js";
|
|
3
|
+
import { state as b } from "lit/decorators.js";
|
|
4
|
+
import { customElement as y } from "lit/decorators/custom-element.js";
|
|
5
|
+
import { map as c } from "lit/directives/map.js";
|
|
6
|
+
import { range as d } from "lit/directives/range.js";
|
|
7
|
+
import { classMap as h } from "lit/directives/class-map.js";
|
|
10
8
|
import { global as _ } from "../../styles/global.js";
|
|
11
9
|
import { controls as v } from "./styles/controls.js";
|
|
12
10
|
import { linkState as g } from "../../styles/link.js";
|
|
13
11
|
import { settings as $ } from "../../scripts/settings.js";
|
|
14
12
|
import { mergeStyles as P } from "../../scripts/mergeStyles.js";
|
|
15
|
-
var C = Object.defineProperty, k = Object.getOwnPropertyDescriptor, i = (t,
|
|
16
|
-
for (var u = n > 1 ? void 0 : n ? k(
|
|
17
|
-
(p = t[a]) && (u = (n ? p(
|
|
18
|
-
return n && u && C(
|
|
13
|
+
var C = Object.defineProperty, k = Object.getOwnPropertyDescriptor, i = (t, e, r, n) => {
|
|
14
|
+
for (var u = n > 1 ? void 0 : n ? k(e, r) : e, a = t.length - 1, p; a >= 0; a--)
|
|
15
|
+
(p = t[a]) && (u = (n ? p(e, r, u) : p(u)) || u);
|
|
16
|
+
return n && u && C(e, r, u), u;
|
|
19
17
|
};
|
|
20
18
|
const { prefix: O } = $;
|
|
21
|
-
let
|
|
19
|
+
let s = class extends m {
|
|
22
20
|
constructor() {
|
|
23
21
|
super(...arguments), this.sliderId = "", this.controlType = "counter", this.controlPosition = "under", this.numberOfSlides = 1, this.slidesPerPage = 1, this.currentPage = 1, this.autoPlay = !1, this.loopSlides = !1, this.playing = !0, this._pauseHold = !1, this._positionInside = !1, this._positionControls = (t) => {
|
|
24
|
-
t.forEach((
|
|
25
|
-
this ===
|
|
22
|
+
t.forEach((e) => {
|
|
23
|
+
this === e.target && (!e.isIntersecting ? this._positionInside = !0 : this._positionInside = !1);
|
|
26
24
|
});
|
|
27
25
|
};
|
|
28
26
|
}
|
|
29
27
|
updated(t) {
|
|
30
28
|
if (super.updated(t), this.controlPosition === "outside") {
|
|
31
|
-
const
|
|
29
|
+
const e = {
|
|
32
30
|
root: document.querySelector("document"),
|
|
33
31
|
rootMargin: "0px -112px 0px -112px",
|
|
34
32
|
threshold: 1
|
|
35
33
|
};
|
|
36
|
-
!this._overflowObserver && this && (this._overflowObserver = new IntersectionObserver(this._positionControls,
|
|
34
|
+
!this._overflowObserver && this && (this._overflowObserver = new IntersectionObserver(this._positionControls, e), this._overflowObserver.observe(this));
|
|
37
35
|
}
|
|
38
36
|
}
|
|
39
|
-
_dispatchControlAction(t,
|
|
37
|
+
_dispatchControlAction(t, e) {
|
|
40
38
|
const r = t.currentTarget;
|
|
41
39
|
if (!(r && r.getAttribute("disabled")) && ("onscrollend" in window || (r.style.setProperty("pointer-events", "none"), setTimeout(() => {
|
|
42
40
|
r.style.setProperty("pointer-events", "auto");
|
|
43
|
-
}, 1100 / this.slidesPerPage)), (
|
|
41
|
+
}, 1100 / this.slidesPerPage)), (e === "pause-slider" || e === "play-slider") && this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 })), (e === "previous-slide" || e === "next-slide") && this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 })), e === "pause-over" && (this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 })), this.playing ? this._pauseHold = !0 : this._pauseHold = !1), e === "pause-out" && this.playing && (this.dispatchEvent(new CustomEvent(e, { bubbles: !0, composed: !0 })), this._pauseHold = !1), e === "slide-link")) {
|
|
44
42
|
const n = t.currentTarget, u = n ? n.dataset.slide : null;
|
|
45
43
|
this.dispatchEvent(
|
|
46
44
|
new CustomEvent(
|
|
47
|
-
|
|
45
|
+
e,
|
|
48
46
|
{
|
|
49
47
|
detail: {
|
|
50
48
|
slideNumber: u
|
|
@@ -69,7 +67,7 @@ let e = class extends f {
|
|
|
69
67
|
${c(d(1, this.numberOfSlides + 1, 1), (t) => t === this.currentPage ? o`
|
|
70
68
|
<button
|
|
71
69
|
class="slider-counter__link slider-counter__link--numbers link link--active"
|
|
72
|
-
@click="${(
|
|
70
|
+
@click="${(e) => this._dispatchControlAction(e, "slide-link")}"
|
|
73
71
|
data-slide=${t}
|
|
74
72
|
>
|
|
75
73
|
${t}
|
|
@@ -77,7 +75,7 @@ let e = class extends f {
|
|
|
77
75
|
` : o`
|
|
78
76
|
<button
|
|
79
77
|
class="slider-counter__link slider-counter__link--numbers link"
|
|
80
|
-
@click="${(
|
|
78
|
+
@click="${(e) => this._dispatchControlAction(e, "slide-link")}"
|
|
81
79
|
data-slide=${t}
|
|
82
80
|
>
|
|
83
81
|
${t}
|
|
@@ -90,7 +88,7 @@ let e = class extends f {
|
|
|
90
88
|
${c(d(1, this.numberOfSlides + 1, 1), (t) => t === this.currentPage ? o`
|
|
91
89
|
<button
|
|
92
90
|
class="slider-counter__link slider-counter__link--dots slider-counter__link--active link"
|
|
93
|
-
@click="${(
|
|
91
|
+
@click="${(e) => this._dispatchControlAction(e, "slide-link")}"
|
|
94
92
|
data-slide="${t}"
|
|
95
93
|
>
|
|
96
94
|
<span class="dot"></span>
|
|
@@ -98,7 +96,7 @@ let e = class extends f {
|
|
|
98
96
|
` : o`
|
|
99
97
|
<button
|
|
100
98
|
class="slider-counter__link slider-counter__link--dots link"
|
|
101
|
-
@click="${(
|
|
99
|
+
@click="${(e) => this._dispatchControlAction(e, "slide-link")}"
|
|
102
100
|
data-slide="${t}"
|
|
103
101
|
>
|
|
104
102
|
<span class="dot"></span>
|
|
@@ -159,10 +157,10 @@ let e = class extends f {
|
|
|
159
157
|
@click="${(t) => this._dispatchControlAction(t, "play-slider")}"
|
|
160
158
|
>
|
|
161
159
|
</umg-button-icon>
|
|
162
|
-
` :
|
|
160
|
+
` : f;
|
|
163
161
|
}
|
|
164
162
|
navigationButton(t) {
|
|
165
|
-
const
|
|
163
|
+
const e = t === "next" ? !this.loopSlides && this.currentPage === this.numberOfSlides : !this.loopSlides && this.currentPage === 1, r = t === "next" ? "next-slide" : "previous-slide";
|
|
166
164
|
return this.controlPosition === "under" ? o`
|
|
167
165
|
<umg-button-icon
|
|
168
166
|
class="${t}-button"
|
|
@@ -170,7 +168,7 @@ let e = class extends f {
|
|
|
170
168
|
label="Next"
|
|
171
169
|
icon="chevron-${t === "next" ? "right" : "left"}"
|
|
172
170
|
size="small"
|
|
173
|
-
?disabled=${
|
|
171
|
+
?disabled=${e}
|
|
174
172
|
@click="${(n) => this._dispatchControlAction(n, r)}"
|
|
175
173
|
>
|
|
176
174
|
</umg-button-icon>
|
|
@@ -183,7 +181,7 @@ let e = class extends f {
|
|
|
183
181
|
icon="chevron-${t === "next" ? "right" : "left"}"
|
|
184
182
|
size="large"
|
|
185
183
|
padding="12"
|
|
186
|
-
?disabled=${
|
|
184
|
+
?disabled=${e}
|
|
187
185
|
colorText="255,255,255"
|
|
188
186
|
colorBg="0,0,0"
|
|
189
187
|
colorBgOpacity="0.3"
|
|
@@ -209,50 +207,50 @@ let e = class extends f {
|
|
|
209
207
|
`;
|
|
210
208
|
}
|
|
211
209
|
};
|
|
212
|
-
|
|
210
|
+
s.styles = P([
|
|
213
211
|
_,
|
|
214
212
|
v,
|
|
215
213
|
g
|
|
216
214
|
]);
|
|
217
215
|
i([
|
|
218
216
|
l()
|
|
219
|
-
],
|
|
217
|
+
], s.prototype, "sliderId", 2);
|
|
220
218
|
i([
|
|
221
219
|
l()
|
|
222
|
-
],
|
|
220
|
+
], s.prototype, "controlType", 2);
|
|
223
221
|
i([
|
|
224
222
|
l()
|
|
225
|
-
],
|
|
223
|
+
], s.prototype, "controlPosition", 2);
|
|
226
224
|
i([
|
|
227
225
|
l({ type: Number })
|
|
228
|
-
],
|
|
226
|
+
], s.prototype, "numberOfSlides", 2);
|
|
229
227
|
i([
|
|
230
228
|
l({ type: Number })
|
|
231
|
-
],
|
|
229
|
+
], s.prototype, "slidesPerPage", 2);
|
|
232
230
|
i([
|
|
233
231
|
l({ type: Number })
|
|
234
|
-
],
|
|
232
|
+
], s.prototype, "currentPage", 2);
|
|
235
233
|
i([
|
|
236
234
|
l({ type: Boolean })
|
|
237
|
-
],
|
|
235
|
+
], s.prototype, "autoPlay", 2);
|
|
238
236
|
i([
|
|
239
237
|
l({ type: Boolean })
|
|
240
|
-
],
|
|
238
|
+
], s.prototype, "loopSlides", 2);
|
|
241
239
|
i([
|
|
242
240
|
l({ type: Boolean })
|
|
243
|
-
],
|
|
241
|
+
], s.prototype, "playing", 2);
|
|
244
242
|
i([
|
|
245
243
|
l({ state: !0, type: Boolean })
|
|
246
|
-
],
|
|
244
|
+
], s.prototype, "_pauseHold", 2);
|
|
247
245
|
i([
|
|
248
|
-
|
|
249
|
-
],
|
|
246
|
+
b()
|
|
247
|
+
], s.prototype, "_positionInside", 2);
|
|
250
248
|
i([
|
|
251
|
-
|
|
252
|
-
],
|
|
253
|
-
|
|
249
|
+
b()
|
|
250
|
+
], s.prototype, "_overflowObserver", 2);
|
|
251
|
+
s = i([
|
|
254
252
|
y(`${O}-slider-controls`)
|
|
255
|
-
],
|
|
253
|
+
], s);
|
|
256
254
|
export {
|
|
257
|
-
|
|
255
|
+
s as SliderControls
|
|
258
256
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import '../../scripts/polyfills/scrollyfills.js';
|
|
3
|
+
import { SlideEvent } from '../../classes/event-manager/types.js';
|
|
4
|
+
import './slide';
|
|
5
|
+
import './slider-controls';
|
|
6
|
+
import '../button-icon/';
|
|
7
|
+
export declare class Slider extends LitElement {
|
|
8
|
+
accessibleName: string;
|
|
9
|
+
accessibleDescription: string;
|
|
10
|
+
contentType: string;
|
|
11
|
+
controlType: string;
|
|
12
|
+
controlPosition: string;
|
|
13
|
+
desktopSlider?: boolean | undefined;
|
|
14
|
+
mobileSlider?: boolean | undefined;
|
|
15
|
+
peek?: boolean | undefined;
|
|
16
|
+
autoPlay?: boolean | undefined;
|
|
17
|
+
autoPlaySpeed: number;
|
|
18
|
+
desktopColumns: number;
|
|
19
|
+
mobileColumns: string;
|
|
20
|
+
gaplessColumns?: boolean | undefined;
|
|
21
|
+
fill?: boolean | undefined;
|
|
22
|
+
_sliderId: string | undefined;
|
|
23
|
+
_totalPages: number;
|
|
24
|
+
_sliderItems: Array<HTMLElement>;
|
|
25
|
+
_slider: HTMLElement;
|
|
26
|
+
_currentPage: number;
|
|
27
|
+
_playing: boolean;
|
|
28
|
+
_sliderItemsToShow: Array<HTMLElement>;
|
|
29
|
+
_firstSlide: HTMLElement | null;
|
|
30
|
+
_secondSlide: HTMLElement | null;
|
|
31
|
+
_sliderItemOffset: number;
|
|
32
|
+
_slidesPerPage: number;
|
|
33
|
+
_loopSlides: boolean;
|
|
34
|
+
_scrolling: boolean;
|
|
35
|
+
_autoRotate: ReturnType<typeof setTimeout> | undefined;
|
|
36
|
+
_slideVisibleObserver: IntersectionObserver | undefined;
|
|
37
|
+
_resizeObserver: ResizeObserver | undefined;
|
|
38
|
+
static eventTypes: string[];
|
|
39
|
+
constructor();
|
|
40
|
+
connectedCallback(): void;
|
|
41
|
+
disconnectedCallback(): void;
|
|
42
|
+
slidesChanged(): void;
|
|
43
|
+
updated(changedProperties: Map<string, any>): void;
|
|
44
|
+
initialise(): Promise<void>;
|
|
45
|
+
protected _sliderSetup(): void;
|
|
46
|
+
private _slideshowSetup;
|
|
47
|
+
protected _customEventsHandler(e: SlideEvent): void;
|
|
48
|
+
private _updateCurrentPage;
|
|
49
|
+
private _scrollEnd;
|
|
50
|
+
private _isSlideVisible;
|
|
51
|
+
private _resetAutoplay;
|
|
52
|
+
private _slideNavigation;
|
|
53
|
+
private _previousButtonClick;
|
|
54
|
+
private _nextButtonClick;
|
|
55
|
+
private _slideLink;
|
|
56
|
+
private _autoRotateSlides;
|
|
57
|
+
play(): void;
|
|
58
|
+
pause(): void;
|
|
59
|
+
pausePlay(): void;
|
|
60
|
+
resumePlay(): void;
|
|
61
|
+
sliderComponentClasses(): any;
|
|
62
|
+
gridClasses(): any;
|
|
63
|
+
gridStyles(): {};
|
|
64
|
+
sliderContent(): import("lit").TemplateResult<1>;
|
|
65
|
+
sliderControls(): import("lit").TemplateResult<1> | typeof nothing;
|
|
66
|
+
render(): import("lit").TemplateResult<1>;
|
|
67
|
+
static styles: import("lit").CSSResultArray;
|
|
68
|
+
}
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { query as
|
|
8
|
-
import { queryAssignedElements as
|
|
9
|
-
import { classMap as u } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js";
|
|
10
|
-
import { styleMap as y } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js";
|
|
1
|
+
import { css as c, LitElement as _, html as n, nothing as f } from "lit";
|
|
2
|
+
import { customElement as m } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as i } from "lit/decorators/property.js";
|
|
4
|
+
import { state as r } from "lit/decorators.js";
|
|
5
|
+
import { classMap as u } from "lit/directives/class-map.js";
|
|
6
|
+
import { styleMap as g } from "lit/directives/style-map.js";
|
|
7
|
+
import { query as y } from "lit/decorators/query.js";
|
|
8
|
+
import { queryAssignedElements as S } from "lit/decorators/query-assigned-elements.js";
|
|
11
9
|
import "../../scripts/polyfills/scrollyfills.js";
|
|
12
|
-
import { debounce as
|
|
13
|
-
import { global as
|
|
14
|
-
import { slider as
|
|
15
|
-
import { grid as
|
|
16
|
-
import { settings as
|
|
17
|
-
import { mergeStyles as
|
|
10
|
+
import { debounce as b } from "../../scripts/utilities/debounce.js";
|
|
11
|
+
import { global as k } from "../../styles/global.js";
|
|
12
|
+
import { slider as P } from "./styles/slider.js";
|
|
13
|
+
import { grid as v } from "../../styles/grid.js";
|
|
14
|
+
import { settings as C } from "../../scripts/settings.js";
|
|
15
|
+
import { mergeStyles as w } from "../../scripts/mergeStyles.js";
|
|
18
16
|
import "./slide.js";
|
|
19
17
|
import "./slider-controls.js";
|
|
20
18
|
import "../button-icon/button-icon.js";
|
|
21
|
-
import { css as w } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
22
19
|
var I = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, s = (e, o, a, d) => {
|
|
23
20
|
for (var l = d > 1 ? void 0 : d ? $(o, a) : o, h = e.length - 1, p; h >= 0; h--)
|
|
24
21
|
(p = e[h]) && (l = (d ? p(o, a, l) : p(l)) || l);
|
|
25
22
|
return d && l && I(o, a, l), l;
|
|
26
23
|
};
|
|
27
|
-
const { prefix: T } =
|
|
24
|
+
const { prefix: T } = C;
|
|
28
25
|
let t = class extends _ {
|
|
29
26
|
constructor() {
|
|
30
27
|
super(), this.accessibleName = "Slider accessible name", this.accessibleDescription = "", this.contentType = "slider", this.controlType = "counter", this.controlPosition = "under", this.desktopSlider = !1, this.mobileSlider = !1, this.peek = !1, this.autoPlay = !1, this.autoPlaySpeed = 5, this.desktopColumns = 4, this.mobileColumns = "2", this.gaplessColumns = !1, this.fill = !1, this._totalPages = 1, this._currentPage = 1, this._playing = !1, this._sliderItemsToShow = [], this._firstSlide = null, this._secondSlide = null, this._sliderItemOffset = 0, this._slidesPerPage = 1, this._loopSlides = !1, this._scrolling = !1, this._isSlideVisible = (e) => {
|
|
@@ -64,7 +61,7 @@ let t = class extends _ {
|
|
|
64
61
|
}
|
|
65
62
|
_sliderSetup() {
|
|
66
63
|
if (!(this._sliderItemsToShow.length < 2) && (this._firstSlide = this._sliderItemsToShow[0], this._secondSlide = this._sliderItemsToShow[1], this._playing = !1, this._sliderItemOffset = this._secondSlide.offsetLeft - this._firstSlide.offsetLeft, this._slidesPerPage = this._sliderItemOffset > 0 ? Math.round(this._slider.clientWidth / this._sliderItemOffset) : 0, this._totalPages = this._slidesPerPage > 0 ? this._sliderItemsToShow.length - this._slidesPerPage + 1 : 1, this.contentType === "slideshow" && this._slideshowSetup(), this._resizeObserver === void 0)) {
|
|
67
|
-
const e =
|
|
64
|
+
const e = b(() => this.initialise(), 100);
|
|
68
65
|
this._resizeObserver = new ResizeObserver(e), this._resizeObserver.observe(this);
|
|
69
66
|
}
|
|
70
67
|
}
|
|
@@ -241,13 +238,13 @@ let t = class extends _ {
|
|
|
241
238
|
?loopSlides=${this._loopSlides}
|
|
242
239
|
>
|
|
243
240
|
</umg-slider-controls>
|
|
244
|
-
` :
|
|
241
|
+
` : f;
|
|
245
242
|
}
|
|
246
243
|
render() {
|
|
247
244
|
return n`
|
|
248
245
|
<div
|
|
249
246
|
class="slider-component slider-mobile-gutter${u(this.sliderComponentClasses())}"
|
|
250
|
-
style="${
|
|
247
|
+
style="${g(this.gridStyles())}"
|
|
251
248
|
part="slider"
|
|
252
249
|
>
|
|
253
250
|
${this.sliderContent()}
|
|
@@ -265,16 +262,16 @@ t.eventTypes = [
|
|
|
265
262
|
"pause-over",
|
|
266
263
|
"pause-out"
|
|
267
264
|
];
|
|
268
|
-
t.styles =
|
|
269
|
-
|
|
270
|
-
|
|
265
|
+
t.styles = w([
|
|
266
|
+
k,
|
|
267
|
+
c`
|
|
271
268
|
:host {
|
|
272
269
|
display: block;
|
|
273
270
|
width: 100%;
|
|
274
271
|
}
|
|
275
272
|
`,
|
|
276
|
-
|
|
277
|
-
|
|
273
|
+
v,
|
|
274
|
+
P
|
|
278
275
|
]);
|
|
279
276
|
s([
|
|
280
277
|
i()
|
|
@@ -325,10 +322,10 @@ s([
|
|
|
325
322
|
i({ type: Number })
|
|
326
323
|
], t.prototype, "_totalPages", 2);
|
|
327
324
|
s([
|
|
328
|
-
|
|
325
|
+
S()
|
|
329
326
|
], t.prototype, "_sliderItems", 2);
|
|
330
327
|
s([
|
|
331
|
-
|
|
328
|
+
y('[id^="Slider-"]')
|
|
332
329
|
], t.prototype, "_slider", 2);
|
|
333
330
|
s([
|
|
334
331
|
r()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const controls: import("lit").CSSResult;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import "../../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
|
|
4
|
-
import { css as t } from "../../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
-
const s = t`
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
const o = e`
|
|
6
3
|
.slider-controls {
|
|
7
4
|
display: flex;
|
|
8
5
|
justify-content: center;
|
|
@@ -94,5 +91,5 @@ const s = t`
|
|
|
94
91
|
}
|
|
95
92
|
`;
|
|
96
93
|
export {
|
|
97
|
-
|
|
94
|
+
o as controls
|
|
98
95
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const slider: import("lit").CSSResult;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import "../../../../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js";
|
|
4
|
-
import { css as e } from "../../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
-
const s = e`
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
const d = e`
|
|
6
3
|
|
|
7
4
|
/* Slider component */
|
|
8
5
|
|
|
@@ -229,5 +226,5 @@ const s = e`
|
|
|
229
226
|
|
|
230
227
|
`;
|
|
231
228
|
export {
|
|
232
|
-
|
|
229
|
+
d as slider
|
|
233
230
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import '../link-group/index';
|
|
3
|
+
import '../button-icon/index';
|
|
4
|
+
interface SocialsData {
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class Socials extends LitElement {
|
|
10
|
+
target: string;
|
|
11
|
+
size: string;
|
|
12
|
+
spacing: string;
|
|
13
|
+
justify: string;
|
|
14
|
+
mobileJustify: string;
|
|
15
|
+
colorText: string | undefined;
|
|
16
|
+
colorBg: string | undefined;
|
|
17
|
+
colorBgOpacity?: number;
|
|
18
|
+
borderRadius: string | undefined;
|
|
19
|
+
border: boolean;
|
|
20
|
+
padding: string;
|
|
21
|
+
data?: SocialsData[];
|
|
22
|
+
socialLinks(): typeof nothing | (import("lit").TemplateResult<1> | typeof nothing)[];
|
|
23
|
+
render(): import("lit").TemplateResult<1>;
|
|
24
|
+
static styles: import("lit").CSSResultArray;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { LitElement as g, html as u, nothing as c } from "lit";
|
|
2
|
+
import { customElement as y } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as o } from "lit/decorators/property.js";
|
|
4
|
+
import { ifDefined as s } from "lit/directives/if-defined.js";
|
|
5
|
+
import { global as f } from "../../styles/global.js";
|
|
6
|
+
import { settings as h } from "../../scripts/settings.js";
|
|
7
|
+
import { mergeStyles as d } from "../../scripts/mergeStyles.js";
|
|
8
|
+
import "../link-group/link-group.js";
|
|
9
|
+
import "../button-icon/button-icon.js";
|
|
10
|
+
var b = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, r = (e, p, l, a) => {
|
|
11
|
+
for (var i = a > 1 ? void 0 : a ? $(p, l) : p, n = e.length - 1, m; n >= 0; n--)
|
|
12
|
+
(m = e[n]) && (i = (a ? m(p, l, i) : m(i)) || i);
|
|
13
|
+
return a && i && b(p, l, i), i;
|
|
14
|
+
};
|
|
15
|
+
const { prefix: O } = h;
|
|
16
|
+
let t = class extends g {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments), this.target = "_self", this.size = "large", this.spacing = "normal", this.justify = "start", this.mobileJustify = "center", this.border = !1, this.padding = "0";
|
|
19
|
+
}
|
|
20
|
+
socialLinks() {
|
|
21
|
+
return this.data ? this.data.map((e) => e.url ? u`
|
|
22
|
+
<umg-button-icon
|
|
23
|
+
as="link"
|
|
24
|
+
url="${s(e.url)}"
|
|
25
|
+
target="${this.target}"
|
|
26
|
+
icon="${e.icon}"
|
|
27
|
+
size="${this.size}"
|
|
28
|
+
label="${e.name}"
|
|
29
|
+
padding=${this.padding}
|
|
30
|
+
colorText="${s(this.colorText)}"
|
|
31
|
+
colorbg="${s(this.colorBg)}"
|
|
32
|
+
colorBgOpacity="${s(this.colorBgOpacity)}"
|
|
33
|
+
borderRadius="${s(this.borderRadius)}"
|
|
34
|
+
?border="${this.border}"
|
|
35
|
+
>
|
|
36
|
+
</umg-button-icon>
|
|
37
|
+
` : c) : c;
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return u`
|
|
41
|
+
<umg-link-group
|
|
42
|
+
spacing="${this.spacing}"
|
|
43
|
+
justify="${this.justify}"
|
|
44
|
+
mobileJustify="${this.mobileJustify}"
|
|
45
|
+
>
|
|
46
|
+
${this.socialLinks()}
|
|
47
|
+
</umg-link-group>
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
t.styles = d([f]);
|
|
52
|
+
r([
|
|
53
|
+
o()
|
|
54
|
+
], t.prototype, "target", 2);
|
|
55
|
+
r([
|
|
56
|
+
o()
|
|
57
|
+
], t.prototype, "size", 2);
|
|
58
|
+
r([
|
|
59
|
+
o()
|
|
60
|
+
], t.prototype, "spacing", 2);
|
|
61
|
+
r([
|
|
62
|
+
o()
|
|
63
|
+
], t.prototype, "justify", 2);
|
|
64
|
+
r([
|
|
65
|
+
o()
|
|
66
|
+
], t.prototype, "mobileJustify", 2);
|
|
67
|
+
r([
|
|
68
|
+
o()
|
|
69
|
+
], t.prototype, "colorText", 2);
|
|
70
|
+
r([
|
|
71
|
+
o()
|
|
72
|
+
], t.prototype, "colorBg", 2);
|
|
73
|
+
r([
|
|
74
|
+
o({ type: Number })
|
|
75
|
+
], t.prototype, "colorBgOpacity", 2);
|
|
76
|
+
r([
|
|
77
|
+
o()
|
|
78
|
+
], t.prototype, "borderRadius", 2);
|
|
79
|
+
r([
|
|
80
|
+
o({ type: Boolean })
|
|
81
|
+
], t.prototype, "border", 2);
|
|
82
|
+
r([
|
|
83
|
+
o()
|
|
84
|
+
], t.prototype, "padding", 2);
|
|
85
|
+
r([
|
|
86
|
+
o({ type: Object })
|
|
87
|
+
], t.prototype, "data", 2);
|
|
88
|
+
t = r([
|
|
89
|
+
y(`${O}-socials`)
|
|
90
|
+
], t);
|
|
91
|
+
export {
|
|
92
|
+
t as Socials
|
|
93
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import '../text';
|
|
3
|
+
export declare class Table extends LitElement {
|
|
4
|
+
columnLabels: never[];
|
|
5
|
+
rowData: never[];
|
|
6
|
+
title: string;
|
|
7
|
+
hideTitle: boolean;
|
|
8
|
+
descriptionClasses(): any;
|
|
9
|
+
tableHeader(): import("lit").TemplateResult<1> | typeof nothing;
|
|
10
|
+
tableRows(): import("lit").TemplateResult<1> | typeof nothing;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
static styles: import("lit").CSSResultArray;
|
|
13
|
+
}
|