lightning-base-components 1.18.8-ssr → 1.19.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/metadata/raptor.json +541 -1
- package/package.json +26 -68
- package/scopedImports/@salesforce-internal-core.appVersion.js +1 -1
- package/scopedImports/@salesforce-label-LightningProgressRing.complete.js +1 -0
- package/scopedImports/@salesforce-label-LightningProgressRing.expired.js +1 -0
- package/scopedImports/@salesforce-label-LightningProgressRing.warning.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.defaultSelectedRecordErrorMessage.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.invalidConfigurationErrorMessage.js +1 -1
- package/scopedImports/@salesforce-label-LightningRecordPicker.loadingPlaceholder.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.messageWhenBadInputDefault.js +1 -0
- package/scopedImports/@salesforce-label-LightningServiceCloudVoiceToolkitApi.missingNbaParams.js +1 -1
- package/src/lightning/accordion/__docs__/accordion.md +2 -2
- package/src/lightning/accordion/accordion.css +4 -4
- package/src/lightning/accordion/accordion.js +2 -4
- package/src/lightning/accordion/accordion.slds.css +30 -29
- package/src/lightning/accordionSection/__docs__/accordionSection.md +1 -1
- package/src/lightning/accordionSection/accordion-section.slds.css +26 -24
- package/src/lightning/accordionSection/accordionSection.css +4 -4
- package/src/lightning/accordionSection/accordionSection.js +2 -4
- package/src/lightning/alert/__docs__/alert.md +1 -1
- package/src/lightning/avatar/__docs__/avatar.md +1 -1
- package/src/lightning/avatar/avatar.css +2 -2
- package/src/lightning/avatar/avatar.js +2 -3
- package/src/lightning/avatar/avatar.slds.css +21 -22
- package/src/lightning/badge/__docs__/badge.md +1 -1
- package/src/lightning/badge/__examples__/basic/basic.html +1 -3
- package/src/lightning/badge/badge.html +14 -16
- package/src/lightning/badge/badge.js +2 -4
- package/src/lightning/barcodeScanner/__docs__/barcodeScanner.md +2 -2
- package/src/lightning/baseCombobox/base-combobox.slds.css +48 -71
- package/src/lightning/baseCombobox/baseCombobox.css +2 -3
- package/src/lightning/baseCombobox/baseCombobox.js +30 -12
- package/src/lightning/baseComboboxItem/baseComboboxItem.js +2 -4
- package/src/lightning/baseComboboxItem/inline.css +2 -2
- package/src/lightning/baseComboboxItem/listbox.slds.css +10 -25
- package/src/lightning/breadcrumb/breadcrumb.css +2 -2
- package/src/lightning/breadcrumb/breadcrumb.js +2 -4
- package/src/lightning/breadcrumb/breadcrumb.slds.css +2 -2
- package/src/lightning/breadcrumbs/__docs__/breadcrumbs.md +3 -3
- package/src/lightning/breadcrumbs/breadcrumbs.css +2 -2
- package/src/lightning/breadcrumbs/breadcrumbs.js +2 -3
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +4 -3
- package/src/lightning/button/__docs__/button.md +8 -8
- package/src/lightning/button/button.css +2 -2
- package/src/lightning/button/button.js +1 -0
- package/src/lightning/button/button.slds.css +3 -3
- package/src/lightning/buttonGroup/__docs__/buttonGroup.md +1 -1
- package/src/lightning/buttonGroup/buttonGroup.css +2 -2
- package/src/lightning/buttonGroup/buttonGroup.js +2 -3
- package/src/lightning/buttonIcon/__docs__/buttonIcon.md +1 -1
- package/src/lightning/buttonIcon/button-icon.slds.css +6 -6
- package/src/lightning/buttonIcon/buttonIcon.css +2 -2
- package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +1 -1
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +6 -6
- package/src/lightning/buttonIconStateful/buttonIconStateful.css +6 -2
- package/src/lightning/buttonMenu/__docs__/buttonMenu.md +3 -1
- package/src/lightning/buttonMenu/button-menu.slds.css +42 -51
- package/src/lightning/buttonMenu/buttonMenu.css +2 -2
- package/src/lightning/buttonMenu/buttonMenu.js +6 -5
- package/src/lightning/buttonStateful/__docs__/buttonStateful.md +2 -2
- package/src/lightning/buttonStateful/button-stateful.slds.css +19 -22
- package/src/lightning/buttonStateful/buttonStateful.css +2 -2
- package/src/lightning/buttonStateful/buttonStateful.js +2 -3
- package/src/lightning/calendar/calendar.css +2 -2
- package/src/lightning/calendar/calendar.js +2 -4
- package/src/lightning/calendar/calendar.slds.css +39 -48
- package/src/lightning/card/__docs__/card.md +5 -5
- package/src/lightning/card/card.css +2 -2
- package/src/lightning/card/card.js +2 -3
- package/src/lightning/card/card.slds.css +37 -18
- package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +3 -3
- package/src/lightning/colorPickerCustom/colorPickerCustom.css +2 -2
- package/src/lightning/colorPickerCustom/colorPickerCustom.js +2 -3
- package/src/lightning/colorPickerPanel/colorPickerPanel.css +2 -2
- package/src/lightning/colorPickerPanel/colorPickerPanel.js +2 -4
- package/src/lightning/colorPickerPanel/popover.slds.css +1 -1
- package/src/lightning/combobox/__docs__/combobox.md +2 -0
- package/src/lightning/combobox/combobox.css +4 -2
- package/src/lightning/combobox/combobox.html +2 -1
- package/src/lightning/combobox/combobox.js +2 -4
- package/src/lightning/combobox/form-element.slds.css +23 -24
- package/src/lightning/confirm/__docs__/confirm.md +1 -1
- package/src/lightning/datatable/__docs__/datatable.md +63 -8
- package/src/lightning/datatable/datatable.js +1 -0
- package/src/lightning/datepicker/datepicker.css +2 -2
- package/src/lightning/datepicker/datepicker.html +1 -1
- package/src/lightning/datepicker/datepicker.js +34 -24
- package/src/lightning/datepicker/form-element.slds.css +23 -24
- package/src/lightning/datepicker/input-text.slds.css +16 -16
- package/src/lightning/datetimepicker/datetimepicker.css +2 -2
- package/src/lightning/datetimepicker/datetimepicker.html +1 -1
- package/src/lightning/datetimepicker/datetimepicker.js +2 -4
- package/src/lightning/datetimepicker/form-element.slds.css +23 -24
- package/src/lightning/datetimepicker/input-text.slds.css +16 -16
- package/src/lightning/dialog/README.md +1 -1
- package/src/lightning/dualListbox/__docs__/dualListbox.md +1 -1
- package/src/lightning/dualListbox/dual-listbox.slds.css +4 -13
- package/src/lightning/dualListbox/dualListbox.css +2 -2
- package/src/lightning/dualListbox/dualListbox.js +2 -4
- package/src/lightning/dualListbox/form-element.slds.css +23 -24
- package/src/lightning/dualListbox/listbox.slds.css +10 -25
- package/src/lightning/dynamicIcon/dynamic-icon-ellie.slds.css +2 -2
- package/src/lightning/dynamicIcon/dynamic-icon-eq.slds.css +1 -1
- package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +1 -1
- package/src/lightning/dynamicIcon/dynamicIcon.js +2 -3
- package/src/lightning/dynamicIcon/ellie.css +1 -1
- package/src/lightning/dynamicIcon/eq.css +1 -1
- package/src/lightning/dynamicIcon/score.css +1 -1
- package/src/lightning/dynamicIcon/strength.css +1 -1
- package/src/lightning/dynamicIcon/trend.css +1 -1
- package/src/lightning/dynamicIcon/waffle.css +1 -1
- package/src/lightning/f6Controller/f6Controller.js +9 -9
- package/src/lightning/formattedAddress/formattedAddress.js +0 -4
- package/src/lightning/formattedDateTime/__docs__/formattedDateTime.md +1 -1
- package/src/lightning/formattedDateTime/formattedDateTime.js +1 -1
- package/src/lightning/formattedNumber/__docs__/formattedNumber.md +1 -1
- package/src/lightning/formattedRichText/formatted-rich-text.slds.css +0 -2
- package/src/lightning/formattedRichText/formattedRichText.css +2 -2
- package/src/lightning/formattedRichText/formattedRichText.js +2 -4
- package/src/lightning/formattedText/formattedText.css +1 -1
- package/src/lightning/formattedText/formattedText.js +2 -3
- package/src/lightning/helptext/form-element.slds.css +23 -24
- package/src/lightning/helptext/help-text.slds.css +6 -6
- package/src/lightning/helptext/helptext.css +2 -2
- package/src/lightning/helptext/helptext.js +2 -3
- package/src/lightning/icon/__docs__/icon.md +2 -2
- package/src/lightning/icon/icon.css +2 -2
- package/src/lightning/icon/icon.html +9 -3
- package/src/lightning/icon/icon.js +18 -17
- package/src/lightning/icon/icon.slds.css +14 -14
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/templates.js +38 -1
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/templates.js +38 -1
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/templates.js +26 -1
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/templates.js +26 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/templates.js +13 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/templates.js +13 -1
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconUtils/iconColors.js +1 -0
- package/src/lightning/iconUtils/iconUtils.js +10 -0
- package/src/lightning/input/__docs__/input.md +22 -6
- package/src/lightning/input/__examples__/file/file.html +1 -1
- package/src/lightning/input/form-element.slds.css +23 -24
- package/src/lightning/input/input.css +4 -2
- package/src/lightning/input/input.html +3 -3
- package/src/lightning/input/input.js +52 -11
- package/src/lightning/inputAddress/__docs__/inputAddress.md +5 -5
- package/src/lightning/inputName/__docs__/inputName.md +4 -4
- package/src/lightning/layout/layout.css +2 -2
- package/src/lightning/layout/layout.js +2 -5
- package/src/lightning/layoutItem/__docs__/layoutItem.md +1 -1
- package/src/lightning/layoutItem/layoutItem.css +2 -2
- package/src/lightning/layoutItem/layoutItem.js +2 -5
- package/src/lightning/menuDivider/menuDivider.css +2 -2
- package/src/lightning/menuDivider/menuDivider.js +2 -4
- package/src/lightning/menuItem/menu-item.slds.css +3 -3
- package/src/lightning/menuItem/menuItem.css +2 -2
- package/src/lightning/menuItem/menuItem.js +2 -4
- package/src/lightning/menuSubheader/menuSubheader.css +2 -2
- package/src/lightning/menuSubheader/menuSubheader.js +3 -5
- package/src/lightning/modal/__docs__/migration.md +9 -9
- package/src/lightning/modal/__docs__/modal.md +15 -5
- package/src/lightning/modal/__examples__disabled/basic/basic.css +1 -1
- package/src/lightning/modal/__examples__disabled/demoallform/demoallform.css +2 -4
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.css +2 -4
- package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +2 -19
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +96 -58
- package/src/lightning/modalBase/modalBase.css +2 -7
- package/src/lightning/modalBase/modalBase.html +0 -2
- package/src/lightning/modalBase/modalBase.js +31 -120
- package/src/lightning/modalBody/__docs__/modalBody.md +3 -3
- package/src/lightning/modalBody/modalBody.html +0 -1
- package/src/lightning/modalBody/modalBody.js +35 -51
- package/src/lightning/modalFooter/__docs__/modalFooter.md +3 -3
- package/src/lightning/modalFooter/modalFooter.html +1 -1
- package/src/lightning/modalFooter/modalFooter.js +3 -93
- package/src/lightning/modalHeader/__docs__/modalHeader.md +3 -3
- package/src/lightning/modalHeader/modalHeader.html +1 -1
- package/src/lightning/modalHeader/modalHeader.js +2 -86
- package/src/lightning/navigation/__docs__/navigation.md +3 -3
- package/src/lightning/overlay/overlay.js +2 -3
- package/src/lightning/overlayContainer/overlayContainer.js +5 -6
- package/src/lightning/overlayUtils/overlayUtils.js +59 -0
- package/src/lightning/pill/__docs__/pill.md +2 -2
- package/src/lightning/pill/avatar.slds.css +21 -22
- package/src/lightning/pill/link.css +2 -2
- package/src/lightning/pill/pill.js +2 -4
- package/src/lightning/pill/pill.slds.css +17 -9
- package/src/lightning/pill/plain.css +2 -2
- package/src/lightning/pill/plainLink.css +2 -2
- package/src/lightning/pillContainer/__docs__/pillContainer.md +1 -1
- package/src/lightning/pillContainer/barePillContainer.css +2 -2
- package/src/lightning/pillContainer/listbox.slds.css +10 -25
- package/src/lightning/pillContainer/pill-container.slds.css +19 -8
- package/src/lightning/pillContainer/pill.slds.css +17 -9
- package/src/lightning/pillContainer/pillContainer.js +2 -4
- package/src/lightning/pillContainer/standardPillContainer.css +2 -2
- package/src/lightning/popup/popover.slds.css +1 -1
- package/src/lightning/popup/popup.css +2 -2
- package/src/lightning/popup/popup.js +2 -3
- package/src/lightning/primitiveBubble/primitiveBubble.css +2 -2
- package/src/lightning/primitiveBubble/primitiveBubble.js +2 -4
- package/src/lightning/primitiveBubble/tooltip.slds.css +14 -23
- package/src/lightning/primitiveButton/primitiveButton.js +7 -4
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +14 -14
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.css +2 -2
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.js +2 -3
- package/src/lightning/primitiveIcon/icon.slds.css +14 -14
- package/src/lightning/primitiveIcon/primitiveIcon.css +2 -2
- package/src/lightning/primitiveIcon/primitiveIcon.js +2 -3
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +7 -7
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.css +2 -2
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.html +1 -1
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.js +2 -4
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +1 -6
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.css +2 -2
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.html +1 -1
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.js +2 -4
- package/src/lightning/primitiveInputColor/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputColor/input-color.slds.css +3 -3
- package/src/lightning/primitiveInputColor/input-text.slds.css +16 -16
- package/src/lightning/primitiveInputColor/primitiveInputColor.css +2 -2
- package/src/lightning/primitiveInputColor/primitiveInputColor.html +2 -2
- package/src/lightning/primitiveInputColor/primitiveInputColor.js +2 -4
- package/src/lightning/primitiveInputFile/button.slds.css +3 -3
- package/src/lightning/primitiveInputFile/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputFile/input-file.slds.css +2 -2
- package/src/lightning/primitiveInputFile/primitiveInputFile.css +2 -2
- package/src/lightning/primitiveInputFile/primitiveInputFile.html +1 -1
- package/src/lightning/primitiveInputFile/primitiveInputFile.js +2 -4
- package/src/lightning/primitiveInputRadio/primitiveInputRadio.html +1 -1
- package/src/lightning/primitiveInputSimple/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputSimple/input-text.slds.css +16 -16
- package/src/lightning/primitiveInputSimple/mobileInputUtils.js +24 -0
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.css +2 -2
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.html +1 -1
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.js +80 -16
- package/src/lightning/primitiveInputToggle/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.css +2 -2
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.html +1 -1
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.js +2 -4
- package/src/lightning/progressBar/progressBar.html +4 -4
- package/src/lightning/progressBar/progressBar.js +2 -3
- package/src/lightning/progressRing/progressRing.html +3 -8
- package/src/lightning/progressRing/progressRing.js +18 -6
- package/src/lightning/prompt/__docs__/prompt.md +1 -1
- package/src/lightning/radioGroup/input-radio-group.slds.css +12 -13
- package/src/lightning/radioGroup/radioGroup.css +3 -2
- package/src/lightning/radioGroup/radioGroup.js +2 -4
- package/src/lightning/relativeDateTime/__docs__/relativeDateTime.md +1 -1
- package/src/lightning/select/__docs__/select.md +1 -1
- package/src/lightning/select/form-element.slds.css +23 -24
- package/src/lightning/select/select.css +2 -2
- package/src/lightning/select/select.js +2 -4
- package/src/lightning/select/select.slds.css +26 -27
- package/src/lightning/sldsGenAiUtils/sldsGenAiUtils.css +4 -0
- package/src/lightning/spinner/spinner.css +2 -2
- package/src/lightning/spinner/spinner.js +2 -4
- package/src/lightning/spinner/spinner.slds.css +5 -8
- package/src/lightning/tab/__docs__/tab.md +1 -1
- package/src/lightning/tab/tab.css +2 -2
- package/src/lightning/tab/tab.js +2 -4
- package/src/lightning/tab/tab.slds.css +8 -8
- package/src/lightning/tabBar/tab-bar.slds.css +31 -35
- package/src/lightning/tabBar/tabBar.css +2 -2
- package/src/lightning/tabBar/tabBar.js +2 -4
- package/src/lightning/tabset/__docs__/tabset.md +2 -2
- package/src/lightning/tabset/tabset.css +10 -2
- package/src/lightning/tabset/tabset.js +2 -4
- package/src/lightning/textarea/textarea.css +4 -1
- package/src/lightning/tile/__docs__/tile.md +1 -1
- package/src/lightning/timepicker/form-element.slds.css +23 -24
- package/src/lightning/timepicker/timepicker.css +2 -2
- package/src/lightning/timepicker/timepicker.html +1 -1
- package/src/lightning/timepicker/timepicker.js +2 -4
- package/src/lightning/toast/__docs__/toast.md +18 -20
- package/src/lightning/toast/button-icon.slds.css +6 -6
- package/src/lightning/toast/formatted-rich-text.slds.css +0 -2
- package/src/lightning/toast/icon.slds.css +14 -14
- package/src/lightning/toast/toast.css +2 -2
- package/src/lightning/toast/toast.js +2 -4
- package/src/lightning/toast/toast.js-meta.xml +1 -1
- package/src/lightning/toast/toast.slds.css +101 -95
- package/src/lightning/toastContainer/toast.slds.css +101 -95
- package/src/lightning/toastContainer/toastContainer.css +2 -2
- package/src/lightning/toastContainer/toastContainer.js-meta.xml +1 -1
- package/src/lightning/utilsPrivate/utilsPrivate.js +9 -0
- package/src/lightning/utilsPrivate/videoUtils.js +12 -1
- package/src/lightning/verticalNavigation/verticalNavigation.css +3 -2
- package/src/lightning/verticalNavigation/verticalNavigation.js +2 -3
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +3 -2
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.js +2 -3
- package/src/lightning/badge/badge.css +0 -2
- package/src/lightning/badge/badge.slds.css +0 -73
- package/src/lightning/baseCombobox/listbox.slds.css +0 -267
- package/src/lightning/baseCombobox/spinner.slds.css +0 -438
- package/src/lightning/buttonMenu/dropdown.slds.css +0 -1360
- package/src/lightning/icon/iconColors.js +0 -1
- package/src/lightning/input/input-checkbox.slds.css +0 -395
- package/src/lightning/input/input-text.slds.css +0 -398
- package/src/lightning/modal/__examples__disabled/demo/demo.css +0 -1
- package/src/lightning/modal/__examples__disabled/demoall/demoall.css +0 -5
- package/src/lightning/modal/__examples__disabled/demofootless/demofootless.css +0 -1
- package/src/lightning/modal/__examples__disabled/demoheadless/demoheadless.css +0 -5
- package/src/lightning/modalBase/modal-base.slds.css +0 -240
- package/src/lightning/modalBody/modal-body.slds.css +0 -61
- package/src/lightning/modalBody/modalBody.css +0 -3
- package/src/lightning/modalFooter/modal-footer.slds.css +0 -68
- package/src/lightning/modalFooter/modalFooter.css +0 -2
- package/src/lightning/modalHeader/modal-header.slds.css +0 -70
- package/src/lightning/modalHeader/modalHeader.css +0 -3
- package/src/lightning/progressBar/progress-bar.slds.css +0 -66
- package/src/lightning/progressBar/progressBar.css +0 -2
- package/src/lightning/progressRing/progress-ring.slds.css +0 -140
- package/src/lightning/progressRing/progressRing.css +0 -2
- package/src/lightning/tabset/tabset.slds.css +0 -9
|
@@ -87,9 +87,9 @@ instead for input types `button`, `reset`, and
|
|
|
87
87
|
Use [`lightning-radio-group`](bundle/lightning-radio-group/documentation)
|
|
88
88
|
instead of input type `radio` for radio buttons.
|
|
89
89
|
|
|
90
|
-
When working with forms that interact with Salesforce records, consider using the record form components. The `lightning-record-form`, `lightning-record-view-form`, and `lightning-record-edit-form` components provide a form-based UI that's metadata-driven. The components are automatically wired up to your record data, labels, and field-level help text. For more information, see [Work with Records Using Base Components](docs/
|
|
90
|
+
When working with forms that interact with Salesforce records, consider using the record form components. The `lightning-record-form`, `lightning-record-view-form`, and `lightning-record-edit-form` components provide a form-based UI that's metadata-driven. The components are automatically wired up to your record data, labels, and field-level help text. For more information, see [Work with Records Using Base Components](https://developer.salesforce.com/docs/platform/lwc/guide/data-get-user-input-intro).
|
|
91
91
|
|
|
92
|
-
Alternatively, to create your own custom UI to work with Salesforce records, use `lightning-input` with the `lightning/ui*Api` wire adapters and functions, such as `getRecord` and `updateRecord`. For more information, see [Use the Wire Service with Base Components](docs/
|
|
92
|
+
Alternatively, to create your own custom UI to work with Salesforce records, use `lightning-input` with the `lightning/ui*Api` wire adapters and functions, such as `getRecord` and `updateRecord`. For more information, see [Use the Wire Service with Base Components](https://developer.salesforce.com/docs/platform/lwc/guide/data-wire-base-components).
|
|
93
93
|
|
|
94
94
|
The `label` attribute is required. If you don't want to display a label,
|
|
95
95
|
specify the `variant="label-hidden"` attribute. See **Accessibility** for more
|
|
@@ -192,6 +192,8 @@ as explained in **Adding Field-Level Help and Placeholder Text**.
|
|
|
192
192
|
|
|
193
193
|
On desktop, the datepicker calendar clips behind other components on the page if the parent container of `lightning-input` has a smaller width or height than the calendar. To prevent clipping, give the parent container a minimum width of 285px and minimum height of 310px.
|
|
194
194
|
|
|
195
|
+
By default, the datepicker calendar renders above all modals and the main Salesforce header.
|
|
196
|
+
|
|
195
197
|
```html
|
|
196
198
|
<template>
|
|
197
199
|
<lightning-input type="date" label="Birthday"> </lightning-input>
|
|
@@ -203,7 +205,6 @@ On desktop, the datepicker calendar clips behind other components on the page if
|
|
|
203
205
|
A datetime field includes a text input to type a date and a date picker
|
|
204
206
|
to select a date, and similar fields for typing or picking a time.
|
|
205
207
|
|
|
206
|
-
|
|
207
208
|
On mobile devices, this component uses the native datetime picker, which ignores the `date-style` and `time-style` attributes. The native datetime picker uses the user's device settings for names of months and weekdays, the input datetime format, and the calendar type.
|
|
208
209
|
|
|
209
210
|
##### Desktop
|
|
@@ -253,6 +254,8 @@ You can guide users with a `field-level-help` tooltip, as explained in **Adding
|
|
|
253
254
|
|
|
254
255
|
On desktop, the datepicker calendar clips behind other components on the page if the parent container of `lightning-input` has a smaller width or height than the calendar. To prevent clipping, give the parent container a minimum width of 285px and minimum height of 310px.
|
|
255
256
|
|
|
257
|
+
By default, the datepicker calendar renders above all modals and the main Salesforce header.
|
|
258
|
+
|
|
256
259
|
**Note**: Set the same time zone on your mobile device and in Salesforce to avoid confusion and potential validation
|
|
257
260
|
issues. For example, suppose the current time is 4:00 PM ET. Your mobile device is set to the America/New_York time zone and
|
|
258
261
|
you're interacting with Salesforce while it's set to the America/Los_Angeles time zone. When you tap an empty date/time field
|
|
@@ -557,6 +560,8 @@ On mobile devices, this component uses the native time picker, which ignores the
|
|
|
557
560
|
|
|
558
561
|
On desktop, this component uses a time picker styled with the Lightning Design System. This picker uses the user's Salesforce locale setting for the time format, either 12-hr time with AM/PM or 24-hr time format. The entered date and time are validated against the user's Salesforce locale format during the `blur` event.
|
|
559
562
|
|
|
563
|
+
By default, the time picker renders above all modals and the main Salesforce header.
|
|
564
|
+
|
|
560
565
|
The component uses the attribute `time-style="short"` by default, so the time picker
|
|
561
566
|
displays time without seconds. To display time including seconds, set `time-style="medium"`.
|
|
562
567
|
|
|
@@ -603,6 +608,17 @@ To apply custom styling, use the `:host` selector. Use SLDS styling hooks to cus
|
|
|
603
608
|
|
|
604
609
|
See [Styling Hooks Overview](https://www.lightningdesignsystem.com/components/checkbox-toggle/#Styling-Hooks-Overview) for a list of CSS custom properties.
|
|
605
610
|
|
|
611
|
+
By default, the toggle component expands to 100% of the available width. To limit the size of the toggle component, wrap it with an element that specifies the appropriate width.
|
|
612
|
+
|
|
613
|
+
```html
|
|
614
|
+
<template>
|
|
615
|
+
<div style="width:fit-content">
|
|
616
|
+
<lightning-input type="toggle" label="Toggle value" checked>
|
|
617
|
+
</lightning-input>
|
|
618
|
+
</div>
|
|
619
|
+
</template>
|
|
620
|
+
```
|
|
621
|
+
|
|
606
622
|
#### URL
|
|
607
623
|
|
|
608
624
|
An input field for entering a URL. The address must include the protocol, such
|
|
@@ -835,7 +851,7 @@ To provide sample input in the field, use the `placeholder` attribute. For examp
|
|
|
835
851
|
|
|
836
852
|
#### Data Binding
|
|
837
853
|
|
|
838
|
-
Bind the input value to a property in your component's JavaScript class. `lightning-input` uses the `onchange` event handler to listen a change to its value. For more information, see [Data Binding in a Template](docs/
|
|
854
|
+
Bind the input value to a property in your component's JavaScript class. `lightning-input` uses the `onchange` event handler to listen a change to its value. For more information, see [Data Binding in a Template](https://developer.salesforce.com/docs/platform/lwc/guide/js-props-getter).
|
|
839
855
|
|
|
840
856
|
#### Event Handling
|
|
841
857
|
|
|
@@ -1064,7 +1080,7 @@ trigger a message on blur when too many characters are entered.
|
|
|
1064
1080
|
```
|
|
1065
1081
|
|
|
1066
1082
|
You can use custom labels that display translated values on input fields. For more information,
|
|
1067
|
-
see [Access Labels](docs/
|
|
1083
|
+
see [Access Labels](https://developer.salesforce.com/docs/platform/lwc/guide/create-labels).
|
|
1068
1084
|
|
|
1069
1085
|
The `lightning-input` component has these limitations when running in the Playground and the Mini-Playground in the Examples tab of this Component Reference.
|
|
1070
1086
|
|
|
@@ -1148,4 +1164,4 @@ For a recipe that uses `lightning-input`, see the following components in the LW
|
|
|
1148
1164
|
|
|
1149
1165
|
#### See Also
|
|
1150
1166
|
|
|
1151
|
-
[Access Elements the Component Owns](docs/
|
|
1167
|
+
[Access Elements the Component Owns](https://developer.salesforce.com/docs/platform/lwc/guide/create-components-dom-work)
|
|
@@ -133,42 +133,42 @@
|
|
|
133
133
|
|
|
134
134
|
/* FORM ELEMENT: STACKED */
|
|
135
135
|
|
|
136
|
-
:host([data-render-mode="shadow"][variant
|
|
136
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) {
|
|
137
137
|
display: block;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
|
|
141
141
|
|
|
142
|
-
/* :host([variant
|
|
142
|
+
/* :host([variant='label-stacked']):not(.slds-form-element_readonly) {
|
|
143
143
|
margin-block-end: var(--sds-g-spacing-2);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
:host([variant
|
|
146
|
+
:host([variant='label-stacked']):not(.slds-is-editing) {
|
|
147
147
|
padding: 0 var(--sds-g-spacing-1);
|
|
148
148
|
} */
|
|
149
149
|
|
|
150
|
-
/* :host([variant
|
|
150
|
+
/* :host([variant='label-stacked']):not([class*="slds-size"]) {
|
|
151
151
|
width: 100%;
|
|
152
152
|
flex-basis: 100%;
|
|
153
153
|
} */
|
|
154
154
|
|
|
155
|
-
:host([data-render-mode="shadow"][variant
|
|
155
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element {
|
|
156
156
|
padding: 0;
|
|
157
157
|
margin-block-end: 0;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
:host([data-render-mode="shadow"][variant
|
|
160
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
161
161
|
border-bottom: 0; /* Remove border when using legacy version of slds-form-element */
|
|
162
162
|
padding-inline-start: 0;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
:host([data-render-mode="shadow"][variant
|
|
165
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
166
166
|
width: 100%;
|
|
167
167
|
flex-basis: 100%;
|
|
168
168
|
clear: left;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
:host([data-render-mode="shadow"][variant
|
|
171
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__icon {
|
|
172
172
|
float: none;
|
|
173
173
|
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
174
174
|
}
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
|
|
178
178
|
/* FORM ELEMENT: INLINE */
|
|
179
179
|
|
|
180
|
-
:host([data-render-mode="shadow"][variant
|
|
180
|
+
:host([data-render-mode="shadow"][variant='label-inline']) {
|
|
181
181
|
display: block;
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -187,32 +187,32 @@
|
|
|
187
187
|
in lighting-input this slds class is synonymous with the variant
|
|
188
188
|
*/
|
|
189
189
|
|
|
190
|
-
:host([data-render-mode="shadow"][variant
|
|
190
|
+
:host([data-render-mode="shadow"][variant='label-inline'].slds-form-element_horizontal) {
|
|
191
191
|
padding: var(--sds-g-spacing-1, 0.25rem);
|
|
192
192
|
margin-block-end: var(--sds-g-spacing-2, 0.5rem);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
|
|
196
196
|
|
|
197
|
-
/* :host([variant
|
|
197
|
+
/* :host([variant='label-inline']):not(.slds-form-element_readonly) {
|
|
198
198
|
margin-block-end: var(--sds-g-spacing-2);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
:host([variant
|
|
201
|
+
:host([variant='label-inline']):not([class*="slds-size"]) {
|
|
202
202
|
width: 100%;
|
|
203
203
|
flex-basis: 100%;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
:host([variant
|
|
206
|
+
:host([variant='label-inline']:not(.slds-is-editing)) {
|
|
207
207
|
padding: var(--sds-g-spacing-1);
|
|
208
208
|
} */
|
|
209
209
|
|
|
210
|
-
:host([data-render-mode="shadow"][variant
|
|
210
|
+
:host([data-render-mode="shadow"][variant='label-inline']).slds-is-edited {
|
|
211
211
|
padding-block-start: var(--sds-g-sizing-6, 1.25rem)
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
@media (
|
|
215
|
-
:host([data-render-mode="shadow"][variant
|
|
214
|
+
@media (width >= 48em) {
|
|
215
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
|
|
216
216
|
float: left;
|
|
217
217
|
max-width: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Removing icon width for when the help-text icon is present */
|
|
218
218
|
flex-basis: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Some form element controls are set to display:flex */
|
|
@@ -222,23 +222,22 @@
|
|
|
222
222
|
z-index: 1;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
:host([data-render-mode="shadow"][variant
|
|
225
|
+
:host([data-render-mode="shadow"][variant='label-inline']) lightning-helptext {
|
|
226
226
|
float: left;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
:host([data-render-mode="shadow"][variant
|
|
229
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__control {
|
|
230
230
|
margin-inline-start: 33%;
|
|
231
231
|
clear: none; /* Reset clear: left when switching to horizontal form layout */
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
:host([data-render-mode="shadow"][variant
|
|
234
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__control .slds-form-element__control {
|
|
235
235
|
padding-inline-start: 0; /* Remove left padding on nested form controls, due to issues related to lightning-form components */
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
:host([data-render-mode="shadow"][variant
|
|
238
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-dueling-list__column .slds-form-element__label {
|
|
239
239
|
width: auto;
|
|
240
240
|
max-width: 100%;
|
|
241
|
-
-ms-flex-preferred-size: auto;
|
|
242
241
|
flex-basis: auto;
|
|
243
242
|
float: none;
|
|
244
243
|
position: relative;
|
|
@@ -246,11 +245,11 @@
|
|
|
246
245
|
margin-block-end: 0;
|
|
247
246
|
}
|
|
248
247
|
|
|
249
|
-
:host([data-render-mode="shadow"][variant
|
|
248
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__help {
|
|
250
249
|
margin-inline-start: 33%;
|
|
251
250
|
}
|
|
252
251
|
|
|
253
|
-
:host([data-render-mode="shadow"][variant
|
|
252
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-dueling-list {
|
|
254
253
|
clear: none;
|
|
255
254
|
}
|
|
256
255
|
}
|
|
@@ -283,7 +282,7 @@
|
|
|
283
282
|
|
|
284
283
|
/* FORM ELEMENT: HIDDEN */
|
|
285
284
|
|
|
286
|
-
:host([data-render-mode="shadow"][variant
|
|
285
|
+
:host([data-render-mode="shadow"][variant='label-hidden']) .slds-form-element__label {
|
|
287
286
|
display: none
|
|
288
287
|
}
|
|
289
288
|
}
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
name={name}
|
|
26
26
|
onblur={handleBlur}
|
|
27
27
|
onfocus={handleFocus}
|
|
28
|
-
oninput={handleInput}
|
|
29
28
|
onchange={handlePrimitiveInputSimpleChange}
|
|
30
29
|
oncommit={handleCommit}
|
|
31
30
|
pattern={pattern}
|
|
@@ -34,6 +33,7 @@
|
|
|
34
33
|
required={required}
|
|
35
34
|
step={step}
|
|
36
35
|
type={type}
|
|
36
|
+
timezone={timezone}
|
|
37
37
|
variant={variant}
|
|
38
38
|
value={value}
|
|
39
39
|
validity={validity}
|
|
@@ -148,8 +148,8 @@
|
|
|
148
148
|
help-message={_helpMessage}
|
|
149
149
|
helptext-alternative-text={helptextAlternativeText}
|
|
150
150
|
onblur={handleBlur}
|
|
151
|
+
oncommit={handleCommit}
|
|
151
152
|
onfocus={handleFocus}
|
|
152
|
-
oninput={handleInput}
|
|
153
153
|
onchange={handleChange}
|
|
154
154
|
has-external-label={hasExternalLabel}
|
|
155
155
|
required={required}
|
|
@@ -254,6 +254,6 @@
|
|
|
254
254
|
</template>
|
|
255
255
|
|
|
256
256
|
<template if:true={shouldShowHelpMessage}>
|
|
257
|
-
<div id="help-message" class={computedHelpMessageClass} data-help-message
|
|
257
|
+
<div id="help-message" class={computedHelpMessageClass} data-help-message part="help-text">{_helpMessage}</div>
|
|
258
258
|
</template>
|
|
259
259
|
</template>
|
|
@@ -81,6 +81,25 @@ const ARIA_DESCRIBEDBY = 'aria-describedby';
|
|
|
81
81
|
*
|
|
82
82
|
* */
|
|
83
83
|
|
|
84
|
+
const VALID_INPUT_TYPES = [
|
|
85
|
+
'checkbox',
|
|
86
|
+
'checkbox-button',
|
|
87
|
+
'date',
|
|
88
|
+
'datetime',
|
|
89
|
+
'time',
|
|
90
|
+
'email',
|
|
91
|
+
'file',
|
|
92
|
+
'password',
|
|
93
|
+
'search',
|
|
94
|
+
'tel',
|
|
95
|
+
'url',
|
|
96
|
+
'number',
|
|
97
|
+
'text',
|
|
98
|
+
'radio',
|
|
99
|
+
'toggle',
|
|
100
|
+
'color',
|
|
101
|
+
'range',
|
|
102
|
+
];
|
|
84
103
|
const VALID_NUMBER_FORMATTERS = [
|
|
85
104
|
'decimal',
|
|
86
105
|
'percent',
|
|
@@ -641,7 +660,10 @@ export default class LightningInput extends LightningElement {
|
|
|
641
660
|
this._type =
|
|
642
661
|
normalizedValue === 'datetime' ? 'datetime-local' : normalizedValue;
|
|
643
662
|
|
|
644
|
-
|
|
663
|
+
// preserve old behavior of defaulting to 'text' if user supplies an invalid type.
|
|
664
|
+
if (!this._validateType(normalizedValue)) {
|
|
665
|
+
this._type = 'text';
|
|
666
|
+
}
|
|
645
667
|
|
|
646
668
|
this._inputElementRefreshNeeded = true;
|
|
647
669
|
|
|
@@ -1263,6 +1285,10 @@ export default class LightningInput extends LightningElement {
|
|
|
1263
1285
|
return this.type === 'time';
|
|
1264
1286
|
}
|
|
1265
1287
|
|
|
1288
|
+
get isTypeSearch() {
|
|
1289
|
+
return this.type === 'search';
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1266
1292
|
get isTypeMobileDate() {
|
|
1267
1293
|
return this.isTypeDate && !this._isDesktopBrowser();
|
|
1268
1294
|
}
|
|
@@ -1298,7 +1324,12 @@ export default class LightningInput extends LightningElement {
|
|
|
1298
1324
|
type === 'search' ||
|
|
1299
1325
|
type === 'password' ||
|
|
1300
1326
|
type === 'range' ||
|
|
1301
|
-
!type
|
|
1327
|
+
!type ||
|
|
1328
|
+
(!this._isDesktopBrowser() &&
|
|
1329
|
+
(type === 'date' ||
|
|
1330
|
+
type === 'time' ||
|
|
1331
|
+
type === 'datetime' ||
|
|
1332
|
+
type === 'datetime-local'))
|
|
1302
1333
|
);
|
|
1303
1334
|
}
|
|
1304
1335
|
|
|
@@ -1402,10 +1433,8 @@ export default class LightningInput extends LightningElement {
|
|
|
1402
1433
|
inputElement = this.template.querySelector(
|
|
1403
1434
|
'lightning-timepicker'
|
|
1404
1435
|
);
|
|
1405
|
-
} else if (this.isTypePrimitiveInput) {
|
|
1406
|
-
inputElement = this._primitiveComponent.inputElement;
|
|
1407
1436
|
} else {
|
|
1408
|
-
inputElement = this.
|
|
1437
|
+
inputElement = this._primitiveComponent.inputElement;
|
|
1409
1438
|
this._inputDragonDecorated = true;
|
|
1410
1439
|
decorateInputForDragon(inputElement);
|
|
1411
1440
|
}
|
|
@@ -1441,17 +1470,14 @@ export default class LightningInput extends LightningElement {
|
|
|
1441
1470
|
}
|
|
1442
1471
|
|
|
1443
1472
|
get _displayedValue() {
|
|
1444
|
-
if (this.isTypeNumber) {
|
|
1445
|
-
const subcomponent = this._primitiveComponent;
|
|
1446
|
-
return subcomponent.getDisplayedValue();
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
1473
|
if (
|
|
1474
|
+
this.isTypeNumber ||
|
|
1450
1475
|
this.isTypeMobileDate ||
|
|
1451
1476
|
this.isTypeMobileDateTime ||
|
|
1452
1477
|
this.isTypeMobileTime
|
|
1453
1478
|
) {
|
|
1454
|
-
|
|
1479
|
+
const subcomponent = this._primitiveComponent;
|
|
1480
|
+
return subcomponent.getDisplayedValue();
|
|
1455
1481
|
}
|
|
1456
1482
|
|
|
1457
1483
|
return this._value;
|
|
@@ -1688,6 +1714,15 @@ export default class LightningInput extends LightningElement {
|
|
|
1688
1714
|
);
|
|
1689
1715
|
}
|
|
1690
1716
|
|
|
1717
|
+
/**
|
|
1718
|
+
* This function determines if a type is supported by this component or not.
|
|
1719
|
+
*
|
|
1720
|
+
* We assert against the types we explicitly don't support. We also throw a warning
|
|
1721
|
+
* when users make common mistakes, like type phone instead of tel.
|
|
1722
|
+
*
|
|
1723
|
+
* @param {string} type - the type being set via api
|
|
1724
|
+
* @returns {boolean} - wether the value is valid or not
|
|
1725
|
+
*/
|
|
1691
1726
|
_validateType(type) {
|
|
1692
1727
|
assert(
|
|
1693
1728
|
type !== 'hidden',
|
|
@@ -1706,6 +1741,12 @@ export default class LightningInput extends LightningElement {
|
|
|
1706
1741
|
`<lightning-input> The required attribute is not supported on radio inputs directly. It should be implemented at the radio group level.`
|
|
1707
1742
|
);
|
|
1708
1743
|
}
|
|
1744
|
+
if (type === 'phone') {
|
|
1745
|
+
console.warn(
|
|
1746
|
+
`<lightning-input> The type attribute value "phone" is invalid. Please use <lightning-input type="tel"> instead. Defaulting to text type.`
|
|
1747
|
+
);
|
|
1748
|
+
}
|
|
1749
|
+
return VALID_INPUT_TYPES.includes(type);
|
|
1709
1750
|
}
|
|
1710
1751
|
|
|
1711
1752
|
/**
|
|
@@ -74,7 +74,7 @@ export default class AddressCityExample extends LightningElement {
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
See the __Custom Events__ section for a list of `event.target` properties. For more information, see [Data Binding in a Template](docs/
|
|
77
|
+
See the __Custom Events__ section for a list of `event.target` properties. For more information, see [Data Binding in a Template](https://developer.salesforce.com/docs/platform/lwc/guide/js-props-getter).
|
|
78
78
|
|
|
79
79
|
#### Creating Dropdown Menus for Country and Province
|
|
80
80
|
|
|
@@ -140,7 +140,7 @@ export default class DemoInputAddress extends LightningElement {
|
|
|
140
140
|
|
|
141
141
|
Alternatively, you can enable state and country picklists in your org, and
|
|
142
142
|
access the values by using a wire adapter.
|
|
143
|
-
See [Let Users Select State and Country from Picklists](https://help.salesforce.com/articleView?id=admin_state_country_picklists_overview.htm) in Salesforce Help and [getPicklistValues](docs/
|
|
143
|
+
See [Let Users Select State and Country from Picklists](https://help.salesforce.com/articleView?id=admin_state_country_picklists_overview.htm) in Salesforce Help and [getPicklistValues](https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-picklist-values) in the Lightning Web Components Developer Guide.
|
|
144
144
|
|
|
145
145
|
#### Using Lookup to Find and Autofill an Address
|
|
146
146
|
|
|
@@ -213,7 +213,7 @@ Additionally, the `show-address-lookup` boolean attribute creates a search field
|
|
|
213
213
|
Your Salesforce locale setting determines the order and layout of the input address fields by default. Use the `locale` attribute to override the default. Specify any locale code from the list of [Supported Number, Name, and Address Formats (ICU)](https://help.salesforce.com/s/articleView?id=sf.admin_supported_locales.htm&type=5").
|
|
214
214
|
|
|
215
215
|
You can also use custom labels that display translated values. For more information, see
|
|
216
|
-
[Access Labels](docs/
|
|
216
|
+
[Access Labels](https://developer.salesforce.com/docs/platform/lwc/guide/create-labels).
|
|
217
217
|
|
|
218
218
|
We recommend that you provide a label even when you provide placeholder text for an address field. Without field labels, users can lose context when the placeholder text disappears as they type in the field.
|
|
219
219
|
|
|
@@ -282,9 +282,9 @@ See [Input: Styling Hooks Overview](https://www.lightningdesignsystem.com/compon
|
|
|
282
282
|
Using `show-address-lookup` is not supported in Playground, Experience Builder sites, Lightning Out,
|
|
283
283
|
Lightning Components for Visualforce, and standalone apps.
|
|
284
284
|
|
|
285
|
-
When working with address fields such as with the `MailingAddress` field on Salesforce records, consider using the record form components. The `lightning-record-form`, `lightning-record-view-form`, and `lightning-record-edit-form` components provide a form-based UI that's metadata-driven. The components are automatically wired up to your record data, labels, and field-level help text. For more information, see [Work with Records Using Base Components](docs/
|
|
285
|
+
When working with address fields such as with the `MailingAddress` field on Salesforce records, consider using the record form components. The `lightning-record-form`, `lightning-record-view-form`, and `lightning-record-edit-form` components provide a form-based UI that's metadata-driven. The components are automatically wired up to your record data, labels, and field-level help text. For more information, see [Work with Records Using Base Components](https://developer.salesforce.com/docs/platform/lwc/guide/data-get-user-input-intro).
|
|
286
286
|
|
|
287
|
-
To create your own custom UI to work with Salesforce records, use `lightning-input-address` with the `lightning/ui*Api` wire adapters and functions, such as `getRecord` and `updateRecord`. For more information, see [Use the Wire Service with Base Components](docs/
|
|
287
|
+
To create your own custom UI to work with Salesforce records, use `lightning-input-address` with the `lightning/ui*Api` wire adapters and functions, such as `getRecord` and `updateRecord`. For more information, see [Use the Wire Service with Base Components](https://developer.salesforce.com/docs/platform/lwc/guide/data-wire-base-components).
|
|
288
288
|
|
|
289
289
|
To disable the fields so that users cannot interact with it, use the `disabled` attribute. If you want to prevent users from interacting with the country field only,
|
|
290
290
|
disable it using the `country-disabled` attribute.
|
|
@@ -118,7 +118,7 @@ export default class InputName extends LightningElement {
|
|
|
118
118
|
first-name={firstname}
|
|
119
119
|
middle-name="Middleton"
|
|
120
120
|
last-name="Doe"
|
|
121
|
-
options={salutationOptions}
|
|
121
|
+
options={salutationOptions}
|
|
122
122
|
onchange={handleChange}></lightning-input-name>
|
|
123
123
|
```
|
|
124
124
|
|
|
@@ -147,12 +147,12 @@ export default class InputNameBase extends LightningElement {
|
|
|
147
147
|
}
|
|
148
148
|
```
|
|
149
149
|
|
|
150
|
-
See the __Custom Events__ section for a list of `event.target` properties. For more information, see [Data Binding in a Template](docs/
|
|
150
|
+
See the __Custom Events__ section for a list of `event.target` properties. For more information, see [Data Binding in a Template](https://developer.salesforce.com/docs/platform/lwc/guide/js-props-getter).
|
|
151
151
|
|
|
152
152
|
#### Usage Considerations
|
|
153
153
|
|
|
154
154
|
You can use custom labels that display translated values. For more information, see the
|
|
155
|
-
[Access Static Resources, Labels, Internationalization Properties, and User IDs](docs/
|
|
155
|
+
[Access Static Resources, Labels, Internationalization Properties, and User IDs](https://developer.salesforce.com/docs/platform/lwc/guide/create-global-value-providers).
|
|
156
156
|
|
|
157
157
|
This component uses `button` elements for dropdown menus to comply with the [Lightning Design System combobox blueprint](https://www.lightningdesignsystem.com/components/combobox/#%22Input%22-markup) for select-only comboboxes.
|
|
158
158
|
|
|
@@ -218,4 +218,4 @@ The `change` event properties are as follows.
|
|
|
218
218
|
|
|
219
219
|
#### See Also
|
|
220
220
|
|
|
221
|
-
[Use Wire Service with Base Components](docs/
|
|
221
|
+
[Use Wire Service with Base Components](https://developer.salesforce.com/docs/platform/lwc/guide/data-wire-base-components)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { api, track } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api, track } from 'lwc';
|
|
3
2
|
import {
|
|
4
3
|
normalizeParam,
|
|
5
4
|
computeLayoutClass,
|
|
@@ -12,9 +11,8 @@ import { normalizeBoolean } from 'lightning/utilsPrivate';
|
|
|
12
11
|
/**
|
|
13
12
|
* Represents a responsive grid system for arranging containers on a page.
|
|
14
13
|
*/
|
|
15
|
-
export default class LightningLayout extends
|
|
14
|
+
export default class LightningLayout extends LightningElement {
|
|
16
15
|
static validationOptOut = ['class'];
|
|
17
|
-
|
|
18
16
|
/**
|
|
19
17
|
* Determines how to spread the layout items horizontally.
|
|
20
18
|
* The alignment options are center, space, spread, and end.
|
|
@@ -82,7 +80,6 @@ export default class LightningLayout extends LightningShadowBaseClass {
|
|
|
82
80
|
_layoutClass = [];
|
|
83
81
|
|
|
84
82
|
connectedCallback() {
|
|
85
|
-
super.connectedCallback();
|
|
86
83
|
this.updateClassList();
|
|
87
84
|
}
|
|
88
85
|
|
|
@@ -80,7 +80,7 @@ Here is an example using default values.
|
|
|
80
80
|
|
|
81
81
|
#### Usage Considerations
|
|
82
82
|
|
|
83
|
-
This component has usage differences from its Aura counterpart. See [Base Components: Aura Vs Lightning Web Components](docs/
|
|
83
|
+
This component has usage differences from its Aura counterpart. See [Base Components: Aura Vs Lightning Web Components](https://developer.salesforce.com/docs/platform/lwc/guide/migrate-map-aura-lwc-components) in the Lightning Web Components Developer Guide.
|
|
84
84
|
|
|
85
85
|
#### Source Code
|
|
86
86
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { api, track } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api, track } from 'lwc';
|
|
3
2
|
import {
|
|
4
3
|
normalizeFlexibility,
|
|
5
4
|
normalizePadding,
|
|
@@ -14,9 +13,8 @@ import {
|
|
|
14
13
|
* A layout item groups information together to define visual grids, spacing, and sections.
|
|
15
14
|
* @slot default Placeholder for your content in lightning-layout-item.
|
|
16
15
|
*/
|
|
17
|
-
export default class LightningLayoutItem extends
|
|
16
|
+
export default class LightningLayoutItem extends LightningElement {
|
|
18
17
|
static validationOptOut = ['class'];
|
|
19
|
-
|
|
20
18
|
/**
|
|
21
19
|
* Make the item fluid so that it absorbs any extra space in its
|
|
22
20
|
* container or shrinks when there is less space. Allowed values are:
|
|
@@ -139,7 +137,6 @@ export default class LightningLayoutItem extends LightningShadowBaseClass {
|
|
|
139
137
|
_layoutClass = [];
|
|
140
138
|
|
|
141
139
|
connectedCallback() {
|
|
142
|
-
super.connectedCallback();
|
|
143
140
|
this.updateClassList();
|
|
144
141
|
}
|
|
145
142
|
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { api, track } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, api, track } from 'lwc';
|
|
3
2
|
import { classSet } from 'lightning/utils';
|
|
4
3
|
import { normalizeString as normalize } from 'lightning/utilsPrivate';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Creates a divider in the list of items for lightning-button-menu.
|
|
8
7
|
*/
|
|
9
|
-
export default class LightningMenuDivider extends
|
|
8
|
+
export default class LightningMenuDivider extends LightningElement {
|
|
10
9
|
@track _variant = 'standard';
|
|
11
10
|
|
|
12
11
|
connectedCallback() {
|
|
13
|
-
super.connectedCallback();
|
|
14
12
|
this.setAttribute('role', 'separator');
|
|
15
13
|
}
|
|
16
14
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
/* Reassignment - lightning-icon */
|
|
45
45
|
--slds-c-icon-color-foreground-default: var(--sds-g-color-neutral-base-80, #c9c9c9);
|
|
46
|
-
--slds-c-icon-boundary-spacing-
|
|
46
|
+
--slds-c-icon-boundary-spacing-inlineend: 25px;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/* TODO: bring in PostCSS fix and see if it fixes output CSS */
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
:host([data-render-mode="shadow"].slds-has-warning) .slds-indicator_unread {
|
|
101
|
-
background-color:
|
|
101
|
+
background-color: currentcolor;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
:host([data-render-mode="shadow"].slds-has-warning) .slds-indicator_unsaved {
|
|
105
|
-
color:
|
|
105
|
+
color: currentcolor;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
:host([data-render-mode="shadow"].slds-has-error) a:hover,:host([data-render-mode="shadow"].slds-has-error) a:focus,:host([data-render-mode="shadow"].slds-has-success) a:hover,:host([data-render-mode="shadow"].slds-has-success) a:focus,:host([data-render-mode="shadow"].slds-has-warning) a:hover,:host([data-render-mode="shadow"].slds-has-warning) a:focus {
|