UNPKG

1.27 kBSource Map (JSON)View Raw
1{"version":3,"sources":["table/ExpandedRow.js"],"names":["observer","isFunction","ExpandedRow","props","isExpanded","children","columnGroups","record","child","displayName"],"mappings":"AAAA,SAASA,QAAT,QAAyB,iBAAzB;AACA,OAAOC,UAAP,MAAuB,mBAAvB;AACA,IAAMC,WAAW,GAAGF,QAAQ,CAAC,SAASE,WAAT,CAAqBC,KAArB,EAA4B;AAAA,MAC7CC,UAD6C,GACSD,KADT,CAC7CC,UAD6C;AAAA,wBACSD,KADT,CACjCE,QADiC;AAAA,MACjCA,QADiC,gCACtB,IADsB;AAAA,MAChBC,YADgB,GACSH,KADT,CAChBG,YADgB;AAAA,MACFC,MADE,GACSJ,KADT,CACFI,MADE;;AAErD,MAAIN,UAAU,CAACI,QAAD,CAAd,EAA0B;AACtB,QAAMG,KAAK,GAAGH,QAAQ,CAACC,YAAD,EAAeC,MAAf,EAAuBH,UAAvB,CAAtB;;AACA,QAAII,KAAJ,EAAW;AACP,aAAOA,KAAP;AACH;AACJ;;AACD,SAAOH,QAAP;AACH,CAT2B,CAA5B;AAUAH,WAAW,CAACO,WAAZ,GAA0B,aAA1B;AACA,eAAeP,WAAf","sourcesContent":["import { observer } from 'mobx-react-lite';\nimport isFunction from 'lodash/isFunction';\nconst ExpandedRow = observer(function ExpandedRow(props) {\n const { isExpanded, children = null, columnGroups, record } = props;\n if (isFunction(children)) {\n const child = children(columnGroups, record, isExpanded);\n if (child) {\n return child;\n }\n }\n return children;\n});\nExpandedRow.displayName = 'ExpandedRow';\nexport default ExpandedRow;\n"],"file":"ExpandedRow.js"}
\No newline at end of file