@carbon/ibm-products-web-components 0.29.0 → 0.30.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 (139) hide show
  1. package/custom-elements.json +637 -24
  2. package/es/components/about-modal/about-modal.scss.js +1 -1
  3. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +6 -1
  4. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js +15 -2
  5. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -1
  6. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +1 -1
  7. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +8 -1
  8. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -1
  9. package/es/components/coachmark/coachmark-body.d.ts +382 -0
  10. package/es/components/coachmark/coachmark-body.js +40 -0
  11. package/es/components/coachmark/coachmark-body.js.map +1 -0
  12. package/es/components/coachmark/coachmark-body.scss.js +13 -0
  13. package/es/components/coachmark/coachmark-body.scss.js.map +1 -0
  14. package/es/components/coachmark/coachmark-context.d.ts +11 -0
  15. package/es/components/coachmark/coachmark-context.js +39 -0
  16. package/es/components/coachmark/coachmark-context.js.map +1 -0
  17. package/es/components/coachmark/coachmark-header.d.ts +392 -0
  18. package/es/components/coachmark/coachmark-header.js +92 -0
  19. package/es/components/coachmark/coachmark-header.js.map +1 -0
  20. package/es/components/coachmark/coachmark-header.scss.js +13 -0
  21. package/es/components/coachmark/coachmark-header.scss.js.map +1 -0
  22. package/es/components/coachmark/coachmark.d.ts +416 -0
  23. package/es/components/coachmark/coachmark.js +165 -0
  24. package/es/components/coachmark/coachmark.js.map +1 -0
  25. package/es/components/coachmark/coachmark.scss.js +13 -0
  26. package/es/components/coachmark/coachmark.scss.js.map +1 -0
  27. package/es/components/coachmark/coachmark.test.d.ts +1 -0
  28. package/es/components/coachmark/coachmark.test.js +168 -0
  29. package/es/components/coachmark/coachmark.test.js.map +1 -0
  30. package/es/components/coachmark/index.d.ts +11 -0
  31. package/es/components/coachmark/index.js +11 -0
  32. package/es/components/coachmark/index.js.map +1 -0
  33. package/es/components/guide-banner/guide-banner-element.d.ts +378 -0
  34. package/es/components/guide-banner/guide-banner-element.js +38 -0
  35. package/es/components/guide-banner/guide-banner-element.js.map +1 -0
  36. package/es/components/guide-banner/guide-banner.d.ts +398 -0
  37. package/es/components/guide-banner/guide-banner.js +151 -0
  38. package/es/components/guide-banner/guide-banner.js.map +1 -0
  39. package/es/components/guide-banner/guide-banner.scss.js +13 -0
  40. package/es/components/guide-banner/guide-banner.scss.js.map +1 -0
  41. package/es/components/guide-banner/guide-banner.test.d.ts +1 -0
  42. package/es/components/guide-banner/guide-banner.test.js +121 -0
  43. package/es/components/guide-banner/guide-banner.test.js.map +1 -0
  44. package/es/components/guide-banner/index.d.ts +10 -0
  45. package/es/components/guide-banner/index.js +10 -0
  46. package/es/components/guide-banner/index.js.map +1 -0
  47. package/es/components/notification-panel/notification-footer.scss.js +1 -1
  48. package/es/components/notification-panel/notification-panel.scss.js +1 -1
  49. package/es/components/notification-panel/notification.scss.js +1 -1
  50. package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  51. package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  52. package/es/components/side-panel/side-panel.scss.js +1 -1
  53. package/es/components/tearsheet/tearsheet.scss.js +1 -1
  54. package/es/index.d.ts +5 -1
  55. package/es/index.js +4 -0
  56. package/es/index.js.map +1 -1
  57. package/es/packages/ibm-products-web-components/package.json.js +1 -1
  58. package/es/utilities/makeDraggable/makeDraggable.d.ts +38 -0
  59. package/es/utilities/makeDraggable/makeDraggable.js +136 -0
  60. package/es/utilities/makeDraggable/makeDraggable.js.map +1 -0
  61. package/es-custom/components/about-modal/about-modal.scss.js +1 -1
  62. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +6 -1
  63. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js +15 -2
  64. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -1
  65. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +1 -1
  66. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +8 -1
  67. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -1
  68. package/es-custom/components/coachmark/coachmark-body.d.ts +382 -0
  69. package/es-custom/components/coachmark/coachmark-body.js +40 -0
  70. package/es-custom/components/coachmark/coachmark-body.js.map +1 -0
  71. package/es-custom/components/coachmark/coachmark-body.scss.js +13 -0
  72. package/es-custom/components/coachmark/coachmark-body.scss.js.map +1 -0
  73. package/es-custom/components/coachmark/coachmark-context.d.ts +11 -0
  74. package/es-custom/components/coachmark/coachmark-context.js +39 -0
  75. package/es-custom/components/coachmark/coachmark-context.js.map +1 -0
  76. package/es-custom/components/coachmark/coachmark-header.d.ts +392 -0
  77. package/es-custom/components/coachmark/coachmark-header.js +92 -0
  78. package/es-custom/components/coachmark/coachmark-header.js.map +1 -0
  79. package/es-custom/components/coachmark/coachmark-header.scss.js +13 -0
  80. package/es-custom/components/coachmark/coachmark-header.scss.js.map +1 -0
  81. package/es-custom/components/coachmark/coachmark.d.ts +416 -0
  82. package/es-custom/components/coachmark/coachmark.js +165 -0
  83. package/es-custom/components/coachmark/coachmark.js.map +1 -0
  84. package/es-custom/components/coachmark/coachmark.scss.js +13 -0
  85. package/es-custom/components/coachmark/coachmark.scss.js.map +1 -0
  86. package/es-custom/components/coachmark/coachmark.test.d.ts +1 -0
  87. package/es-custom/components/coachmark/coachmark.test.js +168 -0
  88. package/es-custom/components/coachmark/coachmark.test.js.map +1 -0
  89. package/es-custom/components/coachmark/index.d.ts +11 -0
  90. package/es-custom/components/coachmark/index.js +11 -0
  91. package/es-custom/components/coachmark/index.js.map +1 -0
  92. package/es-custom/components/guide-banner/guide-banner-element.d.ts +378 -0
  93. package/es-custom/components/guide-banner/guide-banner-element.js +38 -0
  94. package/es-custom/components/guide-banner/guide-banner-element.js.map +1 -0
  95. package/es-custom/components/guide-banner/guide-banner.d.ts +398 -0
  96. package/es-custom/components/guide-banner/guide-banner.js +151 -0
  97. package/es-custom/components/guide-banner/guide-banner.js.map +1 -0
  98. package/es-custom/components/guide-banner/guide-banner.scss.js +13 -0
  99. package/es-custom/components/guide-banner/guide-banner.scss.js.map +1 -0
  100. package/es-custom/components/guide-banner/guide-banner.test.d.ts +1 -0
  101. package/es-custom/components/guide-banner/guide-banner.test.js +121 -0
  102. package/es-custom/components/guide-banner/guide-banner.test.js.map +1 -0
  103. package/es-custom/components/guide-banner/index.d.ts +10 -0
  104. package/es-custom/components/guide-banner/index.js +10 -0
  105. package/es-custom/components/guide-banner/index.js.map +1 -0
  106. package/es-custom/components/notification-panel/notification-footer.scss.js +1 -1
  107. package/es-custom/components/notification-panel/notification-panel.scss.js +1 -1
  108. package/es-custom/components/notification-panel/notification.scss.js +1 -1
  109. package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  110. package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  111. package/es-custom/components/side-panel/side-panel.scss.js +1 -1
  112. package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
  113. package/es-custom/index.d.ts +5 -1
  114. package/es-custom/index.js +4 -0
  115. package/es-custom/index.js.map +1 -1
  116. package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
  117. package/es-custom/utilities/makeDraggable/makeDraggable.d.ts +38 -0
  118. package/es-custom/utilities/makeDraggable/makeDraggable.js +136 -0
  119. package/es-custom/utilities/makeDraggable/makeDraggable.js.map +1 -0
  120. package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +6 -1
  121. package/lib/components/coachmark/coachmark-body.d.ts +382 -0
  122. package/lib/components/coachmark/coachmark-context.d.ts +11 -0
  123. package/lib/components/coachmark/coachmark-header.d.ts +392 -0
  124. package/lib/components/coachmark/coachmark.d.ts +416 -0
  125. package/lib/components/coachmark/coachmark.test.d.ts +1 -0
  126. package/lib/components/coachmark/index.d.ts +11 -0
  127. package/lib/components/guide-banner/guide-banner-element.d.ts +378 -0
  128. package/lib/components/guide-banner/guide-banner.d.ts +398 -0
  129. package/lib/components/guide-banner/guide-banner.test.d.ts +1 -0
  130. package/lib/components/guide-banner/index.d.ts +10 -0
  131. package/lib/index.d.ts +5 -1
  132. package/lib/utilities/makeDraggable/makeDraggable.d.ts +38 -0
  133. package/package.json +8 -8
  134. package/scss/components/coachmark/coachmark-beacon/coachmark-beacon.scss +1 -0
  135. package/scss/components/coachmark/coachmark-body.scss +19 -0
  136. package/scss/components/coachmark/coachmark-header.scss +32 -0
  137. package/scss/components/coachmark/coachmark.scss +30 -0
  138. package/scss/components/guide-banner/guide-banner.scss +30 -0
  139. package/telemetry.yml +14 -3
