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
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
|
|
2
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
|
|
3
|
+
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
|
+
@supports (--styling-hooks: '') {
|
|
5
|
+
/* FORM ELEMENT: BASE */
|
|
6
|
+
:host([data-render-mode="shadow"]) .slds-form-element {
|
|
7
|
+
position: relative;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([data-render-mode="shadow"]) .slds-form-element__label {
|
|
12
|
+
overflow-wrap: break-word;
|
|
13
|
+
word-wrap: break-word;
|
|
14
|
+
hyphens: auto;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
color: var(--sds-g-color-neutral-base-30, #444444);
|
|
17
|
+
font-size: var(--sds-g-font-scale-neg-3, 0.75rem);
|
|
18
|
+
padding-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
19
|
+
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
20
|
+
margin-block-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([data-render-mode="shadow"]) .slds-form-element__label:empty {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([data-render-mode="shadow"]) .slds-form-element__control {
|
|
28
|
+
clear: left; /* NOTE: Ideally we want left to be inline-start but browser support is not ready for that value. We need to figure out better RTL support */
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([data-render-mode="shadow"]) .slds-form-element__control .slds-radio,:host([data-render-mode="shadow"])
|
|
33
|
+
.slds-form-element__control .slds-checkbox {
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([data-render-mode="shadow"]) .slds-form-element__icon {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
position: relative;
|
|
40
|
+
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
41
|
+
vertical-align: top;
|
|
42
|
+
line-height: var(--sds-g-font-lineheight-1, 1);
|
|
43
|
+
z-index: 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([data-render-mode="shadow"]) .slds-form-element__icon .slds-button_icon {
|
|
47
|
+
position: relative;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([data-render-mode="shadow"]) .slds-form-element__help,:host([data-render-mode="shadow"])
|
|
51
|
+
.slds-form-element__helper {
|
|
52
|
+
font-size: var(--sds-g-font-scale-neg-3, 0.75rem);
|
|
53
|
+
margin-block-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
54
|
+
display: block;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([data-render-mode="shadow"]) .slds-form-element_edit .slds-form-element__static {
|
|
58
|
+
width: calc(100% - var(--sds-g-sizing-7, 1.5rem));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([data-render-mode="shadow"]) .slds-form-element_readonly {
|
|
62
|
+
flex-basis: 0%;
|
|
63
|
+
border-bottom: var(--sds-g-sizing-border-1, 1px) solid var(--sds-g-color-neutral-base-90, #e5e5e5);
|
|
64
|
+
margin-block-end: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__control {
|
|
68
|
+
padding-block-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
69
|
+
padding-block-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__label {
|
|
73
|
+
margin-block-end: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([data-render-mode="shadow"]) .slds-form-element__legend {
|
|
77
|
+
font-weight: var(--sds-g-font-weight-7, 700);
|
|
78
|
+
float: left;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([data-render-mode="shadow"]) .slds-form-element__addon {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
margin-block-start: 0;
|
|
84
|
+
margin-block-end: 0;
|
|
85
|
+
margin-inline-start: var(--sds-g-spacing-2, 0.5rem);
|
|
86
|
+
margin-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
87
|
+
align-self: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static {
|
|
91
|
+
overflow-wrap: break-word;
|
|
92
|
+
word-wrap: break-word;
|
|
93
|
+
word-break: break-word;
|
|
94
|
+
display: inline-block;
|
|
95
|
+
font-size: var(--sds-g-font-scale-neg-1, 0.875rem);
|
|
96
|
+
font-weight: var(--sds-g-font-weight-4, 400);
|
|
97
|
+
color: var(--sds-g-color-neutral-base-10, #181818);
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static.slds-text-longform *:last-child {
|
|
102
|
+
margin-block-end: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static:empty {
|
|
106
|
+
min-height: calc(var(--sds-g-sizing-6, 1.25rem) + 1px);
|
|
107
|
+
vertical-align: bottom;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static--edit {
|
|
111
|
+
width: calc(100% - var(--sds-g-sizing-7, 1.5rem));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([data-render-mode="shadow"]) .slds-required {
|
|
115
|
+
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
116
|
+
margin-block-start: 0;
|
|
117
|
+
margin-block-end: 0;
|
|
118
|
+
margin-inline-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
119
|
+
margin-inline-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([data-render-mode="shadow"]) .slds-has-error .slds-form-element__help {
|
|
123
|
+
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([data-render-mode="shadow"][invalid]) .slds-form-element__help {
|
|
127
|
+
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* --------------------------------------- */
|
|
131
|
+
|
|
132
|
+
/* FORM ELEMENT: STACKED */
|
|
133
|
+
|
|
134
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) {
|
|
135
|
+
display: block;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']):not(:host([data-render-mode="shadow"]) .slds-form-element_readonly) {
|
|
139
|
+
margin-block-end: var(--sds-g-spacing-2, 0.5rem);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']):not(:host([data-render-mode="shadow"]) .slds-is-editing) {
|
|
143
|
+
padding: 0 var(--sds-g-spacing-1, 0.25rem);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element {
|
|
147
|
+
padding: 0;
|
|
148
|
+
margin-block-end: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']):not([class*="slds-size"]) {
|
|
152
|
+
width: 100%;
|
|
153
|
+
flex-basis: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__control {
|
|
157
|
+
border-bottom: 0; /* Remove border when using legacy version of slds-form-element */
|
|
158
|
+
padding-inline-start: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__control {
|
|
162
|
+
width: 100%;
|
|
163
|
+
flex-basis: 100%;
|
|
164
|
+
clear: left;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__icon {
|
|
168
|
+
float: none;
|
|
169
|
+
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* --------------------------------------- */
|
|
173
|
+
|
|
174
|
+
/* FORM ELEMENT: INLINE */
|
|
175
|
+
|
|
176
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) {
|
|
177
|
+
display: block;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host([data-render-mode="shadow"][variant~='label-inline']):not(:host([data-render-mode="shadow"]) .slds-form-element_readonly) {
|
|
181
|
+
margin-block-end: var(--sds-g-spacing-2, 0.5rem);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:host([data-render-mode="shadow"][variant~='label-inline']):not([class*="slds-size"]) {
|
|
185
|
+
width: 100%;
|
|
186
|
+
flex-basis: 100%;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:host([data-render-mode="shadow"][variant~='label-inline']):not(:host([data-render-mode="shadow"]) .slds-is-editing) {
|
|
190
|
+
padding: var(--sds-g-spacing-1, 0.25rem);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host([data-render-mode="shadow"][variant~='label-inline']).slds-is-edited {
|
|
194
|
+
padding-block-start: var(--sds-g-sizing-6, 1.25rem)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (min-width: 48em) {
|
|
198
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-form-element__label {
|
|
199
|
+
float: left;
|
|
200
|
+
max-width: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Removing icon width for when the help-text icon is present */
|
|
201
|
+
flex-basis: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Some form element controls are set to display:flex */
|
|
202
|
+
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|
|
203
|
+
margin-block-end: 0;
|
|
204
|
+
position: relative;
|
|
205
|
+
z-index: 1;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-form-element__control {
|
|
209
|
+
padding-inline-start: 33%;
|
|
210
|
+
clear: none; /* Reset clear: left when switching to horizontal form layout */
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-form-element__control .slds-form-element__control {
|
|
214
|
+
padding-inline-start: 0; /* Remove left padding on nested form controls, due to issues related to lightning-form components */
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-dueling-list__column .slds-form-element__label {
|
|
218
|
+
width: auto;
|
|
219
|
+
max-width: 100%;
|
|
220
|
+
-ms-flex-preferred-size: auto;
|
|
221
|
+
flex-basis: auto;
|
|
222
|
+
float: none;
|
|
223
|
+
position: relative;
|
|
224
|
+
padding-inline-start: 0;
|
|
225
|
+
margin-block-end: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-dueling-list {
|
|
229
|
+
clear: none;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<label class={computedLabelClass} for="select">
|
|
2
|
+
<label class={computedLabelClass} for="select" part="select-label">
|
|
3
3
|
<template if:true={required}>
|
|
4
4
|
<abbr class="slds-required" title={i18n.required}>*</abbr>
|
|
5
5
|
</template>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
accesskey={accessKey}
|
|
24
24
|
size={size}
|
|
25
25
|
aria-invalid={computedAriaInvalid}
|
|
26
|
-
|
|
26
|
+
part="select">
|
|
27
27
|
<template for:each={options} for:item="option">
|
|
28
28
|
<template if:true={option.disabled}>
|
|
29
29
|
<option disabled key={option.value} value={option.value}>{option.label}</option>
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
getRealDOMId,
|
|
8
8
|
normalizeBoolean,
|
|
9
9
|
synchronizeAttrs,
|
|
10
|
+
reflectAttribute,
|
|
10
11
|
} from 'lightning/utilsPrivate';
|
|
11
12
|
import {
|
|
12
13
|
FieldConstraintApi,
|
|
@@ -122,6 +123,7 @@ export default class LightningSelect extends LightningElement {
|
|
|
122
123
|
set variant(value) {
|
|
123
124
|
this._variant = normalizeVariant(value);
|
|
124
125
|
this.updateClassList();
|
|
126
|
+
reflectAttribute(this, 'variant', this._variant);
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
/**
|
|
@@ -136,6 +138,7 @@ export default class LightningSelect extends LightningElement {
|
|
|
136
138
|
|
|
137
139
|
set multiple(value) {
|
|
138
140
|
this._multiple = normalizeBoolean(value);
|
|
141
|
+
reflectAttribute(this, 'multiple', this._multiple);
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
/**
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
|
|
2
|
+
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
3
|
+
|
|
4
|
+
@supports (--styling-hooks: '') {
|
|
5
|
+
:host([data-render-mode="shadow"]) [part~='help-text'] {
|
|
6
|
+
--slds-c-buttonicon-color-background: var(--slds-c-helptext-color-background);
|
|
7
|
+
--slds-c-buttonicon-color-background-hover: var(--slds-c-helptext-color-background-hover);
|
|
8
|
+
--slds-c-buttonicon-color-background-focus: var(--slds-c-helptext-color-background-focus);
|
|
9
|
+
--slds-c-buttonicon-color-background-active: var(--slds-c-helptext-color-background-active);
|
|
10
|
+
--slds-c-buttonicon-color-foreground: var(--slds-c-helptext-color-foreground);
|
|
11
|
+
--slds-c-buttonicon-color-foreground-hover: var(--slds-c-helptext-color-foreground-hover);
|
|
12
|
+
--slds-c-buttonicon-color-foreground-focus: var(--slds-c-helptext-color-foreground-focus);
|
|
13
|
+
--slds-c-buttonicon-color-foreground-active: var(--slds-c-helptext-color-foreground-active);
|
|
14
|
+
--slds-c-buttonicon-color-border: var(--slds-c-helptext-color-border, transparent);
|
|
15
|
+
--slds-c-buttonicon-color-border-hover: var(--slds-c-helptext-color-border-hover, transparent);
|
|
16
|
+
--slds-c-buttonicon-color-border-focus: var(--slds-c-helptext-color-border-focus, transparent);
|
|
17
|
+
--slds-c-buttonicon-color-border-active: var(--slds-c-helptext-color-border-active, transparent);
|
|
18
|
+
--slds-c-buttonicon-spacing-block: var(--slds-c-helptext-spacing-block, 0);
|
|
19
|
+
--slds-c-buttonicon-spacing-inline: var(--slds-c-helptext-spacing-inline, 0);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The extra wrapper div creates a new formatting context which messes up
|
|
23
|
+
* our consistent height and vertical alignment. We don't want this element
|
|
24
|
+
* to inherit any styling so we pass through to the contents. This element
|
|
25
|
+
* is for setting Styling Hooks only.
|
|
26
|
+
*/
|
|
27
|
+
display: contents;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
|
|
32
|
+
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
33
|
+
|
|
34
|
+
@supports (--styling-hooks: '') {
|
|
35
|
+
/* FORM ELEMENT: BASE */
|
|
36
|
+
:host([data-render-mode="shadow"]) .slds-form-element {
|
|
37
|
+
position: relative;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([data-render-mode="shadow"]) .slds-form-element__label {
|
|
42
|
+
overflow-wrap: break-word;
|
|
43
|
+
word-wrap: break-word;
|
|
44
|
+
hyphens: auto;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
color: var(--sds-g-color-neutral-base-30, #444444);
|
|
47
|
+
font-size: var(--sds-g-font-scale-neg-3, 0.75rem);
|
|
48
|
+
padding-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
49
|
+
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
50
|
+
margin-block-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([data-render-mode="shadow"]) .slds-form-element__label:empty {
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([data-render-mode="shadow"]) .slds-form-element__control {
|
|
58
|
+
clear: left; /* NOTE: Ideally we want left to be inline-start but browser support is not ready for that value. We need to figure out better RTL support */
|
|
59
|
+
position: relative;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([data-render-mode="shadow"]) .slds-form-element__control .slds-radio,:host([data-render-mode="shadow"])
|
|
63
|
+
.slds-form-element__control .slds-checkbox {
|
|
64
|
+
display: block;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([data-render-mode="shadow"]) .slds-form-element__icon {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
position: relative;
|
|
70
|
+
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
71
|
+
vertical-align: top;
|
|
72
|
+
line-height: var(--sds-g-font-lineheight-1, 1);
|
|
73
|
+
z-index: 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([data-render-mode="shadow"]) .slds-form-element__icon .slds-button_icon {
|
|
77
|
+
position: relative;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([data-render-mode="shadow"]) .slds-form-element__help,:host([data-render-mode="shadow"])
|
|
81
|
+
.slds-form-element__helper {
|
|
82
|
+
font-size: var(--sds-g-font-scale-neg-3, 0.75rem);
|
|
83
|
+
margin-block-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
84
|
+
display: block;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host([data-render-mode="shadow"]) .slds-form-element_edit .slds-form-element__static {
|
|
88
|
+
width: calc(100% - var(--sds-g-sizing-7, 1.5rem));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host([data-render-mode="shadow"]) .slds-form-element_readonly {
|
|
92
|
+
flex-basis: 0%;
|
|
93
|
+
border-bottom: var(--sds-g-sizing-border-1, 1px) solid var(--sds-g-color-neutral-base-90, #e5e5e5);
|
|
94
|
+
margin-block-end: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__control {
|
|
98
|
+
padding-block-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
99
|
+
padding-block-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__label {
|
|
103
|
+
margin-block-end: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([data-render-mode="shadow"]) .slds-form-element__legend {
|
|
107
|
+
font-weight: var(--sds-g-font-weight-7, 700);
|
|
108
|
+
float: left;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([data-render-mode="shadow"]) .slds-form-element__addon {
|
|
112
|
+
display: inline-block;
|
|
113
|
+
margin-block-start: 0;
|
|
114
|
+
margin-block-end: 0;
|
|
115
|
+
margin-inline-start: var(--sds-g-spacing-2, 0.5rem);
|
|
116
|
+
margin-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
117
|
+
align-self: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static {
|
|
121
|
+
overflow-wrap: break-word;
|
|
122
|
+
word-wrap: break-word;
|
|
123
|
+
word-break: break-word;
|
|
124
|
+
display: inline-block;
|
|
125
|
+
font-size: var(--sds-g-font-scale-neg-1, 0.875rem);
|
|
126
|
+
font-weight: var(--sds-g-font-weight-4, 400);
|
|
127
|
+
color: var(--sds-g-color-neutral-base-10, #181818);
|
|
128
|
+
width: 100%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static.slds-text-longform *:last-child {
|
|
132
|
+
margin-block-end: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static:empty {
|
|
136
|
+
min-height: calc(var(--sds-g-sizing-6, 1.25rem) + 1px);
|
|
137
|
+
vertical-align: bottom;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host([data-render-mode="shadow"]) .slds-form-element__static--edit {
|
|
141
|
+
width: calc(100% - var(--sds-g-sizing-7, 1.5rem));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host([data-render-mode="shadow"]) .slds-required {
|
|
145
|
+
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
146
|
+
margin-block-start: 0;
|
|
147
|
+
margin-block-end: 0;
|
|
148
|
+
margin-inline-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
149
|
+
margin-inline-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([data-render-mode="shadow"]) .slds-has-error .slds-form-element__help {
|
|
153
|
+
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:host([data-render-mode="shadow"][invalid]) .slds-form-element__help {
|
|
157
|
+
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* --------------------------------------- */
|
|
161
|
+
|
|
162
|
+
/* FORM ELEMENT: STACKED */
|
|
163
|
+
|
|
164
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) {
|
|
165
|
+
display: block;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']):not(:host([data-render-mode="shadow"]) .slds-form-element_readonly) {
|
|
169
|
+
margin-block-end: var(--sds-g-spacing-2, 0.5rem);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']):not(:host([data-render-mode="shadow"]) .slds-is-editing) {
|
|
173
|
+
padding: 0 var(--sds-g-spacing-1, 0.25rem);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element {
|
|
177
|
+
padding: 0;
|
|
178
|
+
margin-block-end: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']):not([class*="slds-size"]) {
|
|
182
|
+
width: 100%;
|
|
183
|
+
flex-basis: 100%;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__control {
|
|
187
|
+
border-bottom: 0; /* Remove border when using legacy version of slds-form-element */
|
|
188
|
+
padding-inline-start: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__control {
|
|
192
|
+
width: 100%;
|
|
193
|
+
flex-basis: 100%;
|
|
194
|
+
clear: left;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host([data-render-mode="shadow"][variant~='label-stacked']) .slds-form-element__icon {
|
|
198
|
+
float: none;
|
|
199
|
+
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* --------------------------------------- */
|
|
203
|
+
|
|
204
|
+
/* FORM ELEMENT: INLINE */
|
|
205
|
+
|
|
206
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) {
|
|
207
|
+
display: block;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:host([data-render-mode="shadow"][variant~='label-inline']):not(:host([data-render-mode="shadow"]) .slds-form-element_readonly) {
|
|
211
|
+
margin-block-end: var(--sds-g-spacing-2, 0.5rem);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:host([data-render-mode="shadow"][variant~='label-inline']):not([class*="slds-size"]) {
|
|
215
|
+
width: 100%;
|
|
216
|
+
flex-basis: 100%;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host([data-render-mode="shadow"][variant~='label-inline']):not(:host([data-render-mode="shadow"]) .slds-is-editing) {
|
|
220
|
+
padding: var(--sds-g-spacing-1, 0.25rem);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:host([data-render-mode="shadow"][variant~='label-inline']).slds-is-edited {
|
|
224
|
+
padding-block-start: var(--sds-g-sizing-6, 1.25rem)
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@media (min-width: 48em) {
|
|
228
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-form-element__label {
|
|
229
|
+
float: left;
|
|
230
|
+
max-width: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Removing icon width for when the help-text icon is present */
|
|
231
|
+
flex-basis: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Some form element controls are set to display:flex */
|
|
232
|
+
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|
|
233
|
+
margin-block-end: 0;
|
|
234
|
+
position: relative;
|
|
235
|
+
z-index: 1;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-form-element__control {
|
|
239
|
+
padding-inline-start: 33%;
|
|
240
|
+
clear: none; /* Reset clear: left when switching to horizontal form layout */
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-form-element__control .slds-form-element__control {
|
|
244
|
+
padding-inline-start: 0; /* Remove left padding on nested form controls, due to issues related to lightning-form components */
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-dueling-list__column .slds-form-element__label {
|
|
248
|
+
width: auto;
|
|
249
|
+
max-width: 100%;
|
|
250
|
+
-ms-flex-preferred-size: auto;
|
|
251
|
+
flex-basis: auto;
|
|
252
|
+
float: none;
|
|
253
|
+
position: relative;
|
|
254
|
+
padding-inline-start: 0;
|
|
255
|
+
margin-block-end: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
:host([data-render-mode="shadow"][variant~='label-inline']) .slds-dueling-list {
|
|
259
|
+
clear: none;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@supports (--styling-hooks: '') {
|
|
265
|
+
/* SELECT */
|
|
266
|
+
:host([data-render-mode="shadow"]) [part~='select'] {
|
|
267
|
+
height: calc(var(--slds-c-select-input-sizing-height, 1.875rem) + (var(--sds-g-sizing-border-1, 1px) * 2));
|
|
268
|
+
width: 100%;
|
|
269
|
+
border: var(--sds-g-sizing-border-1, 1px) solid var(--slds-c-select-color-border, var(--sds-g-color-neutral-base-80, #c9c9c9));
|
|
270
|
+
border-radius: var(--slds-c-select-radius-border, var(--sds-g-radius-border-2, 0.25rem));
|
|
271
|
+
background-color: var(--slds-c-select-color-background,
|
|
272
|
+
var(--sds-g-color-neutral-base-100, #ffffff));
|
|
273
|
+
color: var(--slds-c-select-text-color, currentColor, var(--sds-g-color-neutral-base-10, #181818));
|
|
274
|
+
box-shadow: var(--slds-c-select-shadow);
|
|
275
|
+
transition: border 0.1s linear, background-color 0.1s linear;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
:host([data-render-mode="shadow"]) [part~='select'][required] {
|
|
279
|
+
box-shadow: none; /* @legacy: This is ported over from SLDS but not clear why this design decision is made. */
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:host([data-render-mode="shadow"]) [part~='select']:focus,:host([data-render-mode="shadow"])
|
|
283
|
+
[part~='select']:active {
|
|
284
|
+
outline: 0;
|
|
285
|
+
border-color: var(--slds-c-select-color-border-focus, var(--sds-g-color-brand-base-60, #1b96ff));
|
|
286
|
+
background-color: var(--slds-c-select-color-background-focus, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
287
|
+
color: var(--slds-c-select-text-color-focus);
|
|
288
|
+
box-shadow: var(--slds-c-select-shadow-focus, 0 0 3px var(--sds-g-color-brand-base-50, #0176d3));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
:host([data-render-mode="shadow"]) [part~='select'][disabled] {
|
|
292
|
+
background-color: var(--sds-g-color-neutral-base-95, #f3f3f3);
|
|
293
|
+
border-color: var(--sds-g-color-neutral-base-80, #c9c9c9);
|
|
294
|
+
color: var(--sds-g-color-neutral-base-50, #747474);
|
|
295
|
+
cursor: not-allowed;
|
|
296
|
+
user-select: none;
|
|
297
|
+
opacity: 1;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
:host([data-render-mode="shadow"]) [part~='select'][disabled]:focus,:host([data-render-mode="shadow"])
|
|
301
|
+
[part~='select'][disabled]:active {
|
|
302
|
+
box-shadow: none;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
:host([data-render-mode="shadow"]) [part~='select'][size],:host([data-render-mode="shadow"])
|
|
306
|
+
[part~='select'][multiple] {
|
|
307
|
+
min-height: calc(var(--slds-c-select-input-sizing-height) + (var(--sds-g-sizing-border-1, 1px) * 2));
|
|
308
|
+
height: inherit;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
:host([data-render-mode="shadow"]) [part~='select'][size] option,:host([data-render-mode="shadow"])
|
|
312
|
+
[part~='select'][multiple] option {
|
|
313
|
+
padding: var(--sds-g-spacing-2, 0.5rem);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:host([data-render-mode="shadow"]) .slds-select_container {
|
|
317
|
+
position: relative;
|
|
318
|
+
color: var(--slds-c-select-container-color);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
:host([data-render-mode="shadow"]) .slds-select_container [part~="select"] {
|
|
322
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
323
|
+
-moz-appearance: none;
|
|
324
|
+
-webkit-appearance: none;
|
|
325
|
+
/* stylelint-enable property-no-vendor-prefix */
|
|
326
|
+
padding: 0 var(--sds-g-spacing-5, 1.5rem) 0 var(--sds-g-spacing-2, 0.5rem);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:host([data-render-mode="shadow"]) .slds-select_container [part~="select"]::-ms-expand {
|
|
330
|
+
display: none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
:host([data-render-mode="shadow"]) .slds-select_container::before,:host([data-render-mode="shadow"])
|
|
334
|
+
.slds-select_container::after {
|
|
335
|
+
position: absolute;
|
|
336
|
+
content: '';
|
|
337
|
+
display: block;
|
|
338
|
+
right: var(--sds-g-spacing-2, 0.5rem);
|
|
339
|
+
width: 0;
|
|
340
|
+
height: 0;
|
|
341
|
+
border-left: 3px solid transparent;
|
|
342
|
+
border-right: 3px solid transparent;
|
|
343
|
+
pointer-events: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
:host([data-render-mode="shadow"]) .slds-select_container::before {
|
|
347
|
+
border-bottom: 5px solid currentColor;
|
|
348
|
+
top: calc((var(--sds-g-sizing-8, 1.75rem) / 2) - 6px);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
:host([data-render-mode="shadow"]) .slds-select_container::after {
|
|
352
|
+
border-top: 5px solid currentColor;
|
|
353
|
+
bottom: calc((var(--sds-g-sizing-8, 1.75rem) / 2) - 6px);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:host([data-render-mode="shadow"][multiple]) .slds-select_container::before,:host([data-render-mode="shadow"][multiple]) .slds-select_container::after {
|
|
357
|
+
display: none;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
:host([data-render-mode="shadow"][invalid]) [part~="select"] {
|
|
361
|
+
border-color: var(--sds-g-color-error-base-50, #ea001e);
|
|
362
|
+
box-shadow: var(--sds-g-color-error-base-50, #ea001e) 0 0 0 var(--sds-g-sizing-border-1, 1px) inset;
|
|
363
|
+
background-clip: padding-box;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:host([data-render-mode="shadow"][invalid]) [part~="select"]:focus,:host([data-render-mode="shadow"][invalid]) [part~="select"]:active {
|
|
367
|
+
box-shadow: var(--sds-g-color-error-base-50, #ea001e) 0 0 0 var(--sds-g-sizing-border-1, 1px) inset, 0 0 3px var(--sds-g-color-brand-base-50, #0176d3);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* LABEL */
|
|
371
|
+
|
|
372
|
+
/* Styling Specifically for select label */
|
|
373
|
+
:host([data-render-mode="shadow"]) [part~="select-label"] {
|
|
374
|
+
padding-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
375
|
+
color: var(--slds-c-select-label-color, var(--sds-g-color-neutral-base-30, #444444));
|
|
376
|
+
font-size: var(--slds-c-select-label-font-size, var(--sds-g-font-scale-neg-3, 0.75rem));
|
|
377
|
+
|
|
378
|
+
/* We inline flex to control the spacing between elements and not have to rely on whitespace characters */
|
|
379
|
+
display: inline-flex;
|
|
380
|
+
|
|
381
|
+
/* TODO: Add global hook once SLDS creates a new spacing hook that equals the value needed here */
|
|
382
|
+
column-gap: 0.125rem;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* ASSISTIVE TEXT */
|
|
386
|
+
:host([data-render-mode="shadow"]) .slds-assistive-text {
|
|
387
|
+
position: absolute !important;
|
|
388
|
+
margin: -1px !important;
|
|
389
|
+
border: 0 !important;
|
|
390
|
+
padding: 0 !important;
|
|
391
|
+
width: 1px !important;
|
|
392
|
+
height: 1px !important;
|
|
393
|
+
overflow: hidden !important;
|
|
394
|
+
clip: rect(0 0 0 0) !important;
|
|
395
|
+
text-transform: none !important;
|
|
396
|
+
white-space: nowrap !important;
|
|
397
|
+
}
|
|
398
|
+
}
|