@carbon/ibmdotcom-web-components 2.12.0-rc.0 → 2.12.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 (64) hide show
  1. package/custom-elements.json +130 -0
  2. package/dist/dotcom-shell.js +1 -1
  3. package/dist/dotcom-shell.min.js +2 -2
  4. package/dist/ibmdotcom-web-components-dotcom-shell.js +1 -1
  5. package/dist/ibmdotcom-web-components-dotcom-shell.min.js +2 -2
  6. package/dist/{index-f01bbaca.js → index-70169c6e.js} +13 -7
  7. package/dist/{index-293a69ce.js → index-776c7803.js} +11 -8
  8. package/dist/{left-nav-menu-2a93561e.js → left-nav-menu-9332390b.js} +1 -1
  9. package/dist/{left-nav-menu-64d39578.js → left-nav-menu-997654d8.js} +2 -2
  10. package/dist/{left-nav-menu-category-heading-caf86d7e.js → left-nav-menu-category-heading-45ad1398.js} +2 -2
  11. package/dist/{left-nav-menu-category-heading-5b830a2e.js → left-nav-menu-category-heading-73a91134.js} +1 -1
  12. package/dist/{left-nav-menu-item-1145b2c8.js → left-nav-menu-item-26eb9068.js} +1 -1
  13. package/dist/{left-nav-menu-item-5d875bff.js → left-nav-menu-item-d81a61ec.js} +2 -2
  14. package/dist/{left-nav-menu-section-95ae9ce8.js → left-nav-menu-section-3503bfaa.js} +2 -2
  15. package/dist/{left-nav-menu-section-fdf94609.js → left-nav-menu-section-8ec3b64a.js} +1 -1
  16. package/dist/{left-nav-overlay-f6157fe1.js → left-nav-overlay-0d1ef8d1.js} +2 -2
  17. package/dist/{left-nav-overlay-e9446c61.js → left-nav-overlay-bebd3ae2.js} +1 -1
  18. package/dist/{megamenu-category-group-1e814268.js → megamenu-category-group-6159f756.js} +2 -2
  19. package/dist/{megamenu-category-group-copy-007cd37c.js → megamenu-category-group-copy-04f0f44e.js} +2 -2
  20. package/dist/{megamenu-category-group-copy-e7add1e4.js → megamenu-category-group-copy-69ecb135.js} +1 -1
  21. package/dist/{megamenu-category-group-09166b1c.js → megamenu-category-group-f58f6c48.js} +1 -1
  22. package/dist/{megamenu-category-heading-aabfb887.js → megamenu-category-heading-08d587ff.js} +1 -1
  23. package/dist/{megamenu-category-heading-73df060a.js → megamenu-category-heading-c1eb3f29.js} +2 -2
  24. package/dist/{megamenu-category-link-e6d8001e.js → megamenu-category-link-38fa62fe.js} +1 -1
  25. package/dist/{megamenu-category-link-eba8994b.js → megamenu-category-link-57241aee.js} +2 -2
  26. package/dist/{megamenu-category-link-group-1db2d2a0.js → megamenu-category-link-group-ac5a75eb.js} +1 -1
  27. package/dist/{megamenu-category-link-group-628176d2.js → megamenu-category-link-group-be8df60b.js} +2 -2
  28. package/dist/{megamenu-left-navigation-f834f737.js → megamenu-left-navigation-66192e34.js} +2 -2
  29. package/dist/{megamenu-left-navigation-d9902c92.js → megamenu-left-navigation-7ec59b93.js} +1 -1
  30. package/dist/{megamenu-overlay-c8f0ad4c.js → megamenu-overlay-7c864df8.js} +1 -1
  31. package/dist/{megamenu-overlay-5af71e27.js → megamenu-overlay-8b7ef06f.js} +2 -2
  32. package/dist/{megamenu-tab-4ff34c5d.js → megamenu-tab-16696f21.js} +1 -1
  33. package/dist/{megamenu-tab-ce94fec3.js → megamenu-tab-8436a6ee.js} +2 -2
  34. package/es/components/back-to-top/__stories__/back-to-top.stories.css.js +1 -1
  35. package/es/components/background-media/background-media.css.js +1 -1
  36. package/es/components/callout-with-media/callout-with-media.css.js +1 -1
  37. package/es/components/card/card-footer.d.ts +1 -0
  38. package/es/components/card/card-footer.js +5 -1
  39. package/es/components/card/card-footer.js.map +1 -1
  40. package/es/components/card/card.d.ts +2 -0
  41. package/es/components/card/card.js +5 -3
  42. package/es/components/card/card.js.map +1 -1
  43. package/es/components/card-group/card-group.css.js +1 -1
  44. package/es/components/card-in-card/card-in-card.css.js +1 -1
  45. package/es/components/card-section-offset/card-section-offset.css.js +1 -1
  46. package/es/components/card-section-simple/card-section-simple.css.js +1 -1
  47. package/es/components/content-block/content-block.css.js +1 -1
  48. package/es/components/content-block-cards/content-block-cards.css.js +1 -1
  49. package/es/components/content-block-media/content-block-media.css.js +1 -1
  50. package/es/components/content-block-segmented/content-block-segmented.css.js +1 -1
  51. package/es/components/content-block-simple/content-block-simple.css.js +1 -1
  52. package/es/components/cta/cta.css.js +1 -1
  53. package/es/components/feature-card/feature-card.css.js +1 -1
  54. package/es/components/global-banner/global-banner.css.js +1 -1
  55. package/es/components/image/image.css.js +1 -1
  56. package/es/components/leadspace/leadspace.css.js +1 -1
  57. package/es/components/leadspace-block/leadspace-block.css.js +1 -1
  58. package/es/components/leadspace-with-search/leadspace-with-search.css.js +1 -1
  59. package/es/components/logo-grid/logo-grid.css.js +1 -1
  60. package/es/components/masthead/masthead.css.js +1 -1
  61. package/es/components-react/card/card-footer.d.ts +1 -0
  62. package/es/components-react/card/card.d.ts +2 -0
  63. package/lib/component-mixins/callout/defs.js +16 -16
  64. package/package.json +6 -6
@@ -11,6 +11,7 @@ import C4DLinkWithIcon from '../link-with-icon/link-with-icon';
11
11
  * Card footer.
12
12
  *
13
13
  * @element c4d-card-footer
14
+ * @csspart copy - The Copy. Usage: `c4d-card-footer::part(copy)`
14
15
  */
