lightning-base-components 1.21.3-alpha → 1.21.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.
- package/metadata/raptor.json +49 -0
- package/package.json +96 -21
- package/scopedImports/@salesforce-label-LightningDatatable.showActions.js +1 -1
- package/scopedImports/@salesforce-label-LightningForm.controllerFieldsMessage.js +1 -0
- package/scopedImports/@salesforce-label-LightningForm.dependentFieldsHeader.js +1 -0
- package/scopedImports/@salesforce-label-LightningForm.dependentFieldsListHeading.js +1 -0
- package/scopedImports/@salesforce-label-LightningForm.generalDependentFieldsMessage.js +1 -0
- package/scopedImports/@salesforce-label-LightningForm.learnMore.js +1 -0
- package/scopedImports/@salesforce-label-LightningForm.okButton.js +1 -0
- package/scopedImports/@salesforce-label-LightningLookup.messageWhenSearchTermTooShort.js +1 -0
- package/scopedImports/@salesforce-label-LightningLookup.modalCancel.js +1 -0
- package/scopedImports/@salesforce-label-LightningLookup.modalSelect.js +1 -0
- package/scopedImports/@salesforce-label-LightningProgressIndicator.currentStage.js +1 -1
- package/scopedImports/@salesforce-label-LightningProgressIndicator.errorStage.js +1 -0
- package/scopedImports/@salesforce-label-LightningProgressIndicator.stageComplete.js +1 -1
- package/scopedImports/@salesforce-label-LightningProgressIndicator.stageNotStarted.js +1 -1
- package/src/lightning/accordion/__docs__/accordion.md +0 -4
- package/src/lightning/accordionSection/__docs__/accordionSection.md +0 -4
- package/src/lightning/avatar/__docs__/avatar.md +0 -4
- package/src/lightning/avatar/avatar.html +1 -0
- package/src/lightning/badge/__docs__/badge.md +0 -4
- package/src/lightning/badge/badge.html +3 -3
- package/src/lightning/barcodeScanner/__docs__/barcodeScanner.md +0 -4
- package/src/lightning/baseCombobox/baseCombobox.html +4 -1
- package/src/lightning/baseCombobox/baseCombobox.js +5 -18
- package/src/lightning/baseComboboxItem/baseComboboxItem.js +6 -10
- package/src/lightning/button/__docs__/button.md +5 -8
- package/src/lightning/button/button.js +3 -4
- package/src/lightning/buttonGroup/__docs__/buttonGroup.md +0 -4
- package/src/lightning/buttonIcon/__docs__/buttonIcon.md +1 -4
- package/src/lightning/buttonIcon/buttonIcon.html +1 -1
- package/src/lightning/buttonIcon/buttonIcon.js +18 -17
- package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +0 -4
- package/src/lightning/buttonMenu/__docs__/buttonMenu.md +0 -4
- package/src/lightning/buttonMenu/buttonMenu.css +5 -0
- package/src/lightning/buttonMenu/buttonMenu.js +2 -0
- package/src/lightning/buttonStateful/__docs__/buttonStateful.md +0 -4
- package/src/lightning/buttonStateful/buttonStateful.html +5 -3
- package/src/lightning/buttonStateful/buttonStateful.js +4 -0
- package/src/lightning/card/__docs__/card.md +0 -4
- package/src/lightning/card/card.js-meta.xml +3 -0
- package/src/lightning/carousel/__docs__/carousel.md +0 -4
- package/src/lightning/checkboxGroup/__docs__/checkboxGroup.md +0 -4
- package/src/lightning/colorPickerCustom/colorPickerCustom.js +12 -0
- package/src/lightning/colorPickerPanel/colorPickerPanel.js +11 -1
- package/src/lightning/combobox/__docs__/combobox.md +0 -4
- package/src/lightning/combobox/combobox.html +1 -0
- package/src/lightning/datatable/__examples__disabled/customComponentWrapper/customComponentWrapper.html +11 -0
- package/src/lightning/datatable/__examples__disabled/customComponentWrapper/customComponentWrapper.js +25 -0
- package/src/lightning/datatable/__examples__disabled/customComponentWrapper/generateData.js +15 -0
- package/src/lightning/datatable/__examples__disabled/myCustomTypeDatatable/customInput.html +4 -0
- package/src/lightning/datatable/__examples__disabled/myCustomTypeDatatable/myCustomTypeDatatable.js +17 -0
- package/src/lightning/datatable/__examples__disabled/myCustomTypeDatatable/nestedSimpleComponentParent.html +7 -0
- package/src/lightning/datatable/__examples__disabled/simpleComponentNested/simpleComponentNested.html +9 -0
- package/src/lightning/datatable/__examples__disabled/simpleComponentNested/simpleComponentNested.js +6 -0
- package/src/lightning/datatable/autoWidthStrategy.js +8 -36
- package/src/lightning/datatable/columnResizer.js +51 -161
- package/src/lightning/datatable/columnWidthManager.js +25 -81
- package/src/lightning/datatable/columns.js +180 -302
- package/src/lightning/datatable/datatable.js +454 -441
- package/src/lightning/datatable/errors.js +17 -29
- package/src/lightning/datatable/fixedWidthStrategy.js +7 -22
- package/src/lightning/datatable/headerActions.js +8 -38
- package/src/lightning/datatable/indexes.js +42 -0
- package/src/lightning/datatable/infiniteLoading.js +16 -35
- package/src/lightning/datatable/inlineEdit.js +126 -156
- package/src/lightning/datatable/keyboard.js +226 -282
- package/src/lightning/datatable/renderManager.js +0 -4
- package/src/lightning/datatable/resizeObserver.js +4 -13
- package/src/lightning/datatable/rowLevelActions.js +2 -2
- package/src/lightning/datatable/rowNumber.js +21 -59
- package/src/lightning/datatable/rowSelection.js +95 -178
- package/src/lightning/datatable/rowSelectionShared.js +13 -27
- package/src/lightning/datatable/rows.js +171 -418
- package/src/lightning/datatable/sort.js +16 -75
- package/src/lightning/datatable/templates/div/div.html +12 -4
- package/src/lightning/datatable/templates/div/div.lbc.synthetic.css +10 -16
- package/src/lightning/datatable/templates/table/table.html +15 -5
- package/src/lightning/datatable/tree.js +17 -35
- package/src/lightning/datatable/types.js +10 -31
- package/src/lightning/datatable/utils.js +48 -24
- package/src/lightning/datatable/virtualization.js +2 -5
- package/src/lightning/datatable/widthManagerShared.js +0 -20
- package/src/lightning/datatable/wrapText.js +29 -60
- package/src/lightning/dualListbox/__docs__/dualListbox.md +0 -4
- package/src/lightning/dualListbox/dualListbox.js +7 -8
- package/src/lightning/dynamicIcon/__docs__/dynamicIcon.md +0 -4
- package/src/lightning/formattedDateTime/__docs__/formattedDateTime.md +0 -4
- package/src/lightning/formattedLocation/__docs__/formattedLocation.md +0 -4
- package/src/lightning/formattedName/__docs__/formattedName.md +0 -4
- package/src/lightning/formattedName/formattedName.js +3 -2
- package/src/lightning/formattedName/formattedName.js-meta.xml +3 -0
- package/src/lightning/formattedNumber/__docs__/formattedNumber.md +0 -4
- package/src/lightning/formattedNumber/formattedNumber.js +3 -2
- package/src/lightning/formattedNumber/formattedNumber.js-meta.xml +3 -0
- package/src/lightning/formattedPhone/__docs__/formattedPhone.md +0 -4
- package/src/lightning/formattedRichText/richTextConfig.js +1 -0
- package/src/lightning/formattedText/__docs__/formattedText.md +0 -4
- package/src/lightning/formattedTime/__docs__/formattedTime.md +0 -4
- package/src/lightning/formattedUrl/__docs__/formattedUrl.md +0 -4
- package/src/lightning/helptext/helptext.css +7 -0
- package/src/lightning/helptext/helptext.js +3 -4
- package/src/lightning/icon/__docs__/icon.md +0 -4
- package/src/lightning/icon/icon.html +1 -1
- package/src/lightning/input/input.html +5 -0
- package/src/lightning/inputAddress/addressFormat.js +31 -4
- package/src/lightning/inputAddress/fieldsLayout.js +6 -0
- package/src/lightning/inputAddress/inputAddress.html +19 -1
- package/src/lightning/inputAddress/inputAddress.js +80 -3
- package/src/lightning/inputLocation/__docs__/inputLocation.md +0 -4
- package/src/lightning/internationalizationLibrary/address/AddressFormat.js +553 -610
- package/src/lightning/layout/__docs__/layout.md +0 -4
- package/src/lightning/layoutItem/__docs__/layoutItem.md +0 -4
- package/src/lightning/lookupAddress/lookupAddress.html +6 -1
- package/src/lightning/lookupAddress/lookupAddress.js +25 -0
- package/src/lightning/menuItem/__docs__/menuItem.md +0 -4
- package/src/lightning/menuSubheader/menu-subheader.slds.css +1 -1
- package/src/lightning/modal/__docs__/modal.md +10 -1
- package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +3 -7
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +39 -133
- package/src/lightning/modal/__modalUtils__/modalContainerTestMockData.js +1 -1
- package/src/lightning/modal/modal.js +1 -1
- package/src/lightning/modalBase/modalBase.html +15 -10
- package/src/lightning/modalBase/modalBase.js +132 -147
- package/src/lightning/modalBody/modalBody.css +6 -0
- package/src/lightning/modalHeader/modalHeader.html +16 -4
- package/src/lightning/modalHeader/modalHeader.js +61 -14
- package/src/lightning/pill/__docs__/pill.md +0 -4
- package/src/lightning/pill/link.html +1 -0
- package/src/lightning/pill/plain.html +1 -0
- package/src/lightning/pill/plainLink.html +1 -0
- package/src/lightning/pillContainer/__docs__/pillContainer.md +0 -4
- package/src/lightning/primitiveBubble/primitiveBubble.js +42 -0
- package/src/lightning/primitiveDatatableCell/primitiveDatatableCell.js +1 -1
- package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.html +1 -1
- package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.js +13 -0
- package/src/lightning/primitiveHeaderFactory/nonsortableHeader.html +19 -6
- package/src/lightning/primitiveHeaderFactory/sortableHeader.html +3 -1
- package/src/lightning/primitiveResizeHandler/primitiveResizeHandler.css +11 -0
- package/src/lightning/primitiveResizeHandler/primitiveResizeHandler.html +2 -1
- package/src/lightning/primitiveResizeHandler/primitiveResizeHandler.js +1 -0
- package/src/lightning/progressStep/base.html +5 -6
- package/src/lightning/progressStep/progressStep.js +14 -9
- package/src/lightning/prompt/__docs__/prompt.md +1 -1
- package/src/lightning/radioGroup/__docs__/radioGroup.md +0 -4
- package/src/lightning/relativeDateTime/__docs__/relativeDateTime.md +0 -4
- package/src/lightning/shadowBaseClassPrivate/shadowBaseClassPrivate.js +0 -2
- package/src/lightning/sldsCommon/sldsCommon.css +134 -98
- package/src/lightning/sldsUtilsAlignment/sldsUtilsAlignment.css +1 -1
- package/src/lightning/sldsUtilsBox/sldsUtilsBox.css +14 -13
- package/src/lightning/sldsUtilsGrid/sldsUtilsGrid.css +95 -92
- package/src/lightning/sldsUtilsHyphenation/sldsUtilsHyphenation.css +1 -1
- package/src/lightning/sldsUtilsMargin/sldsUtilsMargin.css +77 -75
- package/src/lightning/sldsUtilsPadding/sldsUtilsPadding.css +73 -73
- package/src/lightning/sldsUtilsSizing/sldsUtilsSizing.css +552 -558
- package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.css +2 -2
- package/src/lightning/slider/__docs__/slider.md +0 -4
- package/src/lightning/spinner/__docs__/spinner.md +0 -4
- package/src/lightning/staticMap/staticMap.js +3 -2
- package/src/lightning/tab/__docs__/tab.md +0 -4
- package/src/lightning/tab/tab.js +6 -3
- package/src/lightning/tab/tab.js-meta.xml +3 -0
- package/src/lightning/tabBar/tabBar.js +10 -5
- package/src/lightning/tabset/__docs__/tabset.md +0 -4
- package/src/lightning/tabset/tabset.html +2 -0
- package/src/lightning/tabset/tabset.js-meta.xml +3 -0
- package/src/lightning/textarea/__docs__/textarea.md +0 -4
- package/src/lightning/textarea/textarea.js +6 -1
- package/src/lightning/tile/__docs__/tile.md +0 -4
- package/src/lightning/toastContainer/__docs__/toastContainer.md +3 -2
- package/src/lightning/tooltipLibrary/tooltipLibrary.js +24 -15
- package/src/lightning/tree/__docs__/tree.md +0 -4
- package/src/lightning/tree/tree.js +5 -1
- package/src/lightning/verticalNavigation/__docs__/verticalNavigation.md +0 -4
- package/src/lightning/verticalNavigation/vertical-navigation.slds.css +14 -0
- package/src/lightning/verticalNavigation/verticalNavigation.css +1 -1
- package/src/lightning/verticalNavigation/verticalNavigation.html +1 -1
- package/src/lightning/verticalNavigation/verticalNavigation.js +66 -28
- package/src/lightning/verticalNavigation/verticalNavigation.js-meta.xml +3 -0
- package/src/lightning/verticalNavigationItem/__docs__/verticalNavigationItem.md +0 -4
- package/src/lightning/verticalNavigationItem/vertical-navigation-item.slds.css +63 -0
- package/src/lightning/verticalNavigationItem/verticalNavigationItem.css +2 -3
- package/src/lightning/verticalNavigationItem/verticalNavigationItem.js +29 -15
- package/src/lightning/verticalNavigationItem/verticalNavigationItem.js-meta.xml +3 -0
- package/src/lightning/verticalNavigationItem/verticalNavigationItem.lbc.native.css +2 -0
- package/src/lightning/verticalNavigationItem/verticalNavigationItem.lbc.synthetic.css +3 -0
- package/src/lightning/verticalNavigationItemBadge/__docs__/verticalNavigationItemBadge.md +0 -4
- package/src/lightning/verticalNavigationItemBadge/badge.slds.css +76 -0
- package/src/lightning/verticalNavigationItemBadge/vertical-navigation-item.slds.css +63 -0
- package/src/lightning/verticalNavigationItemBadge/verticalNavigationItemBadge.css +2 -3
- package/src/lightning/verticalNavigationItemBadge/verticalNavigationItemBadge.html +1 -1
- package/src/lightning/verticalNavigationItemBadge/verticalNavigationItemBadge.js +28 -15
- package/src/lightning/verticalNavigationItemBadge/verticalNavigationItemBadge.js-meta.xml +3 -0
- package/src/lightning/verticalNavigationItemBadge/verticalNavigationItemBadge.lbc.native.css +5 -0
- package/src/lightning/verticalNavigationItemBadge/verticalNavigationItemBadge.lbc.synthetic.css +3 -0
- package/src/lightning/verticalNavigationItemIcon/__docs__/verticalNavigationItemIcon.md +0 -4
- package/src/lightning/verticalNavigationItemIcon/vertical-navigation-item.slds.css +63 -0
- package/src/lightning/verticalNavigationItemIcon/verticalNavigationItemIcon.css +2 -3
- package/src/lightning/verticalNavigationItemIcon/verticalNavigationItemIcon.js +29 -15
- package/src/lightning/verticalNavigationItemIcon/verticalNavigationItemIcon.js-meta.xml +3 -0
- package/src/lightning/verticalNavigationItemIcon/verticalNavigationItemIcon.lbc.native.css +3 -0
- package/src/lightning/verticalNavigationItemIcon/verticalNavigationItemIcon.lbc.synthetic.css +3 -0
- package/src/lightning/verticalNavigationOverflow/button.slds.css +503 -0
- package/src/lightning/verticalNavigationOverflow/vertical-navigation-item.slds.css +63 -0
- package/src/lightning/verticalNavigationOverflow/vertical-navigation-section.slds.css +17 -0
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.css +2 -1
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.html +2 -0
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.js +18 -13
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.js-meta.xml +3 -0
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.lbc.native.css +5 -0
- package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +14 -14
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.js-meta.xml +3 -0
- package/src/lightning/datatable/inlineEditShared.js +0 -26
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatableWrapper/customDatatableWrapper.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatableWrapper/customDatatableWrapper.js +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeDeleteRowBtn/customDatatypeDeleteRowBtn.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeDeleteRowBtn/customDatatypeDeleteRowBtn.js +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeLink/customDatatypeLink.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeLink/customDatatypeLink.js +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeNumber/customDatatypeNumber.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeNumber/customDatatypeNumber.js +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeRowOrderingBtn/customDatatypeRowOrderingBtn.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeRowOrderingBtn/customDatatypeRowOrderingBtn.js +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/customDatatypeTable.js +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/customLink.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/customName.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/customNumber.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/customNumberEdit.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/deleteRow.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/iconPill.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customDatatypeTable/orderingButtons.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customNestedComponent/customNestedComponent.html +0 -0
- /package/src/lightning/datatable/{__examples__ → __examples__disabled}/customNestedComponent/customNestedComponent.js +0 -0
package/metadata/raptor.json
CHANGED
|
@@ -672,10 +672,12 @@
|
|
|
672
672
|
]
|
|
673
673
|
},
|
|
674
674
|
"commerceApi": {},
|
|
675
|
+
"commerceCatalogManagementApi": {},
|
|
675
676
|
"commerceChannelManagementApi": {},
|
|
676
677
|
"commerceConfigurationApi": {},
|
|
677
678
|
"commerceEsfApi": {},
|
|
678
679
|
"commerceExtensionApi": {},
|
|
680
|
+
"commerceGoalsAndRecommendationsApi": {},
|
|
679
681
|
"commerceManagementApi": {},
|
|
680
682
|
"commerceStoreManagementApi": {},
|
|
681
683
|
"communityInfoApi": {},
|
|
@@ -1025,6 +1027,9 @@
|
|
|
1025
1027
|
}
|
|
1026
1028
|
],
|
|
1027
1029
|
"methods": [
|
|
1030
|
+
{
|
|
1031
|
+
"name": "focus"
|
|
1032
|
+
},
|
|
1028
1033
|
{
|
|
1029
1034
|
"name": "reportValidity"
|
|
1030
1035
|
},
|
|
@@ -1746,6 +1751,7 @@
|
|
|
1746
1751
|
"industriesNlpServiceApi": {},
|
|
1747
1752
|
"industriesOmnianalyticsApi": {},
|
|
1748
1753
|
"industriesPricingApi": {},
|
|
1754
|
+
"industriesProgramMgmtApi": {},
|
|
1749
1755
|
"industriesPublicSectorApi": {},
|
|
1750
1756
|
"industriesRcgTenantmanagementApi": {},
|
|
1751
1757
|
"industriesReminderApi": {},
|
|
@@ -1756,6 +1762,7 @@
|
|
|
1756
1762
|
"industriesServiceExcellenceApi": {},
|
|
1757
1763
|
"industriesServiceprocessApi": {},
|
|
1758
1764
|
"industriesSustainabilityBeiApi": {},
|
|
1765
|
+
"industriesSustainabilityCsvAttachApi": {},
|
|
1759
1766
|
"industriesSustainabilityDgfApi": {},
|
|
1760
1767
|
"industriesSustainabilityRecalculateApi": {},
|
|
1761
1768
|
"industriesSustainabilityRecordLockUnlockApi": {},
|
|
@@ -2022,6 +2029,9 @@
|
|
|
2022
2029
|
{
|
|
2023
2030
|
"name": "showAddressLookup"
|
|
2024
2031
|
},
|
|
2032
|
+
{
|
|
2033
|
+
"name": "showCompactAddress"
|
|
2034
|
+
},
|
|
2025
2035
|
{
|
|
2026
2036
|
"name": "street"
|
|
2027
2037
|
},
|
|
@@ -2031,6 +2041,15 @@
|
|
|
2031
2041
|
{
|
|
2032
2042
|
"name": "streetPlaceholder"
|
|
2033
2043
|
},
|
|
2044
|
+
{
|
|
2045
|
+
"name": "subpremise"
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
"name": "subpremiseLabel"
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"name": "subpremisePlaceholder"
|
|
2052
|
+
},
|
|
2034
2053
|
{
|
|
2035
2054
|
"name": "validity"
|
|
2036
2055
|
},
|
|
@@ -2476,6 +2495,12 @@
|
|
|
2476
2495
|
"lookupAddress": {
|
|
2477
2496
|
"slotNames": [],
|
|
2478
2497
|
"properties": [
|
|
2498
|
+
{
|
|
2499
|
+
"name": "alwaysRender"
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "autocomplete"
|
|
2503
|
+
},
|
|
2479
2504
|
{
|
|
2480
2505
|
"name": "disabled"
|
|
2481
2506
|
},
|
|
@@ -2485,9 +2510,15 @@
|
|
|
2485
2510
|
{
|
|
2486
2511
|
"name": "label"
|
|
2487
2512
|
},
|
|
2513
|
+
{
|
|
2514
|
+
"name": "name"
|
|
2515
|
+
},
|
|
2488
2516
|
{
|
|
2489
2517
|
"name": "placeholder"
|
|
2490
2518
|
},
|
|
2519
|
+
{
|
|
2520
|
+
"name": "required"
|
|
2521
|
+
},
|
|
2491
2522
|
{
|
|
2492
2523
|
"name": "variant"
|
|
2493
2524
|
}
|
|
@@ -3055,6 +3086,9 @@
|
|
|
3055
3086
|
"platformShowToastEvent": {
|
|
3056
3087
|
"minVersion": "45.0"
|
|
3057
3088
|
},
|
|
3089
|
+
"platformUtilityBarApi": {
|
|
3090
|
+
"minVersion": "61.0"
|
|
3091
|
+
},
|
|
3058
3092
|
"platformWorkspaceApi": {
|
|
3059
3093
|
"minVersion": "59.0"
|
|
3060
3094
|
},
|
|
@@ -5149,6 +5183,11 @@
|
|
|
5149
5183
|
{
|
|
5150
5184
|
"name": "name"
|
|
5151
5185
|
}
|
|
5186
|
+
],
|
|
5187
|
+
"staticProperties": [
|
|
5188
|
+
{
|
|
5189
|
+
"name": "validationOptOut"
|
|
5190
|
+
}
|
|
5152
5191
|
]
|
|
5153
5192
|
},
|
|
5154
5193
|
"verticalNavigationItemBadge": {
|
|
@@ -5170,6 +5209,11 @@
|
|
|
5170
5209
|
{
|
|
5171
5210
|
"name": "name"
|
|
5172
5211
|
}
|
|
5212
|
+
],
|
|
5213
|
+
"staticProperties": [
|
|
5214
|
+
{
|
|
5215
|
+
"name": "validationOptOut"
|
|
5216
|
+
}
|
|
5173
5217
|
]
|
|
5174
5218
|
},
|
|
5175
5219
|
"verticalNavigationItemIcon": {
|
|
@@ -5188,6 +5232,11 @@
|
|
|
5188
5232
|
{
|
|
5189
5233
|
"name": "name"
|
|
5190
5234
|
}
|
|
5235
|
+
],
|
|
5236
|
+
"staticProperties": [
|
|
5237
|
+
{
|
|
5238
|
+
"name": "validationOptOut"
|
|
5239
|
+
}
|
|
5191
5240
|
]
|
|
5192
5241
|
},
|
|
5193
5242
|
"verticalNavigationOverflow": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightning-base-components",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.5-alpha",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"external",
|
|
@@ -70,6 +70,30 @@
|
|
|
70
70
|
"name": "@salesforce/label/LightningForm.reload",
|
|
71
71
|
"path": "scopedImports/@salesforce-label-LightningForm.reload.js"
|
|
72
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "@salesforce/label/LightningForm.generalDependentFieldsMessage",
|
|
75
|
+
"path": "scopedImports/@salesforce-label-LightningForm.generalDependentFieldsMessage.js"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "@salesforce/label/LightningForm.learnMore",
|
|
79
|
+
"path": "scopedImports/@salesforce-label-LightningForm.learnMore.js"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "@salesforce/label/LightningForm.dependentFieldsListHeading",
|
|
83
|
+
"path": "scopedImports/@salesforce-label-LightningForm.dependentFieldsListHeading.js"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "@salesforce/label/LightningForm.dependentFieldsHeader",
|
|
87
|
+
"path": "scopedImports/@salesforce-label-LightningForm.dependentFieldsHeader.js"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "@salesforce/label/LightningForm.controllerFieldsMessage",
|
|
91
|
+
"path": "scopedImports/@salesforce-label-LightningForm.controllerFieldsMessage.js"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "@salesforce/label/LightningForm.okButton",
|
|
95
|
+
"path": "scopedImports/@salesforce-label-LightningForm.okButton.js"
|
|
96
|
+
},
|
|
73
97
|
{
|
|
74
98
|
"name": "@salesforce/label/LightningErrorMessage.validityBadInput",
|
|
75
99
|
"path": "scopedImports/@salesforce-label-LightningErrorMessage.validityBadInput.js"
|
|
@@ -478,6 +502,10 @@
|
|
|
478
502
|
"name": "@salesforce/label/LightningProgressIndicator.stageNotStarted",
|
|
479
503
|
"path": "scopedImports/@salesforce-label-LightningProgressIndicator.stageNotStarted.js"
|
|
480
504
|
},
|
|
505
|
+
{
|
|
506
|
+
"name": "@salesforce/label/LightningProgressIndicator.errorStage",
|
|
507
|
+
"path": "scopedImports/@salesforce-label-LightningProgressIndicator.errorStage.js"
|
|
508
|
+
},
|
|
481
509
|
{
|
|
482
510
|
"name": "@salesforce/label/LightningListView.loadMore",
|
|
483
511
|
"path": "scopedImports/@salesforce-label-LightningListView.loadMore.js"
|
|
@@ -950,6 +978,18 @@
|
|
|
950
978
|
"name": "@salesforce/label/LightningLookup.noAccess",
|
|
951
979
|
"path": "scopedImports/@salesforce-label-LightningLookup.noAccess.js"
|
|
952
980
|
},
|
|
981
|
+
{
|
|
982
|
+
"name": "@salesforce/label/LightningLookup.modalSelect",
|
|
983
|
+
"path": "scopedImports/@salesforce-label-LightningLookup.modalSelect.js"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"name": "@salesforce/label/LightningLookup.modalCancel",
|
|
987
|
+
"path": "scopedImports/@salesforce-label-LightningLookup.modalCancel.js"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "@salesforce/label/LightningLookup.messageWhenSearchTermTooShort",
|
|
991
|
+
"path": "scopedImports/@salesforce-label-LightningLookup.messageWhenSearchTermTooShort.js"
|
|
992
|
+
},
|
|
953
993
|
{
|
|
954
994
|
"name": "@salesforce/label/LightningRecordPicker.invalidConfigurationErrorMessage",
|
|
955
995
|
"path": "scopedImports/@salesforce-label-LightningRecordPicker.invalidConfigurationErrorMessage.js"
|
|
@@ -1311,10 +1351,11 @@
|
|
|
1311
1351
|
"path": "scopedImports/@salesforce-internal-core.untrustedContentDomain.js"
|
|
1312
1352
|
}
|
|
1313
1353
|
],
|
|
1314
|
-
"
|
|
1354
|
+
"ssrRenderedComponents": [
|
|
1315
1355
|
"lightning-accordion",
|
|
1316
1356
|
"lightning-accordion-section",
|
|
1317
|
-
"lightning-
|
|
1357
|
+
"lightning-avatar",
|
|
1358
|
+
"lightning-badge",
|
|
1318
1359
|
"lightning-avatar",
|
|
1319
1360
|
"lightning-badge",
|
|
1320
1361
|
"lightning-base-combobox",
|
|
@@ -1328,59 +1369,49 @@
|
|
|
1328
1369
|
"lightning-button-icon-stateful",
|
|
1329
1370
|
"lightning-button-menu",
|
|
1330
1371
|
"lightning-button-stateful",
|
|
1372
|
+
"lightning-card",
|
|
1331
1373
|
"lightning-calendar",
|
|
1332
1374
|
"lightning-color-picker-custom",
|
|
1333
1375
|
"lightning-color-picker-panel",
|
|
1334
1376
|
"lightning-combobox",
|
|
1335
|
-
"lightning-confirm",
|
|
1336
1377
|
"lightning-datepicker",
|
|
1337
1378
|
"lightning-datetimepicker",
|
|
1338
1379
|
"lightning-dual-listbox",
|
|
1339
1380
|
"lightning-dynamic-icon",
|
|
1381
|
+
"lightning-file-upload",
|
|
1340
1382
|
"lightning-focus-trap",
|
|
1341
1383
|
"lightning-formatted-address",
|
|
1342
1384
|
"lightning-formatted-date-time",
|
|
1343
1385
|
"lightning-formatted-email",
|
|
1344
1386
|
"lightning-formatted-location",
|
|
1387
|
+
"lightning-formatted-name",
|
|
1388
|
+
"lightning-formatted-number",
|
|
1345
1389
|
"lightning-formatted-phone",
|
|
1346
|
-
"lightning-formatted-rich-text",
|
|
1347
1390
|
"lightning-formatted-text",
|
|
1348
1391
|
"lightning-formatted-time",
|
|
1349
1392
|
"lightning-formatted-url",
|
|
1350
1393
|
"lightning-grouped-combobox",
|
|
1351
1394
|
"lightning-helptext",
|
|
1352
|
-
"lightning-icon",
|
|
1353
1395
|
"lightning-input-address",
|
|
1354
1396
|
"lightning-input-location",
|
|
1355
|
-
"lightning-input-rich-text",
|
|
1356
|
-
"lightning-interactive-dialog-base",
|
|
1357
1397
|
"lightning-layout",
|
|
1358
1398
|
"lightning-layout-item",
|
|
1359
1399
|
"lightning-lookup-address",
|
|
1360
1400
|
"lightning-menu-divider",
|
|
1361
1401
|
"lightning-menu-item",
|
|
1362
1402
|
"lightning-menu-subheader",
|
|
1363
|
-
"lightning-modal",
|
|
1364
|
-
"lightning-modal-base",
|
|
1365
|
-
"lightning-modal-body",
|
|
1366
|
-
"lightning-modal-footer",
|
|
1367
|
-
"lightning-modal-header",
|
|
1368
|
-
"lightning-overlay",
|
|
1369
|
-
"lightning-overlay-container",
|
|
1370
1403
|
"lightning-picklist",
|
|
1371
1404
|
"lightning-pill",
|
|
1372
1405
|
"lightning-pill-container",
|
|
1373
|
-
"lightning-popup",
|
|
1374
|
-
"lightning-popup-source",
|
|
1375
1406
|
"lightning-progress-bar",
|
|
1376
1407
|
"lightning-progress-ring",
|
|
1377
1408
|
"lightning-primitive-bubble",
|
|
1378
1409
|
"lightning-primitive-button",
|
|
1379
|
-
"
|
|
1380
|
-
"lightning-primitive-iframe",
|
|
1410
|
+
"primitive-file-droppable-zone",
|
|
1381
1411
|
"lightning-primitive-input-checkbox",
|
|
1382
1412
|
"lightning-primitive-input-checkbox-button",
|
|
1383
1413
|
"lightning-primitive-input-color",
|
|
1414
|
+
"lightning-primitive-colorpicker-button",
|
|
1384
1415
|
"lightning-primitive-input-file",
|
|
1385
1416
|
"lightning-primitive-input-simple",
|
|
1386
1417
|
"lightning-primitive-input-toggle",
|
|
@@ -1390,10 +1421,45 @@
|
|
|
1390
1421
|
"lightning-rich-text-toolbar-button-group",
|
|
1391
1422
|
"lightning-select",
|
|
1392
1423
|
"lightning-spinner",
|
|
1424
|
+
"lightning-tab",
|
|
1425
|
+
"lightning-tab-bar",
|
|
1426
|
+
"lightning-tab-set",
|
|
1427
|
+
"lightning-textarea",
|
|
1428
|
+
"lightning-timepicker",
|
|
1429
|
+
"lightning-vertical-navigation",
|
|
1430
|
+
"lightning-vertical-navigation-item",
|
|
1431
|
+
"lightning-vertical-navigation-item-badge",
|
|
1432
|
+
"lightning-vertical-navigation-item-icon",
|
|
1433
|
+
"lightning-vertical-navigation-overflow",
|
|
1434
|
+
"lightning-vertical-navigation-section"
|
|
1435
|
+
],
|
|
1436
|
+
"ssrSafeComponents": [
|
|
1437
|
+
"lightning-alert",
|
|
1438
|
+
"lightning-confirm",
|
|
1439
|
+
"lightning-formatted-rich-text",
|
|
1440
|
+
"lightning-icon",
|
|
1441
|
+
"lightning-input-rich-text",
|
|
1442
|
+
"lightning-interactive-dialog-base",
|
|
1443
|
+
"lightning-modal",
|
|
1444
|
+
"lightning-modal-base",
|
|
1445
|
+
"lightning-modal-body",
|
|
1446
|
+
"lightning-modal-footer",
|
|
1447
|
+
"lightning-modal-header",
|
|
1448
|
+
"lightning-overlay",
|
|
1449
|
+
"lightning-overlay-container",
|
|
1450
|
+
"lightning-popup",
|
|
1451
|
+
"lightning-popup-source",
|
|
1452
|
+
"lightning-primitive-icon",
|
|
1453
|
+
"lightning-primitive-iframe",
|
|
1454
|
+
"lightning-static-map",
|
|
1393
1455
|
"lightning-toast",
|
|
1394
1456
|
"lightning-toast-container",
|
|
1395
|
-
"lightning-
|
|
1396
|
-
"lightning-
|
|
1457
|
+
"lightning-vertical-navigation",
|
|
1458
|
+
"lightning-vertical-navigation-item",
|
|
1459
|
+
"lightning-vertical-navigation-item-badge",
|
|
1460
|
+
"lightning-vertical-navigation-item-icon",
|
|
1461
|
+
"lightning-vertical-navigation-overflow",
|
|
1462
|
+
"lightning-vertical-navigation-section"
|
|
1397
1463
|
],
|
|
1398
1464
|
"nativeShadowEnabledComponents": [
|
|
1399
1465
|
"lightning-accordion",
|
|
@@ -1423,11 +1489,14 @@
|
|
|
1423
1489
|
"lightning-datetimepicker",
|
|
1424
1490
|
"lightning-dual-listbox",
|
|
1425
1491
|
"lightning-dynamic-icon",
|
|
1492
|
+
"lightning-file-upload",
|
|
1426
1493
|
"lightning-focus-trap",
|
|
1427
1494
|
"lightning-formatted-address",
|
|
1428
1495
|
"lightning-formatted-date-time",
|
|
1429
1496
|
"lightning-formatted-email",
|
|
1430
1497
|
"lightning-formatted-location",
|
|
1498
|
+
"lightning-formatted-name",
|
|
1499
|
+
"lightning-formatted-number",
|
|
1431
1500
|
"lightning-formatted-phone",
|
|
1432
1501
|
"lightning-formatted-rich-text",
|
|
1433
1502
|
"lightning-formatted-text",
|
|
@@ -1462,6 +1531,7 @@
|
|
|
1462
1531
|
"lightning-primitive-bubble",
|
|
1463
1532
|
"lightning-primitive-button",
|
|
1464
1533
|
"lightning-primitive-color-picker-button",
|
|
1534
|
+
"primitive-file-droppable-zone",
|
|
1465
1535
|
"lightning-primitive-icon",
|
|
1466
1536
|
"lightning-primitive-input-checkbox",
|
|
1467
1537
|
"lightning-primitive-input-checkbox-button",
|
|
@@ -1477,6 +1547,7 @@
|
|
|
1477
1547
|
"lightning-rich-text-toolbar-button-group",
|
|
1478
1548
|
"lightning-select",
|
|
1479
1549
|
"lightning-spinner",
|
|
1550
|
+
"lightning-static-map",
|
|
1480
1551
|
"lightning-tab",
|
|
1481
1552
|
"lightning-tab-bar",
|
|
1482
1553
|
"lightning-tabset",
|
|
@@ -1484,6 +1555,10 @@
|
|
|
1484
1555
|
"lightning-toast-container",
|
|
1485
1556
|
"lightning-timepicker",
|
|
1486
1557
|
"lightning-vertical-navigation",
|
|
1558
|
+
"lightning-vertical-navigation-item",
|
|
1559
|
+
"lightning-vertical-navigation-item-badge",
|
|
1560
|
+
"lightning-vertical-navigation-item-icon",
|
|
1561
|
+
"lightning-vertical-navigation-overflow",
|
|
1487
1562
|
"lightning-vertical-navigation-section"
|
|
1488
1563
|
],
|
|
1489
1564
|
"bestPerformanceTests": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default 'Show actions';
|
|
1
|
+
export default 'Show {0} column actions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'A dependent field\'s value can change when you update the value of its controlling field.';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Dependent Fields';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'The dependent fields are:';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'This form contains dependent fields.';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Learn more';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Got It';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Type at least 2 characters to perform a search.';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Cancel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default 'Current Stage';
|
|
1
|
+
export default '{0} - Current Stage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default '{0} - Error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default 'Stage Complete';
|
|
1
|
+
export default '{0} - Stage Complete';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default 'Stage Not Started';
|
|
1
|
+
export default '{0} - Stage Not Started';
|
|
@@ -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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span part="badge">
|
|
2
|
+
<span part="badge" exportparts="icon">
|
|
3
3
|
<template if:false={isIconBeforeLabel}>
|
|
4
4
|
{label}
|
|
5
5
|
</template>
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
<template if:true={iconName}>
|
|
8
8
|
<span class={computedClass}>
|
|
9
9
|
<span class="slds-icon_container slds-current-color" title={iconAlternativeText}>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</span>
|
|
12
12
|
</span>
|
|
13
13
|
</template>
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
<template if:true={isIconBeforeLabel}>
|
|
16
16
|
{label}
|
|
17
17
|
</template>
|
|
@@ -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.
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
placeholder={computedPlaceholder}
|
|
30
30
|
maxlength={inputMaxlength}
|
|
31
31
|
disabled={disabled}
|
|
32
|
+
aria-disabled={disabled}
|
|
32
33
|
aria-readonly={_inputAriaReadOnly}
|
|
33
34
|
aria-autocomplete={computedAriaAutocomplete}
|
|
34
35
|
aria-owns="dropdown-element"
|
|
@@ -54,7 +55,8 @@
|
|
|
54
55
|
role={customRole}
|
|
55
56
|
data-value={computedInputValue}
|
|
56
57
|
disabled={disabled}
|
|
57
|
-
aria-
|
|
58
|
+
aria-disabled={disabled}
|
|
59
|
+
aria-label={inputLabel}
|
|
58
60
|
aria-required={required}
|
|
59
61
|
onfocus={handleFocus}
|
|
60
62
|
onkeydown={handleInputKeyDown}
|
|
@@ -115,6 +117,7 @@
|
|
|
115
117
|
item={item}
|
|
116
118
|
id={item.id}
|
|
117
119
|
data-item-id={item.id}
|
|
120
|
+
exportparts="option"
|
|
118
121
|
aria-checked={item.checked}
|
|
119
122
|
key={item.value}
|
|
120
123
|
data-value={item.value}
|
|
@@ -5,10 +5,10 @@ import labelPillCloseButtonAlternativeText from '@salesforce/label/LightningComb
|
|
|
5
5
|
import labelPlaceholder from '@salesforce/label/LightningCombobox.placeholder';
|
|
6
6
|
import { api, track } from 'lwc';
|
|
7
7
|
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
8
|
-
import labelCurrentSelection from '@salesforce/label/LightningCombobox.currentSelection';
|
|
8
|
+
// import labelCurrentSelection from '@salesforce/label/LightningCombobox.currentSelection';
|
|
9
9
|
import { handleKeyDownOnInput } from './keyboard';
|
|
10
10
|
import { BaseComboboxEvents } from './baseComboboxEvents';
|
|
11
|
-
import { classSet
|
|
11
|
+
import { classSet } from 'lightning/utils';
|
|
12
12
|
import {
|
|
13
13
|
assert,
|
|
14
14
|
computeAriaInvalid,
|
|
@@ -450,9 +450,7 @@ export default class LightningBaseCombobox extends LightningShadowBaseClass {
|
|
|
450
450
|
return;
|
|
451
451
|
}
|
|
452
452
|
synchronizeAttrs(input, {
|
|
453
|
-
[ARIA_LABEL]: this.
|
|
454
|
-
? this.computedButtonTriggerAriaLabel
|
|
455
|
-
: this.inputLabel,
|
|
453
|
+
[ARIA_LABEL]: this.inputLabel,
|
|
456
454
|
[ARIA_INVALID]: this.computedAriaInvalid,
|
|
457
455
|
[ARIA_ACTIVEDESCENDANT]: this.computedAriaActiveDescendant,
|
|
458
456
|
});
|
|
@@ -586,17 +584,6 @@ export default class LightningBaseCombobox extends LightningShadowBaseClass {
|
|
|
586
584
|
return this.hasInputPill ? this.inputPill.label : this.inputText;
|
|
587
585
|
}
|
|
588
586
|
|
|
589
|
-
get computedButtonTriggerAriaLabel() {
|
|
590
|
-
const label = this.inputLabel;
|
|
591
|
-
const value = this.computedInputValue || this.computedPlaceholder;
|
|
592
|
-
|
|
593
|
-
if (!label) {
|
|
594
|
-
return value;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
return formatLabel(labelCurrentSelection, label, value);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
587
|
handleListboxScroll(event) {
|
|
601
588
|
// We don't want this to bubble up to the modal which due to event retargeting wouldn't be able
|
|
602
589
|
// to know what is actually being scrolled and thus may lead to the scrolling of the modal
|
|
@@ -869,7 +856,7 @@ export default class LightningBaseCombobox extends LightningShadowBaseClass {
|
|
|
869
856
|
highlightOption(option) {
|
|
870
857
|
this.removeHighlight();
|
|
871
858
|
if (option) {
|
|
872
|
-
option.highlight(
|
|
859
|
+
option.highlight();
|
|
873
860
|
this._highlightedOptionElement = option;
|
|
874
861
|
this._highlightedOptionElementId =
|
|
875
862
|
option.getAttribute('data-item-id');
|
|
@@ -890,7 +877,7 @@ export default class LightningBaseCombobox extends LightningShadowBaseClass {
|
|
|
890
877
|
removeHighlight() {
|
|
891
878
|
const option = this._highlightedOptionElement;
|
|
892
879
|
if (option) {
|
|
893
|
-
option.removeHighlight(
|
|
880
|
+
option.removeHighlight();
|
|
894
881
|
this._highlightedOptionElement = null;
|
|
895
882
|
this._highlightedOptionElementId = null;
|
|
896
883
|
this._activeElementDomId = null;
|
|
@@ -43,22 +43,18 @@ export default class LightningBaseComboboxItem extends LightningShadowBaseClass
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@api
|
|
46
|
-
highlight(
|
|
47
|
-
this.toggleHighlight(true
|
|
46
|
+
highlight() {
|
|
47
|
+
this.toggleHighlight(true);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@api
|
|
51
|
-
removeHighlight(
|
|
52
|
-
this.toggleHighlight(false
|
|
51
|
+
removeHighlight() {
|
|
52
|
+
this.toggleHighlight(false);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
toggleHighlight(highlighted
|
|
55
|
+
toggleHighlight(highlighted) {
|
|
56
56
|
if (this.item.selectable) {
|
|
57
|
-
|
|
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>
|
|
@@ -274,11 +274,8 @@ Use the following accessibility and `aria` attributes on `lightning-button`.
|
|
|
274
274
|
| aria-expanded | boolean | Indicates whether a collapsible element that's controlled by the button is expanded or collapsed. To reference the controlled element, use `aria-controls`. |
|
|
275
275
|
| aria-haspopup | token | Indicates that the button has an interactive popup element. Valid values are 'true', 'dialog', 'menu', 'listbox', 'tree', and 'grid'. |
|
|
276
276
|
| aria-label | string | Provides an assistive label where a visible label cannot be used. |
|
|
277
|
-
| aria-labelledby | ID reference list | Specifies the ID or list of IDs of the element or elements that contain visible descriptive text to describe the button.
|
|
277
|
+
| aria-labelledby | ID reference list | Specifies the ID or list of IDs of the element or elements that contain visible descriptive text to describe the button. |
|
|
278
278
|
| aria-live | token | Indicates the button can dynamically update without a page reload, and specifies how the change is announced by assistive technologies. 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`. |
|
|
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). |
|
|
279
280
|
|
|
280
281
|
For more information, see the [WAI-ARIA Specification](https://www.w3.org/TR/wai-aria/).
|
|
281
|
-
|
|
282
|
-
#### Source Code
|
|
283
|
-
|
|
284
|
-
`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.
|