@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
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { EffectAdapter } from '../effectAdapter';
|
|
2
|
-
|
|
3
|
-
describe('EffectAdapter', () => {
|
|
4
|
-
it('calls the handler', async () => {
|
|
5
|
-
const value = Symbol();
|
|
6
|
-
const setValue = jest.fn();
|
|
7
|
-
const adapter = new EffectAdapter(setValue);
|
|
8
|
-
const config = { value: value };
|
|
9
|
-
adapter.update(config);
|
|
10
|
-
expect(setValue).toHaveBeenCalledWith(config);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<template></template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { WireAdapter } from 'lwc';
|
|
2
|
-
|
|
3
|
-
export type EffectAdapterConfig = {};
|
|
4
|
-
|
|
5
|
-
export class EffectAdapter
|
|
6
|
-
implements
|
|
7
|
-
WireAdapter<EffectAdapterConfig, Record<string, any>>
|
|
8
|
-
{
|
|
9
|
-
constructor(private setValue: (value: EffectAdapterConfig) => void) {
|
|
10
|
-
// Constructor required for WireAdapter interface
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
connect() {
|
|
14
|
-
// Required by WireAdapter interface
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
disconnect() {
|
|
18
|
-
// Required by WireAdapter interface
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
update(config: EffectAdapterConfig) {
|
|
22
|
-
this.setValue(config);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReflectedElement } from '../../../../reflectedElement';
|
|
2
|
-
|
|
3
|
-
export default class extends ReflectedElement {
|
|
4
|
-
get contentElement() {
|
|
5
|
-
return this.template.querySelector('select') as HTMLSelectElement;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
innerHTMLSetCallback() {
|
|
9
|
-
this.contentElement.setAttribute(
|
|
10
|
-
'data-count',
|
|
11
|
-
String(this.contentElement.querySelectorAll('option').length)
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
transformHTML(html: string) {
|
|
16
|
-
return `${html} <option value="last">Last</option>`;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import Select from './modules/test/select/select';
|
|
4
|
-
import SelectTransform from './modules/test/selectTransform/selectTransform';
|
|
5
|
-
|
|
6
|
-
customElements.define('test-select', Select.CustomElementConstructor);
|
|
7
|
-
customElements.define(
|
|
8
|
-
'test-select-transform',
|
|
9
|
-
SelectTransform.CustomElementConstructor
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
describe('reflected-element', () => {
|
|
13
|
-
afterEach(() => {
|
|
14
|
-
document.body.innerHTML = '';
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
// Skip these snapshot tests as LWC slot content doesn't render consistently in tests
|
|
18
|
-
it.skip('reflects the innerHTML', async () => {
|
|
19
|
-
const element = renderIntoBody(
|
|
20
|
-
html`
|
|
21
|
-
<test-select>
|
|
22
|
-
<option value="a">A</option>
|
|
23
|
-
<option value="b">B</option>
|
|
24
|
-
</test-select>
|
|
25
|
-
`
|
|
26
|
-
);
|
|
27
|
-
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
28
|
-
expect(
|
|
29
|
-
element.shadowRoot!.querySelector('select')!.innerHTML
|
|
30
|
-
).toMatchHTMLSnapshot();
|
|
31
|
-
}, 10000);
|
|
32
|
-
|
|
33
|
-
it.skip('transforms the innerHTML', async () => {
|
|
34
|
-
const element = renderIntoBody(
|
|
35
|
-
html`
|
|
36
|
-
<test-select-transform>
|
|
37
|
-
<option value="a">A</option>
|
|
38
|
-
<option value="b">B</option>
|
|
39
|
-
</test-select-transform>
|
|
40
|
-
`
|
|
41
|
-
);
|
|
42
|
-
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
43
|
-
expect(
|
|
44
|
-
element.shadowRoot!.querySelector('select')!.innerHTML
|
|
45
|
-
).toMatchHTMLSnapshot();
|
|
46
|
-
}, 10000);
|
|
47
|
-
|
|
48
|
-
it('renders components with reflected innerHTML', async () => {
|
|
49
|
-
const element = renderIntoBody(html`<test-select></test-select>`);
|
|
50
|
-
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
51
|
-
expect(element).toBeTruthy();
|
|
52
|
-
expect(element.shadowRoot!.querySelector('select')).toBeTruthy();
|
|
53
|
-
}, 10000);
|
|
54
|
-
|
|
55
|
-
it('calls innerHTMLSetCallback', async () => {
|
|
56
|
-
const element = renderIntoBody(
|
|
57
|
-
html`
|
|
58
|
-
<test-select-transform>
|
|
59
|
-
<option value="a">A</option>
|
|
60
|
-
<option value="b">B</option>
|
|
61
|
-
<option value="b">C</option>
|
|
62
|
-
</test-select-transform>
|
|
63
|
-
`
|
|
64
|
-
);
|
|
65
|
-
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
66
|
-
|
|
67
|
-
const select = element.shadowRoot!.querySelector('select')!;
|
|
68
|
-
const count = select.getAttribute('data-count');
|
|
69
|
-
|
|
70
|
-
// Due to LWC slot limitations, the count might be 1 or 4
|
|
71
|
-
// Just verify the callback was called (count attribute exists)
|
|
72
|
-
expect(select).toHaveAttribute('data-count');
|
|
73
|
-
expect(parseInt(count!, 10)).toBeGreaterThan(0);
|
|
74
|
-
}, 10000);
|
|
75
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
* This element copies the innerHTML of the host (Light DOM)
|
|
4
|
-
* to the innerHTML of the element (Shadow DOM) returned by
|
|
5
|
-
* contentElement() (which must use the lwc:dom="manual" directive).
|
|
6
|
-
*/
|
|
7
|
-
import { LightningElement } from 'lwc';
|
|
8
|
-
|
|
9
|
-
export class ReflectedElement extends LightningElement {
|
|
10
|
-
private observer!: MutationObserver;
|
|
11
|
-
private didSetContent = false;
|
|
12
|
-
|
|
13
|
-
get contentElement(): Element {
|
|
14
|
-
throw new Error('Not Implemented');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
connectedCallback() {
|
|
18
|
-
this.observer = new MutationObserver(() => {
|
|
19
|
-
this.setContent();
|
|
20
|
-
});
|
|
21
|
-
this.observer.observe(this.template.host, {
|
|
22
|
-
characterData: true,
|
|
23
|
-
childList: true,
|
|
24
|
-
subtree: true
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
disconnectedCallback() {
|
|
29
|
-
this.observer.disconnect();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
innerHTMLSetCallback() {}
|
|
33
|
-
|
|
34
|
-
renderedCallback() {
|
|
35
|
-
if (!this.didSetContent) {
|
|
36
|
-
this.didSetContent = true;
|
|
37
|
-
this.setContent();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
transformHTML(html: string): string {
|
|
42
|
-
return html;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
private setContent() {
|
|
46
|
-
const element = this.contentElement;
|
|
47
|
-
element.innerHTML = this.transformHTML(this.template.host.innerHTML);
|
|
48
|
-
this.innerHTMLSetCallback();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { html, renderIntoBody } from 'shared/testutils';
|
|
2
|
-
|
|
3
|
-
import { assignedSlotNames, isSlotAssigned } from '../slot';
|
|
4
|
-
|
|
5
|
-
customElements.define(
|
|
6
|
-
'test-a',
|
|
7
|
-
class extends HTMLElement {
|
|
8
|
-
connectedCallback() {
|
|
9
|
-
this.attachShadow({ mode: 'open' });
|
|
10
|
-
this.shadowRoot!.innerHTML = `
|
|
11
|
-
<test-b>
|
|
12
|
-
<slot></slot>
|
|
13
|
-
<slot name="header" slot="header"></slot>
|
|
14
|
-
<slot name="footer" slot="footer"></slot>
|
|
15
|
-
</test-b>
|
|
16
|
-
`;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
customElements.define(
|
|
22
|
-
'test-b',
|
|
23
|
-
class extends HTMLElement {
|
|
24
|
-
connectedCallback() {
|
|
25
|
-
this.attachShadow({ mode: 'open' });
|
|
26
|
-
this.shadowRoot!.innerHTML = `
|
|
27
|
-
<slot></slot>
|
|
28
|
-
<slot name="header"></slot>
|
|
29
|
-
<slot name="footer"></slot>
|
|
30
|
-
`;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
describe('isSlotAssigned', () => {
|
|
36
|
-
describe('false', () => {
|
|
37
|
-
it('test-a', () => {
|
|
38
|
-
const element = renderIntoBody(html` <test-a></test-a> `);
|
|
39
|
-
const slot = element.shadowRoot!.querySelector('slot')!;
|
|
40
|
-
expect(isSlotAssigned(slot)).toBe(false);
|
|
41
|
-
});
|
|
42
|
-
it('test-b', () => {
|
|
43
|
-
const element = renderIntoBody(html` <test-a></test-a> `);
|
|
44
|
-
const slot = element
|
|
45
|
-
.shadowRoot!.querySelector('test-b')!
|
|
46
|
-
.shadowRoot!.querySelector('slot')!;
|
|
47
|
-
expect(isSlotAssigned(slot)).toBe(false);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
describe('true', () => {
|
|
51
|
-
it('test-a', () => {
|
|
52
|
-
const element = renderIntoBody(html`
|
|
53
|
-
<test-a>
|
|
54
|
-
<h1>Hello</h1>
|
|
55
|
-
</test-a>
|
|
56
|
-
`);
|
|
57
|
-
const slot = element.shadowRoot!.querySelector('slot')!;
|
|
58
|
-
expect(isSlotAssigned(slot)).toBe(true);
|
|
59
|
-
});
|
|
60
|
-
it('test-b', () => {
|
|
61
|
-
const element = renderIntoBody(html`
|
|
62
|
-
<test-a>
|
|
63
|
-
<h1>Hello</h1>
|
|
64
|
-
</test-a>
|
|
65
|
-
`);
|
|
66
|
-
const slot = element
|
|
67
|
-
.shadowRoot!.querySelector('test-b')!
|
|
68
|
-
.shadowRoot!.querySelector('slot')!;
|
|
69
|
-
expect(isSlotAssigned(slot)).toBe(true);
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
describe('assignedSlotNames', () => {
|
|
75
|
-
it('test-a', () => {
|
|
76
|
-
const element = renderIntoBody(html`
|
|
77
|
-
<test-a>
|
|
78
|
-
<h1>Hello</h1>
|
|
79
|
-
<header slot="header"></header>
|
|
80
|
-
</test-a>
|
|
81
|
-
`);
|
|
82
|
-
const shadowRoot = element.shadowRoot!;
|
|
83
|
-
expect(assignedSlotNames(shadowRoot)).toEqual(['default', 'header']);
|
|
84
|
-
});
|
|
85
|
-
it('test-b', () => {
|
|
86
|
-
const element = renderIntoBody(html`
|
|
87
|
-
<test-a>
|
|
88
|
-
<h1>Hello</h1>
|
|
89
|
-
<header slot="header"></header>
|
|
90
|
-
</test-a>
|
|
91
|
-
`);
|
|
92
|
-
const shadowRoot =
|
|
93
|
-
element.shadowRoot!.querySelector('test-b')!.shadowRoot!;
|
|
94
|
-
expect(assignedSlotNames(shadowRoot)).toEqual(['default', 'header']);
|
|
95
|
-
});
|
|
96
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export function assignedSlotNames(template: {
|
|
2
|
-
querySelectorAll(selector: string): NodeList;
|
|
3
|
-
}) {
|
|
4
|
-
const slots = Array.from(
|
|
5
|
-
template.querySelectorAll('slot')
|
|
6
|
-
) as HTMLSlotElement[];
|
|
7
|
-
return slots
|
|
8
|
-
.filter(isSlotAssigned)
|
|
9
|
-
.map((slot) => slot.getAttribute('name') || 'default');
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function isSlotAssigned(slot: HTMLSlotElement): boolean {
|
|
13
|
-
const [element] = slot.assignedElements();
|
|
14
|
-
if (element) {
|
|
15
|
-
if (element.tagName === 'SLOT') {
|
|
16
|
-
return isSlotAssigned(element as HTMLSlotElement);
|
|
17
|
-
}
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
return slot.children.length > 0;
|
|
21
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
font-size: var(--tds-font-size-md);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.coverage-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: space-between;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.coverage-title {
|
|
14
|
-
display: inline-block;
|
|
15
|
-
margin-right: var(--tds-spacing-8);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.coverage-header h2 {
|
|
19
|
-
font-size: var(--tds-font-size-lg);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.chartContainer {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: space-evenly;
|
|
25
|
-
align-items: center;
|
|
26
|
-
height: 350px;
|
|
27
|
-
margin-bottom: 80px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.chartContainer div {
|
|
31
|
-
flex: 1;
|
|
32
|
-
max-width: 50%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
text-align: center;
|
|
35
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="coverage-header">
|
|
3
|
-
<h2 class="coverage-title">Roadmap Coverage</h2>
|
|
4
|
-
</div>
|
|
5
|
-
<div class="chartContainer">
|
|
6
|
-
<div>
|
|
7
|
-
<p>Product Areas</p>
|
|
8
|
-
<canvas id="chartCanvas"></canvas>
|
|
9
|
-
</div>
|
|
10
|
-
<div>
|
|
11
|
-
<p>Feature Areas</p>
|
|
12
|
-
<canvas id="barCanvas"></canvas>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|