@content-blocks/js 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cjs/content-accordion_11.cjs.entry.js +40 -38
  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 +1 -1
  5. package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/blocks/content-text-block/content-text-block.css +8 -8
  8. package/dist/collection/blocks/content-text-block/content-text-block.js +4 -4
  9. package/dist/collection/blocks/content-text-block/content-text-block.js.map +1 -1
  10. package/dist/collection/components/content-accordion/content-accordion.js +2 -4
  11. package/dist/collection/components/content-accordion/content-accordion.js.map +1 -1
  12. package/dist/collection/components/content-navigation-block/content-navigation-block.js +1 -1
  13. package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
  14. package/dist/collection/components/content-overlay/content-overlay.css +6 -6
  15. package/dist/collection/components/content-overlay/content-overlay.js +8 -8
  16. package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
  17. package/dist/collection/elements/content-button/content-button.js +0 -1
  18. package/dist/collection/elements/content-button/content-button.js.map +1 -1
  19. package/dist/collection/elements/content-image/content-image.js +18 -15
  20. package/dist/collection/elements/content-image/content-image.js.map +1 -1
  21. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +12 -12
  22. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
  23. package/dist/collection/formatters/content-spacer/content-spacer.css +16 -3
  24. package/dist/collection/formatters/content-spacer/content-spacer.js +45 -4
  25. package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
  26. package/dist/collection/stories/ContentHeroBlock.stories.js +2 -2
  27. package/dist/collection/stories/ContentHeroBlock.stories.js.map +1 -1
  28. package/dist/collection/stories/FullPageExample.stories.js +11 -11
  29. package/dist/collection/stories/FullPageExample.stories.js.map +1 -1
  30. package/dist/components/content-accordion.js +2 -3
  31. package/dist/components/content-accordion.js.map +1 -1
  32. package/dist/components/content-button.js +1 -1
  33. package/dist/components/content-button.js.map +1 -1
  34. package/dist/components/content-carousel.js +1 -0
  35. package/dist/components/content-carousel.js.map +1 -1
  36. package/dist/components/content-grid-formatter2.js +11 -10
  37. package/dist/components/content-grid-formatter2.js.map +1 -1
  38. package/dist/components/content-hero-block.js +1 -0
  39. package/dist/components/content-hero-block.js.map +1 -1
  40. package/dist/components/content-image.js +19 -15
  41. package/dist/components/content-image.js.map +1 -1
  42. package/dist/components/content-line.js +1 -0
  43. package/dist/components/content-line.js.map +1 -1
  44. package/dist/components/content-navigation-block.js +2 -1
  45. package/dist/components/content-navigation-block.js.map +1 -1
  46. package/dist/components/content-overlay.js +8 -7
  47. package/dist/components/content-overlay.js.map +1 -1
  48. package/dist/components/content-spacer.js +8 -4
  49. package/dist/components/content-spacer.js.map +1 -1
  50. package/dist/components/content-split-block.js +1 -0
  51. package/dist/components/content-split-block.js.map +1 -1
  52. package/dist/components/content-tabs.js +1 -0
  53. package/dist/components/content-tabs.js.map +1 -1
  54. package/dist/components/content-text-block.js +5 -4
  55. package/dist/components/content-text-block.js.map +1 -1
  56. package/dist/components/content-tout-block.js +1 -0
  57. package/dist/components/content-tout-block.js.map +1 -1
  58. package/dist/components/content-video.js +1 -0
  59. package/dist/components/content-video.js.map +1 -1
  60. package/dist/content-blocks/content-blocks.esm.js +1 -1
  61. package/dist/content-blocks/content-blocks.esm.js.map +1 -1
  62. package/dist/content-blocks/p-24657e66.entry.js +10 -0
  63. package/dist/content-blocks/p-24657e66.entry.js.map +1 -0
  64. package/dist/content-blocks/{p-167a9155.entry.js → p-6a177aef.entry.js} +2 -2
  65. package/dist/content-blocks/{p-167a9155.entry.js.map → p-6a177aef.entry.js.map} +1 -1
  66. package/dist/esm/content-accordion_11.entry.js +40 -38
  67. package/dist/esm/content-accordion_11.entry.js.map +1 -1
  68. package/dist/esm/content-blocks.js +1 -1
  69. package/dist/esm/content-navigation-block.entry.js +1 -1
  70. package/dist/esm/content-navigation-block.entry.js.map +1 -1
  71. package/dist/esm/loader.js +1 -1
  72. package/dist/types/blocks/content-text-block/content-text-block.d.ts +1 -1
  73. package/dist/types/components/content-accordion/content-accordion.d.ts +0 -1
  74. package/dist/types/components/content-overlay/content-overlay.d.ts +2 -2
  75. package/dist/types/components.d.ts +30 -12
  76. package/dist/types/elements/content-button/content-button.d.ts +2 -2
  77. package/dist/types/elements/content-image/content-image.d.ts +1 -0
  78. package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +2 -2
  79. package/dist/types/formatters/content-spacer/content-spacer.d.ts +11 -2
  80. package/package.json +1 -1
  81. package/dist/content-blocks/p-4038cd42.entry.js +0 -10
  82. package/dist/content-blocks/p-4038cd42.entry.js.map +0 -1
@@ -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-position=left]{margin-left:0;margin-right:auto}content-spacer[horizontal-position=center]{margin-left:auto;margin-right:auto}content-spacer[horizontal-position=right]{margin-left:auto;margin-right:0}";
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]{display:flex;flex-direction:column}content-spacer[vertical=top]{justify-content:flex-start}content-spacer[vertical=center]{justify-content:center}content-spacer[vertical=bottom]{justify-content:flex-end}";
5
5
 
6
6
  const ContentSpacingWrapper = /*@__PURE__*/ proxyCustomElement(class ContentSpacingWrapper extends HTMLElement {
7
7
  constructor() {
@@ -12,7 +12,8 @@ const ContentSpacingWrapper = /*@__PURE__*/ proxyCustomElement(class ContentSpac
12
12
  this.maxWidth = '100';
13
13
  this.fullHeight = 'false';
14
14
  this.textAlign = 'default';
15
- this.horizontalPosition = 'default';
15
+ this.horizontal = 'default';
16
+ this.vertical = 'top';
16
17
  this.topOffset = '0';
17
18
  this.bottomOffset = '0';
18
19
  this.leftOffset = '0';
@@ -22,7 +23,8 @@ const ContentSpacingWrapper = /*@__PURE__*/ proxyCustomElement(class ContentSpac
22
23
  componentWillLoad() {
23
24
  WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => (this.fullHeight = newValue));
24
25
  WindowResizeService.registerProp(this.textAlign).subscribe(newValue => (this.textAlign = newValue));
25
- WindowResizeService.registerProp(this.horizontalPosition).subscribe(newValue => (this.horizontalPosition = newValue));
26
+ WindowResizeService.registerProp(this.horizontal).subscribe(newValue => (this.horizontal = newValue));
27
+ WindowResizeService.registerProp(this.vertical).subscribe(newValue => (this.vertical = newValue));
26
28
  WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {
27
29
  this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'max-width': isNaN(newValue) ? newValue : newValue + '%' });
28
30
  });
@@ -49,7 +51,8 @@ const ContentSpacingWrapper = /*@__PURE__*/ proxyCustomElement(class ContentSpac
49
51
  "maxWidth": [1, "max-width"],
50
52
  "fullHeight": [1537, "full-height"],
51
53
  "textAlign": [1537, "text-align"],
52
- "horizontalPosition": [1537, "horizontal-position"],
54
+ "horizontal": [1537],
55
+ "vertical": [1537],
53
56
  "topOffset": [1, "top-offset"],
54
57
  "bottomOffset": [1, "bottom-offset"],
55
58
  "leftOffset": [1, "left-offset"],
@@ -70,6 +73,7 @@ function defineCustomElement$1() {
70
73
  break;
71
74
  } });
72
75
  }
76
+ defineCustomElement$1();
73
77
 
74
78
  const ContentSpacer = ContentSpacingWrapper;
75
79
  const defineCustomElement = defineCustomElement$1;
