@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,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement,
|
|
2
|
-
import {
|
|
3
|
-
import { c as createFocusTrap } from './
|
|
1
|
+
import { p as proxyCustomElement, i as createEvent, h, H as Host, t as transformTag } from './utils.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component.js';
|
|
3
|
+
import { c as createFocusTrap } from './focus-trap.esm.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @namespace aria
|
|
@@ -436,30 +436,82 @@ aria.replaceDialog = function (newDialogId, newFocusAfterClosed, newFocusFirst)
|
|
|
436
436
|
}; // end replaceDialog
|
|
437
437
|
window.aria = aria;
|
|
438
438
|
|
|
439
|
-
const contentOverlayCss =
|
|
440
|
-
const ContentOverlayStyle0 = contentOverlayCss;
|
|
439
|
+
const contentOverlayCss = () => `*{box-sizing:border-box}.content-overlay-open--fixed{overflow:hidden}.content-block-overlay-container{position:relative;display:block;width:100%;height:100%}content-overlay{display:none;position:relative;flex:0}content-overlay[size=mini] .content-overlay-background.active{display:flex;align-items:center;justify-content:center}content-overlay .content-overlay__content>*[slot=content]{height:100%;overflow:auto}content-overlay.content-overlay-active{display:flex}content-overlay[vertical=left]{align-items:flex-start}content-overlay[vertical=center]{align-items:center}content-overlay[vertical=right]{align-items:flex-end}content-overlay[vertical=top]{justify-content:flex-start;top:0}content-overlay[vertical=center]{justify-content:center}content-overlay[vertical=bottom]{justify-content:flex-end;bottom:0}content-overlay .content-overlay-background{background:var(--content-overlay-backdrop, rgba(255, 255, 255, 0.6));bottom:0;display:none;top:0;z-index:100000;right:0;left:0;width:100%}content-overlay .content-overlay-background.active{display:block}content-overlay .content-overlay__header{display:flex;align-items:center}content-overlay:not([size=mini]) .content-overlay__header--floating{position:absolute;top:0;right:0;z-index:2}content-overlay [role=dialog]{position:relative}content-overlay .content-overlay__close{order:2;margin-left:auto;cursor:pointer;z-index:1;appearance:none;background:none;border:none;min-width:40px;color:inherit}content-overlay[data-position=fixed] .content-overlay-background{position:fixed}content-overlay[data-position=absolute]{position:absolute;box-sizing:border-box;z-index:100000;height:100%;width:100%;top:0;left:0}content-overlay[data-position=absolute] .content-overlay-background{position:static}content-overlay[data-position=absolute] .content-overlay__content,content-overlay[data-position=fixed] .content-overlay__content{flex:1;overflow:auto}content-overlay [role=dialog]{display:flex;flex-direction:column;height:100%;justify-content:flex-start}content-overlay [role=dialog].hidden{display:none}content-overlay[full-screen=true]{height:100%}content-overlay[full-screen=true] .content-overlay-background{height:100%}content-overlay:where([size=mini]) .content-overlay-background.active{padding:1rem;background:var(--content-overlay-backdrop, rgba(0, 0, 0, 0.7))}content-overlay:where([size=mini]) [role=dialog]{width:100%;height:auto;max-width:var(--content-overlay-max-width, 640px);max-height:100%;padding:var(--content-overlay-padding, 1.5rem);overflow:auto;background:var(--content-overlay-background, #fff);border-radius:var(--content-overlay-radius, 4px)}body.has-dialog{overflow:hidden}`;
|
|
441
440
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
441
|
+
let overlayCount = 0;
|
|
442
|
+
const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay extends ResponsiveComponent {
|
|
443
|
+
constructor(registerHost) {
|
|
444
|
+
super(false);
|
|
445
|
+
if (registerHost !== false) {
|
|
446
|
+
this.__registerHost();
|
|
447
|
+
}
|
|
446
448
|
this.contentOverlayActivated = createEvent(this, "contentOverlayActivated", 7);
|
|
447
|
-
this.
|
|
448
|
-
this.open = 'false';
|
|
449
|
-
this.fullScreen = 'true';
|
|
450
|
-
this.classes = undefined;
|
|
451
|
-
this.horizontal = 'center';
|
|
452
|
-
this.vertical = 'center';
|
|
453
|
-
this.closeTitle = 'Close Overlay';
|
|
454
|
-
this.position = 'fixed';
|
|
455
|
-
this.isActive = false;
|
|
456
|
-
this.activeClass = '';
|
|
457
|
-
this.classString = '';
|
|
458
|
-
this.contentSlot = undefined;
|
|
459
|
-
this.isFullScreen = false;
|
|
460
|
-
this.hasCloseButton = false;
|
|
461
|
-
this.originalMarkup = undefined;
|
|
449
|
+
this.contentOverlayDeactivated = createEvent(this, "contentOverlayDeactivated", 7);
|
|
462
450
|
}
|
|
451
|
+
get hostElement() { return this; }
|
|
452
|
+
/**
|
|
453
|
+
* What the overlay covers. "body", the default, covers the whole screen. A CSS selector, such as "#hero",
|
|
454
|
+
* covers that element instead: the overlay moves into it when it opens. Use pipes to cover the screen on
|
|
455
|
+
* phones and an element on wider screens: fill="body|#hero".
|
|
456
|
+
* @type String
|
|
457
|
+
* @responsive
|
|
458
|
+
*/
|
|
459
|
+
fill = 'body';
|
|
460
|
+
/**
|
|
461
|
+
* @type Boolean
|
|
462
|
+
* @responsive
|
|
463
|
+
*/
|
|
464
|
+
open = 'false';
|
|
465
|
+
/**
|
|
466
|
+
* @type Boolean
|
|
467
|
+
* @responsive
|
|
468
|
+
*/
|
|
469
|
+
fullScreen = 'true';
|
|
470
|
+
/**
|
|
471
|
+
* A pipe delimited setting for horizontal alignment. This only applies when fullscreen mode is activated.
|
|
472
|
+
* @type Select
|
|
473
|
+
* @options default
|
|
474
|
+
* @options left
|
|
475
|
+
* @options center
|
|
476
|
+
* @options right
|
|
477
|
+
* @responsive
|
|
478
|
+
*/
|
|
479
|
+
horizontal = 'center';
|
|
480
|
+
/**
|
|
481
|
+
* A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated.
|
|
482
|
+
* @type Select
|
|
483
|
+
* @options top
|
|
484
|
+
* @options center
|
|
485
|
+
* @options bottom
|
|
486
|
+
*/
|
|
487
|
+
vertical = 'center';
|
|
488
|
+
/**
|
|
489
|
+
* Title attribute value for the close button.
|
|
490
|
+
* @type String
|
|
491
|
+
*/
|
|
492
|
+
closeTitle = 'Close Overlay';
|
|
493
|
+
/**
|
|
494
|
+
* The accessible name of the dialog. Only needed when there is no header slot, which names it otherwise.
|
|
495
|
+
* @type String
|
|
496
|
+
*/
|
|
497
|
+
label;
|
|
498
|
+
headerId;
|
|
499
|
+
// Worked out from fill: fixed over the screen, or absolute inside the element it fills.
|
|
500
|
+
position = 'fixed';
|
|
501
|
+
// The body class added when it opened, so closing removes that one even if the breakpoint changed since.
|
|
502
|
+
openClass;
|
|
503
|
+
isActive = false;
|
|
504
|
+
activeClass = '';
|
|
505
|
+
contentOverlayActivated;
|
|
506
|
+
contentOverlayDeactivated;
|
|
507
|
+
contentSlot;
|
|
508
|
+
dialogElement;
|
|
509
|
+
contentElement;
|
|
510
|
+
isFullScreen = false;
|
|
511
|
+
hasCloseButton = false;
|
|
512
|
+
originalMarkup;
|
|
513
|
+
ariaDialog;
|
|
514
|
+
focusTrap;
|
|
463
515
|
onContentBlockToggle(event) {
|
|
464
516
|
if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {
|
|
465
517
|
event.preventDefault();
|
|
@@ -485,24 +537,25 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
|
|
|
485
537
|
}
|
|
486
538
|
async openOverlay() {
|
|
487
539
|
this.isActive = true;
|
|
488
|
-
|
|
540
|
+
if (this.openClass)
|
|
541
|
+
document.body.classList.remove(this.openClass);
|
|
542
|
+
this.openClass = `content-overlay-open--${this.position}`;
|
|
543
|
+
document.body.classList.add(`content-overlay-open`, this.openClass);
|
|
489
544
|
document.body.classList.remove('content-overlay-close');
|
|
490
545
|
if (!this.originalMarkup) {
|
|
491
546
|
this.originalMarkup = this.contentSlot.innerHTML;
|
|
492
547
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
548
|
+
// Filling an element: move into it, so it is what the absolute overlay is placed against.
|
|
549
|
+
if (this.position === 'absolute') {
|
|
550
|
+
const fillElement = document.querySelector(this.fill);
|
|
551
|
+
if (fillElement) {
|
|
552
|
+
fillElement.classList.add('content-block-overlay-container');
|
|
553
|
+
if (this.hostElement.parentElement !== fillElement)
|
|
554
|
+
fillElement.appendChild(this.hostElement);
|
|
498
555
|
}
|
|
499
|
-
// } else if (this.isFullScreen) {
|
|
500
|
-
// if (document.querySelectorAll(`#${this.hostElement.getAttribute('id')}`).length === 1) {
|
|
501
|
-
// document.body.appendChild(this.hostElement);
|
|
502
|
-
// }
|
|
503
556
|
}
|
|
504
|
-
if (this.originalMarkup) {
|
|
505
|
-
this.contentSlot.
|
|
557
|
+
if (this.originalMarkup.length) {
|
|
558
|
+
// this.contentSlot.appendChild(this.contentSlot);
|
|
506
559
|
if (this.contentSlot.children[0] === this.contentSlot.querySelector('script[slot="content"][type="text/template"]')) {
|
|
507
560
|
this.contentSlot.innerHTML = this.contentSlot.children[0].innerHTML;
|
|
508
561
|
}
|
|
@@ -512,18 +565,24 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
|
|
|
512
565
|
allowOutsideClick: true,
|
|
513
566
|
clickOutsideDeactivates: true,
|
|
514
567
|
onDeactivate: () => {
|
|
515
|
-
this.
|
|
516
|
-
|
|
517
|
-
document.body.classList.remove(`content-overlay-open`, `content-overlay-open--${this.position}`);
|
|
518
|
-
this.activeClass = '';
|
|
519
|
-
this.setComputedActiveClass();
|
|
520
|
-
this.contentSlot.innerHTML = '';
|
|
568
|
+
this.closeOverlay();
|
|
569
|
+
// this.contentSlot.innerHTML = '';
|
|
521
570
|
},
|
|
522
571
|
});
|
|
523
572
|
}
|
|
524
573
|
this.contentOverlayActivated.emit(this.hostElement);
|
|
525
574
|
}
|
|
526
575
|
async closeOverlay() {
|
|
576
|
+
this.open = 'false';
|
|
577
|
+
this.isActive = false;
|
|
578
|
+
document.body.classList.add('content-overlay-close');
|
|
579
|
+
document.body.classList.remove(`content-overlay-open`);
|
|
580
|
+
if (this.openClass)
|
|
581
|
+
document.body.classList.remove(this.openClass);
|
|
582
|
+
this.openClass = undefined;
|
|
583
|
+
this.activeClass = '';
|
|
584
|
+
this.setComputedActiveClass();
|
|
585
|
+
this.contentOverlayDeactivated.emit(this.hostElement);
|
|
527
586
|
if (this.focusTrap) {
|
|
528
587
|
try {
|
|
529
588
|
this.focusTrap.deactivate();
|
|
@@ -537,27 +596,30 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
|
|
|
537
596
|
this.activeClass = `content-overlay ${this.isActive ? 'content-overlay-active' : 'content-overlay-inactive'} content-overlay--${this.position}`;
|
|
538
597
|
}
|
|
539
598
|
componentWillLoad() {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
this.isFullScreen = newValue === 'true';
|
|
547
|
-
});
|
|
548
|
-
WindowResizeService.registerProp(this.open).subscribe(newValue => {
|
|
549
|
-
this.hostElement.setAttribute('open', newValue);
|
|
599
|
+
this.responsive({
|
|
600
|
+
fill: value => (this.position = !value || value === 'body' ? 'fixed' : 'absolute'),
|
|
601
|
+
horizontal: true,
|
|
602
|
+
vertical: true,
|
|
603
|
+
fullScreen: value => (this.isFullScreen = value === 'true'),
|
|
604
|
+
open: true,
|
|
550
605
|
});
|
|
551
606
|
this.hasCloseButton = !!this.hostElement.querySelector('[slot="closeButton"]');
|
|
607
|
+
// A dialog needs an accessible name. Use the header when there is one.
|
|
608
|
+
const header = this.hostElement.querySelector('[slot="header"]');
|
|
609
|
+
if (header) {
|
|
610
|
+
if (!header.id)
|
|
611
|
+
header.id = `${this.hostElement.id || 'content-overlay'}-header-${++overlayCount}`;
|
|
612
|
+
this.headerId = header.id;
|
|
613
|
+
}
|
|
552
614
|
}
|
|
553
615
|
closeOverlayButtonClicked(event) {
|
|
554
616
|
event.preventDefault();
|
|
555
617
|
this.closeOverlay();
|
|
556
618
|
}
|
|
557
619
|
render() {
|
|
558
|
-
return (h(Host, { key: '
|
|
620
|
+
return (h(Host, { key: '5583180cde2dc429eb16f061b7ee27127b5a5fdc', class: `${this.activeClass} ${this.classes ?? ''}`, "data-position": this.position }, h("div", { key: '0c3f8c4d3cdfb2e5b9760f35cda0cedc323cc613', class: "content-block-overlay-container" }, h("div", { key: 'afc077dc0358c21f6dd5598de7c52a6736974d4a', class: `content-overlay-background ${this.isActive ? 'active' : ''}` }, h("div", { key: '3ea4cc41fc92ba137773ac47876298aa67301714', ref: element => (this.dialogElement = element), role: "dialog", "aria-modal": "true", "aria-labelledby": this.label ? null : this.headerId, "aria-label": this.label, class: this.isActive ? 'active' : 'hidden' }, h("div", { key: 'bb6c54519e56db042dd105383ab101ceb574b65c', class: `content-overlay__header ${this.headerId ? '' : 'content-overlay__header--floating'}` }, h("button", { key: 'a61445e4018523b78c736cec722e012c300decbf', onClick: e => {
|
|
559
621
|
this.closeOverlayButtonClicked(e);
|
|
560
|
-
}, class: "content-overlay__close", title: this.closeTitle }, !this.hasCloseButton && (h("svg", { key: '
|
|
622
|
+
}, class: "content-overlay__close", title: this.closeTitle }, !this.hasCloseButton && (h("svg", { key: 'e8200f0bed44bde0f2cee06461b9a265cfdd8a32', xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor" }, h("path", { key: '53eaa272b533de926676af3e6c5b80db34b950a4', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M6 18 18 6M6 6l12 12" }))), h("slot", { key: '476576100dac59d8add01d0e1ea87f793931acaf', name: "closeButton" })), h("slot", { key: '5f78cb80a79591c7769c14986f9f5b8bef85dda1', name: "header" })), h("div", { key: 'f3119738fa6d2d15b60194d544a401217d95ec14', class: "content-overlay__content", ref: (el) => (this.contentSlot = el) }, h("slot", { key: 'd94ffcf5050c24b447f6515d4085f499103d0dbf', name: "content" }), h("slot", { key: '6509e134526d04be323399f4ae8559bb3a52dfbd' })))))));
|
|
561
623
|
}
|
|
562
624
|
componentDidRender() {
|
|
563
625
|
if (this.open === 'true') {
|
|
@@ -572,20 +634,21 @@ const ContentOverlay$1 = /*@__PURE__*/ proxyCustomElement(class ContentOverlay e
|
|
|
572
634
|
}
|
|
573
635
|
}
|
|
574
636
|
}
|
|
575
|
-
get
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
"
|
|
637
|
+
static get style() { return contentOverlayCss(); }
|
|
638
|
+
}, [772, "content-overlay", {
|
|
639
|
+
"classes": [1537],
|
|
640
|
+
"padding": [1537],
|
|
641
|
+
"fill": [1537],
|
|
579
642
|
"open": [1537],
|
|
580
643
|
"fullScreen": [1537, "full-screen"],
|
|
581
|
-
"classes": [1],
|
|
582
644
|
"horizontal": [1537],
|
|
583
645
|
"vertical": [1537],
|
|
584
|
-
"closeTitle": [
|
|
585
|
-
"
|
|
646
|
+
"closeTitle": [513, "close-title"],
|
|
647
|
+
"label": [513],
|
|
648
|
+
"headerId": [32],
|
|
649
|
+
"position": [32],
|
|
586
650
|
"isActive": [32],
|
|
587
651
|
"activeClass": [32],
|
|
588
|
-
"classString": [32],
|
|
589
652
|
"contentSlot": [32],
|
|
590
653
|
"isFullScreen": [32],
|
|
591
654
|
"hasCloseButton": [32],
|
|
@@ -600,17 +663,15 @@ function defineCustomElement$1() {
|
|
|
600
663
|
const components = ["content-overlay"];
|
|
601
664
|
components.forEach(tagName => { switch (tagName) {
|
|
602
665
|
case "content-overlay":
|
|
603
|
-
if (!customElements.get(tagName)) {
|
|
604
|
-
customElements.define(tagName, ContentOverlay$1);
|
|
666
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
667
|
+
customElements.define(transformTag(tagName), ContentOverlay$1);
|
|
605
668
|
}
|
|
606
669
|
break;
|
|
607
670
|
} });
|
|
608
671
|
}
|
|
609
|
-
defineCustomElement$1();
|
|
672
|
+
defineCustomElement$1(ContentOverlay$1);
|
|
610
673
|
|
|
611
674
|
const ContentOverlay = ContentOverlay$1;
|
|
612
675
|
const defineCustomElement = defineCustomElement$1;
|
|
613
676
|
|
|
614
677
|
export { ContentOverlay, defineCustomElement };
|
|
615
|
-
|
|
616
|
-
//# sourceMappingURL=content-overlay.js.map
|
|
@@ -1,64 +1,82 @@
|
|
|
1
|
-
import { p as proxyCustomElement,
|
|
2
|
-
import {
|
|
1
|
+
import { p as proxyCustomElement, h, H as Host, t as transformTag } from './utils.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component.js';
|
|
3
3
|
|
|
4
|
-
const contentSpacerCss =
|
|
5
|
-
const ContentSpacerStyle0 = contentSpacerCss;
|
|
4
|
+
const contentSpacerCss = () => `*{box-sizing:border-box}content-spacer{display:block;width:100%;height:auto}content-spacer .content-spacer__content{width:100%}content-spacer[full-height=true]{height:100%}content-spacer[text-align=left]{text-align:left}content-spacer[text-align=center]{text-align:center}content-spacer[text-align=right]{text-align:right}content-spacer[horizontal=left]{margin-left:0;margin-right:auto}content-spacer[horizontal=center]{margin-left:auto;margin-right:auto}content-spacer[horizontal=right]{margin-left:auto;margin-right:0}content-spacer[vertical]{display:flex}content-spacer[vertical=top]{align-items:flex-start}content-spacer[vertical=center]{align-items:center}content-spacer[vertical=bottom]{align-items:flex-end}`;
|
|
6
5
|
|
|
7
|
-
const ContentSpacingWrapper = /*@__PURE__*/ proxyCustomElement(class ContentSpacingWrapper extends
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.maxWidth = '100';
|
|
14
|
-
this.fullHeight = 'false';
|
|
15
|
-
this.textAlign = 'default';
|
|
16
|
-
this.horizontal = 'default';
|
|
17
|
-
this.vertical = '';
|
|
18
|
-
this.topOffset = '0';
|
|
19
|
-
this.bottomOffset = '0';
|
|
20
|
-
this.leftOffset = '0';
|
|
21
|
-
this.rightOffset = '0';
|
|
22
|
-
this.inlineStyle = {};
|
|
6
|
+
const ContentSpacingWrapper = /*@__PURE__*/ proxyCustomElement(class ContentSpacingWrapper extends ResponsiveComponent {
|
|
7
|
+
constructor(registerHost) {
|
|
8
|
+
super(false);
|
|
9
|
+
if (registerHost !== false) {
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
}
|
|
23
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Pipe separated list of max width numbers. You can also use units such as "px" and "vw".
|
|
15
|
+
* @type String
|
|
16
|
+
* @responsive
|
|
17
|
+
*/
|
|
18
|
+
maxWidth = '100';
|
|
19
|
+
/**
|
|
20
|
+
* 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.
|
|
21
|
+
* @type Boolean
|
|
22
|
+
* @responsive
|
|
23
|
+
*/
|
|
24
|
+
fullHeight = 'false';
|
|
25
|
+
/**
|
|
26
|
+
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
27
|
+
* @type Select
|
|
28
|
+
* @options default
|
|
29
|
+
* @options left
|
|
30
|
+
* @options center
|
|
31
|
+
* @options right
|
|
32
|
+
* @responsive
|
|
33
|
+
*/
|
|
34
|
+
textAlign = 'default';
|
|
35
|
+
/**
|
|
36
|
+
* Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.
|
|
37
|
+
* @type Select
|
|
38
|
+
* @options default
|
|
39
|
+
* @options left
|
|
40
|
+
* @options center
|
|
41
|
+
* @options right
|
|
42
|
+
* @responsive
|
|
43
|
+
*/
|
|
44
|
+
horizontal = 'default';
|
|
45
|
+
/**
|
|
46
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
47
|
+
* @type Select
|
|
48
|
+
* @options top
|
|
49
|
+
* @options center
|
|
50
|
+
* @options bottom
|
|
51
|
+
* @options default
|
|
52
|
+
* @responsive
|
|
53
|
+
*/
|
|
54
|
+
vertical = '';
|
|
55
|
+
inlineStyle = {};
|
|
24
56
|
componentWillLoad() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
57
|
+
// Unitless numbers are percentages.
|
|
58
|
+
const percent = (value) => (isNaN(Number(value)) ? value : value + '%');
|
|
59
|
+
const style = (property) => (value) => (this.inlineStyle = { ...this.inlineStyle, [property]: percent(value) });
|
|
60
|
+
this.responsive({
|
|
61
|
+
fullHeight: true,
|
|
62
|
+
textAlign: true,
|
|
63
|
+
horizontal: true,
|
|
64
|
+
vertical: true,
|
|
65
|
+
maxWidth: style('max-width'),
|
|
31
66
|
});
|
|
32
|
-
WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {
|
|
33
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-top': isNaN(newValue) ? newValue : newValue + '%' });
|
|
34
|
-
});
|
|
35
|
-
WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {
|
|
36
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-bottom': isNaN(newValue) ? newValue : newValue + '%' });
|
|
37
|
-
});
|
|
38
|
-
WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {
|
|
39
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-left': isNaN(newValue) ? newValue : newValue + '%' });
|
|
40
|
-
});
|
|
41
|
-
WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {
|
|
42
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-right': isNaN(newValue) ? newValue : newValue + '%' });
|
|
43
|
-
});
|
|
44
|
-
WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));
|
|
45
67
|
}
|
|
46
68
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: 'b038211cd15eaf1875f04f6914a91ffc12a11cd4', class: this.classes, style: this.inlineStyle }, h("div", { key: '9ba99da788f6a2478936ebe8e59793eb53cde227', class: "content-spacer__content" }, h("slot", { key: '07abb4f5a5ab3dda47884d112c3971a9f3846d05', name: "content" }), h("slot", { key: '4acd8926c54c62a894906ee6baa8262eeefc6e3b' }))));
|
|
48
70
|
}
|
|
49
|
-
static get style() { return
|
|
50
|
-
}, [
|
|
51
|
-
"classes": [
|
|
52
|
-
"
|
|
71
|
+
static get style() { return contentSpacerCss(); }
|
|
72
|
+
}, [772, "content-spacer", {
|
|
73
|
+
"classes": [1537],
|
|
74
|
+
"padding": [1537],
|
|
75
|
+
"maxWidth": [1537, "max-width"],
|
|
53
76
|
"fullHeight": [1537, "full-height"],
|
|
54
77
|
"textAlign": [1537, "text-align"],
|
|
55
78
|
"horizontal": [1537],
|
|
56
79
|
"vertical": [1537],
|
|
57
|
-
"topOffset": [1, "top-offset"],
|
|
58
|
-
"bottomOffset": [1, "bottom-offset"],
|
|
59
|
-
"leftOffset": [1, "left-offset"],
|
|
60
|
-
"rightOffset": [1, "right-offset"],
|
|
61
|
-
"classString": [32],
|
|
62
80
|
"inlineStyle": [32]
|
|
63
81
|
}]);
|
|
64
82
|
function defineCustomElement$1() {
|
|
@@ -68,17 +86,15 @@ function defineCustomElement$1() {
|
|
|
68
86
|
const components = ["content-spacer"];
|
|
69
87
|
components.forEach(tagName => { switch (tagName) {
|
|
70
88
|
case "content-spacer":
|
|
71
|
-
if (!customElements.get(tagName)) {
|
|
72
|
-
customElements.define(tagName, ContentSpacingWrapper);
|
|
89
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
90
|
+
customElements.define(transformTag(tagName), ContentSpacingWrapper);
|
|
73
91
|
}
|
|
74
92
|
break;
|
|
75
93
|
} });
|
|
76
94
|
}
|
|
77
|
-
defineCustomElement$1();
|
|
95
|
+
defineCustomElement$1(ContentSpacingWrapper);
|
|
78
96
|
|
|
79
97
|
const ContentSpacer = ContentSpacingWrapper;
|
|
80
98
|
const defineCustomElement = defineCustomElement$1;
|
|
81
99
|
|
|
82
100
|
export { ContentSpacer, defineCustomElement };
|
|
83
|
-
|
|
84
|
-
//# sourceMappingURL=content-spacer.js.map
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { p as proxyCustomElement,
|
|
2
|
-
import {
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-e9bce2ab.js';
|
|
1
|
+
import { p as proxyCustomElement, h, H as Host, t as transformTag } from './utils.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component.js';
|
|
4
3
|
|
|
5
|
-
const contentSplitBlockCss =
|
|
6
|
-
const ContentSplitBlockStyle0 = contentSplitBlockCss;
|
|
4
|
+
const contentSplitBlockCss = () => `*{box-sizing:border-box}content-split-block{display:flex;flex-wrap:wrap}content-split-block>[slot]{min-width:0;flex:0 0 auto;width:calc(100% / var(--columns))}content-split-block{width:100%}content-split-block>[slot]{flex-grow:1;flex-shrink:1}content-split-block[reverse=true]>[slot=column1]{order:2}content-split-block[reverse=true]>[slot=column2]{order:1}`;
|
|
7
5
|
|
|
8
|
-
const ContentSplitBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentSplitBlock extends
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.classes = undefined;
|
|
15
|
-
this.classString = undefined;
|
|
6
|
+
const ContentSplitBlock$1 = /*@__PURE__*/ proxyCustomElement(class ContentSplitBlock extends ResponsiveComponent {
|
|
7
|
+
constructor(registerHost) {
|
|
8
|
+
super(false);
|
|
9
|
+
if (registerHost !== false) {
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
}
|
|
16
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* @type Boolean
|
|
15
|
+
* @responsive
|
|
16
|
+
*/
|
|
17
|
+
reverse = false;
|
|
18
|
+
/**
|
|
19
|
+
* @type Number
|
|
20
|
+
* @responsive
|
|
21
|
+
*/
|
|
22
|
+
columns = '1|2';
|
|
17
23
|
componentWillLoad() {
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
this.responsive({
|
|
25
|
+
columns: true,
|
|
26
|
+
reverse: true,
|
|
27
|
+
});
|
|
20
28
|
}
|
|
21
29
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '9e3fefcfbb031aa20922d1865b349e254d066aa0', class: this.classes, reverse: this.reverse, style: { '--columns': this.columns } }, h("slot", { key: '1a3d8b391b6f5623a9e980f40914f748bb88ed01', name: "column1" }), h("slot", { key: 'ba2fcb58ca2819315ecd11d4023a307bcd04a625', name: "column2" })));
|
|
23
31
|
}
|
|
24
|
-
static get style() { return
|
|
25
|
-
}, [
|
|
26
|
-
"reverse": [1544],
|
|
27
|
-
"columns": [1],
|
|
32
|
+
static get style() { return contentSplitBlockCss(); }
|
|
33
|
+
}, [772, "content-split-block", {
|
|
28
34
|
"classes": [1537],
|
|
29
|
-
"
|
|
35
|
+
"padding": [1537],
|
|
36
|
+
"reverse": [1544],
|
|
37
|
+
"columns": [1537]
|
|
30
38
|
}]);
|
|
31
39
|
function defineCustomElement$1() {
|
|
32
40
|
if (typeof customElements === "undefined") {
|
|
33
41
|
return;
|
|
34
42
|
}
|
|
35
|
-
const components = ["content-split-block"
|
|
43
|
+
const components = ["content-split-block"];
|
|
36
44
|
components.forEach(tagName => { switch (tagName) {
|
|
37
45
|
case "content-split-block":
|
|
38
|
-
if (!customElements.get(tagName)) {
|
|
39
|
-
customElements.define(tagName, ContentSplitBlock$1);
|
|
40
|
-
}
|
|
41
|
-
break;
|
|
42
|
-
case "content-grid-formatter":
|
|
43
|
-
if (!customElements.get(tagName)) {
|
|
44
|
-
defineCustomElement$2();
|
|
46
|
+
if (!customElements.get(transformTag(tagName))) {
|
|
47
|
+
customElements.define(transformTag(tagName), ContentSplitBlock$1);
|
|
45
48
|
}
|
|
46
49
|
break;
|
|
47
50
|
} });
|
|
48
51
|
}
|
|
49
|
-
defineCustomElement$1();
|
|
52
|
+
defineCustomElement$1(ContentSplitBlock$1);
|
|
50
53
|
|
|
51
54
|
const ContentSplitBlock = ContentSplitBlock$1;
|
|
52
55
|
const defineCustomElement = defineCustomElement$1;
|
|
53
56
|
|
|
54
57
|
export { ContentSplitBlock, defineCustomElement };
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=content-split-block.js.map
|