license import { MDCChipActionAttributes , MDCChipActionType } from './constants' ; import { MDCChipActionFoundation } from './foundation' ; /**
 * MDCChipPrimaryActionFoundation provides the business logic for the primary
 * chip action.
 */ export class MDCChipPrimaryActionFoundation extends MDCChipActionFoundation { isSelectable ( ) { return this . adapter . getAttribute ( MDCChipActionAttributes . ROLE ) === 'option' ; } actionType ( ) { return MDCChipActionType . PRIMARY ; } protected shouldEmitInteractionOnRemoveKey ( ) { return this . adapter . getAttribute ( MDCChipActionAttributes . DATA_DELETABLE ) === 'true' ; } } export default MDCChipPrimaryActionFoundation ;