@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.
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,3 @@
1
+ export declare const UnreadNotificationBell: (attrs?: {
2
+ slot?: string;
3
+ }) => import("lit-html").TemplateResult<1>;
@@ -0,0 +1,45 @@
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 { html } from 'lit';
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
+ const UnreadNotificationBell = (attrs = {}) => html `
17
+ <svg
18
+ width="18px"
19
+ height="19px"
20
+ slot=${attrs.slot || ''}
21
+ viewBox="0 0 18 19"
22
+ xmlns="http://www.w3.org/2000/svg"
23
+ class="sb-unread-notification-icon"
24
+ aria-label="Unread notification bell"
25
+ role="img"
26
+ >
27
+ <title>Unread notification bell</title>
28
+ <g transform="translate(-1.000000, 0.000000)">
29
+ <path
30
+ d="M17.9419375,12.058125 L16.25,10.3661875 L16.25,8.125 C16.245845,4.91692673 13.816599,2.23147626 10.625,1.90675 L10.625,0.625 L9.375,0.625 L9.375,1.90675 C6.183401,2.23147626 3.754155,4.91692673 3.75,8.125 L3.75,10.3661875 L2.0580625,12.058125 C1.94086706,12.1753182 1.875,12.3342622 1.875,12.5 L1.875,14.375 C1.875,14.720178 2.15482203,15 2.5,15 L6.875,15 L6.875,15.4855 C6.84694527,17.1272367 8.05869477,18.5271305 9.6875,18.7346875 C10.5660567,18.8218694 11.4405518,18.5337871 12.0952737,17.9415019 C12.7499955,17.3492167 13.1239886,16.5078712 13.125,15.625 L13.125,15 L17.5,15 C17.845178,15 18.125,14.720178 18.125,14.375 L18.125,12.5 C18.125,12.3342622 18.0591329,12.1753182 17.9419375,12.058125 Z M11.875,15.625 C11.875,16.6605339 11.0355339,17.5 10,17.5 C8.96446609,17.5 8.125,16.6605339 8.125,15.625 L8.125,15 L11.875,15 L11.875,15.625 Z M16.875,13.75 L3.125,13.75 L3.125,12.7588125 L4.816875,11.066875 C4.93409336,10.949692 4.9999646,10.7907468 5,10.625 L5,8.125 C5,5.36357625 7.23857625,3.125 10,3.125 C12.7614237,3.125 15,5.36357625 15,8.125 L15,10.625 C15.0000354,10.7907468 15.0659066,10.949692 15.183125,11.066875 L16.875,12.7588125 L16.875,13.75 Z"
31
+ fill-rule="nonzero"
32
+ ></path>
33
+ <circle
34
+ stroke="#161616"
35
+ fill="#DA1E28"
36
+ cx="15"
37
+ cy="4.375"
38
+ r="2.5"
39
+ ></circle>
40
+ </g>
41
+ </svg>
42
+ `;
43
+
44
+ export { UnreadNotificationBell };
45
+ //# sourceMappingURL=unread-notification-bell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unread-notification-bell.js","sources":["../../../../src/components/notification-panel/_story-assets/unread-notification-bell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AAGU,MAAA,sBAAsB,GAAG,CAAC,KAA2B,GAAA,EAAE,KAAK,IAAI,CAAA;;;;WAIlE,KAAK,CAAC,IAAI,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,9 @@
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
+ export declare const dateTimeLocaleContext: {
8
+ __context__: string;
9
+ };
@@ -0,0 +1,19 @@
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 { createContext } from '@lit/context';
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
+ const dateTimeLocaleContext = createContext('dateTimeLocale');
17
+
18
+ export { dateTimeLocaleContext };
19
+ //# sourceMappingURL=date-time-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-context.js","sources":["../../../src/components/notification-panel/date-time-context.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;AAKG;MAIU,qBAAqB,GAChC,aAAa,CAAiB,gBAAgB;;;;"}
@@ -0,0 +1,8 @@
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
+ */
@@ -0,0 +1,8 @@
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
+ //# sourceMappingURL=defs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,11 @@
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 './notification-panel';
10
+ import './notification';
11
+ import './notification-footer';
@@ -0,0 +1,11 @@
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 './notification-panel.js';
9
+ import './notification.js';
10
+ import './notification-footer.js';
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,389 @@
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
+ declare const CDSNotificationFooter_base: {
11
+ new (...args: any[]): {
12
+ _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
13
+ connectedCallback(): void;
14
+ disconnectedCallback(): void;
15
+ accessKey: string;
16
+ readonly accessKeyLabel: string;
17
+ autocapitalize: string;
18
+ dir: string;
19
+ draggable: boolean;
20
+ hidden: boolean;
21
+ inert: boolean;
22
+ innerText: string;
23
+ lang: string;
24
+ readonly offsetHeight: number;
25
+ readonly offsetLeft: number;
26
+ readonly offsetParent: Element | null;
27
+ readonly offsetTop: number;
28
+ readonly offsetWidth: number;
29
+ outerText: string;
30
+ popover: string | null;
31
+ spellcheck: boolean;
32
+ title: string;
33
+ translate: boolean;
34
+ writingSuggestions: string;
35
+ attachInternals(): ElementInternals;
36
+ click(): void;
37
+ hidePopover(): void;
38
+ showPopover(): void;
39
+ togglePopover(force?: boolean): boolean;
40
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
41
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
42
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
43
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
44
+ readonly attributes: NamedNodeMap;
45
+ readonly classList: DOMTokenList;
46
+ className: string;
47
+ readonly clientHeight: number;
48
+ readonly clientLeft: number;
49
+ readonly clientTop: number;
50
+ readonly clientWidth: number;
51
+ readonly currentCSSZoom: number;
52
+ id: string;
53
+ innerHTML: string;
54
+ readonly localName: string;
55
+ readonly namespaceURI: string | null;
56
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
57
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
58
+ outerHTML: string;
59
+ readonly ownerDocument: Document;
60
+ readonly part: DOMTokenList;
61
+ readonly prefix: string | null;
62
+ readonly scrollHeight: number;
63
+ scrollLeft: number;
64
+ scrollTop: number;
65
+ readonly scrollWidth: number;
66
+ readonly shadowRoot: ShadowRoot | null;
67
+ slot: string;
68
+ readonly tagName: string;
69
+ attachShadow(init: ShadowRootInit): ShadowRoot;
70
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
71
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
72
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
73
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
74
+ closest<E extends Element = Element>(selectors: string): E | null;
75
+ computedStyleMap(): StylePropertyMapReadOnly;
76
+ getAttribute(qualifiedName: string): string | null;
77
+ getAttributeNS(namespace: string | null, localName: string): string | null;
78
+ getAttributeNames(): string[];
79
+ getAttributeNode(qualifiedName: string): Attr | null;
80
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
81
+ getBoundingClientRect(): DOMRect;
82
+ getClientRects(): DOMRectList;
83
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
84
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
85
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
86
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
87
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
88
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
89
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
90
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
91
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
92
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
93
+ getHTML(options?: GetHTMLOptions): string;
94
+ hasAttribute(qualifiedName: string): boolean;
95
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
96
+ hasAttributes(): boolean;
97
+ hasPointerCapture(pointerId: number): boolean;
98
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
99
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
100
+ insertAdjacentText(where: InsertPosition, data: string): void;
101
+ matches(selectors: string): boolean;
102
+ releasePointerCapture(pointerId: number): void;
103
+ removeAttribute(qualifiedName: string): void;
104
+ removeAttributeNS(namespace: string | null, localName: string): void;
105
+ removeAttributeNode(attr: Attr): Attr;
106
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
107
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
108
+ scroll(options?: ScrollToOptions): void;
109
+ scroll(x: number, y: number): void;
110
+ scrollBy(options?: ScrollToOptions): void;
111
+ scrollBy(x: number, y: number): void;
112
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
113
+ scrollTo(options?: ScrollToOptions): void;
114
+ scrollTo(x: number, y: number): void;
115
+ setAttribute(qualifiedName: string, value: string): void;
116
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
117
+ setAttributeNode(attr: Attr): Attr | null;
118
+ setAttributeNodeNS(attr: Attr): Attr | null;
119
+ setHTMLUnsafe(html: string): void;
120
+ setPointerCapture(pointerId: number): void;
121
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
122
+ webkitMatchesSelector(selectors: string): boolean;
123
+ readonly baseURI: string;
124
+ readonly childNodes: NodeListOf<ChildNode>;
125
+ readonly firstChild: ChildNode | null;
126
+ readonly isConnected: boolean;
127
+ readonly lastChild: ChildNode | null;
128
+ readonly nextSibling: ChildNode | null;
129
+ readonly nodeName: string;
130
+ readonly nodeType: number;
131
+ nodeValue: string | null;
132
+ readonly parentElement: HTMLElement | null;
133
+ readonly parentNode: ParentNode | null;
134
+ readonly previousSibling: ChildNode | null;
135
+ textContent: string | null;
136
+ appendChild<T_1 extends Node>(node: T_1): T_1;
137
+ cloneNode(deep?: boolean): Node;
138
+ compareDocumentPosition(other: Node): number;
139
+ contains(other: Node | null): boolean;
140
+ getRootNode(options?: GetRootNodeOptions): Node;
141
+ hasChildNodes(): boolean;
142
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
143
+ isDefaultNamespace(namespace: string | null): boolean;
144
+ isEqualNode(otherNode: Node | null): boolean;
145
+ isSameNode(otherNode: Node | null): boolean;
146
+ lookupNamespaceURI(prefix: string | null): string | null;
147
+ lookupPrefix(namespace: string | null): string | null;
148
+ normalize(): void;
149
+ removeChild<T_1 extends Node>(child: T_1): T_1;
150
+ replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
151
+ readonly ELEMENT_NODE: 1;
152
+ readonly ATTRIBUTE_NODE: 2;
153
+ readonly TEXT_NODE: 3;
154
+ readonly CDATA_SECTION_NODE: 4;
155
+ readonly ENTITY_REFERENCE_NODE: 5;
156
+ readonly ENTITY_NODE: 6;
157
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
158
+ readonly COMMENT_NODE: 8;
159
+ readonly DOCUMENT_NODE: 9;
160
+ readonly DOCUMENT_TYPE_NODE: 10;
161
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
162
+ readonly NOTATION_NODE: 12;
163
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
164
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
165
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
166
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
167
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
168
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
169
+ dispatchEvent(event: Event): boolean;
170
+ ariaAtomic: string | null;
171
+ ariaAutoComplete: string | null;
172
+ ariaBrailleLabel: string | null;
173
+ ariaBrailleRoleDescription: string | null;
174
+ ariaBusy: string | null;
175
+ ariaChecked: string | null;
176
+ ariaColCount: string | null;
177
+ ariaColIndex: string | null;
178
+ ariaColIndexText: string | null;
179
+ ariaColSpan: string | null;
180
+ ariaCurrent: string | null;
181
+ ariaDescription: string | null;
182
+ ariaDisabled: string | null;
183
+ ariaExpanded: string | null;
184
+ ariaHasPopup: string | null;
185
+ ariaHidden: string | null;
186
+ ariaInvalid: string | null;
187
+ ariaKeyShortcuts: string | null;
188
+ ariaLabel: string | null;
189
+ ariaLevel: string | null;
190
+ ariaLive: string | null;
191
+ ariaModal: string | null;
192
+ ariaMultiLine: string | null;
193
+ ariaMultiSelectable: string | null;
194
+ ariaOrientation: string | null;
195
+ ariaPlaceholder: string | null;
196
+ ariaPosInSet: string | null;
197
+ ariaPressed: string | null;
198
+ ariaReadOnly: string | null;
199
+ ariaRequired: string | null;
200
+ ariaRoleDescription: string | null;
201
+ ariaRowCount: string | null;
202
+ ariaRowIndex: string | null;
203
+ ariaRowIndexText: 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
+ readonly nextElementSibling: Element | null;
220
+ readonly previousElementSibling: Element | null;
221
+ readonly childElementCount: number;
222
+ readonly children: HTMLCollection;
223
+ readonly firstElementChild: Element | null;
224
+ readonly lastElementChild: Element | null;
225
+ append(...nodes: (Node | string)[]): void;
226
+ prepend(...nodes: (Node | string)[]): void;
227
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
228
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
229
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
230
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
231
+ querySelector<E extends Element = Element>(selectors: string): E | null;
232
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
233
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
234
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
235
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
236
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
237
+ replaceChildren(...nodes: (Node | string)[]): void;
238
+ readonly assignedSlot: HTMLSlotElement | null;
239
+ readonly attributeStyleMap: StylePropertyMap;
240
+ readonly style: CSSStyleDeclaration;
241
+ contentEditable: string;
242
+ enterKeyHint: string;
243
+ inputMode: string;
244
+ readonly isContentEditable: boolean;
245
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
246
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
247
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
248
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
249
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
250
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
251
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
252
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
253
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
254
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
255
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
256
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
257
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
258
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
259
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
261
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
262
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
264
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
266
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
267
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
268
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
269
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
270
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
271
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
272
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
273
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
274
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ onerror: OnErrorEventHandler;
278
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
279
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
280
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
281
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
284
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
285
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
286
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
290
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
291
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
292
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
293
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
294
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
295
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
296
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
297
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
298
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
299
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
303
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
304
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
305
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
306
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
307
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
308
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
309
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
310
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
311
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
312
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
314
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
315
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
317
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
325
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
329
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
330
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
331
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
332
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
333
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
334
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
335
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
336
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
343
+ autofocus: boolean;
344
+ readonly dataset: DOMStringMap;
345
+ nonce?: string;
346
+ tabIndex: number;
347
+ blur(): void;
348
+ focus(options?: FocusOptions): void;
349
+ };
350
+ _hostListeners: {
351
+ [listenerName: string]: {
352
+ [type: string]: {
353
+ options?: boolean | AddEventListenerOptions;
354
+ };
355
+ };
356
+ };
357
+ } & typeof LitElement;
358
+ /**
359
+ * Notification Footer.
360
+ *
361
+ * @element c4p-notification-footer
362
+ * @csspart dialog The dialog.
363
+ * @fires c4p-notification-view-all
364
+ * The custom event is fired when a user clicks on View All button.
365
+ * @fires c4p-notification-settings - The custom event is fired when User clicks on settings button.
366
+ */
367
+ declare class CDSNotificationFooter extends CDSNotificationFooter_base {
368
+ /**
369
+ * Label for View All Text
370
+ */
371
+ viewAllLabel: string;
372
+ render(): import("lit-html").TemplateResult<1>;
373
+ private _viewAllNotification;
374
+ private _onClickSettings;
375
+ /**
376
+ * A selector selecting tabbable nodes.
377
+ */
378
+ static get selectorTabbable(): string;
379
+ /**
380
+ * The custom event is fired when a notification is clicked or when the Enter key is pressed on it.
381
+ */
382
+ static get notificationViewAll(): string;
383
+ /**
384
+ * The custom event is fired when the notification is closed by a user gesture.
385
+ */
386
+ static get notificationSettings(): string;
387
+ static styles: any;
388
+ }
389
+ export default CDSNotificationFooter;
@@ -0,0 +1,119 @@
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 { selectorTabbable } from '@carbon/web-components/es/globals/settings.js';
13
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
14
+ import Settings16 from '@carbon/web-components/es/icons/settings/16';
15
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
16
+ import styles from './notification-footer.scss.js';
17
+
18
+ /**
19
+ * @license
20
+ *
21
+ * Copyright IBM Corp. 2023, 2024
22
+ *
23
+ * This source code is licensed under the Apache-2.0 license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */
26
+ const blockClass = `${prefix}--notifications-panel`;
27
+ /**
28
+ * Notification Footer.
29
+ *
30
+ * @element c4p-notification-footer
31
+ * @csspart dialog The dialog.
32
+ * @fires c4p-notification-view-all
33
+ * The custom event is fired when a user clicks on View All button.
34
+ * @fires c4p-notification-settings - The custom event is fired when User clicks on settings button.
35
+ */
36
+ let CDSNotificationFooter = class CDSNotificationFooter extends HostListenerMixin(LitElement) {
37
+ constructor() {
38
+ super(...arguments);
39
+ /**
40
+ * Label for View All Text
41
+ */
42
+ this.viewAllLabel = 'View All';
43
+ }
44
+ render() {
45
+ const { viewAllLabel, _viewAllNotification: viewAllNotification, _onClickSettings: onClickSettings, } = this;
46
+ return html `
47
+ <cds-custom-button
48
+ kind="ghost"
49
+ class="${blockClass}__view-all-button"
50
+ @click=${viewAllNotification}
51
+ >
52
+ ${viewAllLabel}
53
+ </cds-custom-button>
54
+ <cds-custom-button
55
+ kind="ghost"
56
+ size="sm"
57
+ class="${blockClass}__settings-button"
58
+ @click=${onClickSettings}
59
+ >
60
+ ${Settings16({ slot: 'icon' })}
61
+ </cds-custom-button>
62
+ `;
63
+ }
64
+ _viewAllNotification(event) {
65
+ const triggeredBy = event.target;
66
+ event.stopPropagation();
67
+ const init = {
68
+ bubbles: true,
69
+ cancelable: true,
70
+ composed: true,
71
+ detail: {
72
+ triggeredBy,
73
+ },
74
+ };
75
+ this.dispatchEvent(new CustomEvent(this.constructor.notificationViewAll, init));
76
+ }
77
+ _onClickSettings(event) {
78
+ const triggeredBy = event.target;
79
+ event.stopPropagation();
80
+ const init = {
81
+ bubbles: true,
82
+ cancelable: true,
83
+ composed: true,
84
+ detail: {
85
+ triggeredBy,
86
+ },
87
+ };
88
+ this.dispatchEvent(new CustomEvent(this.constructor.notificationSettings, init));
89
+ }
90
+ /**
91
+ * A selector selecting tabbable nodes.
92
+ */
93
+ static get selectorTabbable() {
94
+ return selectorTabbable;
95
+ }
96
+ /**
97
+ * The custom event is fired when a notification is clicked or when the Enter key is pressed on it.
98
+ */
99
+ static get notificationViewAll() {
100
+ return `${prefix}-notification-view-all`;
101
+ }
102
+ /**
103
+ * The custom event is fired when the notification is closed by a user gesture.
104
+ */
105
+ static get notificationSettings() {
106
+ return `${prefix}-notification-settings`;
107
+ }
108
+ };
109
+ CDSNotificationFooter.styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader
110
+ __decorate([
111
+ property({ reflect: true, type: String, attribute: 'view-all-label' })
112
+ ], CDSNotificationFooter.prototype, "viewAllLabel", void 0);
113
+ CDSNotificationFooter = __decorate([
114
+ carbonElement(`${prefix}-notification-footer`)
115
+ ], CDSNotificationFooter);
116
+ var CDSNotificationFooter$1 = CDSNotificationFooter;
117
+
118
+ export { CDSNotificationFooter$1 as default };
119
+ //# sourceMappingURL=notification-footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-footer.js","sources":["../../../src/components/notification-panel/notification-footer.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAWH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,uBAAuB;AAEnD;;;;;;;;AAQG;AAEH,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAAjE,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAY,CAAA,YAAA,GAAG,UAAU;;IAEzB,MAAM,GAAA;AACJ,QAAA,MAAM,EACJ,YAAY,EACZ,oBAAoB,EAAE,mBAAmB,EACzC,gBAAgB,EAAE,eAAe,GAClC,GAAG,IAAI;AACR,QAAA,OAAO,IAAI,CAAA;;;iBAGE,UAAU,CAAA;iBACV,mBAAmB;;UAE1B,YAAY;;;;;iBAKL,UAAU,CAAA;iBACV,eAAe;;AAEtB,QAAA,EAAA,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;KAEjC;;AAGK,IAAA,oBAAoB,CAAC,KAAY,EAAA;AACvC,QAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM;QAChC,KAAK,CAAC,eAAe,EAAE;AACvB,QAAA,MAAM,IAAI,GAAG;AACX,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,MAAM,EAAE;gBACN,WAAW;AACZ,aAAA;SACF;AACD,QAAA,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CACZ,IAAI,CAAC,WAA4C,CAAC,mBAAmB,EACtE,IAAI,CACL,CACF;;AAGK,IAAA,gBAAgB,CAAC,KAAY,EAAA;AACnC,QAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM;QAChC,KAAK,CAAC,eAAe,EAAE;AACvB,QAAA,MAAM,IAAI,GAAG;AACX,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,UAAU,EAAE,IAAI;AAChB,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,MAAM,EAAE;gBACN,WAAW;AACZ,aAAA;SACF;AACD,QAAA,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CACZ,IAAI,CAAC,WAA4C,CAAC,oBAAoB,EACvE,IAAI,CACL,CACF;;AAGH;;AAEG;AACH,IAAA,WAAW,gBAAgB,GAAA;AACzB,QAAA,OAAO,gBAAgB;;AAGzB;;AAEG;AACH,IAAA,WAAW,mBAAmB,GAAA;QAC5B,OAAO,CAAA,EAAG,MAAM,CAAA,sBAAA,CAAwB;;AAG1C;;AAEG;AACH,IAAA,WAAW,oBAAoB,GAAA;QAC7B,OAAO,CAAA,EAAG,MAAM,CAAA,sBAAA,CAAwB;;;AAEnC,qBAAA,CAAA,MAAM,GAAG,MAAM,CAAC;AArFvB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE;AAC5C,CAAA,EAAA,qBAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AALtB,qBAAqB,GAAA,UAAA,CAAA;AAD1B,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,oBAAA,CAAsB;AACxC,CAAA,EAAA,qBAAqB,CA2F1B;AAED,8BAAe,qBAAqB;;;;"}