import { LitElement, html } from 'lit'; import { customElement, state, property } from 'lit/decorators.js'; import '@kyndryl-design-system/shidoka-foundation/components/button'; import '@kyndryl-design-system/shidoka-foundation/components/icon'; import exportIcon from '@carbon/icons/es/export/20'; import exportIcon16 from '@carbon/icons/es/export/16'; import overflowIcon from '@carbon/icons/es/overflow-menu--vertical/20'; import trashCanIcon from '@carbon/icons/es/trash-can/20'; import styles from './batch-actions.scss'; import '../index'; @customElement('batch-actions') export class BatchActions extends LitElement { static override styles = [styles]; @property({ type: Function }) handleDelete = () => {}; @property({ type: Boolean, reflect: true }) opened = false; /** * Determines if the component is being rendered on a mobile device. * @ignore */ @state() isMobile = window.innerWidth < 768; handleClick = (e: Event) => { e.stopPropagation(); e.preventDefault(); this.opened = !this.opened; }; override render() { return html`
Delete
(this.opened = !this.opened)} >
Export
Action
`; } }