@content-blocks/js 0.7.2 → 0.7.3

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 (88) hide show
  1. package/dist/cjs/content-accordion_11.cjs.entry.js +30 -17
  2. package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
  3. package/dist/cjs/content-blocks.cjs.js +1 -1
  4. package/dist/cjs/content-navigation-block.cjs.entry.js +3 -3
  5. package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
  6. package/dist/cjs/content-split-block.cjs.entry.js +2 -2
  7. package/dist/cjs/content-tabs.cjs.entry.js +2 -2
  8. package/dist/cjs/index.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{utils-db61cd70.js → utils-f8ccab0a.js} +35 -29
  11. package/dist/cjs/utils-f8ccab0a.js.map +1 -0
  12. package/dist/cjs/{window-resize-service-ac5c2012.js → window-resize-service-bc8cf256.js} +2 -2
  13. package/dist/cjs/{window-resize-service-ac5c2012.js.map → window-resize-service-bc8cf256.js.map} +1 -1
  14. package/dist/collection/blocks/content-hero-block/content-hero-block.js +1 -1
  15. package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +1 -1
  16. package/dist/collection/blocks/content-tout-block/content-tout-block.css +1 -1
  17. package/dist/collection/components/content-navigation-block/content-navigation-block.css +1 -2
  18. package/dist/collection/components/content-overlay/content-overlay.css +12 -4
  19. package/dist/collection/components/content-overlay/content-overlay.js +33 -7
  20. package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
  21. package/dist/collection/elements/content-button/content-button.js +3 -3
  22. package/dist/collection/elements/content-button/content-button.js.map +1 -1
  23. package/dist/collection/elements/content-video/content-video.css +1 -19
  24. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +3 -3
  25. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +0 -1
  26. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
  27. package/dist/collection/formatters/content-spacer/content-spacer.css +9 -6
  28. package/dist/collection/utils/utils.js +31 -25
  29. package/dist/collection/utils/utils.js.map +1 -1
  30. package/dist/collection/utils/utils.spec.js +28 -3
  31. package/dist/collection/utils/utils.spec.js.map +1 -1
  32. package/dist/components/content-button.js +3 -3
  33. package/dist/components/content-button.js.map +1 -1
  34. package/dist/components/content-grid-formatter2.js +1 -2
  35. package/dist/components/content-grid-formatter2.js.map +1 -1
  36. package/dist/components/content-hero-block.js +1 -1
  37. package/dist/components/content-hero-block.js.map +1 -1
  38. package/dist/components/content-navigation-block.js +1 -1
  39. package/dist/components/content-navigation-block.js.map +1 -1
  40. package/dist/components/content-overlay.js +22 -8
  41. package/dist/components/content-overlay.js.map +1 -1
  42. package/dist/components/content-spacer.js +1 -1
  43. package/dist/components/content-spacer.js.map +1 -1
  44. package/dist/components/content-tout-block.js +1 -1
  45. package/dist/components/content-tout-block.js.map +1 -1
  46. package/dist/components/content-video.js +1 -1
  47. package/dist/components/content-video.js.map +1 -1
  48. package/dist/components/utils.js +34 -28
  49. package/dist/components/utils.js.map +1 -1
  50. package/dist/content-blocks/content-blocks.esm.js +1 -1
  51. package/dist/content-blocks/content-blocks.esm.js.map +1 -1
  52. package/dist/content-blocks/index.esm.js +1 -1
  53. package/dist/content-blocks/p-0131bfdf.entry.js +2 -0
  54. package/dist/content-blocks/p-0131bfdf.entry.js.map +1 -0
  55. package/dist/content-blocks/{p-4bfbd7ef.entry.js → p-1b448306.entry.js} +2 -2
  56. package/dist/content-blocks/p-39788531.entry.js +2 -0
  57. package/dist/content-blocks/p-39788531.entry.js.map +1 -0
  58. package/dist/content-blocks/{p-8cc22c1e.entry.js → p-3bd97960.entry.js} +2 -2
  59. package/dist/content-blocks/{p-cfb4593f.js → p-3fe594af.js} +2 -2
  60. package/dist/content-blocks/p-cc7397cf.js +2 -0
  61. package/dist/content-blocks/p-cc7397cf.js.map +1 -0
  62. package/dist/esm/content-accordion_11.entry.js +30 -17
  63. package/dist/esm/content-accordion_11.entry.js.map +1 -1
  64. package/dist/esm/content-blocks.js +1 -1
  65. package/dist/esm/content-navigation-block.entry.js +3 -3
  66. package/dist/esm/content-navigation-block.entry.js.map +1 -1
  67. package/dist/esm/content-split-block.entry.js +2 -2
  68. package/dist/esm/content-tabs.entry.js +2 -2
  69. package/dist/esm/index.js +1 -1
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/{utils-4f78228e.js → utils-9a901aa9.js} +35 -29
  72. package/dist/esm/utils-9a901aa9.js.map +1 -0
  73. package/dist/esm/{window-resize-service-f40ec51c.js → window-resize-service-a6537000.js} +2 -2
  74. package/dist/esm/{window-resize-service-f40ec51c.js.map → window-resize-service-a6537000.js.map} +1 -1
  75. package/dist/types/components/content-overlay/content-overlay.d.ts +2 -0
  76. package/dist/types/utils/utils.d.ts +8 -3
  77. package/package.json +1 -1
  78. package/dist/cjs/utils-db61cd70.js.map +0 -1
  79. package/dist/content-blocks/p-7ff352fe.entry.js +0 -2
  80. package/dist/content-blocks/p-7ff352fe.entry.js.map +0 -1
  81. package/dist/content-blocks/p-b04fe808.js +0 -2
  82. package/dist/content-blocks/p-b04fe808.js.map +0 -1
  83. package/dist/content-blocks/p-ef45f146.entry.js +0 -2
  84. package/dist/content-blocks/p-ef45f146.entry.js.map +0 -1
  85. package/dist/esm/utils-4f78228e.js.map +0 -1
  86. /package/dist/content-blocks/{p-4bfbd7ef.entry.js.map → p-1b448306.entry.js.map} +0 -0
  87. /package/dist/content-blocks/{p-8cc22c1e.entry.js.map → p-3bd97960.entry.js.map} +0 -0
  88. /package/dist/content-blocks/{p-cfb4593f.js.map → p-3fe594af.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"content-hero-block.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,ksCAAksC;;MCgBjtCA,kBAAgB;;;;6BAEO,KAAK;+BAY2B,aAAa;;;mCAQvC,KAAK;;IAG7C,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;QAC7E,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;QACtF,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,eAAe,GAAG,QAAkB,CAAC,CAAC,CAAC;QAC1H,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC,CAAC,CAAC;KAC/G;IAGD,6BAA6B,CAAC,KAA+B;QAC3D,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,MAAM,EAAE;YACrC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;SACpD;KACF;IAED,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,IAC1B,IAAI,CAAC,aAAa,KACjB,WAAK,KAAK,EAAC,gCAAgC,IACzC,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC3B,CACP,EACD,WAAK,KAAK,EAAC,6BAA6B,IACtC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentHeroBlock"],"sources":["src/blocks/content-hero-block/content-hero-block.scss?tag=content-hero-block","src/blocks/content-hero-block/content-hero-block.tsx"],"sourcesContent":["content-hero-block {\n position: relative;\n &[content-position=\"above\"] {\n display: grid;\n grid-template-columns: 1fr;\n .content-hero-block__background,\n .content-hero-block__content {\n grid-row-start: 1;\n grid-column-start: 1;\n }\n .content-hero-block__background {\n height: 100%;\n overflow: hidden;\n\n content-image,\n content-image picture,\n content-image img,\n content-image video {\n height: 100%;\n }\n }\n .content-hero-block__content {\n display: flex;\n // position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n grid-row-start: 1;\n grid-column-start: 1;\n \n > * {\n // display: block;\n width: 100%;\n }\n \n }\n .content-hero-block__content {\n position: relative;\n z-index: 1;\n }\n }\n &[content-position=\"below\"] {\n display: block;\n }\n}","import { Component, h, Host, Prop } from '@stencil/core';\nimport { Element, HTMLStencilElement, Listen, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { getHydratedClassString } from '../../utils/utils';\nexport type HeroContentPlacementOptions = 'above' | 'below';\n/**\n * @slot background - This slot is usually either a video or image component.\n * @slot content - This slot will usually serve a text block.\n * @slot - Default slot, same as content slot\n */\n@Component({\n tag: 'content-hero-block',\n styleUrl: 'content-hero-block.scss',\n shadow: false,\n})\nexport class ContentHeroBlock {\n @Element() hostElement: HTMLStencilElement;\n @State() hasBackground: boolean = false;\n /**\n * Pipe separated HeroContentPlacementOptions that will determine whether the content sits below the media slot or overlapped above.\n * @type Select\n * @options below\n * @options above\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n contentPosition: ResponsiveString | HeroContentPlacementOptions = 'below|above';\n\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n @State() revealHiddenContent: boolean = false;\n hasHiddenContent: boolean;\n\n componentWillLoad() {\n this.hasBackground = !!this.hostElement.querySelector('[slot=\"background\"]');\n this.hasHiddenContent = !!this.hostElement.querySelector('[slot=\"activatedContent\"]');\n WindowResizeService.registerProp(this.contentPosition).subscribe(newValue => (this.contentPosition = newValue as string));\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n @Listen('contentBlockActivated', { target: 'window' })\n contentBlockActivationHandler(event: CustomEvent<HTMLElement>) {\n if (this.hostElement === event.detail) {\n this.hostElement.setAttribute('activated', 'true');\n }\n }\n\n render() {\n return (\n <Host class={this.classString}>\n {this.hasBackground && (\n <div class=\"content-hero-block__background\">\n <slot name=\"background\"></slot>\n </div>\n )}\n <div class=\"content-hero-block__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-hero-block.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,ksCAAksC;;MCgBjtCA,kBAAgB;;;;6BAEO,KAAK;+BAY2B,aAAa;;;mCAQvC,KAAK;;IAG7C,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;QAC7E,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;QACtF,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,eAAe,GAAG,QAAkB,CAAC,CAAC,CAAC;QAC1H,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC,CAAC,CAAC;KAC/G;IAGD,6BAA6B,CAAC,KAA+B;QAC3D,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,MAAM,EAAE;YACrC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;SACpD;KACF;IAED,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,IAC1B,IAAI,CAAC,aAAa,KACjB,WAAK,KAAK,EAAC,gCAAgC,IACzC,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC3B,CACP,EACD,WAAK,KAAK,EAAC,6BAA6B,IACtC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentHeroBlock"],"sources":["src/blocks/content-hero-block/content-hero-block.scss?tag=content-hero-block","src/blocks/content-hero-block/content-hero-block.tsx"],"sourcesContent":["content-hero-block {\n position: relative;\n &[content-position=\"above\"] {\n display: grid;\n grid-template-columns: 1fr;\n .content-hero-block__background,\n .content-hero-block__content {\n grid-row-start: 1;\n grid-column-start: 1;\n }\n .content-hero-block__background {\n height: 100%;\n overflow: hidden;\n\n content-image,\n content-image picture,\n content-image img,\n content-image video {\n height: 100%;\n }\n }\n .content-hero-block__content {\n display: flex;\n // position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n grid-row-start: 1;\n grid-column-start: 1;\n \n > * {\n // display: block;\n width: 100%;\n }\n \n }\n .content-hero-block__content {\n position: relative;\n z-index: 1;\n }\n }\n &[content-position=\"below\"] {\n display: block;\n }\n}","import { Component, h, Host, Prop } from '@stencil/core';\nimport { Element, HTMLStencilElement, Listen, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { getHydratedClassString } from '../../utils/utils';\nexport type HeroContentPlacementOptions = 'above' | 'below';\n/**\n * @slot background - This slot is usually either a video or image component.\n * @slot content - This slot will usually serve a text block.\n * @slot - Default slot, same as content slot\n */\n@Component({\n tag: 'content-hero-block',\n styleUrl: 'content-hero-block.scss',\n shadow: false,\n})\nexport class ContentHeroBlock {\n @Element() hostElement: HTMLStencilElement;\n @State() hasBackground: boolean = false;\n /**\n * Pipe separated HeroContentPlacementOptions that will determine whether the content sits below the media slot or overlapped above.\n * @type Select\n * @options below\n * @options above\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n contentPosition: ResponsiveString | HeroContentPlacementOptions = 'below|above';\n\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n @State() revealHiddenContent: boolean = false;\n hasHiddenContent: boolean;\n\n componentWillLoad() {\n this.hasBackground = !!this.hostElement.querySelector('[slot=\"background\"]');\n this.hasHiddenContent = !!this.hostElement.querySelector('[slot=\"activatedContent\"]');\n WindowResizeService.registerProp(this.contentPosition).subscribe(newValue => (this.contentPosition = newValue as string));\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n @Listen('open', { target: 'window' })\n contentBlockActivationHandler(event: CustomEvent<HTMLElement>) {\n if (this.hostElement === event.detail) {\n this.hostElement.setAttribute('activated', 'true');\n }\n }\n\n render() {\n return (\n <Host class={this.classString}>\n {this.hasBackground && (\n <div class=\"content-hero-block__background\">\n <slot name=\"background\"></slot>\n </div>\n )}\n <div class=\"content-hero-block__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { W as WindowResizeService } from './window-resize-service.js';
3
3
  import { c as createFocusTrap } from './focus-trap.esm.js';
4
4
 
5
- const contentNavigationBlockCss = "*{box-sizing:border-box}body.content-navigation-block-open{overflow:hidden}content-navigation-block button{appearance:none;border:none;background:transparent;cursor:pointer}content-navigation-block .content-navigation-block__skip-content a,content-navigation-block .content-navigation-block__skip-content button,content-navigation-block .content-navigation-block__skip-content a:visited,content-navigation-block .content-navigation-block__skip-content button:visited{border:2px solid rgb(0, 0, 0);border-radius:2px;color:purple;cursor:pointer;display:inline-block;font-size:14px;line-height:20px;margin:6px 11px;min-height:32px;text-decoration:underline;text-align:center;width:106px;z-index:1000}content-navigation-block .content-navigation-block__skip-content a:not(:focus),content-navigation-block .content-navigation-block__skip-content button:not(:focus),content-navigation-block .content-navigation-block__skip-content a:visited:not(:focus),content-navigation-block .content-navigation-block__skip-content button:visited:not(:focus){position:absolute;clip:rect(1px, 1px, 1px, 1px);overflow:hidden;padding:0}content-navigation-block svg.default-icon{display:inline-block;width:32px}content-navigation-block[hamburger=fixed],content-navigation-block[hamburger=absolute],content-navigation-block[hamburger=static]{display:inline-block}content-navigation-block[hamburger=fixed][aria-expanded=false] .content-navigation__close,content-navigation-block[hamburger=absolute][aria-expanded=false] .content-navigation__close,content-navigation-block[hamburger=static][aria-expanded=false] .content-navigation__close{display:none}content-navigation-block[hamburger=fixed] .content-navigation__open,content-navigation-block[hamburger=fixed] .content-navigation__close,content-navigation-block[hamburger=absolute] .content-navigation__open,content-navigation-block[hamburger=absolute] .content-navigation__close,content-navigation-block[hamburger=static] .content-navigation__open,content-navigation-block[hamburger=static] .content-navigation__close{cursor:pointer}content-navigation-block[hamburger=fixed] .content-navigation__content-wrapper,content-navigation-block[hamburger=absolute] .content-navigation__content-wrapper,content-navigation-block[hamburger=static] .content-navigation__content-wrapper{display:none;background:white}content-navigation-block[hamburger=fixed] .content-navigation__content-wrapper[hidden=false],content-navigation-block[hamburger=absolute] .content-navigation__content-wrapper[hidden=false],content-navigation-block[hamburger=static] .content-navigation__content-wrapper[hidden=false]{display:block}content-navigation-block[hamburger=fixed] .content-navigation__content-wrapper{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:100}content-navigation-block[hamburger=sticky] .content-navigation__content-wrapper{position:sticky;left:0;top:0;width:100vw;height:100vh;z-index:100}content-navigation-block[hamburger=absolute] .content-navigation__content-wrapper{position:absolute;z-index:100}content-navigation-block[hamburger=static] .content-navigation__content-wrapper{position:static}content-navigation-block[hamburger=none]{display:block}content-navigation-block[hamburger=none] .content-navigation__open,content-navigation-block[hamburger=none] .content-navigation__close{display:none}content-navigation-block[aria-expanded=true] .content-navigation__content-wrapper{display:block}";
5
+ const contentNavigationBlockCss = "*{box-sizing:border-box}body.content-navigation-block-open{overflow:hidden}content-navigation-block button{appearance:none;border:none;background:transparent;cursor:pointer}content-navigation-block .content-navigation-block__skip-content a,content-navigation-block .content-navigation-block__skip-content button,content-navigation-block .content-navigation-block__skip-content a:visited,content-navigation-block .content-navigation-block__skip-content button:visited{border:2px solid rgb(0, 0, 0);border-radius:2px;color:purple;cursor:pointer;display:inline-block;font-size:14px;line-height:20px;margin:6px 11px;min-height:32px;text-decoration:underline;text-align:center;width:106px;z-index:1000}content-navigation-block .content-navigation-block__skip-content:not(:focus-within){position:absolute;clip:rect(1px, 1px, 1px, 1px);overflow:hidden;padding:0}content-navigation-block svg.default-icon{display:inline-block;width:32px}content-navigation-block[hamburger=fixed],content-navigation-block[hamburger=absolute],content-navigation-block[hamburger=static]{display:inline-block}content-navigation-block[hamburger=fixed][aria-expanded=false] .content-navigation__close,content-navigation-block[hamburger=absolute][aria-expanded=false] .content-navigation__close,content-navigation-block[hamburger=static][aria-expanded=false] .content-navigation__close{display:none}content-navigation-block[hamburger=fixed] .content-navigation__open,content-navigation-block[hamburger=fixed] .content-navigation__close,content-navigation-block[hamburger=absolute] .content-navigation__open,content-navigation-block[hamburger=absolute] .content-navigation__close,content-navigation-block[hamburger=static] .content-navigation__open,content-navigation-block[hamburger=static] .content-navigation__close{cursor:pointer}content-navigation-block[hamburger=fixed] .content-navigation__content-wrapper,content-navigation-block[hamburger=absolute] .content-navigation__content-wrapper,content-navigation-block[hamburger=static] .content-navigation__content-wrapper{display:none}content-navigation-block[hamburger=fixed] .content-navigation__content-wrapper[hidden=false],content-navigation-block[hamburger=absolute] .content-navigation__content-wrapper[hidden=false],content-navigation-block[hamburger=static] .content-navigation__content-wrapper[hidden=false]{display:block}content-navigation-block[hamburger=fixed] .content-navigation__content-wrapper{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:100}content-navigation-block[hamburger=sticky] .content-navigation__content-wrapper{position:sticky;left:0;top:0;width:100vw;height:100vh;z-index:100}content-navigation-block[hamburger=absolute] .content-navigation__content-wrapper{position:absolute;z-index:100}content-navigation-block[hamburger=static] .content-navigation__content-wrapper{position:static}content-navigation-block[hamburger=none]{display:block}content-navigation-block[hamburger=none] .content-navigation__open,content-navigation-block[hamburger=none] .content-navigation__close{display:none}content-navigation-block[aria-expanded=true] .content-navigation__content-wrapper{display:block}";
6
6
 
7
7
  const ContentNavigationBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentNavigationBlock extends HTMLElement {
8
8
  constructor() {
@@ -1 +1 @@
1
- {"file":"content-navigation-block.js","mappings":";;;;AAAA,MAAM,yBAAyB,GAAG,k2GAAk2G;;MCiBv3GA,wBAAsB;;;;yBAcH,YAAY;;;4BAaV,OAAO;0BACR,KAAK;;6BAGF,KAAK;8BACJ,KAAK;;;;;IAMxC,iBAAiB;QACf,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ;YACjE,IAAI,CAAC,SAAS,GAAG,QAAkB,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC;YAC7C,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC;SACjE,CAAC,CAAC;QACH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ;YAC/D,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC;SACvC,CAAC,CAAC;KACJ;IAED,gBAAgB;QACd,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;QAC7E,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;QACzF,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG;YACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB,CAAC;QACF,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG;YACzB,IAAI,CAAC,SAAS,EAAE,CAAC;SAClB,CAAC;KACH;IAED,QAAQ;QACN,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,KAAK,MAAM,GAAG,OAAO,GAAG,M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B,kBACE,WAAK,KAAK,EAAC,cAAc,EAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,kBAAc,KAAK,EAAC,MAAM,EAAC,cAAc,IACnI,8BAAqB,OAAO,qBAAiB,OAAO,EAAC,CAAC,EAAC,8CAA8C,GAAG,CACpG,CACC,CACV,EACD,YAAM,IAAI,EAAC,YAAY,GAAQ,CAC3B,EACN,WAAK,KAAK,EAAC,qCAAqC,IAC9C,WAAK,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EAAE,KAAK,EAAC,2BAA2B,IACvE,CAAC,IAAI,CAAC,cAAc,KACnB,kBACE,WAAK,KAAK,EAAC,cAAc,EAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,kBAAc,KAAK,EAAC,MAAM,EAAC,cAAc,IACnI,8BAAqB,OAAO,qBAAiB,OAAO,EAAC,CAAC,EAAC,sBAAsB,GAAG,CAC5E,CACC,CACV,CACG,EACN,WAAK,KAAK,EAAC,6BAA6B,EAAC,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,IACzE,YAAM,IAAI,EAAC,aAAa,GAAQ,EAChC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentNavigationBlock"],"sources":["src/components/content-navigation-block/content-navigation-block.scss?tag=content-navigation-block","src/components/content-navigation-block/content-navigation-block.tsx"],"sourcesContent":["body.content-navigation-block-open {\n overflow: hidden;\n}\ncontent-navigation-block {\n button {\n appearance: none;\n border: none;\n background: transparent;\n cursor: pointer;\n }\n \n .content-navigation-block__skip-content a, .content-navigation-block__skip-content button, .content-navigation-block__skip-content a:visited, .content-navigation-block__skip-content button:visited{\n border: 2px solid rgba(0,0,0, 1);\n border-radius: 2px;\n color: purple;\n cursor: pointer;\n display: inline-block;\n font-size: 14px;\n line-height: 20px;\n margin: 6px 11px;\n min-height: 32px;\n text-decoration: underline;\n text-align: center;\n width: 106px;\n z-index: 1000;\n &:not(:focus) {\n position: absolute;\n // z-index: -1;\n\n clip: rect(1px,1px,1px,1px);\n overflow: hidden;\n padding: 0;\n }\n }\n\n svg.default-icon {\n display: inline-block;\n width: 32px;\n }\n &[hamburger=\"fixed\"],\n &[hamburger=\"absolute\"],\n &[hamburger=\"static\"] {\n display: inline-block;\n &[aria-expanded=\"false\"] {\n .content-navigation__close {\n display: none;\n }\n }\n .content-navigation__open,\n .content-navigation__close {\n cursor: pointer;\n }\n \n .content-navigation__content-wrapper {\n display: none;\n background: white;\n &[hidden=\"false\"] {\n display: block;\n }\n }\n }\n\n &[hamburger=\"fixed\"] {\n .content-navigation__content-wrapper {\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n z-index: 100;\n }\n }\n &[hamburger=\"sticky\"] {\n .content-navigation__content-wrapper {\n position: sticky;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n z-index: 100;\n }\n }\n &[hamburger=\"absolute\"] {\n .content-navigation__content-wrapper {\n position: absolute;\n z-index: 100;\n }\n }\n &[hamburger=\"static\"] {\n .content-navigation__content-wrapper {\n position: static;\n }\n }\n \n &[hamburger=\"none\"] {\n display: block;\n .content-navigation__open,\n .content-navigation__close {\n display: none;\n }\n }\n\n &[aria-expanded=\"true\"] {\n .content-navigation__content-wrapper {\n display: block;\n }\n }\n}","import { Component, Prop, Host, h, State, Element } from '@stencil/core';\nimport { HTMLStencilElement } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { createFocusTrap } from 'focus-trap';\n\n/**\n * @slot openButton - This slot will expand the navigation when clicked.\n * @slot closeButton - This slot will close the navigation when clicked.\n * @slot skipContent - This slot is a keyboard-focus link that lets a screen-reader or keyboard user skip the navigation block and scroll to the end.\n * @slot content - Default slot\n */\n@Component({\n tag: 'content-navigation-block',\n styleUrl: 'content-navigation-block.scss',\n shadow: false,\n})\nexport class ContentNavigationBlock {\n /**\n * @type Select\n * @responsive\n * @options fixed\n * @options absolute\n * @options sticky\n * @options static\n * @options none\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n hamburger: ResponsiveString = 'fixed|none';\n\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n @Element() hostElement: HTMLStencilElement;\n @State() ariaExpanded: string = 'false';\n @State() bodyToggle: boolean = false;\n @State() skipAccessibilityMessage: HTMLElement;\n\n @State() hasOpenButton: boolean = false;\n @State() hasCloseButton: boolean = false;\n\n @State() openButton: HTMLElement;\n @State() closeButton: HTMLElement;\n @State() contentSlot: HTMLElement;\n focusTrap;\n componentWillLoad() {\n WindowResizeService.registerProp(this.hamburger).subscribe(newValue => {\n this.hamburger = newValue as string;\n this.bodyToggle = this.hamburger === 'fixed';\n document.body.classList.remove('content-navigation-block-open');\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => {\n this.classString = newValue as string;\n });\n }\n\n componentDidLoad() {\n this.hasOpenButton = !!this.hostElement.querySelector('[slot=\"openButton\"]');\n this.hasCloseButton = !!this.hostElement.querySelector('content-navigation-block-close');\n this.openButton.onclick = () => {\n this.openMenu();\n };\n this.closeButton.onclick = () => {\n this.closeMenu();\n };\n }\n\n openMenu() {\n this.ariaExpanded = this.ariaExpanded === 'true' ? 'false' : 'true';\n if (this.ariaExpanded === 'false') {\n document.body.classList.remove('content-navigation-block-open');\n } else if (this.bodyToggle) {\n document.body.classList.add('content-navigation-block-open');\n }\n this.focusTrap = createFocusTrap(this.contentSlot.parentElement, {\n fallbackFocus: this.hostElement,\n clickOutsideDeactivates: true,\n onDeactivate: () => {\n this.closeMenu();\n },\n });\n\n setTimeout(() => this.closeButton.focus(), 1);\n }\n closeMenu() {\n if (this.focusTrap) {\n this.focusTrap.deactivate();\n this.focusTrap = null;\n }\n this.ariaExpanded = 'false';\n document.body.classList.remove('content-navigation-block-open');\n setTimeout(() => this.openButton.focus(), 1);\n }\n\n render() {\n return (\n <Host class={this.classString} aria-expanded={this.ariaExpanded}>\n <div class=\"content-navigation-block__skip-content\">\n <slot name=\"skipContent\"></slot>\n </div>\n <div ref={el => (this.openButton = el)} class=\"content-navigation__open\">\n {!this.hasOpenButton && (\n <button>\n <svg class=\"default-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5\" />\n </svg>\n </button>\n )}\n <slot name=\"openButton\"></slot>\n </div>\n <div class=\"content-navigation__content-wrapper\">\n <div ref={el => (this.closeButton = el)} class=\"content-navigation__close\">\n {!this.hasCloseButton && (\n <button>\n <svg class=\"default-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18 18 6M6 6l12 12\" />\n </svg>\n </button>\n )}\n </div>\n <div class=\"content-navigation__content\" ref={el => (this.contentSlot = el)}>\n <slot name=\"closeButton\"></slot>\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-navigation-block.js","mappings":";;;;AAAA,MAAM,yBAAyB,GAAG,+kGAA+kG;;MCiBpmGA,wBAAsB;;;;yBAcH,YAAY;;;4BAaV,OAAO;0BACR,KAAK;;6BAGF,KAAK;8BACJ,KAAK;;;;;IAMxC,iBAAiB;QACf,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ;YACjE,IAAI,CAAC,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AC,IAAI,CAAC,cAAc,KACnB,kBACE,WAAK,KAAK,EAAC,cAAc,EAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,kBAAc,KAAK,EAAC,MAAM,EAAC,cAAc,IACnI,8BAAqB,OAAO,qBAAiB,OAAO,EAAC,CAAC,EAAC,sBAAsB,GAAG,CAC5E,CACC,CACV,CACG,EACN,WAAK,KAAK,EAAC,6BAA6B,EAAC,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,IACzE,YAAM,IAAI,EAAC,aAAa,GAAQ,EAChC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentNavigationBlock"],"sources":["src/components/content-navigation-block/content-navigation-block.scss?tag=content-navigation-block","src/components/content-navigation-block/content-navigation-block.tsx"],"sourcesContent":["body.content-navigation-block-open {\n overflow: hidden;\n}\ncontent-navigation-block {\n button {\n appearance: none;\n border: none;\n background: transparent;\n cursor: pointer;\n }\n \n .content-navigation-block__skip-content a, .content-navigation-block__skip-content button, .content-navigation-block__skip-content a:visited, .content-navigation-block__skip-content button:visited{\n border: 2px solid rgba(0,0,0, 1);\n border-radius: 2px;\n color: purple;\n cursor: pointer;\n display: inline-block;\n font-size: 14px;\n line-height: 20px;\n margin: 6px 11px;\n min-height: 32px;\n text-decoration: underline;\n text-align: center;\n width: 106px;\n z-index: 1000;\n }\n .content-navigation-block__skip-content:not(:focus-within) {\n position: absolute;\n // z-index: -1;\n\n clip: rect(1px,1px,1px,1px);\n overflow: hidden;\n padding: 0;\n }\n\n svg.default-icon {\n display: inline-block;\n width: 32px;\n }\n &[hamburger=\"fixed\"],\n &[hamburger=\"absolute\"],\n &[hamburger=\"static\"] {\n display: inline-block;\n &[aria-expanded=\"false\"] {\n .content-navigation__close {\n display: none;\n }\n }\n .content-navigation__open,\n .content-navigation__close {\n cursor: pointer;\n }\n \n .content-navigation__content-wrapper {\n display: none;\n &[hidden=\"false\"] {\n display: block;\n }\n }\n }\n\n &[hamburger=\"fixed\"] {\n .content-navigation__content-wrapper {\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n z-index: 100;\n }\n }\n &[hamburger=\"sticky\"] {\n .content-navigation__content-wrapper {\n position: sticky;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n z-index: 100;\n }\n }\n &[hamburger=\"absolute\"] {\n .content-navigation__content-wrapper {\n position: absolute;\n z-index: 100;\n }\n }\n &[hamburger=\"static\"] {\n .content-navigation__content-wrapper {\n position: static;\n }\n }\n \n &[hamburger=\"none\"] {\n display: block;\n .content-navigation__open,\n .content-navigation__close {\n display: none;\n }\n }\n\n &[aria-expanded=\"true\"] {\n .content-navigation__content-wrapper {\n display: block;\n }\n }\n}","import { Component, Prop, Host, h, State, Element } from '@stencil/core';\nimport { HTMLStencilElement } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { createFocusTrap } from 'focus-trap';\n\n/**\n * @slot openButton - This slot will expand the navigation when clicked.\n * @slot closeButton - This slot will close the navigation when clicked.\n * @slot skipContent - This slot is a keyboard-focus link that lets a screen-reader or keyboard user skip the navigation block and scroll to the end.\n * @slot content - Default slot\n */\n@Component({\n tag: 'content-navigation-block',\n styleUrl: 'content-navigation-block.scss',\n shadow: false,\n})\nexport class ContentNavigationBlock {\n /**\n * @type Select\n * @responsive\n * @options fixed\n * @options absolute\n * @options sticky\n * @options static\n * @options none\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n hamburger: ResponsiveString = 'fixed|none';\n\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n @Element() hostElement: HTMLStencilElement;\n @State() ariaExpanded: string = 'false';\n @State() bodyToggle: boolean = false;\n @State() skipAccessibilityMessage: HTMLElement;\n\n @State() hasOpenButton: boolean = false;\n @State() hasCloseButton: boolean = false;\n\n @State() openButton: HTMLElement;\n @State() closeButton: HTMLElement;\n @State() contentSlot: HTMLElement;\n focusTrap;\n componentWillLoad() {\n WindowResizeService.registerProp(this.hamburger).subscribe(newValue => {\n this.hamburger = newValue as string;\n this.bodyToggle = this.hamburger === 'fixed';\n document.body.classList.remove('content-navigation-block-open');\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => {\n this.classString = newValue as string;\n });\n }\n\n componentDidLoad() {\n this.hasOpenButton = !!this.hostElement.querySelector('[slot=\"openButton\"]');\n this.hasCloseButton = !!this.hostElement.querySelector('content-navigation-block-close');\n this.openButton.onclick = () => {\n this.openMenu();\n };\n this.closeButton.onclick = () => {\n this.closeMenu();\n };\n }\n\n openMenu() {\n this.ariaExpanded = this.ariaExpanded === 'true' ? 'false' : 'true';\n if (this.ariaExpanded === 'false') {\n document.body.classList.remove('content-navigation-block-open');\n } else if (this.bodyToggle) {\n document.body.classList.add('content-navigation-block-open');\n }\n this.focusTrap = createFocusTrap(this.contentSlot.parentElement, {\n fallbackFocus: this.hostElement,\n clickOutsideDeactivates: true,\n onDeactivate: () => {\n this.closeMenu();\n },\n });\n\n setTimeout(() => this.closeButton.focus(), 1);\n }\n closeMenu() {\n if (this.focusTrap) {\n this.focusTrap.deactivate();\n this.focusTrap = null;\n }\n this.ariaExpanded = 'false';\n document.body.classList.remove('content-navigation-block-open');\n setTimeout(() => this.openButton.focus(), 1);\n }\n\n render() {\n return (\n <Host class={this.classString} aria-expanded={this.ariaExpanded}>\n <div class=\"content-navigation-block__skip-content\">\n <slot name=\"skipContent\"></slot>\n </div>\n <div ref={el => (this.openButton = el)} class=\"content-navigation__open\">\n {!this.hasOpenButton && (\n <button>\n <svg class=\"default-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5\" />\n </svg>\n </button>\n )}\n <slot name=\"openButton\"></slot>\n </div>\n <div class=\"content-navigation__content-wrapper\">\n <div ref={el => (this.closeButton = el)} class=\"content-navigation__close\">\n {!this.hasCloseButton && (\n <button>\n <svg class=\"default-icon\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18 18 6M6 6l12 12\" />\n </svg>\n </button>\n )}\n </div>\n <div class=\"content-navigation__content\" ref={el => (this.contentSlot = el)}>\n <slot name=\"closeButton\"></slot>\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -436,7 +436,7 @@ aria.replaceDialog = function (newDialogId, newFocusAfterClosed, newFocusFirst)
436
436
  }; // end replaceDialog
437
437
  window.aria = aria;
438
438
 
439
- const contentOverlayCss = "*{box-sizing:border-box}.content-block-overlay-container{position:relative;display:block;height:100%}content-overlay{display:none;position:relative;flex:0}content-overlay .content-overlay__content>*[slot=content]{height:100%;overflow:auto}content-overlay.content-overlay-active{display:block}content-overlay[vertical=left]{align-items:flex-start}content-overlay[vertical=center]{align-items:center}content-overlay[vertical=right]{align-items:flex-end}content-overlay[vertical=top]{justify-content:flex-start}content-overlay[vertical=center]{justify-content:center}content-overlay[vertical=bottom]{justify-content:flex-end}content-overlay .content-overlay-background{background:rgba(255, 255, 255, 0.8);bottom:0;display:none;top:0;z-index:100000;right:0;left:0}content-overlay .content-overlay-background.active{display:block}content-overlay .content-overlay__header{display:flex;align-items:center}content-overlay .content-overlay__close{order:2;margin-left:auto;cursor:pointer;z-index:1;appearance:none;background:none;border:none;min-width:16px}content-overlay[position=fixed] .content-overlay-background{position:fixed}content-overlay[position=absolute]{position:absolute;box-sizing:border-box;z-index:100000;height:100%;width:100%;left:0}content-overlay[position=absolute] .content-overlay-background{position:static}content-overlay[position=absolute] .content-overlay__content,content-overlay[position=fixed] .content-overlay__content{flex:1;overflow:hidden}content-overlay [role=dialog]{display:flex;flex-direction:column;height:100%;justify-content:flex-start}content-overlay [role=dialog].hidden{display:none}content-overlay[full-screen=true]{height:100%}content-overlay[full-screen=true] .content-overlay-background{height:100%}body.has-dialog{overflow:hidden}";
439
+ const contentOverlayCss = "*{box-sizing:border-box}.content-overlay-open{overflow:hidden}.content-block-overlay-container{position:relative;display:block;width:100%;height:100%}content-overlay{display:none;position:relative;flex:0}content-overlay .content-overlay__content>*[slot=content]{height:100%;overflow:auto}content-overlay.content-overlay-active{display:flex}content-overlay[vertical=left]{align-items:flex-start}content-overlay[vertical=center]{align-items:center}content-overlay[vertical=right]{align-items:flex-end}content-overlay[vertical=top]{justify-content:flex-start;top:0}content-overlay[vertical=center]{justify-content:center}content-overlay[vertical=bottom]{justify-content:flex-end;bottom:0}content-overlay .content-overlay-background{background:rgba(255, 255, 255, 0.6);bottom:0;display:none;top:0;z-index:100000;right:0;left:0;width:100%}content-overlay .content-overlay-background.active{display:block}content-overlay .content-overlay__header{display:flex;align-items:center}content-overlay .content-overlay__close{order:2;margin-left:auto;cursor:pointer;z-index:1;appearance:none;background:none;border:none;min-width:40px}content-overlay[position=fixed] .content-overlay-background{position:fixed}content-overlay[position=absolute]{position:absolute;box-sizing:border-box;z-index:100000;height:100%;width:100%;left:0}content-overlay[position=absolute] .content-overlay-background{position:static}content-overlay[position=absolute] .content-overlay__content,content-overlay[position=fixed] .content-overlay__content{flex:1;overflow:auto}content-overlay [role=dialog]{display:flex;flex-direction:column;height:100%;justify-content:flex-start}content-overlay [role=dialog].hidden{display:none}content-overlay[full-screen=true]{height:100%}content-overlay[full-screen=true] .content-overlay-background{height:100%}body.has-dialog{overflow:hidden}";
440
440
 
441
441
  const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay extends HTMLElement {
442
442
  constructor() {
@@ -459,9 +459,8 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
459
459
  this.hasCloseButton = false;
460
460
  this.originalMarkup = undefined;
461
461
  }
462
- onContentBlockActivated(event) {
462
+ onContentBlockToggle(event) {
463
463
  if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {
464
- console.log('activate');
465
464
  event.preventDefault();
466
465
  if (!this.isActive) {
467
466
  this.openOverlay();
@@ -471,8 +470,22 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
471
470
  }
472
471
  }
473
472
  }
473
+ onContentBlockActivated(event) {
474
+ if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {
475
+ event.preventDefault();
476
+ this.openOverlay();
477
+ }
478
+ }
479
+ onContentBlockDeactivated(event) {
480
+ if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {
481
+ event.preventDefault();
482
+ this.closeOverlay();
483
+ }
484
+ }
474
485
  async openOverlay() {
475
486
  this.isActive = true;
487
+ document.body.classList.add('content-overlay-open');
488
+ document.body.classList.remove('content-overlay-close');
476
489
  if (!this.originalMarkup) {
477
490
  this.originalMarkup = this.contentSlot.innerHTML;
478
491
  }
@@ -499,16 +512,17 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
499
512
  clickOutsideDeactivates: true,
500
513
  onDeactivate: () => {
501
514
  this.isActive = false;
515
+ document.body.classList.add('content-overlay-close');
516
+ document.body.classList.remove('content-overlay-open');
517
+ this.activeClass = '';
502
518
  this.setComputedActiveClass();
519
+ this.contentSlot.innerHTML = '';
503
520
  },
504
521
  });
505
522
  }
506
523
  this.contentOverlayActivated.emit(this.hostElement);
507
524
  }
508
525
  async closeOverlay() {
509
- this.contentSlot.innerHTML = '';
510
- this.isActive = false;
511
- this.activeClass = '';
512
526
  if (this.focusTrap) {
513
527
  try {
514
528
  this.focusTrap.deactivate();
@@ -542,7 +556,7 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
542
556
  render() {
543
557
  return (h(Host, { class: `${this.activeClass} ${this.classString}`, position: this.position }, h("div", { class: "content-block-overlay-container" }, h("div", { class: `content-overlay-background ${this.isActive ? 'active' : ''}` }, h("div", { ref: element => (this.dialogElement = element), role: "dialog", "aria-modal": "true", class: this.isActive ? 'active' : 'hidden', "aria-expanded": this.isActive }, h("div", { class: "content-overlay__header" }, h("button", { onClick: e => {
544
558
  this.closeOverlayButtonClicked(e);
545
- }, class: "content-overlay__close", title: this.closeTitle }, !this.hasCloseButton && (h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", width: "16", height: "16", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" }))), h("slot", { name: "closeButton" })), h("slot", { name: "header" })), h("div", { class: "content-overlay__content", ref: (el) => (this.contentSlot = el) }, h("slot", { name: "content" }), h("slot", null)))))));
559
+ }, class: "content-overlay__close", title: this.closeTitle }, !this.hasCloseButton && (h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" }))), h("slot", { name: "closeButton" })), h("slot", { name: "header" })), h("div", { class: "content-overlay__content", ref: (el) => (this.contentSlot = el) }, h("slot", { name: "content" }), h("slot", null)))))));
546
560
  }
547
561
  componentDidRender() {
548
562
  if (this.open === 'true') {
@@ -577,7 +591,7 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
577
591
  "originalMarkup": [32],
578
592
  "openOverlay": [64],
579
593
  "closeOverlay": [64]
580
- }, [[0, "contentBlockActivated", "onContentBlockActivated"]]]);
594
+ }, [[0, "toggle", "onContentBlockToggle"], [0, "open", "onContentBlockActivated"], [0, "close", "onContentBlockDeactivated"]]]);
581
595
  function defineCustomElement$1() {
582
596
  if (typeof customElements === "undefined") {
583
597
  return;
@@ -1 +1 @@
1
- {"file":"content-overlay.js","mappings":";;;;AAAA;;;AAIA,IAAIA,MAAI,GAAGA,MAAI,IAAI,EAAE,CAAC;AACtBA,MAAI,CAAC,KAAK,GAAGA,MAAI,CAAC,KAAK,IAAI,EAAE,CAAC;AAE9B;AACAA,MAAI,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,OAAO,EAAE,QAAQ;IAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC,CAAC;AAEFA,MAAI,CAAC,KAAK,CAAC,MAAM,GAAG,UAAU,IAAI;IAChC,IAAI,IAAI,CAAC,MAAM,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,UAAU,EAAE;QACpD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;KACtB;IACD,IAAI,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,UAAU,CAAC,WAAW;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,KAAK,UAAU,EAAE;QACrD,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAC1C;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEFA,MAAI,CAAC,KAAK,CAAC,WAAW,GAAG,UAAU,OAAO;IACxC,IAAI,OAAO,CAAC,QAAQ,GAAG,CAAC,KAAK,OAAO,CAAC,QAAQ,KAAK,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,EAAE;QACjG,OAAO,IAAI,CAAC;KACb;IAED,IAAI,OAAO,CAAC,QAAQ,EAAE;QACpB,OAAO,KAAK,CAAC;KACd;IAED,QAAQ,OAAO,CAAC,QAAQ;QACtB,KAAK,GAAG;YACN,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,IAA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;SACpB;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE;YAC7D,IAAI;gBACF,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;aAC3B;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aAChB;SACF;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["aria","ContentOverlay","focusTrap.createFocusTrap"],"sources":["src/components/content-overlay/libraries/aria-utilities.ts","src/components/content-overlay/libraries/aria-dialog.ts","src/components/content-overlay/content-overlay.scss?tag=content-overlay","src/components/content-overlay/content-overlay.tsx"],"sourcesContent":["/**\n * @namespace aria\n */\n\nvar aria = aria || {};\naria.Utils = aria.Utils || {};\n\n// Polyfill src https://developer.mozilla.org/en-US/docs/Web/API/Element/matches\naria.Utils.matches = function (element, selector) {\n return element.matches(selector);\n};\n\naria.Utils.remove = function (item) {\n if (item.remove && typeof item.remove === 'function') {\n return item.remove();\n }\n if (item.parentNode &&\n item.parentNode.removeChild &&\n typeof item.parentNode.removeChild === 'function') {\n return item.parentNode.removeChild(item);\n }\n return false;\n};\n\naria.Utils.isFocusable = function (element) {\n if (element.tabIndex > 0 || (element.tabIndex === 0 && element.getAttribute('tabIndex') !== null)) {\n return true;\n }\n\n if (element.disabled) {\n return false;\n }\n\n switch (element.nodeName) {\n case 'A':\n return !!element.href && element.rel != 'ignore';\n case 'INPUT':\n return element.type != 'hidden' && element.type != 'file';\n case 'BUTTON':\n case 'SELECT':\n case 'TEXTAREA':\n return true;\n default:\n return false;\n }\n};\n\naria.Utils.getAncestorBySelector = function (element, selector) {\n if (!aria.Utils.matches(element, selector + ' ' + element.tagName)) {\n // Element is not inside an element that matches selector\n return null;\n }\n\n // Move up the DOM tree until a parent matching the selector is found\n var currentNode = element;\n var ancestor = null;\n while (ancestor === null) {\n if (aria.Utils.matches(currentNode.parentNode, selector)) {\n ancestor = currentNode.parentNode;\n }\n else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return ancestor;\n};\n\naria.Utils.hasClass = function (element, className) {\n return (new RegExp('(\\\\s|^)' + className + '(\\\\s|$)')).test(element.className);\n};\n\naria.Utils.addClass = function (element, className) {\n if (!aria.Utils.hasClass(element, className)) {\n element.className += ' ' + className;\n }\n};\n\naria.Utils.removeClass = function (element, className) {\n var classRegex = new RegExp('(\\\\s|^)' + className + '(\\\\s|$)');\n element.className = element.className.replace(classRegex, ' ').trim();\n};\n\naria.Utils.bindMethods = function (object) {\n var methodNames = Array.prototype.slice.call(arguments, 1);\n methodNames.forEach(function (method) {\n object[method] = object[method].bind(object);\n });\n};\n\nwindow.aria = aria;","/*\n* This content is licensed according to the W3C Software License at\n* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n*/\n/**\n * @namespace aria\n */\n\n var aria = aria || {};\n aria.Utils = aria.Utils || {};\n \n // Polyfill src https://developer.mozilla.org/en-US/docs/Web/API/Element/matches\n aria.Utils.matches = function (element, selector) {\n return element.matches(selector);\n };\n \n aria.Utils.remove = function (item) {\n if (item.remove && typeof item.remove === 'function') {\n return item.remove();\n }\n if (item.parentNode &&\n item.parentNode.removeChild &&\n typeof item.parentNode.removeChild === 'function') {\n return item.parentNode.removeChild(item);\n }\n return false;\n };\n \n aria.Utils.isFocusable = function (element) {\n if (element.tabIndex > 0 || (element.tabIndex === 0 && element.getAttribute('tabIndex') !== null)) {\n return true;\n }\n \n if (element.disabled) {\n return false;\n }\n \n switch (element.nodeName) {\n case 'A':\n return !!element.href && element.rel != 'ignore';\n case 'INPUT':\n return element.type != 'hidden' && element.type != 'file';\n case 'BUTTON':\n case 'SELECT':\n case 'TEXTAREA':\n return true;\n default:\n return false;\n }\n };\n \n aria.Utils.getAncestorBySelector = function (element, selector) {\n if (!aria.Utils.matches(element, selector + ' ' + element.tagName)) {\n // Element is not inside an element that matches selector\n return null;\n }\n \n // Move up the DOM tree until a parent matching the selector is found\n var currentNode = element;\n var ancestor = null;\n while (ancestor === null) {\n if (aria.Utils.matches(currentNode.parentNode, selector)) {\n ancestor = currentNode.parentNode;\n }\n else {\n currentNode = currentNode.parentNode;\n }\n }\n \n return ancestor;\n };\n \n aria.Utils.hasClass = function (element, className) {\n return (new RegExp('(\\\\s|^)' + className + '(\\\\s|$)')).test(element.className);\n };\n \n aria.Utils.addClass = function (element, className) {\n if (!aria.Utils.hasClass(element, className)) {\n element.className += ' ' + className;\n }\n };\n \n aria.Utils.removeClass = function (element, className) {\n var classRegex = new RegExp('(\\\\s|^)' + className + '(\\\\s|$)');\n element.className = element.className.replace(classRegex, ' ').trim();\n };\n \n aria.Utils.bindMethods = function (object) {\n var methodNames = Array.prototype.slice.call(arguments, 1);\n methodNames.forEach(function (method) {\n object[method] = object[method].bind(object);\n });\n };\n \n \n /*\n * When util functions move focus around, set this true so the focus listener\n * can ignore the events.\n */\naria.Utils.IgnoreUtilFocusChanges = false;\n\naria.Utils.dialogOpenClass = 'has-dialog';\n\n/**\n * @desc Set focus on descendant nodes until the first focusable element is\n * found.\n * @param element\n * DOM node for which to find the first focusable descendant.\n * @returns\n * true if a focusable element is found and focus is set.\n */\naria.Utils.focusFirstDescendant = function (element) {\n for (var i = 0; i < element.childNodes.length; i++) {\n var child = element.childNodes[i];\n if (aria.Utils.attemptFocus(child) ||\n aria.Utils.focusFirstDescendant(child)) {\n return true;\n }\n }\n return false;\n}; // end focusFirstDescendant\n\n/**\n * @desc Find the last descendant node that is focusable.\n * @param element\n * DOM node for which to find the last focusable descendant.\n * @returns\n * true if a focusable element is found and focus is set.\n */\naria.Utils.focusLastDescendant = function (element) {\n for (var i = element.childNodes.length - 1; i >= 0; i--) {\n var child = element.childNodes[i];\n if (aria.Utils.attemptFocus(child) ||\n aria.Utils.focusLastDescendant(child)) {\n return true;\n }\n }\n return false;\n}; // end focusLastDescendant\n\n/**\n * @desc Set Attempt to set focus on the current node.\n * @param element\n * The node to attempt to focus on.\n * @returns\n * true if element is focused.\n */\naria.Utils.attemptFocus = function (element) {\n if (!aria.Utils.isFocusable(element)) {\n return false;\n }\n \n aria.Utils.IgnoreUtilFocusChanges = true;\n try {\n element.focus();\n }\n catch (e) {\n }\n aria.Utils.IgnoreUtilFocusChanges = false;\n return (document.activeElement === element);\n}; // end attemptFocus\n\n/* Modals can open modals. Keep track of them with this array. */\naria.OpenDialogList = aria.OpenDialogList || new Array(0);\n\n/**\n * @returns the last opened dialog (the current dialog)\n */\naria.getCurrentDialog = function () {\n if (aria.OpenDialogList && aria.OpenDialogList.length) {\n return aria.OpenDialogList[aria.OpenDialogList.length - 1];\n }\n};\n\naria.closeCurrentDialog = function () {\n var currentDialog = aria.getCurrentDialog();\n if (currentDialog) {\n currentDialog.close();\n return true;\n }\n \n return false;\n};\n\n aria.handleEscape = function (event) {\n if (event.key === 'Escape' && aria.closeCurrentDialog()) {\n event.stopPropagation();\n }\n };\n\n document.addEventListener('keyup', aria.handleEscape);\n\n /**\n * @constructor\n * @desc Dialog object providing modal focus management.\n *\n * Assumptions: The element serving as the dialog container is present in the\n * DOM and hidden. The dialog container has role='dialog'.\n *\n * @param dialogNode\n * The element serving as the dialog container.\n * @param focusAfterClosed\n * Either the DOM node or the ID of the DOM node to focus when the\n * dialog closes.\n * @param focusFirst\n * Optional parameter containing either the DOM node or the ID of the\n * DOM node to focus when the dialog opens. If not specified, the\n * first focusable element in the dialog will receive focus.\n */\n aria.Dialog = function (dialogNode, focusAfterClosed, focusFirst, isFullScreen) {\n this.dialogNode = dialogNode;\n if (this.dialogNode === null) {\n throw new Error('No element found');\n }\n\n var validRoles = ['dialog', 'alertdialog'];\n var isDialog = (this.dialogNode.getAttribute('role') || '')\n .trim()\n .split(/\\s+/g)\n .some(function (token) {\n return validRoles.some(function (role) {\n return token === role;\n });\n });\n if (!isDialog) {\n throw new Error(\n 'Dialog() requires a DOM element with ARIA role of dialog or alertdialog.');\n }\n\n // Wrap in an individual backdrop element if one doesn't exist\n // Native <dialog> elements use the ::backdrop pseudo-element, which\n // works similarly.\n var backdropClass = 'content-overlay-background';\n if (this.dialogNode.parentNode.classList.contains(backdropClass)) {\n this.backdropNode = this.dialogNode.parentNode;\n }\n else {\n this.backdropNode = document.createElement('div');\n this.backdropNode.className = backdropClass;\n this.dialogNode.parentNode.insertBefore(this.backdropNode, this.dialogNode);\n this.backdropNode.appendChild(this.dialogNode);\n }\n this.backdropNode.classList.add('active');\n setTimeout(() => {\n this.backdropNode.classList.add('transition');\n }, 1);\n\n // Disable scroll on the body element\n this.isFullscreen = isFullScreen;\n if (isFullScreen) {\n document.body.classList.add(aria.Utils.dialogOpenClass);\n }\n\n if (typeof focusAfterClosed === 'string') {\n this.focusAfterClosed = document.getElementById(focusAfterClosed);\n }\n else if (typeof focusAfterClosed === 'object') {\n this.focusAfterClosed = focusAfterClosed;\n }\n else {\n throw new Error(\n 'the focusAfterClosed parameter is required for the aria.Dialog constructor.');\n }\n\n if (typeof focusFirst === 'string') {\n this.focusFirst = document.getElementById(focusFirst);\n }\n else if (typeof focusFirst === 'object') {\n this.focusFirst = focusFirst;\n }\n else {\n this.focusFirst = null;\n }\n\n // Bracket the dialog node with two invisible, focusable nodes.\n // While this dialog is open, we use these to make sure that focus never\n // leaves the document even if dialogNode is the first or last node.\n var preDiv = document.createElement('div');\n this.preNode = this.dialogNode.parentNode.insertBefore(preDiv,\n this.dialogNode);\n this.preNode.tabIndex = 0;\n var postDiv = document.createElement('div');\n this.postNode = this.dialogNode.parentNode.insertBefore(postDiv,\n this.dialogNode.nextSibling);\n this.postNode.tabIndex = 0;\n\n // If this modal is opening on top of one that is already open,\n // get rid of the document focus listener of the open dialog.\n if (aria.OpenDialogList.length > 0) {\n aria.getCurrentDialog().removeListeners();\n }\n\n if (isFullScreen) {\n this.addListeners();\n }\n aria.OpenDialogList.push(this);\n this.dialogNode.className = 'content-overlay-dialog'; // make visible\n\n if (this.focusFirst) {\n this.focusFirst.focus();\n }\n else {\n aria.Utils.focusFirstDescendant(this.dialogNode);\n }\n\n this.lastFocus = document.activeElement;\n }; // end Dialog constructor\n\n\n /**\n * @desc\n * Hides the current top dialog,\n * removes listeners of the top dialog,\n * restore listeners of a parent dialog if one was open under the one that just closed,\n * and sets focus on the element specified for focusAfterClosed.\n */\n aria.Dialog.prototype.close = function () {\n aria.OpenDialogList.pop();\n this.removeListeners();\n aria.Utils.remove(this.preNode);\n aria.Utils.remove(this.postNode);\n this.dialogNode.className = 'hidden';\n this.backdropNode.classList.remove('active');\n this.backdropNode.classList.remove('transition');\n this.focusAfterClosed.focus();\n\n // If a dialog was open underneath this one, restore its listeners.\n if (aria.OpenDialogList.length > 0 && aria.OpenDialogList.filter(dialog => dialog.isFullscreen === true).length) {\n aria.getCurrentDialog().addListeners();\n }\n else {\n document.body.classList.remove(aria.Utils.dialogOpenClass);\n }\n this.dialogNode.dispatchEvent(new CustomEvent(\"ariaDialog.closed\", {\n bubbles: true,\n \"detail\": {}\n }));\n }; // end close\n\n /**\n * @desc\n * Hides the current dialog and replaces it with another.\n *\n * @param newDialogId\n * ID of the dialog that will replace the currently open top dialog.\n * @param newFocusAfterClosed\n * Optional ID or DOM node specifying where to place focus when the new dialog closes.\n * If not specified, focus will be placed on the element specified by the dialog being replaced.\n * @param newFocusFirst\n * Optional ID or DOM node specifying where to place focus in the new dialog when it opens.\n * If not specified, the first focusable element will receive focus.\n */\n aria.Dialog.prototype.replace = function (newDialogId, newFocusAfterClosed,\n newFocusFirst) {\n // var closedDialog = aria.getCurrentDialog();\n aria.OpenDialogList.pop();\n this.removeListeners();\n aria.Utils.remove(this.preNode);\n aria.Utils.remove(this.postNode);\n this.dialogNode.className = 'hidden';\n this.backdropNode.classList.remove('active');\n this.backdropNode.classList.remove('transition');\n\n var focusAfterClosed = newFocusAfterClosed || this.focusAfterClosed;\n new aria.Dialog(newDialogId, focusAfterClosed, newFocusFirst);\n // var dialog = new aria.Dialog(newDialogId, focusAfterClosed, newFocusFirst);\n }; // end replace\n\n aria.Dialog.prototype.addListeners = function () {\n document.addEventListener('focus', this.trapFocus, true);\n }; // end addListeners\n\n aria.Dialog.prototype.removeListeners = function () {\n document.removeEventListener('focus', this.trapFocus, true);\n }; // end removeListeners\n\n aria.Dialog.prototype.trapFocus = function (event) {\n if (aria.Utils.IgnoreUtilFocusChanges) {\n return;\n }\n var currentDialog = aria.getCurrentDialog();\n if (currentDialog.dialogNode.contains(event.target)) {\n currentDialog.lastFocus = event.target;\n }\n else {\n aria.Utils.focusFirstDescendant(currentDialog.dialogNode);\n if (currentDialog.lastFocus == document.activeElement) {\n aria.Utils.focusLastDescendant(currentDialog.dialogNode);\n }\n currentDialog.lastFocus = document.activeElement;\n }\n }; // end trapFocus\n\n aria.closeDialog = function (closeButton) {\n var topDialog = aria.getCurrentDialog();\n if (topDialog.dialogNode.contains(closeButton)) {\n topDialog.close();\n }\n }; // end closeDialog\n\n aria.replaceDialog = function (newDialogId, newFocusAfterClosed,\n newFocusFirst) {\n var topDialog = aria.getCurrentDialog();\n if (topDialog.dialogNode.contains(document.activeElement)) {\n topDialog.replace(newDialogId, newFocusAfterClosed, newFocusFirst);\n }\n }; // end replaceDialog\n\n window.aria = aria;",".content-block-overlay-container {\n position: relative;\n display: block;\n height: 100%;\n}\ncontent-overlay {\n display: none;\n position: relative;\n flex: 0;\n .content-overlay__content>*[slot=\"content\"] {\n height: 100%;\n overflow: auto;\n }\n &.content-overlay-active {\n display: block;\n }\n &[vertical=\"left\"] {\n align-items: flex-start;\n }\n &[vertical=\"center\"] {\n align-items: center;\n }\n &[vertical=\"right\"] {\n align-items: flex-end;\n }\n \n &[vertical=\"top\"] {\n justify-content: flex-start;\n }\n &[vertical=\"center\"] {\n justify-content: center;\n }\n &[vertical=\"bottom\"] {\n justify-content: flex-end;\n }\n\n .content-overlay-background {\n background: rgba(255,255,255, .8);\n bottom: 0;\n display: none;\n top: 0;\n z-index: 100000;\n right: 0;\n left: 0;\n &.active {\n display: block;\n }\n }\n .content-overlay__header {\n display: flex;\n align-items: center;\n }\n .content-overlay__close {\n order: 2;\n margin-left: auto;\n cursor: pointer;\n z-index: 1;\n appearance: none;\n background: none;\n border: none;\n min-width: 16px;\n // &:after {\n // content: \"\\00d7\";\n // font-size: 2.5rem;\n // }\n }\n\n &[position=\"fixed\"] {\n .content-overlay-background {\n position: fixed;\n }\n }\n\n &[position=\"absolute\"] {\n position: absolute;\n box-sizing: border-box;\n z-index: 100000;\n height: 100%;\n width: 100%;\n left: 0;\n .content-overlay-background {\n position: static;\n }\n }\n\n &[position=\"absolute\"],\n &[position=\"fixed\"] {\n .content-overlay__content {\n flex: 1;\n overflow: hidden;\n }\n }\n\n [role=\"dialog\"] {\n display: flex;\n flex-direction: column;\n height: 100%;\n justify-content: flex-start;\n &.hidden {\n display: none;\n }\n }\n &[full-screen=\"true\"] {\n height: 100%;\n .content-overlay-background { \n height: 100%;\n }\n }\n}\n\n/* this is added to the body when a dialog is open */\nbody.has-dialog {\n overflow: hidden;\n}\n// .content-overlay--no-fullscreen {\n// position: relative;\n// .content-overlay-background {\n// position: static;\n// }\n// [role=\"dialog\"] {\n// top: 0;\n// bottom: 0;\n// left: 0;\n// right: 0;\n// position: absolute;\n// width: 100%;\n// height: 100%;\n// transform: none;\n// }\n// }\n","import { Component, Host, h, Prop, State, Listen, Element } from '@stencil/core';\nimport { Event, EventEmitter, HTMLStencilElement, Method } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ContentVerticalAlignments, ResponsiveBoolean, ResponsiveString } from '../../typings';\nimport * as focusTrap from 'focus-trap';\nimport './libraries/aria-utilities';\nimport './libraries/aria-dialog';\n/**\n * @slot closeButton - Contents of the overlay close button.\n * @slot header - This is adjacent to the close button, usually a header or title for the overlay.\n * @slot content - Contents that sit inside the overlay.\n */\n@Component({\n tag: 'content-overlay',\n styleUrl: 'content-overlay.scss',\n shadow: false,\n})\nexport class ContentOverlay {\n @Element() hostElement: HTMLStencilElement;\n /**\n * @type String\n * @responsive\n */\n @Prop() target: string;\n\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n open: ResponsiveBoolean = 'false';\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fullScreen: ResponsiveBoolean = 'true';\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n /**\n * A pipe delimited setting for horizontal alignment. This only applies when fullscreen mode is activated.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n horizontal: ContentLineTextAlignOptions = 'center';\n /**\n * A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated.\n * @type Select\n * @options top\n * @options center\n * @options bottom\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n vertical: ContentVerticalAlignments = 'center';\n\n /**\n * Title attribute value for the close button.\n * @type String\n */\n @Prop() closeTitle: string = 'Close Overlay';\n /**\n * Position of the overlay.\n * @type Select\n * @options absolute\n * @options fixed\n * @options static\n * @options sticky\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n position: ResponsiveString = 'fixed';\n @State() isActive: boolean = false;\n @State() activeClass: string = '';\n @State() classString: string = '';\n @Event({\n bubbles: true,\n })\n contentOverlayActivated: EventEmitter<HTMLElement>;\n\n @State() contentSlot: HTMLElement;\n\n dialogElement: HTMLDivElement;\n contentElement: HTMLDivElement;\n\n @State() isFullScreen: boolean = false;\n @State() hasCloseButton: boolean = false;\n @State() originalMarkup: string;\n ariaDialog;\n focusTrap;\n @Listen('contentBlockActivated')\n onContentBlockActivated(event: CustomEvent) {\n if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {\n console.log('activate');\n event.preventDefault();\n if (!this.isActive) {\n this.openOverlay();\n } else {\n this.closeOverlay();\n }\n }\n }\n\n @Method()\n async openOverlay() {\n this.isActive = true;\n if (!this.originalMarkup) {\n this.originalMarkup = this.contentSlot.innerHTML;\n }\n if (this.target) {\n let targetElement = document.querySelector(this.target);\n if (targetElement) {\n targetElement.classList.add('content-block-overlay-container');\n targetElement.appendChild(this.hostElement);\n }\n // } else if (this.isFullScreen) {\n // if (document.querySelectorAll(`#${this.hostElement.getAttribute('id')}`).length === 1) {\n // document.body.appendChild(this.hostElement);\n // }\n }\n\n if (this.originalMarkup) {\n this.contentSlot.innerHTML = this.originalMarkup;\n if (this.contentSlot.children[0] === this.contentSlot.querySelector('script[slot=\"content\"][type=\"text/template\"]')) {\n this.contentSlot.innerHTML = this.contentSlot.children[0].innerHTML;\n }\n this.setComputedActiveClass();\n this.focusTrap = focusTrap.createFocusTrap(this.hostElement, {\n fallbackFocus: this.hostElement,\n allowOutsideClick: true,\n clickOutsideDeactivates: true,\n onDeactivate: () => {\n this.isActive = false;\n this.setComputedActiveClass();\n },\n });\n }\n this.contentOverlayActivated.emit(this.hostElement);\n }\n\n @Method()\n async closeOverlay() {\n this.contentSlot.innerHTML = '';\n this.isActive = false;\n this.activeClass = '';\n if (this.focusTrap) {\n try {\n this.focusTrap.deactivate();\n } catch (e) {\n console.log(e);\n }\n }\n }\n\n setComputedActiveClass() {\n this.activeClass = `content-overlay ${this.isActive ? 'content-overlay-active' : 'content-overlay-inactive'} content-overlay--${this.position}`;\n }\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = `${newValue}`));\n WindowResizeService.registerProp(this.position).subscribe(newValue => (this.position = newValue as string));\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => this.hostElement.setAttribute('horizontal', newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => this.hostElement.setAttribute('vertical', newValue as ContentVerticalAlignments));\n WindowResizeService.registerProp(this.fullScreen).subscribe(newValue => {\n this.fullScreen = newValue as string;\n this.isFullScreen = (newValue as string) === 'true';\n });\n WindowResizeService.registerProp(this.open).subscribe(newValue => {\n this.hostElement.setAttribute('open', newValue as string);\n });\n this.hasCloseButton = !!this.hostElement.querySelector('[slot=\"closeButton\"]');\n }\n\n closeOverlayButtonClicked(event) {\n event.preventDefault();\n this.closeOverlay();\n }\n\n render() {\n return (\n <Host class={`${this.activeClass} ${this.classString}`} position={this.position}>\n <div class=\"content-block-overlay-container\">\n <div class={`content-overlay-background ${this.isActive ? 'active' : ''}`}>\n <div ref={element => (this.dialogElement = element)} role=\"dialog\" aria-modal=\"true\" class={this.isActive ? 'active' : 'hidden'} aria-expanded={this.isActive}>\n <div class=\"content-overlay__header\">\n <button\n onClick={e => {\n this.closeOverlayButtonClicked(e);\n }}\n class=\"content-overlay__close\"\n title={this.closeTitle}\n >\n {!this.hasCloseButton && (\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18 18 6M6 6l12 12\" />\n </svg>\n )}\n <slot name=\"closeButton\"></slot>\n </button>\n <slot name=\"header\"></slot>\n </div>\n <div class=\"content-overlay__content\" ref={(el: HTMLDivElement) => (this.contentSlot = el)}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n componentDidRender() {\n if (this.open === 'true') {\n this.openOverlay();\n }\n if (this.isActive && this.focusTrap && !this.focusTrap.active) {\n try {\n this.focusTrap.activate();\n } catch (e) {\n console.log(e);\n }\n }\n }\n}\n"],"version":3}
1
+ {"file":"content-overlay.js","mappings":";;;;AAAA;;;AAIA,IAAIA,MAAI,GAAGA,MAAI,IAAI,EAAE,CAAC;AACtBA,MAAI,CAAC,KAAK,GAAGA,MAAI,CAAC,KAAK,IAAI,EAAE,CAAC;AAE9B;AACAA,MAAI,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,OAAO,EAAE,QAAQ;IAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,C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0B,EAAC,GAAG,EAAE,CAAC,EAAkB,MAAM,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,IACxF,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACF,CACF,CACF,CACD,EACP;KACH;IAED,kBAAkB;QAChB,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;YACxB,IAAI,CAAC,WAAW,EAAE,CAAC;SACpB;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE;YAC7D,IAAI;gBACF,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;aAC3B;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aAChB;SACF;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["aria","ContentOverlay","focusTrap.createFocusTrap"],"sources":["src/components/content-overlay/libraries/aria-utilities.ts","src/components/content-overlay/libraries/aria-dialog.ts","src/components/content-overlay/content-overlay.scss?tag=content-overlay","src/components/content-overlay/content-overlay.tsx"],"sourcesContent":["/**\n * @namespace aria\n */\n\nvar aria = aria || {};\naria.Utils = aria.Utils || {};\n\n// Polyfill src https://developer.mozilla.org/en-US/docs/Web/API/Element/matches\naria.Utils.matches = function (element, selector) {\n return element.matches(selector);\n};\n\naria.Utils.remove = function (item) {\n if (item.remove && typeof item.remove === 'function') {\n return item.remove();\n }\n if (item.parentNode &&\n item.parentNode.removeChild &&\n typeof item.parentNode.removeChild === 'function') {\n return item.parentNode.removeChild(item);\n }\n return false;\n};\n\naria.Utils.isFocusable = function (element) {\n if (element.tabIndex > 0 || (element.tabIndex === 0 && element.getAttribute('tabIndex') !== null)) {\n return true;\n }\n\n if (element.disabled) {\n return false;\n }\n\n switch (element.nodeName) {\n case 'A':\n return !!element.href && element.rel != 'ignore';\n case 'INPUT':\n return element.type != 'hidden' && element.type != 'file';\n case 'BUTTON':\n case 'SELECT':\n case 'TEXTAREA':\n return true;\n default:\n return false;\n }\n};\n\naria.Utils.getAncestorBySelector = function (element, selector) {\n if (!aria.Utils.matches(element, selector + ' ' + element.tagName)) {\n // Element is not inside an element that matches selector\n return null;\n }\n\n // Move up the DOM tree until a parent matching the selector is found\n var currentNode = element;\n var ancestor = null;\n while (ancestor === null) {\n if (aria.Utils.matches(currentNode.parentNode, selector)) {\n ancestor = currentNode.parentNode;\n }\n else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return ancestor;\n};\n\naria.Utils.hasClass = function (element, className) {\n return (new RegExp('(\\\\s|^)' + className + '(\\\\s|$)')).test(element.className);\n};\n\naria.Utils.addClass = function (element, className) {\n if (!aria.Utils.hasClass(element, className)) {\n element.className += ' ' + className;\n }\n};\n\naria.Utils.removeClass = function (element, className) {\n var classRegex = new RegExp('(\\\\s|^)' + className + '(\\\\s|$)');\n element.className = element.className.replace(classRegex, ' ').trim();\n};\n\naria.Utils.bindMethods = function (object) {\n var methodNames = Array.prototype.slice.call(arguments, 1);\n methodNames.forEach(function (method) {\n object[method] = object[method].bind(object);\n });\n};\n\nwindow.aria = aria;","/*\n* This content is licensed according to the W3C Software License at\n* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n*/\n/**\n * @namespace aria\n */\n\n var aria = aria || {};\n aria.Utils = aria.Utils || {};\n \n // Polyfill src https://developer.mozilla.org/en-US/docs/Web/API/Element/matches\n aria.Utils.matches = function (element, selector) {\n return element.matches(selector);\n };\n \n aria.Utils.remove = function (item) {\n if (item.remove && typeof item.remove === 'function') {\n return item.remove();\n }\n if (item.parentNode &&\n item.parentNode.removeChild &&\n typeof item.parentNode.removeChild === 'function') {\n return item.parentNode.removeChild(item);\n }\n return false;\n };\n \n aria.Utils.isFocusable = function (element) {\n if (element.tabIndex > 0 || (element.tabIndex === 0 && element.getAttribute('tabIndex') !== null)) {\n return true;\n }\n \n if (element.disabled) {\n return false;\n }\n \n switch (element.nodeName) {\n case 'A':\n return !!element.href && element.rel != 'ignore';\n case 'INPUT':\n return element.type != 'hidden' && element.type != 'file';\n case 'BUTTON':\n case 'SELECT':\n case 'TEXTAREA':\n return true;\n default:\n return false;\n }\n };\n \n aria.Utils.getAncestorBySelector = function (element, selector) {\n if (!aria.Utils.matches(element, selector + ' ' + element.tagName)) {\n // Element is not inside an element that matches selector\n return null;\n }\n \n // Move up the DOM tree until a parent matching the selector is found\n var currentNode = element;\n var ancestor = null;\n while (ancestor === null) {\n if (aria.Utils.matches(currentNode.parentNode, selector)) {\n ancestor = currentNode.parentNode;\n }\n else {\n currentNode = currentNode.parentNode;\n }\n }\n \n return ancestor;\n };\n \n aria.Utils.hasClass = function (element, className) {\n return (new RegExp('(\\\\s|^)' + className + '(\\\\s|$)')).test(element.className);\n };\n \n aria.Utils.addClass = function (element, className) {\n if (!aria.Utils.hasClass(element, className)) {\n element.className += ' ' + className;\n }\n };\n \n aria.Utils.removeClass = function (element, className) {\n var classRegex = new RegExp('(\\\\s|^)' + className + '(\\\\s|$)');\n element.className = element.className.replace(classRegex, ' ').trim();\n };\n \n aria.Utils.bindMethods = function (object) {\n var methodNames = Array.prototype.slice.call(arguments, 1);\n methodNames.forEach(function (method) {\n object[method] = object[method].bind(object);\n });\n };\n \n \n /*\n * When util functions move focus around, set this true so the focus listener\n * can ignore the events.\n */\naria.Utils.IgnoreUtilFocusChanges = false;\n\naria.Utils.dialogOpenClass = 'has-dialog';\n\n/**\n * @desc Set focus on descendant nodes until the first focusable element is\n * found.\n * @param element\n * DOM node for which to find the first focusable descendant.\n * @returns\n * true if a focusable element is found and focus is set.\n */\naria.Utils.focusFirstDescendant = function (element) {\n for (var i = 0; i < element.childNodes.length; i++) {\n var child = element.childNodes[i];\n if (aria.Utils.attemptFocus(child) ||\n aria.Utils.focusFirstDescendant(child)) {\n return true;\n }\n }\n return false;\n}; // end focusFirstDescendant\n\n/**\n * @desc Find the last descendant node that is focusable.\n * @param element\n * DOM node for which to find the last focusable descendant.\n * @returns\n * true if a focusable element is found and focus is set.\n */\naria.Utils.focusLastDescendant = function (element) {\n for (var i = element.childNodes.length - 1; i >= 0; i--) {\n var child = element.childNodes[i];\n if (aria.Utils.attemptFocus(child) ||\n aria.Utils.focusLastDescendant(child)) {\n return true;\n }\n }\n return false;\n}; // end focusLastDescendant\n\n/**\n * @desc Set Attempt to set focus on the current node.\n * @param element\n * The node to attempt to focus on.\n * @returns\n * true if element is focused.\n */\naria.Utils.attemptFocus = function (element) {\n if (!aria.Utils.isFocusable(element)) {\n return false;\n }\n \n aria.Utils.IgnoreUtilFocusChanges = true;\n try {\n element.focus();\n }\n catch (e) {\n }\n aria.Utils.IgnoreUtilFocusChanges = false;\n return (document.activeElement === element);\n}; // end attemptFocus\n\n/* Modals can open modals. Keep track of them with this array. */\naria.OpenDialogList = aria.OpenDialogList || new Array(0);\n\n/**\n * @returns the last opened dialog (the current dialog)\n */\naria.getCurrentDialog = function () {\n if (aria.OpenDialogList && aria.OpenDialogList.length) {\n return aria.OpenDialogList[aria.OpenDialogList.length - 1];\n }\n};\n\naria.closeCurrentDialog = function () {\n var currentDialog = aria.getCurrentDialog();\n if (currentDialog) {\n currentDialog.close();\n return true;\n }\n \n return false;\n};\n\n aria.handleEscape = function (event) {\n if (event.key === 'Escape' && aria.closeCurrentDialog()) {\n event.stopPropagation();\n }\n };\n\n document.addEventListener('keyup', aria.handleEscape);\n\n /**\n * @constructor\n * @desc Dialog object providing modal focus management.\n *\n * Assumptions: The element serving as the dialog container is present in the\n * DOM and hidden. The dialog container has role='dialog'.\n *\n * @param dialogNode\n * The element serving as the dialog container.\n * @param focusAfterClosed\n * Either the DOM node or the ID of the DOM node to focus when the\n * dialog closes.\n * @param focusFirst\n * Optional parameter containing either the DOM node or the ID of the\n * DOM node to focus when the dialog opens. If not specified, the\n * first focusable element in the dialog will receive focus.\n */\n aria.Dialog = function (dialogNode, focusAfterClosed, focusFirst, isFullScreen) {\n this.dialogNode = dialogNode;\n if (this.dialogNode === null) {\n throw new Error('No element found');\n }\n\n var validRoles = ['dialog', 'alertdialog'];\n var isDialog = (this.dialogNode.getAttribute('role') || '')\n .trim()\n .split(/\\s+/g)\n .some(function (token) {\n return validRoles.some(function (role) {\n return token === role;\n });\n });\n if (!isDialog) {\n throw new Error(\n 'Dialog() requires a DOM element with ARIA role of dialog or alertdialog.');\n }\n\n // Wrap in an individual backdrop element if one doesn't exist\n // Native <dialog> elements use the ::backdrop pseudo-element, which\n // works similarly.\n var backdropClass = 'content-overlay-background';\n if (this.dialogNode.parentNode.classList.contains(backdropClass)) {\n this.backdropNode = this.dialogNode.parentNode;\n }\n else {\n this.backdropNode = document.createElement('div');\n this.backdropNode.className = backdropClass;\n this.dialogNode.parentNode.insertBefore(this.backdropNode, this.dialogNode);\n this.backdropNode.appendChild(this.dialogNode);\n }\n this.backdropNode.classList.add('active');\n setTimeout(() => {\n this.backdropNode.classList.add('transition');\n }, 1);\n\n // Disable scroll on the body element\n this.isFullscreen = isFullScreen;\n if (isFullScreen) {\n document.body.classList.add(aria.Utils.dialogOpenClass);\n }\n\n if (typeof focusAfterClosed === 'string') {\n this.focusAfterClosed = document.getElementById(focusAfterClosed);\n }\n else if (typeof focusAfterClosed === 'object') {\n this.focusAfterClosed = focusAfterClosed;\n }\n else {\n throw new Error(\n 'the focusAfterClosed parameter is required for the aria.Dialog constructor.');\n }\n\n if (typeof focusFirst === 'string') {\n this.focusFirst = document.getElementById(focusFirst);\n }\n else if (typeof focusFirst === 'object') {\n this.focusFirst = focusFirst;\n }\n else {\n this.focusFirst = null;\n }\n\n // Bracket the dialog node with two invisible, focusable nodes.\n // While this dialog is open, we use these to make sure that focus never\n // leaves the document even if dialogNode is the first or last node.\n var preDiv = document.createElement('div');\n this.preNode = this.dialogNode.parentNode.insertBefore(preDiv,\n this.dialogNode);\n this.preNode.tabIndex = 0;\n var postDiv = document.createElement('div');\n this.postNode = this.dialogNode.parentNode.insertBefore(postDiv,\n this.dialogNode.nextSibling);\n this.postNode.tabIndex = 0;\n\n // If this modal is opening on top of one that is already open,\n // get rid of the document focus listener of the open dialog.\n if (aria.OpenDialogList.length > 0) {\n aria.getCurrentDialog().removeListeners();\n }\n\n if (isFullScreen) {\n this.addListeners();\n }\n aria.OpenDialogList.push(this);\n this.dialogNode.className = 'content-overlay-dialog'; // make visible\n\n if (this.focusFirst) {\n this.focusFirst.focus();\n }\n else {\n aria.Utils.focusFirstDescendant(this.dialogNode);\n }\n\n this.lastFocus = document.activeElement;\n }; // end Dialog constructor\n\n\n /**\n * @desc\n * Hides the current top dialog,\n * removes listeners of the top dialog,\n * restore listeners of a parent dialog if one was open under the one that just closed,\n * and sets focus on the element specified for focusAfterClosed.\n */\n aria.Dialog.prototype.close = function () {\n aria.OpenDialogList.pop();\n this.removeListeners();\n aria.Utils.remove(this.preNode);\n aria.Utils.remove(this.postNode);\n this.dialogNode.className = 'hidden';\n this.backdropNode.classList.remove('active');\n this.backdropNode.classList.remove('transition');\n this.focusAfterClosed.focus();\n\n // If a dialog was open underneath this one, restore its listeners.\n if (aria.OpenDialogList.length > 0 && aria.OpenDialogList.filter(dialog => dialog.isFullscreen === true).length) {\n aria.getCurrentDialog().addListeners();\n }\n else {\n document.body.classList.remove(aria.Utils.dialogOpenClass);\n }\n this.dialogNode.dispatchEvent(new CustomEvent(\"ariaDialog.closed\", {\n bubbles: true,\n \"detail\": {}\n }));\n }; // end close\n\n /**\n * @desc\n * Hides the current dialog and replaces it with another.\n *\n * @param newDialogId\n * ID of the dialog that will replace the currently open top dialog.\n * @param newFocusAfterClosed\n * Optional ID or DOM node specifying where to place focus when the new dialog closes.\n * If not specified, focus will be placed on the element specified by the dialog being replaced.\n * @param newFocusFirst\n * Optional ID or DOM node specifying where to place focus in the new dialog when it opens.\n * If not specified, the first focusable element will receive focus.\n */\n aria.Dialog.prototype.replace = function (newDialogId, newFocusAfterClosed,\n newFocusFirst) {\n // var closedDialog = aria.getCurrentDialog();\n aria.OpenDialogList.pop();\n this.removeListeners();\n aria.Utils.remove(this.preNode);\n aria.Utils.remove(this.postNode);\n this.dialogNode.className = 'hidden';\n this.backdropNode.classList.remove('active');\n this.backdropNode.classList.remove('transition');\n\n var focusAfterClosed = newFocusAfterClosed || this.focusAfterClosed;\n new aria.Dialog(newDialogId, focusAfterClosed, newFocusFirst);\n // var dialog = new aria.Dialog(newDialogId, focusAfterClosed, newFocusFirst);\n }; // end replace\n\n aria.Dialog.prototype.addListeners = function () {\n document.addEventListener('focus', this.trapFocus, true);\n }; // end addListeners\n\n aria.Dialog.prototype.removeListeners = function () {\n document.removeEventListener('focus', this.trapFocus, true);\n }; // end removeListeners\n\n aria.Dialog.prototype.trapFocus = function (event) {\n if (aria.Utils.IgnoreUtilFocusChanges) {\n return;\n }\n var currentDialog = aria.getCurrentDialog();\n if (currentDialog.dialogNode.contains(event.target)) {\n currentDialog.lastFocus = event.target;\n }\n else {\n aria.Utils.focusFirstDescendant(currentDialog.dialogNode);\n if (currentDialog.lastFocus == document.activeElement) {\n aria.Utils.focusLastDescendant(currentDialog.dialogNode);\n }\n currentDialog.lastFocus = document.activeElement;\n }\n }; // end trapFocus\n\n aria.closeDialog = function (closeButton) {\n var topDialog = aria.getCurrentDialog();\n if (topDialog.dialogNode.contains(closeButton)) {\n topDialog.close();\n }\n }; // end closeDialog\n\n aria.replaceDialog = function (newDialogId, newFocusAfterClosed,\n newFocusFirst) {\n var topDialog = aria.getCurrentDialog();\n if (topDialog.dialogNode.contains(document.activeElement)) {\n topDialog.replace(newDialogId, newFocusAfterClosed, newFocusFirst);\n }\n }; // end replaceDialog\n\n window.aria = aria;",".content-overlay-open {\n overflow: hidden;\n}\n.content-block-overlay-container {\n position: relative;\n display: block;\n width: 100%;\n height: 100%;\n}\ncontent-overlay {\n display: none;\n position: relative;\n flex: 0;\n .content-overlay__content>*[slot=\"content\"] {\n height: 100%;\n overflow: auto;\n }\n &.content-overlay-active {\n display: flex;\n }\n &[vertical=\"left\"] {\n align-items: flex-start;\n }\n &[vertical=\"center\"] {\n align-items: center;\n }\n &[vertical=\"right\"] {\n align-items: flex-end;\n }\n \n &[vertical=\"top\"] {\n justify-content: flex-start;\n top: 0;\n }\n &[vertical=\"center\"] {\n justify-content: center;\n }\n &[vertical=\"bottom\"] {\n justify-content: flex-end;\n bottom: 0;\n }\n \n .content-overlay-background {\n background: rgba(255,255,255,.6);\n bottom: 0;\n display: none;\n top: 0;\n z-index: 100000;\n right: 0;\n left: 0;\n width: 100%;\n &.active {\n display: block;\n }\n }\n .content-overlay__header {\n display: flex;\n align-items: center;\n }\n .content-overlay__close {\n order: 2;\n margin-left: auto;\n cursor: pointer;\n z-index: 1;\n appearance: none;\n background: none;\n border: none;\n min-width: 40px;\n // color: white;\n // &:after {\n // content: \"\\00d7\";\n // font-size: 2.5rem;\n // }\n }\n\n &[position=\"fixed\"] {\n .content-overlay-background {\n position: fixed;\n }\n }\n\n &[position=\"absolute\"] {\n position: absolute;\n box-sizing: border-box;\n z-index: 100000;\n height: 100%;\n width: 100%;\n left: 0;\n .content-overlay-background {\n position: static;\n }\n }\n\n &[position=\"absolute\"],\n &[position=\"fixed\"] {\n .content-overlay__content {\n flex: 1;\n overflow: auto;\n }\n }\n\n [role=\"dialog\"] {\n display: flex;\n flex-direction: column;\n height: 100%;\n justify-content: flex-start;\n &.hidden {\n display: none;\n }\n }\n &[full-screen=\"true\"] {\n height: 100%;\n .content-overlay-background { \n height: 100%;\n }\n }\n}\n\n/* this is added to the body when a dialog is open */\nbody.has-dialog {\n overflow: hidden;\n}\n// .content-overlay--no-fullscreen {\n// position: relative;\n// .content-overlay-background {\n// position: static;\n// }\n// [role=\"dialog\"] {\n// top: 0;\n// bottom: 0;\n// left: 0;\n// right: 0;\n// position: absolute;\n// width: 100%;\n// height: 100%;\n// transform: none;\n// }\n// }\n","import { Component, Host, h, Prop, State, Listen, Element } from '@stencil/core';\nimport { Event, EventEmitter, HTMLStencilElement, Method } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ContentVerticalAlignments, ResponsiveBoolean, ResponsiveString } from '../../typings';\nimport * as focusTrap from 'focus-trap';\nimport './libraries/aria-utilities';\nimport './libraries/aria-dialog';\n/**\n * @slot closeButton - Contents of the overlay close button.\n * @slot header - This is adjacent to the close button, usually a header or title for the overlay.\n * @slot content - Contents that sit inside the overlay.\n */\n@Component({\n tag: 'content-overlay',\n styleUrl: 'content-overlay.scss',\n shadow: false,\n})\nexport class ContentOverlay {\n @Element() hostElement: HTMLStencilElement;\n /**\n * @type String\n * @responsive\n */\n @Prop() target: string;\n\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n open: ResponsiveBoolean = 'false';\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fullScreen: ResponsiveBoolean = 'true';\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n /**\n * A pipe delimited setting for horizontal alignment. This only applies when fullscreen mode is activated.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n horizontal: ContentLineTextAlignOptions = 'center';\n /**\n * A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated.\n * @type Select\n * @options top\n * @options center\n * @options bottom\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n vertical: ContentVerticalAlignments = 'center';\n\n /**\n * Title attribute value for the close button.\n * @type String\n */\n @Prop() closeTitle: string = 'Close Overlay';\n /**\n * Position of the overlay.\n * @type Select\n * @options absolute\n * @options fixed\n * @options static\n * @options sticky\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n position: ResponsiveString = 'fixed';\n @State() isActive: boolean = false;\n @State() activeClass: string = '';\n @State() classString: string = '';\n @Event({\n bubbles: true,\n })\n contentOverlayActivated: EventEmitter<HTMLElement>;\n\n @State() contentSlot: HTMLElement;\n\n dialogElement: HTMLDivElement;\n contentElement: HTMLDivElement;\n\n @State() isFullScreen: boolean = false;\n @State() hasCloseButton: boolean = false;\n @State() originalMarkup: string;\n ariaDialog;\n focusTrap;\n @Listen('toggle')\n onContentBlockToggle(event: CustomEvent) {\n if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {\n event.preventDefault();\n if (!this.isActive) {\n this.openOverlay();\n } else {\n this.closeOverlay();\n }\n }\n }\n @Listen('open')\n onContentBlockActivated(event: CustomEvent) {\n if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {\n event.preventDefault();\n this.openOverlay();\n }\n }\n @Listen('close')\n onContentBlockDeactivated(event: CustomEvent) {\n if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {\n event.preventDefault();\n this.closeOverlay();\n }\n }\n\n @Method()\n async openOverlay() {\n this.isActive = true;\n document.body.classList.add('content-overlay-open');\n document.body.classList.remove('content-overlay-close');\n if (!this.originalMarkup) {\n this.originalMarkup = this.contentSlot.innerHTML;\n }\n if (this.target) {\n let targetElement = document.querySelector(this.target);\n if (targetElement) {\n targetElement.classList.add('content-block-overlay-container');\n targetElement.appendChild(this.hostElement);\n }\n // } else if (this.isFullScreen) {\n // if (document.querySelectorAll(`#${this.hostElement.getAttribute('id')}`).length === 1) {\n // document.body.appendChild(this.hostElement);\n // }\n }\n\n if (this.originalMarkup) {\n this.contentSlot.innerHTML = this.originalMarkup;\n if (this.contentSlot.children[0] === this.contentSlot.querySelector('script[slot=\"content\"][type=\"text/template\"]')) {\n this.contentSlot.innerHTML = this.contentSlot.children[0].innerHTML;\n }\n this.setComputedActiveClass();\n this.focusTrap = focusTrap.createFocusTrap(this.hostElement, {\n fallbackFocus: this.hostElement,\n allowOutsideClick: true,\n clickOutsideDeactivates: true,\n onDeactivate: () => {\n this.isActive = false;\n document.body.classList.add('content-overlay-close');\n document.body.classList.remove('content-overlay-open');\n this.activeClass = '';\n this.setComputedActiveClass();\n this.contentSlot.innerHTML = '';\n },\n });\n }\n this.contentOverlayActivated.emit(this.hostElement);\n }\n\n @Method()\n async closeOverlay() {\n if (this.focusTrap) {\n try {\n this.focusTrap.deactivate();\n } catch (e) {\n console.log(e);\n }\n }\n }\n\n setComputedActiveClass() {\n this.activeClass = `content-overlay ${this.isActive ? 'content-overlay-active' : 'content-overlay-inactive'} content-overlay--${this.position}`;\n }\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = `${newValue}`));\n WindowResizeService.registerProp(this.position).subscribe(newValue => (this.position = newValue as string));\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => this.hostElement.setAttribute('horizontal', newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => this.hostElement.setAttribute('vertical', newValue as ContentVerticalAlignments));\n WindowResizeService.registerProp(this.fullScreen).subscribe(newValue => {\n this.fullScreen = newValue as string;\n this.isFullScreen = (newValue as string) === 'true';\n });\n WindowResizeService.registerProp(this.open).subscribe(newValue => {\n this.hostElement.setAttribute('open', newValue as string);\n });\n this.hasCloseButton = !!this.hostElement.querySelector('[slot=\"closeButton\"]');\n }\n\n closeOverlayButtonClicked(event) {\n event.preventDefault();\n this.closeOverlay();\n }\n\n render() {\n return (\n <Host class={`${this.activeClass} ${this.classString}`} position={this.position}>\n <div class=\"content-block-overlay-container\">\n <div class={`content-overlay-background ${this.isActive ? 'active' : ''}`}>\n <div ref={element => (this.dialogElement = element)} role=\"dialog\" aria-modal=\"true\" class={this.isActive ? 'active' : 'hidden'} aria-expanded={this.isActive}>\n <div class=\"content-overlay__header\">\n <button\n onClick={e => {\n this.closeOverlayButtonClicked(e);\n }}\n class=\"content-overlay__close\"\n title={this.closeTitle}\n >\n {!this.hasCloseButton && (\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M6 18 18 6M6 6l12 12\" />\n </svg>\n )}\n <slot name=\"closeButton\"></slot>\n </button>\n <slot name=\"header\"></slot>\n </div>\n <div class=\"content-overlay__content\" ref={(el: HTMLDivElement) => (this.contentSlot = el)}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n componentDidRender() {\n if (this.open === 'true') {\n this.openOverlay();\n }\n if (this.isActive && this.focusTrap && !this.focusTrap.active) {\n try {\n this.focusTrap.activate();\n } catch (e) {\n console.log(e);\n }\n }\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { W as WindowResizeService } from './window-resize-service.js';
3
3
 
4
- const contentSpacerCss = "*{box-sizing:border-box}content-spacer{display:block;width:100%;height:auto}content-spacer[full-height=true]{height:100%}content-spacer[text-align=left]{text-align:left}content-spacer[text-align=center]{text-align:center}content-spacer[text-align=right]{text-align:right}content-spacer[horizontal=left]{margin-left:0;margin-right:auto}content-spacer[horizontal=center]{margin-left:auto;margin-right:auto}content-spacer[horizontal=right]{margin-left:auto;margin-right:0}content-spacer[vertical=top]{display:flex;justify-content:flex-start}content-spacer[vertical=center]{display:flex;justify-content:center}content-spacer[vertical=bottom]{display:flex;justify-content:flex-end}";
4
+ const contentSpacerCss = "*{box-sizing:border-box}content-spacer{display:block;width:100%;height:auto}content-spacer .content-spacer__content{width:100%}content-spacer[full-height=true]{height:100%}content-spacer[text-align=left]{text-align:left}content-spacer[text-align=center]{text-align:center}content-spacer[text-align=right]{text-align:right}content-spacer[horizontal=left]{margin-left:0;margin-right:auto}content-spacer[horizontal=center]{margin-left:auto;margin-right:auto}content-spacer[horizontal=right]{margin-left:auto;margin-right:0}content-spacer[vertical]{display:flex}content-spacer[vertical=top]{align-items:flex-start}content-spacer[vertical=center]{align-items:center}content-spacer[vertical=bottom]{align-items:flex-end}";
5
5
 
6
6
  const ContentSpacingWrapper = /*@__PURE__*/ proxyCustomElement(class ContentSpacingWrapper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acer/content-spacer.scss?tag=content-spacer","src/formatters/content-spacer/content-spacer.tsx"],"sourcesContent":["content-spacer {\n display: block;\n width: 100%;\n height: auto;\n &[full-height=\"true\"] {\n height: 100%;\n }\n &[text-align=\"left\"] {\n text-align: left;\n }\n &[text-align=\"center\"] {\n text-align: center;\n }\n &[text-align=\"right\"] {\n text-align: right;\n }\n &[horizontal=\"left\"] {\n margin-left: 0;\n margin-right: auto;\n }\n &[horizontal=\"center\"] {\n margin-left: auto;\n margin-right: auto;\n }\n &[horizontal=\"right\"] {\n margin-left: auto;\n margin-right: 0;\n }\n\n &[vertical=\"top\"] {\n display: flex;\n justify-content: flex-start;\n }\n &[vertical=\"center\"] {\n display: flex;\n justify-content: center;\n }\n &[vertical=\"bottom\"] {\n display: flex;\n justify-content: flex-end;\n }\n}","import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ContentVerticalAlignments, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot content - Inner contents of spacing wrapper, can be anything.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-spacer',\n styleUrls: ['content-spacer.scss'],\n shadow: false,\n})\nexport class ContentSpacingWrapper {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\".\n * @type String\n * @responsive\n */\n @Prop() maxWidth: ResponsiveNumber = '100';\n\n /**\n * Pipe separated boolean values for full height. Typically, this is used if you have a hero block and you want a footer that aligns with the text layer. This is a niche case, but a valid one.\n * @type Boolean\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n fullHeight: ResponsiveBoolean = 'false';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for text alignment.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n textAlign: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n horizontal: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentVerticalAlignments for text box placement.\n * @type Select\n * @options top\n * @options center\n * @options bottom\n * @options default\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: ResponsiveString | ContentVerticalAlignments = '';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() topOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() bottomOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() leftOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() rightOffset: ResponsiveNumber = '0';\n\n @State() inlineStyle?: { [key: string]: string } = {};\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue as string));\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => (this.horizontal = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => (this.vertical = newValue as ContentVerticalAlignments));\n WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'max-width': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-top': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-bottom': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-left': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-right': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <div class=\"content-spacer__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-spacer.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,4sBAA4sB;;MCaxtB,qBAAqB;;;;;;wBAYK,KAAK;0BAWV,OAAO;yBAeE,SAAS;0BAeR,SAAS;wBAeM,EAAE;yBAQrB,GAAG;4BAQA,GAAG;0BAQL,GAAG;2BAQF,GAAG;2BAEQ,EAAE;;IAErD,iBAAiB;QACf,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,UAAU,GAAG,QAAkB,CAAC,CAAC,CAAC;QAChH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,GAAG,QAAuC,CAAC,CAAC,CAAC;QACnI,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,UAAU,GAAG,QAAuC,CAAC,CAA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AAQ,IAAI,CAAC,WAAW,KAAE,eAAe,EAAE,KAAK,CAAC,QAAe,CAAC,GAAI,QAAmB,GAAG,QAAQ,GAAG,GAAG,GAAE,CAAC;SAC7H,CAAC,CAAC;QACH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC,CAAC,CAAC;KAC/G;IAED,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,IACpD,WAAK,KAAK,EAAC,yBAAyB,IAClC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/formatters/content-spacer/content-spacer.scss?tag=content-spacer","src/formatters/content-spacer/content-spacer.tsx"],"sourcesContent":["content-spacer {\n display: block;\n width: 100%;\n height: auto;\n .content-spacer__content {\n width: 100%;\n }\n &[full-height=\"true\"] {\n height: 100%;\n }\n &[text-align=\"left\"] {\n text-align: left;\n }\n &[text-align=\"center\"] {\n text-align: center;\n }\n &[text-align=\"right\"] {\n text-align: right;\n }\n &[horizontal=\"left\"] {\n margin-left: 0;\n margin-right: auto;\n }\n &[horizontal=\"center\"] {\n margin-left: auto;\n margin-right: auto;\n }\n &[horizontal=\"right\"] {\n margin-left: auto;\n margin-right: 0;\n }\n\n &[vertical] {\n display: flex;\n // flex-direction: column;\n }\n\n &[vertical=\"top\"] {\n align-items: flex-start;\n }\n &[vertical=\"center\"] {\n align-items: center;\n }\n &[vertical=\"bottom\"] {\n align-items: flex-end;\n }\n}","import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ContentVerticalAlignments, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot content - Inner contents of spacing wrapper, can be anything.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-spacer',\n styleUrls: ['content-spacer.scss'],\n shadow: false,\n})\nexport class ContentSpacingWrapper {\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n /**\n * Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\".\n * @type String\n * @responsive\n */\n @Prop() maxWidth: ResponsiveNumber = '100';\n\n /**\n * Pipe separated boolean values for full height. Typically, this is used if you have a hero block and you want a footer that aligns with the text layer. This is a niche case, but a valid one.\n * @type Boolean\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n fullHeight: ResponsiveBoolean = 'false';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for text alignment.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n textAlign: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true,\n })\n horizontal: ContentLineTextAlignOptions = 'default';\n\n /**\n * Pipe separated list of ContentVerticalAlignments for text box placement.\n * @type Select\n * @options top\n * @options center\n * @options bottom\n * @options default\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: ResponsiveString | ContentVerticalAlignments = '';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() topOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() bottomOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() leftOffset: ResponsiveNumber = '0';\n\n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() rightOffset: ResponsiveNumber = '0';\n\n @State() inlineStyle?: { [key: string]: string } = {};\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue as string));\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.horizontal).subscribe(newValue => (this.horizontal = newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => (this.vertical = newValue as ContentVerticalAlignments));\n WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'max-width': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-top': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-bottom': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-left': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-right': isNaN(newValue as any) ? (newValue as string) : newValue + '%' };\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <div class=\"content-spacer__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { W as WindowResizeService } from './window-resize-service.js';
3
3
 
4
- const contentToutBlockCss = "*{box-sizing:border-box}content-tout-block .content-tout-block__media{position:relative}content-tout-block .content-tout-block__media-content{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden}content-tout-block .content-tout-block__media-content [slot=mediaContent]{height:100%;width:100%}content-tout-block[hover=true] .content-tout-block__media-content{transition:opacity 0.3s}@media (hover: hover){content-tout-block[hover=true] .content-tout-block__media-content{opacity:0}content-tout-block[hover=true] .content-tout-block__media-content:hover{opacity:1}}";
4
+ const contentToutBlockCss = "*{box-sizing:border-box}content-tout-block .content-tout-block__media{position:relative}content-tout-block .content-tout-block__media-content{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden}content-tout-block .content-tout-block__media-content [slot=mediaContent]{height:100%;width:100%}content-tout-block[hover=true] .content-tout-block__media-content{transition:opacity 0.3s}@media (hover: hover){content-tout-block[hover=true] .content-tout-block__media-content{opacity:0}content-tout-block[hover=true] .content-tout-block__media-content:hover,content-tout-block[hover=true] .content-tout-block__media-content:focus,content-tout-block[hover=true] .content-tout-block__media-content:focus-within{opacity:1}}";
5
5
 
6
6
  const ContentToutBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentToutBlock extends HTMLElement {
7
7
  constructor() {
@@ -1 +1 @@
1
- {"file":"content-tout-block.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,6nBAA6nB;;MCgB5oBA,kBAAgB;;;;qBAUA,YAAY;;;+BAYH,KAAK;;IAEzC,iBAAiB;QACf,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;QACjF,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,GAAG,QAAkB,CAAC,CAAC,CAAC;QACtG,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC,CAAC,CAAC;KAC/G;IAED,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,IAC9C,WAAK,KAAK,EAAC,2BAA2B,IACpC,YAAM,IAAI,EAAC,OAAO,GAAQ,EACzB,IAAI,CAAC,eAAe,KACnB,WAAK,KAAK,EAAC,mCAAmC,IAC5C,YAAM,IAAI,EAAC,cAAc,GAAQ,CAC7B,CACP,CACG,EACN,WAAK,KAAK,EAAC,6BAA6B,IACtC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentToutBlock"],"sources":["src/blocks/content-tout-block/content-tout-block.scss?tag=content-tout-block","src/blocks/content-tout-block/content-tout-block.tsx"],"sourcesContent":["content-tout-block {\n .content-tout-block__media {\n position: relative;\n }\n .content-tout-block__media-content {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n [slot=\"mediaContent\"] {\n height: 100%;\n width: 100%;\n }\n }\n\n &[hover=\"true\"] {\n .content-tout-block__media-content {\n transition: opacity .3s;\n @media (hover: hover) {\n opacity: 0;\n &:hover {\n opacity: 1;\n }\n }\n }\n }\n}","import { Component, h, Host, Element } from '@stencil/core';\nimport { HTMLStencilElement, Prop, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveBoolean, ResponsiveString } from '../../typings';\n\n/**\n * @slot media - This slot is usually a video or image component.\n * @slot mediaContent - This is a layer that floats the media layer and is revealed on hover.\n * @slot content - This slot will usually serve a text block.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-tout-block',\n styleUrl: 'content-tout-block.scss',\n shadow: false,\n})\nexport class ContentToutBlock {\n /**\n * If true, the media content will show only on hover\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n hover: ResponsiveBoolean = 'false|true';\n\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n\n @Element() hostElement: HTMLStencilElement;\n hasMediaContent: boolean;\n\n @State() hasHoverContent: boolean = false;\n\n componentWillLoad() {\n this.hasMediaContent = !!this.hostElement.querySelector('[slot=\"mediaContent\"]');\n WindowResizeService.registerProp(this.hover).subscribe(newValue => (this.hover = newValue as string));\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host hover={this.hover} class={this.classString}>\n <div class=\"content-tout-block__media\">\n <slot name=\"media\"></slot>\n {this.hasMediaContent && (\n <div class=\"content-tout-block__media-content\">\n <slot name=\"mediaContent\"></slot>\n </div>\n )}\n </div>\n <div class=\"content-tout-block__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-tout-block.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,oxBAAoxB;;MCgBnyBA,kBAAgB;;;;qBAUA,YAAY;;;+BAYH,KAAK;;IAEzC,iBAAiB;QACf,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;QACjF,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,GAAG,QAAkB,CAAC,CAAC,CAAC;QACtG,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,WAAW,GAAG,QAAkB,CAAC,CAAC,CAAC;KAC/G;IAED,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,IAC9C,WAAK,KAAK,EAAC,2BAA2B,IACpC,YAAM,IAAI,EAAC,OAAO,GAAQ,EACzB,IAAI,CAAC,eAAe,KACnB,WAAK,KAAK,EAAC,mCAAmC,IAC5C,YAAM,IAAI,EAAC,cAAc,GAAQ,CAC7B,CACP,CACG,EACN,WAAK,KAAK,EAAC,6BAA6B,IACtC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentToutBlock"],"sources":["src/blocks/content-tout-block/content-tout-block.scss?tag=content-tout-block","src/blocks/content-tout-block/content-tout-block.tsx"],"sourcesContent":["content-tout-block {\n .content-tout-block__media {\n position: relative;\n }\n .content-tout-block__media-content {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n [slot=\"mediaContent\"] {\n height: 100%;\n width: 100%;\n }\n }\n\n &[hover=\"true\"] {\n .content-tout-block__media-content {\n transition: opacity .3s;\n @media (hover: hover) {\n opacity: 0;\n &:hover,\n &:focus,\n &:focus-within {\n opacity: 1;\n }\n }\n }\n }\n}","import { Component, h, Host, Element } from '@stencil/core';\nimport { HTMLStencilElement, Prop, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveBoolean, ResponsiveString } from '../../typings';\n\n/**\n * @slot media - This slot is usually a video or image component.\n * @slot mediaContent - This is a layer that floats the media layer and is revealed on hover.\n * @slot content - This slot will usually serve a text block.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-tout-block',\n styleUrl: 'content-tout-block.scss',\n shadow: false,\n})\nexport class ContentToutBlock {\n /**\n * If true, the media content will show only on hover\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n hover: ResponsiveBoolean = 'false|true';\n\n /**\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n\n @Element() hostElement: HTMLStencilElement;\n hasMediaContent: boolean;\n\n @State() hasHoverContent: boolean = false;\n\n componentWillLoad() {\n this.hasMediaContent = !!this.hostElement.querySelector('[slot=\"mediaContent\"]');\n WindowResizeService.registerProp(this.hover).subscribe(newValue => (this.hover = newValue as string));\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host hover={this.hover} class={this.classString}>\n <div class=\"content-tout-block__media\">\n <slot name=\"media\"></slot>\n {this.hasMediaContent && (\n <div class=\"content-tout-block__media-content\">\n <slot name=\"mediaContent\"></slot>\n </div>\n )}\n </div>\n <div class=\"content-tout-block__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}