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

theme.keycloak.v2.admin.resources.assets.AttributeForm-CdFbESi6.js.map Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
{"version":3,"file":"AttributeForm-CdFbESi6.js","sources":["../../src/components/key-value-form/AttributeForm.tsx"],"sourcesContent":["import type RoleRepresentation from \"@keycloak/keycloak-admin-client/lib/defs/roleRepresentation\";\nimport { ActionGroup, Button } from \"@patternfly/react-core\";\nimport { FormProvider, UseFormReturn } from \"react-hook-form\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { FormAccess } from \"../form/FormAccess\";\nimport type { KeyValueType } from \"./key-value-convert\";\nimport { KeyValueInput } from \"./KeyValueInput\";\n\nexport type AttributeForm = Omit & {\n  attributes?: KeyValueType[];\n};\n\nexport type AttributesFormProps = {\n  form: UseFormReturn;\n  save?: (model: AttributeForm) => void;\n  reset?: () => void;\n  fineGrainedAccess?: boolean;\n  name?: string;\n  isDisabled?: boolean;\n};\n\nexport const AttributesForm = ({\n  form,\n  reset,\n  save,\n  fineGrainedAccess,\n  name = \"attributes\",\n  isDisabled = false,\n}: AttributesFormProps) => {\n  const { t } = useTranslation();\n  const noSaveCancelButtons = !save && !reset;\n  const {\n    formState: { isDirty },\n    handleSubmit,\n  } = form;\n\n  return (\n    \n      \n        \n      \n      {!noSaveCancelButtons && (\n        \n          \n            {t(\"save\")}\n          \n          \n        \n      )}\n    \n  );\n};\n"],"names":["AttributesForm","form","reset","save","fineGrainedAccess","name","isDisabled","t","useTranslation","noSaveCancelButtons","isDirty","handleSubmit","jsxs","FormAccess","jsx","FormProvider","KeyValueInput","ActionGroup","Button"],"mappings":"2MAsBO,MAAMA,EAAiB,CAAC,CAC7B,KAAAC,EACA,MAAAC,EACA,KAAAC,EACA,kBAAAC,EACA,KAAAC,EAAO,aACP,WAAAC,EAAa,EACf,IAA2B,CACnB,KAAA,CAAE,EAAAC,GAAMC,IACRC,EAAsB,CAACN,GAAQ,CAACD,EAChC,CACJ,UAAW,CAAE,QAAAQ,CAAQ,EACrB,aAAAC,CACE,EAAAV,EAGF,OAAAW,EAACC,EAAA,CACC,KAAK,eACL,SAAUV,EAAOQ,EAAaR,CAAI,EAAI,OACtC,kBAAAC,EAEA,SAAA,CAAAU,EAACC,GAAc,GAAGd,EAChB,WAACe,EAAc,CAAA,KAAAX,EAAY,WAAAC,EAAwB,CACrD,CAAA,EACC,CAACG,GACCG,EAAAK,EAAA,CAAY,UAAU,8BACrB,SAAA,CAAAH,EAACI,EAAA,CACC,cAAY,kBACZ,QAAQ,UACR,KAAK,SACL,WAAY,CAACR,EAEZ,WAAE,MAAM,CAAA,CACX,EACAI,EAACI,EAAO,CAAA,QAAShB,EAAO,QAAQ,OAAO,WAAY,CAACQ,EACjD,SAAEH,EAAA,QAAQ,CACb,CAAA,CAAA,EACF,CAAA,CAAA,CAAA,CAIR"}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy