@salesforcedevs/dx-components 0.26.1-alpha0.4 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +12 -0
- package/package.json +4 -5
- package/src/assets/icons/action-sprite/svg/symbols.svg +1 -0
- package/src/assets/icons/brand-sprite/svg/symbols.svg +1381 -0
- package/src/assets/icons/custom-sprite/svg/symbols.svg +1 -0
- package/src/assets/icons/doctype-sprite/svg/symbols.svg +1 -0
- package/src/assets/icons/general-sprite/svg/symbols.svg +3013 -0
- package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +257 -0
- package/src/assets/icons/standard-sprite/svg/symbols.svg +1 -0
- package/src/assets/icons/utility-sprite/svg/symbols.svg +1 -0
- package/src/assets/svg/card-news-learn-moar.svg +415 -0
- package/src/assets/svg/cloud-1.svg +24 -0
- package/src/assets/svg/cloud-2.svg +18 -0
- package/src/assets/svg/codey.svg +93 -0
- package/src/assets/svg/command.svg +9 -0
- package/src/assets/svg/control.svg +10 -0
- package/src/assets/svg/docs-empty-state-small.svg +72 -0
- package/src/assets/svg/docs-empty-state.svg +86 -0
- package/src/assets/svg/dsc-home-news-bear.svg +3 -0
- package/src/assets/svg/dsc-home-news-community.png +0 -0
- package/src/assets/svg/dsc-home-news-goatbear.svg +257 -0
- package/src/assets/svg/dsc-home-news-samplegallery.svg +76 -0
- package/src/assets/svg/empty-state-assistant.svg +1 -0
- package/src/assets/svg/fch-blog-cloud-1.png +0 -0
- package/src/assets/svg/fch-blog-cloud-2.png +0 -0
- package/src/assets/svg/fch-blog-planet.png +0 -0
- package/src/assets/svg/feature-backdrop1.svg +10 -0
- package/src/assets/svg/feature-backdrop2.svg +10 -0
- package/src/assets/svg/featured-demo-art-blank.svg +76 -0
- package/src/assets/svg/featured-demo-art-eBikes.svg +77 -0
- package/src/assets/svg/footer-graphic-large.svg +207 -0
- package/src/assets/svg/footer-graphic-mountains-small.svg +17 -0
- package/src/assets/svg/footer-graphic-mountains.svg +21 -0
- package/src/assets/svg/footer-graphic-trees-small.svg +33 -0
- package/src/assets/svg/footer-graphic-trees.svg +62 -0
- package/src/assets/svg/lake-mountain.svg +79 -0
- package/src/assets/svg/podcast-subscription-clouds-small.svg +49 -0
- package/src/assets/svg/podcast-subscription-clouds.svg +57 -0
- package/src/assets/svg/podcasts-subscription-apple.svg +164 -0
- package/src/assets/svg/podcasts-subscription-google.svg +29 -0
- package/src/assets/svg/podcasts-subscription-spotify.svg +11 -0
- package/src/assets/svg/salesforce-cloud.svg +7 -0
- package/src/assets/svg/salesforce-logo-corporate.svg +21 -0
- package/src/assets/svg/salesforce-logo.svg +14 -0
- package/src/assets/svg/sidebar-loading.svg +34 -0
- package/src/assets/svg/slack-cta-podcast-background-left.svg +28 -0
- package/src/assets/svg/slack-cta-podcast-background-right.svg +38 -0
- package/src/assets/svg/trees.svg +42 -0
- package/src/modules/dx/banner/__tests__/banner.test.ts +33 -0
- package/src/modules/dx/banner/banner.css +46 -0
- package/src/modules/dx/banner/banner.html +13 -0
- package/src/modules/dx/banner/banner.ts +14 -0
- package/src/modules/dx/brandThemeProvider/__tests__/brandThemeProvider.test.ts +49 -0
- package/src/modules/dx/brandThemeProvider/brandCssVars.ts +10 -0
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.html +3 -0
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.stories.ts +321 -0
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +46 -0
- package/src/modules/dx/breadcrumbs/__tests__/breadcrumbs.test.ts +140 -0
- package/src/modules/dx/breadcrumbs/__tests__/mockProps.ts +28 -0
- package/src/modules/dx/breadcrumbs/breadcrumbs.css +111 -0
- package/src/modules/dx/breadcrumbs/breadcrumbs.html +44 -0
- package/src/modules/dx/breadcrumbs/breadcrumbs.stories.ts +39 -0
- package/src/modules/dx/breadcrumbs/breadcrumbs.ts +122 -0
- package/src/modules/dx/button/__tests__/button.test.ts +107 -0
- package/src/modules/dx/button/button.css +175 -0
- package/src/modules/dx/button/button.html +43 -0
- package/src/modules/dx/button/button.stories.ts +150 -0
- package/src/modules/dx/button/button.ts +63 -0
- package/src/modules/dx/cardBlogPost/__tests__/cardBlogPost.test.ts +26 -0
- package/src/modules/dx/cardBlogPost/__tests__/mockProps.ts +12 -0
- package/src/modules/dx/cardBlogPost/cardBlogPost.css +13 -0
- package/src/modules/dx/cardBlogPost/cardBlogPost.html +24 -0
- package/src/modules/dx/cardBlogPost/cardBlogPost.stories.ts +164 -0
- package/src/modules/dx/cardBlogPost/cardBlogPost.ts +23 -0
- package/src/modules/dx/cardBlogPostProvider/__tests__/cardBlogPostProvider.test.ts +34 -0
- package/src/modules/dx/cardBlogPostProvider/__tests__/mockWordpressPosts.ts +44 -0
- package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.css +3 -0
- package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.html +16 -0
- package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +29 -0
- package/src/modules/dx/cardCallout/__tests__/cardCallout.test.ts +20 -0
- package/src/modules/dx/cardCallout/__tests__/mockProps.ts +7 -0
- package/src/modules/dx/cardCallout/cardCallout.css +57 -0
- package/src/modules/dx/cardCallout/cardCallout.html +15 -0
- package/src/modules/dx/cardCallout/cardCallout.stories.ts +33 -0
- package/src/modules/dx/cardCallout/cardCallout.ts +37 -0
- package/src/modules/dx/cardContent/__tests__/cardContent.test.ts +100 -0
- package/src/modules/dx/cardContent/__tests__/mockProps.ts +13 -0
- package/src/modules/dx/cardContent/cardContent.css +52 -0
- package/src/modules/dx/cardContent/cardContent.html +59 -0
- package/src/modules/dx/cardContent/cardContent.stories.ts +127 -0
- package/src/modules/dx/cardContent/cardContent.ts +68 -0
- package/src/modules/dx/cardDemo/cardDemo.css +1 -0
- package/src/modules/dx/cardDemo/cardDemo.html +12 -0
- package/src/modules/dx/cardDemo/cardDemo.stories.ts +115 -0
- package/src/modules/dx/cardDemo/cardDemo.ts +11 -0
- package/src/modules/dx/cardDocs/__tests__/cardDocs.test.ts +48 -0
- package/src/modules/dx/cardDocs/__tests__/mockProps.ts +9 -0
- package/src/modules/dx/cardDocs/cardDocs.css +50 -0
- package/src/modules/dx/cardDocs/cardDocs.html +20 -0
- package/src/modules/dx/cardDocs/cardDocs.stories.ts +299 -0
- package/src/modules/dx/cardDocs/cardDocs.ts +30 -0
- package/src/modules/dx/cardEvent/__tests__/cardEvent.test.ts +95 -0
- package/src/modules/dx/cardEvent/__tests__/mockProps.ts +10 -0
- package/src/modules/dx/cardEvent/cardEvent.css +107 -0
- package/src/modules/dx/cardEvent/cardEvent.html +94 -0
- package/src/modules/dx/cardEvent/cardEvent.stories.ts +153 -0
- package/src/modules/dx/cardEvent/cardEvent.ts +42 -0
- package/src/modules/dx/cardExpanded/__tests__/cardExpanded.test.ts +193 -0
- package/src/modules/dx/cardExpanded/__tests__/mockProps.ts +21 -0
- package/src/modules/dx/cardExpanded/cardExpanded.css +49 -0
- package/src/modules/dx/cardExpanded/cardExpanded.html +37 -0
- package/src/modules/dx/cardExpanded/cardExpanded.stories.ts +59 -0
- package/src/modules/dx/cardExpanded/cardExpanded.ts +45 -0
- package/src/modules/dx/cardGrid/__tests__/cardMockProps.ts +431 -0
- package/src/modules/dx/cardGrid/__tests__/mockProps.ts +15 -0
- package/src/modules/dx/cardGrid/cardGrid.css +89 -0
- package/src/modules/dx/cardGrid/cardGrid.html +46 -0
- package/src/modules/dx/cardGrid/cardGrid.stories.ts +111 -0
- package/src/modules/dx/cardGrid/cardGrid.ts +140 -0
- package/src/modules/dx/cardMinimal/__tests__/cardMinimal.test.ts +87 -0
- package/src/modules/dx/cardMinimal/__tests__/mockProps.ts +10 -0
- package/src/modules/dx/cardMinimal/cardMinimal.css +31 -0
- package/src/modules/dx/cardMinimal/cardMinimal.html +13 -0
- package/src/modules/dx/cardMinimal/cardMinimal.stories.ts +32 -0
- package/src/modules/dx/cardMinimal/cardMinimal.ts +3 -0
- package/src/modules/dx/cardNews/__tests__/cardNews.test.ts +58 -0
- package/src/modules/dx/cardNews/__tests__/mockProps.ts +7 -0
- package/src/modules/dx/cardNews/cardNews.css +159 -0
- package/src/modules/dx/cardNews/cardNews.html +37 -0
- package/src/modules/dx/cardNews/cardNews.stories.ts +115 -0
- package/src/modules/dx/cardNews/cardNews.ts +62 -0
- package/src/modules/dx/cardPodcastEpisode/__tests__/cardPodcastEpisode.test.ts +68 -0
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.css +19 -0
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +36 -0
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.stories.ts +31 -0
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +36 -0
- package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/cardPodcastEpisodeProvider.test.ts +36 -0
- package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/mockWordpressEpisodes.ts +50 -0
- package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +3 -0
- package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +12 -0
- package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +29 -0
- package/src/modules/dx/cardSmall/__tests__/cardSmall.test.ts +66 -0
- package/src/modules/dx/cardSmall/__tests__/mockProps.ts +8 -0
- package/src/modules/dx/cardSmall/cardSmall.css +32 -0
- package/src/modules/dx/cardSmall/cardSmall.html +42 -0
- package/src/modules/dx/cardSmall/cardSmall.stories.ts +166 -0
- package/src/modules/dx/cardSmall/cardSmall.ts +38 -0
- package/src/modules/dx/cardTitle/__tests__/cardTitle.test.ts +46 -0
- package/src/modules/dx/cardTitle/cardTitle.css +41 -0
- package/src/modules/dx/cardTitle/cardTitle.html +20 -0
- package/src/modules/dx/cardTitle/cardTitle.ts +27 -0
- package/src/modules/dx/cardTrailheadModule/__tests__/cardTrailheadModule.test.ts +18 -0
- package/src/modules/dx/cardTrailheadModule/__tests__/mockProps.ts +11 -0
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +24 -0
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.html +20 -0
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.stories.ts +122 -0
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.ts +18 -0
- package/src/modules/dx/cardVideoPreview/__tests__/cardVideoPreview.test.ts +22 -0
- package/src/modules/dx/cardVideoPreview/__tests__/mockProps.ts +11 -0
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +14 -0
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +26 -0
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.stories.ts +147 -0
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +13 -0
- package/src/modules/dx/checkbox/__tests__/checkbox.test.ts +85 -0
- package/src/modules/dx/checkbox/__tests__/mockProps.ts +5 -0
- package/src/modules/dx/checkbox/checkbox.css +168 -0
- package/src/modules/dx/checkbox/checkbox.html +26 -0
- package/src/modules/dx/checkbox/checkbox.stories.ts +38 -0
- package/src/modules/dx/checkbox/checkbox.ts +55 -0
- package/src/modules/dx/checkboxGroup/__tests__/checkboxGroup.test.ts +80 -0
- package/src/modules/dx/checkboxGroup/__tests__/mockProps.ts +14 -0
- package/src/modules/dx/checkboxGroup/checkboxGroup.css +12 -0
- package/src/modules/dx/checkboxGroup/checkboxGroup.html +15 -0
- package/src/modules/dx/checkboxGroup/checkboxGroup.stories.ts +33 -0
- package/src/modules/dx/checkboxGroup/checkboxGroup.ts +77 -0
- package/src/modules/dx/codeBlock/__tests__/codeBlock.test.ts +238 -0
- package/src/modules/dx/codeBlock/__tests__/mockProps.ts +160 -0
- package/src/modules/dx/codeBlock/codeBlock.css +128 -0
- package/src/modules/dx/codeBlock/codeBlock.html +79 -0
- package/src/modules/dx/codeBlock/codeBlock.stories.ts +143 -0
- package/src/modules/dx/codeBlock/codeBlock.ts +215 -0
- package/src/modules/dx/codeBlock/darkTheme.css +88 -0
- package/src/modules/dx/codeBlock/lightTheme.css +72 -0
- package/src/modules/dx/dropdown/__tests__/dropdown.test.ts +165 -0
- package/src/modules/dx/dropdown/__tests__/mockNestedOptions.ts +96 -0
- package/src/modules/dx/dropdown/__tests__/mockOptions.ts +10 -0
- package/src/modules/dx/dropdown/__tests__/mockProps.ts +6 -0
- package/src/modules/dx/dropdown/dropdown.css +93 -0
- package/src/modules/dx/dropdown/dropdown.html +67 -0
- package/src/modules/dx/dropdown/dropdown.stories.ts +89 -0
- package/src/modules/dx/dropdown/dropdown.ts +182 -0
- package/src/modules/dx/dropdownOption/__tests__/dropdownOption.test.ts +112 -0
- package/src/modules/dx/dropdownOption/__tests__/mockProps.ts +20 -0
- package/src/modules/dx/dropdownOption/dropdownOption.css +61 -0
- package/src/modules/dx/dropdownOption/dropdownOption.html +53 -0
- package/src/modules/dx/dropdownOption/dropdownOption.ts +39 -0
- package/src/modules/dx/emptyState/__tests__/emptyState.test.ts +52 -0
- package/src/modules/dx/emptyState/__tests__/mockProps.ts +4 -0
- package/src/modules/dx/emptyState/emptyState.css +64 -0
- package/src/modules/dx/emptyState/emptyState.html +9 -0
- package/src/modules/dx/emptyState/emptyState.stories.ts +45 -0
- package/src/modules/dx/emptyState/emptyState.ts +20 -0
- package/src/modules/dx/feature/__tests__/feature.test.ts +51 -0
- package/src/modules/dx/feature/__tests__/mockProps.ts +8 -0
- package/src/modules/dx/feature/feature.css +135 -0
- package/src/modules/dx/feature/feature.html +33 -0
- package/src/modules/dx/feature/feature.ts +34 -0
- package/src/modules/dx/featureGrid/__tests__/featureGrid.test.ts +21 -0
- package/src/modules/dx/featureGrid/featureGrid.html +3 -0
- package/src/modules/dx/featureGrid/featureGrid.stories.ts +120 -0
- package/src/modules/dx/featureGrid/featureGrid.ts +15 -0
- package/src/modules/dx/featuredContentHeader/__tests__/featuredContentHeader.test.ts +178 -0
- package/src/modules/dx/featuredContentHeader/__tests__/mockProps.ts +73 -0
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +469 -0
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +96 -0
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.stories.ts +153 -0
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +113 -0
- package/src/modules/dx/featuredContentHeader/svgs.ts +35 -0
- package/src/modules/dx/featuresList/__tests__/featuresList.test.ts +43 -0
- package/src/modules/dx/featuresList/__tests__/mockProps.ts +17 -0
- package/src/modules/dx/featuresList/featuresList.css +24 -0
- package/src/modules/dx/featuresList/featuresList.html +20 -0
- package/src/modules/dx/featuresList/featuresList.stories.ts +30 -0
- package/src/modules/dx/featuresList/featuresList.ts +21 -0
- package/src/modules/dx/footer/__tests__/footer.test.ts +147 -0
- package/src/modules/dx/footer/__tests__/mockLocales.ts +7 -0
- package/src/modules/dx/footer/footer.css +405 -0
- package/src/modules/dx/footer/footer.html +145 -0
- package/src/modules/dx/footer/footer.stories.ts +88 -0
- package/src/modules/dx/footer/footer.ts +124 -0
- package/src/modules/dx/footer/links.ts +140 -0
- package/src/modules/dx/footerOption/__tests__/footerOption.test.ts +34 -0
- package/src/modules/dx/footerOption/__tests__/mockProps.ts +7 -0
- package/src/modules/dx/footerOption/footerOption.css +4 -0
- package/src/modules/dx/footerOption/footerOption.html +12 -0
- package/src/modules/dx/footerOption/footerOption.ts +19 -0
- package/src/modules/dx/formattedDateTime/__tests__/formattedDateTime.test.ts +25 -0
- package/src/modules/dx/formattedDateTime/__tests__/mockProps.ts +13 -0
- package/src/modules/dx/formattedDateTime/formattedDateTime.html +1 -0
- package/src/modules/dx/formattedDateTime/formattedDateTime.stories.ts +103 -0
- package/src/modules/dx/formattedDateTime/formattedDateTime.ts +72 -0
- package/src/modules/dx/grid/__tests__/grid.test.ts +32 -0
- package/src/modules/dx/grid/grid.css +48 -0
- package/src/modules/dx/grid/grid.html +3 -0
- package/src/modules/dx/grid/grid.md +14 -0
- package/src/modules/dx/grid/grid.stories.ts +134 -0
- package/src/modules/dx/grid/grid.ts +72 -0
- package/src/modules/dx/groupBio/__tests__/groupBio.test.ts +82 -0
- package/src/modules/dx/groupBio/__tests__/mockProps.ts +15 -0
- package/src/modules/dx/groupBio/groupBio.css +49 -0
- package/src/modules/dx/groupBio/groupBio.html +29 -0
- package/src/modules/dx/groupBio/groupBio.stories.ts +66 -0
- package/src/modules/dx/groupBio/groupBio.ts +41 -0
- package/src/modules/dx/groupText/__tests__/groupText.test.ts +69 -0
- package/src/modules/dx/groupText/__tests__/mockProps.ts +35 -0
- package/src/modules/dx/groupText/groupText.css +119 -0
- package/src/modules/dx/groupText/groupText.html +65 -0
- package/src/modules/dx/groupText/groupText.stories.ts +81 -0
- package/src/modules/dx/groupText/groupText.ts +93 -0
- package/src/modules/dx/headTags/headTags.html +3 -0
- package/src/modules/dx/headTags/headTags.ts +39 -0
- package/src/modules/dx/header/__benchmarks__/header.benchmark.js +45 -0
- package/src/modules/dx/header/__tests__/header.test.ts +236 -0
- package/src/modules/dx/header/__tests__/mockNavArchitects.ts +169 -0
- package/src/modules/dx/header/__tests__/mockNavDevelopers.ts +419 -0
- package/src/modules/dx/header/__tests__/mockNavs.ts +115 -0
- package/src/modules/dx/header/__tests__/mockProps.ts +164 -0
- package/src/modules/dx/header/header.css +109 -0
- package/src/modules/dx/header/header.html +129 -0
- package/src/modules/dx/header/header.stories.ts +172 -0
- package/src/modules/dx/header/header.ts +27 -0
- package/src/modules/dx/headerMobileNavMenu/__tests__/headerMobileNavMenu.test.ts +123 -0
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +160 -0
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.html +73 -0
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +102 -0
- package/src/modules/dx/headerMobileNavMenuOption/__tests__/headerMobileNavMenuOption.test.ts +38 -0
- package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.css +5 -0
- package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.html +14 -0
- package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.ts +20 -0
- package/src/modules/dx/headerNav/__tests__/headerNav.test.ts +49 -0
- package/src/modules/dx/headerNav/headerNav.css +31 -0
- package/src/modules/dx/headerNav/headerNav.html +48 -0
- package/src/modules/dx/headerNav/headerNav.ts +56 -0
- package/src/modules/dx/headerSearch/__tests__/headerSearch.test.ts +182 -0
- package/src/modules/dx/headerSearch/__tests__/mockData.ts +11 -0
- package/src/modules/dx/headerSearch/__tests__/mockProps.ts +6 -0
- package/src/modules/dx/headerSearch/headerSearch.css +62 -0
- package/src/modules/dx/headerSearch/headerSearch.html +64 -0
- package/src/modules/dx/headerSearch/headerSearch.ts +159 -0
- package/src/modules/dx/helmet/__tests__/helmet.test.ts +52 -0
- package/src/modules/dx/helmet/helmet.css +83 -0
- package/src/modules/dx/helmet/helmet.html +39 -0
- package/src/modules/dx/helmet/helmet.stories.ts +53 -0
- package/src/modules/dx/helmet/helmet.ts +27 -0
- package/src/modules/dx/hr/__tests__/hr.test.ts +53 -0
- package/src/modules/dx/hr/__tests__/mockProps.ts +16 -0
- package/src/modules/dx/hr/hr.css +55 -0
- package/src/modules/dx/hr/hr.html +23 -0
- package/src/modules/dx/hr/hr.stories.ts +50 -0
- package/src/modules/dx/hr/hr.ts +45 -0
- package/src/modules/dx/icon/__tests__/icon.test.ts +54 -0
- package/src/modules/dx/icon/icon.css +14 -0
- package/src/modules/dx/icon/icon.html +11 -0
- package/src/modules/dx/icon/icon.stories.ts +100 -0
- package/src/modules/dx/icon/icon.ts +85 -0
- package/src/modules/dx/iconBadge/__tests__/iconBadge.test.ts +17 -0
- package/src/modules/dx/iconBadge/iconBadge.css +40 -0
- package/src/modules/dx/iconBadge/iconBadge.html +10 -0
- package/src/modules/dx/iconBadge/iconBadge.stories.ts +32 -0
- package/src/modules/dx/iconBadge/iconBadge.ts +42 -0
- package/src/modules/dx/imageAndLabel/__tests__/imageAndLabel.test.ts +39 -0
- package/src/modules/dx/imageAndLabel/__tests__/mockProps.ts +6 -0
- package/src/modules/dx/imageAndLabel/imageAndLabel.css +54 -0
- package/src/modules/dx/imageAndLabel/imageAndLabel.html +22 -0
- package/src/modules/dx/imageAndLabel/imageAndLabel.stories.ts +48 -0
- package/src/modules/dx/imageAndLabel/imageAndLabel.ts +16 -0
- package/src/modules/dx/input/__tests__/input.test.ts +357 -0
- package/src/modules/dx/input/input.css +165 -0
- package/src/modules/dx/input/input.html +58 -0
- package/src/modules/dx/input/input.stories.ts +102 -0
- package/src/modules/dx/input/input.ts +238 -0
- package/src/modules/dx/input/validators.ts +5 -0
- package/src/modules/dx/instrumentation/__tests__/instrumentation.test.ts +86 -0
- package/src/modules/dx/instrumentation/instrumentation.html +1 -0
- package/src/modules/dx/instrumentation/instrumentation.ts +116 -0
- package/src/modules/dx/interactiveImage/__tests__/interactiveImage.test.ts +83 -0
- package/src/modules/dx/interactiveImage/__tests__/mockProps.ts +39 -0
- package/src/modules/dx/interactiveImage/interactiveImage.css +59 -0
- package/src/modules/dx/interactiveImage/interactiveImage.html +32 -0
- package/src/modules/dx/interactiveImage/interactiveImage.stories.ts +31 -0
- package/src/modules/dx/interactiveImage/interactiveImage.ts +71 -0
- package/src/modules/dx/lazy/__tests__/lazy.test.ts +43 -0
- package/src/modules/dx/lazy/lazy.html +5 -0
- package/src/modules/dx/lazy/lazy.stories.ts +132 -0
- package/src/modules/dx/lazy/lazy.ts +163 -0
- package/src/modules/dx/logo/logo.css +33 -0
- package/src/modules/dx/logo/logo.html +6 -0
- package/src/modules/dx/logo/logo.ts +8 -0
- package/src/modules/dx/newsletterForm/newsletterForm.css +73 -0
- package/src/modules/dx/newsletterForm/newsletterForm.html +73 -0
- package/src/modules/dx/newsletterForm/newsletterForm.ts +238 -0
- package/src/modules/dx/pagination/__tests__/pagination.test.ts +121 -0
- package/src/modules/dx/pagination/pagination.css +51 -0
- package/src/modules/dx/pagination/pagination.html +45 -0
- package/src/modules/dx/pagination/pagination.stories.ts +88 -0
- package/src/modules/dx/pagination/pagination.ts +93 -0
- package/src/modules/dx/podcastHost/__tests__/mockProps.ts +8 -0
- package/src/modules/dx/podcastHost/__tests__/podcastHost.test.ts +21 -0
- package/src/modules/dx/podcastHost/podcastHost.css +62 -0
- package/src/modules/dx/podcastHost/podcastHost.html +28 -0
- package/src/modules/dx/podcastHost/podcastHost.stories.ts +17 -0
- package/src/modules/dx/podcastHost/podcastHost.ts +13 -0
- package/src/modules/dx/podcastPlayer/__tests__/podcastPlayer.test.ts +20 -0
- package/src/modules/dx/podcastPlayer/podcastPlayer.css +10 -0
- package/src/modules/dx/podcastPlayer/podcastPlayer.html +3 -0
- package/src/modules/dx/podcastPlayer/podcastPlayer.stories.ts +13 -0
- package/src/modules/dx/podcastPlayer/podcastPlayer.ts +5 -0
- package/src/modules/dx/podcastSubscription/__tests__/podcastSubscription.test.ts +16 -0
- package/src/modules/dx/podcastSubscription/podcastSubscription.css +91 -0
- package/src/modules/dx/podcastSubscription/podcastSubscription.html +24 -0
- package/src/modules/dx/podcastSubscription/podcastSubscription.stories.ts +23 -0
- package/src/modules/dx/podcastSubscription/podcastSubscription.ts +58 -0
- package/src/modules/dx/popover/__tests__/mockProps.ts +8 -0
- package/src/modules/dx/popover/__tests__/popover.test.ts +313 -0
- package/src/modules/dx/popover/popover.css +63 -0
- package/src/modules/dx/popover/popover.html +16 -0
- package/src/modules/dx/popover/popover.stories.ts +82 -0
- package/src/modules/dx/popover/popover.ts +313 -0
- package/src/modules/dx/radioGroup/__tests__/mockProps.ts +12 -0
- package/src/modules/dx/radioGroup/__tests__/radioGroup.test.ts +42 -0
- package/src/modules/dx/radioGroup/radioGroup.css +12 -0
- package/src/modules/dx/radioGroup/radioGroup.html +16 -0
- package/src/modules/dx/radioGroup/radioGroup.stories.ts +25 -0
- package/src/modules/dx/radioGroup/radioGroup.ts +65 -0
- package/src/modules/dx/relativeDateTime/__tests__/mockProps.ts +55 -0
- package/src/modules/dx/relativeDateTime/__tests__/relativeDateTime.test.ts +52 -0
- package/src/modules/dx/relativeDateTime/relativeDateTime.html +3 -0
- package/src/modules/dx/relativeDateTime/relativeDateTime.stories.ts +83 -0
- package/src/modules/dx/relativeDateTime/relativeDateTime.ts +113 -0
- package/src/modules/dx/searchResults/coveo.css +18989 -0
- package/src/modules/dx/searchResults/searchResults.css +387 -0
- package/src/modules/dx/searchResults/searchResults.html +104 -0
- package/src/modules/dx/searchResults/searchResults.stories.ts +36 -0
- package/src/modules/dx/searchResults/searchResults.ts +186 -0
- package/src/modules/dx/section/__tests__/section.test.ts +17 -0
- package/src/modules/dx/section/section.css +130 -0
- package/src/modules/dx/section/section.html +66 -0
- package/src/modules/dx/section/section.stories.ts +381 -0
- package/src/modules/dx/section/section.ts +41 -0
- package/src/modules/dx/sectionSignup/__tests__/sectionSignup.test.ts +66 -0
- package/src/modules/dx/sectionSignup/sectionSignup.css +43 -0
- package/src/modules/dx/sectionSignup/sectionSignup.html +23 -0
- package/src/modules/dx/sectionSignup/sectionSignup.stories.ts +49 -0
- package/src/modules/dx/sectionSignup/sectionSignup.ts +44 -0
- package/src/modules/dx/select/select.css +44 -0
- package/src/modules/dx/select/select.html +60 -0
- package/src/modules/dx/select/select.stories.ts +59 -0
- package/src/modules/dx/select/select.ts +23 -0
- package/src/modules/dx/sidebar/__tests__/mockProps.ts +181 -0
- package/src/modules/dx/sidebar/__tests__/mockSearchChangeEmptyEvent.ts +6 -0
- package/src/modules/dx/sidebar/__tests__/mockSearchChangeEvent.ts +527 -0
- package/src/modules/dx/sidebar/__tests__/sidebar.test.ts +568 -0
- package/src/modules/dx/sidebar/sidebar.css +192 -0
- package/src/modules/dx/sidebar/sidebar.html +94 -0
- package/src/modules/dx/sidebar/sidebar.stories.ts +188 -0
- package/src/modules/dx/sidebar/sidebar.ts +255 -0
- package/src/modules/dx/sidebarOld/__tests__/mockProps.ts +178 -0
- package/src/modules/dx/sidebarOld/__tests__/sidebarOld.test.ts +570 -0
- package/src/modules/dx/sidebarOld/sidebarOld.css +160 -0
- package/src/modules/dx/sidebarOld/sidebarOld.html +70 -0
- package/src/modules/dx/sidebarOld/sidebarOld.stories.ts +139 -0
- package/src/modules/dx/sidebarOld/sidebarOld.ts +187 -0
- package/src/modules/dx/sidebarSearch/__tests__/mockPreloadedState.ts +1686 -0
- package/src/modules/dx/sidebarSearch/__tests__/sidebarSearch.test.ts +175 -0
- package/src/modules/dx/sidebarSearch/sidebarSearch.css +3 -0
- package/src/modules/dx/sidebarSearch/sidebarSearch.html +26 -0
- package/src/modules/dx/sidebarSearch/sidebarSearch.ts +440 -0
- package/src/modules/dx/sidebarSearchResult/__tests__/sidebarSearchResult.test.ts +96 -0
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +36 -0
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.html +14 -0
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.ts +70 -0
- package/src/modules/dx/skipNavLink/skipNavLink.css +21 -0
- package/src/modules/dx/skipNavLink/skipNavLink.html +3 -0
- package/src/modules/dx/skipNavLink/skipNavLink.ts +3 -0
- package/src/modules/dx/slackCta/__tests__/slackCta.test.ts +36 -0
- package/src/modules/dx/slackCta/slackCta.css +47 -0
- package/src/modules/dx/slackCta/slackCta.html +17 -0
- package/src/modules/dx/slackCta/slackCta.stories.ts +25 -0
- package/src/modules/dx/slackCta/slackCta.ts +12 -0
- package/src/modules/dx/socials/__tests__/socials.test.ts +114 -0
- package/src/modules/dx/socials/socials.css +35 -0
- package/src/modules/dx/socials/socials.html +22 -0
- package/src/modules/dx/socials/socials.stories.ts +24 -0
- package/src/modules/dx/socials/socials.ts +81 -0
- package/src/modules/dx/spinner/__tests__/spinner.test.ts +37 -0
- package/src/modules/dx/spinner/spinner.css +750 -0
- package/src/modules/dx/spinner/spinner.html +6 -0
- package/src/modules/dx/spinner/spinner.stories.ts +69 -0
- package/src/modules/dx/spinner/spinner.ts +20 -0
- package/src/modules/dx/tab/__tests__/tab.test.ts +129 -0
- package/src/modules/dx/tab/tab.css +106 -0
- package/src/modules/dx/tab/tab.html +13 -0
- package/src/modules/dx/tab/tab.stories.ts +57 -0
- package/src/modules/dx/tab/tab.ts +52 -0
- package/src/modules/dx/toc/__tests__/mockProps.ts +28 -0
- package/src/modules/dx/toc/__tests__/toc.test.ts +109 -0
- package/src/modules/dx/toc/toc.css +94 -0
- package/src/modules/dx/toc/toc.html +28 -0
- package/src/modules/dx/toc/toc.stories.ts +26 -0
- package/src/modules/dx/toc/toc.ts +77 -0
- package/src/modules/dx/tooltip/__tests__/tooltip.test.ts +22 -0
- package/src/modules/dx/tooltip/microtip.css +269 -0
- package/src/modules/dx/tooltip/tooltip.css +36 -0
- package/src/modules/dx/tooltip/tooltip.html +5 -0
- package/src/modules/dx/tooltip/tooltip.stories.ts +46 -0
- package/src/modules/dx/tooltip/tooltip.ts +6 -0
- package/src/modules/dx/topics/__tests__/mockProps.ts +3 -0
- package/src/modules/dx/topics/__tests__/topics.test.ts +31 -0
- package/src/modules/dx/topics/topics.css +25 -0
- package/src/modules/dx/topics/topics.html +12 -0
- package/src/modules/dx/topics/topics.ts +25 -0
- package/src/modules/dx/tree/__tests__/mockProps.ts +215 -0
- package/src/modules/dx/tree/__tests__/tree.test.ts +346 -0
- package/src/modules/dx/tree/__tests__/treeHandler.test.ts +194 -0
- package/src/modules/dx/tree/tree.css +5 -0
- package/src/modules/dx/tree/tree.html +11 -0
- package/src/modules/dx/tree/tree.stories.ts +65 -0
- package/src/modules/dx/tree/tree.ts +72 -0
- package/src/modules/dx/tree/treeHandler.ts +100 -0
- package/src/modules/dx/treeItem/__tests__/mockProps.ts +46 -0
- package/src/modules/dx/treeItem/__tests__/treeItem.test.ts +377 -0
- package/src/modules/dx/treeItem/treeItem.css +14 -0
- package/src/modules/dx/treeItem/treeItem.html +22 -0
- package/src/modules/dx/treeItem/treeItem.ts +110 -0
- package/src/modules/dx/treeTile/__tests__/mockProps.ts +16 -0
- package/src/modules/dx/treeTile/__tests__/treeTile.test.ts +168 -0
- package/src/modules/dx/treeTile/treeTile.css +190 -0
- package/src/modules/dx/treeTile/treeTile.html +27 -0
- package/src/modules/dx/treeTile/treeTile.ts +59 -0
- package/src/modules/dx/typeBadge/__tests__/typeBadge.test.ts +77 -0
- package/src/modules/dx/typeBadge/typeBadge.css +74 -0
- package/src/modules/dx/typeBadge/typeBadge.html +5 -0
- package/src/modules/dx/typeBadge/typeBadge.stories.ts +114 -0
- package/src/modules/dx/typeBadge/typeBadge.ts +65 -0
- package/src/modules/dx/typeBadgeGroup/__tests__/mockProps.ts +11 -0
- package/src/modules/dx/typeBadgeGroup/__tests__/typeBadgeGroup.test.ts +72 -0
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.css +12 -0
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.html +11 -0
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.stories.ts +19 -0
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +18 -0
- package/src/modules/helpers/animations/animations.css +15 -0
- package/src/modules/helpers/button/button.css +4 -0
- package/src/modules/helpers/card/card.css +258 -0
- package/src/modules/helpers/code/code.css +296 -0
- package/src/modules/helpers/commonHeader/commonHeader.css +130 -0
- package/src/modules/helpers/reset/reset.css +559 -0
- package/src/modules/helpers/sidebar/sidebar.css +21 -0
- package/src/modules/helpers/slds/slds.css +191 -0
- package/src/modules/helpers/table/table.css +110 -0
- package/src/modules/helpers/text/text.css +163 -0
- package/src/modules/test-components/buttonTest/buttonTest.html +3 -0
- package/src/modules/test-components/buttonTest/buttonTest.ts +3 -0
- package/src/modules/test-components/codeBlockTest/codeBlockTest.js +4 -0
- package/src/modules/test-components/featureGridTest/featureGridTest.html +7 -0
- package/src/modules/test-components/featureGridTest/featureGridTest.ts +5 -0
- package/src/modules/test-components/instrumentationTest/instrumentationTest.html +4 -0
- package/src/modules/test-components/instrumentationTest/instrumentationTest.ts +8 -0
- package/src/modules/test-components/popoverTest/popoverTest.html +6 -0
- package/src/modules/test-components/popoverTest/popoverTest.ts +5 -0
- package/src/modules/test-components/slackCtaTest/slackCtaTest.html +3 -0
- package/src/modules/test-components/slackCtaTest/slackCtaTest.ts +3 -0
- package/src/modules/utils/highlight/__tests__/highlight.test.ts +108 -0
- package/src/modules/utils/highlight/__tests__/mockProps.ts +45 -0
- package/src/modules/utils/highlight/highlight.ts +32 -0
- package/src/modules/utils/normalizers/normalizers.ts +91 -0
- package/src/modules/utils-internal/archiveCard/archiveCard.ts +35 -0
- package/src/modules/utils-internal/coveo/coveo.ts +70 -0
- package/src/modules/utils-internal/css/css.ts +43 -0
- package/src/modules/utils-internal/devices/devices.ts +1 -0
- package/src/modules/utils-internal/headerBase/headerBase.ts +204 -0
- package/src/modules/utils-internal/jest/jest.ts +58 -0
- package/src/modules/utils-internal/options/options.ts +39 -0
- package/src/modules/utils-internal/prismjs/prismjs.html +3 -0
- package/src/modules/utils-internal/prismjs/prismjs.ts +3321 -0
- package/src/modules/utils-internal/recentSearches/__tests__/recentSearches.test.ts +83 -0
- package/src/modules/utils-internal/recentSearches/recentSearches.ts +57 -0
- package/src/modules/utils-internal/regexps/regexps.ts +5 -0
- package/src/modules/utils-internal/seo/seo.ts +4 -0
- package/src/modules/utils-internal/slot/slot.ts +17 -0
- package/src/modules/utils-internal/storybook/storybook.ts +32 -0
- package/src/modules/utils-internal/tests/tests.ts +38 -0
- package/src/modules/utils-internal/wordpress/__tests__/wordpress.test.ts +15 -0
- package/src/modules/utils-internal/wordpress/wordpress.ts +13 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
:host(.slds-form-element_stacked) .slds-form-element__label,
|
|
2
|
+
:host(.slds-form-element_stacked) .slds-form-element__control {
|
|
3
|
+
border-bottom: 0;
|
|
4
|
+
padding-left: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:host(.slds-form-element_stacked) .slds-form-element__control {
|
|
8
|
+
width: 100%;
|
|
9
|
+
-ms-flex-preferred-size: 100%;
|
|
10
|
+
flex-basis: 100%;
|
|
11
|
+
clear: left;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (min-width: 48em) {
|
|
15
|
+
:host(.slds-form-element_horizontal) .slds-form-element__control {
|
|
16
|
+
padding-left: 33%;
|
|
17
|
+
clear: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host(.slds-has-error) .slds-select {
|
|
22
|
+
border-color: #ea001e;
|
|
23
|
+
-webkit-box-shadow: #ea001e 0 0 0 1px inset;
|
|
24
|
+
box-shadow: #ea001e 0 0 0 1px inset;
|
|
25
|
+
background-clip: padding-box;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host(.slds-has-error) .slds-select:focus,
|
|
29
|
+
:host(.slds-has-error) .slds-select:active {
|
|
30
|
+
-webkit-box-shadow: #ea001e 0 0 0 1px inset, 0 0 3px #0176d3;
|
|
31
|
+
box-shadow: #ea001e 0 0 0 1px inset, 0 0 3px #0176d3;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host(.slds-has-error) .slds-form-element__help {
|
|
35
|
+
color: #ea001e;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
abbr[title] {
|
|
39
|
+
border-bottom: 1px dotted;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
abbr[title] {
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
abbr[title],
|
|
47
|
+
fieldset,
|
|
48
|
+
hr {
|
|
49
|
+
border: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
abbr[title] {
|
|
53
|
+
cursor: help;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
abbr[title]:after {
|
|
57
|
+
content: " (" attr(title) ")";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
button,
|
|
61
|
+
select {
|
|
62
|
+
text-transform: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.slds-form-element__label {
|
|
66
|
+
overflow-wrap: break-word;
|
|
67
|
+
word-wrap: break-word;
|
|
68
|
+
-webkit-hyphens: auto;
|
|
69
|
+
-ms-hyphens: auto;
|
|
70
|
+
hyphens: auto;
|
|
71
|
+
display: inline-block;
|
|
72
|
+
color: #3e3e3c;
|
|
73
|
+
font-size: 0.75rem;
|
|
74
|
+
padding-right: 0.5rem;
|
|
75
|
+
padding-top: 0.25rem;
|
|
76
|
+
margin-bottom: 0.125rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.slds-form-element__label:empty {
|
|
80
|
+
margin: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.slds-assistive-text {
|
|
84
|
+
position: absolute !important;
|
|
85
|
+
margin: -1px !important;
|
|
86
|
+
border: 0 !important;
|
|
87
|
+
padding: 0 !important;
|
|
88
|
+
width: 1px !important;
|
|
89
|
+
height: 1px !important;
|
|
90
|
+
overflow: hidden !important;
|
|
91
|
+
clip: rect(0 0 0 0) !important;
|
|
92
|
+
text-transform: none !important;
|
|
93
|
+
white-space: nowrap !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.slds-required {
|
|
97
|
+
color: #ea001e;
|
|
98
|
+
margin: 0 0.125rem;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.slds-form-element__control {
|
|
102
|
+
clear: left;
|
|
103
|
+
position: relative;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.slds-select {
|
|
107
|
+
height: calc(1.875rem + (1px * 2));
|
|
108
|
+
width: 100%;
|
|
109
|
+
border: 1px solid var(--sds-c-select-color-border, #dddbda);
|
|
110
|
+
border-radius: var(--sds-c-select-radius-border, 0.25rem);
|
|
111
|
+
background-color: var(--sds-c-select-color-background, white);
|
|
112
|
+
color: var(--sds-c-select-text-color);
|
|
113
|
+
-webkit-box-shadow: var(--sds-c-select-shadow);
|
|
114
|
+
box-shadow: var(--sds-c-select-shadow);
|
|
115
|
+
-webkit-transition: border 0.1s linear, background-color 0.1s linear;
|
|
116
|
+
transition: border 0.1s linear, background-color 0.1s linear;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.slds-select:required {
|
|
120
|
+
-webkit-box-shadow: none;
|
|
121
|
+
box-shadow: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.slds-select:focus,
|
|
125
|
+
.slds-select:active {
|
|
126
|
+
outline: 0;
|
|
127
|
+
border-color: var(--sds-c-select-color-border-focus, #1b96ff);
|
|
128
|
+
background-color: var(--sds-c-select-color-background-focus, white);
|
|
129
|
+
color: var(--sds-c-select-text-color-focus);
|
|
130
|
+
-webkit-box-shadow: var(--sds-c-select-shadow-focus, 0 0 3px #0176d3);
|
|
131
|
+
box-shadow: var(--sds-c-select-shadow-focus, 0 0 3px #0176d3);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.slds-select[disabled],
|
|
135
|
+
.slds-select.slds-is-disabled {
|
|
136
|
+
background-color: #ecebea;
|
|
137
|
+
border-color: #c9c7c5;
|
|
138
|
+
color: #3e3e3c;
|
|
139
|
+
cursor: not-allowed;
|
|
140
|
+
-webkit-user-select: none;
|
|
141
|
+
-moz-user-select: none;
|
|
142
|
+
-ms-user-select: none;
|
|
143
|
+
user-select: none;
|
|
144
|
+
opacity: 1;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.slds-select[disabled]:focus,
|
|
148
|
+
.slds-select[disabled]:active,
|
|
149
|
+
.slds-select.slds-is-disabled:focus,
|
|
150
|
+
.slds-select.slds-is-disabled:active {
|
|
151
|
+
-webkit-box-shadow: none;
|
|
152
|
+
box-shadow: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.slds-select[size],
|
|
156
|
+
.slds-select[multiple] {
|
|
157
|
+
min-height: calc(1.875rem + (1px * 2));
|
|
158
|
+
height: inherit;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.slds-select[size] option,
|
|
162
|
+
.slds-select[multiple] option {
|
|
163
|
+
padding: 0.5rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.slds-select_container {
|
|
167
|
+
position: relative;
|
|
168
|
+
color: var(--sds-c-select-text-color);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.slds-select_container .slds-select {
|
|
172
|
+
-moz-appearance: none;
|
|
173
|
+
-webkit-appearance: none;
|
|
174
|
+
padding-left: 0.5rem;
|
|
175
|
+
padding-right: 1.5rem;
|
|
176
|
+
}
|
|
177
|
+
.slds-select_container .slds-select::-ms-expand {
|
|
178
|
+
display: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.slds-select[size] option,
|
|
182
|
+
.slds-select[multiple] option {
|
|
183
|
+
padding: 0.5rem;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.slds-form-element__help,
|
|
187
|
+
.slds-form-element__helper {
|
|
188
|
+
font-size: 0.75rem;
|
|
189
|
+
margin-top: 0.125rem;
|
|
190
|
+
display: block;
|
|
191
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
table {
|
|
2
|
+
--table-border-radius: 4px;
|
|
3
|
+
--table-cell-text-base: var(--dx-g-text-sm);
|
|
4
|
+
--table-cell-line-height: var(--dx-g-text-lg);
|
|
5
|
+
|
|
6
|
+
display: block;
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
border-collapse: separate;
|
|
9
|
+
border-spacing: 0;
|
|
10
|
+
margin-top: var(--dx-g-spacing-lg);
|
|
11
|
+
margin-bottom: var(--dx-g-spacing-sm);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
table tr {
|
|
15
|
+
height: 50px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
th,
|
|
19
|
+
td {
|
|
20
|
+
padding: var(--dx-g-spacing-md);
|
|
21
|
+
font-size: var(--table-cell-text-base);
|
|
22
|
+
line-height: var(--table-cell-line-height);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
th {
|
|
26
|
+
background-color: var(--dx-g-indigo-vibrant-95);
|
|
27
|
+
font-weight: var(--dx-g-font-bold);
|
|
28
|
+
border-bottom: 3px solid var(--dx-g-indigo-vibrant-30);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
td {
|
|
32
|
+
vertical-align: top;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
tr th,
|
|
36
|
+
tr td {
|
|
37
|
+
text-align: left;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
table tbody tr td {
|
|
41
|
+
vertical-align: middle;
|
|
42
|
+
border-bottom: 1px solid var(--dx-g-gray-90);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
tr th:first-of-type,
|
|
46
|
+
td:first-of-type {
|
|
47
|
+
min-width: 110px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
tr td:first-of-type {
|
|
51
|
+
border-left: 1px solid var(--dx-g-gray-90);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
tr td:last-of-type {
|
|
55
|
+
border-right: 1px solid var(--dx-g-gray-90);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
tr:first-of-type th:first-of-type {
|
|
59
|
+
border-top-left-radius: var(--table-border-radius);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
tr:first-of-type th:last-of-type {
|
|
63
|
+
border-top-right-radius: var(--table-border-radius);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
table :not(thead + tbody) tr:first-of-type td {
|
|
67
|
+
border-top: 1px solid var(--dx-g-gray-90);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
tr:last-of-type td:first-of-type {
|
|
71
|
+
border-bottom-left-radius: var(--table-border-radius);
|
|
72
|
+
border-bottom: 1px solid var(--dx-g-gray-90);
|
|
73
|
+
border-left: 1px solid var(--dx-g-gray-90);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
tr:last-of-type td:last-of-type {
|
|
77
|
+
border-bottom-right-radius: var(--table-border-radius);
|
|
78
|
+
border-bottom: 1px solid var(--dx-g-gray-90);
|
|
79
|
+
border-right: 1px solid var(--dx-g-gray-90);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
tr td[colspan]:not([colspan="1"]) {
|
|
83
|
+
text-align: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Inside of a <td>, we want font size not to increase as it otherwise would
|
|
88
|
+
* for standard inline/"prose-level" elements (e.g., <p>, <li>). But we *do*
|
|
89
|
+
* want to leave font size increases in place for *other* elements inside <td>,
|
|
90
|
+
* like callouts, headings (<h1>, <h2>, etc.), and so on. In order not to
|
|
91
|
+
* "stomp" on too much -- and because we don't control the markup, so can't
|
|
92
|
+
* easily add new CSS classes, etc. -- we try to pick out the specific
|
|
93
|
+
* structures only here. (See https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE0000081MGTYA2/view)
|
|
94
|
+
*/
|
|
95
|
+
td :is(.li, p, .p, dd) {
|
|
96
|
+
font-size: var(--table-cell-text-base);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
td doc-content-callout :is(.li, p, .p, dd) {
|
|
100
|
+
/* Override/reset for callouts -- see https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE0000081MGTYA2/view */
|
|
101
|
+
font-size: var(--dx-g-text-base);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
table :not(thead + tbody) tr:first-of-type td:first-of-type {
|
|
105
|
+
border-top-left-radius: var(--table-border-radius);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
table :not(thead + tbody) tr:first-of-type td:last-of-type {
|
|
109
|
+
border-top-right-radius: var(--table-border-radius);
|
|
110
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.dx-text-heading-1 {
|
|
2
|
+
color: var(--dx-g-text-heading-color);
|
|
3
|
+
font-family: var(--dx-g-font-display);
|
|
4
|
+
font-size: 64px; /* not registered */
|
|
5
|
+
letter-spacing: -0.6px;
|
|
6
|
+
line-height: 64px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.dx-text-heading-2 {
|
|
10
|
+
color: var(--dx-g-text-heading-color);
|
|
11
|
+
font-family: var(--dx-g-font-display);
|
|
12
|
+
font-size: var(--dx-g-text-5xl);
|
|
13
|
+
letter-spacing: -0.6px;
|
|
14
|
+
line-height: 60px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dx-text-heading-3 {
|
|
18
|
+
color: var(--dx-g-text-heading-color);
|
|
19
|
+
font-family: var(--dx-g-font-display);
|
|
20
|
+
font-size: var(--dx-g-text-3xl);
|
|
21
|
+
letter-spacing: -0.4px;
|
|
22
|
+
line-height: 40px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dx-text-heading-4 {
|
|
26
|
+
color: var(--dx-g-text-heading-color);
|
|
27
|
+
font-family: var(--dx-g-font-display);
|
|
28
|
+
font-size: var(--dx-g-text-xl);
|
|
29
|
+
letter-spacing: -0.1px;
|
|
30
|
+
line-height: 28px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dx-text-heading-5 {
|
|
34
|
+
color: var(--dx-g-text-heading-color);
|
|
35
|
+
font-family: var(--dx-g-font-display);
|
|
36
|
+
font-size: 18px; /* not registered */
|
|
37
|
+
letter-spacing: -0.1px;
|
|
38
|
+
line-height: 24px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dx-text-heading-6 {
|
|
42
|
+
color: var(--dx-g-text-heading-color);
|
|
43
|
+
font-family: var(--dx-g-font-display);
|
|
44
|
+
font-size: var(--dx-g-text-base);
|
|
45
|
+
letter-spacing: 0;
|
|
46
|
+
line-height: 20px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.dx-text-heading-7 {
|
|
50
|
+
color: var(--dx-g-text-heading-color);
|
|
51
|
+
font-family: var(--dx-g-font-display);
|
|
52
|
+
font-size: var(--dx-g-text-sm);
|
|
53
|
+
letter-spacing: 0;
|
|
54
|
+
line-height: 18px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dx-text-heading-alt-1 {
|
|
58
|
+
color: var(--dx-g-text-label-color);
|
|
59
|
+
font-family: var(--dx-g-font-sans);
|
|
60
|
+
font-size: var(--slds-text-lg);
|
|
61
|
+
line-height: 25px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dx-text-body-1 {
|
|
65
|
+
color: var(--dx-g-text-body-color);
|
|
66
|
+
font-family: var(--dx-g-font-sans);
|
|
67
|
+
font-size: var(--dx-g-text-lg);
|
|
68
|
+
letter-spacing: 0;
|
|
69
|
+
line-height: 32px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dx-text-body-2 {
|
|
73
|
+
color: var(--dx-g-text-body-color);
|
|
74
|
+
font-family: var(--dx-g-font-sans);
|
|
75
|
+
font-size: var(--dx-g-text-base);
|
|
76
|
+
letter-spacing: 0;
|
|
77
|
+
line-height: 24px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dx-text-body-3 {
|
|
81
|
+
color: var(--dx-g-text-body-color);
|
|
82
|
+
font-family: var(--dx-g-font-sans);
|
|
83
|
+
font-size: var(--dx-g-text-sm);
|
|
84
|
+
letter-spacing: 0;
|
|
85
|
+
line-height: 20px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dx-text-body-4 {
|
|
89
|
+
color: var(--dx-g-text-body-color);
|
|
90
|
+
font-family: var(--dx-g-font-sans);
|
|
91
|
+
font-size: var(--dx-g-text-xs);
|
|
92
|
+
letter-spacing: 0;
|
|
93
|
+
line-height: 18px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.dx-text-button-brand {
|
|
97
|
+
color: var(--dx-g-text-button-color);
|
|
98
|
+
font-family: var(--dx-g-font-display);
|
|
99
|
+
font-size: var(--dx-g-text-sm);
|
|
100
|
+
letter-spacing: 0;
|
|
101
|
+
line-height: 20px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dx-text-button-light {
|
|
105
|
+
color: var(--dx-g-text-button-light-color);
|
|
106
|
+
font-family: var(--dx-g-font-display);
|
|
107
|
+
font-size: var(--dx-g-text-sm);
|
|
108
|
+
letter-spacing: 0;
|
|
109
|
+
line-height: 20px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dx-text-label-1 {
|
|
113
|
+
color: var(--dx-g-text-heading-color);
|
|
114
|
+
font-family: var(--dx-g-font-display);
|
|
115
|
+
font-size: var(--dx-g-text-sm);
|
|
116
|
+
letter-spacing: 0.7px;
|
|
117
|
+
line-height: 16px;
|
|
118
|
+
text-align: center;
|
|
119
|
+
text-transform: uppercase;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.dx-text-label-1-dark {
|
|
123
|
+
color: var(--dx-g-text-label-color);
|
|
124
|
+
font-family: var(--dx-g-font-display);
|
|
125
|
+
font-size: var(--dx-g-text-sm);
|
|
126
|
+
letter-spacing: 0.7px;
|
|
127
|
+
line-height: 16px;
|
|
128
|
+
text-align: center;
|
|
129
|
+
text-transform: uppercase;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.dx-text-label-2 {
|
|
133
|
+
color: var(--dx-g-text-heading-color);
|
|
134
|
+
font-family: var(--dx-g-font-display);
|
|
135
|
+
font-size: var(--dx-g-text-xs);
|
|
136
|
+
letter-spacing: 0.7px;
|
|
137
|
+
line-height: 16px;
|
|
138
|
+
text-transform: uppercase;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.dx-text-label-3 {
|
|
142
|
+
color: var(--dx-g-text-label-color);
|
|
143
|
+
font-family: var(--dx-g-font-display);
|
|
144
|
+
font-size: var(--dx-g-text-xs);
|
|
145
|
+
font-weight: var(--dx-g-font-demi);
|
|
146
|
+
letter-spacing: 0.7px;
|
|
147
|
+
line-height: 16px;
|
|
148
|
+
text-transform: uppercase;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.dx-text-form-error-message {
|
|
152
|
+
font-family: var(--dx-g-font-sans);
|
|
153
|
+
color: var(--dx-g-red-vibrant-50);
|
|
154
|
+
font-size: var(--dx-g-text-xs);
|
|
155
|
+
line-height: 14px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.dx-text-truncate {
|
|
159
|
+
display: -webkit-box;
|
|
160
|
+
-webkit-line-clamp: var(--dx-c-max-lines, 6);
|
|
161
|
+
-webkit-box-orient: vertical;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<dx-feature-grid>
|
|
3
|
+
<dx-feature button-label="Feature 1" title="Feature 1"></dx-feature>
|
|
4
|
+
<dx-feature button-label="Feature 2" title="Feature 2"></dx-feature>
|
|
5
|
+
<dx-feature button-label="Feature 3" title="Feature 3"></dx-feature>
|
|
6
|
+
</dx-feature-grid>
|
|
7
|
+
</template>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LightningElement } from "lwc";
|
|
2
|
+
import { track } from "dx/instrumentation";
|
|
3
|
+
|
|
4
|
+
export default class InstrumentationTest extends LightningElement {
|
|
5
|
+
handleButtonClick(e: MouseEvent) {
|
|
6
|
+
track(e.currentTarget, "buttonClick", { buttonName: "default" });
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { createElement } from "lwc";
|
|
2
|
+
import CodeBlock from "dx/codeBlock";
|
|
3
|
+
import { highlightTerms } from "utils/highlight";
|
|
4
|
+
import { mockContent, allowedTags } from "./mockProps";
|
|
5
|
+
|
|
6
|
+
const container = document.createElement("div");
|
|
7
|
+
|
|
8
|
+
describe("highlight utility", () => {
|
|
9
|
+
afterEach(() => (container.innerHTML = ""));
|
|
10
|
+
|
|
11
|
+
it("highlights text that matches search criteria", () => {
|
|
12
|
+
container.innerHTML = mockContent;
|
|
13
|
+
highlightTerms(
|
|
14
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
15
|
+
"apex"
|
|
16
|
+
);
|
|
17
|
+
expect(container.querySelectorAll("mark")).toHaveLength(14);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it("doesn't highlight elements that contains dx/docs components", () => {
|
|
21
|
+
const searchTerm = "customreport";
|
|
22
|
+
const codeBlock = createElement("dx-code-block", { is: CodeBlock });
|
|
23
|
+
Object.assign(codeBlock, {
|
|
24
|
+
codeBlock: searchTerm,
|
|
25
|
+
language: "text"
|
|
26
|
+
});
|
|
27
|
+
container.appendChild(document.createElement("p"));
|
|
28
|
+
container.firstElementChild?.appendChild(codeBlock);
|
|
29
|
+
highlightTerms(
|
|
30
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
31
|
+
searchTerm
|
|
32
|
+
);
|
|
33
|
+
expect(container.querySelectorAll("mark")).toHaveLength(0);
|
|
34
|
+
expect(codeBlock.shadowRoot.innerHTML).toMatch(searchTerm); // sanity check
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it("doesn't highlight terms separated by html tags", () => {
|
|
38
|
+
container.innerHTML = "<p>loadData<span>within</span></p>";
|
|
39
|
+
highlightTerms(
|
|
40
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
41
|
+
"loadDatawithin"
|
|
42
|
+
);
|
|
43
|
+
expect(container.querySelectorAll("mark")).toHaveLength(0);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it("escapes regex especial characters", () => {
|
|
47
|
+
container.innerHTML = mockContent;
|
|
48
|
+
highlightTerms(
|
|
49
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
50
|
+
"apex.+"
|
|
51
|
+
);
|
|
52
|
+
expect(container.querySelectorAll("mark")).toHaveLength(0);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it("cleans previous search result before searching for a new term", () => {
|
|
56
|
+
const firstSearch = "apex";
|
|
57
|
+
const secondSearch = "salesforce";
|
|
58
|
+
|
|
59
|
+
container.innerHTML = mockContent;
|
|
60
|
+
|
|
61
|
+
highlightTerms(
|
|
62
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
63
|
+
firstSearch
|
|
64
|
+
);
|
|
65
|
+
const firstMarks = container.querySelectorAll("mark");
|
|
66
|
+
expect(firstMarks).toHaveLength(14);
|
|
67
|
+
firstMarks.forEach(({ textContent }) =>
|
|
68
|
+
expect(textContent?.toLowerCase()).toBe(firstSearch)
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
highlightTerms(
|
|
72
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
73
|
+
secondSearch
|
|
74
|
+
);
|
|
75
|
+
const secondMarks = container.querySelectorAll("mark");
|
|
76
|
+
expect(secondMarks).toHaveLength(4);
|
|
77
|
+
secondMarks.forEach(({ textContent }) =>
|
|
78
|
+
expect(textContent?.toLowerCase()).toBe(secondSearch)
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it("cleans all marks if the search term is empty string", () => {
|
|
83
|
+
const firstSearch = "apex";
|
|
84
|
+
const secondSearch = "";
|
|
85
|
+
|
|
86
|
+
container.innerHTML = mockContent;
|
|
87
|
+
|
|
88
|
+
highlightTerms(
|
|
89
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
90
|
+
firstSearch
|
|
91
|
+
);
|
|
92
|
+
const firstMarks = container.querySelectorAll("mark");
|
|
93
|
+
expect(firstMarks).toHaveLength(14);
|
|
94
|
+
firstMarks.forEach(({ textContent }) =>
|
|
95
|
+
expect(textContent?.toLowerCase()).toBe(firstSearch)
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
highlightTerms(
|
|
99
|
+
container.querySelectorAll(allowedTags.join(",")),
|
|
100
|
+
secondSearch
|
|
101
|
+
);
|
|
102
|
+
const secondMarks = container.querySelectorAll("mark");
|
|
103
|
+
expect(secondMarks).toHaveLength(0);
|
|
104
|
+
secondMarks.forEach(({ textContent }) =>
|
|
105
|
+
expect(textContent?.toLowerCase()).toBe(secondSearch)
|
|
106
|
+
);
|
|
107
|
+
});
|
|
108
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const mockContent = `<div><a name='apex_dev_guide'><!-- --></a><h1 class='helpHead1'>Apex Developer Guide</h1><div class='shortdesc'>Salesforce has changed the way organizations do business by moving enterprise
|
|
2
|
+
applications that were traditionally client-server-based into the Lightning Platform, an
|
|
3
|
+
on-demand, multitenant Web environment. This environment enables you to run and customize
|
|
4
|
+
applications, such as Salesforce Automation and Service & Support, and build new custom
|
|
5
|
+
applications based on particular business needs. </div><div id='sfdc:seealso' class='related-links'>
|
|
6
|
+
<ul class='ullinks'>
|
|
7
|
+
<li class='link ulchildlink'>
|
|
8
|
+
<strong><a href='atlas.en-us.apexcode.meta/apexcode/apex_intro_get_started.htm'>Getting Started with Apex</a></strong><br>
|
|
9
|
+
Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Lightning Platform server, in conjunction with calls to the API.</li>
|
|
10
|
+
<li class='link ulchildlink'>
|
|
11
|
+
<strong><a href='atlas.en-us.apexcode.meta/apexcode/apex_writing.htm'>Writing Apex</a></strong><br>
|
|
12
|
+
Apex is like Java for Salesforce. It enables you to add and interact with data in the Lightning Platform persistence layer. It uses classes, data types, variables, and if-else statements. You can make it execute based on a condition, or have a block of code execute repeatedly.</li>
|
|
13
|
+
<li class='link ulchildlink'>
|
|
14
|
+
<strong><a href='atlas.en-us.apexcode.meta/apexcode/apex_running.htm'>Running Apex</a></strong><br>
|
|
15
|
+
You can access many features of the Salesforce user interface programmatically in Apex, and you can integrate with external SOAP and REST Web services. You can run Apex code using a variety of mechanisms. Apex code runs in atomic transactions. </li>
|
|
16
|
+
<li class='link ulchildlink'>
|
|
17
|
+
<strong><a href='atlas.en-us.apexcode.meta/apexcode/apex_debug_test_deploy.htm'>Debugging, Testing, and Deploying Apex</a></strong><br>
|
|
18
|
+
Develop your Apex code in a sandbox and debug it with the Developer Console and debug logs. Unit-test your code, then distribute it to customers using packages.</li>
|
|
19
|
+
<li class='link ulchildlink'>
|
|
20
|
+
<strong><a href='atlas.en-us.apexcode.meta/apexcode/apex_reference.htm'>Apex Language Reference</a></strong><br>
|
|
21
|
+
This Apex reference goes into detail about DML statements and the built-in Apex classes and interfaces.</li>
|
|
22
|
+
<li class='link ulchildlink'>
|
|
23
|
+
<strong><a href='atlas.en-us.apexcode.meta/apexcode/apex_appendices.htm'>Appendices</a></strong><br>
|
|
24
|
+
</li>
|
|
25
|
+
<li class='link ulchildlink'>
|
|
26
|
+
<strong><a href='atlas.en-us.apexcode.meta/apexcode/glossary_apex.htm'>Glossary</a></strong><br>
|
|
27
|
+
</li>
|
|
28
|
+
</ul>
|
|
29
|
+
</div><!--DRC 228.7--></div>`;
|
|
30
|
+
|
|
31
|
+
export const allowedTags = [
|
|
32
|
+
"p",
|
|
33
|
+
".p",
|
|
34
|
+
".shortdesc",
|
|
35
|
+
"h1",
|
|
36
|
+
"h2",
|
|
37
|
+
"h3",
|
|
38
|
+
"h4",
|
|
39
|
+
"h5",
|
|
40
|
+
"h6",
|
|
41
|
+
"li",
|
|
42
|
+
"dl",
|
|
43
|
+
"th",
|
|
44
|
+
"td"
|
|
45
|
+
];
|