lightning-base-components 1.17.2-alpha → 1.17.5-alpha

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 (267) hide show
  1. package/metadata/raptor.json +129 -3
  2. package/package.json +25 -1
  3. package/scopedImports/@salesforce-label-AddressAutocomplete.LookupButton.js +1 -0
  4. package/scopedImports/@salesforce-label-LightningDatatable.chooseARowSelectAll.js +1 -0
  5. package/scopedImports/@salesforce-label-LightningInput.mailingAddressFieldsUpdateText.js +1 -0
  6. package/scopedImports/@salesforce-label-LightningToast.genericNavigationAssistiveText.js +1 -0
  7. package/scopedImports/@salesforce-label-LightningToast.macNavigationAssistiveText.js +1 -0
  8. package/src/lightning/ariaObserver/__examples__/connect/connect.html +19 -0
  9. package/src/lightning/ariaObserver/__examples__/connect/connect.js +10 -0
  10. package/src/lightning/ariaObserver/__examples__/connectChild/connectChild.html +3 -0
  11. package/src/lightning/ariaObserver/__examples__/connectChild/connectChild.js +45 -0
  12. package/src/lightning/ariaObserver/ariaObserver.js +16 -2
  13. package/src/lightning/baseCombobox/baseCombobox.js +50 -4
  14. package/src/lightning/baseCombobox/keyboard.js +3 -0
  15. package/src/lightning/breadcrumb/__docs__/breadcrumb.md +5 -6
  16. package/src/lightning/breadcrumb/breadcrumb.css +3 -0
  17. package/src/lightning/breadcrumb/breadcrumb.html +1 -1
  18. package/src/lightning/breadcrumb/breadcrumb.slds.css +25 -0
  19. package/src/lightning/breadcrumbs/breadcrumbs.css +3 -0
  20. package/src/lightning/breadcrumbs/breadcrumbs.html +1 -1
  21. package/src/lightning/breadcrumbs/breadcrumbs.slds.css +33 -0
  22. package/src/lightning/button/button.html +2 -1
  23. package/src/lightning/button/button.js +9 -0
  24. package/src/lightning/buttonIcon/button-icon.slds.css +5 -1
  25. package/src/lightning/buttonIcon/buttonIcon.html +2 -1
  26. package/src/lightning/buttonIcon/buttonIcon.js +10 -1
  27. package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +5 -1
  28. package/src/lightning/card/__docs__/card.md +1 -1
  29. package/src/lightning/card/card.js +1 -1
  30. package/src/lightning/datatable/datatable.js +6 -15
  31. package/src/lightning/datatable/templates/div/div.html +4 -2
  32. package/src/lightning/datatable/templates/table/table.html +4 -2
  33. package/src/lightning/dialog/README.md +1 -1
  34. package/src/lightning/dualListbox/dual-listbox.slds.css +200 -0
  35. package/src/lightning/dualListbox/dualListbox.css +3 -1
  36. package/src/lightning/dualListbox/dualListbox.html +2 -2
  37. package/src/lightning/dualListbox/dualListbox.js +2 -0
  38. package/src/lightning/dualListbox/form-element.slds.css +232 -0
  39. package/src/lightning/dynamicIcon/dynamic-icon-ellie.slds.css +180 -0
  40. package/src/lightning/dynamicIcon/dynamic-icon-eq.slds.css +63 -0
  41. package/src/lightning/dynamicIcon/dynamic-icon-score.slds.css +46 -0
  42. package/src/lightning/dynamicIcon/dynamic-icon-strength.slds.css +122 -0
  43. package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +117 -0
  44. package/src/lightning/dynamicIcon/dynamic-icon-waffle.slds.css +177 -0
  45. package/src/lightning/dynamicIcon/ellie.css +1 -0
  46. package/src/lightning/dynamicIcon/eq.css +1 -0
  47. package/src/lightning/dynamicIcon/score.css +1 -0
  48. package/src/lightning/dynamicIcon/strength.css +1 -0
  49. package/src/lightning/dynamicIcon/trend.css +1 -0
  50. package/src/lightning/dynamicIcon/waffle.css +1 -0
  51. package/src/lightning/f6Controller/f6Controller.js +382 -0
  52. package/src/lightning/f6Controller/f6Controller.js-meta.xml +4 -0
  53. package/src/lightning/formattedRichText/formattedRichText.js +4 -3
  54. package/src/lightning/helptext/form-element.slds.css +232 -0
  55. package/src/lightning/helptext/help-text.slds.css +5 -1
  56. package/src/lightning/helptext/helptext.css +2 -1
  57. package/src/lightning/helptext/helptext.html +1 -0
  58. package/src/lightning/helptext/helptext.js +9 -0
  59. package/src/lightning/iconSvgTemplates/buildTemplates/standard/bill_of_materials.html +7 -0
  60. package/src/lightning/iconSvgTemplates/buildTemplates/standard/buyer_group_qualifier.html +8 -0
  61. package/src/lightning/iconSvgTemplates/buildTemplates/standard/datashare_target.html +9 -0
  62. package/src/lightning/iconSvgTemplates/buildTemplates/standard/datashares.html +7 -0
  63. package/src/lightning/iconSvgTemplates/buildTemplates/standard/disclosure_and_compliance.html +8 -0
  64. package/src/lightning/iconSvgTemplates/buildTemplates/standard/document_preview.html +7 -0
  65. package/src/lightning/iconSvgTemplates/buildTemplates/standard/facility_bed.html +7 -0
  66. package/src/lightning/iconSvgTemplates/buildTemplates/standard/market.html +8 -0
  67. package/src/lightning/iconSvgTemplates/buildTemplates/standard/mulesoft.html +8 -0
  68. package/src/lightning/iconSvgTemplates/buildTemplates/standard/price_sheet.html +7 -0
  69. package/src/lightning/iconSvgTemplates/buildTemplates/standard/travel_mode.html +2 -2
  70. package/src/lightning/iconSvgTemplates/buildTemplates/templates.js +34 -1
  71. package/src/lightning/iconSvgTemplates/buildTemplates/utility/add_source.html +7 -0
  72. package/src/lightning/iconSvgTemplates/buildTemplates/utility/app_web_messaging.html +7 -0
  73. package/src/lightning/iconSvgTemplates/buildTemplates/utility/bookmark_stroke.html +7 -0
  74. package/src/lightning/iconSvgTemplates/buildTemplates/utility/buyer_group_qualifier.html +8 -0
  75. package/src/lightning/iconSvgTemplates/buildTemplates/utility/document_preview.html +7 -0
  76. package/src/lightning/iconSvgTemplates/buildTemplates/utility/expired.html +7 -0
  77. package/src/lightning/iconSvgTemplates/buildTemplates/utility/favorite_alt.html +7 -0
  78. package/src/lightning/iconSvgTemplates/buildTemplates/utility/heart.html +7 -0
  79. package/src/lightning/iconSvgTemplates/buildTemplates/utility/hourglass.html +7 -0
  80. package/src/lightning/iconSvgTemplates/buildTemplates/utility/integration.html +8 -0
  81. package/src/lightning/iconSvgTemplates/buildTemplates/utility/market.html +8 -0
  82. package/src/lightning/iconSvgTemplates/buildTemplates/utility/more.html +7 -0
  83. package/src/lightning/iconSvgTemplates/buildTemplates/utility/mulesoft.html +8 -0
  84. package/src/lightning/iconSvgTemplates/buildTemplates/utility/notification_off.html +7 -0
  85. package/src/lightning/iconSvgTemplates/buildTemplates/utility/notification_snoozed.html +9 -0
  86. package/src/lightning/iconSvgTemplates/buildTemplates/utility/profile_alt.html +7 -0
  87. package/src/lightning/iconSvgTemplates/buildTemplates/utility/promotion_tiers.html +10 -0
  88. package/src/lightning/iconSvgTemplates/buildTemplates/utility/sender_email.html +7 -0
  89. package/src/lightning/iconSvgTemplates/buildTemplates/utility/service_appointment.html +13 -0
  90. package/src/lightning/iconSvgTemplates/buildTemplates/utility/service_report.html +8 -0
  91. package/src/lightning/iconSvgTemplates/buildTemplates/utility/toggle_off.html +7 -0
  92. package/src/lightning/iconSvgTemplates/buildTemplates/utility/toggle_on.html +7 -0
  93. package/src/lightning/iconSvgTemplates/buildTemplates/utility/your_account.html +10 -0
  94. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/bill_of_materials.html +7 -0
  95. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/buyer_group_qualifier.html +8 -0
  96. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/datashare_target.html +9 -0
  97. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/datashares.html +7 -0
  98. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/disclosure_and_compliance.html +8 -0
  99. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/document_preview.html +7 -0
  100. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/facility_bed.html +7 -0
  101. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/market.html +8 -0
  102. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/mulesoft.html +8 -0
  103. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/price_sheet.html +7 -0
  104. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/travel_mode.html +2 -2
  105. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/templates.js +34 -1
  106. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/add_source.html +7 -0
  107. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/app_web_messaging.html +7 -0
  108. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/bookmark_stroke.html +7 -0
  109. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/buyer_group_qualifier.html +8 -0
  110. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/document_preview.html +7 -0
  111. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/expired.html +7 -0
  112. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/favorite_alt.html +7 -0
  113. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/heart.html +7 -0
  114. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/hourglass.html +7 -0
  115. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/integration.html +8 -0
  116. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/market.html +8 -0
  117. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/more.html +7 -0
  118. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/mulesoft.html +8 -0
  119. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/notification_off.html +7 -0
  120. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/notification_snoozed.html +9 -0
  121. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/profile_alt.html +7 -0
  122. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/promotion_tiers.html +10 -0
  123. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/sender_email.html +7 -0
  124. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/service_appointment.html +13 -0
  125. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/service_report.html +8 -0
  126. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/toggle_off.html +7 -0
  127. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/toggle_on.html +7 -0
  128. package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/your_account.html +10 -0
  129. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/bill_of_materials.html +7 -0
  130. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/buyer_group_qualifier.html +8 -0
  131. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/datashare_target.html +9 -0
  132. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/datashares.html +7 -0
  133. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/disclosure_and_compliance.html +8 -0
  134. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/document_preview.html +7 -0
  135. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/facility_bed.html +7 -0
  136. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/market.html +8 -0
  137. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/mulesoft.html +8 -0
  138. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/price_sheet.html +7 -0
  139. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/travel_mode.html +2 -2
  140. package/src/lightning/iconSvgTemplatesStandard/buildTemplates/templates.js +11 -1
  141. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/bill_of_materials.html +7 -0
  142. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/buyer_group_qualifier.html +8 -0
  143. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/datashare_target.html +9 -0
  144. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/datashares.html +7 -0
  145. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/disclosure_and_compliance.html +8 -0
  146. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/document_preview.html +7 -0
  147. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/facility_bed.html +7 -0
  148. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/market.html +8 -0
  149. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/mulesoft.html +8 -0
  150. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/price_sheet.html +7 -0
  151. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/travel_mode.html +2 -2
  152. package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/templates.js +11 -1
  153. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/templates.js +24 -1
  154. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/add_source.html +7 -0
  155. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/app_web_messaging.html +7 -0
  156. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/bookmark_stroke.html +7 -0
  157. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/buyer_group_qualifier.html +8 -0
  158. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/document_preview.html +7 -0
  159. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/expired.html +7 -0
  160. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/favorite_alt.html +7 -0
  161. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/heart.html +7 -0
  162. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/hourglass.html +7 -0
  163. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/integration.html +8 -0
  164. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/market.html +8 -0
  165. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/more.html +7 -0
  166. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/mulesoft.html +8 -0
  167. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/notification_off.html +7 -0
  168. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/notification_snoozed.html +9 -0
  169. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/profile_alt.html +7 -0
  170. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/promotion_tiers.html +10 -0
  171. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/sender_email.html +7 -0
  172. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/service_appointment.html +13 -0
  173. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/service_report.html +8 -0
  174. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/toggle_off.html +7 -0
  175. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/toggle_on.html +7 -0
  176. package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/your_account.html +10 -0
  177. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/templates.js +24 -1
  178. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/add_source.html +7 -0
  179. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/app_web_messaging.html +7 -0
  180. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/bookmark_stroke.html +7 -0
  181. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/buyer_group_qualifier.html +8 -0
  182. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/document_preview.html +7 -0
  183. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/expired.html +7 -0
  184. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/favorite_alt.html +7 -0
  185. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/heart.html +7 -0
  186. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/hourglass.html +7 -0
  187. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/integration.html +8 -0
  188. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/market.html +8 -0
  189. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/more.html +7 -0
  190. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/mulesoft.html +8 -0
  191. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/notification_off.html +7 -0
  192. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/notification_snoozed.html +9 -0
  193. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/profile_alt.html +7 -0
  194. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/promotion_tiers.html +10 -0
  195. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/sender_email.html +7 -0
  196. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/service_appointment.html +13 -0
  197. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/service_report.html +8 -0
  198. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/toggle_off.html +7 -0
  199. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/toggle_on.html +7 -0
  200. package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/your_account.html +10 -0
  201. package/src/lightning/input/__docs__/input.md +1 -1
  202. package/src/lightning/input/input-text.slds.css +1 -1
  203. package/src/lightning/input/input.html +3 -3
  204. package/src/lightning/input/input.js +39 -3
  205. package/src/lightning/inputAddress/__docs__/inputAddress.md +3 -0
  206. package/src/lightning/inputAddress/inputAddress.html +1 -0
  207. package/src/lightning/inputAddress/inputAddress.js +6 -0
  208. package/src/lightning/modal/__docs__/modal.md +187 -20
  209. package/src/lightning/modal/__examples__disabled/allform/allform.html +1 -1
  210. package/src/lightning/modal/__examples__disabled/allform/allform.js +1 -1
  211. package/src/lightning/modal/__examples__disabled/allformfull/allformfull.css +7 -0
  212. package/src/lightning/modal/__examples__disabled/allformfull/allformfull.html +9 -0
  213. package/src/lightning/modal/__examples__disabled/allformfull/allformfull.js +49 -0
  214. package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.css +3 -0
  215. package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.html +146 -0
  216. package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.js +240 -0
  217. package/src/lightning/modalBase/modalBase.css +1 -1
  218. package/src/lightning/modalBase/modalBase.html +1 -1
  219. package/src/lightning/modalBase/modalBase.js +180 -45
  220. package/src/lightning/modalBody/modalBody.js +133 -18
  221. package/src/lightning/modalFooter/modalFooter.js +57 -1
  222. package/src/lightning/navigation/__docs__/navigation.md +1 -1
  223. package/src/lightning/popup/popover.slds.css +121 -0
  224. package/src/lightning/popup/popup.css +3 -0
  225. package/src/lightning/positionLibrary/direction.js +10 -17
  226. package/src/lightning/positionLibrary/overlayDetector.js +10 -1
  227. package/src/lightning/primitiveBubble/primitiveBubble.js +16 -1
  228. package/src/lightning/primitiveCellCheckbox/primitiveCellCheckbox.js +15 -1
  229. package/src/lightning/primitiveHeaderFactory/primitiveHeaderFactory.js +29 -0
  230. package/src/lightning/primitiveHeaderFactory/selectableHeader.html +3 -6
  231. package/src/lightning/progressIndicator/progressIndicator.js +1 -1
  232. package/src/lightning/select/__docs__/select.md +9 -0
  233. package/src/lightning/select/__examples__/disabled/disabled.html +10 -0
  234. package/src/lightning/select/__examples__/disabled/disabled.js +27 -0
  235. package/src/lightning/select/__examples__/hidden/hidden.html +10 -0
  236. package/src/lightning/select/__examples__/hidden/hidden.js +27 -0
  237. package/src/lightning/select/__examples__/inline/inline.html +10 -0
  238. package/src/lightning/select/__examples__/inline/inline.js +27 -0
  239. package/src/lightning/select/form-element.slds.css +232 -0
  240. package/src/lightning/select/select.css +3 -0
  241. package/src/lightning/select/select.html +2 -2
  242. package/src/lightning/select/select.js +3 -0
  243. package/src/lightning/select/select.slds.css +398 -0
  244. package/src/lightning/showToastEvent/showToastEvent.js +21 -0
  245. package/src/lightning/showToastEvent/showToastEvent.js-meta.xml +4 -0
  246. package/src/lightning/sldsCommon/sldsCommon.css +21 -4
  247. package/src/lightning/toast/__docs__/toast.md +103 -0
  248. package/src/lightning/toast/toast.css +52 -0
  249. package/src/lightning/toast/toast.html +70 -0
  250. package/src/lightning/toast/toast.js +608 -0
  251. package/src/lightning/toast/toast.js-meta.xml +4 -0
  252. package/src/lightning/toastContainer/__docs__/toastContainer.md +59 -0
  253. package/src/lightning/toastContainer/toastContainer.css +32 -0
  254. package/src/lightning/toastContainer/toastContainer.html +9 -0
  255. package/src/lightning/toastContainer/toastContainer.js +471 -0
  256. package/src/lightning/toastContainer/toastContainer.js-meta.xml +6 -0
  257. package/src/lightning/tooltipLibrary/tooltipLibrary.js +70 -8
  258. package/src/lightning/treeGrid/__docs__/treeGrid.md +7 -3
  259. package/src/lightning/treeGrid/treeGrid.js +25 -30
  260. package/src/lightning/utilsPrivate/normalize.js +22 -6
  261. package/src/lightning/utilsPrivate/url.js +2 -1
  262. package/src/lightning/verticalNavigation/vertical-navigation.slds.css +4 -0
  263. package/src/lightning/verticalNavigation/verticalNavigation.css +1 -0
  264. package/src/lightning/verticalNavigation/verticalNavigation.html +1 -1
  265. package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +19 -0
  266. package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +2 -0
  267. package/src/lightning/verticalNavigationSection/verticalNavigationSection.html +1 -1
