ContentPage.js.map 4.2 KB

1
  1. {"version":3,"sources":["../../src/app/content/ContentPage.tsx"],"names":["React","Button","Grid","GridItem","Title","Tooltip","RedoIcon","Msg","ContentAlert","ContentPage","Component","constructor","props","render","title","onRefresh","introMessage","children"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAO,KAAKA,KAAZ;AACA,SAAQC,MAAR,EAAgBC,IAAhB,EAAsBC,QAAtB,EAAgCC,KAAhC,EAAuCC,OAAvC;AACA,SAAQC,QAAR;AAEA,SAAQC,GAAR;AACA,SAAQC,YAAR;;AASA;AACA;AACA;AACA,OAAO,MAAMC,WAAN,SAA0BT,KAAK,CAACU,SAAhC,CAA4D;AAExDC,EAAAA,WAAW,CAACC,KAAD,EAA0B;AACxC,UAAMA,KAAN;AACH;;AAEMC,EAAAA,MAAM,GAAoB;AAC7B,WACI,oBAAC,KAAD,CAAO,QAAP,QACI,oBAAC,YAAD,OADJ,EAEI;AAAS,MAAA,EAAE,EAAC,cAAZ;AAA2B,MAAA,SAAS,EAAC;AAArC,OACI,oBAAC,IAAD,QACI,oBAAC,QAAD;AAAU,MAAA,IAAI,EAAE;AAAhB,OAAoB,oBAAC,KAAD;AAAO,MAAA,YAAY,EAAC,IAApB;AAAyB,MAAA,IAAI,EAAC;AAA9B,OAAoC,oCAAQ,oBAAC,GAAD;AAAK,MAAA,MAAM,EAAE,KAAKD,KAAL,CAAWE;AAAxB,MAAR,CAApC,CAApB,CADJ,EAEK,KAAKF,KAAL,CAAWG,SAAX,IACG,oBAAC,QAAD;AAAU,MAAA,IAAI,EAAE;AAAhB,OACI,oBAAC,OAAD;AAAS,MAAA,OAAO,EAAE,oBAAC,GAAD;AAAK,QAAA,MAAM,EAAC;AAAZ;AAAlB,OACI,oBAAC,MAAD;AAAQ,0BAAiB,cAAzB;AAAwC,MAAA,EAAE,EAAC,cAA3C;AAA0D,MAAA,OAAO,EAAC,OAAlE;AAA0E,MAAA,OAAO,EAAE,KAAKH,KAAL,CAAWG;AAA9F,OACI,oBAAC,QAAD;AAAU,MAAA,IAAI,EAAC;AAAf,MADJ,CADJ,CADJ,CAHR,EAWK,KAAKH,KAAL,CAAWI,YAAX,IAA2B,oBAAC,QAAD;AAAU,MAAA,IAAI,EAAE;AAAhB,YAAqB,oBAAC,GAAD;AAAK,MAAA,MAAM,EAAE,KAAKJ,KAAL,CAAWI;AAAxB,MAArB,CAXhC,CADJ,CAFJ,EAkBI;AAAS,MAAA,SAAS,EAAC;AAAnB,OACK,KAAKJ,KAAL,CAAWK,QADhB,CAlBJ,CADJ;AAwBH;;AA/B8D;AAgClE","sourcesContent":["/*\n * Copyright 2019 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from 'react';\nimport {Button, Grid, GridItem, Title, Tooltip} from '@patternfly/react-core';\nimport {RedoIcon} from '@patternfly/react-icons';\n\nimport {Msg} from '../widgets/Msg';\nimport {ContentAlert} from './ContentAlert';\n\ninterface ContentPageProps {\n title: string; // Literal title or key into message bundle\n introMessage?: string; // Literal message or key into message bundle\n onRefresh?: () => void;\n children: React.ReactNode;\n}\n\n/**\n * @author Stan Silvert ssilvert@redhat.com (C) 2019 Red Hat Inc.\n */\nexport class ContentPage extends React.Component<ContentPageProps> {\n\n public constructor(props: ContentPageProps) {\n super(props);\n }\n\n public render(): React.ReactNode {\n return (\n <React.Fragment>\n <ContentAlert/>\n <section id=\"page-heading\" className=\"pf-c-page__main-section pf-m-light\">\n <Grid>\n <GridItem span={11}><Title headingLevel='h1' size='3xl'><strong><Msg msgKey={this.props.title}/></strong></Title></GridItem>\n {this.props.onRefresh &&\n <GridItem span={1}>\n <Tooltip content={<Msg msgKey='refreshPage'/>}>\n <Button aria-describedby=\"refresh page\" id='refresh-page' variant='plain' onClick={this.props.onRefresh}>\n <RedoIcon size='sm'/>\n </Button>\n </Tooltip>\n </GridItem>\n }\n {this.props.introMessage && <GridItem span={12}> <Msg msgKey={this.props.introMessage}/></GridItem>}\n </Grid>\n </section>\n\n <section className=\"pf-c-page__main-section pf-m-no-padding-mobile\">\n {this.props.children}\n </section>\n </React.Fragment>\n );\n }\n};"],"file":"ContentPage.js"}