@worksafevictoria/wcl7.5 1.0.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/.editorconfig +13 -0
- package/.env +4 -0
- package/.eslintrc.cjs +10 -0
- package/.eslintrc.js +25 -0
- package/.husky/commit-msg +4 -0
- package/.prettierrc +5 -0
- package/.prettierrc.json +8 -0
- package/.storybook/main.js +18 -0
- package/.storybook/preview.js +34 -0
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/babel.config.js +8 -0
- package/bin/clean.sh +52 -0
- package/bin/deploy.sh +25 -0
- package/ci/build/Build_Validation.md +35 -0
- package/ci/build/build_validation.yml +47 -0
- package/ci/release/Release_Beta.md +39 -0
- package/ci/release/Release_Master.md +29 -0
- package/ci/release/beta.yml +69 -0
- package/ci/release/master.yml +39 -0
- package/commitlint.config.js +1 -0
- package/index.html +13 -0
- package/jest.config.js +21 -0
- package/lib/detect-browser.js +33 -0
- package/lib/utility.js +59 -0
- package/lib/utility.test.js +15 -0
- package/package.json +93 -0
- package/public/favicon.ico +0 -0
- package/src/assets/base.css +86 -0
- package/src/assets/fonts/VIC-Bold.eot +0 -0
- package/src/assets/fonts/VIC-Bold.ttf +0 -0
- package/src/assets/fonts/VIC-Bold.woff +0 -0
- package/src/assets/fonts/VIC-Bold.woff2 +0 -0
- package/src/assets/fonts/VIC-BoldItalic.eot +0 -0
- package/src/assets/fonts/VIC-BoldItalic.ttf +0 -0
- package/src/assets/fonts/VIC-BoldItalic.woff +0 -0
- package/src/assets/fonts/VIC-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-ExtraLight.eot +0 -0
- package/src/assets/fonts/VIC-ExtraLight.ttf +0 -0
- package/src/assets/fonts/VIC-ExtraLight.woff +0 -0
- package/src/assets/fonts/VIC-ExtraLight.woff2 +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.eot +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.ttf +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.woff +0 -0
- package/src/assets/fonts/VIC-ExtraLightItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Italic.eot +0 -0
- package/src/assets/fonts/VIC-Italic.ttf +0 -0
- package/src/assets/fonts/VIC-Italic.woff +0 -0
- package/src/assets/fonts/VIC-Italic.woff2 +0 -0
- package/src/assets/fonts/VIC-Light.eot +0 -0
- package/src/assets/fonts/VIC-Light.ttf +0 -0
- package/src/assets/fonts/VIC-Light.woff +0 -0
- package/src/assets/fonts/VIC-Light.woff2 +0 -0
- package/src/assets/fonts/VIC-LightItalic.eot +0 -0
- package/src/assets/fonts/VIC-LightItalic.ttf +0 -0
- package/src/assets/fonts/VIC-LightItalic.woff +0 -0
- package/src/assets/fonts/VIC-LightItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Medium.eot +0 -0
- package/src/assets/fonts/VIC-Medium.ttf +0 -0
- package/src/assets/fonts/VIC-Medium.woff +0 -0
- package/src/assets/fonts/VIC-Medium.woff2 +0 -0
- package/src/assets/fonts/VIC-MediumItalic.eot +0 -0
- package/src/assets/fonts/VIC-MediumItalic.ttf +0 -0
- package/src/assets/fonts/VIC-MediumItalic.woff +0 -0
- package/src/assets/fonts/VIC-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/VIC-Regular.eot +0 -0
- package/src/assets/fonts/VIC-Regular.ttf +0 -0
- package/src/assets/fonts/VIC-Regular.woff +0 -0
- package/src/assets/fonts/VIC-Regular.woff2 +0 -0
- package/src/assets/fonts/VIC-SemiBold.eot +0 -0
- package/src/assets/fonts/VIC-SemiBold.ttf +0 -0
- package/src/assets/fonts/VIC-SemiBold.woff +0 -0
- package/src/assets/fonts/VIC-SemiBold.woff2 +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.eot +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.ttf +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.woff +0 -0
- package/src/assets/fonts/VIC-SemiBoldItalic.woff2 +0 -0
- package/src/assets/icons/AppFooter/australian-aboriginal-flag.svg +7 -0
- package/src/assets/icons/AppFooter/facebook-ws-footer.svg +58 -0
- package/src/assets/icons/AppFooter/facebook-ww-footer.svg +59 -0
- package/src/assets/icons/AppFooter/instagram-ww-footer.svg +70 -0
- package/src/assets/icons/AppFooter/linkedin-ws-footer.svg +59 -0
- package/src/assets/icons/AppFooter/linkedin-ww-footer.svg +60 -0
- package/src/assets/icons/AppFooter/logo-workwell-reversed.svg +45 -0
- package/src/assets/icons/AppFooter/pride-flag.svg +12 -0
- package/src/assets/icons/AppFooter/torres-strait-islanders-flag.svg +9 -0
- package/src/assets/icons/AppFooter/twitter-ws-footer.svg +58 -0
- package/src/assets/icons/AppFooter/twitter-ww-footer.svg +59 -0
- package/src/assets/icons/AppFooter/worksafe-footer-logo.svg +9 -0
- package/src/assets/icons/AppFooter/youtube-ws-footer.svg +55 -0
- package/src/assets/icons/AppFooter/youtube-ww-footer.svg +56 -0
- package/src/assets/icons/AppHeader/chev-down-16.svg +17 -0
- package/src/assets/icons/AppHeader/chev-left-24px.svg +13 -0
- package/src/assets/icons/AppHeader/chev-right-16px.svg +25 -0
- package/src/assets/icons/AppHeader/chev-right-24px.svg +13 -0
- package/src/assets/icons/AppHeader/close-32px.svg +15 -0
- package/src/assets/icons/AppHeader/menu-32px.svg +20 -0
- package/src/assets/icons/AppHeader/search-32px.svg +19 -0
- package/src/assets/icons/Email-circle-black.svg +4 -0
- package/src/assets/icons/Info-circle-fill.svg +10 -0
- package/src/assets/icons/Phone-circle-black.svg +4 -0
- package/src/assets/icons/SocialShare/bookmark-white.svg +3 -0
- package/src/assets/icons/SocialShare/bookmark-ww-footer.svg +57 -0
- package/src/assets/icons/SocialShare/bookmark.svg +56 -0
- package/src/assets/icons/SocialShare/email-white.svg +3 -0
- package/src/assets/icons/SocialShare/facebook-white.svg +3 -0
- package/src/assets/icons/SocialShare/facebook-ws-footer.svg +58 -0
- package/src/assets/icons/SocialShare/facebook-ww-footer.svg +59 -0
- package/src/assets/icons/SocialShare/facebook.svg +1 -0
- package/src/assets/icons/SocialShare/office-file-pdf.svg +1 -0
- package/src/assets/icons/SocialShare/print.svg +3 -0
- package/src/assets/icons/SocialShare/twitter-white.svg +3 -0
- package/src/assets/icons/SocialShare/twitter-ws-footer.svg +58 -0
- package/src/assets/icons/SocialShare/twitter-ww-footer.svg +59 -0
- package/src/assets/icons/SocialShare/twitter.svg +1 -0
- package/src/assets/icons/Strip/AlertDismiss.svg +4 -0
- package/src/assets/icons/Strip/Arrow right.svg +4 -0
- package/src/assets/icons/Strip/Chevron right.svg +3 -0
- package/src/assets/icons/Strip/Dismiss.svg +4 -0
- package/src/assets/icons/Strip/Exclamation triangle fill.svg +8 -0
- package/src/assets/icons/Strip/Info circle fill.svg +15 -0
- package/src/assets/icons/Strip/Information.svg +15 -0
- package/src/assets/icons/Strip/Warning.svg +8 -0
- package/src/assets/icons/arrow-left.svg +9 -0
- package/src/assets/icons/arrow-right.svg +9 -0
- package/src/assets/icons/bookmark.svg +56 -0
- package/src/assets/icons/brand-VicStateGov-logo-reversed.svg +72 -0
- package/src/assets/icons/bullet-empty.svg +3 -0
- package/src/assets/icons/bullet.svg +3 -0
- package/src/assets/icons/caret-down.svg +1 -0
- package/src/assets/icons/caret-left.svg +9 -0
- package/src/assets/icons/caret-right.svg +9 -0
- package/src/assets/icons/caret-up.svg +1 -0
- package/src/assets/icons/chev-down-white.svg +3 -0
- package/src/assets/icons/chev-down.svg +3 -0
- package/src/assets/icons/chev-left.svg +3 -0
- package/src/assets/icons/chev-right.svg +3 -0
- package/src/assets/icons/chev-up.svg +3 -0
- package/src/assets/icons/clock.svg +3 -0
- package/src/assets/icons/close.svg +1 -0
- package/src/assets/icons/cross.svg +3 -0
- package/src/assets/icons/document.svg +1 -0
- package/src/assets/icons/earth.svg +1 -0
- package/src/assets/icons/email.svg +6 -0
- package/src/assets/icons/external-link-16px.svg +18 -0
- package/src/assets/icons/external-link.svg +4 -0
- package/src/assets/icons/icon-close.svg +15 -0
- package/src/assets/icons/instagram.svg +3 -0
- package/src/assets/icons/key.svg +3 -0
- package/src/assets/icons/location.svg +10 -0
- package/src/assets/icons/phone.svg +3 -0
- package/src/assets/icons/refresh.svg +3 -0
- package/src/assets/icons/right-arrow.svg +3 -0
- package/src/assets/icons/search.svg +5 -0
- package/src/assets/icons/tick.svg +3 -0
- package/src/assets/icons/video-play.svg +4 -0
- package/src/assets/images/hero-header-chevron.svg +9 -0
- package/src/assets/images/hero-header-mask.png +0 -0
- package/src/assets/images/hero-header-mask.svg +3 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +35 -0
- package/src/assets/styles/button.scss +206 -0
- package/src/assets/styles/focus.scss +4 -0
- package/src/assets/styles/generated-icons.scss +374 -0
- package/src/assets/styles/modal.scss +12 -0
- package/src/assets/styles/rtl.scss +8 -0
- package/src/assets/styles/storybook.scss +9 -0
- package/src/assets/styles/stylesheet.scss +7 -0
- package/src/assets/styles/webfonts.css +155 -0
- package/src/components/Common/CardGrid/cardgrid.stories.js +269 -0
- package/src/components/Common/CardGrid/index.vue +321 -0
- package/src/components/Common/CardGridItem/card-grid-item-caret.vue +164 -0
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +163 -0
- package/src/components/Common/CardGridItem/index.vue +848 -0
- package/src/components/Common/FilterButton/index.vue +93 -0
- package/src/components/Containers/Column/index.stories.js +35 -0
- package/src/components/Containers/Column/index.vue +14 -0
- package/src/components/Containers/Container/index.stories.js +13 -0
- package/src/components/Containers/Container/index.vue +15 -0
- package/src/components/Containers/HomepageHeader/index.stories.js +78 -0
- package/src/components/Containers/HomepageHeader/index.vue +186 -0
- package/src/components/Containers/Row/index.stories.js +12 -0
- package/src/components/Containers/Row/index.vue +14 -0
- package/src/components/Containers/SectionGroup/index.stories.js +148 -0
- package/src/components/Containers/SectionGroup/index.vue +310 -0
- package/src/components/Containers/Subheader/index.stories.js +74 -0
- package/src/components/Containers/Subheader/index.vue +149 -0
- package/src/components/Global/AlertStrip/index.stories.js +13 -0
- package/src/components/Global/AlertStrip/index.vue +145 -0
- package/src/components/Global/AlertStrip/styles.scss +78 -0
- package/src/components/Global/AppFooter/FooterSocialShare/index.vue +105 -0
- package/src/components/Global/AppFooter/FooterSocialShare/styles.scss +41 -0
- package/src/components/Global/AppFooter/index.stories.js +24 -0
- package/src/components/Global/AppFooter/index.vue +632 -0
- package/src/components/Global/AppFooter/storiesConst.js +110 -0
- package/src/components/Global/AppFooter/styles.scss +393 -0
- package/src/components/Global/AppHeader/ModalSearch/index.vue +66 -0
- package/src/components/Global/AppHeader/ModalSearch/styles.scss +43 -0
- package/src/components/Global/AppHeader/includes.scss +68 -0
- package/src/components/Global/AppHeader/index.stories.js +82 -0
- package/src/components/Global/AppHeader/index.vue +878 -0
- package/src/components/Global/AppHeader/mobile.scss +240 -0
- package/src/components/Global/AppHeader/styles.scss +371 -0
- package/src/components/Global/BackToTop/index.stories.js +18 -0
- package/src/components/Global/BackToTop/index.vue +67 -0
- package/src/components/Global/BackToTop/styles.scss +46 -0
- package/src/components/Global/ContrastMode/index.stories.js +39 -0
- package/src/components/Global/ContrastMode/index.vue +308 -0
- package/src/components/Global/Cookies/Constants.js +72 -0
- package/src/components/Global/Cookies/index.storieshide.js +45 -0
- package/src/components/Global/Cookies/index.vue +453 -0
- package/src/components/Global/Cookies/styles.scss +259 -0
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +196 -0
- package/src/components/Global/DirectoryFilters/index.vue +176 -0
- package/src/components/Global/GlobalNotice/index.vue +266 -0
- package/src/components/Global/HeroHeader/index.stories.js +93 -0
- package/src/components/Global/HeroHeader/index.vue +343 -0
- package/src/components/Global/HeroHeader/styles.scss +480 -0
- package/src/components/Global/ProgressBar/index.stories.js +51 -0
- package/src/components/Global/ProgressBar/index.vue +58 -0
- package/src/components/Global/ProgressBar/styles.scss +116 -0
- package/src/components/Global/SocialShare/index.stories.js +18 -0
- package/src/components/Global/SocialShare/index.vue +318 -0
- package/src/components/Global/Strip/index.stories.js +70 -0
- package/src/components/Global/Strip/index.vue +357 -0
- package/src/components/HelloWorld.vue +44 -0
- package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +232 -0
- package/src/components/Paragraphs/Accordion/StepperItem/index.vue +274 -0
- package/src/components/Paragraphs/Accordion/index.stories.js +84 -0
- package/src/components/Paragraphs/Accordion/index.vue +202 -0
- package/src/components/Paragraphs/Breakout/index.stories.js +39 -0
- package/src/components/Paragraphs/Breakout/index.vue +115 -0
- package/src/components/Paragraphs/BrowseContent/index.stories.js +220 -0
- package/src/components/Paragraphs/BrowseContent/index.vue +298 -0
- package/src/components/Paragraphs/BrowseContent/switcher.vue +63 -0
- package/src/components/Paragraphs/Calculator/CardContainer/index.vue +278 -0
- package/src/components/Paragraphs/Calculator/CardContainer/styles.scss +152 -0
- package/src/components/Paragraphs/Calculator/Constants.js +246 -0
- package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +124 -0
- package/src/components/Paragraphs/Calculator/RiskLevel/styles.scss +73 -0
- package/src/components/Paragraphs/Calculator/index.stories.js +27 -0
- package/src/components/Paragraphs/Calculator/index.vue +284 -0
- package/src/components/Paragraphs/Calculator/styles.scss +49 -0
- package/src/components/Paragraphs/Directory/Records/CJ/index.vue +59 -0
- package/src/components/Paragraphs/Directory/Records/ISP/distance.js +46 -0
- package/src/components/Paragraphs/Directory/Records/ISP/index.vue +88 -0
- package/src/components/Paragraphs/Directory/Records/PRS/index.vue +59 -0
- package/src/components/Paragraphs/Directory/Records/PRS/recordContent.vue +91 -0
- package/src/components/Paragraphs/Directory/Records/PRS/recordDetails.vue +49 -0
- package/src/components/Paragraphs/Directory/Records/index.vue +203 -0
- package/src/components/Paragraphs/Directory/Records/styles.scss +129 -0
- package/src/components/Paragraphs/Directory/constants.js +79 -0
- package/src/components/Paragraphs/Directory/index.vue +334 -0
- package/src/components/Paragraphs/ListGroup/Constants.js +72 -0
- package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +71 -0
- package/src/components/Paragraphs/ListGroup/index.vue +333 -0
- package/src/components/Paragraphs/ListGroup/list-group.stories.js +64 -0
- package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +66 -0
- package/src/components/Paragraphs/MarketingBanner/index.stories.js +65 -0
- package/src/components/Paragraphs/MarketingBanner/index.vue +118 -0
- package/src/components/Paragraphs/MarketingBanner/styles.scss +87 -0
- package/src/components/Paragraphs/ProofPoints/index.stories.js +173 -0
- package/src/components/Paragraphs/ProofPoints/index.vue +64 -0
- package/src/components/Paragraphs/RelatedInformation/index.stories.js +32 -0
- package/src/components/Paragraphs/RelatedInformation/index.vue +62 -0
- package/src/components/Paragraphs/RelatedInformation/styles.scss +50 -0
- package/src/components/Paragraphs/RichText/index.stories.js +393 -0
- package/src/components/Paragraphs/RichText/index.vue +113 -0
- package/src/components/Paragraphs/RichText/scss/base.scss +355 -0
- package/src/components/Paragraphs/RichText/scss/definition-list.scss +35 -0
- package/src/components/Paragraphs/RichText/scss/styled-list.scss +152 -0
- package/src/components/Paragraphs/RichText/scss/table.scss +85 -0
- package/src/components/Paragraphs/ScrollSpy/index.stories.js +184 -0
- package/src/components/Paragraphs/ScrollSpy/index.vue +147 -0
- package/src/components/Paragraphs/SelectableCards/Control/index.stories.js +29 -0
- package/src/components/Paragraphs/SelectableCards/cardbody.vue +25 -0
- package/src/components/Paragraphs/SelectableCards/cardtop.vue +113 -0
- package/src/components/Paragraphs/SelectableCards/index.stories.js +27 -0
- package/src/components/Paragraphs/SelectableCards/index.vue +116 -0
- package/src/components/Paragraphs/Statistics/index.stories.js +106 -0
- package/src/components/Paragraphs/Statistics/index.vue +95 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/cake-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/commute-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/fire_extinguisher-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/free_breakfast-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/portrait-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/storefront-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/TempIcons/tag_faces-black-18dp.svg +1 -0
- package/src/components/Paragraphs/TabbedCards/index.stories.js +36 -0
- package/src/components/Paragraphs/TabbedCards/index.vue +393 -0
- package/src/components/Paragraphs/Tabs/index.stories.js +60 -0
- package/src/components/Paragraphs/Tabs/index.vue +127 -0
- package/src/components/Paragraphs/Tabs/styles.scss +150 -0
- package/src/components/Paragraphs/TabulatedData/Constants.js +158 -0
- package/src/components/Paragraphs/TabulatedData/index.stories.js +39 -0
- package/src/components/Paragraphs/TabulatedData/index.vue +145 -0
- package/src/components/Paragraphs/TaskFinder/index.stories.js +45 -0
- package/src/components/Paragraphs/TaskFinder/index.vue +192 -0
- package/src/components/Paragraphs/TaskFinder/pdf/index.vue +109 -0
- package/src/components/Paragraphs/TaskFinder/task-finder-column.vue +146 -0
- package/src/components/Paragraphs/TextMedia/MediaTypes/Image/index.vue +24 -0
- package/src/components/Paragraphs/TextMedia/MediaTypes/Video/index.vue +29 -0
- package/src/components/Paragraphs/TextMedia/index.stories.js +94 -0
- package/src/components/Paragraphs/TextMedia/index.vue +150 -0
- package/src/components/Paragraphs/VideoGrid/index.stories.js +167 -0
- package/src/components/Paragraphs/VideoGrid/index.vue +124 -0
- package/src/components/Paragraphs/VideoPlayer/index.stories.js +95 -0
- package/src/components/Paragraphs/VideoPlayer/index.vue +110 -0
- package/src/components/Paragraphs/Webform/index.stories.js +70 -0
- package/src/components/Paragraphs/Webform/index.vue +103 -0
- package/src/components/SubComponents/Breadcrumb/constants.js +15 -0
- package/src/components/SubComponents/Breadcrumb/index.stories.js +22 -0
- package/src/components/SubComponents/Breadcrumb/index.vue +91 -0
- package/src/components/SubComponents/CardGroup/cardbody.vue +109 -0
- package/src/components/SubComponents/CardGroup/cardtop.vue +106 -0
- package/src/components/SubComponents/CardGroup/index.stories.js +145 -0
- package/src/components/SubComponents/CardGroup/index.vue +297 -0
- package/src/components/SubComponents/CtaButton/index.stories.js +357 -0
- package/src/components/SubComponents/CtaButton/index.vue +256 -0
- package/src/components/SubComponents/FormAddressPostcode/index.stories.js +43 -0
- package/src/components/SubComponents/FormAddressPostcode/index.vue +314 -0
- package/src/components/SubComponents/FormInstance/index.stories.js +8 -0
- package/src/components/SubComponents/FormInstance/index.vue +12 -0
- package/src/components/SubComponents/GoogleSearch/index.stories.js +8 -0
- package/src/components/SubComponents/GoogleSearch/index.vue +405 -0
- package/src/components/SubComponents/Icon/README.md +40 -0
- package/src/components/SubComponents/Icon/example.js +41 -0
- package/src/components/SubComponents/Icon/index.stories.js +84 -0
- package/src/components/SubComponents/Icon/index.vue +127 -0
- package/src/components/SubComponents/Icon/styles.scss +38 -0
- package/src/components/SubComponents/Loading/index.stories.js +9 -0
- package/src/components/SubComponents/Loading/index.vue +15 -0
- package/src/components/SubComponents/MediaPlayer/index.stories.js +58 -0
- package/src/components/SubComponents/MediaPlayer/index.vue +69 -0
- package/src/components/SubComponents/Pagination/index.stories.js +119 -0
- package/src/components/SubComponents/Pagination/index.vue +184 -0
- package/src/components/SubComponents/Pagination/pagination.js +58 -0
- package/src/components/SubComponents/ResourceGroup/List/index.stories.js +268 -0
- package/src/components/SubComponents/ResourceGroup/cardbody.vue +221 -0
- package/src/components/SubComponents/ResourceGroup/cardfooter.vue +61 -0
- package/src/components/SubComponents/ResourceGroup/cardtop.vue +94 -0
- package/src/components/SubComponents/ResourceGroup/index.stories.js +268 -0
- package/src/components/SubComponents/ResourceGroup/index.vue +575 -0
- package/src/components/SubComponents/ResourceGroup/styles.scss +317 -0
- package/src/components/SubComponents/ResourceGroup/switcher.vue +63 -0
- package/src/components/SubComponents/Search/SearchListing/index.vue +217 -0
- package/src/components/SubComponents/Search/index.stories.js +43 -0
- package/src/components/SubComponents/Search/index.vue +238 -0
- package/src/components/SubComponents/SingleImage/index.stories.js +60 -0
- package/src/components/SubComponents/SingleImage/index.vue +98 -0
- package/src/components/SubComponents/VideoThumbnail/index.stories.js +41 -0
- package/src/components/SubComponents/VideoThumbnail/index.vue +239 -0
- package/src/components/TheWelcome.vue +88 -0
- package/src/components/WelcomeItem.vue +87 -0
- package/src/components/icons/IconCommunity.vue +7 -0
- package/src/components/icons/IconDocumentation.vue +7 -0
- package/src/components/icons/IconEcosystem.vue +7 -0
- package/src/components/icons/IconSupport.vue +7 -0
- package/src/components/icons/IconTooling.vue +19 -0
- package/src/includes/scss/all.scss +2 -0
- package/src/includes/scss/mixins/all.scss +6 -0
- package/src/includes/scss/mixins/src/focus.scss +38 -0
- package/src/includes/scss/mixins/src/fp.scss +31 -0
- package/src/includes/scss/mixins/src/grid.scss +125 -0
- package/src/includes/scss/mixins/src/mq.scss +30 -0
- package/src/includes/scss/mixins/src/rtl.scss +8 -0
- package/src/includes/scss/mixins/src/units.scss +110 -0
- package/src/includes/scss/vars/all.scss +2 -0
- package/src/includes/scss/vars/src/breakpoints.scss +20 -0
- package/src/includes/scss/vars/src/colors.module.scss +53 -0
- package/src/includes/scss/vars/src/colors.scss +53 -0
- package/src/index.js +116 -0
- package/src/main.js +18 -0
- package/src/mock/accordion.js +104 -0
- package/src/mock/app-header.js +683 -0
- package/src/mock/control-selectable-cards.js +58 -0
- package/src/mock/jest.svgtransformer.js +7 -0
- package/src/mock/list-group.js +46 -0
- package/src/mock/proof-points.js +55 -0
- package/src/mock/related-info.js +44 -0
- package/src/mock/selectable-cards.js +48 -0
- package/src/mock/statistics.js +63 -0
- package/src/mock/styleMock.js +1 -0
- package/src/mock/tabbed-cards.js +197 -0
- package/src/mock/task-finder.js +68 -0
- package/src/mock/video-grid.js +409 -0
- package/src/mock/video-media.js +51 -0
- package/src/public/places/api/v1/geocode/json +69 -0
- package/src/public/places/api/v1/place/autocomplete/json +226 -0
- package/stylelint.config.js +63 -0
- package/vite.config.js +19 -0
- package/vitest.config.js +14 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<container class="ffh-result">
|
|
3
|
+
<row class="ffh-result__risk">
|
|
4
|
+
<column :lg="12">
|
|
5
|
+
<div id="ffh-result__risk--title" class="ffh-result__risk--title">
|
|
6
|
+
<h2>{{ headerTitle }}</h2>
|
|
7
|
+
</div>
|
|
8
|
+
<rich-text
|
|
9
|
+
class="ffh-result__risk--message"
|
|
10
|
+
:content="headerMessage"
|
|
11
|
+
:without-container="true"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<div class="ffh-result__risk--info">
|
|
15
|
+
<img :src="riskIcon" class="ffh-result__risk--info--img" />
|
|
16
|
+
<h3 class="ffh-result__risk--info--title">
|
|
17
|
+
{{ riskTitle }}
|
|
18
|
+
</h3>
|
|
19
|
+
<p>{{ timeLevel }}</p>
|
|
20
|
+
<p>{{ speedLevel }}</p>
|
|
21
|
+
<p>{{ energyLevel }}</p>
|
|
22
|
+
<rich-text
|
|
23
|
+
class="ffh-result__info--message"
|
|
24
|
+
:content="riskMessge"
|
|
25
|
+
:without-container="true"
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
</column>
|
|
29
|
+
</row>
|
|
30
|
+
<row class="ffh-result__nav">
|
|
31
|
+
<column>
|
|
32
|
+
<cta-button
|
|
33
|
+
:glyph="CaretLeft"
|
|
34
|
+
:rtl="true"
|
|
35
|
+
variant="link"
|
|
36
|
+
@clicked="$emit('reset')"
|
|
37
|
+
>Calculate again</cta-button
|
|
38
|
+
>
|
|
39
|
+
</column>
|
|
40
|
+
</row>
|
|
41
|
+
</container>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
import Container from '../../../Containers/Container/index.vue'
|
|
46
|
+
import Column from '../../../Containers/Column/index.vue'
|
|
47
|
+
import Row from '../../../Containers/Row/index.vue'
|
|
48
|
+
import CtaButton from '../../../SubComponents/CtaButton/index.vue'
|
|
49
|
+
import RichText from '../../../Paragraphs/RichText/index.vue'
|
|
50
|
+
import CaretLeft from '../../../../assets/icons/caret-left.svg?url'
|
|
51
|
+
|
|
52
|
+
export default {
|
|
53
|
+
name: 'RiskLevel',
|
|
54
|
+
components: { Column, Row, Container, CtaButton, RichText },
|
|
55
|
+
props: {
|
|
56
|
+
riskPoints: {
|
|
57
|
+
type: Array,
|
|
58
|
+
default: () => {}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
data() {
|
|
62
|
+
return {
|
|
63
|
+
CaretLeft,
|
|
64
|
+
headerTitle: 'Your results',
|
|
65
|
+
headerMessage:
|
|
66
|
+
'These are you results based on the weight of the object being dropped and how high in meters you are up.'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
computed: {
|
|
70
|
+
riskIcon() {
|
|
71
|
+
if (this.riskPoints && this.riskPoints[0]?.risksResult?.icon) {
|
|
72
|
+
return `${this.riskPoints[0].risksResult.icon}`
|
|
73
|
+
}
|
|
74
|
+
return ''
|
|
75
|
+
},
|
|
76
|
+
riskTitle() {
|
|
77
|
+
if (this.riskPoints && this.riskPoints[0]?.risksResult?.title) {
|
|
78
|
+
return this.riskPoints[0].risksResult.title
|
|
79
|
+
}
|
|
80
|
+
return ''
|
|
81
|
+
},
|
|
82
|
+
riskMessge() {
|
|
83
|
+
if (this.riskPoints && this.riskPoints[0]?.risksResult?.message) {
|
|
84
|
+
return this.riskPoints[0].risksResult.message
|
|
85
|
+
}
|
|
86
|
+
return ''
|
|
87
|
+
},
|
|
88
|
+
speedLevel() {
|
|
89
|
+
let speedImpactMS =
|
|
90
|
+
this.riskPoints && this.riskPoints[0]
|
|
91
|
+
? this.riskPoints[0].speedImpactMS
|
|
92
|
+
: ''
|
|
93
|
+
|
|
94
|
+
let speedImpactKmH =
|
|
95
|
+
this.riskPoints && this.riskPoints[0]
|
|
96
|
+
? this.riskPoints[0].speedImpactKmH
|
|
97
|
+
: ''
|
|
98
|
+
|
|
99
|
+
return `Speed at impact: ${speedImpactMS} metres per second and ${speedImpactKmH} kilometres per hour`
|
|
100
|
+
},
|
|
101
|
+
timeLevel() {
|
|
102
|
+
let timeImpact =
|
|
103
|
+
this.riskPoints && this.riskPoints[0]
|
|
104
|
+
? this.riskPoints[0].timeImpact
|
|
105
|
+
: ''
|
|
106
|
+
|
|
107
|
+
return `Time until impact: ${timeImpact} seconds`
|
|
108
|
+
},
|
|
109
|
+
energyLevel() {
|
|
110
|
+
let energyImpact =
|
|
111
|
+
this.riskPoints && this.riskPoints[0]
|
|
112
|
+
? this.riskPoints[0]?.energyImpact
|
|
113
|
+
: ''
|
|
114
|
+
|
|
115
|
+
return `Energy at impact: ${energyImpact} joules`
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<style lang="scss" scoped>
|
|
122
|
+
@import '../../../../includes/scss/all';
|
|
123
|
+
@import './styles';
|
|
124
|
+
</style>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.ffh-result {
|
|
2
|
+
&__risk {
|
|
3
|
+
&--title {
|
|
4
|
+
font-weight: 700;
|
|
5
|
+
margin-top: px-to-rem(40px);
|
|
6
|
+
|
|
7
|
+
@media screen and (max-width: 478px) {
|
|
8
|
+
margin-top: px-to-rem(22px);
|
|
9
|
+
}
|
|
10
|
+
@media screen and (max-width: 768px) {
|
|
11
|
+
margin-top: px-to-rem(39px);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h2 {
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--item {
|
|
20
|
+
margin-top: px-to-rem(12px);
|
|
21
|
+
height: px-to-rem(65px);
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
color: $white;
|
|
26
|
+
@include fp(font-size, 18, 26);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--info {
|
|
30
|
+
border: 3px solid $black;
|
|
31
|
+
padding: px-to-rem(42px 28px 50px);
|
|
32
|
+
margin-top: px-to-rem(50px);
|
|
33
|
+
border-radius: 8px;
|
|
34
|
+
|
|
35
|
+
@media screen and (max-width: 478px) {
|
|
36
|
+
margin-top: px-to-rem(36px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media screen and (max-width: 768px) {
|
|
40
|
+
margin-top: px-to-rem(50px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--img {
|
|
44
|
+
width: 112px;
|
|
45
|
+
height: 112px;
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
}
|
|
48
|
+
p {
|
|
49
|
+
font-size: px-to-rem(18px);
|
|
50
|
+
}
|
|
51
|
+
&--title {
|
|
52
|
+
font-size: px-to-rem(26px);
|
|
53
|
+
font-weight: 700;
|
|
54
|
+
margin-top: 20px;
|
|
55
|
+
margin-bottom: 20px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
:deep(.ffh-result__info--message) {
|
|
60
|
+
font-size: 22px;
|
|
61
|
+
font-weight: 700;
|
|
62
|
+
|
|
63
|
+
@media screen and (max-width: 478px) {
|
|
64
|
+
font-size: 20px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__nav {
|
|
70
|
+
margin-top: px-to-rem(35px);
|
|
71
|
+
margin-bottom: px-to-rem(35px);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import Calculator from './index.vue'
|
|
2
|
+
import {
|
|
3
|
+
ffhPage,
|
|
4
|
+
heroHeader,
|
|
5
|
+
cardTitles,
|
|
6
|
+
cardWeights,
|
|
7
|
+
cardHeights,
|
|
8
|
+
barItems,
|
|
9
|
+
riskResults
|
|
10
|
+
} from './Constants'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
title: 'Paragraphs/Calculator',
|
|
14
|
+
component: Calculator,
|
|
15
|
+
args: {
|
|
16
|
+
items: barItems,
|
|
17
|
+
titles: cardTitles,
|
|
18
|
+
weights: cardWeights,
|
|
19
|
+
heights: cardHeights,
|
|
20
|
+
steeperStyle: true,
|
|
21
|
+
ffhPage: ffhPage,
|
|
22
|
+
heroHeader: heroHeader,
|
|
23
|
+
riskResults: riskResults
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const FallFromHeight = {}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="ffhApp" class="ffh-app">
|
|
3
|
+
<hero-header
|
|
4
|
+
:image="null"
|
|
5
|
+
:title="heroHeader.title"
|
|
6
|
+
:description="heroHeader.description"
|
|
7
|
+
:bg-color="null"
|
|
8
|
+
:show-social="false"
|
|
9
|
+
class="hero-header"
|
|
10
|
+
>
|
|
11
|
+
</hero-header>
|
|
12
|
+
<container class="ffh-header">
|
|
13
|
+
<row>
|
|
14
|
+
<column>
|
|
15
|
+
<progress-bar :items="barItems" :steeper-style="true"></progress-bar>
|
|
16
|
+
</column>
|
|
17
|
+
</row>
|
|
18
|
+
</container>
|
|
19
|
+
|
|
20
|
+
<card-container
|
|
21
|
+
v-show="screen === 1"
|
|
22
|
+
ref="weightCardContainer"
|
|
23
|
+
:is-weight="true"
|
|
24
|
+
:titles="titles.weight"
|
|
25
|
+
:weights="weights || []"
|
|
26
|
+
@nextScreen="nextScreen"
|
|
27
|
+
/>
|
|
28
|
+
<card-container
|
|
29
|
+
v-show="screen === 2"
|
|
30
|
+
ref="heightCardContainer"
|
|
31
|
+
:is-weight="false"
|
|
32
|
+
:titles="titles.height"
|
|
33
|
+
:heights="heights || []"
|
|
34
|
+
@nextScreen="nextScreen"
|
|
35
|
+
@prevScreen="prevScreen"
|
|
36
|
+
/>
|
|
37
|
+
<risk-level
|
|
38
|
+
v-show="screen === 3"
|
|
39
|
+
:risk-points="riskPoints"
|
|
40
|
+
@prevScreen="prevScreen"
|
|
41
|
+
@reset="resetApp"
|
|
42
|
+
/>
|
|
43
|
+
<container class="ffh-footer">
|
|
44
|
+
<row>
|
|
45
|
+
<column>
|
|
46
|
+
<rich-text :content="ffhPage.disclaimer" :without-container="true" />
|
|
47
|
+
</column>
|
|
48
|
+
</row>
|
|
49
|
+
</container>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script>
|
|
54
|
+
import Container from '../../Containers/Container/index.vue'
|
|
55
|
+
import Column from '../../Containers/Column/index.vue'
|
|
56
|
+
import Row from '../../Containers/Row/index.vue'
|
|
57
|
+
import HeroHeader from '../../Global/HeroHeader/index.vue'
|
|
58
|
+
import CardContainer from './CardContainer/index.vue'
|
|
59
|
+
import ProgressBar from '../../Global/ProgressBar/index.vue'
|
|
60
|
+
import RiskLevel from './RiskLevel/index.vue'
|
|
61
|
+
import RichText from '../../Paragraphs/RichText/index.vue'
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
name: 'Calculator',
|
|
65
|
+
components: {
|
|
66
|
+
Container,
|
|
67
|
+
Column,
|
|
68
|
+
Row,
|
|
69
|
+
HeroHeader,
|
|
70
|
+
CardContainer,
|
|
71
|
+
ProgressBar,
|
|
72
|
+
RiskLevel,
|
|
73
|
+
RichText
|
|
74
|
+
},
|
|
75
|
+
props: {
|
|
76
|
+
items: {
|
|
77
|
+
type: Array,
|
|
78
|
+
default: () => []
|
|
79
|
+
},
|
|
80
|
+
steeperStyle: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: true
|
|
83
|
+
},
|
|
84
|
+
titles: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: () => {}
|
|
87
|
+
},
|
|
88
|
+
weights: {
|
|
89
|
+
type: Array,
|
|
90
|
+
default: () => []
|
|
91
|
+
},
|
|
92
|
+
heights: {
|
|
93
|
+
type: Array,
|
|
94
|
+
default: () => []
|
|
95
|
+
},
|
|
96
|
+
ffhPage: {
|
|
97
|
+
type: Object,
|
|
98
|
+
default: () => {}
|
|
99
|
+
},
|
|
100
|
+
heroHeader: {
|
|
101
|
+
type: Object,
|
|
102
|
+
default: () => {}
|
|
103
|
+
},
|
|
104
|
+
riskResults: {
|
|
105
|
+
type: Array,
|
|
106
|
+
default: () => []
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
data() {
|
|
110
|
+
return {
|
|
111
|
+
screen: 1,
|
|
112
|
+
selectedWeight: null,
|
|
113
|
+
selectedHeight: null,
|
|
114
|
+
barItems: [],
|
|
115
|
+
g: 9.81
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
computed: {
|
|
119
|
+
updateBar() {
|
|
120
|
+
const data = this.barItems
|
|
121
|
+
const currentIndex = data.findIndex(
|
|
122
|
+
(item) => item.value === this.screen.toString()
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
if (data.length === this.screen) {
|
|
126
|
+
// Update the current item
|
|
127
|
+
data[currentIndex - 1].completed = true
|
|
128
|
+
data[currentIndex].completed = true
|
|
129
|
+
} else if (currentIndex > 0) {
|
|
130
|
+
// Update the previous item if it exists
|
|
131
|
+
data[currentIndex - 1].completed = true
|
|
132
|
+
data[currentIndex - 1].checked = false
|
|
133
|
+
|
|
134
|
+
// Update the current item
|
|
135
|
+
data[currentIndex].checked = true
|
|
136
|
+
data[currentIndex].completed = false
|
|
137
|
+
}
|
|
138
|
+
return data
|
|
139
|
+
},
|
|
140
|
+
riskPoints() {
|
|
141
|
+
const isEmpty = (el) => el === null || el === undefined
|
|
142
|
+
if (isEmpty(this.selectedWeight) || isEmpty(this.selectedHeight)) {
|
|
143
|
+
return []
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
let speedImpactMS = Math.sqrt(
|
|
147
|
+
2 * Number(this.selectedHeight.value) * this.g
|
|
148
|
+
).toFixed(2)
|
|
149
|
+
let speedImpactKmH = (
|
|
150
|
+
Math.sqrt(2 * Number(this.selectedHeight.value) * this.g) * 3.6
|
|
151
|
+
).toFixed(2)
|
|
152
|
+
let timeImpact = Math.sqrt(
|
|
153
|
+
(2 * Number(this.selectedHeight.value)) / this.g
|
|
154
|
+
).toFixed(2)
|
|
155
|
+
let energyImpact = (
|
|
156
|
+
Number(this.selectedHeight.value) *
|
|
157
|
+
this.g *
|
|
158
|
+
Number(this.selectedWeight.value)
|
|
159
|
+
).toFixed(2)
|
|
160
|
+
|
|
161
|
+
let risksResult = null
|
|
162
|
+
const matchingLevels = this.riskResults.filter((level) => {
|
|
163
|
+
return energyImpact >= level.rangeMin && energyImpact <= level.rangeMax
|
|
164
|
+
})
|
|
165
|
+
|
|
166
|
+
if (matchingLevels.length === 0) {
|
|
167
|
+
// If no matching levels, use the last max item
|
|
168
|
+
risksResult = this.riskResults[this.riskResults.length - 1]
|
|
169
|
+
} else {
|
|
170
|
+
// If matching levels exist, use the first one
|
|
171
|
+
risksResult = matchingLevels[0]
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return [
|
|
175
|
+
{
|
|
176
|
+
risksResult: risksResult,
|
|
177
|
+
speedImpactMS: speedImpactMS,
|
|
178
|
+
speedImpactKmH: speedImpactKmH,
|
|
179
|
+
timeImpact: timeImpact,
|
|
180
|
+
energyImpact: energyImpact
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
created() {
|
|
186
|
+
this.barItems = JSON.parse(JSON.stringify(this.items))
|
|
187
|
+
},
|
|
188
|
+
methods: {
|
|
189
|
+
nextScreen(e) {
|
|
190
|
+
if (this.screen === 1) {
|
|
191
|
+
this.selectedWeight = e
|
|
192
|
+
this.fireGTM('Dropped Object Calc 1')
|
|
193
|
+
} else if (this.screen === 2) {
|
|
194
|
+
this.selectedHeight = e
|
|
195
|
+
this.fireGTM('Dropped Object Calc 2')
|
|
196
|
+
}
|
|
197
|
+
this.screen++
|
|
198
|
+
|
|
199
|
+
// change Bar
|
|
200
|
+
this.updateBar
|
|
201
|
+
|
|
202
|
+
this.$nextTick(() => {
|
|
203
|
+
if (this.$refs.ffhApp.scrollIntoView) {
|
|
204
|
+
this.$refs.ffhApp.scrollIntoView({ behavior: 'smooth' })
|
|
205
|
+
}
|
|
206
|
+
})
|
|
207
|
+
},
|
|
208
|
+
prevScreen() {
|
|
209
|
+
this.screen--
|
|
210
|
+
if (this.screen === 1) {
|
|
211
|
+
this.selectedWeight = null
|
|
212
|
+
|
|
213
|
+
this.$refs.weightCardContainer.clearCard()
|
|
214
|
+
this.$refs.heightCardContainer.clearCard()
|
|
215
|
+
|
|
216
|
+
// update Bar
|
|
217
|
+
this.barItems = JSON.parse(JSON.stringify(this.items)) // Reseting the data back to the original items
|
|
218
|
+
|
|
219
|
+
this.$nextTick(() => {
|
|
220
|
+
const cardElement = this.$refs.weightCardContainer.$el.querySelector(
|
|
221
|
+
'#selectable-cc-card-0'
|
|
222
|
+
)
|
|
223
|
+
if (cardElement !== null) {
|
|
224
|
+
cardElement.focus()
|
|
225
|
+
}
|
|
226
|
+
})
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
resetApp() {
|
|
230
|
+
this.$refs.weightCardContainer.clearCard()
|
|
231
|
+
this.$refs.heightCardContainer.clearCard()
|
|
232
|
+
|
|
233
|
+
// added so that existing values are cleared and not reported to GTM if fired
|
|
234
|
+
//delete this.selectedWeight
|
|
235
|
+
//delete this.selectedHeight
|
|
236
|
+
//delete this.riskPoints[0]
|
|
237
|
+
|
|
238
|
+
this.screen = 1
|
|
239
|
+
|
|
240
|
+
// reset Bar
|
|
241
|
+
this.barItems = JSON.parse(JSON.stringify(this.items)) // Reseting the data back to the original items
|
|
242
|
+
|
|
243
|
+
this.$nextTick(() => {
|
|
244
|
+
if (this.$refs.ffhApp.scrollIntoView) {
|
|
245
|
+
this.$refs.ffhApp.scrollIntoView({ behavior: 'smooth' })
|
|
246
|
+
}
|
|
247
|
+
})
|
|
248
|
+
},
|
|
249
|
+
fireGTM(labelVar) {
|
|
250
|
+
if (this.$gtm) {
|
|
251
|
+
let massVar = ''
|
|
252
|
+
let heightVar = ''
|
|
253
|
+
let energyVar = ''
|
|
254
|
+
if (this.selectedWeight?.value) {
|
|
255
|
+
massVar = this.selectedWeight.value
|
|
256
|
+
}
|
|
257
|
+
if (this.selectedHeight?.value) {
|
|
258
|
+
heightVar = this.selectedHeight.value
|
|
259
|
+
}
|
|
260
|
+
if (this.riskPoints[0]?.energyImpact) {
|
|
261
|
+
energyVar = this.riskPoints[0].energyImpact
|
|
262
|
+
}
|
|
263
|
+
// gather attrs
|
|
264
|
+
let attrs = {
|
|
265
|
+
label: labelVar,
|
|
266
|
+
mass: massVar,
|
|
267
|
+
height: heightVar,
|
|
268
|
+
energy: energyVar
|
|
269
|
+
}
|
|
270
|
+
// fire the event
|
|
271
|
+
this.$gtm.push({
|
|
272
|
+
event: 'custom.interaction.droppedobject.click',
|
|
273
|
+
...attrs
|
|
274
|
+
})
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
</script>
|
|
280
|
+
|
|
281
|
+
<style lang="scss" scoped>
|
|
282
|
+
@import '../../../includes/scss/all';
|
|
283
|
+
@import './styles';
|
|
284
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.ffh-app {
|
|
2
|
+
padding-bottom: 40px;
|
|
3
|
+
.hero-header {
|
|
4
|
+
margin-bottom: 40px;
|
|
5
|
+
@media (min-width: 981px) {
|
|
6
|
+
margin-bottom: -50px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:deep(.hero-header .wcl-hero-header__mask) {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:deep(.hero-header .wcl-hero-header__content-wrapper__content-col) {
|
|
15
|
+
flex: 100%;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
}
|
|
18
|
+
:deep(button.wcl-cta.default:disabled) {
|
|
19
|
+
background-color: $gray-alt;
|
|
20
|
+
color: grey;
|
|
21
|
+
cursor: not-allowed; /* Change cursor to not-allowed */
|
|
22
|
+
}
|
|
23
|
+
:deep(button.wcl-cta.default:disabled .icon) {
|
|
24
|
+
filter: opacity(0.5);
|
|
25
|
+
height: 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Style for the link variant */
|
|
29
|
+
:deep(button.wcl-cta.default[variant="link"]) {
|
|
30
|
+
background: none;
|
|
31
|
+
padding: 0;
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
font-size: 22px;
|
|
36
|
+
border: none;
|
|
37
|
+
line-height: 20px;
|
|
38
|
+
letter-spacing: 0px;
|
|
39
|
+
margin-top: 50px;
|
|
40
|
+
margin-bottom: 15px;
|
|
41
|
+
margin-left: 0;
|
|
42
|
+
margin-right: 16px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:deep(button.wcl-cta.default[variant="link"] .wcl-cta__spacer) {
|
|
46
|
+
width: 5px
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="paragraph--directory__records--cj">
|
|
3
|
+
<container>
|
|
4
|
+
<row>
|
|
5
|
+
<column sm="2" class="title">
|
|
6
|
+
<span>{{ item.title }}</span>
|
|
7
|
+
</column>
|
|
8
|
+
<column class="court">
|
|
9
|
+
<div><strong>Court</strong></div>
|
|
10
|
+
<span>{{ item.court }}</span>
|
|
11
|
+
</column>
|
|
12
|
+
<column class="judge">
|
|
13
|
+
<div><strong>Judge</strong></div>
|
|
14
|
+
<span>{{ item.judge }}</span>
|
|
15
|
+
</column>
|
|
16
|
+
<column class="appeal">
|
|
17
|
+
<div><strong>Appeal</strong></div>
|
|
18
|
+
<span>{{ item.appeal }}</span>
|
|
19
|
+
</column>
|
|
20
|
+
<column class="judgement">
|
|
21
|
+
<div><strong>Judgement</strong></div>
|
|
22
|
+
<span>{{ processDate(item.judgement) }}</span>
|
|
23
|
+
</column>
|
|
24
|
+
<column class="published">
|
|
25
|
+
<div><strong>Published</strong></div>
|
|
26
|
+
<span>{{ processDate(item.published) }}</span>
|
|
27
|
+
</column>
|
|
28
|
+
</row>
|
|
29
|
+
</container>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
<script>
|
|
33
|
+
import Container from '../../../../Containers/Container'
|
|
34
|
+
import Row from '../../../../Containers/Row'
|
|
35
|
+
import Column from '../../../../Containers/Column'
|
|
36
|
+
import { format } from 'date-fns'
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
components: {
|
|
40
|
+
Container,
|
|
41
|
+
Row,
|
|
42
|
+
Column
|
|
43
|
+
},
|
|
44
|
+
props: {
|
|
45
|
+
item: {
|
|
46
|
+
type: Object,
|
|
47
|
+
required: true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
methods: {
|
|
51
|
+
processDate(date) {
|
|
52
|
+
return format(new Date(date), 'dd MMM yyyy')
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
<style lang="scss" scoped>
|
|
58
|
+
@import '../styles.scss';
|
|
59
|
+
</style>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
2
|
+
//::: :::
|
|
3
|
+
//::: https://www.geodatasource.com/developers/javascript :::
|
|
4
|
+
//::: :::
|
|
5
|
+
//::: This routine calculates the distance between two points (given the :::
|
|
6
|
+
//::: latitude/longitude of those points). :::
|
|
7
|
+
//::: :::
|
|
8
|
+
//::: Definitions: :::
|
|
9
|
+
//::: South latitudes are negative, east longitudes are positive :::
|
|
10
|
+
//::: :::
|
|
11
|
+
//::: Passed to function: :::
|
|
12
|
+
//::: lat1, lon1 = Latitude and Longitude of point 1 (in decimal degrees) :::
|
|
13
|
+
//::: lat2, lon2 = Latitude and Longitude of point 2 (in decimal degrees) :::
|
|
14
|
+
//::: unit = the unit you desire for results :::
|
|
15
|
+
//::: where: 'M' is statute miles (default) :::
|
|
16
|
+
//::: 'K' is kilometers :::
|
|
17
|
+
//::: 'N' is nautical miles :::
|
|
18
|
+
//::: :::
|
|
19
|
+
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
20
|
+
|
|
21
|
+
export const calcDistance = (lat1, lon1, lat2, lon2, unit) => {
|
|
22
|
+
if (lat1 == lat2 && lon1 == lon2) {
|
|
23
|
+
return 0
|
|
24
|
+
} else {
|
|
25
|
+
var radlat1 = (Math.PI * lat1) / 180
|
|
26
|
+
var radlat2 = (Math.PI * lat2) / 180
|
|
27
|
+
var theta = lon1 - lon2
|
|
28
|
+
var radtheta = (Math.PI * theta) / 180
|
|
29
|
+
var dist =
|
|
30
|
+
Math.sin(radlat1) * Math.sin(radlat2) +
|
|
31
|
+
Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta)
|
|
32
|
+
if (dist > 1) {
|
|
33
|
+
dist = 1
|
|
34
|
+
}
|
|
35
|
+
dist = Math.acos(dist)
|
|
36
|
+
dist = (dist * 180) / Math.PI
|
|
37
|
+
dist = dist * 60 * 1.1515
|
|
38
|
+
if (unit == 'K') {
|
|
39
|
+
dist = dist * 1.609344
|
|
40
|
+
}
|
|
41
|
+
if (unit == 'N') {
|
|
42
|
+
dist = dist * 0.8684
|
|
43
|
+
}
|
|
44
|
+
return dist.toFixed(2)
|
|
45
|
+
}
|
|
46
|
+
}
|