UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

20 lines (19 loc) 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModuleDetail = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const EntityListActionButtons_1 = require("../Buttons/EntityListActionButtons"); const SummaryRowItem_1 = require("./SummaryRowItem"); class ModuleDetail extends React.Component { render() { let summaryItems = []; this.props.showBold ? summaryItems.push(React.createElement("b", null, this.props.item1)) : summaryItems.push(React.createElement("i", null, this.props.item1)); summaryItems.push(React.createElement("i", null, this.props.item2)); summaryItems.push(React.createElement(EntityListActionButtons_1.EntityListActionButtons, { justifyContent: "start", confirmDeleteAction: this.props.onDelete, showEdit: this.props.showEdit, editClick: () => this.props.onEdit(), shareClick: (config) => this.props.onShare(config), showShare: this.props.showShare, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel })); return React.createElement(SummaryRowItem_1.SummaryRowItem, { SummaryItems: summaryItems }); } } exports.ModuleDetail = ModuleDetail;