lightning-base-components 1.26.3-rc.0-alpha → 1.27.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 +91 -91
- package/external/flagStub.js +6 -0
- package/external/gateStub.js +6 -0
- package/package.json +89 -1
- package/scopedImports/@salesforce-internal-core.appVersion.js +1 -1
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.modalTitle.js +1 -1
- package/scopedImports/@salesforce-label-LightningPrimitiveColumnSorter.deleteButtonAltText.js +6 -0
- package/src/lightning/accordion/__docs__/accordion.md +2 -2
- package/src/lightning/accordion/accordion-section.slds.css +100 -107
- package/src/lightning/accordion/accordion.lbc.native.css +0 -1
- package/src/lightning/accordion/accordion.lbc.synthetic.css +0 -1
- package/src/lightning/accordion/accordion.slds.css +12 -12
- package/src/lightning/accordionSection/__docs__/accordionSection.md +1 -0
- package/src/lightning/accordionSection/accordion-section.slds.css +100 -107
- package/src/lightning/accordionSection/accordionSection.lbc.native.css +0 -2
- package/src/lightning/accordionSection/accordionSection.lbc.synthetic.css +1 -2
- package/src/lightning/accordionSection/button.slds.css +32 -17
- package/src/lightning/alert/__docs__/alert.md +13 -13
- package/src/lightning/alert/alert.css +1 -1
- package/src/lightning/ariaObserver/__docs__/ariaObserver.md +16 -10
- package/src/lightning/avatar/__docs__/avatar.md +2 -2
- package/src/lightning/avatar/avatar.css +1 -1
- package/src/lightning/avatar/avatar.slds.css +96 -97
- package/src/lightning/badge/__docs__/badge.md +3 -3
- package/src/lightning/badge/badge.css +1 -1
- package/src/lightning/badge/badge.slds.css +71 -56
- package/src/lightning/barcodeScanner/__docs__/barcodeScanner.md +9 -9
- package/src/lightning/baseCombobox/base-combobox.slds.css +171 -170
- package/src/lightning/baseCombobox/baseCombobox.lbc.synthetic.css +0 -1
- package/src/lightning/baseCombobox/dropdown.slds.css +405 -388
- package/src/lightning/baseCombobox/input-text.slds.css +172 -190
- package/src/lightning/baseCombobox/listbox.slds.css +181 -175
- package/src/lightning/baseCombobox/spinner.slds.css +327 -326
- package/src/lightning/baseComboboxItem/listbox.slds.css +181 -175
- package/src/lightning/breadcrumb/__docs__/breadcrumb.md +2 -2
- package/src/lightning/breadcrumb/breadcrumb.slds.css +13 -14
- package/src/lightning/breadcrumbs/__docs__/breadcrumbs.md +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.css +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.lbc.native.css +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +27 -28
- package/src/lightning/button/__docs__/button.md +16 -16
- package/src/lightning/button/__examples__/accesskey/accesskey.css +5 -3
- package/src/lightning/button/__examples__/inverse/inverse.css +2 -2
- package/src/lightning/button/button.slds.css +32 -17
- package/src/lightning/buttonGroup/__docs__/buttonGroup.md +5 -5
- package/src/lightning/buttonGroup/button-group.slds.css +1 -2
- package/src/lightning/buttonGroup/buttonGroup.lbc.native.css +1 -1
- package/src/lightning/buttonIcon/__docs__/buttonIcon.md +20 -20
- package/src/lightning/buttonIcon/button-icon.slds.css +50 -31
- package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +12 -12
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +33 -40
- package/src/lightning/buttonIconStateful/button-icon.slds.css +50 -31
- package/src/lightning/buttonIconStateful/button.slds.css +32 -17
- package/src/lightning/buttonIconStateful/buttonIconStateful.lbc.synthetic.css +5 -1
- package/src/lightning/buttonMenu/__docs__/buttonMenu.md +22 -22
- package/src/lightning/buttonMenu/button-icon.slds.css +50 -31
- package/src/lightning/buttonMenu/button-menu.slds.css +113 -115
- package/src/lightning/buttonMenu/button.slds.css +32 -17
- package/src/lightning/buttonMenu/buttonMenu.css +4 -1
- package/src/lightning/buttonMenu/buttonMenu.lbc.synthetic.css +1 -3
- package/src/lightning/buttonMenu/dropdown.slds.css +405 -388
- package/src/lightning/buttonStateful/__docs__/buttonStateful.md +9 -9
- package/src/lightning/buttonStateful/button-stateful.slds.css +98 -102
- package/src/lightning/buttonStateful/button.slds.css +32 -17
- package/src/lightning/calendar/calendar.slds.css +188 -191
- package/src/lightning/calendar/dropdown.slds.css +405 -388
- package/src/lightning/card/__docs__/card.md +1 -1
- package/src/lightning/card/__examples__/custom/custom.css +2 -2
- package/src/lightning/card/card.slds.css +137 -175
- package/src/lightning/carousel/button-menu.slds.css +113 -115
- package/src/lightning/carousel/button.slds.css +32 -17
- package/src/lightning/carousel/carousel.js +11 -18
- package/src/lightning/carousel/carousel.slds.css +15 -6
- package/src/lightning/carouselImage/carouselImage.lbc.native.css +0 -1
- package/src/lightning/checkboxGroup/__docs__/checkboxGroup.md +7 -7
- package/src/lightning/checkboxGroup/checkbox-group.slds.css +94 -60
- package/src/lightning/checkboxGroup/form-element.slds.css +4 -4
- package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +212 -211
- package/src/lightning/colorPickerCustom/input-text.slds.css +172 -190
- package/src/lightning/colorPickerPanel/color-picker-panel.slds.css +22 -23
- package/src/lightning/colorPickerPanel/colorPickerPanel.lbc.synthetic.css +4 -2
- package/src/lightning/colorPickerPanel/popover.slds.css +127 -128
- package/src/lightning/combobox/__docs__/combobox.md +4 -5
- package/src/lightning/combobox/combobox.css +1 -2
- package/src/lightning/combobox/combobox.lbc.synthetic.css +17 -4
- package/src/lightning/combobox/combobox.slds.css +9 -10
- package/src/lightning/combobox/form-element.slds.css +4 -4
- package/src/lightning/confirm/__docs__/confirm.md +14 -14
- package/src/lightning/context/README.md +13 -13
- package/src/lightning/datatable/README.md +2 -3
- package/src/lightning/datatable/__docs__/datatable.md +82 -77
- package/src/lightning/datatable/__docs__/multi-column-sorting.md +4 -4
- package/src/lightning/datatable/__requirements__/column_widths_requirements.md +68 -68
- package/src/lightning/datatable/__requirements__/requirements.md +1 -1
- package/src/lightning/datatable/button-icon.slds.css +50 -31
- package/src/lightning/datatable/columns.js +2 -2
- package/src/lightning/datatable/datagrid.slds.css +341 -267
- package/src/lightning/datatable/datatable.js +6 -1
- package/src/lightning/datatable/icon.slds.css +6 -2
- package/src/lightning/datatable/input-checkbox.slds.css +130 -124
- package/src/lightning/datatable/primitive-cell-factory.slds.css +0 -1
- package/src/lightning/datatable/rows.js +1 -3
- package/src/lightning/datatable/templates/div/div.css +33 -15
- package/src/lightning/datatable/templates/table/table.css +2 -1
- package/src/lightning/datepicker/form-element.slds.css +4 -4
- package/src/lightning/datepicker/input-text.slds.css +172 -190
- package/src/lightning/datetimepicker/form-element.slds.css +4 -4
- package/src/lightning/datetimepicker/input-text.slds.css +172 -190
- package/src/lightning/dialog/README.md +7 -6
- package/src/lightning/dialog/__requirements__/requirements.md +18 -18
- package/src/lightning/dualListbox/__docs__/dualListbox.md +24 -24
- package/src/lightning/dualListbox/dual-listbox.slds.css +192 -192
- package/src/lightning/dualListbox/dualListbox.lbc.native.css +1 -1
- package/src/lightning/dualListbox/form-element.slds.css +4 -4
- package/src/lightning/dualListbox/listbox.slds.css +181 -175
- package/src/lightning/dynamicIcon/__docs__/dynamicIcon.md +6 -6
- package/src/lightning/dynamicIcon/dynamic-icon-ellie.slds.css +0 -2
- package/src/lightning/dynamicIcon/dynamic-icon-eq.slds.css +0 -2
- package/src/lightning/dynamicIcon/dynamic-icon-score.slds.css +3 -5
- package/src/lightning/dynamicIcon/dynamic-icon-strength.slds.css +109 -108
- package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +97 -99
- package/src/lightning/dynamicIcon/dynamic-icon-waffle.slds.css +0 -2
- package/src/lightning/features/features.js +50 -0
- package/src/lightning/features/features.js-meta.xml +6 -0
- package/src/lightning/features/gates/imports.js +65 -0
- package/src/lightning/features/gates/index.js +16 -0
- package/src/lightning/focusTrap/__requirements__/requirements.md +26 -26
- package/src/lightning/formattedAddress/__docs__/formattedAddress.md +0 -1
- package/src/lightning/formattedAddress/formattedAddress.css +1 -1
- package/src/lightning/formattedAddress/formattedAddress.lbc.native.css +1 -1
- package/src/lightning/formattedDateTime/__docs__/formattedDateTime.md +11 -11
- package/src/lightning/formattedEmail/__docs__/formattedEmail.md +2 -2
- package/src/lightning/formattedEmail/formattedEmail.lbc.native.css +1 -2
- package/src/lightning/formattedPhone/__docs__/formattedPhone.md +2 -2
- package/src/lightning/formattedRichText/__docs__/formattedRichText.md +14 -14
- package/src/lightning/formattedRichText/formattedRichText.lbc.native.css +1 -1
- package/src/lightning/formattedRichTextRenderer/formattedRichTextRenderer.lbc.native.css +1 -1
- package/src/lightning/formattedText/formattedText.lbc.native.css +1 -1
- package/src/lightning/formattedTime/__docs__/formattedTime.md +3 -3
- package/src/lightning/formattedUrl/__docs__/formattedUrl.md +11 -11
- package/src/lightning/groupedCombobox/README.md +33 -34
- package/src/lightning/groupedCombobox/form-element.slds.css +4 -4
- package/src/lightning/groupedCombobox/grouped-combobox.slds.css +10 -10
- package/src/lightning/groupedCombobox/groupedCombobox.lbc.native.css +0 -1
- package/src/lightning/groupedCombobox/input-text.slds.css +172 -190
- package/src/lightning/helptext/__docs__/helptext.md +5 -5
- package/src/lightning/helptext/button-icon.slds.css +50 -31
- package/src/lightning/helptext/form-element.slds.css +4 -4
- package/src/lightning/helptext/help-text.slds.css +3 -4
- package/src/lightning/helptext/helptext.css +1 -1
- package/src/lightning/icon/__docs__/icon.md +10 -10
- package/src/lightning/icon/__examples__/variants/variants.css +3 -3
- package/src/lightning/icon/icon.slds.css +6 -2
- package/src/lightning/input/__docs__/input.md +48 -50
- package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.css +6 -6
- package/src/lightning/input/__requirements__/requirements.md +49 -49
- package/src/lightning/input/form-element.slds.css +4 -4
- package/src/lightning/input/input.lbc.synthetic.css +1 -1
- package/src/lightning/inputAddress/__docs__/inputAddress.md +55 -28
- package/src/lightning/inputAddress/form-element.slds.css +4 -4
- package/src/lightning/inputAddress/input-address.slds.css +6 -6
- package/src/lightning/inputAddress/input-text.slds.css +172 -190
- package/src/lightning/inputAddress/inputAddress.js +2 -2
- package/src/lightning/inputLocation/form-element.slds.css +4 -4
- package/src/lightning/inputLocation/input-location.slds.css +6 -6
- package/src/lightning/inputLocation/input-text.slds.css +172 -190
- package/src/lightning/inputName/__docs__/inputName.md +7 -7
- package/src/lightning/inputName/form-element.slds.css +4 -4
- package/src/lightning/inputName/input-text.slds.css +172 -190
- package/src/lightning/inputUtils/validity.js +37 -18
- package/src/lightning/interactiveDialogBase/button.slds.css +32 -17
- package/src/lightning/interactiveDialogBase/interactive-dialog-base.slds.css +9 -18
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.lbc.native.css +1 -1
- package/src/lightning/interactiveDialogBase/modal-base.slds.css +198 -194
- package/src/lightning/interactiveDialogBase/modal-body.slds.css +33 -34
- package/src/lightning/interactiveDialogBase/modal-footer.slds.css +62 -64
- package/src/lightning/interactiveDialogBase/modal-header.slds.css +47 -48
- package/src/lightning/layout/__docs__/layout.md +13 -13
- package/src/lightning/layout/__examples__/pullToBoundary/pullToBoundary.css +1 -1
- package/src/lightning/layout/__examples__/simple/simple.css +2 -2
- package/src/lightning/layout/__examples__/verticalAlignCenter/verticalAlignCenter.css +3 -3
- package/src/lightning/layout/__examples__/verticalAlignStretch/verticalAlignStretch.css +3 -3
- package/src/lightning/layout/layout.css +1 -1
- package/src/lightning/layout/layout.lbc.native.css +1 -1
- package/src/lightning/layout/layout.lbc.synthetic.css +1 -2
- package/src/lightning/layoutItem/layoutItem.css +1 -1
- package/src/lightning/lookupAddress/form-element.slds.css +4 -4
- package/src/lightning/lookupAddress/listbox.slds.css +181 -175
- package/src/lightning/lookupAddress/lookup-address.slds.css +4 -4
- package/src/lightning/lookupAddress/lookupAddress.css +0 -1
- package/src/lightning/lookupAddress/lookupAddress.lbc.native.css +0 -1
- package/src/lightning/mediaUtils/__docs__/mediaUtils.md +20 -17
- package/src/lightning/menuDivider/menu-divider.slds.css +8 -8
- package/src/lightning/menuItem/__docs__/menuItem.md +12 -7
- package/src/lightning/menuItem/menu-item.slds.css +94 -82
- package/src/lightning/menuItem/menuItem.lbc.synthetic.css +1 -1
- package/src/lightning/menuSubheader/menu-subheader.slds.css +13 -13
- package/src/lightning/modal/__docs__/migration.md +95 -91
- package/src/lightning/modal/__docs__/modal.md +28 -22
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +14 -21
- package/src/lightning/modalBase/modal-base.slds.css +198 -194
- package/src/lightning/modalBase/modalBase.lbc.synthetic.css +2 -2
- package/src/lightning/modalBody/__docs__/modalBody.md +0 -1
- package/src/lightning/modalBody/modal-body.slds.css +33 -34
- package/src/lightning/modalFooter/__docs__/modalFooter.md +1 -2
- package/src/lightning/modalFooter/modal-footer.slds.css +62 -64
- package/src/lightning/modalHeader/__docs__/modalHeader.md +1 -0
- package/src/lightning/modalHeader/modal-header.slds.css +47 -48
- package/src/lightning/modalHeader/modalHeader.css +2 -1
- package/src/lightning/multiColumnSortingModal/multiColumnSortingModal.css +2 -3
- package/src/lightning/navigation/__docs__/navigation.md +2 -3
- package/src/lightning/overlay/__docs__/overlay.md +3 -3
- package/src/lightning/overlay/__examples__/basic/basic.css +2 -2
- package/src/lightning/picklist/README.md +9 -9
- package/src/lightning/pill/__docs__/pill.md +3 -3
- package/src/lightning/pill/avatar.slds.css +96 -97
- package/src/lightning/pill/link.css +1 -1
- package/src/lightning/pill/pill.slds.css +154 -153
- package/src/lightning/pill/plain.css +1 -1
- package/src/lightning/pill/plainLink.css +1 -1
- package/src/lightning/pillContainer/__docs__/pillContainer.md +16 -15
- package/src/lightning/pillContainer/barePillContainer.lbc.native.css +1 -1
- package/src/lightning/pillContainer/button.slds.css +32 -17
- package/src/lightning/pillContainer/listbox.slds.css +181 -175
- package/src/lightning/pillContainer/pill-container.slds.css +34 -34
- package/src/lightning/pillContainer/pill.slds.css +154 -153
- package/src/lightning/pillContainer/standardPillContainer.css +1 -1
- package/src/lightning/popup/README.md +3 -3
- package/src/lightning/popup/__requirements__/requirements.md +25 -25
- package/src/lightning/popup/popover.slds.css +127 -128
- package/src/lightning/positionLibrary/elementProxy.js +14 -8
- package/src/lightning/primitiveBubble/tooltip.slds.css +105 -99
- package/src/lightning/primitiveButton/primitiveButton.js +0 -21
- package/src/lightning/primitiveCellButton/primitiveCellButton.js +6 -1
- package/src/lightning/primitiveCellCheckbox/checkbox.css +0 -1
- package/src/lightning/primitiveCellCheckbox/checkbox.lbc.native.css +1 -1
- package/src/lightning/primitiveCellCheckbox/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveCellCheckbox/input-radio-group.slds.css +6 -5
- package/src/lightning/primitiveCellCheckbox/primitiveCellCheckbox.js +13 -8
- package/src/lightning/primitiveCellCheckbox/radio.lbc.native.css +1 -1
- package/src/lightning/primitiveCellFactory/button-icon.slds.css +50 -31
- package/src/lightning/primitiveCellFactory/primitive-cell-factory.slds.css +0 -1
- package/src/lightning/primitiveCellFactory/primitiveCellFactory.js +7 -11
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +69 -70
- package/src/lightning/primitiveColumnSorter/form-element.slds.css +4 -4
- package/src/lightning/primitiveColumnSorter/input-radio-group.slds.css +6 -5
- package/src/lightning/primitiveColumnSorter/primitive-column-sorter.slds.css +0 -1
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.css +13 -7
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.html +1 -1
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.js +2 -0
- package/src/lightning/primitiveCoordinateItem/__examples__/basic/basic.js +1 -2
- package/src/lightning/primitiveCoordinateItem/button.slds.css +32 -17
- package/src/lightning/primitiveCoordinateItem/coordinate-item.slds.css +2 -1
- package/src/lightning/primitiveCoordinateItem/primitiveCoordinateItem.css +1 -1
- package/src/lightning/primitiveCustomCell/primitiveCustomCell.js +8 -7
- package/src/lightning/primitiveDatatableCell/primitiveDatatableCell.js +4 -2
- package/src/lightning/primitiveDatatableIeditPanel/popover.slds.css +127 -128
- package/src/lightning/primitiveDatatableStatusBar/button.slds.css +32 -17
- package/src/lightning/primitiveDatatableStatusBar/form-footer.slds.css +32 -32
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.css +1 -1
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.js +3 -1
- package/src/lightning/primitiveDatatableTooltip/button-icon.slds.css +50 -31
- package/src/lightning/primitiveDatatableTooltip/button.slds.css +32 -17
- package/src/lightning/primitiveDatatableTooltip/form-footer.slds.css +32 -32
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.css +1 -1
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.js +5 -6
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.lbc.native.css +1 -1
- package/src/lightning/primitiveDatatableTooltipBubble/popover.slds.css +127 -128
- package/src/lightning/primitiveDatatableTooltipBubble/primitive-datatable-tooltip-bubble.slds.css +9 -7
- package/src/lightning/primitiveDatatableTooltipBubble/primitiveDatatableTooltipBubble.css +1 -1
- package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.lbc.native.css +1 -1
- package/src/lightning/primitiveHeaderFactory/form-element.slds.css +4 -4
- package/src/lightning/primitiveHeaderFactory/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveHeaderFactory/primitive-header-factory.slds.css +9 -4
- package/src/lightning/primitiveHeaderFactory/selectableHeader.css +1 -1
- package/src/lightning/primitiveHeaderFactory/selectableHeader.lbc.native.css +1 -1
- package/src/lightning/primitiveHeaderFactory/sortableHeader.lbc.synthetic.css +9 -3
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.lbc.native.css +0 -1
- package/src/lightning/primitiveIcon/icon.slds.css +6 -2
- package/src/lightning/primitiveIcon/primitiveIcon.js +10 -2
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +90 -79
- package/src/lightning/primitiveInputColor/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputColor/input-color.slds.css +27 -28
- package/src/lightning/primitiveInputColor/input-text.slds.css +172 -190
- package/src/lightning/primitiveInputColor/primitiveInputColor.css +1 -1
- package/src/lightning/primitiveInputFile/button.slds.css +32 -17
- package/src/lightning/primitiveInputFile/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputFile/input-file.slds.css +58 -59
- package/src/lightning/primitiveInputSimple/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputSimple/input-text.slds.css +172 -190
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.html +0 -1
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.js +64 -10
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.lbc.synthetic.css +1 -1
- package/src/lightning/primitiveInputToggle/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +134 -118
- package/src/lightning/primitiveResizeHandler/primitive-resize-handler.slds.css +0 -1
- package/src/lightning/primitiveTreegridCellToggle/button-icon.slds.css +50 -31
- package/src/lightning/progressBar/progress-bar.slds.css +38 -39
- package/src/lightning/progressIndicator/__docs__/progressIndicator.md +2 -2
- package/src/lightning/progressIndicator/progress-indicator.slds.css +65 -65
- package/src/lightning/progressIndicator/progressIndicator.css +1 -1
- package/src/lightning/progressIndicator/progressIndicator.lbc.native.css +1 -1
- package/src/lightning/progressRing/progress-ring.slds.css +112 -112
- package/src/lightning/progressStep/progress-step.slds.css +223 -203
- package/src/lightning/prompt/__docs__/prompt.md +14 -14
- package/src/lightning/prompt/form-element.slds.css +4 -4
- package/src/lightning/prompt/input-text.slds.css +172 -190
- package/src/lightning/prompt/prompt.css +1 -1
- package/src/lightning/radioGroup/__docs__/radioGroup.md +6 -6
- package/src/lightning/radioGroup/form-element.slds.css +4 -4
- package/src/lightning/radioGroup/input-radio-group.slds.css +6 -5
- package/src/lightning/relativeDateTime/__docs__/relativeDateTime.md +10 -10
- package/src/lightning/select/__docs__/select.md +5 -5
- package/src/lightning/select/form-element.slds.css +4 -4
- package/src/lightning/select/select.css +1 -1
- package/src/lightning/select/select.html +6 -3
- package/src/lightning/select/select.lbc.native.css +2 -2
- package/src/lightning/select/select.slds.css +117 -115
- package/src/lightning/sldsCommon/sldsCommon.css +0 -1
- package/src/lightning/sldsFormElementUtils/sldsFormElementUtils.css +63 -29
- package/src/lightning/sldsMediaObject/sldsMediaObject.css +1 -3
- package/src/lightning/sldsUtilsAlignment/sldsUtilsAlignment.css +0 -1
- package/src/lightning/sldsUtilsBorders/sldsUtilsBorders.css +8 -5
- package/src/lightning/sldsUtilsBox/sldsUtilsBox.css +0 -1
- package/src/lightning/sldsUtilsFloats/sldsUtilsFloats.css +1 -2
- package/src/lightning/sldsUtilsGrid/sldsUtilsGrid.css +84 -85
- package/src/lightning/sldsUtilsHyphenation/sldsUtilsHyphenation.css +0 -1
- package/src/lightning/sldsUtilsLineClamp/sldsUtilsLineClamp.css +0 -1
- package/src/lightning/sldsUtilsMargin/sldsUtilsMargin.css +0 -1
- package/src/lightning/sldsUtilsPadding/sldsUtilsPadding.css +0 -1
- package/src/lightning/sldsUtilsPosition/sldsUtilsPosition.css +4 -5
- package/src/lightning/sldsUtilsSizing/sldsUtilsSizing.css +0 -1
- package/src/lightning/sldsUtilsThemes/sldsUtilsThemes.css +47 -23
- package/src/lightning/sldsUtilsTruncation/sldsUtilsTruncation.css +0 -1
- package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.css +0 -1
- package/src/lightning/slider/README.md +4 -4
- package/src/lightning/slider/form-element.slds.css +4 -4
- package/src/lightning/slider/slider.slds.css +106 -92
- package/src/lightning/spinner/__examples__/if/if.css +1 -1
- package/src/lightning/spinner/__examples__/sizes/sizes.css +1 -1
- package/src/lightning/spinner/spinner.slds.css +327 -326
- package/src/lightning/stackedTab/stacked-tab.slds.css +8 -7
- package/src/lightning/stackedTab/stackedTab.css +1 -1
- package/src/lightning/stackedTab/stackedTab.lbc.native.css +1 -1
- package/src/lightning/stackedTabset/stacked-tabset.slds.css +8 -8
- package/src/lightning/stackedTabset/stackedTabset.css +1 -1
- package/src/lightning/stackedTabset/stackedTabset.lbc.native.css +1 -1
- package/src/lightning/tab/tab.css +1 -1
- package/src/lightning/tab/tab.slds.css +44 -51
- package/src/lightning/tabBar/tab-bar.slds.css +405 -284
- package/src/lightning/tabset/__docs__/tabset.md +4 -4
- package/src/lightning/tabset/tabset.slds.css +12 -12
- package/src/lightning/textarea/__docs__/textarea.md +7 -7
- package/src/lightning/textarea/form-element.slds.css +4 -4
- package/src/lightning/textarea/textarea.js +22 -0
- package/src/lightning/textarea/textarea.lbc.synthetic.css +0 -1
- package/src/lightning/textarea/textarea.slds.css +124 -99
- package/src/lightning/tile/tile.slds.css +0 -1
- package/src/lightning/timepicker/form-element.slds.css +4 -4
- package/src/lightning/timepicker/timepicker.slds.css +13 -14
- package/src/lightning/toast/__docs__/toast.md +19 -19
- package/src/lightning/toast/button-icon.slds.css +50 -31
- package/src/lightning/toast/icon.slds.css +6 -2
- package/src/lightning/toast/toast.lbc.synthetic.css +12 -6
- package/src/lightning/toast/toast.slds.css +90 -90
- package/src/lightning/toastContainer/__docs__/toastContainer.md +4 -1
- package/src/lightning/toastContainer/toast.slds.css +90 -90
- package/src/lightning/toastContainer/toastContainer.lbc.synthetic.css +6 -6
- package/src/lightning/tree/tree.slds.css +1 -1
- package/src/lightning/treeGrid/__docs__/treeGrid.md +130 -66
- package/src/lightning/treeGrid/treeGrid.js +23 -16
- package/src/lightning/treeItem/calendar.slds.css +188 -191
- package/src/lightning/verticalNavigation/__docs__/verticalNavigation.md +5 -5
- package/src/lightning/verticalNavigation/verticalNavigation.css +1 -1
- package/src/lightning/verticalNavigationItemBadge/badge.slds.css +71 -56
- package/src/lightning/verticalNavigationOverflow/button.slds.css +32 -17
- package/src/lightning/verticalNavigationOverflow/vertical-navigation-section.slds.css +8 -8
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.css +1 -1
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.lbc.synthetic.css +1 -1
- package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +8 -8
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +1 -1
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.lbc.synthetic.css +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* sldsFormElementUtils.css and form-element.css have many similarities
|
|
5
4
|
* however, they are used for very different use cases, and this is why
|
|
@@ -255,7 +254,9 @@
|
|
|
255
254
|
display: block;
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
257
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
258
|
+
/* for rich text via lightning-quill */
|
|
259
|
+
|
|
259
260
|
/* @W-14518344 The following line still exists in SLDS-internal
|
|
260
261
|
but it was removed here because it was causing the input
|
|
261
262
|
component to not display it's bottom border
|
|
@@ -294,8 +295,7 @@
|
|
|
294
295
|
/* Force inner child input to not have padding and margin.
|
|
295
296
|
The parent (ex. lightning-input-field) will provide it instead */
|
|
296
297
|
|
|
297
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline']
|
|
298
|
-
{
|
|
298
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline'] {
|
|
299
299
|
padding: 0;
|
|
300
300
|
margin-block-end: 0;
|
|
301
301
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
:host([data-render-mode="shadow"]) [part='help-text'] {
|
|
2
|
+
:host([data-render-mode="shadow"]) [part='help-text'] {
|
|
4
3
|
/**
|
|
5
4
|
* The extra wrapper div creates a new formatting context which messes up
|
|
6
5
|
* our consistent height and vertical alignment. We don't want this element
|
|
7
6
|
* to inherit any styling so we pass through to the contents. This element
|
|
8
7
|
* is for setting Styling Hooks only.
|
|
9
8
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
display: contents;
|
|
10
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/* TODO: check if this style can be removed once W-14915319 is closed */
|
|
4
4
|
/* Styles required for Multi-Column Sorting Modal in datatable */
|
|
5
|
-
:host(.modal_header)
|
|
5
|
+
:host(.modal_header) .slds-form-element__icon {
|
|
6
6
|
padding-top: unset;
|
|
7
7
|
padding-left: var(--slds-g-sizing-2);
|
|
8
8
|
}
|
|
@@ -42,20 +42,20 @@ is available in your org.
|
|
|
42
42
|
|
|
43
43
|
Adjust icon sizes using the `size` attribute with one of these values.
|
|
44
44
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
45
|
+
- `medium` is the default size, which creates a 32px by 32px icon
|
|
46
|
+
- `small` creates a 24px by 24px icon
|
|
47
|
+
- `x-small` creates a 16px by 16px icon
|
|
48
|
+
- `xx-small` creates a 14px by 14px icon
|
|
49
|
+
- `large` creates a 48px by 48px icon
|
|
50
50
|
|
|
51
51
|
##### Variants
|
|
52
52
|
|
|
53
53
|
Variants are supported only for the utility icons. To change the appearance of a [utility icon](https://lightningdesignsystem.com/icons/#utility), use the `variant` attribute with one of these values.
|
|
54
54
|
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
55
|
+
- `inverse` adds a white fill to a utility icon, useful for dark backgrounds
|
|
56
|
+
- `error` adds a red fill to a utility icon to call out a user- or system-related error
|
|
57
|
+
- `success` adds a green fill to a utility icon to represent a successful operation
|
|
58
|
+
- `warning` adds a yellow fill to a utility icon to advise caution
|
|
59
59
|
|
|
60
60
|
This example uses the `error` variant to add a red fill to the error utility icon.
|
|
61
61
|
|
|
@@ -71,7 +71,7 @@ To apply additional styling, use the SLDS [utility classes](https://www.lightnin
|
|
|
71
71
|
For example, you can set `class="slds-m-vertical_large"` or other [margin](https://lightningdesignsystem.com/utilities/margin/) classes to add
|
|
72
72
|
spacing around the icon.
|
|
73
73
|
|
|
74
|
-
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Icons: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/icons/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
74
|
+
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Icons: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/icons/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
75
75
|
|
|
76
76
|
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.
|
|
77
77
|
|
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
var(--slds-c-icon-sizing, var(--slds-g-sizing-9))
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
:host([data-render-mode="shadow"][icon-name*='action']),:host([data-render-mode="shadow"])
|
|
135
|
+
:host([data-render-mode="shadow"][icon-name*='action']),:host([data-render-mode="shadow"])
|
|
136
|
+
.slds-icon_container_circle {
|
|
136
137
|
--slds-c-icon-spacing-block: var(--slds-g-sizing-3);
|
|
137
138
|
--slds-c-icon-spacing-inline: var(--slds-g-sizing-3);
|
|
138
139
|
--slds-c-icon-radius-border: calc(var(--slds-g-radius-border-circle) / 2);
|
|
@@ -233,5 +234,8 @@
|
|
|
233
234
|
}
|
|
234
235
|
:host([data-render-mode="shadow"]) .slds-icon_container {
|
|
235
236
|
border-radius: var(--slds-c-icon-radius-border, var(--slds-s-icon-radius-border));
|
|
236
|
-
background-color: var(
|
|
237
|
+
background-color: var(
|
|
238
|
+
--slds-c-icon-color-background,
|
|
239
|
+
var(--slds-s-icon-color-background, var(--sds-c-icon-color-background))
|
|
240
|
+
);
|
|
237
241
|
}
|
|
@@ -56,33 +56,33 @@ examples:
|
|
|
56
56
|
A `lightning-input` component creates an HTML `<input>` element. This component
|
|
57
57
|
supports the following input types:
|
|
58
58
|
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
59
|
+
- `checkbox`
|
|
60
|
+
- `checkbox-button`
|
|
61
|
+
- `date`
|
|
62
|
+
- `datetime`/`datetime-local`
|
|
63
|
+
- `time`
|
|
64
|
+
- `email`
|
|
65
|
+
- `file`
|
|
66
|
+
- `password`
|
|
67
|
+
- `search`
|
|
68
|
+
- `tel`
|
|
69
|
+
- `url`
|
|
70
|
+
- `number`
|
|
71
|
+
- `text` (default)
|
|
72
|
+
- `toggle`
|
|
73
73
|
|
|
74
74
|
There is no behavioral difference between the `datetime` and `datetime-local` types.
|
|
75
75
|
|
|
76
76
|
The following HTML input types aren't supported.
|
|
77
77
|
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
78
|
+
- `button`
|
|
79
|
+
- `hidden`
|
|
80
|
+
- `image`
|
|
81
|
+
- `radio`
|
|
82
|
+
- `reset`
|
|
83
|
+
- `submit`
|
|
84
|
+
- `week`
|
|
85
|
+
- `month`
|
|
86
86
|
|
|
87
87
|
Use [`lightning-button`](bundle/lightning-button/documentation)
|
|
88
88
|
instead for input types `button`, `reset`, and
|
|
@@ -122,7 +122,7 @@ with a group of checkboxes, use [`lightning-checkbox-group`](bundle/lightning-ch
|
|
|
122
122
|
|
|
123
123
|
The checkbox implements the [checkbox](https://www.lightningdesignsystem.com/components/checkbox/) blueprint in SLDS.
|
|
124
124
|
|
|
125
|
-
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Checkbox: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/checkbox/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
125
|
+
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Checkbox: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/checkbox/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
126
126
|
|
|
127
127
|
#### Checkbox-button
|
|
128
128
|
|
|
@@ -210,8 +210,6 @@ On mobile devices, this component uses the native datetime picker, which ignores
|
|
|
210
210
|
When the field receives focus, a message appears under the field with the date format based on the user locale and `date-style` value.
|
|
211
211
|
For example, if your user locale is en-US and the `date-style` is `medium`, the message displays "Format: MMM d, yyyy".
|
|
212
212
|
|
|
213
|
-
|
|
214
|
-
|
|
215
213
|
##### Desktop
|
|
216
214
|
|
|
217
215
|
On desktop, `lightning-input` provides its own date/time picker that's styled with
|
|
@@ -259,7 +257,7 @@ You can guide users with a `field-level-help` tooltip, as explained in **Adding
|
|
|
259
257
|
|
|
260
258
|
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.
|
|
261
259
|
|
|
262
|
-
In Lightning Experience, a datepicker calendar that's opened overlays the record edit page or modal, the global header, and record form footer when scrolling.
|
|
260
|
+
In Lightning Experience, a datepicker calendar that's opened overlays the record edit page or modal, the global header, and record form footer when scrolling.
|
|
263
261
|
|
|
264
262
|
**Note**: Set the same time zone on your mobile device and in Salesforce to avoid confusion and potential validation
|
|
265
263
|
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
|
|
@@ -602,7 +600,7 @@ A toggle is similar to a checkbox; it presents a binary choice. However, a toggl
|
|
|
602
600
|
|
|
603
601
|
The toggle implements the [checkbox toggle](https://www.lightningdesignsystem.com/components/checkbox-toggle/) blueprint in SLDS.
|
|
604
602
|
|
|
605
|
-
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Checkbox Toggle: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/checkbox-toggle/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
603
|
+
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Checkbox Toggle: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/checkbox-toggle/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
606
604
|
|
|
607
605
|
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.
|
|
608
606
|
|
|
@@ -717,17 +715,17 @@ This `validity` attribute returns an object with the following read-only `boolea
|
|
|
717
715
|
properties. One property is set to true and the rest are false, depending on attributes
|
|
718
716
|
set on the input field and the user's entry.
|
|
719
717
|
|
|
720
|
-
-
|
|
721
|
-
-
|
|
722
|
-
-
|
|
723
|
-
-
|
|
724
|
-
-
|
|
725
|
-
-
|
|
726
|
-
-
|
|
727
|
-
-
|
|
728
|
-
-
|
|
729
|
-
-
|
|
730
|
-
-
|
|
718
|
+
- `badInput`: Indicates that the value is invalid for any input type.
|
|
719
|
+
- `customError`: Indicates that a custom error has been set. See **Custom Validity Error Messages**.
|
|
720
|
+
- `patternMismatch`: Indicates that the value doesn't match the specified `pattern` attribute for `email`, `password`, `search`, `tel`, `text`, or `url` input types.
|
|
721
|
+
- `rangeOverflow`: Indicates that the value is greater than the specified `max` attribute for `number`, `range`, `date`, `datetime`, or `time` input types.
|
|
722
|
+
- `rangeUnderflow`: Indicates that the value is less than the specified `min` attribute for `number`, `range`, `date`, `datetime`, or `time` input types.
|
|
723
|
+
- `stepMismatch`: Indicates that the value doesn't match the specified `step` attribute for `number` or `range` input types.
|
|
724
|
+
- `tooLong`: Indicates that the value exceeds the specified `maxlength` attribute for `email`, `password`, `search`, `tel`, `text`, or `url` input types.
|
|
725
|
+
- `tooShort`: Indicates that the value is less than the specified `minlength` attribute for `email`, `password`, `search`, `tel`, `text`, or `url` input types.
|
|
726
|
+
- `typeMismatch`: Indicates that the value doesn't match the required syntax for `email` or `url` input types.
|
|
727
|
+
- `valueMissing`: Indicates that an empty value is provided when `required` attribute is set for any input type.
|
|
728
|
+
- `valid`: True if none of the preceding properties are true.
|
|
731
729
|
|
|
732
730
|
#### Error Messages
|
|
733
731
|
|
|
@@ -822,11 +820,11 @@ Some input types can be autofilled, based on your browser's support of the featu
|
|
|
822
820
|
The `autocomplete` attribute passes through its value to the browser.
|
|
823
821
|
These `lightning-input` types support the `autocomplete` attribute:
|
|
824
822
|
|
|
825
|
-
-
|
|
826
|
-
-
|
|
827
|
-
-
|
|
828
|
-
-
|
|
829
|
-
-
|
|
823
|
+
- `email`
|
|
824
|
+
- `search`
|
|
825
|
+
- `tel`
|
|
826
|
+
- `text`
|
|
827
|
+
- `url`
|
|
830
828
|
|
|
831
829
|
The values `on` and `off` are supported, but the behavior depends on the browser. Some browsers might ignore the passed value.
|
|
832
830
|
|
|
@@ -1054,7 +1052,7 @@ This example creates two fields using `lightning-input` in a compound row simila
|
|
|
1054
1052
|
</fieldset>
|
|
1055
1053
|
```
|
|
1056
1054
|
|
|
1057
|
-
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Input: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/input/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
1055
|
+
Component styling hooks use the `--slds-c-*` prefix and change styling for specific elements or properties of a component. Component-specific styling isn’t recommended, because it’s unsupported for SLDS 2, but existing customizations still work with the original SLDS. If you use component styling hooks, limit the components to SLDS themes until SLDS 2 and the Salesforce Cosmos theme become generally available. See [Input: Styling Hooks Overview](https://www.lightningdesignsystem.com/components/input/#Styling-Hooks-Overview) for documentation on component-specific hooks for this component.
|
|
1058
1056
|
|
|
1059
1057
|
#### Usage Considerations
|
|
1060
1058
|
|
|
@@ -1081,8 +1079,8 @@ see [Access Labels](https://developer.salesforce.com/docs/platform/lwc/guide/cre
|
|
|
1081
1079
|
|
|
1082
1080
|
The `lightning-input` component has these limitations when running in the Playground and the Mini-Playground in the Examples tab of this Component Reference.
|
|
1083
1081
|
|
|
1084
|
-
-
|
|
1085
|
-
-
|
|
1082
|
+
- The `timezone` attribute currently doesn't work, so the time is formatted using the runtime system's timezone.
|
|
1083
|
+
- The input types `date`, `time`, and `datetime` are limited to the en-US locale. Other locales are currently not supported in Playground.
|
|
1086
1084
|
|
|
1087
1085
|
#### Accessibility
|
|
1088
1086
|
|
|
@@ -1139,7 +1137,7 @@ The event properties are as follows.
|
|
|
1139
1137
|
|
|
1140
1138
|
**`commit`**
|
|
1141
1139
|
|
|
1142
|
-
The event fired when you press Enter after interacting with the input, or move away from the input so it loses focus. For the input type
|
|
1140
|
+
The event fired when you press Enter after interacting with the input, or move away from the input so it loses focus. For the input type search, the event is only fired when focus leaves the entire component or when the user clicks the "x" button to clear the search. For the input type `number` the event is also fired when you press Up/Down arrow keys to change the number.
|
|
1143
1141
|
|
|
1144
1142
|
The `commit` event doesn’t return any parameters.
|
|
1145
1143
|
|
|
@@ -1157,9 +1155,9 @@ The [LWC Recipes GitHub repository](https://github.com/trailheadapps/lwc-recipes
|
|
|
1157
1155
|
|
|
1158
1156
|
For a recipe that uses `lightning-input`, see the following components in the LWC Recipes repo.
|
|
1159
1157
|
|
|
1160
|
-
-
|
|
1161
|
-
-
|
|
1162
|
-
-
|
|
1158
|
+
- `c-lds-create-record`
|
|
1159
|
+
- `c-misc-modal`
|
|
1160
|
+
- `c-wire-get-picklist-values`
|
|
1163
1161
|
|
|
1164
1162
|
#### See Also
|
|
1165
1163
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
.slds-box {
|
|
2
|
+
padding: 1rem;
|
|
3
|
+
margin: 0;
|
|
4
|
+
border-radius: 0.25rem;
|
|
5
|
+
border: 1px solid lightgrey;
|
|
6
|
+
}
|
|
@@ -1,98 +1,98 @@
|
|
|
1
1
|
### Events
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
- When entering a value and that value is "committed", a 'commit' event is dispatch, the event is not bubbling,
|
|
4
|
+
nor cancelable and has no detail.
|
|
5
|
+
Committing a number is defined as:
|
|
6
|
+
the user presses Enter
|
|
7
|
+
OR blurs away from the input
|
|
8
|
+
OR presses the "x" clear button for type search)
|
|
9
9
|
|
|
10
10
|
### `number``
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
- When not a valid ISO number is passed as a value to the input
|
|
13
|
+
either via an attribute `<lightning-input type="number" value="notANumber"` or
|
|
14
|
+
property `component.value = 'notANumber'`, the value should be set to empty string.
|
|
15
|
+
This also means on type changes the number needs to be re-parsed.
|
|
16
16
|
|
|
17
17
|
> Covered by Jest tests.
|
|
18
18
|
|
|
19
|
-
-
|
|
20
|
-
|
|
19
|
+
- When not a valid ISO number is passed to 'step', the value of the step should be the default one.
|
|
20
|
+
Currently that default is 'undefined'. It would be better if this value would be '1' instead.
|
|
21
21
|
|
|
22
22
|
> Covered by Jest tests.
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
- When entering a number, as the number is typed, it's converted to an ISO number and set as the value.
|
|
25
|
+
The conversion is done by using the user's current locale (not browser and not OS but rather the locale provided
|
|
26
|
+
by the localization service).
|
|
27
27
|
|
|
28
28
|
> Covered by integration tests
|
|
29
29
|
|
|
30
|
-
-
|
|
31
|
-
|
|
30
|
+
- In mobile environments a "numbers" keyboard should be presented when an input of type number is tapped.
|
|
31
|
+
This is done by setting `inputmode="decimal"`
|
|
32
32
|
|
|
33
33
|
> Covered by snapshot test
|
|
34
34
|
|
|
35
|
-
-
|
|
36
|
-
|
|
35
|
+
- When input has the focus and Up/Down key arrows are pressed, the number is increased/decreased as by the given step, if step is not given, the increases are by 1 and the number is rounded off to an integer.
|
|
36
|
+
When no initial number is given a value of 0 is used (as such a clck on '-' would net -1, and and '+" would result in 1).
|
|
37
37
|
|
|
38
38
|
> Covered by integration tests
|
|
39
39
|
|
|
40
|
-
-
|
|
41
|
-
|
|
40
|
+
- When numbers are increased either via Up/Down keys or by pressing the - and + buttons, both 'commit' and 'change'
|
|
41
|
+
events are dispatched.
|
|
42
42
|
|
|
43
|
-
-
|
|
44
|
-
|
|
43
|
+
- Bad input (like 1eee3) is flagged as invalid, when an input is flagged as invalid the input should not be formatted
|
|
44
|
+
when blurred, the original input is kept.
|
|
45
45
|
|
|
46
46
|
> Covered by integration tests
|
|
47
47
|
|
|
48
|
-
-
|
|
49
|
-
|
|
48
|
+
- Entering West-Arabic/Hindu numbers should be supported. Due to the way aura localisation implements this these numbers
|
|
49
|
+
can be mixed with regular numbers and can be entered even if the user locale is not of those types.
|
|
50
50
|
|
|
51
|
-
-
|
|
52
|
-
|
|
51
|
+
- Very long number input should be supported (the number is no longer rounded off). This is subject to precision
|
|
52
|
+
limitation of the Up/Down increase/decrease and various operations (like max/min/step checks which are still bound by the usual js limits)
|
|
53
53
|
|
|
54
54
|
> Covered by integration Tests
|
|
55
55
|
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
- The 'change' event is fired when the component transitions to a badInput state (ie. validity.badInput is true).
|
|
57
|
+
Specifically if a valid value is entered followed by a character that's invalid, it will trigger a 'change' event, and
|
|
58
|
+
the value will be ''.
|
|
59
59
|
|
|
60
60
|
> Covered by integration tests
|
|
61
61
|
|
|
62
|
-
-
|
|
63
|
-
|
|
62
|
+
- When a number starts with a decimal separator (like -.2 or .3), the resulting value should always have a zero
|
|
63
|
+
in front (ie. .value should be -0.2 and 0.3 respectively)
|
|
64
64
|
|
|
65
65
|
> Covered by Jest tests
|
|
66
66
|
|
|
67
|
-
-
|
|
67
|
+
- 'step' attribute is used to determine the significant digits for formatting of a number; when 'step' has a superfluous .0 at the end, the number of significant digits should be 0; exponent format should also be correctly calculated, eg. 1.5e-5 should net 6 significant digits when formatting the number; positive exponents should also be correctly parsed (eg. 1e10 should net 0)
|
|
68
68
|
|
|
69
69
|
> Covered by Jest tests
|
|
70
70
|
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
71
|
+
- only valid characters are allowed to be typed (anything can be pasted in however), valid characters are considered:
|
|
72
|
+
- `0-9`
|
|
73
|
+
- `k` `K` `m` `M` `b` `B` `t` `T` (shortcuts)
|
|
74
|
+
- `e` `E` (exponent)
|
|
75
|
+
- `+` `-` `.` `,`
|
|
76
|
+
- West-Arabic/Hindu numbers
|
|
77
77
|
> Covered by Jest and integration tests
|
|
78
78
|
|
|
79
79
|
#### number 'k' / 'm' / 'b' shortcuts
|
|
80
80
|
|
|
81
|
-
-
|
|
82
|
-
-
|
|
81
|
+
- When an entered valid number in the given locale ends in "k", "K", "m", "M", "b", "B", "t" or "T" (shortcut suffix):
|
|
82
|
+
- as soon as the suffix is entered `value` is `1000 * the entered` number if "k" or "K" is the suffix, or `1000000 * the entered number` if "m" or "M" is the suffix, or `1000000000 * the entered number` if "b" or "B" is the suffix, or `1000000000000 * the entered number` if "t" or "T" is the suffix
|
|
83
83
|
> Covered by Jest and Integration tests
|
|
84
|
-
-
|
|
84
|
+
- when blurring from the input, the value shown on the input should reflect the multiplied number (eg. for `1k` it could be `1,000` for a locale with `,` as a grouping separator)
|
|
85
85
|
> Covered by Jest and Integration tests
|
|
86
|
-
-
|
|
87
|
-
|
|
86
|
+
- when the input is focused, the value that's in the input will be the multiplied number
|
|
87
|
+
in the given locale with the correct decimal separator and no grouping separators (eg. if in a locale with "," as a decimal separator number `0,0001k` was entered, when focusing after a blur the number should show as `0,1`)
|
|
88
88
|
> Covered by Jest and Integration tests (partially, it would be good to have a test that overrides the locale used to test with locales that have different decimal digits)
|
|
89
|
-
-
|
|
89
|
+
- If the input is not a valid number but has a shortcut suffix at the end, when blurring from the input, and then focusing back on it, the original entered string should be preserved (eg. if `100eee10k` is entered, blurring out and focusing should preserve that value)
|
|
90
90
|
> Covered by Jest tests
|
|
91
|
-
-
|
|
91
|
+
- When setting the value programmatically, value that contains a shortcut suffix should not be considered valid
|
|
92
92
|
> Covered by Jest tests
|
|
93
93
|
|
|
94
94
|
### Open questions
|
|
95
95
|
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
- We need to define the behaviour for - and + when max or min are hit, and also whether it should round to the
|
|
97
|
+
closest step. In addition the behaviour for when the number is larger than what js arithmetics can handle (because
|
|
98
|
+
of the rounding errors the increase/decrease does nothing).
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* sldsFormElementUtils.css and form-element.css have many similarities
|
|
5
4
|
* however, they are used for very different use cases, and this is why
|
|
@@ -255,7 +254,9 @@
|
|
|
255
254
|
display: block;
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
257
|
+
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-label),:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control,:host([data-render-mode="shadow"][variant="label-stacked"]) ::part(rich-text-editor-container) {
|
|
258
|
+
/* for rich text via lightning-quill */
|
|
259
|
+
|
|
259
260
|
/* @W-14518344 The following line still exists in SLDS-internal
|
|
260
261
|
but it was removed here because it was causing the input
|
|
261
262
|
component to not display it's bottom border
|
|
@@ -294,8 +295,7 @@
|
|
|
294
295
|
/* Force inner child input to not have padding and margin.
|
|
295
296
|
The parent (ex. lightning-input-field) will provide it instead */
|
|
296
297
|
|
|
297
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline']
|
|
298
|
-
{
|
|
298
|
+
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element,:host([data-render-mode="shadow"][variant='label-inline']) [variant='label-inline'] {
|
|
299
299
|
padding: 0;
|
|
300
300
|
margin-block-end: 0;
|
|
301
301
|
}
|