@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
|
@@ -52,14 +52,6 @@
|
|
|
52
52
|
{
|
|
53
53
|
"id": "13",
|
|
54
54
|
"name": "Document Upload"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"id": "14",
|
|
58
|
-
"name": "SSM Company Profile Data"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"id": "15",
|
|
62
|
-
"name": "NRIC Data"
|
|
63
55
|
}
|
|
64
56
|
],
|
|
65
57
|
"fields": [
|
|
@@ -122,7 +114,7 @@
|
|
|
122
114
|
"title": "ID Number",
|
|
123
115
|
"placeholder": "E.g. 700513065143",
|
|
124
116
|
"isRequired": true,
|
|
125
|
-
"displayName": "IC Number
|
|
117
|
+
"displayName": "IC Number",
|
|
126
118
|
"maxLength": 25,
|
|
127
119
|
"inputType": "text",
|
|
128
120
|
"validators": [
|
|
@@ -7407,165 +7399,6 @@
|
|
|
7407
7399
|
"payslipOtherDeductionT6"
|
|
7408
7400
|
],
|
|
7409
7401
|
"category": "13"
|
|
7410
|
-
},
|
|
7411
|
-
{
|
|
7412
|
-
"name": "ic",
|
|
7413
|
-
"displayName": "Identity Card (NRIC)",
|
|
7414
|
-
"type": "file",
|
|
7415
|
-
"ihs_column_names": [
|
|
7416
|
-
"icName",
|
|
7417
|
-
"icNumber",
|
|
7418
|
-
"icAddress",
|
|
7419
|
-
"icGender",
|
|
7420
|
-
"icReligion",
|
|
7421
|
-
"icDateOfBirth",
|
|
7422
|
-
"icPlaceOfBirth",
|
|
7423
|
-
"icNationality",
|
|
7424
|
-
"icRace"
|
|
7425
|
-
],
|
|
7426
|
-
"category": "13"
|
|
7427
|
-
},
|
|
7428
|
-
{
|
|
7429
|
-
"name": "ssmCompanyName",
|
|
7430
|
-
"displayName": "Company Name (SSM Profile)",
|
|
7431
|
-
"type": "text",
|
|
7432
|
-
"category": "14"
|
|
7433
|
-
},
|
|
7434
|
-
{
|
|
7435
|
-
"name": "ssmCompanyRegNo",
|
|
7436
|
-
"displayName": "Company Registration No (SSM Profile)",
|
|
7437
|
-
"type": "text",
|
|
7438
|
-
"category": "14"
|
|
7439
|
-
},
|
|
7440
|
-
{
|
|
7441
|
-
"name": "ssmIncorporatedDate",
|
|
7442
|
-
"displayName": "Incorporated Date (SSM Profile)",
|
|
7443
|
-
"type": "text",
|
|
7444
|
-
"inputType": "date",
|
|
7445
|
-
"category": "14"
|
|
7446
|
-
},
|
|
7447
|
-
{
|
|
7448
|
-
"name": "businessCommencementDate",
|
|
7449
|
-
"displayName": "Business Commencement Date",
|
|
7450
|
-
"type": "text",
|
|
7451
|
-
"inputType": "date",
|
|
7452
|
-
"category": "14"
|
|
7453
|
-
},
|
|
7454
|
-
{
|
|
7455
|
-
"name": "businessNature",
|
|
7456
|
-
"displayName": "Business Nature",
|
|
7457
|
-
"type": "text",
|
|
7458
|
-
"category": "14"
|
|
7459
|
-
},
|
|
7460
|
-
{
|
|
7461
|
-
"name": "companyStatus",
|
|
7462
|
-
"displayName": "Company Status (SSM)",
|
|
7463
|
-
"type": "text",
|
|
7464
|
-
"category": "14"
|
|
7465
|
-
},
|
|
7466
|
-
{
|
|
7467
|
-
"name": "shareholders",
|
|
7468
|
-
"displayName": "Shareholders",
|
|
7469
|
-
"type": "text",
|
|
7470
|
-
"category": "14"
|
|
7471
|
-
},
|
|
7472
|
-
{
|
|
7473
|
-
"name": "directors",
|
|
7474
|
-
"displayName": "Directors",
|
|
7475
|
-
"type": "text",
|
|
7476
|
-
"category": "14"
|
|
7477
|
-
},
|
|
7478
|
-
{
|
|
7479
|
-
"name": "previousDirectors",
|
|
7480
|
-
"displayName": "Previous Directors",
|
|
7481
|
-
"type": "text",
|
|
7482
|
-
"category": "14"
|
|
7483
|
-
},
|
|
7484
|
-
{
|
|
7485
|
-
"name": "totalShareIssued",
|
|
7486
|
-
"displayName": "Total Shares Issued",
|
|
7487
|
-
"type": "text",
|
|
7488
|
-
"category": "14"
|
|
7489
|
-
},
|
|
7490
|
-
{
|
|
7491
|
-
"name": "companyLastOldName",
|
|
7492
|
-
"displayName": "Previous Company Name",
|
|
7493
|
-
"type": "text",
|
|
7494
|
-
"category": "14"
|
|
7495
|
-
},
|
|
7496
|
-
{
|
|
7497
|
-
"name": "companyNameDateOfChange",
|
|
7498
|
-
"displayName": "Company Name Change Date",
|
|
7499
|
-
"type": "text",
|
|
7500
|
-
"inputType": "date",
|
|
7501
|
-
"category": "14"
|
|
7502
|
-
},
|
|
7503
|
-
{
|
|
7504
|
-
"name": "businessOrigin",
|
|
7505
|
-
"displayName": "Business Origin",
|
|
7506
|
-
"type": "text",
|
|
7507
|
-
"category": "14"
|
|
7508
|
-
},
|
|
7509
|
-
{
|
|
7510
|
-
"name": "registeredAddress",
|
|
7511
|
-
"displayName": "Registered Address (SSM)",
|
|
7512
|
-
"type": "text",
|
|
7513
|
-
"category": "14"
|
|
7514
|
-
},
|
|
7515
|
-
{
|
|
7516
|
-
"name": "icName",
|
|
7517
|
-
"displayName": "Full Name (NRIC)",
|
|
7518
|
-
"type": "text",
|
|
7519
|
-
"category": "15"
|
|
7520
|
-
},
|
|
7521
|
-
{
|
|
7522
|
-
"name": "icNumber",
|
|
7523
|
-
"displayName": "IC Number (NRIC Extracted)",
|
|
7524
|
-
"type": "text",
|
|
7525
|
-
"category": "15"
|
|
7526
|
-
},
|
|
7527
|
-
{
|
|
7528
|
-
"name": "icAddress",
|
|
7529
|
-
"displayName": "Address (NRIC)",
|
|
7530
|
-
"type": "text",
|
|
7531
|
-
"category": "15"
|
|
7532
|
-
},
|
|
7533
|
-
{
|
|
7534
|
-
"name": "icGender",
|
|
7535
|
-
"displayName": "Gender (NRIC)",
|
|
7536
|
-
"type": "text",
|
|
7537
|
-
"category": "15"
|
|
7538
|
-
},
|
|
7539
|
-
{
|
|
7540
|
-
"name": "icReligion",
|
|
7541
|
-
"displayName": "Religion (NRIC)",
|
|
7542
|
-
"type": "text",
|
|
7543
|
-
"category": "15"
|
|
7544
|
-
},
|
|
7545
|
-
{
|
|
7546
|
-
"name": "icDateOfBirth",
|
|
7547
|
-
"displayName": "Date of Birth (NRIC)",
|
|
7548
|
-
"type": "text",
|
|
7549
|
-
"inputType": "date",
|
|
7550
|
-
"category": "15"
|
|
7551
|
-
},
|
|
7552
|
-
{
|
|
7553
|
-
"name": "icPlaceOfBirth",
|
|
7554
|
-
"displayName": "Place of Birth (NRIC)",
|
|
7555
|
-
"type": "text",
|
|
7556
|
-
"category": "15"
|
|
7557
|
-
},
|
|
7558
|
-
{
|
|
7559
|
-
"name": "icNationality",
|
|
7560
|
-
"displayName": "Nationality (NRIC)",
|
|
7561
|
-
"type": "text",
|
|
7562
|
-
"category": "15"
|
|
7563
|
-
},
|
|
7564
|
-
{
|
|
7565
|
-
"name": "icRace",
|
|
7566
|
-
"displayName": "Race (NRIC)",
|
|
7567
|
-
"type": "text",
|
|
7568
|
-
"category": "15"
|
|
7569
7402
|
}
|
|
7570
7403
|
]
|
|
7571
7404
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -64,6 +64,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
64
64
|
// src/utils.ts
|
|
65
65
|
function getPastMonthLabel(monthsAgo) {
|
|
66
66
|
const date = /* @__PURE__ */ new Date();
|
|
67
|
+
date.setDate(1);
|
|
67
68
|
date.setMonth(date.getMonth() - monthsAgo);
|
|
68
69
|
return date.toLocaleString("default", { month: "long" });
|
|
69
70
|
}
|
|
@@ -1327,14 +1328,6 @@ var form_field_base_specs_default = {
|
|
|
1327
1328
|
{
|
|
1328
1329
|
id: "13",
|
|
1329
1330
|
name: "Document Upload"
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
id: "14",
|
|
1333
|
-
name: "SSM Company Profile Data"
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
id: "15",
|
|
1337
|
-
name: "NRIC Data"
|
|
1338
1331
|
}
|
|
1339
1332
|
],
|
|
1340
1333
|
fields: [
|
|
@@ -1397,7 +1390,7 @@ var form_field_base_specs_default = {
|
|
|
1397
1390
|
title: "ID Number",
|
|
1398
1391
|
placeholder: "E.g. 700513065143",
|
|
1399
1392
|
isRequired: true,
|
|
1400
|
-
displayName: "IC Number
|
|
1393
|
+
displayName: "IC Number",
|
|
1401
1394
|
maxLength: 25,
|
|
1402
1395
|
inputType: "text",
|
|
1403
1396
|
validators: [
|
|
@@ -8682,165 +8675,6 @@ var form_field_base_specs_default = {
|
|
|
8682
8675
|
"payslipOtherDeductionT6"
|
|
8683
8676
|
],
|
|
8684
8677
|
category: "13"
|
|
8685
|
-
},
|
|
8686
|
-
{
|
|
8687
|
-
name: "ic",
|
|
8688
|
-
displayName: "Identity Card (NRIC)",
|
|
8689
|
-
type: "file",
|
|
8690
|
-
ihs_column_names: [
|
|
8691
|
-
"icName",
|
|
8692
|
-
"icNumber",
|
|
8693
|
-
"icAddress",
|
|
8694
|
-
"icGender",
|
|
8695
|
-
"icReligion",
|
|
8696
|
-
"icDateOfBirth",
|
|
8697
|
-
"icPlaceOfBirth",
|
|
8698
|
-
"icNationality",
|
|
8699
|
-
"icRace"
|
|
8700
|
-
],
|
|
8701
|
-
category: "13"
|
|
8702
|
-
},
|
|
8703
|
-
{
|
|
8704
|
-
name: "ssmCompanyName",
|
|
8705
|
-
displayName: "Company Name (SSM Profile)",
|
|
8706
|
-
type: "text",
|
|
8707
|
-
category: "14"
|
|
8708
|
-
},
|
|
8709
|
-
{
|
|
8710
|
-
name: "ssmCompanyRegNo",
|
|
8711
|
-
displayName: "Company Registration No (SSM Profile)",
|
|
8712
|
-
type: "text",
|
|
8713
|
-
category: "14"
|
|
8714
|
-
},
|
|
8715
|
-
{
|
|
8716
|
-
name: "ssmIncorporatedDate",
|
|
8717
|
-
displayName: "Incorporated Date (SSM Profile)",
|
|
8718
|
-
type: "text",
|
|
8719
|
-
inputType: "date",
|
|
8720
|
-
category: "14"
|
|
8721
|
-
},
|
|
8722
|
-
{
|
|
8723
|
-
name: "businessCommencementDate",
|
|
8724
|
-
displayName: "Business Commencement Date",
|
|
8725
|
-
type: "text",
|
|
8726
|
-
inputType: "date",
|
|
8727
|
-
category: "14"
|
|
8728
|
-
},
|
|
8729
|
-
{
|
|
8730
|
-
name: "businessNature",
|
|
8731
|
-
displayName: "Business Nature",
|
|
8732
|
-
type: "text",
|
|
8733
|
-
category: "14"
|
|
8734
|
-
},
|
|
8735
|
-
{
|
|
8736
|
-
name: "companyStatus",
|
|
8737
|
-
displayName: "Company Status (SSM)",
|
|
8738
|
-
type: "text",
|
|
8739
|
-
category: "14"
|
|
8740
|
-
},
|
|
8741
|
-
{
|
|
8742
|
-
name: "shareholders",
|
|
8743
|
-
displayName: "Shareholders",
|
|
8744
|
-
type: "text",
|
|
8745
|
-
category: "14"
|
|
8746
|
-
},
|
|
8747
|
-
{
|
|
8748
|
-
name: "directors",
|
|
8749
|
-
displayName: "Directors",
|
|
8750
|
-
type: "text",
|
|
8751
|
-
category: "14"
|
|
8752
|
-
},
|
|
8753
|
-
{
|
|
8754
|
-
name: "previousDirectors",
|
|
8755
|
-
displayName: "Previous Directors",
|
|
8756
|
-
type: "text",
|
|
8757
|
-
category: "14"
|
|
8758
|
-
},
|
|
8759
|
-
{
|
|
8760
|
-
name: "totalShareIssued",
|
|
8761
|
-
displayName: "Total Shares Issued",
|
|
8762
|
-
type: "text",
|
|
8763
|
-
category: "14"
|
|
8764
|
-
},
|
|
8765
|
-
{
|
|
8766
|
-
name: "companyLastOldName",
|
|
8767
|
-
displayName: "Previous Company Name",
|
|
8768
|
-
type: "text",
|
|
8769
|
-
category: "14"
|
|
8770
|
-
},
|
|
8771
|
-
{
|
|
8772
|
-
name: "companyNameDateOfChange",
|
|
8773
|
-
displayName: "Company Name Change Date",
|
|
8774
|
-
type: "text",
|
|
8775
|
-
inputType: "date",
|
|
8776
|
-
category: "14"
|
|
8777
|
-
},
|
|
8778
|
-
{
|
|
8779
|
-
name: "businessOrigin",
|
|
8780
|
-
displayName: "Business Origin",
|
|
8781
|
-
type: "text",
|
|
8782
|
-
category: "14"
|
|
8783
|
-
},
|
|
8784
|
-
{
|
|
8785
|
-
name: "registeredAddress",
|
|
8786
|
-
displayName: "Registered Address (SSM)",
|
|
8787
|
-
type: "text",
|
|
8788
|
-
category: "14"
|
|
8789
|
-
},
|
|
8790
|
-
{
|
|
8791
|
-
name: "icName",
|
|
8792
|
-
displayName: "Full Name (NRIC)",
|
|
8793
|
-
type: "text",
|
|
8794
|
-
category: "15"
|
|
8795
|
-
},
|
|
8796
|
-
{
|
|
8797
|
-
name: "icNumber",
|
|
8798
|
-
displayName: "IC Number (NRIC Extracted)",
|
|
8799
|
-
type: "text",
|
|
8800
|
-
category: "15"
|
|
8801
|
-
},
|
|
8802
|
-
{
|
|
8803
|
-
name: "icAddress",
|
|
8804
|
-
displayName: "Address (NRIC)",
|
|
8805
|
-
type: "text",
|
|
8806
|
-
category: "15"
|
|
8807
|
-
},
|
|
8808
|
-
{
|
|
8809
|
-
name: "icGender",
|
|
8810
|
-
displayName: "Gender (NRIC)",
|
|
8811
|
-
type: "text",
|
|
8812
|
-
category: "15"
|
|
8813
|
-
},
|
|
8814
|
-
{
|
|
8815
|
-
name: "icReligion",
|
|
8816
|
-
displayName: "Religion (NRIC)",
|
|
8817
|
-
type: "text",
|
|
8818
|
-
category: "15"
|
|
8819
|
-
},
|
|
8820
|
-
{
|
|
8821
|
-
name: "icDateOfBirth",
|
|
8822
|
-
displayName: "Date of Birth (NRIC)",
|
|
8823
|
-
type: "text",
|
|
8824
|
-
inputType: "date",
|
|
8825
|
-
category: "15"
|
|
8826
|
-
},
|
|
8827
|
-
{
|
|
8828
|
-
name: "icPlaceOfBirth",
|
|
8829
|
-
displayName: "Place of Birth (NRIC)",
|
|
8830
|
-
type: "text",
|
|
8831
|
-
category: "15"
|
|
8832
|
-
},
|
|
8833
|
-
{
|
|
8834
|
-
name: "icNationality",
|
|
8835
|
-
displayName: "Nationality (NRIC)",
|
|
8836
|
-
type: "text",
|
|
8837
|
-
category: "15"
|
|
8838
|
-
},
|
|
8839
|
-
{
|
|
8840
|
-
name: "icRace",
|
|
8841
|
-
displayName: "Race (NRIC)",
|
|
8842
|
-
type: "text",
|
|
8843
|
-
category: "15"
|
|
8844
8678
|
}
|
|
8845
8679
|
]
|
|
8846
8680
|
};
|