lightning-base-components 1.21.4-alpha → 1.21.6-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 (104) hide show
  1. package/metadata/raptor.json +2 -1
  2. package/package.json +9 -1
  3. package/scopedImports/@salesforce-label-LightningLookup.messageWhenSearchTermTooShort.js +1 -0
  4. package/src/lightning/accordion/__docs__/accordion.md +0 -4
  5. package/src/lightning/accordionSection/__docs__/accordionSection.md +0 -4
  6. package/src/lightning/avatar/__docs__/avatar.md +0 -4
  7. package/src/lightning/badge/__docs__/badge.md +0 -4
  8. package/src/lightning/badge/badge.slds.css +1 -1
  9. package/src/lightning/barcodeScanner/__docs__/barcodeScanner.md +0 -4
  10. package/src/lightning/baseCombobox/baseCombobox.js +2 -2
  11. package/src/lightning/baseComboboxItem/baseComboboxItem.js +6 -10
  12. package/src/lightning/button/__docs__/button.md +3 -7
  13. package/src/lightning/buttonGroup/__docs__/buttonGroup.md +0 -4
  14. package/src/lightning/buttonIcon/__docs__/buttonIcon.md +0 -4
  15. package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +0 -4
  16. package/src/lightning/buttonMenu/__docs__/buttonMenu.md +0 -4
  17. package/src/lightning/buttonStateful/__docs__/buttonStateful.md +0 -4
  18. package/src/lightning/buttonStateful/buttonStateful.html +5 -3
  19. package/src/lightning/buttonStateful/buttonStateful.js +4 -0
  20. package/src/lightning/card/__docs__/card.md +0 -4
  21. package/src/lightning/card/card.js-meta.xml +3 -0
  22. package/src/lightning/carousel/__docs__/carousel.md +0 -4
  23. package/src/lightning/checkboxGroup/__docs__/checkboxGroup.md +0 -4
  24. package/src/lightning/combobox/__docs__/combobox.md +0 -4
  25. package/src/lightning/combobox/form-element.slds.css +4 -1
  26. package/src/lightning/datatable/columnWidthManager.js +3 -3
  27. package/src/lightning/datatable/columns.js +17 -18
  28. package/src/lightning/datatable/datatable.js +146 -84
  29. package/src/lightning/datatable/indexes.js +1 -3
  30. package/src/lightning/datatable/infiniteLoading.js +1 -1
  31. package/src/lightning/datatable/inlineEdit.js +10 -7
  32. package/src/lightning/datatable/keyboard.js +21 -44
  33. package/src/lightning/datatable/renderManager.js +9 -18
  34. package/src/lightning/datatable/rows.js +112 -128
  35. package/src/lightning/datatable/sort.js +35 -14
  36. package/src/lightning/datatable/state.js +5 -0
  37. package/src/lightning/datatable/tree.js +0 -33
  38. package/src/lightning/datatable/utils.js +15 -5
  39. package/src/lightning/datepicker/datepicker.js +12 -3
  40. package/src/lightning/datepicker/form-element.slds.css +4 -1
  41. package/src/lightning/datetimepicker/form-element.slds.css +4 -1
  42. package/src/lightning/dualListbox/__docs__/dualListbox.md +0 -4
  43. package/src/lightning/dualListbox/form-element.slds.css +4 -1
  44. package/src/lightning/dynamicIcon/__docs__/dynamicIcon.md +0 -4
  45. package/src/lightning/formattedDateTime/__docs__/formattedDateTime.md +0 -4
  46. package/src/lightning/formattedLocation/__docs__/formattedLocation.md +0 -4
  47. package/src/lightning/formattedName/__docs__/formattedName.md +0 -4
  48. package/src/lightning/formattedNumber/__docs__/formattedNumber.md +0 -4
  49. package/src/lightning/formattedPhone/__docs__/formattedPhone.md +0 -4
  50. package/src/lightning/formattedText/__docs__/formattedText.md +0 -4
  51. package/src/lightning/formattedTime/__docs__/formattedTime.md +0 -4
  52. package/src/lightning/formattedUrl/__docs__/formattedUrl.md +0 -4
  53. package/src/lightning/groupedCombobox/form-element.slds.css +4 -1
  54. package/src/lightning/helptext/form-element.slds.css +4 -1
  55. package/src/lightning/icon/__docs__/icon.md +0 -4
  56. package/src/lightning/input/form-element.slds.css +4 -1
  57. package/src/lightning/inputAddress/form-element.slds.css +4 -1
  58. package/src/lightning/inputAddress/inputAddress.js +13 -7
  59. package/src/lightning/inputLocation/__docs__/inputLocation.md +0 -4
  60. package/src/lightning/inputLocation/form-element.slds.css +4 -1
  61. package/src/lightning/inputName/form-element.slds.css +4 -1
  62. package/src/lightning/layout/__docs__/layout.md +0 -4
  63. package/src/lightning/layoutItem/__docs__/layoutItem.md +0 -4
  64. package/src/lightning/lookupAddress/form-element.slds.css +4 -1
  65. package/src/lightning/menuItem/__docs__/menuItem.md +0 -4
  66. package/src/lightning/menuSubheader/menu-subheader.slds.css +1 -1
  67. package/src/lightning/modalBase/modalBase.js +14 -31
  68. package/src/lightning/pill/__docs__/pill.md +0 -4
  69. package/src/lightning/pillContainer/__docs__/pillContainer.md +0 -4
  70. package/src/lightning/primitiveBubble/primitiveBubble.js +26 -11
  71. package/src/lightning/primitiveHeaderFactory/primitiveHeaderFactory.js +1 -1
  72. package/src/lightning/primitiveInputCheckbox/form-element.slds.css +4 -1
  73. package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +4 -1
  74. package/src/lightning/primitiveInputColor/form-element.slds.css +4 -1
  75. package/src/lightning/primitiveInputFile/form-element.slds.css +4 -1
  76. package/src/lightning/primitiveInputSimple/form-element.slds.css +4 -1
  77. package/src/lightning/primitiveInputToggle/form-element.slds.css +4 -1
  78. package/src/lightning/progressBar/progress-bar.slds.css +1 -1
  79. package/src/lightning/radioGroup/__docs__/radioGroup.md +0 -4
  80. package/src/lightning/radioGroup/form-element.slds.css +4 -1
  81. package/src/lightning/relativeDateTime/__docs__/relativeDateTime.md +0 -4
  82. package/src/lightning/select/form-element.slds.css +4 -1
  83. package/src/lightning/slider/__docs__/slider.md +0 -4
  84. package/src/lightning/spinner/__docs__/spinner.md +0 -4
  85. package/src/lightning/tab/__docs__/tab.md +0 -4
  86. package/src/lightning/tabset/__docs__/tabset.md +0 -4
  87. package/src/lightning/textarea/__docs__/textarea.md +0 -4
  88. package/src/lightning/textarea/__examples__/various/various.html +18 -1
  89. package/src/lightning/textarea/form-element.slds.css +4 -1
  90. package/src/lightning/textarea/textarea.js +25 -0
  91. package/src/lightning/tile/__docs__/tile.md +0 -4
  92. package/src/lightning/timepicker/form-element.slds.css +4 -1
  93. package/src/lightning/tree/__docs__/tree.md +0 -4
  94. package/src/lightning/tree/tree.js +5 -1
  95. package/src/lightning/verticalNavigation/__docs__/verticalNavigation.md +0 -4
  96. package/src/lightning/verticalNavigationItem/__docs__/verticalNavigationItem.md +0 -4
  97. package/src/lightning/verticalNavigationItem/vertical-navigation-item.slds.css +1 -1
  98. package/src/lightning/verticalNavigationItemBadge/__docs__/verticalNavigationItemBadge.md +0 -4
  99. package/src/lightning/verticalNavigationItemBadge/badge.slds.css +1 -1
  100. package/src/lightning/verticalNavigationItemBadge/vertical-navigation-item.slds.css +1 -1
  101. package/src/lightning/verticalNavigationItemIcon/__docs__/verticalNavigationItemIcon.md +0 -4
  102. package/src/lightning/verticalNavigationItemIcon/vertical-navigation-item.slds.css +1 -1
  103. package/src/lightning/verticalNavigationOverflow/vertical-navigation-item.slds.css +1 -1
  104. package/src/lightning/datatable/columns-shared.js +0 -12
