lightning-base-components 1.17.2-alpha → 1.17.5-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/metadata/raptor.json +129 -3
- package/package.json +25 -1
- package/scopedImports/@salesforce-label-AddressAutocomplete.LookupButton.js +1 -0
- package/scopedImports/@salesforce-label-LightningDatatable.chooseARowSelectAll.js +1 -0
- package/scopedImports/@salesforce-label-LightningInput.mailingAddressFieldsUpdateText.js +1 -0
- package/scopedImports/@salesforce-label-LightningToast.genericNavigationAssistiveText.js +1 -0
- package/scopedImports/@salesforce-label-LightningToast.macNavigationAssistiveText.js +1 -0
- package/src/lightning/ariaObserver/__examples__/connect/connect.html +19 -0
- package/src/lightning/ariaObserver/__examples__/connect/connect.js +10 -0
- package/src/lightning/ariaObserver/__examples__/connectChild/connectChild.html +3 -0
- package/src/lightning/ariaObserver/__examples__/connectChild/connectChild.js +45 -0
- package/src/lightning/ariaObserver/ariaObserver.js +16 -2
- package/src/lightning/baseCombobox/baseCombobox.js +50 -4
- package/src/lightning/baseCombobox/keyboard.js +3 -0
- package/src/lightning/breadcrumb/__docs__/breadcrumb.md +5 -6
- package/src/lightning/breadcrumb/breadcrumb.css +3 -0
- package/src/lightning/breadcrumb/breadcrumb.html +1 -1
- package/src/lightning/breadcrumb/breadcrumb.slds.css +25 -0
- package/src/lightning/breadcrumbs/breadcrumbs.css +3 -0
- package/src/lightning/breadcrumbs/breadcrumbs.html +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +33 -0
- package/src/lightning/button/button.html +2 -1
- package/src/lightning/button/button.js +9 -0
- package/src/lightning/buttonIcon/button-icon.slds.css +5 -1
- package/src/lightning/buttonIcon/buttonIcon.html +2 -1
- package/src/lightning/buttonIcon/buttonIcon.js +10 -1
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +5 -1
- package/src/lightning/card/__docs__/card.md +1 -1
- package/src/lightning/card/card.js +1 -1
- package/src/lightning/datatable/datatable.js +6 -15
- package/src/lightning/datatable/templates/div/div.html +4 -2
- package/src/lightning/datatable/templates/table/table.html +4 -2
- package/src/lightning/dialog/README.md +1 -1
- package/src/lightning/dualListbox/dual-listbox.slds.css +200 -0
- package/src/lightning/dualListbox/dualListbox.css +3 -1
- package/src/lightning/dualListbox/dualListbox.html +2 -2
- package/src/lightning/dualListbox/dualListbox.js +2 -0
- package/src/lightning/dualListbox/form-element.slds.css +232 -0
- package/src/lightning/dynamicIcon/dynamic-icon-ellie.slds.css +180 -0
- package/src/lightning/dynamicIcon/dynamic-icon-eq.slds.css +63 -0
- package/src/lightning/dynamicIcon/dynamic-icon-score.slds.css +46 -0
- package/src/lightning/dynamicIcon/dynamic-icon-strength.slds.css +122 -0
- package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +117 -0
- package/src/lightning/dynamicIcon/dynamic-icon-waffle.slds.css +177 -0
- package/src/lightning/dynamicIcon/ellie.css +1 -0
- package/src/lightning/dynamicIcon/eq.css +1 -0
- package/src/lightning/dynamicIcon/score.css +1 -0
- package/src/lightning/dynamicIcon/strength.css +1 -0
- package/src/lightning/dynamicIcon/trend.css +1 -0
- package/src/lightning/dynamicIcon/waffle.css +1 -0
- package/src/lightning/f6Controller/f6Controller.js +382 -0
- package/src/lightning/f6Controller/f6Controller.js-meta.xml +4 -0
- package/src/lightning/formattedRichText/formattedRichText.js +4 -3
- package/src/lightning/helptext/form-element.slds.css +232 -0
- package/src/lightning/helptext/help-text.slds.css +5 -1
- package/src/lightning/helptext/helptext.css +2 -1
- package/src/lightning/helptext/helptext.html +1 -0
- package/src/lightning/helptext/helptext.js +9 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/bill_of_materials.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/datashare_target.html +9 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/datashares.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/disclosure_and_compliance.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/facility_bed.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/market.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/price_sheet.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/templates.js +34 -1
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/add_source.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/app_web_messaging.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/bookmark_stroke.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/expired.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/favorite_alt.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/heart.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/hourglass.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/integration.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/market.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/more.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/notification_off.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/notification_snoozed.html +9 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/profile_alt.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/promotion_tiers.html +10 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/sender_email.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/service_appointment.html +13 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/service_report.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/toggle_off.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/toggle_on.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/your_account.html +10 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/bill_of_materials.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/datashare_target.html +9 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/datashares.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/disclosure_and_compliance.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/facility_bed.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/market.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/price_sheet.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/templates.js +34 -1
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/add_source.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/app_web_messaging.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/bookmark_stroke.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/expired.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/favorite_alt.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/heart.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/hourglass.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/integration.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/market.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/more.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/notification_off.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/notification_snoozed.html +9 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/profile_alt.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/promotion_tiers.html +10 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/sender_email.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/service_appointment.html +13 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/service_report.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/toggle_off.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/toggle_on.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/your_account.html +10 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/bill_of_materials.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/datashare_target.html +9 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/datashares.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/disclosure_and_compliance.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/facility_bed.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/market.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/price_sheet.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/templates.js +11 -1
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/bill_of_materials.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/datashare_target.html +9 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/datashares.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/disclosure_and_compliance.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/facility_bed.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/market.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/price_sheet.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/templates.js +11 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/templates.js +24 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/add_source.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/app_web_messaging.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/bookmark_stroke.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/expired.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/favorite_alt.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/heart.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/hourglass.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/integration.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/market.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/more.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/notification_off.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/notification_snoozed.html +9 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/profile_alt.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/promotion_tiers.html +10 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/sender_email.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/service_appointment.html +13 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/service_report.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/toggle_off.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/toggle_on.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/your_account.html +10 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/templates.js +24 -1
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/add_source.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/app_web_messaging.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/bookmark_stroke.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/buyer_group_qualifier.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/document_preview.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/expired.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/favorite_alt.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/heart.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/hourglass.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/integration.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/market.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/more.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/mulesoft.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/notification_off.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/notification_snoozed.html +9 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/profile_alt.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/promotion_tiers.html +10 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/sender_email.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/service_appointment.html +13 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/service_report.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/toggle_off.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/toggle_on.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/your_account.html +10 -0
- package/src/lightning/input/__docs__/input.md +1 -1
- package/src/lightning/input/input-text.slds.css +1 -1
- package/src/lightning/input/input.html +3 -3
- package/src/lightning/input/input.js +39 -3
- package/src/lightning/inputAddress/__docs__/inputAddress.md +3 -0
- package/src/lightning/inputAddress/inputAddress.html +1 -0
- package/src/lightning/inputAddress/inputAddress.js +6 -0
- package/src/lightning/modal/__docs__/modal.md +187 -20
- package/src/lightning/modal/__examples__disabled/allform/allform.html +1 -1
- package/src/lightning/modal/__examples__disabled/allform/allform.js +1 -1
- package/src/lightning/modal/__examples__disabled/allformfull/allformfull.css +7 -0
- package/src/lightning/modal/__examples__disabled/allformfull/allformfull.html +9 -0
- package/src/lightning/modal/__examples__disabled/allformfull/allformfull.js +49 -0
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.css +3 -0
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.html +146 -0
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.js +240 -0
- package/src/lightning/modalBase/modalBase.css +1 -1
- package/src/lightning/modalBase/modalBase.html +1 -1
- package/src/lightning/modalBase/modalBase.js +180 -45
- package/src/lightning/modalBody/modalBody.js +133 -18
- package/src/lightning/modalFooter/modalFooter.js +57 -1
- package/src/lightning/navigation/__docs__/navigation.md +1 -1
- package/src/lightning/popup/popover.slds.css +121 -0
- package/src/lightning/popup/popup.css +3 -0
- package/src/lightning/positionLibrary/direction.js +10 -17
- package/src/lightning/positionLibrary/overlayDetector.js +10 -1
- package/src/lightning/primitiveBubble/primitiveBubble.js +16 -1
- package/src/lightning/primitiveCellCheckbox/primitiveCellCheckbox.js +15 -1
- package/src/lightning/primitiveHeaderFactory/primitiveHeaderFactory.js +29 -0
- package/src/lightning/primitiveHeaderFactory/selectableHeader.html +3 -6
- package/src/lightning/progressIndicator/progressIndicator.js +1 -1
- package/src/lightning/select/__docs__/select.md +9 -0
- package/src/lightning/select/__examples__/disabled/disabled.html +10 -0
- package/src/lightning/select/__examples__/disabled/disabled.js +27 -0
- package/src/lightning/select/__examples__/hidden/hidden.html +10 -0
- package/src/lightning/select/__examples__/hidden/hidden.js +27 -0
- package/src/lightning/select/__examples__/inline/inline.html +10 -0
- package/src/lightning/select/__examples__/inline/inline.js +27 -0
- package/src/lightning/select/form-element.slds.css +232 -0
- package/src/lightning/select/select.css +3 -0
- package/src/lightning/select/select.html +2 -2
- package/src/lightning/select/select.js +3 -0
- package/src/lightning/select/select.slds.css +398 -0
- package/src/lightning/showToastEvent/showToastEvent.js +21 -0
- package/src/lightning/showToastEvent/showToastEvent.js-meta.xml +4 -0
- package/src/lightning/sldsCommon/sldsCommon.css +21 -4
- package/src/lightning/toast/__docs__/toast.md +103 -0
- package/src/lightning/toast/toast.css +52 -0
- package/src/lightning/toast/toast.html +70 -0
- package/src/lightning/toast/toast.js +608 -0
- package/src/lightning/toast/toast.js-meta.xml +4 -0
- package/src/lightning/toastContainer/__docs__/toastContainer.md +59 -0
- package/src/lightning/toastContainer/toastContainer.css +32 -0
- package/src/lightning/toastContainer/toastContainer.html +9 -0
- package/src/lightning/toastContainer/toastContainer.js +471 -0
- package/src/lightning/toastContainer/toastContainer.js-meta.xml +6 -0
- package/src/lightning/tooltipLibrary/tooltipLibrary.js +70 -8
- package/src/lightning/treeGrid/__docs__/treeGrid.md +7 -3
- package/src/lightning/treeGrid/treeGrid.js +25 -30
- package/src/lightning/utilsPrivate/normalize.js +22 -6
- package/src/lightning/utilsPrivate/url.js +2 -1
- package/src/lightning/verticalNavigation/vertical-navigation.slds.css +4 -0
- package/src/lightning/verticalNavigation/verticalNavigation.css +1 -0
- package/src/lightning/verticalNavigation/verticalNavigation.html +1 -1
- package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +19 -0
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +2 -0
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.html +1 -1
package/metadata/raptor.json
CHANGED
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"minVersion": "52.0"
|
|
58
58
|
},
|
|
59
59
|
"auraDynamic": {},
|
|
60
|
+
"auraUtilsMock": {},
|
|
60
61
|
"avatar": {
|
|
61
62
|
"minVersion": "0.0",
|
|
62
63
|
"slotNames": [],
|
|
@@ -532,6 +533,7 @@
|
|
|
532
533
|
"minVersion": "52.0"
|
|
533
534
|
},
|
|
534
535
|
"cmsInternalDeliveryApi": {},
|
|
536
|
+
"cmsManagementApi": {},
|
|
535
537
|
"cmsOrchestratorApi": {},
|
|
536
538
|
"cmsTypeApi": {},
|
|
537
539
|
"combobox": {
|
|
@@ -606,6 +608,7 @@
|
|
|
606
608
|
]
|
|
607
609
|
},
|
|
608
610
|
"commerceApi": {},
|
|
611
|
+
"commerceExtensionApi": {},
|
|
609
612
|
"communityInfoApi": {},
|
|
610
613
|
"communityMicrobatchingApi": {},
|
|
611
614
|
"communityNavigationMenuApi": {},
|
|
@@ -636,6 +639,7 @@
|
|
|
636
639
|
""
|
|
637
640
|
]
|
|
638
641
|
},
|
|
642
|
+
"dataProviderApi": {},
|
|
639
643
|
"datatable": {
|
|
640
644
|
"minVersion": "41.0",
|
|
641
645
|
"slotNames": [],
|
|
@@ -958,6 +962,9 @@
|
|
|
958
962
|
{
|
|
959
963
|
"name": "contexts"
|
|
960
964
|
},
|
|
965
|
+
{
|
|
966
|
+
"name": "disabled"
|
|
967
|
+
},
|
|
961
968
|
{
|
|
962
969
|
"name": "editing"
|
|
963
970
|
},
|
|
@@ -1003,6 +1010,9 @@
|
|
|
1003
1010
|
{
|
|
1004
1011
|
"name": "contextName"
|
|
1005
1012
|
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "disabled"
|
|
1015
|
+
},
|
|
1006
1016
|
{
|
|
1007
1017
|
"name": "editing"
|
|
1008
1018
|
},
|
|
@@ -1042,11 +1052,17 @@
|
|
|
1042
1052
|
""
|
|
1043
1053
|
],
|
|
1044
1054
|
"properties": [
|
|
1055
|
+
{
|
|
1056
|
+
"name": "disabled"
|
|
1057
|
+
},
|
|
1045
1058
|
{
|
|
1046
1059
|
"name": "errors"
|
|
1047
1060
|
},
|
|
1048
1061
|
{
|
|
1049
1062
|
"name": "showErrorIcon"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"name": "variant"
|
|
1050
1066
|
}
|
|
1051
1067
|
],
|
|
1052
1068
|
"methods": [
|
|
@@ -1537,24 +1553,38 @@
|
|
|
1537
1553
|
"iconUtils": {},
|
|
1538
1554
|
"industriesActionPlanApi": {},
|
|
1539
1555
|
"industriesActionablelistApi": {},
|
|
1556
|
+
"industriesAssessmentApi": {},
|
|
1557
|
+
"industriesAuditTrailExportApi": {},
|
|
1540
1558
|
"industriesCibApi": {},
|
|
1541
1559
|
"industriesClmApi": {},
|
|
1560
|
+
"industriesContextApi": {},
|
|
1561
|
+
"industriesCpqApi": {},
|
|
1562
|
+
"industriesCriteriaBasedSearchFilterApi": {},
|
|
1563
|
+
"industriesDataloadingApi": {},
|
|
1542
1564
|
"industriesDecisionMatrixDesignerApi": {},
|
|
1543
1565
|
"industriesDocgenApi": {},
|
|
1566
|
+
"industriesEducationApi": {},
|
|
1544
1567
|
"industriesEinsteinAIAcceleratorApi": {},
|
|
1545
1568
|
"industriesEpcApi": {},
|
|
1546
1569
|
"industriesEriApi": {},
|
|
1547
1570
|
"industriesExplainabilityApi": {},
|
|
1571
|
+
"industriesExternalDocumentApi": {},
|
|
1572
|
+
"industriesFeatureValidationApi": {},
|
|
1573
|
+
"industriesFundraisingApi": {},
|
|
1574
|
+
"industriesGroupApi": {},
|
|
1548
1575
|
"industriesHealthcloudApi": {},
|
|
1549
1576
|
"industriesHealthcloudHpiApi": {},
|
|
1550
1577
|
"industriesIdentityVerificationApi": {},
|
|
1551
1578
|
"industriesInterestTaggingApi": {},
|
|
1552
1579
|
"industriesLoyaltyEngineApi": {},
|
|
1580
|
+
"industriesPricingApi": {},
|
|
1553
1581
|
"industriesPublicSectorApi": {},
|
|
1554
1582
|
"industriesRcgTenantmanagementApi": {},
|
|
1555
1583
|
"industriesRuleBuilderApi": {},
|
|
1556
1584
|
"industriesSalesExcellenceApi": {},
|
|
1585
|
+
"industriesSchedulerApi": {},
|
|
1557
1586
|
"industriesServiceExcellenceApi": {},
|
|
1587
|
+
"industriesServiceprocessApi": {},
|
|
1558
1588
|
"industriesSustainabilityBeiApi": {},
|
|
1559
1589
|
"industriesSustainabilityDgfApi": {},
|
|
1560
1590
|
"industriesSustainabilityRecalculateApi": {},
|
|
@@ -1851,6 +1881,9 @@
|
|
|
1851
1881
|
"minVersion": "42.0",
|
|
1852
1882
|
"slotNames": [],
|
|
1853
1883
|
"properties": [
|
|
1884
|
+
{
|
|
1885
|
+
"name": "autocomplete"
|
|
1886
|
+
},
|
|
1854
1887
|
{
|
|
1855
1888
|
"name": "dirty"
|
|
1856
1889
|
},
|
|
@@ -2163,6 +2196,9 @@
|
|
|
2163
2196
|
}
|
|
2164
2197
|
]
|
|
2165
2198
|
},
|
|
2199
|
+
"logger": {
|
|
2200
|
+
"minVersion": "0.0"
|
|
2201
|
+
},
|
|
2166
2202
|
"lookup": {
|
|
2167
2203
|
"slotNames": [],
|
|
2168
2204
|
"properties": [
|
|
@@ -2318,10 +2354,10 @@
|
|
|
2318
2354
|
"name": "errorMessage"
|
|
2319
2355
|
},
|
|
2320
2356
|
{
|
|
2321
|
-
"name": "
|
|
2357
|
+
"name": "fieldApiName"
|
|
2322
2358
|
},
|
|
2323
2359
|
{
|
|
2324
|
-
"name": "
|
|
2360
|
+
"name": "fieldLevelHelp"
|
|
2325
2361
|
},
|
|
2326
2362
|
{
|
|
2327
2363
|
"name": "items"
|
|
@@ -2329,12 +2365,21 @@
|
|
|
2329
2365
|
{
|
|
2330
2366
|
"name": "label"
|
|
2331
2367
|
},
|
|
2368
|
+
{
|
|
2369
|
+
"name": "objectInfos"
|
|
2370
|
+
},
|
|
2332
2371
|
{
|
|
2333
2372
|
"name": "pills"
|
|
2334
2373
|
},
|
|
2374
|
+
{
|
|
2375
|
+
"name": "record"
|
|
2376
|
+
},
|
|
2335
2377
|
{
|
|
2336
2378
|
"name": "required"
|
|
2337
2379
|
},
|
|
2380
|
+
{
|
|
2381
|
+
"name": "selectedTargetApiName"
|
|
2382
|
+
},
|
|
2338
2383
|
{
|
|
2339
2384
|
"name": "textInfo"
|
|
2340
2385
|
},
|
|
@@ -2365,7 +2410,10 @@
|
|
|
2365
2410
|
"slotNames": [],
|
|
2366
2411
|
"properties": [
|
|
2367
2412
|
{
|
|
2368
|
-
"name": "
|
|
2413
|
+
"name": "entityOptions"
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"name": "entitySelectedAssistiveLabel"
|
|
2369
2417
|
},
|
|
2370
2418
|
{
|
|
2371
2419
|
"name": "items"
|
|
@@ -2376,6 +2424,9 @@
|
|
|
2376
2424
|
{
|
|
2377
2425
|
"name": "placeholder"
|
|
2378
2426
|
},
|
|
2427
|
+
{
|
|
2428
|
+
"name": "selectedEntityLabel"
|
|
2429
|
+
},
|
|
2379
2430
|
{
|
|
2380
2431
|
"name": "showActivityIndicator"
|
|
2381
2432
|
}
|
|
@@ -2519,6 +2570,15 @@
|
|
|
2519
2570
|
{
|
|
2520
2571
|
"name": "filterIconName"
|
|
2521
2572
|
},
|
|
2573
|
+
{
|
|
2574
|
+
"name": "filterInputText"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
"name": "filterItems"
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
"name": "filterLabel"
|
|
2581
|
+
},
|
|
2522
2582
|
{
|
|
2523
2583
|
"name": "inputText"
|
|
2524
2584
|
},
|
|
@@ -2753,7 +2813,9 @@
|
|
|
2753
2813
|
}
|
|
2754
2814
|
]
|
|
2755
2815
|
},
|
|
2816
|
+
"placeQuoteApi": {},
|
|
2756
2817
|
"platformExternalServicesApi": {},
|
|
2818
|
+
"platformGlobalizationApi": {},
|
|
2757
2819
|
"platformNamedCredentialApi": {},
|
|
2758
2820
|
"platformNotificationUtils": {},
|
|
2759
2821
|
"platformOverlayUtils": {},
|
|
@@ -3084,6 +3146,23 @@
|
|
|
3084
3146
|
}
|
|
3085
3147
|
]
|
|
3086
3148
|
},
|
|
3149
|
+
"recordPicker": {
|
|
3150
|
+
"slotNames": [],
|
|
3151
|
+
"properties": [
|
|
3152
|
+
{
|
|
3153
|
+
"name": "filter"
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
"name": "label"
|
|
3157
|
+
},
|
|
3158
|
+
{
|
|
3159
|
+
"name": "objectApiName"
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"name": "placeholder"
|
|
3163
|
+
}
|
|
3164
|
+
]
|
|
3165
|
+
},
|
|
3087
3166
|
"recordUtils": {},
|
|
3088
3167
|
"recordViewForm": {
|
|
3089
3168
|
"minVersion": "41.0",
|
|
@@ -3185,8 +3264,10 @@
|
|
|
3185
3264
|
]
|
|
3186
3265
|
},
|
|
3187
3266
|
"routingService": {},
|
|
3267
|
+
"salesAutomationRulesApi": {},
|
|
3188
3268
|
"salesEnablementProgramApi": {},
|
|
3189
3269
|
"salesPeopleApi": {},
|
|
3270
|
+
"salesUserWorkingHoursApi": {},
|
|
3190
3271
|
"select": {
|
|
3191
3272
|
"slotNames": [],
|
|
3192
3273
|
"properties": [
|
|
@@ -3256,6 +3337,48 @@
|
|
|
3256
3337
|
"minVersion": "52.0",
|
|
3257
3338
|
"slotNames": [],
|
|
3258
3339
|
"methods": [
|
|
3340
|
+
{
|
|
3341
|
+
"name": "acceptCall"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"name": "addParticipant"
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"name": "declineCall"
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
"name": "endCall"
|
|
3351
|
+
},
|
|
3352
|
+
{
|
|
3353
|
+
"name": "hold"
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"name": "merge"
|
|
3357
|
+
},
|
|
3358
|
+
{
|
|
3359
|
+
"name": "mute"
|
|
3360
|
+
},
|
|
3361
|
+
{
|
|
3362
|
+
"name": "pauseRecording"
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "resume"
|
|
3366
|
+
},
|
|
3367
|
+
{
|
|
3368
|
+
"name": "resumeRecording"
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
"name": "sendDigits"
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"name": "startPreviewCall"
|
|
3375
|
+
},
|
|
3376
|
+
{
|
|
3377
|
+
"name": "swap"
|
|
3378
|
+
},
|
|
3379
|
+
{
|
|
3380
|
+
"name": "unmute"
|
|
3381
|
+
},
|
|
3259
3382
|
{
|
|
3260
3383
|
"name": "updateNextBestActions"
|
|
3261
3384
|
}
|
|
@@ -3415,6 +3538,7 @@
|
|
|
3415
3538
|
}
|
|
3416
3539
|
]
|
|
3417
3540
|
},
|
|
3541
|
+
"tableauEmbeddingApi": {},
|
|
3418
3542
|
"tabset": {
|
|
3419
3543
|
"minVersion": "44.0",
|
|
3420
3544
|
"slotNames": [
|
|
@@ -3569,6 +3693,7 @@
|
|
|
3569
3693
|
]
|
|
3570
3694
|
},
|
|
3571
3695
|
"toastContainer": {
|
|
3696
|
+
"minVersion": "58.0",
|
|
3572
3697
|
"slotNames": [],
|
|
3573
3698
|
"properties": [
|
|
3574
3699
|
{
|
|
@@ -3671,6 +3796,7 @@
|
|
|
3671
3796
|
"uiGraphQLApi": {
|
|
3672
3797
|
"minVersion": "57.0"
|
|
3673
3798
|
},
|
|
3799
|
+
"uiGraphQLBatchApi": {},
|
|
3674
3800
|
"uiLayoutApi": {},
|
|
3675
3801
|
"uiLearningContentPlatformApi": {},
|
|
3676
3802
|
"uiListApi": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lightning-base-components",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.5-alpha",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"external",
|
|
@@ -506,6 +506,10 @@
|
|
|
506
506
|
"name": "@salesforce/label/LightningDatatable.chooseARow",
|
|
507
507
|
"path": "scopedImports/@salesforce-label-LightningDatatable.chooseARow.js"
|
|
508
508
|
},
|
|
509
|
+
{
|
|
510
|
+
"name": "@salesforce/label/LightningDatatable.chooseARowSelectAll",
|
|
511
|
+
"path": "scopedImports/@salesforce-label-LightningDatatable.chooseARowSelectAll.js"
|
|
512
|
+
},
|
|
509
513
|
{
|
|
510
514
|
"name": "@salesforce/label/LightningDatatable.save",
|
|
511
515
|
"path": "scopedImports/@salesforce-label-LightningDatatable.save.js"
|
|
@@ -1006,6 +1010,10 @@
|
|
|
1006
1010
|
"name": "@salesforce/label/LightningInput.helptextAlternativeText",
|
|
1007
1011
|
"path": "scopedImports/@salesforce-label-LightningInput.helptextAlternativeText.js"
|
|
1008
1012
|
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "@salesforce/label/LightningInput.mailingAddressFieldsUpdateText",
|
|
1015
|
+
"path": "scopedImports/@salesforce-label-LightningInput.mailingAddressFieldsUpdateText.js"
|
|
1016
|
+
},
|
|
1009
1017
|
{
|
|
1010
1018
|
"name": "@salesforce/label/LightningRating.readOnlyAssistiveText",
|
|
1011
1019
|
"path": "scopedImports/@salesforce-label-LightningRating.readOnlyAssistiveText.js"
|
|
@@ -1074,6 +1082,14 @@
|
|
|
1074
1082
|
"name": "@salesforce/label/LightningToast.close",
|
|
1075
1083
|
"path": "scopedImports/@salesforce-label-LightningToast.close.js"
|
|
1076
1084
|
},
|
|
1085
|
+
{
|
|
1086
|
+
"name": "@salesforce/label/LightningToast.macNavigationAssistiveText",
|
|
1087
|
+
"path": "scopedImports/@salesforce-label-LightningToast.macNavigationAssistiveText.js"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"name": "@salesforce/label/LightningToast.genericNavigationAssistiveText",
|
|
1091
|
+
"path": "scopedImports/@salesforce-label-LightningToast.genericNavigationAssistiveText.js"
|
|
1092
|
+
},
|
|
1077
1093
|
{
|
|
1078
1094
|
"name": "@salesforce/label/Global_Entity.created_by",
|
|
1079
1095
|
"path": "scopedImports/@salesforce-label-Global_Entity.created_by.js"
|
|
@@ -1082,6 +1098,10 @@
|
|
|
1082
1098
|
"name": "@salesforce/label/Global_Entity.last_modified_by",
|
|
1083
1099
|
"path": "scopedImports/@salesforce-label-Global_Entity.last_modified_by.js"
|
|
1084
1100
|
},
|
|
1101
|
+
{
|
|
1102
|
+
"name": "@salesforce/label/AddressAutocomplete.LookupButton",
|
|
1103
|
+
"path": "scopedImports/@salesforce-label-AddressAutocomplete.LookupButton.js"
|
|
1104
|
+
},
|
|
1085
1105
|
{
|
|
1086
1106
|
"name": "@salesforce/i18n/lang",
|
|
1087
1107
|
"path": "scopedImports/@salesforce-i18n-lang.js"
|
|
@@ -1264,6 +1284,7 @@
|
|
|
1264
1284
|
"lightning/dialog",
|
|
1265
1285
|
"lightning/dualListbox",
|
|
1266
1286
|
"lightning/dynamicIcon",
|
|
1287
|
+
"lightning/f6Controller",
|
|
1267
1288
|
"lightning/fileDownload",
|
|
1268
1289
|
"lightning/focusTrap",
|
|
1269
1290
|
"lightning/formattedAddress",
|
|
@@ -1329,6 +1350,7 @@
|
|
|
1329
1350
|
"lightning/relativeDateTime",
|
|
1330
1351
|
"lightning/routingService",
|
|
1331
1352
|
"lightning/select",
|
|
1353
|
+
"lightning/showToastEvent",
|
|
1332
1354
|
"lightning/slider",
|
|
1333
1355
|
"lightning/spinner",
|
|
1334
1356
|
"lightning/stackedTab",
|
|
@@ -1337,6 +1359,8 @@
|
|
|
1337
1359
|
"lightning/tabset",
|
|
1338
1360
|
"lightning/textarea",
|
|
1339
1361
|
"lightning/tile",
|
|
1362
|
+
"lightning/toast",
|
|
1363
|
+
"lightning/toastContainer",
|
|
1340
1364
|
"lightning/tree",
|
|
1341
1365
|
"lightning/treeGrid",
|
|
1342
1366
|
"lightning/utils",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Search Address';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Choose a Row';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Mailing Address updated for country {0}';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Press Control + F6 to navigate to the next toast notification or focusable region.';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default 'Press Command + F6 to navigate to the next toast notification or focusable region.';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<label id="foo">Foo</label>
|
|
4
|
+
</div>
|
|
5
|
+
<div>
|
|
6
|
+
<label id="bar">Bar</label>
|
|
7
|
+
</div>
|
|
8
|
+
<div>
|
|
9
|
+
<label id="hello">Hello</label>
|
|
10
|
+
</div>
|
|
11
|
+
<div>
|
|
12
|
+
<label id="world">World</label>
|
|
13
|
+
</div>
|
|
14
|
+
<div>
|
|
15
|
+
<ariaobserver-connect-child aria-labelledby={connectIds}></ariaobserver-connect-child>
|
|
16
|
+
<div>Current Id: {connectIds}</div>
|
|
17
|
+
<div><button onclick={handleUpdateIds}>Update Ids to 'foo bar hello world'</button></div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { LightningElement, api } from 'lwc';
|
|
2
|
+
|
|
3
|
+
import AriaObserver from 'lightning/ariaObserver';
|
|
4
|
+
|
|
5
|
+
export default class AriaObserverConnectChild extends LightningElement {
|
|
6
|
+
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.ariaObserver = new AriaObserver(this);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
if (!this.ariaObserver) {
|
|
14
|
+
this.ariaObserver = new AriaObserver(this);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
disconnectedCallback() {
|
|
19
|
+
if (this.ariaObserver) {
|
|
20
|
+
this.ariaObserver.disconnect();
|
|
21
|
+
this.ariaObserver = undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
renderedCallback() {
|
|
26
|
+
this.ariaObserver.sync();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
_ariaLabelledBy = '';
|
|
30
|
+
|
|
31
|
+
@api
|
|
32
|
+
get ariaLabelledBy() {
|
|
33
|
+
return this._ariaLabelledBy;
|
|
34
|
+
}
|
|
35
|
+
set ariaLabelledBy(refs) {
|
|
36
|
+
this._ariaLabelledBy = refs;
|
|
37
|
+
|
|
38
|
+
this.ariaObserver.connect({
|
|
39
|
+
targetSelector: 'input',
|
|
40
|
+
attribute: 'aria-labelledby',
|
|
41
|
+
id: refs
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
@@ -110,7 +110,7 @@ export default class AriaObserver {
|
|
|
110
110
|
.split(/\s+/)
|
|
111
111
|
.map((ref) => `[id*="${ref}"]`)
|
|
112
112
|
.join(',');
|
|
113
|
-
const liveId = { selector, callback };
|
|
113
|
+
const liveId = { refs, selector, callback };
|
|
114
114
|
this.liveIds[refs] = liveId;
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -165,6 +165,16 @@ export default class AriaObserver {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
privateExtractCorrectElements(selector, elements) {
|
|
169
|
+
// Example: 'foo' + '-1'
|
|
170
|
+
const selectors = selector.split(/\s/g);
|
|
171
|
+
const matchSelectors = `(${selectors.join('|')})`;
|
|
172
|
+
const regex = new RegExp(`^${matchSelectors}(-[0-9]+)$`);
|
|
173
|
+
return [...elements].filter((element) => {
|
|
174
|
+
return regex.test(element.id);
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
168
178
|
privateExtractIds(elements) {
|
|
169
179
|
return elements
|
|
170
180
|
.map((el) => {
|
|
@@ -189,7 +199,11 @@ export default class AriaObserver {
|
|
|
189
199
|
root.querySelectorAll(thisId.selector)
|
|
190
200
|
);
|
|
191
201
|
}
|
|
192
|
-
const
|
|
202
|
+
const newThisId = this.privateExtractCorrectElements(
|
|
203
|
+
thisId.refs,
|
|
204
|
+
thisId.elements
|
|
205
|
+
);
|
|
206
|
+
const newIds = this.privateExtractIds(newThisId);
|
|
193
207
|
// only fire calback if the value changed
|
|
194
208
|
if (newIds !== thisId.ids) {
|
|
195
209
|
thisId.callback(newIds);
|
|
@@ -69,7 +69,6 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
69
69
|
@api inputMaxlength;
|
|
70
70
|
@api showInputActivityIndicator = false;
|
|
71
71
|
@api required = false;
|
|
72
|
-
@api dropdownAlignment = 'left';
|
|
73
72
|
@api placeholder = i18n.placeholder;
|
|
74
73
|
@api inputLabel;
|
|
75
74
|
|
|
@@ -93,6 +92,7 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
93
92
|
_inputAriaControls;
|
|
94
93
|
_activeElementDomId;
|
|
95
94
|
_autocomplete = 'off';
|
|
95
|
+
_dropdownAlignment = 'left';
|
|
96
96
|
originDisableDefaultHighlight;
|
|
97
97
|
privateDisableDefaultHighlight;
|
|
98
98
|
_editingMode = false;
|
|
@@ -115,6 +115,7 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
connectedCallback() {
|
|
118
|
+
this.overrideDropdownAlignment();
|
|
118
119
|
this.classList.add('slds-combobox_container');
|
|
119
120
|
this._connected = true;
|
|
120
121
|
this._keyboardInterface = this.dropdownKeyboardInterface();
|
|
@@ -125,6 +126,15 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
125
126
|
this._listBoxElementCache = undefined;
|
|
126
127
|
}
|
|
127
128
|
|
|
129
|
+
@api
|
|
130
|
+
get dropdownAlignment() {
|
|
131
|
+
return this._dropdownAlignment;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
set dropdownAlignment(value) {
|
|
135
|
+
this._dropdownAlignment = value;
|
|
136
|
+
}
|
|
137
|
+
|
|
128
138
|
@api
|
|
129
139
|
get inputControlsElement() {
|
|
130
140
|
return this._inputAriaControls;
|
|
@@ -353,9 +363,7 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
353
363
|
? this.computedButtonTriggerAriaLabel
|
|
354
364
|
: this.inputLabel,
|
|
355
365
|
[ARIA_INVALID]: this.computedAriaInvalid,
|
|
356
|
-
[ARIA_ACTIVEDESCENDANT]: this.
|
|
357
|
-
? undefined
|
|
358
|
-
: this._activeElementDomId,
|
|
366
|
+
[ARIA_ACTIVEDESCENDANT]: this.computedAriaActiveDescendant,
|
|
359
367
|
});
|
|
360
368
|
}
|
|
361
369
|
|
|
@@ -451,6 +459,16 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
451
459
|
);
|
|
452
460
|
}
|
|
453
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Do not set aria-activedescendant when editing the text in the combobox.
|
|
464
|
+
* Rest of the times, set it to active element DOM id.
|
|
465
|
+
*/
|
|
466
|
+
get computedAriaActiveDescendant() {
|
|
467
|
+
return this.isUserInputDisabled || !this._editingMode
|
|
468
|
+
? this._activeElementDomId
|
|
469
|
+
: undefined;
|
|
470
|
+
}
|
|
471
|
+
|
|
454
472
|
get computedAriaAutocomplete() {
|
|
455
473
|
if (this.hasInputPill) {
|
|
456
474
|
// no aria-autocomplete when pill is showing
|
|
@@ -896,6 +914,7 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
896
914
|
this._selectableItems < 3
|
|
897
915
|
? SMALL_MIN_HEIGHT
|
|
898
916
|
: MEDIUM_MIN_HEIGHT,
|
|
917
|
+
keepInViewport: true,
|
|
899
918
|
});
|
|
900
919
|
}
|
|
901
920
|
|
|
@@ -1064,6 +1083,33 @@ export default class LightningBaseCombobox extends LightningElement {
|
|
|
1064
1083
|
this.template.host.getAttribute('data-aria-invalid');
|
|
1065
1084
|
return computeAriaInvalid(ariaInvalid, true);
|
|
1066
1085
|
}
|
|
1086
|
+
|
|
1087
|
+
isShadowRoot(node) {
|
|
1088
|
+
return node && node.nodeType === 11;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
parentNodeContainsClass(host, className) {
|
|
1092
|
+
let element = host;
|
|
1093
|
+
while (element.parentNode) {
|
|
1094
|
+
element = this.isShadowRoot(element.parentNode)
|
|
1095
|
+
? element.parentNode.host
|
|
1096
|
+
: element.parentNode;
|
|
1097
|
+
if (element.classList && element.classList.contains(className)) {
|
|
1098
|
+
return true;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
return false;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
overrideDropdownAlignment() {
|
|
1105
|
+
let isModal = this.parentNodeContainsClass(
|
|
1106
|
+
this.template.host,
|
|
1107
|
+
'slds-modal'
|
|
1108
|
+
);
|
|
1109
|
+
if (isModal) {
|
|
1110
|
+
this._dropdownAlignment = 'auto';
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1067
1113
|
}
|
|
1068
1114
|
|
|
1069
1115
|
function scrollIntoViewIfNeeded(element, scrollingParent) {
|
|
@@ -106,6 +106,9 @@ function handleDeletionKeys({ event, dropdownInterface }) {
|
|
|
106
106
|
if (dropdownInterface.shouldPreventInputDeletion()) {
|
|
107
107
|
event.preventDefault();
|
|
108
108
|
}
|
|
109
|
+
if (!dropdownInterface.isDropdownVisible()) {
|
|
110
|
+
dropdownInterface.openDropdownIfNotEmpty();
|
|
111
|
+
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
114
|
function handleTypedCharacters({ event, currentIndex, dropdownInterface }) {
|
|
@@ -23,11 +23,9 @@ Here is an example.
|
|
|
23
23
|
|
|
24
24
|
#### Creating Links Using Breadcrumbs
|
|
25
25
|
|
|
26
|
-
The behavior of a breadcrumb is similar to a link. If a link is not provided
|
|
27
|
-
|
|
28
|
-
provide custom navigation, use an `onclick` handler with `lightning-navigation`. If you provide a link in the `href` attribute,
|
|
29
|
-
calling `event.preventDefault()` enables you to bypass the link and use your
|
|
30
|
-
custom navigation instead.
|
|
26
|
+
The behavior of a breadcrumb is similar to a link for the purpose of navigation. If a link is not provided via the `href` attribute, the value defaults to `#`. Since a breadcrumb is used as navigation, we don't recommend leaving out the `href` attribute since `#` links to the same page when middle-clicked or opened in a new tab.
|
|
27
|
+
|
|
28
|
+
To provide custom navigation, use an `onclick` handler with `lightning-navigation`. If you provide a link in the `href` attribute, calling `event.preventDefault()` enables you to bypass the link and use your custom navigation instead.
|
|
31
29
|
|
|
32
30
|
```html
|
|
33
31
|
<template>
|
|
@@ -67,7 +65,8 @@ handleNavigateToCustomPage2(event) {
|
|
|
67
65
|
|
|
68
66
|
#### Generating Breadcrumbs with Iteration
|
|
69
67
|
|
|
70
|
-
Iterate over a list of items using `for:each` to generate breadcrumbs.
|
|
68
|
+
Iterate over a list of items using `for:each` to generate breadcrumbs. If you don't provide a link with an `onclick` handler, `href` defaults to `#`.
|
|
69
|
+
|
|
71
70
|
For example, you can create an array of breadcrumbs with label and name
|
|
72
71
|
values.
|
|
73
72
|
|