All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.account.resources.content.aia-page.AppInitiatedActionPage.js.map Maven / Gradle / Ivy

{"version":3,"file":"AppInitiatedActionPage.js","names":["React","withRouter","AIACommand","Msg","Title","Button","EmptyState","EmptyStateVariant","EmptyStateIcon","EmptyStateBody","TitleSizes","PassportIcon","KeycloakContext","ApplicationInitiatedActionPage","Component","constructor","props","_defineProperty","keycloak","pageDef","kcAction","execute","render","createElement","variant","full","icon","headingLevel","size","lg","msgKey","label","params","labelParams","Consumer","onClick","handleClick","target","AppInitiatedActionPage"],"sources":["../../../src/app/content/aia-page/AppInitiatedActionPage.tsx"],"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 {withRouter, RouteComponentProps} from 'react-router-dom';\n\nimport {AIACommand} from '../../util/AIACommand';\nimport {PageDef} from '../../ContentPages';\nimport {Msg} from '../../widgets/Msg';\n\nimport {\n  Title,\n  Button,\n  EmptyState,\n  EmptyStateVariant,\n  EmptyStateIcon,\n  EmptyStateBody,\n  TitleSizes\n} from '@patternfly/react-core';\nimport { PassportIcon } from '@patternfly/react-icons';\nimport { KeycloakService } from '../../keycloak-service/keycloak.service';\nimport { KeycloakContext } from '../../keycloak-service/KeycloakContext';\n\n// Note: This class demonstrates two features of the ContentPages framework:\n// 1) The PageDef is available as a React property.\n// 2) You can add additional custom properties to the PageDef.  In this case,\n//    we add a value called kcAction in content.js and access it by extending the\n//    PageDef interface.\ninterface ActionPageDef extends PageDef {\n    kcAction: string;\n}\n\n// Extend RouteComponentProps to get access to router information such as\n// the hash-routed path associated with this page.  See this.props.location.pathname\n// as used below.\ninterface AppInitiatedActionPageProps extends RouteComponentProps {\n    pageDef: ActionPageDef;\n}\n\n/**\n * @author Stan Silvert\n */\nclass ApplicationInitiatedActionPage extends React.Component {\n\n    public constructor(props: AppInitiatedActionPageProps) {\n        super(props);\n    }\n\n    private handleClick = (keycloak: KeycloakService): void => {\n        new AIACommand(keycloak, this.props.pageDef.kcAction).execute();\n    }\n\n    public render(): React.ReactNode {\n        return (\n            \n                \n                \n                  <Msg msgKey={this.props.pageDef.label} params={this.props.pageDef.labelParams}/>\n                \n                \n                  \n                \n                \n                { keycloak => (\n                    \n                )}\n                \n            \n            \n        );\n    }\n};\n\n// Note that the class name is not exported above.  To get access to the router,\n// we use withRouter() and export a different name.\nexport const AppInitiatedActionPage = withRouter(ApplicationInitiatedActionPage);\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,KAAK;AACjB,SAAQC,UAAU;AAElB,SAAQC,UAAU;AAElB,SAAQC,GAAG;AAEX,SACEC,KAAK,EACLC,MAAM,EACNC,UAAU,EACVC,iBAAiB,EACjBC,cAAc,EACdC,cAAc,EACdC,UAAU;AAEZ,SAASC,YAAY;AAErB,SAASC,eAAe;;AAExB;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AAKA;AACA;AACA;AACA,MAAMC,8BAA8B,SAASb,KAAK,CAACc,SAAS,CAA8B;EAE/EC,WAAWA,CAACC,KAAkC,EAAE;IACnD,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,sBAGMC,QAAyB,IAAW;MACvD,IAAIhB,UAAU,CAACgB,QAAQ,EAAE,IAAI,CAACF,KAAK,CAACG,OAAO,CAACC,QAAQ,CAAC,CAACC,OAAO,CAAC,CAAC;IACnE,CAAC;EAJD;EAMOC,MAAMA,CAAA,EAAoB;IAC7B,oB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