@carbon/ibm-products-web-components 0.18.0-rc.0 → 0.19.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 +509 -0
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es/components/notification-panel/date-time-context.d.ts +9 -0
- package/es/components/notification-panel/date-time-context.js +19 -0
- package/es/components/notification-panel/date-time-context.js.map +1 -0
- package/es/components/notification-panel/defs.d.ts +8 -0
- package/es/components/notification-panel/defs.js +8 -0
- package/es/components/notification-panel/defs.js.map +1 -0
- package/es/components/notification-panel/index.d.ts +11 -0
- package/es/components/notification-panel/index.js +11 -0
- package/es/components/notification-panel/index.js.map +1 -0
- package/es/components/notification-panel/notification-footer.d.ts +389 -0
- package/es/components/notification-panel/notification-footer.js +119 -0
- package/es/components/notification-panel/notification-footer.js.map +1 -0
- package/es/components/notification-panel/notification-footer.scss.js +13 -0
- package/es/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es/components/notification-panel/notification-panel.d.ts +458 -0
- package/es/components/notification-panel/notification-panel.js +414 -0
- package/es/components/notification-panel/notification-panel.js.map +1 -0
- package/es/components/notification-panel/notification-panel.scss.js +13 -0
- package/es/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es/components/notification-panel/notification-panel.test.js +30 -0
- package/es/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es/components/notification-panel/notification.d.ts +405 -0
- package/es/components/notification-panel/notification.js +178 -0
- package/es/components/notification-panel/notification.js.map +1 -0
- package/es/components/notification-panel/notification.scss.js +13 -0
- package/es/components/notification-panel/notification.scss.js.map +1 -0
- package/es/components/page-header/index.d.ts +14 -0
- package/es/components/page-header/index.js +14 -0
- package/es/components/page-header/index.js.map +1 -0
- package/es/components/page-header/page-header-breadcrumb.d.ts +35 -0
- package/es/components/page-header/page-header-breadcrumb.js +94 -0
- package/es/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es/components/page-header/page-header-content-text.d.ts +22 -0
- package/es/components/page-header/page-header-content-text.js +56 -0
- package/es/components/page-header/page-header-content-text.js.map +1 -0
- package/es/components/page-header/page-header-content.d.ts +41 -0
- package/es/components/page-header/page-header-content.js +131 -0
- package/es/components/page-header/page-header-content.js.map +1 -0
- package/es/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es/components/page-header/page-header-hero-image.js +38 -0
- package/es/components/page-header/page-header-hero-image.js.map +1 -0
- package/es/components/page-header/page-header-tabs.d.ts +18 -0
- package/es/components/page-header/page-header-tabs.js +47 -0
- package/es/components/page-header/page-header-tabs.js.map +1 -0
- package/es/components/page-header/page-header.d.ts +18 -0
- package/es/components/page-header/page-header.js +38 -0
- package/es/components/page-header/page-header.js.map +1 -0
- package/es/components/page-header/page-header.scss.js +13 -0
- package/es/components/page-header/page-header.scss.js.map +1 -0
- package/es/components/page-header/page-header.test.d.ts +1 -0
- package/es/components/page-header/page-header.test.js +207 -0
- package/es/components/page-header/page-header.test.js.map +1 -0
- package/es/components/side-panel/side-panel.d.ts +4 -0
- package/es/components/side-panel/side-panel.js +21 -12
- package/es/components/side-panel/side-panel.js.map +1 -1
- package/es/components/side-panel/side-panel.scss.js +1 -1
- package/es/components/side-panel/side-panel.test.js +21 -0
- package/es/components/side-panel/side-panel.test.js.map +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/globals/internal/storybook-cdn.js +1 -1
- package/es/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es/globals/js/utils/getSupportedLocale.js +35 -0
- package/es/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es/index.d.ts +6 -0
- package/es/index.js +6 -0
- package/es/index.js.map +1 -1
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es/{package.json.js → packages/ibm-products-web-components/package.json.js} +1 -1
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es-custom/components/notification-panel/date-time-context.d.ts +9 -0
- package/es-custom/components/notification-panel/date-time-context.js +19 -0
- package/es-custom/components/notification-panel/date-time-context.js.map +1 -0
- package/es-custom/components/notification-panel/defs.d.ts +8 -0
- package/es-custom/components/notification-panel/defs.js +8 -0
- package/es-custom/components/notification-panel/defs.js.map +1 -0
- package/es-custom/components/notification-panel/index.d.ts +11 -0
- package/es-custom/components/notification-panel/index.js +11 -0
- package/es-custom/components/notification-panel/index.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.d.ts +389 -0
- package/es-custom/components/notification-panel/notification-footer.js +119 -0
- package/es-custom/components/notification-panel/notification-footer.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.d.ts +458 -0
- package/es-custom/components/notification-panel/notification-panel.js +414 -0
- package/es-custom/components/notification-panel/notification-panel.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification-panel.test.js +30 -0
- package/es-custom/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es-custom/components/notification-panel/notification.d.ts +405 -0
- package/es-custom/components/notification-panel/notification.js +178 -0
- package/es-custom/components/notification-panel/notification.js.map +1 -0
- package/es-custom/components/notification-panel/notification.scss.js +13 -0
- package/es-custom/components/notification-panel/notification.scss.js.map +1 -0
- package/es-custom/components/page-header/index.d.ts +14 -0
- package/es-custom/components/page-header/index.js +14 -0
- package/es-custom/components/page-header/index.js.map +1 -0
- package/es-custom/components/page-header/page-header-breadcrumb.d.ts +35 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js +94 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es-custom/components/page-header/page-header-content-text.d.ts +22 -0
- package/es-custom/components/page-header/page-header-content-text.js +56 -0
- package/es-custom/components/page-header/page-header-content-text.js.map +1 -0
- package/es-custom/components/page-header/page-header-content.d.ts +41 -0
- package/es-custom/components/page-header/page-header-content.js +131 -0
- package/es-custom/components/page-header/page-header-content.js.map +1 -0
- package/es-custom/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es-custom/components/page-header/page-header-hero-image.js +38 -0
- package/es-custom/components/page-header/page-header-hero-image.js.map +1 -0
- package/es-custom/components/page-header/page-header-tabs.d.ts +18 -0
- package/es-custom/components/page-header/page-header-tabs.js +47 -0
- package/es-custom/components/page-header/page-header-tabs.js.map +1 -0
- package/es-custom/components/page-header/page-header.d.ts +18 -0
- package/es-custom/components/page-header/page-header.js +38 -0
- package/es-custom/components/page-header/page-header.js.map +1 -0
- package/es-custom/components/page-header/page-header.scss.js +13 -0
- package/es-custom/components/page-header/page-header.scss.js.map +1 -0
- package/es-custom/components/page-header/page-header.test.d.ts +1 -0
- package/es-custom/components/page-header/page-header.test.js +207 -0
- package/es-custom/components/page-header/page-header.test.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 +21 -12
- package/es-custom/components/side-panel/side-panel.js.map +1 -1
- package/es-custom/components/side-panel/side-panel.scss.js +1 -1
- package/es-custom/components/side-panel/side-panel.test.js +21 -0
- package/es-custom/components/side-panel/side-panel.test.js.map +1 -1
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/globals/internal/storybook-cdn.js +1 -1
- package/es-custom/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js +35 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es-custom/index.d.ts +6 -0
- package/es-custom/index.js +6 -0
- package/es-custom/index.js.map +1 -1
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es-custom/{package.json.js → packages/ibm-products-web-components/package.json.js} +1 -1
- package/lib/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/lib/components/notification-panel/date-time-context.d.ts +9 -0
- package/lib/components/notification-panel/defs.d.ts +8 -0
- package/lib/components/notification-panel/defs.js +10 -0
- package/lib/components/notification-panel/defs.js.map +1 -0
- package/lib/components/notification-panel/index.d.ts +11 -0
- package/lib/components/notification-panel/notification-footer.d.ts +389 -0
- package/lib/components/notification-panel/notification-panel.d.ts +458 -0
- package/lib/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/lib/components/notification-panel/notification.d.ts +405 -0
- package/lib/components/page-header/index.d.ts +14 -0
- package/lib/components/page-header/page-header-breadcrumb.d.ts +35 -0
- package/lib/components/page-header/page-header-content-text.d.ts +22 -0
- package/lib/components/page-header/page-header-content.d.ts +41 -0
- package/lib/components/page-header/page-header-hero-image.d.ts +18 -0
- package/lib/components/page-header/page-header-tabs.d.ts +18 -0
- package/lib/components/page-header/page-header.d.ts +18 -0
- package/lib/components/page-header/page-header.test.d.ts +1 -0
- package/lib/components/side-panel/side-panel.d.ts +4 -0
- package/lib/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/lib/globals/js/utils/getSupportedLocale.js +37 -0
- package/lib/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/lib/index.d.ts +6 -0
- package/package.json +12 -11
- package/scss/components/notification-panel/notification-footer.scss +65 -0
- package/scss/components/notification-panel/notification-panel.scss +59 -0
- package/scss/components/notification-panel/notification.scss +147 -0
- package/scss/components/notification-panel/story-styles.scss +116 -0
- package/scss/components/page-header/page-header.scss +288 -0
- /package/es/{package.json.js.map → packages/ibm-products-web-components/package.json.js.map} +0 -0
- /package/es-custom/{package.json.js.map → packages/ibm-products-web-components/package.json.js.map} +0 -0
@@ -0,0 +1,405 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2023, 2024
|
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/components/button/index.js';
|
11
|
+
declare const CDSNotification_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
|
45
|
+
/**
|
46
|
+
* Sets the type of notification to display: 'error', 'warning', 'success', or 'informational'
|
47
|
+
*/
|
48
|
+
? /**
|
49
|
+
* Sets the type of notification to display: 'error', 'warning', 'success', or 'informational'
|
50
|
+
*/: boolean | EventListenerOptions): void;
|
51
|
+
readonly attributes: NamedNodeMap;
|
52
|
+
readonly classList: DOMTokenList;
|
53
|
+
className: string;
|
54
|
+
readonly clientHeight: number;
|
55
|
+
readonly clientLeft: number;
|
56
|
+
readonly clientTop: number;
|
57
|
+
readonly clientWidth: number;
|
58
|
+
readonly currentCSSZoom: number;
|
59
|
+
id: string;
|
60
|
+
innerHTML: string;
|
61
|
+
readonly localName: string;
|
62
|
+
readonly namespaceURI: string | null;
|
63
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
64
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
65
|
+
outerHTML: string;
|
66
|
+
readonly ownerDocument: Document;
|
67
|
+
readonly part: DOMTokenList;
|
68
|
+
readonly prefix: string | null;
|
69
|
+
readonly scrollHeight: number;
|
70
|
+
scrollLeft: number;
|
71
|
+
scrollTop: number;
|
72
|
+
readonly scrollWidth: number;
|
73
|
+
readonly shadowRoot: ShadowRoot | null;
|
74
|
+
slot: string;
|
75
|
+
readonly tagName: string;
|
76
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
77
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
78
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
79
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
80
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
81
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
82
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
83
|
+
getAttribute(qualifiedName: string): string | null;
|
84
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
85
|
+
getAttributeNames(): string[];
|
86
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
87
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
88
|
+
getBoundingClientRect(): DOMRect;
|
89
|
+
getClientRects(): DOMRectList;
|
90
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
91
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
92
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
93
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
94
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
95
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
96
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
97
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
98
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
99
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
100
|
+
getHTML(options?: GetHTMLOptions): string;
|
101
|
+
hasAttribute(qualifiedName: string): boolean;
|
102
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
103
|
+
hasAttributes(): boolean;
|
104
|
+
hasPointerCapture(pointerId: number): boolean;
|
105
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
106
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
107
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
108
|
+
matches(selectors: string): boolean;
|
109
|
+
releasePointerCapture(pointerId: number): void;
|
110
|
+
removeAttribute(qualifiedName: string): void;
|
111
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
112
|
+
removeAttributeNode(attr: Attr): Attr;
|
113
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
114
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
115
|
+
scroll(options?: ScrollToOptions): void;
|
116
|
+
scroll(x: number, y: number): void;
|
117
|
+
scrollBy(options?: ScrollToOptions): void;
|
118
|
+
scrollBy(x: number, y: number): void;
|
119
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
120
|
+
scrollTo(options?: ScrollToOptions): void;
|
121
|
+
scrollTo(x: number, y: number): void;
|
122
|
+
setAttribute(qualifiedName: string, value: string): void;
|
123
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
124
|
+
setAttributeNode(attr: Attr): Attr | null;
|
125
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
126
|
+
setHTMLUnsafe(html: string): void;
|
127
|
+
setPointerCapture(pointerId: number): void;
|
128
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
129
|
+
webkitMatchesSelector(selectors: string): boolean;
|
130
|
+
readonly baseURI: string;
|
131
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
132
|
+
readonly firstChild: ChildNode | null;
|
133
|
+
readonly isConnected: boolean;
|
134
|
+
readonly lastChild: ChildNode | null;
|
135
|
+
readonly nextSibling: ChildNode | null;
|
136
|
+
readonly nodeName: string;
|
137
|
+
readonly nodeType: number;
|
138
|
+
nodeValue: string | null;
|
139
|
+
readonly parentElement: HTMLElement | null;
|
140
|
+
readonly parentNode: ParentNode | null;
|
141
|
+
readonly previousSibling: ChildNode | null;
|
142
|
+
textContent: string | null;
|
143
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
144
|
+
cloneNode(deep?: boolean): Node;
|
145
|
+
compareDocumentPosition(other: Node): number;
|
146
|
+
contains(other: Node | null): boolean;
|
147
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
148
|
+
hasChildNodes(): boolean;
|
149
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
150
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
151
|
+
isEqualNode(otherNode: Node | null): boolean;
|
152
|
+
isSameNode(otherNode: Node | null): boolean;
|
153
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
154
|
+
lookupPrefix(namespace: string | null): string | null;
|
155
|
+
normalize(): void;
|
156
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
157
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
158
|
+
readonly ELEMENT_NODE: 1;
|
159
|
+
readonly ATTRIBUTE_NODE: 2;
|
160
|
+
readonly TEXT_NODE: 3;
|
161
|
+
readonly CDATA_SECTION_NODE: 4;
|
162
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
163
|
+
readonly ENTITY_NODE: 6;
|
164
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
165
|
+
readonly COMMENT_NODE: 8;
|
166
|
+
readonly DOCUMENT_NODE: 9;
|
167
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
168
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
169
|
+
readonly NOTATION_NODE: 12;
|
170
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
171
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
172
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
173
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
174
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
175
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
176
|
+
dispatchEvent(event: Event): boolean;
|
177
|
+
ariaAtomic: string | null;
|
178
|
+
ariaAutoComplete: string | null;
|
179
|
+
ariaBrailleLabel: string | null;
|
180
|
+
ariaBrailleRoleDescription: string | null;
|
181
|
+
ariaBusy: string | null;
|
182
|
+
ariaChecked: string | null;
|
183
|
+
ariaColCount: string | null;
|
184
|
+
ariaColIndex: string | null;
|
185
|
+
ariaColIndexText: string | null;
|
186
|
+
ariaColSpan: string | null;
|
187
|
+
ariaCurrent: string | null;
|
188
|
+
ariaDescription: string | null;
|
189
|
+
ariaDisabled: string | null;
|
190
|
+
ariaExpanded: string | null;
|
191
|
+
ariaHasPopup: string | null;
|
192
|
+
ariaHidden: string | null;
|
193
|
+
ariaInvalid: string | null;
|
194
|
+
ariaKeyShortcuts: string | null;
|
195
|
+
ariaLabel: string | null;
|
196
|
+
ariaLevel: string | null;
|
197
|
+
ariaLive: string | null;
|
198
|
+
ariaModal: string | null;
|
199
|
+
ariaMultiLine: string | null;
|
200
|
+
ariaMultiSelectable: string | null;
|
201
|
+
ariaOrientation: string | null;
|
202
|
+
ariaPlaceholder: string | null;
|
203
|
+
ariaPosInSet: string | null;
|
204
|
+
ariaPressed: string | null;
|
205
|
+
ariaReadOnly: string | null;
|
206
|
+
ariaRequired: string | null;
|
207
|
+
ariaRoleDescription: string | null;
|
208
|
+
ariaRowCount: string | null;
|
209
|
+
ariaRowIndex: string | null;
|
210
|
+
ariaRowIndexText: string | null;
|
211
|
+
ariaRowSpan: string | null;
|
212
|
+
ariaSelected: string | null;
|
213
|
+
ariaSetSize: string | null;
|
214
|
+
ariaSort: string | null;
|
215
|
+
ariaValueMax: string | null;
|
216
|
+
ariaValueMin: string | null;
|
217
|
+
ariaValueNow: string | null;
|
218
|
+
ariaValueText: string | null;
|
219
|
+
role: string | null;
|
220
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
221
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
222
|
+
after(...nodes: (Node | string)[]): void;
|
223
|
+
before(...nodes: (Node | string)[]): void;
|
224
|
+
remove(): void;
|
225
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
226
|
+
readonly nextElementSibling: Element | null;
|
227
|
+
readonly previousElementSibling: Element | null;
|
228
|
+
readonly childElementCount: number;
|
229
|
+
readonly children: HTMLCollection;
|
230
|
+
readonly firstElementChild: Element | null;
|
231
|
+
readonly lastElementChild: Element | null;
|
232
|
+
append(...nodes: (Node | string)[]): void;
|
233
|
+
prepend(...nodes: (Node | string)[]): void;
|
234
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
235
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
236
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
237
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
238
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
239
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
240
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
241
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
242
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
243
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
244
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
245
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
246
|
+
readonly attributeStyleMap: StylePropertyMap;
|
247
|
+
readonly style: CSSStyleDeclaration;
|
248
|
+
contentEditable: string;
|
249
|
+
enterKeyHint: string;
|
250
|
+
inputMode: string;
|
251
|
+
readonly isContentEditable: boolean;
|
252
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
253
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
254
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
255
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
256
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
257
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
258
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
259
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
260
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
261
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
262
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
263
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
264
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
265
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
266
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
267
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
268
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
269
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
270
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
271
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
272
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
273
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
274
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
275
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
276
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
277
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
278
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
279
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
280
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
281
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
282
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
283
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
284
|
+
onerror: OnErrorEventHandler;
|
285
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
286
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
287
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
288
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
289
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
290
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
291
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
292
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
293
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
294
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
295
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
296
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
297
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
298
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
299
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
300
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
301
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
302
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
303
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
304
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
305
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
306
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
307
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
308
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
309
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
310
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
311
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
312
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
313
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
314
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
315
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
316
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
317
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
318
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
319
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
320
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
321
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
322
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
323
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
324
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
325
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
326
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
327
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
328
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
329
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
330
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
331
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
332
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
333
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
334
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
335
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
336
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
337
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
338
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
339
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
340
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
341
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
342
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
343
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
344
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
345
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
346
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
347
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
348
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
349
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
350
|
+
autofocus: boolean;
|
351
|
+
readonly dataset: DOMStringMap;
|
352
|
+
nonce?: string;
|
353
|
+
tabIndex: number;
|
354
|
+
blur(): void;
|
355
|
+
focus(options?: FocusOptions): void;
|
356
|
+
};
|
357
|
+
_hostListeners: {
|
358
|
+
[listenerName: string]: {
|
359
|
+
[type: string]: {
|
360
|
+
options?: boolean | AddEventListenerOptions;
|
361
|
+
};
|
362
|
+
};
|
363
|
+
};
|
364
|
+
} & typeof LitElement;
|
365
|
+
/**
|
366
|
+
* Notification.
|
367
|
+
* @element c4p-notification
|
368
|
+
* @slot title - The Title for the notification.
|
369
|
+
* @slot description - The description for the notification.
|
370
|
+
* @csspart dialog The dialog.
|
371
|
+
* The custom event is fired when a notification is clicked or when the Enter key is pressed on it.
|
372
|
+
* @fires c4p-notification-dismiss - The custom event is fired when the notification is closed by a user gesture.
|
373
|
+
*/
|
374
|
+
declare class CDSNotification extends CDSNotification_base {
|
375
|
+
/**
|
376
|
+
* Sets the type of notification to display: 'error', 'warning', 'success', or 'informational'
|
377
|
+
*/
|
378
|
+
type?: 'error' | 'warning' | 'success' | 'informational';
|
379
|
+
/**
|
380
|
+
* Sets the timestamp for the notification, typically used to indicate when it was received
|
381
|
+
*/
|
382
|
+
timestamp?: Date;
|
383
|
+
dateTimeLocale: string | undefined;
|
384
|
+
private _handleKeyDown;
|
385
|
+
connectedCallback(): void;
|
386
|
+
render(): import("lit-html").TemplateResult<1>;
|
387
|
+
disconnectedCallback(): void;
|
388
|
+
/**
|
389
|
+
* Handles user-initiated dismiss request of the Notification.
|
390
|
+
*
|
391
|
+
* @param event The event that triggered the click.
|
392
|
+
*/
|
393
|
+
private _dismissSingleNotification;
|
394
|
+
private _fetchIcon;
|
395
|
+
/**
|
396
|
+
* A selector selecting tabbable nodes.
|
397
|
+
*/
|
398
|
+
static get selectorTabbable(): string;
|
399
|
+
/**
|
400
|
+
* The custom event is fired when the notification is closed by a user gesture.
|
401
|
+
*/
|
402
|
+
static get notificationDismiss(): string;
|
403
|
+
static styles: any;
|
404
|
+
}
|
405
|
+
export default CDSNotification;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025, 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 './page-header';
|
10
|
+
import './page-header-breadcrumb';
|
11
|
+
import './page-header-content';
|
12
|
+
import './page-header-content-text';
|
13
|
+
import './page-header-hero-image';
|
14
|
+
import './page-header-tabs';
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025, 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
|
+
/**
|
11
|
+
* Page header Breadcrumb Bar.
|
12
|
+
* @element c4p-page-header-breadcrumb
|
13
|
+
*/
|
14
|
+
declare class CDSPageHeaderBreadcrumb extends LitElement {
|
15
|
+
/**
|
16
|
+
* Specify if breadcrumb bar has bottom border.
|
17
|
+
*/
|
18
|
+
border: boolean;
|
19
|
+
/**
|
20
|
+
* Set to `true` if the breadcrumb bar is sitting within a grid
|
21
|
+
* (ie. when used in tandem with page-header-hero-image)
|
22
|
+
*/
|
23
|
+
withinGrid: boolean;
|
24
|
+
/**
|
25
|
+
* Set to `true` if page actions should be flush (no padding)
|
26
|
+
*/
|
27
|
+
pageActionsFlush: boolean;
|
28
|
+
/**
|
29
|
+
* Set to `true` if content actions should be flush (no padding)
|
30
|
+
*/
|
31
|
+
contentActionsFlush: boolean;
|
32
|
+
render(): import("lit-html").TemplateResult<1>;
|
33
|
+
static styles: any;
|
34
|
+
}
|
35
|
+
export default CDSPageHeaderBreadcrumb;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025, 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
|
+
/**
|
11
|
+
* Page header Content Text.
|
12
|
+
* @element c4p-page-header-content-text
|
13
|
+
*/
|
14
|
+
declare class CDSPageHeaderContentText extends LitElement {
|
15
|
+
/**
|
16
|
+
* Subtitle text of the page-header-content
|
17
|
+
*/
|
18
|
+
subtitle: string;
|
19
|
+
render(): import("lit-html").TemplateResult<1>;
|
20
|
+
static styles: any;
|
21
|
+
}
|
22
|
+
export default CDSPageHeaderContentText;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025, 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/components/tooltip/index.js';
|
11
|
+
/**
|
12
|
+
* Page header content.
|
13
|
+
* @element c4p-page-header-content
|
14
|
+
*/
|
15
|
+
declare class CDSPageHeaderContent extends LitElement {
|
16
|
+
/**
|
17
|
+
* Set to `true` if there are contextual actions
|
18
|
+
*/
|
19
|
+
private _hasContextualActions;
|
20
|
+
/**
|
21
|
+
* Handles `slotchange` event.
|
22
|
+
*/
|
23
|
+
protected _handleSlotChange({ target }: Event): void;
|
24
|
+
/**
|
25
|
+
* Title text of the page-header-content
|
26
|
+
*/
|
27
|
+
title: string;
|
28
|
+
/**
|
29
|
+
* Set to `true` if the tag text has ellipsis applied
|
30
|
+
*/
|
31
|
+
_hasEllipsisApplied: boolean;
|
32
|
+
/**
|
33
|
+
* Set to `true` if the breadcrumb bar is sitting within a grid
|
34
|
+
* (ie. when used in tandem with page-header-hero-image)
|
35
|
+
*/
|
36
|
+
withinGrid: boolean;
|
37
|
+
updated(): void;
|
38
|
+
render(): import("lit-html").TemplateResult<1>;
|
39
|
+
static styles: any;
|
40
|
+
}
|
41
|
+
export default CDSPageHeaderContent;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025, 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
|
+
/**
|
11
|
+
* Page header Hero Image.
|
12
|
+
* @element c4p-page-header-hero-image
|
13
|
+
*/
|
14
|
+
declare class CDSPageHeaderHeroImage extends LitElement {
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
16
|
+
static styles: any;
|
17
|
+
}
|
18
|
+
export default CDSPageHeaderHeroImage;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2025, 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
|
+
/**
|
11
|
+
* Page header Tabs Bar.
|
12
|
+
* @element c4p-page-header-tabs
|
13
|
+
*/
|
14
|
+
declare class CDSPageHeaderTabs extends LitElement {
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
16
|
+
static styles: any;
|
17
|
+
}
|
18
|
+
export default CDSPageHeaderTabs;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
*
|
4
|
+
* Copyright IBM Corp. 2019, 2023
|
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
|
+
/**
|
11
|
+
* Page header.
|
12
|
+
* @element c4p-page-header
|
13
|
+
*/
|
14
|
+
declare class CDSPageHeader extends LitElement {
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
16
|
+
static styles: any;
|
17
|
+
}
|
18
|
+
export default CDSPageHeader;
|
@@ -0,0 +1 @@
|
|
1
|
+
import './index';
|
@@ -501,6 +501,10 @@ declare class CDSSidePanel extends CDSSidePanel_base {
|
|
501
501
|
* Selector for page content, used to push content to side except
|
502
502
|
*/
|
503
503
|
selectorPageContent: string;
|
504
|
+
/**
|
505
|
+
* Show/hide the "X" close button
|
506
|
+
*/
|
507
|
+
hideCloseButton: boolean;
|
504
508
|
/**
|
505
509
|
* SidePanel size.
|
506
510
|
*/
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2025
|
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
|
+
* Ensures the requested `locale` is valid, else returns the default locale.
|
9
|
+
*
|
10
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#locales
|
11
|
+
*/
|
12
|
+
export declare const getSupportedLocale: (locale: Intl.LocalesArgument, defaultLocale?: string) => Intl.LocalesArgument;
|
@@ -0,0 +1,37 @@
|
|
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
|
+
'use strict';
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Copyright IBM Corp. 2025
|
12
|
+
*
|
13
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
15
|
+
*/
|
16
|
+
/**
|
17
|
+
* Ensures the requested `locale` is valid, else returns the default locale.
|
18
|
+
*
|
19
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#locales
|
20
|
+
*/
|
21
|
+
const getSupportedLocale = (locale, defaultLocale = 'en-US') => {
|
22
|
+
let supportedLocale;
|
23
|
+
try {
|
24
|
+
// This line will throw an error if `locale` is not supported.
|
25
|
+
Intl.NumberFormat.supportedLocalesOf(locale);
|
26
|
+
// If no error is thrown, return `locale`,
|
27
|
+
supportedLocale = locale;
|
28
|
+
}
|
29
|
+
catch (error) {
|
30
|
+
// else return `defaultLocale`.
|
31
|
+
supportedLocale = defaultLocale;
|
32
|
+
}
|
33
|
+
return supportedLocale;
|
34
|
+
};
|
35
|
+
|
36
|
+
exports.getSupportedLocale = getSupportedLocale;
|
37
|
+
//# sourceMappingURL=getSupportedLocale.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getSupportedLocale.js","sources":["../../../../src/globals/js/utils/getSupportedLocale.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AAEH;;;;AAIG;AAEU,MAAA,kBAAkB,GAAG,CAChC,MAA4B,EAC5B,aAAA,GAAwB,OAAO,KACP;AACxB,IAAA,IAAI,eAAqC;AAEzC,IAAA,IAAI;;AAEF,QAAA,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,MAAM,CAAC;;QAE5C,eAAe,GAAG,MAAM;;IACxB,OAAO,KAAK,EAAE;;QAEd,eAAe,GAAG,aAAa;;AAGjC,IAAA,OAAO,eAAe;AACxB;;;;"}
|
package/lib/index.d.ts
CHANGED
@@ -13,3 +13,9 @@ export { default as CDSAboutModal } from './components/about-modal/about-modal';
|
|
13
13
|
export { default as CDSUseravatar } from './components/user-avatar/user-avatar';
|
14
14
|
export { default as CDSOptionsTile } from './components/options-tile/options-tile';
|
15
15
|
export { default as CDSTruncatedText } from './components/truncated-text/truncated-text';
|
16
|
+
export { default as CDSPageHeader } from './components/page-header/page-header';
|
17
|
+
export { default as CDSPageHeaderBreadcrumb } from './components/page-header/page-header-breadcrumb';
|
18
|
+
export { default as CDSPageHeaderContent } from './components/page-header/page-header-content';
|
19
|
+
export { default as CDSPageHeaderContentText } from './components/page-header/page-header-content-text';
|
20
|
+
export { default as CDSPageHeaderHeroImage } from './components/page-header/page-header-hero-image';
|
21
|
+
export { default as CDSPageHeaderTabs } from './components/page-header/page-header-tabs';
|