@@ -394,10 +394,15 @@ declare class CDSCoachmarkBeacon extends CDSCoachmarkBeacon_base {
394
394
  * id for the coachmark beacon
395
395
  */
396
396
  id: string;
397
- private expanded;
397
+ /**
398
+ * specify aria-expanded of beacon
399
+ */
400
+ expanded: boolean;
398
401
  firstUpdated(): void;
402
+ connectedCallback(): void;
399
403
  private _handleClick;
400
404
  private handleOutsideClick;
405
+ disconnectedCallback(): void;
401
406
  render(): import("lit-html").TemplateResult<1>;
402
407
  static shadowRootOptions: {
403
408
  delegatesFocus: boolean;
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { __decorate } from 'tslib';
9
9
  import { LitElement, html } from 'lit';
10
- import { property, state } from 'lit/decorators.js';
10
+ import { property } from 'lit/decorators.js';
11
11
  import { prefix } from '../../../globals/settings.js';
12
12
  import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
13
13
  import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
@@ -47,6 +47,9 @@ let CDSCoachmarkBeacon = class CDSCoachmarkBeacon extends HostListenerMixin(LitE
47
47
  * id for the coachmark beacon
48
48
  */
49
49
  this.id = crypto.randomUUID();
50
+ /**
51
+ * specify aria-expanded of beacon
52
+ */
50
53
  this.expanded = false;
51
54
  this.handleOutsideClick = (event) => {
52
55
  if (!this.contains(event.target)) {
@@ -61,6 +64,12 @@ let CDSCoachmarkBeacon = class CDSCoachmarkBeacon extends HostListenerMixin(LitE
61
64
  this.classList.add(`${blockClass}-${this.kind}`);
62
65
  }
63
66
  }
67
+ connectedCallback() {
68
+ super.connectedCallback();
69
+ if (this.expanded) {
70
+ document.addEventListener('click', this.handleOutsideClick);
71
+ }
72
+ }
64
73
  _handleClick() {
65
74
  this.expanded = !this.expanded;
66
75
  if (this.expanded) {
@@ -75,6 +84,10 @@ let CDSCoachmarkBeacon = class CDSCoachmarkBeacon extends HostListenerMixin(LitE
75
84
  composed: true,
76
85
  }));
77
86
  }
87
+ disconnectedCallback() {
88
+ super.disconnectedCallback();
89
+ document.removeEventListener('click', this.handleOutsideClick);
90
+ }
78
91
  render() {
79
92
  return html `
80
93
  <cds-custom-button
@@ -115,7 +128,7 @@ __decorate([
115
128
  property({ type: String, reflect: true })
116
129
  ], CDSCoachmarkBeacon.prototype, "id", void 0);
117
130
  __decorate([
118
- state()
131
+ property({ type: Boolean, reflect: true })
119
132
  ], CDSCoachmarkBeacon.prototype, "expanded", void 0);
120
133
  CDSCoachmarkBeacon = __decorate([
121
134
  carbonElement(`${prefix}-coachmark-beacon`)
@@ -1 +1 @@
1
- {"version":3,"file":"coachmark-beacon.js","sources":["../../../../src/components/coachmark/coachmark-beacon/coachmark-beacon.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAWH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,oBAAoB;AAEhD;;;;;AAKK;AAEL,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAA9D,IAAA,WAAA,GAAA;;AACE;;;;AAIG;AAEH,QAAA,IAAA,CA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iBAAA,CAAmB;AACrC,CAAA,EAAA,kBAAkB,CA2FvB;AACD,2BAAe,kBAAkB;;;;"}
1
+ {"version":3,"file":"coachmark-beacon.js","sources":["../../../../src/components/coachmark/coachmark-beacon/coachmark-beacon.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAWH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,oBAAoB;AAEhD;;;;;AAKK;AAEL,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAA9D,IAAA,WAAA,GAAA;;AACE;;;;AAIG;AAEH,QAAA,IAAA,CAAA,IAAI,GAAiB,WAAW,CAAC,OAAO;AAExC;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAG,kBAAkB;AAC1B;;AAEG;AAEH,QAAA,IAAA,CAAA,EAAE,GAAW,MAAM,CAAC,UAAU,EAAE;AAChC;;AAEG;QAEH,IAAQ,CAAA,QAAA,GAAY,KAAK;AAqCjB,QAAA,IAAA,CAAA,kBAAkB,GAAG,CAAC,KAAY,KAAI;YAC5C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE;AACxC,gBAAA,IAAI,CAAC,QAAQ,GAAG,KAAK;gBACrB,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC;;AAElE,SAAC;;IAxCD,YAAY,GAAA;AACV,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC;AAC9B,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA,EAAG,UAAU,CAAA,CAAA,EAAI,IAAI,CAAC,IAAI,CAAA,CAAE,CAAC;;;IAIpD,iBAAiB,GAAA;QACf,KAAK,CAAC,iBAAiB,EAAE;AACzB,QAAA,IAAI,IAAI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A,EACnB,UAAU,CAAC,iBAAiB,KAC/B,cAAc,EAAE,IAAI,EAAA,CAFE;AASjB,kBAAM,CAAA,MAAA,GAAG,MAAH;AAlGb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACc,CAAA,EAAA,kBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAMzC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AACd,CAAA,EAAA,kBAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAK3B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AACR,CAAA,EAAA,kBAAA,CAAA,SAAA,EAAA,IAAA,EAAA,MAAA,CAAA;AAKjC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAChB,CAAA,EAAA,kBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAvBtB,kBAAkB,GAAA,UAAA,CAAA;AADvB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,iBAAA,CAAmB;AACrC,CAAA,EAAA,kBAAkB,CA0GvB;AACD,2BAAe,kBAAkB;;;;"}
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([".c4p--coachmark-beacon{position:relative}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:before{display:none}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:after{background-color:#4589ff;block-size:.75rem;border-radius:50%;content:\"\";inline-size:.75rem;inset-block-start:.625rem;inset-inline-start:.625rem;position:absolute}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:focus{outline:transparent}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:focus:before{block-size:18px;border-radius:100%;content:\"\";display:block;inline-size:18px;inset-block-start:7px;inset-inline-start:7px;outline:.125rem var(--cds-focus,#0f62fe) solid;position:absolute}.c4p--coachmark-beacon .c4p--coachmark-beacon__target{background-color:transparent;block-size:2rem;border:none;border-radius:50%;cursor:pointer;display:flex;inline-size:2rem;padding:0}.c4p--coachmark-beacon .c4p--coachmark-beacon__target[aria-expanded=true] circle{animation:none}.c4p--coachmark-beacon__center{block-size:5rem;inline-size:5rem;inset-block-start:-1.375rem;inset-inline-start:-1.375rem;pointer-events:none;position:absolute;z-index:6900}.c4p--coachmark-beacon__center circle{animation:ripple 2s infinite;fill:var(--cds-support-info,#0043ce);fill-opacity:0;-webkit-mask-image:none;mask-image:none;stroke:var(--cds-support-info,#0043ce);stroke-opacity:0;stroke-width:1px;transition-timing-function:motion exit,productive}@media (prefers-reduced-motion){.c4p--coachmark-beacon__center circle{animation:none}}@keyframes ripple{0%{fill-opacity:0;r:1px;stroke-opacity:0;transition-timing-function:cubic-bezier(0,0,.38,.9)}31%{fill-opacity:.2;stroke-opacity:1}62%{fill-opacity:0;r:32px;stroke-opacity:0}to{fill-opacity:0;r:32px;stroke-opacity:0}}@keyframes ring-ripple{0%{fill-opacity:0;r:12px;stroke-opacity:0;transition-timing-function:cubic-bezier(0,0,.38,.9)}31%{fill-opacity:.2;stroke-opacity:1}62%{fill-opacity:0;r:32px;stroke-opacity:0}to{fill-opacity:0;r:32px;stroke-opacity:0}}:host(c4p-coachmark-beacon){position:relative}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:before{display:none}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:after{background-color:#4589ff;block-size:.75rem;border-radius:50%;content:\"\";inline-size:.75rem;inset-block-start:.625rem;inset-inline-start:.625rem;position:absolute}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:focus{outline:transparent}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:focus:before{block-size:18px;border-radius:100%;content:\"\";display:block;inline-size:18px;inset-block-start:7px;inset-inline-start:7px;outline:.125rem var(--cds-focus,#0f62fe) solid;position:absolute}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target{background-color:transparent;block-size:2rem;border:none;border-radius:50%;box-shadow:none;cursor:pointer;display:flex;inline-size:2rem;padding:0}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target[aria-expanded=true] circle{animation:none}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target::part(button){background-color:transparent;max-block-size:0;min-block-size:0;padding-inline:0}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target::part(button):focus{border-color:transparent;box-shadow:none}"]);
10
+ var styles = css([".c4p--coachmark-beacon{position:relative}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:before{display:none}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:after{background-color:#4589ff;block-size:.75rem;border-radius:50%;content:\"\";inline-size:.75rem;inset-block-start:.625rem;inset-inline-start:.625rem;position:absolute}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:focus{outline:transparent}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:focus:before{block-size:18px;border-radius:100%;content:\"\";display:block;inline-size:18px;inset-block-start:7px;inset-inline-start:7px;outline:.125rem var(--cds-focus,#0f62fe) solid;position:absolute}.c4p--coachmark-beacon .c4p--coachmark-beacon__target{background-color:transparent;block-size:2rem;border:none;border-radius:50%;cursor:pointer;display:flex;inline-size:2rem;padding:0}.c4p--coachmark-beacon .c4p--coachmark-beacon__target[aria-expanded=true] circle{animation:none}.c4p--coachmark-beacon__center{block-size:5rem;inline-size:5rem;inset-block-start:-1.375rem;inset-inline-start:-1.375rem;pointer-events:none;position:absolute;z-index:6900}.c4p--coachmark-beacon__center circle{animation:ripple 2s infinite;fill:var(--cds-support-info,#0043ce);fill-opacity:0;-webkit-mask-image:none;mask-image:none;stroke:var(--cds-support-info,#0043ce);stroke-opacity:0;stroke-width:1px;transition-timing-function:motion exit,productive}@media (prefers-reduced-motion){.c4p--coachmark-beacon__center circle{animation:none}}@keyframes ripple{0%{fill-opacity:0;r:1px;stroke-opacity:0;transition-timing-function:cubic-bezier(0,0,.38,.9)}31%{fill-opacity:.2;stroke-opacity:1}62%{fill-opacity:0;r:32px;stroke-opacity:0}to{fill-opacity:0;r:32px;stroke-opacity:0}}@keyframes ring-ripple{0%{fill-opacity:0;r:12px;stroke-opacity:0;transition-timing-function:cubic-bezier(0,0,.38,.9)}31%{fill-opacity:.2;stroke-opacity:1}62%{fill-opacity:0;r:32px;stroke-opacity:0}to{fill-opacity:0;r:32px;stroke-opacity:0}}:host(c4p-coachmark-beacon){position:relative}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:before{display:none}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:after{background-color:#4589ff;block-size:.75rem;border-radius:50%;content:\"\";inline-size:.75rem;inset-block-start:.625rem;inset-inline-start:.625rem;position:absolute}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:focus{outline:transparent}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target:focus:before{block-size:18px;border-radius:100%;content:\"\";display:block;inline-size:18px;inset-block-start:7px;inset-inline-start:7px;outline:.125rem var(--cds-focus,#0f62fe) solid;position:absolute}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target{background-color:transparent;block-size:2rem;border:none;border-radius:50%;box-shadow:none;cursor:pointer;display:flex;inline-size:2rem;padding:0}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target[aria-expanded=true] circle{animation:none}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target::part(button){background-color:transparent;box-shadow:none;max-block-size:0;min-block-size:0;padding-inline:0}:host(.c4p--coachmark-beacon-default) .c4p--coachmark-beacon__target::part(button):focus{border-color:transparent;box-shadow:none}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=coachmark-beacon.scss.js.map
@@ -58,13 +58,20 @@ describe('c4p-coachmark-beacon', () => {
58
58
  expect(svg).to.exist;
59
59
  });
60
60
  it('toggles expanded state and dispatches event on click', async () => {
61
- const el = await fixture(template(Object.assign({}, defaultProps)));
61
+ const el = (await fixture(template(Object.assign({}, defaultProps))));
62
62
  const button = el.shadowRoot.querySelector('cds-custom-button');
63
63
  const eventPromise = oneEvent(el, 'c4p-coachmark-beacon-clicked');
64
64
  button.click();
65
65
  const event = await eventPromise;
66
66
  expect(event).to.exist;
67
67
  expect(event.detail.expanded).to.be.true;
68
+ expect(el.hasAttribute('expanded')).to.be.true;
69
+ expect(button.getAttribute('aria-expanded')).to.equal('true');
70
+ // simulate an outside click
71
+ document.body.click();
72
+ await el.updateComplete;
73
+ expect(el.hasAttribute('expanded')).to.be.false;
74
+ expect(button.getAttribute('aria-expanded')).to.equal('false');
68
75
  });
69
76
  });
70
77
  //# sourceMappingURL=coachmark-beacon.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coachmark-beacon.test.js","sources":["../../../../src/components/coachmark/coachmark-beacon/coachmark-beacon.test.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAOH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,oBAAoB;AAEhD,MAAM,YAAY,GAAG;AACnB,IAAA,KAAK,EAAE,kBAAkB;AACzB,IAAA,EAAE,EAAE,iBAAiB;CACf;AAER,MAAM,QAAQ,GAAG,CAAC,KAAK,GAAG,YAAY,KAAK,IAAI,CAAA;;AAEnC,UAAA,EAAA,KAAK,CAAC,KAAK;oCACa,CAAC,CAAc,KAAI;IACjD,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;AACnD,CAAC;;;CAGJ;AAED,QAAQ,CAAC,sBAAsB,EAAE,MAAK;AACpC,IAAA,EAAE,CAAC,wBAAwB,EAAE,YAAW;QACtC,MAAM,MAAM,GAAG,MAAM,OAAO,C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MAAM,CAAE,UAAU,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,aAAa,CACnD,mBAAmB,CACD;AACpB,QAAA,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK;AAC5B,QAAA,MAAM,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAClE,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,CAC5B,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,CAClC;AACf,QAAA,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;AACtB,KAAC,CAAC;AAEF,IAAA,EAAE,CAAC,sDAAsD,EAAE,YAAW;QACpE,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAM,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,YAAY,CAAG,CAAA,CAAC;QAEvD,MAAM,MAAM,GAAG,EAAE,CAAC,UAAW,CAAC,aAAa,CAAc,YAAY,CAAE;QAEvE,MAAM,YAAY,GAAG,QAAQ,CAAC,EAAE,EAAE,8BAA8B,CAAC;QAEjE,MAAM,CAAC,KAAK,EAAE;AAEd,QAAA,MAAM,KAAK,GAAG,MAAM,YAAY;AAChC,QAAA,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK;AACtB,QAAA,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;AAC1C,KAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"coachmark-beacon.test.js","sources":["../../../../src/components/coachmark/coachmark-beacon/coachmark-beacon.test.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;AAOG;AAQH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,oBAAoB;AAEhD,MAA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K,EAAE;AAEd,QAAA,MAAM,KAAK,GAAG,MAAM,YAAY;AAChC,QAAA,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK;AACtB,QAAA,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;AAExC,QAAA,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;AAE9C,QAAA,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;;AAG7D,QAAA,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE;QAErB,MAAM,EAAE,CAAC,cAAc;AAEvB,QAAA,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK;AAC/C,QAAA,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;AAChE,KAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,382 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { LitElement } from 'lit';
10
+ declare const CDSCoachmarkBody_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
+ autocorrect: boolean;
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(options?: boolean): boolean;
41
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
42
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
43
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
44
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
45
+ readonly attributes: NamedNodeMap;
46
+ get classList(): DOMTokenList;
47
+ set classList(value: string): any;
48
+ className: string;
49
+ readonly clientHeight: number;
50
+ readonly clientLeft: number;
51
+ readonly clientTop: number;
52
+ readonly clientWidth: number;
53
+ readonly currentCSSZoom: number;
54
+ id: string;
55
+ innerHTML: string;
56
+ readonly localName: string;
57
+ readonly namespaceURI: string | null;
58
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
59
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
60
+ outerHTML: string;
61
+ readonly ownerDocument: Document;
62
+ get part(): DOMTokenList;
63
+ set part(value: string): any;
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
+ getHTML(options?: GetHTMLOptions): string;
97
+ hasAttribute(qualifiedName: string): boolean;
98
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
99
+ hasAttributes(): boolean;
100
+ hasPointerCapture(pointerId: number): boolean;
101
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
102
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
103
+ insertAdjacentText(where: InsertPosition, data: string): void;
104
+ matches(selectors: string): boolean;
105
+ releasePointerCapture(pointerId: number): void;
106
+ removeAttribute(qualifiedName: string): void;
107
+ removeAttributeNS(namespace: string | null, localName: string): void;
108
+ removeAttributeNode(attr: Attr): Attr;
109
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
110
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
111
+ scroll(options?: ScrollToOptions): void;
112
+ scroll(x: number, y: number): void;
113
+ scrollBy(options?: ScrollToOptions): void;
114
+ scrollBy(x: number, y: number): void;
115
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
116
+ scrollTo(options?: ScrollToOptions): void;
117
+ scrollTo(x: number, y: number): void;
118
+ setAttribute(qualifiedName: string, value: string): void;
119
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
120
+ setAttributeNode(attr: Attr): Attr | null;
121
+ setAttributeNodeNS(attr: Attr): Attr | null;
122
+ setHTMLUnsafe(html: string): void;
123
+ setPointerCapture(pointerId: number): void;
124
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
125
+ webkitMatchesSelector(selectors: string): boolean;
126
+ get textContent(): string;
127
+ set textContent(value: string | null): any;
128
+ readonly baseURI: string;
129
+ readonly childNodes: NodeListOf<ChildNode>;
130
+ readonly firstChild: ChildNode | null;
131
+ readonly isConnected: boolean;
132
+ readonly lastChild: ChildNode | null;
133
+ readonly nextSibling: ChildNode | null;
134
+ readonly nodeName: string;
135
+ readonly nodeType: number;
136
+ nodeValue: string | null;
137
+ readonly parentElement: HTMLElement | null;
138
+ readonly parentNode: ParentNode | null;
139
+ readonly previousSibling: ChildNode | null;
140
+ appendChild<T_1 extends Node>(node: T_1): T_1;
141
+ cloneNode(subtree?: boolean): Node;
142
+ compareDocumentPosition(other: Node): number;
143
+ contains(other: Node | null): boolean;
144
+ getRootNode(options?: GetRootNodeOptions): Node;
145
+ hasChildNodes(): boolean;
146
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
147
+ isDefaultNamespace(namespace: string | null): boolean;
148
+ isEqualNode(otherNode: Node | null): boolean;
149
+ isSameNode(otherNode: Node | null): boolean;
150
+ lookupNamespaceURI(prefix: string | null): string | null;
151
+ lookupPrefix(namespace: string | null): string | null;
152
+ normalize(): void;
153
+ removeChild<T_1 extends Node>(child: T_1): T_1;
154
+ replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
155
+ readonly ELEMENT_NODE: 1;
156
+ readonly ATTRIBUTE_NODE: 2;
157
+ readonly TEXT_NODE: 3;
158
+ readonly CDATA_SECTION_NODE: 4;
159
+ readonly ENTITY_REFERENCE_NODE: 5;
160
+ readonly ENTITY_NODE: 6;
161
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
162
+ readonly COMMENT_NODE: 8;
163
+ readonly DOCUMENT_NODE: 9;
164
+ readonly DOCUMENT_TYPE_NODE: 10;
165
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
166
+ readonly NOTATION_NODE: 12;
167
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
168
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
169
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
170
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
171
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
172
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
173
+ dispatchEvent(event: Event): boolean;
174
+ ariaActiveDescendantElement: Element | null;
175
+ ariaAtomic: string | null;
176
+ ariaAutoComplete: string | null;
177
+ ariaBrailleLabel: string | null;
178
+ ariaBrailleRoleDescription: string | null;
179
+ ariaBusy: string | null;
180
+ ariaChecked: string | null;
181
+ ariaColCount: string | null;
182
+ ariaColIndex: string | null;
183
+ ariaColIndexText: string | null;
184
+ ariaColSpan: string | null;
185
+ ariaControlsElements: ReadonlyArray<Element> | null;
186
+ ariaCurrent: string | null;
187
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
188
+ ariaDescription: string | null;
189
+ ariaDetailsElements: ReadonlyArray<Element> | null;
190
+ ariaDisabled: string | null;
191
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
192
+ ariaExpanded: string | null;
193
+ ariaFlowToElements: ReadonlyArray<Element> | null;
194
+ ariaHasPopup: string | null;
195
+ ariaHidden: string | null;
196
+ ariaInvalid: string | null;
197
+ ariaKeyShortcuts: string | null;
198
+ ariaLabel: string | null;
199
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
200
+ ariaLevel: string | null;
201
+ ariaLive: string | null;
202
+ ariaModal: string | null;
203
+ ariaMultiLine: string | null;
204
+ ariaMultiSelectable: string | null;
205
+ ariaOrientation: string | null;
206
+ ariaOwnsElements: ReadonlyArray<Element> | null;
207
+ ariaPlaceholder: string | null;
208
+ ariaPosInSet: string | null;
209
+ ariaPressed: string | null;
210
+ ariaReadOnly: string | null;
211
+ ariaRelevant: string | null;
212
+ ariaRequired: string | null;
213
+ ariaRoleDescription: string | null;
214
+ ariaRowCount: string | null;
215
+ ariaRowIndex: string | null;
216
+ ariaRowIndexText: string | null;
217
+ ariaRowSpan: string | null;
218
+ ariaSelected: string | null;
219
+ ariaSetSize: string | null;
220
+ ariaSort: string | null;
221
+ ariaValueMax: string | null;
222
+ ariaValueMin: string | null;
223
+ ariaValueNow: string | null;
224
+ ariaValueText: string | null;
225
+ role: string | null;
226
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
227
+ getAnimations(options?: GetAnimationsOptions): Animation[];
228
+ after(...nodes: (Node | string)[]): void;
229
+ before(...nodes: (Node | string)[]): void;
230
+ remove(): void;
231
+ replaceWith(...nodes: (Node | string)[]): void;
232
+ readonly nextElementSibling: Element | null;
233
+ readonly previousElementSibling: Element | null;
234
+ readonly childElementCount: number;
235
+ readonly children: HTMLCollection;
236
+ readonly firstElementChild: Element | null;
237
+ readonly lastElementChild: Element | null;
238
+ append(...nodes: (Node | string)[]): void;
239
+ prepend(...nodes: (Node | string)[]): void;
240
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
241
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
242
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
243
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
244
+ querySelector<E extends Element = Element>(selectors: string): E | null;
245
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
246
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
247
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
248
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
249
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
250
+ replaceChildren(...nodes: (Node | string)[]): void;
251
+ readonly assignedSlot: HTMLSlotElement | null;
252
+ readonly attributeStyleMap: StylePropertyMap;
253
+ get style(): CSSStyleDeclaration;
254
+ set style(cssText: string): any;
255
+ contentEditable: string;
256
+ enterKeyHint: string;
257
+ inputMode: string;
258
+ readonly isContentEditable: boolean;
259
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
260
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
261
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
262
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
263
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
264
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
265
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
266
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
267
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
268
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
269
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
274
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
277
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
278
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
279
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
281
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
282
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
283
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
284
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
285
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
286
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
287
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
288
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
289
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
290
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
291
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
292
+ onerror: OnErrorEventHandler;
293
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
294
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
295
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
296
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
297
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
299
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
300
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
301
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
306
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
307
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
308
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
309
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
310
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
311
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
312
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
313
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
314
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
315
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
317
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
318
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
319
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
320
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
321
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
322
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
323
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
324
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
326
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
327
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
329
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
330
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
331
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
333
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
335
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
341
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
344
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
345
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
346
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
347
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
348
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
349
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
350
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
351
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
352
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
353
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
354
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
355
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
356
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
357
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
359
+ autofocus: boolean;
360
+ readonly dataset: DOMStringMap;
361
+ nonce?: string;
362
+ tabIndex: number;
363
+ blur(): void;
364
+ focus(options?: FocusOptions): void;
365
+ };
366
+ _hostListeners: {
367
+ [listenerName: string]: {
368
+ [type: string]: {
369
+ options?: boolean | AddEventListenerOptions;
370
+ };
371
+ };
372
+ };
373
+ } & typeof LitElement;
374
+ /**
375
+ * coachmark-body for content body
376
+ * @element c4p-coachmark-body
377
+ */
378
+ declare class CDSCoachmarkBody extends CDSCoachmarkBody_base {
379
+ render(): import("lit-html").TemplateResult<1>;
380
+ static styles: any;
381
+ }
382
+ export default CDSCoachmarkBody;
@@ -0,0 +1,40 @@
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 { prefix } from '../../globals/settings.js';
11
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
12
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
13
+ import styles from './coachmark-body.scss.js';
14
+ import { SignalWatcher } from '@lit-labs/signals';
15
+
16
+ /**
17
+ * @license
18
+ *
19
+ * Copyright IBM Corp. 2025
20
+ *
21
+ * This source code is licensed under the Apache-2.0 license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */
24
+ /**
25
+ * coachmark-body for content body
26
+ * @element c4p-coachmark-body
27
+ */
28
+ let CDSCoachmarkBody = class CDSCoachmarkBody extends SignalWatcher(HostListenerMixin(LitElement)) {
29
+ render() {
30
+ return html ` <slot></slot> `;
31
+ }
32
+ };
33
+ CDSCoachmarkBody.styles = styles;
34
+ CDSCoachmarkBody = __decorate([
35
+ carbonElement(`${prefix}-coachmark-body`)
36
+ ], CDSCoachmarkBody);
37
+ var CDSCoachmarkBody$1 = CDSCoachmarkBody;
38
+
39
+ export { CDSCoachmarkBody$1 as default };
40
+ //# sourceMappingURL=coachmark-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coachmark-body.js","sources":["../../../src/components/coachmark/coachmark-body.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH;;;AAGG;AAEH,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAA;IACzE,MAAM,GAAA;QACJ,OAAO,IAAI,CAAA,CAAA,eAAA,CAAiB;;;AAGvB,gBAAM,CAAA,MAAA,GAAG,MAAH;AALT,gBAAgB,GAAA,UAAA,CAAA;AADrB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,eAAA,CAAiB;AACnC,CAAA,EAAA,gBAAgB,CAMrB;AACD,yBAAe,gBAAgB;;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { css } from 'lit';
9
+
10
+ var styles = css([":host(c4p-coachmark-body){display:block;padding:0 1rem 1rem}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=coachmark-body.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coachmark-body.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ interface CoachmarkDetailsType {
2
+ open?: boolean;
3
+ floating?: boolean;
4
+ }
5
+ export declare const coachmarkDetailsSignal: import("@lit-labs/signals").Signal.State<CoachmarkDetailsType>;
6
+ export declare const resetCoachmarkDetailsSignal: () => void;
7
+ export declare const updateCoachmarkDetailsSignal: ({ name, detail }: {
8
+ name: any;
9
+ detail: any;
10
+ }) => void;
11
+ export {};
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { signal } from '@lit-labs/signals';
9
+
10
+ /**
11
+ * @license
12
+ *
13
+ * Copyright IBM Corp. 2025
14
+ *
15
+ * This source code is licensed under the Apache-2.0 license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
18
+ const coachmarkDetailsSignal = signal({
19
+ open: false,
20
+ floating: false,
21
+ });
22
+ const resetCoachmarkDetailsSignal = () => {
23
+ coachmarkDetailsSignal.set({
24
+ open: false,
25
+ floating: false,
26
+ });
27
+ };
28
+ const updateCoachmarkDetailsSignal = ({ name, detail }) => {
29
+ // Fetch current value once
30
+ const currentValue = coachmarkDetailsSignal.get();
31
+ // Only set if value really changes
32
+ if (currentValue[name] !== detail) {
33
+ const newValue = Object.assign(Object.assign({}, currentValue), { [name]: detail });
34
+ coachmarkDetailsSignal.set(newValue);
35
+ }
36
+ };
37
+
38
+ export { coachmarkDetailsSignal, resetCoachmarkDetailsSignal, updateCoachmarkDetailsSignal };
39
+ //# sourceMappingURL=coachmark-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coachmark-context.js","sources":["../../../src/components/coachmark/coachmark-context.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;AAOG;AAQI,MAAM,sBAAsB,GAAG,MAAM,CAAuB;AACjE,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,QAAQ,EAAE,KAAK;AAChB,CAAA;AAEM,MAAM,2BAA2B,GAAG,MAAK;IAC9C,sBAAsB,CAAC,GAAG,CAAC;AACzB,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA,CAAC;AACJ;AACa,MAAA,4BAA4B,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAI;;AAE/D,IAAA,MAAM,YAAY,GAAG,sBAAsB,CAAC,GAAG,EAAE;;AAEjD,IAAA,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,MAAM,EAAE;QACjC,MAAM,QAAQ,GAAQ,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,YAAY,CAAE,EAAA,EAAA,CAAC,IAAI,GAAG,MAAM,EAAA,CAAE;AACpD,QAAA,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC;;AAExC;;;;"}