@salesforcedevs/arch-components 1.20.17-alpha1 → 1.20.17-alpha10
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 +45 -2
- package/src/{modules/common → common}/context/context.ts +10 -10
- package/src/{modules/common → common}/effectAdapter/effectAdapter.ts +1 -1
- 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 -406
- 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/th/tbid/__tests__/__snapshots__/tbid.test.ts.snap +0 -3
- package/src/modules/th/tbid/__tests__/tbid.test.ts +0 -242
- package/src/modules/th/tbid/tbid.html +0 -1
- package/src/modules/th/tbid/tbid.stories.mdx +0 -25
- package/src/modules/th/tbid/tbid.ts +0 -215
- 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/__tests__/effectAdapter.test.ts +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/common → common}/reflectedElement/__tests__/reflectedElement.test.ts +0 -0
- /package/src/{modules/common → common}/reflectedElement/reflectedElement.ts +0 -0
- /package/src/{modules/common → common}/slot/__tests__/slot.test.ts +0 -0
- /package/src/{modules/common → common}/slot/slot.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/arch-components",
|
|
3
|
-
"version": "1.20.17-
|
|
3
|
+
"version": "1.20.17-alpha10",
|
|
4
4
|
"description": "Architecture Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -10,7 +10,50 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"dependencies": {
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@a11y/focus-trap": "^1.0.5",
|
|
15
|
+
"@popperjs/core": "^2.11.8",
|
|
16
|
+
"@salesforcedevs/docs-components": "1.18.0",
|
|
17
|
+
"@salesforcedevs/dw-components": "1.18.2",
|
|
18
|
+
"@salesforcedevs/dx-components": "1.18.4",
|
|
19
|
+
"@salesforcedevs/dx-css-variables": "0.3.43",
|
|
20
|
+
"@salesforcedevs/mrkt-components": "1.14.2",
|
|
21
|
+
"algolia-indexing": "^1.3.0",
|
|
22
|
+
"algoliasearch": "^4.22.1",
|
|
23
|
+
"chart.js": "^4.4.2",
|
|
24
|
+
"child-process": "^1.0.2",
|
|
25
|
+
"classnames": "^2.5.1",
|
|
26
|
+
"compression": "^1.7.4",
|
|
27
|
+
"connect": "^3.7.0",
|
|
28
|
+
"copy-dir": "^1.3.0",
|
|
29
|
+
"cors": "^2.8.5",
|
|
30
|
+
"cpx": "^1.5.0",
|
|
31
|
+
"crypto-js": "^4.2.0",
|
|
32
|
+
"date-fns": "^2.30.0",
|
|
33
|
+
"dotenv": "^10.0.0",
|
|
34
|
+
"esm": "^3.2.25",
|
|
35
|
+
"gray-matter": "^4.0.3",
|
|
36
|
+
"gulp": "^4.0.2",
|
|
37
|
+
"gulp-run-command": "^0.0.10",
|
|
38
|
+
"gulp-sass": "^5.1.0",
|
|
39
|
+
"helmet": "^4.6.0",
|
|
40
|
+
"i18n-js": "^3.9.2",
|
|
41
|
+
"ip": "^1.1.9",
|
|
42
|
+
"jsdom": "^18.1.1",
|
|
43
|
+
"jsonwebtoken": "^9.0.2",
|
|
44
|
+
"jspdf": "^2.5.1",
|
|
45
|
+
"lwc": "^6.3.3",
|
|
46
|
+
"lwr": "0.11.15",
|
|
47
|
+
"node-cron": "^3.0.3",
|
|
48
|
+
"node-fetch": "^3.3.2",
|
|
49
|
+
"perfect-express-sanitizer": "^2.0.2",
|
|
50
|
+
"promisify": "^0.0.3",
|
|
51
|
+
"rss": "^1.2.2",
|
|
52
|
+
"rss-to-json": "^2.1.1",
|
|
53
|
+
"sass": "^1.72.0",
|
|
54
|
+
"sharp": "^0.29.3",
|
|
55
|
+
"sitemap": "^7.1.1"
|
|
56
|
+
},
|
|
14
57
|
"devDependencies": {},
|
|
15
58
|
"volta": {
|
|
16
59
|
"node": "20.19.0",
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
|
|
10
10
|
import { EffectAdapter } from 'common/effectAdapter';
|
|
11
11
|
|
|
12
|
-
export interface ContextWireAdapter<Value, Config
|
|
13
|
-
extends WireAdapter<Config, Context> {
|
|
12
|
+
export interface ContextWireAdapter<Value, Config, Context>
|
|
13
|
+
extends WireAdapter<Value, Config, Context> {
|
|
14
14
|
value: Value;
|
|
15
15
|
}
|
|
16
|
-
export interface ContextWireAdapterConstructor<Value, Config
|
|
16
|
+
export interface ContextWireAdapterConstructor<Value, Config, Context> {
|
|
17
17
|
new (setValue: (value: Value) => void): ContextWireAdapter<
|
|
18
18
|
Value,
|
|
19
19
|
Config,
|
|
@@ -23,7 +23,7 @@ export interface ContextWireAdapterConstructor<Value, Config extends Record<stri
|
|
|
23
23
|
setDefaultValue(value: Value): void;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export function createContextAdapter<Value, Config
|
|
26
|
+
export function createContextAdapter<Value, Config, Context>(
|
|
27
27
|
initDefaultValue: () => Value,
|
|
28
28
|
schema: Record<keyof Context, string>
|
|
29
29
|
): ContextWireAdapterConstructor<Value, Config, Context> {
|
|
@@ -91,20 +91,20 @@ function compactConfig<T>(config?: T) {
|
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export function createBaseContextProviderElement<Value, Config
|
|
94
|
+
export function createBaseContextProviderElement<Value, Config, Context>(
|
|
95
95
|
adapterClass: ContextWireAdapterConstructor<Value, Config, Context>
|
|
96
96
|
) {
|
|
97
|
-
const contextualizer = createContextProvider(adapterClass
|
|
97
|
+
const contextualizer = createContextProvider(adapterClass);
|
|
98
98
|
|
|
99
99
|
return class ProviderElement extends BaseProvider<Context> {
|
|
100
100
|
public get contextualizer() {
|
|
101
|
-
return contextualizer
|
|
101
|
+
return contextualizer;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
class BaseProvider<Context extends
|
|
107
|
-
|
|
106
|
+
class BaseProvider<Context> extends LightningElement {
|
|
107
|
+
private consumers = new Set<ContextConsumer<Context>>();
|
|
108
108
|
|
|
109
109
|
public get contextualizer(): Contextualizer<Context> {
|
|
110
110
|
throw new Error('contextualizer not implenented');
|
|
@@ -113,7 +113,7 @@ class BaseProvider<Context extends Record<string, any>> extends LightningElement
|
|
|
113
113
|
@wire(EffectAdapter, {
|
|
114
114
|
localContext: '$localContext'
|
|
115
115
|
})
|
|
116
|
-
|
|
116
|
+
private updateConsumers({ localContext }: { localContext: Context }) {
|
|
117
117
|
for (let consumer of this.consumers) {
|
|
118
118
|
consumer.provide(localContext);
|
|
119
119
|
}
|
|
@@ -4,7 +4,7 @@ export type EffectAdapterConfig<T> = {};
|
|
|
4
4
|
|
|
5
5
|
export class EffectAdapter<T>
|
|
6
6
|
implements
|
|
7
|
-
WireAdapter<EffectAdapterConfig<T>,
|
|
7
|
+
WireAdapter<EffectAdapterConfig<T>, EffectAdapterConfig<T>, void>
|
|
8
8
|
{
|
|
9
9
|
constructor(private setValue: (value: EffectAdapterConfig<T>) => void) {}
|
|
10
10
|
|
|
@@ -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>
|
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
import { LightningElement, api, track } from 'lwc';
|
|
2
|
-
import { ProductArea, FeatureArea, RoadmapFeature } from './types';
|
|
3
|
-
|
|
4
|
-
export default class coverage extends LightningElement {
|
|
5
|
-
|
|
6
|
-
// get the inputs from the config
|
|
7
|
-
_portfolio: any;
|
|
8
|
-
_covered: any;
|
|
9
|
-
_selected: any;
|
|
10
|
-
|
|
11
|
-
// hold the coverage data
|
|
12
|
-
portfolioData: ProductArea[] = [];
|
|
13
|
-
roadmapData: RoadmapFeature[] = [];
|
|
14
|
-
totalProductAreas: number = 0;
|
|
15
|
-
totalFeatureAreas: number = 0;
|
|
16
|
-
paCoverageCount: number = 0;
|
|
17
|
-
faCoverageCount: number = 0;
|
|
18
|
-
paCoveragePct: number = 0;
|
|
19
|
-
faCoveragePct: number = 0;
|
|
20
|
-
|
|
21
|
-
// used to check if the chartjs script loaded
|
|
22
|
-
scriptLoaded = false;
|
|
23
|
-
|
|
24
|
-
// holds the chartjs components
|
|
25
|
-
donutChart: any;
|
|
26
|
-
barChart: any;
|
|
27
|
-
@track productAreaTitle: string = '';
|
|
28
|
-
@track featureAreaTitle: string = '';
|
|
29
|
-
|
|
30
|
-
// chart settings
|
|
31
|
-
xlightCloudBlue: string = '#eaf5fe';
|
|
32
|
-
lightCloudBlue: string = '#90d0fe';
|
|
33
|
-
medCloudBlue: string = '#0d9dda';
|
|
34
|
-
inactiveBg: string = '#dbdbdb';
|
|
35
|
-
inactiveHover: string = '#d3d3d3';
|
|
36
|
-
selectedPA: ProductArea | undefined;
|
|
37
|
-
|
|
38
|
-
constructor() {
|
|
39
|
-
super();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/// this function fires when a component is inserted into the DOM
|
|
43
|
-
/// we use this function to collect initial data and set up the page:
|
|
44
|
-
/// gets product and feature json data
|
|
45
|
-
/// gets roadmap feature data
|
|
46
|
-
/// adds the chartjs library
|
|
47
|
-
async connectedCallback() {
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
setupCharts() {
|
|
52
|
-
if (this._covered && this._portfolio) {
|
|
53
|
-
try {
|
|
54
|
-
|
|
55
|
-
this.portfolioData = [...this._portfolio] as ProductArea[];
|
|
56
|
-
this.portfolioData.sort((a, b) => a.name.localeCompare(b.name));
|
|
57
|
-
this.roadmapData = [...this._covered] as RoadmapFeature[];
|
|
58
|
-
|
|
59
|
-
this.totalProductAreas = this.portfolioData.length;
|
|
60
|
-
this.totalFeatureAreas = this.portfolioData.reduce((total, productArea) => {
|
|
61
|
-
return total + productArea.feature_areas.length;
|
|
62
|
-
}, 0);
|
|
63
|
-
|
|
64
|
-
// now update the coverage values in the portfolio data
|
|
65
|
-
this.paCoverageCount = this.portfolioData.filter(pa => pa.covered == true).length;
|
|
66
|
-
this.paCoveragePct = this.paCoverageCount / this.totalProductAreas * 100;
|
|
67
|
-
|
|
68
|
-
// add the chartsjs library to the dom
|
|
69
|
-
var script = document.createElement('script');
|
|
70
|
-
script.src = 'https://cdn.jsdelivr.net/npm/chart.js';
|
|
71
|
-
document.head.appendChild(script);
|
|
72
|
-
script.onload = () => {
|
|
73
|
-
this.scriptLoaded = true;
|
|
74
|
-
this.registerCenterLabelPlugin();
|
|
75
|
-
this.initializeProductAreaChart();
|
|
76
|
-
this.initializeFeatureAreaChart();
|
|
77
|
-
this.updateSelectedProductArea(this.donutChart);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
} catch (error: any) {
|
|
81
|
-
console.error("An error occurred getting the portfolio data:", error?.message || String(error));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/// set up the donut chart for product areas
|
|
87
|
-
initializeProductAreaChart() {
|
|
88
|
-
|
|
89
|
-
// Data for the donut chart
|
|
90
|
-
const dataDonut = {
|
|
91
|
-
labels: this.portfolioData.map(area => area.name),
|
|
92
|
-
datasets: [{
|
|
93
|
-
data: Array.from({ length: this.totalProductAreas }, () => 100/this.totalProductAreas),
|
|
94
|
-
backgroundColor: this.portfolioData.map(area => area.covered ? area.colors.light : this.inactiveBg),
|
|
95
|
-
hoverBackgroundColor: this.portfolioData.map(area => area.covered ? area.colors.xlight : this.inactiveHover),
|
|
96
|
-
hoverOffset: 10,
|
|
97
|
-
cutout: "25%"
|
|
98
|
-
}]
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
// options for donut chart
|
|
102
|
-
const optionsDonut = {
|
|
103
|
-
responsive: true,
|
|
104
|
-
maintainAspectRatio: false,
|
|
105
|
-
autoPadding: false,
|
|
106
|
-
hover: false,
|
|
107
|
-
layout: {
|
|
108
|
-
padding: {
|
|
109
|
-
bottom: 15
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
plugins: {
|
|
113
|
-
legend: {
|
|
114
|
-
display: true,
|
|
115
|
-
position: "left",
|
|
116
|
-
onClick: () => {}
|
|
117
|
-
},
|
|
118
|
-
title: {
|
|
119
|
-
display: false,
|
|
120
|
-
anchor: 'center',
|
|
121
|
-
clamp: true,
|
|
122
|
-
align: 'center',
|
|
123
|
-
fullSize: true,
|
|
124
|
-
font: {
|
|
125
|
-
family: "Salesforce Sans",
|
|
126
|
-
size: 15,
|
|
127
|
-
weight: 'normal'
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
tooltip: {
|
|
131
|
-
enabled: true,
|
|
132
|
-
label: {
|
|
133
|
-
display: false
|
|
134
|
-
},
|
|
135
|
-
callbacks: {
|
|
136
|
-
title: function(context: any) {
|
|
137
|
-
return context.label;
|
|
138
|
-
},
|
|
139
|
-
label: function(context: any) {
|
|
140
|
-
return '';
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
// config for donut
|
|
148
|
-
const configDonut = {
|
|
149
|
-
type: 'doughnut',
|
|
150
|
-
data: dataDonut,
|
|
151
|
-
options: optionsDonut
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// Create the Donut chart
|
|
155
|
-
const chartCanvas = this.template.querySelector("#chartCanvas") as HTMLCanvasElement;
|
|
156
|
-
if (chartCanvas) {
|
|
157
|
-
this.donutChart = new (window as any).Chart(chartCanvas, configDonut);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// set up the plugin to place the % at the center of the donut
|
|
162
|
-
registerCenterLabelPlugin() {
|
|
163
|
-
(window as any).Chart.register({
|
|
164
|
-
id: 'center-label',
|
|
165
|
-
afterDatasetsDraw: function(chart: any) {
|
|
166
|
-
if (chart.config.type == 'doughnut') {
|
|
167
|
-
var text = chart.config.options.plugins.title.text;
|
|
168
|
-
const ctx = chart.ctx;
|
|
169
|
-
ctx.save();
|
|
170
|
-
const x = chart.getDatasetMeta(0).data[0].x;
|
|
171
|
-
const y = chart.getDatasetMeta(0).data[0].y;
|
|
172
|
-
ctx.textAlign = 'center';
|
|
173
|
-
ctx.textBaseline = 'middle';
|
|
174
|
-
ctx.font = '18px Salesforce Sans';
|
|
175
|
-
ctx.fillText(text, x, y);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// build the datasets for the bar chart when All Product Areas is selected
|
|
182
|
-
getFeatureAreaChartForEntirePortfolio() {
|
|
183
|
-
return {
|
|
184
|
-
labels: this.portfolioData.map(pa => pa.name),
|
|
185
|
-
datasets: [{
|
|
186
|
-
data: this.portfolioData.map(pa => pa.feature_area_coverage),
|
|
187
|
-
backgroundColor: this.portfolioData.map(pa => (pa.covered) ? pa.colors.light : this.inactiveBg)
|
|
188
|
-
}]
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// build the datasets for the bar chart when one Prod Area is selected
|
|
193
|
-
getFeatureAreaChartForSelectedProductArea() {
|
|
194
|
-
if (!this.selectedPA) {
|
|
195
|
-
return this.getFeatureAreaChartForEntirePortfolio();
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
let dataVal = 100/this.selectedPA.feature_areas.length;
|
|
199
|
-
return {
|
|
200
|
-
labels: [`${this.selectedPA.feature_areas_covered} of ${this.selectedPA.feature_areas.length}`],
|
|
201
|
-
datasets: this.selectedPA.feature_areas.map(fa => ({
|
|
202
|
-
data: [dataVal],
|
|
203
|
-
label: fa.name,
|
|
204
|
-
backgroundColor: (fa.covered) ? this.selectedPA!.colors.light : this.inactiveBg,
|
|
205
|
-
borderWidth: 2,
|
|
206
|
-
borderColor: 'white'
|
|
207
|
-
}))
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// set up the bar chart for feature area coverage
|
|
212
|
-
initializeFeatureAreaChart() {
|
|
213
|
-
|
|
214
|
-
// options for feature bar
|
|
215
|
-
const optionsBar = {
|
|
216
|
-
indexAxis: 'y',
|
|
217
|
-
hover: false,
|
|
218
|
-
scales: {
|
|
219
|
-
x: {
|
|
220
|
-
display: true,
|
|
221
|
-
begingAtZero: true,
|
|
222
|
-
min: 0,
|
|
223
|
-
max: 100,
|
|
224
|
-
stacked: true,
|
|
225
|
-
ticks: {
|
|
226
|
-
// forces step size to be 50 units
|
|
227
|
-
stepSize: 25,
|
|
228
|
-
callback: function (value: any) {
|
|
229
|
-
return value + '%'; // Appending '%' to the tick value
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
y: {
|
|
234
|
-
stacked: true,
|
|
235
|
-
display: true,
|
|
236
|
-
begingAtZero: true,
|
|
237
|
-
grouped: false
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
plugins: {
|
|
241
|
-
legend: {
|
|
242
|
-
display: false
|
|
243
|
-
},
|
|
244
|
-
title: {
|
|
245
|
-
display: false,
|
|
246
|
-
text: `${this.faCoveragePct.toFixed(0)}% of all feature areas are in this roadmap`,
|
|
247
|
-
fullSize: true,
|
|
248
|
-
align: 'end',
|
|
249
|
-
font: {
|
|
250
|
-
family: "Salesforce Sans",
|
|
251
|
-
size: 16,
|
|
252
|
-
weight: 'normal'
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
,tooltip: {
|
|
256
|
-
enabled: true,
|
|
257
|
-
label: {
|
|
258
|
-
display: false
|
|
259
|
-
},
|
|
260
|
-
callbacks: {
|
|
261
|
-
title: function(context: any) {
|
|
262
|
-
if (context[0].label.includes(' of ')){
|
|
263
|
-
return context[0].dataset.label;
|
|
264
|
-
} else {
|
|
265
|
-
return context.label;
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
label: function(context: any) {
|
|
269
|
-
if (context.dataset.label) {
|
|
270
|
-
return '';
|
|
271
|
-
} else {
|
|
272
|
-
return `${context.formattedValue}%`;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
// config for features bar
|
|
281
|
-
const configBar = {
|
|
282
|
-
type: 'bar',
|
|
283
|
-
data: this.getFeatureAreaChartForEntirePortfolio(),
|
|
284
|
-
options: optionsBar
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
const barCanvas = this.template.querySelector("#barCanvas") as HTMLCanvasElement;
|
|
288
|
-
if (barCanvas) {
|
|
289
|
-
this.featureAreaTitle = `${this.faCoveragePct.toFixed(0)}% of all feature areas are in this roadmap`;
|
|
290
|
-
this.barChart = new (window as any).Chart(barCanvas, configBar);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// handle product area selection change event
|
|
296
|
-
updateSelectedProductArea(chart: any) {
|
|
297
|
-
|
|
298
|
-
// reset the Donut chart
|
|
299
|
-
if (chart.getActiveElements().length > 0) {
|
|
300
|
-
chart.setActiveElements([]);
|
|
301
|
-
chart.tooltip.setActiveElements([]);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
// now lets mimic a hover based on the selected product area
|
|
305
|
-
// first get the selected product area
|
|
306
|
-
let selectedIndex = -1;
|
|
307
|
-
selectedIndex = chart.config.data.labels.indexOf(this._selected) as number;
|
|
308
|
-
|
|
309
|
-
// check if there is a selection
|
|
310
|
-
if (selectedIndex != -1) {
|
|
311
|
-
// hide the center value
|
|
312
|
-
chart.config.options.plugins.title.text = '';
|
|
313
|
-
|
|
314
|
-
// now lets set the active settings on the selected prod area
|
|
315
|
-
this.selectedPA = this.portfolioData.find(area => area.name === this._selected);
|
|
316
|
-
if (this.selectedPA) {
|
|
317
|
-
|
|
318
|
-
// update the non active items
|
|
319
|
-
chart.config.data.datasets[0].backgroundColor = this.portfolioData.map(area => area.covered ? area.colors.xlight : this.inactiveBg);
|
|
320
|
-
chart.config.data.datasets[0].backgroundColor[selectedIndex] = this.selectedPA.colors.light;
|
|
321
|
-
chart.legend.legendItems[selectedIndex].fillStyle = this.selectedPA.colors.light;
|
|
322
|
-
|
|
323
|
-
// update the selected offset and tooltip
|
|
324
|
-
chart.setActiveElements([
|
|
325
|
-
{
|
|
326
|
-
datasetIndex: 0,
|
|
327
|
-
index: selectedIndex
|
|
328
|
-
}
|
|
329
|
-
]);
|
|
330
|
-
chart.tooltip.setActiveElements([
|
|
331
|
-
{
|
|
332
|
-
datasetIndex: 0,
|
|
333
|
-
index: selectedIndex
|
|
334
|
-
}
|
|
335
|
-
]);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
} else {
|
|
339
|
-
// show the center value
|
|
340
|
-
chart.config.options.plugins.title.text = `${this.paCoveragePct.toFixed(0)}%`;
|
|
341
|
-
// update the all the items to active
|
|
342
|
-
chart.config.data.datasets[0].backgroundColor = this.portfolioData.map(area => area.covered ? area.colors.light : this.inactiveBg);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
// now update the donut chart and the bar chart
|
|
346
|
-
chart.update();
|
|
347
|
-
this.updateSelectedFeatureArea(this.barChart);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
// update the bar chart when product area selection changes
|
|
351
|
-
updateSelectedFeatureArea(chart: any) {
|
|
352
|
-
|
|
353
|
-
// reset the chart
|
|
354
|
-
if (chart.getActiveElements().length > 0) {
|
|
355
|
-
chart.setActiveElements([]);
|
|
356
|
-
chart.tooltip.setActiveElements([]);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
// check if there is a product area selected
|
|
360
|
-
if (this.selectedPA && this._selected != '') {
|
|
361
|
-
chart.config.data = this.getFeatureAreaChartForSelectedProductArea();
|
|
362
|
-
} else {
|
|
363
|
-
chart.config.data = this.getFeatureAreaChartForEntirePortfolio();
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
// always update the bar
|
|
367
|
-
chart.update();
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/// Below is the getters and setters for inputs
|
|
372
|
-
@api
|
|
373
|
-
set portfolio(value: any) {
|
|
374
|
-
if(this._portfolio !== value && value.length > 0) {
|
|
375
|
-
this._portfolio = [...value];
|
|
376
|
-
this.setupCharts();
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
get portfolio() {
|
|
380
|
-
return this._portfolio;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
@api
|
|
384
|
-
set covered(value: any) {
|
|
385
|
-
if(this._covered !== value && value.length > 0) {
|
|
386
|
-
this._covered = [...value];
|
|
387
|
-
this.setupCharts();
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
get covered() {
|
|
391
|
-
return this._covered;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
@api
|
|
395
|
-
set selected(value: any) {
|
|
396
|
-
if(this._selected !== value) {
|
|
397
|
-
this._selected = value;
|
|
398
|
-
if (this.scriptLoaded) {
|
|
399
|
-
this.updateSelectedProductArea(this.donutChart);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
get selected() {
|
|
404
|
-
return this._selected;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type ProductArea = {
|
|
2
|
-
name: string;
|
|
3
|
-
colors: Colors;
|
|
4
|
-
covered: boolean;
|
|
5
|
-
feature_areas_covered: number;
|
|
6
|
-
feature_area_coverage: number;
|
|
7
|
-
feature_areas: FeatureArea[];
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type FeatureArea = {
|
|
11
|
-
name: string;
|
|
12
|
-
covered: boolean;
|
|
13
|
-
productArea: string;
|
|
14
|
-
activeColor: string;
|
|
15
|
-
inactiveColor: string;
|
|
16
|
-
features: string[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type Colors = {
|
|
20
|
-
xlight: string;
|
|
21
|
-
light: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type RoadmapFeature = {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@import 'tds/reset';
|
|
2
|
-
|
|
3
|
-
.section-title {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.section-content {
|
|
9
|
-
display: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.is-open .section-content {
|
|
13
|
-
padding-top: 0.5rem;
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.icon {
|
|
18
|
-
transform: rotate(-90deg);
|
|
19
|
-
transition: transform 300ms;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.is-open .icon {
|
|
23
|
-
transform: rotate(0deg);
|
|
24
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class={sectionClass}>
|
|
3
|
-
<h3 class="section-title">
|
|
4
|
-
<tds-button-icon
|
|
5
|
-
size="small"
|
|
6
|
-
aria-label="Expand/Collapse"
|
|
7
|
-
variant="bare"
|
|
8
|
-
aria-controls="expand"
|
|
9
|
-
aria-expanded={_isOpen}
|
|
10
|
-
onclick={handleExpandClick}
|
|
11
|
-
>
|
|
12
|
-
<tds-icon class="icon" size="small" symbol="switch"></tds-icon>
|
|
13
|
-
</tds-button-icon>
|
|
14
|
-
<slot name="title"></slot>
|
|
15
|
-
</h3>
|
|
16
|
-
<div aria-hidden={isClosed} class="section-content" id="expand">
|
|
17
|
-
<slot></slot>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|