@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,18 +0,0 @@
|
|
|
1
|
-
export function waitForPageSettled() {
|
|
2
|
-
return new Promise<void>((resolve) => {
|
|
3
|
-
let prevH: number = 0;
|
|
4
|
-
const prevY = window.scrollY;
|
|
5
|
-
function check() {
|
|
6
|
-
const nextH = window.innerHeight + document.body.scrollHeight;
|
|
7
|
-
const nextY = window.scrollY;
|
|
8
|
-
const settled = nextH === prevH;
|
|
9
|
-
if (settled) {
|
|
10
|
-
if (nextY === prevY) {resolve();}
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
prevH = nextH;
|
|
14
|
-
requestAnimationFrame(check);
|
|
15
|
-
}
|
|
16
|
-
requestAnimationFrame(check);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'tm/tm-youtube',
|
|
5
|
-
parameters: {
|
|
6
|
-
modules: ['/modules/tm-youtube.js'],
|
|
7
|
-
chromatic: {
|
|
8
|
-
disable: true
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const Base = () => html`
|
|
14
|
-
<tm-youtube video-id="dQw4w9WgXcQ"></tm-youtube>
|
|
15
|
-
`;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { api, LightningElement, track } from 'lwc';
|
|
2
|
-
import { waitForPageSettled } from 'tm/utils';
|
|
3
|
-
|
|
4
|
-
export default class extends LightningElement {
|
|
5
|
-
@api videoId: string = undefined!;
|
|
6
|
-
|
|
7
|
-
@track private height = 0;
|
|
8
|
-
@track private width = 0;
|
|
9
|
-
|
|
10
|
-
private didSetSize = false;
|
|
11
|
-
|
|
12
|
-
private get src() {
|
|
13
|
-
return `https://www.youtube.com/embed/${this.videoId}`;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
renderedCallback() {
|
|
17
|
-
if (!this.didSetSize) {
|
|
18
|
-
this.didSetSize = true;
|
|
19
|
-
waitForPageSettled().then(() => {
|
|
20
|
-
const w = this.template.host.offsetWidth;
|
|
21
|
-
const ratio = 0.5625;
|
|
22
|
-
this.height = w * ratio;
|
|
23
|
-
this.width = w;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { api, LightningElement } from 'lwc';
|
|
2
|
-
|
|
3
|
-
import { isFocusable, isHidden } from '@a11y/focus-trap';
|
|
4
|
-
import { queryShadowRoot } from '@a11y/focus-trap/shadow';
|
|
5
|
-
|
|
6
|
-
import { debounce } from 'shared/debounce';
|
|
7
|
-
|
|
8
|
-
// This is a re-implementation of https://github.com/andreasbm/focus-trap
|
|
9
|
-
// since LWC does not currently support custom elements in a template
|
|
10
|
-
export default class extends LightningElement {
|
|
11
|
-
@api private inactive = false;
|
|
12
|
-
private focused = false;
|
|
13
|
-
private init = false;
|
|
14
|
-
|
|
15
|
-
private $start!: HTMLElement;
|
|
16
|
-
private $end!: HTMLElement;
|
|
17
|
-
|
|
18
|
-
private $activeElement: Element | null = null;
|
|
19
|
-
|
|
20
|
-
private get startTabIndex() {
|
|
21
|
-
return !this.focused || this.inactive ? '-1' : '0';
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
private get endTabIndex() {
|
|
25
|
-
return !this.focused || this.inactive ? '-1' : '0';
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
renderedCallback() {
|
|
29
|
-
if (this.init) {return;}
|
|
30
|
-
this.init = true;
|
|
31
|
-
|
|
32
|
-
this.$start = this.template.querySelector(
|
|
33
|
-
`[data-id="start"]`
|
|
34
|
-
) as HTMLElement;
|
|
35
|
-
this.$end = this.template.querySelector(
|
|
36
|
-
`[data-id="end"]`
|
|
37
|
-
) as HTMLElement;
|
|
38
|
-
|
|
39
|
-
this.$start.addEventListener('focus', this.focusLastElement);
|
|
40
|
-
this.$end.addEventListener('focus', this.focusFirstElement);
|
|
41
|
-
|
|
42
|
-
this.addEventListener('focusin', this.onFocusIn);
|
|
43
|
-
this.addEventListener('focusout', this.onFocusOut);
|
|
44
|
-
this.addEventListener('keyup', this.onKeyUp as EventListener);
|
|
45
|
-
|
|
46
|
-
this.$activeElement = getActiveElement(document.activeElement);
|
|
47
|
-
|
|
48
|
-
this.focusFirstElement();
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
disconnectedCallback() {
|
|
52
|
-
this.removeEventListener('focusin', this.onFocusIn);
|
|
53
|
-
this.removeEventListener('focusout', this.onFocusOut);
|
|
54
|
-
if (this.$activeElement && this.$activeElement instanceof HTMLElement)
|
|
55
|
-
{this.$activeElement.focus();}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
private focusFirstElement = () => {
|
|
59
|
-
this.trapFocus();
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
private focusLastElement = () => {
|
|
63
|
-
this.trapFocus(true);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
private onFocusIn = debounce(() => {
|
|
67
|
-
this.focused = true;
|
|
68
|
-
}, 0);
|
|
69
|
-
|
|
70
|
-
private onFocusOut = debounce(() => {
|
|
71
|
-
this.focused = false;
|
|
72
|
-
}, 0);
|
|
73
|
-
|
|
74
|
-
private onKeyUp = (e: KeyboardEvent) => {
|
|
75
|
-
if (e.key === 'Esc' || e.key === 'Escape') {
|
|
76
|
-
this.dispatchEvent(new CustomEvent('requestclose'));
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
private getFocusableElements(): HTMLElement[] {
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
const children = this.template.querySelector('slot').assignedElements();
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
return queryShadowRoot({ children }, isHidden, isFocusable);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private trapFocus(trapToEnd?: boolean) {
|
|
88
|
-
if (this.inactive) {return;}
|
|
89
|
-
const focusableElements = this.getFocusableElements();
|
|
90
|
-
if (focusableElements.length > 0) {
|
|
91
|
-
if (trapToEnd) {
|
|
92
|
-
focusableElements[focusableElements.length - 1].focus();
|
|
93
|
-
} else {
|
|
94
|
-
focusableElements[0].focus();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function getActiveElement(element: Element | null): Element | null {
|
|
101
|
-
if (element && element.shadowRoot)
|
|
102
|
-
{return getActiveElement(element.shadowRoot.activeElement);}
|
|
103
|
-
return element;
|
|
104
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody, nextTick } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import FocusVisible from '../focusVisible';
|
|
4
|
-
|
|
5
|
-
customElements.define(
|
|
6
|
-
'ui-focus-visible',
|
|
7
|
-
FocusVisible.CustomElementConstructor
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
describe('ui-focus-visible', () => {
|
|
11
|
-
afterEach(() => {
|
|
12
|
-
while (document.body.firstChild) {
|
|
13
|
-
document.body.removeChild(document.body.firstChild);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// Skip these tests as LWC in test mode doesn't support child nodes for light DOM components
|
|
18
|
-
// The focusVisible component requires child elements in slots
|
|
19
|
-
it.skip('defaults to true', async () => {
|
|
20
|
-
const element = renderIntoBody(html`
|
|
21
|
-
<ui-focus-visible>
|
|
22
|
-
<div></div>
|
|
23
|
-
</ui-focus-visible>
|
|
24
|
-
`);
|
|
25
|
-
await nextTick();
|
|
26
|
-
expect(element.querySelector('div')).toHaveAttribute(
|
|
27
|
-
'data-focus-visible',
|
|
28
|
-
'true'
|
|
29
|
-
);
|
|
30
|
-
});
|
|
31
|
-
it.skip('handles mutation', async () => {
|
|
32
|
-
const element = renderIntoBody(html`
|
|
33
|
-
<ui-focus-visible></ui-focus-visible>
|
|
34
|
-
`);
|
|
35
|
-
await nextTick();
|
|
36
|
-
element.appendChild(document.createElement('div'));
|
|
37
|
-
await nextTick();
|
|
38
|
-
expect(element.querySelector('div')).toHaveAttribute(
|
|
39
|
-
'data-focus-visible',
|
|
40
|
-
'true'
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
it.skip('changes to false on mousedown', async () => {
|
|
44
|
-
const element = renderIntoBody(html`
|
|
45
|
-
<ui-focus-visible>
|
|
46
|
-
<div></div>
|
|
47
|
-
</ui-focus-visible>
|
|
48
|
-
`);
|
|
49
|
-
await nextTick();
|
|
50
|
-
document.dispatchEvent(new MouseEvent('mousedown'));
|
|
51
|
-
expect(element.querySelector('div')).toHaveAttribute(
|
|
52
|
-
'data-focus-visible',
|
|
53
|
-
'false'
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
it.skip('changes to false on mousemove', async () => {
|
|
57
|
-
const element = renderIntoBody(html`
|
|
58
|
-
<ui-focus-visible>
|
|
59
|
-
<div></div>
|
|
60
|
-
</ui-focus-visible>
|
|
61
|
-
`);
|
|
62
|
-
await nextTick();
|
|
63
|
-
document.dispatchEvent(new MouseEvent('mousemove'));
|
|
64
|
-
expect(element.querySelector('div')).toHaveAttribute(
|
|
65
|
-
'data-focus-visible',
|
|
66
|
-
'false'
|
|
67
|
-
);
|
|
68
|
-
});
|
|
69
|
-
it.skip('changes to true on keydown', async () => {
|
|
70
|
-
const element = renderIntoBody(html`
|
|
71
|
-
<ui-focus-visible>
|
|
72
|
-
<div></div>
|
|
73
|
-
</ui-focus-visible>
|
|
74
|
-
`);
|
|
75
|
-
await nextTick();
|
|
76
|
-
document.dispatchEvent(new MouseEvent('mousemove'));
|
|
77
|
-
expect(element.querySelector('div')).toHaveAttribute(
|
|
78
|
-
'data-focus-visible',
|
|
79
|
-
'false'
|
|
80
|
-
);
|
|
81
|
-
document.dispatchEvent(new KeyboardEvent('keydown'));
|
|
82
|
-
expect(element.querySelector('div')).toHaveAttribute(
|
|
83
|
-
'data-focus-visible',
|
|
84
|
-
'true'
|
|
85
|
-
);
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
it('renders the component', () => {
|
|
89
|
-
const element = renderIntoBody(
|
|
90
|
-
html`<ui-focus-visible></ui-focus-visible>`
|
|
91
|
-
);
|
|
92
|
-
expect(element).toBeTruthy();
|
|
93
|
-
expect(element.shadowRoot).toBeTruthy();
|
|
94
|
-
});
|
|
95
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { LightningElement } from 'lwc';
|
|
2
|
-
|
|
3
|
-
let focusVisible = true;
|
|
4
|
-
let handlers: (() => void)[] = [];
|
|
5
|
-
|
|
6
|
-
export default class extends LightningElement {
|
|
7
|
-
private observer!: MutationObserver;
|
|
8
|
-
|
|
9
|
-
connectedCallback() {
|
|
10
|
-
this.observer = new MutationObserver(() => {
|
|
11
|
-
this.onChange();
|
|
12
|
-
});
|
|
13
|
-
this.observer.observe(this.template.host, {
|
|
14
|
-
childList: true
|
|
15
|
-
});
|
|
16
|
-
handlers.push(this.onChange);
|
|
17
|
-
this.onChange();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
disconnectedCallback() {
|
|
21
|
-
handlers = handlers.filter((h) => h !== this.onChange);
|
|
22
|
-
this.observer.disconnect();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
private onChange = () => {
|
|
26
|
-
for (const node of Array.from(this.template.host.children)) {
|
|
27
|
-
node.setAttribute('data-focus-visible', String(focusVisible));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
document.addEventListener('mousedown', onMouse, { passive: true });
|
|
33
|
-
document.addEventListener('mousemove', onMouse, { passive: true });
|
|
34
|
-
document.addEventListener('keydown', onKeyboard, { passive: true });
|
|
35
|
-
|
|
36
|
-
function onMouse(event: MouseEvent) {
|
|
37
|
-
if (!focusVisible) {return;}
|
|
38
|
-
focusVisible = false;
|
|
39
|
-
for (const handler of handlers) {handler();}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function onKeyboard(event: KeyboardEvent) {
|
|
43
|
-
if (focusVisible) {return;}
|
|
44
|
-
focusVisible = true;
|
|
45
|
-
for (const handler of handlers) {handler();}
|
|
46
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/select/select.html
RENAMED
|
File without changes
|
/package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/select/select.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|