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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LightningElement } from 'lwc';
|
|
2
2
|
import { classSet } from 'lightning/utils';
|
|
3
3
|
import { findAllTabbableElements, filterTooltips } from 'lightning/focusUtils';
|
|
4
4
|
|
|
@@ -8,26 +8,16 @@ 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
|
-
// checking quickly yields faster resolution of correct
|
|
13
|
-
// footer (not a typo) placement
|
|
14
|
-
const SIZE_CHECK_TIMER = 50;
|
|
15
|
-
// limited to 4 quick checks totalling 200 ms, which catches
|
|
16
|
-
// any misreported heights based on reflow of content in modalFooter
|
|
17
|
-
const MAX_HEIGHT_CHECKS = 4;
|
|
18
11
|
|
|
19
12
|
/**
|
|
20
13
|
* The modal footer component to display footer content in lightning modal.
|
|
21
14
|
* */
|
|
22
|
-
export default class LightningModalFooter extends
|
|
15
|
+
export default class LightningModalFooter extends LightningElement {
|
|
23
16
|
// tracked private state
|
|
24
17
|
initialRender = true;
|
|
25
18
|
initialSlotRender = true;
|
|
26
19
|
hideFooter = false;
|
|
27
20
|
unregisterCallback = null;
|
|
28
|
-
footerHeightTracked = 0;
|
|
29
|
-
footerHeightChecked = 0;
|
|
30
|
-
timeoutId = 0;
|
|
31
21
|
|
|
32
22
|
/**
|
|
33
23
|
* Handle the default slot change event
|
|
@@ -67,9 +57,7 @@ export default class LightningModalFooter extends LightningShadowBaseClass {
|
|
|
67
57
|
const divElem = this.template.querySelector(footerSelector);
|
|
68
58
|
const footerRect = divElem ? divElem.getBoundingClientRect() : {};
|
|
69
59
|
const { height } = footerRect;
|
|
70
|
-
|
|
71
|
-
this.footerHeightTracked = heightValue;
|
|
72
|
-
return heightValue;
|
|
60
|
+
return height || 0;
|
|
73
61
|
}
|
|
74
62
|
|
|
75
63
|
/**
|
|
@@ -113,32 +101,6 @@ export default class LightningModalFooter extends LightningShadowBaseClass {
|
|
|
113
101
|
return firstElem;
|
|
114
102
|
}
|
|
115
103
|
|
|
116
|
-
/**
|
|
117
|
-
* if not the intial render, check for footer height chnage,
|
|
118
|
-
* when a window resize occurs
|
|
119
|
-
* @returns {Object}
|
|
120
|
-
* @private
|
|
121
|
-
*/
|
|
122
|
-
handleModalFooterResizeCheck() {
|
|
123
|
-
// when not intial render, and footer height changed
|
|
124
|
-
// return the tracked value, otherwise indicate no change
|
|
125
|
-
return !this.initialRender && this.hasFooterHeightChanged()
|
|
126
|
-
? { changed: true, value: this.footerHeightTracked }
|
|
127
|
-
: { changed: false, value: null };
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* if not the intial render, update state passed from modalBase
|
|
132
|
-
* @param {Object} values passed from modalBase to modalFooter
|
|
133
|
-
* @private
|
|
134
|
-
*/
|
|
135
|
-
handleUpdateFooterCallback(values) {
|
|
136
|
-
if (!this.initialRender) {
|
|
137
|
-
const { size } = values;
|
|
138
|
-
this.setAttribute('data-size', size);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
104
|
/**
|
|
143
105
|
* Register modalFooter with modal parent, including callbacks to
|
|
144
106
|
* unregister the modal footer
|
|
@@ -155,10 +117,6 @@ export default class LightningModalFooter extends LightningShadowBaseClass {
|
|
|
155
117
|
defaultSlotIsPopulated: this.isDefaultSlotPopulated,
|
|
156
118
|
defaultSlotHasRendered: !this.initialSlotRender,
|
|
157
119
|
firstTabbableElemRef: this.firstTabbableElement,
|
|
158
|
-
checkFooterHeightCallback:
|
|
159
|
-
this.handleModalFooterResizeCheck.bind(this),
|
|
160
|
-
updateFooterCallback:
|
|
161
|
-
this.handleUpdateFooterCallback.bind(this),
|
|
162
120
|
unRegisterCallback: (unregisterCallback) => {
|
|
163
121
|
this.unregisterCallback = unregisterCallback;
|
|
164
122
|
},
|
|
@@ -167,46 +125,6 @@ export default class LightningModalFooter extends LightningShadowBaseClass {
|
|
|
167
125
|
this.dispatchEvent(evtRegister);
|
|
168
126
|
}
|
|
169
127
|
|
|
170
|
-
/**
|
|
171
|
-
* Provide a means to check whether the tracked footer height
|
|
172
|
-
* is different than the current footer height to only call modalBase
|
|
173
|
-
* when there is a change in footer height
|
|
174
|
-
* @private
|
|
175
|
-
*/
|
|
176
|
-
hasFooterHeightChanged() {
|
|
177
|
-
// note: calling this.footerHeight updates this.footerHeightTracked
|
|
178
|
-
// order of values checked here is required
|
|
179
|
-
const previousRenderedHeight = this.footerHeightTracked;
|
|
180
|
-
const currentRenderedHeight = this.footerHeight;
|
|
181
|
-
return currentRenderedHeight !== previousRenderedHeight;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* On first render, provide a quick means of updating modalBase,
|
|
186
|
-
* if the modalFooter height changes.
|
|
187
|
-
* In rare cases, the height of the footer between the
|
|
188
|
-
* normal or full size rendering can change depending on
|
|
189
|
-
* content of footer and window width
|
|
190
|
-
* @private
|
|
191
|
-
*/
|
|
192
|
-
scheduleFooterHeightCheck() {
|
|
193
|
-
if (this.initialRender && this.timeoutId === 0) {
|
|
194
|
-
// eslint-disable-next-line @lwc/lwc/no-async-operation
|
|
195
|
-
this.timeoutId = setInterval(() => {
|
|
196
|
-
if (this.footerHeightChecked >= MAX_HEIGHT_CHECKS) {
|
|
197
|
-
clearTimeout(this.timeoutId);
|
|
198
|
-
this.timeoutId = 0;
|
|
199
|
-
this.footerHeightChecked = 0;
|
|
200
|
-
} else {
|
|
201
|
-
this.footerHeightChecked++;
|
|
202
|
-
if (this.hasFooterHeightChanged()) {
|
|
203
|
-
this.registerWithParent();
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}, SIZE_CHECK_TIMER);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
128
|
/**
|
|
211
129
|
* When modal footer is being created, initialize
|
|
212
130
|
* private tracked modal footer state
|
|
@@ -219,13 +137,9 @@ export default class LightningModalFooter extends LightningShadowBaseClass {
|
|
|
219
137
|
this.initialSlotRender = true;
|
|
220
138
|
this.hideFooter = false;
|
|
221
139
|
this.unregisterCallback = null;
|
|
222
|
-
this.footerHeightTracked = 0;
|
|
223
|
-
this.footerHeightChecked = 0;
|
|
224
|
-
this.timeoutId = 0;
|
|
225
140
|
}
|
|
226
141
|
|
|
227
142
|
connectedCallback() {
|
|
228
|
-
super.connectedCallback();
|
|
229
143
|
// handle case where modalFooter is added/removed/added to DOM
|
|
230
144
|
// so registerWithParent gets called
|
|
231
145
|
this.initState();
|
|
@@ -235,15 +149,11 @@ export default class LightningModalFooter extends LightningShadowBaseClass {
|
|
|
235
149
|
if (this.unregisterCallback) {
|
|
236
150
|
this.unregisterCallback();
|
|
237
151
|
}
|
|
238
|
-
clearTimeout(this.timeoutId);
|
|
239
|
-
this.timeoutId = 0;
|
|
240
|
-
this.footerHeightChecked = 0;
|
|
241
152
|
}
|
|
242
153
|
|
|
243
154
|
renderedCallback() {
|
|
244
155
|
if (this.initialRender) {
|
|
245
156
|
this.registerWithParent();
|
|
246
|
-
this.scheduleFooterHeightCheck();
|
|
247
157
|
this.initialRender = false;
|
|
248
158
|
}
|
|
249
159
|
this.hideFooter = !this.isDefaultSlotPopulated;
|
|
@@ -13,7 +13,7 @@ tags, which are the only HTML elements permitted. If the header text is too long
|
|
|
13
13
|
|
|
14
14
|
This sample code shows the expected order of the modal components. The modal content is
|
|
15
15
|
created in a separate component extended from `LightningModal`. See
|
|
16
|
-
[Lightning Web Components Developer Guide](docs/
|
|
16
|
+
[Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide/)
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
19
|
<!-- my/modalDialog.html -->
|
|
@@ -51,7 +51,7 @@ For example, specify the background color on the button using the `sds-c-modal-h
|
|
|
51
51
|
|
|
52
52
|
See the modal blueprint's [Styling Hooks Overview](https://www.lightningdesignsystem.com/components/modals/#Styling-Hooks-Overview) for a list of CSS custom properties.
|
|
53
53
|
|
|
54
|
-
For more information, see [Style Components Using Lightning Design System Styling Hooks](docs/
|
|
54
|
+
For more information, see [Style Components Using Lightning Design System Styling Hooks](https://developer.salesforce.com/docs/platform/lwc/guide/create-components-css-custom-properties) in the Lightning Web Components Developer Guide.
|
|
55
55
|
|
|
56
56
|
#### Accessibility
|
|
57
57
|
|
|
@@ -61,4 +61,4 @@ If you don't use `lightning-modal-header`, the accessible label is provided usin
|
|
|
61
61
|
When the modal opens, focus goes to the first interactive element in the modal. If the header includes a link in tagline text, the link
|
|
62
62
|
gets initial focus.
|
|
63
63
|
|
|
64
|
-
See [Lightning Web Components Developer Guide](docs/
|
|
64
|
+
See [Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide/) for more information about accessibility in modals.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { api } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { api, LightningElement } from 'lwc';
|
|
3
2
|
import { getRealDOMId } from 'lightning/utilsPrivate';
|
|
4
3
|
import { findAllTabbableElements, filterTooltips } from 'lightning/focusUtils';
|
|
5
4
|
|
|
@@ -8,24 +7,15 @@ const modalHeaderSelector = '.slds-modal__header';
|
|
|
8
7
|
const labelSelector = '[data-label]';
|
|
9
8
|
const slotWrapperSelector = '[data-slot-wrapper]';
|
|
10
9
|
const defaultSlotSelector = '[data-default-slot]';
|
|
11
|
-
// timeout header height check
|
|
12
|
-
// checking quickly yields faster resolution of footer placement
|
|
13
|
-
const SIZE_CHECK_TIMER = 50;
|
|
14
|
-
// limited to 4 quick checks totalling 200 ms, which catches
|
|
15
|
-
// any misreported heights based on reflow of content
|
|
16
|
-
const MAX_HEIGHT_CHECKS = 4;
|
|
17
10
|
|
|
18
11
|
/**
|
|
19
12
|
* Creates a header to display the heading and tagline at the top of a modal.
|
|
20
13
|
* */
|
|
21
|
-
export default class LightningModalHeader extends
|
|
14
|
+
export default class LightningModalHeader extends LightningElement {
|
|
22
15
|
// tracked private state
|
|
23
16
|
initialRender = true;
|
|
24
17
|
initialSlotRender = true;
|
|
25
18
|
unregisterCallback = null;
|
|
26
|
-
headerHeightTracked = 0;
|
|
27
|
-
headerHeightChecked = 0;
|
|
28
|
-
timeoutId = 0;
|
|
29
19
|
|
|
30
20
|
/**
|
|
31
21
|
* Text to display as the heading at the top of the modal
|
|
@@ -55,7 +45,6 @@ export default class LightningModalHeader extends LightningShadowBaseClass {
|
|
|
55
45
|
const headerRect = divElem ? divElem.getBoundingClientRect() : {};
|
|
56
46
|
const { height } = headerRect;
|
|
57
47
|
const heightValue = height || 0;
|
|
58
|
-
this.headerHeightTracked = heightValue;
|
|
59
48
|
return heightValue;
|
|
60
49
|
}
|
|
61
50
|
|
|
@@ -156,30 +145,6 @@ export default class LightningModalHeader extends LightningShadowBaseClass {
|
|
|
156
145
|
return (this.label && this.label.trim().length > 0) || false;
|
|
157
146
|
}
|
|
158
147
|
|
|
159
|
-
/**
|
|
160
|
-
* if not the intial render, check for header height chnage,
|
|
161
|
-
* when a window resize occurs
|
|
162
|
-
* @returns {Object}
|
|
163
|
-
* @private
|
|
164
|
-
*/
|
|
165
|
-
handleModalHeaderResizeCheck() {
|
|
166
|
-
return !this.initialRender && this.hasHeaderHeightChanged()
|
|
167
|
-
? { changed: true, value: this.headerHeightTracked }
|
|
168
|
-
: { changed: false, value: null };
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* if not the intial render, update state passed from modalBase
|
|
173
|
-
* @param {Object} values passed from modalBase to modalHeader
|
|
174
|
-
* @private
|
|
175
|
-
*/
|
|
176
|
-
handleUpdateHeaderCallback(values) {
|
|
177
|
-
if (!this.initialRender) {
|
|
178
|
-
const { size } = values;
|
|
179
|
-
this.setAttribute('data-size', size);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
148
|
/**
|
|
184
149
|
* Register modalHeader with modal parent, including callbacks to
|
|
185
150
|
* unregister the modal header
|
|
@@ -198,10 +163,6 @@ export default class LightningModalHeader extends LightningShadowBaseClass {
|
|
|
198
163
|
defaultSlotWrapperId: this.defaultSlotWrapperId,
|
|
199
164
|
defaultSlotIsPopulated: this.isDefaultSlotPopulated,
|
|
200
165
|
defaultSlotHasRendered: !this.initialSlotRender,
|
|
201
|
-
checkHeaderHeightCallback:
|
|
202
|
-
this.handleModalHeaderResizeCheck.bind(this),
|
|
203
|
-
updateHeaderCallback:
|
|
204
|
-
this.handleUpdateHeaderCallback.bind(this),
|
|
205
166
|
unRegisterCallback: (unregisterCallback) => {
|
|
206
167
|
this.unregisterCallback = unregisterCallback;
|
|
207
168
|
},
|
|
@@ -212,46 +173,6 @@ export default class LightningModalHeader extends LightningShadowBaseClass {
|
|
|
212
173
|
this.dispatchEvent(evtRegister);
|
|
213
174
|
}
|
|
214
175
|
|
|
215
|
-
/**
|
|
216
|
-
* Provide a means to check whether the tracked header height
|
|
217
|
-
* is different than the current header height to only call modalBase
|
|
218
|
-
* when there is a change in header height
|
|
219
|
-
* @private
|
|
220
|
-
*/
|
|
221
|
-
hasHeaderHeightChanged() {
|
|
222
|
-
// note: calling this.headerHeight updates this.headerHeightTracked
|
|
223
|
-
// order of values checked here is required
|
|
224
|
-
const previousRenderedHeight = this.headerHeightTracked;
|
|
225
|
-
const currentRenderedHeight = this.headerHeight;
|
|
226
|
-
return currentRenderedHeight !== previousRenderedHeight;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* On first render, provide a quick means of updating modalBase,
|
|
231
|
-
* if the modalHeader height changes.
|
|
232
|
-
* In rare cases, the height of the header between the
|
|
233
|
-
* normal or full size rendering can change depending on
|
|
234
|
-
* content within the header and the window width
|
|
235
|
-
* @private
|
|
236
|
-
*/
|
|
237
|
-
scheduleHeaderHeightCheck() {
|
|
238
|
-
if (this.initialRender && this.timeoutId === 0) {
|
|
239
|
-
// eslint-disable-next-line @lwc/lwc/no-async-operation
|
|
240
|
-
this.timeoutId = setInterval(() => {
|
|
241
|
-
if (this.headerHeightChecked >= MAX_HEIGHT_CHECKS) {
|
|
242
|
-
clearTimeout(this.timeoutId);
|
|
243
|
-
this.timeoutId = 0;
|
|
244
|
-
this.headerHeightChecked = 0;
|
|
245
|
-
} else {
|
|
246
|
-
this.headerHeightChecked++;
|
|
247
|
-
if (this.hasHeaderHeightChanged()) {
|
|
248
|
-
this.registerWithParent();
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}, SIZE_CHECK_TIMER);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
176
|
/**
|
|
256
177
|
* When modal header is being created, initialize
|
|
257
178
|
* private tracked modal header state
|
|
@@ -263,20 +184,15 @@ export default class LightningModalHeader extends LightningShadowBaseClass {
|
|
|
263
184
|
this.initialRender = true;
|
|
264
185
|
this.initialSlotRender = true;
|
|
265
186
|
this.unregisterCallback = null;
|
|
266
|
-
this.headerHeightTracked = 0;
|
|
267
|
-
this.headerHeightChecked = 0;
|
|
268
|
-
this.timeoutId = 0;
|
|
269
187
|
}
|
|
270
188
|
|
|
271
189
|
connectedCallback() {
|
|
272
|
-
super.connectedCallback();
|
|
273
190
|
this.initState();
|
|
274
191
|
}
|
|
275
192
|
|
|
276
193
|
renderedCallback() {
|
|
277
194
|
if (this.initialRender) {
|
|
278
195
|
this.registerWithParent();
|
|
279
|
-
this.scheduleHeaderHeightCheck();
|
|
280
196
|
this.initialRender = false;
|
|
281
197
|
}
|
|
282
198
|
}
|
|
@@ -12,7 +12,7 @@ import { CurrentPageReference } from 'lightning/navigation';
|
|
|
12
12
|
pageRef;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
The key-value pairs of the PageReference `state` property are serialized to URL query parameters. To create a deep link that describes the page and that a user can bookmark, update the `state` property. See [
|
|
15
|
+
The key-value pairs of the PageReference `state` property are serialized to URL query parameters. To create a deep link that describes the page and that a user can bookmark, update the `state` property. See [Add Query Parameters](https://developer.salesforce.com/docs/platform/lwc/guide/use-navigate-add-params-url).
|
|
16
16
|
|
|
17
17
|
#### NavigationMixin
|
|
18
18
|
|
|
@@ -73,6 +73,6 @@ For a recipe that uses `lightning/navigation`, see the `c-nav-to-*` components i
|
|
|
73
73
|
|
|
74
74
|
#### See Also
|
|
75
75
|
|
|
76
|
-
[Navigate to Pages](docs/
|
|
76
|
+
[Navigate to Pages](https://developer.salesforce.com/docs/platform/lwc/guide/use-navigate)
|
|
77
77
|
|
|
78
|
-
[PageReference Types](docs/
|
|
78
|
+
[PageReference Types](https://developer.salesforce.com/docs/platform/lwc/guide/reference-page-reference-type)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createElement, api } from 'lwc';
|
|
2
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
1
|
+
import { LightningElement, createElement, api } from 'lwc';
|
|
3
2
|
import { instanceName } from 'lightning/overlayUtils';
|
|
4
3
|
import OverlayContainer from 'lightning/overlayContainer';
|
|
5
4
|
|
|
@@ -19,7 +18,7 @@ function container() {
|
|
|
19
18
|
/**
|
|
20
19
|
* Extend this component for open/close apis.
|
|
21
20
|
*/
|
|
22
|
-
export default class LightningOverlay extends
|
|
21
|
+
export default class LightningOverlay extends LightningElement {
|
|
23
22
|
/**
|
|
24
23
|
* Easier to debug when dynamically created.
|
|
25
24
|
*/
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { api, createElement } from 'lwc';
|
|
2
|
-
import
|
|
3
|
-
import { parent, instanceName } from 'lightning/overlayUtils';
|
|
1
|
+
import { LightningElement, api, createElement } from 'lwc';
|
|
2
|
+
import { parent, instanceName, normalizeApis } from 'lightning/overlayUtils';
|
|
4
3
|
import { guid } from 'lightning/utilsPrivate';
|
|
5
4
|
import {
|
|
6
5
|
addOverlayToSharedState,
|
|
@@ -17,7 +16,7 @@ import {
|
|
|
17
16
|
LWC_OVERLAY_ENGINE,
|
|
18
17
|
} from 'lightning/overlayManager';
|
|
19
18
|
|
|
20
|
-
export default class LightningOverlayContainer extends
|
|
19
|
+
export default class LightningOverlayContainer extends LightningElement {
|
|
21
20
|
// overlayContainer has this.stack, which holds the details, and actual
|
|
22
21
|
// DOM elements of local (this file) LWC overlays only, while
|
|
23
22
|
// overlayManager has this.state.stack, which only tracks details of
|
|
@@ -51,8 +50,9 @@ export default class LightningOverlayContainer extends LightningShadowBaseClass
|
|
|
51
50
|
return Promise.reject();
|
|
52
51
|
}
|
|
53
52
|
const element = createElement(overlayInstanceName, { is: scope });
|
|
53
|
+
const normalizedApis = normalizeApis(apis);
|
|
54
54
|
|
|
55
|
-
Object.entries(
|
|
55
|
+
Object.entries(normalizedApis).forEach(([key, value]) => {
|
|
56
56
|
const keyLower = key.toLowerCase();
|
|
57
57
|
const match = keyLower.match(/^on(.+)/);
|
|
58
58
|
if (match) {
|
|
@@ -189,7 +189,6 @@ export default class LightningOverlayContainer extends LightningShadowBaseClass
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
connectedCallback() {
|
|
192
|
-
super.connectedCallback();
|
|
193
192
|
// Notified anytime an overlay is added/removed
|
|
194
193
|
// LWC overlays start on z-index 9000; always even z-index (9000, 9002)
|
|
195
194
|
// Aura overlays start on z-index 9001; always on odd z-index (9001, 9003)
|
|
@@ -29,3 +29,62 @@ export const properties = Symbol('properties');
|
|
|
29
29
|
* This will be used verifying if required attributes have value assigned.
|
|
30
30
|
*/
|
|
31
31
|
export const requiredProperties = Symbol('requiredProperties');
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Only allow CSS Variables
|
|
35
|
+
* @param {string|Object} style Style string or object
|
|
36
|
+
* @returns {string} sanitized style string
|
|
37
|
+
*/
|
|
38
|
+
export function normalizeStyle(style) {
|
|
39
|
+
const props = {};
|
|
40
|
+
if (typeof style === 'string') {
|
|
41
|
+
const regex = /([\w-]*)\s*:\s*([^;]*)/g;
|
|
42
|
+
let match;
|
|
43
|
+
while ((match = regex.exec(style))) {
|
|
44
|
+
if (match[1].startsWith('--')) {
|
|
45
|
+
props[match[1]] = match[2].trim();
|
|
46
|
+
} else {
|
|
47
|
+
// eslint-disable-next-line no-console
|
|
48
|
+
console.warn(
|
|
49
|
+
`Overlay 'style' only supports CSS Variables (invalid '${match[1]}' set)`
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
} else if (style && typeof style === 'object') {
|
|
54
|
+
Object.keys(style).forEach((property) => {
|
|
55
|
+
if (
|
|
56
|
+
property.startsWith('--') &&
|
|
57
|
+
typeof style[property] === 'string'
|
|
58
|
+
) {
|
|
59
|
+
props[property] = style[property];
|
|
60
|
+
} else {
|
|
61
|
+
// eslint-disable-next-line no-console
|
|
62
|
+
console.warn(
|
|
63
|
+
`Overlay 'style' only supports CSS Variables (invalid '${property}' set)`
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return Object.keys(props)
|
|
69
|
+
.map((property) => {
|
|
70
|
+
return `${property}:${props[property]}`;
|
|
71
|
+
})
|
|
72
|
+
.join(';');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Normalize the overlay apis.
|
|
77
|
+
* @param {Object} apis Apis passed to overlay
|
|
78
|
+
* @returns {Object} Normalized object of apis
|
|
79
|
+
*/
|
|
80
|
+
export function normalizeApis(apis) {
|
|
81
|
+
if (apis && typeof apis === 'object') {
|
|
82
|
+
const normalizedApis = { ...apis };
|
|
83
|
+
// Normalize Style
|
|
84
|
+
if (apis.style) {
|
|
85
|
+
normalizedApis.style = normalizeStyle(apis.style);
|
|
86
|
+
}
|
|
87
|
+
return normalizedApis;
|
|
88
|
+
}
|
|
89
|
+
return {};
|
|
90
|
+
}
|
|
@@ -171,7 +171,7 @@ Additionally, the remove button contains customizable elements similar to `light
|
|
|
171
171
|
|
|
172
172
|
See [Styling Hooks Overview](https://www.lightningdesignsystem.com/components/pills/#Styling-Hooks-Overview) for a list of CSS custom properties.
|
|
173
173
|
|
|
174
|
-
For more information, see [Style Components Using Lightning Design System Styling Hooks](docs/
|
|
174
|
+
For more information, see [Style Components Using Lightning Design System Styling Hooks](https://developer.salesforce.com/docs/platform/lwc/guide/create-components-css-custom-properties) in the Lightning Web Components Developer Guide.
|
|
175
175
|
|
|
176
176
|
To understand how we implemented SLDS in `lightning-pill`, see the **Source Code** section.
|
|
177
177
|
|
|
@@ -184,7 +184,7 @@ To create more than one pill, use the `lightning-pill-container` component, whic
|
|
|
184
184
|
Specifying a target to change where the link should open is not supported. The link opens on the same tab or window. To create a URL that navigates to another page in Salesforce, use
|
|
185
185
|
[`lightning-navigation`](bundle/lightning-navigation/documentation).
|
|
186
186
|
|
|
187
|
-
This component has usage differences from its Aura counterpart. See [Base Components: Aura Vs Lightning Web Components](docs/
|
|
187
|
+
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.
|
|
188
188
|
|
|
189
189
|
#### Accessibility
|
|
190
190
|
|
|
@@ -8,39 +8,39 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
@supports (--styling-hooks: '') {
|
|
11
|
-
:host([data-render-mode="shadow"][size
|
|
11
|
+
:host([data-render-mode="shadow"][size='xxx-small']) {
|
|
12
12
|
--slds-c-icon-sizing: var(--sds-g-sizing-3, 0.5rem);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
:host([data-render-mode="shadow"][size
|
|
15
|
+
:host([data-render-mode="shadow"][size='xx-small']) {
|
|
16
16
|
--slds-c-icon-sizing: calc(var(--sds-g-sizing-1, 0.125rem) + var(--sds-g-sizing-4, 0.75rem));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
:host([data-render-mode="shadow"][size
|
|
19
|
+
:host([data-render-mode="shadow"][size='x-small']) {
|
|
20
20
|
--slds-c-icon-sizing: var(--sds-g-sizing-5, 1rem);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:host([data-render-mode="shadow"][size
|
|
23
|
+
:host([data-render-mode="shadow"][size='small']) {
|
|
24
24
|
--slds-c-icon-sizing: var(--sds-g-sizing-7, 1.5rem);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:host([data-render-mode="shadow"][size
|
|
27
|
+
:host([data-render-mode="shadow"][size='large']) {
|
|
28
28
|
--slds-c-icon-sizing: var(--sds-g-sizing-10, 3rem);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:host([data-render-mode="shadow"][variant
|
|
31
|
+
:host([data-render-mode="shadow"][variant='warning']) {
|
|
32
32
|
--slds-c-icon-color-foreground: var(--sds-g-color-warning-base-70, #fe9339);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:host([data-render-mode="shadow"][variant
|
|
35
|
+
:host([data-render-mode="shadow"][variant='success']) {
|
|
36
36
|
--slds-c-icon-color-foreground: var(--sds-g-color-success-base-50, #2e844a);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
:host([data-render-mode="shadow"][variant
|
|
39
|
+
:host([data-render-mode="shadow"][variant='error']) {
|
|
40
40
|
--slds-c-icon-color-foreground: var(--sds-g-color-error-base-50, #ea001e);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
:host([data-render-mode="shadow"][variant
|
|
43
|
+
:host([data-render-mode="shadow"][variant='light']) {
|
|
44
44
|
--slds-c-icon-color-foreground: var(--sds-g-color-neutral-base-70, #aeaeae);
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
--sds-c-icon-sizing-border: var(--slds-c-icon-sizing-border);
|
|
51
51
|
--sds-c-icon-color-border: var(--slds-c-icon-color-border);
|
|
52
52
|
--sds-c-icon-spacing-block-start: var(
|
|
53
|
-
--slds-c-icon-spacing-
|
|
53
|
+
--slds-c-icon-spacing-blockstart,
|
|
54
54
|
var(--slds-c-icon-spacing-block)
|
|
55
55
|
);
|
|
56
|
-
--sds-c-icon-spacing-block-end: var(--slds-c-icon-spacing-
|
|
56
|
+
--sds-c-icon-spacing-block-end: var(--slds-c-icon-spacing-blockend, var(--slds-c-icon-spacing-block));
|
|
57
57
|
--sds-c-icon-spacing-inline-start: var(
|
|
58
|
-
--slds-c-icon-spacing-
|
|
58
|
+
--slds-c-icon-spacing-inlinestart,
|
|
59
59
|
var(--slds-c-icon-spacing-inline)
|
|
60
60
|
);
|
|
61
|
-
--sds-c-icon-spacing-inline-end: var(--slds-c-icon-spacing-
|
|
61
|
+
--sds-c-icon-spacing-inline-end: var(--slds-c-icon-spacing-inlineend, var(--slds-c-icon-spacing-inline));
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* There's a divergence in LBC that we have to support here: LBC splits their
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
*/
|
|
155
155
|
|
|
156
156
|
:host([data-render-mode="shadow"]) .slds-icon_disabled {
|
|
157
|
-
background-color:
|
|
157
|
+
background-color: currentcolor;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
:host([data-render-mode="shadow"]) .slds-input__icon {
|
|
@@ -172,6 +172,11 @@
|
|
|
172
172
|
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
173
173
|
|
|
174
174
|
@supports (--styling-hooks: '') {
|
|
175
|
+
/* re-assign icon color hook for avatar */
|
|
176
|
+
:host([data-render-mode="shadow"]) {
|
|
177
|
+
--sds-c-icon-color-background: var(--slds-c-avatar-color-background);
|
|
178
|
+
}
|
|
179
|
+
|
|
175
180
|
:host([data-render-mode="shadow"]) .slds-assistive-text {
|
|
176
181
|
position: absolute !important;
|
|
177
182
|
margin: -1px !important;
|
|
@@ -242,19 +247,13 @@
|
|
|
242
247
|
:host([data-render-mode="shadow"]) .slds-avatar__initials {
|
|
243
248
|
display: flex;
|
|
244
249
|
justify-content: center;
|
|
245
|
-
-ms-flex-line-pack: center;
|
|
246
250
|
align-content: center;
|
|
247
251
|
align-items: center;
|
|
248
252
|
margin: auto;
|
|
249
253
|
color: var(--slds-c-avatar-text-color);
|
|
250
254
|
height: 100%;
|
|
251
|
-
text-shadow: 0 0 1px rgba(0, 0, 0,
|
|
252
|
-
|
|
253
|
-
background-color: var(
|
|
254
|
-
--slds-c-avatar-color-background,
|
|
255
|
-
var(--sds-c-icon-color-background, var(--sds-g-color-brand-base-50, #0176d3))
|
|
256
|
-
);
|
|
257
|
-
/* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
|
|
255
|
+
text-shadow: 0 0 1px rgba(0, 0, 0, 80%);
|
|
256
|
+
background-color: var(--slds-c-avatar-color-background, var(--sds-g-color-brand-base-50, #0176d3));
|
|
258
257
|
}
|
|
259
258
|
|
|
260
259
|
:host([data-render-mode="shadow"]) .slds-avatar__initials[title] {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import 'lightning/sldsCommon';
|
|
1
|
+
/* @import 'lightning/sldsCommon';
|
|
2
2
|
@import './pill.slds.css';
|
|
3
|
-
@import './avatar.slds.css';
|
|
3
|
+
@import './avatar.slds.css'; */
|
|
@@ -4,8 +4,7 @@ import labelPillRemove from '@salesforce/label/LightningPill.remove';
|
|
|
4
4
|
import labelPillWarning from '@salesforce/label/LightningPill.warning';
|
|
5
5
|
import labelPillDeleteAndNavigate from '@salesforce/label/LightningPill.deleteAndNavigate';
|
|
6
6
|
import formFactor from '@salesforce/client/formFactor';
|
|
7
|
-
import { api, track } from 'lwc';
|
|
8
|
-
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
7
|
+
import { LightningElement, api, track } from 'lwc';
|
|
9
8
|
import {
|
|
10
9
|
keyCodes,
|
|
11
10
|
classListMutation,
|
|
@@ -49,7 +48,7 @@ function modifyAttribute(el, name, value) {
|
|
|
49
48
|
* A pill displays a label that can contain links and can be removed from view.
|
|
50
49
|
* @slot default Placeholder for an image, such as an icon or avatar.
|
|
51
50
|
*/
|
|
52
|
-
export default class LightningPill extends
|
|
51
|
+
export default class LightningPill extends LightningElement {
|
|
53
52
|
/**
|
|
54
53
|
* The URL of the page that the link goes to.
|
|
55
54
|
* @type {string}
|
|
@@ -274,7 +273,6 @@ export default class LightningPill extends LightningShadowBaseClass {
|
|
|
274
273
|
}
|
|
275
274
|
|
|
276
275
|
connectedCallback() {
|
|
277
|
-
super.connectedCallback();
|
|
278
276
|
this._connected = true;
|
|
279
277
|
if (this.isPlainLink || this.isLink) {
|
|
280
278
|
this.updateLinkInfo(this.href);
|