lightning-base-components 1.21.6-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 +45 -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/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 +1 -0
- 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 +74 -25
- package/src/lightning/datatable/datatable.js +493 -133
- package/src/lightning/datatable/errors.js +1 -1
- package/src/lightning/datatable/indexes.js +32 -19
- package/src/lightning/datatable/infiniteLoading.js +6 -5
- package/src/lightning/datatable/inlineEdit.js +45 -59
- package/src/lightning/datatable/keyboard.js +571 -160
- package/src/lightning/datatable/renderManager.js +12 -9
- 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 +132 -24
- package/src/lightning/datatable/rowsInlining.js +473 -0
- package/src/lightning/datatable/sort.js +8 -4
- package/src/lightning/datatable/state.js +12 -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/utils.js +39 -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 +31 -1
- package/src/lightning/datepicker/form-element.slds.css +1 -0
- 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 +1 -0
- package/src/lightning/datetimepicker/input-text.slds.css +5 -5
- package/src/lightning/dualListbox/form-element.slds.css +1 -0
- package/src/lightning/focusTrap/focusTrap.css +7 -0
- package/src/lightning/groupedCombobox/form-element.slds.css +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- package/src/lightning/inputLocation/input-text.slds.css +5 -5
- package/src/lightning/inputName/form-element.slds.css +1 -0
- 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 +1 -0
- 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 +46 -65
- 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 +7 -0
- 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 +36 -3
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.css +5 -0
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.html +9 -0
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- package/src/lightning/primitiveInputFile/primitiveInputFile.html +1 -1
- package/src/lightning/primitiveInputRadio/primitiveInputRadio.html +1 -1
- package/src/lightning/primitiveInputSimple/form-element.slds.css +1 -0
- 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 +1 -0
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +16 -14
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.html +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 +1 -0
- package/src/lightning/radioGroup/input-radio-group.slds.css +4 -10
- package/src/lightning/select/form-element.slds.css +1 -0
- 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/form-element.slds.css +1 -0
- package/src/lightning/textarea/textarea.html +1 -0
- package/src/lightning/textarea/textarea.slds.css +2 -2
- package/src/lightning/timepicker/form-element.slds.css +1 -0
- 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/verticalNavigationOverflow/button.slds.css +16 -15
- package/scopedImports/@salesforce-label-LightningLookup.messageWhenSearchTermTooShort.js +0 -1
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
<thead data-rowgroup-header>
|
|
46
46
|
<!-- Column Header Row -->
|
|
47
47
|
<tr class="slds-line-height_reset"
|
|
48
|
+
role="row"
|
|
48
49
|
data-row-key-value="HEADER"
|
|
49
50
|
onprivateresizestart={handleResizeStart}
|
|
50
51
|
onprivateresizeend={handleResizeEnd}>
|
|
@@ -132,20 +133,51 @@
|
|
|
132
133
|
tabindex={cell.tabIndex}
|
|
133
134
|
data-label={cell.dataLabel}
|
|
134
135
|
data-col-key-value={cell.colKeyValue}
|
|
136
|
+
data-cell-value={cell.value}
|
|
135
137
|
key={cell.colKeyValue}>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
138
|
+
<!-- Fast Path -->
|
|
139
|
+
<template if:true={cell.isInlined}>
|
|
140
|
+
<span
|
|
141
|
+
class="slds-checkbox"
|
|
142
|
+
data-inline-type="primitive-cell-checkbox"
|
|
143
|
+
onclick={handleInlinedCheckboxContainerClick}
|
|
144
|
+
onmousedown={handleInlinedCheckboxContainerMouseDown}>
|
|
145
|
+
<input type="checkbox"
|
|
146
|
+
name={cell.checkboxName}
|
|
147
|
+
id={cell.checkboxId}
|
|
148
|
+
checked={row.isSelected}
|
|
149
|
+
disabled={row.isDisabled}
|
|
150
|
+
data-action-triggers="space"
|
|
151
|
+
data-navigation="enable"
|
|
152
|
+
tabindex={cell.internalTabIndex}
|
|
153
|
+
onclick={handleInlinedCheckboxClick}>
|
|
154
|
+
<label
|
|
155
|
+
id={cell.checkboxLabelId}
|
|
156
|
+
class="slds-checkbox__label"
|
|
157
|
+
for={cell.checkboxId}>
|
|
158
|
+
<span class="slds-checkbox_faux"></span>
|
|
159
|
+
<span class="slds-form-element__label slds-assistive-text">
|
|
160
|
+
{cell.checkboxSelectItemAssistiveText}
|
|
161
|
+
</span>
|
|
162
|
+
</label>
|
|
163
|
+
</span>
|
|
164
|
+
</template>
|
|
165
|
+
<!-- Slow Path -->
|
|
166
|
+
<template if:false={cell.isInlined}>
|
|
167
|
+
<lightning-primitive-cell-checkbox
|
|
168
|
+
dt-context-id={_datatableId}
|
|
169
|
+
has-focus={cell.hasFocus}
|
|
170
|
+
data-label={cell.dataLabel}
|
|
171
|
+
key={cell.key}
|
|
172
|
+
row-key-value={row.key}
|
|
173
|
+
col-key-value={cell.colKeyValue}
|
|
174
|
+
row-index={rowIndex}
|
|
175
|
+
type={row.inputType}
|
|
176
|
+
is-selected={row.isSelected}
|
|
177
|
+
is-disabled={row.isDisabled}
|
|
178
|
+
column-header-id={computedCheckboxColumnHeaderId}>
|
|
179
|
+
</lightning-primitive-cell-checkbox>
|
|
180
|
+
</template>
|
|
149
181
|
</td>
|
|
150
182
|
</template>
|
|
151
183
|
<template if:true={cell.isDataTypeScope}>
|
|
@@ -159,45 +191,377 @@
|
|
|
159
191
|
tabindex={cell.tabIndex}
|
|
160
192
|
data-label={cell.dataLabel}
|
|
161
193
|
data-col-key-value={cell.colKeyValue}
|
|
194
|
+
data-cell-value={cell.value}
|
|
162
195
|
key={cell.colKeyValue}
|
|
163
196
|
aria-describedby={cell.describedBy}>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
<!-- Fast Path -->
|
|
198
|
+
<template if:true={cell.isInlined}>
|
|
199
|
+
<template if:true={cell.isCustomBareLayout}>
|
|
200
|
+
<div class={cell.computedCellDivClass} style={cell.computedCellDivStyle}>
|
|
201
|
+
<!-- custom type with bare layout -->
|
|
202
|
+
<lightning-primitive-custom-cell
|
|
203
|
+
types={_privateTypes}
|
|
204
|
+
row-key-value={row.key}
|
|
205
|
+
col-key-value={cell.colKeyValue}
|
|
206
|
+
alignment={cell.alignment}
|
|
207
|
+
column-type={cell.columnType}
|
|
208
|
+
column-sub-type={cell.columnSubType}
|
|
209
|
+
editable={cell.editable}
|
|
210
|
+
internal-tab-index={cell.internalTabIndex}
|
|
211
|
+
keyboard-mode={cell.keyboardMode}
|
|
212
|
+
value={cell.value}
|
|
213
|
+
wrap-text={cell.wrapText}
|
|
214
|
+
type-attribute-0={cell.typeAttribute0}
|
|
215
|
+
type-attribute-1={cell.typeAttribute1}
|
|
216
|
+
type-attribute-2={cell.typeAttribute2}
|
|
217
|
+
type-attribute-3={cell.typeAttribute3}
|
|
218
|
+
type-attribute-4={cell.typeAttribute4}
|
|
219
|
+
type-attribute-5={cell.typeAttribute5}
|
|
220
|
+
type-attribute-6={cell.typeAttribute6}
|
|
221
|
+
type-attribute-7={cell.typeAttribute7}
|
|
222
|
+
type-attribute-8={cell.typeAttribute8}
|
|
223
|
+
type-attribute-9={cell.typeAttribute9}
|
|
224
|
+
type-attribute-10={cell.typeAttribute10}>
|
|
225
|
+
</lightning-primitive-custom-cell>
|
|
226
|
+
</div>
|
|
227
|
+
</template>
|
|
228
|
+
<template if:false={cell.isCustomBareLayout}>
|
|
229
|
+
<span class={cell.computedWrapperClass} data-cell-type={cell.columnType}>
|
|
230
|
+
<div class={cell.computedCellDivClass} style={cell.computedCellDivStyle}>
|
|
231
|
+
<!-- *************** PREFIX ICONS DO NOT ADD ANY TYPE BEFORE THIS *************** -->
|
|
232
|
+
|
|
233
|
+
<!-- tree toggle -->
|
|
234
|
+
<template if:true={cell.hasTreeData}>
|
|
235
|
+
<lightning-primitive-treegrid-cell-toggle
|
|
236
|
+
data-navigation="enable"
|
|
237
|
+
row-key-value={row.key}
|
|
238
|
+
col-key-value={cell.colKeyValue}
|
|
239
|
+
display-value={cell.displayValue}
|
|
240
|
+
value={cell.value}
|
|
241
|
+
has-children={cell.typeAttribute21}
|
|
242
|
+
is-expanded={cell.typeAttribute22}>
|
|
243
|
+
</lightning-primitive-treegrid-cell-toggle>
|
|
244
|
+
</template>
|
|
245
|
+
|
|
246
|
+
<!-- left icon -->
|
|
247
|
+
<template if:true={cell.hasLeftIcon}>
|
|
248
|
+
<lightning-icon
|
|
249
|
+
icon-name={cell.iconName}
|
|
250
|
+
size="x-small"
|
|
251
|
+
class="slds-m-right_x-small"
|
|
252
|
+
alternative-text={cell.iconAlternativeText}
|
|
253
|
+
></lightning-icon>
|
|
254
|
+
{cell.iconLabel}
|
|
255
|
+
</template>
|
|
256
|
+
|
|
257
|
+
<!-- *************** PREFIX ICONS END *************** -->
|
|
258
|
+
|
|
259
|
+
<!-- boolean -->
|
|
260
|
+
<template if:true={cell.isBoolean}>
|
|
261
|
+
<template if:true={cell.isChecked}>
|
|
262
|
+
<lightning-primitive-icon
|
|
263
|
+
size="x-small"
|
|
264
|
+
icon-name="utility:check">
|
|
265
|
+
</lightning-primitive-icon>
|
|
266
|
+
</template>
|
|
267
|
+
<span class="slds-assistive-text">{cell.booleanCellAssistiveText}</span>
|
|
268
|
+
</template>
|
|
269
|
+
|
|
270
|
+
<!-- currency -->
|
|
271
|
+
<template if:true={cell.isCurrency}>
|
|
272
|
+
<span
|
|
273
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
274
|
+
data-inline-type="formatted-number">
|
|
275
|
+
{cell.currencyValue}
|
|
276
|
+
</span>
|
|
277
|
+
</template>
|
|
278
|
+
|
|
279
|
+
<!-- custom type with standard layout -->
|
|
280
|
+
<template if:true={cell.isCustomStandardLayout}>
|
|
281
|
+
<lightning-primitive-custom-cell
|
|
282
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
283
|
+
types={_privateTypes}
|
|
284
|
+
row-key-value={row.key}
|
|
285
|
+
col-key-value={cell.colKeyValue}
|
|
286
|
+
alignment={cell.alignment}
|
|
287
|
+
column-type={cell.columnType}
|
|
288
|
+
column-sub-type={cell.columnSubType}
|
|
289
|
+
editable={cell.editable}
|
|
290
|
+
internal-tab-index={cell.internalTabIndex}
|
|
291
|
+
keyboard-mode={cell.keyboardMode}
|
|
292
|
+
value={cell.value}
|
|
293
|
+
wrap-text={cell.wrapText}
|
|
294
|
+
type-attribute-0={cell.typeAttribute0}
|
|
295
|
+
type-attribute-1={cell.typeAttribute1}
|
|
296
|
+
type-attribute-2={cell.typeAttribute2}
|
|
297
|
+
type-attribute-3={cell.typeAttribute3}
|
|
298
|
+
type-attribute-4={cell.typeAttribute4}
|
|
299
|
+
type-attribute-5={cell.typeAttribute5}
|
|
300
|
+
type-attribute-6={cell.typeAttribute6}
|
|
301
|
+
type-attribute-7={cell.typeAttribute7}
|
|
302
|
+
type-attribute-8={cell.typeAttribute8}
|
|
303
|
+
type-attribute-9={cell.typeAttribute9}
|
|
304
|
+
type-attribute-10={cell.typeAttribute10}>
|
|
305
|
+
</lightning-primitive-custom-cell>
|
|
306
|
+
</template>
|
|
307
|
+
|
|
308
|
+
<!-- date local -->
|
|
309
|
+
<template if:true={cell.isDateLocal}>
|
|
310
|
+
<span
|
|
311
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
312
|
+
data-inline-type="formatted-date-time">
|
|
313
|
+
{cell.dateLocalValue}
|
|
314
|
+
</span>
|
|
315
|
+
</template>
|
|
316
|
+
|
|
317
|
+
<!-- date time -->
|
|
318
|
+
<template if:true={cell.isDateTime}>
|
|
319
|
+
<span
|
|
320
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
321
|
+
data-inline-type="formatted-date-time">
|
|
322
|
+
{cell.dateTimeValue}
|
|
323
|
+
</span>
|
|
324
|
+
</template>
|
|
325
|
+
|
|
326
|
+
<!-- email -->
|
|
327
|
+
<template if:true={cell.isEmail}>
|
|
328
|
+
<template if:true={cell.showEmailLink}>
|
|
329
|
+
<a
|
|
330
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
331
|
+
data-action-triggers="enter"
|
|
332
|
+
data-navigation="enable"
|
|
333
|
+
href={cell.emailLink}
|
|
334
|
+
tabindex={cell.internalTabIndex}>
|
|
335
|
+
<template if:false={cell.emailIconHidden}>
|
|
336
|
+
<lightning-primitive-icon
|
|
337
|
+
icon-name="utility:email"
|
|
338
|
+
size="x-small">
|
|
339
|
+
</lightning-primitive-icon>
|
|
340
|
+
<span class="slds-assistive-text">{cell.emailIconAssistiveText}</span>
|
|
341
|
+
</template> {cell.emailLabel}
|
|
342
|
+
</a>
|
|
343
|
+
</template>
|
|
344
|
+
</template>
|
|
345
|
+
|
|
346
|
+
<!-- location -->
|
|
347
|
+
<template if:true={cell.isLocation}>
|
|
348
|
+
<template if:true={cell.hasLeftIcon}>
|
|
349
|
+
<span class={cell.computedMarginClassWhenLeftIconExists}>{cell.locationValue}</span>
|
|
350
|
+
</template>
|
|
351
|
+
<template if:false={cell.hasLeftIcon}>
|
|
352
|
+
{cell.locationValue}
|
|
353
|
+
</template>
|
|
354
|
+
</template>
|
|
355
|
+
|
|
356
|
+
<!-- number -->
|
|
357
|
+
<template if:true={cell.isNumber}>
|
|
358
|
+
<span
|
|
359
|
+
data-inline-type="formatted-number"
|
|
360
|
+
class={cell.computedMarginClassWhenLeftIconExists}>
|
|
361
|
+
{cell.numberValue}
|
|
362
|
+
</span>
|
|
363
|
+
</template>
|
|
364
|
+
|
|
365
|
+
<!-- percent -->
|
|
366
|
+
<template if:true={cell.isPercent}>
|
|
367
|
+
<span
|
|
368
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
369
|
+
data-inline-type="formatted-number">
|
|
370
|
+
{cell.percentValue}
|
|
371
|
+
</span>
|
|
372
|
+
</template>
|
|
373
|
+
|
|
374
|
+
<!-- phone -->
|
|
375
|
+
<template if:true={cell.isPhone}>
|
|
376
|
+
<template if:true={cell.showPhoneLink}>
|
|
377
|
+
<a
|
|
378
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
379
|
+
data-action-triggers="enter"
|
|
380
|
+
data-inline-type="formatted-phone"
|
|
381
|
+
data-navigation="enable"
|
|
382
|
+
href={cell.phoneLink}
|
|
383
|
+
tabindex={cell.internalTabIndex}>
|
|
384
|
+
{cell.phoneLabel}
|
|
385
|
+
</a>
|
|
386
|
+
</template>
|
|
387
|
+
</template>
|
|
388
|
+
|
|
389
|
+
<!-- lookup (reference) -->
|
|
390
|
+
<template if:true={cell.isLookup}>
|
|
391
|
+
<template if:true={cell.lookupIsNavigable}>
|
|
392
|
+
<a
|
|
393
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
394
|
+
data-action-triggers="enter"
|
|
395
|
+
data-inline-type="formatted-lookup"
|
|
396
|
+
data-navigation="enable"
|
|
397
|
+
href={cell.lookupLink}
|
|
398
|
+
tabindex={cell.internalTabIndex}
|
|
399
|
+
onclick={cell.handleLookupAnchorClick}>
|
|
400
|
+
{cell.lookupValue}
|
|
401
|
+
</a>
|
|
402
|
+
</template>
|
|
403
|
+
<template if:false={cell.lookupIsNavigable}>
|
|
404
|
+
<span
|
|
405
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
406
|
+
data-inline-type="formatted-lookup"
|
|
407
|
+
data-navigation="enable"
|
|
408
|
+
data-action-triggers="enter">
|
|
409
|
+
{cell.lookupValue}
|
|
410
|
+
</span>
|
|
411
|
+
</template>
|
|
412
|
+
</template>
|
|
413
|
+
|
|
414
|
+
<!-- row number -->
|
|
415
|
+
<template if:true={cell.isRowNumber}>
|
|
416
|
+
<template if:true={cell.rowHasError}>
|
|
417
|
+
<lightning-primitive-datatable-tooltip
|
|
418
|
+
class="slds-m-horizontal_xxx-small"
|
|
419
|
+
data-navigation="enable"
|
|
420
|
+
data-action-triggers="enter,space"
|
|
421
|
+
size="xx-small"
|
|
422
|
+
header={cell.typeAttribute0.title}
|
|
423
|
+
content={cell.typeAttribute0.messages}
|
|
424
|
+
variant='error'
|
|
425
|
+
internal-tab-index={cell.internalTabIndex}
|
|
426
|
+
alternative-text={cell.typeAttribute0.alternativeText}>
|
|
427
|
+
</lightning-primitive-datatable-tooltip>
|
|
428
|
+
</template>
|
|
429
|
+
<span class="slds-row-number slds-text-body_small slds-text-color_weak" style={cell.computedRowNumberStyle}></span>
|
|
430
|
+
</template>
|
|
431
|
+
|
|
432
|
+
<!-- text -->
|
|
433
|
+
<template if:true={cell.isText}>
|
|
434
|
+
<template if:false={cell.shouldFormatText}>
|
|
435
|
+
<template if:true={cell.ignoreRTL}>
|
|
436
|
+
<span dir="ltr" class={cell.computedMarginClassWhenLeftIconExists}>{cell.textValue}</span>
|
|
437
|
+
</template>
|
|
438
|
+
<template if:false={cell.ignoreRTL}>
|
|
439
|
+
<template if:true={cell.hasLeftIcon}>
|
|
440
|
+
<span class={cell.computedMarginClassWhenLeftIconExists}>{cell.textValue}</span>
|
|
441
|
+
</template>
|
|
442
|
+
<template if:false={cell.hasLeftIcon}>
|
|
443
|
+
{cell.textValue}
|
|
444
|
+
</template>
|
|
445
|
+
</template>
|
|
446
|
+
</template>
|
|
447
|
+
<template if:true={cell.shouldFormatText}>
|
|
448
|
+
<span class={cell.computedMarginClassWhenLeftIconExists}>
|
|
449
|
+
<template for:each={cell.textParts} for:item="part">
|
|
450
|
+
<template if:true={part.isLink}>
|
|
451
|
+
<a key={part.key} target='_blank' href={part.href} rel="noopener">{part.value}</a>
|
|
452
|
+
</template>
|
|
453
|
+
<template if:true={part.isText}>
|
|
454
|
+
{part.value}
|
|
455
|
+
</template>
|
|
456
|
+
</template>
|
|
457
|
+
</span>
|
|
458
|
+
</template>
|
|
459
|
+
</template>
|
|
460
|
+
|
|
461
|
+
<!-- url -->
|
|
462
|
+
<template if:true={cell.isURL}>
|
|
463
|
+
<template if:true={cell.showUrlLink}>
|
|
464
|
+
<a
|
|
465
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
466
|
+
data-action-triggers="enter"
|
|
467
|
+
data-inline-type="formatted-url"
|
|
468
|
+
data-navigation="enable"
|
|
469
|
+
href={cell.urlLink}
|
|
470
|
+
tabindex={cell.internalTabIndex}
|
|
471
|
+
target={cell.urlTarget}
|
|
472
|
+
title={cell.urlTooltip}
|
|
473
|
+
onclick={cell.handleUrlAnchorClick}>
|
|
474
|
+
{cell.urlLabel}
|
|
475
|
+
</a>
|
|
476
|
+
</template>
|
|
477
|
+
</template>
|
|
478
|
+
|
|
479
|
+
<!-- *************** SUFFIX ICONS ADD ALL TYPES BEFORE THIS *************** -->
|
|
480
|
+
|
|
481
|
+
<template if:true={cell.hasRightIcon}>
|
|
482
|
+
<lightning-icon
|
|
483
|
+
icon-name={cell.iconName}
|
|
484
|
+
class="slds-m-left_x-small slds-m-right_x-small"
|
|
485
|
+
size="x-small"
|
|
486
|
+
alternative-text={cell.iconAlternativeText}></lightning-icon>
|
|
487
|
+
{cell.iconLabel}
|
|
488
|
+
</template>
|
|
489
|
+
|
|
490
|
+
<!-- *************** SUFFIX ICONS END *************** -->
|
|
491
|
+
|
|
492
|
+
</div>
|
|
493
|
+
<template if:true={cell.isEditable}>
|
|
494
|
+
<button class="slds-button slds-button_icon slds-cell-edit__button slds-m-left_x-small"
|
|
495
|
+
data-action-edit="true"
|
|
496
|
+
data-action-triggers="enter,space"
|
|
497
|
+
data-navigation="enable"
|
|
498
|
+
tabindex={cell.internalTabIndex}
|
|
499
|
+
onclick={handleInlinedEditButtonClick}>
|
|
500
|
+
<lightning-primitive-icon
|
|
501
|
+
icon-name="utility:edit"
|
|
502
|
+
size="xx-small"
|
|
503
|
+
svg-class="slds-button__icon slds-button__icon_hint slds-button__icon_lock slds-button__icon_small slds-button__icon_edit">
|
|
504
|
+
</lightning-primitive-icon>
|
|
505
|
+
<span class="slds-assistive-text">
|
|
506
|
+
{cell.editIconAssistiveText}
|
|
507
|
+
</span>
|
|
508
|
+
</button>
|
|
509
|
+
</template>
|
|
510
|
+
<!-- TODO: displayReadOnlyIcon is true only when the cell's "editable" property is false and its "displayReadOnlyIcon"
|
|
511
|
+
property is true. The markup in this template therefore cannot be rendered concurrently with the template above that checks
|
|
512
|
+
the editable property. -->
|
|
513
|
+
<template if:true={cell.shouldDisplayReadOnlyIcon}>
|
|
514
|
+
<!-- TODO: Update the svg-classes once the SLDS team updates their read only icon design to not use classes that have the word 'button'
|
|
515
|
+
in them in cases when the cell is read only and hence no button is actually rendered -->
|
|
516
|
+
<lightning-primitive-icon
|
|
517
|
+
icon-name="utility:lock"
|
|
518
|
+
size="xx-small"
|
|
519
|
+
svg-class="slds-button__icon slds-button__icon_hint slds-button__icon_lock slds-button__icon_small">
|
|
520
|
+
</lightning-primitive-icon>
|
|
521
|
+
</template>
|
|
522
|
+
</span>
|
|
523
|
+
</template>
|
|
524
|
+
</template>
|
|
525
|
+
<!-- Slow Path -->
|
|
526
|
+
<template if:false={cell.isInlined}>
|
|
527
|
+
<lightning-primitive-cell-factory
|
|
528
|
+
types={_privateTypes}
|
|
529
|
+
aria-selected={cell.ariaSelected}
|
|
530
|
+
data-label={cell.dataLabel}
|
|
531
|
+
alignment={cell.alignment}
|
|
532
|
+
has-error={cell.hasError}
|
|
533
|
+
has-focus={cell.hasFocus}
|
|
534
|
+
column-label={cell.dataLabel}
|
|
535
|
+
column-type={cell.columnType}
|
|
536
|
+
column-sub-type={cell.columnSubType}
|
|
537
|
+
wrap-text={cell.wrapText}
|
|
538
|
+
wrap-text-max-lines={cell.wrapTextMaxLines}
|
|
539
|
+
key={cell.columnType}
|
|
540
|
+
row-key-value={row.key}
|
|
541
|
+
col-key-value={cell.colKeyValue}
|
|
542
|
+
value={cell.value}
|
|
543
|
+
display-value={cell.displayValue}
|
|
544
|
+
icon-name={cell.iconName}
|
|
545
|
+
icon-label={cell.iconLabel}
|
|
546
|
+
icon-position={cell.iconPosition}
|
|
547
|
+
icon-alternative-text={cell.iconAlternativeText}
|
|
548
|
+
editable={cell.editable}
|
|
549
|
+
display-read-only-icon={cell.displayReadOnlyIcon}
|
|
550
|
+
type-attribute-0={cell.typeAttribute0}
|
|
551
|
+
type-attribute-1={cell.typeAttribute1}
|
|
552
|
+
type-attribute-2={cell.typeAttribute2}
|
|
553
|
+
type-attribute-3={cell.typeAttribute3}
|
|
554
|
+
type-attribute-4={cell.typeAttribute4}
|
|
555
|
+
type-attribute-5={cell.typeAttribute5}
|
|
556
|
+
type-attribute-6={cell.typeAttribute6}
|
|
557
|
+
type-attribute-7={cell.typeAttribute7}
|
|
558
|
+
type-attribute-8={cell.typeAttribute8}
|
|
559
|
+
type-attribute-9={cell.typeAttribute9}
|
|
560
|
+
type-attribute-10={cell.typeAttribute10}
|
|
561
|
+
type-attribute-21={cell.typeAttribute21}
|
|
562
|
+
type-attribute-22={cell.typeAttribute22}>
|
|
563
|
+
</lightning-primitive-cell-factory>
|
|
564
|
+
</template>
|
|
201
565
|
<template if:true={cell.describedBy}>
|
|
202
566
|
<span id={cell.describedBy} class="slds-hide">Unsaved</span>
|
|
203
567
|
</template>
|
|
@@ -213,45 +577,380 @@
|
|
|
213
577
|
tabindex={cell.tabIndex}
|
|
214
578
|
data-label={cell.dataLabel}
|
|
215
579
|
data-col-key-value={cell.colKeyValue}
|
|
580
|
+
data-cell-value={cell.value}
|
|
216
581
|
aria-describedby={cell.describedBy}
|
|
217
582
|
key={cell.colKeyValue}>
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
583
|
+
<!-- Fast Path -->
|
|
584
|
+
<template if:true={cell.isInlined}>
|
|
585
|
+
<template if:true={cell.isCustomBareLayout}>
|
|
586
|
+
<div class={cell.computedCellDivClass} style={cell.computedCellDivStyle}>
|
|
587
|
+
<!-- custom type with bare layout -->
|
|
588
|
+
<lightning-primitive-custom-cell
|
|
589
|
+
types={_privateTypes}
|
|
590
|
+
row-key-value={row.key}
|
|
591
|
+
col-key-value={cell.colKeyValue}
|
|
592
|
+
alignment={cell.alignment}
|
|
593
|
+
column-type={cell.columnType}
|
|
594
|
+
column-sub-type={cell.columnSubType}
|
|
595
|
+
editable={cell.editable}
|
|
596
|
+
internal-tab-index={cell.internalTabIndex}
|
|
597
|
+
keyboard-mode={cell.keyboardMode}
|
|
598
|
+
value={cell.value}
|
|
599
|
+
wrap-text={cell.wrapText}
|
|
600
|
+
type-attribute-0={cell.typeAttribute0}
|
|
601
|
+
type-attribute-1={cell.typeAttribute1}
|
|
602
|
+
type-attribute-2={cell.typeAttribute2}
|
|
603
|
+
type-attribute-3={cell.typeAttribute3}
|
|
604
|
+
type-attribute-4={cell.typeAttribute4}
|
|
605
|
+
type-attribute-5={cell.typeAttribute5}
|
|
606
|
+
type-attribute-6={cell.typeAttribute6}
|
|
607
|
+
type-attribute-7={cell.typeAttribute7}
|
|
608
|
+
type-attribute-8={cell.typeAttribute8}
|
|
609
|
+
type-attribute-9={cell.typeAttribute9}
|
|
610
|
+
type-attribute-10={cell.typeAttribute10}>
|
|
611
|
+
</lightning-primitive-custom-cell>
|
|
612
|
+
</div>
|
|
613
|
+
</template>
|
|
614
|
+
<template if:false={cell.isCustomBareLayout}>
|
|
615
|
+
<span class={cell.computedWrapperClass} data-cell-type={cell.columnType}>
|
|
616
|
+
<div class={cell.computedCellDivClass} style={cell.computedCellDivStyle}>
|
|
617
|
+
<!-- *************** PREFIX ICONS DO NOT ADD ANY TYPE BEFORE THIS *************** -->
|
|
618
|
+
|
|
619
|
+
<!-- tree toggle -->
|
|
620
|
+
<template if:true={cell.hasTreeData}>
|
|
621
|
+
<lightning-primitive-treegrid-cell-toggle
|
|
622
|
+
data-navigation="enable"
|
|
623
|
+
row-key-value={row.key}
|
|
624
|
+
col-key-value={cell.colKeyValue}
|
|
625
|
+
display-value={cell.displayValue}
|
|
626
|
+
value={cell.value}
|
|
627
|
+
has-children={cell.typeAttribute21}
|
|
628
|
+
is-expanded={cell.typeAttribute22}>
|
|
629
|
+
</lightning-primitive-treegrid-cell-toggle>
|
|
630
|
+
</template>
|
|
631
|
+
|
|
632
|
+
<!-- left icon -->
|
|
633
|
+
<template if:true={cell.hasLeftIcon}>
|
|
634
|
+
<lightning-icon
|
|
635
|
+
icon-name={cell.iconName}
|
|
636
|
+
size="x-small"
|
|
637
|
+
class="slds-m-right_x-small"
|
|
638
|
+
alternative-text={cell.iconAlternativeText}
|
|
639
|
+
></lightning-icon>
|
|
640
|
+
{cell.iconLabel}
|
|
641
|
+
</template>
|
|
642
|
+
|
|
643
|
+
<!-- *************** PREFIX ICONS END *************** -->
|
|
644
|
+
|
|
645
|
+
<!-- boolean -->
|
|
646
|
+
<template if:true={cell.isBoolean}>
|
|
647
|
+
<template if:true={cell.isChecked}>
|
|
648
|
+
<lightning-primitive-icon
|
|
649
|
+
size="x-small"
|
|
650
|
+
icon-name="utility:check">
|
|
651
|
+
</lightning-primitive-icon>
|
|
652
|
+
</template>
|
|
653
|
+
<span class="slds-assistive-text">{cell.booleanCellAssistiveText}</span>
|
|
654
|
+
</template>
|
|
655
|
+
|
|
656
|
+
<!-- currency -->
|
|
657
|
+
<template if:true={cell.isCurrency}>
|
|
658
|
+
<span
|
|
659
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
660
|
+
data-inline-type="formatted-number">
|
|
661
|
+
{cell.currencyValue}
|
|
662
|
+
</span>
|
|
663
|
+
</template>
|
|
664
|
+
|
|
665
|
+
<!-- custom type with standard layout -->
|
|
666
|
+
<template if:true={cell.isCustomStandardLayout}>
|
|
667
|
+
<lightning-primitive-custom-cell
|
|
668
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
669
|
+
types={_privateTypes}
|
|
670
|
+
row-key-value={row.key}
|
|
671
|
+
col-key-value={cell.colKeyValue}
|
|
672
|
+
alignment={cell.alignment}
|
|
673
|
+
column-type={cell.columnType}
|
|
674
|
+
column-sub-type={cell.columnSubType}
|
|
675
|
+
editable={cell.editable}
|
|
676
|
+
internal-tab-index={cell.internalTabIndex}
|
|
677
|
+
keyboard-mode={cell.keyboardMode}
|
|
678
|
+
value={cell.value}
|
|
679
|
+
wrap-text={cell.wrapText}
|
|
680
|
+
type-attribute-0={cell.typeAttribute0}
|
|
681
|
+
type-attribute-1={cell.typeAttribute1}
|
|
682
|
+
type-attribute-2={cell.typeAttribute2}
|
|
683
|
+
type-attribute-3={cell.typeAttribute3}
|
|
684
|
+
type-attribute-4={cell.typeAttribute4}
|
|
685
|
+
type-attribute-5={cell.typeAttribute5}
|
|
686
|
+
type-attribute-6={cell.typeAttribute6}
|
|
687
|
+
type-attribute-7={cell.typeAttribute7}
|
|
688
|
+
type-attribute-8={cell.typeAttribute8}
|
|
689
|
+
type-attribute-9={cell.typeAttribute9}
|
|
690
|
+
type-attribute-10={cell.typeAttribute10}>
|
|
691
|
+
</lightning-primitive-custom-cell>
|
|
692
|
+
</template>
|
|
693
|
+
|
|
694
|
+
<!-- date local -->
|
|
695
|
+
<template if:true={cell.isDateLocal}>
|
|
696
|
+
<span
|
|
697
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
698
|
+
data-inline-type="formatted-date-time">
|
|
699
|
+
{cell.dateLocalValue}
|
|
700
|
+
</span>
|
|
701
|
+
</template>
|
|
702
|
+
|
|
703
|
+
<!-- date time -->
|
|
704
|
+
<template if:true={cell.isDateTime}>
|
|
705
|
+
<span
|
|
706
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
707
|
+
data-inline-type="formatted-date-time">
|
|
708
|
+
{cell.dateTimeValue}
|
|
709
|
+
</span>
|
|
710
|
+
</template>
|
|
711
|
+
|
|
712
|
+
<!-- email -->
|
|
713
|
+
<template if:true={cell.isEmail}>
|
|
714
|
+
<template if:true={cell.showEmailLink}>
|
|
715
|
+
<a
|
|
716
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
717
|
+
data-action-triggers="enter"
|
|
718
|
+
data-navigation="enable"
|
|
719
|
+
href={cell.emailLink}
|
|
720
|
+
tabindex={cell.internalTabIndex}>
|
|
721
|
+
<template if:false={cell.emailIconHidden}>
|
|
722
|
+
<lightning-primitive-icon
|
|
723
|
+
icon-name="utility:email"
|
|
724
|
+
size="x-small">
|
|
725
|
+
</lightning-primitive-icon>
|
|
726
|
+
<span class="slds-assistive-text">{cell.emailIconAssistiveText}</span>
|
|
727
|
+
</template> {cell.emailLabel}
|
|
728
|
+
</a>
|
|
729
|
+
</template>
|
|
730
|
+
</template>
|
|
731
|
+
|
|
732
|
+
<!-- location -->
|
|
733
|
+
<template if:true={cell.isLocation}>
|
|
734
|
+
<template if:true={cell.hasLeftIcon}>
|
|
735
|
+
<span class={cell.computedMarginClassWhenLeftIconExists}>{cell.locationValue}</span>
|
|
736
|
+
</template>
|
|
737
|
+
<template if:false={cell.hasLeftIcon}>
|
|
738
|
+
{cell.locationValue}
|
|
739
|
+
</template>
|
|
740
|
+
</template>
|
|
741
|
+
|
|
742
|
+
<!-- number -->
|
|
743
|
+
<template if:true={cell.isNumber}>
|
|
744
|
+
<span
|
|
745
|
+
data-inline-type="formatted-number"
|
|
746
|
+
class={cell.computedMarginClassWhenLeftIconExists}>
|
|
747
|
+
{cell.numberValue}
|
|
748
|
+
</span>
|
|
749
|
+
</template>
|
|
750
|
+
|
|
751
|
+
<!-- percent -->
|
|
752
|
+
<template if:true={cell.isPercent}>
|
|
753
|
+
<span
|
|
754
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
755
|
+
data-inline-type="formatted-number">
|
|
756
|
+
{cell.percentValue}
|
|
757
|
+
</span>
|
|
758
|
+
</template>
|
|
759
|
+
|
|
760
|
+
<!-- phone -->
|
|
761
|
+
<template if:true={cell.isPhone}>
|
|
762
|
+
<template if:true={cell.showPhoneLink}>
|
|
763
|
+
<a
|
|
764
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
765
|
+
data-action-triggers="enter"
|
|
766
|
+
data-inline-type="formatted-phone"
|
|
767
|
+
data-navigation="enable"
|
|
768
|
+
href={cell.phoneLink}
|
|
769
|
+
tabindex={cell.internalTabIndex}>
|
|
770
|
+
{cell.phoneLabel}
|
|
771
|
+
</a>
|
|
772
|
+
</template>
|
|
773
|
+
</template>
|
|
774
|
+
|
|
775
|
+
<!-- lookup (reference) -->
|
|
776
|
+
<template if:true={cell.isLookup}>
|
|
777
|
+
<template if:true={cell.lookupIsNavigable}>
|
|
778
|
+
<a
|
|
779
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
780
|
+
data-action-triggers="enter"
|
|
781
|
+
data-inline-type="formatted-lookup"
|
|
782
|
+
data-navigation="enable"
|
|
783
|
+
href={cell.lookupLink}
|
|
784
|
+
tabindex={cell.internalTabIndex}
|
|
785
|
+
onclick={cell.handleLookupAnchorClick}>
|
|
786
|
+
{cell.lookupValue}
|
|
787
|
+
</a>
|
|
788
|
+
</template>
|
|
789
|
+
<template if:false={cell.lookupIsNavigable}>
|
|
790
|
+
<span
|
|
791
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
792
|
+
data-inline-type="formatted-lookup"
|
|
793
|
+
data-navigation="enable"
|
|
794
|
+
data-action-triggers="enter">
|
|
795
|
+
{cell.lookupValue}
|
|
796
|
+
</span>
|
|
797
|
+
</template>
|
|
798
|
+
</template>
|
|
799
|
+
|
|
800
|
+
<!-- row number -->
|
|
801
|
+
<template if:true={cell.isRowNumber}>
|
|
802
|
+
<template if:true={cell.rowHasError}>
|
|
803
|
+
<lightning-primitive-datatable-tooltip
|
|
804
|
+
class="slds-m-horizontal_xxx-small"
|
|
805
|
+
data-navigation="enable"
|
|
806
|
+
data-action-triggers="enter,space"
|
|
807
|
+
size="xx-small"
|
|
808
|
+
header={cell.typeAttribute0.title}
|
|
809
|
+
content={cell.typeAttribute0.messages}
|
|
810
|
+
variant='error'
|
|
811
|
+
internal-tab-index={cell.internalTabIndex}
|
|
812
|
+
alternative-text={cell.typeAttribute0.alternativeText}>
|
|
813
|
+
</lightning-primitive-datatable-tooltip>
|
|
814
|
+
</template>
|
|
815
|
+
<span
|
|
816
|
+
class="slds-row-number slds-text-body_small slds-text-color_weak"
|
|
817
|
+
style={cell.computedRowNumberStyle}>
|
|
818
|
+
</span>
|
|
819
|
+
</template>
|
|
820
|
+
|
|
821
|
+
<!-- text -->
|
|
822
|
+
<template if:true={cell.isText}>
|
|
823
|
+
<template if:false={cell.shouldFormatText}>
|
|
824
|
+
<template if:true={cell.ignoreRTL}>
|
|
825
|
+
<span dir="ltr" class={cell.computedMarginClassWhenLeftIconExists}>{cell.textValue}</span>
|
|
826
|
+
</template>
|
|
827
|
+
<template if:false={cell.ignoreRTL}>
|
|
828
|
+
<template if:true={cell.hasLeftIcon}>
|
|
829
|
+
<span class={cell.computedMarginClassWhenLeftIconExists}>{cell.textValue}</span>
|
|
830
|
+
</template>
|
|
831
|
+
<template if:false={cell.hasLeftIcon}>
|
|
832
|
+
{cell.textValue}
|
|
833
|
+
</template>
|
|
834
|
+
</template>
|
|
835
|
+
</template>
|
|
836
|
+
<template if:true={cell.shouldFormatText}>
|
|
837
|
+
<span class={cell.computedMarginClassWhenLeftIconExists}>
|
|
838
|
+
<template for:each={cell.textParts} for:item="part">
|
|
839
|
+
<template if:true={part.isLink}>
|
|
840
|
+
<a key={part.key} target='_blank' href={part.href} rel="noopener">{part.value}</a>
|
|
841
|
+
</template>
|
|
842
|
+
<template if:true={part.isText}>
|
|
843
|
+
{part.value}
|
|
844
|
+
</template>
|
|
845
|
+
</template>
|
|
846
|
+
</span>
|
|
847
|
+
</template>
|
|
848
|
+
</template>
|
|
849
|
+
|
|
850
|
+
<!-- url -->
|
|
851
|
+
<template if:true={cell.isURL}>
|
|
852
|
+
<template if:true={cell.showUrlLink}>
|
|
853
|
+
<a
|
|
854
|
+
class={cell.computedMarginClassWhenLeftIconExists}
|
|
855
|
+
data-action-triggers="enter"
|
|
856
|
+
data-inline-type="formatted-url"
|
|
857
|
+
data-navigation="enable"
|
|
858
|
+
href={cell.urlLink}
|
|
859
|
+
tabindex={cell.internalTabIndex}
|
|
860
|
+
target={cell.urlTarget}
|
|
861
|
+
title={cell.urlTooltip}
|
|
862
|
+
onclick={cell.handleUrlAnchorClick}>
|
|
863
|
+
{cell.urlLabel}
|
|
864
|
+
</a>
|
|
865
|
+
</template>
|
|
866
|
+
</template>
|
|
867
|
+
|
|
868
|
+
<!-- *************** SUFFIX ICONS ADD ALL TYPES BEFORE THIS *************** -->
|
|
869
|
+
|
|
870
|
+
<template if:true={cell.hasRightIcon}>
|
|
871
|
+
<lightning-icon
|
|
872
|
+
icon-name={cell.iconName}
|
|
873
|
+
class="slds-m-left_x-small slds-m-right_x-small"
|
|
874
|
+
size="x-small"
|
|
875
|
+
alternative-text={cell.iconAlternativeText}></lightning-icon>
|
|
876
|
+
{cell.iconLabel}
|
|
877
|
+
</template>
|
|
878
|
+
|
|
879
|
+
<!-- *************** SUFFIX ICONS END *************** -->
|
|
880
|
+
|
|
881
|
+
</div>
|
|
882
|
+
<template if:true={cell.isEditable}>
|
|
883
|
+
<button class="slds-button slds-button_icon slds-cell-edit__button slds-m-left_x-small"
|
|
884
|
+
data-action-edit="true"
|
|
885
|
+
data-action-triggers="enter,space"
|
|
886
|
+
data-navigation="enable"
|
|
887
|
+
tabindex={cell.internalTabIndex}
|
|
888
|
+
onclick={handleInlinedEditButtonClick}>
|
|
889
|
+
<lightning-primitive-icon
|
|
890
|
+
icon-name="utility:edit"
|
|
891
|
+
size="xx-small"
|
|
892
|
+
svg-class="slds-button__icon slds-button__icon_hint slds-button__icon_lock slds-button__icon_small slds-button__icon_edit">
|
|
893
|
+
</lightning-primitive-icon>
|
|
894
|
+
<span class="slds-assistive-text">
|
|
895
|
+
{cell.editIconAssistiveText}
|
|
896
|
+
</span>
|
|
897
|
+
</button>
|
|
898
|
+
</template>
|
|
899
|
+
<!-- TODO: displayReadOnlyIcon is true only when the cell's "editable" property is false and its "displayReadOnlyIcon"
|
|
900
|
+
property is true. The markup in this template therefore cannot be rendered concurrently with the template above that checks
|
|
901
|
+
the editable property. -->
|
|
902
|
+
<template if:true={cell.shouldDisplayReadOnlyIcon}>
|
|
903
|
+
<!-- TODO: Update the svg-classes once the SLDS team updates their read only icon design to not use classes that have the word 'button'
|
|
904
|
+
in them in cases when the cell is read only and hence no button is actually rendered -->
|
|
905
|
+
<lightning-primitive-icon
|
|
906
|
+
icon-name="utility:lock"
|
|
907
|
+
size="xx-small"
|
|
908
|
+
svg-class="slds-button__icon slds-button__icon_hint slds-button__icon_lock slds-button__icon_small">
|
|
909
|
+
</lightning-primitive-icon>
|
|
910
|
+
</template>
|
|
911
|
+
</span>
|
|
912
|
+
</template>
|
|
913
|
+
</template>
|
|
914
|
+
<!-- Slow Path -->
|
|
915
|
+
<template if:false={cell.isInlined}>
|
|
916
|
+
<lightning-primitive-cell-factory
|
|
917
|
+
types={_privateTypes}
|
|
918
|
+
aria-selected={cell.ariaSelected}
|
|
919
|
+
data-label={cell.dataLabel}
|
|
920
|
+
alignment={cell.alignment}
|
|
921
|
+
has-error={cell.hasError}
|
|
922
|
+
has-focus={cell.hasFocus}
|
|
923
|
+
column-label={cell.dataLabel}
|
|
924
|
+
column-type={cell.columnType}
|
|
925
|
+
column-sub-type={cell.columnSubType}
|
|
926
|
+
wrap-text={cell.wrapText}
|
|
927
|
+
wrap-text-max-lines={cell.wrapTextMaxLines}
|
|
928
|
+
key={cell.columnType}
|
|
929
|
+
row-key-value={row.key}
|
|
930
|
+
col-key-value={cell.colKeyValue}
|
|
931
|
+
value={cell.value}
|
|
932
|
+
display-value={cell.displayValue}
|
|
933
|
+
icon-name={cell.iconName}
|
|
934
|
+
icon-label={cell.iconLabel}
|
|
935
|
+
icon-position={cell.iconPosition}
|
|
936
|
+
icon-alternative-text={cell.iconAlternativeText}
|
|
937
|
+
editable={cell.editable}
|
|
938
|
+
display-read-only-icon={cell.displayReadOnlyIcon}
|
|
939
|
+
type-attribute-0={cell.typeAttribute0}
|
|
940
|
+
type-attribute-1={cell.typeAttribute1}
|
|
941
|
+
type-attribute-2={cell.typeAttribute2}
|
|
942
|
+
type-attribute-3={cell.typeAttribute3}
|
|
943
|
+
type-attribute-4={cell.typeAttribute4}
|
|
944
|
+
type-attribute-5={cell.typeAttribute5}
|
|
945
|
+
type-attribute-6={cell.typeAttribute6}
|
|
946
|
+
type-attribute-7={cell.typeAttribute7}
|
|
947
|
+
type-attribute-8={cell.typeAttribute8}
|
|
948
|
+
type-attribute-9={cell.typeAttribute9}
|
|
949
|
+
type-attribute-10={cell.typeAttribute10}
|
|
950
|
+
type-attribute-21={cell.typeAttribute21}
|
|
951
|
+
type-attribute-22={cell.typeAttribute22}>
|
|
952
|
+
</lightning-primitive-cell-factory>
|
|
953
|
+
</template>
|
|
255
954
|
<template if:true={cell.describedBy}>
|
|
256
955
|
<span id={cell.describedBy} class="slds-hide">Unsaved</span>
|
|
257
956
|
</template>
|