pakdatakit 2.1.2 → 2.2.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/DATA.md +104 -0
- package/README.md +85 -3
- package/dist/address.cjs +4 -4
- package/dist/address.js +2 -2
- package/dist/{chunk-PHHKIMO2.cjs → chunk-33FXHM2E.cjs} +5 -5
- package/dist/chunk-3IARSCO6.cjs +317 -0
- package/dist/{chunk-BSS4Z7NI.cjs → chunk-3ZA265SK.cjs} +2 -2
- package/dist/{chunk-Q7XHVR3U.cjs → chunk-4VSGCQ6K.cjs} +86 -15
- package/dist/{chunk-Y6BUGLXU.js → chunk-6IPPANNX.js} +4 -1
- package/dist/{chunk-L45UXUWX.js → chunk-AZV45DMG.js} +1 -1
- package/dist/{chunk-QQQKISXT.js → chunk-BR4QLZPX.js} +11 -2
- package/dist/{chunk-AUATLZA5.cjs → chunk-CLL6VDPO.cjs} +4 -4
- package/dist/{chunk-P4CGOJEM.js → chunk-EMH4IP2U.js} +1 -1
- package/dist/{chunk-JNP27XW2.cjs → chunk-GJENL6VK.cjs} +6 -6
- package/dist/{chunk-APXP7OK7.cjs → chunk-HIZQBWNW.cjs} +11 -2
- package/dist/{chunk-YS7MOLK2.cjs → chunk-HTERSQGF.cjs} +3 -3
- package/dist/{chunk-E7GAK72W.js → chunk-HUQY2WR5.js} +3 -3
- package/dist/{chunk-L2BDDM2W.js → chunk-I664KOWP.js} +1 -1
- package/dist/{chunk-K6CZFCX6.js → chunk-J272OMDL.js} +51 -6
- package/dist/{chunk-KQKW2ZEK.cjs → chunk-NAJGGUAM.cjs} +2 -2
- package/dist/{chunk-YLWZGSFY.cjs → chunk-NTD4JLDW.cjs} +4 -0
- package/dist/{chunk-R7UTY3SY.js → chunk-NZQ47NWD.js} +84 -14
- package/dist/{chunk-432ZYMYV.js → chunk-PLDVGOKZ.js} +2 -2
- package/dist/{chunk-T3E4B5MJ.js → chunk-RXNYY5K5.js} +1 -1
- package/dist/{chunk-3COX5FSL.cjs → chunk-SBS2GHM3.cjs} +51 -6
- package/dist/chunk-TTARJWGT.js +82 -0
- package/dist/chunk-U7MWHXMF.cjs +89 -0
- package/dist/chunk-YPPKY5XZ.js +312 -0
- package/dist/cli.js +1 -1
- package/dist/geo.cjs +6 -6
- package/dist/geo.js +1 -1
- package/dist/holidays.d.cts +2 -1
- package/dist/holidays.d.ts +2 -1
- package/dist/iban.cjs +11 -3
- package/dist/iban.d.cts +45 -1
- package/dist/iban.d.ts +45 -1
- package/dist/iban.js +1 -1
- package/dist/index.cjs +76 -37
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +16 -10
- package/dist/input.cjs +34 -0
- package/dist/input.d.cts +67 -0
- package/dist/input.d.ts +67 -0
- package/dist/input.js +5 -0
- package/dist/networks.cjs +3 -3
- package/dist/networks.js +2 -2
- package/dist/numbers.cjs +6 -6
- package/dist/numbers.js +2 -2
- package/dist/phone.cjs +8 -8
- package/dist/phone.js +3 -3
- package/dist/raast.cjs +9 -5
- package/dist/raast.d.cts +53 -8
- package/dist/raast.d.ts +53 -8
- package/dist/raast.js +2 -2
- package/dist/valibot.cjs +7 -7
- package/dist/valibot.js +6 -6
- package/dist/whatsapp.cjs +3 -3
- package/dist/whatsapp.js +2 -2
- package/dist/words.cjs +3 -3
- package/dist/words.js +1 -1
- package/dist/yup.cjs +7 -7
- package/dist/yup.js +6 -6
- package/dist/zod.cjs +7 -7
- package/dist/zod.js +6 -6
- package/package.json +16 -3
- package/dist/chunk-4EUKCSLW.js +0 -221
- package/dist/chunk-E47SNBWQ.cjs +0 -224
package/dist/index.cjs
CHANGED
|
@@ -1,77 +1,111 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkNAJGGUAM_cjs = require('./chunk-NAJGGUAM.cjs');
|
|
4
|
+
var chunkHIZQBWNW_cjs = require('./chunk-HIZQBWNW.cjs');
|
|
5
|
+
var chunkU7MWHXMF_cjs = require('./chunk-U7MWHXMF.cjs');
|
|
6
|
+
var chunk3ZA265SK_cjs = require('./chunk-3ZA265SK.cjs');
|
|
7
|
+
var chunk33FXHM2E_cjs = require('./chunk-33FXHM2E.cjs');
|
|
8
|
+
var chunkHTERSQGF_cjs = require('./chunk-HTERSQGF.cjs');
|
|
9
|
+
require('./chunk-NTD4JLDW.cjs');
|
|
10
|
+
var chunk4VSGCQ6K_cjs = require('./chunk-4VSGCQ6K.cjs');
|
|
8
11
|
var chunkH6M6L26S_cjs = require('./chunk-H6M6L26S.cjs');
|
|
9
12
|
var chunkKEHCTYLO_cjs = require('./chunk-KEHCTYLO.cjs');
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-YLWZGSFY.cjs');
|
|
12
|
-
var chunkAUATLZA5_cjs = require('./chunk-AUATLZA5.cjs');
|
|
13
|
+
var chunkCLL6VDPO_cjs = require('./chunk-CLL6VDPO.cjs');
|
|
13
14
|
var chunk4VVFS6FN_cjs = require('./chunk-4VVFS6FN.cjs');
|
|
14
15
|
var chunkHTCSHHOR_cjs = require('./chunk-HTCSHHOR.cjs');
|
|
15
16
|
var chunkLVHTH4P7_cjs = require('./chunk-LVHTH4P7.cjs');
|
|
16
|
-
var
|
|
17
|
+
var chunkSBS2GHM3_cjs = require('./chunk-SBS2GHM3.cjs');
|
|
17
18
|
var chunkXCXFGTHW_cjs = require('./chunk-XCXFGTHW.cjs');
|
|
18
19
|
var chunkCYJJ7KGC_cjs = require('./chunk-CYJJ7KGC.cjs');
|
|
19
|
-
var
|
|
20
|
+
var chunk3IARSCO6_cjs = require('./chunk-3IARSCO6.cjs');
|
|
20
21
|
require('./chunk-VPBMIYO2.cjs');
|
|
21
22
|
|
|
23
|
+
// src/data-version.ts
|
|
24
|
+
var dataVersion = "2026-10-14";
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
Object.defineProperty(exports, "createWhatsAppLink", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkNAJGGUAM_cjs.createWhatsAppLink; }
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "amountInWords", {
|
|
25
31
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkHIZQBWNW_cjs.amountInWords; }
|
|
27
33
|
});
|
|
28
34
|
Object.defineProperty(exports, "numberToWords", {
|
|
29
35
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkHIZQBWNW_cjs.numberToWords; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "checkCNICInput", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkU7MWHXMF_cjs.checkCNICInput; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "checkIBANInput", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkU7MWHXMF_cjs.checkIBANInput; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "checkPhoneInput", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkU7MWHXMF_cjs.checkPhoneInput; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "formatCNICInput", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkU7MWHXMF_cjs.formatCNICInput; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "formatIBANInput", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkU7MWHXMF_cjs.formatIBANInput; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "formatPhoneInput", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkU7MWHXMF_cjs.formatPhoneInput; }
|
|
31
61
|
});
|
|
32
62
|
Object.defineProperty(exports, "analyzeNumber", {
|
|
33
63
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk3ZA265SK_cjs.analyzeNumber; }
|
|
35
65
|
});
|
|
36
66
|
Object.defineProperty(exports, "getAreaCode", {
|
|
37
67
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk3ZA265SK_cjs.getAreaCode; }
|
|
39
69
|
});
|
|
40
70
|
Object.defineProperty(exports, "getNumberType", {
|
|
41
71
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk3ZA265SK_cjs.getNumberType; }
|
|
43
73
|
});
|
|
44
74
|
Object.defineProperty(exports, "validateLandline", {
|
|
45
75
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk3ZA265SK_cjs.validateLandline; }
|
|
47
77
|
});
|
|
48
78
|
Object.defineProperty(exports, "analyzePhone", {
|
|
49
79
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk33FXHM2E_cjs.analyzePhone; }
|
|
51
81
|
});
|
|
52
82
|
Object.defineProperty(exports, "formatPhone", {
|
|
53
83
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk33FXHM2E_cjs.formatPhone; }
|
|
55
85
|
});
|
|
56
86
|
Object.defineProperty(exports, "validatePhone", {
|
|
57
87
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk33FXHM2E_cjs.validatePhone; }
|
|
59
89
|
});
|
|
60
90
|
Object.defineProperty(exports, "getNetwork", {
|
|
61
91
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkHTERSQGF_cjs.getNetwork; }
|
|
63
93
|
});
|
|
64
94
|
Object.defineProperty(exports, "createMerchantQr", {
|
|
65
95
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunk4VSGCQ6K_cjs.createMerchantQr; }
|
|
67
97
|
});
|
|
68
98
|
Object.defineProperty(exports, "createRaastP2PQr", {
|
|
69
99
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunk4VSGCQ6K_cjs.createRaastP2PQr; }
|
|
71
101
|
});
|
|
72
102
|
Object.defineProperty(exports, "parseRaastQr", {
|
|
73
103
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunk4VSGCQ6K_cjs.parseRaastQr; }
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "validateRaastQr", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return chunk4VSGCQ6K_cjs.validateRaastQr; }
|
|
75
109
|
});
|
|
76
110
|
Object.defineProperty(exports, "analyzeNTN", {
|
|
77
111
|
enumerable: true,
|
|
@@ -101,17 +135,13 @@ Object.defineProperty(exports, "toUrduDigits", {
|
|
|
101
135
|
enumerable: true,
|
|
102
136
|
get: function () { return chunkKEHCTYLO_cjs.toUrduDigits; }
|
|
103
137
|
});
|
|
104
|
-
Object.defineProperty(exports, "createWhatsAppLink", {
|
|
105
|
-
enumerable: true,
|
|
106
|
-
get: function () { return chunkKQKW2ZEK_cjs.createWhatsAppLink; }
|
|
107
|
-
});
|
|
108
138
|
Object.defineProperty(exports, "formatAddress", {
|
|
109
139
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkCLL6VDPO_cjs.formatAddress; }
|
|
111
141
|
});
|
|
112
142
|
Object.defineProperty(exports, "parseAddress", {
|
|
113
143
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkCLL6VDPO_cjs.parseAddress; }
|
|
115
145
|
});
|
|
116
146
|
Object.defineProperty(exports, "getCityByPostalCode", {
|
|
117
147
|
enumerable: true,
|
|
@@ -151,23 +181,23 @@ Object.defineProperty(exports, "formatPKR", {
|
|
|
151
181
|
});
|
|
152
182
|
Object.defineProperty(exports, "getDistrictProvince", {
|
|
153
183
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkSBS2GHM3_cjs.getDistrictProvince; }
|
|
155
185
|
});
|
|
156
186
|
Object.defineProperty(exports, "getDistrictsByProvince", {
|
|
157
187
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkSBS2GHM3_cjs.getDistrictsByProvince; }
|
|
159
189
|
});
|
|
160
190
|
Object.defineProperty(exports, "getProvince", {
|
|
161
191
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkSBS2GHM3_cjs.getProvince; }
|
|
163
193
|
});
|
|
164
194
|
Object.defineProperty(exports, "searchCities", {
|
|
165
195
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkSBS2GHM3_cjs.searchCities; }
|
|
167
197
|
});
|
|
168
198
|
Object.defineProperty(exports, "searchDistricts", {
|
|
169
199
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkSBS2GHM3_cjs.searchDistricts; }
|
|
171
201
|
});
|
|
172
202
|
Object.defineProperty(exports, "getHolidaysOn", {
|
|
173
203
|
enumerable: true,
|
|
@@ -203,9 +233,18 @@ Object.defineProperty(exports, "toHijri", {
|
|
|
203
233
|
});
|
|
204
234
|
Object.defineProperty(exports, "getBankFromIBAN", {
|
|
205
235
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunk3IARSCO6_cjs.getBankFromIBAN; }
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "getBankInfo", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function () { return chunk3IARSCO6_cjs.getBankInfo; }
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(exports, "getBanks", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function () { return chunk3IARSCO6_cjs.getBanks; }
|
|
207
245
|
});
|
|
208
246
|
Object.defineProperty(exports, "validateIBAN", {
|
|
209
247
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunk3IARSCO6_cjs.validateIBAN; }
|
|
211
249
|
});
|
|
250
|
+
exports.dataVersion = dataVersion;
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { NetworkName, getNetwork } from './networks.cjs';
|
|
|
4
4
|
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './geo.cjs';
|
|
5
5
|
export { formatLakh, formatPKR } from './format.cjs';
|
|
6
6
|
export { createWhatsAppLink } from './whatsapp.cjs';
|
|
7
|
-
export { getBankFromIBAN, validateIBAN } from './iban.cjs';
|
|
7
|
+
export { BankInfo, BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './iban.cjs';
|
|
8
8
|
export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './postal.cjs';
|
|
9
9
|
export { ParsedAddress, formatAddress, parseAddress } from './address.cjs';
|
|
10
10
|
export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './text.cjs';
|
|
@@ -12,5 +12,14 @@ export { HijriDate, HijriOptions, formatHijri, fromHijri, getHijriMonthName, isR
|
|
|
12
12
|
export { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage, amountInWords, numberToWords } from './words.cjs';
|
|
13
13
|
export { NTNInfo, NTNType, analyzeNTN, validateNTN, validateSTRN } from './tax.cjs';
|
|
14
14
|
export { NumberInfo, NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline } from './numbers.cjs';
|
|
15
|
-
export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastP2PQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr } from './raast.cjs';
|
|
15
|
+
export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastDuration, RaastP2PQrOptions, RaastQrError, RaastQrValidation, RaastQrWarning, ValidateRaastQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './raast.cjs';
|
|
16
16
|
export { Holiday, HolidayId, HolidayOptions, IslamicHolidayId, getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './holidays.cjs';
|
|
17
|
+
export { InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './input.cjs';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Date (YYYY-MM-DD) the bundled datasets were last checked against their
|
|
21
|
+
* sources. See DATA.md for what each dataset is based on.
|
|
22
|
+
*/
|
|
23
|
+
declare const dataVersion = "2026-10-14";
|
|
24
|
+
|
|
25
|
+
export { dataVersion };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { NetworkName, getNetwork } from './networks.js';
|
|
|
4
4
|
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './geo.js';
|
|
5
5
|
export { formatLakh, formatPKR } from './format.js';
|
|
6
6
|
export { createWhatsAppLink } from './whatsapp.js';
|
|
7
|
-
export { getBankFromIBAN, validateIBAN } from './iban.js';
|
|
7
|
+
export { BankInfo, BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './iban.js';
|
|
8
8
|
export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './postal.js';
|
|
9
9
|
export { ParsedAddress, formatAddress, parseAddress } from './address.js';
|
|
10
10
|
export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './text.js';
|
|
@@ -12,5 +12,14 @@ export { HijriDate, HijriOptions, formatHijri, fromHijri, getHijriMonthName, isR
|
|
|
12
12
|
export { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage, amountInWords, numberToWords } from './words.js';
|
|
13
13
|
export { NTNInfo, NTNType, analyzeNTN, validateNTN, validateSTRN } from './tax.js';
|
|
14
14
|
export { NumberInfo, NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline } from './numbers.js';
|
|
15
|
-
export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastP2PQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr } from './raast.js';
|
|
15
|
+
export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastDuration, RaastP2PQrOptions, RaastQrError, RaastQrValidation, RaastQrWarning, ValidateRaastQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './raast.js';
|
|
16
16
|
export { Holiday, HolidayId, HolidayOptions, IslamicHolidayId, getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './holidays.js';
|
|
17
|
+
export { InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './input.js';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Date (YYYY-MM-DD) the bundled datasets were last checked against their
|
|
21
|
+
* sources. See DATA.md for what each dataset is based on.
|
|
22
|
+
*/
|
|
23
|
+
declare const dataVersion = "2026-10-14";
|
|
24
|
+
|
|
25
|
+
export { dataVersion };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export { createWhatsAppLink } from './chunk-EMH4IP2U.js';
|
|
2
|
+
export { amountInWords, numberToWords } from './chunk-BR4QLZPX.js';
|
|
3
|
+
export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './chunk-TTARJWGT.js';
|
|
4
|
+
export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-RXNYY5K5.js';
|
|
5
|
+
export { analyzePhone, formatPhone, validatePhone } from './chunk-PLDVGOKZ.js';
|
|
6
|
+
export { getNetwork } from './chunk-AZV45DMG.js';
|
|
7
|
+
import './chunk-6IPPANNX.js';
|
|
8
|
+
export { createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './chunk-NZQ47NWD.js';
|
|
6
9
|
export { analyzeNTN, validateNTN, validateSTRN } from './chunk-CEPNSHIC.js';
|
|
7
10
|
export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './chunk-JKE4AMSZ.js';
|
|
8
|
-
export {
|
|
9
|
-
import './chunk-Y6BUGLXU.js';
|
|
10
|
-
export { formatAddress, parseAddress } from './chunk-L2BDDM2W.js';
|
|
11
|
+
export { formatAddress, parseAddress } from './chunk-I664KOWP.js';
|
|
11
12
|
export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './chunk-LIYNKIKS.js';
|
|
12
13
|
export { getCNICInfo, validateCNIC } from './chunk-EEVNLTB4.js';
|
|
13
14
|
export { formatLakh, formatPKR } from './chunk-6TSKA2PH.js';
|
|
14
|
-
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-
|
|
15
|
+
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-J272OMDL.js';
|
|
15
16
|
export { getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './chunk-HBOZIITD.js';
|
|
16
17
|
export { formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri } from './chunk-Z5JEIQVW.js';
|
|
17
|
-
export { getBankFromIBAN, validateIBAN } from './chunk-
|
|
18
|
+
export { getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './chunk-YPPKY5XZ.js';
|
|
18
19
|
import './chunk-ENQ7O7VW.js';
|
|
20
|
+
|
|
21
|
+
// src/data-version.ts
|
|
22
|
+
var dataVersion = "2026-10-14";
|
|
23
|
+
|
|
24
|
+
export { dataVersion };
|
package/dist/input.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkU7MWHXMF_cjs = require('./chunk-U7MWHXMF.cjs');
|
|
4
|
+
require('./chunk-NTD4JLDW.cjs');
|
|
5
|
+
require('./chunk-HTCSHHOR.cjs');
|
|
6
|
+
require('./chunk-3IARSCO6.cjs');
|
|
7
|
+
require('./chunk-VPBMIYO2.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "checkCNICInput", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkU7MWHXMF_cjs.checkCNICInput; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "checkIBANInput", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkU7MWHXMF_cjs.checkIBANInput; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "checkPhoneInput", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkU7MWHXMF_cjs.checkPhoneInput; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "formatCNICInput", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkU7MWHXMF_cjs.formatCNICInput; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "formatIBANInput", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkU7MWHXMF_cjs.formatIBANInput; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "formatPhoneInput", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkU7MWHXMF_cjs.formatPhoneInput; }
|
|
34
|
+
});
|
package/dist/input.d.cts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* State of a form field while the user is typing.
|
|
3
|
+
*
|
|
4
|
+
* - `empty`: nothing entered yet
|
|
5
|
+
* - `incomplete`: what has been typed so far can still become valid
|
|
6
|
+
* - `valid`: complete and valid
|
|
7
|
+
* - `invalid`: cannot become valid by typing more (wrong character, prefix or length)
|
|
8
|
+
*/
|
|
9
|
+
type InputState = 'empty' | 'incomplete' | 'valid' | 'invalid';
|
|
10
|
+
/**
|
|
11
|
+
* Formats a CNIC as the user types: `35202-1234567-1`.
|
|
12
|
+
*
|
|
13
|
+
* Keeps up to 13 digits (Urdu digits are converted) and inserts the dashes
|
|
14
|
+
* as the groups fill. Other characters are dropped.
|
|
15
|
+
*
|
|
16
|
+
* @param value - Current input value
|
|
17
|
+
* @returns Value to show in the input
|
|
18
|
+
*/
|
|
19
|
+
declare function formatCNICInput(value: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Checks a CNIC while the user is typing. See {@link InputState}.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* checkCNICInput('35202-12'); // 'incomplete'
|
|
25
|
+
* checkCNICInput('35202-1234567-1'); // 'valid'
|
|
26
|
+
* checkCNICInput('05202'); // 'invalid' (no province starts with 0)
|
|
27
|
+
*/
|
|
28
|
+
declare function checkCNICInput(value: string): InputState;
|
|
29
|
+
/**
|
|
30
|
+
* Formats a Pakistani mobile number as the user types: `0300-1234567`, or
|
|
31
|
+
* `+92 300 1234567` when the user starts with the country code.
|
|
32
|
+
*
|
|
33
|
+
* @param value - Current input value
|
|
34
|
+
* @returns Value to show in the input
|
|
35
|
+
*/
|
|
36
|
+
declare function formatPhoneInput(value: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Checks a Pakistani mobile number while the user is typing. The `03XX`
|
|
39
|
+
* prefix is checked as soon as it is complete. See {@link InputState}.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* checkPhoneInput('0300 12'); // 'incomplete'
|
|
43
|
+
* checkPhoneInput('0360'); // 'invalid' (prefix not allocated)
|
|
44
|
+
* checkPhoneInput('03001234567'); // 'valid'
|
|
45
|
+
*/
|
|
46
|
+
declare function checkPhoneInput(value: string): InputState;
|
|
47
|
+
/**
|
|
48
|
+
* Formats an IBAN as the user types: uppercase, in groups of four
|
|
49
|
+
* (`PK36 SCBL 0000 0011 2345 6702`), up to 24 characters.
|
|
50
|
+
*
|
|
51
|
+
* @param value - Current input value
|
|
52
|
+
* @returns Value to show in the input
|
|
53
|
+
*/
|
|
54
|
+
declare function formatIBANInput(value: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Checks a Pakistani IBAN while the user is typing: the `PK` prefix, check
|
|
57
|
+
* digits and bank code are checked as they are typed, and the full checksum
|
|
58
|
+
* once all 24 characters are in. See {@link InputState}.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* checkIBANInput('PK36 SC'); // 'incomplete'
|
|
62
|
+
* checkIBANInput('GB29'); // 'invalid'
|
|
63
|
+
* checkIBANInput('PK36 SCBL 0000 0011 2345 6702'); // 'valid'
|
|
64
|
+
*/
|
|
65
|
+
declare function checkIBANInput(value: string): InputState;
|
|
66
|
+
|
|
67
|
+
export { type InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
|
package/dist/input.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* State of a form field while the user is typing.
|
|
3
|
+
*
|
|
4
|
+
* - `empty`: nothing entered yet
|
|
5
|
+
* - `incomplete`: what has been typed so far can still become valid
|
|
6
|
+
* - `valid`: complete and valid
|
|
7
|
+
* - `invalid`: cannot become valid by typing more (wrong character, prefix or length)
|
|
8
|
+
*/
|
|
9
|
+
type InputState = 'empty' | 'incomplete' | 'valid' | 'invalid';
|
|
10
|
+
/**
|
|
11
|
+
* Formats a CNIC as the user types: `35202-1234567-1`.
|
|
12
|
+
*
|
|
13
|
+
* Keeps up to 13 digits (Urdu digits are converted) and inserts the dashes
|
|
14
|
+
* as the groups fill. Other characters are dropped.
|
|
15
|
+
*
|
|
16
|
+
* @param value - Current input value
|
|
17
|
+
* @returns Value to show in the input
|
|
18
|
+
*/
|
|
19
|
+
declare function formatCNICInput(value: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Checks a CNIC while the user is typing. See {@link InputState}.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* checkCNICInput('35202-12'); // 'incomplete'
|
|
25
|
+
* checkCNICInput('35202-1234567-1'); // 'valid'
|
|
26
|
+
* checkCNICInput('05202'); // 'invalid' (no province starts with 0)
|
|
27
|
+
*/
|
|
28
|
+
declare function checkCNICInput(value: string): InputState;
|
|
29
|
+
/**
|
|
30
|
+
* Formats a Pakistani mobile number as the user types: `0300-1234567`, or
|
|
31
|
+
* `+92 300 1234567` when the user starts with the country code.
|
|
32
|
+
*
|
|
33
|
+
* @param value - Current input value
|
|
34
|
+
* @returns Value to show in the input
|
|
35
|
+
*/
|
|
36
|
+
declare function formatPhoneInput(value: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* Checks a Pakistani mobile number while the user is typing. The `03XX`
|
|
39
|
+
* prefix is checked as soon as it is complete. See {@link InputState}.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* checkPhoneInput('0300 12'); // 'incomplete'
|
|
43
|
+
* checkPhoneInput('0360'); // 'invalid' (prefix not allocated)
|
|
44
|
+
* checkPhoneInput('03001234567'); // 'valid'
|
|
45
|
+
*/
|
|
46
|
+
declare function checkPhoneInput(value: string): InputState;
|
|
47
|
+
/**
|
|
48
|
+
* Formats an IBAN as the user types: uppercase, in groups of four
|
|
49
|
+
* (`PK36 SCBL 0000 0011 2345 6702`), up to 24 characters.
|
|
50
|
+
*
|
|
51
|
+
* @param value - Current input value
|
|
52
|
+
* @returns Value to show in the input
|
|
53
|
+
*/
|
|
54
|
+
declare function formatIBANInput(value: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Checks a Pakistani IBAN while the user is typing: the `PK` prefix, check
|
|
57
|
+
* digits and bank code are checked as they are typed, and the full checksum
|
|
58
|
+
* once all 24 characters are in. See {@link InputState}.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* checkIBANInput('PK36 SC'); // 'incomplete'
|
|
62
|
+
* checkIBANInput('GB29'); // 'invalid'
|
|
63
|
+
* checkIBANInput('PK36 SCBL 0000 0011 2345 6702'); // 'valid'
|
|
64
|
+
*/
|
|
65
|
+
declare function checkIBANInput(value: string): InputState;
|
|
66
|
+
|
|
67
|
+
export { type InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
|
package/dist/input.js
ADDED
package/dist/networks.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkHTERSQGF_cjs = require('./chunk-HTERSQGF.cjs');
|
|
4
|
+
require('./chunk-NTD4JLDW.cjs');
|
|
5
5
|
require('./chunk-VPBMIYO2.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "getNetwork", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkHTERSQGF_cjs.getNetwork; }
|
|
12
12
|
});
|
package/dist/networks.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getNetwork } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { getNetwork } from './chunk-AZV45DMG.js';
|
|
2
|
+
import './chunk-6IPPANNX.js';
|
|
3
3
|
import './chunk-ENQ7O7VW.js';
|
package/dist/numbers.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk3ZA265SK_cjs = require('./chunk-3ZA265SK.cjs');
|
|
4
|
+
require('./chunk-NTD4JLDW.cjs');
|
|
5
5
|
require('./chunk-VPBMIYO2.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "analyzeNumber", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk3ZA265SK_cjs.analyzeNumber; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getAreaCode", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk3ZA265SK_cjs.getAreaCode; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "getNumberType", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk3ZA265SK_cjs.getNumberType; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "validateLandline", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk3ZA265SK_cjs.validateLandline; }
|
|
24
24
|
});
|
package/dist/numbers.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-RXNYY5K5.js';
|
|
2
|
+
import './chunk-6IPPANNX.js';
|
|
3
3
|
import './chunk-ENQ7O7VW.js';
|
package/dist/phone.cjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
3
|
+
var chunk33FXHM2E_cjs = require('./chunk-33FXHM2E.cjs');
|
|
4
|
+
require('./chunk-HTERSQGF.cjs');
|
|
5
|
+
var chunkNTD4JLDW_cjs = require('./chunk-NTD4JLDW.cjs');
|
|
6
6
|
require('./chunk-VPBMIYO2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "analyzePhone", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk33FXHM2E_cjs.analyzePhone; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "formatPhone", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk33FXHM2E_cjs.formatPhone; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "validatePhone", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk33FXHM2E_cjs.validatePhone; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "getPhonePrefix", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkNTD4JLDW_cjs.getPhonePrefix; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "normalizePhoneDigits", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkNTD4JLDW_cjs.normalizePhoneDigits; }
|
|
29
29
|
});
|
package/dist/phone.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { analyzePhone, formatPhone, validatePhone } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { getPhonePrefix, normalizePhoneDigits } from './chunk-
|
|
1
|
+
export { analyzePhone, formatPhone, validatePhone } from './chunk-PLDVGOKZ.js';
|
|
2
|
+
import './chunk-AZV45DMG.js';
|
|
3
|
+
export { getPhonePrefix, normalizePhoneDigits } from './chunk-6IPPANNX.js';
|
|
4
4
|
import './chunk-ENQ7O7VW.js';
|
package/dist/raast.cjs
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk4VSGCQ6K_cjs = require('./chunk-4VSGCQ6K.cjs');
|
|
4
|
+
require('./chunk-3IARSCO6.cjs');
|
|
5
5
|
require('./chunk-VPBMIYO2.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "createMerchantQr", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk4VSGCQ6K_cjs.createMerchantQr; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "createRaastP2PQr", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk4VSGCQ6K_cjs.createRaastP2PQr; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "parseRaastQr", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk4VSGCQ6K_cjs.parseRaastQr; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "validateRaastQr", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunk4VSGCQ6K_cjs.validateRaastQr; }
|
|
20
24
|
});
|