@salesforcedevs/arch-components 1.20.17-alpha4 → 1.20.17-alpha5
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/effectAdapter/__tests__/effectAdapter.test.ts +0 -12
- package/src/modules/common/effectAdapter/effectAdapter.html +0 -1
- package/src/modules/common/effectAdapter/effectAdapter.ts +0 -24
- package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.html +0 -3
- package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.ts +0 -7
- package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +0 -3
- package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +0 -18
- package/src/modules/common/reflectedElement/__tests__/reflectedElement.test.ts +0 -75
- package/src/modules/common/reflectedElement/reflectedElement.ts +0 -50
- package/src/modules/common/slot/__tests__/slot.test.ts +0 -96
- package/src/modules/common/slot/slot.ts +0 -21
- package/src/modules/sa/coverage/coverage.css +0 -35
- package/src/modules/sa/coverage/coverage.html +0 -15
- package/src/modules/sa/coverage/coverage.ts +0 -402
- package/src/modules/sa/coverage/types.d.ts +0 -26
- package/src/modules/sa/expandableSection/expandableSection.css +0 -24
- package/src/modules/sa/expandableSection/expandableSection.html +0 -20
- package/src/modules/sa/expandableSection/expandableSection.stories.ts +0 -37
- package/src/modules/sa/expandableSection/expandableSection.ts +0 -24
- package/src/modules/sa/explorer/explorer.css +0 -303
- package/src/modules/sa/explorer/explorer.html +0 -403
- package/src/modules/sa/explorer/explorer.ts +0 -664
- package/src/modules/sa/explorer/types.d.ts +0 -60
- package/src/modules/sa/gallery/gallery.css +0 -358
- package/src/modules/sa/gallery/gallery.html +0 -65
- package/src/modules/sa/gallery/gallery.ts +0 -300
- package/src/modules/sa/gallery/types.d.ts +0 -35
- package/src/modules/sa/socialShare/socialShare.css +0 -49
- package/src/modules/sa/socialShare/socialShare.html +0 -56
- package/src/modules/sa/socialShare/socialShare.ts +0 -29
- 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
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { CoveoCompletion, UserRecent } from '../types';
|
|
2
|
-
|
|
3
|
-
export const completions: { completions: CoveoCompletion[] } = {
|
|
4
|
-
completions: [
|
|
5
|
-
{
|
|
6
|
-
expression: 'LWC',
|
|
7
|
-
score: 1,
|
|
8
|
-
highlighted: 'LWC',
|
|
9
|
-
executableConfidence: 1
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
expression: 'Visualforce Pages',
|
|
13
|
-
score: 1,
|
|
14
|
-
highlighted: 'Visualforce Pages',
|
|
15
|
-
executableConfidence: 1
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const recents: { recents: UserRecent[] } = {
|
|
21
|
-
recents: [
|
|
22
|
-
{
|
|
23
|
-
color: null,
|
|
24
|
-
completion: null,
|
|
25
|
-
content_type: 'Module',
|
|
26
|
-
icon_url: '/images/badge-1.png',
|
|
27
|
-
path: '/en/content/learn/modules/salesforce-cms-basics',
|
|
28
|
-
title: 'Salesforce CMS Basics 1',
|
|
29
|
-
type: 'recent_favorite'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
color: null,
|
|
33
|
-
completion: null,
|
|
34
|
-
content_type: 'Module',
|
|
35
|
-
icon_url: '/images/badge-1.png',
|
|
36
|
-
path: '/en/content/learn/modules/salesforce-cms-basics',
|
|
37
|
-
title: 'Salesforce CMS Basics 2',
|
|
38
|
-
type: 'recent_favorite'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
color: 'var(--tds-color-brand)',
|
|
42
|
-
completion: null,
|
|
43
|
-
content_type: 'Trailmix',
|
|
44
|
-
icon_url: '/images/badge-1.png',
|
|
45
|
-
path: '/en/content/learn/modules/salesforce-cms-basics',
|
|
46
|
-
title: 'Salesforce CMS Basics 3',
|
|
47
|
-
type: 'recent_favorite'
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const token = {
|
|
53
|
-
token: 'TOKEN'
|
|
54
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tds-search
|
|
3
|
-
completions={completions}
|
|
4
|
-
default-value={defaultCompletionTerms}
|
|
5
|
-
if:true={config}
|
|
6
|
-
onfocus={onFocus}
|
|
7
|
-
onchange={onChange}
|
|
8
|
-
onsearch={onSearch}
|
|
9
|
-
placeholder={config.labels.placeholder}
|
|
10
|
-
recents={recents}
|
|
11
|
-
></tds-search>
|
|
12
|
-
</template>
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { api, LightningElement, wire } from 'lwc';
|
|
2
|
-
import {
|
|
3
|
-
ContextAdapter as ThContextAdapter,
|
|
4
|
-
ContextAdapterValue as ThContextAdapterValue
|
|
5
|
-
} from 'th/contextAdapter';
|
|
6
|
-
|
|
7
|
-
import { debounce } from 'shared/debounce';
|
|
8
|
-
import { getJSON } from 'shared/fetch';
|
|
9
|
-
import { TrailheadAPIClient } from 'shared/trailhead';
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
Completion,
|
|
13
|
-
Recent,
|
|
14
|
-
RecentSection,
|
|
15
|
-
SearchEvent
|
|
16
|
-
} from '../../tds/search/types';
|
|
17
|
-
|
|
18
|
-
import { RECENTS_PATH, TOKEN_PATH } from './constants';
|
|
19
|
-
import { CoveoCompletion, Config, UserRecent } from './types';
|
|
20
|
-
|
|
21
|
-
export default class extends LightningElement {
|
|
22
|
-
@api config: Config = null!;
|
|
23
|
-
|
|
24
|
-
private accessToken: string | null = null;
|
|
25
|
-
|
|
26
|
-
private get client() {
|
|
27
|
-
return new TrailheadAPIClient({ csrfToken: this.context.csrf });
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
private completionTerms: string = '';
|
|
31
|
-
private completionController: AbortController | null = null;
|
|
32
|
-
private completions: Completion[] = [];
|
|
33
|
-
|
|
34
|
-
@wire(ThContextAdapter)
|
|
35
|
-
private context: ThContextAdapterValue = null!;
|
|
36
|
-
|
|
37
|
-
private defaultCompletionTerms = '';
|
|
38
|
-
|
|
39
|
-
private getCompletions = debounce(async (terms: string) => {
|
|
40
|
-
const { completionController: prevController, config } = this;
|
|
41
|
-
if (prevController) {prevController.abort();}
|
|
42
|
-
if (!config) {return;}
|
|
43
|
-
if (!terms.length) {
|
|
44
|
-
this.completions = [];
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const controller = (this.completionController = new AbortController());
|
|
48
|
-
const accessToken = await this.getAccessToken();
|
|
49
|
-
const url = getCompletionsUrl({
|
|
50
|
-
accessToken,
|
|
51
|
-
baseUrl: config.coveo.querySuggestUrl,
|
|
52
|
-
locale: config.coveo.locale,
|
|
53
|
-
terms
|
|
54
|
-
});
|
|
55
|
-
const { completions } = await getJSON<{ completions: CoveoCompletion[] }>(
|
|
56
|
-
url,
|
|
57
|
-
{ signal: controller.signal }
|
|
58
|
-
);
|
|
59
|
-
if (this.completionTerms === terms)
|
|
60
|
-
{this.completions = completions.map((c) => ({
|
|
61
|
-
value: c.expression,
|
|
62
|
-
valueHighlighted: c.highlighted
|
|
63
|
-
}));}
|
|
64
|
-
}, 250);
|
|
65
|
-
|
|
66
|
-
private recents: RecentSection[] | null = null;
|
|
67
|
-
|
|
68
|
-
private async getAccessToken() {
|
|
69
|
-
if (this.accessToken) {return this.accessToken;}
|
|
70
|
-
const { token } = await this.client.post<{ token: string }>(TOKEN_PATH);
|
|
71
|
-
this.accessToken = token;
|
|
72
|
-
return token;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
private async getRecents() {
|
|
76
|
-
const { config } = this;
|
|
77
|
-
try {
|
|
78
|
-
const { recents } = await this.client.get<{ recents: UserRecent[] }>(
|
|
79
|
-
RECENTS_PATH
|
|
80
|
-
);
|
|
81
|
-
const { recent_favorite, recent_item } = recents.reduce<
|
|
82
|
-
{
|
|
83
|
-
[type in UserRecent['type']]: UserRecent[];
|
|
84
|
-
}
|
|
85
|
-
>((a, b) => (a[b.type].push(b), a), {
|
|
86
|
-
recent_favorite: [],
|
|
87
|
-
recent_item: []
|
|
88
|
-
});
|
|
89
|
-
this.recents = [
|
|
90
|
-
{
|
|
91
|
-
items: recent_item.map(toRecent),
|
|
92
|
-
title: config.labels.recentViewed
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
items: recent_favorite.map(toRecent),
|
|
96
|
-
title: config.labels.recentFavorites
|
|
97
|
-
}
|
|
98
|
-
].filter((s) => s.items.length);
|
|
99
|
-
} catch (e) {
|
|
100
|
-
console.error(e);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private onFocus(e: FocusEvent) {
|
|
105
|
-
if (!this.recents) {this.getRecents();}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
private onChange(e: CustomEvent<{ value: string }>) {
|
|
109
|
-
this.completionTerms = e.detail.value;
|
|
110
|
-
this.getCompletions(e.detail.value);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private onSearch(e: CustomEvent<SearchEvent>) {
|
|
114
|
-
const { config } = this;
|
|
115
|
-
switch (e.detail.type) {
|
|
116
|
-
case 'completion': {
|
|
117
|
-
const query = new URLSearchParams({
|
|
118
|
-
keywords: e.detail.value.value,
|
|
119
|
-
suggested: 'true'
|
|
120
|
-
}).toString();
|
|
121
|
-
window.location.href = `${config!.searchUrl}?${query}`;
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
case 'input': {
|
|
125
|
-
const query = new URLSearchParams({
|
|
126
|
-
keywords: e.detail.value
|
|
127
|
-
}).toString();
|
|
128
|
-
window.location.href = `${config!.searchUrl}?${query}`;
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
case 'recent': {
|
|
132
|
-
window.location.href = e.detail.value.path;
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
connectedCallback() {
|
|
139
|
-
const params = new URLSearchParams(window.location.search);
|
|
140
|
-
if (params.has('keywords')) {
|
|
141
|
-
this.defaultCompletionTerms = params.get('keywords')!;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
function getCompletionsUrl(params: {
|
|
147
|
-
accessToken: string;
|
|
148
|
-
baseUrl: string;
|
|
149
|
-
locale: string;
|
|
150
|
-
terms: string;
|
|
151
|
-
}) {
|
|
152
|
-
let { accessToken, baseUrl, locale, terms } = { ...params };
|
|
153
|
-
if (!/^http/.test(baseUrl)) {baseUrl = `${process.env.API_HOST}${baseUrl}`;}
|
|
154
|
-
const query = new URLSearchParams({
|
|
155
|
-
access_token: accessToken,
|
|
156
|
-
count: '10',
|
|
157
|
-
enableWordCompletion: 'true',
|
|
158
|
-
locale,
|
|
159
|
-
q: terms
|
|
160
|
-
}).toString();
|
|
161
|
-
return `${baseUrl}?${query}`;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function toRecent(recent: UserRecent): Recent {
|
|
165
|
-
return {
|
|
166
|
-
icon: recent.icon_url,
|
|
167
|
-
iconBackgroundColor: recent.color ? recent.color : undefined,
|
|
168
|
-
path: recent.path,
|
|
169
|
-
pretitle: recent.content_type,
|
|
170
|
-
title: recent.title
|
|
171
|
-
};
|
|
172
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type Config = {
|
|
2
|
-
coveo: {
|
|
3
|
-
locale: string;
|
|
4
|
-
querySuggestUrl: string;
|
|
5
|
-
};
|
|
6
|
-
labels: {
|
|
7
|
-
placeholder: string;
|
|
8
|
-
recentViewed: string;
|
|
9
|
-
recentFavorites: string;
|
|
10
|
-
};
|
|
11
|
-
searchUrl: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type CoveoCompletion = {
|
|
15
|
-
expression: string;
|
|
16
|
-
score: number;
|
|
17
|
-
highlighted: string;
|
|
18
|
-
executableConfidence: number;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type UserRecent = {
|
|
22
|
-
color: string | null;
|
|
23
|
-
completion: string | null;
|
|
24
|
-
content_type: string;
|
|
25
|
-
icon_url: string;
|
|
26
|
-
path: string;
|
|
27
|
-
title: string;
|
|
28
|
-
type: 'recent_favorite' | 'recent_item';
|
|
29
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { nextTick } from 'shared/testutils';
|
|
2
|
-
import Card from '../card';
|
|
3
|
-
import { track } from 'tds/instrumentation';
|
|
4
|
-
import { querySelector } from 'kagekiri';
|
|
5
|
-
|
|
6
|
-
customElements.define('tm-card', Card.CustomElementConstructor);
|
|
7
|
-
|
|
8
|
-
jest.mock('tds/instrumentation', () => {
|
|
9
|
-
return {
|
|
10
|
-
track: jest.fn()
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
describe('tm-card', () => {
|
|
15
|
-
beforeEach(() => {
|
|
16
|
-
// Mock SalesforceInteractions global object
|
|
17
|
-
(window as any).SalesforceInteractions = {
|
|
18
|
-
sendEvent: jest.fn()
|
|
19
|
-
};
|
|
20
|
-
// Clear the track mock
|
|
21
|
-
(track as jest.Mock).mockClear();
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
afterEach(() => {
|
|
25
|
-
document.body.innerHTML = '';
|
|
26
|
-
delete (window as any).SalesforceInteractions;
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('tracks clicks from anchor and image', async () => {
|
|
30
|
-
document.body.innerHTML = `
|
|
31
|
-
<tm-card
|
|
32
|
-
title="Item title"
|
|
33
|
-
cta-href="/#"
|
|
34
|
-
cta-title="Explore"
|
|
35
|
-
img-src="/image.png"
|
|
36
|
-
></tm-card>
|
|
37
|
-
`;
|
|
38
|
-
await nextTick();
|
|
39
|
-
|
|
40
|
-
const item = document.body.querySelector('tm-card')!;
|
|
41
|
-
const anchor = querySelector('a', item);
|
|
42
|
-
const img = querySelector('.image', item);
|
|
43
|
-
|
|
44
|
-
anchor!.click();
|
|
45
|
-
img!.click();
|
|
46
|
-
|
|
47
|
-
expect(track).toBeCalledTimes(2);
|
|
48
|
-
const trackCalls = (track as jest.Mock).mock.calls;
|
|
49
|
-
|
|
50
|
-
// Both clicks should call track with select_content event
|
|
51
|
-
expect(trackCalls[0][0]).toBe(item);
|
|
52
|
-
expect(trackCalls[0][1]).toBe('select_content');
|
|
53
|
-
expect(trackCalls[0][2]).toMatchObject({
|
|
54
|
-
contentType: 'card grid',
|
|
55
|
-
itemLocation: 'card'
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
expect(trackCalls[1][0]).toBe(item);
|
|
59
|
-
expect(trackCalls[1][1]).toBe('select_content');
|
|
60
|
-
expect(trackCalls[1][2]).toMatchObject({
|
|
61
|
-
contentType: 'card grid',
|
|
62
|
-
itemLocation: 'card'
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
});
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
2
|
-
@import 'tm/cardBase';
|
|
3
|
-
|
|
4
|
-
:host {
|
|
5
|
-
height: 100%;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
a {
|
|
9
|
-
color: var(--tds-color-brand);
|
|
10
|
-
text-decoration: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
a:hover {
|
|
14
|
-
text-decoration: underline;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.card {
|
|
18
|
-
display: flex;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.content {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex: 1;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
color: var(--tds-color-black);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.content-inner {
|
|
29
|
-
flex: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.pretitle {
|
|
33
|
-
font-size: var(--tds-font-size-sm);
|
|
34
|
-
color: var(--tds-color-meteorite);
|
|
35
|
-
padding-bottom: var(--tds-spacing-1);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.title {
|
|
39
|
-
font-size: var(--tds-font-size-lg);
|
|
40
|
-
font-weight: bold;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.description {
|
|
44
|
-
margin-top: var(--tds-spacing-3);
|
|
45
|
-
line-height: var(--tds-line-height-normal);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.cta {
|
|
49
|
-
font-weight: bold;
|
|
50
|
-
margin-top: var(--tds-spacing-3);
|
|
51
|
-
display: block;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
div.image {
|
|
55
|
-
background-size: cover;
|
|
56
|
-
background-repeat: no-repeat;
|
|
57
|
-
background-position: center center;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
img.image {
|
|
61
|
-
max-width: 90%;
|
|
62
|
-
max-height: 100px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.card[data-href] .image {
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.card:not([data-image]),
|
|
70
|
-
.card[data-image=''] {
|
|
71
|
-
padding: var(--tds-spacing-6);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.card[data-image^='top'] {
|
|
75
|
-
flex-direction: column-reverse;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.card[data-image^='top'] .content {
|
|
79
|
-
padding: var(--tds-spacing-6);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.card[data-image='top--cover'] .image {
|
|
83
|
-
height: 0;
|
|
84
|
-
border-top-left-radius: var(--tds-radius-lg);
|
|
85
|
-
border-top-right-radius: var(--tds-radius-lg);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.card[data-image='top--small'] .image {
|
|
89
|
-
align-self: flex-start;
|
|
90
|
-
margin: var(--tds-spacing-6) var(--tds-spacing-6) 0 var(--tds-spacing-6);
|
|
91
|
-
max-height: 75px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.card[data-image='right--cover'] {
|
|
95
|
-
align-items: stretch;
|
|
96
|
-
padding: var(--tds-spacing-6);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.card[data-image='right--cover'] .image {
|
|
100
|
-
flex: 1;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.card[data-image='right--cover'] .image {
|
|
104
|
-
align-self: stretch;
|
|
105
|
-
border-radius: var(--tds-radius-lg);
|
|
106
|
-
margin-left: var(--tds-spacing-6);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.card[data-image='left--cover'] {
|
|
110
|
-
align-items: top;
|
|
111
|
-
flex-direction: row-reverse;
|
|
112
|
-
padding: var(--tds-spacing-6);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.card[data-image='left--cover'] .image {
|
|
116
|
-
align-self: stretch;
|
|
117
|
-
border-radius: var(--tds-radius-lg);
|
|
118
|
-
flex: 1;
|
|
119
|
-
margin-right: var(--tds-spacing-6);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.card[data-image='left--small'] {
|
|
123
|
-
align-items: flex-start;
|
|
124
|
-
flex-direction: row-reverse;
|
|
125
|
-
padding: var(--tds-spacing-6);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.card[data-image='left--small'] .image {
|
|
129
|
-
width: 50px;
|
|
130
|
-
margin-right: var(--tds-spacing-6);
|
|
131
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<article
|
|
3
|
-
class="card card-base"
|
|
4
|
-
data-href={ctaHref}
|
|
5
|
-
data-image={imgVariantResponsive}
|
|
6
|
-
role="article"
|
|
7
|
-
aria-labelledby={cardTitleId}
|
|
8
|
-
tabindex="0"
|
|
9
|
-
onkeydown={handleCardKeydown}
|
|
10
|
-
>
|
|
11
|
-
<div class="content">
|
|
12
|
-
<div class="content-inner">
|
|
13
|
-
<template if:true={pretitle}>
|
|
14
|
-
<p class="pretitle">{pretitle}</p>
|
|
15
|
-
</template>
|
|
16
|
-
<template if:true={pretitleHref}>
|
|
17
|
-
<p><a href={pretitleHref}>{pretitleHrefText}</a></p>
|
|
18
|
-
</template>
|
|
19
|
-
<h3 class="title" id={cardTitleId}>{title}</h3>
|
|
20
|
-
<p if:true={description} class="description">{description}</p>
|
|
21
|
-
</div>
|
|
22
|
-
<a
|
|
23
|
-
if:true={ctaTitle}
|
|
24
|
-
class="cta"
|
|
25
|
-
name={ctaTitleId}
|
|
26
|
-
id={ctaTitleId}
|
|
27
|
-
href={ctaHref}
|
|
28
|
-
target={ctaTarget}
|
|
29
|
-
aria-label={assistiveText}
|
|
30
|
-
onclick={trackLinkClick}
|
|
31
|
-
rel={rel}
|
|
32
|
-
>{ctaTitle}<img
|
|
33
|
-
if:true={isExternalHref}
|
|
34
|
-
src="/assets/images/new_window.svg"
|
|
35
|
-
style="display: inline; height: 1rem; margin: 0 0 0 5px"
|
|
36
|
-
aria-label="Open link in new window"
|
|
37
|
-
/></a>
|
|
38
|
-
</div>
|
|
39
|
-
<template if:true={imgSrc}>
|
|
40
|
-
<div
|
|
41
|
-
name={ctaHref}
|
|
42
|
-
id={imageDivId}
|
|
43
|
-
class="image"
|
|
44
|
-
if:false={imgTag}
|
|
45
|
-
onclick={onImageClick}
|
|
46
|
-
style={imgStyle}
|
|
47
|
-
data-href={ctaHref}
|
|
48
|
-
></div>
|
|
49
|
-
<picture if:true={imgTagNoSvg}>
|
|
50
|
-
<template if:false={isRemoteImage}>
|
|
51
|
-
<source srcset={imgSrcSetWebP} />
|
|
52
|
-
<source srcset={imgSrcSetJpg} />
|
|
53
|
-
</template>
|
|
54
|
-
<img
|
|
55
|
-
name={ctaHref}
|
|
56
|
-
id={imageImgId}
|
|
57
|
-
class="image"
|
|
58
|
-
if:true={imgTag}
|
|
59
|
-
onclick={onImageClick}
|
|
60
|
-
style={imgStyle}
|
|
61
|
-
src={imgSrc}
|
|
62
|
-
alt={imageAltText}
|
|
63
|
-
loading="lazy"
|
|
64
|
-
decoding="async"
|
|
65
|
-
/>
|
|
66
|
-
</picture>
|
|
67
|
-
<img
|
|
68
|
-
name={ctaHref}
|
|
69
|
-
id={imageSvgId}
|
|
70
|
-
class="image"
|
|
71
|
-
if:true={imgTagSvg}
|
|
72
|
-
onclick={onImageClick}
|
|
73
|
-
style={imgStyle}
|
|
74
|
-
src={imgSrc}
|
|
75
|
-
alt={description}
|
|
76
|
-
loading="lazy"
|
|
77
|
-
decoding="async"
|
|
78
|
-
/>
|
|
79
|
-
</template>
|
|
80
|
-
</article>
|
|
81
|
-
</template>
|