@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,278 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<selectable-cards
|
|
3
|
+
v-if="cards"
|
|
4
|
+
ref="cardDeck"
|
|
5
|
+
:title="titles && titles.heading"
|
|
6
|
+
:sub-heading="titles && titles.subHeading"
|
|
7
|
+
:cards="cards"
|
|
8
|
+
class="ffh-card-container control-selectablecards"
|
|
9
|
+
:card-type="typeCard"
|
|
10
|
+
:icon-is-bordered="iconIsBordered"
|
|
11
|
+
:card-text-align="cardItemTextAlign"
|
|
12
|
+
@selected="selectedCardChangeFocus"
|
|
13
|
+
>
|
|
14
|
+
<template v-slot:cardGridFooter>
|
|
15
|
+
<container class="ffh-card-container__footer">
|
|
16
|
+
<row>
|
|
17
|
+
<column>
|
|
18
|
+
<h3 class="ffh-card-container__footer--title">
|
|
19
|
+
{{ titles && titles.selectHeading }} <span>(optional)</span>
|
|
20
|
+
</h3>
|
|
21
|
+
|
|
22
|
+
<div class="input-group">
|
|
23
|
+
<input
|
|
24
|
+
v-model="inputValueDisplay"
|
|
25
|
+
type="text"
|
|
26
|
+
class="form-control input-with-arrows"
|
|
27
|
+
:min="minValue"
|
|
28
|
+
:max="maxValue"
|
|
29
|
+
:placeholder="placeHolder"
|
|
30
|
+
@focus="handleInputFocus"
|
|
31
|
+
@blur="validateInput"
|
|
32
|
+
/>
|
|
33
|
+
<div class="input-group-btn input-group-btn--black">
|
|
34
|
+
<img
|
|
35
|
+
:src="CaretUp"
|
|
36
|
+
height="16"
|
|
37
|
+
width="16"
|
|
38
|
+
class="btn-up"
|
|
39
|
+
@click="incrementValue"
|
|
40
|
+
/>
|
|
41
|
+
|
|
42
|
+
<img
|
|
43
|
+
:src="CaretDown"
|
|
44
|
+
height="16"
|
|
45
|
+
width="16"
|
|
46
|
+
class="btn-down"
|
|
47
|
+
@click="decrementValue"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<span class="ffh-card-container__footer--label">{{
|
|
52
|
+
titles && titles.selectSubHeading
|
|
53
|
+
}}</span>
|
|
54
|
+
</column>
|
|
55
|
+
</row>
|
|
56
|
+
</container>
|
|
57
|
+
<container>
|
|
58
|
+
<row>
|
|
59
|
+
<column class="ffh-cc-nav__back-col" xs="12">
|
|
60
|
+
<cta-button
|
|
61
|
+
v-if="!isWeight"
|
|
62
|
+
:glyph="CaretLeft"
|
|
63
|
+
variant="link"
|
|
64
|
+
:rtl="true"
|
|
65
|
+
class="ffh-cc-nav__back-col--back-btn"
|
|
66
|
+
@clicked="handlePrevScreen"
|
|
67
|
+
>Go back to previous screen</cta-button
|
|
68
|
+
>
|
|
69
|
+
</column>
|
|
70
|
+
<column class="ffh-cc-nav__right-col" xs="12">
|
|
71
|
+
<cta-button
|
|
72
|
+
ref="calNextBtn"
|
|
73
|
+
:glyph="CaretRight"
|
|
74
|
+
class="ffh-cc-nav__right-col--next-btn"
|
|
75
|
+
:disabled="isButtonDisabled"
|
|
76
|
+
@clicked="handleNextScreen"
|
|
77
|
+
>
|
|
78
|
+
Next
|
|
79
|
+
</cta-button>
|
|
80
|
+
</column>
|
|
81
|
+
</row>
|
|
82
|
+
</container>
|
|
83
|
+
</template>
|
|
84
|
+
</selectable-cards>
|
|
85
|
+
</template>
|
|
86
|
+
|
|
87
|
+
<script>
|
|
88
|
+
import Container from '../../../Containers/Container/index.vue'
|
|
89
|
+
import Column from '../../../Containers/Column/index.vue'
|
|
90
|
+
import Row from '../../../Containers/Row/index.vue'
|
|
91
|
+
import CtaButton from '../../../SubComponents/CtaButton/index.vue'
|
|
92
|
+
import SelectableCards from '../../SelectableCards/index.vue'
|
|
93
|
+
import CaretDown from '../../../../assets/icons/caret-down.svg?url'
|
|
94
|
+
import CaretUp from '../../../../assets/icons/caret-up.svg?url'
|
|
95
|
+
import CaretRight from '../../../../assets/icons/caret-right.svg?url'
|
|
96
|
+
import CaretLeft from '../../../../assets/icons/caret-left.svg?url'
|
|
97
|
+
|
|
98
|
+
export default {
|
|
99
|
+
name: 'CardContainer',
|
|
100
|
+
components: {
|
|
101
|
+
Column,
|
|
102
|
+
Container,
|
|
103
|
+
Row,
|
|
104
|
+
CtaButton,
|
|
105
|
+
SelectableCards
|
|
106
|
+
},
|
|
107
|
+
props: {
|
|
108
|
+
iconIsBordered: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: false
|
|
111
|
+
},
|
|
112
|
+
isWeight: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: true
|
|
115
|
+
},
|
|
116
|
+
isHeight: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false
|
|
119
|
+
},
|
|
120
|
+
titles: {
|
|
121
|
+
type: Object,
|
|
122
|
+
default: () => []
|
|
123
|
+
},
|
|
124
|
+
weights: {
|
|
125
|
+
type: Array,
|
|
126
|
+
default: () => []
|
|
127
|
+
},
|
|
128
|
+
heights: {
|
|
129
|
+
type: Array,
|
|
130
|
+
default: () => []
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
data() {
|
|
134
|
+
return {
|
|
135
|
+
CaretUp,
|
|
136
|
+
CaretDown,
|
|
137
|
+
CaretRight,
|
|
138
|
+
CaretLeft,
|
|
139
|
+
typeCard: 'control-selectcards',
|
|
140
|
+
cardItemTextAlign: 'center',
|
|
141
|
+
title: null,
|
|
142
|
+
cards: null,
|
|
143
|
+
cardUnit: null,
|
|
144
|
+
placeHolder: '000',
|
|
145
|
+
inputValueDisplay: null,
|
|
146
|
+
minValue: 0.25,
|
|
147
|
+
maxValue: 500,
|
|
148
|
+
selectedCard: null,
|
|
149
|
+
selectedInput: null
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
computed: {
|
|
153
|
+
isButtonDisabled() {
|
|
154
|
+
// Call the function to get its result, then check if either selectedCard is null or inputValueDisplay is null
|
|
155
|
+
return this.getValueWithoutUnits === null
|
|
156
|
+
},
|
|
157
|
+
getValueWithoutUnits() {
|
|
158
|
+
// Ensure that inputValueDisplay is not null before attempting to replace
|
|
159
|
+
if (this.inputValueDisplay !== null) {
|
|
160
|
+
// Remove units (e.g., 'kg' or 'meters') from the input value
|
|
161
|
+
const valueWithoutUnits = this.inputValueDisplay.replace(
|
|
162
|
+
/kg|meters/i,
|
|
163
|
+
''
|
|
164
|
+
)
|
|
165
|
+
// Convert the remaining value to a numeric representation
|
|
166
|
+
const numericValue = parseFloat(valueWithoutUnits)
|
|
167
|
+
// Check if numericValue is a valid number
|
|
168
|
+
if (!isNaN(numericValue)) {
|
|
169
|
+
// Use toFixed(2) to display the number with two decimal places
|
|
170
|
+
return parseFloat(numericValue.toFixed(2))
|
|
171
|
+
} else {
|
|
172
|
+
return null
|
|
173
|
+
}
|
|
174
|
+
} else {
|
|
175
|
+
return null
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
mounted() {
|
|
180
|
+
this.inputValueDisplay = null
|
|
181
|
+
if (this.isWeight) {
|
|
182
|
+
this.title = this.titles.weight
|
|
183
|
+
this.cards = this.weights
|
|
184
|
+
this.cardUnit = ' kg'
|
|
185
|
+
this.placeHolder = this.placeHolder + this.cardUnit
|
|
186
|
+
this.minValue = 0.25
|
|
187
|
+
this.maxValue = 500
|
|
188
|
+
} else {
|
|
189
|
+
this.title = this.titles.height
|
|
190
|
+
this.cards = this.heights
|
|
191
|
+
this.cardUnit = ' meters'
|
|
192
|
+
this.placeHolder = this.placeHolder + this.cardUnit
|
|
193
|
+
this.minValue = 2
|
|
194
|
+
this.maxValue = 250
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
methods: {
|
|
198
|
+
handlePrevScreen() {
|
|
199
|
+
this.$emit('prevScreen')
|
|
200
|
+
},
|
|
201
|
+
handleNextScreen() {
|
|
202
|
+
// Only emit the 'nextScreen' event if the button is not disabled
|
|
203
|
+
if (!this.isButtonDisabled) {
|
|
204
|
+
this.selectedInput = { value: this.getValueWithoutUnits }
|
|
205
|
+
|
|
206
|
+
this.inputValueDisplay = null
|
|
207
|
+
this.$emit('nextScreen', this.selectedInput)
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
selectedCardChangeFocus(card) {
|
|
211
|
+
// if statement added to overcome issue of lost values when function is called twice
|
|
212
|
+
if (card.value !== undefined) {
|
|
213
|
+
this.selectedCard = card
|
|
214
|
+
this.selectedInput = null
|
|
215
|
+
this.inputValueDisplay = card.value + ' ' + this.cardUnit
|
|
216
|
+
this.$nextTick(() => this.$refs.calNextBtn.$el.focus())
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
clearCard() {
|
|
220
|
+
this.selectedInput = null
|
|
221
|
+
|
|
222
|
+
this.selectedCard = null
|
|
223
|
+
this.$refs.cardDeck.clearCard()
|
|
224
|
+
},
|
|
225
|
+
incrementValue() {
|
|
226
|
+
if (this.selectedCard !== null) {
|
|
227
|
+
this.$refs.cardDeck.clearCard()
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
let newValue = Math.min(this.getValueWithoutUnits + 1, this.maxValue)
|
|
231
|
+
this.inputValueDisplay = newValue + this.cardUnit
|
|
232
|
+
|
|
233
|
+
this.selectedInput = { value: newValue }
|
|
234
|
+
},
|
|
235
|
+
decrementValue() {
|
|
236
|
+
if (this.selectedCard !== null) {
|
|
237
|
+
this.$refs.cardDeck.clearCard()
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
let newValue = Math.max(this.getValueWithoutUnits - 1, this.minValue)
|
|
241
|
+
this.inputValueDisplay = newValue + this.cardUnit
|
|
242
|
+
|
|
243
|
+
this.selectedInput = { value: newValue }
|
|
244
|
+
},
|
|
245
|
+
// Validate the input value on blur
|
|
246
|
+
validateInput() {
|
|
247
|
+
// Check if the numeric value is within the range (minValue to maxValue)
|
|
248
|
+
if (
|
|
249
|
+
this.getValueWithoutUnits !== null &&
|
|
250
|
+
this.getValueWithoutUnits >= this.minValue &&
|
|
251
|
+
this.getValueWithoutUnits <= this.maxValue
|
|
252
|
+
) {
|
|
253
|
+
// Value is within the range, update the input value
|
|
254
|
+
this.inputValueDisplay = this.getValueWithoutUnits + this.cardUnit
|
|
255
|
+
|
|
256
|
+
// alternate..
|
|
257
|
+
this.selectedInput = { value: this.getValueWithoutUnits }
|
|
258
|
+
} else {
|
|
259
|
+
// Value is outside the range, leave the input blank
|
|
260
|
+
this.inputValueDisplay = null
|
|
261
|
+
|
|
262
|
+
this.selectedInput = null
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
// Handle input focus
|
|
266
|
+
handleInputFocus() {
|
|
267
|
+
if (this.selectedCard !== null) {
|
|
268
|
+
this.$refs.cardDeck.clearCard()
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
</script>
|
|
274
|
+
|
|
275
|
+
<style lang="scss" scoped>
|
|
276
|
+
@import '../../../../includes/scss/all';
|
|
277
|
+
@import './styles';
|
|
278
|
+
</style>
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
|
|
2
|
+
.ffh-card-container {
|
|
3
|
+
margin-bottom: 20px;
|
|
4
|
+
|
|
5
|
+
:deep(.section-group__subheading) {
|
|
6
|
+
font-size: px-to-rem(20px);
|
|
7
|
+
line-height: 28px;
|
|
8
|
+
padding-bottom: 16px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media screen and (max-width: 575px) {
|
|
12
|
+
:deep(.card-grid-item__description p) {
|
|
13
|
+
font-size: px-to-rem(18px);
|
|
14
|
+
}
|
|
15
|
+
:deep(.card-grid-item__card--select-radio .card-grid-item-icon .icon) {
|
|
16
|
+
width: 28px;
|
|
17
|
+
height: 28px;
|
|
18
|
+
margin-top: 5px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ffh-cc-nav {
|
|
23
|
+
margin-top: 2rem;
|
|
24
|
+
|
|
25
|
+
&__back-col {
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
line-height: 1.6;
|
|
28
|
+
flex: 0 0 100%;
|
|
29
|
+
|
|
30
|
+
@media screen and (min-width: 768px) {
|
|
31
|
+
flex: 0 0 60%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--back-btn {
|
|
35
|
+
margin-top: 30px;
|
|
36
|
+
|
|
37
|
+
:deep(.wcl-cta__link-text) {
|
|
38
|
+
font-size: px-to-rem(20px);
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
@media screen and (min-width: 768px) {
|
|
41
|
+
font-size: px-to-rem(22px);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__right-col {
|
|
48
|
+
text-align: right;
|
|
49
|
+
min-height: 30px;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex: 0 0 100%;
|
|
52
|
+
|
|
53
|
+
@media screen and (min-width: 768px) {
|
|
54
|
+
flex: 0 0 40%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--next-btn {
|
|
58
|
+
flex: 0 0 100%;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
margin: 1rem 0 0 auto;
|
|
61
|
+
padding: 1.125rem 2.8rem;
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
|
|
64
|
+
@media screen and (min-width: 768px) {
|
|
65
|
+
flex: 0 0 auto;
|
|
66
|
+
margin-top: 2rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:deep(.wcl-cta__link-text) {
|
|
70
|
+
min-width: auto;
|
|
71
|
+
font-size: px-to-rem(26px);
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
@media screen and (min-width: 768px) {
|
|
74
|
+
font-size: px-to-rem(24px);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
:deep(.wcl-cta__spacer) {
|
|
78
|
+
width: 5px;
|
|
79
|
+
}
|
|
80
|
+
:deep(.icon) {
|
|
81
|
+
height: 20px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__footer {
|
|
89
|
+
&--title {
|
|
90
|
+
font-size: px-to-rem(26px);
|
|
91
|
+
font-weight: 700;
|
|
92
|
+
margin-bottom: 15px;
|
|
93
|
+
|
|
94
|
+
span {
|
|
95
|
+
font-size: px-to-rem(16px);
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&--label {
|
|
100
|
+
font-size: px-to-rem(14px);
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
|
|
103
|
+
@media screen and (min-width: 1200px) {
|
|
104
|
+
font-size: px-to-rem(16px);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.input-group {
|
|
109
|
+
position: relative;
|
|
110
|
+
margin-bottom: 10px;
|
|
111
|
+
|
|
112
|
+
.input-with-arrows {
|
|
113
|
+
font-size: px-to-rem(22px);
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
height: 64px;
|
|
116
|
+
border: 3px solid $gray;
|
|
117
|
+
border-radius: 10px;
|
|
118
|
+
width: 100%;
|
|
119
|
+
|
|
120
|
+
@media screen and (min-width: 768) {
|
|
121
|
+
font-size: px-to-rem(24px);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.input-group-btn {
|
|
126
|
+
border-radius: 0 10px 10px 0;
|
|
127
|
+
position: absolute;
|
|
128
|
+
background: $black;
|
|
129
|
+
width: 15%;
|
|
130
|
+
height: 64px;
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
justify-content: space-between;
|
|
134
|
+
align-items: center;
|
|
135
|
+
padding: 10px 0;
|
|
136
|
+
z-index: 9;
|
|
137
|
+
right: 0;
|
|
138
|
+
@media (min-width: 768px) {
|
|
139
|
+
width: 10%;
|
|
140
|
+
}
|
|
141
|
+
@media (min-width: 991px) {
|
|
142
|
+
width: 7%;
|
|
143
|
+
}
|
|
144
|
+
img {
|
|
145
|
+
width: 16px;
|
|
146
|
+
height: 16px;
|
|
147
|
+
filter: invert(100%);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
export const ffhPage = {
|
|
2
|
+
disclaimer:
|
|
3
|
+
'<p>* Disclaimer: Please note that the dropped object calculator is intended to provide an estimate of the time it takes for an object to fall to the ground and the impact force it may generate upon landing. The calculations are based on certain assumptions and may not take into account all the variables that could affect the outcome. the results should be taken as an approximate guide, it does not replace risk assessment or risk control measures.. We do not guarantee the accuracy of the calculator and cannot be held responsible for any damages or losses that may arise from using it. Always handle objects with care and take appropriate safety measures to avoid accidents.</p>'
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const heroHeader = {
|
|
7
|
+
title: 'Dropped object calculator',
|
|
8
|
+
description:
|
|
9
|
+
'<p>This Calculator is a guide only and is intended to give a general idea of the potential severity of a dropped object. A detailed and specific risk assessment will always deliver a more accurate calculation of potential severity.</p>'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const barItems = [
|
|
13
|
+
{
|
|
14
|
+
value: '1',
|
|
15
|
+
checked: true,
|
|
16
|
+
completed: false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
value: '2',
|
|
20
|
+
checked: false,
|
|
21
|
+
completed: false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
value: '3',
|
|
25
|
+
checked: false,
|
|
26
|
+
completed: false
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
export const cardTitles = {
|
|
31
|
+
weight: {
|
|
32
|
+
heading: 'Pick a object?',
|
|
33
|
+
subHeading:
|
|
34
|
+
'<p>Pick a object from the selections or if you know exactly how heavy the object that is being dropped is, enter the weight in input box below</p>',
|
|
35
|
+
selectHeading: 'How heavy is the object?',
|
|
36
|
+
selectSubHeading: 'Weight in kilograms, max is 500 kg'
|
|
37
|
+
},
|
|
38
|
+
height: {
|
|
39
|
+
heading: 'How high up are you?',
|
|
40
|
+
subHeading:
|
|
41
|
+
'<p>Pick a height from the selections below or if you know exactly how high up you are enter the height in input box below.</p>',
|
|
42
|
+
selectHeading: 'How high up are you?',
|
|
43
|
+
selectSubHeading: 'Height in meters, max is 250 meters'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const cardWeights = [
|
|
48
|
+
{
|
|
49
|
+
name: 'Bolt',
|
|
50
|
+
icon:
|
|
51
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%201%20object.svg',
|
|
52
|
+
value: '0.25',
|
|
53
|
+
units: 'kg'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Screwdriver',
|
|
57
|
+
icon:
|
|
58
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%202%20object.svg',
|
|
59
|
+
value: '0.26',
|
|
60
|
+
units: 'kg'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'Hammer',
|
|
64
|
+
icon:
|
|
65
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%201%20object.svg',
|
|
66
|
+
value: '0.5',
|
|
67
|
+
units: 'kg'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Electric drill',
|
|
71
|
+
icon:
|
|
72
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%202%20object.svg',
|
|
73
|
+
value: '2',
|
|
74
|
+
units: 'kg'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Sledge Hammer',
|
|
78
|
+
icon:
|
|
79
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%201%20object.svg',
|
|
80
|
+
value: '5',
|
|
81
|
+
units: 'kg'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Scaffolding platform',
|
|
85
|
+
icon:
|
|
86
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%202%20object.svg',
|
|
87
|
+
value: '50',
|
|
88
|
+
units: 'kg'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Anvil',
|
|
92
|
+
icon:
|
|
93
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%201%20object.svg',
|
|
94
|
+
value: '75',
|
|
95
|
+
units: 'kg'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Window pane',
|
|
99
|
+
icon:
|
|
100
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%201%20object.svg',
|
|
101
|
+
value: '250',
|
|
102
|
+
units: 'kg'
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
export const cardHeights = [
|
|
107
|
+
{
|
|
108
|
+
name: 'House roof',
|
|
109
|
+
icon:
|
|
110
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
111
|
+
value: '2.00',
|
|
112
|
+
units: 'meters'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: '2nd Story',
|
|
116
|
+
icon:
|
|
117
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
118
|
+
value: '5',
|
|
119
|
+
units: 'meters'
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: '3rd Story',
|
|
123
|
+
icon:
|
|
124
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
125
|
+
value: '0.5',
|
|
126
|
+
units: 'meters'
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: '4th Story',
|
|
130
|
+
icon:
|
|
131
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
132
|
+
value: '2',
|
|
133
|
+
units: 'meters'
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'VIC state library',
|
|
137
|
+
icon:
|
|
138
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
139
|
+
value: '5',
|
|
140
|
+
units: 'meters'
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'Worksafe building',
|
|
144
|
+
icon:
|
|
145
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
146
|
+
value: '50',
|
|
147
|
+
units: 'meters'
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'MCG',
|
|
151
|
+
icon:
|
|
152
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
153
|
+
value: '80',
|
|
154
|
+
units: 'meters'
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'Top of Rialto',
|
|
158
|
+
icon:
|
|
159
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/icon%209%20height.svg',
|
|
160
|
+
value: '250',
|
|
161
|
+
units: 'meters'
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
|
|
165
|
+
export const riskResults = [
|
|
166
|
+
{
|
|
167
|
+
title: 'Probably safe',
|
|
168
|
+
iconName: 'Cricket Ball',
|
|
169
|
+
icon:
|
|
170
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%205.svg',
|
|
171
|
+
message:
|
|
172
|
+
'<p>The impact of this amount of energy on your body is probably safe.</p>',
|
|
173
|
+
rangeMax: 50,
|
|
174
|
+
rangeMin: 0
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
title: "It's like being hit by a kicked soccer ball",
|
|
178
|
+
iconName: 'Bus',
|
|
179
|
+
icon:
|
|
180
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%205.svg',
|
|
181
|
+
message:
|
|
182
|
+
'<p>The impact of this amount of energy on your body is similar to being hit by a kicked soccer ball.</p>',
|
|
183
|
+
rangeMax: 100,
|
|
184
|
+
rangeMin: 50
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
title: "It's like being charged by an angry Emu",
|
|
188
|
+
iconName: 'Rhino',
|
|
189
|
+
icon:
|
|
190
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%205.svg',
|
|
191
|
+
message:
|
|
192
|
+
'<p>The impact of this amount of energy on your body is similar to being charged by <span>an angry Emu.</span></p>',
|
|
193
|
+
rangeMax: 300,
|
|
194
|
+
rangeMin: 100
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
title: "It's like being headbutted by a goat",
|
|
198
|
+
iconName: 'Cricket Ball',
|
|
199
|
+
icon:
|
|
200
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%205.svg',
|
|
201
|
+
message:
|
|
202
|
+
'<p>The impact of this amount of energy on your body is similar to being headbutted by a goat</p>',
|
|
203
|
+
rangeMax: 500,
|
|
204
|
+
rangeMin: 300
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
title: "It's like being kicked by a red kangaroo",
|
|
208
|
+
iconName: 'Rhino',
|
|
209
|
+
icon:
|
|
210
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%206.svg',
|
|
211
|
+
message:
|
|
212
|
+
'<p>The impact of this amount of energy on your body is similar to being kicked by a red kangaroo</p>',
|
|
213
|
+
rangeMax: 700,
|
|
214
|
+
rangeMin: 500
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
title: "It's like pounced by a lion",
|
|
218
|
+
iconName: 'Rhino',
|
|
219
|
+
icon:
|
|
220
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%205.svg',
|
|
221
|
+
message:
|
|
222
|
+
'<p>The impact of this amount of energy on your body is similar to pounced by a lion</p>',
|
|
223
|
+
rangeMax: 1000,
|
|
224
|
+
rangeMin: 700
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
title: "It's like being hit by a charging rhino",
|
|
228
|
+
iconName: 'Rhino',
|
|
229
|
+
icon:
|
|
230
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%206.svg',
|
|
231
|
+
message:
|
|
232
|
+
'<p>The impact of this amount of energy on your body is similar to pounced by a lion</p>',
|
|
233
|
+
rangeMax: 3000,
|
|
234
|
+
rangeMin: 1000
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
title: "It's like being hit by an angry elephant",
|
|
238
|
+
iconName: 'Bus',
|
|
239
|
+
icon:
|
|
240
|
+
'https://content-dev-v2.api.worksafe.vic.gov.au/sites/default/files/icons/Ellipse%204.svg',
|
|
241
|
+
message:
|
|
242
|
+
'<p>The impact of this amount of energy on your body is similar to being hit by an angry elephant</p>',
|
|
243
|
+
rangeMax: 10000,
|
|
244
|
+
rangeMin: 3000
|
|
245
|
+
}
|
|
246
|
+
]
|