@tonzxz/government-forms 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FORM_CATALOG.md +44 -0
- package/README.md +165 -0
- package/dist/definitions.d.ts +1147 -0
- package/dist/definitions.js +60 -0
- package/dist/forms/iar.d.ts +172 -0
- package/dist/forms/iar.js +6 -0
- package/dist/forms/ics.d.ts +48 -0
- package/dist/forms/ics.js +6 -0
- package/dist/forms/iirup.d.ts +54 -0
- package/dist/forms/iirup.js +6 -0
- package/dist/forms/iirusp.d.ts +32 -0
- package/dist/forms/iirusp.js +6 -0
- package/dist/forms/itr.d.ts +42 -0
- package/dist/forms/itr.js +6 -0
- package/dist/forms/par.d.ts +84 -0
- package/dist/forms/par.js +6 -0
- package/dist/forms/ppelc.d.ts +34 -0
- package/dist/forms/ppelc.js +6 -0
- package/dist/forms/pr.d.ts +27 -0
- package/dist/forms/pr.js +6 -0
- package/dist/forms/property-card.d.ts +68 -0
- package/dist/forms/property-card.js +6 -0
- package/dist/forms/ptr.d.ts +54 -0
- package/dist/forms/ptr.js +6 -0
- package/dist/forms/regspi.d.ts +32 -0
- package/dist/forms/regspi.js +6 -0
- package/dist/forms/ris.d.ts +66 -0
- package/dist/forms/ris.js +6 -0
- package/dist/forms/rlsddp.d.ts +54 -0
- package/dist/forms/rlsddp.js +6 -0
- package/dist/forms/rlsddsp.d.ts +42 -0
- package/dist/forms/rlsddsp.js +6 -0
- package/dist/forms/rpci.d.ts +32 -0
- package/dist/forms/rpci.js +6 -0
- package/dist/forms/rpcppe.d.ts +32 -0
- package/dist/forms/rpcppe.js +6 -0
- package/dist/forms/rpcsp.d.ts +32 -0
- package/dist/forms/rpcsp.js +6 -0
- package/dist/forms/rrsp.d.ts +32 -0
- package/dist/forms/rrsp.js +6 -0
- package/dist/forms/rsmi.d.ts +32 -0
- package/dist/forms/rsmi.js +6 -0
- package/dist/forms/rsmp.d.ts +33 -0
- package/dist/forms/rsmp.js +6 -0
- package/dist/forms/rspi.d.ts +32 -0
- package/dist/forms/rspi.js +6 -0
- package/dist/forms/spc.d.ts +37 -0
- package/dist/forms/spc.js +6 -0
- package/dist/forms/splc.d.ts +41 -0
- package/dist/forms/splc.js +6 -0
- package/dist/forms/stock-card.d.ts +28 -0
- package/dist/forms/stock-card.js +6 -0
- package/dist/forms/wmr.d.ts +32 -0
- package/dist/forms/wmr.js +6 -0
- package/dist/gam/components/gam-report-workbench.d.ts +40 -0
- package/dist/gam/components/gam-report-workbench.js +2 -0
- package/dist/gam/components/grand-total-computation.d.ts +10 -0
- package/dist/gam/components/grand-total-computation.js +26 -0
- package/dist/gam/components/iar-preview.d.ts +30 -0
- package/dist/gam/components/iar-preview.js +150 -0
- package/dist/gam/components/ics-preview.d.ts +31 -0
- package/dist/gam/components/ics-preview.js +114 -0
- package/dist/gam/components/iirup-preview.d.ts +42 -0
- package/dist/gam/components/iirup-preview.js +237 -0
- package/dist/gam/components/itr-preview.d.ts +31 -0
- package/dist/gam/components/itr-preview.js +180 -0
- package/dist/gam/components/par-preview.d.ts +28 -0
- package/dist/gam/components/par-preview.js +95 -0
- package/dist/gam/components/ppelc-preview.d.ts +28 -0
- package/dist/gam/components/ppelc-preview.js +128 -0
- package/dist/gam/components/property-card-preview.d.ts +21 -0
- package/dist/gam/components/property-card-preview.js +117 -0
- package/dist/gam/components/ptr-preview.d.ts +36 -0
- package/dist/gam/components/ptr-preview.js +122 -0
- package/dist/gam/components/purchase-order-page-client.d.ts +66 -0
- package/dist/gam/components/purchase-order-page-client.js +179 -0
- package/dist/gam/components/reg-spi-preview.d.ts +28 -0
- package/dist/gam/components/reg-spi-preview.js +138 -0
- package/dist/gam/components/ris-form.d.ts +13 -0
- package/dist/gam/components/ris-form.js +20 -0
- package/dist/gam/components/ris-preview.d.ts +7 -0
- package/dist/gam/components/ris-preview.js +16 -0
- package/dist/gam/components/rlsddp-preview.d.ts +34 -0
- package/dist/gam/components/rlsddp-preview.js +251 -0
- package/dist/gam/components/rlsddsp-preview.d.ts +33 -0
- package/dist/gam/components/rlsddsp-preview.js +226 -0
- package/dist/gam/components/rpci-preview.d.ts +27 -0
- package/dist/gam/components/rpci-preview.js +123 -0
- package/dist/gam/components/rpcppe-preview.d.ts +28 -0
- package/dist/gam/components/rpcppe-preview.js +133 -0
- package/dist/gam/components/rpcsp-preview.d.ts +29 -0
- package/dist/gam/components/rpcsp-preview.js +81 -0
- package/dist/gam/components/rspi-preview.d.ts +23 -0
- package/dist/gam/components/rspi-preview.js +72 -0
- package/dist/gam/components/spc-preview.d.ts +23 -0
- package/dist/gam/components/spc-preview.js +149 -0
- package/dist/gam/components/splc-entry-form.d.ts +14 -0
- package/dist/gam/components/splc-entry-form.js +6 -0
- package/dist/gam/components/splc-preview.d.ts +27 -0
- package/dist/gam/components/splc-preview.js +192 -0
- package/dist/gam/components/stock-card-preview.d.ts +14 -0
- package/dist/gam/components/stock-card-preview.js +17 -0
- package/dist/gam/config/new-report-config.d.ts +1094 -0
- package/dist/gam/config/new-report-config.js +1478 -0
- package/dist/gam/purchase-order-flow.d.ts +146 -0
- package/dist/gam/purchase-order-flow.js +173 -0
- package/dist/gam/purchase-request/workflow.d.ts +19 -0
- package/dist/gam/purchase-request/workflow.js +45 -0
- package/dist/gam/types/ris-types.d.ts +37 -0
- package/dist/gam/types/ris-types.js +1 -0
- package/dist/gam/utils/export-ics-xlsx.d.ts +28 -0
- package/dist/gam/utils/export-ics-xlsx.js +273 -0
- package/dist/gam/utils/export-par-xlsx.d.ts +18 -0
- package/dist/gam/utils/export-par-xlsx.js +181 -0
- package/dist/gam/utils/export-preview-pdf.d.ts +13 -0
- package/dist/gam/utils/export-preview-pdf.js +270 -0
- package/dist/gam/utils/export-report-xlsx.d.ts +228 -0
- package/dist/gam/utils/export-report-xlsx.js +873 -0
- package/dist/gam/utils/line-totals.d.ts +6 -0
- package/dist/gam/utils/line-totals.js +18 -0
- package/dist/gam/utils/monetary-input.d.ts +6 -0
- package/dist/gam/utils/monetary-input.js +18 -0
- package/dist/gam/utils/print-element.d.ts +8 -0
- package/dist/gam/utils/print-element.js +157 -0
- package/dist/government-form.d.ts +16 -0
- package/dist/government-form.js +45 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.js +50 -0
- package/dist/internal/components/configurable-form-layout.d.ts +20 -0
- package/dist/internal/components/configurable-form-layout.js +49 -0
- package/dist/internal/components/ui/badge.d.ts +7 -0
- package/dist/internal/components/ui/badge.js +34 -0
- package/dist/internal/components/ui/button.d.ts +10 -0
- package/dist/internal/components/ui/button.js +35 -0
- package/dist/internal/components/ui/calendar.d.ts +8 -0
- package/dist/internal/components/ui/calendar.js +77 -0
- package/dist/internal/components/ui/command.d.ts +19 -0
- package/dist/internal/components/ui/command.js +36 -0
- package/dist/internal/components/ui/date-input.d.ts +14 -0
- package/dist/internal/components/ui/date-input.js +33 -0
- package/dist/internal/components/ui/date-picker.d.ts +19 -0
- package/dist/internal/components/ui/date-picker.js +34 -0
- package/dist/internal/components/ui/dialog.d.ts +18 -0
- package/dist/internal/components/ui/dialog.js +38 -0
- package/dist/internal/components/ui/input-group.d.ts +18 -0
- package/dist/internal/components/ui/input-group.js +57 -0
- package/dist/internal/components/ui/input.d.ts +3 -0
- package/dist/internal/components/ui/input.js +12 -0
- package/dist/internal/components/ui/label.d.ts +3 -0
- package/dist/internal/components/ui/label.js +7 -0
- package/dist/internal/components/ui/popover.d.ts +9 -0
- package/dist/internal/components/ui/popover.js +23 -0
- package/dist/internal/components/ui/select.d.ts +17 -0
- package/dist/internal/components/ui/select.js +35 -0
- package/dist/internal/components/ui/switch.d.ts +5 -0
- package/dist/internal/components/ui/switch.js +8 -0
- package/dist/internal/components/ui/table.d.ts +10 -0
- package/dist/internal/components/ui/table.js +28 -0
- package/dist/internal/components/ui/tabs.d.ts +10 -0
- package/dist/internal/components/ui/tabs.js +29 -0
- package/dist/internal/components/ui/textarea.d.ts +3 -0
- package/dist/internal/components/ui/textarea.js +7 -0
- package/dist/internal/components/ui/tooltip.d.ts +6 -0
- package/dist/internal/components/ui/tooltip.js +17 -0
- package/dist/internal/contracts/modules/v1/reg-spi-reports/reg-spi-reports.schema.d.ts +112 -0
- package/dist/internal/contracts/modules/v1/reg-spi-reports/reg-spi-reports.schema.js +91 -0
- package/dist/internal/hooks/use-form-field-order.d.ts +7 -0
- package/dist/internal/hooks/use-form-field-order.js +43 -0
- package/dist/internal/lib/utils.d.ts +2 -0
- package/dist/internal/lib/utils.js +3 -0
- package/dist/inventory/components/inventory-item-form.d.ts +7 -0
- package/dist/inventory/components/inventory-item-form.js +5 -0
- package/dist/inventory/components/inventory-item-preview.d.ts +6 -0
- package/dist/inventory/components/inventory-item-preview.js +5 -0
- package/dist/inventory/iar.d.ts +4 -0
- package/dist/inventory/iar.js +4 -0
- package/dist/inventory/ics.d.ts +2 -0
- package/dist/inventory/ics.js +3 -0
- package/dist/inventory/iirup.d.ts +2 -0
- package/dist/inventory/iirup.js +3 -0
- package/dist/inventory/iirusp.d.ts +4 -0
- package/dist/inventory/iirusp.js +4 -0
- package/dist/inventory/index.d.ts +3 -0
- package/dist/inventory/index.js +4 -0
- package/dist/inventory/item.d.ts +3 -0
- package/dist/inventory/item.js +3 -0
- package/dist/inventory/itr.d.ts +4 -0
- package/dist/inventory/itr.js +4 -0
- package/dist/inventory/par.d.ts +2 -0
- package/dist/inventory/par.js +3 -0
- package/dist/inventory/po.d.ts +2 -0
- package/dist/inventory/po.js +2 -0
- package/dist/inventory/ppelc.d.ts +2 -0
- package/dist/inventory/ppelc.js +3 -0
- package/dist/inventory/pplc.d.ts +2 -0
- package/dist/inventory/pplc.js +4 -0
- package/dist/inventory/pr.d.ts +4 -0
- package/dist/inventory/pr.js +4 -0
- package/dist/inventory/property-card.d.ts +2 -0
- package/dist/inventory/property-card.js +3 -0
- package/dist/inventory/ptr.d.ts +2 -0
- package/dist/inventory/ptr.js +3 -0
- package/dist/inventory/regspi.d.ts +4 -0
- package/dist/inventory/regspi.js +4 -0
- package/dist/inventory/ris.d.ts +4 -0
- package/dist/inventory/ris.js +4 -0
- package/dist/inventory/rlsddp.d.ts +4 -0
- package/dist/inventory/rlsddp.js +4 -0
- package/dist/inventory/rlsddsp.d.ts +2 -0
- package/dist/inventory/rlsddsp.js +3 -0
- package/dist/inventory/rpci.d.ts +2 -0
- package/dist/inventory/rpci.js +3 -0
- package/dist/inventory/rpcppe.d.ts +2 -0
- package/dist/inventory/rpcppe.js +3 -0
- package/dist/inventory/rpcsp.d.ts +2 -0
- package/dist/inventory/rpcsp.js +3 -0
- package/dist/inventory/rrsp.d.ts +2 -0
- package/dist/inventory/rrsp.js +3 -0
- package/dist/inventory/rsmi.d.ts +4 -0
- package/dist/inventory/rsmi.js +4 -0
- package/dist/inventory/rsmp.d.ts +4 -0
- package/dist/inventory/rsmp.js +4 -0
- package/dist/inventory/rspi.d.ts +2 -0
- package/dist/inventory/rspi.js +3 -0
- package/dist/inventory/spc.d.ts +2 -0
- package/dist/inventory/spc.js +3 -0
- package/dist/inventory/splc.d.ts +3 -0
- package/dist/inventory/splc.js +4 -0
- package/dist/inventory/stock-card.d.ts +4 -0
- package/dist/inventory/stock-card.js +4 -0
- package/dist/inventory/types.d.ts +11 -0
- package/dist/inventory/types.js +1 -0
- package/dist/inventory/wmr.d.ts +4 -0
- package/dist/inventory/wmr.js +4 -0
- package/dist/lib/rpcsp-accountable-person.d.ts +1 -0
- package/dist/lib/rpcsp-accountable-person.js +10 -0
- package/dist/reports/iar/_components/create-form.d.ts +13 -0
- package/dist/reports/iar/_components/create-form.js +92 -0
- package/dist/reports/iar/_components/document-preview.d.ts +11 -0
- package/dist/reports/iar/_components/document-preview.js +131 -0
- package/dist/reports/iar/types.d.ts +97 -0
- package/dist/reports/iar/types.js +24 -0
- package/dist/reports/iirusp/_components/create-form.d.ts +17 -0
- package/dist/reports/iirusp/_components/create-form.js +118 -0
- package/dist/reports/iirusp/_components/document-preview.d.ts +8 -0
- package/dist/reports/iirusp/_components/document-preview.js +389 -0
- package/dist/reports/iirusp/types.d.ts +134 -0
- package/dist/reports/iirusp/types.js +29 -0
- package/dist/reports/iirusp/utils.d.ts +29 -0
- package/dist/reports/iirusp/utils.js +488 -0
- package/dist/reports/itr/_components/create-form.d.ts +28 -0
- package/dist/reports/itr/_components/create-form.js +90 -0
- package/dist/reports/itr/_components/document-preview.d.ts +6 -0
- package/dist/reports/itr/_components/document-preview.js +7 -0
- package/dist/reports/itr/types.d.ts +68 -0
- package/dist/reports/itr/types.js +27 -0
- package/dist/reports/itr/utils.d.ts +24 -0
- package/dist/reports/itr/utils.js +76 -0
- package/dist/reports/pr/_components/create-form.d.ts +16 -0
- package/dist/reports/pr/_components/create-form.js +52 -0
- package/dist/reports/pr/_components/document-preview.d.ts +7 -0
- package/dist/reports/pr/_components/document-preview.js +9 -0
- package/dist/reports/pr/types.d.ts +69 -0
- package/dist/reports/pr/types.js +1 -0
- package/dist/reports/pr/utils.d.ts +72 -0
- package/dist/reports/pr/utils.js +572 -0
- package/dist/reports/regspi/_components/create-form.d.ts +19 -0
- package/dist/reports/regspi/_components/create-form.js +33 -0
- package/dist/reports/regspi/_components/document-preview.d.ts +6 -0
- package/dist/reports/regspi/_components/document-preview.js +7 -0
- package/dist/reports/regspi/types.d.ts +29 -0
- package/dist/reports/regspi/types.js +24 -0
- package/dist/reports/regspi/utils.d.ts +48 -0
- package/dist/reports/regspi/utils.js +98 -0
- package/dist/reports/ris/_components/create-form.d.ts +36 -0
- package/dist/reports/ris/_components/create-form.js +149 -0
- package/dist/reports/ris/_components/document-preview.d.ts +8 -0
- package/dist/reports/ris/_components/document-preview.js +31 -0
- package/dist/reports/ris/types.d.ts +93 -0
- package/dist/reports/ris/types.js +1 -0
- package/dist/reports/rlsddp/_components/create-form.d.ts +11 -0
- package/dist/reports/rlsddp/_components/create-form.js +165 -0
- package/dist/reports/rlsddp/_components/document-preview.d.ts +8 -0
- package/dist/reports/rlsddp/_components/document-preview.js +15 -0
- package/dist/reports/rlsddp/types.d.ts +105 -0
- package/dist/reports/rlsddp/types.js +31 -0
- package/dist/reports/rrsp/components/rrsp-preview.d.ts +21 -0
- package/dist/reports/rrsp/components/rrsp-preview.js +155 -0
- package/dist/reports/rsmi/components/rsmi-create-form.d.ts +20 -0
- package/dist/reports/rsmi/components/rsmi-create-form.js +8 -0
- package/dist/reports/rsmi/components/rsmi-document-body.d.ts +15 -0
- package/dist/reports/rsmi/components/rsmi-document-body.js +12 -0
- package/dist/reports/rsmi/components/rsmi-types.d.ts +45 -0
- package/dist/reports/rsmi/components/rsmi-types.js +1 -0
- package/dist/reports/rsmi/components/rsmi-utils.d.ts +2 -0
- package/dist/reports/rsmi/components/rsmi-utils.js +18 -0
- package/dist/reports/rsmp/components/rsmp-create-modal.d.ts +5 -0
- package/dist/reports/rsmp/components/rsmp-create-modal.js +7 -0
- package/dist/reports/rsmp/components/rsmp-preview-modal.d.ts +11 -0
- package/dist/reports/rsmp/components/rsmp-preview-modal.js +47 -0
- package/dist/reports/rsmp/components/rsmp-types.d.ts +44 -0
- package/dist/reports/rsmp/components/rsmp-types.js +1 -0
- package/dist/reports/rsmp/components/rsmp-utils.d.ts +5 -0
- package/dist/reports/rsmp/components/rsmp-utils.js +41 -0
- package/dist/reports/rsmp/lib/rsmp-grouping.d.ts +14 -0
- package/dist/reports/rsmp/lib/rsmp-grouping.js +75 -0
- package/dist/reports/stock-card/_components/create-form.d.ts +13 -0
- package/dist/reports/stock-card/_components/create-form.js +39 -0
- package/dist/reports/stock-card/_components/document-preview.d.ts +7 -0
- package/dist/reports/stock-card/_components/document-preview.js +29 -0
- package/dist/reports/stock-card/types.d.ts +31 -0
- package/dist/reports/stock-card/types.js +1 -0
- package/dist/reports/stock-card/utils.d.ts +32 -0
- package/dist/reports/stock-card/utils.js +248 -0
- package/dist/reports/wmr/_components/create-form.d.ts +22 -0
- package/dist/reports/wmr/_components/create-form.js +61 -0
- package/dist/reports/wmr/_components/document-preview.d.ts +10 -0
- package/dist/reports/wmr/_components/document-preview.js +59 -0
- package/dist/reports/wmr/types.d.ts +45 -0
- package/dist/reports/wmr/types.js +1 -0
- package/dist/reports/wmr/utils.d.ts +32 -0
- package/dist/reports/wmr/utils.js +343 -0
- package/dist/styles.css +4492 -0
- package/extraction-manifest.json +620 -0
- package/package.json +197 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { newReportConfigs } from './gam/config/new-report-config.js';
|
|
2
|
+
export const formDefinitions = {
|
|
3
|
+
...newReportConfigs,
|
|
4
|
+
rsmp: {
|
|
5
|
+
title: 'Report of Supplies and Materials Purchased (RSMP)',
|
|
6
|
+
description: 'Supplies and materials purchased, with purchase order and invoice references.',
|
|
7
|
+
reportCode: 'RSMP',
|
|
8
|
+
fields: [
|
|
9
|
+
{ id: 'rsmpNo', label: 'RSMP No.', type: 'text' },
|
|
10
|
+
{ id: 'reportMonth', label: 'For the Month of (YYYY-MM)', type: 'text' },
|
|
11
|
+
{ id: 'reportDate', label: 'Report Date', type: 'date' },
|
|
12
|
+
{ id: 'supplier', label: 'Supplier', type: 'text' },
|
|
13
|
+
{ id: 'poNo', label: 'P.O. No.', type: 'text' },
|
|
14
|
+
{ id: 'poDate', label: 'P.O. Date', type: 'date' },
|
|
15
|
+
{ id: 'invoiceNo', label: 'Invoice No.', type: 'text' },
|
|
16
|
+
{ id: 'invoiceDate', label: 'Invoice Date', type: 'date' },
|
|
17
|
+
{ id: 'itemCode', label: 'Item Code', type: 'text' },
|
|
18
|
+
{ id: 'unitOfMeasurement', label: 'Unit', type: 'text' },
|
|
19
|
+
{ id: 'itemName', label: 'Item Description', type: 'textarea' },
|
|
20
|
+
{ id: 'quantityPurchased', label: 'Quantity Purchased', type: 'number' },
|
|
21
|
+
{ id: 'unitCost', label: 'Unit Cost', type: 'number' },
|
|
22
|
+
{ id: 'referenceDoc', label: 'Reference Document', type: 'text' },
|
|
23
|
+
{ id: 'status', label: 'Status', type: 'select', options: ['Draft', 'Submitted', 'Approved', 'Cancelled'] },
|
|
24
|
+
{ id: 'preparedBy', label: 'Prepared By', type: 'text' },
|
|
25
|
+
{ id: 'notedBy', label: 'Noted By', type: 'text' },
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
export const formCodes = Object.keys(formDefinitions);
|
|
30
|
+
export { newReportConfigs };
|
|
31
|
+
/** Local calendar date, without shifting the date through UTC. Supply today for deterministic initialization. */
|
|
32
|
+
export function createFormValues(definition, today = new Date()) {
|
|
33
|
+
const date = `${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, '0')}-${String(today.getDate()).padStart(2, '0')}`;
|
|
34
|
+
return { values: Object.fromEntries(definition.fields.map(field => [field.id, field.defaultToday ? date : ''])), rows: [] };
|
|
35
|
+
}
|
|
36
|
+
/** UI validation only. The receiving server must enforce authorization and business rules. */
|
|
37
|
+
export function validateFormValues(definition, data) {
|
|
38
|
+
const errors = {};
|
|
39
|
+
function validate(field, value, key) {
|
|
40
|
+
const text = value.trim();
|
|
41
|
+
if (!text) {
|
|
42
|
+
if (field.required && !('autoGenerate' in field && field.autoGenerate))
|
|
43
|
+
errors[key] = `${field.label} is required.`;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (field.type === 'number' && (!Number.isFinite(Number(text)) || (field.numberType === 'int' && !Number.isInteger(Number(text)))))
|
|
47
|
+
errors[key] = `${field.label} must be a valid ${field.numberType === 'int' ? 'integer' : 'number'}.`;
|
|
48
|
+
if (field.type === 'select' && field.options && !field.options.includes(text))
|
|
49
|
+
errors[key] = `Choose a valid ${field.label}.`;
|
|
50
|
+
if (field.type === 'date') {
|
|
51
|
+
const parsed = new Date(`${text}T00:00:00.000Z`);
|
|
52
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(text) || !Number.isFinite(parsed.getTime()) || parsed.toISOString().slice(0, 10) !== text)
|
|
53
|
+
errors[key] = `${field.label} must be a valid date.`;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
for (const field of definition.fields)
|
|
57
|
+
validate(field, data.values[field.id] ?? '', `values.${field.id}`);
|
|
58
|
+
data.rows.forEach((row, index) => definition.tableFields?.forEach(field => validate(field, row[field.id] ?? '', `rows.${index}.${field.id}`)));
|
|
59
|
+
return errors;
|
|
60
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
regulatoryBasis: string;
|
|
7
|
+
story: string;
|
|
8
|
+
acceptanceChecks: string[];
|
|
9
|
+
fields: ({
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: "text";
|
|
13
|
+
required: true;
|
|
14
|
+
autoGenerate: true;
|
|
15
|
+
readonly: true;
|
|
16
|
+
options?: undefined;
|
|
17
|
+
placeholder?: undefined;
|
|
18
|
+
searchable?: undefined;
|
|
19
|
+
defaultToday?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
type: "select";
|
|
24
|
+
required: true;
|
|
25
|
+
options: string[];
|
|
26
|
+
autoGenerate?: undefined;
|
|
27
|
+
readonly?: undefined;
|
|
28
|
+
placeholder?: undefined;
|
|
29
|
+
searchable?: undefined;
|
|
30
|
+
defaultToday?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
id: string;
|
|
33
|
+
label: string;
|
|
34
|
+
type: "select";
|
|
35
|
+
required: false;
|
|
36
|
+
placeholder: string;
|
|
37
|
+
options: never[];
|
|
38
|
+
searchable: true;
|
|
39
|
+
autoGenerate?: undefined;
|
|
40
|
+
readonly?: undefined;
|
|
41
|
+
defaultToday?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
type: "text";
|
|
46
|
+
required: false;
|
|
47
|
+
readonly: true;
|
|
48
|
+
placeholder: string;
|
|
49
|
+
autoGenerate?: undefined;
|
|
50
|
+
options?: undefined;
|
|
51
|
+
searchable?: undefined;
|
|
52
|
+
defaultToday?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
id: string;
|
|
55
|
+
label: string;
|
|
56
|
+
type: "date";
|
|
57
|
+
required: false;
|
|
58
|
+
defaultToday: true;
|
|
59
|
+
autoGenerate?: undefined;
|
|
60
|
+
readonly?: undefined;
|
|
61
|
+
options?: undefined;
|
|
62
|
+
placeholder?: undefined;
|
|
63
|
+
searchable?: undefined;
|
|
64
|
+
} | {
|
|
65
|
+
id: string;
|
|
66
|
+
label: string;
|
|
67
|
+
type: "date";
|
|
68
|
+
required: false;
|
|
69
|
+
autoGenerate?: undefined;
|
|
70
|
+
readonly?: undefined;
|
|
71
|
+
options?: undefined;
|
|
72
|
+
placeholder?: undefined;
|
|
73
|
+
searchable?: undefined;
|
|
74
|
+
defaultToday?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
id: string;
|
|
77
|
+
label: string;
|
|
78
|
+
type: "text";
|
|
79
|
+
required: false;
|
|
80
|
+
autoGenerate?: undefined;
|
|
81
|
+
readonly?: undefined;
|
|
82
|
+
options?: undefined;
|
|
83
|
+
placeholder?: undefined;
|
|
84
|
+
searchable?: undefined;
|
|
85
|
+
defaultToday?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
id: string;
|
|
88
|
+
label: string;
|
|
89
|
+
type: "text";
|
|
90
|
+
required: true;
|
|
91
|
+
autoGenerate?: undefined;
|
|
92
|
+
readonly?: undefined;
|
|
93
|
+
options?: undefined;
|
|
94
|
+
placeholder?: undefined;
|
|
95
|
+
searchable?: undefined;
|
|
96
|
+
defaultToday?: undefined;
|
|
97
|
+
} | {
|
|
98
|
+
id: string;
|
|
99
|
+
label: string;
|
|
100
|
+
type: "date";
|
|
101
|
+
required: true;
|
|
102
|
+
autoGenerate?: undefined;
|
|
103
|
+
readonly?: undefined;
|
|
104
|
+
options?: undefined;
|
|
105
|
+
placeholder?: undefined;
|
|
106
|
+
searchable?: undefined;
|
|
107
|
+
defaultToday?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
id: string;
|
|
110
|
+
label: string;
|
|
111
|
+
type: "textarea";
|
|
112
|
+
required: false;
|
|
113
|
+
autoGenerate?: undefined;
|
|
114
|
+
readonly?: undefined;
|
|
115
|
+
options?: undefined;
|
|
116
|
+
placeholder?: undefined;
|
|
117
|
+
searchable?: undefined;
|
|
118
|
+
defaultToday?: undefined;
|
|
119
|
+
})[];
|
|
120
|
+
tableFields: ({
|
|
121
|
+
id: string;
|
|
122
|
+
label: string;
|
|
123
|
+
type: "text";
|
|
124
|
+
required: false;
|
|
125
|
+
readonly: true;
|
|
126
|
+
options?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
id: string;
|
|
129
|
+
label: string;
|
|
130
|
+
type: "select";
|
|
131
|
+
required: true;
|
|
132
|
+
options: string[];
|
|
133
|
+
readonly: true;
|
|
134
|
+
} | {
|
|
135
|
+
id: string;
|
|
136
|
+
label: string;
|
|
137
|
+
type: "text";
|
|
138
|
+
required: true;
|
|
139
|
+
readonly: true;
|
|
140
|
+
options?: undefined;
|
|
141
|
+
} | {
|
|
142
|
+
id: string;
|
|
143
|
+
label: string;
|
|
144
|
+
type: "number";
|
|
145
|
+
required: true;
|
|
146
|
+
readonly: true;
|
|
147
|
+
options?: undefined;
|
|
148
|
+
} | {
|
|
149
|
+
id: string;
|
|
150
|
+
label: string;
|
|
151
|
+
type: "number";
|
|
152
|
+
required: false;
|
|
153
|
+
readonly?: undefined;
|
|
154
|
+
options?: undefined;
|
|
155
|
+
} | {
|
|
156
|
+
id: string;
|
|
157
|
+
label: string;
|
|
158
|
+
type: "number";
|
|
159
|
+
required: false;
|
|
160
|
+
readonly: true;
|
|
161
|
+
options?: undefined;
|
|
162
|
+
} | {
|
|
163
|
+
id: string;
|
|
164
|
+
label: string;
|
|
165
|
+
type: "textarea";
|
|
166
|
+
required: false;
|
|
167
|
+
readonly: true;
|
|
168
|
+
options?: undefined;
|
|
169
|
+
})[];
|
|
170
|
+
initialRows: never[];
|
|
171
|
+
};
|
|
172
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["iar"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "iar" }); }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
regulatoryBasis: string;
|
|
7
|
+
story: string;
|
|
8
|
+
acceptanceChecks: string[];
|
|
9
|
+
fields: ({
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: "text";
|
|
13
|
+
required: true;
|
|
14
|
+
} | {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
type: "text";
|
|
18
|
+
required: false;
|
|
19
|
+
} | {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
type: "textarea";
|
|
23
|
+
required: false;
|
|
24
|
+
})[];
|
|
25
|
+
tableFields: ({
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
type: "number";
|
|
29
|
+
required: true;
|
|
30
|
+
} | {
|
|
31
|
+
id: string;
|
|
32
|
+
label: string;
|
|
33
|
+
type: "text";
|
|
34
|
+
required: false;
|
|
35
|
+
} | {
|
|
36
|
+
id: string;
|
|
37
|
+
label: string;
|
|
38
|
+
type: "number";
|
|
39
|
+
required: false;
|
|
40
|
+
} | {
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
type: "text";
|
|
44
|
+
required: true;
|
|
45
|
+
})[];
|
|
46
|
+
initialRows: never[];
|
|
47
|
+
};
|
|
48
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["ics"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "ics" }); }
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
regulatoryBasis: string;
|
|
7
|
+
story: string;
|
|
8
|
+
acceptanceChecks: string[];
|
|
9
|
+
fields: ({
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: "date";
|
|
13
|
+
required: true;
|
|
14
|
+
defaultToday: true;
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
type: "text";
|
|
19
|
+
required: true;
|
|
20
|
+
defaultToday?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
type: "date";
|
|
25
|
+
required: true;
|
|
26
|
+
defaultToday?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
id: string;
|
|
29
|
+
label: string;
|
|
30
|
+
type: "textarea";
|
|
31
|
+
required: true;
|
|
32
|
+
defaultToday?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
type: "number";
|
|
37
|
+
required: true;
|
|
38
|
+
defaultToday?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
id: string;
|
|
41
|
+
label: string;
|
|
42
|
+
type: "textarea";
|
|
43
|
+
required: false;
|
|
44
|
+
defaultToday?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
id: string;
|
|
47
|
+
label: string;
|
|
48
|
+
type: "text";
|
|
49
|
+
required: false;
|
|
50
|
+
defaultToday?: undefined;
|
|
51
|
+
})[];
|
|
52
|
+
initialRows: never[];
|
|
53
|
+
};
|
|
54
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["iirup"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "iirup" }); }
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
regulatoryBasis: string;
|
|
7
|
+
story: string;
|
|
8
|
+
acceptanceChecks: string[];
|
|
9
|
+
fields: ({
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: "text";
|
|
13
|
+
required: true;
|
|
14
|
+
} | {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
type: "date";
|
|
18
|
+
required: true;
|
|
19
|
+
} | {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
type: "textarea";
|
|
23
|
+
required: true;
|
|
24
|
+
} | {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
type: "number";
|
|
28
|
+
required: true;
|
|
29
|
+
})[];
|
|
30
|
+
initialRows: never[];
|
|
31
|
+
};
|
|
32
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["iirusp"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "iirusp" }); }
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
regulatoryBasis: string;
|
|
7
|
+
story: string;
|
|
8
|
+
acceptanceChecks: string[];
|
|
9
|
+
fields: ({
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: "text";
|
|
13
|
+
required: true;
|
|
14
|
+
options?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
type: "date";
|
|
19
|
+
required: true;
|
|
20
|
+
options?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
type: "select";
|
|
25
|
+
required: true;
|
|
26
|
+
options: string[];
|
|
27
|
+
} | {
|
|
28
|
+
id: string;
|
|
29
|
+
label: string;
|
|
30
|
+
type: "textarea";
|
|
31
|
+
required: true;
|
|
32
|
+
options?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
type: "number";
|
|
37
|
+
required: true;
|
|
38
|
+
options?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
initialRows: never[];
|
|
41
|
+
};
|
|
42
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["itr"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "itr" }); }
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
regulatoryBasis: string;
|
|
7
|
+
story: string;
|
|
8
|
+
acceptanceChecks: string[];
|
|
9
|
+
fields: ({
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: "text";
|
|
13
|
+
required: false;
|
|
14
|
+
options?: undefined;
|
|
15
|
+
placeholder?: undefined;
|
|
16
|
+
autoGenerate?: undefined;
|
|
17
|
+
readonly?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
type: "select";
|
|
22
|
+
required: true;
|
|
23
|
+
options: string[];
|
|
24
|
+
placeholder: string;
|
|
25
|
+
autoGenerate?: undefined;
|
|
26
|
+
readonly?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
id: string;
|
|
29
|
+
label: string;
|
|
30
|
+
type: "text";
|
|
31
|
+
required: true;
|
|
32
|
+
options?: undefined;
|
|
33
|
+
placeholder?: undefined;
|
|
34
|
+
autoGenerate?: undefined;
|
|
35
|
+
readonly?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
type: "text";
|
|
40
|
+
required: true;
|
|
41
|
+
autoGenerate: true;
|
|
42
|
+
readonly: true;
|
|
43
|
+
options?: undefined;
|
|
44
|
+
placeholder?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
id: string;
|
|
47
|
+
label: string;
|
|
48
|
+
type: "number";
|
|
49
|
+
required: true;
|
|
50
|
+
options?: undefined;
|
|
51
|
+
placeholder?: undefined;
|
|
52
|
+
autoGenerate?: undefined;
|
|
53
|
+
readonly?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
id: string;
|
|
56
|
+
label: string;
|
|
57
|
+
type: "textarea";
|
|
58
|
+
required: true;
|
|
59
|
+
options?: undefined;
|
|
60
|
+
placeholder?: undefined;
|
|
61
|
+
autoGenerate?: undefined;
|
|
62
|
+
readonly?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: string;
|
|
65
|
+
label: string;
|
|
66
|
+
type: "date";
|
|
67
|
+
required: true;
|
|
68
|
+
options?: undefined;
|
|
69
|
+
placeholder?: undefined;
|
|
70
|
+
autoGenerate?: undefined;
|
|
71
|
+
readonly?: undefined;
|
|
72
|
+
} | {
|
|
73
|
+
id: string;
|
|
74
|
+
label: string;
|
|
75
|
+
type: "date";
|
|
76
|
+
required: false;
|
|
77
|
+
options?: undefined;
|
|
78
|
+
placeholder?: undefined;
|
|
79
|
+
autoGenerate?: undefined;
|
|
80
|
+
readonly?: undefined;
|
|
81
|
+
})[];
|
|
82
|
+
initialRows: never[];
|
|
83
|
+
};
|
|
84
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["par"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "par" }); }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
moduleKey: string;
|
|
7
|
+
regulatoryBasis: string;
|
|
8
|
+
story: string;
|
|
9
|
+
acceptanceChecks: string[];
|
|
10
|
+
fields: {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
type: "text";
|
|
14
|
+
required: true;
|
|
15
|
+
}[];
|
|
16
|
+
tableFields: ({
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
type: "date";
|
|
20
|
+
required: true;
|
|
21
|
+
} | {
|
|
22
|
+
id: string;
|
|
23
|
+
label: string;
|
|
24
|
+
type: "text";
|
|
25
|
+
required: true;
|
|
26
|
+
} | {
|
|
27
|
+
id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
type: "number";
|
|
30
|
+
required: true;
|
|
31
|
+
})[];
|
|
32
|
+
initialRows: never[];
|
|
33
|
+
};
|
|
34
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["ppelc"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "ppelc" }); }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
regulatoryBasis: string;
|
|
7
|
+
story: string;
|
|
8
|
+
acceptanceChecks: string[];
|
|
9
|
+
fields: ({
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: "text";
|
|
13
|
+
required: true;
|
|
14
|
+
} | {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
type: "number";
|
|
18
|
+
required: true;
|
|
19
|
+
} | {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
type: "date";
|
|
23
|
+
required: true;
|
|
24
|
+
})[];
|
|
25
|
+
initialRows: never[];
|
|
26
|
+
};
|
|
27
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|
package/dist/forms/pr.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { GovernmentForm } from '../government-form.js';
|
|
4
|
+
import { formDefinitions } from '../definitions.js';
|
|
5
|
+
export const definition = formDefinitions["pr"];
|
|
6
|
+
export function Form(props) { return _jsx(GovernmentForm, { ...props, code: "pr" }); }
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type GovernmentFormProps } from '../government-form.js';
|
|
2
|
+
export declare const definition: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
reportCode: string;
|
|
6
|
+
moduleKey: string;
|
|
7
|
+
regulatoryBasis: string;
|
|
8
|
+
story: string;
|
|
9
|
+
acceptanceChecks: string[];
|
|
10
|
+
fields: {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
type: "text";
|
|
14
|
+
required: true;
|
|
15
|
+
}[];
|
|
16
|
+
tableFields: ({
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
type: "date";
|
|
20
|
+
required: true;
|
|
21
|
+
numberType?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
type: "text";
|
|
26
|
+
required: true;
|
|
27
|
+
numberType?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
type: "number";
|
|
32
|
+
numberType: "int";
|
|
33
|
+
required: true;
|
|
34
|
+
} | {
|
|
35
|
+
id: string;
|
|
36
|
+
label: string;
|
|
37
|
+
type: "number";
|
|
38
|
+
numberType: "float";
|
|
39
|
+
required: true;
|
|
40
|
+
} | {
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
type: "textarea";
|
|
44
|
+
required: true;
|
|
45
|
+
numberType?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
initialRows: {
|
|
48
|
+
values: {
|
|
49
|
+
entityName: string;
|
|
50
|
+
fundCluster: string;
|
|
51
|
+
propertyPlantEquipment: string;
|
|
52
|
+
description: string;
|
|
53
|
+
propertyNumber: string;
|
|
54
|
+
};
|
|
55
|
+
tableRows: {
|
|
56
|
+
entryDate: string;
|
|
57
|
+
referenceParNo: string;
|
|
58
|
+
receiptQty: string;
|
|
59
|
+
issueTransferDisposalQty: string;
|
|
60
|
+
issueTransferDisposalOfficeOfficer: string;
|
|
61
|
+
balanceQty: string;
|
|
62
|
+
amount: string;
|
|
63
|
+
remarks: string;
|
|
64
|
+
}[];
|
|
65
|
+
status: string;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
export declare function Form(props: Omit<GovernmentFormProps, 'code'>): import("react/jsx-runtime").JSX.Element;
|