@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,88 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="paragraph--directory__records--isp">
|
|
3
|
+
<container>
|
|
4
|
+
<row>
|
|
5
|
+
<column sm="6" class="title">
|
|
6
|
+
<span tabindex="0">{{ item.title }}</span>
|
|
7
|
+
</column>
|
|
8
|
+
<column class="address">
|
|
9
|
+
<a target="_blank" :href="gMapLink">
|
|
10
|
+
{{ item.address.suburb }}, {{ item.address.postcode }}
|
|
11
|
+
</a>
|
|
12
|
+
</column>
|
|
13
|
+
<column class="contact">
|
|
14
|
+
<div>Phone</div>
|
|
15
|
+
<a :href="`tel:${item.contact.mobile || item.contact.phone}`"
|
|
16
|
+
><span class="sr-only">Phone number</span
|
|
17
|
+
>{{ item.contact.mobile || item.contact.phone }}</a
|
|
18
|
+
>
|
|
19
|
+
</column>
|
|
20
|
+
<column v-if="baseLocation && recordLocation" class="distance">
|
|
21
|
+
<div>Distance</div>
|
|
22
|
+
<div tabindex="0">
|
|
23
|
+
<span class="sr-only">Distance from your specified location</span>
|
|
24
|
+
{{
|
|
25
|
+
calcDistance(
|
|
26
|
+
baseLocation.lat,
|
|
27
|
+
baseLocation.lng,
|
|
28
|
+
recordLocation.lat,
|
|
29
|
+
recordLocation.lng,
|
|
30
|
+
'K'
|
|
31
|
+
)
|
|
32
|
+
}}
|
|
33
|
+
km
|
|
34
|
+
</div>
|
|
35
|
+
</column>
|
|
36
|
+
</row>
|
|
37
|
+
</container>
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
<script>
|
|
41
|
+
import Container from '../../../../Containers/Container'
|
|
42
|
+
import Row from '../../../../Containers/Row'
|
|
43
|
+
import Column from '../../../../Containers/Column'
|
|
44
|
+
import { calcDistance } from './distance'
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
components: {
|
|
48
|
+
Container,
|
|
49
|
+
Row,
|
|
50
|
+
Column
|
|
51
|
+
},
|
|
52
|
+
props: {
|
|
53
|
+
item: {
|
|
54
|
+
type: Object,
|
|
55
|
+
required: true
|
|
56
|
+
},
|
|
57
|
+
location: {
|
|
58
|
+
type: [Object, Boolean],
|
|
59
|
+
default: false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
gMapLink() {
|
|
64
|
+
return `https://google.com/maps?q=${this.item.title}%20${this.item.address.suburb},${this.item.address.postcode}`
|
|
65
|
+
},
|
|
66
|
+
baseLocation() {
|
|
67
|
+
return this.location
|
|
68
|
+
? { lat: this.location?.lat, lng: this.location?.lng }
|
|
69
|
+
: false
|
|
70
|
+
},
|
|
71
|
+
recordLocation() {
|
|
72
|
+
let {
|
|
73
|
+
address: { map: { field_location: { lat, lng } } = {} } = {}
|
|
74
|
+
} = this.item
|
|
75
|
+
return {
|
|
76
|
+
lat,
|
|
77
|
+
lng
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
methods: {
|
|
82
|
+
calcDistance
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
<style lang="scss" scoped>
|
|
87
|
+
@import '../styles.scss';
|
|
88
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="paragraph--directory__records--prs">
|
|
3
|
+
<b-button
|
|
4
|
+
:class="visible ? null : 'collapsed'"
|
|
5
|
+
:aria-expanded="visible ? 'true' : 'false'"
|
|
6
|
+
:aria-controls="`collapse-${item.id}`"
|
|
7
|
+
:aria-labelledby="`collapse-${item.id}`"
|
|
8
|
+
@click="handleClick(item.title)"
|
|
9
|
+
>
|
|
10
|
+
<record-details :item="item" />
|
|
11
|
+
</b-button>
|
|
12
|
+
<b-collapse
|
|
13
|
+
:id="`collapse-${item.id}`"
|
|
14
|
+
v-model="visible"
|
|
15
|
+
class="record-details"
|
|
16
|
+
>
|
|
17
|
+
<record-content :item="item" />
|
|
18
|
+
</b-collapse>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
<script>
|
|
22
|
+
import RecordDetails from './recordDetails'
|
|
23
|
+
import RecordContent from './recordContent'
|
|
24
|
+
export default {
|
|
25
|
+
components: {
|
|
26
|
+
RecordDetails,
|
|
27
|
+
RecordContent
|
|
28
|
+
},
|
|
29
|
+
props: {
|
|
30
|
+
item: {
|
|
31
|
+
type: Object,
|
|
32
|
+
required: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
visible: false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
handleClick(title) {
|
|
42
|
+
this.visible = !this.visible
|
|
43
|
+
if (this.$gtm) {
|
|
44
|
+
if (this.visible) {
|
|
45
|
+
this.$gtm.push({ event: 'custom.search.prs.open', title })
|
|
46
|
+
} else {
|
|
47
|
+
this.$gtm.push({
|
|
48
|
+
event: 'custom.search.prs.close',
|
|
49
|
+
title
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
<style lang="scss" scoped>
|
|
58
|
+
@import '../styles.scss';
|
|
59
|
+
</style>
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
3
|
+
<container>
|
|
4
|
+
<row>
|
|
5
|
+
<column sm="9">
|
|
6
|
+
<div v-if="item.outcome" class="record-details__outcome">
|
|
7
|
+
<h3>Outcome</h3>
|
|
8
|
+
<div v-if="item.outcome" v-html="item.outcome"></div>
|
|
9
|
+
</div>
|
|
10
|
+
</column>
|
|
11
|
+
<column sm="3">
|
|
12
|
+
<ul class="record-meta">
|
|
13
|
+
<li v-for="(m, k, i) in itemMeta" :key="i">
|
|
14
|
+
<div class="meta-heading">
|
|
15
|
+
{{ k }}
|
|
16
|
+
</div>
|
|
17
|
+
<div v-html="processMeta(m)"></div>
|
|
18
|
+
</li>
|
|
19
|
+
</ul>
|
|
20
|
+
</column>
|
|
21
|
+
<column sm="9">
|
|
22
|
+
<div v-if="item.attachment" class="record-details__attachment">
|
|
23
|
+
<strong>Attachment</strong>
|
|
24
|
+
<div class="attachment_name">
|
|
25
|
+
<a target="_blank" :href="item.attachment_src" download>{{
|
|
26
|
+
item.attachment
|
|
27
|
+
}}</a>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</column>
|
|
31
|
+
</row>
|
|
32
|
+
</container>
|
|
33
|
+
</template>
|
|
34
|
+
<script>
|
|
35
|
+
import Container from '../../../../Containers/Container'
|
|
36
|
+
import Row from '../../../../Containers/Row'
|
|
37
|
+
import Column from '../../../../Containers/Column'
|
|
38
|
+
import { format } from 'date-fns'
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
components: {
|
|
42
|
+
Container,
|
|
43
|
+
Row,
|
|
44
|
+
Column
|
|
45
|
+
},
|
|
46
|
+
props: {
|
|
47
|
+
item: {
|
|
48
|
+
type: Object,
|
|
49
|
+
required: true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
computed: {
|
|
53
|
+
itemMeta() {
|
|
54
|
+
return {
|
|
55
|
+
Sentence: this.item.field_prs_sentence
|
|
56
|
+
? this.item.field_prs_sentence
|
|
57
|
+
: 'n/a',
|
|
58
|
+
Fine: this.item.meta.fine ? this.item.meta.fine : 'n/a',
|
|
59
|
+
Costs: this.item.meta.costs ? this.item.meta.costs : 'n/a',
|
|
60
|
+
Restitution: this.item.meta.restitution
|
|
61
|
+
? this.item.meta.restitution
|
|
62
|
+
: 'n/a',
|
|
63
|
+
Published: this.item.meta.datePublished
|
|
64
|
+
? this.processDate(this.item.meta.datePublished)
|
|
65
|
+
: 'n/a',
|
|
66
|
+
Appeal: this.item.meta.appeal ? this.item.meta.appeal : 'n/a',
|
|
67
|
+
Category: this.item.meta.category?.length
|
|
68
|
+
? this.item.meta.category
|
|
69
|
+
: 'n/a'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
processMeta(meta) {
|
|
75
|
+
if (Array.isArray(meta)) {
|
|
76
|
+
var str = '<ol>'
|
|
77
|
+
meta.forEach((m) => {
|
|
78
|
+
str += `<li>${m}</li>`
|
|
79
|
+
})
|
|
80
|
+
str += '</ol>'
|
|
81
|
+
return str
|
|
82
|
+
} else {
|
|
83
|
+
return meta
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
processDate(date) {
|
|
87
|
+
return format(new Date(date), 'dd MMM yy')
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
</script>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<container>
|
|
3
|
+
<row>
|
|
4
|
+
<column sm="3" class="title">
|
|
5
|
+
{{ item.title }}
|
|
6
|
+
</column>
|
|
7
|
+
<column v-if="item.meta.court" sm="3">
|
|
8
|
+
{{ item.meta.court.join(', ') }}
|
|
9
|
+
</column>
|
|
10
|
+
<column v-if="item.meta.legislation" sm="3">
|
|
11
|
+
{{ item.meta.legislation.join(', ') }}
|
|
12
|
+
</column>
|
|
13
|
+
<column>
|
|
14
|
+
<div v-if="item.meta.section">
|
|
15
|
+
<div>Section</div>
|
|
16
|
+
<div>{{ item.meta.section }}</div>
|
|
17
|
+
</div>
|
|
18
|
+
</column>
|
|
19
|
+
<column v-if="item.meta.dateOutcome">
|
|
20
|
+
{{ processDate(item.meta.dateOutcome) }}
|
|
21
|
+
</column>
|
|
22
|
+
</row>
|
|
23
|
+
</container>
|
|
24
|
+
</template>
|
|
25
|
+
<script>
|
|
26
|
+
import Container from '../../../../Containers/Container'
|
|
27
|
+
import Row from '../../../../Containers/Row'
|
|
28
|
+
import Column from '../../../../Containers/Column'
|
|
29
|
+
import { format } from 'date-fns'
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
components: {
|
|
33
|
+
Container,
|
|
34
|
+
Row,
|
|
35
|
+
Column
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
item: {
|
|
39
|
+
type: Object,
|
|
40
|
+
required: true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
processDate(date) {
|
|
45
|
+
return format(new Date(date), 'dd MMM yy')
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="items.length" class="paragraph--directory__records">
|
|
3
|
+
<template v-for="(item, index) in flatRecords">
|
|
4
|
+
<prs-record v-if="item.type === 'prs'" :key="index" :item="item" />
|
|
5
|
+
<isp-record
|
|
6
|
+
v-if="item.type === 'isp'"
|
|
7
|
+
:key="index"
|
|
8
|
+
:item="item"
|
|
9
|
+
:location="baseLocation"
|
|
10
|
+
/>
|
|
11
|
+
<cj-record v-if="item.type === 'cj'" :key="index" :item="item" />
|
|
12
|
+
</template>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
import PrsRecord from './PRS'
|
|
17
|
+
import IspRecord from './ISP'
|
|
18
|
+
import CjRecord from './CJ'
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
components: {
|
|
22
|
+
PrsRecord,
|
|
23
|
+
IspRecord,
|
|
24
|
+
CjRecord
|
|
25
|
+
},
|
|
26
|
+
props: {
|
|
27
|
+
items: {
|
|
28
|
+
type: Array,
|
|
29
|
+
required: true
|
|
30
|
+
},
|
|
31
|
+
taxonomies: {
|
|
32
|
+
type: Array,
|
|
33
|
+
required: true
|
|
34
|
+
},
|
|
35
|
+
baseLocation: {
|
|
36
|
+
type: [Object, Boolean],
|
|
37
|
+
default: false
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
computed: {
|
|
41
|
+
flatRecords() {
|
|
42
|
+
let flatRecords = []
|
|
43
|
+
this.items.forEach((record) => {
|
|
44
|
+
if (record.record_type === 'prs') {
|
|
45
|
+
let {
|
|
46
|
+
record_id,
|
|
47
|
+
record_prs_acn,
|
|
48
|
+
record_changed,
|
|
49
|
+
record_created,
|
|
50
|
+
record_prs_dateoutcome,
|
|
51
|
+
record_prs_datepublished,
|
|
52
|
+
record_prs_court,
|
|
53
|
+
record_prs_category,
|
|
54
|
+
record_prs_legislation,
|
|
55
|
+
record_attachment,
|
|
56
|
+
record_prs_coram,
|
|
57
|
+
data: {
|
|
58
|
+
attributes: {
|
|
59
|
+
title,
|
|
60
|
+
field_body,
|
|
61
|
+
field_prs_investigator,
|
|
62
|
+
field_prs_lawyer,
|
|
63
|
+
field_prs_sentence,
|
|
64
|
+
prs, // other meta with the prs record
|
|
65
|
+
field_prs_dateoutcome,
|
|
66
|
+
field_prs_datepublished,
|
|
67
|
+
attachmentFormatted,
|
|
68
|
+
file_src_root,
|
|
69
|
+
file_src
|
|
70
|
+
} = {}
|
|
71
|
+
} = {}
|
|
72
|
+
} = record
|
|
73
|
+
|
|
74
|
+
if (record_attachment !== undefined) {
|
|
75
|
+
file_src_root = process.env.CONTENT_API_URL
|
|
76
|
+
file_src = file_src_root + record_attachment
|
|
77
|
+
attachmentFormatted = record_attachment
|
|
78
|
+
.split(/.*[\/|\\]/)[1]
|
|
79
|
+
.replace(/%20/g, ' ')
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
flatRecords.push({
|
|
83
|
+
id: record_id,
|
|
84
|
+
type: 'prs',
|
|
85
|
+
created: record_created,
|
|
86
|
+
changed: record_changed,
|
|
87
|
+
title,
|
|
88
|
+
outcome: record_prs_dateoutcome,
|
|
89
|
+
published: record_prs_datepublished,
|
|
90
|
+
acn: record_prs_acn,
|
|
91
|
+
outcome: field_body?.processed || '',
|
|
92
|
+
investigator: field_prs_investigator,
|
|
93
|
+
lawyer: field_prs_lawyer,
|
|
94
|
+
field_prs_sentence,
|
|
95
|
+
attachment: attachmentFormatted,
|
|
96
|
+
attachment_src: file_src,
|
|
97
|
+
meta: {
|
|
98
|
+
...prs,
|
|
99
|
+
dateOutcome: field_prs_dateoutcome,
|
|
100
|
+
datePublished: field_prs_datepublished,
|
|
101
|
+
court: this.getTaxonomyLabelsByTid('Court', record_prs_court),
|
|
102
|
+
category: this.getTaxonomyLabelsByTid(
|
|
103
|
+
'Category',
|
|
104
|
+
record_prs_category
|
|
105
|
+
),
|
|
106
|
+
legislation: this.getTaxonomyLabelsByTid(
|
|
107
|
+
'Legislation',
|
|
108
|
+
record_prs_legislation
|
|
109
|
+
)
|
|
110
|
+
// coram: this.getTaxonomyLabelsByTid(
|
|
111
|
+
// 'record_prs_coram',
|
|
112
|
+
// record_prs_coram
|
|
113
|
+
// )
|
|
114
|
+
}
|
|
115
|
+
})
|
|
116
|
+
}
|
|
117
|
+
if (record.record_type === 'isp') {
|
|
118
|
+
let {
|
|
119
|
+
record_id,
|
|
120
|
+
data: {
|
|
121
|
+
attributes: {
|
|
122
|
+
title,
|
|
123
|
+
field_location,
|
|
124
|
+
isp: { suburb, postcode, phone_number, mobile_number } = {}
|
|
125
|
+
} = {}
|
|
126
|
+
} = {}
|
|
127
|
+
} = record
|
|
128
|
+
flatRecords.push({
|
|
129
|
+
id: record_id,
|
|
130
|
+
type: 'isp',
|
|
131
|
+
title,
|
|
132
|
+
contact: {
|
|
133
|
+
mobile: mobile_number,
|
|
134
|
+
phone: phone_number
|
|
135
|
+
},
|
|
136
|
+
address: {
|
|
137
|
+
suburb,
|
|
138
|
+
postcode,
|
|
139
|
+
map: {
|
|
140
|
+
field_location
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
if (record.record_type === 'cj') {
|
|
146
|
+
let {
|
|
147
|
+
record_id,
|
|
148
|
+
record_cj_appeal,
|
|
149
|
+
record_cj_judge,
|
|
150
|
+
record_cj_court,
|
|
151
|
+
record_title,
|
|
152
|
+
data: {
|
|
153
|
+
attributes: {
|
|
154
|
+
field_cj_datejudgement,
|
|
155
|
+
field_cj_datepublished
|
|
156
|
+
} = {}
|
|
157
|
+
} = {}
|
|
158
|
+
} = record
|
|
159
|
+
flatRecords.push({
|
|
160
|
+
id: record_id,
|
|
161
|
+
type: 'cj',
|
|
162
|
+
published: field_cj_datepublished,
|
|
163
|
+
title: record_title,
|
|
164
|
+
appeal: record_cj_appeal,
|
|
165
|
+
court: record_cj_court,
|
|
166
|
+
judge: record_cj_judge,
|
|
167
|
+
judgement: field_cj_datejudgement
|
|
168
|
+
})
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
return flatRecords
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
methods: {
|
|
175
|
+
getTaxonomyLabelsByTid(taxName, listOfIds) {
|
|
176
|
+
if (listOfIds && listOfIds.length > 0 && process.client) {
|
|
177
|
+
let foundTerms = []
|
|
178
|
+
if (this.taxonomies.length) {
|
|
179
|
+
// needs to be var
|
|
180
|
+
var termsOfTaxName = this.taxonomies.filter((cat) => {
|
|
181
|
+
return cat.name === taxName
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
if (termsOfTaxName.length === 1) {
|
|
185
|
+
termsOfTaxName = termsOfTaxName[0].terms
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (termsOfTaxName && Object.keys(termsOfTaxName.length > 0)) {
|
|
189
|
+
listOfIds.forEach((tid) => {
|
|
190
|
+
for (const [key, value] of Object.entries(termsOfTaxName)) {
|
|
191
|
+
// value.tid is a string and tid is a number
|
|
192
|
+
if (value.tid == tid) {
|
|
193
|
+
foundTerms.push(value.name)
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
return foundTerms
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
</script>
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@import '../../../../includes/scss/all';
|
|
2
|
+
|
|
3
|
+
@mixin itemStyle() {
|
|
4
|
+
text-align: left;
|
|
5
|
+
display: block;
|
|
6
|
+
width: 100%;
|
|
7
|
+
background-color: $white;
|
|
8
|
+
color: $black;
|
|
9
|
+
border: 1px solid $gray;
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
padding: 16px;
|
|
12
|
+
|
|
13
|
+
:deep(.title) {
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:deep(.address a) {
|
|
19
|
+
text-decoration: underline;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin defaultStyle() {
|
|
24
|
+
margin-bottom: 32px;
|
|
25
|
+
border-radius: 12px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.paragraph--directory__records {
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
|
|
31
|
+
&--isp,
|
|
32
|
+
&--cj {
|
|
33
|
+
@include defaultStyle();
|
|
34
|
+
@include itemStyle();
|
|
35
|
+
}
|
|
36
|
+
&--prs {
|
|
37
|
+
@include defaultStyle();
|
|
38
|
+
border: 1px solid $gray;
|
|
39
|
+
.col {
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
button.collapsed {
|
|
43
|
+
border-radius: 12px;
|
|
44
|
+
&::after {
|
|
45
|
+
content: ' ';
|
|
46
|
+
position: absolute;
|
|
47
|
+
height: 12px;
|
|
48
|
+
width: 12px;
|
|
49
|
+
bottom: 8px;
|
|
50
|
+
right: 16px;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
background-image: url(../../../../../assets/icons/chev-down.svg);
|
|
53
|
+
background-size: 100%;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
button {
|
|
57
|
+
position: relative;
|
|
58
|
+
border-radius: 12px 12px 0px 0px;
|
|
59
|
+
@include itemStyle();
|
|
60
|
+
border: none;
|
|
61
|
+
&::after {
|
|
62
|
+
content: ' ';
|
|
63
|
+
position: absolute;
|
|
64
|
+
height: 12px;
|
|
65
|
+
width: 12px;
|
|
66
|
+
bottom: 8px;
|
|
67
|
+
right: 16px;
|
|
68
|
+
background-repeat: no-repeat;
|
|
69
|
+
background-size: 100%;
|
|
70
|
+
background-image: url(../../../../../assets/icons/chev-up.svg);
|
|
71
|
+
}
|
|
72
|
+
&:active {
|
|
73
|
+
background-color: $white !important;
|
|
74
|
+
border-color: $gray !important;
|
|
75
|
+
color: $black !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.record-details {
|
|
80
|
+
font-size: 16px;
|
|
81
|
+
border-top: 2px solid $lightgray;
|
|
82
|
+
padding: 16px;
|
|
83
|
+
|
|
84
|
+
:deep(.attachment_name a) {
|
|
85
|
+
text-decoration: underline;
|
|
86
|
+
color: $black;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:deep(h3) {
|
|
90
|
+
font-size: 28px;
|
|
91
|
+
font-style: normal;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
line-height: 32px;
|
|
94
|
+
letter-spacing: 0px;
|
|
95
|
+
margin-bottom: 24px;
|
|
96
|
+
margin-top: 24px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:deep(ul.record-meta) {
|
|
100
|
+
margin: {
|
|
101
|
+
top: 80px;
|
|
102
|
+
left: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
bottom: 0;
|
|
105
|
+
}
|
|
106
|
+
padding: 0;
|
|
107
|
+
> li {
|
|
108
|
+
list-style: none;
|
|
109
|
+
margin-bottom: 16px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
> li ol {
|
|
113
|
+
margin: 0;
|
|
114
|
+
padding: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
> li ol li {
|
|
118
|
+
list-style: none;
|
|
119
|
+
margin-bottom: 5px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.meta-heading {
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
margin-bottom: 5px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export const DIR_CONFIG = {
|
|
2
|
+
isp: {
|
|
3
|
+
taxonomies: [
|
|
4
|
+
{
|
|
5
|
+
name: 'Service Type',
|
|
6
|
+
id: 'isp_specialty',
|
|
7
|
+
record_id: 'record_isp_specialty'
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
sorting: [
|
|
11
|
+
{
|
|
12
|
+
label: 'Name A-Z',
|
|
13
|
+
field: 'record_title',
|
|
14
|
+
order: 'asc',
|
|
15
|
+
type: 'az'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: 'Name Z-A',
|
|
19
|
+
field: 'record_title',
|
|
20
|
+
order: 'desc',
|
|
21
|
+
type: 'az'
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
prs: {
|
|
26
|
+
taxonomies: [
|
|
27
|
+
{
|
|
28
|
+
name: 'Category',
|
|
29
|
+
id: 'prs_category',
|
|
30
|
+
record_id: 'record_prs_category'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Legislation',
|
|
34
|
+
id: 'legislation',
|
|
35
|
+
record_id: 'record_prs_legislation'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Court',
|
|
39
|
+
id: 'court',
|
|
40
|
+
record_id: 'record_prs_court'
|
|
41
|
+
}
|
|
42
|
+
// {
|
|
43
|
+
// name: 'Coram',
|
|
44
|
+
// id: 'coram',
|
|
45
|
+
// taxonomy_only: true
|
|
46
|
+
// }
|
|
47
|
+
],
|
|
48
|
+
sorting: [
|
|
49
|
+
{
|
|
50
|
+
label: 'Date (newest first)',
|
|
51
|
+
field: 'record_prs_dateoutcome',
|
|
52
|
+
order: 'desc',
|
|
53
|
+
type: 'date'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'Date (oldest first)',
|
|
57
|
+
field: 'record_prs_dateoutcome',
|
|
58
|
+
order: 'asc',
|
|
59
|
+
type: 'date'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: 'Name A-Z',
|
|
63
|
+
field: 'record_title',
|
|
64
|
+
order: 'asc',
|
|
65
|
+
type: 'az'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Name Z-A',
|
|
69
|
+
field: 'record_title',
|
|
70
|
+
order: 'desc',
|
|
71
|
+
type: 'az'
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
cj: {
|
|
76
|
+
taxonomies: [],
|
|
77
|
+
sorting: []
|
|
78
|
+
}
|
|
79
|
+
}
|