@@ -1 +1 @@
1
- {"file":"content-spacer.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,kfAAkf;;MCa9f,qBAAqB;;;;;;wBAYK,KAAK;0BAWV,OAAO;yBAeE,SAAS;kCAeA,SAAS;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,kBAAkB,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,kBAAkB,GAAG,QAAuC,CAAC,CAAC,CAAC;QACrJ,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ;YAChE,IAAI,CAAC,WAAW,mCAAQ,IAAI,CAAC,WAAW,KAAE,WAAW,EAAE,KAAK,CAAC,QAAe,CAAC,GAAI,QAAmB,GAAG,QAAQ,GAAG,GAAG,GAAE,CAAC;SACzH,CAAC,CAAC;QACH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ;YACjE,IAAI,CAAC,WAAW,mCAAQ,IAAI,CAAC,WAAW,KAAE,aAAa,EAAE,KAAK,CAAC,QAAe,CAAC,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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-position=\"left\"] {\n margin-left: 0;\n margin-right: auto;\n }\n &[horizontal-position=\"center\"] {\n margin-left: auto;\n margin-right: auto;\n }\n &[horizontal-position=\"right\"] {\n margin-left: auto;\n margin-right: 0;\n }\n}","import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, 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 horizontalPosition: ContentLineTextAlignOptions = 'default';\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.horizontalPosition).subscribe(newValue => (this.horizontalPosition = newValue as ContentLineTextAlignOptions));\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 <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-spacer.js","mappings":";;;AAAA,MAAM,gBAAgB,GAAG,2rBAA2rB;;MCavsB,qBAAqB;;;;;;wBAYK,KAAK;0BAWV,OAAO;yBAeE,SAAS;0BAeR,SAAS;wBAcb,KAAK;yBAQL,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,CAAC,CAAC;QACrI,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,GAAG,QAAqC,CAAC,CAAC,CAAC;QAC/H,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ;YAChE,IAAI,CAAC,WAAW,mCAAQ,IAAI,CAAC,WAAW,KAAE,WAAW,EAAE,KAAK,CAAC,QAAe,CAAC,GAAI,QAAmB,GAAG,QAAQ,GAAG,GAAG,GAAE,CAAC;SACzH,CAAC,CAAC;QACH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC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CACR,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 &[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 justify-content: flex-start;\n }\n &[vertical=\"center\"] {\n justify-content: center;\n }\n &[vertical=\"bottom\"] {\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 * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: ContentVerticalAlignments = 'top';\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 <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -45,6 +45,7 @@ function defineCustomElement$1() {
45
45
  break;
46
46
  } });
47
47
  }
48
+ defineCustomElement$1();
48
49
 
49
50
  const ContentSplitBlock = ContentSplitBlock$1;
50
51
  const defineCustomElement = defineCustomElement$1;
@@ -1 +1 @@
1
- {"file":"content-split-block.js","mappings":";;;;AAAA,MAAM,oBAAoB,GAAG,wZAAwZ;;MCYxaA,mBAAiB;;;;uBASW,KAAK;uBAKlB,KAAK;;;;IAY/B,iBAAiB;QACf,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,OAAO,GAAG,QAAkB,CAAC,CAAC,CAAC;QAC1G,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,OAAO,EAAE,IAAI,CAAC,OAAO,IAClD,8BAAwB,IAAI,EAAC,WAAW,eAAW,MAAM,iBAAa,MAAM,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,IAChG,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,YAAM,IAAI,EAAC,SAAS,GAAQ,CACL,CACpB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentSplitBlock"],"sources":["src/blocks/content-split-block/content-split-block.scss?tag=content-split-block","src/blocks/content-split-block/content-split-block.tsx"],"sourcesContent":["content-split-block {\n display: block;\n \n &[reverse=\"true\"] {\n content-grid-formatter[type=\"flex\"] [slot=\"column1\"],\n content-grid-formatter[type=\"grid\"] [slot=\"column1\"] {\n order: 2;\n }\n\n content-grid-formatter[type=\"flex\"] [slot=\"column2\"],\n content-grid-formatter[type=\"grid\"] [slot=\"column2\"] {\n order: 1;\n }\n }\n}","import { Component, h, Host, Prop, State } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveBoolean, ResponsiveString } from '../../typings';\n/**\n * @slot column1 - This will be column 1.\n * @slot column2 - This will be column 2.\n */\n@Component({\n tag: 'content-split-block',\n styleUrl: 'content-split-block.scss',\n shadow: false,\n})\nexport class ContentSplitBlock {\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n reverse: ResponsiveBoolean | boolean = false;\n /**\n * @type Number\n * @responsive\n */\n @Prop() columns: string = '1|2';\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.reverse).subscribe(newValue => (this.reverse = newValue as string));\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host class={this.classString} reverse={this.reverse}>\n <content-grid-formatter type=\"none|flex\" flex-grow=\"true\" flex-shrink=\"true\" columns={this.columns}>\n <slot name=\"column1\"></slot>\n <slot name=\"column2\"></slot>\n </content-grid-formatter>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-split-block.js","mappings":";;;;AAAA,MAAM,oBAAoB,GAAG,wZAAwZ;;MCYxaA,mBAAiB;;;;uBASW,KAAK;uBAKlB,KAAK;;;;IAY/B,iBAAiB;QACf,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,KAAK,IAAI,CAAC,OAAO,GAAG,QAAkB,CAAC,CAAC,CAAC;QAC1G,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,OAAO,EAAE,IAAI,CAAC,OAAO,IAClD,8BAAwB,IAAI,EAAC,WAAW,eAAW,MAAM,iBAAa,MAAM,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,IAChG,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,YAAM,IAAI,EAAC,SAAS,GAAQ,CACL,CACpB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentSplitBlock"],"sources":["src/blocks/content-split-block/content-split-block.scss?tag=content-split-block","src/blocks/content-split-block/content-split-block.tsx"],"sourcesContent":["content-split-block {\n display: block;\n \n &[reverse=\"true\"] {\n content-grid-formatter[type=\"flex\"] [slot=\"column1\"],\n content-grid-formatter[type=\"grid\"] [slot=\"column1\"] {\n order: 2;\n }\n\n content-grid-formatter[type=\"flex\"] [slot=\"column2\"],\n content-grid-formatter[type=\"grid\"] [slot=\"column2\"] {\n order: 1;\n }\n }\n}","import { Component, h, Host, Prop, State } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveBoolean, ResponsiveString } from '../../typings';\n/**\n * @slot column1 - This will be column 1.\n * @slot column2 - This will be column 2.\n */\n@Component({\n tag: 'content-split-block',\n styleUrl: 'content-split-block.scss',\n shadow: false,\n})\nexport class ContentSplitBlock {\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n reverse: ResponsiveBoolean | boolean = false;\n /**\n * @type Number\n * @responsive\n */\n @Prop() columns: string = '1|2';\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.reverse).subscribe(newValue => (this.reverse = newValue as string));\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n\n render() {\n return (\n <Host class={this.classString} reverse={this.reverse}>\n <content-grid-formatter type=\"none|flex\" flex-grow=\"true\" flex-shrink=\"true\" columns={this.columns}>\n <slot name=\"column1\"></slot>\n <slot name=\"column2\"></slot>\n </content-grid-formatter>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -234,6 +234,7 @@ function defineCustomElement$1() {
234
234
  break;
235
235
  } });
236
236
  }
237
+ defineCustomElement$1();
237
238
 
238
239
  const ContentTabs = ContentTabs$1;
239
240
  const defineCustomElement = defineCustomElement$1;
