@carbon/ibm-products-web-components 0.18.0 → 0.19.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.
Files changed (188) hide show
  1. package/custom-elements.json +509 -0
  2. package/es/components/about-modal/about-modal.scss.js +1 -1
  3. package/es/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
  4. package/es/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
  5. package/es/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
  6. package/es/components/notification-panel/date-time-context.d.ts +9 -0
  7. package/es/components/notification-panel/date-time-context.js +19 -0
  8. package/es/components/notification-panel/date-time-context.js.map +1 -0
  9. package/es/components/notification-panel/defs.d.ts +8 -0
  10. package/es/components/notification-panel/defs.js +8 -0
  11. package/es/components/notification-panel/defs.js.map +1 -0
  12. package/es/components/notification-panel/index.d.ts +11 -0
  13. package/es/components/notification-panel/index.js +11 -0
  14. package/es/components/notification-panel/index.js.map +1 -0
  15. package/es/components/notification-panel/notification-footer.d.ts +389 -0
  16. package/es/components/notification-panel/notification-footer.js +119 -0
  17. package/es/components/notification-panel/notification-footer.js.map +1 -0
  18. package/es/components/notification-panel/notification-footer.scss.js +13 -0
  19. package/es/components/notification-panel/notification-footer.scss.js.map +1 -0
  20. package/es/components/notification-panel/notification-panel.d.ts +458 -0
  21. package/es/components/notification-panel/notification-panel.js +414 -0
  22. package/es/components/notification-panel/notification-panel.js.map +1 -0
  23. package/es/components/notification-panel/notification-panel.scss.js +13 -0
  24. package/es/components/notification-panel/notification-panel.scss.js.map +1 -0
  25. package/es/components/notification-panel/notification-panel.test.d.ts +7 -0
  26. package/es/components/notification-panel/notification-panel.test.js +30 -0
  27. package/es/components/notification-panel/notification-panel.test.js.map +1 -0
  28. package/es/components/notification-panel/notification.d.ts +405 -0
  29. package/es/components/notification-panel/notification.js +178 -0
  30. package/es/components/notification-panel/notification.js.map +1 -0
  31. package/es/components/notification-panel/notification.scss.js +13 -0
  32. package/es/components/notification-panel/notification.scss.js.map +1 -0
  33. package/es/components/page-header/index.d.ts +14 -0
  34. package/es/components/page-header/index.js +14 -0
  35. package/es/components/page-header/index.js.map +1 -0
  36. package/es/components/page-header/page-header-breadcrumb.d.ts +35 -0
  37. package/es/components/page-header/page-header-breadcrumb.js +94 -0
  38. package/es/components/page-header/page-header-breadcrumb.js.map +1 -0
  39. package/es/components/page-header/page-header-content-text.d.ts +22 -0
  40. package/es/components/page-header/page-header-content-text.js +56 -0
  41. package/es/components/page-header/page-header-content-text.js.map +1 -0
  42. package/es/components/page-header/page-header-content.d.ts +41 -0
  43. package/es/components/page-header/page-header-content.js +131 -0
  44. package/es/components/page-header/page-header-content.js.map +1 -0
  45. package/es/components/page-header/page-header-hero-image.d.ts +18 -0
  46. package/es/components/page-header/page-header-hero-image.js +38 -0
  47. package/es/components/page-header/page-header-hero-image.js.map +1 -0
  48. package/es/components/page-header/page-header-tabs.d.ts +18 -0
  49. package/es/components/page-header/page-header-tabs.js +47 -0
  50. package/es/components/page-header/page-header-tabs.js.map +1 -0
  51. package/es/components/page-header/page-header.d.ts +18 -0
  52. package/es/components/page-header/page-header.js +38 -0
  53. package/es/components/page-header/page-header.js.map +1 -0
  54. package/es/components/page-header/page-header.scss.js +13 -0
  55. package/es/components/page-header/page-header.scss.js.map +1 -0
  56. package/es/components/page-header/page-header.test.d.ts +1 -0
  57. package/es/components/page-header/page-header.test.js +207 -0
  58. package/es/components/page-header/page-header.test.js.map +1 -0
  59. package/es/components/side-panel/side-panel.d.ts +4 -0
  60. package/es/components/side-panel/side-panel.js +21 -12
  61. package/es/components/side-panel/side-panel.js.map +1 -1
  62. package/es/components/side-panel/side-panel.scss.js +1 -1
  63. package/es/components/side-panel/side-panel.test.js +21 -0
  64. package/es/components/side-panel/side-panel.test.js.map +1 -1
  65. package/es/components/tearsheet/tearsheet.scss.js +1 -1
  66. package/es/globals/internal/storybook-cdn.js +1 -1
  67. package/es/globals/js/utils/getSupportedLocale.d.ts +12 -0
  68. package/es/globals/js/utils/getSupportedLocale.js +35 -0
  69. package/es/globals/js/utils/getSupportedLocale.js.map +1 -0
  70. package/es/index.d.ts +6 -0
  71. package/es/index.js +6 -0
  72. package/es/index.js.map +1 -1
  73. package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
  74. package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
  75. package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
  76. package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
  77. package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
  78. package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
  79. package/es/{package.json.js → packages/ibm-products-web-components/package.json.js} +1 -1
  80. package/es-custom/components/about-modal/about-modal.scss.js +1 -1
  81. package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
  82. package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
  83. package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
  84. package/es-custom/components/notification-panel/date-time-context.d.ts +9 -0
  85. package/es-custom/components/notification-panel/date-time-context.js +19 -0
  86. package/es-custom/components/notification-panel/date-time-context.js.map +1 -0
  87. package/es-custom/components/notification-panel/defs.d.ts +8 -0
  88. package/es-custom/components/notification-panel/defs.js +8 -0
  89. package/es-custom/components/notification-panel/defs.js.map +1 -0
  90. package/es-custom/components/notification-panel/index.d.ts +11 -0
  91. package/es-custom/components/notification-panel/index.js +11 -0
  92. package/es-custom/components/notification-panel/index.js.map +1 -0
  93. package/es-custom/components/notification-panel/notification-footer.d.ts +389 -0
  94. package/es-custom/components/notification-panel/notification-footer.js +119 -0
  95. package/es-custom/components/notification-panel/notification-footer.js.map +1 -0
  96. package/es-custom/components/notification-panel/notification-footer.scss.js +13 -0
  97. package/es-custom/components/notification-panel/notification-footer.scss.js.map +1 -0
  98. package/es-custom/components/notification-panel/notification-panel.d.ts +458 -0
  99. package/es-custom/components/notification-panel/notification-panel.js +414 -0
  100. package/es-custom/components/notification-panel/notification-panel.js.map +1 -0
  101. package/es-custom/components/notification-panel/notification-panel.scss.js +13 -0
  102. package/es-custom/components/notification-panel/notification-panel.scss.js.map +1 -0
  103. package/es-custom/components/notification-panel/notification-panel.test.d.ts +7 -0
  104. package/es-custom/components/notification-panel/notification-panel.test.js +30 -0
  105. package/es-custom/components/notification-panel/notification-panel.test.js.map +1 -0
  106. package/es-custom/components/notification-panel/notification.d.ts +405 -0
  107. package/es-custom/components/notification-panel/notification.js +178 -0
  108. package/es-custom/components/notification-panel/notification.js.map +1 -0
  109. package/es-custom/components/notification-panel/notification.scss.js +13 -0
  110. package/es-custom/components/notification-panel/notification.scss.js.map +1 -0
  111. package/es-custom/components/page-header/index.d.ts +14 -0
  112. package/es-custom/components/page-header/index.js +14 -0
  113. package/es-custom/components/page-header/index.js.map +1 -0
  114. package/es-custom/components/page-header/page-header-breadcrumb.d.ts +35 -0
  115. package/es-custom/components/page-header/page-header-breadcrumb.js +94 -0
  116. package/es-custom/components/page-header/page-header-breadcrumb.js.map +1 -0
  117. package/es-custom/components/page-header/page-header-content-text.d.ts +22 -0
  118. package/es-custom/components/page-header/page-header-content-text.js +56 -0
  119. package/es-custom/components/page-header/page-header-content-text.js.map +1 -0
  120. package/es-custom/components/page-header/page-header-content.d.ts +41 -0
  121. package/es-custom/components/page-header/page-header-content.js +131 -0
  122. package/es-custom/components/page-header/page-header-content.js.map +1 -0
  123. package/es-custom/components/page-header/page-header-hero-image.d.ts +18 -0
  124. package/es-custom/components/page-header/page-header-hero-image.js +38 -0
  125. package/es-custom/components/page-header/page-header-hero-image.js.map +1 -0
  126. package/es-custom/components/page-header/page-header-tabs.d.ts +18 -0
  127. package/es-custom/components/page-header/page-header-tabs.js +47 -0
  128. package/es-custom/components/page-header/page-header-tabs.js.map +1 -0
  129. package/es-custom/components/page-header/page-header.d.ts +18 -0
  130. package/es-custom/components/page-header/page-header.js +38 -0
  131. package/es-custom/components/page-header/page-header.js.map +1 -0
  132. package/es-custom/components/page-header/page-header.scss.js +13 -0
  133. package/es-custom/components/page-header/page-header.scss.js.map +1 -0
  134. package/es-custom/components/page-header/page-header.test.d.ts +1 -0
  135. package/es-custom/components/page-header/page-header.test.js +207 -0
  136. package/es-custom/components/page-header/page-header.test.js.map +1 -0
  137. package/es-custom/components/side-panel/side-panel.d.ts +4 -0
  138. package/es-custom/components/side-panel/side-panel.js +21 -12
  139. package/es-custom/components/side-panel/side-panel.js.map +1 -1
  140. package/es-custom/components/side-panel/side-panel.scss.js +1 -1
  141. package/es-custom/components/side-panel/side-panel.test.js +21 -0
  142. package/es-custom/components/side-panel/side-panel.test.js.map +1 -1
  143. package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
  144. package/es-custom/globals/internal/storybook-cdn.js +1 -1
  145. package/es-custom/globals/js/utils/getSupportedLocale.d.ts +12 -0
  146. package/es-custom/globals/js/utils/getSupportedLocale.js +35 -0
  147. package/es-custom/globals/js/utils/getSupportedLocale.js.map +1 -0
  148. package/es-custom/index.d.ts +6 -0
  149. package/es-custom/index.js +6 -0
  150. package/es-custom/index.js.map +1 -1
  151. package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
  152. package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
  153. package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
  154. package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
  155. package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
  156. package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
  157. package/es-custom/{package.json.js → packages/ibm-products-web-components/package.json.js} +1 -1
  158. package/lib/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
  159. package/lib/components/notification-panel/date-time-context.d.ts +9 -0
  160. package/lib/components/notification-panel/defs.d.ts +8 -0
  161. package/lib/components/notification-panel/defs.js +10 -0
  162. package/lib/components/notification-panel/defs.js.map +1 -0
  163. package/lib/components/notification-panel/index.d.ts +11 -0
  164. package/lib/components/notification-panel/notification-footer.d.ts +389 -0
  165. package/lib/components/notification-panel/notification-panel.d.ts +458 -0
  166. package/lib/components/notification-panel/notification-panel.test.d.ts +7 -0
  167. package/lib/components/notification-panel/notification.d.ts +405 -0
  168. package/lib/components/page-header/index.d.ts +14 -0
  169. package/lib/components/page-header/page-header-breadcrumb.d.ts +35 -0
  170. package/lib/components/page-header/page-header-content-text.d.ts +22 -0
  171. package/lib/components/page-header/page-header-content.d.ts +41 -0
  172. package/lib/components/page-header/page-header-hero-image.d.ts +18 -0
  173. package/lib/components/page-header/page-header-tabs.d.ts +18 -0
  174. package/lib/components/page-header/page-header.d.ts +18 -0
  175. package/lib/components/page-header/page-header.test.d.ts +1 -0
  176. package/lib/components/side-panel/side-panel.d.ts +4 -0
  177. package/lib/globals/js/utils/getSupportedLocale.d.ts +12 -0
  178. package/lib/globals/js/utils/getSupportedLocale.js +37 -0
  179. package/lib/globals/js/utils/getSupportedLocale.js.map +1 -0
  180. package/lib/index.d.ts +6 -0
  181. package/package.json +12 -11
  182. package/scss/components/notification-panel/notification-footer.scss +65 -0
  183. package/scss/components/notification-panel/notification-panel.scss +59 -0
  184. package/scss/components/notification-panel/notification.scss +147 -0
  185. package/scss/components/notification-panel/story-styles.scss +116 -0
  186. package/scss/components/page-header/page-header.scss +288 -0
  187. /package/es/{package.json.js.map → packages/ibm-products-web-components/package.json.js.map} +0 -0
  188. /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,178 @@
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 { property } from 'lit/decorators.js';
11
+ import { prefix } from '../../globals/settings.js';
12
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
13
+ import { selectorTabbable } from '@carbon/web-components/es/globals/settings.js';
14
+ import { dateTimeFormat as r } from '../../node_modules/@carbon/utilities/es/dateTimeFormat/index.js';
15
+ import '../../node_modules/@carbon/utilities/es/documentLang/documentLang.js';
16
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
17
+ import { consume } from '@lit/context';
18
+ import { dateTimeLocaleContext } from './date-time-context.js';
19
+ import styles from './notification.scss.js';
20
+ import '@carbon/web-components/es/components/button/index.js';
21
+ import Close16 from '@carbon/web-components/es/icons/close/16';
22
+ import ErrorFilled16 from '@carbon/web-components/es/icons/error--filled/16';
23
+ import CheckmarkFilled16 from '@carbon/web-components/es/icons/checkmark--filled/16';
24
+ import WarningAltFilled16 from '@carbon/web-components/es/icons/warning--alt--filled/16';
25
+ import InformationSquareFilled16 from '@carbon/web-components/es/icons/information--square--filled/16';
26
+ import { getSupportedLocale } from '../../globals/js/utils/getSupportedLocale.js';
27
+
28
+ /**
29
+ * @license
30
+ *
31
+ * Copyright IBM Corp. 2023, 2024
32
+ *
33
+ * This source code is licensed under the Apache-2.0 license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */
36
+ const blockClass = `${prefix}--notifications-panel__notification`;
37
+ const DefaultLocale = 'en-US';
38
+ const dateTimeStyle = 'long';
39
+ /**
40
+ * Notification.
41
+ * @element c4p-notification
42
+ * @slot title - The Title for the notification.
43
+ * @slot description - The description for the notification.
44
+ * @csspart dialog The dialog.
45
+ * The custom event is fired when a notification is clicked or when the Enter key is pressed on it.
46
+ * @fires c4p-notification-dismiss - The custom event is fired when the notification is closed by a user gesture.
47
+ */
48
+ let CDSNotification = class CDSNotification extends HostListenerMixin(LitElement) {
49
+ constructor() {
50
+ super(...arguments);
51
+ this.dateTimeLocale = undefined;
52
+ this._handleKeyDown = (e) => {
53
+ if (e.key === 'Enter' || e.key === ' ') {
54
+ this.click();
55
+ }
56
+ };
57
+ }
58
+ connectedCallback() {
59
+ super.connectedCallback();
60
+ if (!this.hasAttribute('role')) {
61
+ this.setAttribute('role', 'button');
62
+ }
63
+ if (!this.hasAttribute('tabindex')) {
64
+ this.setAttribute('tabindex', '0');
65
+ }
66
+ this.addEventListener('keydown', this._handleKeyDown);
67
+ }
68
+ render() {
69
+ const { type, timestamp, dateTimeLocale, _dismissSingleNotification: dismissSingleNotification, _fetchIcon: fetchIcon, } = this;
70
+ const supportedLocale = getSupportedLocale(dateTimeLocale, DefaultLocale);
71
+ const icon = fetchIcon(type);
72
+ return html `
73
+ ${icon}
74
+ <div class="${blockClass}-content">
75
+ <p class="${blockClass}-time-label">
76
+ ${r.relative.format(timestamp, {
77
+ locale: supportedLocale,
78
+ style: dateTimeStyle,
79
+ })}
80
+ </p>
81
+ <slot name="title"></slot>
82
+ <div class="${blockClass}-description">
83
+ <slot name="description"></slot>
84
+ </div>
85
+ </div>
86
+ <cds-button
87
+ tooltip-text=""
88
+ align="left"
89
+ kind="ghost"
90
+ size="sm"
91
+ class="${blockClass}__dismiss-single-button"
92
+ @click=${dismissSingleNotification}
93
+ >
94
+ ${Close16({ slot: 'icon' })}
95
+ </cds-button>
96
+ `;
97
+ }
98
+ disconnectedCallback() {
99
+ super.disconnectedCallback();
100
+ this.removeEventListener('keydown', this._handleKeyDown);
101
+ }
102
+ /**
103
+ * Handles user-initiated dismiss request of the Notification.
104
+ *
105
+ * @param event The event that triggered the click.
106
+ */
107
+ _dismissSingleNotification(event) {
108
+ const triggeredBy = event.target;
109
+ event.preventDefault();
110
+ event.stopPropagation();
111
+ const init = {
112
+ bubbles: true,
113
+ cancelable: true,
114
+ composed: true,
115
+ detail: {
116
+ triggeredBy,
117
+ },
118
+ };
119
+ this.dispatchEvent(new CustomEvent(this.constructor.notificationDismiss, init));
120
+ }
121
+ _fetchIcon(type) {
122
+ let icon;
123
+ switch (type) {
124
+ case 'error':
125
+ icon = ErrorFilled16({
126
+ class: `${blockClass}-status-icon ${blockClass}-status-icon-error`,
127
+ });
128
+ break;
129
+ case 'success':
130
+ icon = CheckmarkFilled16({
131
+ class: `${blockClass}-status-icon ${blockClass}-status-icon-success`,
132
+ });
133
+ break;
134
+ case 'warning':
135
+ icon = WarningAltFilled16({
136
+ class: `${blockClass}-status-icon ${blockClass}-status-icon-warning`,
137
+ });
138
+ break;
139
+ case 'informational':
140
+ icon = InformationSquareFilled16({
141
+ class: `${blockClass}-status-icon ${blockClass}-status-icon-informational`,
142
+ });
143
+ break;
144
+ default:
145
+ icon = null;
146
+ }
147
+ return icon;
148
+ }
149
+ /**
150
+ * A selector selecting tabbable nodes.
151
+ */
152
+ static get selectorTabbable() {
153
+ return selectorTabbable;
154
+ }
155
+ /**
156
+ * The custom event is fired when the notification is closed by a user gesture.
157
+ */
158
+ static get notificationDismiss() {
159
+ return `${prefix}-notification-dismiss`;
160
+ }
161
+ };
162
+ CDSNotification.styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader
163
+ __decorate([
164
+ property({ reflect: true })
165
+ ], CDSNotification.prototype, "type", void 0);
166
+ __decorate([
167
+ property()
168
+ ], CDSNotification.prototype, "timestamp", void 0);
169
+ __decorate([
170
+ consume({ context: dateTimeLocaleContext, subscribe: true })
171
+ ], CDSNotification.prototype, "dateTimeLocale", void 0);
172
+ CDSNotification = __decorate([
173
+ carbonElement(`${prefix}-notification`)
174
+ ], CDSNotification);
175
+ var CDSNotification$1 = CDSNotification;
176
+
177
+ export { CDSNotification$1 as default };
178
+ //# sourceMappingURL=notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.js","sources":["../../../src/components/notification-panel/notification.ts"],"sourcesContent":[null],"names":["dateTimeFormat","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAoBH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,qCAAqC;AACjE,MAAM,aAAa,GAAG,OAAO;AAE7B,MAAM,aAAa,GAAG,MAAwB;AAC9C;;;;;;;;AAQG;AAEH,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAA3D,IAAA,WAAA,GAAA;;QAaE,IAAc,CAAA,cAAA,GAAuB,SAAS;AAEtC,QAAA,IAAA,CAAA,cAAc,GAAG,CAA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