// electoral-roll-web — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "voters", label: "選挙人", endpoint: "/api/voters",
    cols: [{ key: "registrationNumber", label: "選挙人名簿登録番号" }, { key: "fullName", label: "氏名" }, { key: "birthDate", label: "生年月日" }, { key: "address", label: "住所" }, { key: "status", label: "状態", badge: true }],
    createFields: [{ name: "fullName", label: "氏名", required: true, placeholder: "山田 太郎" }, { name: "birthDate", label: "生年月日", required: true, type: "date" }, { name: "address", label: "住所", required: true, placeholder: "東京都..." }] },
],
  calc: { title: "選挙人名簿 登録資格の試算", endpoint: "/api/electoral/eligibility", primary: { key: "eligible", label: "登録資格", format: "bool" }, fields: [ { key: "birthDate", label: "生年月日", type: "date" }, { key: "addressFixedDate", label: "住所を定めた日", type: "date" }, { key: "isJapanese", label: "日本国民", type: "select", options: [ { value: true, label: "はい" }, { value: false, label: "いいえ" } ] }, { key: "asOf", label: "基準日（任意）", type: "date" } ] },
};