@@ -1 +1 @@
1
- {"file":"content-tabs.js","mappings":";;;AAAA;;;;MAIqB,MAAM;IACzB,YAAY,cAA2B;QACrC,IAAI,OAAO,GAAG,cAAc,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,IAAI,CAAC;QACT,IAAI,MAAM,CAAC;QAEX,cAAc,EAAE,CAAC;QAEjB,SAAS,cAAc;YACrB,IAAI,GAAG,cAAc,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;YACvD,MAAM,GAA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MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;YAC1B,IAAI,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC;YAE1E,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YACzC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SACxC;KACF;;;ACjOH,MAAM,cAAc,GAAG,gSAAgS;;MCc1SA,aAAW;;;;;;;IActB,iBAAiB;QACf,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,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC1B;IACD,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,IAC3B,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentTabs"],"sources":["src/components/content-tabs/libraries/w3_tabs.ts","src/components/content-tabs/content-tabs.scss?tag=content-tabs","src/components/content-tabs/content-tabs.tsx"],"sourcesContent":["/*\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*/\nexport default class W3Tabs {\n constructor(stencilElement: HTMLElement) {\n var tablist = stencilElement.querySelectorAll('[role=\"tablist\"]')[0];\n var tabs;\n var panels;\n\n generateArrays();\n\n function generateArrays () {\n tabs = stencilElement.querySelectorAll('[role=\"tab\"]');\n panels = stencilElement.querySelectorAll('[role=\"tabpanel\"]');\n };\n\n // For easy reference\n var keys = {\n end: 35,\n home: 36,\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n delete: 46,\n enter: 13,\n space: 32\n };\n\n // Add or subtract depending on key pressed\n var direction = {\n 37: -1,\n 38: -1,\n 39: 1,\n 40: 1\n };\n\n // Bind listeners\n for (var i = 0; i < tabs.length; ++i) {\n addListeners(i);\n };\n\n function addListeners (index) {\n tabs[index].addEventListener('click', clickEventListener);\n tabs[index].addEventListener('keydown', keydownEventListener);\n tabs[index].addEventListener('keyup', keyupEventListener);\n\n // Build an array with all tabs (<button>s) in it\n tabs[index].index = index;\n };\n\n // When a tab is clicked, activateTab is fired to activate it\n function clickEventListener (event) {\n let tab = event.target.closest('button');\n event.preventDefault();\n activateTab(tab, false);\n };\n\n // Handle keydown on tabs\n function keydownEventListener (event) {\n var key = event.keyCode;\n\n switch (key) {\n case keys.end:\n event.preventDefault();\n // Activate last tab\n focusLastTab();\n break;\n case keys.home:\n event.preventDefault();\n // Activate first tab\n focusFirstTab();\n break;\n\n // Up and down are in keydown\n // because we need to prevent page scroll >:)\n case keys.up:\n case keys.down:\n determineOrientation(event);\n break;\n };\n };\n\n // Handle keyup on tabs\n function keyupEventListener (event) {\n var key = event.keyCode;\n\n switch (key) {\n case keys.left:\n case keys.right:\n determineOrientation(event);\n break;\n case keys.delete:\n determineDeletable(event);\n break;\n case keys.enter:\n case keys.space:\n event.preventDefault();\n activateTab(event.target);\n break;\n };\n };\n\n // When a tablist’s aria-orientation is set to vertical,\n // only up and down arrow should function.\n // In all other cases only left and right arrow function.\n function determineOrientation (event) {\n var key = event.keyCode;\n var vertical = tablist.getAttribute('aria-orientation') == 'vertical';\n var proceed = false;\n\n if (vertical) {\n if (key === keys.up || key === keys.down) {\n event.preventDefault();\n proceed = true;\n };\n }\n else {\n if (key === keys.left || key === keys.right) {\n proceed = true;\n };\n };\n\n if (proceed) {\n switchTabOnArrowPress(event);\n };\n };\n\n // Either focus the next, previous, first, or last tab\n // depending on key pressed\n function switchTabOnArrowPress (event) {\n var pressed = event.keyCode;\n\n if (direction[pressed]) {\n var target = event.target;\n if (target.index !== undefined) {\n if (tabs[target.index + direction[pressed]]) {\n tabs[target.index + direction[pressed]].focus();\n }\n else if (pressed === keys.left || pressed === keys.up) {\n focusLastTab();\n }\n else if (pressed === keys.right || pressed == keys.down) {\n focusFirstTab();\n };\n };\n };\n };\n\n // Activates any given tab panel\n function activateTab (tab, setFocus?) {\n setFocus = setFocus || true;\n // Deactivate all other tabs\n deactivateTabs();\n\n // Remove tabindex attribute\n tab.removeAttribute('tabindex');\n\n // Set the tab as selected\n tab.setAttribute('aria-selected', 'true');\n\n // Get the value of aria-controls (which is an ID)\n var controls = tab.getAttribute('aria-controls');\n\n // Remove hidden attribute from tab panel to make it visible\n document.getElementById(controls).removeAttribute('hidden');\n\n // Set focus when required\n if (setFocus) {\n tab.focus();\n };\n };\n\n // Deactivate all tabs and tab panels\n function deactivateTabs () {\n for (var t = 0; t < tabs.length; t++) {\n tabs[t].setAttribute('tabindex', '-1');\n tabs[t].setAttribute('aria-selected', 'false');\n };\n\n for (var p = 0; p < panels.length; p++) {\n panels[p].setAttribute('hidden', 'hidden');\n };\n };\n\n // Make a guess\n function focusFirstTab () {\n tabs[0].focus();\n };\n\n // Make a guess\n function focusLastTab () {\n tabs[tabs.length - 1].focus();\n };\n\n // Detect if a tab is deletable\n function determineDeletable (event) {\n var target = event.target;\n\n if (target.getAttribute('data-deletable') !== null) {\n // Delete target tab\n deleteTab(event);\n\n // Update arrays related to tabs widget\n generateArrays();\n\n // Activate the closest tab to the one that was just deleted\n if (target.index - 1 < 0) {\n activateTab(tabs[0]);\n }\n else {\n activateTab(tabs[target.index - 1]);\n };\n };\n };\n\n // Deletes a tab and its panel\n function deleteTab(event) {\n var target = event.target;\n var panel = document.getElementById(target.getAttribute('aria-controls'));\n\n target.parentElement.removeChild(target);\n panel.parentElement.removeChild(panel);\n };\n }\n};","content-tabs {\n display: block;\n button[role=\"tab\"] {\n padding: 0;\n border: none;\n font: inherit;\n color: inherit;\n background-color: inherit;\n cursor: pointer; \n border-bottom: 1px solid transparent;\n &[aria-selected=\"true\"] {\n border-bottom: 1px solid black;\n }\n }\n}\n","import { Component, h, Element, Host, Prop, State } from '@stencil/core';\nimport W3Tabs from './libraries/w3_tabs';\nimport { ResponsiveString } from '../../typings';\nimport { WindowResizeService } from '../../services/window-resize-service';\n\n/**\n * @slot content - This slot will usually serve specific markup to ensure tabs are accessible.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-tabs',\n styleUrl: 'content-tabs.scss',\n shadow: false,\n})\nexport class ContentTabs {\n @Element() private element: HTMLElement;\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n\n @State() classString: string;\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => {\n this.classString = newValue as string;\n });\n }\n\n componentDidLoad() {\n new W3Tabs(this.element);\n }\n render() {\n return (\n <Host class={this.classString}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-tabs.js","mappings":";;;AAAA;;;;MAIqB,MAAM;IACzB,YAAY,cAA2B;QACrC,IAAI,OAAO,GAAG,cAAc,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,IAAI,CAAC;QACT,IAAI,MAAM,CAAC;QAEX,cAAc,EAAE,CAAC;QAEjB,SAAS,cAAc;YACrB,IAAI,GAAG,cAAc,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;YACvD,MAAM,GAAG,cAAc,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;SAC/D;;QAGD,IAAI,IAAI,GAAG;YACT,GAAG,EAAE,EAAE;YACP,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,EAAE;YACR,EAAE,EAAE,EAAE;YACN,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;SACV,CAAC;;QAGF,IAAI,SAAS,GAAG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;;;IActB,iBAAiB;QACf,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,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC1B;IACD,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,IAC3B,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentTabs"],"sources":["src/components/content-tabs/libraries/w3_tabs.ts","src/components/content-tabs/content-tabs.scss?tag=content-tabs","src/components/content-tabs/content-tabs.tsx"],"sourcesContent":["/*\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*/\nexport default class W3Tabs {\n constructor(stencilElement: HTMLElement) {\n var tablist = stencilElement.querySelectorAll('[role=\"tablist\"]')[0];\n var tabs;\n var panels;\n\n generateArrays();\n\n function generateArrays () {\n tabs = stencilElement.querySelectorAll('[role=\"tab\"]');\n panels = stencilElement.querySelectorAll('[role=\"tabpanel\"]');\n };\n\n // For easy reference\n var keys = {\n end: 35,\n home: 36,\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n delete: 46,\n enter: 13,\n space: 32\n };\n\n // Add or subtract depending on key pressed\n var direction = {\n 37: -1,\n 38: -1,\n 39: 1,\n 40: 1\n };\n\n // Bind listeners\n for (var i = 0; i < tabs.length; ++i) {\n addListeners(i);\n };\n\n function addListeners (index) {\n tabs[index].addEventListener('click', clickEventListener);\n tabs[index].addEventListener('keydown', keydownEventListener);\n tabs[index].addEventListener('keyup', keyupEventListener);\n\n // Build an array with all tabs (<button>s) in it\n tabs[index].index = index;\n };\n\n // When a tab is clicked, activateTab is fired to activate it\n function clickEventListener (event) {\n let tab = event.target.closest('button');\n event.preventDefault();\n activateTab(tab, false);\n };\n\n // Handle keydown on tabs\n function keydownEventListener (event) {\n var key = event.keyCode;\n\n switch (key) {\n case keys.end:\n event.preventDefault();\n // Activate last tab\n focusLastTab();\n break;\n case keys.home:\n event.preventDefault();\n // Activate first tab\n focusFirstTab();\n break;\n\n // Up and down are in keydown\n // because we need to prevent page scroll >:)\n case keys.up:\n case keys.down:\n determineOrientation(event);\n break;\n };\n };\n\n // Handle keyup on tabs\n function keyupEventListener (event) {\n var key = event.keyCode;\n\n switch (key) {\n case keys.left:\n case keys.right:\n determineOrientation(event);\n break;\n case keys.delete:\n determineDeletable(event);\n break;\n case keys.enter:\n case keys.space:\n event.preventDefault();\n activateTab(event.target);\n break;\n };\n };\n\n // When a tablist’s aria-orientation is set to vertical,\n // only up and down arrow should function.\n // In all other cases only left and right arrow function.\n function determineOrientation (event) {\n var key = event.keyCode;\n var vertical = tablist.getAttribute('aria-orientation') == 'vertical';\n var proceed = false;\n\n if (vertical) {\n if (key === keys.up || key === keys.down) {\n event.preventDefault();\n proceed = true;\n };\n }\n else {\n if (key === keys.left || key === keys.right) {\n proceed = true;\n };\n };\n\n if (proceed) {\n switchTabOnArrowPress(event);\n };\n };\n\n // Either focus the next, previous, first, or last tab\n // depending on key pressed\n function switchTabOnArrowPress (event) {\n var pressed = event.keyCode;\n\n if (direction[pressed]) {\n var target = event.target;\n if (target.index !== undefined) {\n if (tabs[target.index + direction[pressed]]) {\n tabs[target.index + direction[pressed]].focus();\n }\n else if (pressed === keys.left || pressed === keys.up) {\n focusLastTab();\n }\n else if (pressed === keys.right || pressed == keys.down) {\n focusFirstTab();\n };\n };\n };\n };\n\n // Activates any given tab panel\n function activateTab (tab, setFocus?) {\n setFocus = setFocus || true;\n // Deactivate all other tabs\n deactivateTabs();\n\n // Remove tabindex attribute\n tab.removeAttribute('tabindex');\n\n // Set the tab as selected\n tab.setAttribute('aria-selected', 'true');\n\n // Get the value of aria-controls (which is an ID)\n var controls = tab.getAttribute('aria-controls');\n\n // Remove hidden attribute from tab panel to make it visible\n document.getElementById(controls).removeAttribute('hidden');\n\n // Set focus when required\n if (setFocus) {\n tab.focus();\n };\n };\n\n // Deactivate all tabs and tab panels\n function deactivateTabs () {\n for (var t = 0; t < tabs.length; t++) {\n tabs[t].setAttribute('tabindex', '-1');\n tabs[t].setAttribute('aria-selected', 'false');\n };\n\n for (var p = 0; p < panels.length; p++) {\n panels[p].setAttribute('hidden', 'hidden');\n };\n };\n\n // Make a guess\n function focusFirstTab () {\n tabs[0].focus();\n };\n\n // Make a guess\n function focusLastTab () {\n tabs[tabs.length - 1].focus();\n };\n\n // Detect if a tab is deletable\n function determineDeletable (event) {\n var target = event.target;\n\n if (target.getAttribute('data-deletable') !== null) {\n // Delete target tab\n deleteTab(event);\n\n // Update arrays related to tabs widget\n generateArrays();\n\n // Activate the closest tab to the one that was just deleted\n if (target.index - 1 < 0) {\n activateTab(tabs[0]);\n }\n else {\n activateTab(tabs[target.index - 1]);\n };\n };\n };\n\n // Deletes a tab and its panel\n function deleteTab(event) {\n var target = event.target;\n var panel = document.getElementById(target.getAttribute('aria-controls'));\n\n target.parentElement.removeChild(target);\n panel.parentElement.removeChild(panel);\n };\n }\n};","content-tabs {\n display: block;\n button[role=\"tab\"] {\n padding: 0;\n border: none;\n font: inherit;\n color: inherit;\n background-color: inherit;\n cursor: pointer; \n border-bottom: 1px solid transparent;\n &[aria-selected=\"true\"] {\n border-bottom: 1px solid black;\n }\n }\n}\n","import { Component, h, Element, Host, Prop, State } from '@stencil/core';\nimport W3Tabs from './libraries/w3_tabs';\nimport { ResponsiveString } from '../../typings';\nimport { WindowResizeService } from '../../services/window-resize-service';\n\n/**\n * @slot content - This slot will usually serve specific markup to ensure tabs are accessible.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-tabs',\n styleUrl: 'content-tabs.scss',\n shadow: false,\n})\nexport class ContentTabs {\n @Element() private element: HTMLElement;\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n\n @State() classString: string;\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => {\n this.classString = newValue as string;\n });\n }\n\n componentDidLoad() {\n new W3Tabs(this.element);\n }\n render() {\n return (\n <Host class={this.classString}>\n <slot name=\"content\"></slot>\n <slot></slot>\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 contentTextBlockCss = "*{box-sizing:border-box}content-text-block{display:block;width:100%;text-align:initial}content-text-block[full-height=true]{height:100%}content-text-block>*[slot=footer]{margin-top:auto;margin-bottom:0;width:100%;padding-top:1rem;height:auto}content-text-block[vertical-alignment=bottom]>[slot=footer]{position:static;height:auto}content-text-block[vertical-alignment]{display:flex;flex-direction:column}content-text-block[vertical-alignment=top]{justify-content:flex-start}content-text-block[vertical-alignment=center]{justify-content:center}content-text-block[vertical-alignment=center][footer=true] .content-text-block__content{margin-top:auto;margin-bottom:0}content-text-block[vertical-alignment=bottom]{justify-content:flex-end}content-text-block[vertical-alignment=bottom][footer=true] .content-text-block__content{margin-top:auto;margin-bottom:0}content-text-block[vertical-alignment=bottom][footer=true]>[slot=footer]{margin-top:0}content-text-block[text-align=left]{text-align:left}content-text-block[text-align=center]{text-align:center}content-text-block[text-align=right]{text-align:right}";
4
+ const contentTextBlockCss = "*{box-sizing:border-box}content-text-block{display:block;width:100%;text-align:initial}content-text-block[full-height=true]{height:100%}content-text-block>*[slot=footer]{margin-top:auto;margin-bottom:0;width:100%;padding-top:1rem;height:auto}content-text-block[vertical=bottom]>[slot=footer]{position:static;height:auto}content-text-block[vertical]{display:flex;flex-direction:column}content-text-block[vertical=top]{justify-content:flex-start}content-text-block[vertical=center]{justify-content:center}content-text-block[vertical=center][footer=true] .content-text-block__content{margin-top:auto;margin-bottom:0}content-text-block[vertical=bottom]{justify-content:flex-end}content-text-block[vertical=bottom][footer=true] .content-text-block__content{margin-top:auto;margin-bottom:0}content-text-block[vertical=bottom][footer=true]>[slot=footer]{margin-top:0}content-text-block[text-align=left]{text-align:left}content-text-block[text-align=center]{text-align:center}content-text-block[text-align=right]{text-align:right}";
5
5
 
6
6
  const ContentTextBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentTextBlock extends HTMLElement {
7
7
  constructor() {
@@ -10,7 +10,7 @@ const ContentTextBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentTextBlo
10
10
  this.classes = undefined;
11
11
  this.classString = undefined;
12
12
  this.minHeight = undefined;
13
- this.verticalAlignment = 'top';
13
+ this.vertical = 'top';
14
14
  this.fullHeight = 'false';
15
15
  this.textAlign = 'default';
16
16
  this.inlineStyle = {};
@@ -23,7 +23,7 @@ const ContentTextBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentTextBlo
23
23
  this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'min-height': isNaN(newValue) ? newValue : newValue + 'px' });
24
24
  });
