@salesforcedevs/arch-components 1.20.17-alpha1 → 1.20.17-alpha11

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.
Files changed (363) hide show
  1. package/lwc.config.json +3 -1
  2. package/package.json +45 -2
  3. package/src/modules/{common → arch}/context/context.ts +10 -10
  4. package/src/modules/common/effectAdapter/__tests__/effectAdapter.test.ts +0 -12
  5. package/src/modules/common/effectAdapter/effectAdapter.html +0 -1
  6. package/src/modules/common/effectAdapter/effectAdapter.ts +0 -18
  7. package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.html +0 -3
  8. package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.ts +0 -7
  9. package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +0 -3
  10. package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +0 -18
  11. package/src/modules/common/reflectedElement/__tests__/reflectedElement.test.ts +0 -75
  12. package/src/modules/common/reflectedElement/reflectedElement.ts +0 -50
  13. package/src/modules/common/slot/__tests__/slot.test.ts +0 -96
  14. package/src/modules/common/slot/slot.ts +0 -20
  15. package/src/modules/sa/coverage/coverage.css +0 -35
  16. package/src/modules/sa/coverage/coverage.html +0 -15
  17. package/src/modules/sa/coverage/coverage.ts +0 -406
  18. package/src/modules/sa/coverage/types.d.ts +0 -26
  19. package/src/modules/sa/expandableSection/expandableSection.css +0 -24
  20. package/src/modules/sa/expandableSection/expandableSection.html +0 -20
  21. package/src/modules/sa/expandableSection/expandableSection.stories.ts +0 -37
  22. package/src/modules/sa/expandableSection/expandableSection.ts +0 -24
  23. package/src/modules/sa/explorer/explorer.css +0 -303
  24. package/src/modules/sa/explorer/explorer.html +0 -403
  25. package/src/modules/sa/explorer/explorer.ts +0 -664
  26. package/src/modules/sa/explorer/types.d.ts +0 -60
  27. package/src/modules/sa/gallery/gallery.css +0 -358
  28. package/src/modules/sa/gallery/gallery.html +0 -65
  29. package/src/modules/sa/gallery/gallery.ts +0 -300
  30. package/src/modules/sa/gallery/types.d.ts +0 -35
  31. package/src/modules/sa/socialShare/socialShare.css +0 -49
  32. package/src/modules/sa/socialShare/socialShare.html +0 -56
  33. package/src/modules/sa/socialShare/socialShare.ts +0 -29
  34. package/src/modules/shared/a11y/a11y.ts +0 -25
  35. package/src/modules/shared/children/children.ts +0 -29
  36. package/src/modules/shared/color/color.ts +0 -52
  37. package/src/modules/shared/debounce/debounce.ts +0 -32
  38. package/src/modules/shared/dialog/dialog.ts +0 -154
  39. package/src/modules/shared/elements/__tests__/overflow.test.ts +0 -39
  40. package/src/modules/shared/elements/overflow.ts +0 -71
  41. package/src/modules/shared/fetch/fetch.ts +0 -52
  42. package/src/modules/shared/helpers/helpers.ts +0 -141
  43. package/src/modules/shared/i18n/i18n.ts +0 -74
  44. package/src/modules/shared/labels/__tests__/helpers.test.ts +0 -107
  45. package/src/modules/shared/labels/__tests__/pointHelpers.test.ts +0 -33
  46. package/src/modules/shared/labels/__tests__/timeHelpers.test.ts +0 -89
  47. package/src/modules/shared/labels/helpers.ts +0 -23
  48. package/src/modules/shared/labels/pointHelpers.ts +0 -47
  49. package/src/modules/shared/labels/timeHelpers.ts +0 -182
  50. package/src/modules/shared/labels/types.d.ts +0 -5
  51. package/src/modules/shared/logger/logger.ts +0 -33
  52. package/src/modules/shared/menu/menu.ts +0 -239
  53. package/src/modules/shared/overflow/__tests__/overflow.test.ts +0 -39
  54. package/src/modules/shared/overflow/overflow.ts +0 -71
  55. package/src/modules/shared/polling-request.ts +0 -97
  56. package/src/modules/shared/testutils.ts +0 -118
  57. package/src/modules/shared/track/track.ts +0 -23
  58. package/src/modules/shared/trailhead.ts +0 -123
  59. package/src/modules/shared/types.d.ts +0 -1
  60. package/src/modules/shared/useEffectAttr.ts +0 -16
  61. package/src/modules/shared/withState.ts +0 -21
  62. package/src/modules/tds/appLauncher/__fixtures__/index.ts +0 -34
  63. package/src/modules/tds/appLauncher/__tests__/appLauncher.test.ts +0 -119
  64. package/src/modules/tds/appLauncher/appLauncher.css +0 -65
  65. package/src/modules/tds/appLauncher/appLauncher.html +0 -38
  66. package/src/modules/tds/appLauncher/appLauncher.stories.ts +0 -39
  67. package/src/modules/tds/appLauncher/appLauncher.ts +0 -79
  68. package/src/modules/tds/appLauncher/types.ts +0 -8
  69. package/src/modules/tds/avatar/__tests__/avatar.test.ts +0 -11
  70. package/src/modules/tds/avatar/avatar.css +0 -77
  71. package/src/modules/tds/avatar/avatar.html +0 -36
  72. package/src/modules/tds/avatar/avatar.stories.ts +0 -64
  73. package/src/modules/tds/avatar/avatar.ts +0 -50
  74. package/src/modules/tds/badge/__tests__/badge.test.js +0 -11
  75. package/src/modules/tds/badge/badge.css +0 -22
  76. package/src/modules/tds/badge/badge.html +0 -5
  77. package/src/modules/tds/badge/badge.stories.ts +0 -10
  78. package/src/modules/tds/badge/badge.ts +0 -9
  79. package/src/modules/tds/button/__tests__/button.test.ts +0 -52
  80. package/src/modules/tds/button/button.css +0 -1
  81. package/src/modules/tds/button/button.html +0 -20
  82. package/src/modules/tds/button/button.stories.js +0 -54
  83. package/src/modules/tds/button/button.ts +0 -59
  84. package/src/modules/tds/buttonIcon/__tests__/buttonIcon.test.ts +0 -17
  85. package/src/modules/tds/buttonIcon/buttonIcon.css +0 -1
  86. package/src/modules/tds/buttonIcon/buttonIcon.html +0 -12
  87. package/src/modules/tds/buttonIcon/buttonIcon.stories.js +0 -38
  88. package/src/modules/tds/buttonIcon/buttonIcon.ts +0 -6
  89. package/src/modules/tds/buttonIconLink/buttonIconLink.css +0 -1
  90. package/src/modules/tds/buttonIconLink/buttonIconLink.html +0 -14
  91. package/src/modules/tds/buttonIconLink/buttonIconLink.stories.ts +0 -32
  92. package/src/modules/tds/buttonIconLink/buttonIconLink.ts +0 -9
  93. package/src/modules/tds/buttonLink/__tests__/buttonLink.test.ts +0 -17
  94. package/src/modules/tds/buttonLink/buttonLink.css +0 -1
  95. package/src/modules/tds/buttonLink/buttonLink.html +0 -19
  96. package/src/modules/tds/buttonLink/buttonLink.stories.js +0 -24
  97. package/src/modules/tds/buttonLink/buttonLink.ts +0 -8
  98. package/src/modules/tds/buttonStyles/buttonStyles.css +0 -232
  99. package/src/modules/tds/childSummary/__tests__/childSummary.test.js +0 -99
  100. package/src/modules/tds/childSummary/childSummary.css +0 -74
  101. package/src/modules/tds/childSummary/childSummary.html +0 -38
  102. package/src/modules/tds/childSummary/childSummary.stories.ts +0 -40
  103. package/src/modules/tds/childSummary/childSummary.ts +0 -63
  104. package/src/modules/tds/childSummary/types.d.ts +0 -10
  105. package/src/modules/tds/contentChildListItem/__tests__/contentChildListItem.test.ts +0 -32
  106. package/src/modules/tds/contentChildListItem/contentChildListItem.css +0 -1
  107. package/src/modules/tds/contentChildListItem/contentChildListItem.html +0 -10
  108. package/src/modules/tds/contentChildListItem/contentChildListItem.stories.ts +0 -46
  109. package/src/modules/tds/contentChildListItem/contentChildListItem.ts +0 -34
  110. package/src/modules/tds/contentIcon/contentIcon.css +0 -47
  111. package/src/modules/tds/contentIcon/contentIcon.html +0 -15
  112. package/src/modules/tds/contentIcon/contentIcon.stories.js +0 -110
  113. package/src/modules/tds/contentIcon/contentIcon.ts +0 -66
  114. package/src/modules/tds/contextAdapter/__tests__/contextAdapter.test.ts +0 -76
  115. package/src/modules/tds/contextAdapter/constants.ts +0 -1
  116. package/src/modules/tds/contextAdapter/contextAdapter.html +0 -1
  117. package/src/modules/tds/contextAdapter/contextAdapter.ts +0 -54
  118. package/src/modules/tds/dialogStyles/dialogStyles.css +0 -90
  119. package/src/modules/tds/footerLinks/__tests__/__snapshots__/footerLinks.test.ts.snap +0 -3
  120. package/src/modules/tds/footerLinks/__tests__/footerLinks.test.ts +0 -142
  121. package/src/modules/tds/footerLinks/footerLinks.css +0 -80
  122. package/src/modules/tds/footerLinks/footerLinks.html +0 -30
  123. package/src/modules/tds/footerLinks/footerLinks.ts +0 -48
  124. package/src/modules/tds/footerLinks/types.ts +0 -11
  125. package/src/modules/tds/footerMfe/footerMfe.html +0 -3
  126. package/src/modules/tds/footerMfe/footerMfe.ts +0 -19
  127. package/src/modules/tds/headerAvatar/__tests__/headerAvatar.test.ts +0 -43
  128. package/src/modules/tds/headerAvatar/headerAvatar.css +0 -45
  129. package/src/modules/tds/headerAvatar/headerAvatar.html +0 -25
  130. package/src/modules/tds/headerAvatar/headerAvatar.ts +0 -15
  131. package/src/modules/tds/headerHelpButton/__tests__/headerHelpButton.test.ts +0 -32
  132. package/src/modules/tds/headerHelpButton/headerHelpButton.css +0 -14
  133. package/src/modules/tds/headerHelpButton/headerHelpButton.html +0 -19
  134. package/src/modules/tds/headerHelpButton/headerHelpButton.ts +0 -12
  135. package/src/modules/tds/heading/__tests__/heading.test.ts +0 -50
  136. package/src/modules/tds/heading/heading.css +0 -1
  137. package/src/modules/tds/heading/heading.html +0 -9
  138. package/src/modules/tds/heading/heading.stories.ts +0 -36
  139. package/src/modules/tds/heading/heading.ts +0 -36
  140. package/src/modules/tds/icon/icon.css +0 -28
  141. package/src/modules/tds/icon/icon.html +0 -17
  142. package/src/modules/tds/icon/icon.stories.js +0 -18
  143. package/src/modules/tds/icon/icon.ts +0 -79
  144. package/src/modules/tds/input/__tests__/input.test.ts +0 -41
  145. package/src/modules/tds/input/input.css +0 -34
  146. package/src/modules/tds/input/input.html +0 -12
  147. package/src/modules/tds/input/input.stories.ts +0 -25
  148. package/src/modules/tds/input/input.ts +0 -41
  149. package/src/modules/tds/instrumentation/instrumentation.css +0 -0
  150. package/src/modules/tds/instrumentation/instrumentation.html +0 -1
  151. package/src/modules/tds/instrumentation/instrumentation.ts +0 -113
  152. package/src/modules/tds/pbCard/pbCard.css +0 -28
  153. package/src/modules/tds/pbCard/pbCard.html +0 -21
  154. package/src/modules/tds/pbCard/pbCard.ts +0 -18
  155. package/src/modules/tds/pill/__tests__/pill.test.ts +0 -56
  156. package/src/modules/tds/pill/pill.css +0 -70
  157. package/src/modules/tds/pill/pill.html +0 -17
  158. package/src/modules/tds/pill/pill.stories.ts +0 -41
  159. package/src/modules/tds/pill/pill.ts +0 -34
  160. package/src/modules/tds/progressBar/__tests__/progressBar.test.js +0 -11
  161. package/src/modules/tds/progressBar/progressBar.css +0 -42
  162. package/src/modules/tds/progressBar/progressBar.html +0 -14
  163. package/src/modules/tds/progressBar/progressBar.stories.ts +0 -24
  164. package/src/modules/tds/progressBar/progressBar.ts +0 -14
  165. package/src/modules/tds/radio/__tests__/radio.test.ts +0 -29
  166. package/src/modules/tds/radio/radio.css +0 -89
  167. package/src/modules/tds/radio/radio.html +0 -17
  168. package/src/modules/tds/radio/radio.stories.ts +0 -31
  169. package/src/modules/tds/radio/radio.ts +0 -32
  170. package/src/modules/tds/reset/reset.css +0 -39
  171. package/src/modules/tds/search/__fixtures__/index.ts +0 -32
  172. package/src/modules/tds/search/__tests__/search.test.ts +0 -235
  173. package/src/modules/tds/search/lib/__tests__/__snapshots__/listbox.test.ts.snap +0 -115
  174. package/src/modules/tds/search/lib/__tests__/listbox.test.ts +0 -192
  175. package/src/modules/tds/search/lib/listbox.ts +0 -209
  176. package/src/modules/tds/search/search.css +0 -122
  177. package/src/modules/tds/search/search.html +0 -21
  178. package/src/modules/tds/search/search.stories.ts +0 -20
  179. package/src/modules/tds/search/search.ts +0 -107
  180. package/src/modules/tds/search/types.d.ts +0 -22
  181. package/src/modules/tds/searchList/searchList.css +0 -120
  182. package/src/modules/tds/searchList/searchList.html +0 -43
  183. package/src/modules/tds/searchList/searchList.stories.ts +0 -10
  184. package/src/modules/tds/searchList/searchList.ts +0 -53
  185. package/src/modules/tds/select/__tests__/select.test.ts +0 -150
  186. package/src/modules/tds/select/select.css +0 -42
  187. package/src/modules/tds/select/select.html +0 -24
  188. package/src/modules/tds/select/select.stories.ts +0 -59
  189. package/src/modules/tds/select/select.ts +0 -60
  190. package/src/modules/tds/spinner/__tests__/spinner.test.ts +0 -11
  191. package/src/modules/tds/spinner/spinner.css +0 -194
  192. package/src/modules/tds/spinner/spinner.html +0 -9
  193. package/src/modules/tds/spinner/spinner.stories.ts +0 -20
  194. package/src/modules/tds/spinner/spinner.ts +0 -15
  195. package/src/modules/tds/styles/styles.css +0 -24
  196. package/src/modules/tds/summary/__tests__/summary.test.ts +0 -135
  197. package/src/modules/tds/summary/summary.css +0 -135
  198. package/src/modules/tds/summary/summary.html +0 -69
  199. package/src/modules/tds/summary/summary.stories.js +0 -148
  200. package/src/modules/tds/summary/summary.ts +0 -95
  201. package/src/modules/tds/tab/__tests__/tab.test.ts +0 -25
  202. package/src/modules/tds/tab/tab.css +0 -3
  203. package/src/modules/tds/tab/tab.html +0 -5
  204. package/src/modules/tds/tab/tab.ts +0 -46
  205. package/src/modules/tds/tabset/__tests__/tabset.test.ts +0 -108
  206. package/src/modules/tds/tabset/tabset.css +0 -112
  207. package/src/modules/tds/tabset/tabset.html +0 -63
  208. package/src/modules/tds/tabset/tabset.stories.ts +0 -32
  209. package/src/modules/tds/tabset/tabset.ts +0 -232
  210. package/src/modules/tds/themeProvider/themeProvider.css +0 -502
  211. package/src/modules/tds/themeProvider/themeProvider.html +0 -3
  212. package/src/modules/tds/themeProvider/themeProvider.ts +0 -37
  213. package/src/modules/tds/tile/tile.css +0 -23
  214. package/src/modules/tds/tile/tile.html +0 -5
  215. package/src/modules/tds/tile/tile.stories.js +0 -14
  216. package/src/modules/tds/tile/tile.ts +0 -12
  217. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.html +0 -1
  218. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.ts +0 -47
  219. package/src/modules/th/contextAdapter/__tests__/contextAdapter.test.ts +0 -104
  220. package/src/modules/th/contextAdapter/contextAdapter.html +0 -1
  221. package/src/modules/th/contextAdapter/contextAdapter.ts +0 -49
  222. package/src/modules/th/favoriteButton/__tests__/favoriteButton.test.ts +0 -56
  223. package/src/modules/th/favoriteButton/favoriteButton.css +0 -3
  224. package/src/modules/th/favoriteButton/favoriteButton.html +0 -15
  225. package/src/modules/th/favoriteButton/favoriteButton.stories.js +0 -30
  226. package/src/modules/th/favoriteButton/favoriteButton.ts +0 -84
  227. package/src/modules/th/favoriteButton/mocks/index.ts +0 -12
  228. package/src/modules/th/search/__fixtures__/index.ts +0 -14
  229. package/src/modules/th/search/__tests__/search.test.ts +0 -233
  230. package/src/modules/th/search/constants.ts +0 -2
  231. package/src/modules/th/search/mocks/index.ts +0 -30
  232. package/src/modules/th/search/mocks/responses.ts +0 -54
  233. package/src/modules/th/search/search.css +0 -4
  234. package/src/modules/th/search/search.html +0 -12
  235. package/src/modules/th/search/search.ts +0 -172
  236. package/src/modules/th/search/types.d.ts +0 -29
  237. package/src/modules/th/tbid/__tests__/__snapshots__/tbid.test.ts.snap +0 -3
  238. package/src/modules/th/tbid/__tests__/tbid.test.ts +0 -242
  239. package/src/modules/th/tbid/tbid.html +0 -1
  240. package/src/modules/th/tbid/tbid.stories.mdx +0 -25
  241. package/src/modules/th/tbid/tbid.ts +0 -215
  242. package/src/modules/tm/card/__tests__/card.test.ts +0 -65
  243. package/src/modules/tm/card/card.css +0 -131
  244. package/src/modules/tm/card/card.html +0 -81
  245. package/src/modules/tm/card/card.ts +0 -269
  246. package/src/modules/tm/cardBase/cardBase.css +0 -11
  247. package/src/modules/tm/cardGridA/cardGridA.css +0 -11
  248. package/src/modules/tm/cardGridA/cardGridA.html +0 -21
  249. package/src/modules/tm/cardGridA/cardGridA.stories.js +0 -107
  250. package/src/modules/tm/cardGridA/cardGridA.ts +0 -24
  251. package/src/modules/tm/cardGridB/cardGridB.css +0 -88
  252. package/src/modules/tm/cardGridB/cardGridB.html +0 -20
  253. package/src/modules/tm/cardGridB/cardGridB.stories.js +0 -58
  254. package/src/modules/tm/cardGridB/cardGridB.ts +0 -19
  255. package/src/modules/tm/cardGridC/cardGridC.css +0 -24
  256. package/src/modules/tm/cardGridC/cardGridC.html +0 -22
  257. package/src/modules/tm/cardGridC/cardGridC.stories.js +0 -42
  258. package/src/modules/tm/cardGridC/cardGridC.ts +0 -11
  259. package/src/modules/tm/cardGridD/cardGridD.css +0 -17
  260. package/src/modules/tm/cardGridD/cardGridD.html +0 -20
  261. package/src/modules/tm/cardGridD/cardGridD.stories.js +0 -34
  262. package/src/modules/tm/cardGridD/cardGridD.ts +0 -7
  263. package/src/modules/tm/cardNew/cardNew.css +0 -31
  264. package/src/modules/tm/cardNew/cardNew.html +0 -29
  265. package/src/modules/tm/cardNew/cardNew.ts +0 -66
  266. package/src/modules/tm/content/__fixtures__/index.ts +0 -884
  267. package/src/modules/tm/content/__tests__/content.test.ts +0 -95
  268. package/src/modules/tm/content/content.css +0 -641
  269. package/src/modules/tm/content/content.html +0 -53
  270. package/src/modules/tm/content/content.stories.js +0 -14
  271. package/src/modules/tm/content/content.ts +0 -171
  272. package/src/modules/tm/endCapA/__tests__/endCapA.test.ts +0 -52
  273. package/src/modules/tm/endCapA/endCapA.css +0 -64
  274. package/src/modules/tm/endCapA/endCapA.html +0 -21
  275. package/src/modules/tm/endCapA/endCapA.stories.js +0 -37
  276. package/src/modules/tm/endCapA/endCapA.ts +0 -23
  277. package/src/modules/tm/eventsA/eventsA.css +0 -107
  278. package/src/modules/tm/eventsA/eventsA.html +0 -26
  279. package/src/modules/tm/eventsA/eventsA.stories.js +0 -51
  280. package/src/modules/tm/eventsA/eventsA.ts +0 -48
  281. package/src/modules/tm/faqA/faqA.css +0 -87
  282. package/src/modules/tm/faqA/faqA.html +0 -27
  283. package/src/modules/tm/faqA/faqA.stories.js +0 -25
  284. package/src/modules/tm/faqA/faqA.ts +0 -40
  285. package/src/modules/tm/featureGridA/__tests__/featureGridA.test.ts +0 -116
  286. package/src/modules/tm/featureGridA/featureGridA.css +0 -95
  287. package/src/modules/tm/featureGridA/featureGridA.html +0 -34
  288. package/src/modules/tm/featureGridA/featureGridA.stories.js +0 -45
  289. package/src/modules/tm/featureGridA/featureGridA.ts +0 -59
  290. package/src/modules/tm/footnote/footnote.css +0 -28
  291. package/src/modules/tm/footnote/footnote.html +0 -3
  292. package/src/modules/tm/footnote/footnote.stories.js +0 -29
  293. package/src/modules/tm/footnote/footnote.ts +0 -35
  294. package/src/modules/tm/heroA/__tests__/heroA.test.ts +0 -51
  295. package/src/modules/tm/heroA/heroA.css +0 -116
  296. package/src/modules/tm/heroA/heroA.html +0 -27
  297. package/src/modules/tm/heroA/heroA.stories.js +0 -49
  298. package/src/modules/tm/heroA/heroA.ts +0 -56
  299. package/src/modules/tm/heroB/heroB.css +0 -78
  300. package/src/modules/tm/heroB/heroB.html +0 -26
  301. package/src/modules/tm/heroB/heroB.stories.js +0 -44
  302. package/src/modules/tm/heroB/heroB.ts +0 -26
  303. package/src/modules/tm/page/__tests__/page.test.ts +0 -35
  304. package/src/modules/tm/page/page.css +0 -3
  305. package/src/modules/tm/page/page.html +0 -3
  306. package/src/modules/tm/page/page.stories.js +0 -10
  307. package/src/modules/tm/page/page.ts +0 -3
  308. package/src/modules/tm/pageHeaderA/pageHeaderA.css +0 -82
  309. package/src/modules/tm/pageHeaderA/pageHeaderA.html +0 -24
  310. package/src/modules/tm/pageHeaderA/pageHeaderA.stories.js +0 -18
  311. package/src/modules/tm/pageHeaderA/pageHeaderA.ts +0 -51
  312. package/src/modules/tm/pageNavigationA/pageNavigationA.css +0 -41
  313. package/src/modules/tm/pageNavigationA/pageNavigationA.html +0 -9
  314. package/src/modules/tm/pageNavigationA/pageNavigationA.stories.js +0 -34
  315. package/src/modules/tm/pageNavigationA/pageNavigationA.ts +0 -18
  316. package/src/modules/tm/promoA/__tests__/promoA.test.ts +0 -89
  317. package/src/modules/tm/promoA/promoA.css +0 -95
  318. package/src/modules/tm/promoA/promoA.html +0 -22
  319. package/src/modules/tm/promoA/promoA.stories.js +0 -38
  320. package/src/modules/tm/promoA/promoA.ts +0 -62
  321. package/src/modules/tm/sectionA/sectionA.css +0 -64
  322. package/src/modules/tm/sectionA/sectionA.html +0 -21
  323. package/src/modules/tm/sectionA/sectionA.stories.js +0 -18
  324. package/src/modules/tm/sectionA/sectionA.ts +0 -27
  325. package/src/modules/tm/sectionSpacer/sectionSpacer.css +0 -4
  326. package/src/modules/tm/sectionSpacer/sectionSpacer.html +0 -1
  327. package/src/modules/tm/sectionSpacer/sectionSpacer.ts +0 -3
  328. package/src/modules/tm/skillsCardA/skillsCardA.css +0 -73
  329. package/src/modules/tm/skillsCardA/skillsCardA.html +0 -37
  330. package/src/modules/tm/skillsCardA/skillsCardA.ts +0 -38
  331. package/src/modules/tm/skillsGridA/skillsGridA.css +0 -12
  332. package/src/modules/tm/skillsGridA/skillsGridA.html +0 -5
  333. package/src/modules/tm/skillsGridA/skillsGridA.stories.ts +0 -65
  334. package/src/modules/tm/skillsGridA/skillsGridA.ts +0 -3
  335. package/src/modules/tm/statsA/statsA.css +0 -26
  336. package/src/modules/tm/statsA/statsA.html +0 -10
  337. package/src/modules/tm/statsA/statsA.stories.js +0 -29
  338. package/src/modules/tm/statsA/statsA.ts +0 -20
  339. package/src/modules/tm/textItem/textItem.css +0 -53
  340. package/src/modules/tm/textItem/textItem.html +0 -18
  341. package/src/modules/tm/textItem/textItem.ts +0 -32
  342. package/src/modules/tm/textItemGridA/textItemGridA.css +0 -11
  343. package/src/modules/tm/textItemGridA/textItemGridA.html +0 -15
  344. package/src/modules/tm/textItemGridA/textItemGridA.stories.js +0 -67
  345. package/src/modules/tm/textItemGridA/textItemGridA.ts +0 -20
  346. package/src/modules/tm/threeCardGrid/threeCardGrid.css +0 -6
  347. package/src/modules/tm/threeCardGrid/threeCardGrid.html +0 -5
  348. package/src/modules/tm/threeCardGrid/threeCardGrid.ts +0 -3
  349. package/src/modules/tm/trailblazersA/trailblazersA.css +0 -70
  350. package/src/modules/tm/trailblazersA/trailblazersA.html +0 -42
  351. package/src/modules/tm/trailblazersA/trailblazersA.stories.js +0 -52
  352. package/src/modules/tm/trailblazersA/trailblazersA.ts +0 -43
  353. package/src/modules/tm/utils/utils.ts +0 -18
  354. package/src/modules/tm/youtube/youtube.css +0 -7
  355. package/src/modules/tm/youtube/youtube.html +0 -10
  356. package/src/modules/tm/youtube/youtube.stories.js +0 -15
  357. package/src/modules/tm/youtube/youtube.ts +0 -27
  358. package/src/modules/ui/focusTrap/focusTrap.html +0 -5
  359. package/src/modules/ui/focusTrap/focusTrap.ts +0 -104
  360. package/src/modules/ui/focusVisible/__tests__/focusVisible.test.ts +0 -95
  361. package/src/modules/ui/focusVisible/focusVisible.html +0 -3
  362. package/src/modules/ui/focusVisible/focusVisible.ts +0 -46
  363. /package/src/modules/{common → arch}/context/context.html +0 -0
