@egovernments/digit-ui-libraries 1.5.0-beta.11 → 1.5.0-beta.25
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/README.md +32 -32
- package/dist/index.js +31 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +31 -19
- package/dist/index.modern.js.map +1 -1
- package/package.json +43 -43
package/README.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# digit-ui-libraries
|
|
2
|
-
|
|
3
|
-
> Made with @egovernments/create-ui-library
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install --save @egovernments/digit-ui-libraries
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```jsx
|
|
14
|
-
import React from "react";
|
|
15
|
-
import initLibraries from "@egovernments/digit-ui-libraries";
|
|
16
|
-
|
|
17
|
-
import defaultConfig from "./config";
|
|
18
|
-
|
|
19
|
-
const App = ({ deltaConfig, stateCode, cityCode, moduleCode }) => {
|
|
20
|
-
initLibraries();
|
|
21
|
-
|
|
22
|
-
const store = eGov.Services.useStore(defaultConfig, { deltaConfig, stateCode, cityCode, moduleCode });
|
|
23
|
-
|
|
24
|
-
return <p>Create React Library Example 😄</p>;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default App;
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## License
|
|
31
|
-
|
|
32
|
-
MIT © [](https://github.com/)
|
|
1
|
+
# digit-ui-libraries
|
|
2
|
+
|
|
3
|
+
> Made with @egovernments/create-ui-library
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save @egovernments/digit-ui-libraries
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
import React from "react";
|
|
15
|
+
import initLibraries from "@egovernments/digit-ui-libraries";
|
|
16
|
+
|
|
17
|
+
import defaultConfig from "./config";
|
|
18
|
+
|
|
19
|
+
const App = ({ deltaConfig, stateCode, cityCode, moduleCode }) => {
|
|
20
|
+
initLibraries();
|
|
21
|
+
|
|
22
|
+
const store = eGov.Services.useStore(defaultConfig, { deltaConfig, stateCode, cityCode, moduleCode });
|
|
23
|
+
|
|
24
|
+
return <p>Create React Library Example 😄</p>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default App;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
MIT © [](https://github.com/)
|
package/dist/index.js
CHANGED
|
@@ -42594,7 +42594,7 @@ var TLSearch = {
|
|
|
42594
42594
|
value: response !== null && response !== void 0 && (_response$tradeLicens2 = response.tradeLicenseDetail) !== null && _response$tradeLicens2 !== void 0 && _response$tradeLicens2.structureType ? "COMMON_MASTERS_STRUCTURETYPE_" + (response === null || response === void 0 ? void 0 : (_response$tradeLicens3 = response.tradeLicenseDetail) === null || _response$tradeLicens3 === void 0 ? void 0 : (_response$tradeLicens4 = _response$tradeLicens3.structureType) === null || _response$tradeLicens4 === void 0 ? void 0 : _response$tradeLicens4.split(".")[0]) : "NA"
|
|
42595
42595
|
}, {
|
|
42596
42596
|
title: "TL_NEW_TRADE_DETAILS_STRUCT_SUB_TYPE_LABEL",
|
|
42597
|
-
value: response !== null && response !== void 0 && (_response$tradeLicens5 = response.tradeLicenseDetail) !== null && _response$tradeLicens5 !== void 0 && _response$tradeLicens5.structureType ? "
|
|
42597
|
+
value: response !== null && response !== void 0 && (_response$tradeLicens5 = response.tradeLicenseDetail) !== null && _response$tradeLicens5 !== void 0 && _response$tradeLicens5.structureType ? "TL_" + (response === null || response === void 0 ? void 0 : (_response$tradeLicens6 = response.tradeLicenseDetail) === null || _response$tradeLicens6 === void 0 ? void 0 : _response$tradeLicens6.tradeType) : "NA"
|
|
42598
42598
|
}, {
|
|
42599
42599
|
title: "TL_NEW_TRADE_DETAILS_TRADE_COMM_DATE_LABEL",
|
|
42600
42600
|
value: response !== null && response !== void 0 && response.commencementDate ? convertEpochToDate(response === null || response === void 0 ? void 0 : response.commencementDate) : "NA"
|
|
@@ -44048,14 +44048,7 @@ var OBPSService = {
|
|
|
44048
44048
|
edcrNumber: bpaResponse !== null && bpaResponse !== void 0 && (_bpaResponse$BPA2 = bpaResponse.BPA) !== null && _bpaResponse$BPA2 !== void 0 && (_bpaResponse$BPA2$ = _bpaResponse$BPA2[0]) !== null && _bpaResponse$BPA2$ !== void 0 && _bpaResponse$BPA2$.edcrNumber.includes("OCDCR") ? BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber : bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA3 = bpaResponse.BPA) === null || _bpaResponse$BPA3 === void 0 ? void 0 : (_bpaResponse$BPA3$ = _bpaResponse$BPA3[0]) === null || _bpaResponse$BPA3$ === void 0 ? void 0 : _bpaResponse$BPA3$.edcrNumber
|
|
44049
44049
|
};
|
|
44050
44050
|
return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
|
|
44051
|
-
|
|
44052
|
-
var _nocDetails$documents;
|
|
44053
|
-
|
|
44054
|
-
nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (nocDoc) {
|
|
44055
|
-
appDocumentFileStoreIds.push(nocDoc === null || nocDoc === void 0 ? void 0 : nocDoc.fileStoreId);
|
|
44056
|
-
});
|
|
44057
|
-
});
|
|
44058
|
-
return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (fileDetails) {
|
|
44051
|
+
function _temp2() {
|
|
44059
44052
|
var _BPA$additionalDetail, _BPA$additionalDetail2, _BPA$additionalDetail3, _BPA$additionalDetail4, _BPA$additionalDetail5, _BPA$additionalDetail6, _BPA$additionalDetail7, _permitcondn, _permitcondn2, _BPA$auditDetails, _BPA$auditDetails2, _edcr$planDetail3, _edcr$planDetail3$pla, _edcr$planDetail4, _edcr$planDetail4$pla, _edcr$planDetail5, _edcr$planDetail5$pla, _edcr$planDetail6, _edcr$planDetail6$pla, _edcr$planDetail7, _edcr$planDetail7$pla, _BPA$additionalDetail11, _BPA$additionalDetail12, _edcr$planDetail8, _edcr$planDetail8$blo, _edcr$planDetail8$blo2, _edcr$planDetail8$blo3, _edcr$planDetail9, _edcr$planDetail9$blo, _edcr$planDetail9$blo2, _edcr$planDetail9$blo3, _edcr$planDetail10, _edcr$planDetail10$bl, _edcr$planDetail10$bl2, _edcr$planDetail10$bl3, _edcr$planDetail11, _edcr$planDetail11$pl, _BPA$landInfo, _BPA$landInfo$address, _BPA$landInfo2, _BPA$landInfo2$addres, _BPA$landInfo3, _BPA$landInfo3$addres, _BPA$landInfo3$addres2, _BPA$landInfo4, _BPA$landInfo4$addres, _BPA$landInfo5, _BPA$landInfo5$addres, _BPA$landInfo6, _BPA$landInfo6$owners, _BPA$landInfo7, _BPA$landInfo7$owners, _BPA$landInfo9, _BPA$landInfo9$owners, _BPA$documents, _BPA$additionalDetail13, _BPA$additionalDetail14, _BPA$additionalDetail15, _BPA$additionalDetail16, _BPA$additionalDetail17, _BPA$additionalDetail18, _BPA$additionalDetail19, _details;
|
|
44060
44053
|
|
|
44061
44054
|
function ConvertEpochToValidityDate(dateEpoch) {
|
|
@@ -44076,13 +44069,13 @@ var OBPSService = {
|
|
|
44076
44069
|
var _fiData$docs2;
|
|
44077
44070
|
|
|
44078
44071
|
fiData === null || fiData === void 0 ? void 0 : (_fiData$docs2 = fiData.docs) === null || _fiData$docs2 === void 0 ? void 0 : _fiData$docs2.forEach(function (fiDoc) {
|
|
44079
|
-
var _fileDetails$data$
|
|
44072
|
+
var _fileDetails, _fileDetails2, _fileDetails2$data$fi;
|
|
44080
44073
|
|
|
44081
|
-
if (fileDetails !== null &&
|
|
44074
|
+
if ((_fileDetails = fileDetails) !== null && _fileDetails !== void 0 && _fileDetails.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) fiDoc.url = (_fileDetails2 = fileDetails) === null || _fileDetails2 === void 0 ? void 0 : (_fileDetails2$data$fi = _fileDetails2.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) === null || _fileDetails2$data$fi === void 0 ? void 0 : _fileDetails2$data$fi.split(',')[0];
|
|
44082
44075
|
});
|
|
44083
44076
|
});
|
|
44084
44077
|
var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
|
|
44085
|
-
var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$
|
|
44078
|
+
var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents;
|
|
44086
44079
|
|
|
44087
44080
|
return {
|
|
44088
44081
|
title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
|
|
@@ -44111,8 +44104,8 @@ var OBPSService = {
|
|
|
44111
44104
|
data: nocDetails,
|
|
44112
44105
|
noc: [{
|
|
44113
44106
|
title: "BPA_DOCUMENT_DETAILS_LABEL",
|
|
44114
|
-
values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$
|
|
44115
|
-
var _doc$documentType2,
|
|
44107
|
+
values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
|
|
44108
|
+
var _doc$documentType2, _fileDetails3, _fileDetails3$data, _fileDetails4, _fileDetails4$data, _fileDetails4$data$do;
|
|
44116
44109
|
|
|
44117
44110
|
return {
|
|
44118
44111
|
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
|
|
@@ -44120,7 +44113,7 @@ var OBPSService = {
|
|
|
44120
44113
|
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
44121
44114
|
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
44122
44115
|
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
44123
|
-
url: fileDetails !== null &&
|
|
44116
|
+
url: (_fileDetails3 = fileDetails) !== null && _fileDetails3 !== void 0 && (_fileDetails3$data = _fileDetails3.data) !== null && _fileDetails3$data !== void 0 && _fileDetails3$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails4 = fileDetails) === null || _fileDetails4 === void 0 ? void 0 : (_fileDetails4$data = _fileDetails4.data) === null || _fileDetails4$data === void 0 ? void 0 : (_fileDetails4$data$do = _fileDetails4$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails4$data$do === void 0 ? void 0 : _fileDetails4$data$do.split(',')[0] : ""
|
|
44124
44117
|
};
|
|
44125
44118
|
})
|
|
44126
44119
|
}]
|
|
@@ -44168,7 +44161,7 @@ var OBPSService = {
|
|
|
44168
44161
|
obpsDocuments: [{
|
|
44169
44162
|
title: "",
|
|
44170
44163
|
values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
|
|
44171
|
-
var _doc$documentType3,
|
|
44164
|
+
var _doc$documentType3, _fileDetails5, _fileDetails5$data, _fileDetails6, _fileDetails6$data, _fileDetails6$data$do;
|
|
44172
44165
|
|
|
44173
44166
|
return {
|
|
44174
44167
|
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
|
|
@@ -44176,7 +44169,7 @@ var OBPSService = {
|
|
|
44176
44169
|
documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
|
|
44177
44170
|
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
44178
44171
|
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
44179
|
-
url: fileDetails !== null &&
|
|
44172
|
+
url: (_fileDetails5 = fileDetails) !== null && _fileDetails5 !== void 0 && (_fileDetails5$data = _fileDetails5.data) !== null && _fileDetails5$data !== void 0 && _fileDetails5$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails6 = fileDetails) === null || _fileDetails6 === void 0 ? void 0 : (_fileDetails6$data = _fileDetails6.data) === null || _fileDetails6$data === void 0 ? void 0 : (_fileDetails6$data$do = _fileDetails6$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails6$data$do === void 0 ? void 0 : _fileDetails6$data$do.split(',')[0] : ""
|
|
44180
44173
|
};
|
|
44181
44174
|
})
|
|
44182
44175
|
}]
|
|
@@ -44441,7 +44434,7 @@ var OBPSService = {
|
|
|
44441
44434
|
obpsDocuments: [{
|
|
44442
44435
|
title: "",
|
|
44443
44436
|
values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
|
|
44444
|
-
var _doc$documentType4,
|
|
44437
|
+
var _doc$documentType4, _fileDetails7, _fileDetails7$data, _fileDetails8, _fileDetails8$data, _fileDetails8$data$do;
|
|
44445
44438
|
|
|
44446
44439
|
return {
|
|
44447
44440
|
title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
|
|
@@ -44449,7 +44442,7 @@ var OBPSService = {
|
|
|
44449
44442
|
documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
|
|
44450
44443
|
fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
|
|
44451
44444
|
id: doc === null || doc === void 0 ? void 0 : doc.id,
|
|
44452
|
-
url: fileDetails !== null &&
|
|
44445
|
+
url: (_fileDetails7 = fileDetails) !== null && _fileDetails7 !== void 0 && (_fileDetails7$data = _fileDetails7.data) !== null && _fileDetails7$data !== void 0 && _fileDetails7$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails8 = fileDetails) === null || _fileDetails8 === void 0 ? void 0 : (_fileDetails8$data = _fileDetails8.data) === null || _fileDetails8$data === void 0 ? void 0 : (_fileDetails8$data$do = _fileDetails8$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails8$data$do === void 0 ? void 0 : _fileDetails8$data$do.split(',')[0] : ""
|
|
44453
44446
|
};
|
|
44454
44447
|
})
|
|
44455
44448
|
}]
|
|
@@ -44551,7 +44544,26 @@ var OBPSService = {
|
|
|
44551
44544
|
applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
|
|
44552
44545
|
applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
|
|
44553
44546
|
};
|
|
44547
|
+
}
|
|
44548
|
+
|
|
44549
|
+
noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails) {
|
|
44550
|
+
var _nocDetails$documents2;
|
|
44551
|
+
|
|
44552
|
+
nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents2 = nocDetails.documents) === null || _nocDetails$documents2 === void 0 ? void 0 : _nocDetails$documents2.map(function (nocDoc) {
|
|
44553
|
+
appDocumentFileStoreIds.push(nocDoc === null || nocDoc === void 0 ? void 0 : nocDoc.fileStoreId);
|
|
44554
|
+
});
|
|
44554
44555
|
});
|
|
44556
|
+
var fileDetails = {};
|
|
44557
|
+
|
|
44558
|
+
var _temp = function () {
|
|
44559
|
+
if ((appDocumentFileStoreIds === null || appDocumentFileStoreIds === void 0 ? void 0 : appDocumentFileStoreIds.length) > 0) {
|
|
44560
|
+
return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (_UploadServices$Filef) {
|
|
44561
|
+
fileDetails = _UploadServices$Filef;
|
|
44562
|
+
});
|
|
44563
|
+
}
|
|
44564
|
+
}();
|
|
44565
|
+
|
|
44566
|
+
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
44555
44567
|
});
|
|
44556
44568
|
});
|
|
44557
44569
|
});
|