@salesforcedevs/arch-components 1.20.17-alpha4 → 1.20.17-alpha6
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/package.json +1 -1
- package/src/{modules/common → common}/context/context.ts +21 -21
- package/src/{modules/common → common}/effectAdapter/__tests__/effectAdapter.test.ts +4 -4
- package/src/common/effectAdapter/effectAdapter.ts +18 -0
- package/src/{modules/common → common}/reflectedElement/__tests__/reflectedElement.test.ts +5 -5
- package/src/{modules/common → common}/reflectedElement/reflectedElement.ts +1 -1
- package/src/{modules/common → common}/slot/__tests__/slot.test.ts +12 -12
- package/src/{modules/common → common}/slot/slot.ts +3 -4
- package/src/{modules/sa → sa}/coverage/coverage.ts +46 -44
- package/src/{modules/sa → sa}/coverage/types.d.ts +12 -16
- package/src/{modules/sa → sa}/explorer/explorer.ts +53 -53
- package/src/{modules/sa → sa}/gallery/gallery.ts +30 -30
- package/src/{modules/sa → sa}/socialShare/socialShare.ts +3 -3
- package/src/modules/common/effectAdapter/effectAdapter.ts +0 -24
- package/src/modules/shared/a11y/a11y.ts +0 -25
- package/src/modules/shared/children/children.ts +0 -29
- package/src/modules/shared/color/color.ts +0 -52
- package/src/modules/shared/debounce/debounce.ts +0 -32
- package/src/modules/shared/dialog/dialog.ts +0 -154
- package/src/modules/shared/elements/__tests__/overflow.test.ts +0 -39
- package/src/modules/shared/elements/overflow.ts +0 -71
- package/src/modules/shared/fetch/fetch.ts +0 -52
- package/src/modules/shared/helpers/helpers.ts +0 -141
- package/src/modules/shared/i18n/i18n.ts +0 -74
- package/src/modules/shared/labels/__tests__/helpers.test.ts +0 -107
- package/src/modules/shared/labels/__tests__/pointHelpers.test.ts +0 -33
- package/src/modules/shared/labels/__tests__/timeHelpers.test.ts +0 -89
- package/src/modules/shared/labels/helpers.ts +0 -23
- package/src/modules/shared/labels/pointHelpers.ts +0 -47
- package/src/modules/shared/labels/timeHelpers.ts +0 -182
- package/src/modules/shared/labels/types.d.ts +0 -5
- package/src/modules/shared/logger/logger.ts +0 -33
- package/src/modules/shared/menu/menu.ts +0 -239
- package/src/modules/shared/overflow/__tests__/overflow.test.ts +0 -39
- package/src/modules/shared/overflow/overflow.ts +0 -71
- package/src/modules/shared/polling-request.ts +0 -97
- package/src/modules/shared/testutils.ts +0 -118
- package/src/modules/shared/track/track.ts +0 -23
- package/src/modules/shared/trailhead.ts +0 -123
- package/src/modules/shared/types.d.ts +0 -1
- package/src/modules/shared/useEffectAttr.ts +0 -16
- package/src/modules/shared/withState.ts +0 -21
- package/src/modules/tds/appLauncher/__fixtures__/index.ts +0 -34
- package/src/modules/tds/appLauncher/__tests__/appLauncher.test.ts +0 -119
- package/src/modules/tds/appLauncher/appLauncher.css +0 -65
- package/src/modules/tds/appLauncher/appLauncher.html +0 -38
- package/src/modules/tds/appLauncher/appLauncher.stories.ts +0 -39
- package/src/modules/tds/appLauncher/appLauncher.ts +0 -79
- package/src/modules/tds/appLauncher/types.ts +0 -8
- package/src/modules/tds/avatar/__tests__/avatar.test.ts +0 -11
- package/src/modules/tds/avatar/avatar.css +0 -77
- package/src/modules/tds/avatar/avatar.html +0 -36
- package/src/modules/tds/avatar/avatar.stories.ts +0 -64
- package/src/modules/tds/avatar/avatar.ts +0 -50
- package/src/modules/tds/badge/__tests__/badge.test.js +0 -11
- package/src/modules/tds/badge/badge.css +0 -22
- package/src/modules/tds/badge/badge.html +0 -5
- package/src/modules/tds/badge/badge.stories.ts +0 -10
- package/src/modules/tds/badge/badge.ts +0 -9
- package/src/modules/tds/button/__tests__/button.test.ts +0 -52
- package/src/modules/tds/button/button.css +0 -1
- package/src/modules/tds/button/button.html +0 -20
- package/src/modules/tds/button/button.stories.js +0 -54
- package/src/modules/tds/button/button.ts +0 -59
- package/src/modules/tds/buttonIcon/__tests__/buttonIcon.test.ts +0 -17
- package/src/modules/tds/buttonIcon/buttonIcon.css +0 -1
- package/src/modules/tds/buttonIcon/buttonIcon.html +0 -12
- package/src/modules/tds/buttonIcon/buttonIcon.stories.js +0 -38
- package/src/modules/tds/buttonIcon/buttonIcon.ts +0 -6
- package/src/modules/tds/buttonIconLink/buttonIconLink.css +0 -1
- package/src/modules/tds/buttonIconLink/buttonIconLink.html +0 -14
- package/src/modules/tds/buttonIconLink/buttonIconLink.stories.ts +0 -32
- package/src/modules/tds/buttonIconLink/buttonIconLink.ts +0 -9
- package/src/modules/tds/buttonLink/__tests__/buttonLink.test.ts +0 -17
- package/src/modules/tds/buttonLink/buttonLink.css +0 -1
- package/src/modules/tds/buttonLink/buttonLink.html +0 -19
- package/src/modules/tds/buttonLink/buttonLink.stories.js +0 -24
- package/src/modules/tds/buttonLink/buttonLink.ts +0 -8
- package/src/modules/tds/buttonStyles/buttonStyles.css +0 -232
- package/src/modules/tds/childSummary/__tests__/childSummary.test.js +0 -99
- package/src/modules/tds/childSummary/childSummary.css +0 -74
- package/src/modules/tds/childSummary/childSummary.html +0 -38
- package/src/modules/tds/childSummary/childSummary.stories.ts +0 -40
- package/src/modules/tds/childSummary/childSummary.ts +0 -63
- package/src/modules/tds/childSummary/types.d.ts +0 -10
- package/src/modules/tds/contentChildListItem/__tests__/contentChildListItem.test.ts +0 -32
- package/src/modules/tds/contentChildListItem/contentChildListItem.css +0 -1
- package/src/modules/tds/contentChildListItem/contentChildListItem.html +0 -10
- package/src/modules/tds/contentChildListItem/contentChildListItem.stories.ts +0 -46
- package/src/modules/tds/contentChildListItem/contentChildListItem.ts +0 -34
- package/src/modules/tds/contentIcon/contentIcon.css +0 -47
- package/src/modules/tds/contentIcon/contentIcon.html +0 -15
- package/src/modules/tds/contentIcon/contentIcon.stories.js +0 -110
- package/src/modules/tds/contentIcon/contentIcon.ts +0 -66
- package/src/modules/tds/contextAdapter/__tests__/contextAdapter.test.ts +0 -76
- package/src/modules/tds/contextAdapter/constants.ts +0 -1
- package/src/modules/tds/contextAdapter/contextAdapter.html +0 -1
- package/src/modules/tds/contextAdapter/contextAdapter.ts +0 -54
- package/src/modules/tds/dialogStyles/dialogStyles.css +0 -90
- package/src/modules/tds/footerLinks/__tests__/__snapshots__/footerLinks.test.ts.snap +0 -3
- package/src/modules/tds/footerLinks/__tests__/footerLinks.test.ts +0 -142
- package/src/modules/tds/footerLinks/footerLinks.css +0 -80
- package/src/modules/tds/footerLinks/footerLinks.html +0 -30
- package/src/modules/tds/footerLinks/footerLinks.ts +0 -48
- package/src/modules/tds/footerLinks/types.ts +0 -11
- package/src/modules/tds/footerMfe/footerMfe.html +0 -3
- package/src/modules/tds/footerMfe/footerMfe.ts +0 -19
- package/src/modules/tds/headerAvatar/__tests__/headerAvatar.test.ts +0 -43
- package/src/modules/tds/headerAvatar/headerAvatar.css +0 -45
- package/src/modules/tds/headerAvatar/headerAvatar.html +0 -25
- package/src/modules/tds/headerAvatar/headerAvatar.ts +0 -15
- package/src/modules/tds/headerHelpButton/__tests__/headerHelpButton.test.ts +0 -32
- package/src/modules/tds/headerHelpButton/headerHelpButton.css +0 -14
- package/src/modules/tds/headerHelpButton/headerHelpButton.html +0 -19
- package/src/modules/tds/headerHelpButton/headerHelpButton.ts +0 -12
- package/src/modules/tds/heading/__tests__/heading.test.ts +0 -50
- package/src/modules/tds/heading/heading.css +0 -1
- package/src/modules/tds/heading/heading.html +0 -9
- package/src/modules/tds/heading/heading.stories.ts +0 -36
- package/src/modules/tds/heading/heading.ts +0 -36
- package/src/modules/tds/icon/icon.css +0 -28
- package/src/modules/tds/icon/icon.html +0 -17
- package/src/modules/tds/icon/icon.stories.js +0 -18
- package/src/modules/tds/icon/icon.ts +0 -79
- package/src/modules/tds/input/__tests__/input.test.ts +0 -41
- package/src/modules/tds/input/input.css +0 -34
- package/src/modules/tds/input/input.html +0 -12
- package/src/modules/tds/input/input.stories.ts +0 -25
- package/src/modules/tds/input/input.ts +0 -41
- package/src/modules/tds/instrumentation/instrumentation.css +0 -0
- package/src/modules/tds/instrumentation/instrumentation.html +0 -1
- package/src/modules/tds/instrumentation/instrumentation.ts +0 -113
- package/src/modules/tds/pbCard/pbCard.css +0 -28
- package/src/modules/tds/pbCard/pbCard.html +0 -21
- package/src/modules/tds/pbCard/pbCard.ts +0 -18
- package/src/modules/tds/pill/__tests__/pill.test.ts +0 -56
- package/src/modules/tds/pill/pill.css +0 -70
- package/src/modules/tds/pill/pill.html +0 -17
- package/src/modules/tds/pill/pill.stories.ts +0 -41
- package/src/modules/tds/pill/pill.ts +0 -34
- package/src/modules/tds/progressBar/__tests__/progressBar.test.js +0 -11
- package/src/modules/tds/progressBar/progressBar.css +0 -42
- package/src/modules/tds/progressBar/progressBar.html +0 -14
- package/src/modules/tds/progressBar/progressBar.stories.ts +0 -24
- package/src/modules/tds/progressBar/progressBar.ts +0 -14
- package/src/modules/tds/radio/__tests__/radio.test.ts +0 -29
- package/src/modules/tds/radio/radio.css +0 -89
- package/src/modules/tds/radio/radio.html +0 -17
- package/src/modules/tds/radio/radio.stories.ts +0 -31
- package/src/modules/tds/radio/radio.ts +0 -32
- package/src/modules/tds/reset/reset.css +0 -39
- package/src/modules/tds/search/__fixtures__/index.ts +0 -32
- package/src/modules/tds/search/__tests__/search.test.ts +0 -235
- package/src/modules/tds/search/lib/__tests__/__snapshots__/listbox.test.ts.snap +0 -115
- package/src/modules/tds/search/lib/__tests__/listbox.test.ts +0 -192
- package/src/modules/tds/search/lib/listbox.ts +0 -209
- package/src/modules/tds/search/search.css +0 -122
- package/src/modules/tds/search/search.html +0 -21
- package/src/modules/tds/search/search.stories.ts +0 -20
- package/src/modules/tds/search/search.ts +0 -107
- package/src/modules/tds/search/types.d.ts +0 -22
- package/src/modules/tds/searchList/searchList.css +0 -120
- package/src/modules/tds/searchList/searchList.html +0 -43
- package/src/modules/tds/searchList/searchList.stories.ts +0 -10
- package/src/modules/tds/searchList/searchList.ts +0 -53
- package/src/modules/tds/select/__tests__/select.test.ts +0 -150
- package/src/modules/tds/select/select.css +0 -42
- package/src/modules/tds/select/select.html +0 -24
- package/src/modules/tds/select/select.stories.ts +0 -59
- package/src/modules/tds/select/select.ts +0 -60
- package/src/modules/tds/spinner/__tests__/spinner.test.ts +0 -11
- package/src/modules/tds/spinner/spinner.css +0 -194
- package/src/modules/tds/spinner/spinner.html +0 -9
- package/src/modules/tds/spinner/spinner.stories.ts +0 -20
- package/src/modules/tds/spinner/spinner.ts +0 -15
- package/src/modules/tds/styles/styles.css +0 -24
- package/src/modules/tds/summary/__tests__/summary.test.ts +0 -135
- package/src/modules/tds/summary/summary.css +0 -135
- package/src/modules/tds/summary/summary.html +0 -69
- package/src/modules/tds/summary/summary.stories.js +0 -148
- package/src/modules/tds/summary/summary.ts +0 -95
- package/src/modules/tds/tab/__tests__/tab.test.ts +0 -25
- package/src/modules/tds/tab/tab.css +0 -3
- package/src/modules/tds/tab/tab.html +0 -5
- package/src/modules/tds/tab/tab.ts +0 -46
- package/src/modules/tds/tabset/__tests__/tabset.test.ts +0 -108
- package/src/modules/tds/tabset/tabset.css +0 -112
- package/src/modules/tds/tabset/tabset.html +0 -63
- package/src/modules/tds/tabset/tabset.stories.ts +0 -32
- package/src/modules/tds/tabset/tabset.ts +0 -232
- package/src/modules/tds/themeProvider/themeProvider.css +0 -502
- package/src/modules/tds/themeProvider/themeProvider.html +0 -3
- package/src/modules/tds/themeProvider/themeProvider.ts +0 -37
- package/src/modules/tds/tile/tile.css +0 -23
- package/src/modules/tds/tile/tile.html +0 -5
- package/src/modules/tds/tile/tile.stories.js +0 -14
- package/src/modules/tds/tile/tile.ts +0 -12
- package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.html +0 -1
- package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.ts +0 -47
- package/src/modules/th/contextAdapter/__tests__/contextAdapter.test.ts +0 -104
- package/src/modules/th/contextAdapter/contextAdapter.html +0 -1
- package/src/modules/th/contextAdapter/contextAdapter.ts +0 -49
- package/src/modules/th/favoriteButton/__tests__/favoriteButton.test.ts +0 -56
- package/src/modules/th/favoriteButton/favoriteButton.css +0 -3
- package/src/modules/th/favoriteButton/favoriteButton.html +0 -15
- package/src/modules/th/favoriteButton/favoriteButton.stories.js +0 -30
- package/src/modules/th/favoriteButton/favoriteButton.ts +0 -84
- package/src/modules/th/favoriteButton/mocks/index.ts +0 -12
- package/src/modules/th/search/__fixtures__/index.ts +0 -14
- package/src/modules/th/search/__tests__/search.test.ts +0 -233
- package/src/modules/th/search/constants.ts +0 -2
- package/src/modules/th/search/mocks/index.ts +0 -30
- package/src/modules/th/search/mocks/responses.ts +0 -54
- package/src/modules/th/search/search.css +0 -4
- package/src/modules/th/search/search.html +0 -12
- package/src/modules/th/search/search.ts +0 -172
- package/src/modules/th/search/types.d.ts +0 -29
- package/src/modules/tm/card/__tests__/card.test.ts +0 -65
- package/src/modules/tm/card/card.css +0 -131
- package/src/modules/tm/card/card.html +0 -81
- package/src/modules/tm/card/card.ts +0 -269
- package/src/modules/tm/cardBase/cardBase.css +0 -11
- package/src/modules/tm/cardGridA/cardGridA.css +0 -11
- package/src/modules/tm/cardGridA/cardGridA.html +0 -21
- package/src/modules/tm/cardGridA/cardGridA.stories.js +0 -107
- package/src/modules/tm/cardGridA/cardGridA.ts +0 -24
- package/src/modules/tm/cardGridB/cardGridB.css +0 -88
- package/src/modules/tm/cardGridB/cardGridB.html +0 -20
- package/src/modules/tm/cardGridB/cardGridB.stories.js +0 -58
- package/src/modules/tm/cardGridB/cardGridB.ts +0 -19
- package/src/modules/tm/cardGridC/cardGridC.css +0 -24
- package/src/modules/tm/cardGridC/cardGridC.html +0 -22
- package/src/modules/tm/cardGridC/cardGridC.stories.js +0 -42
- package/src/modules/tm/cardGridC/cardGridC.ts +0 -11
- package/src/modules/tm/cardGridD/cardGridD.css +0 -17
- package/src/modules/tm/cardGridD/cardGridD.html +0 -20
- package/src/modules/tm/cardGridD/cardGridD.stories.js +0 -34
- package/src/modules/tm/cardGridD/cardGridD.ts +0 -7
- package/src/modules/tm/cardNew/cardNew.css +0 -31
- package/src/modules/tm/cardNew/cardNew.html +0 -29
- package/src/modules/tm/cardNew/cardNew.ts +0 -66
- package/src/modules/tm/content/__fixtures__/index.ts +0 -884
- package/src/modules/tm/content/__tests__/content.test.ts +0 -95
- package/src/modules/tm/content/content.css +0 -641
- package/src/modules/tm/content/content.html +0 -53
- package/src/modules/tm/content/content.stories.js +0 -14
- package/src/modules/tm/content/content.ts +0 -171
- package/src/modules/tm/endCapA/__tests__/endCapA.test.ts +0 -52
- package/src/modules/tm/endCapA/endCapA.css +0 -64
- package/src/modules/tm/endCapA/endCapA.html +0 -21
- package/src/modules/tm/endCapA/endCapA.stories.js +0 -37
- package/src/modules/tm/endCapA/endCapA.ts +0 -23
- package/src/modules/tm/eventsA/eventsA.css +0 -107
- package/src/modules/tm/eventsA/eventsA.html +0 -26
- package/src/modules/tm/eventsA/eventsA.stories.js +0 -51
- package/src/modules/tm/eventsA/eventsA.ts +0 -48
- package/src/modules/tm/faqA/faqA.css +0 -87
- package/src/modules/tm/faqA/faqA.html +0 -27
- package/src/modules/tm/faqA/faqA.stories.js +0 -25
- package/src/modules/tm/faqA/faqA.ts +0 -40
- package/src/modules/tm/featureGridA/__tests__/featureGridA.test.ts +0 -116
- package/src/modules/tm/featureGridA/featureGridA.css +0 -95
- package/src/modules/tm/featureGridA/featureGridA.html +0 -34
- package/src/modules/tm/featureGridA/featureGridA.stories.js +0 -45
- package/src/modules/tm/featureGridA/featureGridA.ts +0 -59
- package/src/modules/tm/footnote/footnote.css +0 -28
- package/src/modules/tm/footnote/footnote.html +0 -3
- package/src/modules/tm/footnote/footnote.stories.js +0 -29
- package/src/modules/tm/footnote/footnote.ts +0 -35
- package/src/modules/tm/heroA/__tests__/heroA.test.ts +0 -51
- package/src/modules/tm/heroA/heroA.css +0 -116
- package/src/modules/tm/heroA/heroA.html +0 -27
- package/src/modules/tm/heroA/heroA.stories.js +0 -49
- package/src/modules/tm/heroA/heroA.ts +0 -56
- package/src/modules/tm/heroB/heroB.css +0 -78
- package/src/modules/tm/heroB/heroB.html +0 -26
- package/src/modules/tm/heroB/heroB.stories.js +0 -44
- package/src/modules/tm/heroB/heroB.ts +0 -26
- package/src/modules/tm/page/__tests__/page.test.ts +0 -35
- package/src/modules/tm/page/page.css +0 -3
- package/src/modules/tm/page/page.html +0 -3
- package/src/modules/tm/page/page.stories.js +0 -10
- package/src/modules/tm/page/page.ts +0 -3
- package/src/modules/tm/pageHeaderA/pageHeaderA.css +0 -82
- package/src/modules/tm/pageHeaderA/pageHeaderA.html +0 -24
- package/src/modules/tm/pageHeaderA/pageHeaderA.stories.js +0 -18
- package/src/modules/tm/pageHeaderA/pageHeaderA.ts +0 -51
- package/src/modules/tm/pageNavigationA/pageNavigationA.css +0 -41
- package/src/modules/tm/pageNavigationA/pageNavigationA.html +0 -9
- package/src/modules/tm/pageNavigationA/pageNavigationA.stories.js +0 -34
- package/src/modules/tm/pageNavigationA/pageNavigationA.ts +0 -18
- package/src/modules/tm/promoA/__tests__/promoA.test.ts +0 -89
- package/src/modules/tm/promoA/promoA.css +0 -95
- package/src/modules/tm/promoA/promoA.html +0 -22
- package/src/modules/tm/promoA/promoA.stories.js +0 -38
- package/src/modules/tm/promoA/promoA.ts +0 -62
- package/src/modules/tm/sectionA/sectionA.css +0 -64
- package/src/modules/tm/sectionA/sectionA.html +0 -21
- package/src/modules/tm/sectionA/sectionA.stories.js +0 -18
- package/src/modules/tm/sectionA/sectionA.ts +0 -27
- package/src/modules/tm/sectionSpacer/sectionSpacer.css +0 -4
- package/src/modules/tm/sectionSpacer/sectionSpacer.html +0 -1
- package/src/modules/tm/sectionSpacer/sectionSpacer.ts +0 -3
- package/src/modules/tm/skillsCardA/skillsCardA.css +0 -73
- package/src/modules/tm/skillsCardA/skillsCardA.html +0 -37
- package/src/modules/tm/skillsCardA/skillsCardA.ts +0 -38
- package/src/modules/tm/skillsGridA/skillsGridA.css +0 -12
- package/src/modules/tm/skillsGridA/skillsGridA.html +0 -5
- package/src/modules/tm/skillsGridA/skillsGridA.stories.ts +0 -65
- package/src/modules/tm/skillsGridA/skillsGridA.ts +0 -3
- package/src/modules/tm/statsA/statsA.css +0 -26
- package/src/modules/tm/statsA/statsA.html +0 -10
- package/src/modules/tm/statsA/statsA.stories.js +0 -29
- package/src/modules/tm/statsA/statsA.ts +0 -20
- package/src/modules/tm/textItem/textItem.css +0 -53
- package/src/modules/tm/textItem/textItem.html +0 -18
- package/src/modules/tm/textItem/textItem.ts +0 -32
- package/src/modules/tm/textItemGridA/textItemGridA.css +0 -11
- package/src/modules/tm/textItemGridA/textItemGridA.html +0 -15
- package/src/modules/tm/textItemGridA/textItemGridA.stories.js +0 -67
- package/src/modules/tm/textItemGridA/textItemGridA.ts +0 -20
- package/src/modules/tm/threeCardGrid/threeCardGrid.css +0 -6
- package/src/modules/tm/threeCardGrid/threeCardGrid.html +0 -5
- package/src/modules/tm/threeCardGrid/threeCardGrid.ts +0 -3
- package/src/modules/tm/trailblazersA/trailblazersA.css +0 -70
- package/src/modules/tm/trailblazersA/trailblazersA.html +0 -42
- package/src/modules/tm/trailblazersA/trailblazersA.stories.js +0 -52
- package/src/modules/tm/trailblazersA/trailblazersA.ts +0 -43
- package/src/modules/tm/utils/utils.ts +0 -18
- package/src/modules/tm/youtube/youtube.css +0 -7
- package/src/modules/tm/youtube/youtube.html +0 -10
- package/src/modules/tm/youtube/youtube.stories.js +0 -15
- package/src/modules/tm/youtube/youtube.ts +0 -27
- package/src/modules/ui/focusTrap/focusTrap.html +0 -5
- package/src/modules/ui/focusTrap/focusTrap.ts +0 -104
- package/src/modules/ui/focusVisible/__tests__/focusVisible.test.ts +0 -95
- package/src/modules/ui/focusVisible/focusVisible.html +0 -3
- package/src/modules/ui/focusVisible/focusVisible.ts +0 -46
- /package/src/{modules/common → common}/context/context.html +0 -0
- /package/src/{modules/common → common}/effectAdapter/effectAdapter.html +0 -0
- /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/select/select.html +0 -0
- /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/select/select.ts +0 -0
- /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +0 -0
- /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +0 -0
- /package/src/{modules/sa → sa}/coverage/coverage.css +0 -0
- /package/src/{modules/sa → sa}/coverage/coverage.html +0 -0
- /package/src/{modules/sa → sa}/expandableSection/expandableSection.css +0 -0
- /package/src/{modules/sa → sa}/expandableSection/expandableSection.html +0 -0
- /package/src/{modules/sa → sa}/expandableSection/expandableSection.stories.ts +0 -0
- /package/src/{modules/sa → sa}/expandableSection/expandableSection.ts +0 -0
- /package/src/{modules/sa → sa}/explorer/explorer.css +0 -0
- /package/src/{modules/sa → sa}/explorer/explorer.html +0 -0
- /package/src/{modules/sa → sa}/explorer/types.d.ts +0 -0
- /package/src/{modules/sa → sa}/gallery/gallery.css +0 -0
- /package/src/{modules/sa → sa}/gallery/gallery.html +0 -0
- /package/src/{modules/sa → sa}/gallery/types.d.ts +0 -0
- /package/src/{modules/sa → sa}/socialShare/socialShare.css +0 -0
- /package/src/{modules/sa → sa}/socialShare/socialShare.html +0 -0
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="read">
|
|
3
|
-
<svg
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
width="18"
|
|
6
|
-
height="18"
|
|
7
|
-
viewBox="0 0 52 52"
|
|
8
|
-
>
|
|
9
|
-
<g fill="#3e3e3c">
|
|
10
|
-
<path
|
|
11
|
-
d="m26 2c-13.2 0-24 10.8-24 24s10.8 24 24 24 24-10.8 24-24-10.8-24-24-24z m0 42c-9.9 0-18-8.1-18-18s8.1-18 18-18 18 8.1 18 18-8.1 18-18 18z m3.4-17.8c-0.3-0.3-0.4-0.7-0.4-1.1v-9.6c0-0.8-0.7-1.5-1.5-1.5h-3c-0.8 0-1.5 0.7-1.5 1.5v12.1c0 0.4 0.2 0.8 0.4 1.1l7.4 7.4c0.6 0.6 1.5 0.6 2.1 0l2.1-2.1c0.6-0.6 0.6-1.5 0-2.1l-5.6-5.7z"
|
|
12
|
-
></path>
|
|
13
|
-
</g>
|
|
14
|
-
</svg>
|
|
15
|
-
{readingTime} minute read
|
|
16
|
-
</div>
|
|
17
|
-
<div class="read">
|
|
18
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-calendar3" viewBox="0 0 16 16">
|
|
19
|
-
<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"></path>
|
|
20
|
-
<path d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"></path>
|
|
21
|
-
</svg>
|
|
22
|
-
Last updated {lastUpdated}
|
|
23
|
-
</div>
|
|
24
|
-
<div class={rootClassName}>
|
|
25
|
-
<main lwc:dom="manual" onclick={onContentClick}></main>
|
|
26
|
-
<aside if:true={showHeadingsNav}>
|
|
27
|
-
<template iterator:heading={headings}>
|
|
28
|
-
<a
|
|
29
|
-
href={heading.value.href}
|
|
30
|
-
key={heading.value.id}
|
|
31
|
-
onclick={onHeadingClick}
|
|
32
|
-
style={heading.value.style}
|
|
33
|
-
>{heading.value.label}</a
|
|
34
|
-
>
|
|
35
|
-
</template>
|
|
36
|
-
</aside>
|
|
37
|
-
<div class="scroll" if:true={showScroll} onclick={onScrollClick}>
|
|
38
|
-
<svg
|
|
39
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
40
|
-
x="0px"
|
|
41
|
-
y="0px"
|
|
42
|
-
viewBox="0 0 1000 1000"
|
|
43
|
-
enable-background="new 0 0 1000 1000"
|
|
44
|
-
>
|
|
45
|
-
<g>
|
|
46
|
-
<path
|
|
47
|
-
d="M990,699.9c0,8.1,0,16.3-8.1,24.4c-16.3,16.3-40.7,16.3-56.9,0L502,350.2L79.1,732.4c-16.3,16.3-40.7,16.3-56.9,0c-16.3-16.3-16.3-40.7,0-56.9l447.3-406.6c24.4-16.3,40.7-16.3,56.9-8.1l447.3,406.6C981.9,675.5,990,691.8,990,699.9z"
|
|
48
|
-
></path>
|
|
49
|
-
</g>
|
|
50
|
-
</svg>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html';
|
|
2
|
-
|
|
3
|
-
import { ContentExamples } from './__fixtures__';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'tm/tm-content',
|
|
7
|
-
parameters: {
|
|
8
|
-
modules: ['/modules/tm-content.js']
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const Base = () => html`
|
|
13
|
-
<tm-content> ${ContentExamples()} </tm-content>
|
|
14
|
-
`;
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { isInteger } from 'lodash';
|
|
2
|
-
import { api, LightningElement, track } from 'lwc';
|
|
3
|
-
import { track as analyticsTrack } from 'tds/instrumentation';
|
|
4
|
-
import { createImageUrl, sendInteractionEvent, InteractionEventTypes } from 'shared/helpers';
|
|
5
|
-
|
|
6
|
-
const ARCHITECT_BASE_REGEX = /^https?:\/\/([\w\-]*\.)?architect/; // matches roughly any subdomain of architect
|
|
7
|
-
|
|
8
|
-
export default class extends LightningElement {
|
|
9
|
-
private observer!: MutationObserver;
|
|
10
|
-
private didSetContent = false;
|
|
11
|
-
|
|
12
|
-
@api socialTitle: string | null = null;
|
|
13
|
-
@api lastUpdated: string | null = null;
|
|
14
|
-
@api readingTime: string | null = null;
|
|
15
|
-
@api navHidden: string | null = null;
|
|
16
|
-
@api imageHash: string | null = null;
|
|
17
|
-
|
|
18
|
-
@track private headings: {
|
|
19
|
-
href: string;
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
}[] = [];
|
|
23
|
-
|
|
24
|
-
private get showHeadingsNav() {
|
|
25
|
-
return this.navHidden === null && this.headings.length > 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
private get rootClassName() {
|
|
29
|
-
return 'root';
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
connectedCallback() {
|
|
33
|
-
this.observer = new MutationObserver(() => {
|
|
34
|
-
this.setContent();
|
|
35
|
-
});
|
|
36
|
-
this.observer.observe(this.template.host, {
|
|
37
|
-
characterData: true,
|
|
38
|
-
childList: true,
|
|
39
|
-
subtree: true
|
|
40
|
-
});
|
|
41
|
-
this.setContent();
|
|
42
|
-
const that = this;
|
|
43
|
-
window.addEventListener('hashchange', function locationHashChanged() {
|
|
44
|
-
const heading: HTMLElement | null = that.template.querySelector(`[id="${window.location.hash.substring(1)}"]`);
|
|
45
|
-
if (heading) {
|
|
46
|
-
heading.style.scrollMarginTop = `var(--dx-g-global-header-height)`; // required adjustment for global nav
|
|
47
|
-
heading.scrollIntoView({
|
|
48
|
-
behavior: 'auto' as ScrollBehavior, // we can't use smooth here anymore, because the global nav MFE resizes itself and messes up scrolling
|
|
49
|
-
block: "start",
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
disconnectedCallback() {
|
|
56
|
-
this.observer.disconnect();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
renderedCallback() {
|
|
60
|
-
if (!this.didSetContent) {
|
|
61
|
-
this.didSetContent = true;
|
|
62
|
-
this.setContent();
|
|
63
|
-
if (window.location.hash) {this.scrollToHash(window.location.hash);}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
private onHeadingClick(e: MouseEvent) {
|
|
68
|
-
const anchor = e.currentTarget as HTMLAnchorElement;
|
|
69
|
-
this.scrollToHash(anchor.hash);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
private onContentClick(e: MouseEvent) {
|
|
73
|
-
const element = e.target as HTMLElement;
|
|
74
|
-
const targetIsImage =
|
|
75
|
-
element instanceof HTMLImageElement &&
|
|
76
|
-
element.parentElement instanceof HTMLAnchorElement;
|
|
77
|
-
|
|
78
|
-
if (element instanceof HTMLAnchorElement || targetIsImage) {
|
|
79
|
-
const anchorEl = targetIsImage ? element.parentElement : element;
|
|
80
|
-
const href = (anchorEl as HTMLAnchorElement)?.href || (element as HTMLImageElement)?.src;
|
|
81
|
-
const url = new URL(
|
|
82
|
-
href || '',
|
|
83
|
-
window.location.protocol + '//' + window.location.host
|
|
84
|
-
);
|
|
85
|
-
const filename = url.pathname.substr(
|
|
86
|
-
url.pathname.lastIndexOf('/') + 1
|
|
87
|
-
);
|
|
88
|
-
|
|
89
|
-
if (anchorEl.hasAttribute('download') || filename.includes('.')) {
|
|
90
|
-
const regexImg = new RegExp(/[^\s]+(.*?).(jpg|jpeg|png|gif|JPG|JPEG|PNG|GIF|webp)$/);
|
|
91
|
-
if (regexImg.test(filename)) {
|
|
92
|
-
sendInteractionEvent('Image Click', InteractionEventTypes.IMAGE_CLICK, e, element)
|
|
93
|
-
} else {
|
|
94
|
-
sendInteractionEvent('File Download', InteractionEventTypes.FILE_DOWNLOAD, e, anchorEl)
|
|
95
|
-
}
|
|
96
|
-
} else if ((anchorEl as HTMLAnchorElement).target) {
|
|
97
|
-
sendInteractionEvent('Link Click', InteractionEventTypes.CLICK, e, anchorEl);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private scrollToHash(hash: string) {
|
|
103
|
-
const heading: HTMLElement | null = this.template.querySelector(`[id="${hash.split('?')[0].substring(1)}"]`);
|
|
104
|
-
if (heading) {
|
|
105
|
-
heading.style.scrollMarginTop = `var(--dx-g-global-header-height)`; // required adjustment for global nav
|
|
106
|
-
heading.scrollIntoView({
|
|
107
|
-
behavior: "auto" as ScrollBehavior,
|
|
108
|
-
block: "start",
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private setContent() {
|
|
114
|
-
const main = this.template.querySelector('main');
|
|
115
|
-
if (main) {
|
|
116
|
-
main.innerHTML = this.template.host.innerHTML.replace(
|
|
117
|
-
/(<table>[\s\S]+?<\/table>)/g,
|
|
118
|
-
`<div class="table">$1</div>`
|
|
119
|
-
);
|
|
120
|
-
this.headings = Array.from(main.querySelectorAll('h2,h3')).map(
|
|
121
|
-
(n) => {
|
|
122
|
-
const label = (n as HTMLElement).innerText.trim();
|
|
123
|
-
const id = label.replace(/[^a-zA-Z0-9]/g, '_');
|
|
124
|
-
const href = `#${id}`;
|
|
125
|
-
const style =
|
|
126
|
-
n.tagName === 'H3' ? 'padding-left: 1.25rem' : '';
|
|
127
|
-
// Side effects in map ftw
|
|
128
|
-
n.id = id;
|
|
129
|
-
return { href, id, label, style };
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
Array.from(main.querySelectorAll('a')).forEach((el) => {
|
|
133
|
-
if (
|
|
134
|
-
!el.href.startsWith('/') &&
|
|
135
|
-
!ARCHITECT_BASE_REGEX.test(el.href) &&
|
|
136
|
-
!el.href.startsWith('about:blank#') &&
|
|
137
|
-
!el.href.startsWith('http://localhost') &&
|
|
138
|
-
!el.href.startsWith('https://sfdc.co') &&
|
|
139
|
-
!el.href.startsWith('https://sf-archs.cdn.salesforce-experience.com') &&
|
|
140
|
-
!el.href.includes('herokuapp.com')
|
|
141
|
-
) {
|
|
142
|
-
const doc = el.ownerDocument;
|
|
143
|
-
const img = doc.createElement('img');
|
|
144
|
-
img.src = '/assets/images/new_window.svg';
|
|
145
|
-
img.setAttribute('style', 'display: inline;height: 1.2rem;margin:0 0 0 5px;');
|
|
146
|
-
img.alt = 'Open link in new window';
|
|
147
|
-
el.appendChild(img);
|
|
148
|
-
el.target = '_blank';
|
|
149
|
-
el.rel = 'noopener';
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
Array.from(main.querySelectorAll('img')).forEach((el) => {
|
|
153
|
-
if (el.src) {
|
|
154
|
-
el.src = createImageUrl(el.src, this.imageHash || '');
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
private get showScroll() {
|
|
161
|
-
return parseInt(this.readingTime || '0') > 4;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
private onScrollClick() {
|
|
165
|
-
window.scroll({
|
|
166
|
-
top: 0,
|
|
167
|
-
left: 0,
|
|
168
|
-
behavior: 'smooth'
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody, $ } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import EndCapA from '../endCapA';
|
|
4
|
-
|
|
5
|
-
customElements.define('tm-end-cap-a', EndCapA.CustomElementConstructor);
|
|
6
|
-
|
|
7
|
-
describe('tm-end-cap-a', () => {
|
|
8
|
-
it('works', async () => {
|
|
9
|
-
const element = renderIntoBody(
|
|
10
|
-
html`
|
|
11
|
-
<tm-end-cap-a
|
|
12
|
-
cta-label="Click"
|
|
13
|
-
cta-href="/lol"
|
|
14
|
-
title="hello"
|
|
15
|
-
></tm-end-cap-a>
|
|
16
|
-
`
|
|
17
|
-
);
|
|
18
|
-
expect($('tds-button-link', element)[0].textContent).toEqual('Click');
|
|
19
|
-
expect($('h2', element)[0].textContent).toEqual('hello');
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('dispatched a trailhead track event', async () => {
|
|
23
|
-
const handler = jest.fn();
|
|
24
|
-
|
|
25
|
-
const element = renderIntoBody(
|
|
26
|
-
html`
|
|
27
|
-
<tm-end-cap-a
|
|
28
|
-
cta-label="Click"
|
|
29
|
-
cta-href="/lol"
|
|
30
|
-
title="hello"
|
|
31
|
-
></tm-end-cap-a>
|
|
32
|
-
`
|
|
33
|
-
);
|
|
34
|
-
document.addEventListener('trailhead_track', handler);
|
|
35
|
-
|
|
36
|
-
$('tds-button-link', element)[0].dispatchEvent(
|
|
37
|
-
new MouseEvent('click', { bubbles: true, composed: true })
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
const expectedPayload = {
|
|
41
|
-
eventName: 'cta_clicked',
|
|
42
|
-
payload: {
|
|
43
|
-
label: 'Click',
|
|
44
|
-
pageLocation: 'TM-END-CAP-A',
|
|
45
|
-
ctaType: 'primary'
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
expect(handler).toHaveBeenCalled();
|
|
50
|
-
expect(handler.mock.calls[0][0].detail).toEqual(expectedPayload);
|
|
51
|
-
});
|
|
52
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
2
|
-
|
|
3
|
-
a {
|
|
4
|
-
text-decoration: none;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
img {
|
|
8
|
-
display: block;
|
|
9
|
-
max-width: 100%;
|
|
10
|
-
max-height: 100px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.end-cap {
|
|
14
|
-
padding: var(--tds-spacing-20) var(--tds-spacing-6);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.end-cap--white {
|
|
18
|
-
background-color: var(--tds-color-white);
|
|
19
|
-
color: var(--tds-color-black);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.end-cap--dark {
|
|
23
|
-
background-color: var(--tds-color-theme-dark);
|
|
24
|
-
color: var(--tds-color-white);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.end-cap--light {
|
|
28
|
-
background-color: var(--tds-color-theme-light);
|
|
29
|
-
color: var(--tds-color-black);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.content {
|
|
33
|
-
align-items: center;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
padding: var(--tds-spacing-6) 0;
|
|
37
|
-
text-align: center;
|
|
38
|
-
margin: auto;
|
|
39
|
-
max-width: 640px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
h2 {
|
|
43
|
-
white-space: pre-line;
|
|
44
|
-
font-family: Neutraface;
|
|
45
|
-
font-size: var(--tds-font-size-3xl);
|
|
46
|
-
line-height: 1.125;
|
|
47
|
-
margin-top: var(--tds-spacing-4);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
p {
|
|
51
|
-
font-size: var(--tds-font-size-xl);
|
|
52
|
-
margin-top: var(--tds-spacing-2);
|
|
53
|
-
line-height: 1.5;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.cta {
|
|
57
|
-
margin-top: var(--tds-spacing-5);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@media screen and (max-width: 1280px) {
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media screen and (max-width: 768px) {
|
|
64
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class={endCapClassName}>
|
|
3
|
-
<div class="content">
|
|
4
|
-
<img alt="" if:true={imgSrc} src={imgSrc} />
|
|
5
|
-
<h2>{title}</h2>
|
|
6
|
-
<p if:true={subtitle}>{subtitle}</p>
|
|
7
|
-
<tds-button-link
|
|
8
|
-
class="cta"
|
|
9
|
-
size="large"
|
|
10
|
-
if:true={ctaHref}
|
|
11
|
-
href={ctaHref}
|
|
12
|
-
target={ctaTarget}
|
|
13
|
-
variant="neutral"
|
|
14
|
-
onclick={handleCtaClick}
|
|
15
|
-
loading="lazy"
|
|
16
|
-
decoding="async"
|
|
17
|
-
>{ctaLabel}
|
|
18
|
-
</tds-button-link>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'tm/tm-end-cap-a',
|
|
5
|
-
parameters: {
|
|
6
|
-
modules: ['/modules/tm-end-cap-a.js']
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export const Base = () => html`
|
|
11
|
-
<tm-end-cap-a
|
|
12
|
-
cta-href="/"
|
|
13
|
-
cta-label="Get Started"
|
|
14
|
-
subtitle="Connect to your customers in a whole new way with the world's #1 CRM."
|
|
15
|
-
title="Begin the Architect Journey Trailmix"
|
|
16
|
-
></tm-end-cap-a>
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
|
-
export const Light = () => html`
|
|
20
|
-
<tm-end-cap-a
|
|
21
|
-
background="light"
|
|
22
|
-
cta-href="/"
|
|
23
|
-
cta-label="Get Started"
|
|
24
|
-
subtitle="Connect to your customers in a whole new way with the world's #1 CRM."
|
|
25
|
-
title="Begin the Architect Journey Trailmix"
|
|
26
|
-
></tm-end-cap-a>
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
export const Dark = () => html`
|
|
30
|
-
<tm-end-cap-a
|
|
31
|
-
background="dark"
|
|
32
|
-
cta-href="/"
|
|
33
|
-
cta-label="Get Started"
|
|
34
|
-
subtitle="Connect to your customers in a whole new way with the world's #1 CRM."
|
|
35
|
-
title="Begin the Architect Journey Trailmix"
|
|
36
|
-
></tm-end-cap-a>
|
|
37
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { api, LightningElement } from 'lwc';
|
|
2
|
-
import { track } from 'shared/track';
|
|
3
|
-
|
|
4
|
-
export default class extends LightningElement {
|
|
5
|
-
@api background: 'white' | 'dark' | 'light' = 'white';
|
|
6
|
-
@api ctaHref: string | undefined;
|
|
7
|
-
@api ctaLabel: string | undefined;
|
|
8
|
-
@api ctaTarget: string | null = null;
|
|
9
|
-
@api imgSrc: string | undefined;
|
|
10
|
-
@api subtitle: string | undefined;
|
|
11
|
-
@api title: string = '';
|
|
12
|
-
|
|
13
|
-
private get endCapClassName() {
|
|
14
|
-
return `end-cap end-cap--${this.background}`;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
private handleCtaClick() {
|
|
18
|
-
track(this.template.host, 'cta_clicked', {
|
|
19
|
-
ctaType: 'primary',
|
|
20
|
-
label: this.ctaLabel
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
2
|
-
@import 'tm/cardBase';
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
color: var(--tds-color-black);
|
|
6
|
-
margin: auto;
|
|
7
|
-
max-width: 960px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
a {
|
|
11
|
-
color: var(--tds-color-brand);
|
|
12
|
-
font-weight: bold;
|
|
13
|
-
text-decoration: none;
|
|
14
|
-
}
|
|
15
|
-
a:hover {
|
|
16
|
-
text-decoration: underline;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
ul {
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
|
|
22
|
-
grid-column-gap: var(--tds-spacing-6);
|
|
23
|
-
grid-row-gap: var(--tds-spacing-6);
|
|
24
|
-
justify-content: center;
|
|
25
|
-
margin: 0;
|
|
26
|
-
max-width: 1280px;
|
|
27
|
-
padding: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.card {
|
|
31
|
-
display: flex;
|
|
32
|
-
padding: var(--tds-spacing-6);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.information {
|
|
36
|
-
margin-left: var(--tds-spacing-4);
|
|
37
|
-
display: flex;
|
|
38
|
-
justify-content: space-between;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.pretitle {
|
|
43
|
-
color: var(--tds-color-meteorite);
|
|
44
|
-
font-size: var(--tds-font-size-sm);
|
|
45
|
-
padding-bottom: var(--tds-spacing-1);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.calendar {
|
|
49
|
-
border-radius: var(--tds-spacing-2);
|
|
50
|
-
box-shadow: var(--tds-shadow-sm);
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
min-width: 80px;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.calendar__head {
|
|
58
|
-
background: #de4949;
|
|
59
|
-
border: 2px solid #c73434;
|
|
60
|
-
border-radius: var(--tds-radius-lg) var(--tds-radius-lg) 0 0;
|
|
61
|
-
color: white;
|
|
62
|
-
font-weight: bold;
|
|
63
|
-
padding: var(--tds-spacing-1);
|
|
64
|
-
text-align: center;
|
|
65
|
-
font-size: var(--tds-font-size-sm);
|
|
66
|
-
text-transform: uppercase;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.calendar__body {
|
|
70
|
-
align-items: center;
|
|
71
|
-
border-radius: 0 0 var(--tds-radius-lg) var(--tds-radius-lg);
|
|
72
|
-
display: flex;
|
|
73
|
-
font-family: Neutraface;
|
|
74
|
-
font-size: var(--tds-font-size-2xl);
|
|
75
|
-
font-weight: bold;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
padding: var(--tds-spacing-3);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.title {
|
|
81
|
-
font-size: var(--tds-font-size-lg);
|
|
82
|
-
font-weight: bold;
|
|
83
|
-
padding-bottom: var(--tds-spacing-1);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.date {
|
|
87
|
-
font-weight: bold;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.date,
|
|
91
|
-
.time,
|
|
92
|
-
.location {
|
|
93
|
-
font-size: var(--tds-font-size-sm);
|
|
94
|
-
padding-top: var(--tds-spacing-1);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.cta {
|
|
98
|
-
font-size: var(--tds-font-size-md);
|
|
99
|
-
margin-top: var(--tds-spacing-4);
|
|
100
|
-
display: block;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@media screen and (max-width: 1200px) {
|
|
104
|
-
ul {
|
|
105
|
-
padding: 0 var(--tds-spacing-4);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ul>
|
|
3
|
-
<template for:each={items} for:item="item">
|
|
4
|
-
<li key={item.title} class="card card-base">
|
|
5
|
-
<div>
|
|
6
|
-
<div class="calendar">
|
|
7
|
-
<div class="calendar__head">{item.month}</div>
|
|
8
|
-
<div class="calendar__body">{item.day}</div>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="information">
|
|
12
|
-
<div class="details">
|
|
13
|
-
<div class="pretitle">{item.pretitle}</div>
|
|
14
|
-
<div class="title">{item.title}</div>
|
|
15
|
-
<div class="date">{item.date}</div>
|
|
16
|
-
<div class="time">{item.time}</div>
|
|
17
|
-
<div class="location">{item.location}</div>
|
|
18
|
-
</div>
|
|
19
|
-
<a class="cta" href={item.ctaHref} target={item.ctaTarget}
|
|
20
|
-
>{item.ctaTitle}</a
|
|
21
|
-
>
|
|
22
|
-
</div>
|
|
23
|
-
</li>
|
|
24
|
-
</template>
|
|
25
|
-
</ul>
|
|
26
|
-
</template>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'tm/tm-events-a',
|
|
5
|
-
parameters: {
|
|
6
|
-
chromatic: {
|
|
7
|
-
viewports: [400, 800, 1199]
|
|
8
|
-
},
|
|
9
|
-
modules: ['/modules/tm-events-a.js']
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const Base = () => html`
|
|
14
|
-
<tm-events-a>
|
|
15
|
-
<tm-event-item
|
|
16
|
-
date="Thursday, January 23, 2020"
|
|
17
|
-
cta-href="/"
|
|
18
|
-
cta-title="Details"
|
|
19
|
-
pretitle="Event"
|
|
20
|
-
time="09:35 AM EST"
|
|
21
|
-
title="Event A"
|
|
22
|
-
></tm-event-item>
|
|
23
|
-
<tm-event-item
|
|
24
|
-
date="Thursday, January 23, 2020"
|
|
25
|
-
cta-href="/"
|
|
26
|
-
cta-title="Details"
|
|
27
|
-
pretitle="Event"
|
|
28
|
-
time="09:35 AM EST"
|
|
29
|
-
title="Event B"
|
|
30
|
-
location="San Francisco, CA"
|
|
31
|
-
></tm-event-item>
|
|
32
|
-
<tm-event-item
|
|
33
|
-
date="Thursday, January 23, 2020"
|
|
34
|
-
cta-href="/"
|
|
35
|
-
cta-title="Details"
|
|
36
|
-
pretitle="Event"
|
|
37
|
-
time="09:35 AM EST"
|
|
38
|
-
title="Event C"
|
|
39
|
-
location="San Francisco, CA"
|
|
40
|
-
></tm-event-item>
|
|
41
|
-
<tm-event-item
|
|
42
|
-
date="Thursday, January 23, 2020"
|
|
43
|
-
cta-href="/"
|
|
44
|
-
cta-title="Details"
|
|
45
|
-
pretitle="Event"
|
|
46
|
-
time="09:35 AM EST"
|
|
47
|
-
title="Event D"
|
|
48
|
-
location="San Francisco, CA"
|
|
49
|
-
></tm-event-item>
|
|
50
|
-
</tm-events-a>
|
|
51
|
-
`;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ChildrenElement } from 'shared/children';
|
|
2
|
-
|
|
3
|
-
export type Event = {
|
|
4
|
-
day: string;
|
|
5
|
-
date: string;
|
|
6
|
-
ctaHref: string;
|
|
7
|
-
ctaTarget: string;
|
|
8
|
-
ctaTitle: string;
|
|
9
|
-
month: string;
|
|
10
|
-
pretitle: string;
|
|
11
|
-
time: string;
|
|
12
|
-
location: string;
|
|
13
|
-
title: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default class extends ChildrenElement<Event> {
|
|
17
|
-
childTagName = 'TM-EVENT-ITEM';
|
|
18
|
-
extractor = (element: Element) => {
|
|
19
|
-
const date = new Date(element.getAttribute('date')!);
|
|
20
|
-
return {
|
|
21
|
-
day: String(date.getDate()),
|
|
22
|
-
date: element.getAttribute('date')!,
|
|
23
|
-
ctaHref: element.getAttribute('cta-href')!,
|
|
24
|
-
ctaTarget: element.getAttribute('cta-target') || '',
|
|
25
|
-
ctaTitle: element.getAttribute('cta-title')!,
|
|
26
|
-
month: months[date.getMonth()!],
|
|
27
|
-
pretitle: element.getAttribute('pretitle')!,
|
|
28
|
-
time: element.getAttribute('time')!,
|
|
29
|
-
location: element.getAttribute('location')!,
|
|
30
|
-
title: element.getAttribute('title')!
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const months = [
|
|
36
|
-
'Jan',
|
|
37
|
-
'Feb',
|
|
38
|
-
'Mar',
|
|
39
|
-
'Apr',
|
|
40
|
-
'May',
|
|
41
|
-
'Jun',
|
|
42
|
-
'Jul',
|
|
43
|
-
'Aug',
|
|
44
|
-
'Sep',
|
|
45
|
-
'Oct',
|
|
46
|
-
'Nov',
|
|
47
|
-
'Dec'
|
|
48
|
-
];
|