@@ -2030,7 +2030,7 @@
2030
2030
  "name": "showAddressLookup"
2031
2031
  },
2032
2032
  {
2033
- "name": "showCompactAddressLookup"
2033
+ "name": "showCompactAddress"
2034
2034
  },
2035
2035
  {
2036
2036
  "name": "street"
@@ -3083,6 +3083,7 @@
3083
3083
  "minVersion": "45.0"
3084
3084
  },
3085
3085
  "platformScaleCenterApi": {},
3086
+ "platformSharingApi": {},
3086
3087
  "platformShowToastEvent": {
3087
3088
  "minVersion": "45.0"
3088
3089
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lightning-base-components",
3
- "version": "1.21.4-alpha",
3
+ "version": "1.21.6-alpha",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "external",
@@ -986,6 +986,10 @@
986
986
  "name": "@salesforce/label/LightningLookup.modalCancel",
987
987
  "path": "scopedImports/@salesforce-label-LightningLookup.modalCancel.js"
988
988
  },
989
+ {
990
+ "name": "@salesforce/label/LightningLookup.messageWhenSearchTermTooShort",
991
+ "path": "scopedImports/@salesforce-label-LightningLookup.messageWhenSearchTermTooShort.js"
992
+ },
989
993
  {
990
994
  "name": "@salesforce/label/LightningRecordPicker.invalidConfigurationErrorMessage",
991
995
  "path": "scopedImports/@salesforce-label-LightningRecordPicker.invalidConfigurationErrorMessage.js"
@@ -1365,6 +1369,7 @@
1365
1369
  "lightning-button-icon-stateful",
1366
1370
  "lightning-button-menu",
1367
1371
  "lightning-button-stateful",
1372
+ "lightning-card",
1368
1373
  "lightning-calendar",
1369
1374
  "lightning-color-picker-custom",
1370
1375
  "lightning-color-picker-panel",
@@ -1402,9 +1407,11 @@
1402
1407
  "lightning-progress-ring",
1403
1408
  "lightning-primitive-bubble",
1404
1409
  "lightning-primitive-button",
1410
+ "primitive-file-droppable-zone",
1405
1411
  "lightning-primitive-input-checkbox",
1406
1412
  "lightning-primitive-input-checkbox-button",
1407
1413
  "lightning-primitive-input-color",
1414
+ "lightning-primitive-colorpicker-button",
1408
1415
  "lightning-primitive-input-file",
1409
1416
  "lightning-primitive-input-simple",
1410
1417
  "lightning-primitive-input-toggle",
@@ -1524,6 +1531,7 @@
1524
1531
  "lightning-primitive-bubble",
1525
1532
  "lightning-primitive-button",
1526
1533
  "lightning-primitive-color-picker-button",
1534
+ "primitive-file-droppable-zone",
1527
1535
  "lightning-primitive-icon",
1528
1536
  "lightning-primitive-input-checkbox",
1529
1537
  "lightning-primitive-input-checkbox-button",
@@ -0,0 +1 @@
1
+ export default 'Type at least 2 characters to perform a search.';
@@ -272,7 +272,3 @@ The event properties are as follows.
272
272
  | bubbles | false | This event does not bubble. |
273
273
  | cancelable | false | This event has no default behavior that can be canceled. You can't call `preventDefault()` on this event. |
274
274
  | composed | false | This event does not propagate outside the template in which it was dispatched. |
275
-
276
- #### Source Code
277
-
278
- `lightning-accordion` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -91,7 +91,3 @@ renders with `aria-expanded="true"`. When a section is collapsed, the button ren
91
91
  Additionally, the button uses the `aria-controls` attribute to identify the content that relates to the controlling button on the accordion section.
92
92
 
93
93
  To expand or collapse a section using the keyboard, press the Tab key to set focus on the toggle button or header text and press Enter.
94
-
95
- #### Source Code
96
-
97
- `lightning-accordion-section` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -153,7 +153,3 @@ To understand how we implemented SLDS in `lightning-avatar`, see the **Source Co
153
153
  #### Accessibility
154
154
 
155
155
  Use the `alternative-text` attribute to describe the avatar, such as a user's initials or name. This description provides the value for the `alt` attribute in the `img` HTML tag.
156
-
157
- #### Source Code
158
-
159
- `lightning-avatar` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -97,7 +97,3 @@ To understand how we implemented SLDS in `lightning-badge`, see the **Source Cod
97
97
  #### Usage Considerations
98
98
 
99
99
  Badges with nested elements are not supported. To create a label that can contain links, use `lightning-pill` instead.
100
-
101
- #### Source Code
102
-
103
- `lightning-badge` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -12,7 +12,7 @@
12
12
  align-items: center;
13
13
  padding: var(--slds-g-spacing-1) var(--slds-g-spacing-2);
14
14
  color: var(--slds-c-badge-text-color, var(--slds-g-color-on-surface-3));
15
- font-size: var(--slds-c-badge-font-size, var(--slds-g-font-scale-neg-2));
15
+ font-size: var(--slds-c-badge-font-size, var(--slds-g-font-scale-neg-1));
16
16
  font-weight: var(--slds-g-font-weight-7);
17
17
  /* stylelint-disable */
18
18
  line-height: var(--slds-c-badge-font-lineheight, initial);
@@ -116,7 +116,3 @@ The `errors` event has these properties.
116
116
  | bubbles | false | This event does not bubble. |
117
117
  | cancelable | true | This event can be canceled. You can call `preventDefault()` on this event to prevent firing the click event. |
118
118
  | composed | false | This event does not propagate outside the template in which it was dispatched. |
119
-
120
- #### Source Code
121
-
122
- `lightning-barcode-scanner` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -856,7 +856,7 @@ export default class LightningBaseCombobox extends LightningShadowBaseClass {
856
856
  highlightOption(option) {
857
857
  this.removeHighlight();
858
858
  if (option) {
859
- option.highlight(option.ariaChecked);
859
+ option.highlight();
860
860
  this._highlightedOptionElement = option;
861
861
  this._highlightedOptionElementId =
862
862
  option.getAttribute('data-item-id');
@@ -877,7 +877,7 @@ export default class LightningBaseCombobox extends LightningShadowBaseClass {
877
877
  removeHighlight() {
878
878
  const option = this._highlightedOptionElement;
879
879
  if (option) {
880
- option.removeHighlight(option.ariaChecked);
880
+ option.removeHighlight();
881
881
  this._highlightedOptionElement = null;
882
882
  this._highlightedOptionElementId = null;
883
883
  this._activeElementDomId = null;
@@ -43,22 +43,18 @@ export default class LightningBaseComboboxItem extends LightningShadowBaseClass
43
43
  }
44
44
 
45
45
  @api
46
- highlight(isSelected) {
47
- this.toggleHighlight(true, isSelected);
46
+ highlight() {
47
+ this.toggleHighlight(true);
48
48
  }
49
49
 
50
50
  @api
51
- removeHighlight(isSelected) {
52
- this.toggleHighlight(false, isSelected);
51
+ removeHighlight() {
52
+ this.toggleHighlight(false);
53
53
  }
54
54
 
55
- toggleHighlight(highlighted, isSelected) {
55
+ toggleHighlight(highlighted) {
56
56
  if (this.item.selectable) {
57
- //Only announce the selected item from the list, not the hovered or focused ones.
58
- this.setAttribute(
59
- 'aria-selected',
60
- isSelected === 'true' ? true : false
61
- );
57
+ this.setAttribute('aria-selected', highlighted ? 'true' : 'false');
62
58
  this.classList.toggle('slds-has-focus', highlighted);
63
59
  }
64
60
  }
@@ -104,15 +104,15 @@ Use the `variant` attribute with one of these values to apply styling and animat
104
104
  - `inverse` uses the background color and light text, useful for dark backgrounds.
105
105
  - `success` is a green button used to indicate a successful action.
106
106
 
107
- ##### Animation
107
+ ##### Animation
108
108
 
109
- Buttons are animated by default. For the `base` variant, an underline is drawn when you mouse over the button. For the other variants, a ripple of contrasting color displays when you click the button.
109
+ Buttons are animated by default. For the `base` variant, an underline is drawn when you mouse over the button. For the other variants, a ripple of contrasting color displays when you click the button.
110
110
 
111
111
  When a button is disabled, the animation is disabled as well.
112
112
 
113
113
  If your browser or operating system is set to reduce animation, the button animations don't display.
114
114
 
115
- To prevent animation for a button, use the `disable-animation` attribute.
115
+ To prevent animation for a button, use the `disable-animation` attribute.
116
116
 
117
117
  ```html
118
118
  <template>
@@ -279,7 +279,3 @@ Use the following accessibility and `aria` attributes on `lightning-button`.
279
279
  | tabindex | integer | Specifies whether the button is focusable during tab navigation. Set tab index to -1 to prevent focus on the button during tab navigation. The default value is 0, which makes the button focusable during tab navigation. For more information see [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex). |
280
280
 
281
281
  For more information, see the [WAI-ARIA Specification](https://www.w3.org/TR/wai-aria/).
282
-
283
- #### Source Code
284
-
285
- `lightning-button` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -73,10 +73,6 @@ To apply additional styling, use SLDS [utility classes](https://www.lightningdes
73
73
 
74
74
  You can customize the `lightning-button-*` base components you use within `lightning-button-group` using SLDS styling hooks. For more information, see the corresponding base component documentation.
75
75
 
76
- #### Source Code
77
-
78
- `lightning-button-group` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
79
-
80
76
  #### See Also
81
77
 
82
78
  [lightning-navigation](bundle/lightning-navigation/documentation)
@@ -208,7 +208,3 @@ Use the following accessibility and `aria` attributes on `lightning-button-icon`
208
208
  | tabindex | integer | Specifies whether the button is focusable during tab navigation. Set tab index to -1 to prevent focus on the button during tab navigation. The default value is 0, which makes the button focusable during tab navigation. For more information, see [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex). |
209
209
 
210
210
  For more information, see the [WAI-ARIA Specification](https://www.w3.org/TR/wai-aria/).
211
-
212
- #### Source Code
213
-
214
- `lightning-button-icon` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -179,7 +179,3 @@ Use the following accessibility and `aria` attributes on `lightning-button-icon-
179
179
  | aria-live | string | Indicates whether the button will be updated, and describes the types of updates assistive technologies will make. Possible values include `off`, `polite`, and `assertive`. The default is `off`. For the screen reader to announce changes when the user is idle, use `polite`. For immediate notifications, use `assertive`. |
180
180
 
181
181
  For more information, see the [WAI-ARIA Specification](https://www.w3.org/TR/wai-aria/).
182
-
183
- #### Source Code
184
-
185
- `lightning-button-icon-stateful` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -327,7 +327,3 @@ The event properties are as follows.
327
327
  | bubbles | false | This event does not bubble. |
328
328
  | cancelable | false | This event has no default behavior that can be canceled. You cannot call `preventDefault()` on this event. |
329
329
  | composed | false | This event does not propagate outside of the component in which it was dispatched. |
330
-
331
- #### Source Code
332
-
333
- `lightning-button-menu` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -162,7 +162,3 @@ This component has usage differences from its Aura counterpart. See [Base Compon
162
162
  This component uses `aria-live="polite"`, which means the button label is read after the current user task or content.
163
163
 
164
164
  To inform screen readers that a button is disabled, set the `disabled` attribute to true.
165
-
166
- #### Source Code
167
-
168
- `lightning-button-stateful` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -4,24 +4,26 @@
4
4
  onblur={handleButtonBlur}
5
5
  onclick={handleButtonClick}
6
6
  aria-live="polite"
7
+ aria-relevant="additions"
8
+ aria-pressed={computedAriaPressed}
7
9
  part="button"
8
10
  disabled={disabled}>
9
11
 
10
12
  <span class="slds-text-not-selected">
11
13
  <template if:true={iconNameWhenOff}>
12
- <lightning-primitive-icon part="start" icon-name={iconNameWhenOff} svg-class="slds-button__icon_stateful slds-button__icon_left" variant="bare"></lightning-primitive-icon>
14
+ <lightning-primitive-icon aria-hidden="true" part="start" icon-name={iconNameWhenOff} svg-class="slds-button__icon_stateful slds-button__icon_left" variant="bare"></lightning-primitive-icon>
13
15
  </template>
14
16
  {privateLabelWhenOff}
15
17
  </span>
16
18
  <span class="slds-text-selected">
17
19
  <template if:true={iconNameWhenOn}>
18
- <lightning-primitive-icon part="start" icon-name={iconNameWhenOn} svg-class="slds-button__icon_stateful slds-button__icon_left" variant="bare"></lightning-primitive-icon>
20
+ <lightning-primitive-icon aria-hidden="true" part="start" icon-name={iconNameWhenOn} svg-class="slds-button__icon_stateful slds-button__icon_left" variant="bare"></lightning-primitive-icon>
19
21
  </template>
20
22
  {privateLabelWhenOn}
21
23
  </span>
22
24
  <span class="slds-text-selected-focus">
23
25
  <template if:true={privateIconNameWhenHover}>
24
- <lightning-primitive-icon part="start" icon-name={privateIconNameWhenHover} svg-class="slds-button__icon_stateful slds-button__icon_left" variant="bare"></lightning-primitive-icon>
26
+ <lightning-primitive-icon aria-hidden="true" part="start" icon-name={privateIconNameWhenHover} svg-class="slds-button__icon_stateful slds-button__icon_left" variant="bare"></lightning-primitive-icon>
25
27
  </template>
26
28
  {privateLabelWhenHover}
27
29
  </span>
@@ -239,6 +239,10 @@ export default class LightningButtonStateful extends LightningShadowBaseClass {
239
239
  this.dispatchEvent(new CustomEvent('focus'));
240
240
  }
241
241
 
242
+ get computedAriaPressed() {
243
+ return String(this.state.selected);
244
+ }
245
+
242
246
  // validate a label is a string and not zero length
243
247
  isValidLabel(labelVal) {
244
248
  // if not a string or of length 0 then label is not valid
@@ -108,7 +108,3 @@ To understand how we implemented SLDS in `lightning-card`, see the **Source Code
108
108
  Icons are not available in Lightning Out, but they are available in Lightning Components for Visualforce and other experiences.
109
109
 
110
110
  This component has usage differences from its Aura counterpart. See [Base Components: Aura Vs Lightning Web Components](https://developer.salesforce.com/docs/platform/lwc/guide/migrate-map-aura-lwc-components) in the Lightning Web Components Developer Guide.
111
-
112
- #### Source Code
113
-
114
- `lightning-card` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -3,4 +3,7 @@
3
3
  <isExposed>true</isExposed>
4
4
  <minApiVersion>0.0</minApiVersion>
5
5
  <support>GA</support>
6
+ <capabilities>
7
+ <capability>lightning__ServerRenderableWithHydration</capability>
8
+ </capabilities>
6
9
  </LightningComponentBundle>
@@ -88,7 +88,3 @@ This example creates a basic carousel with three images and disables automatic s
88
88
 
89
89
  Use the Tab key to move focus to the carousel, then tab again to focus on the indicator buttons.
90
90
  Use right and left arrow keys to scroll to the next or previous image.
91
-
92
- #### Source Code
93
-
94
- `lightning-carousel` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -194,7 +194,3 @@ element. The legend contains the `label` value. The `fieldset` element enables
194
194
  grouping of related checkboxes to facilitate tabbing navigation and speech
195
195
  navigation for accessibility purposes. Similarly, the `legend` element
196
196
  improves accessibility by enabling a caption to be assigned to the `fieldset`.
197
-
198
- #### Source Code
199
-
200
- `lightning-checkbox-group` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -156,7 +156,3 @@ The `open` event does not return any parameters.
156
156
  | bubbles | false | This event does not bubble. |
157
157
  | cancelable | false | This event has no default behavior that can be canceled. You cannot call `preventDefault()` on this event. |
158
158
  | composed | false | This event does not propagate outside of the component in which it was dispatched. |
159
-
160
- #### Source Code
161
-
162
- `lightning-combobox` is available in the [Base Components Recipes GitHub repository](https://github.com/salesforce/base-components-recipes#documentation). It's transpiled into the `c` namespace so that you can use it in your own projects.
@@ -187,7 +187,10 @@
187
187
  }
188
188
 
189
189
  :host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
190
- border-bottom: 0; /* Remove border when using legacy version of slds-form-element */
190
+ /* @W-14518344 The following line still exists in SLDS-internal
191
+ but it was removed here because it was causing the input
192
+ component to not display it's bottom border
193
+ border-bottom: 0; Remove border when using legacy version of slds-form-element */
191
194
  padding-inline-start: 0;
192
195
  }
193
196
 
@@ -1,7 +1,7 @@
1
1
  import { RESIZER_DEFAULT_STATE, isTableRenderedVisible } from './columnResizer';
2
2
  import { AutoWidthStrategy } from './autoWidthStrategy';
3
3
  import { FixedWidthStrategy } from './fixedWidthStrategy';
4
- import { getScrollerXFromScrollerY, getScrollerY } from './utils';
4
+ import { getScrollerX } from './utils';
5
5
  import {
6
6
  getRowNumberColumnIndex,
7
7
  getAdjustedRowNumberColumnWidth,
@@ -364,8 +364,8 @@ export class ColumnWidthManager {
364
364
  getDatatableInterface(template) {
365
365
  return {
366
366
  getAvailableWidthFromDom() {
367
- const scrollerY = getScrollerY(template);
368
- return getScrollerXFromScrollerY(scrollerY).offsetWidth;
367
+ const scrollerX = getScrollerX(template);
368
+ return scrollerX.offsetWidth;
369
369
  },
370
370
  getDataCellWidths() {
371
371
  const cellElements = template.querySelectorAll(
@@ -43,7 +43,11 @@ const SELECTABLE_COLUMN = {
43
43
  * @param {Array} rawColumns - The user provided column definitions to normalize
44
44
  * @param {Object} types - The type handling factory
45
45
  */
46
- export function normalizeColumns(state, rawColumns, types) {
46
+ export function setColumns(state, rawColumns, types) {
47
+ // Untracked state changes.
48
+ state.hadTreeDataTypePreviously = state.treeColumn !== undefined;
49
+ state.treeColumn = undefined;
50
+
47
51
  const { length: colCount } = rawColumns;
48
52
  if (colCount === 0) {
49
53
  // Tracked state change.
@@ -176,13 +180,22 @@ export function normalizeColumns(state, rawColumns, types) {
176
180
  }
177
181
 
178
182
  // Generate colKeyValue after normalizing customer column.
179
- normCol.colKeyValue = generateColKeyValue(normCol, colIndex);
183
+ const colKeyValue =
184
+ normCol.colKeyValue ||
185
+ `${colName || colIndex}-${columnType}-${colIndex}`;
186
+
187
+ normCol.colKeyValue = colKeyValue;
180
188
  normCol.isScopeCol = colIndex === firstColumnForReaders;
181
189
  normCol.isLastCol = colIndex === normColCount - 1;
190
+ normCol.name = colName;
182
191
  normCol.tabIndex = -1;
183
192
 
184
193
  // normalize tree column
185
194
  if (normCol.type === 'tree') {
195
+ if (state.treeColumn === undefined) {
196
+ // Untracked state changes
197
+ state.treeColumn = normCol;
198
+ }
186
199
  // normalized subType attributes
187
200
  const { typeAttributes } = normCol;
188
201
  const typeAttributesOverrides = {};
@@ -201,10 +214,9 @@ export function normalizeColumns(state, rawColumns, types) {
201
214
 
202
215
  // partially inline updateHeaderInternalActions from datatable/headerActions
203
216
  const { actions } = normCol;
204
- const isLastColumn = colIndex === normColCount - 1;
205
217
  normCol.actions = {
206
218
  menuAlignment:
207
- isLastColumn ||
219
+ normCol.isLastCol ||
208
220
  normalizedColumns[colIndex + 1].type === 'action'
209
221
  ? 'auto-right'
210
222
  : 'auto-left',
@@ -247,19 +259,6 @@ export function getCellAttributesValues(column) {
247
259
  return isObjectLike(cellAttributes) ? cellAttributes : {};
248
260
  }
249
261
 
250
- /**
251
- * Generates a unique column key value.
252
- *
253
- * @param {Object} columnMetadata The object for an specific column metadata
254
- * @param {Integer} index Optionally, the index of the column.
255
- * @returns {String} It generates the column key value based on the column field name and type.
256
- */
257
- export function generateColKeyValue(columnMetadata, index) {
258
- const { columnKey, fieldName, type } = columnMetadata;
259
- const prefix = columnKey || fieldName || index;
260
- return `${prefix}-${type}-${index}`;
261
- }
262
-
263
262
  /**
264
263
  * Return the index in dt.columns (user definition) related to colKeyValue.
265
264
  * -1 if no column with that key exist or if its internal.
@@ -296,7 +295,7 @@ export function getUserColumnIndex(state, colKeyValue) {
296
295
  */
297
296
  export const generateHeaderIndexes = function (columns) {
298
297
  return columns.reduce((prev, col, index) => {
299
- prev[generateColKeyValue(col, index)] = index;
298
+ prev[col.colKeyValue] = index;
300
299
  return prev;
301
300
  }, {});
302
301
  };