package/lwc.config.json CHANGED
@@ -2,6 +2,8 @@
2
2
  "modules": [
3
3
  { "dir": "src/modules" }
4
4
  ],
5
- "expose": []
5
+ "expose": [
6
+ "arch/context"
7
+ ]
6
8
  }
7
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/arch-components",
3
- "version": "1.20.17-alpha1",
3
+ "version": "1.20.17-alpha11",
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 extends Record<string, any>, Context extends Record<string, any>>
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 extends Record<string, any>, Context extends Record<string, any>> {
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 extends Record<string, any>, Context extends Record<string, any>>(
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 extends Record<string, any>, Context extends Record<string, any>>(
94
+ export function createBaseContextProviderElement<Value, Config, Context>(
95
95
  adapterClass: ContextWireAdapterConstructor<Value, Config, Context>
96
96
  ) {
97
- const contextualizer = createContextProvider(adapterClass as any);
97
+ const contextualizer = createContextProvider(adapterClass);
98
98
 
99
99
  return class ProviderElement extends BaseProvider<Context> {
100
100
  public get contextualizer() {
101
- return contextualizer as Contextualizer<Context>;
101
+ return contextualizer;
102
102
  }
103
103
  };
104
104
  }
105
105
 
106
- class BaseProvider<Context extends Record<string, any>> extends LightningElement {
107
- public consumers = new Set<ContextConsumer<Context>>();
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
- public updateConsumers({ localContext }: { localContext: Context }) {
116
+ private updateConsumers({ localContext }: { localContext: Context }) {
117
117
  for (let consumer of this.consumers) {
118
118
  consumer.provide(localContext);
119
119
  }
@@ -1,12 +0,0 @@
1
- import { EffectAdapter } from '../effectAdapter';
2
-
3
- describe('EffectAdapter', () => {
4
- it('calls the handler', async () => {
5
- let value = Symbol();
6
- let setValue = jest.fn();
7
- let adapter = new EffectAdapter(setValue);
8
- let config = { value: value };
9
- adapter.update(config);
10
- expect(setValue).toHaveBeenCalledWith(config);
11
- });
12
- });
@@ -1 +0,0 @@
1
- <template></template>
@@ -1,18 +0,0 @@
1
- import { WireAdapter } from 'lwc';
2
-
3
- export type EffectAdapterConfig<T> = {};
4
-
5
- export class EffectAdapter<T>
6
- implements
7
- WireAdapter<EffectAdapterConfig<T>, Record<string, any>>
8
- {
9
- constructor(private setValue: (value: EffectAdapterConfig<T>) => void) {}
10
-
11
- connect() {}
12
-
13
- disconnect() {}
14
-
15
- update(config: EffectAdapterConfig<T>) {
16
- this.setValue(config);
17
- }
18
- }
@@ -1,3 +0,0 @@
1
- <template>
2
- <select lwc:dom="manual"></select>
3
- </template>
@@ -1,7 +0,0 @@
1
- import { ReflectedElement } from 'common/reflectedElement';
2
-
3
- export default class extends ReflectedElement {
4
- get contentElement() {
5
- return this.template.querySelector('select') as HTMLSelectElement;
6
- }
7
- }
@@ -1,3 +0,0 @@
1
- <template>
2
- <select lwc:dom="manual"></select>
3
- </template>
@@ -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
- let 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
- let 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
- let 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
- let 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!)).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((e) => {
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
- let element = renderIntoBody(html` <test-a></test-a> `);
39
- let slot = element.shadowRoot!.querySelector('slot')!;
40
- expect(isSlotAssigned(slot)).toBe(false);
41
- });
42
- it('test-b', () => {
43
- let element = renderIntoBody(html` <test-a></test-a> `);
44
- let 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
- let element = renderIntoBody(html`
53
- <test-a>
54
- <h1>Hello</h1>
55
- </test-a>
56
- `);
57
- let slot = element.shadowRoot!.querySelector('slot')!;
58
- expect(isSlotAssigned(slot)).toBe(true);
59
- });
60
- it('test-b', () => {
61
- let element = renderIntoBody(html`
62
- <test-a>
63
- <h1>Hello</h1>
64
- </test-a>
65
- `);
66
- let 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
- let element = renderIntoBody(html`
77
- <test-a>
78
- <h1>Hello</h1>
79
- <header slot="header"></header>
80
- </test-a>
81
- `);
82
- let shadowRoot = element.shadowRoot!;
83
- expect(assignedSlotNames(shadowRoot)).toEqual(['default', 'header']);
84
- });
85
- it('test-b', () => {
86
- let element = renderIntoBody(html`
87
- <test-a>
88
- <h1>Hello</h1>
89
- <header slot="header"></header>
90
- </test-a>
91
- `);
92
- let shadowRoot =
93
- element.shadowRoot!.querySelector('test-b')!.shadowRoot!;
94
- expect(assignedSlotNames(shadowRoot)).toEqual(['default', 'header']);
95
- });
96
- });
@@ -1,20 +0,0 @@
1
- export function assignedSlotNames(template: {
2
- querySelectorAll(selector: string): NodeList;
3
- }) {
4
- let 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
- let [element] = slot.assignedElements();
14
- if (element) {
15
- if (element.tagName === 'SLOT')
16
- return isSlotAssigned(element as HTMLSlotElement);
17
- return true;
18
- }
19
- return slot.children.length > 0;
20
- }
@@ -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>