@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,334 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section-group class="paragraph--directory">
|
|
3
|
+
<template v-slot:preContent>
|
|
4
|
+
<directory-filters
|
|
5
|
+
v-if="showFilters"
|
|
6
|
+
:bundle="options.field_directory_type"
|
|
7
|
+
:filters="filters"
|
|
8
|
+
:results="total"
|
|
9
|
+
@onSearch="updateSearch($event)"
|
|
10
|
+
@onLocation="updateLocation($event)"
|
|
11
|
+
@onFilter="updateFilters($event)"
|
|
12
|
+
@onSort="updateSort($event)"
|
|
13
|
+
@locationCleared="resetSortLabels()"
|
|
14
|
+
@onReset="resetSearchFilters()"
|
|
15
|
+
/>
|
|
16
|
+
</template>
|
|
17
|
+
<template v-slot:content>
|
|
18
|
+
<div v-if="!loading || qs.start > 0" ref="records">
|
|
19
|
+
<records
|
|
20
|
+
v-if="records.length > 0"
|
|
21
|
+
:items="records"
|
|
22
|
+
:taxonomies="filters.taxonomies"
|
|
23
|
+
:base-location="baseLocation"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
<div v-else class="paragraph--directory__loading-container">
|
|
27
|
+
<loading />
|
|
28
|
+
</div>
|
|
29
|
+
<div v-if="showPagination" align="center">
|
|
30
|
+
<pagination
|
|
31
|
+
align="center"
|
|
32
|
+
aria-label="Page navigation to load more records"
|
|
33
|
+
:rows="qs.rows"
|
|
34
|
+
:offset="qs.start"
|
|
35
|
+
:total="total"
|
|
36
|
+
:max-pages="5"
|
|
37
|
+
@prev="loadPrevPage()"
|
|
38
|
+
@next="loadNextPage()"
|
|
39
|
+
@pageClicked="loadByPageNumber($event)"
|
|
40
|
+
/>
|
|
41
|
+
</div>
|
|
42
|
+
<div v-if="noResultsFound" align="center">
|
|
43
|
+
<div>
|
|
44
|
+
<p>No records found, please try a different search.</p>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
</section-group>
|
|
49
|
+
</template>
|
|
50
|
+
<script>
|
|
51
|
+
import { DIR_CONFIG } from './constants'
|
|
52
|
+
import DirectoryFilters from '../../Global/DirectoryFilters'
|
|
53
|
+
import Records from './Records/'
|
|
54
|
+
import Pagination from '../../SubComponents/Pagination'
|
|
55
|
+
import Loading from '../../SubComponents/Loading'
|
|
56
|
+
import SectionGroup from '../../Containers/SectionGroup/index.vue'
|
|
57
|
+
|
|
58
|
+
export default {
|
|
59
|
+
name: 'Directory',
|
|
60
|
+
components: {
|
|
61
|
+
DirectoryFilters,
|
|
62
|
+
Records,
|
|
63
|
+
Pagination,
|
|
64
|
+
Loading,
|
|
65
|
+
SectionGroup
|
|
66
|
+
},
|
|
67
|
+
props: {
|
|
68
|
+
options: {
|
|
69
|
+
type: Object,
|
|
70
|
+
default: () => {}
|
|
71
|
+
},
|
|
72
|
+
fetchFilters: {
|
|
73
|
+
type: Function,
|
|
74
|
+
required: true
|
|
75
|
+
},
|
|
76
|
+
fetchRecords: {
|
|
77
|
+
type: Function,
|
|
78
|
+
required: true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
async fetch() {
|
|
82
|
+
await this.loadFilters(
|
|
83
|
+
this.DIR_CONFIG[this.options.field_directory_type].taxonomies
|
|
84
|
+
)
|
|
85
|
+
this.loadSortOptions(
|
|
86
|
+
this.DIR_CONFIG[this.options.field_directory_type].sorting
|
|
87
|
+
)
|
|
88
|
+
},
|
|
89
|
+
fetchOnServer: true,
|
|
90
|
+
fetchKey: 'ws-directory',
|
|
91
|
+
data() {
|
|
92
|
+
return {
|
|
93
|
+
DIR_CONFIG,
|
|
94
|
+
filters: {
|
|
95
|
+
taxonomies: [],
|
|
96
|
+
sorting: []
|
|
97
|
+
},
|
|
98
|
+
selectedFilters: {},
|
|
99
|
+
qs: {
|
|
100
|
+
record_type: this.options.field_directory_type,
|
|
101
|
+
rows: this.options.field_directory_rows,
|
|
102
|
+
start: 0,
|
|
103
|
+
...this.defaultSortOrderOption(this.options.field_directory_type)
|
|
104
|
+
},
|
|
105
|
+
records: [],
|
|
106
|
+
total: 0,
|
|
107
|
+
loading: true
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
computed: {
|
|
111
|
+
apiUrl() {
|
|
112
|
+
return Object.keys(this.qs)
|
|
113
|
+
.map(
|
|
114
|
+
(k) => `${encodeURIComponent(k)}=${encodeURIComponent(this.qs[k])}`
|
|
115
|
+
)
|
|
116
|
+
.join('&')
|
|
117
|
+
},
|
|
118
|
+
hasMorePages() {
|
|
119
|
+
return (
|
|
120
|
+
!this.loading &&
|
|
121
|
+
this.total !== 0 &&
|
|
122
|
+
this.total > this.qs.start + this.qs.rows
|
|
123
|
+
)
|
|
124
|
+
},
|
|
125
|
+
noResultsFound() {
|
|
126
|
+
return this.records.length === 0 && !this.loading
|
|
127
|
+
},
|
|
128
|
+
showFilters() {
|
|
129
|
+
return this.options?.field_directory_exposefilters === 'full'
|
|
130
|
+
? true
|
|
131
|
+
: false
|
|
132
|
+
},
|
|
133
|
+
showPagination() {
|
|
134
|
+
return !this.noResultsFound && this.total > this.qs.rows
|
|
135
|
+
},
|
|
136
|
+
baseLocation() {
|
|
137
|
+
return this.qs.lat && this.qs.lon
|
|
138
|
+
? { lat: this.qs.lat, lng: this.qs.lon }
|
|
139
|
+
: false
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
watch: {
|
|
143
|
+
apiUrl: {
|
|
144
|
+
immediate: true,
|
|
145
|
+
deep: false,
|
|
146
|
+
handler() {
|
|
147
|
+
this.getData()
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
selectedFilters: {
|
|
151
|
+
immediate: false,
|
|
152
|
+
deep: true,
|
|
153
|
+
handler() {
|
|
154
|
+
//
|
|
155
|
+
// Set page number to 0
|
|
156
|
+
//
|
|
157
|
+
this.qs.start = 0
|
|
158
|
+
//
|
|
159
|
+
// Check for search
|
|
160
|
+
//
|
|
161
|
+
if (this.selectedFilters.query) {
|
|
162
|
+
this.$set(this.qs, 'query', this.selectedFilters.query)
|
|
163
|
+
} else {
|
|
164
|
+
this.$delete(this.qs, 'query')
|
|
165
|
+
}
|
|
166
|
+
//
|
|
167
|
+
// Sort by Date and AZ
|
|
168
|
+
//
|
|
169
|
+
if (this.selectedFilters?.sorting?.order) {
|
|
170
|
+
this.qs.sort = this.selectedFilters.sorting.order.field
|
|
171
|
+
this.qs.order = this.selectedFilters.sorting.order.value
|
|
172
|
+
} else {
|
|
173
|
+
const sortOrderDefaults = this.defaultSortOrderOption(
|
|
174
|
+
this.qs.record_type
|
|
175
|
+
)
|
|
176
|
+
this.qs.sort = sortOrderDefaults.sort
|
|
177
|
+
this.qs.order = sortOrderDefaults.order
|
|
178
|
+
}
|
|
179
|
+
//
|
|
180
|
+
// Filter by taxonomies
|
|
181
|
+
//
|
|
182
|
+
if (this.selectedFilters.filters) {
|
|
183
|
+
Object.keys(this.selectedFilters.filters).forEach((filterName) => {
|
|
184
|
+
if (Array.isArray(this.selectedFilters.filters[filterName])) {
|
|
185
|
+
if (this.selectedFilters.filters[filterName]) {
|
|
186
|
+
this.$set(this.qs, filterName, [])
|
|
187
|
+
this.selectedFilters.filters[filterName].forEach((item) => {
|
|
188
|
+
if (item.tid) {
|
|
189
|
+
this.qs[filterName].push(item.tid)
|
|
190
|
+
}
|
|
191
|
+
})
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
})
|
|
195
|
+
}
|
|
196
|
+
//
|
|
197
|
+
// Search by Location - wait a tick for it to be updated
|
|
198
|
+
//
|
|
199
|
+
if (this.selectedFilters.location?.location) {
|
|
200
|
+
this.qs.sort = 'distance'
|
|
201
|
+
this.$set(this.qs, 'lat', this.selectedFilters.location.location.lat)
|
|
202
|
+
this.$set(this.qs, 'lon', this.selectedFilters.location.location.lng)
|
|
203
|
+
} else {
|
|
204
|
+
this.$delete(this.qs, 'lat')
|
|
205
|
+
this.$delete(this.qs, 'lon')
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
methods: {
|
|
211
|
+
async getData() {
|
|
212
|
+
this.loading = true
|
|
213
|
+
const data = await this.fetchRecords(this.qs)
|
|
214
|
+
if (data) {
|
|
215
|
+
this.records = data.results
|
|
216
|
+
this.loading = false
|
|
217
|
+
this.total = data.numFound
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
async loadFilters(taxonomyList) {
|
|
221
|
+
return Promise.all(
|
|
222
|
+
taxonomyList.map(async (taxonomy) => {
|
|
223
|
+
const taxonomies = await this.fetchFilters(
|
|
224
|
+
taxonomy.id,
|
|
225
|
+
taxonomy.record_id,
|
|
226
|
+
taxonomy.name
|
|
227
|
+
)
|
|
228
|
+
this.filters.taxonomies.push(taxonomies)
|
|
229
|
+
return Promise.resolve(taxonomies)
|
|
230
|
+
})
|
|
231
|
+
)
|
|
232
|
+
},
|
|
233
|
+
loadSortOptions(sortingList) {
|
|
234
|
+
let opts = {
|
|
235
|
+
name: 'order',
|
|
236
|
+
title: 'Sort by',
|
|
237
|
+
terms: []
|
|
238
|
+
}
|
|
239
|
+
sortingList.forEach((sortOption) => {
|
|
240
|
+
opts.terms.push({
|
|
241
|
+
title: sortOption.label,
|
|
242
|
+
value: sortOption.order,
|
|
243
|
+
field: sortOption.field,
|
|
244
|
+
parent: sortOption.type
|
|
245
|
+
})
|
|
246
|
+
})
|
|
247
|
+
this.filters.sorting.push(opts)
|
|
248
|
+
},
|
|
249
|
+
defaultSortOrderOption(bundle) {
|
|
250
|
+
if (bundle === 'prs') {
|
|
251
|
+
return { sort: 'record_prs_dateoutcome', order: 'desc' }
|
|
252
|
+
} else {
|
|
253
|
+
return {
|
|
254
|
+
sort: 'record_title',
|
|
255
|
+
order: 'asc'
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
updateFilters(opts) {
|
|
260
|
+
this.$set(this.selectedFilters, 'filters', opts)
|
|
261
|
+
},
|
|
262
|
+
updateSort(opts) {
|
|
263
|
+
this.$set(this.selectedFilters, 'sorting', opts)
|
|
264
|
+
},
|
|
265
|
+
updateSearch(opts) {
|
|
266
|
+
this.$set(this.selectedFilters, 'query', opts)
|
|
267
|
+
},
|
|
268
|
+
updateLocation(opts) {
|
|
269
|
+
this.filters.sorting[0].terms[0].title = 'Nearest'
|
|
270
|
+
this.filters.sorting[0].terms[1].title = 'Farthest'
|
|
271
|
+
this.$set(this.selectedFilters, 'location', opts)
|
|
272
|
+
},
|
|
273
|
+
loadMore() {
|
|
274
|
+
this.qs.start += this.qs.rows
|
|
275
|
+
},
|
|
276
|
+
loadPrevPage() {
|
|
277
|
+
this.qs.start -= this.qs.rows
|
|
278
|
+
this.scrollToRecords()
|
|
279
|
+
},
|
|
280
|
+
loadNextPage() {
|
|
281
|
+
this.qs.start += this.qs.rows
|
|
282
|
+
this.scrollToRecords()
|
|
283
|
+
},
|
|
284
|
+
loadByPageNumber(page) {
|
|
285
|
+
this.qs.start = page.startIndex
|
|
286
|
+
this.scrollToRecords()
|
|
287
|
+
},
|
|
288
|
+
scrollToRecords() {
|
|
289
|
+
if (this.$refs.records) {
|
|
290
|
+
const element = this.$refs.records
|
|
291
|
+
const top = element.offsetTop
|
|
292
|
+
|
|
293
|
+
const buttons = [...element.querySelectorAll('button')]
|
|
294
|
+
if (Array.isArray(buttons) && buttons.length > 0) {
|
|
295
|
+
buttons
|
|
296
|
+
.filter((button) => button.getAttribute('aria-expanded') === 'true')
|
|
297
|
+
.forEach((button) => button.click())
|
|
298
|
+
|
|
299
|
+
buttons[0].focus()
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
window.scrollTo({
|
|
303
|
+
top,
|
|
304
|
+
behavior: 'smooth'
|
|
305
|
+
})
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
resetSortLabels() {
|
|
309
|
+
this.filters.sorting = []
|
|
310
|
+
this.loadSortOptions(
|
|
311
|
+
this.DIR_CONFIG[this.options.field_directory_type].sorting
|
|
312
|
+
)
|
|
313
|
+
},
|
|
314
|
+
resetSearchFilters() {
|
|
315
|
+
this.selectedFilters = {}
|
|
316
|
+
this.qs = {
|
|
317
|
+
record_type: this.options.field_directory_type,
|
|
318
|
+
rows: this.options.field_directory_rows,
|
|
319
|
+
start: 0,
|
|
320
|
+
...this.defaultSortOrderOption(this.options.field_directory_type)
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
</script>
|
|
326
|
+
|
|
327
|
+
<style lang="scss" scoped>
|
|
328
|
+
@import '../../../includes/scss/all';
|
|
329
|
+
.paragraph--directory {
|
|
330
|
+
&__loading-container {
|
|
331
|
+
min-height: 250px;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
</style>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const storyData = {
|
|
2
|
+
title: 'Laws and regulations',
|
|
3
|
+
subHeading:
|
|
4
|
+
'As an employer you must provide and maintain a healthy and safe working environment for your employees, including independent contractors, that is safe and without risks to their health so far as reasonably.',
|
|
5
|
+
footer:
|
|
6
|
+
'As an employer you must provide and maintain a healthy and safe working environment for your employees, including independent contractors, that is safe and without risks to their health so far as reasonably.',
|
|
7
|
+
links: [
|
|
8
|
+
{
|
|
9
|
+
title: 'External Link 1',
|
|
10
|
+
description:
|
|
11
|
+
'Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.',
|
|
12
|
+
link: '/sites/dummy'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: 'External Link 2',
|
|
16
|
+
description:
|
|
17
|
+
'Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.',
|
|
18
|
+
link: 'http://www.google.com'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: 'External Link 3',
|
|
22
|
+
description:
|
|
23
|
+
'Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.',
|
|
24
|
+
link: 'https://www.google.com'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: 'Internal Link short 1',
|
|
28
|
+
description:
|
|
29
|
+
'Donec id elit non mi porta gravida at eget metus. Maecenas sed diam egett.',
|
|
30
|
+
link: '/?path=/story/containers-container--default'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title:
|
|
34
|
+
'Metal fabrication: Improving safety through housekeeping (indoor and outdoor) layout and design',
|
|
35
|
+
description:
|
|
36
|
+
'Metal fabrication: Improving safety through housekeeping (indoor and outdoor) layout and design',
|
|
37
|
+
link:
|
|
38
|
+
'/resources/metal-fabrication-improving-safety-through-housekeeping-indoor-and-outdoor-layout-and'
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const storyDataAr = {
|
|
44
|
+
title: 'القوانين والأنظمة',
|
|
45
|
+
subHeading:
|
|
46
|
+
'As an employer you must provide and maintain a healthy and safe working environment for your employees, including independent contractors, that is safe and without risks to their health so far as reasonably.',
|
|
47
|
+
footer:
|
|
48
|
+
'As an employer you must provide and maintain a healthy and safe working environment for your employees, including independent contractors, that is safe and without risks to their health so far as reasonably.',
|
|
49
|
+
rtl: 'true',
|
|
50
|
+
links: [
|
|
51
|
+
{
|
|
52
|
+
title: 'قائمة عنصر المجموعة',
|
|
53
|
+
description:
|
|
54
|
+
'بعض الأمثلة السريعة للنص الذي سيتم بناؤه على علامة التبويب 1 وتشكيل الجزء الأكبر من محتوى البطاقة.',
|
|
55
|
+
link: 'www.google.com'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: 'قائمة عنصر المجموعة',
|
|
59
|
+
description:
|
|
60
|
+
'بعض الأمثلة السريعة للنص الذي سيتم بناؤه على علامة التبويب 1 وتشكيل الجزء الأكبر من محتوى البطاقة.',
|
|
61
|
+
link: '/?path=/story/containers-container--default'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: 'قائمة عنصر المجموعة',
|
|
65
|
+
description:
|
|
66
|
+
'بعض الأمثلة السريعة للنص الذي سيتم بناؤه على علامة التبويب 1 وتشكيل الجزء الأكبر من محتوى البطاقة.',
|
|
67
|
+
link: '/?path=/story/containers-container--default'
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { storyData, storyDataAr }
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import ListGroup from './../index.vue'
|
|
2
|
+
import { storyData, storyDataAr } from './../Constants'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Paragraphs/ListGroup',
|
|
6
|
+
component: ListGroup,
|
|
7
|
+
argTypes: {
|
|
8
|
+
darkBackground: {
|
|
9
|
+
control: 'boolean',
|
|
10
|
+
defaultValue: false
|
|
11
|
+
},
|
|
12
|
+
items: {
|
|
13
|
+
control: 'object',
|
|
14
|
+
defaultValue: storyData.links
|
|
15
|
+
},
|
|
16
|
+
rtlItems: {
|
|
17
|
+
control: 'object',
|
|
18
|
+
defaultValue: storyDataAr.links
|
|
19
|
+
},
|
|
20
|
+
rtl: {
|
|
21
|
+
control: 'boolean',
|
|
22
|
+
defaultValue: false
|
|
23
|
+
},
|
|
24
|
+
titleTag: {
|
|
25
|
+
control: 'text',
|
|
26
|
+
defaultValue: 'h3'
|
|
27
|
+
},
|
|
28
|
+
showListItemNavigationArrow: {
|
|
29
|
+
control: 'boolean',
|
|
30
|
+
defaultValue: true
|
|
31
|
+
},
|
|
32
|
+
showLargeSpacing: {
|
|
33
|
+
control: 'boolean',
|
|
34
|
+
defaultValue: false
|
|
35
|
+
},
|
|
36
|
+
list: {
|
|
37
|
+
table: {
|
|
38
|
+
disable: true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
showListLink: {
|
|
42
|
+
control: 'boolean',
|
|
43
|
+
defaultValue: true
|
|
44
|
+
},
|
|
45
|
+
title: {
|
|
46
|
+
table: {
|
|
47
|
+
disable: true
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const Template = (args, { argTypes }) => ({
|
|
54
|
+
components: { ListGroup },
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
storyData,
|
|
58
|
+
storyDataAr
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
props: Object.keys(argTypes),
|
|
62
|
+
template: `<list-group
|
|
63
|
+
v-bind="$props"
|
|
64
|
+
:list="rtl ? rtlItems : items"
|
|
65
|
+
:title="(rtl ? storyDataAr.title : storyData.title)"
|
|
66
|
+
:sub-heading="(rtl ? storyDataAr.subHeading : storyData.subHeading)"
|
|
67
|
+
:footer-heading="(rtl ? storyDataAr.footer : storyDataAr.footer)"
|
|
68
|
+
:show-list-link="showListLink" />`
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
export const Link = Template.bind({})
|