@carbon/ibm-products-web-components 0.0.1-canary.3564
Sign up to get free protection for your applications and to get access to all the features.
- package/.storybook/Preview.ts +161 -0
- package/.storybook/_container.scss +73 -0
- package/.storybook/container.ts +41 -0
- package/.storybook/main.ts +25 -0
- package/.storybook/manager.ts +13 -0
- package/.storybook/preview-head.html +3 -0
- package/.storybook/templates/with-layer.scss +38 -0
- package/.storybook/templates/with-layer.ts +90 -0
- package/.storybook/theme.ts +12 -0
- package/LICENSE +201 -0
- package/es/components/side-panel/defs.d.ts +39 -0
- package/es/components/side-panel/defs.js +51 -0
- package/es/components/side-panel/defs.js.map +1 -0
- package/es/components/side-panel/index.d.ts +9 -0
- package/es/components/side-panel/index.js +9 -0
- package/es/components/side-panel/index.js.map +1 -0
- package/es/components/side-panel/side-panel.d.ts +539 -0
- package/es/components/side-panel/side-panel.js +837 -0
- package/es/components/side-panel/side-panel.js.map +1 -0
- package/es/components/side-panel/side-panel.scss.js +13 -0
- package/es/components/side-panel/side-panel.scss.js.map +1 -0
- package/es/components/side-panel/side-panel.test.d.ts +7 -0
- package/es/components/side-panel/side-panel.test.js +56 -0
- package/es/components/side-panel/side-panel.test.js.map +1 -0
- package/es/globals/internal/handle.d.ts +18 -0
- package/es/globals/internal/handle.js +8 -0
- package/es/globals/internal/handle.js.map +1 -0
- package/es/globals/settings.d.ts +15 -0
- package/es/globals/settings.js +28 -0
- package/es/globals/settings.js.map +1 -0
- package/es/index.d.ts +9 -0
- package/es/index.js +9 -0
- package/es/index.js.map +1 -0
- package/lib/components/side-panel/defs.d.ts +39 -0
- package/lib/components/side-panel/defs.js +51 -0
- package/lib/components/side-panel/defs.js.map +1 -0
- package/lib/components/side-panel/index.d.ts +9 -0
- package/lib/components/side-panel/side-panel.d.ts +539 -0
- package/lib/components/side-panel/side-panel.test.d.ts +7 -0
- package/lib/globals/internal/handle.d.ts +18 -0
- package/lib/globals/settings.d.ts +15 -0
- package/lib/globals/settings.js +32 -0
- package/lib/globals/settings.js.map +1 -0
- package/lib/index.d.ts +9 -0
- package/netlify.toml +8 -0
- package/package.json +96 -0
- package/scss/components/side-panel/side-panel.scss +302 -0
- package/scss/components/side-panel/story-styles.scss +46 -0
- package/src/components/side-panel/defs.ts +46 -0
- package/src/components/side-panel/index.ts +10 -0
- package/src/components/side-panel/side-panel.mdx +106 -0
- package/src/components/side-panel/side-panel.scss +302 -0
- package/src/components/side-panel/side-panel.stories.ts +525 -0
- package/src/components/side-panel/side-panel.test.ts +52 -0
- package/src/components/side-panel/side-panel.ts +980 -0
- package/src/components/side-panel/story-styles.scss +46 -0
- package/src/globals/internal/handle.ts +19 -0
- package/src/globals/settings.ts +22 -0
- package/src/index.ts +10 -0
- package/src/typings/resources.d.ts +26 -0
- package/tasks/build.js +165 -0
- package/tools/rollup-plugin-icon-paths.js +39 -0
- package/tools/rollup-plugin-icons.js +73 -0
- package/tools/rollup-plugin-lit-scss.js +89 -0
- package/tools/svg-result-carbon-icon-loader.js +28 -0
- package/tools/svg-result-carbon-icon.js +42 -0
- package/tools/vite-svg-result-carbon-icon-loader.ts +65 -0
- package/tsconfig.json +36 -0
- package/vite.config.ts +32 -0
@@ -0,0 +1,39 @@
|
|
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
|
+
/**
|
10
|
+
* Modal size.
|
11
|
+
*/
|
12
|
+
export declare enum SIDE_PANEL_SIZE {
|
13
|
+
/**
|
14
|
+
* Extra small size.
|
15
|
+
*/
|
16
|
+
EXTRA_SMALL = "xs",
|
17
|
+
/**
|
18
|
+
* Small size.
|
19
|
+
*/
|
20
|
+
SMALL = "sm",
|
21
|
+
/**
|
22
|
+
* Medium size.
|
23
|
+
*/
|
24
|
+
MEDIUM = "md",
|
25
|
+
/**
|
26
|
+
* Large size.
|
27
|
+
*/
|
28
|
+
LARGE = "lg",
|
29
|
+
/**
|
30
|
+
* 2X-Large size.
|
31
|
+
*/
|
32
|
+
EXTRA_EXTRA_LARGE = "2xl"
|
33
|
+
}
|
34
|
+
export declare enum SIDE_PANEL_PLACEMENT {
|
35
|
+
/** right / default */
|
36
|
+
RIGHT = "right",
|
37
|
+
/** left */
|
38
|
+
LEFT = "left"
|
39
|
+
}
|
@@ -0,0 +1,51 @@
|
|
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
|
+
/**
|
9
|
+
* @license
|
10
|
+
*
|
11
|
+
* Copyright IBM Corp. 2023, 2024
|
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
|
+
* Modal size.
|
18
|
+
*/
|
19
|
+
var SIDE_PANEL_SIZE;
|
20
|
+
(function (SIDE_PANEL_SIZE) {
|
21
|
+
/**
|
22
|
+
* Extra small size.
|
23
|
+
*/
|
24
|
+
SIDE_PANEL_SIZE["EXTRA_SMALL"] = "xs";
|
25
|
+
/**
|
26
|
+
* Small size.
|
27
|
+
*/
|
28
|
+
SIDE_PANEL_SIZE["SMALL"] = "sm";
|
29
|
+
/**
|
30
|
+
* Medium size.
|
31
|
+
*/
|
32
|
+
SIDE_PANEL_SIZE["MEDIUM"] = "md";
|
33
|
+
/**
|
34
|
+
* Large size.
|
35
|
+
*/
|
36
|
+
SIDE_PANEL_SIZE["LARGE"] = "lg";
|
37
|
+
/**
|
38
|
+
* 2X-Large size.
|
39
|
+
*/
|
40
|
+
SIDE_PANEL_SIZE["EXTRA_EXTRA_LARGE"] = "2xl";
|
41
|
+
})(SIDE_PANEL_SIZE || (SIDE_PANEL_SIZE = {}));
|
42
|
+
var SIDE_PANEL_PLACEMENT;
|
43
|
+
(function (SIDE_PANEL_PLACEMENT) {
|
44
|
+
/** right / default */
|
45
|
+
SIDE_PANEL_PLACEMENT["RIGHT"] = "right";
|
46
|
+
/** left */
|
47
|
+
SIDE_PANEL_PLACEMENT["LEFT"] = "left";
|
48
|
+
})(SIDE_PANEL_PLACEMENT || (SIDE_PANEL_PLACEMENT = {}));
|
49
|
+
|
50
|
+
export { SIDE_PANEL_PLACEMENT, SIDE_PANEL_SIZE };
|
51
|
+
//# sourceMappingURL=defs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defs.js","sources":["../../../src/components/side-panel/defs.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;AAEG;IACS,gBAyBX;AAzBD,CAAA,UAAY,eAAe,EAAA;AACzB;;AAEG;AACH,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,IAAkB,CAAA;AAElB;;AAEG;AACH,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,IAAY,CAAA;AAEZ;;AAEG;AACH,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,IAAa,CAAA;AAEb;;AAEG;AACH,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,IAAY,CAAA;AAEZ;;AAEG;AACH,IAAA,eAAA,CAAA,mBAAA,CAAA,GAAA,KAAyB,CAAA;AAC3B,CAAC,EAzBW,eAAe,KAAf,eAAe,GAyB1B,EAAA,CAAA,CAAA,CAAA;IAEW,qBAMX;AAND,CAAA,UAAY,oBAAoB,EAAA;;AAE9B,IAAA,oBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;;AAGf,IAAA,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACf,CAAC,EANW,oBAAoB,KAApB,oBAAoB,GAM/B,EAAA,CAAA,CAAA;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
@@ -0,0 +1,539 @@
|
|
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 { SIDE_PANEL_SIZE, SIDE_PANEL_PLACEMENT } from './defs';
|
11
|
+
import '@carbon/web-components/es/components/button/index.js';
|
12
|
+
import '@carbon/web-components/es/components/button/button-set-base.js';
|
13
|
+
import '@carbon/web-components/es/components/icon-button/index.js';
|
14
|
+
import '@carbon/web-components/es/components/layer/index.js';
|
15
|
+
export { SIDE_PANEL_SIZE, SIDE_PANEL_PLACEMENT };
|
16
|
+
declare const CDSSidePanel_base: {
|
17
|
+
new (...args: any[]): {
|
18
|
+
_handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
|
19
|
+
connectedCallback(): void;
|
20
|
+
disconnectedCallback(): void;
|
21
|
+
accessKey: string;
|
22
|
+
readonly accessKeyLabel: string;
|
23
|
+
autocapitalize: string;
|
24
|
+
dir: string;
|
25
|
+
draggable: boolean;
|
26
|
+
hidden: boolean;
|
27
|
+
inert: boolean;
|
28
|
+
innerText: string;
|
29
|
+
lang: string;
|
30
|
+
readonly offsetHeight: number;
|
31
|
+
readonly offsetLeft: number;
|
32
|
+
readonly offsetParent: Element | null;
|
33
|
+
readonly offsetTop: number;
|
34
|
+
readonly offsetWidth: number;
|
35
|
+
outerText: string;
|
36
|
+
popover: string | null;
|
37
|
+
spellcheck: boolean;
|
38
|
+
title: string;
|
39
|
+
translate: boolean;
|
40
|
+
attachInternals(): ElementInternals;
|
41
|
+
click(): void;
|
42
|
+
hidePopover(): void;
|
43
|
+
showPopover(): void;
|
44
|
+
togglePopover(force?: boolean): boolean;
|
45
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
46
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
47
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
48
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
49
|
+
readonly attributes: NamedNodeMap;
|
50
|
+
readonly classList: DOMTokenList;
|
51
|
+
className: string;
|
52
|
+
readonly clientHeight: number;
|
53
|
+
readonly clientLeft: number;
|
54
|
+
readonly clientTop: number;
|
55
|
+
readonly clientWidth: number;
|
56
|
+
id: string;
|
57
|
+
readonly localName: string;
|
58
|
+
readonly namespaceURI: string | null;
|
59
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
60
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
61
|
+
outerHTML: string;
|
62
|
+
readonly ownerDocument: Document;
|
63
|
+
readonly part: DOMTokenList;
|
64
|
+
readonly prefix: string | null;
|
65
|
+
readonly scrollHeight: number;
|
66
|
+
scrollLeft: number;
|
67
|
+
scrollTop: number;
|
68
|
+
readonly scrollWidth: number;
|
69
|
+
readonly shadowRoot: ShadowRoot | null;
|
70
|
+
slot: string;
|
71
|
+
readonly tagName: string;
|
72
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
73
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
74
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
75
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
76
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
77
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
78
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
79
|
+
getAttribute(qualifiedName: string): string | null;
|
80
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
81
|
+
getAttributeNames(): string[];
|
82
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
83
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
84
|
+
getBoundingClientRect(): DOMRect;
|
85
|
+
getClientRects(): DOMRectList;
|
86
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
87
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
88
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
89
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
90
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
91
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
92
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
93
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
94
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
95
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
96
|
+
hasAttribute(qualifiedName: string): boolean;
|
97
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
98
|
+
hasAttributes(): boolean;
|
99
|
+
hasPointerCapture(pointerId: number): boolean;
|
100
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
101
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
102
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
103
|
+
matches(selectors: string): boolean;
|
104
|
+
releasePointerCapture(pointerId: number): void;
|
105
|
+
removeAttribute(qualifiedName: string): void;
|
106
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
107
|
+
removeAttributeNode(attr: Attr): Attr;
|
108
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
109
|
+
requestPointerLock(): void;
|
110
|
+
scroll(options?: ScrollToOptions): void;
|
111
|
+
scroll(x: number, y: number): void;
|
112
|
+
scrollBy(options?: ScrollToOptions): void;
|
113
|
+
scrollBy(x: number, y: number): void;
|
114
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
115
|
+
scrollTo(options?: ScrollToOptions): void;
|
116
|
+
scrollTo(x: number, y: number): void;
|
117
|
+
setAttribute(qualifiedName: string, value: string): void;
|
118
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
119
|
+
setAttributeNode(attr: Attr): Attr | null;
|
120
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
121
|
+
setHTMLUnsafe(html: string): void;
|
122
|
+
setPointerCapture(pointerId: number): void;
|
123
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
124
|
+
webkitMatchesSelector(selectors: string): boolean;
|
125
|
+
readonly baseURI: string;
|
126
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
127
|
+
readonly firstChild: ChildNode | null;
|
128
|
+
readonly isConnected: boolean;
|
129
|
+
readonly lastChild: ChildNode | null;
|
130
|
+
readonly nextSibling: ChildNode | null;
|
131
|
+
readonly nodeName: string;
|
132
|
+
readonly nodeType: number;
|
133
|
+
nodeValue: string | null;
|
134
|
+
readonly parentElement: HTMLElement | null;
|
135
|
+
readonly parentNode: ParentNode | null;
|
136
|
+
readonly previousSibling: ChildNode | null;
|
137
|
+
textContent: string | null;
|
138
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
139
|
+
cloneNode(deep?: boolean): Node;
|
140
|
+
compareDocumentPosition(other: Node): number;
|
141
|
+
contains(other: Node | null): boolean;
|
142
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
143
|
+
hasChildNodes(): boolean;
|
144
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
145
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
146
|
+
isEqualNode(otherNode: Node | null): boolean;
|
147
|
+
isSameNode(otherNode: Node | null): boolean;
|
148
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
149
|
+
lookupPrefix(namespace: string | null): string | null;
|
150
|
+
normalize(): void;
|
151
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
152
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
153
|
+
readonly ELEMENT_NODE: 1;
|
154
|
+
readonly ATTRIBUTE_NODE: 2;
|
155
|
+
readonly TEXT_NODE: 3;
|
156
|
+
readonly CDATA_SECTION_NODE: 4;
|
157
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
158
|
+
readonly ENTITY_NODE: 6;
|
159
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
160
|
+
readonly COMMENT_NODE: 8;
|
161
|
+
readonly DOCUMENT_NODE: 9;
|
162
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
163
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
164
|
+
readonly NOTATION_NODE: 12;
|
165
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
166
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
167
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
168
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
169
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
170
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
171
|
+
dispatchEvent(event: Event): boolean;
|
172
|
+
ariaAtomic: string | null;
|
173
|
+
ariaAutoComplete: string | null;
|
174
|
+
ariaBrailleLabel: string | null;
|
175
|
+
ariaBrailleRoleDescription: string | null;
|
176
|
+
ariaBusy: string | null;
|
177
|
+
ariaChecked: string | null;
|
178
|
+
ariaColCount: string | null;
|
179
|
+
ariaColIndex: 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
|
+
ariaRowSpan: string | null;
|
205
|
+
ariaSelected: string | null;
|
206
|
+
ariaSetSize: string | null;
|
207
|
+
ariaSort: string | null;
|
208
|
+
ariaValueMax: string | null;
|
209
|
+
ariaValueMin: string | null;
|
210
|
+
ariaValueNow: string | null;
|
211
|
+
ariaValueText: string | null;
|
212
|
+
role: string | null;
|
213
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
214
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
215
|
+
after(...nodes: (Node | string)[]): void;
|
216
|
+
before(...nodes: (Node | string)[]): void;
|
217
|
+
remove(): void;
|
218
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
219
|
+
innerHTML: string;
|
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
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
262
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
263
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
264
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
265
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
266
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
267
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
268
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
269
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
270
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
271
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
272
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
273
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
274
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
275
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
276
|
+
onerror: OnErrorEventHandler;
|
277
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
278
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
279
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
280
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
281
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
282
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
283
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
284
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
285
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
286
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
287
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
288
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
289
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
290
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
291
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
292
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
293
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
294
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
295
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
296
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
297
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
298
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
299
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
300
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
301
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
302
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
303
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
304
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
305
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
306
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
307
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
308
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
309
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
310
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
311
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
312
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
313
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
314
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
315
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
316
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
317
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
318
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
319
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
320
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
321
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
322
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
323
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
324
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
325
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
326
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
327
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
328
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
329
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
330
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
331
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
332
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
333
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
334
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
335
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
336
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
337
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
338
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
339
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
340
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
341
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
342
|
+
autofocus: boolean;
|
343
|
+
readonly dataset: DOMStringMap;
|
344
|
+
nonce?: string;
|
345
|
+
tabIndex: number;
|
346
|
+
blur(): void;
|
347
|
+
focus(options?: FocusOptions): void;
|
348
|
+
};
|
349
|
+
_hostListeners: {
|
350
|
+
[listenerName: string]: {
|
351
|
+
[type: string]: {
|
352
|
+
options?: boolean | AddEventListenerOptions;
|
353
|
+
};
|
354
|
+
};
|
355
|
+
};
|
356
|
+
} & typeof LitElement;
|
357
|
+
/**
|
358
|
+
* SidePanel.
|
359
|
+
*
|
360
|
+
* @element cds-side-panel
|
361
|
+
* @csspart dialog The dialog.
|
362
|
+
* @fires cds-side-panel-beingclosed
|
363
|
+
* The custom event fired before this side-panel is being closed upon a user gesture.
|
364
|
+
* Cancellation of this event stops the user-initiated action of closing this side-panel.
|
365
|
+
* @fires cds-side-panel-closed - The custom event fired after this side-panel is closed upon a user gesture.
|
366
|
+
* @fires cds-side-panel-navigate-back - custom event fired when clicking navigate back (available when step > 0)
|
367
|
+
*/
|
368
|
+
declare class CDSSidePanel extends CDSSidePanel_base {
|
369
|
+
/**
|
370
|
+
* The handle for observing resize of the parent element of this element.
|
371
|
+
*/
|
372
|
+
private _hObserveResize;
|
373
|
+
/**
|
374
|
+
* The element that had focus before this side-panel gets open.
|
375
|
+
*/
|
376
|
+
private _launcher;
|
377
|
+
/**
|
378
|
+
* Node to track focus going outside of side-panel content.
|
379
|
+
*/
|
380
|
+
private _startSentinelNode;
|
381
|
+
/**
|
382
|
+
* Node to track focus going outside of side-panel content.
|
383
|
+
*/
|
384
|
+
private _endSentinelNode;
|
385
|
+
/**
|
386
|
+
* Node to track side panel.
|
387
|
+
*/
|
388
|
+
private _sidePanel;
|
389
|
+
private _animateScrollWrapper?;
|
390
|
+
private _label;
|
391
|
+
private _title;
|
392
|
+
private _subtitle;
|
393
|
+
private _innerContent;
|
394
|
+
private _actions;
|
395
|
+
_doAnimateTitle: boolean;
|
396
|
+
_isOpen: boolean;
|
397
|
+
_containerScrollTop: number;
|
398
|
+
_hasSubtitle: boolean;
|
399
|
+
_hasSlug: boolean;
|
400
|
+
_hasActionToolbar: boolean;
|
401
|
+
_actionsCount: number;
|
402
|
+
_slugCloseSize: string;
|
403
|
+
/**
|
404
|
+
* Handles `blur` event on this element.
|
405
|
+
*
|
406
|
+
* @param event The event.
|
407
|
+
* @param event.target The event target.
|
408
|
+
* @param event.relatedTarget The event relatedTarget.
|
409
|
+
*/
|
410
|
+
private _handleBlur;
|
411
|
+
private _handleKeydown;
|
412
|
+
private _reducedMotion;
|
413
|
+
/**
|
414
|
+
* Handles `click` event on the side-panel container.
|
415
|
+
*
|
416
|
+
* @param event The event.
|
417
|
+
*/
|
418
|
+
private _handleClickOnOverlay;
|
419
|
+
/**
|
420
|
+
* Handles `click` event on the side-panel container.
|
421
|
+
*
|
422
|
+
* @param event The event.
|
423
|
+
*/
|
424
|
+
private _handleCloseClick;
|
425
|
+
/**
|
426
|
+
* Handles user-initiated close request of this side-panel.
|
427
|
+
*
|
428
|
+
* @param triggeredBy The element that triggered this close request.
|
429
|
+
*/
|
430
|
+
private _handleUserInitiatedClose;
|
431
|
+
private _handleNavigateBack;
|
432
|
+
private _adjustPageContent;
|
433
|
+
private _checkSetOpen;
|
434
|
+
private _checkUpdateIconButtonSizes;
|
435
|
+
private _handleSlugChange;
|
436
|
+
private _handleSubtitleChange;
|
437
|
+
private _handleActionToolbarChange;
|
438
|
+
private _checkUpdateActionSizes;
|
439
|
+
private _maxActions;
|
440
|
+
private _handleActionsChange;
|
441
|
+
private _checkSetDoAnimateTitle;
|
442
|
+
/**
|
443
|
+
* The `ResizeObserver` instance for observing element resizes for re-positioning floating menu position.
|
444
|
+
*/
|
445
|
+
private _resizeObserver;
|
446
|
+
private _getScrollAnimationDistance;
|
447
|
+
private _scrollObserver;
|
448
|
+
private _handleCurrentStepUpdate;
|
449
|
+
/**
|
450
|
+
* Determines if the title will animate on scroll
|
451
|
+
*/
|
452
|
+
animateTitle: boolean;
|
453
|
+
/**
|
454
|
+
* Sets the close button icon description
|
455
|
+
*/
|
456
|
+
closeIconDescription: string;
|
457
|
+
/**
|
458
|
+
* Determines whether the side panel should render the condensed version (affects action buttons primarily)
|
459
|
+
*/
|
460
|
+
condensedActions: boolean;
|
461
|
+
/**
|
462
|
+
* Sets the current step of the side panel
|
463
|
+
*/
|
464
|
+
currentStep: any;
|
465
|
+
/**
|
466
|
+
* Determines whether the side panel should render with an overlay
|
467
|
+
*/
|
468
|
+
includeOverlay: boolean;
|
469
|
+
/**
|
470
|
+
* Sets the label text which will display above the title text
|
471
|
+
*/
|
472
|
+
labelText: any;
|
473
|
+
/**
|
474
|
+
* Sets the icon description for the navigation back icon button
|
475
|
+
*/
|
476
|
+
navigationBackIconDescription: string;
|
477
|
+
/**
|
478
|
+
* `true` if the side-panel should be open.
|
479
|
+
*/
|
480
|
+
open: boolean;
|
481
|
+
/**
|
482
|
+
* SidePanel placement.
|
483
|
+
*/
|
484
|
+
placement: SIDE_PANEL_PLACEMENT;
|
485
|
+
/**
|
486
|
+
* Prevent closing on click outside of side-panel
|
487
|
+
*/
|
488
|
+
preventCloseOnClickOutside: boolean;
|
489
|
+
/**
|
490
|
+
* The initial location of focus in the side panel
|
491
|
+
*/
|
492
|
+
selectorInitialFocus: any;
|
493
|
+
/**
|
494
|
+
* Selector for page content, used to push content to side except
|
495
|
+
*/
|
496
|
+
selectorPageContent: string;
|
497
|
+
/**
|
498
|
+
* SidePanel size.
|
499
|
+
*/
|
500
|
+
size: SIDE_PANEL_SIZE;
|
501
|
+
/**
|
502
|
+
* Determines if this panel slides in
|
503
|
+
*/
|
504
|
+
slideIn: boolean;
|
505
|
+
/**
|
506
|
+
* Sets the title text
|
507
|
+
*/
|
508
|
+
title: any;
|
509
|
+
connectObservers(): Promise<void>;
|
510
|
+
disconnectObservers(): void;
|
511
|
+
connectedCallback(): void;
|
512
|
+
disconnectedCallback(): void;
|
513
|
+
render(): import("lit").TemplateResult<1>;
|
514
|
+
updated(changedProperties: any): Promise<void>;
|
515
|
+
/**
|
516
|
+
* @param ms The number of milliseconds.
|
517
|
+
* @returns A promise that is resolves after the given milliseconds.
|
518
|
+
*/
|
519
|
+
private static _delay;
|
520
|
+
/**
|
521
|
+
* A selector selecting tabbable nodes.
|
522
|
+
*/
|
523
|
+
static get selectorTabbable(): string;
|
524
|
+
/**
|
525
|
+
* The name of the custom event fired before this side-panel is being closed upon a user gesture.
|
526
|
+
* Cancellation of this event stops the user-initiated action of closing this side-panel.
|
527
|
+
*/
|
528
|
+
static get eventBeforeClose(): string;
|
529
|
+
/**
|
530
|
+
* The name of the custom event fired after this side-panel is closed upon a user gesture.
|
531
|
+
*/
|
532
|
+
static get eventClose(): string;
|
533
|
+
/**
|
534
|
+
* The name of the custom event fired on clicking the navigate back button
|
535
|
+
*/
|
536
|
+
static get eventNavigateBack(): string;
|
537
|
+
static styles: any;
|
538
|
+
}
|
539
|
+
export default CDSSidePanel;
|