import { Component } from "@contember/binding";
import { AutoField } from "./AutoField.js";
import { jsxDEV, Fragment } from "react/jsx-dev-runtime";
var _jsxFileName = "/__w/interface/interface/packages/admin/src/components/Auto/AutoFields.tsx";
const AutoFields = Component((props, env) => {
  const schema = env.getSchema();
  const entity = env.getSubTreeNode().entity;
  const fields = Array.from(entity.fields.values()).filter((it) => props.excludedFields === void 0 || !props.excludedFields.includes(it.name));
  const autoFields = fields.map((field) => /* @__PURE__ */ jsxDEV(AutoField, {
    schema,
    entityName: entity.name,
    fieldName: field.name,
    createEditLink: props.createEditLink,
    excludedEntities: [entity.name, ...props.excludedEntities ?? []]
  }, field.name, false, {
    fileName: _jsxFileName,
    lineNumber: 18,
    columnNumber: 4
  }, void 0));
  return /* @__PURE__ */ jsxDEV(Fragment, {
    children: autoFields
  }, void 0, false);
});
export {
  AutoFields
};
//# sourceMappingURL=AutoFields.js.map
