@carbon/ibm-products-web-components 0.20.0 → 0.21.0-rc.0
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/custom-elements.json +2374 -352
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/interstitial-screen/index.d.ts +13 -0
- package/es/components/interstitial-screen/index.js +13 -0
- package/es/components/interstitial-screen/index.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.d.ts +372 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.js +69 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body.d.ts +384 -0
- package/es/components/interstitial-screen/interstitial-screen-body.js +129 -0
- package/es/components/interstitial-screen/interstitial-screen-body.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/es/components/interstitial-screen/interstitial-screen-context.js +48 -0
- package/es/components/interstitial-screen/interstitial-screen-context.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.d.ts +409 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.js +229 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-header.d.ts +394 -0
- package/es/components/interstitial-screen/interstitial-screen-header.js +157 -0
- package/es/components/interstitial-screen/interstitial-screen-header.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.d.ts +420 -0
- package/es/components/interstitial-screen/interstitial-screen.js +186 -0
- package/es/components/interstitial-screen/interstitial-screen.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen.scss.js.map +1 -0
- package/es/components/notification-panel/notification-panel.scss.js +1 -1
- package/es/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/es/components/page-header/_story-assets/overflowHandler.js +156 -0
- package/es/components/page-header/_story-assets/overflowHandler.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js +153 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +13 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +1 -0
- package/es/components/page-header/context.d.ts +14 -0
- package/es/components/page-header/context.js +26 -0
- package/es/components/page-header/context.js.map +1 -0
- package/es/components/page-header/index.d.ts +2 -0
- package/es/components/page-header/index.js +2 -0
- package/es/components/page-header/index.js.map +1 -1
- package/es/components/page-header/page-header-scroller.d.ts +56 -0
- package/es/components/page-header/page-header-scroller.js +165 -0
- package/es/components/page-header/page-header-scroller.js.map +1 -0
- package/es/components/page-header/page-header-tabs.js +1 -0
- package/es/components/page-header/page-header-tabs.js.map +1 -1
- package/es/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/es/components/page-header/page-header-title-breadcrumb.js +65 -0
- package/es/components/page-header/page-header-title-breadcrumb.js.map +1 -0
- package/es/components/page-header/page-header.d.ts +11 -1
- package/es/components/page-header/page-header.js +54 -71
- package/es/components/page-header/page-header.js.map +1 -1
- package/es/components/page-header/page-header.scss.js +1 -1
- package/es/components/page-header/page-header.test.js +136 -2
- package/es/components/page-header/page-header.test.js.map +1 -1
- package/es/components/page-header/utils.d.ts +32 -0
- package/es/components/page-header/utils.js +76 -0
- package/es/components/page-header/utils.js.map +1 -0
- package/es/components/side-panel/side-panel.d.ts +4 -0
- package/es/components/side-panel/side-panel.js +33 -15
- package/es/components/side-panel/side-panel.js.map +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/components/truncated-text/truncated-text.d.ts +16 -11
- package/es/components/truncated-text/truncated-text.js +65 -58
- package/es/components/truncated-text/truncated-text.js.map +1 -1
- package/es/components/truncated-text/truncated-text.scss.js +1 -1
- package/es/components/truncated-text/truncated-text.test.js +6 -6
- package/es/components/user-avatar/user-avatar.d.ts +8 -0
- package/es/components/user-avatar/user-avatar.js +1 -0
- package/es/components/user-avatar/user-avatar.js.map +1 -1
- package/es/components/user-avatar/user-avatar.scss.js +1 -1
- package/es/packages/ibm-products-web-components/package.json.js +1 -1
- package/es/utilities/carousel/carousel.d.ts +8 -0
- package/es/utilities/carousel/carousel.js +210 -0
- package/es/utilities/carousel/carousel.js.map +1 -0
- package/es/utilities/carousel/index.d.ts +8 -0
- package/es/utilities/carousel/index.js +9 -0
- package/es/utilities/carousel/index.js.map +1 -0
- package/es/utilities/carousel/swipeEvents.d.ts +7 -0
- package/es/utilities/carousel/swipeEvents.js +109 -0
- package/es/utilities/carousel/swipeEvents.js.map +1 -0
- package/es/utilities/carousel/types.d.ts +36 -0
- package/es/utilities/carousel/types.js +8 -0
- package/es/utilities/carousel/types.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/interstitial-screen/index.d.ts +13 -0
- package/es-custom/components/interstitial-screen/index.js +13 -0
- package/es-custom/components/interstitial-screen/index.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.d.ts +372 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js +69 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.d.ts +384 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js +129 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js +48 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.d.ts +409 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js +229 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.d.ts +394 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js +157 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.d.ts +420 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.js +186 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js +1 -1
- package/es-custom/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.js +156 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js +153 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +13 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +1 -0
- package/es-custom/components/page-header/context.d.ts +14 -0
- package/es-custom/components/page-header/context.js +26 -0
- package/es-custom/components/page-header/context.js.map +1 -0
- package/es-custom/components/page-header/index.d.ts +2 -0
- package/es-custom/components/page-header/index.js +2 -0
- package/es-custom/components/page-header/index.js.map +1 -1
- package/es-custom/components/page-header/page-header-scroller.d.ts +56 -0
- package/es-custom/components/page-header/page-header-scroller.js +165 -0
- package/es-custom/components/page-header/page-header-scroller.js.map +1 -0
- package/es-custom/components/page-header/page-header-tabs.js +1 -0
- package/es-custom/components/page-header/page-header-tabs.js.map +1 -1
- package/es-custom/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.js +65 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.js.map +1 -0
- package/es-custom/components/page-header/page-header.d.ts +11 -1
- package/es-custom/components/page-header/page-header.js +54 -71
- package/es-custom/components/page-header/page-header.js.map +1 -1
- package/es-custom/components/page-header/page-header.scss.js +1 -1
- package/es-custom/components/page-header/page-header.test.js +136 -2
- package/es-custom/components/page-header/page-header.test.js.map +1 -1
- package/es-custom/components/page-header/utils.d.ts +32 -0
- package/es-custom/components/page-header/utils.js +76 -0
- package/es-custom/components/page-header/utils.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.d.ts +4 -0
- package/es-custom/components/side-panel/side-panel.js +33 -15
- package/es-custom/components/side-panel/side-panel.js.map +1 -1
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/components/truncated-text/truncated-text.d.ts +16 -11
- package/es-custom/components/truncated-text/truncated-text.js +65 -58
- package/es-custom/components/truncated-text/truncated-text.js.map +1 -1
- package/es-custom/components/truncated-text/truncated-text.scss.js +1 -1
- package/es-custom/components/truncated-text/truncated-text.test.js +6 -6
- package/es-custom/components/user-avatar/user-avatar.d.ts +8 -0
- package/es-custom/components/user-avatar/user-avatar.js +1 -0
- package/es-custom/components/user-avatar/user-avatar.js.map +1 -1
- package/es-custom/components/user-avatar/user-avatar.scss.js +1 -1
- package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
- package/es-custom/utilities/carousel/carousel.d.ts +8 -0
- package/es-custom/utilities/carousel/carousel.js +210 -0
- package/es-custom/utilities/carousel/carousel.js.map +1 -0
- package/es-custom/utilities/carousel/index.d.ts +8 -0
- package/es-custom/utilities/carousel/index.js +9 -0
- package/es-custom/utilities/carousel/index.js.map +1 -0
- package/es-custom/utilities/carousel/swipeEvents.d.ts +7 -0
- package/es-custom/utilities/carousel/swipeEvents.js +109 -0
- package/es-custom/utilities/carousel/swipeEvents.js.map +1 -0
- package/es-custom/utilities/carousel/types.d.ts +36 -0
- package/es-custom/utilities/carousel/types.js +8 -0
- package/es-custom/utilities/carousel/types.js.map +1 -0
- package/lib/components/interstitial-screen/index.d.ts +13 -0
- package/lib/components/interstitial-screen/interstitial-screen-body-item.d.ts +372 -0
- package/lib/components/interstitial-screen/interstitial-screen-body.d.ts +384 -0
- package/lib/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/lib/components/interstitial-screen/interstitial-screen-footer.d.ts +409 -0
- package/lib/components/interstitial-screen/interstitial-screen-header.d.ts +394 -0
- package/lib/components/interstitial-screen/interstitial-screen.d.ts +420 -0
- package/lib/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/lib/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/lib/components/page-header/context.d.ts +14 -0
- package/lib/components/page-header/index.d.ts +2 -0
- package/lib/components/page-header/page-header-scroller.d.ts +56 -0
- package/lib/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/lib/components/page-header/page-header.d.ts +11 -1
- package/lib/components/page-header/utils.d.ts +32 -0
- package/lib/components/side-panel/side-panel.d.ts +4 -0
- package/lib/components/truncated-text/truncated-text.d.ts +16 -11
- package/lib/components/user-avatar/user-avatar.d.ts +8 -0
- package/lib/utilities/carousel/carousel.d.ts +8 -0
- package/lib/utilities/carousel/index.d.ts +8 -0
- package/lib/utilities/carousel/swipeEvents.d.ts +7 -0
- package/lib/utilities/carousel/types.d.ts +36 -0
- package/package.json +7 -6
- package/scss/components/interstitial-screen/interstitial-screen-body-item.scss +18 -0
- package/scss/components/interstitial-screen/interstitial-screen-body.scss +30 -0
- package/scss/components/interstitial-screen/interstitial-screen-footer.scss +40 -0
- package/scss/components/interstitial-screen/interstitial-screen-header.scss +13 -0
- package/scss/components/interstitial-screen/interstitial-screen.scss +28 -0
- package/scss/components/interstitial-screen/story-styles.scss +27 -0
- package/scss/components/notification-panel/notification-panel.scss +0 -1
- package/scss/components/page-header/_story-assets/set-of-breadcrumbs.scss +41 -0
- package/scss/components/page-header/page-header.scss +85 -0
- package/scss/components/truncated-text/story-styles.scss +11 -10
- package/scss/components/truncated-text/truncated-text.scss +0 -15
- package/scss/components/user-avatar/user-avatar.scss +5 -2
@@ -0,0 +1,384 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025
|
5
|
+
*
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
8
|
+
*/
|
9
|
+
import { LitElement } from 'lit';
|
10
|
+
import '@carbon/web-components/es-custom/components/modal/index.js';
|
11
|
+
declare const CDSInterstitialScreenBody_base: {
|
12
|
+
new (...args: any[]): {
|
13
|
+
_handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
|
14
|
+
connectedCallback(): void;
|
15
|
+
disconnectedCallback(): void;
|
16
|
+
accessKey: string;
|
17
|
+
readonly accessKeyLabel: string;
|
18
|
+
autocapitalize: string;
|
19
|
+
dir: string;
|
20
|
+
draggable: boolean;
|
21
|
+
hidden: boolean;
|
22
|
+
inert: boolean;
|
23
|
+
innerText: string;
|
24
|
+
lang: string;
|
25
|
+
readonly offsetHeight: number;
|
26
|
+
readonly offsetLeft: number;
|
27
|
+
readonly offsetParent: Element | null;
|
28
|
+
readonly offsetTop: number;
|
29
|
+
readonly offsetWidth: number;
|
30
|
+
outerText: string;
|
31
|
+
popover: string | null;
|
32
|
+
spellcheck: boolean;
|
33
|
+
title: string;
|
34
|
+
translate: boolean;
|
35
|
+
writingSuggestions: string;
|
36
|
+
attachInternals(): ElementInternals;
|
37
|
+
click(): void;
|
38
|
+
hidePopover(): void;
|
39
|
+
showPopover(): void;
|
40
|
+
togglePopover(force?: boolean): boolean;
|
41
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
42
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
43
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
44
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
45
|
+
readonly attributes: NamedNodeMap;
|
46
|
+
readonly classList: DOMTokenList;
|
47
|
+
className: string;
|
48
|
+
readonly clientHeight: number;
|
49
|
+
readonly clientLeft: number;
|
50
|
+
readonly clientTop: number;
|
51
|
+
readonly clientWidth: number;
|
52
|
+
readonly currentCSSZoom: number;
|
53
|
+
id: string;
|
54
|
+
innerHTML: string;
|
55
|
+
readonly localName: string;
|
56
|
+
readonly namespaceURI: string | null;
|
57
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
58
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
59
|
+
outerHTML: string;
|
60
|
+
readonly ownerDocument: Document;
|
61
|
+
readonly part: DOMTokenList;
|
62
|
+
readonly prefix: string | null;
|
63
|
+
readonly scrollHeight: number;
|
64
|
+
scrollLeft: number;
|
65
|
+
scrollTop: number;
|
66
|
+
readonly scrollWidth: number;
|
67
|
+
readonly shadowRoot: ShadowRoot | null;
|
68
|
+
slot: string;
|
69
|
+
readonly tagName: string;
|
70
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
71
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
72
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
73
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
74
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
75
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
76
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
77
|
+
getAttribute(qualifiedName: string): string | null;
|
78
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
79
|
+
getAttributeNames(): string[];
|
80
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
81
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
82
|
+
getBoundingClientRect(): DOMRect;
|
83
|
+
getClientRects(): DOMRectList;
|
84
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
85
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
86
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
87
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
88
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
89
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
90
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
91
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
92
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
93
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
94
|
+
getHTML(options?: GetHTMLOptions): string;
|
95
|
+
hasAttribute(qualifiedName: string): boolean;
|
96
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
97
|
+
hasAttributes(): boolean;
|
98
|
+
hasPointerCapture(pointerId: number): boolean;
|
99
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
100
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
101
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
102
|
+
matches(selectors: string): boolean;
|
103
|
+
releasePointerCapture(pointerId: number): void;
|
104
|
+
removeAttribute(qualifiedName: string): void;
|
105
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
106
|
+
removeAttributeNode(attr: Attr): Attr;
|
107
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
108
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
109
|
+
scroll(options?: ScrollToOptions): void;
|
110
|
+
scroll(x: number, y: number): void;
|
111
|
+
scrollBy(options?: ScrollToOptions): void;
|
112
|
+
scrollBy(x: number, y: number): void;
|
113
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
114
|
+
scrollTo(options?: ScrollToOptions): void;
|
115
|
+
scrollTo(x: number, y: number): void;
|
116
|
+
setAttribute(qualifiedName: string, value: string): void;
|
117
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
118
|
+
setAttributeNode(attr: Attr): Attr | null;
|
119
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
120
|
+
setHTMLUnsafe(html: string): void;
|
121
|
+
setPointerCapture(pointerId: number): void;
|
122
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
123
|
+
webkitMatchesSelector(selectors: string): boolean;
|
124
|
+
readonly baseURI: string;
|
125
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
126
|
+
readonly firstChild: ChildNode | null;
|
127
|
+
readonly isConnected: boolean;
|
128
|
+
readonly lastChild: ChildNode | null;
|
129
|
+
readonly nextSibling: ChildNode | null;
|
130
|
+
readonly nodeName: string;
|
131
|
+
readonly nodeType: number;
|
132
|
+
nodeValue: string | null;
|
133
|
+
readonly parentElement: HTMLElement | null;
|
134
|
+
readonly parentNode: ParentNode | null;
|
135
|
+
readonly previousSibling: ChildNode | null;
|
136
|
+
textContent: string | null;
|
137
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
138
|
+
cloneNode(deep?: boolean): Node;
|
139
|
+
compareDocumentPosition(other: Node): number;
|
140
|
+
contains(other: Node | null): boolean;
|
141
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
142
|
+
hasChildNodes(): boolean;
|
143
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
144
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
145
|
+
isEqualNode(otherNode: Node | null): boolean;
|
146
|
+
isSameNode(otherNode: Node | null): boolean;
|
147
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
148
|
+
lookupPrefix(namespace: string | null): string | null;
|
149
|
+
normalize(): void;
|
150
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
151
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
152
|
+
readonly ELEMENT_NODE: 1;
|
153
|
+
readonly ATTRIBUTE_NODE: 2;
|
154
|
+
readonly TEXT_NODE: 3;
|
155
|
+
readonly CDATA_SECTION_NODE: 4;
|
156
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
157
|
+
readonly ENTITY_NODE: 6;
|
158
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
159
|
+
readonly COMMENT_NODE: 8;
|
160
|
+
readonly DOCUMENT_NODE: 9;
|
161
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
162
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
163
|
+
readonly NOTATION_NODE: 12;
|
164
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
165
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
166
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
167
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
168
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
169
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
170
|
+
dispatchEvent(event: Event): boolean;
|
171
|
+
ariaAtomic: string | null;
|
172
|
+
ariaAutoComplete: string | null;
|
173
|
+
ariaBrailleLabel: string | null;
|
174
|
+
ariaBrailleRoleDescription: string | null;
|
175
|
+
ariaBusy: string | null;
|
176
|
+
ariaChecked: string | null;
|
177
|
+
ariaColCount: string | null;
|
178
|
+
ariaColIndex: string | null;
|
179
|
+
ariaColIndexText: string | null;
|
180
|
+
ariaColSpan: string | null;
|
181
|
+
ariaCurrent: string | null;
|
182
|
+
ariaDescription: string | null;
|
183
|
+
ariaDisabled: string | null;
|
184
|
+
ariaExpanded: string | null;
|
185
|
+
ariaHasPopup: string | null;
|
186
|
+
ariaHidden: string | null;
|
187
|
+
ariaInvalid: string | null;
|
188
|
+
ariaKeyShortcuts: string | null;
|
189
|
+
ariaLabel: string | null;
|
190
|
+
ariaLevel: string | null;
|
191
|
+
ariaLive: string | null;
|
192
|
+
ariaModal: string | null;
|
193
|
+
ariaMultiLine: string | null;
|
194
|
+
ariaMultiSelectable: string | null;
|
195
|
+
ariaOrientation: string | null;
|
196
|
+
ariaPlaceholder: string | null;
|
197
|
+
ariaPosInSet: string | null;
|
198
|
+
ariaPressed: string | null;
|
199
|
+
ariaReadOnly: string | null;
|
200
|
+
ariaRequired: string | null;
|
201
|
+
ariaRoleDescription: string | null;
|
202
|
+
ariaRowCount: string | null;
|
203
|
+
ariaRowIndex: string | null;
|
204
|
+
ariaRowIndexText: string | null;
|
205
|
+
ariaRowSpan: string | null;
|
206
|
+
ariaSelected: string | null;
|
207
|
+
ariaSetSize: string | null;
|
208
|
+
ariaSort: string | null;
|
209
|
+
ariaValueMax: string | null;
|
210
|
+
ariaValueMin: string | null;
|
211
|
+
ariaValueNow: string | null;
|
212
|
+
ariaValueText: string | null;
|
213
|
+
role: string | null;
|
214
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
215
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
216
|
+
after(...nodes: (Node | string)[]): void;
|
217
|
+
before(...nodes: (Node | string)[]): void;
|
218
|
+
remove(): void;
|
219
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
220
|
+
readonly nextElementSibling: Element | null;
|
221
|
+
readonly previousElementSibling: Element | null;
|
222
|
+
readonly childElementCount: number;
|
223
|
+
readonly children: HTMLCollection;
|
224
|
+
readonly firstElementChild: Element | null;
|
225
|
+
readonly lastElementChild: Element | null;
|
226
|
+
append(...nodes: (Node | string)[]): void;
|
227
|
+
prepend(...nodes: (Node | string)[]): void;
|
228
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
229
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
230
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
231
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
232
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
233
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
234
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
235
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
236
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
237
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
238
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
239
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
240
|
+
readonly attributeStyleMap: StylePropertyMap;
|
241
|
+
readonly style: CSSStyleDeclaration;
|
242
|
+
contentEditable: string;
|
243
|
+
enterKeyHint: string;
|
244
|
+
inputMode: string;
|
245
|
+
readonly isContentEditable: boolean;
|
246
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
247
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
248
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
249
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
250
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
251
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
252
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
253
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
254
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
255
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
256
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
257
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
258
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
259
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
260
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
261
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
262
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
263
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
264
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
265
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
266
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
267
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
268
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
269
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
270
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
271
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
272
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
273
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
274
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
275
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
276
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
277
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
278
|
+
onerror: OnErrorEventHandler;
|
279
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
280
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
281
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
282
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
283
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
284
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
285
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
286
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
287
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
288
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
289
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
290
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
291
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
292
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
293
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
294
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
295
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
296
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
297
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
298
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
299
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
300
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
301
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
302
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
303
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
304
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
305
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
306
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
307
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
308
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
309
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
310
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
311
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
312
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
313
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
314
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
315
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
316
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
317
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
318
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
319
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
320
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
321
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
322
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
323
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
324
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
325
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
326
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
327
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
328
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
329
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
330
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
331
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
332
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
333
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
334
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
335
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
336
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
337
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
338
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
339
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
340
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
341
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
342
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
343
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
344
|
+
autofocus: boolean;
|
345
|
+
readonly dataset: DOMStringMap;
|
346
|
+
nonce?: string;
|
347
|
+
tabIndex: number;
|
348
|
+
blur(): void;
|
349
|
+
focus(options?: FocusOptions): void;
|
350
|
+
};
|
351
|
+
_hostListeners: {
|
352
|
+
[listenerName: string]: {
|
353
|
+
[type: string]: {
|
354
|
+
options?: boolean | AddEventListenerOptions;
|
355
|
+
};
|
356
|
+
};
|
357
|
+
};
|
358
|
+
} & typeof LitElement;
|
359
|
+
/**
|
360
|
+
* interstitial-screen-body for body section
|
361
|
+
* @element c4p-interstitial-screen-body
|
362
|
+
* @fires c4p-on-before-step-change - The name of the custom event fired at the start of the step change.
|
363
|
+
* @fires c4p-on-after-step-change - The name of the custom event fired at the end of the step change.
|
364
|
+
*/
|
365
|
+
declare class CDSInterstitialScreenBody extends CDSInterstitialScreenBody_base {
|
366
|
+
stepType: 'single' | 'multi';
|
367
|
+
private carouselAPI;
|
368
|
+
private carouselElement;
|
369
|
+
firstUpdated(): void;
|
370
|
+
private _initCarousel;
|
371
|
+
private onViewChangeStart;
|
372
|
+
private onViewChangeEnd;
|
373
|
+
render(): import("lit-html").TemplateResult<1>;
|
374
|
+
static styles: any;
|
375
|
+
/**
|
376
|
+
* The name of the custom event fired at the start of the step change.
|
377
|
+
*/
|
378
|
+
static get eventOnViewChangeStart(): string;
|
379
|
+
/**
|
380
|
+
* The name of the custom event fired at the end of the step change.
|
381
|
+
*/
|
382
|
+
static get eventOnViewChangeEnd(): string;
|
383
|
+
}
|
384
|
+
export default CDSInterstitialScreenBody;
|
@@ -0,0 +1,129 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { __decorate } from 'tslib';
|
9
|
+
import { LitElement, html } from 'lit';
|
10
|
+
import { state } from 'lit/decorators.js';
|
11
|
+
import { prefix } from '../../globals/settings.js';
|
12
|
+
import '@carbon/web-components/es-custom/components/modal/index.js';
|
13
|
+
import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
|
14
|
+
import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
|
15
|
+
import styles from './interstitial-screen-body.scss.js';
|
16
|
+
import { initCarousel } from '../../utilities/carousel/carousel.js';
|
17
|
+
import { createRef, ref } from 'lit/directives/ref.js';
|
18
|
+
import { updateInterstitialDetailsSignal, interstitialDetailsSignal } from './interstitial-screen-context.js';
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @license
|
22
|
+
*
|
23
|
+
* Copyright IBM Corp. 2025
|
24
|
+
*
|
25
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
27
|
+
*/
|
28
|
+
const blockClass = `${prefix}--interstitial-screen`;
|
29
|
+
/**
|
30
|
+
* interstitial-screen-body for body section
|
31
|
+
* @element c4p-interstitial-screen-body
|
32
|
+
* @fires c4p-on-before-step-change - The name of the custom event fired at the start of the step change.
|
33
|
+
* @fires c4p-on-after-step-change - The name of the custom event fired at the end of the step change.
|
34
|
+
*/
|
35
|
+
let CDSInterstitialScreenBody = class CDSInterstitialScreenBody extends HostListenerMixin(LitElement) {
|
36
|
+
constructor() {
|
37
|
+
super(...arguments);
|
38
|
+
this.stepType = 'multi';
|
39
|
+
this.carouselElement = createRef();
|
40
|
+
this.onViewChangeStart = ({ currentIndex, lastIndex, totalViews }) => {
|
41
|
+
this.dispatchEvent(new CustomEvent(this.constructor.eventOnViewChangeStart, {
|
42
|
+
bubbles: true,
|
43
|
+
cancelable: true,
|
44
|
+
composed: true,
|
45
|
+
detail: {
|
46
|
+
currentStep: currentIndex,
|
47
|
+
totalStepCount: totalViews,
|
48
|
+
lastStep: lastIndex,
|
49
|
+
},
|
50
|
+
}));
|
51
|
+
};
|
52
|
+
this.onViewChangeEnd = ({ currentIndex, lastIndex, totalViews }) => {
|
53
|
+
updateInterstitialDetailsSignal({
|
54
|
+
name: 'currentStep',
|
55
|
+
detail: currentIndex,
|
56
|
+
});
|
57
|
+
this.dispatchEvent(new CustomEvent(this.constructor.eventOnViewChangeEnd, {
|
58
|
+
bubbles: true,
|
59
|
+
cancelable: true,
|
60
|
+
composed: true,
|
61
|
+
detail: {
|
62
|
+
currentStep: currentIndex,
|
63
|
+
totalStepCount: totalViews,
|
64
|
+
lastStep: lastIndex,
|
65
|
+
},
|
66
|
+
}));
|
67
|
+
};
|
68
|
+
}
|
69
|
+
firstUpdated() {
|
70
|
+
var _a;
|
71
|
+
const slot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
72
|
+
const assigned = slot.assignedElements({ flatten: true });
|
73
|
+
if (assigned.length === 1) {
|
74
|
+
this.stepType = 'single';
|
75
|
+
}
|
76
|
+
else if (assigned.length > 1) {
|
77
|
+
this.stepType = 'multi';
|
78
|
+
//initialize carousel for multi-step
|
79
|
+
this._initCarousel();
|
80
|
+
}
|
81
|
+
}
|
82
|
+
_initCarousel() {
|
83
|
+
this.carouselAPI = initCarousel(this.carouselElement.value, {
|
84
|
+
onViewChangeEnd: this.onViewChangeEnd,
|
85
|
+
onViewChangeStart: this.onViewChangeStart,
|
86
|
+
excludeSwipeSupport: true,
|
87
|
+
});
|
88
|
+
interstitialDetailsSignal.set(Object.assign(Object.assign({}, interstitialDetailsSignal.get()), { carouselAPI: this.carouselAPI }));
|
89
|
+
}
|
90
|
+
render() {
|
91
|
+
return html `
|
92
|
+
<div class="${blockClass}--body">
|
93
|
+
${this.stepType === 'multi'
|
94
|
+
? html `<div
|
95
|
+
${ref(this.carouselElement)}
|
96
|
+
class="${blockClass}__carousel"
|
97
|
+
>
|
98
|
+
<slot></slot>
|
99
|
+
</div>`
|
100
|
+
: html `<div class="${blockClass}__contentWrapper">
|
101
|
+
<slot></slot>
|
102
|
+
</div>`}
|
103
|
+
</div>
|
104
|
+
`;
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* The name of the custom event fired at the start of the step change.
|
108
|
+
*/
|
109
|
+
static get eventOnViewChangeStart() {
|
110
|
+
return `${prefix}-on-before-step-change`;
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* The name of the custom event fired at the end of the step change.
|
114
|
+
*/
|
115
|
+
static get eventOnViewChangeEnd() {
|
116
|
+
return `${prefix}-on-after-step-change`;
|
117
|
+
}
|
118
|
+
};
|
119
|
+
CDSInterstitialScreenBody.styles = styles;
|
120
|
+
__decorate([
|
121
|
+
state()
|
122
|
+
], CDSInterstitialScreenBody.prototype, "stepType", void 0);
|
123
|
+
CDSInterstitialScreenBody = __decorate([
|
124
|
+
carbonElement(`${prefix}-interstitial-screen-body`)
|
125
|
+
], CDSInterstitialScreenBody);
|
126
|
+
var CDSInterstitialScreenBody$1 = CDSInterstitialScreenBody;
|
127
|
+
|
128
|
+
export { CDSInterstitialScreenBody$1 as default };
|
129
|
+
//# sourceMappingURL=interstitial-screen-body.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interstitial-screen-body.js","sources":["../../../src/components/interstitial-screen/interstitial-screen-body.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAgBH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,uBAAuB;AAEnD;;;;;AAKG;AAEH,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAArE,IAAA,WAAA,GAAA;;QAEE,IAAQ,CAAA,QAAA,GAAuB,OAAO;QAG9B,IAAe,CAAA,eAAA,GAAG,SAAS,EAAe;QA4B1C,IAAiB,CAAA,iBAAA,GAAG,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,KAAI;YACtE,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAEX,IAAI,CAAC,WACN,CAAC,sBAAsB,EACxB;AACE,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,MAAM,EAAE;AACN,oBAAA,WAAW,EAAE,YAAY;AACzB,oBAAA,cAAc,EAAE,UAAU;AAC1B,oBAAA,QAAQ,EAAE,SAAS;AACpB,iBAAA;AACF,aAAA,CACF,CACF;AACH,SAAC;QACO,IAAe,CAAA,eAAA,GAAG,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,KAAI;AACpE,YAAA,+BAA+B,CAAC;AAC9B,gBAAA,IAAI,EAAE,aAAa;AACnB,gBAAA,MAAM,EAAE,YAAY;AACrB,aAAA,CAAC;YAEF,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAEX,IAAI,CAAC,WACN,CAAC,oBAAoB,EACtB;AACE,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,MAAM,EAAE;AACN,oBAAA,WAAW,EAAE,YAAY;AACzB,oBAAA,cAAc,EAAE,UAAU;AAC1B,oBAAA,QAAQ,EAAE,SAAS;AACpB,iBAAA;AACF,aAAA,CACF,CACF;AACH,SAAC;;IApED,YAAY,GAAA;;QACV,MAAM,IAAI,GAAG,CAAA,EAAA,GAAA,IAAI,CAAC,UAAU,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,aAAa,CAAC,MAAM,CAAoB;AAEtE,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAEzD,QAAA,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;AACzB,YAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;;AACnB,aAAA,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;AAC9B,YAAA,IAAI,CAAC,QAAQ,GAAG,OAAO;;YAEvB,IAAI,CAAC,aAAa,EAAE;;;IAIhB,aAAa,GAAA;QACnB,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,KAAoB,EAAE;YACzE,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;AACzC,YAAA,mBAAmB,EAAE,IAAI;AAC1B,SAAA,CAAC;AACF,QAAA,yBAAyB,CAAC,GAAG,CACxB,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,yBAAyB,CAAC,GAAG,EAAE,CAClC,EAAA,EAAA,WAAW,EAAE,IAAI,CAAC,WAAW,IAC7B;;IA+CJ,MAAM,GAAA;AACJ,QAAA,OAAO,IAAI,CAAA;oBACK,UAAU,CAAA;UACpB,IAAI,CAAC,QAAQ,KAAK;cAChB,IAAI,CAAA,CAAA;AACA,cAAA,EAAA,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC;uBAClB,UAAU,CAAA;;;AAGd,kBAAA;AACT,cAAE,IAAI,CAAA,CAAA,YAAA,EAAe,UAAU,CAAA;;AAEtB,kBAAA,CAAA;;KAEd;;AAKH;;AAEG;AACH,IAAA,WAAW,sBAAsB,GAAA;QAC/B,OAAO,CAAA,EAAG,MAAM,CAAA,sBAAA,CAAwB;;AAE1C;;AAEG;AACH,IAAA,WAAW,oBAAoB,GAAA;QAC7B,OAAO,CAAA,EAAG,MAAM,CAAA,qBAAA,CAAuB;;;AAZlC,yBAAM,CAAA,MAAA,GAAG,MAAH;AA5Fb,UAAA,CAAA;AADC,IAAA,KAAK;AACiC,CAAA,EAAA,yBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAFnC,yBAAyB,GAAA,UAAA,CAAA;AAD9B,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,yBAAA,CAA2B;AAC7C,CAAA,EAAA,yBAAyB,CA4G9B;AAED,kCAAe,yBAAyB;;;;"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { css } from 'lit';
|
9
|
+
|
10
|
+
var styles = css(["a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-feature-settings:\"liga\" 1;font-size:100%;margin:0;padding:0;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{background-color:var(--cds-custom-background,#fff);color:var(--cds-custom-text-primary,#161616);line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}html{font-size:100%}body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-custom-heading-06-font-size,2.625rem);font-weight:var(--cds-custom-heading-06-font-weight,300);letter-spacing:var(--cds-custom-heading-06-letter-spacing,0);line-height:var(--cds-custom-heading-06-line-height,1.199)}h2{font-size:var(--cds-custom-heading-05-font-size,2rem);font-weight:var(--cds-custom-heading-05-font-weight,400);letter-spacing:var(--cds-custom-heading-05-letter-spacing,0);line-height:var(--cds-custom-heading-05-line-height,1.25)}h3{font-size:var(--cds-custom-heading-04-font-size,1.75rem);font-weight:var(--cds-custom-heading-04-font-weight,400);letter-spacing:var(--cds-custom-heading-04-letter-spacing,0);line-height:var(--cds-custom-heading-04-line-height,1.28572)}h4{font-size:var(--cds-custom-heading-03-font-size,1.25rem);font-weight:var(--cds-custom-heading-03-font-weight,400);letter-spacing:var(--cds-custom-heading-03-letter-spacing,0);line-height:var(--cds-custom-heading-03-line-height,1.4)}h5{font-size:var(--cds-custom-heading-02-font-size,1rem);font-weight:var(--cds-custom-heading-02-font-weight,600);letter-spacing:var(--cds-custom-heading-02-letter-spacing,0);line-height:var(--cds-custom-heading-02-line-height,1.5)}h6{font-size:var(--cds-custom-heading-01-font-size,.875rem);font-weight:var(--cds-custom-heading-01-font-weight,600);letter-spacing:var(--cds-custom-heading-01-letter-spacing,.16px);line-height:var(--cds-custom-heading-01-line-height,1.42857)}p{font-size:var(--cds-custom-body-02-font-size,1rem);font-weight:var(--cds-custom-body-02-font-weight,400);letter-spacing:var(--cds-custom-body-02-letter-spacing,0);line-height:var(--cds-custom-body-02-line-height,1.5)}a{color:var(--cds-custom-link-primary,#0062fe)}em{font-style:italic}@keyframes cds-custom--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds-custom--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds-custom--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}.cds-custom--layout--size-xs{--cds-custom-layout-size-height-context:var(--cds-custom-layout-size-height-xs,1.5rem);--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context)}.cds-custom--layout-constraint--size__default-xs{--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context,var(--cds-custom-layout-size-height-xs,1.5rem))}.cds-custom--layout-constraint--size__min-xs{--cds-custom-layout-size-height-min:var(--cds-custom-layout-size-height-xs,1.5rem)}.cds-custom--layout-constraint--size__max-xs{--cds-custom-layout-size-height-max:var(--cds-custom-layout-size-height-xs,1.5rem)}.cds-custom--layout--size-sm{--cds-custom-layout-size-height-context:var(--cds-custom-layout-size-height-sm,2rem);--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context)}.cds-custom--layout-constraint--size__default-sm{--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context,var(--cds-custom-layout-size-height-sm,2rem))}.cds-custom--layout-constraint--size__min-sm{--cds-custom-layout-size-height-min:var(--cds-custom-layout-size-height-sm,2rem)}.cds-custom--layout-constraint--size__max-sm{--cds-custom-layout-size-height-max:var(--cds-custom-layout-size-height-sm,2rem)}.cds-custom--layout--size-md{--cds-custom-layout-size-height-context:var(--cds-custom-layout-size-height-md,2.5rem);--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context)}.cds-custom--layout-constraint--size__default-md{--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context,var(--cds-custom-layout-size-height-md,2.5rem))}.cds-custom--layout-constraint--size__min-md{--cds-custom-layout-size-height-min:var(--cds-custom-layout-size-height-md,2.5rem)}.cds-custom--layout-constraint--size__max-md{--cds-custom-layout-size-height-max:var(--cds-custom-layout-size-height-md,2.5rem)}.cds-custom--layout--size-lg{--cds-custom-layout-size-height-context:var(--cds-custom-layout-size-height-lg,3rem);--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context)}.cds-custom--layout-constraint--size__default-lg{--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context,var(--cds-custom-layout-size-height-lg,3rem))}.cds-custom--layout-constraint--size__min-lg{--cds-custom-layout-size-height-min:var(--cds-custom-layout-size-height-lg,3rem)}.cds-custom--layout-constraint--size__max-lg{--cds-custom-layout-size-height-max:var(--cds-custom-layout-size-height-lg,3rem)}.cds-custom--layout--size-xl{--cds-custom-layout-size-height-context:var(--cds-custom-layout-size-height-xl,4rem);--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context)}.cds-custom--layout-constraint--size__default-xl{--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context,var(--cds-custom-layout-size-height-xl,4rem))}.cds-custom--layout-constraint--size__min-xl{--cds-custom-layout-size-height-min:var(--cds-custom-layout-size-height-xl,4rem)}.cds-custom--layout-constraint--size__max-xl{--cds-custom-layout-size-height-max:var(--cds-custom-layout-size-height-xl,4rem)}.cds-custom--layout--size-2xl{--cds-custom-layout-size-height-context:var(--cds-custom-layout-size-height-2xl,5rem);--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context)}.cds-custom--layout-constraint--size__default-2xl{--cds-custom-layout-size-height:var(--cds-custom-layout-size-height-context,var(--cds-custom-layout-size-height-2xl,5rem))}.cds-custom--layout-constraint--size__min-2xl{--cds-custom-layout-size-height-min:var(--cds-custom-layout-size-height-2xl,5rem)}.cds-custom--layout-constraint--size__max-2xl{--cds-custom-layout-size-height-max:var(--cds-custom-layout-size-height-2xl,5rem)}.cds-custom--layout--density-condensed{--cds-custom-layout-density-padding-inline-context:var(--cds-custom-layout-density-padding-inline-condensed,0.5rem);--cds-custom-layout-density-padding-inline:var(--cds-custom-layout-density-padding-inline-context)}.cds-custom--layout-constraint--density__default-condensed{--cds-custom-layout-density-padding-inline:var(--cds-custom-layout-density-padding-inline-context,var(--cds-custom-layout-density-padding-inline-condensed,0.5rem))}.cds-custom--layout-constraint--density__min-condensed{--cds-custom-layout-density-padding-inline-min:var(--cds-custom-layout-density-padding-inline-condensed,0.5rem)}.cds-custom--layout-constraint--density__max-condensed{--cds-custom-layout-density-padding-inline-max:var(--cds-custom-layout-density-padding-inline-condensed,0.5rem)}.cds-custom--layout--density-normal{--cds-custom-layout-density-padding-inline-context:var(--cds-custom-layout-density-padding-inline-normal,1rem);--cds-custom-layout-density-padding-inline:var(--cds-custom-layout-density-padding-inline-context)}.cds-custom--layout-constraint--density__default-normal{--cds-custom-layout-density-padding-inline:var(--cds-custom-layout-density-padding-inline-context,var(--cds-custom-layout-density-padding-inline-normal,1rem))}.cds-custom--layout-constraint--density__min-normal{--cds-custom-layout-density-padding-inline-min:var(--cds-custom-layout-density-padding-inline-normal,1rem)}.cds-custom--layout-constraint--density__max-normal{--cds-custom-layout-density-padding-inline-max:var(--cds-custom-layout-density-padding-inline-normal,1rem)}:root{--cds-custom-layout-size-height-xs:1.5rem;--cds-custom-layout-size-height-sm:2rem;--cds-custom-layout-size-height-md:2.5rem;--cds-custom-layout-size-height-lg:3rem;--cds-custom-layout-size-height-xl:4rem;--cds-custom-layout-size-height-2xl:5rem;--cds-custom-layout-size-height-min:0px;--cds-custom-layout-size-height-max:999999999px;--cds-custom-layout-density-padding-inline-condensed:0.5rem;--cds-custom-layout-density-padding-inline-normal:1rem;--cds-custom-layout-density-padding-inline-min:0px;--cds-custom-layout-density-padding-inline-max:999999999px}.cds-custom--assistive-text,.cds-custom--visually-hidden{block-size:1px;border:0;margin:-1px;overflow:hidden;padding:0;position:absolute;clip:rect(0,0,0,0);inline-size:1px;visibility:inherit;white-space:nowrap}.c4p--carousel{position:relative}.c4p--carousel:focus{outline:none}.c4p--carousel__elements-container{overflow:hidden}.c4p--carousel__elements-container--scroll-max,.c4p--carousel__elements-container--scrolled{inline-size:2rem;inset-block:0;pointer-events:none;position:absolute;z-index:1}.c4p--carousel__elements-container--scrolled{inset-inline-start:0}.c4p--carousel__elements-container--scroll-max{inset-inline-end:0}.c4p--carousel__elements{display:flex;overflow:scroll;-ms-overflow-style:none;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.c4p--carousel__elements:focus{outline:2px solid var(--cds-custom-focus,#0f62fe);outline-offset:-2px}@media screen and (prefers-contrast){.c4p--carousel__elements:focus{outline-style:dotted}}@media (prefers-reduced-motion){.c4p--carousel__elements{scroll-behavior:auto}}.c4p--carousel__elements::-webkit-scrollbar{display:none}.c4p--interstitial-screen--body{background-color:var(--cds-custom-background,#fff);flex-grow:1;margin:0;overflow:hidden auto;padding:0}.c4p--interstitial-screen--progress{margin-block-end:.75rem}.c4p--interstitial-screen__carousel{block-size:100%}.c4p--interstitial-screen__carousel .c4p--carousel__item{flex:0 0 100%;scroll-snap-align:start}.c4p--interstitial-screen--internal-body{margin:0!important;padding:0!important}.c4p--interstitial-screen--content{block-size:100%}.c4p--interstitial-screen--internal-header{background-color:var(--cds-custom-background,#fff);margin-block-end:0!important;min-block-size:3rem;padding-block-start:1.5rem;padding-inline-start:2rem!important;position:relative}.c4p--interstitial-screen--internal-header:empty{min-block-size:0}.c4p--interstitial-screen--internal-header .c4p--interstitial-screen--titleContainer{margin-block-end:1rem}.c4p--interstitial-screen--internal-header .c4p--interstitial-screen--titleContainer h1{font-size:var(--cds-custom-productive-heading-04-font-size,1.75rem);font-weight:var(--cds-custom-productive-heading-04-font-weight,400);letter-spacing:var(--cds-custom-productive-heading-04-letter-spacing,0);line-height:var(--cds-custom-productive-heading-04-line-height,1.28572);margin-block-end:.5rem}.c4p--interstitial-screen--internal-header .c4p--interstitial-screen--titleContainer h1:empty{padding:0}.c4p--interstitial-screen--internal-header .c4p--interstitial-screen--titleContainer h2{font-size:var(--cds-custom-productive-heading-03-font-size,1.25rem);font-weight:var(--cds-custom-productive-heading-03-font-weight,400);letter-spacing:var(--cds-custom-productive-heading-03-letter-spacing,0);line-height:var(--cds-custom-productive-heading-03-line-height,1.4)}.c4p--interstitial-screen--internal-header .c4p--interstitial-screen--titleContainer h2:empty{padding:0}.c4p--interstitial-screen--internal-header--has-title{background:var(--cds-custom-layer-01,#f4f4f4);border-block-end:1px solid var(--cds-custom-border-subtle-01,#c6c6c6)}.c4p--interstitial-screen--internal-header--has-title .c4p--interstitial-screen--progress{margin-block-start:0}.c4p--interstitial-screen--footer{background:var(--cds-custom-background,#fff);border-block-start:1px solid var(--cds-custom-border-subtle-01,#c6c6c6);box-sizing:initial;display:flex;flex-direction:row;inline-size:100%;justify-content:flex-end}.c4p--interstitial-screen--footer .c4p--interstitial-screen--next-btn,.c4p--interstitial-screen--footer .c4p--interstitial-screen--prev-btn,.c4p--interstitial-screen--footer .c4p--interstitial-screen--start-btn{inline-size:18.75%;min-inline-size:12.5rem;padding-block-end:2rem}.c4p--interstitial-screen--footer .c4p--interstitial-screen--skip-btn{flex-grow:1!important;max-inline-size:none;padding-inline-start:2rem}.c4p--interstitial-screen--footer .cds-custom--inline-loading{inline-size:2rem;inset-block-start:0;inset-inline-end:0;position:absolute}.c4p--interstitial-screen--footer-controls{display:flex;flex-direction:row;margin-inline-start:auto}.c4p--interstitial-screen--full-screen,:host([fullscreen]){inset-block-start:0;inset-inline:0;position:fixed}.c4p--interstitial-screen--full-screen .c4p--interstitial-screen--container,:host([fullscreen]) .c4p--interstitial-screen--container{block-size:100vh;display:flex;flex-direction:column;margin:0;max-inline-size:100vw;padding:0}.c4p--interstitial-screen__body-container{padding:0}.carousel__view-stack .carousel__itemsWrapper{block-size:100%;inline-size:100%;min-inline-size:20vh;overflow:hidden;position:relative}.c4p--interstitial-screen--body{block-size:100%}.c4p--interstitial-screen__carousel,.c4p--interstitial-screen__contentWrapper{display:flex}:host{display:flex;flex-grow:1;padding-block-end:0!important}"]);
|
11
|
+
|
12
|
+
export { styles as default };
|
13
|
+
//# sourceMappingURL=interstitial-screen-body.scss.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interstitial-screen-body.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { disableButtonConfigType } from './interstitial-screen';
|
2
|
+
interface InterstitialDetailsType {
|
3
|
+
isFullScreen: boolean;
|
4
|
+
currentStep: number;
|
5
|
+
stepDetails: {
|
6
|
+
stepTitle: string;
|
7
|
+
id: string | number;
|
8
|
+
}[];
|
9
|
+
carouselAPI?: any;
|
10
|
+
disableActions: disableButtonConfigType;
|
11
|
+
}
|
12
|
+
export declare const interstitialDetailsSignal: import("@lit-labs/signals").Signal.State<InterstitialDetailsType>;
|
13
|
+
export declare const resetInterstitialDetailsSignal: () => void;
|
14
|
+
export declare const updateInterstitialDetailsSignal: ({ name, detail }: {
|
15
|
+
name: any;
|
16
|
+
detail: any;
|
17
|
+
}) => void;
|
18
|
+
export {};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { signal } from '@lit-labs/signals';
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @license
|
12
|
+
*
|
13
|
+
* Copyright IBM Corp. 2025
|
14
|
+
*
|
15
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/
|
18
|
+
const interstitialDetailsSignal = signal({
|
19
|
+
isFullScreen: false,
|
20
|
+
currentStep: 0,
|
21
|
+
stepDetails: [],
|
22
|
+
disableActions: {},
|
23
|
+
});
|
24
|
+
const resetInterstitialDetailsSignal = () => {
|
25
|
+
interstitialDetailsSignal.set({
|
26
|
+
isFullScreen: false,
|
27
|
+
currentStep: 0,
|
28
|
+
stepDetails: [],
|
29
|
+
disableActions: {},
|
30
|
+
});
|
31
|
+
};
|
32
|
+
const updateInterstitialDetailsSignal = ({ name, detail }) => {
|
33
|
+
if (name === 'stepDetails') {
|
34
|
+
interstitialDetailsSignal.set(Object.assign(Object.assign({}, interstitialDetailsSignal.get()), { stepDetails: [...interstitialDetailsSignal.get().stepDetails, detail] }));
|
35
|
+
}
|
36
|
+
else if (name === 'isFullScreen') {
|
37
|
+
interstitialDetailsSignal.set(Object.assign(Object.assign({}, interstitialDetailsSignal.get()), { isFullScreen: detail }));
|
38
|
+
}
|
39
|
+
else if (name === 'currentStep') {
|
40
|
+
interstitialDetailsSignal.set(Object.assign(Object.assign({}, interstitialDetailsSignal.get()), { currentStep: detail }));
|
41
|
+
}
|
42
|
+
else if (name === 'disableActions') {
|
43
|
+
interstitialDetailsSignal.set(Object.assign(Object.assign({}, interstitialDetailsSignal.get()), { disableActions: detail }));
|
44
|
+
}
|
45
|
+
};
|
46
|
+
|
47
|
+
export { interstitialDetailsSignal, resetInterstitialDetailsSignal, updateInterstitialDetailsSignal };
|
48
|
+
//# sourceMappingURL=interstitial-screen-context.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interstitial-screen-context.js","sources":["../../../src/components/interstitial-screen/interstitial-screen-context.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;AAOG;AAWI,MAAM,yBAAyB,GAAG,MAAM,CAA0B;AACvE,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,cAAc,EAAE,EAAE;AACnB,CAAA;AACM,MAAM,8BAA8B,GAAG,MAAK;IACjD,yBAAyB,CAAC,GAAG,CAAC;AAC5B,QAAA,YAAY,EAAE,KAAK;AACnB,QAAA,WAAW,EAAE,CAAC;AACd,QAAA,WAAW,EAAE,EAAE;AACf,QAAA,cAAc,EAAE,EAAE;AACnB,KAAA,CAAC;AACJ;AACa,MAAA,+BAA+B,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAI;AAClE,IAAA,IAAI,IAAI,KAAK,aAAa,EAAE;QAC1B,yBAAyB,CAAC,GAAG,CACxB,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,yBAAyB,CAAC,GAAG,EAAE,CAClC,EAAA,EAAA,WAAW,EAAE,CAAC,GAAG,yBAAyB,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC,EAAA,CAAA,CACrE;;AACG,SAAA,IAAI,IAAI,KAAK,cAAc,EAAE;AAClC,QAAA,yBAAyB,CAAC,GAAG,CACxB,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,yBAAyB,CAAC,GAAG,EAAE,CAAA,EAAA,EAClC,YAAY,EAAE,MAAM,EAAA,CAAA,CACpB;;AACG,SAAA,IAAI,IAAI,KAAK,aAAa,EAAE;AACjC,QAAA,yBAAyB,CAAC,GAAG,CACxB,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,yBAAyB,CAAC,GAAG,EAAE,CAAA,EAAA,EAClC,WAAW,EAAE,MAAM,EAAA,CAAA,CACnB;;AACG,SAAA,IAAI,IAAI,KAAK,gBAAgB,EAAE;AACpC,QAAA,yBAAyB,CAAC,GAAG,CACxB,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,yBAAyB,CAAC,GAAG,EAAE,CAAA,EAAA,EAClC,cAAc,EAAE,MAAM,EAAA,CAAA,CACtB;;AAEN;;;;"}
|