lightning-base-components 1.17.3-alpha → 1.17.6-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/metadata/raptor.json +125 -2
- package/package.json +17 -1
- 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 +9 -0
- package/src/lightning/ariaObserver/__examples__/connectChild/connectChild.html +3 -0
- package/src/lightning/ariaObserver/__examples__/connectChild/connectChild.js +43 -0
- package/src/lightning/ariaObserver/ariaObserver.js +16 -2
- package/src/lightning/baseCombobox/baseCombobox.js +11 -3
- package/src/lightning/baseCombobox/keyboard.js +3 -0
- 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/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/input-text.slds.css +1 -1
- package/src/lightning/input/input.html +3 -3
- package/src/lightning/input/input.js +38 -2
- 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/__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 +2 -2
- package/src/lightning/modalBase/modalBase.js +199 -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/primitiveBubble/primitiveBubble.js +16 -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 +82 -19
- package/src/lightning/treeGrid/__docs__/treeGrid.md +4 -3
- 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
|
@@ -8,6 +8,9 @@ const hideClass = 'slds-hide';
|
|
|
8
8
|
// selectors
|
|
9
9
|
const footerSelector = `.${footerClass}`;
|
|
10
10
|
const footerSlotSelector = '[data-footer-slot]';
|
|
11
|
+
// timeout footer height check
|
|
12
|
+
const SIZE_CHECK_TIMER = 50;
|
|
13
|
+
const MAX_HEIGHT_CHECKS = 4;
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* The modal footer component to display footer content in lightning modal.
|
|
@@ -18,6 +21,9 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
18
21
|
initialSlotRender = true;
|
|
19
22
|
hideFooter = false;
|
|
20
23
|
unregisterCallback = null;
|
|
24
|
+
footerHeightTracked = 0;
|
|
25
|
+
footerHeightChecked = 0;
|
|
26
|
+
timeoutId = 0;
|
|
21
27
|
|
|
22
28
|
/**
|
|
23
29
|
* Handle the default slot change event
|
|
@@ -57,7 +63,9 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
57
63
|
const divElem = this.template.querySelector(footerSelector);
|
|
58
64
|
const footerRect = divElem ? divElem.getBoundingClientRect() : {};
|
|
59
65
|
const { height } = footerRect;
|
|
60
|
-
|
|
66
|
+
const heightValue = height || 0;
|
|
67
|
+
this.footerHeightTracked = heightValue;
|
|
68
|
+
return heightValue;
|
|
61
69
|
}
|
|
62
70
|
|
|
63
71
|
/**
|
|
@@ -125,6 +133,47 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
125
133
|
this.dispatchEvent(evtRegister);
|
|
126
134
|
}
|
|
127
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Provide a means to check whether the tracked footer height
|
|
138
|
+
* is different than the current footer height to only call modalBase
|
|
139
|
+
* when there is a change in footer height
|
|
140
|
+
* @private
|
|
141
|
+
*/
|
|
142
|
+
hasFooterHeightChanged() {
|
|
143
|
+
// note: calling this.footerHeight updates this.footerHeightTracked
|
|
144
|
+
// order of values checked here is required
|
|
145
|
+
const previousRenderedHeight = this.footerHeightTracked;
|
|
146
|
+
const currentRenderedHeight = this.footerHeight;
|
|
147
|
+
return currentRenderedHeight !== previousRenderedHeight;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* On first render, provide a quick means of updating modalBase,
|
|
152
|
+
* if the modalFooter height changes.
|
|
153
|
+
* In rare cases, the height of the footer between the
|
|
154
|
+
* normal or full size rendering can change depending on
|
|
155
|
+
* content of footer and window width
|
|
156
|
+
* @private
|
|
157
|
+
*/
|
|
158
|
+
scheduleFooterHeightCheck() {
|
|
159
|
+
if (this.initialRender && this.timeoutId === 0) {
|
|
160
|
+
// eslint-disable-next-line @lwc/lwc/no-async-operation
|
|
161
|
+
this.timeoutId = setInterval(() => {
|
|
162
|
+
if (this.footerHeightChecked >= MAX_HEIGHT_CHECKS) {
|
|
163
|
+
clearTimeout(this.timeoutId);
|
|
164
|
+
this.timeoutId = 0;
|
|
165
|
+
this.footerHeightChecked = 0;
|
|
166
|
+
} else {
|
|
167
|
+
this.footerHeightChecked++;
|
|
168
|
+
const hasChanged = this.hasFooterHeightChanged();
|
|
169
|
+
if (hasChanged) {
|
|
170
|
+
this.registerWithParent();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}, SIZE_CHECK_TIMER);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
128
177
|
/**
|
|
129
178
|
* When modal footer is being created, initialize
|
|
130
179
|
* private tracked modal footer state
|
|
@@ -137,6 +186,9 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
137
186
|
this.initialSlotRender = true;
|
|
138
187
|
this.hideFooter = false;
|
|
139
188
|
this.unregisterCallback = null;
|
|
189
|
+
this.footerHeightTracked = 0;
|
|
190
|
+
this.footerHeightChecked = 0;
|
|
191
|
+
this.timeoutId = 0;
|
|
140
192
|
}
|
|
141
193
|
|
|
142
194
|
connectedCallback() {
|
|
@@ -149,11 +201,15 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
149
201
|
if (this.unregisterCallback) {
|
|
150
202
|
this.unregisterCallback();
|
|
151
203
|
}
|
|
204
|
+
clearTimeout(this.timeoutId);
|
|
205
|
+
this.timeoutId = 0;
|
|
206
|
+
this.footerHeightChecked = 0;
|
|
152
207
|
}
|
|
153
208
|
|
|
154
209
|
renderedCallback() {
|
|
155
210
|
if (this.initialRender) {
|
|
156
211
|
this.registerWithParent();
|
|
212
|
+
this.scheduleFooterHeightCheck();
|
|
157
213
|
this.initialRender = false;
|
|
158
214
|
}
|
|
159
215
|
this.hideFooter = !this.isDefaultSlotPopulated;
|
|
@@ -25,7 +25,7 @@ export default class MyCustomElement extends NavigationMixin(
|
|
|
25
25
|
) {}
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
The `NavigationMixin` adds two APIs to your component's class.
|
|
28
|
+
The `NavigationMixin` adds two APIs to your component's class. Invoking these functions before the element is connected to the DOM can have unexpected results.
|
|
29
29
|
|
|
30
30
|
- `[NavigationMixin.Navigate](pageReference, [replace])` - A component calls this API to navigate to another page in the application.
|
|
31
31
|
- `[NavigationMixin.GenerateUrl](pageReference)` - A component calls this API to get a `promise` that resolves to the resulting URL. The component can use the URL in the `href` attribute of an anchor. It can also use the URL to open a new window using the `window.open(url)` browser API.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
|
|
2
|
+
@supports (--styling-hooks: '') {
|
|
3
|
+
:host([data-render-mode="shadow"]) .slds-popover {
|
|
4
|
+
position: relative;
|
|
5
|
+
border-radius: var(--sds-g-radius-border-2, 0.25rem);
|
|
6
|
+
width: var(--sds-g-sizing-15, 20rem);
|
|
7
|
+
min-height: calc(var(--sds-g-sizing-5, 1rem) * 2);
|
|
8
|
+
z-index: var(--slds-c-popover-position-zindex, 6000);
|
|
9
|
+
background-color: var(--slds-c-popover-color-background,
|
|
10
|
+
var(--slds-g-color-neutral-base-100,
|
|
11
|
+
var(--sds-g-color-neutral-base-100, #ffffff)));
|
|
12
|
+
display: inline-block;
|
|
13
|
+
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.16);
|
|
14
|
+
border: var(--sds-g-sizing-border-1, 1px) solid var(--slds-g-color-border-base-1, var(--sds-g-color-border-base-1, #c9c9c9));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([data-render-mode="shadow"]) .slds-popover__meta {
|
|
18
|
+
margin-block-end: var(--sds-g-sizing-4, 0.75rem);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([data-render-mode="shadow"]) .slds-popover__body {
|
|
22
|
+
padding-block: var(--sds-g-spacing-2, 0.5rem);
|
|
23
|
+
padding-inline: var(--sds-g-spacing-3, 0.75rem);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([data-render-mode="shadow"]) .slds-popover__body .slds-popover__header {
|
|
27
|
+
padding-block: 0 var(--sds-g-sizing-3, 0.5rem);
|
|
28
|
+
padding-inline: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([data-render-mode="shadow"]) .slds-popover__body,:host([data-render-mode="shadow"])
|
|
32
|
+
.slds-popover__header,:host([data-render-mode="shadow"])
|
|
33
|
+
.slds-popover__footer {
|
|
34
|
+
position: relative;
|
|
35
|
+
padding-block: var(--sds-g-spacing-2, 0.5rem);
|
|
36
|
+
padding-inline: var(--sds-g-spacing-3, 0.75rem);
|
|
37
|
+
word-wrap: break-word;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([data-render-mode="shadow"]) .slds-popover__header {
|
|
41
|
+
border-bottom: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([data-render-mode="shadow"]) .slds-popover__footer {
|
|
45
|
+
border-block-start: var(--sds-g-sizing-border-1, 1px) solid var(--slds-g-color-border-base-1, var(--sds-g-color-border-base-1, #c9c9c9));
|
|
46
|
+
background-color: var(--slds-g-color-neutral-base-95, var(--sds-g-color-neutral-base-95, #f3f3f3));
|
|
47
|
+
border-end-start-radius: inherit;
|
|
48
|
+
border-end-end-radius: inherit;
|
|
49
|
+
padding-block: var(--sds-g-spacing-2, 0.5rem);
|
|
50
|
+
padding-inline: var(--sds-g-spacing-3, 0.75rem);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([data-render-mode="shadow"]) .slds-popover__footer_form {
|
|
54
|
+
text-align: center;
|
|
55
|
+
background: var(--slds-g-color-neutral-base-95, var(--sds-g-color-neutral-base-95, #f3f3f3));
|
|
56
|
+
border-radius: 0 0 var(--sds-g-radius-border-2, 0.25rem) var(--sds-g-radius-border-2, 0.25rem);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([data-render-mode="shadow"]) .slds-popover__body_small {
|
|
60
|
+
max-height: var(--sds-g-sizing-14, 15rem);
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([data-render-mode="shadow"]) .slds-popover__close {
|
|
65
|
+
position: relative;
|
|
66
|
+
margin-block: var(--sds-g-spacing-1, 0.25rem);
|
|
67
|
+
margin-inline: var(--sds-g-spacing-1, 0.25rem);
|
|
68
|
+
z-index: calc(var(--slds-c-popover-position-zindex, 6000) + 1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([data-render-mode="shadow"]) .slds-popover_small {
|
|
72
|
+
max-width: var(--sds-g-sizing-14, 15rem);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([data-render-mode="shadow"]) .slds-popover_medium {
|
|
76
|
+
min-width: var(--sds-g-sizing-15, 20rem);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([data-render-mode="shadow"]) .slds-popover_large {
|
|
80
|
+
min-width: 25rem;
|
|
81
|
+
max-width: 512px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host([data-render-mode="shadow"]) .slds-popover[class*="theme_"] {
|
|
85
|
+
border: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([data-render-mode="shadow"]) .slds-popover *:last-child {
|
|
89
|
+
margin-bottom: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([data-render-mode="shadow"]) .slds-popover_full-width {
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([data-render-mode="shadow"]) .slds-popover_hide {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host([data-render-mode="shadow"]) .slds-popover_dark {
|
|
101
|
+
background-color: var(--slds-g-color-brand-base-30, var(--sds-g-color-brand-base-30, #014486));
|
|
102
|
+
color: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host([data-render-mode="shadow"]) .slds-popover_dark .slds-badge {
|
|
106
|
+
background-color: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:host([data-render-mode="shadow"]) .slds-popover_dark .slds-popover__close {
|
|
110
|
+
color: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:host([data-render-mode="shadow"]) .slds-popover_dark .slds-icon-text-default {
|
|
114
|
+
fill: var(--slds-g-color-neutral-base-100, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host([data-render-mode="shadow"]) .slds-popover_dark .slds-popover__footer {
|
|
118
|
+
border-top-color: var(--slds-g-color-brand-base-10, var(--sds-g-color-brand-base-10, #001639));
|
|
119
|
+
background-color: var(--slds-g-color-brand-base-20, var(--sds-g-color-brand-base-20, #032d60));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -179,24 +179,17 @@ export function checkFlipPossibility(parent, element, target, leftAsBoundary) {
|
|
|
179
179
|
|
|
180
180
|
// If there is no space above and below, recalculate space based on window
|
|
181
181
|
// when there is still no space above and below based on window then select the maximum available space
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
viewPort.top +
|
|
192
|
-
parent.scrollTop -
|
|
193
|
-
height;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
hasSpaceAbove =
|
|
197
|
-
aboveSpace >= 0 || (belowSpace < 0 && aboveSpace > belowSpace);
|
|
182
|
+
|
|
183
|
+
if (
|
|
184
|
+
!hasSpaceAbove &&
|
|
185
|
+
!hasSpaceBelow &&
|
|
186
|
+
parent &&
|
|
187
|
+
element.style &&
|
|
188
|
+
element.style.position === 'fixed'
|
|
189
|
+
) {
|
|
190
|
+
hasSpaceAbove = referenceElemRect.top - windowViewPort.top - height > 0;
|
|
198
191
|
hasSpaceBelow =
|
|
199
|
-
|
|
192
|
+
windowViewPort.height - referenceElemRect.bottom - height > 0;
|
|
200
193
|
}
|
|
201
194
|
|
|
202
195
|
// Assuming center alignment, does the viewport have space to fit half of the element around
|
|
@@ -18,6 +18,13 @@ export default class LightningPrimitiveBubble extends LightningElement {
|
|
|
18
18
|
contentId: '',
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
/*
|
|
22
|
+
Tooltip manages the visibility state of the PrimitiveBubble element
|
|
23
|
+
to ensure there are no differences beteween TooltipLibrary._visible and
|
|
24
|
+
LightningPrimitiveBubble.state.visible. See @W-12512833
|
|
25
|
+
*/
|
|
26
|
+
@api disableVisibilityChangeOnLeave;
|
|
27
|
+
|
|
21
28
|
@api
|
|
22
29
|
get contentId() {
|
|
23
30
|
return this.state.contentId;
|
|
@@ -135,6 +142,14 @@ export default class LightningPrimitiveBubble extends LightningElement {
|
|
|
135
142
|
}
|
|
136
143
|
|
|
137
144
|
handleMouseLeave() {
|
|
138
|
-
|
|
145
|
+
/**
|
|
146
|
+
* This causes a number of issues when primitive-bubble is managed through tooltipLibrary, due to the fact
|
|
147
|
+
* that changing the visibility inside the primitive bubble creates a mismatch with the tooltipLibrary Tooltip._visible state.
|
|
148
|
+
* This contributes to a number of problems and can result in the tooltip being made visible again in unwanted situations.
|
|
149
|
+
* (W-12512833). Remove this completely if no longer required by other consumers.
|
|
150
|
+
*/
|
|
151
|
+
if (!this.disableVisibilityChangeOnLeave) {
|
|
152
|
+
this.visible = false;
|
|
153
|
+
}
|
|
139
154
|
}
|
|
140
155
|
}
|
|
@@ -6,6 +6,15 @@ examples:
|
|
|
6
6
|
- name: multiple
|
|
7
7
|
label: Multiple Select
|
|
8
8
|
description: A dropdown menu with multiple selection enabled.
|
|
9
|
+
- name: disabled
|
|
10
|
+
label: Disabled Select
|
|
11
|
+
description: A dropdown menu with disabled state.
|
|
12
|
+
- name: hidden
|
|
13
|
+
label: Hidden Select
|
|
14
|
+
description: A dropdown menu with hidden label.
|
|
15
|
+
- name: inline
|
|
16
|
+
label: Inline Select
|
|
17
|
+
description: A dropdown menu with inline label.
|
|
9
18
|
---
|
|
10
19
|
|
|
11
20
|
`lightning-select` enables single and multiple selection on a menu of options using the HTML `select` element and `option` elements. To specify whether multiple options can be selected, use the `multiple` attribute. The `size` attribute can be used to specify how many options are visible at once. `lightning-select` also accepts most general form input attributes such as `required` and `disabled`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LightningElement } from 'lwc';
|
|
2
|
+
|
|
3
|
+
export default class SelectDisabled extends LightningElement {
|
|
4
|
+
selectVal = '';
|
|
5
|
+
productOptions = [
|
|
6
|
+
{
|
|
7
|
+
label: '--None--',
|
|
8
|
+
value: '',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
label: 'Sales',
|
|
12
|
+
value: 'sales',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: 'Marketing',
|
|
16
|
+
value: 'marketing',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: 'Service',
|
|
20
|
+
value: 'service',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
handleChange(event) {
|
|
25
|
+
this.selectVal = event.detail.value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LightningElement } from 'lwc';
|
|
2
|
+
|
|
3
|
+
export default class SelectHidden extends LightningElement {
|
|
4
|
+
selectVal = '';
|
|
5
|
+
productOptions = [
|
|
6
|
+
{
|
|
7
|
+
label: '--None--',
|
|
8
|
+
value: '',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
label: 'Sales',
|
|
12
|
+
value: 'sales',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: 'Marketing',
|
|
16
|
+
value: 'marketing',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: 'Service',
|
|
20
|
+
value: 'service',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
handleChange(event) {
|
|
25
|
+
this.selectVal = event.detail.value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LightningElement } from 'lwc';
|
|
2
|
+
|
|
3
|
+
export default class SelectInline extends LightningElement {
|
|
4
|
+
selectVal = '';
|
|
5
|
+
productOptions = [
|
|
6
|
+
{
|
|
7
|
+
label: '--None--',
|
|
8
|
+
value: '',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
label: 'Sales',
|
|
12
|
+
value: 'sales',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: 'Marketing',
|
|
16
|
+
value: 'marketing',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: 'Service',
|
|
20
|
+
value: 'service',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
handleChange(event) {
|
|
25
|
+
this.selectVal = event.detail.value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -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
|
+
}
|