UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

74 lines (73 loc) 2 kB
import { jsxs as p, jsx as e } from "react/jsx-runtime"; import { FormattedMessage as r } from "react-intl"; import i from "../../components/ContentPlaceholder/index.js"; import "../../components/formio/tabs.js"; import f from "../../components/formio/component.js"; import v from "../../components/formio/description.js"; import "@floating-ui/react"; import "react"; import "clsx"; import "formik"; import "../../context.js"; import "@formio/vanilla-text-mask"; import "formiojs"; /* empty css */ import "lodash"; /* empty css */ import "react-select"; import "dompurify"; import "../../components/formio/datagrid.js"; const U = ({ component: a }) => { const { label: m, key: o, description: l, validate: d = {}, tooltip: s, groupLabel: t, hideLabel: u } = a, { required: n = !1 } = d; return /* @__PURE__ */ p(f, { type: "editgrid", field: o, required: n, htmlId: `editform-${o}`, label: u ? void 0 : m, tooltip: s, children: [ /* @__PURE__ */ p("div", { style: { display: "flex", flexDirection: "column", gap: "1em" }, children: [ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(r, { id: "7qqbU9", defaultMessage: [{ type: 1, value: "groupLabel" }, { type: 0, value: " 1" }], values: { groupLabel: t } }) }), /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(r, { id: "0TGt4t", defaultMessage: [{ type: 1, value: "groupLabel" }, { type: 0, value: " 2" }], values: { groupLabel: t } }) }), /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(r, { id: "smPv/m", defaultMessage: [{ type: 1, value: "groupLabel" }, { type: 0, value: " 3" }], values: { groupLabel: t } }) }) ] }), l && /* @__PURE__ */ e(v, { text: l }) ] }); }; export { U as default };