@pushengineering/umg-web-components 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/event-manager/event-manager.d.ts +52 -0
- package/dist/classes/event-manager/types.d.ts +6 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/components/badge/badge.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/badge/badge.js +47 -49
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/banner/banner.d.ts +39 -0
- package/dist/{packages/web-components/components → components}/banner/banner.js +23 -25
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner-image/banner-image.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/banner-image/banner-image.js +26 -29
- package/dist/components/banner-image/index.d.ts +2 -0
- package/dist/components/box/box.d.ts +28 -0
- package/dist/components/box/box.js +229 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button/button.js +21 -24
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/button-group/button-group.js +20 -23
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-icon/button-icon.d.ts +31 -0
- package/dist/{packages/web-components/components → components}/button-icon/button-icon.js +25 -28
- package/dist/components/button-icon/index.d.ts +2 -0
- package/dist/components/caption-card/caption-card.d.ts +38 -0
- package/dist/{packages/web-components/components → components}/caption-card/caption-card.js +19 -21
- package/dist/components/caption-card/index.d.ts +2 -0
- package/dist/components/deferred-media/deferred-media.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/deferred-media/deferred-media.js +27 -27
- package/dist/components/deferred-media/index.d.ts +2 -0
- package/dist/components/disclosure/disclosure.d.ts +23 -0
- package/dist/{packages/web-components/components → components}/disclosure/disclosure.js +16 -19
- package/dist/components/disclosure/index.d.ts +2 -0
- package/dist/components/event-table/event-content.d.ts +7 -0
- package/dist/{packages/web-components/components → components}/event-table/event-content.js +19 -22
- package/dist/components/event-table/event-date.d.ts +5 -0
- package/dist/components/event-table/event-date.js +42 -0
- package/dist/components/event-table/event-table.d.ts +10 -0
- package/dist/components/event-table/event-table.js +71 -0
- package/dist/components/event-table/event.d.ts +5 -0
- package/dist/components/event-table/event.js +42 -0
- package/dist/components/event-table/index.d.ts +2 -0
- package/dist/components/footer/footer.d.ts +16 -0
- package/dist/{packages/web-components/components → components}/footer/footer.js +15 -18
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/grid/grid-cell.d.ts +5 -0
- package/dist/components/grid/grid-cell.js +37 -0
- package/dist/components/grid/grid.d.ts +12 -0
- package/dist/{packages/web-components/components → components}/grid/grid.js +37 -40
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/header/header.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/header/header.js +25 -29
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header-drawer/header-drawer.d.ts +32 -0
- package/dist/{packages/web-components/components → components}/header-drawer/header-drawer.js +18 -21
- package/dist/components/header-drawer/index.d.ts +2 -0
- package/dist/components/header-drawer/menu-drawer.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/header-drawer/menu-drawer.js +16 -19
- package/dist/components/horizontal-stack/horizontal-stack.d.ts +13 -0
- package/dist/components/horizontal-stack/horizontal-stack.js +90 -0
- package/dist/components/horizontal-stack/index.d.ts +2 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/icon/icon.js +20 -23
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/image/image.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/image/image.js +17 -20
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/{packages/web-components/components → components}/index.js +38 -36
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/link.d.ts +10 -0
- package/dist/{packages/web-components/components → components}/link/link.js +27 -30
- package/dist/components/link-group/index.d.ts +2 -0
- package/dist/components/link-group/link-group.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/link-group/link-group.js +15 -18
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +19 -0
- package/dist/{packages/web-components/components → components}/logo/logo.js +32 -35
- package/dist/components/media-gallery/index.d.ts +2 -0
- package/dist/components/media-gallery/media-gallery.d.ts +14 -0
- package/dist/{packages/web-components/components → components}/media-gallery/media-gallery.js +19 -22
- package/dist/components/media-gallery/media.d.ts +5 -0
- package/dist/components/media-gallery/media.js +29 -0
- package/dist/components/media-text/index.d.ts +2 -0
- package/dist/components/media-text/media-text.d.ts +30 -0
- package/dist/{packages/web-components/components → components}/media-text/media-text.js +20 -34
- package/dist/components/media-text/styles/media-size.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/media-text/styles/media-size.js +5 -8
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +36 -0
- package/dist/{packages/web-components/components → components}/menu/menu.js +39 -38
- package/dist/components/menu-bar/index.d.ts +2 -0
- package/dist/components/menu-bar/menu-bar.d.ts +16 -0
- package/dist/components/menu-bar/menu-bar.js +110 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/modal/modal.js +70 -41
- package/dist/components/multiselect/index.d.ts +2 -0
- package/dist/components/multiselect/multiselect.d.ts +60 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.d.ts +28 -0
- package/dist/{packages/web-components/components → components}/number-field/number-field.js +22 -25
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/overlay.d.ts +13 -0
- package/dist/components/overlay/overlay.js +74 -0
- package/dist/components/page/index.d.ts +2 -0
- package/dist/components/page/page.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/page/page.js +16 -19
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +19 -0
- package/dist/components/popover/popover.js +181 -0
- package/dist/components/rich-text/index.d.ts +2 -0
- package/dist/components/rich-text/rich-text.d.ts +11 -0
- package/dist/{packages/web-components/components → components}/rich-text/rich-text.js +25 -28
- package/dist/components/section/index.d.ts +2 -0
- package/dist/components/section/section.d.ts +33 -0
- package/dist/{packages/web-components/components → components}/section/section.js +71 -59
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.d.ts +44 -0
- package/dist/{packages/web-components/components → components}/select/select.js +48 -63
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slide.d.ts +8 -0
- package/dist/components/slider/slide.js +65 -0
- package/dist/components/slider/slider-controls.d.ts +27 -0
- package/dist/{packages/web-components/components → components}/slider/slider-controls.js +45 -47
- package/dist/components/slider/slider.d.ts +68 -0
- package/dist/{packages/web-components/components → components}/slider/slider.js +25 -28
- package/dist/components/slider/styles/controls.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/controls.js +3 -6
- package/dist/components/slider/styles/slider.d.ts +1 -0
- package/dist/{packages/web-components/components → components}/slider/styles/slider.js +3 -6
- package/dist/components/socials/index.d.ts +2 -0
- package/dist/components/socials/socials.d.ts +26 -0
- package/dist/components/socials/socials.js +93 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.d.ts +13 -0
- package/dist/{packages/web-components/components → components}/table/table.js +30 -33
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/text.d.ts +24 -0
- package/dist/{packages/web-components/components → components}/text/text.js +65 -57
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field.d.ts +25 -0
- package/dist/{packages/web-components/components → components}/text-field/text-field.js +13 -16
- package/dist/components/thumbnail-slider/index.d.ts +2 -0
- package/dist/components/thumbnail-slider/thumbnail-slide.d.ts +5 -0
- package/dist/components/thumbnail-slider/thumbnail-slide.js +48 -0
- package/dist/components/thumbnail-slider/thumbnail-slider.d.ts +20 -0
- package/dist/{packages/web-components/components → components}/thumbnail-slider/thumbnail-slider.js +15 -15
- package/dist/components/vertical-stack/index.d.ts +2 -0
- package/dist/components/vertical-stack/vertical-stack.d.ts +13 -0
- package/dist/components/vertical-stack/vertical-stack.js +92 -0
- package/dist/components/video/index.d.ts +2 -0
- package/dist/components/video/video.d.ts +29 -0
- package/dist/{packages/web-components/components → components}/video/video.js +22 -26
- package/dist/{packages/web-components/styles → styles}/button.js +4 -7
- package/dist/{packages/web-components/styles → styles}/fonts.js +21 -14
- package/dist/{packages/web-components/styles → styles}/global.js +3 -6
- package/dist/{packages/web-components/styles → styles}/grid.js +3 -6
- package/dist/{packages/web-components/styles → styles}/group.js +11 -14
- package/dist/{packages/web-components/styles → styles}/link.js +3 -6
- package/dist/{packages/web-components/styles → styles}/placeholder-media.js +3 -6
- package/dist/types.d.ts +66 -0
- package/package.json +47 -49
- package/readme.md +22 -69
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +0 -56
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -19
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query.js +0 -34
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +0 -260
- package/dist/node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js +0 -50
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js +0 -37
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js +0 -10
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/map.js +0 -15
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js +0 -14
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js +0 -39
- package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js +0 -259
- package/dist/packages/web-components/components/box/box.js +0 -208
- package/dist/packages/web-components/components/event-table/event-date.js +0 -45
- package/dist/packages/web-components/components/event-table/event-table.js +0 -74
- package/dist/packages/web-components/components/event-table/event.js +0 -45
- package/dist/packages/web-components/components/grid/grid-cell.js +0 -40
- package/dist/packages/web-components/components/horizontal-stack/horizontal-stack.js +0 -93
- package/dist/packages/web-components/components/media-gallery/media.js +0 -31
- package/dist/packages/web-components/components/overlay/overlay.js +0 -77
- package/dist/packages/web-components/components/popover/popover.js +0 -163
- package/dist/packages/web-components/components/slider/slide.js +0 -68
- package/dist/packages/web-components/components/socials/socials.js +0 -96
- package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slide.js +0 -51
- package/dist/packages/web-components/components/vertical-stack/vertical-stack.js +0 -95
- /package/dist/{packages/web-components/classes → classes}/event-manager/event-manager.js +0 -0
- /package/dist/{packages/web-components/classes → classes}/index.js +0 -0
- /package/dist/{packages/web-components/components → components}/icon/icons.svg.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/mergeStyles.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/polyfills/scrollyfills.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/settings.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/themeStyleSheet.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/debounce.js +0 -0
- /package/dist/{packages/web-components/scripts → scripts}/utilities/paddingTransformations.js +0 -0
- /package/dist/{packages/web-components/styles → styles}/icon-size.js +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventManager is a utility class for managing event listeners and dispatching custom events on an HTMLElement.
|
|
3
|
+
*
|
|
4
|
+
* @class
|
|
5
|
+
*/
|
|
6
|
+
export declare class EventManager {
|
|
7
|
+
/**
|
|
8
|
+
* The HTMLElement or object to which the event management is associated.
|
|
9
|
+
* @private
|
|
10
|
+
* @type {HTMLElement}
|
|
11
|
+
*/
|
|
12
|
+
private target;
|
|
13
|
+
/**
|
|
14
|
+
* Allows one or more event listeners to be assigned by the event manager on a HTMLElement or object.
|
|
15
|
+
* @private
|
|
16
|
+
* @type {Map}
|
|
17
|
+
*/
|
|
18
|
+
private listeners;
|
|
19
|
+
/**
|
|
20
|
+
* Creates an instance of EventManager.
|
|
21
|
+
*
|
|
22
|
+
* @constructor
|
|
23
|
+
* @param {EventTarget} target - The element or object to manage events for.
|
|
24
|
+
*/
|
|
25
|
+
constructor(target: EventTarget);
|
|
26
|
+
/**
|
|
27
|
+
* Adds an event listener to the associated HTMLElement or target object.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} eventType - The type of the event to listen for.
|
|
30
|
+
* @param {EventListenerOrEventListenerObject} handler - The callback function to execute when the event is triggered.
|
|
31
|
+
* @param {AddEventListenerOptions} [options] - An options object that specifies characteristics about the event listener.
|
|
32
|
+
* @returns {() => void} - A function to remove the added event listener.
|
|
33
|
+
*/
|
|
34
|
+
addEventListener(eventType: string, handler: EventListenerOrEventListenerObject, options?: AddEventListenerOptions): () => void;
|
|
35
|
+
/**
|
|
36
|
+
* Removes an event listener from the associated HTMLElement or target object.
|
|
37
|
+
*
|
|
38
|
+
* @param {string} eventType - The type of the event for which to remove the listener.
|
|
39
|
+
* @param {EventListenerOrEventListenerObject} handler - The event listener function to remove.
|
|
40
|
+
* @param {EventListenerOptions} [options] - An options object that specifies characteristics about the event listener.
|
|
41
|
+
*/
|
|
42
|
+
removeEventListener(eventType: string, handler: EventListenerOrEventListenerObject, options?: EventListenerOptions): void;
|
|
43
|
+
/**
|
|
44
|
+
* Dispatches a custom event on the associated HTMLElement.
|
|
45
|
+
*
|
|
46
|
+
* @template T - The type of the event detail.
|
|
47
|
+
* @param {string} eventType - The type of the custom event.
|
|
48
|
+
* @param {T} detail - The data associated with the custom event.
|
|
49
|
+
* @param {CustomEventInit} [options] - An options object that specifies characteristics about the custom event.
|
|
50
|
+
*/
|
|
51
|
+
dispatchCustomEvent<T>(eventType: string, detail: T, options?: CustomEventInit): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EventManager } from './event-manager/event-manager';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ButtonSize } from '../../types';
|
|
3
|
+
import '../box';
|
|
4
|
+
import '../text';
|
|
5
|
+
export declare class Badge extends LitElement {
|
|
6
|
+
size: ButtonSize;
|
|
7
|
+
colorBg: string | undefined;
|
|
8
|
+
colorText: string | undefined;
|
|
9
|
+
border?: boolean | undefined;
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
opacity: string | undefined;
|
|
12
|
+
fontSize: string | undefined;
|
|
13
|
+
fontWeight: string | undefined;
|
|
14
|
+
fontStyle: string | undefined;
|
|
15
|
+
badgeStyles(): {};
|
|
16
|
+
badgeClasses(): any;
|
|
17
|
+
render(): import("lit").TemplateResult<1>;
|
|
18
|
+
static styles: import("lit").CSSResultArray;
|
|
19
|
+
}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { styleMap as n } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js";
|
|
8
|
-
import { classMap as h } from "../../../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js";
|
|
1
|
+
import { css as g, LitElement as b, html as c } from "lit";
|
|
2
|
+
import { customElement as n } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as o } from "lit/decorators/property.js";
|
|
4
|
+
import { ifDefined as a } from "lit/directives/if-defined.js";
|
|
5
|
+
import { styleMap as u } from "lit/directives/style-map.js";
|
|
6
|
+
import { classMap as h } from "lit/directives/class-map.js";
|
|
9
7
|
import "../box/box.js";
|
|
10
8
|
import "../text/text.js";
|
|
11
|
-
import { global as
|
|
12
|
-
import { settings as
|
|
13
|
-
import { mergeStyles as
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return i && s && v(a, d, s), s;
|
|
9
|
+
import { global as f } from "../../styles/global.js";
|
|
10
|
+
import { settings as y } from "../../scripts/settings.js";
|
|
11
|
+
import { mergeStyles as x } from "../../scripts/mergeStyles.js";
|
|
12
|
+
var v = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, r = (t, i, d, p) => {
|
|
13
|
+
for (var s = p > 1 ? void 0 : p ? $(i, d) : i, l = t.length - 1, m; l >= 0; l--)
|
|
14
|
+
(m = t[l]) && (s = (p ? m(i, d, s) : m(s)) || s);
|
|
15
|
+
return p && s && v(i, d, s), s;
|
|
19
16
|
};
|
|
20
|
-
const { prefix: z } =
|
|
21
|
-
let e = class extends
|
|
17
|
+
const { prefix: z } = y;
|
|
18
|
+
let e = class extends b {
|
|
22
19
|
constructor() {
|
|
23
20
|
super(...arguments), this.size = "small", this.border = !1, this.borderRadius = "0";
|
|
24
21
|
}
|
|
@@ -43,26 +40,27 @@ let e = class extends c {
|
|
|
43
40
|
return this.border && (t["badge--border"] = !0), t["badge--size-" + this.size] = !0, t;
|
|
44
41
|
}
|
|
45
42
|
render() {
|
|
46
|
-
return
|
|
43
|
+
return c`
|
|
47
44
|
<div
|
|
48
45
|
class="badge${h(this.badgeClasses())}"
|
|
49
|
-
style="${
|
|
46
|
+
style="${u(this.badgeStyles())}"
|
|
50
47
|
part="badge"
|
|
51
48
|
>
|
|
52
49
|
<div class="badge__content" part="badge-content">
|
|
53
50
|
<umg-box
|
|
54
51
|
padding="0"
|
|
55
|
-
colorText=${this.colorText
|
|
56
|
-
colorBg=${this.colorBg
|
|
52
|
+
colorText=${a(this.colorText)}
|
|
53
|
+
colorBg=${a(this.colorBg)}
|
|
57
54
|
?border=${this.border}
|
|
58
55
|
borderRadius=${this.borderRadius}
|
|
59
|
-
opacity=${
|
|
56
|
+
opacity=${a(this.opacity)}
|
|
57
|
+
exportparts="box, box-content"
|
|
60
58
|
>
|
|
61
59
|
<umg-text
|
|
62
60
|
as="span"
|
|
63
|
-
variant="${
|
|
64
|
-
fontWeight="${
|
|
65
|
-
fontStyle="${
|
|
61
|
+
variant="${a(this.fontSize)}"
|
|
62
|
+
fontWeight="${a(this.fontWeight)}"
|
|
63
|
+
fontStyle="${a(this.fontStyle)}"
|
|
66
64
|
lineHeight="compact"
|
|
67
65
|
withoutMargin
|
|
68
66
|
>
|
|
@@ -74,9 +72,9 @@ let e = class extends c {
|
|
|
74
72
|
`;
|
|
75
73
|
}
|
|
76
74
|
};
|
|
77
|
-
e.styles =
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
e.styles = x([
|
|
76
|
+
f,
|
|
77
|
+
g`
|
|
80
78
|
:host {
|
|
81
79
|
display: block;
|
|
82
80
|
}
|
|
@@ -111,35 +109,35 @@ e.styles = y([
|
|
|
111
109
|
}
|
|
112
110
|
`
|
|
113
111
|
]);
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
r([
|
|
113
|
+
o()
|
|
116
114
|
], e.prototype, "size", 2);
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
r([
|
|
116
|
+
o()
|
|
119
117
|
], e.prototype, "colorBg", 2);
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
r([
|
|
119
|
+
o()
|
|
122
120
|
], e.prototype, "colorText", 2);
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
r([
|
|
122
|
+
o({ type: Boolean })
|
|
125
123
|
], e.prototype, "border", 2);
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
r([
|
|
125
|
+
o()
|
|
128
126
|
], e.prototype, "borderRadius", 2);
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
r([
|
|
128
|
+
o()
|
|
131
129
|
], e.prototype, "opacity", 2);
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
r([
|
|
131
|
+
o()
|
|
134
132
|
], e.prototype, "fontSize", 2);
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
r([
|
|
134
|
+
o()
|
|
137
135
|
], e.prototype, "fontWeight", 2);
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
r([
|
|
137
|
+
o()
|
|
140
138
|
], e.prototype, "fontStyle", 2);
|
|
141
|
-
e =
|
|
142
|
-
|
|
139
|
+
e = r([
|
|
140
|
+
n(`${z}-badge`)
|
|
143
141
|
], e);
|
|
144
142
|
export {
|
|
145
143
|
e as Badge
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { ContentAlign, BoxPosition, BoxHeight } from '../../types';
|
|
3
|
+
import '../box/';
|
|
4
|
+
import '../vertical-stack/';
|
|
5
|
+
export declare class Banner extends LitElement {
|
|
6
|
+
height: BoxHeight;
|
|
7
|
+
contentPosition: BoxPosition;
|
|
8
|
+
contentFullWidth: boolean;
|
|
9
|
+
contentAlign: ContentAlign;
|
|
10
|
+
contentJustify: ContentAlign;
|
|
11
|
+
mobileContentJustify: string | undefined;
|
|
12
|
+
contentSpacing: string | undefined;
|
|
13
|
+
contentInnerPadding: string | undefined;
|
|
14
|
+
contentOuterPadding: string | undefined;
|
|
15
|
+
mobilePadding: string | undefined;
|
|
16
|
+
colorText: string | undefined;
|
|
17
|
+
colorBg: string | undefined;
|
|
18
|
+
opacity: string | undefined;
|
|
19
|
+
overlayColor: string | undefined;
|
|
20
|
+
overlayOpacity: number | undefined;
|
|
21
|
+
_mediaAspectRatio: undefined | string;
|
|
22
|
+
_mobileMediaAspectRatio: undefined | string;
|
|
23
|
+
_headerHeight: string;
|
|
24
|
+
_withoutContent: boolean;
|
|
25
|
+
constructor();
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
disconnectedCallback(): void;
|
|
28
|
+
eventNotifications(event: any): Promise<void>;
|
|
29
|
+
handleSlotchange(e: Event): void;
|
|
30
|
+
bannerClasses(): any;
|
|
31
|
+
bannerStyles(): {};
|
|
32
|
+
bannercontentClasses(): any;
|
|
33
|
+
bannercontentStyles(): {};
|
|
34
|
+
contentOuter(): import("lit").TemplateResult<1>;
|
|
35
|
+
contentInner(fullWidth: boolean): import("lit").TemplateResult<1>;
|
|
36
|
+
content(): import("lit").TemplateResult<1>;
|
|
37
|
+
render(): import("lit").TemplateResult<1>;
|
|
38
|
+
static styles: import("lit").CSSResultArray;
|
|
39
|
+
}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { settings as _ } from "../../scripts/settings.js";
|
|
12
|
-
import { mergeStyles as f } from "../../scripts/mergeStyles.js";
|
|
1
|
+
import { css as g, LitElement as u, html as r } from "lit";
|
|
2
|
+
import { customElement as y } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as i } from "lit/decorators/property.js";
|
|
4
|
+
import { state as d } from "lit/decorators/state.js";
|
|
5
|
+
import { ifDefined as o } from "lit/directives/if-defined.js";
|
|
6
|
+
import { classMap as p } from "lit/directives/class-map.js";
|
|
7
|
+
import { styleMap as b } from "lit/directives/style-map.js";
|
|
8
|
+
import { global as _ } from "../../styles/global.js";
|
|
9
|
+
import { settings as f } from "../../scripts/settings.js";
|
|
10
|
+
import { mergeStyles as v } from "../../scripts/mergeStyles.js";
|
|
13
11
|
import "../box/box.js";
|
|
14
12
|
import "../vertical-stack/vertical-stack.js";
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return c && a && x(s, h, a), a;
|
|
13
|
+
var x = Object.defineProperty, w = Object.getOwnPropertyDescriptor, n = (t, s, l, c) => {
|
|
14
|
+
for (var a = c > 1 ? void 0 : c ? w(s, l) : s, h = t.length - 1, m; h >= 0; h--)
|
|
15
|
+
(m = t[h]) && (a = (c ? m(s, l, a) : m(a)) || a);
|
|
16
|
+
return c && a && x(s, l, a), a;
|
|
20
17
|
};
|
|
21
|
-
const { prefix: A } =
|
|
22
|
-
let e = class extends
|
|
18
|
+
const { prefix: A } = f;
|
|
19
|
+
let e = class extends u {
|
|
23
20
|
constructor() {
|
|
24
21
|
super(), this.height = "medium", this.contentPosition = "over", this.contentFullWidth = !1, this.contentAlign = "center", this.contentJustify = "center", this._headerHeight = "", this._withoutContent = !0, this.addEventListener("media-details", this.eventNotifications);
|
|
25
22
|
}
|
|
@@ -95,10 +92,11 @@ let e = class extends g {
|
|
|
95
92
|
class="content__container"
|
|
96
93
|
padding=${o(this.contentInnerPadding)}
|
|
97
94
|
mobilePadding=${o(this.mobilePadding)}
|
|
95
|
+
adaptivePadding
|
|
98
96
|
colorText=${o(this.colorText)}
|
|
99
97
|
colorBg=${o(this.contentPosition === "side" ? void 0 : o(this.colorBg))}
|
|
100
98
|
opacity=${this.contentPosition === "side" ? "0" : o(this.opacity)}
|
|
101
|
-
width="${t ? "
|
|
99
|
+
width="${t ? "fill" : "fit-content"}"
|
|
102
100
|
>
|
|
103
101
|
<umg-vertical-stack
|
|
104
102
|
align=${this.contentJustify}
|
|
@@ -139,9 +137,9 @@ let e = class extends g {
|
|
|
139
137
|
`;
|
|
140
138
|
}
|
|
141
139
|
};
|
|
142
|
-
e.styles =
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
e.styles = v([
|
|
141
|
+
_,
|
|
142
|
+
g`
|
|
145
143
|
:host {
|
|
146
144
|
position: relative;
|
|
147
145
|
display: block;
|
|
@@ -223,7 +221,7 @@ e.styles = f([
|
|
|
223
221
|
aspect-ratio: var(--um-mobile-aspect-ratio);
|
|
224
222
|
height: auto;
|
|
225
223
|
}
|
|
226
|
-
@media only screen and (min-width:
|
|
224
|
+
@media only screen and (min-width: 48.06rem) {
|
|
227
225
|
.banner.media-height--adapt .banner-media {
|
|
228
226
|
aspect-ratio: var(--um-aspect-ratio);
|
|
229
227
|
}
|
|
@@ -382,7 +380,7 @@ n([
|
|
|
382
380
|
d()
|
|
383
381
|
], e.prototype, "_withoutContent", 2);
|
|
384
382
|
e = n([
|
|
385
|
-
|
|
383
|
+
y(`${A}-banner`)
|
|
386
384
|
], e);
|
|
387
385
|
export {
|
|
388
386
|
e as Banner
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
import type { ImageLazy } from '../../types';
|
|
3
|
+
export declare class BannerImage extends LitElement {
|
|
4
|
+
imgAlt: string;
|
|
5
|
+
src: string | undefined;
|
|
6
|
+
imgSrcSet?: string | undefined;
|
|
7
|
+
sizes?: string | undefined;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
mobileSrc?: string | undefined;
|
|
11
|
+
mobileSrcSet?: string | undefined;
|
|
12
|
+
mobileSizes?: string | undefined;
|
|
13
|
+
mobileHeight: number;
|
|
14
|
+
mobileWidth: number;
|
|
15
|
+
load: ImageLazy;
|
|
16
|
+
dispatchEvents(): void;
|
|
17
|
+
imageClasses(): any;
|
|
18
|
+
mobileImage(): import("lit").TemplateResult<1> | typeof nothing;
|
|
19
|
+
desktopImage(): import("lit").TemplateResult<1>;
|
|
20
|
+
getImage(): import("lit").TemplateResult<1>;
|
|
21
|
+
render(): import("lit").TemplateResult<1>;
|
|
22
|
+
static styles: import("lit").CSSResultArray;
|
|
23
|
+
}
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
for (var o = l > 1 ? void 0 : l ? S(r, a) : r, p = s.length - 1, g; p >= 0; p--)
|
|
15
|
-
(g = s[p]) && (o = (l ? g(r, a, o) : g(o)) || o);
|
|
16
|
-
return l && o && v(r, a, o), o;
|
|
1
|
+
import { css as d, LitElement as n, html as a, nothing as b } from "lit";
|
|
2
|
+
import { customElement as y } from "lit/decorators/custom-element.js";
|
|
3
|
+
import { property as i } from "lit/decorators/property.js";
|
|
4
|
+
import { classMap as c } from "lit/directives/class-map.js";
|
|
5
|
+
import { ifDefined as m } from "lit/directives/if-defined.js";
|
|
6
|
+
import { global as u } from "../../styles/global.js";
|
|
7
|
+
import { placeholderMedia as f } from "../../styles/placeholder-media.js";
|
|
8
|
+
import { settings as w } from "../../scripts/settings.js";
|
|
9
|
+
import { mergeStyles as $ } from "../../scripts/mergeStyles.js";
|
|
10
|
+
var v = Object.defineProperty, S = Object.getOwnPropertyDescriptor, e = (s, r, h, l) => {
|
|
11
|
+
for (var o = l > 1 ? void 0 : l ? S(r, h) : r, p = s.length - 1, g; p >= 0; p--)
|
|
12
|
+
(g = s[p]) && (o = (l ? g(r, h, o) : g(o)) || o);
|
|
13
|
+
return l && o && v(r, h, o), o;
|
|
17
14
|
};
|
|
18
|
-
const { prefix: z } =
|
|
15
|
+
const { prefix: z } = w;
|
|
19
16
|
let t = class extends n {
|
|
20
17
|
constructor() {
|
|
21
18
|
super(...arguments), this.imgAlt = "", this.width = 100, this.height = 100, this.mobileHeight = this.width, this.mobileWidth = this.height, this.load = "lazy";
|
|
22
19
|
}
|
|
23
20
|
dispatchEvents() {
|
|
24
|
-
const s = this.width / this.height, r = this.mobileWidth / this.mobileHeight,
|
|
21
|
+
const s = this.width / this.height, r = this.mobileWidth / this.mobileHeight, h = new CustomEvent("media-details", {
|
|
25
22
|
detail: {
|
|
26
23
|
mediaAspectRatio: s,
|
|
27
24
|
mobileMediaAspectRatio: r
|
|
@@ -29,14 +26,14 @@ let t = class extends n {
|
|
|
29
26
|
bubbles: !0,
|
|
30
27
|
composed: !0
|
|
31
28
|
});
|
|
32
|
-
this.dispatchEvent(
|
|
29
|
+
this.dispatchEvent(h);
|
|
33
30
|
}
|
|
34
31
|
imageClasses() {
|
|
35
32
|
const s = {};
|
|
36
33
|
return s["without-mobile"] = !this.mobileSrc, s;
|
|
37
34
|
}
|
|
38
35
|
mobileImage() {
|
|
39
|
-
return this.mobileSrc ?
|
|
36
|
+
return this.mobileSrc ? a`
|
|
40
37
|
<img
|
|
41
38
|
class="image image--mobile"
|
|
42
39
|
width="${this.mobileWidth}"
|
|
@@ -48,10 +45,10 @@ let t = class extends n {
|
|
|
48
45
|
loading="${this.load}"
|
|
49
46
|
part="image"
|
|
50
47
|
>
|
|
51
|
-
` :
|
|
48
|
+
` : b;
|
|
52
49
|
}
|
|
53
50
|
desktopImage() {
|
|
54
|
-
return this.src ?
|
|
51
|
+
return this.src ? a`
|
|
55
52
|
<img
|
|
56
53
|
class="image image--desktop${c(this.imageClasses())}"
|
|
57
54
|
width="${this.width}"
|
|
@@ -63,7 +60,7 @@ let t = class extends n {
|
|
|
63
60
|
loading="${this.load}"
|
|
64
61
|
part="image"
|
|
65
62
|
>
|
|
66
|
-
` :
|
|
63
|
+
` : a`
|
|
67
64
|
<div class="placeholder image image--desktop${c(this.imageClasses())}" style="aspect-ratio: ${this.width / this.height}">
|
|
68
65
|
<div class="placeholder-inner">
|
|
69
66
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512" fill="currentcolor">
|
|
@@ -74,21 +71,21 @@ let t = class extends n {
|
|
|
74
71
|
`;
|
|
75
72
|
}
|
|
76
73
|
getImage() {
|
|
77
|
-
return
|
|
74
|
+
return a`
|
|
78
75
|
${this.desktopImage()}
|
|
79
76
|
${this.mobileImage()}
|
|
80
77
|
`;
|
|
81
78
|
}
|
|
82
79
|
render() {
|
|
83
|
-
return this.dispatchEvents(),
|
|
80
|
+
return this.dispatchEvents(), a`
|
|
84
81
|
${this.getImage()}
|
|
85
82
|
`;
|
|
86
83
|
}
|
|
87
84
|
};
|
|
88
|
-
t.styles =
|
|
89
|
-
y,
|
|
85
|
+
t.styles = $([
|
|
90
86
|
u,
|
|
91
|
-
|
|
87
|
+
f,
|
|
88
|
+
d`
|
|
92
89
|
.image {
|
|
93
90
|
object-fit: cover;
|
|
94
91
|
height: 100%;
|
|
@@ -154,7 +151,7 @@ e([
|
|
|
154
151
|
i()
|
|
155
152
|
], t.prototype, "load", 2);
|
|
156
153
|
t = e([
|
|
157
|
-
|
|
154
|
+
y(`${z}-banner-image`)
|
|
158
155
|
], t);
|
|
159
156
|
export {
|
|
160
157
|
t as BannerImage
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { Direction } from '../../types';
|
|
3
|
+
export declare class Box extends LitElement {
|
|
4
|
+
maxWidth: number | undefined;
|
|
5
|
+
padding?: string | undefined;
|
|
6
|
+
mobilePadding?: string | undefined;
|
|
7
|
+
paddingTop?: string | undefined;
|
|
8
|
+
paddingRight?: string | undefined;
|
|
9
|
+
paddingBottom?: string | undefined;
|
|
10
|
+
paddingLeft?: string | undefined;
|
|
11
|
+
adaptivePadding: boolean;
|
|
12
|
+
colorText: string | undefined;
|
|
13
|
+
colorBg: string | undefined;
|
|
14
|
+
colorBlend: boolean;
|
|
15
|
+
blendDirection: Direction;
|
|
16
|
+
border?: boolean | undefined;
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
opacity: string | undefined;
|
|
19
|
+
private _mergedPadding;
|
|
20
|
+
private _mobilePadding;
|
|
21
|
+
firstUpdated(): void;
|
|
22
|
+
updated(changedProperties: Map<string, any>): void;
|
|
23
|
+
getPadding(): string[][] | undefined;
|
|
24
|
+
boxStyles(): {};
|
|
25
|
+
boxClasses(): any;
|
|
26
|
+
render(): import("lit").TemplateResult<1>;
|
|
27
|
+
static styles: import("lit").CSSResultArray;
|
|
28
|
+
}
|