@@ -8,6 +8,9 @@ const hideClass = 'slds-hide';
8
8
  // selectors
9
9
  const footerSelector = `.${footerClass}`;
10
10
  const footerSlotSelector = '[data-footer-slot]';
11
+ // timeout footer height check
12
+ const SIZE_CHECK_TIMER = 50;
13
+ const MAX_HEIGHT_CHECKS = 4;
11
14
 
12
15
  /**
13
16
  * The modal footer component to display footer content in lightning modal.
@@ -18,6 +21,9 @@ export default class LightningModalFooter extends LightningElement {
18
21
  initialSlotRender = true;
19
22
  hideFooter = false;
20
23
  unregisterCallback = null;
24
+ footerHeightTracked = 0;
25
+ footerHeightChecked = 0;
26
+ timeoutId = 0;
21
27
 
22
28
  /**
23
29
  * Handle the default slot change event
@@ -57,7 +63,9 @@ export default class LightningModalFooter extends LightningElement {
57
63
  const divElem = this.template.querySelector(footerSelector);
58
64
  const footerRect = divElem ? divElem.getBoundingClientRect() : {};
59
65
  const { height } = footerRect;
60
- return height || 0;
66
+ const heightValue = height || 0;
67
+ this.footerHeightTracked = heightValue;
68
+ return heightValue;
61
69
  }
62
70
 
63
71
  /**
@@ -125,6 +133,47 @@ export default class LightningModalFooter extends LightningElement {
125
133
  this.dispatchEvent(evtRegister);
126
134
  }
127
135
 
136
+ /**
137
+ * Provide a means to check whether the tracked footer height
138
+ * is different than the current footer height to only call modalBase
139
+ * when there is a change in footer height
140
+ * @private
141
+ */
142
+ hasFooterHeightChanged() {
143
+ // note: calling this.footerHeight updates this.footerHeightTracked
144
+ // order of values checked here is required
145
+ const previousRenderedHeight = this.footerHeightTracked;
146
+ const currentRenderedHeight = this.footerHeight;
147
+ return currentRenderedHeight !== previousRenderedHeight;
148
+ }
149
+
150
+ /**
151
+ * On first render, provide a quick means of updating modalBase,
152
+ * if the modalFooter height changes.
153
+ * In rare cases, the height of the footer between the
154
+ * normal or full size rendering can change depending on
155
+ * content of footer and window width
156
+ * @private
157
+ */
158
+ scheduleFooterHeightCheck() {
159
+ if (this.initialRender && this.timeoutId === 0) {
160
+ // eslint-disable-next-line @lwc/lwc/no-async-operation
161
+ this.timeoutId = setInterval(() => {
162
+ if (this.footerHeightChecked >= MAX_HEIGHT_CHECKS) {
163
+ clearTimeout(this.timeoutId);
164
+ this.timeoutId = 0;
165
+ this.footerHeightChecked = 0;
166
+ } else {
167
+ this.footerHeightChecked++;
168
+ const hasChanged = this.hasFooterHeightChanged();
169
+ if (hasChanged) {
170
+ this.registerWithParent();
171
+ }
172
+ }
173
+ }, SIZE_CHECK_TIMER);
174
+ }
175
+ }
176
+
128
177
  /**
129
178
  * When modal footer is being created, initialize
130
179
  * private tracked modal footer state
@@ -137,6 +186,9 @@ export default class LightningModalFooter extends LightningElement {
137
186
  this.initialSlotRender = true;
138
187
  this.hideFooter = false;
139
188
  this.unregisterCallback = null;
189
+ this.footerHeightTracked = 0;
190
+ this.footerHeightChecked = 0;
191
+ this.timeoutId = 0;
140
192
  }
141
193
 
142
194
  connectedCallback() {
@@ -149,11 +201,15 @@ export default class LightningModalFooter extends LightningElement {
149
201
  if (this.unregisterCallback) {
150
202
  this.unregisterCallback();
151
203
  }
204
+ clearTimeout(this.timeoutId);
205
+ this.timeoutId = 0;
206
+ this.footerHeightChecked = 0;
152
207
  }
153
208
 
154
209
  renderedCallback() {
155
210
  if (this.initialRender) {
156
211
  this.registerWithParent();
212
+ this.scheduleFooterHeightCheck();
157
213
  this.initialRender = false;
158
214
  }
159
215
  this.hideFooter = !this.isDefaultSlotPopulated;
@@ -25,7 +25,7 @@ export default class MyCustomElement extends NavigationMixin(
25
25
  ) {}
26
26
  ```
27
27
 
28
- The `NavigationMixin` adds two APIs to your component's class.
28
+ The `NavigationMixin` adds two APIs to your component's class. Invoking these functions before the element is connected to the DOM can have unexpected results.
29
29
 
30
30
  - `[NavigationMixin.Navigate](pageReference, [replace])` - A component calls this API to navigate to another page in the application.
31
31
  - `[NavigationMixin.GenerateUrl](pageReference)` - A component calls this API to get a `promise` that resolves to the resulting URL. The component can use the URL in the `href` attribute of an anchor. It can also use the URL to open a new window using the `window.open(url)` browser API.
@@ -0,0 +1,121 @@
1
+
2
+ @supports (--styling-hooks: '') {
3
+ :host([data-render-mode="shadow"]) .slds-popover {
4
+ position: relative;
5
+ border-radius: var(--sds-g-radius-border-2, 0.25rem);
6
+ width: var(--sds-g-sizing-15, 20rem);
7
+ min-height: calc(var(--sds-g-sizing-5, 1rem) * 2);
8
+ z-index: var(--slds-c-popover-position-zindex, 6000);
9
+ background-color: var(--slds-c-popover-color-background,
10
+ var(--slds-g-color-neutral-base-100,
11
+ var(--sds-g-color-neutral-base-100, #ffffff)));
12
+ display: inline-block;
13
+ box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.16);
14
+ border: var(--sds-g-sizing-border-1, 1px) solid var(--slds-g-color-border-base-1, var(--sds-g-color-border-base-1, #c9c9c9));
15
+ }
16
+
17
+ :host([data-render-mode="shadow"]) .slds-popover__meta {
18
+ margin-block-end: var(--sds-g-sizing-4, 0.75rem);
19
+ }
20
+
21
+ :host([data-render-mode="shadow"]) .slds-popover__body {
22
+ padding-block: var(--sds-g-spacing-2, 0.5rem);
23
+ padding-inline: var(--sds-g-spacing-3, 0.75rem);
24
+ }
25
+
26
+ :host([data-render-mode="shadow"]) .slds-popover__body .slds-popover__header {
27
+ padding-block: 0 var(--sds-g-sizing-3, 0.5rem);
28
+ padding-inline: 0;
29
+ }
30
+
31
+ :host([data-render-mode="shadow"]) .slds-popover__body,:host([data-render-mode="shadow"])
32
+ .slds-popover__header,:host([data-render-mode="shadow"])
33
+ .slds-popover__footer {
34
+ position: relative;
35
+ padding-block: var(--sds-g-spacing-2, 0.5rem);
36
+ padding-inline: var(--sds-g-spacing-3, 0.75rem);
37
+ word-wrap: break-word;
38
+ }
39
+
40
+ :host([data-render-mode="shadow"]) .slds-popover__header {
41
+ border-bottom: 0;
42
+ }
43
+
44
+ :host([data-render-mode="shadow"]) .slds-popover__footer {
45
+ border-block-start: var(--sds-g-sizing-border-1, 1px) solid var(--slds-g-color-border-base-1, var(--sds-g-color-border-base-1, #c9c9c9));
46
+ background-color: var(--slds-g-color-neutral-base-95, var(--sds-g-color-neutral-base-95, #f3f3f3));
47
+ border-end-start-radius: inherit;
48
+ border-end-end-radius: inherit;
49
+ padding-block: var(--sds-g-spacing-2, 0.5rem);
50
+ padding-inline: var(--sds-g-spacing-3, 0.75rem);
51
+ }
52
+
53
+ :host([data-render-mode="shadow"]) .slds-popover__footer_form {
54
+ text-align: center;
55
+ background: var(--slds-g-color-neutral-base-95, var(--sds-g-color-neutral-base-95, #f3f3f3));
56
+ border-radius: 0 0 var(--sds-g-radius-border-2, 0.25rem) var(--sds-g-radius-border-2, 0.25rem);
57
+ }
58
+
59
+ :host([data-render-mode="shadow"]) .slds-popover__body_small {
60
+ max-height: var(--sds-g-sizing-14, 15rem);
61
+ overflow-y: auto;
62
+ }
63
+
64
+ :host([data-render-mode="shadow"]) .slds-popover__close {
65
+ position: relative;
66
+ margin-block: var(--sds-g-spacing-1, 0.25rem);
67
+ margin-inline: var(--sds-g-spacing-1, 0.25rem);
68
+ z-index: calc(var(--slds-c-popover-position-zindex, 6000) + 1);
69
+ }
70
+
71
+ :host([data-render-mode="shadow"]) .slds-popover_small {
72
+ max-width: var(--sds-g-sizing-14, 15rem);
73
+ }
74
+
75
+ :host([data-render-mode="shadow"]) .slds-popover_medium {
76
+ min-width: var(--sds-g-sizing-15, 20rem);
77
+ }
78
+
79
+ :host([data-render-mode="shadow"]) .slds-popover_large {
80
+ min-width: 25rem;
81
+ max-width: 512px;
82
+ }
83
+
84
+ :host([data-render-mode="shadow"]) .slds-popover[class*="theme_"] {
85
+ border: 0;
86
+ }
87
+
88
+ :host([data-render-mode="shadow"]) .slds-popover *:last-child {
89
+ margin-bottom: 0;
90
+ }
91
+
92
+ :host([data-render-mode="shadow"]) .slds-popover_full-width {
93
+ width: 100%;
94
+ }
95
+
96
+ :host([data-render-mode="shadow"]) .slds-popover_hide {
97
+ display: none;
98
+ }
99
+
100
+ :host([data-render-mode="shadow"]) .slds-popover_dark {
101
+ background-color: var(--slds-g-color-brand-base-30, var(--sds-g-color-brand-base-30, #014486));
102
+ color: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
103
+ }
104
+
105
+ :host([data-render-mode="shadow"]) .slds-popover_dark .slds-badge {
106
+ background-color: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
107
+ }
108
+
109
+ :host([data-render-mode="shadow"]) .slds-popover_dark .slds-popover__close {
110
+ color: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
111
+ }
112
+
113
+ :host([data-render-mode="shadow"]) .slds-popover_dark .slds-icon-text-default {
114
+ fill: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
115
+ }
116
+
117
+ :host([data-render-mode="shadow"]) .slds-popover_dark .slds-popover__footer {
118
+ border-top-color: var(--slds-g-color-brand-base-10, var(--sds-g-color-brand-base-10, #001639));
119
+ background-color: var(--slds-g-color-brand-base-20, var(--sds-g-color-brand-base-20, #032d60));
120
+ }
121
+ }
@@ -0,0 +1,3 @@
1
+ /* @import 'lightning/sldsCommon';
2
+ @import './popover.slds.css';
3
+ */
@@ -179,24 +179,17 @@ export function checkFlipPossibility(parent, element, target, leftAsBoundary) {
179
179
 
180
180
  // If there is no space above and below, recalculate space based on window
181
181
  // when there is still no space above and below based on window then select the maximum available space
182
- if (!hasSpaceAbove && !hasSpaceBelow && parent) {
183
- belowSpace =
184
- viewPort.height -
185
- (referenceElemRect.bottom - viewPort.top) -
186
- height;
187
- if (belowSpace < 0) {
188
- if (parent.scrollTop > 0) {
189
- aboveSpace =
190
- referenceElemRect.top -
191
- viewPort.top +
192
- parent.scrollTop -
193
- height;
194
- }
195
- }
196
- hasSpaceAbove =
197
- aboveSpace >= 0 || (belowSpace < 0 && aboveSpace > belowSpace);
182
+
183
+ if (
184
+ !hasSpaceAbove &&
185
+ !hasSpaceBelow &&
186
+ parent &&
187
+ element.style &&
188
+ element.style.position === 'fixed'
189
+ ) {
190
+ hasSpaceAbove = referenceElemRect.top - windowViewPort.top - height > 0;
198
191
  hasSpaceBelow =
199
- belowSpace >= 0 || (aboveSpace < 0 && belowSpace > aboveSpace);
192
+ windowViewPort.height - referenceElemRect.bottom - height > 0;
200
193
  }
201
194
 
202
195
  // Assuming center alignment, does the viewport have space to fit half of the element around
@@ -6,6 +6,7 @@ export const OVERLAY_TYPE = {
6
6
  DIALOG: 'lightning-dialog',
7
7
  POPOVER: 'lightning-popover',
8
8
  PANEL: 'uiPanel',
9
+ SLDSMODAL: 'slds-modal',
9
10
  };
10
11
 
11
12
  export function isOverlay(element) {
@@ -30,6 +31,13 @@ export function isOverlay(element) {
30
31
  if (isPanel) {
31
32
  return OVERLAY_TYPE.PANEL;
32
33
  }
34
+
35
+ const isSldsModal =
36
+ element.classList && element.classList.contains(OVERLAY_TYPE.SLDSMODAL);
37
+ if (isSldsModal) {
38
+ return OVERLAY_TYPE.SLDSMODAL;
39
+ }
40
+
33
41
  return OVERLAY_TYPE.NONE;
34
42
  }
35
43
 
@@ -80,7 +88,8 @@ export class OverlayDetector {
80
88
  return (
81
89
  this.isInside &&
82
90
  (this._detection.type === OVERLAY_TYPE.MODAL ||
83
- this._detection.type === OVERLAY_TYPE.DIALOG)
91
+ this._detection.type === OVERLAY_TYPE.DIALOG ||
92
+ this._detection.type === OVERLAY_TYPE.SLDSMODAL)
84
93
  );
85
94
  }
86
95
 
@@ -18,6 +18,13 @@ export default class LightningPrimitiveBubble extends LightningElement {
18
18
  contentId: '',
19
19
  };
20
20
 
21
+ /*
22
+ Tooltip manages the visibility state of the PrimitiveBubble element
23
+ to ensure there are no differences beteween TooltipLibrary._visible and
24
+ LightningPrimitiveBubble.state.visible. See @W-12512833
25
+ */
26
+ @api disableVisibilityChangeOnLeave;
27
+
21
28
  @api
22
29
  get contentId() {
23
30
  return this.state.contentId;
@@ -135,6 +142,14 @@ export default class LightningPrimitiveBubble extends LightningElement {
135
142
  }
136
143
 
137
144
  handleMouseLeave() {
138
- this.visible = false;
145
+ /**
146
+ * This causes a number of issues when primitive-bubble is managed through tooltipLibrary, due to the fact
147
+ * that changing the visibility inside the primitive bubble creates a mismatch with the tooltipLibrary Tooltip._visible state.
148
+ * This contributes to a number of problems and can result in the tooltip being made visible again in unwanted situations.
149
+ * (W-12512833). Remove this completely if no longer required by other consumers.
150
+ */
151
+ if (!this.disableVisibilityChangeOnLeave) {
152
+ this.visible = false;
153
+ }
139
154
  }
140
155
  }
@@ -11,12 +11,26 @@ const i18n = {
11
11
  };
12
12
 
13
13
  export default class PrimitiveCellCheckbox extends PrimitiveDatatableCell {
14
+ _columnHeaderId = '';
14
15
  @api rowIndex = 0;
15
16
  @api isSelected = false;
16
17
  @api isDisabled = false;
17
18
  @api type = 'checkbox';
18
19
  @api dtContextId;
19
- @api columnHeaderId = ''; //required as a part for aria-labelledby
20
+ @api
21
+ get columnHeaderId() {
22
+ return this._columnHeaderId;
23
+ }
24
+
25
+ set columnHeaderId(id) {
26
+ this._columnHeaderId = id || '';
27
+ const labelId = this.computedLabelId;
28
+ if (labelId) {
29
+ synchronizeAttrs(this.template.querySelector('input'), {
30
+ 'aria-labelledby': `${labelId} ${this._columnHeaderId}`,
31
+ });
32
+ }
33
+ }
20
34
 
21
35
  render() {
22
36
  if (this.type === 'radio') {
@@ -1,4 +1,5 @@
1
1
  import labelChooseARow from '@salesforce/label/LightningDatatable.chooseARow';
2
+ import labelChooseARowSelectAll from '@salesforce/label/LightningDatatable.chooseARowSelectAll';
2
3
  import labelSelectAll from '@salesforce/label/LightningDatatable.selectAll';
3
4
  import labelSort from '@salesforce/label/LightningDatatable.sort';
4
5
  import labelSortAsc from '@salesforce/label/LightningDatatable.sortAsc';
@@ -15,6 +16,7 @@ import nonsortable from './nonsortableHeader.html';
15
16
 
16
17
  const i18n = {
17
18
  chooseARow: labelChooseARow,
19
+ chooseARowSelectAll: labelChooseARowSelectAll,
18
20
  selectAll: labelSelectAll,
19
21
  sort: labelSort,
20
22
  sortAsc: labelSortAsc,
@@ -201,6 +203,17 @@ export default class PrimitiveHeaderFactory extends PrimitiveDatatableCell {
201
203
  );
202
204
  }
203
205
 
206
+ /**
207
+ * Computes column header label
208
+ *
209
+ * @return {string} The computed column header label
210
+ */
211
+ get computedColumnHeaderLabel() {
212
+ return this.showCheckbox
213
+ ? this.i18n.chooseARowSelectAll
214
+ : this.i18n.chooseARow;
215
+ }
216
+
204
217
  /**
205
218
  * Returns the header's aria role
206
219
  *
@@ -316,6 +329,22 @@ export default class PrimitiveHeaderFactory extends PrimitiveDatatableCell {
316
329
  if (this.isSelectableHeader && this.showCheckbox) {
317
330
  this.updateBulkSelectionCheckbox();
318
331
  }
332
+ if (this.isSelectableHeader) {
333
+ const columnHeaderId = this.computedColumnHeaderId;
334
+ const columnHeaderEvent = new CustomEvent('privatecolumnheaderid', {
335
+ detail: columnHeaderId,
336
+ });
337
+ this.dispatchEvent(columnHeaderEvent);
338
+ }
339
+ }
340
+
341
+ disconnectedCallback() {
342
+ if (this.isSelectableHeader) {
343
+ const columnHeaderEvent = new CustomEvent('privatecolumnheaderid', {
344
+ detail: null,
345
+ });
346
+ this.dispatchEvent(columnHeaderEvent);
347
+ }
319
348
  }
320
349
 
321
350
  /************************** EVENT HANDLERS ***************************/
@@ -1,9 +1,11 @@
1
1
  <template>
2
+ <span id="column-group-header" class="slds-assistive-text" data-column-header>
3
+ {computedColumnHeaderLabel}
4
+ </span>
2
5
  <!-- Header Content -->
3
6
  <div class="slds-th__action slds-th__action_form slds-cell-fixed" style={columnStyles}>
4
7
  <template if:true={showCheckbox}>
5
8
  <span class="slds-checkbox">
6
-
7
9
  <!-- Selectable Checkbox -->
8
10
  <input
9
11
  type="checkbox"
@@ -23,10 +25,5 @@
23
25
  </label>
24
26
  </span>
25
27
  </template>
26
- <template if:false={showCheckbox}>
27
- <span id="column-group-header" class="slds-assistive-text" data-column-header>
28
- {i18n.chooseARow}
29
- </span>
30
- </template>
31
28
  </div>
32
29
  </template>
@@ -33,7 +33,7 @@ export default class LightningProgressIndicator extends LightningElement {
33
33
 
34
34
  /**
35
35
  * Changes the appearance of the progress indicator for the base type only.
36
- * Valid values are base or shaded. The shaded variant adds a light gray border to the step indicators.
36
+ * Valid values are base or shade. The shade variant adds a light gray border to the step indicators.
37
37
  * The default is base.
38
38
  * @type {string}
39
39
  * @default base
@@ -6,6 +6,15 @@ examples:
6
6
  - name: multiple
7
7
  label: Multiple Select
8
8
  description: A dropdown menu with multiple selection enabled.
9
+ - name: disabled
10
+ label: Disabled Select
11
+ description: A dropdown menu with disabled state.
12
+ - name: hidden
13
+ label: Hidden Select
14
+ description: A dropdown menu with hidden label.
15
+ - name: inline
16
+ label: Inline Select
17
+ description: A dropdown menu with inline label.
9
18
  ---
10
19
 
11
20
  `lightning-select` enables single and multiple selection on a menu of options using the HTML `select` element and `option` elements. To specify whether multiple options can be selected, use the `multiple` attribute. The `size` attribute can be used to specify how many options are visible at once. `lightning-select` also accepts most general form input attributes such as `required` and `disabled`.
@@ -0,0 +1,10 @@
1
+ <template>
2
+ <lightning-select
3
+ value={selectVal}
4
+ label="Select a product"
5
+ options={productOptions}
6
+ onchange={handleChange}
7
+ disabled
8
+ message-when-value-missing="Which area can we help you with?">
9
+ </lightning-select>
10
+ </template>
@@ -0,0 +1,27 @@
1
+ import { LightningElement } from 'lwc';
2
+
3
+ export default class SelectDisabled extends LightningElement {
4
+ selectVal = '';
5
+ productOptions = [
6
+ {
7
+ label: '--None--',
8
+ value: '',
9
+ },
10
+ {
11
+ label: 'Sales',
12
+ value: 'sales',
13
+ },
14
+ {
15
+ label: 'Marketing',
16
+ value: 'marketing',
17
+ },
18
+ {
19
+ label: 'Service',
20
+ value: 'service',
21
+ },
22
+ ];
23
+
24
+ handleChange(event) {
25
+ this.selectVal = event.detail.value;
26
+ }
27
+ }
@@ -0,0 +1,10 @@
1
+ <template>
2
+ <lightning-select
3
+ value={selectVal}
4
+ label="Select a product"
5
+ options={productOptions}
6
+ onchange={handleChange}
7
+ variant="label-hidden"
8
+ message-when-value-missing="Which area can we help you with?">
9
+ </lightning-select>
10
+ </template>
@@ -0,0 +1,27 @@
1
+ import { LightningElement } from 'lwc';
2
+
3
+ export default class SelectHidden extends LightningElement {
4
+ selectVal = '';
5
+ productOptions = [
6
+ {
7
+ label: '--None--',
8
+ value: '',
9
+ },
10
+ {
11
+ label: 'Sales',
12
+ value: 'sales',
13
+ },
14
+ {
15
+ label: 'Marketing',
16
+ value: 'marketing',
17
+ },
18
+ {
19
+ label: 'Service',
20
+ value: 'service',
21
+ },
22
+ ];
23
+
24
+ handleChange(event) {
25
+ this.selectVal = event.detail.value;
26
+ }
27
+ }
@@ -0,0 +1,10 @@
1
+ <template>
2
+ <lightning-select
3
+ name="tickets"
4
+ value={selectVal}
5
+ label="How many tickets?"
6
+ options={productOptions}
7
+ onchange={handleChange}
8
+ variant="label-inline">
9
+ </lightning-select>
10
+ </template>
@@ -0,0 +1,27 @@
1
+ import { LightningElement } from 'lwc';
2
+
3
+ export default class SelectInline extends LightningElement {
4
+ selectVal = '';
5
+ productOptions = [
6
+ {
7
+ label: '--None--',
8
+ value: '',
9
+ },
10
+ {
11
+ label: 'Sales',
12
+ value: 'sales',
13
+ },
14
+ {
15
+ label: 'Marketing',
16
+ value: 'marketing',
17
+ },
18
+ {
19
+ label: 'Service',
20
+ value: 'service',
21
+ },
22
+ ];
23
+
24
+ handleChange(event) {
25
+ this.selectVal = event.detail.value;
26
+ }
27
+ }