@content-blocks/js 0.7.7 → 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} +14541 -12905
- 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 +123 -73
- 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 +14605 -11951
- 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} +14516 -12868
- 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 +892 -198
- 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 +6 -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 +74 -64
- 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-398760b3.entry.js +0 -26
- package/dist/content-blocks/p-398760b3.entry.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-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,31 +1,84 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveComponent } from "../../utils/responsive-component";
|
|
3
3
|
import * as focusTrap from "focus-trap";
|
|
4
4
|
import "./libraries/aria-utilities";
|
|
5
5
|
import "./libraries/aria-dialog";
|
|
6
|
+
let overlayCount = 0;
|
|
6
7
|
/**
|
|
8
|
+
* A dialog that opens over the page, or inside another element, and keeps keyboard focus inside it while open.
|
|
9
|
+
*
|
|
7
10
|
* @slot closeButton - Contents of the overlay close button.
|
|
8
11
|
* @slot header - This is adjacent to the close button, usually a header or title for the overlay.
|
|
9
12
|
* @slot content - Contents that sit inside the overlay.
|
|
10
13
|
*/
|
|
11
|
-
export class ContentOverlay {
|
|
14
|
+
export class ContentOverlay extends ResponsiveComponent {
|
|
12
15
|
constructor() {
|
|
13
|
-
|
|
14
|
-
this.open = 'false';
|
|
15
|
-
this.fullScreen = 'true';
|
|
16
|
-
this.classes = undefined;
|
|
17
|
-
this.horizontal = 'center';
|
|
18
|
-
this.vertical = 'center';
|
|
19
|
-
this.closeTitle = 'Close Overlay';
|
|
20
|
-
this.position = 'fixed';
|
|
21
|
-
this.isActive = false;
|
|
22
|
-
this.activeClass = '';
|
|
23
|
-
this.classString = '';
|
|
24
|
-
this.contentSlot = undefined;
|
|
25
|
-
this.isFullScreen = false;
|
|
26
|
-
this.hasCloseButton = false;
|
|
27
|
-
this.originalMarkup = undefined;
|
|
16
|
+
super();
|
|
28
17
|
}
|
|
18
|
+
hostElement;
|
|
19
|
+
/**
|
|
20
|
+
* What the overlay covers. "body", the default, covers the whole screen. A CSS selector, such as "#hero",
|
|
21
|
+
* covers that element instead: the overlay moves into it when it opens. Use pipes to cover the screen on
|
|
22
|
+
* phones and an element on wider screens: fill="body|#hero".
|
|
23
|
+
* @type String
|
|
24
|
+
* @responsive
|
|
25
|
+
*/
|
|
26
|
+
fill = 'body';
|
|
27
|
+
/**
|
|
28
|
+
* @type Boolean
|
|
29
|
+
* @responsive
|
|
30
|
+
*/
|
|
31
|
+
open = 'false';
|
|
32
|
+
/**
|
|
33
|
+
* @type Boolean
|
|
34
|
+
* @responsive
|
|
35
|
+
*/
|
|
36
|
+
fullScreen = 'true';
|
|
37
|
+
/**
|
|
38
|
+
* A pipe delimited setting for horizontal alignment. This only applies when fullscreen mode is activated.
|
|
39
|
+
* @type Select
|
|
40
|
+
* @options default
|
|
41
|
+
* @options left
|
|
42
|
+
* @options center
|
|
43
|
+
* @options right
|
|
44
|
+
* @responsive
|
|
45
|
+
*/
|
|
46
|
+
horizontal = 'center';
|
|
47
|
+
/**
|
|
48
|
+
* A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated.
|
|
49
|
+
* @type Select
|
|
50
|
+
* @options top
|
|
51
|
+
* @options center
|
|
52
|
+
* @options bottom
|
|
53
|
+
*/
|
|
54
|
+
vertical = 'center';
|
|
55
|
+
/**
|
|
56
|
+
* Title attribute value for the close button.
|
|
57
|
+
* @type String
|
|
58
|
+
*/
|
|
59
|
+
closeTitle = 'Close Overlay';
|
|
60
|
+
/**
|
|
61
|
+
* The accessible name of the dialog. Only needed when there is no header slot, which names it otherwise.
|
|
62
|
+
* @type String
|
|
63
|
+
*/
|
|
64
|
+
label;
|
|
65
|
+
headerId;
|
|
66
|
+
// Worked out from fill: fixed over the screen, or absolute inside the element it fills.
|
|
67
|
+
position = 'fixed';
|
|
68
|
+
// The body class added when it opened, so closing removes that one even if the breakpoint changed since.
|
|
69
|
+
openClass;
|
|
70
|
+
isActive = false;
|
|
71
|
+
activeClass = '';
|
|
72
|
+
contentOverlayActivated;
|
|
73
|
+
contentOverlayDeactivated;
|
|
74
|
+
contentSlot;
|
|
75
|
+
dialogElement;
|
|
76
|
+
contentElement;
|
|
77
|
+
isFullScreen = false;
|
|
78
|
+
hasCloseButton = false;
|
|
79
|
+
originalMarkup;
|
|
80
|
+
ariaDialog;
|
|
81
|
+
focusTrap;
|
|
29
82
|
onContentBlockToggle(event) {
|
|
30
83
|
if (this.hostElement.getAttribute('id') === event.detail.getAttribute('id')) {
|
|
31
84
|
event.preventDefault();
|
|
@@ -51,24 +104,25 @@ export class ContentOverlay {
|
|
|
51
104
|
}
|
|
52
105
|
async openOverlay() {
|
|
53
106
|
this.isActive = true;
|
|
54
|
-
|
|
107
|
+
if (this.openClass)
|
|
108
|
+
document.body.classList.remove(this.openClass);
|
|
109
|
+
this.openClass = `content-overlay-open--${this.position}`;
|
|
110
|
+
document.body.classList.add(`content-overlay-open`, this.openClass);
|
|
55
111
|
document.body.classList.remove('content-overlay-close');
|
|
56
112
|
if (!this.originalMarkup) {
|
|
57
113
|
this.originalMarkup = this.contentSlot.innerHTML;
|
|
58
114
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
115
|
+
// Filling an element: move into it, so it is what the absolute overlay is placed against.
|
|
116
|
+
if (this.position === 'absolute') {
|
|
117
|
+
const fillElement = document.querySelector(this.fill);
|
|
118
|
+
if (fillElement) {
|
|
119
|
+
fillElement.classList.add('content-block-overlay-container');
|
|
120
|
+
if (this.hostElement.parentElement !== fillElement)
|
|
121
|
+
fillElement.appendChild(this.hostElement);
|
|
64
122
|
}
|
|
65
|
-
// } else if (this.isFullScreen) {
|
|
66
|
-
// if (document.querySelectorAll(`#${this.hostElement.getAttribute('id')}`).length === 1) {
|
|
67
|
-
// document.body.appendChild(this.hostElement);
|
|
68
|
-
// }
|
|
69
123
|
}
|
|
70
|
-
if (this.originalMarkup) {
|
|
71
|
-
this.contentSlot.
|
|
124
|
+
if (this.originalMarkup.length) {
|
|
125
|
+
// this.contentSlot.appendChild(this.contentSlot);
|
|
72
126
|
if (this.contentSlot.children[0] === this.contentSlot.querySelector('script[slot="content"][type="text/template"]')) {
|
|
73
127
|
this.contentSlot.innerHTML = this.contentSlot.children[0].innerHTML;
|
|
74
128
|
}
|
|
@@ -78,18 +132,24 @@ export class ContentOverlay {
|
|
|
78
132
|
allowOutsideClick: true,
|
|
79
133
|
clickOutsideDeactivates: true,
|
|
80
134
|
onDeactivate: () => {
|
|
81
|
-
this.
|
|
82
|
-
|
|
83
|
-
document.body.classList.remove(`content-overlay-open`, `content-overlay-open--${this.position}`);
|
|
84
|
-
this.activeClass = '';
|
|
85
|
-
this.setComputedActiveClass();
|
|
86
|
-
this.contentSlot.innerHTML = '';
|
|
135
|
+
this.closeOverlay();
|
|
136
|
+
// this.contentSlot.innerHTML = '';
|
|
87
137
|
},
|
|
88
138
|
});
|
|
89
139
|
}
|
|
90
140
|
this.contentOverlayActivated.emit(this.hostElement);
|
|
91
141
|
}
|
|
92
142
|
async closeOverlay() {
|
|
143
|
+
this.open = 'false';
|
|
144
|
+
this.isActive = false;
|
|
145
|
+
document.body.classList.add('content-overlay-close');
|
|
146
|
+
document.body.classList.remove(`content-overlay-open`);
|
|
147
|
+
if (this.openClass)
|
|
148
|
+
document.body.classList.remove(this.openClass);
|
|
149
|
+
this.openClass = undefined;
|
|
150
|
+
this.activeClass = '';
|
|
151
|
+
this.setComputedActiveClass();
|
|
152
|
+
this.contentOverlayDeactivated.emit(this.hostElement);
|
|
93
153
|
if (this.focusTrap) {
|
|
94
154
|
try {
|
|
95
155
|
this.focusTrap.deactivate();
|
|
@@ -103,27 +163,30 @@ export class ContentOverlay {
|
|
|
103
163
|
this.activeClass = `content-overlay ${this.isActive ? 'content-overlay-active' : 'content-overlay-inactive'} content-overlay--${this.position}`;
|
|
104
164
|
}
|
|
105
165
|
componentWillLoad() {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
this.isFullScreen = newValue === 'true';
|
|
113
|
-
});
|
|
114
|
-
WindowResizeService.registerProp(this.open).subscribe(newValue => {
|
|
115
|
-
this.hostElement.setAttribute('open', newValue);
|
|
166
|
+
this.responsive({
|
|
167
|
+
fill: value => (this.position = !value || value === 'body' ? 'fixed' : 'absolute'),
|
|
168
|
+
horizontal: true,
|
|
169
|
+
vertical: true,
|
|
170
|
+
fullScreen: value => (this.isFullScreen = value === 'true'),
|
|
171
|
+
open: true,
|
|
116
172
|
});
|
|
117
173
|
this.hasCloseButton = !!this.hostElement.querySelector('[slot="closeButton"]');
|
|
174
|
+
// A dialog needs an accessible name. Use the header when there is one.
|
|
175
|
+
const header = this.hostElement.querySelector('[slot="header"]');
|
|
176
|
+
if (header) {
|
|
177
|
+
if (!header.id)
|
|
178
|
+
header.id = `${this.hostElement.id || 'content-overlay'}-header-${++overlayCount}`;
|
|
179
|
+
this.headerId = header.id;
|
|
180
|
+
}
|
|
118
181
|
}
|
|
119
182
|
closeOverlayButtonClicked(event) {
|
|
120
183
|
event.preventDefault();
|
|
121
184
|
this.closeOverlay();
|
|
122
185
|
}
|
|
123
186
|
render() {
|
|
124
|
-
return (h(Host, { key: '
|
|
187
|
+
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 => {
|
|
125
188
|
this.closeOverlayButtonClicked(e);
|
|
126
|
-
}, class: "content-overlay__close", title: this.closeTitle }, !this.hasCloseButton && (h("svg", { key: '
|
|
189
|
+
}, 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' })))))));
|
|
127
190
|
}
|
|
128
191
|
componentDidRender() {
|
|
129
192
|
if (this.open === 'true') {
|
|
@@ -151,13 +214,20 @@ export class ContentOverlay {
|
|
|
151
214
|
}
|
|
152
215
|
static get properties() {
|
|
153
216
|
return {
|
|
154
|
-
"
|
|
217
|
+
"fill": {
|
|
155
218
|
"type": "string",
|
|
156
|
-
"mutable":
|
|
219
|
+
"mutable": true,
|
|
157
220
|
"complexType": {
|
|
158
|
-
"original": "
|
|
221
|
+
"original": "ResponsiveString",
|
|
159
222
|
"resolved": "string",
|
|
160
|
-
"references": {
|
|
223
|
+
"references": {
|
|
224
|
+
"ResponsiveString": {
|
|
225
|
+
"location": "import",
|
|
226
|
+
"path": "../../typings",
|
|
227
|
+
"id": "src/typings.d.ts::ResponsiveString",
|
|
228
|
+
"referenceLocation": "ResponsiveString"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
161
231
|
},
|
|
162
232
|
"required": false,
|
|
163
233
|
"optional": false,
|
|
@@ -169,10 +239,13 @@ export class ContentOverlay {
|
|
|
169
239
|
"name": "responsive",
|
|
170
240
|
"text": undefined
|
|
171
241
|
}],
|
|
172
|
-
"text": ""
|
|
242
|
+
"text": "What the overlay covers. \"body\", the default, covers the whole screen. A CSS selector, such as \"#hero\",\ncovers that element instead: the overlay moves into it when it opens. Use pipes to cover the screen on\nphones and an element on wider screens: fill=\"body|#hero\"."
|
|
173
243
|
},
|
|
174
|
-
"
|
|
175
|
-
"
|
|
244
|
+
"getter": false,
|
|
245
|
+
"setter": false,
|
|
246
|
+
"reflect": true,
|
|
247
|
+
"attribute": "fill",
|
|
248
|
+
"defaultValue": "'body'"
|
|
176
249
|
},
|
|
177
250
|
"open": {
|
|
178
251
|
"type": "string",
|
|
@@ -184,7 +257,8 @@ export class ContentOverlay {
|
|
|
184
257
|
"ResponsiveBoolean": {
|
|
185
258
|
"location": "import",
|
|
186
259
|
"path": "../../typings",
|
|
187
|
-
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
260
|
+
"id": "src/typings.d.ts::ResponsiveBoolean",
|
|
261
|
+
"referenceLocation": "ResponsiveBoolean"
|
|
188
262
|
}
|
|
189
263
|
}
|
|
190
264
|
},
|
|
@@ -200,8 +274,10 @@ export class ContentOverlay {
|
|
|
200
274
|
}],
|
|
201
275
|
"text": ""
|
|
202
276
|
},
|
|
203
|
-
"
|
|
277
|
+
"getter": false,
|
|
278
|
+
"setter": false,
|
|
204
279
|
"reflect": true,
|
|
280
|
+
"attribute": "open",
|
|
205
281
|
"defaultValue": "'false'"
|
|
206
282
|
},
|
|
207
283
|
"fullScreen": {
|
|
@@ -214,7 +290,8 @@ export class ContentOverlay {
|
|
|
214
290
|
"ResponsiveBoolean": {
|
|
215
291
|
"location": "import",
|
|
216
292
|
"path": "../../typings",
|
|
217
|
-
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
293
|
+
"id": "src/typings.d.ts::ResponsiveBoolean",
|
|
294
|
+
"referenceLocation": "ResponsiveBoolean"
|
|
218
295
|
}
|
|
219
296
|
}
|
|
220
297
|
},
|
|
@@ -230,39 +307,12 @@ export class ContentOverlay {
|
|
|
230
307
|
}],
|
|
231
308
|
"text": ""
|
|
232
309
|
},
|
|
233
|
-
"
|
|
310
|
+
"getter": false,
|
|
311
|
+
"setter": false,
|
|
234
312
|
"reflect": true,
|
|
313
|
+
"attribute": "full-screen",
|
|
235
314
|
"defaultValue": "'true'"
|
|
236
315
|
},
|
|
237
|
-
"classes": {
|
|
238
|
-
"type": "string",
|
|
239
|
-
"mutable": false,
|
|
240
|
-
"complexType": {
|
|
241
|
-
"original": "ResponsiveString",
|
|
242
|
-
"resolved": "string",
|
|
243
|
-
"references": {
|
|
244
|
-
"ResponsiveString": {
|
|
245
|
-
"location": "import",
|
|
246
|
-
"path": "../../typings",
|
|
247
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
"required": false,
|
|
252
|
-
"optional": false,
|
|
253
|
-
"docs": {
|
|
254
|
-
"tags": [{
|
|
255
|
-
"name": "type",
|
|
256
|
-
"text": "String"
|
|
257
|
-
}, {
|
|
258
|
-
"name": "responsive",
|
|
259
|
-
"text": undefined
|
|
260
|
-
}],
|
|
261
|
-
"text": ""
|
|
262
|
-
},
|
|
263
|
-
"attribute": "classes",
|
|
264
|
-
"reflect": false
|
|
265
|
-
},
|
|
266
316
|
"horizontal": {
|
|
267
317
|
"type": "string",
|
|
268
318
|
"mutable": true,
|
|
@@ -273,7 +323,8 @@ export class ContentOverlay {
|
|
|
273
323
|
"ContentLineTextAlignOptions": {
|
|
274
324
|
"location": "import",
|
|
275
325
|
"path": "../../typings",
|
|
276
|
-
"id": "src/typings.d.ts::ContentLineTextAlignOptions"
|
|
326
|
+
"id": "src/typings.d.ts::ContentLineTextAlignOptions",
|
|
327
|
+
"referenceLocation": "ContentLineTextAlignOptions"
|
|
277
328
|
}
|
|
278
329
|
}
|
|
279
330
|
},
|
|
@@ -301,8 +352,10 @@ export class ContentOverlay {
|
|
|
301
352
|
}],
|
|
302
353
|
"text": "A pipe delimited setting for horizontal alignment. This only applies when fullscreen mode is activated."
|
|
303
354
|
},
|
|
304
|
-
"
|
|
355
|
+
"getter": false,
|
|
356
|
+
"setter": false,
|
|
305
357
|
"reflect": true,
|
|
358
|
+
"attribute": "horizontal",
|
|
306
359
|
"defaultValue": "'center'"
|
|
307
360
|
},
|
|
308
361
|
"vertical": {
|
|
@@ -315,7 +368,8 @@ export class ContentOverlay {
|
|
|
315
368
|
"ContentVerticalAlignments": {
|
|
316
369
|
"location": "import",
|
|
317
370
|
"path": "../../typings",
|
|
318
|
-
"id": "src/typings.d.ts::ContentVerticalAlignments"
|
|
371
|
+
"id": "src/typings.d.ts::ContentVerticalAlignments",
|
|
372
|
+
"referenceLocation": "ContentVerticalAlignments"
|
|
319
373
|
}
|
|
320
374
|
}
|
|
321
375
|
},
|
|
@@ -337,8 +391,10 @@ export class ContentOverlay {
|
|
|
337
391
|
}],
|
|
338
392
|
"text": "A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated."
|
|
339
393
|
},
|
|
340
|
-
"
|
|
394
|
+
"getter": false,
|
|
395
|
+
"setter": false,
|
|
341
396
|
"reflect": true,
|
|
397
|
+
"attribute": "vertical",
|
|
342
398
|
"defaultValue": "'center'"
|
|
343
399
|
},
|
|
344
400
|
"closeTitle": {
|
|
@@ -358,56 +414,42 @@ export class ContentOverlay {
|
|
|
358
414
|
}],
|
|
359
415
|
"text": "Title attribute value for the close button."
|
|
360
416
|
},
|
|
417
|
+
"getter": false,
|
|
418
|
+
"setter": false,
|
|
419
|
+
"reflect": true,
|
|
361
420
|
"attribute": "close-title",
|
|
362
|
-
"reflect": false,
|
|
363
421
|
"defaultValue": "'Close Overlay'"
|
|
364
422
|
},
|
|
365
|
-
"
|
|
423
|
+
"label": {
|
|
366
424
|
"type": "string",
|
|
367
|
-
"mutable":
|
|
425
|
+
"mutable": false,
|
|
368
426
|
"complexType": {
|
|
369
|
-
"original": "
|
|
427
|
+
"original": "string",
|
|
370
428
|
"resolved": "string",
|
|
371
|
-
"references": {
|
|
372
|
-
"ResponsiveString": {
|
|
373
|
-
"location": "import",
|
|
374
|
-
"path": "../../typings",
|
|
375
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
376
|
-
}
|
|
377
|
-
}
|
|
429
|
+
"references": {}
|
|
378
430
|
},
|
|
379
431
|
"required": false,
|
|
380
432
|
"optional": false,
|
|
381
433
|
"docs": {
|
|
382
434
|
"tags": [{
|
|
383
435
|
"name": "type",
|
|
384
|
-
"text": "
|
|
385
|
-
}, {
|
|
386
|
-
"name": "options",
|
|
387
|
-
"text": "absolute"
|
|
388
|
-
}, {
|
|
389
|
-
"name": "options",
|
|
390
|
-
"text": "fixed"
|
|
391
|
-
}, {
|
|
392
|
-
"name": "options",
|
|
393
|
-
"text": "static"
|
|
394
|
-
}, {
|
|
395
|
-
"name": "options",
|
|
396
|
-
"text": "sticky"
|
|
436
|
+
"text": "String"
|
|
397
437
|
}],
|
|
398
|
-
"text": "
|
|
438
|
+
"text": "The accessible name of the dialog. Only needed when there is no header slot, which names it otherwise."
|
|
399
439
|
},
|
|
400
|
-
"
|
|
440
|
+
"getter": false,
|
|
441
|
+
"setter": false,
|
|
401
442
|
"reflect": true,
|
|
402
|
-
"
|
|
443
|
+
"attribute": "label"
|
|
403
444
|
}
|
|
404
445
|
};
|
|
405
446
|
}
|
|
406
447
|
static get states() {
|
|
407
448
|
return {
|
|
449
|
+
"headerId": {},
|
|
450
|
+
"position": {},
|
|
408
451
|
"isActive": {},
|
|
409
452
|
"activeClass": {},
|
|
410
|
-
"classString": {},
|
|
411
453
|
"contentSlot": {},
|
|
412
454
|
"isFullScreen": {},
|
|
413
455
|
"hasCloseButton": {},
|
|
@@ -435,6 +477,26 @@ export class ContentOverlay {
|
|
|
435
477
|
}
|
|
436
478
|
}
|
|
437
479
|
}
|
|
480
|
+
}, {
|
|
481
|
+
"method": "contentOverlayDeactivated",
|
|
482
|
+
"name": "contentOverlayDeactivated",
|
|
483
|
+
"bubbles": true,
|
|
484
|
+
"cancelable": true,
|
|
485
|
+
"composed": true,
|
|
486
|
+
"docs": {
|
|
487
|
+
"tags": [],
|
|
488
|
+
"text": ""
|
|
489
|
+
},
|
|
490
|
+
"complexType": {
|
|
491
|
+
"original": "HTMLElement",
|
|
492
|
+
"resolved": "HTMLElement",
|
|
493
|
+
"references": {
|
|
494
|
+
"HTMLElement": {
|
|
495
|
+
"location": "global",
|
|
496
|
+
"id": "global::HTMLElement"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
438
500
|
}];
|
|
439
501
|
}
|
|
440
502
|
static get methods() {
|
|
@@ -498,4 +560,3 @@ export class ContentOverlay {
|
|
|
498
560
|
}];
|
|
499
561
|
}
|
|
500
562
|
}
|
|
501
|
-
//# sourceMappingURL=content-overlay.js.map
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import W3Tabs from "./libraries/w3_tabs";
|
|
3
|
-
import {
|
|
3
|
+
import { ResponsiveComponent } from "../../utils/responsive-component";
|
|
4
4
|
/**
|
|
5
|
+
* Accessible tabs: a tablist of buttons and the panels they show, with arrow key support.
|
|
6
|
+
*
|
|
5
7
|
* @slot content - This slot will usually serve specific markup to ensure tabs are accessible.
|
|
6
8
|
* @slot - Default slot, same as content slot.
|
|
7
9
|
*/
|
|
8
|
-
export class ContentTabs {
|
|
10
|
+
export class ContentTabs extends ResponsiveComponent {
|
|
9
11
|
constructor() {
|
|
10
|
-
|
|
11
|
-
this.classString = undefined;
|
|
12
|
-
}
|
|
13
|
-
componentWillLoad() {
|
|
14
|
-
WindowResizeService.registerProp(this.classes).subscribe(newValue => {
|
|
15
|
-
this.classString = newValue;
|
|
16
|
-
});
|
|
12
|
+
super();
|
|
17
13
|
}
|
|
14
|
+
element;
|
|
18
15
|
componentDidLoad() {
|
|
19
16
|
new W3Tabs(this.element);
|
|
20
17
|
}
|
|
21
18
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'bd85bef7d6aaa5f55cf810a79e4c3d14f9c31867', class: this.classes }, h("slot", { key: '0ee8f5c74bd7cb8c7db1ca0a9a67d837211572b1', name: "content" }), h("slot", { key: '737c4b0067b16f4c5167545d8b167dd8eeb1c058' })));
|
|
23
20
|
}
|
|
24
21
|
static get is() { return "content-tabs"; }
|
|
25
22
|
static get originalStyleUrls() {
|
|
@@ -32,44 +29,5 @@ export class ContentTabs {
|
|
|
32
29
|
"$": ["content-tabs.css"]
|
|
33
30
|
};
|
|
34
31
|
}
|
|
35
|
-
static get properties() {
|
|
36
|
-
return {
|
|
37
|
-
"classes": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"mutable": true,
|
|
40
|
-
"complexType": {
|
|
41
|
-
"original": "ResponsiveString",
|
|
42
|
-
"resolved": "string",
|
|
43
|
-
"references": {
|
|
44
|
-
"ResponsiveString": {
|
|
45
|
-
"location": "import",
|
|
46
|
-
"path": "../../typings",
|
|
47
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"required": false,
|
|
52
|
-
"optional": false,
|
|
53
|
-
"docs": {
|
|
54
|
-
"tags": [{
|
|
55
|
-
"name": "type",
|
|
56
|
-
"text": "String"
|
|
57
|
-
}, {
|
|
58
|
-
"name": "responsive",
|
|
59
|
-
"text": undefined
|
|
60
|
-
}],
|
|
61
|
-
"text": ""
|
|
62
|
-
},
|
|
63
|
-
"attribute": "classes",
|
|
64
|
-
"reflect": true
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
static get states() {
|
|
69
|
-
return {
|
|
70
|
-
"classString": {}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
32
|
static get elementRef() { return "element"; }
|
|
74
33
|
}
|
|
75
|
-
//# sourceMappingURL=content-tabs.js.map
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
content-button {
|
|
6
6
|
display: inline-block;
|
|
7
7
|
}
|
|
8
|
-
content-button > a,
|
|
8
|
+
content-button > a,
|
|
9
|
+
content-button > button {
|
|
9
10
|
display: flex;
|
|
10
11
|
width: 100%;
|
|
11
12
|
align-items: center;
|
|
@@ -16,22 +17,22 @@ content-button > button {
|
|
|
16
17
|
background: inherit;
|
|
17
18
|
cursor: pointer;
|
|
18
19
|
}
|
|
19
|
-
content-button[
|
|
20
|
+
content-button[block=true] {
|
|
20
21
|
display: block;
|
|
21
22
|
width: 100%;
|
|
22
23
|
height: 100%;
|
|
23
24
|
}
|
|
24
|
-
content-button[
|
|
25
|
-
content-button[
|
|
25
|
+
content-button[block=true] > a,
|
|
26
|
+
content-button[block=true] > button {
|
|
26
27
|
height: 100%;
|
|
27
28
|
width: 100%;
|
|
28
29
|
}
|
|
29
|
-
content-button[
|
|
30
|
-
content-button[
|
|
30
|
+
content-button[block=true] > a > *,
|
|
31
|
+
content-button[block=true] > button > * {
|
|
31
32
|
display: block;
|
|
32
33
|
width: 100%;
|
|
33
34
|
}
|
|
34
|
-
content-button[
|
|
35
|
+
content-button[block=true] .content-button__clickable-content {
|
|
35
36
|
width: 100%;
|
|
36
37
|
height: 100%;
|
|
37
38
|
}
|