UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

43 lines (42 loc) 1.73 kB
import { jsxs as t, jsx as e } from "react/jsx-runtime"; import o from "../../components/formio/component.js"; import h from "../../components/formio/description.js"; const a = ({ component: l }) => { const { key: r, description: i, label: d, tooltip: n, enableSelection: c } = l; return /* @__PURE__ */ t(o, { type: "children", field: r, htmlId: `editform-${r}`, label: d, tooltip: n, children: [ /* @__PURE__ */ t("table", { className: "table table-sm table-striped", children: [ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { children: [ c && /* @__PURE__ */ e("th", { scope: "col" }), /* @__PURE__ */ e("th", { scope: "col", children: "Bsn" }), /* @__PURE__ */ e("th", { scope: "col", children: "Firstnames" }), /* @__PURE__ */ e("th", { scope: "col", children: "Date of birth" }) ] }) }), /* @__PURE__ */ t("tbody", { children: [ /* @__PURE__ */ t("tr", { children: [ c && /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("input", { type: "checkbox" }) }), /* @__PURE__ */ e("td", { children: "xxxxxx123" }), /* @__PURE__ */ e("td", { children: "Alice" }), /* @__PURE__ */ e("td", { children: "2000-01-01" }) ] }), /* @__PURE__ */ t("tr", { children: [ c && /* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("input", { type: "checkbox" }) }), /* @__PURE__ */ e("td", { children: "xxxxxx456" }), /* @__PURE__ */ e("td", { children: "Bob" }), /* @__PURE__ */ e("td", { children: "2003-10-16" }) ] }) ] }) ] }), i && /* @__PURE__ */ e(h, { text: i }) ] }); }; export { a as default };