lightning-base-components 1.21.5-alpha → 1.21.7-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/metadata/raptor.json +46 -4
- package/package.json +125 -3
- package/scopedImports/@salesforce-label-LightningColorPicker.a11yDefaultText.js +1 -0
- package/scopedImports/@salesforce-label-LightningDatatable.multiColumnSortingToast.js +1 -0
- package/scopedImports/@salesforce-label-LightningDatatable.sortingMenuColumns.js +1 -0
- package/scopedImports/@salesforce-label-LightningDatatable.sortingMenuMultiColumnSort.js +1 -0
- package/scopedImports/@salesforce-label-LightningDatatable.sortingMenuRows.js +1 -0
- package/scopedImports/@salesforce-label-LightningDatatable.sortingMenuTooltip.js +1 -0
- package/scopedImports/@salesforce-label-LightningForm.dependentFieldsListHeading.js +1 -1
- package/scopedImports/@salesforce-label-LightningLookup.advancedSearchMobile.js +1 -1
- package/scopedImports/@salesforce-label-LightningLookup.modalTitle.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.addRule.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.applyButton.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.cancelButton.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.clearButton.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.duplicateValueValidation.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.firstRuleHeading.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.modalTitle.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.otherRuleHeading.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.ruleLimit.js +1 -0
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.ruleLimitReached.js +1 -0
- package/scopedImports/@salesforce-label-LightningPrimitiveColumnSorter.ascending.js +1 -0
- package/scopedImports/@salesforce-label-LightningPrimitiveColumnSorter.descending.js +1 -0
- package/scopedImports/@salesforce-label-LightningPrimitiveColumnSorter.dropdownPlaceholder.js +1 -0
- package/scopedImports/@salesforce-label-LightningPrimitiveColumnSorter.missingValueValidation.js +1 -0
- package/scopedImports/@salesforce-label-LightningPrimitiveColumnSorter.moveDownTooltip.js +1 -0
- package/scopedImports/@salesforce-label-LightningPrimitiveColumnSorter.moveUpTooltip.js +1 -0
- package/scopedImports/@salesforce-label-LightningProgressIndicator.pathCurrentStage.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.emptyStateNoResultText.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.messageWhenSearchTermTooShort.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.resultCountDescriptionForMoreThanOneHundredRecords.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.resultCountDescriptionForMultipleRecords.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.resultCountDescriptionForOneRecord.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.resultsLoading.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.searchInputHelp.js +1 -0
- package/src/lightning/accordion/accordion.js +21 -14
- package/src/lightning/accordionSection/button.slds.css +16 -15
- package/src/lightning/alert/alert.js +10 -8
- package/src/lightning/ariaObserver/ariaObserver.js +19 -5
- package/src/lightning/badge/badge.slds.css +1 -1
- package/src/lightning/baseCombobox/base-combobox.slds.css +1 -1
- package/src/lightning/baseCombobox/baseCombobox.html +2 -1
- package/src/lightning/baseCombobox/baseCombobox.js +21 -0
- package/src/lightning/baseCombobox/input-text.slds.css +5 -5
- package/src/lightning/button/button.js +5 -0
- package/src/lightning/button/button.slds.css +16 -15
- package/src/lightning/buttonIcon/__docs__/buttonIcon.md +4 -0
- package/src/lightning/buttonIcon/__examples__/basic/basic.html +17 -1
- package/src/lightning/buttonIcon/button-icon.slds.css +41 -25
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +33 -229
- package/src/lightning/buttonIconStateful/button-icon.slds.css +41 -25
- package/src/lightning/buttonIconStateful/button.slds.css +16 -15
- package/src/lightning/buttonMenu/button-icon.slds.css +41 -25
- package/src/lightning/buttonMenu/button-menu.slds.css +41 -15
- package/src/lightning/buttonMenu/button.slds.css +16 -15
- package/src/lightning/buttonMenu/buttonMenu.css +1 -1
- package/src/lightning/buttonMenu/buttonMenu.html +1 -1
- package/src/lightning/buttonMenu/buttonMenu.js +44 -4
- package/src/lightning/buttonStateful/button-stateful.slds.css +1 -4
- package/src/lightning/buttonStateful/button.slds.css +16 -15
- package/src/lightning/calendar/calendar.html +3 -4
- package/src/lightning/card/card.html +1 -1
- package/src/lightning/colorPickerCustom/colorPickerCustom.html +1 -1
- package/src/lightning/colorPickerCustom/colorPickerCustom.js +0 -9
- package/src/lightning/colorPickerCustom/input-text.slds.css +5 -5
- package/src/lightning/combobox/form-element.slds.css +5 -1
- package/src/lightning/confirm/confirm.js +10 -8
- package/src/lightning/datatable/__docs__/datatable.md +0 -3
- package/src/lightning/datatable/__examples__disabled/customComponentPopupTableWrapper/README.md +17 -0
- package/src/lightning/datatable/__examples__disabled/customComponentPopupTableWrapper/customComponentPopupTableWrapper.html +11 -0
- package/src/lightning/datatable/__examples__disabled/customComponentPopupTableWrapper/customComponentPopupTableWrapper.js +25 -0
- package/src/lightning/datatable/__examples__disabled/customComponentPopupTableWrapper/generateData.js +15 -0
- package/src/lightning/datatable/__examples__disabled/myCustomTypePopupTable/customInput.html +4 -0
- package/src/lightning/datatable/__examples__disabled/myCustomTypePopupTable/myCustomTypePopupTable.js +17 -0
- package/src/lightning/datatable/__examples__disabled/myCustomTypePopupTable/nestedSimpleComponentParent.html +7 -0
- package/src/lightning/datatable/__examples__disabled/simpleComponentPopupNested/simpleComponentPopupNested.html +31 -0
- package/src/lightning/datatable/__examples__disabled/simpleComponentPopupNested/simpleComponentPopupNested.js +36 -0
- package/src/lightning/datatable/columnWidthManager.js +19 -16
- package/src/lightning/datatable/columns.js +90 -42
- package/src/lightning/datatable/datatable.js +571 -148
- package/src/lightning/datatable/errors.js +1 -1
- package/src/lightning/datatable/indexes.js +32 -21
- package/src/lightning/datatable/infiniteLoading.js +7 -6
- package/src/lightning/datatable/inlineEdit.js +52 -64
- package/src/lightning/datatable/keyboard.js +583 -195
- package/src/lightning/datatable/renderManager.js +21 -27
- package/src/lightning/datatable/rowLevelActions.js +5 -14
- package/src/lightning/datatable/rowSelection.js +36 -17
- package/src/lightning/datatable/rowSelectionShared.js +1 -0
- package/src/lightning/datatable/rows.js +224 -132
- package/src/lightning/datatable/rowsInlining.js +473 -0
- package/src/lightning/datatable/sort.js +40 -15
- package/src/lightning/datatable/state.js +17 -4
- package/src/lightning/datatable/templates/div/div.html +807 -91
- package/src/lightning/datatable/templates/div/div.lbc.synthetic.css +29 -3
- package/src/lightning/datatable/templates/table/table.css +29 -1
- package/src/lightning/datatable/templates/table/table.html +786 -87
- package/src/lightning/datatable/tree.js +0 -33
- package/src/lightning/datatable/utils.js +50 -0
- package/src/lightning/datatable/virtualization.js +44 -19
- package/src/lightning/datatable/wrapText.js +7 -10
- package/src/lightning/datepicker/datepicker.html +3 -1
- package/src/lightning/datepicker/datepicker.js +43 -4
- package/src/lightning/datepicker/form-element.slds.css +5 -1
- package/src/lightning/datepicker/input-text.slds.css +5 -5
- package/src/lightning/datetimepicker/datetimepicker.html +7 -1
- package/src/lightning/datetimepicker/datetimepicker.js +30 -2
- package/src/lightning/datetimepicker/form-element.slds.css +5 -1
- package/src/lightning/datetimepicker/input-text.slds.css +5 -5
- package/src/lightning/dualListbox/form-element.slds.css +5 -1
- package/src/lightning/focusTrap/focusTrap.css +7 -0
- package/src/lightning/groupedCombobox/form-element.slds.css +5 -1
- package/src/lightning/groupedCombobox/input-text.slds.css +5 -5
- package/src/lightning/helptext/button-icon.slds.css +41 -25
- package/src/lightning/helptext/form-element.slds.css +5 -1
- package/src/lightning/icon/__docs__/icon.md +0 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/account_score.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/app_form_participant.html +11 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/app_form_product_participant.html +12 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/cost_model.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/labels.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/list_fee.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/list_rate.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/party_profile.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/people_score.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/price_adjustment_schedule.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/price_adjustment_tier.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/rate_adjustment.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/whatsapp.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/templates.js +40 -1
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/array.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/bottom_group_alignment.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/cant_sync.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/center_group_alignment.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/columns.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/fully_synced.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/inner_join.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/join.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/left_join.html +14 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/macros.html +2 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/not_in_sync.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/not_saved.html +9 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/outer_join.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/right_join.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/skill.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/sync_in_progress.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/top_group_alignment.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/account_score.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/app_form_participant.html +11 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/app_form_product_participant.html +12 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/cost_model.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/labels.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/list_fee.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/list_rate.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/party_profile.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/people_score.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/price_adjustment_schedule.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/price_adjustment_tier.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/rate_adjustment.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/whatsapp.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/templates.js +40 -1
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/array.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/bottom_group_alignment.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/cant_sync.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/center_group_alignment.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/columns.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/fully_synced.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/inner_join.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/join.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/left_join.html +14 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/macros.html +2 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/not_in_sync.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/not_saved.html +9 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/outer_join.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/right_join.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/skill.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/sync_in_progress.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/top_group_alignment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/account_score.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/app_form_participant.html +11 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/app_form_product_participant.html +12 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/cost_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/labels.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/list_fee.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/list_rate.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/party_profile.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/people_score.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/price_adjustment_schedule.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/price_adjustment_tier.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/rate_adjustment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/whatsapp.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/templates.js +19 -1
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/account_score.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/app_form_participant.html +11 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/app_form_product_participant.html +12 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/cost_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/labels.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/list_fee.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/list_rate.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/party_profile.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/people_score.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/price_adjustment_schedule.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/price_adjustment_tier.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/rate_adjustment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/whatsapp.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/templates.js +19 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/templates.js +22 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/array.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/bottom_group_alignment.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/cant_sync.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/center_group_alignment.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/columns.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/fully_synced.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/inner_join.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/join.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/left_join.html +14 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/macros.html +2 -2
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/not_in_sync.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/not_saved.html +9 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/outer_join.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/right_join.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/skill.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/sync_in_progress.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/top_group_alignment.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/templates.js +22 -1
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/aggregate.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/array.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/bottom_group_alignment.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/cant_sync.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/center_group_alignment.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/columns.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/fully_synced.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/inner_join.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/join.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/left_join.html +14 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/macros.html +2 -2
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/not_in_sync.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/not_saved.html +9 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/outer_join.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/path_experiment.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/program_cohort.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/program_cohort_member.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/record_consent.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/right_join.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/skill.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/sync_in_progress.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/top_group_alignment.html +7 -0
- package/src/lightning/iconUtils/iconColors.js +1 -1
- package/src/lightning/input/form-element.slds.css +5 -1
- package/src/lightning/input/input.html +16 -2
- package/src/lightning/input/input.js +91 -3
- package/src/lightning/input/input.js-meta.xml +3 -0
- package/src/lightning/inputAddress/addressFormat.js +25 -11
- package/src/lightning/inputAddress/fieldsLayout.js +3 -0
- package/src/lightning/inputAddress/form-element.slds.css +5 -1
- package/src/lightning/inputAddress/input-text.slds.css +5 -5
- package/src/lightning/inputAddress/inputAddress.html +1 -1
- package/src/lightning/inputAddress/inputAddress.js +27 -11
- package/src/lightning/inputLocation/form-element.slds.css +5 -1
- package/src/lightning/inputLocation/input-text.slds.css +5 -5
- package/src/lightning/inputName/form-element.slds.css +5 -1
- package/src/lightning/inputName/input-text.slds.css +5 -5
- package/src/lightning/internationalizationLibrary/address/AddressFormat.js +2 -0
- package/src/lightning/layout/__docs__/layout.md +0 -2
- package/src/lightning/lookupAddress/form-element.slds.css +5 -1
- package/src/lightning/menuItem/menu-item.slds.css +3 -1
- package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +7 -3
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +18 -11
- package/src/lightning/modal/__modalUtils__/modalContainerTestMockData.js +1 -1
- package/src/lightning/modalBase/modalBase.css +4 -0
- package/src/lightning/modalBase/modalBase.html +16 -21
- package/src/lightning/modalBase/modalBase.js +51 -87
- package/src/lightning/modalHeader/modalHeader.html +3 -15
- package/src/lightning/modalHeader/modalHeader.js +14 -61
- package/src/lightning/multiColumnSortingModal/multiColumnSortingModal.css +14 -0
- package/src/lightning/multiColumnSortingModal/multiColumnSortingModal.html +55 -0
- package/src/lightning/multiColumnSortingModal/multiColumnSortingModal.js +430 -0
- package/src/lightning/multiColumnSortingModal/multiColumnSortingModal.js-meta.xml +4 -0
- package/src/lightning/overlayManager/overlayManager.js +16 -0
- package/src/lightning/pill/pill.js +19 -13
- package/src/lightning/pillContainer/button.slds.css +16 -15
- package/src/lightning/pillContainer/pillContainer.js +2 -1
- package/src/lightning/pillContainer/standardPillContainer.html +6 -2
- package/src/lightning/positionLibrary/direction.js +19 -0
- package/src/lightning/primitiveBubble/primitiveBubble.js +33 -11
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.html +2 -2
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.js +8 -0
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.css +34 -0
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.html +60 -0
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.js +107 -0
- package/src/lightning/primitiveHeaderFactory/primitiveHeaderFactory.js +37 -4
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.css +5 -0
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.html +9 -0
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +5 -1
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +3 -3
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.html +1 -1
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +5 -1
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +6 -5
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.html +1 -1
- package/src/lightning/primitiveInputColor/form-element.slds.css +5 -1
- package/src/lightning/primitiveInputColor/input-text.slds.css +5 -5
- package/src/lightning/primitiveInputColor/primitiveInputColor.html +5 -2
- package/src/lightning/primitiveInputColor/primitiveInputColor.js +2 -0
- package/src/lightning/primitiveInputFile/button.slds.css +16 -15
- package/src/lightning/primitiveInputFile/form-element.slds.css +5 -1
- package/src/lightning/primitiveInputFile/primitiveInputFile.html +1 -1
- package/src/lightning/primitiveInputRadio/primitiveInputRadio.html +1 -1
- package/src/lightning/primitiveInputSimple/form-element.slds.css +5 -1
- package/src/lightning/primitiveInputSimple/input-text.slds.css +5 -5
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.html +3 -2
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.js +15 -0
- package/src/lightning/primitiveInputToggle/form-element.slds.css +5 -1
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +16 -14
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.html +1 -1
- package/src/lightning/progressBar/progress-bar.slds.css +1 -1
- package/src/lightning/progressIndicator/path.html +8 -2
- package/src/lightning/progressIndicator/progressIndicator.js +26 -2
- package/src/lightning/progressRing/progress-ring.slds.css +1 -1
- package/src/lightning/progressStep/progressStep.js +2 -1
- package/src/lightning/prompt/prompt.js +11 -9
- package/src/lightning/radioGroup/form-element.slds.css +5 -1
- package/src/lightning/radioGroup/input-radio-group.slds.css +4 -10
- package/src/lightning/select/form-element.slds.css +5 -1
- package/src/lightning/select/select.js +89 -7
- package/src/lightning/tabBar/tab-bar.slds.css +11 -0
- package/src/lightning/tabset/tabset.slds.css +1 -1
- package/src/lightning/textarea/__examples__/various/various.html +18 -1
- package/src/lightning/textarea/form-element.slds.css +5 -1
- package/src/lightning/textarea/textarea.html +1 -0
- package/src/lightning/textarea/textarea.js +25 -0
- package/src/lightning/textarea/textarea.slds.css +2 -2
- package/src/lightning/timepicker/form-element.slds.css +5 -1
- package/src/lightning/timepicker/timepicker.html +4 -1
- package/src/lightning/timepicker/timepicker.js +3 -0
- package/src/lightning/toast/button-icon.slds.css +41 -25
- package/src/lightning/tooltipLibrary/tooltipLibrary.js +4 -15
- package/src/lightning/verticalNavigationItem/vertical-navigation-item.slds.css +1 -1
- package/src/lightning/verticalNavigationItemBadge/badge.slds.css +1 -1
- package/src/lightning/verticalNavigationItemBadge/vertical-navigation-item.slds.css +1 -1
- package/src/lightning/verticalNavigationItemIcon/vertical-navigation-item.slds.css +1 -1
- package/src/lightning/verticalNavigationOverflow/button.slds.css +16 -15
- package/src/lightning/verticalNavigationOverflow/vertical-navigation-item.slds.css +1 -1
- package/scopedImports/@salesforce-label-LightningLookup.messageWhenSearchTermTooShort.js +0 -1
- package/src/lightning/datatable/columns-shared.js +0 -12
|
@@ -194,7 +194,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
194
194
|
);
|
|
195
195
|
--sds-c-button-spacing-inline: var(
|
|
196
196
|
--slds-c-button-neutral-spacing-inline,
|
|
197
|
-
var(--slds-s-button-spacing-inline, var(--slds-g-spacing-4))
|
|
197
|
+
var(--slds-s-button-spacing-inline, var(--slds-g-spacing-4));
|
|
198
198
|
);
|
|
199
199
|
--sds-c-button-spacing-block: var(--slds-c-button-neutral-spacing-block);
|
|
200
200
|
|
|
@@ -255,27 +255,27 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
255
255
|
);
|
|
256
256
|
--sds-c-button-color-background-hover: var(
|
|
257
257
|
--slds-c-button-neutral-color-background-hover,
|
|
258
|
-
var(--slds-g-color-surface-container-
|
|
258
|
+
var(--slds-g-color-surface-container-2)
|
|
259
259
|
);
|
|
260
|
-
--sds-c-button-color-background-focus: var(--slds-c-button-neutral-color-background-focus, var(--slds-g-color-surface-container-
|
|
260
|
+
--sds-c-button-color-background-focus: var(--slds-c-button-neutral-color-background-focus, var(--slds-g-color-surface-container-2));
|
|
261
261
|
--sds-c-button-color-background-active: var(
|
|
262
262
|
--slds-c-button-neutral-color-background-active,
|
|
263
|
-
var(--slds-g-color-surface-container-
|
|
263
|
+
var(--slds-g-color-surface-container-2)
|
|
264
264
|
);
|
|
265
265
|
|
|
266
266
|
/* Border color */
|
|
267
|
-
--sds-c-button-color-border: var(--slds-c-button-neutral-color-border, var(--slds-g-color-border-
|
|
267
|
+
--sds-c-button-color-border: var(--slds-c-button-neutral-color-border, var(--slds-g-color-border-2));
|
|
268
268
|
--sds-c-button-color-border-hover: var(
|
|
269
269
|
--slds-c-button-neutral-color-border-hover,
|
|
270
|
-
var(--slds-g-color-border-
|
|
270
|
+
var(--slds-g-color-border-2)
|
|
271
271
|
);
|
|
272
272
|
--sds-c-button-color-border-focus: var(
|
|
273
273
|
--slds-c-button-neutral-color-border-focus,
|
|
274
|
-
var(--slds-g-color-border-
|
|
274
|
+
var(--slds-g-color-border-2)
|
|
275
275
|
);
|
|
276
276
|
--sds-c-button-color-border-active: var(
|
|
277
277
|
--slds-c-button-neutral-color-border-active,
|
|
278
|
-
var(--slds-g-color-border-
|
|
278
|
+
var(--slds-g-color-border-2)
|
|
279
279
|
);
|
|
280
280
|
|
|
281
281
|
/* Text color */
|
|
@@ -290,11 +290,12 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
290
290
|
/* Shadow */
|
|
291
291
|
--sds-c-button-shadow: var(--slds-c-button-neutral-shadow);
|
|
292
292
|
--sds-c-button-shadow-focus: var(--slds-c-button-neutral-shadow-focus);
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
293
|
+
}
|
|
294
|
+
/* Overriding primitiveBaseButton */
|
|
295
|
+
:host([data-render-mode="shadow"]) [part~='button']:disabled {
|
|
296
|
+
--sds-c-button-color-border-disabled: var(--slds-g-color-border-disabled-1);
|
|
297
|
+
--sds-c-button-text-color-disabled: var(--slds-g-color-on-disabled-1);
|
|
298
|
+
--sds-c-button-color-background-disabled: var(--slds-g-color-disabled-container-1);
|
|
298
299
|
}
|
|
299
300
|
/**
|
|
300
301
|
* A note about fallbacks on the default variant:
|
|
@@ -410,9 +411,9 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
410
411
|
--slds-c-button-neutral-color-border-active: var(--slds-c-button-neutral-color-border, var(--slds-g-color-border-1));
|
|
411
412
|
}
|
|
412
413
|
:host([data-render-mode="shadow"][variant='brand']) [part~='button']:disabled,:host([data-render-mode="shadow"][variant='success']) [part~='button']:disabled,:host([data-render-mode="shadow"][variant='destructive']) [part~='button']:disabled {
|
|
413
|
-
--sds-c-button-color-background: var(--slds-g-color-disabled-container-
|
|
414
|
+
--sds-c-button-color-background: var(--slds-g-color-disabled-container-2);
|
|
414
415
|
--sds-c-button-color-border: var(--slds-g-color-border-disabled-1);
|
|
415
|
-
--sds-c-button-text-color: var(--slds-g-color-on-disabled-
|
|
416
|
+
--sds-c-button-text-color: var(--slds-g-color-on-disabled-2);
|
|
416
417
|
}
|
|
417
418
|
/**
|
|
418
419
|
* 'base' variant is not the default in LBC. It is the default in the light
|
|
@@ -187,7 +187,10 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
190
|
-
|
|
190
|
+
/* @W-14518344 The following line still exists in SLDS-internal
|
|
191
|
+
but it was removed here because it was causing the input
|
|
192
|
+
component to not display it's bottom border
|
|
193
|
+
border-bottom: 0; Remove border when using legacy version of slds-form-element */
|
|
191
194
|
padding-inline-start: 0;
|
|
192
195
|
}
|
|
193
196
|
|
|
@@ -242,6 +245,7 @@
|
|
|
242
245
|
|
|
243
246
|
@media (width >= 48em) {
|
|
244
247
|
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
|
|
248
|
+
float: left;
|
|
245
249
|
max-width: calc(33% - var(--slds-g-sizing-6)); /* Removing icon width for when the help-text icon is present */
|
|
246
250
|
flex-basis: calc(33% - var(--slds-g-sizing-6)); /* Some form element controls are set to display:flex */
|
|
247
251
|
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
<template if:true={_helpMessage}>
|
|
47
|
-
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text">{_helpMessage}</div>
|
|
47
|
+
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text" role="status">{_helpMessage}</div>
|
|
48
48
|
</template>
|
|
49
49
|
</template>
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
</span>
|
|
23
23
|
</div>
|
|
24
24
|
<template if:true={helpMessage}>
|
|
25
|
-
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text">{helpMessage}</div>
|
|
25
|
+
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text" role="status">{helpMessage}</div>
|
|
26
26
|
</template>
|
|
27
27
|
</template>
|
|
@@ -187,7 +187,10 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
190
|
-
|
|
190
|
+
/* @W-14518344 The following line still exists in SLDS-internal
|
|
191
|
+
but it was removed here because it was causing the input
|
|
192
|
+
component to not display it's bottom border
|
|
193
|
+
border-bottom: 0; Remove border when using legacy version of slds-form-element */
|
|
191
194
|
padding-inline-start: 0;
|
|
192
195
|
}
|
|
193
196
|
|
|
@@ -242,6 +245,7 @@
|
|
|
242
245
|
|
|
243
246
|
@media (width >= 48em) {
|
|
244
247
|
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
|
|
248
|
+
float: left;
|
|
245
249
|
max-width: calc(33% - var(--slds-g-sizing-6)); /* Removing icon width for when the help-text icon is present */
|
|
246
250
|
flex-basis: calc(33% - var(--slds-g-sizing-6)); /* Some form element controls are set to display:flex */
|
|
247
251
|
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
);
|
|
255
255
|
--sds-c-inputtext-color-border: var(
|
|
256
256
|
--slds-c-inputtext-color-border,
|
|
257
|
-
var(--slds-g-color-border-
|
|
257
|
+
var(--slds-g-color-border-2)
|
|
258
258
|
);
|
|
259
259
|
--sds-c-inputtext-sizing-border: var(--slds-c-inputtext-sizing-border);
|
|
260
260
|
--sds-c-inputtext-radius-border: var(
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
}
|
|
331
331
|
:host([data-render-mode="shadow"][readonly]) [part="input-container"]:focus-within,:host([data-render-mode="shadow"][readonly]) [part="input-container"]:active {
|
|
332
332
|
--sds-c-inputtext-color-border: var(--slds-g-color-disabled-container-2);
|
|
333
|
-
--sds-c-inputtext-shadow: 0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-accent-
|
|
333
|
+
--sds-c-inputtext-shadow: 0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-accent-2);
|
|
334
334
|
--sds-c-inputtext-color-background: transparent;
|
|
335
335
|
|
|
336
336
|
outline: 0;
|
|
@@ -367,9 +367,9 @@
|
|
|
367
367
|
*/
|
|
368
368
|
:host([data-render-mode="shadow"][disabled]) [part='input-container'],:host([data-render-mode="shadow"][disabled]) [part='input'] {
|
|
369
369
|
cursor: not-allowed;
|
|
370
|
-
--sds-c-inputtext-color-background: var(--slds-g-color-disabled-container-1);
|
|
371
|
-
--sds-c-inputtext-color-border: var(--slds-g-color-border-1);
|
|
372
|
-
--sds-c-inputtext-text-color: var(--slds-g-color-on-
|
|
370
|
+
--sds-c-inputtext-color-background: var(--slds-s-input-color-background-disabled, var(--slds-g-color-disabled-container-1));
|
|
371
|
+
--sds-c-inputtext-color-border: var(--slds-g-color-border-disabled-1);
|
|
372
|
+
--sds-c-inputtext-text-color: var(--slds-g-color-on-disabled-2);
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
375
|
* Label
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div part="input-text">
|
|
2
|
+
<div lwc:ref="container" part="input-text">
|
|
3
3
|
<template if:false={hasExternalLabel}>
|
|
4
4
|
<label class={computedLabelClass} for="input" part="label">
|
|
5
5
|
<template if:true={required}>
|
|
6
6
|
<abbr class="slds-required" title={i18n.required}>*</abbr>
|
|
7
7
|
</template>
|
|
8
8
|
{label}
|
|
9
|
+
<slot name="label-end"></slot>
|
|
9
10
|
</label>
|
|
10
11
|
<lightning-helptext if:true={fieldLevelHelp} content={fieldLevelHelp} alternative-text={helptextAlternativeText}></lightning-helptext>
|
|
11
12
|
</template>
|
|
@@ -66,6 +67,6 @@
|
|
|
66
67
|
</div>
|
|
67
68
|
</div>
|
|
68
69
|
<template if:true={_helpMessage}>
|
|
69
|
-
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text">{_helpMessage}</div>
|
|
70
|
+
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text" role="status">{_helpMessage}</div>
|
|
70
71
|
</template>
|
|
71
72
|
</template>
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
toIsoDecimal,
|
|
23
23
|
} from 'lightning/numberUtils';
|
|
24
24
|
|
|
25
|
+
import { isEmptyString } from 'lightning/inputUtils';
|
|
25
26
|
import {
|
|
26
27
|
reflectAttribute,
|
|
27
28
|
isSafari,
|
|
@@ -198,6 +199,12 @@ export default class LightningPrimitiveInputSimple extends LightningShadowBaseCl
|
|
|
198
199
|
this.updateNumberValue(value);
|
|
199
200
|
}
|
|
200
201
|
}
|
|
202
|
+
|
|
203
|
+
// Note: The input element itself isn't actually updated during this setter. Instead, lightning-input
|
|
204
|
+
// silently updates the input element with the new value from outside this component. No input/change
|
|
205
|
+
// event is fired, so this is the only place we can update the flag and trust lightning-input to do the
|
|
206
|
+
// right thing.
|
|
207
|
+
this.reflectPopulatedState();
|
|
201
208
|
}
|
|
202
209
|
}
|
|
203
210
|
|
|
@@ -325,6 +332,7 @@ export default class LightningPrimitiveInputSimple extends LightningShadowBaseCl
|
|
|
325
332
|
}
|
|
326
333
|
|
|
327
334
|
this.dispatchChangeEvent();
|
|
335
|
+
this.reflectPopulatedState();
|
|
328
336
|
}
|
|
329
337
|
|
|
330
338
|
handleChange(event) {
|
|
@@ -610,6 +618,13 @@ export default class LightningPrimitiveInputSimple extends LightningShadowBaseCl
|
|
|
610
618
|
setInputValue(value) {
|
|
611
619
|
// set value without dispatching an 'input' event
|
|
612
620
|
setDecoratedDragonInputValueWithoutEvent(this.inputElement, value);
|
|
621
|
+
this.reflectPopulatedState();
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
reflectPopulatedState() {
|
|
625
|
+
if (this.refs) {
|
|
626
|
+
reflectAttribute(this.refs.container, 'populated', !isEmptyString(this._value) || !isEmptyString(this._numberRawValue));
|
|
627
|
+
}
|
|
613
628
|
}
|
|
614
629
|
|
|
615
630
|
connectedCallback() {
|
|
@@ -187,7 +187,10 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
190
|
-
|
|
190
|
+
/* @W-14518344 The following line still exists in SLDS-internal
|
|
191
|
+
but it was removed here because it was causing the input
|
|
192
|
+
component to not display it's bottom border
|
|
193
|
+
border-bottom: 0; Remove border when using legacy version of slds-form-element */
|
|
191
194
|
padding-inline-start: 0;
|
|
192
195
|
}
|
|
193
196
|
|
|
@@ -242,6 +245,7 @@
|
|
|
242
245
|
|
|
243
246
|
@media (width >= 48em) {
|
|
244
247
|
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
|
|
248
|
+
float: left;
|
|
245
249
|
max-width: calc(33% - var(--slds-g-sizing-6)); /* Removing icon width for when the help-text icon is present */
|
|
246
250
|
flex-basis: calc(33% - var(--slds-g-sizing-6)); /* Some form element controls are set to display:flex */
|
|
247
251
|
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|
|
@@ -34,7 +34,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
34
34
|
|
|
35
35
|
:host([data-render-mode="shadow"]) .slds-checkbox_faux_container {
|
|
36
36
|
font-size: var(--slds-g-font-scale-neg-4);
|
|
37
|
-
color: var(--slds-g-color-on-surface-
|
|
37
|
+
color: var(--slds-g-color-on-surface-1);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
|
|
@@ -45,9 +45,9 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
45
45
|
height: var(--slds-g-sizing-7);
|
|
46
46
|
border-width: var(--slds-g-sizing-border-1);
|
|
47
47
|
border-style: solid;
|
|
48
|
-
border-color: var(--slds-c-checkbox-toggle-color-border, var(--slds-g-color-
|
|
48
|
+
border-color: var(--slds-c-checkbox-toggle-color-border, var(--slds-g-color-neutral-base-60));
|
|
49
49
|
padding: var(--slds-g-sizing-1);
|
|
50
|
-
background-color: var(--slds-c-checkbox-toggle-color-background, var(--slds-g-color-
|
|
50
|
+
background-color: var(--slds-c-checkbox-toggle-color-background, var(--slds-g-color-neutral-base-60));
|
|
51
51
|
border-radius: var(--slds-c-checkbox-toggle-radius-border, 15rem);
|
|
52
52
|
box-shadow: var(--slds-c-checkbox-toggle-shadow);
|
|
53
53
|
transition: background-color 0.2s cubic-bezier(0.75, 0, 0.08, 1);
|
|
@@ -56,7 +56,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
56
56
|
|
|
57
57
|
:host([data-render-mode="shadow"]) [part='indicator']:hover,:host([data-render-mode="shadow"])
|
|
58
58
|
[part='indicator']:focus {
|
|
59
|
-
--slds-c-checkbox-toggle-color-background: var(--slds-c-checkbox-toggle-color-background-hover, var(--slds-g-color-
|
|
59
|
+
--slds-c-checkbox-toggle-color-background: var(--slds-c-checkbox-toggle-color-background-hover, var(--slds-g-color-neutral-base-50));
|
|
60
60
|
--slds-c-checkbox-toggle-color-border: var(--slds-c-checkbox-toggle-color-border-hover);
|
|
61
61
|
|
|
62
62
|
cursor: pointer;
|
|
@@ -139,23 +139,29 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
139
139
|
width: 0.45rem;
|
|
140
140
|
border-bottom-width: var(--slds-g-sizing-border-2);
|
|
141
141
|
border-bottom-style: solid;
|
|
142
|
-
border-bottom-color: var(--slds-c-checkbox-toggle-mark-color-foreground, var(--slds-g-color-
|
|
142
|
+
border-bottom-color: var(--slds-c-checkbox-toggle-mark-color-foreground, var(--slds-g-color-neutral-base-100));
|
|
143
143
|
border-right-width: var(--slds-g-sizing-border-2);
|
|
144
144
|
border-right-style: solid;
|
|
145
|
-
border-right-color: var(--slds-c-checkbox-toggle-mark-color-foreground, var(--slds-g-color-
|
|
145
|
+
border-right-color: var(--slds-c-checkbox-toggle-mark-color-foreground, var(--slds-g-color-neutral-base-100));
|
|
146
146
|
transform: rotate(45deg);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
:host([data-render-mode="shadow"]) [part='checkbox'][disabled] + .slds-checkbox_faux_container > [part='indicator'] {
|
|
151
|
-
background-color: var(--slds-g-color-
|
|
152
|
-
border-color: var(--slds-g-color-
|
|
151
|
+
background-color: var(--slds-g-color-disabled-container-2, var(--slds-g-color-neutral-base-80));
|
|
152
|
+
border-color: var(--slds-g-color-border-disabled-1, var(--slds-g-color-neutral-base-80));
|
|
153
153
|
pointer-events: none;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
|
|
157
|
+
:host([data-render-mode="shadow"]) [part='checkbox'][disabled] + .slds-checkbox_faux_container > [part='indicator']::after,:host([data-render-mode="shadow"])
|
|
158
|
+
[part='checkbox'][disabled]:checked + .slds-checkbox_faux_container > [part='indicator']::before {
|
|
159
|
+
background-color: var(--slds-g-color-on-disabled-2, var(--slds-g-color-neutral-base-60));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
|
|
157
163
|
:host([data-render-mode="shadow"]) [part='checkbox'][disabled] + .slds-checkbox_faux_container > [part='indicator']::after {
|
|
158
|
-
|
|
164
|
+
--slds-c-checkbox-toggle-mark-color-foreground: var(--slds-g-color-on-disabled-2);
|
|
159
165
|
}
|
|
160
166
|
|
|
161
167
|
|
|
@@ -166,13 +172,9 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
|
|
169
|
-
:host([data-render-mode="shadow"]) [part='checkbox'][disabled]:checked + .slds-checkbox_faux_container > [part='indicator']::before {
|
|
170
|
-
background-color: var(--slds-g-color-disabled-1);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
175
|
:host([data-render-mode="shadow"]) [part='checkbox'][disabled]:checked + .slds-checkbox_faux_container > [part='indicator']::after {
|
|
175
176
|
background-color: transparent;
|
|
177
|
+
--slds-c-checkbox-toggle-mark-color-foreground: var(--slds-g-color-on-disabled-2);
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
</label>
|
|
33
33
|
</div>
|
|
34
34
|
<template if:true={_helpMessage}>
|
|
35
|
-
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text">{_helpMessage}</div>
|
|
35
|
+
<div id="help-message" class="slds-form-element__help" data-help-message part="help-text" role="status">{_helpMessage}</div>
|
|
36
36
|
</template>
|
|
37
37
|
</template>
|
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
<div class="slds-path">
|
|
3
3
|
<div class="slds-grid slds-path__track">
|
|
4
4
|
<div class="slds-grid slds-path__scroller-container">
|
|
5
|
-
<div class="slds-path__scroller"
|
|
5
|
+
<div class="slds-path__scroller">
|
|
6
6
|
<div class="slds-path__scroller_inner">
|
|
7
7
|
<ul class="slds-path__nav"
|
|
8
8
|
role="listbox"
|
|
9
9
|
aria-orientation="horizontal"
|
|
10
10
|
onkeydown={handleStepKeyDown}
|
|
11
|
-
onstepfocus={handleStepFocus}
|
|
11
|
+
onstepfocus={handleStepFocus}
|
|
12
|
+
aria-labelledby="slds-path__stage-name">
|
|
12
13
|
<slot onslotchange={handleSlotChange}></slot>
|
|
13
14
|
</ul>
|
|
14
15
|
</div>
|
|
15
16
|
</div>
|
|
16
17
|
</div>
|
|
18
|
+
<div class="slds-grid slds-path__action">
|
|
19
|
+
<span id="slds-path__stage-name" class="slds-path__stage-name" data-label={currentStepLabel}>
|
|
20
|
+
{currentStepLabel}
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
17
23
|
</div>
|
|
18
24
|
</div>
|
|
19
25
|
</template>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api, track } from 'lwc';
|
|
2
|
-
import { classSet } from 'lightning/utils';
|
|
2
|
+
import { classSet, formatLabel } from 'lightning/utils';
|
|
3
|
+
import pathCurrentStage from '@salesforce/label/LightningProgressIndicator.pathCurrentStage';
|
|
3
4
|
import {
|
|
4
5
|
getStepIndex,
|
|
5
6
|
getCurrentStepIndex,
|
|
@@ -8,6 +9,10 @@ import {
|
|
|
8
9
|
import base from './base.html';
|
|
9
10
|
import path from './path.html';
|
|
10
11
|
|
|
12
|
+
const i18n = {
|
|
13
|
+
currentStageLabel: pathCurrentStage,
|
|
14
|
+
};
|
|
15
|
+
|
|
11
16
|
const STATE_COMPLETED = 'completed';
|
|
12
17
|
const STATE_CURRENT = 'current';
|
|
13
18
|
const STATE_INCOMPLETE = 'incomplete';
|
|
@@ -57,6 +62,17 @@ export default class LightningProgressIndicator extends LightningElement {
|
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
64
|
|
|
65
|
+
/**
|
|
66
|
+
* getter for the i18 constant containing the localized strings
|
|
67
|
+
*/
|
|
68
|
+
get i18n() {
|
|
69
|
+
return i18n;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get currentStepLabel() {
|
|
73
|
+
return formatLabel(this.i18n.currentStageLabel, this._currentStepLabel);
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
/**
|
|
61
77
|
* If present, the current step is in error state and an error icon is displayed on the step indicator.
|
|
62
78
|
* Only the base type can display errors.
|
|
@@ -76,6 +92,7 @@ export default class LightningProgressIndicator extends LightningElement {
|
|
|
76
92
|
|
|
77
93
|
privateRendered = false;
|
|
78
94
|
privateCurrentStep;
|
|
95
|
+
_currentStepLabel = '';
|
|
79
96
|
|
|
80
97
|
connectedCallback() {
|
|
81
98
|
this.addEventListener(
|
|
@@ -86,7 +103,13 @@ export default class LightningProgressIndicator extends LightningElement {
|
|
|
86
103
|
|
|
87
104
|
renderedCallback() {
|
|
88
105
|
this.privateRendered = true;
|
|
89
|
-
|
|
106
|
+
// Avoid a timing issue due to LWC v6's native custom element lifecycle:
|
|
107
|
+
// https://github.com/salesforce/lwc/releases/v6.0.0#new-timing
|
|
108
|
+
// updateSteps needs to occur after progressSteps's 'privateregisterstep' event is fired
|
|
109
|
+
// from its connectedCallback
|
|
110
|
+
Promise.resolve().then(() => {
|
|
111
|
+
this.updateSteps();
|
|
112
|
+
});
|
|
90
113
|
}
|
|
91
114
|
|
|
92
115
|
handleSlotChange() {
|
|
@@ -98,6 +121,7 @@ export default class LightningProgressIndicator extends LightningElement {
|
|
|
98
121
|
const steps = this.getSteps();
|
|
99
122
|
const { privateStepHandlers, type, hasError, currentStep } = this;
|
|
100
123
|
const currentStepIndex = getCurrentStepIndex(steps, currentStep);
|
|
124
|
+
this._currentStepLabel = steps[currentStepIndex]?.label;
|
|
101
125
|
|
|
102
126
|
let activeStepIndex = -1;
|
|
103
127
|
// Set activeStepIndex to activeStep if provided.
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
fill: var(--slds-g-color-on-success-1);
|
|
81
81
|
}
|
|
82
82
|
:host([data-render-mode="shadow"]) .slds-progress-ring_complete .slds-progress-ring__path {
|
|
83
|
-
fill: var(--slds-g-color-success-
|
|
83
|
+
fill: var(--slds-g-color-success-1);
|
|
84
84
|
}
|
|
85
85
|
:host([data-render-mode="shadow"]) .slds-progress-ring_complete .slds-progress-ring__content {
|
|
86
86
|
background: var(--slds-g-color-success-container-2);
|
|
@@ -131,7 +131,8 @@ export default class LightningProgressStep extends LightningElement {
|
|
|
131
131
|
if (this.hasIcon) {
|
|
132
132
|
classes
|
|
133
133
|
.add('slds-progress__marker')
|
|
134
|
-
.add('slds-progress__marker_icon')
|
|
134
|
+
.add('slds-progress__marker_icon')
|
|
135
|
+
.add('slds-icon__container');
|
|
135
136
|
}
|
|
136
137
|
return classes.toString();
|
|
137
138
|
}
|
|
@@ -15,33 +15,35 @@ export default class LightningPrompt extends LightningOverlay {
|
|
|
15
15
|
static [parent] = LightningInteractiveDialogBase;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* or aria-label in "headerless" variant
|
|
18
|
+
* Value to use for header text in "header" variant
|
|
19
|
+
* or aria-label in "headerless" variant.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @default "Prompt" (translated accordingly)
|
|
22
22
|
*/
|
|
23
23
|
@api label = labelDefault;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Text to display in the prompt.
|
|
27
27
|
*/
|
|
28
28
|
@api message = '';
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Default value for input.
|
|
32
32
|
*/
|
|
33
33
|
@api defaultValue = '';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* Variant to use for the prompt. Valid
|
|
37
|
+
* values are "header" and "headerless".
|
|
38
38
|
*/
|
|
39
39
|
@api variant = 'header';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* Theme to use when variant is "header".
|
|
43
|
+
* Valid values are "default", "shade",
|
|
44
|
+
* "inverse", "alt-inverse", "success",
|
|
45
|
+
* "success", "info", "warning", "error",
|
|
46
|
+
* and "offline".
|
|
45
47
|
*/
|
|
46
48
|
@api theme = 'default';
|
|
47
49
|
|
|
@@ -187,7 +187,10 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
190
|
-
|
|
190
|
+
/* @W-14518344 The following line still exists in SLDS-internal
|
|
191
|
+
but it was removed here because it was causing the input
|
|
192
|
+
component to not display it's bottom border
|
|
193
|
+
border-bottom: 0; Remove border when using legacy version of slds-form-element */
|
|
191
194
|
padding-inline-start: 0;
|
|
192
195
|
}
|
|
193
196
|
|
|
@@ -242,6 +245,7 @@
|
|
|
242
245
|
|
|
243
246
|
@media (width >= 48em) {
|
|
244
247
|
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
|
|
248
|
+
float: left;
|
|
245
249
|
max-width: calc(33% - var(--slds-g-sizing-6)); /* Removing icon width for when the help-text icon is present */
|
|
246
250
|
flex-basis: calc(33% - var(--slds-g-sizing-6)); /* Some form element controls are set to display:flex */
|
|
247
251
|
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|
|
@@ -95,16 +95,12 @@
|
|
|
95
95
|
background: var(--slds-g-color-neutral-base-60);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
:host([data-render-mode="shadow"]) .slds-has-error .slds-radio [type='radio']
|
|
99
|
-
.slds-has-error .slds-radio [type='radio'] ~ .slds-radio_faux,:host([data-render-mode="shadow"])
|
|
100
|
-
.slds-has-error .slds-radio [type='radio'] + .slds-radio__label .slds-radio_faux {
|
|
98
|
+
:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio'] + .slds-radio_faux,:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio'] ~ .slds-radio_faux,:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio'] + .slds-radio__label .slds-radio_faux {
|
|
101
99
|
border-color: var(--slds-g-color-error-base-40);
|
|
102
|
-
border-width: var(--slds-g-sizing-2);
|
|
100
|
+
border-width: var(--slds-g-sizing-border-2);
|
|
103
101
|
}
|
|
104
102
|
|
|
105
|
-
:host([data-render-mode="shadow"]) .slds-has-error .slds-radio [type='radio']:checked
|
|
106
|
-
.slds-has-error .slds-radio [type='radio']:checked ~ .slds-radio_faux,:host([data-render-mode="shadow"])
|
|
107
|
-
.slds-has-error .slds-radio [type='radio']:checked + .slds-radio__label .slds-radio_faux {
|
|
103
|
+
:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio']:checked + .slds-radio_faux,:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio']:checked ~ .slds-radio_faux,:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio']:checked + .slds-radio__label .slds-radio_faux {
|
|
108
104
|
/* stylelint-disable */
|
|
109
105
|
--slds-c-radio-color-background: var(
|
|
110
106
|
--slds-c-radio-color-background-checked,
|
|
@@ -114,9 +110,7 @@
|
|
|
114
110
|
background: none;
|
|
115
111
|
}
|
|
116
112
|
|
|
117
|
-
:host([data-render-mode="shadow"]) .slds-has-error .slds-radio [type='radio']:checked
|
|
118
|
-
.slds-has-error .slds-radio [type='radio']:checked ~ .slds-radio_faux::after,:host([data-render-mode="shadow"])
|
|
119
|
-
.slds-has-error .slds-radio [type='radio']:checked + .slds-radio__label .slds-radio_faux::after {
|
|
113
|
+
:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio']:checked + .slds-radio_faux::after,:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio']:checked ~ .slds-radio_faux::after,:host([data-render-mode="shadow"].slds-has-error) .slds-radio [type='radio']:checked + .slds-radio__label .slds-radio_faux::after {
|
|
120
114
|
background: var(--slds-g-color-error-base-40);
|
|
121
115
|
}
|
|
122
116
|
|
|
@@ -187,7 +187,10 @@
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
190
|
-
|
|
190
|
+
/* @W-14518344 The following line still exists in SLDS-internal
|
|
191
|
+
but it was removed here because it was causing the input
|
|
192
|
+
component to not display it's bottom border
|
|
193
|
+
border-bottom: 0; Remove border when using legacy version of slds-form-element */
|
|
191
194
|
padding-inline-start: 0;
|
|
192
195
|
}
|
|
193
196
|
|
|
@@ -242,6 +245,7 @@
|
|
|
242
245
|
|
|
243
246
|
@media (width >= 48em) {
|
|
244
247
|
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
|
|
248
|
+
float: left;
|
|
245
249
|
max-width: calc(33% - var(--slds-g-sizing-6)); /* Removing icon width for when the help-text icon is present */
|
|
246
250
|
flex-basis: calc(33% - var(--slds-g-sizing-6)); /* Some form element controls are set to display:flex */
|
|
247
251
|
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|