15
16
  declare class C4DCardFooter extends C4DLinkWithIcon {
16
17
  /**
@@ -30,6 +30,7 @@ const {
30
30
  * Card footer.
31
31
  *
32
32
  * @element c4d-card-footer
33
+ * @csspart copy - The Copy. Usage: `c4d-card-footer::part(copy)`
33
34
  */
34
35
  let C4DCardFooter = _decorate([customElement(`${c4dPrefix}-card-footer`)], function (_initialize, _C4DLinkWithIcon) {
35
36
  class C4DCardFooter extends _C4DLinkWithIcon {
@@ -101,7 +102,10 @@ let C4DCardFooter = _decorate([customElement(`${c4dPrefix}-card-footer`)], funct
101
102
  _hasCopy: hasCopy
102
103
  } = this;
103
104
  return html(_t || (_t = _`
104
- <span ?hidden="${0}" class="${0}--card__cta__copy">
105
+ <span
106
+ ?hidden="${0}"
107
+ class="${0}--card__cta__copy"
108
+ part="copy">
105
109
  <slot @slotchange="${0}"></slot>
106
110
  </span>
107
111
  `), !hasCopy, prefix, this._handleSlotChange);
@@ -1 +1 @@
1
- {"version":3,"file":"card-footer.js","names":["html","property","query","state","carbonElement","customElement","settings","C4DLinkWithIcon","Error20","styles","prefix","stablePrefix","c4dPrefix","C4DCardFooter","_decorate","_initialize","_C4DLinkWithIcon","constructor","args","F","d","kind","decorators","key","value","href","parentHref","Boolean","_handleSlotChange","target","name","hasContent","assignedNodes","some","node","nodeType","Node","TEXT_NODE","textContent","trim","_hasCopy","_renderContent","hasCopy","_t","_","_renderInner","_t2","disabled","_renderIcon","reflect","attribute","type","updated","changedProperties","_superPropGet","_this$shadowRoot","shadowRoot","querySelector","setAttribute","altAriaLabel","_this$shadowRoot2","removeAttribute","iconInline","_staticNode","staticNode","_linkNode","linkNode","targetNode","classList","add","static"],"sources":["components/card/card-footer.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\nimport settings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js';\nimport C4DLinkWithIcon from '../link-with-icon/link-with-icon';\nimport Error20 from '../../internal/vendor/@carbon/web-components/icons/error/20.js';\nimport styles from './card.scss';\n\nconst { prefix, stablePrefix: c4dPrefix } = settings;\n\n/**\n * Card footer.\n *\n * @element c4d-card-footer\n */\n@customElement(`${c4dPrefix}-card-footer`)\nclass C4DCardFooter extends C4DLinkWithIcon {\n /**\n * The non-link container node, used when the link of parent `<c4d-card>` should be used.\n */\n @query(`.${c4dPrefix}-ce--card__footer--static`)\n private _staticNode?: HTMLSpanElement;\n\n /**\n * `true` if there is copy content.\n */\n @state()\n protected _hasCopy = false;\n\n /**\n * `true` if the link of parent `<c4d-card>` should be used.\n */\n protected get _shouldUseParentLink() {\n const { href, parentHref } = this;\n return Boolean(parentHref) && (!href || parentHref === href);\n }\n\n /**\n * Handles `slotchange` event on the default `<slot>`.\n */\n protected _handleSlotChange({ target }: Event) {\n if (!(target as HTMLSlotElement).name) {\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .some(\n (node) =>\n node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this._hasCopy = hasContent;\n }\n }\n\n /**\n * @returns The main content.\n */\n _renderContent() {\n const { _hasCopy: hasCopy } = this;\n return html`\n <span ?hidden=\"${!hasCopy}\" class=\"${prefix}--card__cta__copy\">\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </span>\n `;\n }\n\n _renderInner() {\n return html`\n ${this._renderContent()} ${this.disabled ? Error20() : this._renderIcon()}\n `;\n }\n\n /**\n * Alternative aria label if no text in footer.\n */\n @property({ reflect: false })\n altAriaLabel?: string | null;\n\n /**\n * The color scheme.\n */\n @property({ attribute: 'color-scheme', reflect: true })\n colorScheme = '';\n\n /**\n * The `href` in parent `<c4d-card>`.\n * `<c4d-card>` sets this automatically.\n */\n @property({ attribute: 'parent-href', reflect: true })\n parentHref?: string;\n\n /**\n * Positions the icon inline with text when `true`\n */\n @property({ type: Boolean })\n iconInline = true;\n\n /**\n * The slot in parent `<c4d-card>`.\n */\n @property({ reflect: true })\n slot = 'footer';\n\n updated(changedProperties) {\n super.updated(changedProperties);\n\n if (!this._hasCopy) {\n this.shadowRoot\n ?.querySelector(`a`)\n ?.setAttribute(\n 'aria-label',\n this.altAriaLabel ? this.altAriaLabel : ''\n );\n } else {\n this.shadowRoot?.querySelector(`a`)?.removeAttribute('aria-label');\n }\n\n const { iconInline, _staticNode: staticNode, _linkNode: linkNode } = this;\n const targetNode = linkNode ?? staticNode;\n targetNode!.classList.add(`${prefix}--card__footer`);\n targetNode!.classList.add(`${c4dPrefix}-ce--card__footer`);\n\n if (iconInline) {\n targetNode!.classList.add(`${prefix}--link-with-icon--inline-icon`);\n }\n }\n\n static get stableSelector() {\n return `${c4dPrefix}--card-footer`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default C4DCardFooter;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,KAAK;AAC1B,SAASC,QAAQ,EAAEC,KAAK,EAAEC,KAAK,QAAQ,mBAAmB;AAC1D,SAASC,aAAa,IAAIC,aAAa,QAAQ,mFAAmF;AAClI,OAAOC,QAAQ,MAAM,kFAAkF;AACvG,OAAOC,eAAe,MAAM,qCAAkC;AAC9D,OAAOC,OAAO,MAAM,gEAAgE;AACpF,OAAOC,MAAM,MAAM,iBAAa;AAEhC,MAAM;EAAEC,MAAM;EAAEC,YAAY,EAAEC;AAAU,CAAC,GAAGN,QAAQ;;AAEpD;AACA;AACA;AACA;AACA;AAJA,IAMMO,aAAa,GAAAC,SAAA,EADlBT,aAAa,CAAC,GAAGO,SAAS,cAAc,CAAC,aAAAG,WAAA,EAAAC,gBAAA;EAA1C,MACMH,aAAa,SAAAG,gBAAA,CAAyB;IAAAC,YAAA,GAAAC,IAAA;MAAA,SAAAA,IAAA;MAAAH,WAAA;IAAA;EAkH5C;EAAC;IAAAI,CAAA,EAlHKN,aAAa;IAAAO,CAAA;MAAAC,IAAA;MAAAC,UAAA,GAIhBpB,KAAK,CAAC,IAAIU,SAAS,2BAA2B,CAAC;MAAAW,GAAA;MAAAC,KAAA;IAAA;MAAAH,IAAA;MAAAC,UAAA,GAM/CnB,KAAK,CAAC,CAAC;MAAAoB,GAAA;MAAAC,MAAA;QAAA,OACa,KAAK;MAAA;IAAA;MAAAH,IAAA;MAAAE,GAAA;MAAAC,KAAA;MAV1B;AACF;AACA;;MAIE;AACF;AACA;;MAIE;AACF;AACA;MACE,SAAAA,CAAA,EAAqC;QACnC,MAAM;U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AACJ,UAAU,cAAAI,iBAAA,gBAAAA,iBAAA,GAAfA,iBAAA,CAAiBH,aAAa,CAAC,GAAG,CAAC,cAAAG,iBAAA,eAAnCA,iBAAA,CAAqCC,eAAe,CAAC,YAAY,CAAC;QACpE;QAEA,MAAM;UAAEC,UAAU;UAAEC,WAAW,EAAEC,UAAU;UAAEC,SAAS,EAAEC;QAAS,CAAC,GAAG,IAAI;QACzE,MAAMC,UAAU,GAAGD,QAAQ,aAARA,QAAQ,cAARA,QAAQ,GAAIF,UAAU;QACzCG,UAAU,CAAEC,SAAS,CAACC,GAAG,CAAC,GAAG3D,MAAM,gBAAgB,CAAC;QACpDyD,UAAU,CAAEC,SAAS,CAACC,GAAG,CAAC,GAAGzD,SAAS,mBAAmB,CAAC;QAE1D,IAAIkD,UAAU,EAAE;UACdK,UAAU,CAAEC,SAAS,CAACC,GAAG,CAAC,GAAG3D,MAAM,+BAA+B,CAAC;QACrE;MACF;IAAC;MAAAW,IAAA;MAAAiD,MAAA;MAAA/C,GAAA;MAAAC,KAAA,EAED,SAAAA,CAAA,EAA4B;QAC1B,OAAO,GAAGZ,SAAS,eAAe;MACpC;IAAC;MAAAS,IAAA;MAAAiD,MAAA;MAAA/C,GAAA;MAAAC,MAAA;QAAA,OAEef,MAAM;MAAA;IAAA;EAAA;AAAA,GAjHIF,eAAe;AAoH3C;AACA,eAAeM,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"card-footer.js","names":["html","property","query","state","carbonElement","customElement","settings","C4DLinkWithIcon","Error20","styles","prefix","stablePrefix","c4dPrefix","C4DCardFooter","_decorate","_initialize","_C4DLinkWithIcon","constructor","args","F","d","kind","decorators","key","value","href","parentHref","Boolean","_handleSlotChange","target","name","hasContent","assignedNodes","some","node","nodeType","Node","TEXT_NODE","textContent","trim","_hasCopy","_renderContent","hasCopy","_t","_","_renderInner","_t2","disabled","_renderIcon","reflect","attribute","type","updated","changedProperties","_superPropGet","_this$shadowRoot","shadowRoot","querySelector","setAttribute","altAriaLabel","_this$shadowRoot2","removeAttribute","iconInline","_staticNode","staticNode","_linkNode","linkNode","targetNode","classList","add","static"],"sources":["components/card/card-footer.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\nimport settings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js';\nimport C4DLinkWithIcon from '../link-with-icon/link-with-icon';\nimport Error20 from '../../internal/vendor/@carbon/web-components/icons/error/20.js';\nimport styles from './card.scss';\n\nconst { prefix, stablePrefix: c4dPrefix } = settings;\n\n/**\n * Card footer.\n *\n * @element c4d-card-footer\n * @csspart copy - The Copy. Usage: `c4d-card-footer::part(copy)`\n */\n@customElement(`${c4dPrefix}-card-footer`)\nclass C4DCardFooter extends C4DLinkWithIcon {\n /**\n * The non-link container node, used when the link of parent `<c4d-card>` should be used.\n */\n @query(`.${c4dPrefix}-ce--card__footer--static`)\n private _staticNode?: HTMLSpanElement;\n\n /**\n * `true` if there is copy content.\n */\n @state()\n protected _hasCopy = false;\n\n /**\n * `true` if the link of parent `<c4d-card>` should be used.\n */\n protected get _shouldUseParentLink() {\n const { href, parentHref } = this;\n return Boolean(parentHref) && (!href || parentHref === href);\n }\n\n /**\n * Handles `slotchange` event on the default `<slot>`.\n */\n protected _handleSlotChange({ target }: Event) {\n if (!(target as HTMLSlotElement).name) {\n const hasContent = (target as HTMLSlotElement)\n .assignedNodes()\n .some(\n (node) =>\n node.nodeType !== Node.TEXT_NODE || node!.textContent!.trim()\n );\n this._hasCopy = hasContent;\n }\n }\n\n /**\n * @returns The main content.\n */\n _renderContent() {\n const { _hasCopy: hasCopy } = this;\n return html`\n <span\n ?hidden=\"${!hasCopy}\"\n class=\"${prefix}--card__cta__copy\"\n part=\"copy\">\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </span>\n `;\n }\n\n _renderInner() {\n return html`\n ${this._renderContent()} ${this.disabled ? Error20() : this._renderIcon()}\n `;\n }\n\n /**\n * Alternative aria label if no text in footer.\n */\n @property({ reflect: false })\n altAriaLabel?: string | null;\n\n /**\n * The color scheme.\n */\n @property({ attribute: 'color-scheme', reflect: true })\n colorScheme = '';\n\n /**\n * The `href` in parent `<c4d-card>`.\n * `<c4d-card>` sets this automatically.\n */\n @property({ attribute: 'parent-href', reflect: true })\n parentHref?: string;\n\n /**\n * Positions the icon inline with text when `true`\n */\n @property({ type: Boolean })\n iconInline = true;\n\n /**\n * The slot in parent `<c4d-card>`.\n */\n @property({ reflect: true })\n slot = 'footer';\n\n updated(changedProperties) {\n super.updated(changedProperties);\n\n if (!this._hasCopy) {\n this.shadowRoot\n ?.querySelector(`a`)\n ?.setAttribute(\n 'aria-label',\n this.altAriaLabel ? this.altAriaLabel : ''\n );\n } else {\n this.shadowRoot?.querySelector(`a`)?.removeAttribute('aria-label');\n }\n\n const { iconInline, _staticNode: staticNode, _linkNode: linkNode } = this;\n const targetNode = linkNode ?? staticNode;\n targetNode!.classList.add(`${prefix}--card__footer`);\n targetNode!.classList.add(`${c4dPrefix}-ce--card__footer`);\n\n if (iconInline) {\n targetNode!.classList.add(`${prefix}--link-with-icon--inline-icon`);\n }\n }\n\n static get stableSelector() {\n return `${c4dPrefix}--card-footer`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default C4DCardFooter;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,KAAK;AAC1B,SAASC,QAAQ,EAAEC,KAAK,EAAEC,KAAK,QAAQ,mBAAmB;AAC1D,SAASC,aAAa,IAAIC,aAAa,QAAQ,mFAAmF;AAClI,O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,CAAC,GAAG3D,MAAM,gBAAgB,CAAC;QACpDyD,UAAU,CAAEC,SAAS,CAACC,GAAG,CAAC,GAAGzD,SAAS,mBAAmB,CAAC;QAE1D,IAAIkD,UAAU,EAAE;UACdK,UAAU,CAAEC,SAAS,CAACC,GAAG,CAAC,GAAG3D,MAAM,+BAA+B,CAAC;QACrE;MACF;IAAC;MAAAW,IAAA;MAAAiD,MAAA;MAAA/C,GAAA;MAAAC,KAAA,EAED,SAAAA,CAAA,EAA4B;QAC1B,OAAO,GAAGZ,SAAS,eAAe;MACpC;IAAC;MAAAS,IAAA;MAAAiD,MAAA;MAAA/C,GAAA;MAAAC,MAAA;QAAA,OAEef,MAAM;MAAA;IAAA;EAAA;AAAA,GApHIF,eAAe;AAuH3C;AACA,eAAeM,aAAa","ignoreList":[]}
@@ -710,7 +710,9 @@ declare const C4DCard_base: {
710
710
  * @slot heading - The heading content.
711
711
  * @slot image - The image content.
712
712
  * @slot footer - The footer content.
713
+ * @csspart caption - The Caption (default heading). Usage: `c4d-card::part(caption)`
713
714
  * @csspart copy - The Copy. Usage: `c4d-card::part(copy)`
715
+ * @csspart container - The Inner content container. Usage: `c4d-card::part(container)`
714
716
  * @csspart video-thumbnail - The video thumbnail. Usage: `c4d-card::part(video-thumbnail)`
715
717
  * @csspart disabled-link - . Disabled link. Usage: `c4d-card::part(disabled-link)`
716
718
  * @csspart wrapper - The component wrapper. Usage: `c4d-card::part(wrapper)`
@@ -62,7 +62,9 @@ const slotExistencePropertyNames = {
62
62
  * @slot heading - The heading content.
63
63
  * @slot image - The image content.
64
64
  * @slot footer - The footer content.
65
+ * @csspart caption - The Caption (default heading). Usage: `c4d-card::part(caption)`
65
66
  * @csspart copy - The Copy. Usage: `c4d-card::part(copy)`
67
+ * @csspart container - The Inner content container. Usage: `c4d-card::part(container)`
66
68
  * @csspart video-thumbnail - The video thumbnail. Usage: `c4d-card::part(video-thumbnail)`
67
69
  * @csspart disabled-link - . Disabled link. Usage: `c4d-card::part(disabled-link)`
68
70
  * @csspart wrapper - The component wrapper. Usage: `c4d-card::part(wrapper)`
@@ -173,7 +175,7 @@ let C4DCard = _decorate([customElement(`${c4dPrefix}-card`)], function (_initial
173
175
  }));
174
176
  return html(_t2 || (_t2 = _`
175
177
  <slot name="heading"></slot
176
- ><c4d-card-heading>${0}</c4d-card-heading>
178
+ ><c4d-card-heading part="caption">${0}</c4d-card-heading>
177
179
  `), caption);
178
180
  }
179
181
 
@@ -494,7 +496,7 @@ let C4DCard = _decorate([customElement(`${c4dPrefix}-card`)], function (_initial
494
496
  value: function render() {
495
497
  var _this$querySelector3;
496
498
  return this._hasPictogram ? html(_t11 || (_t11 = _`
497
- <div>
499
+ <div part="container">
498
500
  ${0}
499
501
  <a
500
502
  class="${0}"
@@ -504,7 +506,7 @@ let C4DCard = _decorate([customElement(`${c4dPrefix}-card`)], function (_initial
504
506
  >${0}</a
505
507
  >
506
508
  </div>
507
- `), this._renderInner(), `${prefix}--card__link`, ifDefined(this.href), ((_this$querySelector3 = this.querySelector(`${c4dPrefix}-card-heading`)) === null || _this$querySelector3 === void 0 ? void 0 : _this$querySelector3.textContent) || '', ArrowRight20()) : html(_t12 || (_t12 = _` <div>${0}</div> `), this._renderInner());
509
+ `), this._renderInner(), `${prefix}--card__link`, ifDefined(this.href), ((_this$querySelector3 = this.querySelector(`${c4dPrefix}-card-heading`)) === null || _this$querySelector3 === void 0 ? void 0 : _this$querySelector3.textContent) || '', ArrowRight20()) : html(_t12 || (_t12 = _` <div part="container">${0}</div> `), this._renderInner());
508
510
  }
509
511
  }, {
510
512
  kind: "get",
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","names":["html","LitElement","property","query","state","ifDefined","ArrowRight20","CDSLink","markdownToHtml","carbonElement","customElement","settings","BASIC_COLOR_SCHEME","StableSelectorMixin","styles","PICTOGRAM_PLACEMENT","CTA_TYPE","CTAMixin","prefix","stablePrefix","c4dPrefix","slotExistencePropertyNames","image","pictogram","C4DCard","_decorate","_initialize","_CTAMixin","constructor","args","F","d","kind","decorators","attribute","key","value","type","Boolean","_handleSlotChange","target","name","hasContent","querySelector","_hasCopy","_renderHeading","ctaType","videoName","formatVideoCaption","formatVideoCaptionInEffect","VIDEO","_t","_","caption","dispatchEvent","CustomEvent","eventVideoTitleUpdated","bubbles","composed","_t2","_renderCopy","hasCopy","_t3","_renderImage","videoThumbnailUrl","_hasImage","hasImage","noPoster","undefined","_t4","_t5","_renderDisabledLink","_classes","classes","_t6","_renderInner","handleSlotChange","_hasPictogram","hasPictogram","_t7","_t8","pictogramPlacement","TOP","_t9","BOTTOM","_t10","reflect","updated","changedProperties","_superPropGet","colorScheme","disabled","href","_linkNode","linkNode","has","_this$querySelector","videoDuration","videoDescription","formatVideoDuration","formatVideoDurationInEffect","footer","headingText","textContent","copyText","ariaTitle","ariaDuration","altAriaLabel","_this$querySelector2","selectorFooter","parentHref","classList","add","toggle","INVERSE","onclick","window","open","setAttribute","removeAttribute","copyElement","innerText","_copyElement$firstEle","innerHTML","bold","firstElementChild","event","_heading$textContent","_footer$textContent","detail","formattedVideoDuration","duration","videoTitle","heading","trim","title","document","createTextNode","appendChild","connectedCallback","eventRequestAdditionalVideoData","addEventListener","_handleVideoTitleUpdate","disconnectedCallback","removeEventListener","render","_this$querySelector3","_t11","_t12","static","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/card/card.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { TemplateResult, html, LitElement } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport ArrowRight20 from '../../internal/vendor/@carbon/web-components/icons/arrow--right/20';\nimport CDSLink from '../../internal/vendor/@carbon/web-components/components/link/link.js';\nimport markdownToHtml from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\nimport settings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport { BASIC_COLOR_SCHEME } from '../../globals/defs';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport C4DCardFooter from './card-footer';\nimport styles from './card.scss';\nimport { PICTOGRAM_PLACEMENT } from './defs';\n\nimport { CTA_TYPE } from '../cta/defs';\n\nimport CTAMixin from '../../component-mixins/cta/cta';\n\nconst { prefix, stablePrefix: c4dPrefix } = settings;\n\n/**\n * The table mapping slot name with the private property name that indicates the existence of the slot content.\n */\nconst slotExistencePropertyNames = {\n image: '_hasImage',\n pictogram: '_hasPictogram',\n};\n\n/**\n * Card.\n *\n * @element c4d-card\n * @slot eyebrow - The eyebrow content.\n * @slot heading - The heading content.\n * @slot image - The image content.\n * @slot footer - The footer content.\n * @csspart copy - The Copy. Usage: `c4d-card::part(copy)`\n * @csspart video-thumbnail - The video thumbnail. Usage: `c4d-card::part(video-thumbnail)`\n * @csspart disabled-link - . Disabled link. Usage: `c4d-card::part(disabled-link)`\n * @csspart wrapper - The component wrapper. Usage: `c4d-card::part(wrapper)`\n * @csspart content - The content container. Usage: `c4d-card::part(content)`\n * @csspart link - Active link. Usage: `c4d-card::part(link)`\n */\n@customElement(`${c4dPrefix}-card`)\nclass C4DCard extends CTAMixin(StableSelectorMixin(CDSLink)) {\n /**\n * `true` if there is copy content.\n */\n @property({ attribute: 'cta-type' })\n ctaType;\n\n /**\n * `true` if there is image content.\n */\n @state()\n protected _hasImage = false;\n\n /**\n * `true` if there is copy content.\n */\n @state()\n protected _hasCopy = false;\n\n /**\n * `true` if there is a pictogram.\n */\n @state()\n protected _hasPictogram = false;\n\n @property({ attribute: 'no-poster', type: Boolean })\n noPoster;\n\n /**\n * Handles `slotchange` event.\n */\n protected _handleSlotChange({ target }: Event) {\n const { name } = target as HTMLSlotElement;\n const hasContent = Boolean(this.querySelector('p'));\n this[slotExistencePropertyNames[name]] = hasContent;\n this._hasCopy = hasContent;\n }\n\n /**\n * @returns The heading content.\n */\n // eslint-disable-next-line class-methods-use-this\n protected _renderHeading(): TemplateResult | string | void {\n const {\n ctaType,\n videoName,\n formatVideoCaption: formatVideoCaptionInEffect,\n } = this;\n if (ctaType !== CTA_TYPE.VIDEO) {\n return html`<slot name=\"heading\"></slot>`;\n }\n const caption = formatVideoCaptionInEffect({ name: videoName });\n\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof C4DCard).eventVideoTitleUpdated,\n {\n bubbles: true,\n composed: true,\n }\n )\n );\n return html`\n <slot name=\"heading\"></slot\n ><c4d-card-heading>${caption}</c4d-card-heading>\n `;\n }\n\n /**\n * @returns The copy content.\n */\n protected _renderCopy(): TemplateResult | string | void {\n const { _hasCopy: hasCopy } = this;\n return html`\n <div ?hidden=\"${!hasCopy}\" class=\"${prefix}--card__copy\" part=\"copy\">\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </div>\n `;\n }\n\n protected _renderImage(): TemplateResult | string | void {\n const {\n ctaType,\n videoName,\n videoThumbnailUrl,\n _hasImage: hasImage,\n noPoster,\n } = this;\n\n const image =\n hasImage || ctaType !== CTA_TYPE.VIDEO || noPoster\n ? undefined\n : html`\n <c4d-image\n class=\"${prefix}--card__video-thumbnail\"\n part=\"video-thumbnail\"\n alt=\"${videoName}\"\n default-src=\"${videoThumbnailUrl}\">\n </c4d-image>\n `;\n return html`\n <slot name=\"image\" @slotchange=\"${this._handleSlotChange}\"></slot>${image}\n `;\n }\n\n /**\n * @returns The disabled link content.\n */\n protected _renderDisabledLink() {\n const { _classes: classes } = this;\n return html`\n <div id=\"link\" class=\"${classes}\" part=\"disabled-link\">\n ${this._renderInner()}\n </div>\n `;\n }\n\n /**\n * @returns The inner content.\n */\n protected _renderInner() {\n const { _handleSlotChange: handleSlotChange, _hasPictogram: hasPictogram } =\n this;\n return html`\n ${this._renderImage()}\n <div\n class=\"${prefix}--card__wrapper ${hasPictogram\n ? `${prefix}--card__pictogram`\n : ''}\"\n part=\"wrapper\">\n <div class=\"${prefix}--card__content\" part=\"content\">\n ${hasPictogram ? '' : html` <slot name=\"eyebrow\"></slot> `}\n ${this.pictogramPlacement === PICTOGRAM_PLACEMENT.TOP\n ? html`\n <slot\n name=\"pictogram\"\n data-pictogram-placement=\"${PICTOGRAM_PLACEMENT.TOP}\"\n @slotchange=\"${handleSlotChange}\"></slot>\n `\n : ''}\n ${this.pictogramPlacement !== PICTOGRAM_PLACEMENT.TOP || !hasPictogram\n ? this._renderHeading()\n : null}\n ${this.pictogramPlacement === PICTOGRAM_PLACEMENT.BOTTOM ||\n !hasPictogram\n ? this._renderCopy()\n : ''}\n ${this.pictogramPlacement === PICTOGRAM_PLACEMENT.BOTTOM\n ? html`\n <slot\n name=\"pictogram\"\n data-pictogram-placement=\"${PICTOGRAM_PLACEMENT.BOTTOM}\"\n @slotchange=\"${handleSlotChange}\"></slot>\n `\n : ''}\n ${hasPictogram && this.pictogramPlacement === PICTOGRAM_PLACEMENT.TOP\n ? this._renderHeading()\n : null}\n ${hasPictogram && this.pictogramPlacement === PICTOGRAM_PLACEMENT.TOP\n ? this._renderCopy()\n : ''}\n <slot name=\"footer\"></slot>\n </div>\n </div>\n `;\n }\n\n /**\n * The color scheme.\n * A typical use case of using another color scheme of card is having a \"CTA\" purpose of card at the last in card group.\n *\n * Color scheme options are: \"inverse\" and \"regular\"\n */\n @property({ attribute: 'color-scheme', reflect: true })\n colorScheme = '';\n\n /**\n * Link `href`.\n */\n @property()\n href = '';\n\n /**\n * Pictogram placement\n */\n @property({ attribute: 'pictogram-placement', reflect: true })\n pictogramPlacement = PICTOGRAM_PLACEMENT.BOTTOM;\n\n /**\n * Whether or not to apply the link style.\n */\n @property({ type: Boolean, reflect: true })\n link = false;\n\n /**\n * Whether or not to apply the logo style.\n */\n @property({ type: Boolean, reflect: true })\n logo = false;\n\n @query('div')\n _linkNode;\n\n updated(changedProperties) {\n super.updated(changedProperties);\n const { colorScheme, disabled, href, _linkNode: linkNode, ctaType } = this;\n\n if (\n changedProperties.has('ctaType') ||\n changedProperties.has('disabled') ||\n changedProperties.has('formatCaption') ||\n changedProperties.has('formatDuration') ||\n changedProperties.has('videoDuration') ||\n changedProperties.has('videoName')\n ) {\n const {\n ctaType,\n videoDuration,\n videoName,\n videoDescription,\n formatVideoCaption: formatVideoCaptionInEffect,\n formatVideoDuration: formatVideoDurationInEffect,\n } = this;\n const footer = this.querySelector(`${c4dPrefix}-card-footer`);\n\n const headingText = this.querySelector(\n `${c4dPrefix}-card-heading`\n )?.textContent;\n const copyText = this.textContent;\n if (footer) {\n const ariaTitle = videoName || headingText || copyText;\n let ariaDuration = '';\n if (videoDuration !== undefined) {\n ariaDuration = `, DURATION ${videoDuration}`;\n }\n (footer as C4DCardFooter).disabled = disabled;\n (footer as C4DCardFooter).altAriaLabel = `${ariaTitle}${ariaDuration}`;\n (footer as C4DCardFooter).ctaType = ctaType;\n (footer as C4DCardFooter).videoDuration = videoDuration;\n (footer as C4DCardFooter).videoName = videoName;\n (footer as C4DCardFooter).videoDescription = videoDescription;\n if (formatVideoCaptionInEffect) {\n (footer as C4DCardFooter).formatVideoCaption =\n formatVideoCaptionInEffect;\n }\n if (formatVideoDurationInEffect) {\n (footer as C4DCardFooter).formatVideoDuration =\n formatVideoDurationInEffect;\n }\n }\n }\n\n if (changedProperties.has('colorScheme') || changedProperties.has('href')) {\n const headingText = this.querySelector(\n `${c4dPrefix}-card-heading`\n )?.textContent;\n const copyText = this.textContent;\n const footer = this.querySelector(\n (this.constructor as typeof C4DCard).selectorFooter\n );\n if (footer && href) {\n (footer as C4DCardFooter).colorScheme = colorScheme;\n (footer as C4DCardFooter).parentHref = href;\n (footer as C4DCardFooter).ctaType = ctaType;\n (footer as C4DCardFooter).href = href;\n (footer as C4DCardFooter).altAriaLabel = headingText || copyText;\n }\n }\n if (linkNode) {\n linkNode.classList.add(`${prefix}--tile`);\n linkNode.classList.add(`${prefix}--card`);\n linkNode.classList.toggle(`${prefix}--tile--clickable`, Boolean(href));\n linkNode.classList.toggle(`${prefix}--card--link`, Boolean(href));\n linkNode.classList.toggle(\n `${prefix}--card--inverse`,\n colorScheme === BASIC_COLOR_SCHEME.INVERSE\n );\n linkNode.classList.toggle(\n `${prefix}--link--disabled`,\n Boolean(this.disabled)\n );\n }\n\n if (this._hasPictogram) {\n this.onclick = () => window.open(this.href, '_self');\n this.setAttribute('pictogram', '');\n } else {\n this.removeAttribute('pictogram');\n }\n\n const copyElement = this.querySelector('p');\n if (this._hasCopy && copyElement?.innerText) {\n copyElement.innerHTML = `${markdownToHtml(copyElement?.innerText, {\n bold: false,\n })}`;\n copyElement.firstElementChild?.setAttribute('style', 'all:unset;');\n }\n }\n\n /**\n * Handles card with video heading and applies the set same height function.\n *\n * @param event The event.\n */\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleVideoTitleUpdate = async (event) => {\n if (event && this.ctaType === CTA_TYPE.VIDEO) {\n const { videoDuration, videoName } = event.detail as any;\n const { formatVideoDuration, formatVideoCaption } = this;\n const formattedVideoDuration = formatVideoDuration({\n duration: !videoDuration ? videoDuration : videoDuration * 1000,\n });\n this.videoDuration ? null : (this.videoDuration = formattedVideoDuration);\n\n this.videoTitle = formatVideoCaption({\n name: videoName,\n });\n\n const heading = this.querySelector(`${c4dPrefix}-card-heading`);\n const footer = this.querySelector(`${c4dPrefix}-card-footer`);\n\n if (heading?.textContent?.trim() === '') {\n const title = document.createTextNode(this.videoTitle);\n heading?.appendChild(title);\n }\n\n if (footer?.textContent?.trim() === '') {\n const title = document.createTextNode(formattedVideoDuration);\n footer?.appendChild(title);\n }\n }\n };\n\n connectedCallback() {\n super.connectedCallback();\n const { eventRequestAdditionalVideoData } = this\n .constructor as typeof C4DCard;\n document.addEventListener(\n eventRequestAdditionalVideoData,\n this._handleVideoTitleUpdate\n );\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n const { eventRequestAdditionalVideoData } = this\n .constructor as typeof C4DCard;\n document.removeEventListener(\n eventRequestAdditionalVideoData,\n this._handleVideoTitleUpdate\n );\n }\n render() {\n return this._hasPictogram\n ? html`\n <div>\n ${this._renderInner()}\n <a\n class=\"${`${prefix}--card__link`}\"\n part=\"link\"\n href=\"${ifDefined(this.href)}\"\n aria-label=\"${this.querySelector(`${c4dPrefix}-card-heading`)\n ?.textContent || ''}\"\n >${ArrowRight20()}</a\n >\n </div>\n `\n : html` <div>${this._renderInner()}</div> `;\n }\n\n static get stableSelector() {\n return `${c4dPrefix}--card`;\n }\n\n /**\n * A selector that will return the child footer.\n */\n static get selectorFooter() {\n return `${c4dPrefix}-card-footer`;\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to run the action.\n */\n static get eventRequestAdditionalVideoData() {\n return `${c4dPrefix}-cta-request-additional-video-data`;\n }\n\n /**\n * The name of the custom event fired when the video title is updated\n */\n static get eventVideoTitleUpdated() {\n return `${c4dPrefix}-card-video-title-updated`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default C4DCard;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAyBA,IAAI,EAAEC,UAAU,QAAQ,KAAK;AACtD,SAASC,QAAQ,EAAEC,KAAK,EAAEC,KAAK,QAAQ,mBAAmB;AAC1D,SAASC,SAAS,QAAQ,8BAA8B;AACxD,OAAOC,YAAY,MAAM,uEAAoE;AAC7F,OAAOC,OAAO,MAAM,sEAAsE;AAC1F,OAAOC,cAAc,MAAM,8FAA8F;AACzH,SAASC,aAAa,IAAIC,aAAa,QAAQ,mFAAmF;AAClI,OAAOC,QAAQ,MAAM,kFAA+E;AACpG,SAASC,kBAAkB,QAAQ,uBAAoB;AACvD,OAAOC,mBAAmB,MAAM,yCAAsC;AAEtE,OAAOC,MAAM,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AAAA,IAAA,GAAAhG,CAAA,sBAAS,IAAI,CAACuB,YAAY,CAAC,CAAC,CAAS;MAC/C;IAAC;MAAA3C,IAAA;MAAAqH,MAAA;MAAAlH,GAAA;MAAAC,KAAA,EAED,SAAAA,CAAA,EAA4B;QAC1B,OAAO,GAAGhB,SAAS,QAAQ;MAC7B;;MAEA;AACF;AACA;IAFE;MAAAY,IAAA;MAAAqH,MAAA;MAAAlH,GAAA;MAAAC,KAAA,EAGA,SAAAA,CAAA,EAA4B;QAC1B,OAAO,GAAGhB,SAAS,cAAc;MACnC;;MAEA;AACF;AACA;IAFE;MAAAY,IAAA;MAAAqH,MAAA;MAAAlH,GAAA;MAAAC,KAAA,EAGA,SAAAA,CAAA,EAA6C;QAC3C,OAAO,GAAGhB,SAAS,oCAAoC;MACzD;;MAEA;AACF;AACA;IAFE;MAAAY,IAAA;MAAAqH,MAAA;MAAAlH,GAAA;MAAAC,KAAA,EAGA,SAAAA,CAAA,EAAoC;QAClC,OAAO,GAAGhB,SAAS,2BAA2B;MAChD;IAAC;MAAAY,IAAA;MAAAqH,MAAA;MAAAlH,GAAA;MAAAC,MAAA;QAAA,OAAAkH,aAAA,CAAAA,aAAA,KAGIrJ,UAAU,CAACsJ,iBAAiB;UAC/BC,cAAc,EAAE;QAAI;MAAA;IAAA;MAAAxH,IAAA;MAAAqH,MAAA;MAAAlH,GAAA;MAAAC,MAAA;QAAA,OAENtB,MAAM;MAAA;IAAA;EAAA;AAAA,GA/YFG,QAAQ,CAACJ,mBAAmB,CAACN,OAAO,CAAC,CAAC;AAkZ5D;AACA,eAAeiB,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"card.js","names":["html","LitElement","property","query","state","ifDefined","ArrowRight20","CDSLink","markdownToHtml","carbonElement","customElement","settings","BASIC_COLOR_SCHEME","StableSelectorMixin","styles","PICTOGRAM_PLACEMENT","CTA_TYPE","CTAMixin","prefix","stablePrefix","c4dPrefix","slotExistencePropertyNames","image","pictogram","C4DCard","_decorate","_initialize","_CTAMixin","constructor","args","F","d","kind","decorators","attribute","key","value","type","Boolean","_handleSlotChange","target","name","hasContent","querySelector","_hasCopy","_renderHeading","ctaType","videoName","formatVideoCaption","formatVideoCaptionInEffect","VIDEO","_t","_","caption","dispatchEvent","CustomEvent","eventVideoTitleUpdated","bubbles","composed","_t2","_renderCopy","hasCopy","_t3","_renderImage","videoThumbnailUrl","_hasImage","hasImage","noPoster","undefined","_t4","_t5","_renderDisabledLink","_classes","classes","_t6","_renderInner","handleSlotChange","_hasPictogram","hasPictogram","_t7","_t8","pictogramPlacement","TOP","_t9","BOTTOM","_t10","reflect","updated","changedProperties","_superPropGet","colorScheme","disabled","href","_linkNode","linkNode","has","_this$querySelector","videoDuration","videoDescription","formatVideoDuration","formatVideoDurationInEffect","footer","headingText","textContent","copyText","ariaTitle","ariaDuration","altAriaLabel","_this$querySelector2","selectorFooter","parentHref","classList","add","toggle","INVERSE","onclick","window","open","setAttribute","removeAttribute","copyElement","innerText","_copyElement$firstEle","innerHTML","bold","firstElementChild","event","_heading$textContent","_footer$textContent","detail","formattedVideoDuration","duration","videoTitle","heading","trim","title","document","createTextNode","appendChild","connectedCallback","eventRequestAdditionalVideoData","addEventListener","_handleVideoTitleUpdate","disconnectedCallback","removeEventListener","render","_this$querySelector3","_t11","_t12","static","_objectSpread","shadowRootOptions","delegatesFocus"],"sources":["components/card/card.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { TemplateResult, html, LitElement } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport ArrowRight20 from '../../internal/vendor/@carbon/web-components/icons/arrow--right/20';\nimport CDSLink from '../../internal/vendor/@carbon/web-components/components/link/link.js';\nimport markdownToHtml from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js';\nimport { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element.js';\nimport settings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport { BASIC_COLOR_SCHEME } from '../../globals/defs';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\nimport C4DCardFooter from './card-footer';\nimport styles from './card.scss';\nimport { PICTOGRAM_PLACEMENT } from './defs';\n\nimport { CTA_TYPE } from '../cta/defs';\n\nimport CTAMixin from '../../component-mixins/cta/cta';\n\nconst { prefix, stablePrefix: c4dPrefix } = settings;\n\n/**\n * The table mapping slot name with the private property name that indicates the existence of the slot content.\n */\nconst slotExistencePropertyNames = {\n image: '_hasImage',\n pictogram: '_hasPictogram',\n};\n\n/**\n * Card.\n *\n * @element c4d-card\n * @slot eyebrow - The eyebrow content.\n * @slot heading - The heading content.\n * @slot image - The image content.\n * @slot footer - The footer content.\n * @csspart caption - The Caption (default heading). Usage: `c4d-card::part(caption)`\n * @csspart copy - The Copy. Usage: `c4d-card::part(copy)`\n * @csspart container - The Inner content container. Usage: `c4d-card::part(container)`\n * @csspart video-thumbnail - The video thumbnail. Usage: `c4d-card::part(video-thumbnail)`\n * @csspart disabled-link - . Disabled link. Usage: `c4d-card::part(disabled-link)`\n * @csspart wrapper - The component wrapper. Usage: `c4d-card::part(wrapper)`\n * @csspart content - The content container. Usage: `c4d-card::part(content)`\n * @csspart link - Active link. Usage: `c4d-card::part(link)`\n */\n@customElement(`${c4dPrefix}-card`)\nclass C4DCard extends CTAMixin(StableSelectorMixin(CDSLink)) {\n /**\n * `true` if there is copy content.\n */\n @property({ attribute: 'cta-type' })\n ctaType;\n\n /**\n * `true` if there is image content.\n */\n @state()\n protected _hasImage = false;\n\n /**\n * `true` if there is copy content.\n */\n @state()\n protected _hasCopy = false;\n\n /**\n * `true` if there is a pictogram.\n */\n @state()\n protected _hasPictogram = false;\n\n @property({ attribute: 'no-poster', type: Boolean })\n noPoster;\n\n /**\n * Handles `slotchange` event.\n */\n protected _handleSlotChange({ target }: Event) {\n const { name } = target as HTMLSlotElement;\n const hasContent = Boolean(this.querySelector('p'));\n this[slotExistencePropertyNames[name]] = hasContent;\n this._hasCopy = hasContent;\n }\n\n /**\n * @returns The heading content.\n */\n // eslint-disable-next-line class-methods-use-this\n protected _renderHeading(): TemplateResult | string | void {\n const {\n ctaType,\n videoName,\n formatVideoCaption: formatVideoCaptionInEffect,\n } = this;\n if (ctaType !== CTA_TYPE.VIDEO) {\n return html`<slot name=\"heading\"></slot>`;\n }\n const caption = formatVideoCaptionInEffect({ name: videoName });\n\n this.dispatchEvent(\n new CustomEvent(\n (this.constructor as typeof C4DCard).eventVideoTitleUpdated,\n {\n bubbles: true,\n composed: true,\n }\n )\n );\n return html`\n <slot name=\"heading\"></slot\n ><c4d-card-heading part=\"caption\">${caption}</c4d-card-heading>\n `;\n }\n\n /**\n * @returns The copy content.\n */\n protected _renderCopy(): TemplateResult | string | void {\n const { _hasCopy: hasCopy } = this;\n return html`\n <div ?hidden=\"${!hasCopy}\" class=\"${prefix}--card__copy\" part=\"copy\">\n <slot @slotchange=\"${this._handleSlotChange}\"></slot>\n </div>\n `;\n }\n\n protected _renderImage(): TemplateResult | string | void {\n const {\n ctaType,\n videoName,\n videoThumbnailUrl,\n _hasImage: hasImage,\n noPoster,\n } = this;\n\n const image =\n hasImage || ctaType !== CTA_TYPE.VIDEO || noPoster\n ? undefined\n : html`\n <c4d-image\n class=\"${prefix}--card__video-thumbnail\"\n part=\"video-thumbnail\"\n alt=\"${videoName}\"\n default-src=\"${videoThumbnailUrl}\">\n </c4d-image>\n `;\n return html`\n <slot name=\"image\" @slotchange=\"${this._handleSlotChange}\"></slot>${image}\n `;\n }\n\n /**\n * @returns The disabled link content.\n */\n protected _renderDisabledLink() {\n const { _classes: classes } = this;\n return html`\n <div id=\"link\" class=\"${classes}\" part=\"disabled-link\">\n ${this._renderInner()}\n </div>\n `;\n }\n\n /**\n * @returns The inner content.\n */\n protected _renderInner() {\n const { _handleSlotChange: handleSlotChange, _hasPictogram: hasPictogram } =\n this;\n return html`\n ${this._renderImage()}\n <div\n class=\"${prefix}--card__wrapper ${hasPictogram\n ? `${prefix}--card__pictogram`\n : ''}\"\n part=\"wrapper\">\n <div class=\"${prefix}--card__content\" part=\"content\">\n ${hasPictogram ? '' : html` <slot name=\"eyebrow\"></slot> `}\n ${this.pictogramPlacement === PICTOGRAM_PLACEMENT.TOP\n ? html`\n <slot\n name=\"pictogram\"\n data-pictogram-placement=\"${PICTOGRAM_PLACEMENT.TOP}\"\n @slotchange=\"${handleSlotChange}\"></slot>\n `\n : ''}\n ${this.pictogramPlacement !== PICTOGRAM_PLACEMENT.TOP || !hasPictogram\n ? this._renderHeading()\n : null}\n ${this.pictogramPlacement === PICTOGRAM_PLACEMENT.BOTTOM ||\n !hasPictogram\n ? this._renderCopy()\n : ''}\n ${this.pictogramPlacement === PICTOGRAM_PLACEMENT.BOTTOM\n ? html`\n <slot\n name=\"pictogram\"\n data-pictogram-placement=\"${PICTOGRAM_PLACEMENT.BOTTOM}\"\n @slotchange=\"${handleSlotChange}\"></slot>\n `\n : ''}\n ${hasPictogram && this.pictogramPlacement === PICTOGRAM_PLACEMENT.TOP\n ? this._renderHeading()\n : null}\n ${hasPictogram && this.pictogramPlacement === PICTOGRAM_PLACEMENT.TOP\n ? this._renderCopy()\n : ''}\n <slot name=\"footer\"></slot>\n </div>\n </div>\n `;\n }\n\n /**\n * The color scheme.\n * A typical use case of using another color scheme of card is having a \"CTA\" purpose of card at the last in card group.\n *\n * Color scheme options are: \"inverse\" and \"regular\"\n */\n @property({ attribute: 'color-scheme', reflect: true })\n colorScheme = '';\n\n /**\n * Link `href`.\n */\n @property()\n href = '';\n\n /**\n * Pictogram placement\n */\n @property({ attribute: 'pictogram-placement', reflect: true })\n pictogramPlacement = PICTOGRAM_PLACEMENT.BOTTOM;\n\n /**\n * Whether or not to apply the link style.\n */\n @property({ type: Boolean, reflect: true })\n link = false;\n\n /**\n * Whether or not to apply the logo style.\n */\n @property({ type: Boolean, reflect: true })\n logo = false;\n\n @query('div')\n _linkNode;\n\n updated(changedProperties) {\n super.updated(changedProperties);\n const { colorScheme, disabled, href, _linkNode: linkNode, ctaType } = this;\n\n if (\n changedProperties.has('ctaType') ||\n changedProperties.has('disabled') ||\n changedProperties.has('formatCaption') ||\n changedProperties.has('formatDuration') ||\n changedProperties.has('videoDuration') ||\n changedProperties.has('videoName')\n ) {\n const {\n ctaType,\n videoDuration,\n videoName,\n videoDescription,\n formatVideoCaption: formatVideoCaptionInEffect,\n formatVideoDuration: formatVideoDurationInEffect,\n } = this;\n const footer = this.querySelector(`${c4dPrefix}-card-footer`);\n\n const headingText = this.querySelector(\n `${c4dPrefix}-card-heading`\n )?.textContent;\n const copyText = this.textContent;\n if (footer) {\n const ariaTitle = videoName || headingText || copyText;\n let ariaDuration = '';\n if (videoDuration !== undefined) {\n ariaDuration = `, DURATION ${videoDuration}`;\n }\n (footer as C4DCardFooter).disabled = disabled;\n (footer as C4DCardFooter).altAriaLabel = `${ariaTitle}${ariaDuration}`;\n (footer as C4DCardFooter).ctaType = ctaType;\n (footer as C4DCardFooter).videoDuration = videoDuration;\n (footer as C4DCardFooter).videoName = videoName;\n (footer as C4DCardFooter).videoDescription = videoDescription;\n if (formatVideoCaptionInEffect) {\n (footer as C4DCardFooter).formatVideoCaption =\n formatVideoCaptionInEffect;\n }\n if (formatVideoDurationInEffect) {\n (footer as C4DCardFooter).formatVideoDuration =\n formatVideoDurationInEffect;\n }\n }\n }\n\n if (changedProperties.has('colorScheme') || changedProperties.has('href')) {\n const headingText = this.querySelector(\n `${c4dPrefix}-card-heading`\n )?.textContent;\n const copyText = this.textContent;\n const footer = this.querySelector(\n (this.constructor as typeof C4DCard).selectorFooter\n );\n if (footer && href) {\n (footer as C4DCardFooter).colorScheme = colorScheme;\n (footer as C4DCardFooter).parentHref = href;\n (footer as C4DCardFooter).ctaType = ctaType;\n (footer as C4DCardFooter).href = href;\n (footer as C4DCardFooter).altAriaLabel = headingText || copyText;\n }\n }\n if (linkNode) {\n linkNode.classList.add(`${prefix}--tile`);\n linkNode.classList.add(`${prefix}--card`);\n linkNode.classList.toggle(`${prefix}--tile--clickable`, Boolean(href));\n linkNode.classList.toggle(`${prefix}--card--link`, Boolean(href));\n linkNode.classList.toggle(\n `${prefix}--card--inverse`,\n colorScheme === BASIC_COLOR_SCHEME.INVERSE\n );\n linkNode.classList.toggle(\n `${prefix}--link--disabled`,\n Boolean(this.disabled)\n );\n }\n\n if (this._hasPictogram) {\n this.onclick = () => window.open(this.href, '_self');\n this.setAttribute('pictogram', '');\n } else {\n this.removeAttribute('pictogram');\n }\n\n const copyElement = this.querySelector('p');\n if (this._hasCopy && copyElement?.innerText) {\n copyElement.innerHTML = `${markdownToHtml(copyElement?.innerText, {\n bold: false,\n })}`;\n copyElement.firstElementChild?.setAttribute('style', 'all:unset;');\n }\n }\n\n /**\n * Handles card with video heading and applies the set same height function.\n *\n * @param event The event.\n */\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleVideoTitleUpdate = async (event) => {\n if (event && this.ctaType === CTA_TYPE.VIDEO) {\n const { videoDuration, videoName } = event.detail as any;\n const { formatVideoDuration, formatVideoCaption } = this;\n const formattedVideoDuration = formatVideoDuration({\n duration: !videoDuration ? videoDuration : videoDuration * 1000,\n });\n this.videoDuration ? null : (this.videoDuration = formattedVideoDuration);\n\n this.videoTitle = formatVideoCaption({\n name: videoName,\n });\n\n const heading = this.querySelector(`${c4dPrefix}-card-heading`);\n const footer = this.querySelector(`${c4dPrefix}-card-footer`);\n\n if (heading?.textContent?.trim() === '') {\n const title = document.createTextNode(this.videoTitle);\n heading?.appendChild(title);\n }\n\n if (footer?.textContent?.trim() === '') {\n const title = document.createTextNode(formattedVideoDuration);\n footer?.appendChild(title);\n }\n }\n };\n\n connectedCallback() {\n super.connectedCallback();\n const { eventRequestAdditionalVideoData } = this\n .constructor as typeof C4DCard;\n document.addEventListener(\n eventRequestAdditionalVideoData,\n this._handleVideoTitleUpdate\n );\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n const { eventRequestAdditionalVideoData } = this\n .constructor as typeof C4DCard;\n document.removeEventListener(\n eventRequestAdditionalVideoData,\n this._handleVideoTitleUpdate\n );\n }\n render() {\n return this._hasPictogram\n ? html`\n <div part=\"container\">\n ${this._renderInner()}\n <a\n class=\"${`${prefix}--card__link`}\"\n part=\"link\"\n href=\"${ifDefined(this.href)}\"\n aria-label=\"${this.querySelector(`${c4dPrefix}-card-heading`)\n ?.textContent || ''}\"\n >${ArrowRight20()}</a\n >\n </div>\n `\n : html` <div part=\"container\">${this._renderInner()}</div> `;\n }\n\n static get stableSelector() {\n return `${c4dPrefix}--card`;\n }\n\n /**\n * A selector that will return the child footer.\n */\n static get selectorFooter() {\n return `${c4dPrefix}-card-footer`;\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to run the action.\n */\n static get eventRequestAdditionalVideoData() {\n return `${c4dPrefix}-cta-request-additional-video-data`;\n }\n\n /**\n * The name of the custom event fired when the video title is updated\n */\n static get eventVideoTitleUpdated() {\n return `${c4dPrefix}-card-video-title-updated`;\n }\n\n static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default C4DCard;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAyBA,IAAI,EAAEC,UAAU,QAAQ,KAAK;AACtD,SAASC,QAAQ,EAAEC,KAAK,EAAEC,KAAK,QAAQ,mBAAmB;AAC1D,SAASC,SAAS,QAAQ,8BAA8B;AACxD,OAAOC,YAAY,MAAM,uEAAoE;AAC7F,OAAOC,OAAO,MAAM,sEAAsE;AAC1F,OAAOC,cAAc,MAAM,8FAA8F;AACzH,SAASC,aAAa,IAAIC,aAAa,QAAQ,mFAAmF;AAClI,OAAOC,Q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