@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,28 +1,25 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
for (var n = r > 1 ? void 0 : r ? P(a, d) : a, s = e.length - 1, c; s >= 0; s--)
|
|
16
|
-
(c = e[s]) && (n = (r ? c(a, d, n) : c(n)) || n);
|
|
17
|
-
return r && n && x(a, d, n), n;
|
|
1
|
+
import { css as g, LitElement as u, html as l } from "lit";
|
|
2
|
+
import { customElement as f } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as o } from "lit/decorators/property.js";
|
|
4
|
+
import { state as m } from "lit/decorators/state.js";
|
|
5
|
+
import { classMap as p } from "lit/directives/class-map.js";
|
|
6
|
+
import { styleMap as h } from "lit/directives/style-map.js";
|
|
7
|
+
import { paddingToCssShorthandArray as b, mergePaddingArrays as _ } from "../../scripts/utilities/paddingTransformations.js";
|
|
8
|
+
import { global as w } from "../../styles/global.js";
|
|
9
|
+
import { settings as v } from "../../scripts/settings.js";
|
|
10
|
+
import { mergeStyles as y } from "../../scripts/mergeStyles.js";
|
|
11
|
+
var x = Object.defineProperty, P = Object.getOwnPropertyDescriptor, i = (e, a, r, d) => {
|
|
12
|
+
for (var n = d > 1 ? void 0 : d ? P(a, r) : a, s = e.length - 1, c; s >= 0; s--)
|
|
13
|
+
(c = e[s]) && (n = (d ? c(a, r, n) : c(n)) || n);
|
|
14
|
+
return d && n && x(a, r, n), n;
|
|
18
15
|
};
|
|
19
|
-
const { prefix: S } =
|
|
20
|
-
let t = class extends
|
|
16
|
+
const { prefix: S } = v;
|
|
17
|
+
let t = class extends u {
|
|
21
18
|
constructor() {
|
|
22
|
-
super(...arguments), this.outerWidth = "full-width", this.innerWidth = "page-width", this.compactHeader = !1, this.
|
|
19
|
+
super(...arguments), this.outerWidth = "full-width", this.innerWidth = "page-width", this.compactHeader = !1, this.mobileBleed = !1, this._withoutHeader = !0, this._withoutFooter = !0, this.isNumeric = (e) => (typeof e == "number" || typeof e == "string" && e.trim() !== "") && !isNaN(e);
|
|
23
20
|
}
|
|
24
21
|
handleSlotchange(e) {
|
|
25
|
-
e.target && e.target.getAttribute("name") === "footer-link" && (this._withoutFooter = !1), (e.target && e.target.getAttribute("name") === "title" || e.target.getAttribute("name") === "header-link" || e.target.getAttribute("name") === "subtitle" || e.target.getAttribute("name") === "description") && (this._withoutHeader = !1);
|
|
22
|
+
e.target && e.target.getAttribute("name") === "footer-link" && (this._withoutFooter = !1), (e.target && e.target.getAttribute("name") === "toolbar" || e.target.getAttribute("name") === "title" || e.target.getAttribute("name") === "header-link" || e.target.getAttribute("name") === "subtitle" || e.target.getAttribute("name") === "description") && (this._withoutHeader = !1);
|
|
26
23
|
}
|
|
27
24
|
firstUpdated() {
|
|
28
25
|
this.mobilePadding && this.convertMobilePadding(this.mobilePadding);
|
|
@@ -32,8 +29,8 @@ let t = class extends g {
|
|
|
32
29
|
}
|
|
33
30
|
convertMobilePadding(e) {
|
|
34
31
|
if (e) {
|
|
35
|
-
const
|
|
36
|
-
this._mobilePadding =
|
|
32
|
+
const r = [b(e)];
|
|
33
|
+
this._mobilePadding = _(r);
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
sectionClasses() {
|
|
@@ -47,11 +44,14 @@ let t = class extends g {
|
|
|
47
44
|
}
|
|
48
45
|
sectionInnerClasses() {
|
|
49
46
|
const e = {};
|
|
50
|
-
return this.innerWidth && (e["section-inner-width--" + this.innerWidth] = !0), this.
|
|
47
|
+
return this.innerWidth && !this.isNumeric(this.innerWidth) && (e["section-inner-width--" + this.innerWidth] = !0), this.mobileBleed && (e["section-inner--bleed-content"] = !0), e;
|
|
51
48
|
}
|
|
52
49
|
sectionStyles() {
|
|
53
50
|
let e = {};
|
|
54
|
-
return this.
|
|
51
|
+
return this.innerWidth && this.isNumeric(this.innerWidth) && (e = {
|
|
52
|
+
...e,
|
|
53
|
+
"--um-size-page-width": Number(this.innerWidth) / 16 + "rem"
|
|
54
|
+
}), this.maxInnerWidth && (e = {
|
|
55
55
|
...e,
|
|
56
56
|
"--um-size-max-section-width": this.maxInnerWidth / 16 + "rem"
|
|
57
57
|
}), this.colorText && (e = {
|
|
@@ -99,9 +99,14 @@ let t = class extends g {
|
|
|
99
99
|
<div
|
|
100
100
|
part="section-header"
|
|
101
101
|
class="section__header"
|
|
102
|
-
style="${
|
|
102
|
+
style="${h(this.headerStyles())}"
|
|
103
103
|
>
|
|
104
104
|
<div class="header">
|
|
105
|
+
<slot
|
|
106
|
+
name="toolbar"
|
|
107
|
+
@slotchange=${this.handleSlotchange}
|
|
108
|
+
>
|
|
109
|
+
</slot>
|
|
105
110
|
<div part="header__main" class="header-main">
|
|
106
111
|
<div class="title" part="header-title">
|
|
107
112
|
<slot
|
|
@@ -137,7 +142,7 @@ let t = class extends g {
|
|
|
137
142
|
<div
|
|
138
143
|
part="section_footer"
|
|
139
144
|
class="section__footer"
|
|
140
|
-
style="${
|
|
145
|
+
style="${h(this.footerStyles())}"
|
|
141
146
|
>
|
|
142
147
|
<div class="footer">
|
|
143
148
|
<div class="footer__link" part="footer-link">
|
|
@@ -155,7 +160,7 @@ let t = class extends g {
|
|
|
155
160
|
return l`
|
|
156
161
|
<section
|
|
157
162
|
class="${p(this.sectionClasses())}"
|
|
158
|
-
style="${
|
|
163
|
+
style="${h(this.sectionStyles())}"
|
|
159
164
|
part="section"
|
|
160
165
|
>
|
|
161
166
|
<div
|
|
@@ -175,9 +180,9 @@ let t = class extends g {
|
|
|
175
180
|
`;
|
|
176
181
|
}
|
|
177
182
|
};
|
|
178
|
-
t.styles =
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
t.styles = y([
|
|
184
|
+
w,
|
|
185
|
+
g`
|
|
181
186
|
:host {
|
|
182
187
|
display: block;
|
|
183
188
|
width: 100%;
|
|
@@ -205,12 +210,16 @@ t.styles = v([
|
|
|
205
210
|
max-width: 100%;
|
|
206
211
|
}
|
|
207
212
|
|
|
208
|
-
/*
|
|
209
|
-
.
|
|
210
|
-
.
|
|
211
|
-
|
|
213
|
+
/* Content areas width */
|
|
214
|
+
.section__header,
|
|
215
|
+
.section__content,
|
|
216
|
+
.section__footer {
|
|
217
|
+
margin: 0 auto;
|
|
218
|
+
max-width: var(--um-size-page-width, 75rem);
|
|
219
|
+
width: 100%;
|
|
212
220
|
}
|
|
213
221
|
|
|
222
|
+
/* Content areas page width */
|
|
214
223
|
.section-inner-width--page-width .section__header,
|
|
215
224
|
.section-inner-width--page-width .section__content,
|
|
216
225
|
.section-inner-width--page-width .section__footer {
|
|
@@ -218,6 +227,14 @@ t.styles = v([
|
|
|
218
227
|
max-width: var(--um-size-page-width, 75rem);
|
|
219
228
|
width: 100%;
|
|
220
229
|
}
|
|
230
|
+
|
|
231
|
+
/* Content only 100% */
|
|
232
|
+
.section-inner-width--full-width .section__content,
|
|
233
|
+
.section-inner-width--full-bleed .section__content {
|
|
234
|
+
max-width: 100%;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* Content all areas 100% width */
|
|
221
238
|
.section-inner-width--full-bleed .section__header,
|
|
222
239
|
.section-inner-width--full-bleed .section__content,
|
|
223
240
|
.section-inner-width--full-bleed .section__footer,
|
|
@@ -225,7 +242,7 @@ t.styles = v([
|
|
|
225
242
|
.section-inner-width--full-width .section__content,
|
|
226
243
|
.section-inner-width--full-width .section__footer {
|
|
227
244
|
margin: 0 auto;
|
|
228
|
-
max-width: var(--um-size-max-section-width);
|
|
245
|
+
max-width: var(--um-size-max-section-width, var(--um-size-max-page-width));
|
|
229
246
|
width: 100%;
|
|
230
247
|
}
|
|
231
248
|
|
|
@@ -304,36 +321,21 @@ t.styles = v([
|
|
|
304
321
|
padding-bottom: var(--um-space-section-padding-bottom, 1.5rem);
|
|
305
322
|
}
|
|
306
323
|
@media only screen and (max-width: 48rem) {
|
|
307
|
-
.section--without-header :not(.section-inner-width--full-bleed) .section__content {
|
|
324
|
+
.section--without-header :not(.section-inner-width--full-bleed, .section-inner--bleed-content) .section__content {
|
|
308
325
|
padding-top: var(--um-space-section-mobile-padding-top, 1.5rem);
|
|
309
326
|
}
|
|
310
|
-
.section--without-footer :not(.section-inner-width--full-bleed) .section__content {
|
|
327
|
+
.section--without-footer :not(.section-inner-width--full-bleed, .section-inner--bleed-content) .section__content {
|
|
311
328
|
padding-bottom: var(--um-space-section-mobile-padding-bottom, 1.5rem);
|
|
312
329
|
}
|
|
313
330
|
}
|
|
314
331
|
|
|
315
|
-
|
|
316
|
-
/* Desktop full bleed removes all padding except header and footer */
|
|
317
|
-
.section-inner-width--full-bleed {
|
|
318
|
-
padding: 0;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
332
|
/* Header and footer always padded */
|
|
322
333
|
.section-inner-width--full-bleed .section__header,
|
|
323
334
|
.section-inner-width--full-bleed .section__footer {
|
|
324
335
|
padding-left: var(--um-space-section-padding-left, 1.5rem);
|
|
325
336
|
padding-right: var(--um-space-section-padding-right, 1.5rem);
|
|
326
337
|
}
|
|
327
|
-
|
|
328
|
-
@media only screen and (min-width: 48.06rem) {
|
|
329
|
-
/* Content always full bleed on mobile*/
|
|
330
|
-
.section.section-width--page-width .section-inner-width--full-bleed .section__content {
|
|
331
|
-
padding-left: var(--um-space-section-padding-left, 1.5rem);
|
|
332
|
-
padding-right: var(--um-space-section-padding-right, 1.5rem);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
338
|
@media only screen and (max-width: 48rem) {
|
|
336
|
-
/* Header and footer always padded */
|
|
337
339
|
.section-inner-width--full-bleed .section__header,
|
|
338
340
|
.section-inner-width--full-bleed .section__footer {
|
|
339
341
|
padding-left: var(--um-space-section-mobile-padding-left, 1rem);
|
|
@@ -341,7 +343,17 @@ t.styles = v([
|
|
|
341
343
|
}
|
|
342
344
|
}
|
|
343
345
|
|
|
344
|
-
/*
|
|
346
|
+
/* All outer page values - mobile content expands full bleed on sides */
|
|
347
|
+
@media only screen and (max-width: 48.06rem) {
|
|
348
|
+
.section-inner--bleed-content .section__content {
|
|
349
|
+
padding-top: 0;
|
|
350
|
+
padding-right: 0;
|
|
351
|
+
padding-bottom: 0;
|
|
352
|
+
padding-left: 0;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* Full bleed inner section - remove all content padding */
|
|
345
357
|
.section-inner-width--full-bleed .section__content {
|
|
346
358
|
padding: 0;
|
|
347
359
|
}
|
|
@@ -361,7 +373,7 @@ i([
|
|
|
361
373
|
], t.prototype, "compactHeader", 2);
|
|
362
374
|
i([
|
|
363
375
|
o({ type: Boolean })
|
|
364
|
-
], t.prototype, "
|
|
376
|
+
], t.prototype, "mobileBleed", 2);
|
|
365
377
|
i([
|
|
366
378
|
o()
|
|
367
379
|
], t.prototype, "mobilePadding", 2);
|
|
@@ -384,16 +396,16 @@ i([
|
|
|
384
396
|
o()
|
|
385
397
|
], t.prototype, "colorText", 2);
|
|
386
398
|
i([
|
|
387
|
-
|
|
399
|
+
m()
|
|
388
400
|
], t.prototype, "_withoutHeader", 2);
|
|
389
401
|
i([
|
|
390
|
-
|
|
402
|
+
m()
|
|
391
403
|
], t.prototype, "_withoutFooter", 2);
|
|
392
404
|
i([
|
|
393
|
-
|
|
405
|
+
m()
|
|
394
406
|
], t.prototype, "_mobilePadding", 2);
|
|
395
407
|
t = i([
|
|
396
|
-
|
|
408
|
+
f(`${S}-section`)
|
|
397
409
|
], t);
|
|
398
410
|
export {
|
|
399
411
|
t as Section
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { EventManager } from '../../classes/event-manager/event-manager';
|
|
3
|
+
import '../disclosure';
|
|
4
|
+
import '../text';
|
|
5
|
+
import '../icon';
|
|
6
|
+
interface Option {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
count: number;
|
|
12
|
+
pluralType: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class Select extends LitElement {
|
|
16
|
+
id: string;
|
|
17
|
+
options: Option[];
|
|
18
|
+
label: string;
|
|
19
|
+
name: string;
|
|
20
|
+
selectedItem: number;
|
|
21
|
+
defaultLabel: boolean;
|
|
22
|
+
colorText: string | undefined;
|
|
23
|
+
colorBg: string | undefined;
|
|
24
|
+
border: boolean;
|
|
25
|
+
borderRadius: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
_currentSelectedLabel: string;
|
|
28
|
+
windowEventManager: EventManager;
|
|
29
|
+
eventManager: EventManager;
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
disconnectedCallback(): void;
|
|
32
|
+
updated(changedProperties: Map<string, any>): void;
|
|
33
|
+
private _eventsHandler;
|
|
34
|
+
private _eventsDispatcher;
|
|
35
|
+
/** Render UX */
|
|
36
|
+
private _onOptionChange;
|
|
37
|
+
optionsListClasses(): any;
|
|
38
|
+
optionsListStyles(): {};
|
|
39
|
+
optionsList(): import("lit").TemplateResult<1> | undefined;
|
|
40
|
+
currentOptionLabel(): import("lit").TemplateResult<1> | undefined;
|
|
41
|
+
render(): import("lit").TemplateResult<1>;
|
|
42
|
+
static styles: import("lit").CSSResultArray;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { classMap as h } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js";
|
|
8
|
-
import { styleMap as v } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js";
|
|
1
|
+
import { css as m, LitElement as p, html as c } 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 { state as h } from "lit/decorators.js";
|
|
5
|
+
import { classMap as v } from "lit/directives/class-map.js";
|
|
6
|
+
import { styleMap as g } from "lit/directives/style-map.js";
|
|
9
7
|
import { EventManager as u } from "../../classes/event-manager/event-manager.js";
|
|
10
|
-
import { global as
|
|
11
|
-
import { settings as
|
|
12
|
-
import { mergeStyles as
|
|
8
|
+
import { global as y } from "../../styles/global.js";
|
|
9
|
+
import { settings as f } from "../../scripts/settings.js";
|
|
10
|
+
import { mergeStyles as x } from "../../scripts/mergeStyles.js";
|
|
13
11
|
import "../disclosure/disclosure.js";
|
|
14
12
|
import "../text/text.js";
|
|
15
13
|
import "../icon/icon.js";
|
|
16
|
-
import { css as x } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js";
|
|
17
14
|
var w = Object.defineProperty, L = Object.getOwnPropertyDescriptor, s = (e, t, a, o) => {
|
|
18
15
|
for (var l = o > 1 ? void 0 : o ? L(t, a) : t, n = e.length - 1, d; n >= 0; n--)
|
|
19
16
|
(d = e[n]) && (l = (o ? d(t, a, l) : d(l)) || l);
|
|
20
17
|
return o && l && w(t, a, l), l;
|
|
21
18
|
};
|
|
22
|
-
const { prefix: _ } =
|
|
23
|
-
let r = class extends
|
|
19
|
+
const { prefix: _ } = f;
|
|
20
|
+
let r = class extends p {
|
|
24
21
|
constructor() {
|
|
25
22
|
super(...arguments), this.id = "", this.options = [], this.label = "Select box", this.name = "", this.selectedItem = 0, this.defaultLabel = !1, this.border = !1, this.borderRadius = "0", this.disabled = !1, this._currentSelectedLabel = "", this.windowEventManager = new u(window), this.eventManager = new u(this), this._eventsHandler = async (e) => {
|
|
26
23
|
e.type === "click" && !e.composedPath().includes(this) && this._eventsDispatcher(e, "select-close");
|
|
@@ -82,58 +79,45 @@ let r = class extends m {
|
|
|
82
79
|
}), e;
|
|
83
80
|
}
|
|
84
81
|
optionsList() {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
${this.
|
|
90
|
-
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</li>
|
|
112
|
-
`)}
|
|
113
|
-
</ul>
|
|
114
|
-
</fieldset>
|
|
115
|
-
`;
|
|
82
|
+
if (Array.isArray(this.options) && this.options.length)
|
|
83
|
+
return c`
|
|
84
|
+
<fieldset>
|
|
85
|
+
<legend class="visually-hidden">${this.label}</legend>
|
|
86
|
+
<ul class="select-list" @change="${this._onOptionChange}">
|
|
87
|
+
${this.options.map((e, t) => c`
|
|
88
|
+
<li role="option" tabindex="-1">
|
|
89
|
+
<input
|
|
90
|
+
class="visually-hidden"
|
|
91
|
+
type="radio"
|
|
92
|
+
id="${e.id}"
|
|
93
|
+
name="${e.name}"
|
|
94
|
+
value="${e.value}"
|
|
95
|
+
data-label="${e.label}"
|
|
96
|
+
?checked="${this.selectedItem === t}"
|
|
97
|
+
?disabled="${e.disabled}"
|
|
98
|
+
/>
|
|
99
|
+
<label for="${e.id}">
|
|
100
|
+
<umg-icon icon="check" size="xSmall"></umg-icon>
|
|
101
|
+
${e.label}
|
|
102
|
+
</label>
|
|
103
|
+
</li>
|
|
104
|
+
`)}
|
|
105
|
+
</ul>
|
|
106
|
+
</fieldset>
|
|
107
|
+
`;
|
|
116
108
|
}
|
|
117
109
|
currentOptionLabel() {
|
|
118
110
|
if (this._currentSelectedLabel)
|
|
119
111
|
return c`
|
|
120
|
-
|
|
121
|
-
slot="summary"
|
|
122
|
-
class="current-selection"
|
|
123
|
-
as="span"
|
|
124
|
-
variant="bodySm"
|
|
125
|
-
withoutMargin
|
|
126
|
-
>
|
|
127
|
-
${this._currentSelectedLabel}
|
|
128
|
-
</umg-text>
|
|
112
|
+
${this._currentSelectedLabel}
|
|
129
113
|
`;
|
|
130
114
|
}
|
|
131
115
|
render() {
|
|
132
116
|
return c`
|
|
133
117
|
<div
|
|
134
118
|
part="select"
|
|
135
|
-
class="select ${
|
|
136
|
-
style="${
|
|
119
|
+
class="select ${v(this.optionsListClasses())}"
|
|
120
|
+
style="${g(this.optionsListStyles())}"
|
|
137
121
|
>
|
|
138
122
|
<umg-disclosure overlay justifySummary="space-between">
|
|
139
123
|
<div slot="summary">
|
|
@@ -163,9 +147,9 @@ let r = class extends m {
|
|
|
163
147
|
`;
|
|
164
148
|
}
|
|
165
149
|
};
|
|
166
|
-
r.styles =
|
|
167
|
-
|
|
168
|
-
|
|
150
|
+
r.styles = x([
|
|
151
|
+
y,
|
|
152
|
+
m`
|
|
169
153
|
:host {
|
|
170
154
|
display: block;
|
|
171
155
|
width: fit-content
|
|
@@ -286,6 +270,7 @@ r.styles = f([
|
|
|
286
270
|
.select-list label {
|
|
287
271
|
display: flex;
|
|
288
272
|
align-items: center;
|
|
273
|
+
font-size: var(--um-font-size-body-sm, 0.875rem);
|
|
289
274
|
gap: var(--um-space-12, 0.75rem);
|
|
290
275
|
padding: 0.375rem var(--space-8, 0.5rem);
|
|
291
276
|
width: 100%;
|
|
@@ -295,10 +280,10 @@ r.styles = f([
|
|
|
295
280
|
font-style: italic;
|
|
296
281
|
}
|
|
297
282
|
.select-list li:first-child label {
|
|
298
|
-
margin-top: var(--um-space-
|
|
283
|
+
margin-top: var(--um-space-8);
|
|
299
284
|
}
|
|
300
285
|
.select-list li:last-child label {
|
|
301
|
-
margin-bottom: var(--um-space-
|
|
286
|
+
margin-bottom: var(--um-space-8);
|
|
302
287
|
}
|
|
303
288
|
.select-list label:hover {
|
|
304
289
|
background-color: rgb(var(--um-color-section-text, var(--um-color-base-text, 0,0,0)), 0.05);
|
|
@@ -349,10 +334,10 @@ s([
|
|
|
349
334
|
i({ type: Boolean, reflect: !0 })
|
|
350
335
|
], r.prototype, "disabled", 2);
|
|
351
336
|
s([
|
|
352
|
-
|
|
337
|
+
h()
|
|
353
338
|
], r.prototype, "_currentSelectedLabel", 2);
|
|
354
339
|
r = s([
|
|
355
|
-
|
|
340
|
+
b(`${_}-select`)
|
|
356
341
|
], r);
|
|
357
342
|
export {
|
|
358
343
|
r as Select
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class Slide extends LitElement {
|
|
3
|
+
contentType: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
content(): import("lit").TemplateResult<1>;
|
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
static styles: import("lit").CSSResultArray;
|
|
8
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { css as d, LitElement as a, html as p } from "lit";
|
|
2
|
+
import { property as c } from "lit/decorators/property.js";
|
|
3
|
+
import { customElement as f } from "lit/decorators/custom-element.js";
|
|
4
|
+
import { global as h } from "../../styles/global.js";
|
|
5
|
+
import { settings as u } from "../../scripts/settings.js";
|
|
6
|
+
import { mergeStyles as v } from "../../scripts/mergeStyles.js";
|
|
7
|
+
var y = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (m, r, o, s) => {
|
|
8
|
+
for (var e = s > 1 ? void 0 : s ? _(r, o) : r, i = m.length - 1, l; i >= 0; i--)
|
|
9
|
+
(l = m[i]) && (e = (s ? l(r, o, e) : l(e)) || e);
|
|
10
|
+
return s && e && y(r, o, e), e;
|
|
11
|
+
};
|
|
12
|
+
const { prefix: g } = u;
|
|
13
|
+
let t = class extends a {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.contentType = "slider", this.active = !1;
|
|
16
|
+
}
|
|
17
|
+
content() {
|
|
18
|
+
return this.contentType === "slider" ? p`
|
|
19
|
+
<li class="slide grid__item" part="slide">
|
|
20
|
+
<slot></slot>
|
|
21
|
+
</li>
|
|
22
|
+
` : p`
|
|
23
|
+
<div
|
|
24
|
+
class="slide grid__item"
|
|
25
|
+
part="slide"
|
|
26
|
+
role="group"
|
|
27
|
+
aria-roledescription="slide"
|
|
28
|
+
aria-hidden="false"
|
|
29
|
+
>
|
|
30
|
+
<slot></slot>
|
|
31
|
+
</div>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return p`
|
|
36
|
+
${this.content()}
|
|
37
|
+
`;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
t.styles = v([
|
|
41
|
+
h,
|
|
42
|
+
d`
|
|
43
|
+
:host {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
.slide {
|
|
47
|
+
height: 100%;
|
|
48
|
+
}
|
|
49
|
+
::slotted(*) {
|
|
50
|
+
height: 100%;
|
|
51
|
+
}
|
|
52
|
+
`
|
|
53
|
+
]);
|
|
54
|
+
n([
|
|
55
|
+
c()
|
|
56
|
+
], t.prototype, "contentType", 2);
|
|
57
|
+
n([
|
|
58
|
+
c({ type: Boolean })
|
|
59
|
+
], t.prototype, "active", 2);
|
|
60
|
+
t = n([
|
|
61
|
+
f(`${g}-slide`)
|
|
62
|
+
], t);
|
|
63
|
+
export {
|
|
64
|
+
t as Slide
|
|
65
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
export declare class SliderControls extends LitElement {
|
|
3
|
+
sliderId: string;
|
|
4
|
+
controlType: string;
|
|
5
|
+
controlPosition: string;
|
|
6
|
+
numberOfSlides: number;
|
|
7
|
+
slidesPerPage: number;
|
|
8
|
+
currentPage: number;
|
|
9
|
+
autoPlay: boolean;
|
|
10
|
+
loopSlides: boolean;
|
|
11
|
+
playing: boolean;
|
|
12
|
+
_pauseHold: boolean;
|
|
13
|
+
_positionInside: boolean;
|
|
14
|
+
_overflowObserver: IntersectionObserver | undefined;
|
|
15
|
+
updated(changedProperties: Map<string, any>): void;
|
|
16
|
+
private _positionControls;
|
|
17
|
+
private _dispatchControlAction;
|
|
18
|
+
controlClasses(): any;
|
|
19
|
+
counterClasses(): any;
|
|
20
|
+
numberButtons(): import("lit").TemplateResult<1>;
|
|
21
|
+
dotButtons(): import("lit").TemplateResult<1>;
|
|
22
|
+
controlVisualType(): import("lit").TemplateResult<1>;
|
|
23
|
+
autoPlayButtons(): import("lit").TemplateResult<1> | typeof nothing;
|
|
24
|
+
navigationButton(direction: string): import("lit").TemplateResult<1>;
|
|
25
|
+
render(): import("lit").TemplateResult<1> | undefined;
|
|
26
|
+
static styles: import("lit").CSSResultArray;
|
|
27
|
+
}
|