@finsys/core 1.4.0 → 1.4.2
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/dist/data/form-field-base-specs.json +1 -168
- package/dist/index.cjs +2 -168
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -168
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/utils.ts
|
|
2
2
|
function getPastMonthLabel(monthsAgo) {
|
|
3
3
|
const date = /* @__PURE__ */ new Date();
|
|
4
|
+
date.setDate(1);
|
|
4
5
|
date.setMonth(date.getMonth() - monthsAgo);
|
|
5
6
|
return date.toLocaleString("default", { month: "long" });
|
|
6
7
|
}
|
|
@@ -1264,14 +1265,6 @@ var form_field_base_specs_default = {
|
|
|
1264
1265
|
{
|
|
1265
1266
|
id: "13",
|
|
1266
1267
|
name: "Document Upload"
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
id: "14",
|
|
1270
|
-
name: "SSM Company Profile Data"
|
|
1271
|
-
},
|
|
1272
|
-
{
|
|
1273
|
-
id: "15",
|
|
1274
|
-
name: "NRIC Data"
|
|
1275
1268
|
}
|
|
1276
1269
|
],
|
|
1277
1270
|
fields: [
|
|
@@ -1334,7 +1327,7 @@ var form_field_base_specs_default = {
|
|
|
1334
1327
|
title: "ID Number",
|
|
1335
1328
|
placeholder: "E.g. 700513065143",
|
|
1336
1329
|
isRequired: true,
|
|
1337
|
-
displayName: "IC Number
|
|
1330
|
+
displayName: "IC Number",
|
|
1338
1331
|
maxLength: 25,
|
|
1339
1332
|
inputType: "text",
|
|
1340
1333
|
validators: [
|
|
@@ -8619,165 +8612,6 @@ var form_field_base_specs_default = {
|
|
|
8619
8612
|
"payslipOtherDeductionT6"
|
|
8620
8613
|
],
|
|
8621
8614
|
category: "13"
|
|
8622
|
-
},
|
|
8623
|
-
{
|
|
8624
|
-
name: "ic",
|
|
8625
|
-
displayName: "Identity Card (NRIC)",
|
|
8626
|
-
type: "file",
|
|
8627
|
-
ihs_column_names: [
|
|
8628
|
-
"icName",
|
|
8629
|
-
"icNumber",
|
|
8630
|
-
"icAddress",
|
|
8631
|
-
"icGender",
|
|
8632
|
-
"icReligion",
|
|
8633
|
-
"icDateOfBirth",
|
|
8634
|
-
"icPlaceOfBirth",
|
|
8635
|
-
"icNationality",
|
|
8636
|
-
"icRace"
|
|
8637
|
-
],
|
|
8638
|
-
category: "13"
|
|
8639
|
-
},
|
|
8640
|
-
{
|
|
8641
|
-
name: "ssmCompanyName",
|
|
8642
|
-
displayName: "Company Name (SSM Profile)",
|
|
8643
|
-
type: "text",
|
|
8644
|
-
category: "14"
|
|
8645
|
-
},
|
|
8646
|
-
{
|
|
8647
|
-
name: "ssmCompanyRegNo",
|
|
8648
|
-
displayName: "Company Registration No (SSM Profile)",
|
|
8649
|
-
type: "text",
|
|
8650
|
-
category: "14"
|
|
8651
|
-
},
|
|
8652
|
-
{
|
|
8653
|
-
name: "ssmIncorporatedDate",
|
|
8654
|
-
displayName: "Incorporated Date (SSM Profile)",
|
|
8655
|
-
type: "text",
|
|
8656
|
-
inputType: "date",
|
|
8657
|
-
category: "14"
|
|
8658
|
-
},
|
|
8659
|
-
{
|
|
8660
|
-
name: "businessCommencementDate",
|
|
8661
|
-
displayName: "Business Commencement Date",
|
|
8662
|
-
type: "text",
|
|
8663
|
-
inputType: "date",
|
|
8664
|
-
category: "14"
|
|
8665
|
-
},
|
|
8666
|
-
{
|
|
8667
|
-
name: "businessNature",
|
|
8668
|
-
displayName: "Business Nature",
|
|
8669
|
-
type: "text",
|
|
8670
|
-
category: "14"
|
|
8671
|
-
},
|
|
8672
|
-
{
|
|
8673
|
-
name: "companyStatus",
|
|
8674
|
-
displayName: "Company Status (SSM)",
|
|
8675
|
-
type: "text",
|
|
8676
|
-
category: "14"
|
|
8677
|
-
},
|
|
8678
|
-
{
|
|
8679
|
-
name: "shareholders",
|
|
8680
|
-
displayName: "Shareholders",
|
|
8681
|
-
type: "text",
|
|
8682
|
-
category: "14"
|
|
8683
|
-
},
|
|
8684
|
-
{
|
|
8685
|
-
name: "directors",
|
|
8686
|
-
displayName: "Directors",
|
|
8687
|
-
type: "text",
|
|
8688
|
-
category: "14"
|
|
8689
|
-
},
|
|
8690
|
-
{
|
|
8691
|
-
name: "previousDirectors",
|
|
8692
|
-
displayName: "Previous Directors",
|
|
8693
|
-
type: "text",
|
|
8694
|
-
category: "14"
|
|
8695
|
-
},
|
|
8696
|
-
{
|
|
8697
|
-
name: "totalShareIssued",
|
|
8698
|
-
displayName: "Total Shares Issued",
|
|
8699
|
-
type: "text",
|
|
8700
|
-
category: "14"
|
|
8701
|
-
},
|
|
8702
|
-
{
|
|
8703
|
-
name: "companyLastOldName",
|
|
8704
|
-
displayName: "Previous Company Name",
|
|
8705
|
-
type: "text",
|
|
8706
|
-
category: "14"
|
|
8707
|
-
},
|
|
8708
|
-
{
|
|
8709
|
-
name: "companyNameDateOfChange",
|
|
8710
|
-
displayName: "Company Name Change Date",
|
|
8711
|
-
type: "text",
|
|
8712
|
-
inputType: "date",
|
|
8713
|
-
category: "14"
|
|
8714
|
-
},
|
|
8715
|
-
{
|
|
8716
|
-
name: "businessOrigin",
|
|
8717
|
-
displayName: "Business Origin",
|
|
8718
|
-
type: "text",
|
|
8719
|
-
category: "14"
|
|
8720
|
-
},
|
|
8721
|
-
{
|
|
8722
|
-
name: "registeredAddress",
|
|
8723
|
-
displayName: "Registered Address (SSM)",
|
|
8724
|
-
type: "text",
|
|
8725
|
-
category: "14"
|
|
8726
|
-
},
|
|
8727
|
-
{
|
|
8728
|
-
name: "icName",
|
|
8729
|
-
displayName: "Full Name (NRIC)",
|
|
8730
|
-
type: "text",
|
|
8731
|
-
category: "15"
|
|
8732
|
-
},
|
|
8733
|
-
{
|
|
8734
|
-
name: "icNumber",
|
|
8735
|
-
displayName: "IC Number (NRIC Extracted)",
|
|
8736
|
-
type: "text",
|
|
8737
|
-
category: "15"
|
|
8738
|
-
},
|
|
8739
|
-
{
|
|
8740
|
-
name: "icAddress",
|
|
8741
|
-
displayName: "Address (NRIC)",
|
|
8742
|
-
type: "text",
|
|
8743
|
-
category: "15"
|
|
8744
|
-
},
|
|
8745
|
-
{
|
|
8746
|
-
name: "icGender",
|
|
8747
|
-
displayName: "Gender (NRIC)",
|
|
8748
|
-
type: "text",
|
|
8749
|
-
category: "15"
|
|
8750
|
-
},
|
|
8751
|
-
{
|
|
8752
|
-
name: "icReligion",
|
|
8753
|
-
displayName: "Religion (NRIC)",
|
|
8754
|
-
type: "text",
|
|
8755
|
-
category: "15"
|
|
8756
|
-
},
|
|
8757
|
-
{
|
|
8758
|
-
name: "icDateOfBirth",
|
|
8759
|
-
displayName: "Date of Birth (NRIC)",
|
|
8760
|
-
type: "text",
|
|
8761
|
-
inputType: "date",
|
|
8762
|
-
category: "15"
|
|
8763
|
-
},
|
|
8764
|
-
{
|
|
8765
|
-
name: "icPlaceOfBirth",
|
|
8766
|
-
displayName: "Place of Birth (NRIC)",
|
|
8767
|
-
type: "text",
|
|
8768
|
-
category: "15"
|
|
8769
|
-
},
|
|
8770
|
-
{
|
|
8771
|
-
name: "icNationality",
|
|
8772
|
-
displayName: "Nationality (NRIC)",
|
|
8773
|
-
type: "text",
|
|
8774
|
-
category: "15"
|
|
8775
|
-
},
|
|
8776
|
-
{
|
|
8777
|
-
name: "icRace",
|
|
8778
|
-
displayName: "Race (NRIC)",
|
|
8779
|
-
type: "text",
|
|
8780
|
-
category: "15"
|
|
8781
8615
|
}
|
|
8782
8616
|
]
|
|
8783
8617
|
};
|