25
25
  WindowResizeService.registerProp(this.textAlign).subscribe(newValue => this.hostElement.setAttribute('text-align', newValue));
26
- WindowResizeService.registerProp(this.verticalAlignment).subscribe(newValue => this.hostElement.setAttribute('vertical-alignment', newValue));
26
+ WindowResizeService.registerProp(this.vertical).subscribe(newValue => this.hostElement.setAttribute('vertical', newValue));
27
27
  WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => {
28
28
  this.hostElement.setAttribute('full-height', newValue);
29
29
  });
@@ -37,7 +37,7 @@ const ContentTextBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentTextBlo
37
37
  }, [4, "content-text-block", {
38
38
  "classes": [1],
39
39
  "minHeight": [1537, "min-height"],
40
- "verticalAlignment": [1537, "vertical-alignment"],
40
+ "vertical": [1537],
41
41
  "fullHeight": [1537, "full-height"],
42
42
  "textAlign": [1537, "text-align"],
43
43
  "classString": [32],
@@ -56,6 +56,7 @@ function defineCustomElement$1() {
56
56
  break;
57
57
  } });
58
58
  }
59
+ defineCustomElement$1();
59
60
 
60
61
  const ContentTextBlock = ContentTextBlock$1;
61
62
  const defineCustomElement = defineCustomElement$1;
