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

theme.keycloak.v2.admin.resources.assets.discovery-settings-8e1556b9.js.map Maven / Gradle / Ivy

There is a newer version: 25.0.1
Show newest version
{"version":3,"file":"discovery-settings-8e1556b9.js","sources":["../../src/identity-providers/component/FormGroupField.tsx","../../src/identity-providers/component/SwitchField.tsx","../../src/identity-providers/component/TextField.tsx"],"sourcesContent":["import { FormGroup } from \"@patternfly/react-core\";\nimport { PropsWithChildren } from \"react\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { HelpItem } from \"ui-shared\";\n\nexport type FieldProps = { label: string; field: string; isReadOnly?: boolean };\nexport type FormGroupFieldProps = { label: string };\n\nexport const FormGroupField = ({\n  label,\n  children,\n}: PropsWithChildren) => {\n  const { t } = useTranslation(\"identity-providers\");\n  return (\n    \n      }\n    >\n      {children}\n    \n  );\n};\n","import { Switch } from \"@patternfly/react-core\";\nimport { Controller, useFormContext } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { FieldProps, FormGroupField } from \"./FormGroupField\";\n\ntype FieldType = \"boolean\" | \"string\";\n\ntype SwitchFieldProps = FieldProps & {\n  fieldType?: FieldType;\n};\n\nexport const SwitchField = ({\n  label,\n  field,\n  fieldType = \"string\",\n  isReadOnly = false,\n}: SwitchFieldProps) => {\n  const { t } = useTranslation(\"identity-providers\");\n  const { control } = useFormContext();\n  return (\n    \n       (\n          \n              field.onChange(fieldType === \"string\" ? \"\" + value : value)\n            }\n            isDisabled={isReadOnly}\n            aria-label={label}\n          />\n        )}\n      />\n    \n  );\n};\n","import { useFormContext } from \"react-hook-form\";\n\nimport { FieldProps, FormGroupField } from \"./FormGroupField\";\nimport { KeycloakTextInput } from \"../../components/keycloak-text-input/KeycloakTextInput\";\n\nexport const TextField = ({ label, field, isReadOnly = false }: FieldProps) => {\n  const { register } = useFormContext();\n  return (\n    \n      \n    \n  );\n};\n"],"names":["FormGroupField","label","children","useTranslation","jsx","FormGroup","HelpItem","SwitchField","field","fieldType","isReadOnly","t","control","useFormContext","Controller","Switch","value","TextField","register","KeycloakTextInput"],"mappings":"sIASO,MAAMA,EAAiB,CAAC,CAC7B,MAAAC,EACA,SAAAC,CACF,IAA8C,CAC5C,KAAM,CAAE,CAAA,EAAMC,EAAe,oBAAoB,EAE/C,OAAAC,EAAA,IAACC,EAAA,CACC,MAAO,EAAEJ,CAAK,EACd,QAASA,EACT,UACEG,EAAA,IAACE,EAAA,CACC,SAAU,EAAE,2BAA2BL,CAAK,EAAE,EAC9C,aAAc,sBAAsBA,CAAK,EAAA,CAC3C,EAGD,SAAAC,CAAA,CAAA,CAGP,EChBaK,EAAc,CAAC,CAC1B,MAAAN,EACA,MAAAO,EACA,UAAAC,EAAY,SACZ,WAAAC,EAAa,EACf,IAAwB,CACtB,KAAM,CAAE,EAAAC,CAAA,EAAMR,EAAe,oBAAoB,EAC3C,CAAE,QAAAS,GAAYC,IAElB,OAAAT,EAAA,IAACJ,GAAe,MAAAC,EACd,SAAAG,EAAA,IAACU,EAAA,CACC,KAAMN,EACN,aAAcC,IAAc,SAAW,QAAU,GACjD,QAAAG,EACA,OAAQ,CAAC,CAAE,MAAAJ,CACT,IAAAJ,EAAA,IAACW,EAAA,CACC,GAAId,EACJ,MAAOU,EAAE,WAAW,EACpB,SAAUA,EAAE,YAAY,EACxB,UACEF,IAAc,SACVD,EAAM,QAAU,OACfA,EAAM,MAEb,SAAWQ,GACTR,EAAM,SAASC,IAAc,SAAW,GAAKO,EAAQA,CAAK,EAE5D,WAAYN,EACZ,aAAYT,CAAA,CACd,CAAA,CAGN,CAAA,CAAA,CAEJ,ECzCagB,EAAY,CAAC,CAAE,MAAAhB,EAAO,MAAAO,EAAO,WAAAE,EAAa,MAAwB,CACvE,KAAA,CAAE,SAAAQ,GAAaL,IAEnB,OAAAT,EAAA,IAACJ,GAAe,MAAAC,EACd,SAAAG,EAAA,IAACe,EAAA,CACC,GAAIlB,EACJ,cAAaA,EACb,WAAAS,EACC,GAAGQ,EAASV,CAAK,CAAA,CAEtB,CAAA,CAAA,CAEJ"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy