UNPKG

carbon-custom-elements

Version:

A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.

1 lines 1.88 kB
{"version":3,"sources":["components/data-table/table-header-expand-row.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAIlD;;;GAGG;AACH,cACM,sBAAuB,SAAQ,gBAAgB;IACnD;;;OAGG;IACH,MAAM,KAAK,0BAA0B,WAEpC;IAED;;;OAGG;IACH,MAAM,KAAK,wBAAwB,WAElC;IAED;;OAEG;IACH,MAAM,KAAK,kBAAkB,WAE5B;CACF;AAED,eAAe,sBAAsB,CAAC","file":"table-header-expand-row.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport settings from 'carbon-components/es/globals/js/settings';\nimport { customElement } from 'lit-element';\nimport BXTableExpandRow from './table-expand-row';\n\nconst { prefix } = settings;\n\n/**\n * Data table header row.\n * @element bx-table-header-expand-row\n */\n@customElement(`${prefix}-table-header-expand-row`)\nclass BXTableHeaderExpandRow extends BXTableExpandRow {\n /**\n * The name of the custom event fired before this row is selected/unselected upon a user gesture.\n * Cancellation of this event stops the user-initiated change in selection.\n */\n static get eventBeforeChangeSelection() {\n return `${prefix}-table-change-selection-all`;\n }\n\n /**\n * The name of the custom event fired before the expanded state this row is being toggled upon a user gesture.\n * Cancellation of this event stops the user-initiated action of toggling the expanded state.\n */\n static get eventBeforeExpandoToggle() {\n return `${prefix}-table-row-expando-beingtoggled-all`;\n }\n\n /**\n * The name of the custom event fired after the expanded state this row is toggled upon a user gesture.\n */\n static get eventExpandoToggle() {\n return `${prefix}-table-row-expando-toggled-all`;\n }\n}\n\nexport default BXTableHeaderExpandRow;\n"]}