@@ -1 +1 @@
1
- {"file":"content-text-block.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,glCAAglC;;MCgB/lCA,kBAAgB;;;;;;;iCAgCoB,KAAK;0BAUrB,OAAO;yBAeG,SAAS;2BAEC,EAAE;;IACrD,iBAAiB;QACf,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE;YACvD,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;SACjD;QACD,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ;YACjE,IAAI,CAAC,WAAW,mCAAQ,IAAI,CAAC,WAAW,KAAE,YAAY,EAAE,KAAK,CAAC,QAAe,CAAC,GAAI,QAAmB,GAAG,QAAQ,GAAG,IAAI,GAAE,CAAC;SAC3H,CAAC,CAAC;QACH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,YAAY,EAAE,QAAuC,CAAC,CAAC,CAAC;QAC7J,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,oBAAoB,EAAE,QAAqC,CAAC,CAAC,CAAC;QAC3K,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ;YAClE,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,aAAa,EAAE,QAAkB,CAAC,CAAC;SAClE,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;IACD,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,IACpD,WAAK,KAAK,EAAC,6BAA6B,IACtC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,EACN,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACtB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentTextBlock"],"sources":["src/blocks/content-text-block/content-text-block.scss?tag=content-text-block","src/blocks/content-text-block/content-text-block.tsx"],"sourcesContent":["content-text-block {\n display: block;\n width: 100%;\n // height: 100%; // for content-block-tout mediaContent button positioning\n text-align: initial;\n // content-hero-block &,\n // content-grid-formatter & {\n // height: auto;\n // &[vertical-alignment=\"bottom\"],\n // &[vertical-alignment=\"center\"] {\n // height: 100%;\n // }\n // }\n \n &[full-height=\"true\"] {\n height: 100%;\n }\n > *[slot=\"footer\"] {\n margin-top: auto;\n margin-bottom: 0;\n width: 100%;\n padding-top: 1rem;\n height: auto;\n // @media #{$tablet-landscape-up} {\n // margin-top: auto;\n // margin-bottom: 0;\n // width: 100%;\n // }\n }\n &[vertical-alignment=\"bottom\"] > [slot=\"footer\"] {\n position: static;\n height: auto;\n }\n &[vertical-alignment] {\n display: flex;\n flex-direction: column;\n }\n\n &[vertical-alignment=\"top\"] {\n justify-content: flex-start;\n }\n &[vertical-alignment=\"center\"] {\n justify-content: center;\n &[footer=\"true\"] {\n .content-text-block__content {\n margin-top: auto;\n margin-bottom: 0;\n }\n }\n }\n &[vertical-alignment=\"bottom\"] {\n justify-content: flex-end;\n &[footer=\"true\"] {\n .content-text-block__content {\n margin-top: auto;\n margin-bottom: 0;\n }\n > [slot=\"footer\"] {\n margin-top: 0;\n }\n }\n }\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}","import { Component, h, Host, Element, State } from '@stencil/core';\nimport { HTMLStencilElement, Prop } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentVerticalAlignments, ResponsiveString, ContentLineTextAlignOptions } from '../../typings';\nimport { objectToCssString } from '../../utils/utils';\n\n/**\n * @slot content - This slot will usually serve a text block.\n * @slot footer - This slot is placed below the content slot\n * @slot - Default slot, same as content slot\n */\n@Component({\n tag: 'content-text-block',\n styleUrl: 'content-text-block.scss',\n shadow: false,\n})\nexport class ContentTextBlock {\n /**\n * This is a pipe separated string representing the style class.\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n\n /**\n * This is a pipe separated string representing the minimum height. Units without values default to pixels.\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n minHeight: ResponsiveString;\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 * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n verticalAlignment: ContentVerticalAlignments = 'top';\n\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fullHeight: ResponsiveString = '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 mutable: true,\n reflect: true,\n })\n textAlign: ContentLineTextAlignOptions = 'default';\n @Element() hostElement: HTMLStencilElement;\n @State() inlineStyle?: { [key: string]: string } = {};\n componentWillLoad() {\n if (!!this.hostElement.querySelector('[slot=\"footer\"]')) {\n this.hostElement.setAttribute('footer', 'true');\n }\n WindowResizeService.registerProp(this.minHeight).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'min-height': isNaN(newValue as any) ? (newValue as string) : newValue + 'px' };\n });\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => this.hostElement.setAttribute('text-align', newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.verticalAlignment).subscribe(newValue => this.hostElement.setAttribute('vertical-alignment', newValue as ContentVerticalAlignments));\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => {\n this.hostElement.setAttribute('full-height', newValue as string);\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <div class=\"content-text-block__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n <slot name=\"footer\"></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-text-block.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,ggCAAggC;;MCgB/gCA,kBAAgB;;;;;;;wBAgCW,KAAK;0BAUZ,OAAO;yBAeG,SAAS;2BAEC,EAAE;;IACrD,iBAAiB;QACf,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE;YACvD,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;SACjD;QACD,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ;YACjE,IAAI,CAAC,WAAW,mCAAQ,IAAI,CAAC,WAAW,KAAE,YAAY,EAAE,KAAK,CAAC,QAAe,CAAC,GAAI,QAAmB,GAAG,QAAQ,GAAG,IAAI,GAAE,CAAC;SAC3H,CAAC,CAAC;QACH,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,YAAY,EAAE,QAAuC,CAAC,CAAC,CAAC;QAC7J,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,EAAE,QAAqC,CAAC,CAAC,CAAC;QACxJ,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,QAAQ;YAClE,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,aAAa,EAAE,QAAkB,CAAC,CAAC;SAClE,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;IACD,MAAM;QACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,IACpD,WAAK,KAAK,EAAC,6BAA6B,IACtC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACT,EACN,YAAM,IAAI,EAAC,QAAQ,GAAQ,CACtB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentTextBlock"],"sources":["src/blocks/content-text-block/content-text-block.scss?tag=content-text-block","src/blocks/content-text-block/content-text-block.tsx"],"sourcesContent":["content-text-block {\n display: block;\n width: 100%;\n // height: 100%; // for content-block-tout mediaContent button positioning\n text-align: initial;\n // content-hero-block &,\n // content-grid-formatter & {\n // height: auto;\n // &[vertical=\"bottom\"],\n // &[vertical=\"center\"] {\n // height: 100%;\n // }\n // }\n \n &[full-height=\"true\"] {\n height: 100%;\n }\n > *[slot=\"footer\"] {\n margin-top: auto;\n margin-bottom: 0;\n width: 100%;\n padding-top: 1rem;\n height: auto;\n // @media #{$tablet-landscape-up} {\n // margin-top: auto;\n // margin-bottom: 0;\n // width: 100%;\n // }\n }\n &[vertical=\"bottom\"] > [slot=\"footer\"] {\n position: static;\n height: auto;\n }\n &[vertical] {\n display: flex;\n flex-direction: column;\n }\n\n &[vertical=\"top\"] {\n justify-content: flex-start;\n }\n &[vertical=\"center\"] {\n justify-content: center;\n &[footer=\"true\"] {\n .content-text-block__content {\n margin-top: auto;\n margin-bottom: 0;\n }\n }\n }\n &[vertical=\"bottom\"] {\n justify-content: flex-end;\n &[footer=\"true\"] {\n .content-text-block__content {\n margin-top: auto;\n margin-bottom: 0;\n }\n > [slot=\"footer\"] {\n margin-top: 0;\n }\n }\n }\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}","import { Component, h, Host, Element, State } from '@stencil/core';\nimport { HTMLStencilElement, Prop } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentVerticalAlignments, ResponsiveString, ContentLineTextAlignOptions } from '../../typings';\nimport { objectToCssString } from '../../utils/utils';\n\n/**\n * @slot content - This slot will usually serve a text block.\n * @slot footer - This slot is placed below the content slot\n * @slot - Default slot, same as content slot\n */\n@Component({\n tag: 'content-text-block',\n styleUrl: 'content-text-block.scss',\n shadow: false,\n})\nexport class ContentTextBlock {\n /**\n * This is a pipe separated string representing the style class.\n * @type String\n * @responsive\n */\n @Prop() classes: ResponsiveString;\n @State() classString;\n\n /**\n * This is a pipe separated string representing the minimum height. Units without values default to pixels.\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n minHeight: ResponsiveString;\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 * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n vertical: ContentVerticalAlignments = 'top';\n\n /**\n * @type Boolean\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fullHeight: ResponsiveString = '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 mutable: true,\n reflect: true,\n })\n textAlign: ContentLineTextAlignOptions = 'default';\n @Element() hostElement: HTMLStencilElement;\n @State() inlineStyle?: { [key: string]: string } = {};\n componentWillLoad() {\n if (!!this.hostElement.querySelector('[slot=\"footer\"]')) {\n this.hostElement.setAttribute('footer', 'true');\n }\n WindowResizeService.registerProp(this.minHeight).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'min-height': isNaN(newValue as any) ? (newValue as string) : newValue + 'px' };\n });\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => this.hostElement.setAttribute('text-align', newValue as ContentLineTextAlignOptions));\n WindowResizeService.registerProp(this.vertical).subscribe(newValue => this.hostElement.setAttribute('vertical', newValue as ContentVerticalAlignments));\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => {\n this.hostElement.setAttribute('full-height', newValue as string);\n });\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue as string));\n }\n render() {\n return (\n <Host class={this.classString} style={this.inlineStyle}>\n <div class=\"content-text-block__content\">\n <slot name=\"content\"></slot>\n <slot></slot>\n </div>\n <slot name=\"footer\"></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -41,6 +41,7 @@ function defineCustomElement$1() {
41
41
  break;
42
42
  } });
43
43
  }
44
+ defineCustomElement$1();
44
45
 
45
46
  const ContentToutBlock = ContentToutBlock$1;
46
47
  const defineCustomElement = defineCustomElement$1;
@@ -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,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}
@@ -130,6 +130,7 @@ function defineCustomElement$1() {
130
130
  break;
131
131
  } });
132
132
  }
133
+ defineCustomElement$1();
133
134
 
134
135
  const ContentVideo = ContentVideo$1;
135
136
  const defineCustomElement = defineCustomElement$1;
