lightning-base-components 1.22.1-alpha → 1.22.3-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.
- package/README.md +2 -0
- package/metadata/raptor.json +38 -2
- package/package.json +12 -1
- package/scopedImports/@salesforce-label-LightningRecordPicker.actionIconAlternativeText.js +1 -0
- package/src/lightning/accordionSection/button.slds.css +8 -0
- package/src/lightning/ariaObserver/ariaObserver.js +1 -1
- package/src/lightning/baseCombobox/baseCombobox.html +1 -1
- package/src/lightning/baseCombobox/baseCombobox.js +1 -0
- package/src/lightning/baseCombobox/dropdown.slds.css +7 -7
- package/src/lightning/baseComboboxItem/card.lbc.native.css +1 -0
- package/src/lightning/baseComboboxItem/inline.lbc.native.css +1 -0
- package/src/lightning/button/button.slds.css +8 -0
- package/src/lightning/buttonIcon/button-icon.slds.css +8 -0
- package/src/lightning/buttonIcon/buttonIcon.js +29 -26
- package/src/lightning/buttonIconStateful/button-icon.slds.css +8 -0
- package/src/lightning/buttonIconStateful/button.slds.css +8 -0
- package/src/lightning/buttonMenu/button-icon.slds.css +8 -0
- package/src/lightning/buttonMenu/button.slds.css +8 -0
- package/src/lightning/buttonMenu/dropdown.slds.css +7 -7
- package/src/lightning/buttonStateful/button.slds.css +8 -0
- package/src/lightning/calendar/calendar.lbc.native.css +1 -0
- package/src/lightning/calendar/dropdown.slds.css +7 -7
- package/src/lightning/checkboxGroup/checkboxGroup.js +21 -10
- package/src/lightning/checkboxGroup/checkboxGroup.js-meta.xml +3 -0
- package/src/lightning/colorPickerPanel/colorPickerPanel.js +1 -11
- package/src/lightning/combobox/combobox.html +1 -1
- package/src/lightning/datatable/__docs__/datatable.md +10 -5
- package/src/lightning/datatable/autoWidthStrategy.js +32 -44
- package/src/lightning/datatable/columnResizer.js +3 -2
- package/src/lightning/datatable/columnWidthManager.js +16 -10
- package/src/lightning/datatable/columns.js +4 -1
- package/src/lightning/datatable/datatable.js +108 -46
- package/src/lightning/datatable/infiniteLoading.js +8 -20
- package/src/lightning/datatable/inlineEdit.js +11 -6
- package/src/lightning/datatable/keyboard.js +58 -55
- package/src/lightning/datatable/resizeObserver.js +10 -5
- package/src/lightning/datatable/rows.js +3 -3
- package/src/lightning/datatable/rowsInlining.js +5 -4
- package/src/lightning/datatable/state.js +1 -2
- package/src/lightning/datatable/templates/div/div.html +150 -43
- package/src/lightning/datatable/templates/div/div.lbc.synthetic.css +8 -7
- package/src/lightning/datatable/templates/table/table.html +153 -46
- package/src/lightning/datatable/utils.js +10 -4
- package/src/lightning/datatable/virtualization.js +6 -4
- package/src/lightning/datatable/wrapText.js +16 -15
- package/src/lightning/groupedCombobox/groupedCombobox.js +21 -28
- package/src/lightning/helptext/button-icon.slds.css +8 -0
- package/src/lightning/helptext/helptext.html +2 -1
- package/src/lightning/helptext/helptext.js +0 -12
- package/src/lightning/input/input.html +0 -1
- package/src/lightning/interactiveDialogBase/button.slds.css +8 -0
- package/src/lightning/modal/__docs__/modal.md +2 -0
- package/src/lightning/modalBase/modalBase.html +2 -0
- package/src/lightning/modalBase/modalBase.js +30 -31
- package/src/lightning/modalBody/modalBody.html +1 -0
- package/src/lightning/modalBody/modalBody.js +3 -0
- package/src/lightning/modalFooter/modalFooter.html +5 -1
- package/src/lightning/modalFooter/modalFooter.js +3 -0
- package/src/lightning/modalHeader/modalHeader.html +4 -1
- package/src/lightning/modalHeader/modalHeader.js +3 -0
- package/src/lightning/overlayManager/overlayManager.js +1 -1
- package/src/lightning/pillContainer/button.slds.css +8 -0
- package/src/lightning/positionLibrary/elementProxy.js +13 -6
- package/src/lightning/positionLibrary/util.js +20 -2
- package/src/lightning/primitiveBubble/primitiveBubble.js +9 -4
- package/src/lightning/primitiveCellActions/primitiveCellActions.html +1 -0
- package/src/lightning/primitiveCellActions/primitiveCellActions.js +3 -5
- package/src/lightning/primitiveCellButton/primitiveCellButton.html +2 -0
- package/src/lightning/primitiveCellButton/primitiveCellButton.js +3 -5
- package/src/lightning/primitiveCellCheckbox/checkbox.html +3 -2
- package/src/lightning/primitiveCellCheckbox/primitiveCellCheckbox.js +6 -3
- package/src/lightning/primitiveCellCheckbox/radio.html +5 -4
- package/src/lightning/primitiveCellEditableButton/primitiveCellEditableButton.html +1 -1
- package/src/lightning/primitiveCellEditableButton/primitiveCellEditableButton.js +1 -1
- package/src/lightning/primitiveCellFactory/bareCustomCell.html +1 -0
- package/src/lightning/primitiveCellFactory/cellWithStandardLayout.html +1 -0
- package/src/lightning/primitiveCellFactory/primitiveCellFactory.js +4 -6
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.html +1 -0
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.js +1 -1
- package/src/lightning/primitiveDatatableIeditPanel/primitiveDatatableIeditPanel.html +3 -1
- package/src/lightning/primitiveDatatableIeditPanel/primitiveDatatableIeditPanel.js +3 -3
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.html +1 -0
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.js +1 -3
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.html +1 -0
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.js +1 -1
- package/src/lightning/primitiveDatatableTooltipBubble/primitiveDatatableTooltipBubble.html +1 -1
- package/src/lightning/primitiveDatatableTooltipBubble/primitiveDatatableTooltipBubble.js +1 -1
- package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.html +2 -0
- package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.js +2 -4
- package/src/lightning/primitiveHeaderFactory/nonsortableHeader.html +8 -3
- package/src/lightning/primitiveHeaderFactory/primitiveHeaderFactory.js +43 -13
- package/src/lightning/primitiveHeaderFactory/selectableHeader.html +3 -2
- package/src/lightning/primitiveHeaderFactory/sortableHeader.html +8 -3
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.html +1 -1
- package/src/lightning/primitiveIcon/primitiveIcon.css +0 -1
- package/src/lightning/primitiveInputFile/button.slds.css +8 -0
- package/src/lightning/primitiveResizeHandler/primitiveResizeHandler.html +4 -2
- package/src/lightning/primitiveResizeHandler/primitiveResizeHandler.js +2 -2
- package/src/lightning/primitiveTreegridCellToggle/primitiveTreegridCellToggle.html +1 -1
- package/src/lightning/primitiveTreegridCellToggle/primitiveTreegridCellToggle.js +1 -1
- package/src/lightning/progressIndicator/progressIndicator.css +1 -1
- package/src/lightning/progressIndicator/progressIndicator.js +14 -6
- package/src/lightning/progressIndicator/progressIndicator.js-meta.xml +3 -0
- package/src/lightning/progressIndicator/progressIndicator.lbc.native.css +2 -0
- package/src/lightning/progressStep/__examples__/basic/basic.html +11 -0
- package/src/lightning/progressStep/__examples__/basic/basic.js +3 -0
- package/src/lightning/progressStep/__examples__/shaded/shaded.html +11 -0
- package/src/lightning/progressStep/__examples__/shaded/shaded.js +3 -0
- package/src/lightning/progressStep/base.html +2 -1
- package/src/lightning/progressStep/progressStep.css +1 -0
- package/src/lightning/progressStep/progressStep.js +40 -29
- package/src/lightning/progressStep/progressStep.js-meta.xml +3 -0
- package/src/lightning/progressStep/progressStep.lbc.native.css +3 -0
- package/src/lightning/sldsCommon/sldsCommon.css +1 -1
- package/src/lightning/sldsUtilsThemes/sldsUtilsThemes.css +6 -4
- package/src/lightning/tabBar/tab-bar.slds.css +17 -3
- package/src/lightning/tile/mediaTile.css +2 -0
- package/src/lightning/tile/standardTile.css +2 -1
- package/src/lightning/tile/tile.js +5 -2
- package/src/lightning/tile/tile.js-meta.xml +3 -0
- package/src/lightning/tile/tile.lbc.native.css +4 -0
- package/src/lightning/toast/button-icon.slds.css +8 -0
- package/src/lightning/tooltipLibrary/tooltipLibrary.js +15 -4
- package/src/lightning/utilsPrivate/utilsPrivate.js +4 -4
- package/src/lightning/verticalNavigationOverflow/button.slds.css +8 -0
- package/src/lightning/primitiveIcon/primitiveIcon.lbc.synthetic.css +0 -9
- /package/src/lightning/tile/{standardTile.lbc.synthetic.css → tile.lbc.synthetic.css} +0 -0
|
@@ -77,7 +77,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
77
77
|
text-decoration: underline;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
:host([data-render-mode="shadow"][variant='standard']) .slds-is-active [role='tab'],:host([data-render-mode="shadow"][variant='scoped']) .slds-is-active [role='tab'] {
|
|
80
|
+
:host([data-render-mode="shadow"][variant='standard']) .slds-is-active [role='tab'],:host([data-render-mode="shadow"][variant='scoped']) .slds-is-active [role='tab'],:host([data-render-mode="shadow"][variant='vertical']) .slds-is-active [role='tab'] {
|
|
81
81
|
font-weight: var(--slds-g-font-weight-7);
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -335,7 +335,15 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
335
335
|
padding-inline-start: var(--slds-c-tabbar-vertical-spacing-inlinestart, var(--slds-c-tabbar-vertical-spacing-inline, var(--slds-g-spacing-3)));
|
|
336
336
|
padding-inline-end: var(--slds-c-tabbar-vertical-spacing-inlineend, var(--slds-c-tabbar-vertical-spacing-inline, var(--slds-g-spacing-3)));
|
|
337
337
|
padding-block-end: var(--slds-c-tabbar-vertical-spacing-blockend, var(--slds-c-tabbar-vertical-spacing-block, var(--slds-g-spacing-3)));
|
|
338
|
-
|
|
338
|
+
|
|
339
|
+
/* stylelint-disable-next-line sds-stylelint-plugin/styling-hooks-pattern */
|
|
340
|
+
color: var(--slds-s-navigation-color);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
:host([data-render-mode="shadow"][variant='vertical']) .slds-is-active [role='tab'] {
|
|
344
|
+
|
|
345
|
+
/* stylelint-disable-next-line sds-stylelint-plugin/styling-hooks-pattern */
|
|
346
|
+
color: var(--slds-s-navigation-color-active);
|
|
339
347
|
}
|
|
340
348
|
|
|
341
349
|
:host([data-render-mode="shadow"][variant='vertical']) [role='tab']:hover {
|
|
@@ -347,5 +355,11 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
347
355
|
|
|
348
356
|
:host([data-render-mode="shadow"][variant='vertical']) .slds-is-active [role='tab']:hover {
|
|
349
357
|
background: var(--slds-c-tabbar-vertical-color-background-active, var(--slds-g-color-surface-container-1));
|
|
350
|
-
|
|
358
|
+
|
|
359
|
+
/* stylelint-disable-next-line sds-stylelint-plugin/styling-hooks-pattern */
|
|
360
|
+
color: var(--slds-c-tabbar-vertical-text-color-hover, var(--slds-s-navigation-color-hover, var(--slds-g-color-neutral-base-20)));
|
|
351
361
|
}
|
|
362
|
+
|
|
363
|
+
:host([data-render-mode="shadow"][variant='scoped']) .slds-is-active [role='tab']:focus,:host([data-render-mode="shadow"][variant='vertical']) .slds-is-active [role='tab']:focus {
|
|
364
|
+
box-shadow: var(--slds-g-shadow-6, 0 0 3px #0176d3);
|
|
365
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@import './
|
|
1
|
+
@import './tile.lbc.synthetic.css';
|
|
2
|
+
@import './tile.lbc.native.css';
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
classListMutation,
|
|
5
5
|
normalizeString,
|
|
6
6
|
} from 'lightning/utilsPrivate';
|
|
7
|
-
import {
|
|
7
|
+
import { api, track } from 'lwc';
|
|
8
|
+
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
8
9
|
import mediaTile from './mediaTile.html';
|
|
9
10
|
import standardTile from './standardTile.html';
|
|
10
11
|
|
|
@@ -18,7 +19,8 @@ const i18n = {
|
|
|
18
19
|
* A grouping of related information associated with a record.
|
|
19
20
|
* @slot default Placeholder for your content that appears below the heading.
|
|
20
21
|
*/
|
|
21
|
-
export default class LightningTile extends
|
|
22
|
+
export default class LightningTile extends LightningShadowBaseClass {
|
|
23
|
+
static validationOptOut = ['class'];
|
|
22
24
|
/**
|
|
23
25
|
* The text label that displays in the tile as the heading and hover text.
|
|
24
26
|
* @type {string}
|
|
@@ -90,6 +92,7 @@ export default class LightningTile extends LightningElement {
|
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
connectedCallback() {
|
|
95
|
+
super.connectedCallback();
|
|
93
96
|
this._connected = true;
|
|
94
97
|
this.classList.add('slds-tile');
|
|
95
98
|
this.setClassesAndTemplate();
|
|
@@ -299,6 +299,14 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
299
299
|
--sds-c-button-color-border-disabled: var(--slds-g-color-border-disabled-1);
|
|
300
300
|
--sds-c-button-text-color-disabled: var(--slds-g-color-on-disabled-1);
|
|
301
301
|
--sds-c-button-color-background-disabled: var(--slds-g-color-disabled-container-1);
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Needed to override
|
|
305
|
+
* `pointer-event: none` coming from sds
|
|
306
|
+
* that prevent tooltip from showing
|
|
307
|
+
*/
|
|
308
|
+
pointer-events: auto;
|
|
309
|
+
cursor: default;
|
|
302
310
|
}
|
|
303
311
|
/**
|
|
304
312
|
* A note about fallbacks on the default variant:
|
|
@@ -228,10 +228,11 @@ export class Tooltip {
|
|
|
228
228
|
const target = this._target();
|
|
229
229
|
|
|
230
230
|
if (!this._initialized && target) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
['touchstart', 'click'].forEach((eventName) =>
|
|
232
|
+
target.addEventListener(eventName, (event) =>
|
|
233
|
+
this.toggleIfTouchOrClick(event)
|
|
234
|
+
)
|
|
235
|
+
);
|
|
235
236
|
|
|
236
237
|
['mouseenter', 'focus'].forEach((eventName) =>
|
|
237
238
|
target.addEventListener(eventName, (event) => this.show(event))
|
|
@@ -251,6 +252,16 @@ export class Tooltip {
|
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
254
|
|
|
255
|
+
/* mobile listens for both 'click' and 'touchstart', but we only want to listen to
|
|
256
|
+
either 'touchstart' and not 'click', otherwise it will double toggle. Call preventDefault() to prevent the
|
|
257
|
+
'click' event from bubbling after a 'touchstart' is detected on mobile.
|
|
258
|
+
*/
|
|
259
|
+
toggleIfTouchOrClick(e) {
|
|
260
|
+
e.preventDefault();
|
|
261
|
+
e.stopPropagation();
|
|
262
|
+
this.toggle();
|
|
263
|
+
}
|
|
264
|
+
|
|
254
265
|
handleEscape(e) {
|
|
255
266
|
if (e.key === 'Escape' && this._isFocusEvent) {
|
|
256
267
|
e.stopPropagation();
|
|
@@ -306,12 +306,12 @@ export function buttonGroupOrderClass(groupOrder) {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
|
-
* Checks if the given component is native
|
|
310
|
-
* @param {Object} cmp
|
|
311
|
-
* @returns {Boolean} Whether the component is native
|
|
309
|
+
* Checks if the given lightning component is native
|
|
310
|
+
* @param {Object} cmp LightningElement instance
|
|
311
|
+
* @returns {Boolean} Whether the lightning component is native
|
|
312
312
|
*/
|
|
313
313
|
export function isNativeComponent(cmp) {
|
|
314
|
-
return
|
|
314
|
+
return cmp?.template && !cmp.template.synthetic;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
/**
|
|
@@ -296,6 +296,14 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
296
296
|
--sds-c-button-color-border-disabled: var(--slds-g-color-border-disabled-1);
|
|
297
297
|
--sds-c-button-text-color-disabled: var(--slds-g-color-on-disabled-1);
|
|
298
298
|
--sds-c-button-color-background-disabled: var(--slds-g-color-disabled-container-1);
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Needed to override
|
|
302
|
+
* `pointer-event: none` coming from sds
|
|
303
|
+
* that prevent tooltip from showing
|
|
304
|
+
*/
|
|
305
|
+
pointer-events: auto;
|
|
306
|
+
cursor: default;
|
|
299
307
|
}
|
|
300
308
|
/**
|
|
301
309
|
* A note about fallbacks on the default variant:
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
"Temporary" fix for Edge SVG quirk. We can remove this when it is fixed either
|
|
3
|
-
at the SLDS level or at the browser level.
|
|
4
|
-
https://git.soma.salesforce.com/aura/lightning-global/issues/1349
|
|
5
|
-
Also prevents IE11 from gacking during some interactions
|
|
6
|
-
*/
|
|
7
|
-
_:-ms-lang(x), svg {
|
|
8
|
-
pointer-events: none;
|
|
9
|
-
}
|
|
File without changes
|