@content-blocks/js 0.7.6 → 0.8.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.
- package/LICENSE +1 -1
- package/README.md +111 -3
- package/THIRD-PARTY-NOTICES.md +21 -0
- package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -2
- package/dist/cjs/content-accordion.cjs.entry.js +87 -0
- package/dist/cjs/content-blocks.cjs.js +35 -11
- package/dist/cjs/content-button.cjs.entry.js +113 -0
- package/dist/cjs/content-carousel.cjs.entry.js +153 -47
- package/dist/cjs/content-grid-formatter.cjs.entry.js +102 -0
- package/dist/cjs/content-hero-block.cjs.entry.js +45 -0
- package/dist/cjs/content-image.cjs.entry.js +153 -0
- package/dist/cjs/content-line.cjs.entry.js +61 -0
- package/dist/cjs/content-navigation-block.cjs.entry.js +51 -34
- package/dist/cjs/content-overlay.cjs.entry.js +641 -0
- package/dist/cjs/content-spacer.cjs.entry.js +75 -0
- package/dist/cjs/content-split-block.cjs.entry.js +22 -19
- package/dist/cjs/content-tabs.cjs.entry.js +38 -21
- package/dist/cjs/content-text-block.cjs.entry.js +63 -0
- package/dist/cjs/content-tout-block.cjs.entry.js +34 -0
- package/dist/cjs/{content-accordion_11.cjs.entry.js → content-video.cjs.entry.js} +14560 -12927
- package/dist/cjs/{focus-trap.esm-7bc384a0.js → focus-trap.esm-ZwN-anf1.js} +484 -190
- package/dist/cjs/{index-2e0ce692.js → index-B1U6Gweq.js} +348 -246
- package/dist/cjs/index-ClnpH9XB.js +2170 -0
- package/dist/cjs/index-CyalvZJn.js +1719 -0
- package/dist/cjs/index-DUvWvBDN.js +290 -0
- package/dist/cjs/index-voGY4Tkl.js +4705 -0
- package/dist/cjs/index.cjs.js +2 -5
- package/dist/cjs/loader.cjs.js +3 -8
- package/dist/cjs/responsive-component-C5eJS82z.js +171 -0
- package/dist/cjs/responsive-component-DMdnQIPV.js +171 -0
- package/dist/cjs/swiper-KLYbvU1K.js +3931 -0
- package/dist/cjs/{swiper-8221f4e8.js → swiper-_Z8Y4IJI.js} +269 -236
- package/dist/cjs/utils-BCHaRGm_.js +462 -0
- package/dist/cjs/{utils-df044337.js → utils-C3gXIS2t.js} +51 -49
- package/dist/cjs/utils-DUvWvBDN.js +290 -0
- package/dist/collection/blocks/content-hero-block/content-hero-block.css +1 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js +33 -48
- package/dist/collection/blocks/content-split-block/content-split-block.css +16 -5
- package/dist/collection/blocks/content-split-block/content-split-block.js +29 -48
- package/dist/collection/blocks/content-text-block/content-text-block.js +65 -59
- package/dist/collection/blocks/content-tout-block/content-tout-block.css +3 -0
- package/dist/collection/blocks/content-tout-block/content-tout-block.js +22 -47
- package/dist/collection/collection-manifest.json +8 -5
- package/dist/collection/components/content-accordion/content-accordion.css +20 -1
- package/dist/collection/components/content-accordion/content-accordion.js +67 -33
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js +0 -1
- package/dist/collection/components/content-carousel/content-carousel.css +60 -4
- package/dist/collection/components/content-carousel/content-carousel.js +294 -44
- package/dist/collection/components/content-navigation-block/content-navigation-block.css +15 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +86 -42
- package/dist/collection/components/content-overlay/content-overlay.css +36 -5
- package/dist/collection/components/content-overlay/content-overlay.js +181 -120
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js +0 -1
- package/dist/collection/components/content-tabs/content-tabs.js +7 -49
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js +0 -1
- package/dist/collection/elements/content-button/content-button.css +8 -7
- package/dist/collection/elements/content-button/content-button.js +103 -84
- package/dist/collection/elements/content-image/content-image.css +3 -1
- package/dist/collection/elements/content-image/content-image.js +176 -95
- package/dist/collection/elements/content-line/content-line.js +63 -54
- package/dist/collection/elements/content-video/content-video.css +1 -1
- package/dist/collection/elements/content-video/content-video.js +165 -92
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +8 -2
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +167 -89
- package/dist/collection/formatters/content-spacer/content-spacer.js +86 -209
- package/dist/collection/global/content-blocks-reset.css +77 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/sass/_mixins.scss +21 -5
- package/dist/collection/sass/_variables.scss +15 -15
- package/dist/collection/setupFiles.js +0 -1
- package/dist/collection/site/site.js +67 -0
- package/dist/collection/utils/breakpoints.js +162 -0
- package/dist/collection/utils/responsive-component.js +249 -0
- package/dist/collection/utils/utils.js +32 -42
- package/dist/components/content-accordion.js +65 -44
- package/dist/components/content-button.js +89 -43
- package/dist/components/content-carousel.js +172 -55
- package/dist/components/content-grid-formatter.js +127 -3
- package/dist/components/content-hero-block.js +33 -26
- package/dist/components/content-image.js +127 -71
- package/dist/components/content-line.js +56 -35
- package/dist/components/content-navigation-block.js +62 -39
- package/dist/components/content-overlay.js +128 -67
- package/dist/components/content-spacer.js +70 -54
- package/dist/components/content-split-block.js +33 -32
- package/dist/components/content-tabs.js +46 -25
- package/dist/components/content-text-block.js +55 -35
- package/dist/components/content-tout-block.js +29 -27
- package/dist/components/content-video.js +14624 -11972
- package/dist/{esm/focus-trap.esm-8fb54175.js → components/focus-trap.esm.js} +484 -190
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +3 -3
- package/dist/components/{p-5a91aa1b.js → index2.js} +348 -246
- package/dist/components/p-BWRCeMvO.js +1 -0
- package/dist/components/p-CYF5GU_q.js +1 -0
- package/dist/components/p-DXUoPIwl.js +10 -0
- package/dist/components/p-D_Ll4QNj.js +1 -0
- package/dist/components/p-DhIoW7H3.js +1 -0
- package/dist/components/responsive-component.js +168 -0
- package/dist/components/{p-e5dc4ea4.js → swiper.js} +268 -235
- package/dist/components/utils.js +4969 -0
- package/dist/{esm/utils-1c9f0ec1.js → components/utils2.js} +51 -50
- package/dist/content-blocks/content-accordion.entry.js +85 -0
- package/dist/content-blocks/content-blocks.esm.js +47 -2
- package/dist/content-blocks/content-button.entry.js +111 -0
- package/dist/content-blocks/content-carousel.entry.js +188 -0
- package/dist/content-blocks/content-grid-formatter.entry.js +100 -0
- package/dist/content-blocks/content-hero-block.entry.js +43 -0
- package/dist/content-blocks/content-image.entry.js +151 -0
- package/dist/content-blocks/content-line.entry.js +59 -0
- package/dist/content-blocks/content-navigation-block.entry.js +105 -0
- package/dist/content-blocks/content-overlay.entry.js +639 -0
- package/dist/content-blocks/content-spacer.entry.js +73 -0
- package/dist/content-blocks/content-split-block.entry.js +34 -0
- package/dist/content-blocks/content-tabs.entry.js +245 -0
- package/dist/content-blocks/content-text-block.entry.js +61 -0
- package/dist/content-blocks/content-tout-block.entry.js +32 -0
- package/dist/{esm/content-accordion_11.entry.js → content-blocks/content-video.entry.js} +14535 -12890
- package/dist/{components/p-a2fedf8a.js → content-blocks/focus-trap.esm-DXUoPIwl.js} +484 -190
- package/dist/content-blocks/global/content-blocks-reset.css +77 -0
- package/dist/content-blocks/index-BFDJMblF.js +4690 -0
- package/dist/{esm/index-f45a9c45.js → content-blocks/index-P1YnSd-O.js} +348 -246
- package/dist/content-blocks/index.esm.js +1 -2
- package/dist/content-blocks/p-008457f0.entry.js +1 -0
- package/dist/content-blocks/p-052692f1.entry.js +1 -0
- package/dist/content-blocks/p-0f71bd32.entry.js +1 -0
- package/dist/content-blocks/p-1f154617.entry.js +1 -0
- package/dist/content-blocks/p-2554ebd8.entry.js +1 -0
- package/dist/content-blocks/p-4afd6511.entry.js +1 -0
- package/dist/content-blocks/p-78d5de9f.entry.js +1 -0
- package/dist/content-blocks/p-7bcf7e7e.entry.js +1 -0
- package/dist/content-blocks/p-9058031c.entry.js +1 -0
- package/dist/content-blocks/p-9c41ac23.entry.js +17 -0
- package/dist/content-blocks/p-CLwOzPEO.js +3 -0
- package/dist/content-blocks/p-CYF5GU_q.js +1 -0
- package/dist/content-blocks/p-CjR_4mPu.js +1 -0
- package/dist/content-blocks/p-DQuL1Twl.js +1 -0
- package/dist/content-blocks/p-DXUoPIwl.js +10 -0
- package/dist/content-blocks/p-D_Ll4QNj.js +1 -0
- package/dist/content-blocks/p-DhIoW7H3.js +1 -0
- package/dist/content-blocks/p-DzYwy_62.js +1 -0
- package/dist/content-blocks/p-b2e6358a.entry.js +1 -0
- package/dist/content-blocks/p-c783bc68.entry.js +1 -0
- package/dist/content-blocks/p-e3d81e15.entry.js +1 -0
- package/dist/content-blocks/p-f23b4aae.entry.js +1 -0
- package/dist/content-blocks/p-f75c9094.entry.js +1 -0
- package/dist/content-blocks/responsive-component-BsLrcKbS.js +169 -0
- package/dist/content-blocks/sass/_mixins.scss +21 -5
- package/dist/content-blocks/sass/_variables.scss +15 -15
- package/dist/{esm/swiper-e9621adb.js → content-blocks/swiper-nBv069TB.js} +268 -235
- package/dist/{components/p-b85cfa86.js → content-blocks/utils--SDsQnWS.js} +51 -50
- package/dist/content-blocks/utils-Bak__24s.js +280 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +5312 -0
- package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -2
- package/dist/esm/content-accordion.entry.js +85 -0
- package/dist/esm/content-blocks.js +33 -8
- package/dist/esm/content-button.entry.js +111 -0
- package/dist/esm/content-carousel.entry.js +153 -45
- package/dist/esm/content-grid-formatter.entry.js +100 -0
- package/dist/esm/content-hero-block.entry.js +43 -0
- package/dist/esm/content-image.entry.js +151 -0
- package/dist/esm/content-line.entry.js +59 -0
- package/dist/esm/content-navigation-block.entry.js +51 -32
- package/dist/esm/content-overlay.entry.js +639 -0
- package/dist/esm/content-spacer.entry.js +73 -0
- package/dist/esm/content-split-block.entry.js +22 -17
- package/dist/esm/content-tabs.entry.js +38 -19
- package/dist/esm/content-text-block.entry.js +61 -0
- package/dist/esm/content-tout-block.entry.js +32 -0
- package/dist/esm/content-video.entry.js +72033 -0
- package/dist/esm/focus-trap.esm-DXUoPIwl.js +1801 -0
- package/dist/esm/index-BASCLGuP.js +1713 -0
- package/dist/esm/index-BFDJMblF.js +4690 -0
- package/dist/esm/index-CLwOzPEO.js +2161 -0
- package/dist/esm/index-CjR_4mPu.js +280 -0
- package/dist/esm/index-P1YnSd-O.js +5397 -0
- package/dist/esm/index.js +1 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/responsive-component-BsLrcKbS.js +169 -0
- package/dist/esm/responsive-component-D7dJHMp0.js +169 -0
- package/dist/esm/swiper-CtypHPwF.js +3928 -0
- package/dist/esm/swiper-nBv069TB.js +3941 -0
- package/dist/esm/utils--SDsQnWS.js +460 -0
- package/dist/esm/utils-Bak__24s.js +280 -0
- package/dist/esm/utils-CYF5GU_q.js +438 -0
- package/dist/node_modules/video.js/dist/video-js.min.css +1 -0
- package/dist/test/axe.js +60 -0
- package/dist/types/Users/shahrukceo/Developer/content-blocks/packages/js/.stencil/test/axe.d.ts +16 -0
- package/dist/types/blocks/content-hero-block/content-hero-block.d.ts +7 -11
- package/dist/types/blocks/content-split-block/content-split-block.d.ts +5 -9
- package/dist/types/blocks/content-text-block/content-text-block.d.ts +4 -9
- package/dist/types/blocks/content-tout-block/content-tout-block.d.ts +5 -10
- package/dist/types/components/content-accordion/content-accordion.d.ts +4 -3
- package/dist/types/components/content-accordion/libraries/w3_disclosure_button.d.ts +0 -1
- package/dist/types/components/content-carousel/content-carousel.d.ts +44 -7
- package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +14 -8
- package/dist/types/components/content-overlay/content-overlay.d.ts +15 -16
- package/dist/types/components/content-overlay/libraries/aria-dialog.d.ts +0 -1
- package/dist/types/components/content-overlay/libraries/aria-utilities.d.ts +0 -1
- package/dist/types/components/content-tabs/content-tabs.d.ts +4 -10
- package/dist/types/components/content-tabs/libraries/w3_tabs.d.ts +0 -1
- package/dist/types/components.d.ts +900 -196
- package/dist/types/elements/content-button/content-button.d.ts +8 -13
- package/dist/types/elements/content-image/content-image.d.ts +15 -9
- package/dist/types/elements/content-line/content-line.d.ts +5 -12
- package/dist/types/elements/content-video/content-video.d.ts +12 -11
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +14 -9
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +4 -36
- package/dist/types/index.d.ts +3 -1
- package/dist/types/setupFiles.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +265 -60
- package/dist/types/typings.d.ts +10 -0
- package/dist/types/utils/breakpoints.d.ts +57 -0
- package/dist/types/utils/responsive-component.d.ts +49 -0
- package/dist/types/utils/utils.d.ts +11 -8
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +75 -65
- package/dist/cjs/BehaviorSubject-12116537.js +0 -655
- package/dist/cjs/BehaviorSubject-12116537.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +0 -1
- package/dist/cjs/content-blocks.cjs.js.map +0 -1
- package/dist/cjs/content-carousel.cjs.entry.js.map +0 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +0 -1
- package/dist/cjs/content-split-block.cjs.entry.js.map +0 -1
- package/dist/cjs/content-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/focus-trap.esm-7bc384a0.js.map +0 -1
- package/dist/cjs/index-2e0ce692.js.map +0 -1
- package/dist/cjs/index-8af2820a.js +0 -1650
- package/dist/cjs/index-8af2820a.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/swiper-8221f4e8.js.map +0 -1
- package/dist/cjs/utils-df044337.js.map +0 -1
- package/dist/cjs/utils-f8ccab0a.js +0 -126
- package/dist/cjs/utils-f8ccab0a.js.map +0 -1
- package/dist/cjs/window-resize-service-65a5a370.js +0 -37
- package/dist/cjs/window-resize-service-65a5a370.js.map +0 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +0 -1
- package/dist/collection/blocks/content-split-block/content-split-block.js.map +0 -1
- package/dist/collection/blocks/content-text-block/content-text-block.js.map +0 -1
- package/dist/collection/blocks/content-tout-block/content-tout-block.js.map +0 -1
- package/dist/collection/components/content-accordion/content-accordion.js.map +0 -1
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js.map +0 -1
- package/dist/collection/components/content-carousel/content-carousel.js.map +0 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +0 -1
- package/dist/collection/components/content-overlay/content-overlay.js.map +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js.map +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js.map +0 -1
- package/dist/collection/components/content-tabs/content-tabs.js.map +0 -1
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js.map +0 -1
- package/dist/collection/elements/content-button/content-button.js.map +0 -1
- package/dist/collection/elements/content-image/content-image.js.map +0 -1
- package/dist/collection/elements/content-line/content-line.js.map +0 -1
- package/dist/collection/elements/content-video/content-video.js.map +0 -1
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +0 -1
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +0 -1
- package/dist/collection/globalScript.js +0 -15
- package/dist/collection/globalScript.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/services/content-events-service.js +0 -23
- package/dist/collection/services/content-events-service.js.map +0 -1
- package/dist/collection/services/window-resize-service.js +0 -31
- package/dist/collection/services/window-resize-service.js.map +0 -1
- package/dist/collection/setupFiles.js.map +0 -1
- package/dist/collection/stories/ContentHeroBlock.stories.js +0 -51
- package/dist/collection/stories/ContentHeroBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js +0 -33
- package/dist/collection/stories/ContentNavigationBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentSpacer.stories.js +0 -20
- package/dist/collection/stories/ContentSpacer.stories.js.map +0 -1
- package/dist/collection/stories/ContentTextBlock.stories.js +0 -17
- package/dist/collection/stories/ContentTextBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentToutBlock.stories.js +0 -17
- package/dist/collection/stories/ContentToutBlock.stories.js.map +0 -1
- package/dist/collection/stories/FullPageExample.stories.js +0 -432
- package/dist/collection/stories/FullPageExample.stories.js.map +0 -1
- package/dist/collection/stories/assets/accessibility.svg +0 -5
- package/dist/collection/stories/assets/discord.svg +0 -15
- package/dist/collection/stories/assets/github.svg +0 -3
- package/dist/collection/stories/assets/tutorials.svg +0 -12
- package/dist/collection/stories/assets/youtube.svg +0 -4
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/content-accordion.js.map +0 -1
- package/dist/components/content-button.js.map +0 -1
- package/dist/components/content-carousel.js.map +0 -1
- package/dist/components/content-grid-formatter.js.map +0 -1
- package/dist/components/content-hero-block.js.map +0 -1
- package/dist/components/content-image.js.map +0 -1
- package/dist/components/content-line.js.map +0 -1
- package/dist/components/content-navigation-block.js.map +0 -1
- package/dist/components/content-overlay.js.map +0 -1
- package/dist/components/content-spacer.js.map +0 -1
- package/dist/components/content-split-block.js.map +0 -1
- package/dist/components/content-tabs.js.map +0 -1
- package/dist/components/content-text-block.js.map +0 -1
- package/dist/components/content-tout-block.js.map +0 -1
- package/dist/components/content-video.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-26483b46.js +0 -35
- package/dist/components/p-26483b46.js.map +0 -1
- package/dist/components/p-5a91aa1b.js.map +0 -1
- package/dist/components/p-74be971f.js +0 -652
- package/dist/components/p-74be971f.js.map +0 -1
- package/dist/components/p-7a436263.js +0 -122
- package/dist/components/p-7a436263.js.map +0 -1
- package/dist/components/p-a2fedf8a.js.map +0 -1
- package/dist/components/p-b85cfa86.js.map +0 -1
- package/dist/components/p-e28db040.js +0 -1452
- package/dist/components/p-e28db040.js.map +0 -1
- package/dist/components/p-e5dc4ea4.js.map +0 -1
- package/dist/components/p-e9bce2ab.js +0 -88
- package/dist/components/p-e9bce2ab.js.map +0 -1
- package/dist/content-blocks/content-blocks.esm.js.map +0 -1
- package/dist/content-blocks/index.esm.js.map +0 -1
- package/dist/content-blocks/p-13c3cc4f.js +0 -3
- package/dist/content-blocks/p-13c3cc4f.js.map +0 -1
- package/dist/content-blocks/p-5422c25b.entry.js +0 -2
- package/dist/content-blocks/p-5422c25b.entry.js.map +0 -1
- package/dist/content-blocks/p-5a91aa1b.js +0 -2
- package/dist/content-blocks/p-5a91aa1b.js.map +0 -1
- package/dist/content-blocks/p-650d1757.js +0 -2
- package/dist/content-blocks/p-650d1757.js.map +0 -1
- package/dist/content-blocks/p-74be971f.js +0 -2
- package/dist/content-blocks/p-74be971f.js.map +0 -1
- package/dist/content-blocks/p-8deb755c.entry.js +0 -26
- package/dist/content-blocks/p-8deb755c.entry.js.map +0 -1
- package/dist/content-blocks/p-a2fedf8a.js +0 -10
- package/dist/content-blocks/p-a2fedf8a.js.map +0 -1
- package/dist/content-blocks/p-b305392e.entry.js +0 -2
- package/dist/content-blocks/p-b305392e.entry.js.map +0 -1
- package/dist/content-blocks/p-b85cfa86.js +0 -2
- package/dist/content-blocks/p-b85cfa86.js.map +0 -1
- package/dist/content-blocks/p-cc7397cf.js +0 -2
- package/dist/content-blocks/p-cc7397cf.js.map +0 -1
- package/dist/content-blocks/p-d62775d7.entry.js +0 -2
- package/dist/content-blocks/p-d62775d7.entry.js.map +0 -1
- package/dist/content-blocks/p-e1255160.js +0 -2
- package/dist/content-blocks/p-e1255160.js.map +0 -1
- package/dist/content-blocks/p-e5dc4ea4.js +0 -2
- package/dist/content-blocks/p-e5dc4ea4.js.map +0 -1
- package/dist/content-blocks/p-f73f934a.entry.js +0 -2
- package/dist/content-blocks/p-f73f934a.entry.js.map +0 -1
- package/dist/esm/BehaviorSubject-f7a12fd8.js +0 -652
- package/dist/esm/BehaviorSubject-f7a12fd8.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/content-accordion_11.entry.js.map +0 -1
- package/dist/esm/content-blocks.js.map +0 -1
- package/dist/esm/content-carousel.entry.js.map +0 -1
- package/dist/esm/content-navigation-block.entry.js.map +0 -1
- package/dist/esm/content-split-block.entry.js.map +0 -1
- package/dist/esm/content-tabs.entry.js.map +0 -1
- package/dist/esm/focus-trap.esm-8fb54175.js.map +0 -1
- package/dist/esm/index-ec24af7a.js +0 -1621
- package/dist/esm/index-ec24af7a.js.map +0 -1
- package/dist/esm/index-f45a9c45.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/swiper-e9621adb.js.map +0 -1
- package/dist/esm/utils-1c9f0ec1.js.map +0 -1
- package/dist/esm/utils-9a901aa9.js +0 -122
- package/dist/esm/utils-9a901aa9.js.map +0 -1
- package/dist/esm/window-resize-service-354f2ac5.js +0 -35
- package/dist/esm/window-resize-service-354f2ac5.js.map +0 -1
- package/dist/types/globalScript.d.ts +0 -1
- package/dist/types/old-components.d.ts +0 -1239
- package/dist/types/services/content-events-service.d.ts +0 -11
- package/dist/types/services/window-resize-service.d.ts +0 -11
- package/dist/types/stories/ContentHeroBlock.stories.d.ts +0 -11
- package/dist/types/stories/ContentNavigationBlock.stories.d.ts +0 -9
- package/dist/types/stories/ContentSpacer.stories.d.ts +0 -15
- package/dist/types/stories/ContentTextBlock.stories.d.ts +0 -9
- package/dist/types/stories/ContentToutBlock.stories.d.ts +0 -9
- package/dist/types/stories/FullPageExample.stories.d.ts +0 -10
|
@@ -1,36 +1,61 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveComponent } from "../../utils/responsive-component";
|
|
3
3
|
/**
|
|
4
|
+
* A block of text with its alignment, vertical position and minimum height set per breakpoint.
|
|
5
|
+
*
|
|
4
6
|
* @slot content - This slot will usually serve a text block.
|
|
5
7
|
* @slot footer - This slot is placed below the content slot
|
|
6
8
|
* @slot - Default slot, same as content slot
|
|
7
9
|
*/
|
|
8
|
-
export class ContentTextBlock {
|
|
10
|
+
export class ContentTextBlock extends ResponsiveComponent {
|
|
9
11
|
constructor() {
|
|
10
|
-
|
|
11
|
-
this.classString = undefined;
|
|
12
|
-
this.minHeight = undefined;
|
|
13
|
-
this.vertical = 'top';
|
|
14
|
-
this.fullHeight = 'false';
|
|
15
|
-
this.textAlign = 'default';
|
|
16
|
-
this.inlineStyle = {};
|
|
12
|
+
super();
|
|
17
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* This is a pipe separated string representing the minimum height. Units without values default to pixels.
|
|
16
|
+
* @type String
|
|
17
|
+
* @responsive
|
|
18
|
+
*/
|
|
19
|
+
minHeight;
|
|
20
|
+
/**
|
|
21
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
22
|
+
* @type Select
|
|
23
|
+
* @options top
|
|
24
|
+
* @options center
|
|
25
|
+
* @options bottom
|
|
26
|
+
* @responsive
|
|
27
|
+
*/
|
|
28
|
+
vertical = 'top';
|
|
29
|
+
/**
|
|
30
|
+
* @type Boolean
|
|
31
|
+
* @responsive
|
|
32
|
+
*/
|
|
33
|
+
fullHeight = 'false';
|
|
34
|
+
/**
|
|
35
|
+
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
36
|
+
* @type Select
|
|
37
|
+
* @options default
|
|
38
|
+
* @options left
|
|
39
|
+
* @options center
|
|
40
|
+
* @options right
|
|
41
|
+
* @responsive
|
|
42
|
+
*/
|
|
43
|
+
textAlign = 'default';
|
|
44
|
+
hostElement;
|
|
45
|
+
inlineStyle = {};
|
|
18
46
|
componentWillLoad() {
|
|
19
|
-
if (
|
|
47
|
+
if (this.hostElement.querySelector('[slot="footer"]')) {
|
|
20
48
|
this.hostElement.setAttribute('footer', 'true');
|
|
21
49
|
}
|
|
22
|
-
|
|
23
|
-
this.inlineStyle =
|
|
50
|
+
this.responsive({
|
|
51
|
+
minHeight: value => (this.inlineStyle = { ...this.inlineStyle, 'min-height': isNaN(Number(value)) ? value : value + 'px' }),
|
|
52
|
+
textAlign: true,
|
|
53
|
+
vertical: true,
|
|
54
|
+
fullHeight: true,
|
|
24
55
|
});
|
|
25
|
-
WindowResizeService.registerProp(this.textAlign).subscribe(newValue => this.hostElement.setAttribute('text-align', newValue));
|
|
26
|
-
WindowResizeService.registerProp(this.vertical).subscribe(newValue => this.hostElement.setAttribute('vertical', newValue));
|
|
27
|
-
WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => {
|
|
28
|
-
this.hostElement.setAttribute('full-height', newValue);
|
|
29
|
-
});
|
|
30
|
-
WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));
|
|
31
56
|
}
|
|
32
57
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '4286dd2330e7c34e4ba64d11e648b4fd6c90ee27', class: this.classes, style: this.inlineStyle }, h("div", { key: 'bdfc50b3cef4ab0ca14d76be6b03589ab62ba33a', class: "content-text-block__content" }, h("slot", { key: '88e7e85b24bf9f8a0a1a24500bb05fb27611e5eb', name: "content" }), h("slot", { key: 'aa1f339a9fcc63e42dbae2d3e69a836678cbe615' })), h("slot", { key: 'aa31dea6c4ebd2524070c0afbb00024e10ed224a', name: "footer" })));
|
|
34
59
|
}
|
|
35
60
|
static get is() { return "content-text-block"; }
|
|
36
61
|
static get originalStyleUrls() {
|
|
@@ -45,35 +70,6 @@ export class ContentTextBlock {
|
|
|
45
70
|
}
|
|
46
71
|
static get properties() {
|
|
47
72
|
return {
|
|
48
|
-
"classes": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"mutable": false,
|
|
51
|
-
"complexType": {
|
|
52
|
-
"original": "ResponsiveString",
|
|
53
|
-
"resolved": "string",
|
|
54
|
-
"references": {
|
|
55
|
-
"ResponsiveString": {
|
|
56
|
-
"location": "import",
|
|
57
|
-
"path": "../../typings",
|
|
58
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"required": false,
|
|
63
|
-
"optional": false,
|
|
64
|
-
"docs": {
|
|
65
|
-
"tags": [{
|
|
66
|
-
"name": "type",
|
|
67
|
-
"text": "String"
|
|
68
|
-
}, {
|
|
69
|
-
"name": "responsive",
|
|
70
|
-
"text": undefined
|
|
71
|
-
}],
|
|
72
|
-
"text": "This is a pipe separated string representing the style class."
|
|
73
|
-
},
|
|
74
|
-
"attribute": "classes",
|
|
75
|
-
"reflect": false
|
|
76
|
-
},
|
|
77
73
|
"minHeight": {
|
|
78
74
|
"type": "string",
|
|
79
75
|
"mutable": true,
|
|
@@ -84,7 +80,8 @@ export class ContentTextBlock {
|
|
|
84
80
|
"ResponsiveString": {
|
|
85
81
|
"location": "import",
|
|
86
82
|
"path": "../../typings",
|
|
87
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
83
|
+
"id": "src/typings.d.ts::ResponsiveString",
|
|
84
|
+
"referenceLocation": "ResponsiveString"
|
|
88
85
|
}
|
|
89
86
|
}
|
|
90
87
|
},
|
|
@@ -100,8 +97,10 @@ export class ContentTextBlock {
|
|
|
100
97
|
}],
|
|
101
98
|
"text": "This is a pipe separated string representing the minimum height. Units without values default to pixels."
|
|
102
99
|
},
|
|
103
|
-
"
|
|
104
|
-
"
|
|
100
|
+
"getter": false,
|
|
101
|
+
"setter": false,
|
|
102
|
+
"reflect": true,
|
|
103
|
+
"attribute": "min-height"
|
|
105
104
|
},
|
|
106
105
|
"vertical": {
|
|
107
106
|
"type": "string",
|
|
@@ -113,7 +112,8 @@ export class ContentTextBlock {
|
|
|
113
112
|
"ContentVerticalAlignments": {
|
|
114
113
|
"location": "import",
|
|
115
114
|
"path": "../../typings",
|
|
116
|
-
"id": "src/typings.d.ts::ContentVerticalAlignments"
|
|
115
|
+
"id": "src/typings.d.ts::ContentVerticalAlignments",
|
|
116
|
+
"referenceLocation": "ContentVerticalAlignments"
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
},
|
|
@@ -138,8 +138,10 @@ export class ContentTextBlock {
|
|
|
138
138
|
}],
|
|
139
139
|
"text": "Pipe separated list of ContentVerticalAlignments for text box placement."
|
|
140
140
|
},
|
|
141
|
-
"
|
|
141
|
+
"getter": false,
|
|
142
|
+
"setter": false,
|
|
142
143
|
"reflect": true,
|
|
144
|
+
"attribute": "vertical",
|
|
143
145
|
"defaultValue": "'top'"
|
|
144
146
|
},
|
|
145
147
|
"fullHeight": {
|
|
@@ -152,7 +154,8 @@ export class ContentTextBlock {
|
|
|
152
154
|
"ResponsiveString": {
|
|
153
155
|
"location": "import",
|
|
154
156
|
"path": "../../typings",
|
|
155
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
157
|
+
"id": "src/typings.d.ts::ResponsiveString",
|
|
158
|
+
"referenceLocation": "ResponsiveString"
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
},
|
|
@@ -168,8 +171,10 @@ export class ContentTextBlock {
|
|
|
168
171
|
}],
|
|
169
172
|
"text": ""
|
|
170
173
|
},
|
|
171
|
-
"
|
|
174
|
+
"getter": false,
|
|
175
|
+
"setter": false,
|
|
172
176
|
"reflect": true,
|
|
177
|
+
"attribute": "full-height",
|
|
173
178
|
"defaultValue": "'false'"
|
|
174
179
|
},
|
|
175
180
|
"textAlign": {
|
|
@@ -182,7 +187,8 @@ export class ContentTextBlock {
|
|
|
182
187
|
"ContentLineTextAlignOptions": {
|
|
183
188
|
"location": "import",
|
|
184
189
|
"path": "../../typings",
|
|
185
|
-
"id": "src/typings.d.ts::ContentLineTextAlignOptions"
|
|
190
|
+
"id": "src/typings.d.ts::ContentLineTextAlignOptions",
|
|
191
|
+
"referenceLocation": "ContentLineTextAlignOptions"
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
},
|
|
@@ -210,18 +216,18 @@ export class ContentTextBlock {
|
|
|
210
216
|
}],
|
|
211
217
|
"text": "Pipe separated list of ContentLineTextAlignOptions for text alignment."
|
|
212
218
|
},
|
|
213
|
-
"
|
|
219
|
+
"getter": false,
|
|
220
|
+
"setter": false,
|
|
214
221
|
"reflect": true,
|
|
222
|
+
"attribute": "text-align",
|
|
215
223
|
"defaultValue": "'default'"
|
|
216
224
|
}
|
|
217
225
|
};
|
|
218
226
|
}
|
|
219
227
|
static get states() {
|
|
220
228
|
return {
|
|
221
|
-
"classString": {},
|
|
222
229
|
"inlineStyle": {}
|
|
223
230
|
};
|
|
224
231
|
}
|
|
225
232
|
static get elementRef() { return "hostElement"; }
|
|
226
233
|
}
|
|
227
|
-
//# sourceMappingURL=content-text-block.js.map
|
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveComponent } from "../../utils/responsive-component";
|
|
3
3
|
/**
|
|
4
|
+
* A card that promotes something: an image or video with text below it, and an optional layer over the media that can show on hover.
|
|
5
|
+
*
|
|
4
6
|
* @slot media - This slot is usually a video or image component.
|
|
5
7
|
* @slot mediaContent - This is a layer that floats the media layer and is revealed on hover.
|
|
6
8
|
* @slot content - This slot will usually serve a text block.
|
|
7
9
|
* @slot - Default slot, same as content slot.
|
|
8
10
|
*/
|
|
9
|
-
export class ContentToutBlock {
|
|
11
|
+
export class ContentToutBlock extends ResponsiveComponent {
|
|
10
12
|
constructor() {
|
|
11
|
-
|
|
12
|
-
this.classes = undefined;
|
|
13
|
-
this.classString = undefined;
|
|
14
|
-
this.hasHoverContent = false;
|
|
13
|
+
super();
|
|
15
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* If true, the media content will show only on hover
|
|
17
|
+
* @type Boolean
|
|
18
|
+
* @responsive
|
|
19
|
+
*/
|
|
20
|
+
hover = 'false|true';
|
|
21
|
+
hostElement;
|
|
22
|
+
hasMediaContent;
|
|
16
23
|
componentWillLoad() {
|
|
17
24
|
this.hasMediaContent = !!this.hostElement.querySelector('[slot="mediaContent"]');
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
this.responsive({
|
|
26
|
+
hover: true,
|
|
27
|
+
});
|
|
20
28
|
}
|
|
21
29
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: 'daf8dc23e57db671addb64f6657db314495ccf52', class: this.classes }, h("div", { key: '802323ef3da3ea324a5c561bf95543c6d08f08f6', class: "content-tout-block__media" }, h("slot", { key: '484ca3548182144beee232d6dca161d39473f091', name: "media" }), this.hasMediaContent && (h("div", { key: '7cb362006c05713cddc4fc5ff8a9560c44a77920', class: "content-tout-block__media-content" }, h("slot", { key: '104316c5faf74b7d72bfb4b51d1e4440dec7387e', name: "mediaContent" })))), h("div", { key: '6e2ec37165656a6cc473c49d4ab59bebe60fc344', class: "content-tout-block__content" }, h("slot", { key: 'b1c8225ac696bf19e940379f690e0077bb0962bc', name: "content" }), h("slot", { key: '8048bdefcd621919c640558c416b35d11946ede6' }))));
|
|
23
31
|
}
|
|
24
32
|
static get is() { return "content-tout-block"; }
|
|
25
33
|
static get originalStyleUrls() {
|
|
@@ -44,7 +52,8 @@ export class ContentToutBlock {
|
|
|
44
52
|
"ResponsiveBoolean": {
|
|
45
53
|
"location": "import",
|
|
46
54
|
"path": "../../typings",
|
|
47
|
-
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
55
|
+
"id": "src/typings.d.ts::ResponsiveBoolean",
|
|
56
|
+
"referenceLocation": "ResponsiveBoolean"
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
},
|
|
@@ -60,47 +69,13 @@ export class ContentToutBlock {
|
|
|
60
69
|
}],
|
|
61
70
|
"text": "If true, the media content will show only on hover"
|
|
62
71
|
},
|
|
63
|
-
"
|
|
72
|
+
"getter": false,
|
|
73
|
+
"setter": false,
|
|
64
74
|
"reflect": true,
|
|
75
|
+
"attribute": "hover",
|
|
65
76
|
"defaultValue": "'false|true'"
|
|
66
|
-
},
|
|
67
|
-
"classes": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"mutable": false,
|
|
70
|
-
"complexType": {
|
|
71
|
-
"original": "ResponsiveString",
|
|
72
|
-
"resolved": "string",
|
|
73
|
-
"references": {
|
|
74
|
-
"ResponsiveString": {
|
|
75
|
-
"location": "import",
|
|
76
|
-
"path": "../../typings",
|
|
77
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"required": false,
|
|
82
|
-
"optional": false,
|
|
83
|
-
"docs": {
|
|
84
|
-
"tags": [{
|
|
85
|
-
"name": "type",
|
|
86
|
-
"text": "String"
|
|
87
|
-
}, {
|
|
88
|
-
"name": "responsive",
|
|
89
|
-
"text": undefined
|
|
90
|
-
}],
|
|
91
|
-
"text": ""
|
|
92
|
-
},
|
|
93
|
-
"attribute": "classes",
|
|
94
|
-
"reflect": false
|
|
95
77
|
}
|
|
96
78
|
};
|
|
97
79
|
}
|
|
98
|
-
static get states() {
|
|
99
|
-
return {
|
|
100
|
-
"classString": {},
|
|
101
|
-
"hasHoverContent": {}
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
80
|
static get elementRef() { return "hostElement"; }
|
|
105
81
|
}
|
|
106
|
-
//# sourceMappingURL=content-tout-block.js.map
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"components/content-carousel/content-carousel.js",
|
|
4
3
|
"blocks/content-hero-block/content-hero-block.js",
|
|
5
|
-
"elements/content-line/content-line.js",
|
|
6
|
-
"elements/content-video/content-video.js",
|
|
7
4
|
"blocks/content-split-block/content-split-block.js",
|
|
8
5
|
"blocks/content-text-block/content-text-block.js",
|
|
9
6
|
"blocks/content-tout-block/content-tout-block.js",
|
|
10
7
|
"components/content-accordion/content-accordion.js",
|
|
8
|
+
"components/content-carousel/content-carousel.js",
|
|
11
9
|
"components/content-navigation-block/content-navigation-block.js",
|
|
12
10
|
"components/content-overlay/content-overlay.js",
|
|
13
11
|
"components/content-tabs/content-tabs.js",
|
|
14
12
|
"elements/content-button/content-button.js",
|
|
15
13
|
"elements/content-image/content-image.js",
|
|
14
|
+
"elements/content-line/content-line.js",
|
|
15
|
+
"elements/content-video/content-video.js",
|
|
16
16
|
"formatters/content-grid-formatter/content-grid-formatter.js",
|
|
17
17
|
"formatters/content-spacer/content-spacer.js"
|
|
18
18
|
],
|
|
19
|
+
"mixins": [
|
|
20
|
+
"utils/responsive-component.js"
|
|
21
|
+
],
|
|
19
22
|
"compiler": {
|
|
20
23
|
"name": "@stencil/core",
|
|
21
|
-
"version": "4.
|
|
22
|
-
"typescriptVersion": "5.
|
|
24
|
+
"version": "4.45.2",
|
|
25
|
+
"typescriptVersion": "5.8.3"
|
|
23
26
|
},
|
|
24
27
|
"collections": [],
|
|
25
28
|
"bundles": []
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
* {
|
|
2
3
|
box-sizing: border-box;
|
|
3
4
|
}
|
|
4
5
|
|
|
6
|
+
/**
|
|
7
|
+
* @prop --content-accordion-icon: The marker after the trigger while closed. Defaults to '+'. Set it to none to hide it.
|
|
8
|
+
* @prop --content-accordion-icon-open: The marker after the trigger while open. Defaults to '−'.
|
|
9
|
+
*/
|
|
5
10
|
content-accordion {
|
|
6
11
|
display: block;
|
|
7
12
|
}
|
|
8
13
|
content-accordion > button {
|
|
9
|
-
display:
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: 1rem;
|
|
10
18
|
width: 100%;
|
|
11
19
|
padding: 0;
|
|
12
20
|
border: none;
|
|
13
21
|
font: inherit;
|
|
22
|
+
text-align: left;
|
|
23
|
+
text-decoration: none;
|
|
14
24
|
color: inherit;
|
|
15
25
|
background-color: transparent;
|
|
16
26
|
cursor: pointer;
|
|
@@ -20,4 +30,13 @@ content-accordion[expanded] > .content-accordion__reveal {
|
|
|
20
30
|
}
|
|
21
31
|
content-accordion > .content-accordion__reveal {
|
|
22
32
|
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(content-accordion > button)::after {
|
|
36
|
+
flex: none;
|
|
37
|
+
content: var(--content-accordion-icon, "+");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(content-accordion > button[aria-expanded=true])::after {
|
|
41
|
+
content: var(--content-accordion-icon-open, "−");
|
|
23
42
|
}
|
|
@@ -1,22 +1,48 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveComponent } from "../../utils/responsive-component";
|
|
3
|
+
let accordionCount = 0;
|
|
3
4
|
/**
|
|
5
|
+
* A button that shows and hides the content below it, such as an answer in a list of questions.
|
|
6
|
+
*
|
|
4
7
|
* @slot content - This slot will usually serve a content button.
|
|
5
8
|
* @slot trigger - This is the contents of the button that will expand / hide the accordion.
|
|
6
9
|
* @slot - Default slot, same as content slot.
|
|
7
10
|
*/
|
|
8
|
-
export class ContentAccordion {
|
|
11
|
+
export class ContentAccordion extends ResponsiveComponent {
|
|
9
12
|
constructor() {
|
|
10
|
-
|
|
11
|
-
this.open = 'false';
|
|
12
|
-
this.animationStart = 'animation-start';
|
|
13
|
-
this.animationEnd = 'animation-end';
|
|
14
|
-
this.triggerClass = '';
|
|
15
|
-
this.animationTime = 0;
|
|
16
|
-
this.isOpen = false;
|
|
17
|
-
this.randomID = '';
|
|
18
|
-
this.classString = '';
|
|
13
|
+
super();
|
|
19
14
|
}
|
|
15
|
+
hostElement;
|
|
16
|
+
revealElement;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type Boolean
|
|
20
|
+
* @responsive
|
|
21
|
+
*/
|
|
22
|
+
open = 'false';
|
|
23
|
+
/**
|
|
24
|
+
* The starting animation class in case you want to control content styling.
|
|
25
|
+
* @type String
|
|
26
|
+
*/
|
|
27
|
+
animationStart = 'animation-start';
|
|
28
|
+
/**
|
|
29
|
+
* The ending animation class in case you want to control content styling.
|
|
30
|
+
* @type String
|
|
31
|
+
*/
|
|
32
|
+
animationEnd = 'animation-end';
|
|
33
|
+
/**
|
|
34
|
+
* The class to be applied to the trigger button element.
|
|
35
|
+
* @type String
|
|
36
|
+
*/
|
|
37
|
+
triggerClass = '';
|
|
38
|
+
/**
|
|
39
|
+
* The amount of time in milliseconds to run the closing animation, before the class is removed
|
|
40
|
+
* @type Number
|
|
41
|
+
*/
|
|
42
|
+
animationTime = 0;
|
|
43
|
+
isOpen = false;
|
|
44
|
+
randomID = '';
|
|
45
|
+
timeoutHolder;
|
|
20
46
|
handleClickEvent(e) {
|
|
21
47
|
this.animateAccordion(!this.isOpen);
|
|
22
48
|
}
|
|
@@ -40,21 +66,20 @@ export class ContentAccordion {
|
|
|
40
66
|
}
|
|
41
67
|
componentWillLoad() {
|
|
42
68
|
this.revealElement = this.hostElement.querySelector('.js-content-accordion-reveal');
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
69
|
+
// aria-controls needs an id that is unique on the page. The old random index drew from the number of
|
|
70
|
+
// accordions on the page, so two accordions often got the same id.
|
|
71
|
+
this.randomID = this.hostElement.id ? `content-accordion_${this.hostElement.id}` : `content-accordion_${++accordionCount}`;
|
|
72
|
+
this.responsive({
|
|
73
|
+
open: value => {
|
|
74
|
+
this.isOpen = value === 'true';
|
|
75
|
+
if (this.isOpen) {
|
|
76
|
+
this.animateAccordion(true);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
54
79
|
});
|
|
55
80
|
}
|
|
56
81
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'afed931e898a61d076e7795346805d987ebec15e', class: this.classes, expanded: this.isOpen }, h("button", { key: '4d0c434d7c35e837641b9fd9b4af3c1829d81548', class: this.triggerClass, onClick: e => this.handleClickEvent(e), "aria-expanded": String(this.isOpen), "aria-controls": this.randomID }, h("slot", { key: 'be551c10a3ad2abf54f7c52d2f3bc05863316b77', name: "trigger" })), h("div", { key: 'aab4d02e563ea8e8b135698fff59a6318819f48c', id: this.randomID, class: "js-content-accordion-reveal content-accordion__reveal" }, h("slot", { key: 'f8713ddbcb0069f9324790efeddfd2b0e85c49f4', name: "content" }), h("slot", { key: '8f1ac4ed52789d7be47357ea47b7a91938814bdf' }))));
|
|
58
83
|
}
|
|
59
84
|
static get is() { return "content-accordion"; }
|
|
60
85
|
static get originalStyleUrls() {
|
|
@@ -71,7 +96,7 @@ export class ContentAccordion {
|
|
|
71
96
|
return {
|
|
72
97
|
"open": {
|
|
73
98
|
"type": "string",
|
|
74
|
-
"mutable":
|
|
99
|
+
"mutable": true,
|
|
75
100
|
"complexType": {
|
|
76
101
|
"original": "ResponsiveBoolean",
|
|
77
102
|
"resolved": "string",
|
|
@@ -79,7 +104,8 @@ export class ContentAccordion {
|
|
|
79
104
|
"ResponsiveBoolean": {
|
|
80
105
|
"location": "import",
|
|
81
106
|
"path": "../../typings",
|
|
82
|
-
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
107
|
+
"id": "src/typings.d.ts::ResponsiveBoolean",
|
|
108
|
+
"referenceLocation": "ResponsiveBoolean"
|
|
83
109
|
}
|
|
84
110
|
}
|
|
85
111
|
},
|
|
@@ -95,8 +121,10 @@ export class ContentAccordion {
|
|
|
95
121
|
}],
|
|
96
122
|
"text": ""
|
|
97
123
|
},
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
126
|
+
"reflect": true,
|
|
98
127
|
"attribute": "open",
|
|
99
|
-
"reflect": false,
|
|
100
128
|
"defaultValue": "'false'"
|
|
101
129
|
},
|
|
102
130
|
"animationStart": {
|
|
@@ -116,8 +144,10 @@ export class ContentAccordion {
|
|
|
116
144
|
}],
|
|
117
145
|
"text": "The starting animation class in case you want to control content styling."
|
|
118
146
|
},
|
|
147
|
+
"getter": false,
|
|
148
|
+
"setter": false,
|
|
149
|
+
"reflect": true,
|
|
119
150
|
"attribute": "animation-start",
|
|
120
|
-
"reflect": false,
|
|
121
151
|
"defaultValue": "'animation-start'"
|
|
122
152
|
},
|
|
123
153
|
"animationEnd": {
|
|
@@ -137,8 +167,10 @@ export class ContentAccordion {
|
|
|
137
167
|
}],
|
|
138
168
|
"text": "The ending animation class in case you want to control content styling."
|
|
139
169
|
},
|
|
170
|
+
"getter": false,
|
|
171
|
+
"setter": false,
|
|
172
|
+
"reflect": true,
|
|
140
173
|
"attribute": "animation-end",
|
|
141
|
-
"reflect": false,
|
|
142
174
|
"defaultValue": "'animation-end'"
|
|
143
175
|
},
|
|
144
176
|
"triggerClass": {
|
|
@@ -158,8 +190,10 @@ export class ContentAccordion {
|
|
|
158
190
|
}],
|
|
159
191
|
"text": "The class to be applied to the trigger button element."
|
|
160
192
|
},
|
|
193
|
+
"getter": false,
|
|
194
|
+
"setter": false,
|
|
195
|
+
"reflect": true,
|
|
161
196
|
"attribute": "trigger-class",
|
|
162
|
-
"reflect": false,
|
|
163
197
|
"defaultValue": "''"
|
|
164
198
|
},
|
|
165
199
|
"animationTime": {
|
|
@@ -179,8 +213,10 @@ export class ContentAccordion {
|
|
|
179
213
|
}],
|
|
180
214
|
"text": "The amount of time in milliseconds to run the closing animation, before the class is removed"
|
|
181
215
|
},
|
|
216
|
+
"getter": false,
|
|
217
|
+
"setter": false,
|
|
218
|
+
"reflect": true,
|
|
182
219
|
"attribute": "animation-time",
|
|
183
|
-
"reflect": false,
|
|
184
220
|
"defaultValue": "0"
|
|
185
221
|
}
|
|
186
222
|
};
|
|
@@ -189,10 +225,8 @@ export class ContentAccordion {
|
|
|
189
225
|
return {
|
|
190
226
|
"revealElement": {},
|
|
191
227
|
"isOpen": {},
|
|
192
|
-
"randomID": {}
|
|
193
|
-
"classString": {}
|
|
228
|
+
"randomID": {}
|
|
194
229
|
};
|
|
195
230
|
}
|
|
196
231
|
static get elementRef() { return "hostElement"; }
|
|
197
232
|
}
|
|
198
|
-
//# sourceMappingURL=content-accordion.js.map
|