@@ -1 +1 @@
1
- {"file":"content-video.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,in9CAAin9C;;MCmB5n9CA,cAAY;;;;sBASiB,SAAS;wBAKrB,KAAK;mBAKX,EAAE;qBAIA,EAAE;sBAID,CAAC;oBAIH,WAAW;mCAII,MAAM;;;wBAchB,IAAI;uBAIN,UAAU;4BAUH,OAAO;wBACX,KAAK;yBACJ,KAAK;wBACN,KAAK;;IAElC,mBAAmB;QACjB,IAAI,WAAW,GAAG,EAAE,CAAC;QACrB,WAAW,GAAG;YACZ,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,MAAM;YACnD,KAAK,EAAE,e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vB,CACP,EACA,cAAc,KACb,cAAQ,KAAK,EAAC,qBAAqB,gBAAa,IAAI,CAAC,mBAAmB,EAAE,OAAO,EAAE,EAAE,IAAI,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,IAC9G,YAAM,IAAI,EAAC,YAAY,GAAQ,CACxB,CACV,EACD,WAAK,KAAK,EAAC,wBAAwB,IAChC,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,MAChC,aACE,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,EAC7C,KAAK,EAAC,kCAAkC,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,WAAW,EAAC,WAAW,gBACX,IAAI,CAAC,mBAAmB,EAAE,IAEtC,YAAM,IAAI,EAAC,eAAe,GAAQ,EAClC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACP,CACT,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentVideo"],"sources":["src/elements/content-video/content-video.scss?tag=content-video","src/elements/content-video/content-video.tsx"],"sourcesContent":["@import \"'~video.js/dist/video-js.min.css\";\ncontent-video {\n display: block;\n width: 100%;\n position: relative;\n // &.hydrated {\n // height: 100%;\n // &.content-video--fit-container {\n // .video-js.vjs-fluid {\n // height: 100%;\n // padding: 0; // remove padding aspect ratio hack\n // }\n // }\n // }\n\n height: 100%;\n\n &.content-video--fit-container {\n .video-js.vjs-fluid {\n height: 100%;\n padding: 0; // remove padding aspect ratio hack\n }\n }\n \n &[fit-container='true'] {\n height: 100%;\n }\n\n .content-video__content {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .content-video__poster {\n position: relative;\n }\n .content-video__play {\n cursor: pointer;\n appearance: none;\n border: none;\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n\n &:before {\n content: '\\25BA';\n font-size: 100px;\n }\n }\n\n .vjs-content-block-theme {\n &.video-js {\n width: 100%;\n height: 100%;\n\n video.vjs-tech {\n position: static;\n }\n }\n &.vjs-ended,\n &.vjs-waiting {\n .vjs-loading-spinner {\n display: none;\n }\n }\n &:hover,\n &:focus {\n &:not(:focus-visible) {\n // background: transparent;\n }\n .vjs-big-play-button {\n background-color: transparent;\n }\n }\n .vjs-big-play-button {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: none;\n background: transparent;\n .vjs-icon-placeholder {\n display: block;\n width: 100%;\n height: 100%;\n &:before {\n display: none;\n }\n }\n }\n }\n\n .vjs-poster {\n display: none;\n }\n}\n","import { Component, h, Host } from '@stencil/core';\nimport { Element, HTMLStencilElement, Prop, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { getCurrentValue, getHydratedClassString } from '../../utils/utils';\nexport type SupportedVideoMethods = 'html5' | 'youtube';\n\n/**\n * @slot poster - Poster shown before video is played.\n * @slot playButton - Play button contents.\n * @slot no-js-message - Contents of no JS message.\n * @slot content - Adjacent to no-js message for video. Usually not needed.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-video',\n styleUrls: ['content-video.scss'],\n shadow: false,\n})\nexport class ContentVideo {\n public player: any;\n videoElement!: HTMLVideoElement;\n @Element() hostElement: HTMLStencilElement;\n /**\n * @type Select\n * @options youtube\n * @options html5\n */\n @Prop() method: SupportedVideoMethods = 'youtube';\n /**\n * If you're using this inside a content-overlay for example, you may want the video to play immediately on launch.\n * @type Boolean\n */\n @Prop() autoplay: boolean = false;\n /**\n * Supports YouTube and self hosted URLs.\n * @type String\n */\n @Prop() src: string = '';\n /**\n * @type Number\n */\n @Prop() width: number = 16;\n /**\n * @type Number\n */\n @Prop() height: number = 9;\n /**\n * @type String\n */\n @Prop() type: string = 'video/mp4';\n /**\n * @type String\n */\n @Prop() playButtonAriaLabel: string = 'Play';\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n /**\n * @type Boolean\n */\n @Prop() controls: boolean = true;\n /**\n * @type String\n */\n @Prop() preload: string = 'metadata';\n /**\n * Fit the container this video is placed in. When the video is used in an overlay or another place where the video will takeover the existing height, it is recommended to enable this option.\n * @responsive\n * @type String\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fitContainer: ResponsiveString = 'false';\n @State() isLoaded: boolean = false;\n @State() hasPoster: boolean = false;\n @State() isPlayed: boolean = false;\n\n computedVideoConfig() {\n let videoConfig = {};\n videoConfig = {\n fill: getCurrentValue(this.fitContainer) === 'true',\n fluid: getCurrentValue(this.fitContainer) === 'false',\n autoplay: this.autoplay === true ? 'muted' : false,\n techOrder: ['youtube'],\n src: this.src,\n sources: [\n {\n type: 'video/youtube',\n src: this.src,\n },\n ],\n youtube: {\n showinfo: 0,\n rel: 0,\n modestbranding: 1,\n },\n };\n return videoConfig;\n }\n\n initVideo() {\n this.isLoaded = true;\n }\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));\n }\n\n componentDidLoad() {\n let self = this;\n let options = {\n root: null,\n rootMargin: '0px',\n threshold: 0.1,\n };\n\n let observer = new IntersectionObserver(entries => {\n let videojs;\n entries.forEach(async entry => {\n if (entry.isIntersecting) {\n if (!videojs) {\n videojs = await import('video.js');\n await import('videojs-youtube/dist/Youtube.js');\n }\n this.hasPoster = !!this.hostElement.querySelector('[slot=\"poster\"]');\n if (this.videoElement && !this.player) {\n this.player = videojs.default(this.videoElement, this.computedVideoConfig(), function onPlayerReady() {\n self.initVideo();\n if (self.hasPoster || self.autoplay) {\n self.isPlayed = true;\n setTimeout(() => this.play(), 1);\n }\n });\n }\n }\n });\n }, options);\n observer.observe(this.hostElement);\n }\n\n onClickHandler(event: MouseEvent) {\n event.preventDefault();\n if (!this.isLoaded) {\n return false;\n }\n this.initVideo();\n this.isPlayed = true;\n this.player.play();\n if (this.method === 'html5') {\n this.videoElement.play();\n }\n }\n\n render() {\n let showPlayButton = !this.autoplay && ((this.hasPoster && !this.isPlayed) || !this.isPlayed);\n return (\n <Host class={this.classString}>\n {this.hasPoster && !this.isLoaded && (\n <div class=\"content-video__poster\">\n <slot name=\"poster\"></slot>\n </div>\n )}\n {showPlayButton && (\n <button class=\"content-video__play\" aria-label={this.playButtonAriaLabel} onClick={ev => this.onClickHandler(ev)}>\n <slot name=\"playButton\"></slot>\n </button>\n )}\n <div class=\"content-video__content\">\n {(!this.hasPoster || this.isLoaded) && (\n <video\n ref={element => (this.videoElement = element)}\n class=\"video-js vjs-content-block-theme\"\n controls={this.controls}\n preload={this.preload}\n width={this.width}\n height={this.height}\n crossorigin=\"anonymous\"\n data-setup={this.computedVideoConfig()}\n >\n <slot name=\"no-js-message\"></slot>\n <slot name=\"content\"></slot>\n <slot></slot>\n </video>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"content-video.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,in9CAAin9C;;MCmB5n9CA,cAAY;;;;sBASiB,SAAS;wBAKrB,KAAK;mBAKX,EAAE;qBAIA,EAAE;sBAID,CAAC;oBAIH,WAAW;mCAII,MAAM;;;wBAchB,IAAI;uBAIN,UAAU;4BAUH,OAAO;wBACX,KAAK;yBACJ,KAAK;wBACN,KAAK;;IAElC,mBAAmB;QACjB,IAAI,WAAW,GAAG,EAAE,CAAC;QACrB,WAAW,GAAG;YACZ,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,MAAM;YACnD,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,OAAO;YACrD,QAAQ,EAAE,IAAI,CAAC,QAA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AE,OAAO,EAAE,EAAE,IAAI,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,IAC9G,YAAM,IAAI,EAAC,YAAY,GAAQ,CACxB,CACV,EACD,WAAK,KAAK,EAAC,wBAAwB,IAChC,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,MAChC,aACE,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,EAC7C,KAAK,EAAC,kCAAkC,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,WAAW,EAAC,WAAW,gBACX,IAAI,CAAC,mBAAmB,EAAE,IAEtC,YAAM,IAAI,EAAC,eAAe,GAAQ,EAClC,YAAM,IAAI,EAAC,SAAS,GAAQ,EAC5B,eAAa,CACP,CACT,CACG,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["ContentVideo"],"sources":["src/elements/content-video/content-video.scss?tag=content-video","src/elements/content-video/content-video.tsx"],"sourcesContent":["@import \"'~video.js/dist/video-js.min.css\";\ncontent-video {\n display: block;\n width: 100%;\n position: relative;\n // &.hydrated {\n // height: 100%;\n // &.content-video--fit-container {\n // .video-js.vjs-fluid {\n // height: 100%;\n // padding: 0; // remove padding aspect ratio hack\n // }\n // }\n // }\n\n height: 100%;\n\n &.content-video--fit-container {\n .video-js.vjs-fluid {\n height: 100%;\n padding: 0; // remove padding aspect ratio hack\n }\n }\n \n &[fit-container='true'] {\n height: 100%;\n }\n\n .content-video__content {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .content-video__poster {\n position: relative;\n }\n .content-video__play {\n cursor: pointer;\n appearance: none;\n border: none;\n background: transparent;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1;\n\n &:before {\n content: '\\25BA';\n font-size: 100px;\n }\n }\n\n .vjs-content-block-theme {\n &.video-js {\n width: 100%;\n height: 100%;\n\n video.vjs-tech {\n position: static;\n }\n }\n &.vjs-ended,\n &.vjs-waiting {\n .vjs-loading-spinner {\n display: none;\n }\n }\n &:hover,\n &:focus {\n &:not(:focus-visible) {\n // background: transparent;\n }\n .vjs-big-play-button {\n background-color: transparent;\n }\n }\n .vjs-big-play-button {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: none;\n background: transparent;\n .vjs-icon-placeholder {\n display: block;\n width: 100%;\n height: 100%;\n &:before {\n display: none;\n }\n }\n }\n }\n\n .vjs-poster {\n display: none;\n }\n}\n","import { Component, h, Host } from '@stencil/core';\nimport { Element, HTMLStencilElement, Prop, State } from '@stencil/core/internal';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ResponsiveString } from '../../typings';\nimport { getCurrentValue, getHydratedClassString } from '../../utils/utils';\nexport type SupportedVideoMethods = 'html5' | 'youtube';\n\n/**\n * @slot poster - Poster shown before video is played.\n * @slot playButton - Play button contents.\n * @slot no-js-message - Contents of no JS message.\n * @slot content - Adjacent to no-js message for video. Usually not needed.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-video',\n styleUrls: ['content-video.scss'],\n shadow: false,\n})\nexport class ContentVideo {\n public player: any;\n videoElement!: HTMLVideoElement;\n @Element() hostElement: HTMLStencilElement;\n /**\n * @type Select\n * @options youtube\n * @options html5\n */\n @Prop() method: SupportedVideoMethods = 'youtube';\n /**\n * If you're using this inside a content-overlay for example, you may want the video to play immediately on launch.\n * @type Boolean\n */\n @Prop() autoplay: boolean = false;\n /**\n * Supports YouTube and self hosted URLs.\n * @type String\n */\n @Prop() src: string = '';\n /**\n * @type Number\n */\n @Prop() width: number = 16;\n /**\n * @type Number\n */\n @Prop() height: number = 9;\n /**\n * @type String\n */\n @Prop() type: string = 'video/mp4';\n /**\n * @type String\n */\n @Prop() playButtonAriaLabel: string = 'Play';\n /**\n * @type String\n * @responsive\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n classes: ResponsiveString;\n @State() classString;\n /**\n * @type Boolean\n */\n @Prop() controls: boolean = true;\n /**\n * @type String\n */\n @Prop() preload: string = 'metadata';\n /**\n * Fit the container this video is placed in. When the video is used in an overlay or another place where the video will takeover the existing height, it is recommended to enable this option.\n * @responsive\n * @type String\n */\n @Prop({\n mutable: true,\n reflect: true,\n })\n fitContainer: ResponsiveString = 'false';\n @State() isLoaded: boolean = false;\n @State() hasPoster: boolean = false;\n @State() isPlayed: boolean = false;\n\n computedVideoConfig() {\n let videoConfig = {};\n videoConfig = {\n fill: getCurrentValue(this.fitContainer) === 'true',\n fluid: getCurrentValue(this.fitContainer) === 'false',\n autoplay: this.autoplay === true ? 'muted' : false,\n techOrder: ['youtube'],\n src: this.src,\n sources: [\n {\n type: 'video/youtube',\n src: this.src,\n },\n ],\n youtube: {\n showinfo: 0,\n rel: 0,\n modestbranding: 1,\n },\n };\n return videoConfig;\n }\n\n initVideo() {\n this.isLoaded = true;\n }\n\n componentWillLoad() {\n WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));\n }\n\n componentDidLoad() {\n let self = this;\n let options = {\n root: null,\n rootMargin: '0px',\n threshold: 0.1,\n };\n\n let observer = new IntersectionObserver(entries => {\n let videojs;\n entries.forEach(async entry => {\n if (entry.isIntersecting) {\n if (!videojs) {\n videojs = await import('video.js');\n await import('videojs-youtube/dist/Youtube.js');\n }\n this.hasPoster = !!this.hostElement.querySelector('[slot=\"poster\"]');\n if (this.videoElement && !this.player) {\n this.player = videojs.default(this.videoElement, this.computedVideoConfig(), function onPlayerReady() {\n self.initVideo();\n if (self.hasPoster || self.autoplay) {\n self.isPlayed = true;\n setTimeout(() => this.play(), 1);\n }\n });\n }\n }\n });\n }, options);\n observer.observe(this.hostElement);\n }\n\n onClickHandler(event: MouseEvent) {\n event.preventDefault();\n if (!this.isLoaded) {\n return false;\n }\n this.initVideo();\n this.isPlayed = true;\n this.player.play();\n if (this.method === 'html5') {\n this.videoElement.play();\n }\n }\n\n render() {\n let showPlayButton = !this.autoplay && ((this.hasPoster && !this.isPlayed) || !this.isPlayed);\n return (\n <Host class={this.classString}>\n {this.hasPoster && !this.isLoaded && (\n <div class=\"content-video__poster\">\n <slot name=\"poster\"></slot>\n </div>\n )}\n {showPlayButton && (\n <button class=\"content-video__play\" aria-label={this.playButtonAriaLabel} onClick={ev => this.onClickHandler(ev)}>\n <slot name=\"playButton\"></slot>\n </button>\n )}\n <div class=\"content-video__content\">\n {(!this.hasPoster || this.isLoaded) && (\n <video\n ref={element => (this.videoElement = element)}\n class=\"video-js vjs-content-block-theme\"\n controls={this.controls}\n preload={this.preload}\n width={this.width}\n height={this.height}\n crossorigin=\"anonymous\"\n data-setup={this.computedVideoConfig()}\n >\n <slot name=\"no-js-message\"></slot>\n <slot name=\"content\"></slot>\n <slot></slot>\n </video>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,2 +1,2 @@
1
- import{p as t,b as e}from"./p-288eace9.js";export{s as setNonce}from"./p-288eace9.js";const n=()=>{const e=import.meta.url;const n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return t(n)};n().then((t=>e([["p-4bfbd7ef",[[4,"content-split-block",{reverse:[1544],columns:[1],classes:[1537],classString:[32]}]]],["p-271fb304",[[4,"content-carousel",{initMethod:[1,"init-method"],swiperOptions:[1,"swiper-options"]},[[0,"setSwiperOptions","setSwiperOptionsCallback"]]]]],["p-167a9155",[[4,"content-navigation-block",{hamburger:[1537],classes:[1537],classString:[32],ariaExpanded:[32],bodyToggle:[32]}]]],["p-8cc22c1e",[[4,"content-tabs",{classes:[1537],classString:[32]}]]],["p-4038cd42",[[4,"content-accordion",{open:[1],animationStart:[1,"animation-start"],animationEnd:[1,"animation-end"],animationTime:[2,"animation-time"],revealElement:[32],isOpen:[32],randomID:[32],classString:[32]}],[4,"content-button",{href:[1537],target:[1],classes:[1],clickableBlock:[4,"clickable-block"],expanded:[1537],controls:[1],linkLabel:[1,"link-label"],linkClass:[1537,"link-class"],classString:[32],hasContentToActivate:[32]}],[4,"content-hero-block",{contentPosition:[1537,"content-position"],classes:[1],hasBackground:[32],classString:[32],revealHiddenContent:[32]},[[8,"contentBlockActivated","contentBlockActivationHandler"]]],[4,"content-image",{classes:[1537],lazyLoad:[4,"lazy-load"],src:[1025],alt:[1537],width:[1025],height:[1025],aspectRatio:[1025,"aspect-ratio"],type:[1],videoType:[1,"video-type"],showContent:[1537,"show-content"],activeSrc:[32],lazyLoadIsComplete:[32],showVideoAsGif:[32],activeLazyLoadClass:[32],classString:[32],inlineStyle:[32],hasMediaContent:[32],pictureImageSrc:[32]},null,{lazyLoadIsComplete:["watchLazyLoadIsComplete"]}],[4,"content-line",{tag:[1],textAlign:[1,"text-align"],classes:[8],maxWidth:[1,"max-width"],classString:[32],inlineStyle:[32]}],[4,"content-overlay",{target:[1],open:[1537],fullScreen:[1,"full-screen"],classes:[1],horizontalAlignment:[1537,"horizontal-alignment"],verticalAlignment:[1537,"vertical-alignment"],closeTitle:[1,"close-title"],isActive:[32],activeClass:[32],classString:[32],contentSlot:[32],isFullScreen:[32],hasCloseButton:[32],originalMarkup:[32],openOverlay:[64],closeOverlay:[64]},[[0,"contentBlockActivated","onContentBlockActivated"]]],[4,"content-spacer",{classes:[1],maxWidth:[1,"max-width"],fullHeight:[1537,"full-height"],textAlign:[1537,"text-align"],horizontalPosition:[1537,"horizontal-position"],topOffset:[1,"top-offset"],bottomOffset:[1,"bottom-offset"],leftOffset:[1,"left-offset"],rightOffset:[1,"right-offset"],classString:[32],inlineStyle:[32]}],[4,"content-text-block",{classes:[1],minHeight:[1537,"min-height"],verticalAlignment:[1537,"vertical-alignment"],fullHeight:[1537,"full-height"],textAlign:[1537,"text-align"],classString:[32],inlineStyle:[32]}],[4,"content-tout-block",{hover:[1537],classes:[1],classString:[32],hasHoverContent:[32]}],[4,"content-video",{method:[1],autoplay:[4],src:[1],width:[2],height:[2],type:[1],playButtonAriaLabel:[1,"play-button-aria-label"],classes:[1537],controls:[4],preload:[1],fitContainer:[1537,"fit-container"],classString:[32],isLoaded:[32],hasPoster:[32],isPlayed:[32]}],[4,"content-grid-formatter",{classes:[1],type:[1537],flexGrow:[1537,"flex-grow"],flexShrink:[1537,"flex-shrink"],verticalAlignment:[1537,"vertical-alignment"],horizontalAlignment:[1537,"horizontal-alignment"],columns:[1537],columnGap:[1537,"column-gap"],classString:[32],activeClassString:[32],inlineStyle:[32]}]]]],t)));
1
+ import{p as t,b as e}from"./p-288eace9.js";export{s as setNonce}from"./p-288eace9.js";const n=()=>{const e=import.meta.url;const n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return t(n)};n().then((t=>e([["p-4bfbd7ef",[[4,"content-split-block",{reverse:[1544],columns:[1],classes:[1537],classString:[32]}]]],["p-271fb304",[[4,"content-carousel",{initMethod:[1,"init-method"],swiperOptions:[1,"swiper-options"]},[[0,"setSwiperOptions","setSwiperOptionsCallback"]]]]],["p-6a177aef",[[4,"content-navigation-block",{hamburger:[1537],classes:[1537],classString:[32],ariaExpanded:[32],bodyToggle:[32]}]]],["p-8cc22c1e",[[4,"content-tabs",{classes:[1537],classString:[32]}]]],["p-24657e66",[[4,"content-accordion",{open:[1],animationStart:[1,"animation-start"],animationEnd:[1,"animation-end"],animationTime:[2,"animation-time"],revealElement:[32],isOpen:[32],randomID:[32],classString:[32]}],[4,"content-button",{href:[1537],target:[1],classes:[1],clickableBlock:[4,"clickable-block"],expanded:[1537],controls:[1],linkLabel:[1,"link-label"],linkClass:[1537,"link-class"],classString:[32],hasContentToActivate:[32]}],[4,"content-hero-block",{contentPosition:[1537,"content-position"],classes:[1],hasBackground:[32],classString:[32],revealHiddenContent:[32]},[[8,"contentBlockActivated","contentBlockActivationHandler"]]],[4,"content-image",{classes:[1537],lazyLoad:[4,"lazy-load"],src:[1025],alt:[1537],width:[1025],height:[1025],aspectRatio:[1025,"aspect-ratio"],type:[1],videoType:[1,"video-type"],showContent:[1537,"show-content"],activeSrc:[32],lazyLoadIsComplete:[32],showVideoAsGif:[32],activeLazyLoadClass:[32],classString:[32],inlineStyle:[32],hasMediaContent:[32],pictureImageSrc:[32]},null,{lazyLoadIsComplete:["watchLazyLoadIsComplete"]}],[4,"content-line",{tag:[1],textAlign:[1,"text-align"],classes:[8],maxWidth:[1,"max-width"],classString:[32],inlineStyle:[32]}],[4,"content-overlay",{target:[1],open:[1537],fullScreen:[1,"full-screen"],classes:[1],horizontal:[1537],vertical:[1537],closeTitle:[1,"close-title"],isActive:[32],activeClass:[32],classString:[32],contentSlot:[32],isFullScreen:[32],hasCloseButton:[32],originalMarkup:[32],openOverlay:[64],closeOverlay:[64]},[[0,"contentBlockActivated","onContentBlockActivated"]]],[4,"content-spacer",{classes:[1],maxWidth:[1,"max-width"],fullHeight:[1537,"full-height"],textAlign:[1537,"text-align"],horizontal:[1537],vertical:[1537],topOffset:[1,"top-offset"],bottomOffset:[1,"bottom-offset"],leftOffset:[1,"left-offset"],rightOffset:[1,"right-offset"],classString:[32],inlineStyle:[32]}],[4,"content-text-block",{classes:[1],minHeight:[1537,"min-height"],vertical:[1537],fullHeight:[1537,"full-height"],textAlign:[1537,"text-align"],classString:[32],inlineStyle:[32]}],[4,"content-tout-block",{hover:[1537],classes:[1],classString:[32],hasHoverContent:[32]}],[4,"content-video",{method:[1],autoplay:[4],src:[1],width:[2],height:[2],type:[1],playButtonAriaLabel:[1,"play-button-aria-label"],classes:[1537],controls:[4],preload:[1],fitContainer:[1537,"fit-container"],classString:[32],isLoaded:[32],hasPoster:[32],isPlayed:[32]}],[4,"content-grid-formatter",{classes:[1],type:[1537],flexGrow:[1537,"flex-grow"],flexShrink:[1537,"flex-shrink"],vertical:[1537],horizontal:[1537],columns:[1537],columnGap:[1537,"column-gap"],classString:[32],activeClassString:[32],inlineStyle:[32]}]]]],t)));
2
2
  //# sourceMappingURL=content-blocks.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","reverse","columns","classes","classString","initMethod","swiperOptions","hamburger","ariaExpanded","bodyToggle","open","animationStart","animationEnd","animationTime","revealElement","isOpen","randomID","target","clickableBlock","expanded","controls","linkLabel","linkClass","hasContentToActivate","contentPosition","hasBackground","revealHiddenContent","lazyLoad","src","alt","width","height","aspectRatio","type","videoType","showContent","activeSrc","lazyLoadIsComplete","showVideoAsGif","activeLazyLoadClass","inlineStyle","hasMediaContent","pictureImageSrc","tag","textAlign","maxWidth","fullScreen","horizontalAlignment","verticalAlignment","closeTitle","isActive","activeClass","contentSlot","isFullScreen","hasCloseButton","originalMarkup","openOverlay","closeOverlay","fullHeight","horizontalPosition","topOffset","bottomOffset","leftOffset","rightOffset","minHeight","hover","hasHoverContent","method","autoplay","playButtonAriaLabel","preload","fitContainer","isLoaded","hasPoster","isPlayed","flexGrow","flexShrink","columnGap","activeClassString"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAajB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,ECnB/BH,IAAeQ,MAAKC,GAEXC,EAAc,yCAAuC,CAAAC,QAAA,OAAAC,QAAA,IAAAC,QAAA,OAAAC,YAAA,+CAAAC,WAAA,kBAAAC,cAAA,2HAAAC,UAAA,OAAAJ,QAAA,OAAAC,YAAA,KAAAI,aAAA,KAAAC,WAAA,2CAAAN,QAAA,OAAAC,YAAA,gDAAAM,KAAA,IAAAC,eAAA,sBAAAC,aAAA,oBAAAC,cAAA,qBAAAC,cAAA,KAAAC,OAAA,KAAAC,SAAA,KAAAZ,YAAA,4BAAAR,KA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iB,SAAA,IAAAkD,QAAA,IAAAC,aAAA,uBAAAnE,YAAA,KAAAoE,SAAA,KAAAC,UAAA,KAAAC,SAAA,oCAAAvE,QAAA,IAAA8B,KAAA,OAAA0C,SAAA,mBAAAC,WAAA,qBAAA5B,kBAAA,4BAAAD,oBAAA,8BAAA7C,QAAA,OAAA2E,UAAA,oBAAAzE,YAAA,KAAA0E,kBAAA,KAAAtC,YAAA,UAAAzC"}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","reverse","columns","classes","classString","initMethod","swiperOptions","hamburger","ariaExpanded","bodyToggle","open","animationStart","animationEnd","animationTime","revealElement","isOpen","randomID","target","clickableBlock","expanded","controls","linkLabel","linkClass","hasContentToActivate","contentPosition","hasBackground","revealHiddenContent","lazyLoad","src","alt","width","height","aspectRatio","type","videoType","showContent","activeSrc","lazyLoadIsComplete","showVideoAsGif","activeLazyLoadClass","inlineStyle","hasMediaContent","pictureImageSrc","tag","textAlign","maxWidth","fullScreen","horizontal","vertical","closeTitle","isActive","activeClass","contentSlot","isFullScreen","hasCloseButton","originalMarkup","openOverlay","closeOverlay","fullHeight","topOffset","bottomOffset","leftOffset","rightOffset","minHeight","hover","hasHoverContent","method","autoplay","playButtonAriaLabel","preload","fitContainer","isLoaded","hasPoster","isPlayed","flexGrow","flexShrink","columnGap","activeClassString"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAajB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,ECnB/BH,IAAeQ,MAAKC,GAEXC,EAAc,yCAAuC,CAAAC,QAAA,OAAAC,QAAA,IAAAC,QAAA,OAAAC,YAAA,+CAAAC,WAAA,kBAAAC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