@djb25/digit-ui-module-wt 1.0.0 → 1.0.1
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +30 -43
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1942,9 +1942,6 @@ const WTCard = () => {
|
|
|
1942
1942
|
useEffect(() => {
|
|
1943
1943
|
if (!isFetching && isSuccess) setTotal(data);
|
|
1944
1944
|
}, [isFetching]);
|
|
1945
|
-
if (!Digit.Utils.wtAccess()) {
|
|
1946
|
-
return null;
|
|
1947
|
-
}
|
|
1948
1945
|
const links = [{
|
|
1949
1946
|
count: isLoading ? "-" : total === null || total === void 0 ? void 0 : total.totalCount,
|
|
1950
1947
|
label: t("ES_COMMON_INBOX"),
|
|
@@ -19019,9 +19016,6 @@ const WTCitizenCard = () => {
|
|
|
19019
19016
|
useEffect(() => {
|
|
19020
19017
|
if (!isFetching && isSuccess) setTotal(data);
|
|
19021
19018
|
}, [isFetching]);
|
|
19022
|
-
if (!Digit.Utils.wtAccess()) {
|
|
19023
|
-
return null;
|
|
19024
|
-
}
|
|
19025
19019
|
const links = [{
|
|
19026
19020
|
label: t("ES_COMMON_INBOX"),
|
|
19027
19021
|
link: `${APPLICATION_PATH}/citizen/wt/inbox`
|
|
@@ -19132,9 +19126,6 @@ const TPCard = () => {
|
|
|
19132
19126
|
useEffect(() => {
|
|
19133
19127
|
if (!isFetching && isSuccess) setTotal(data);
|
|
19134
19128
|
}, [isFetching]);
|
|
19135
|
-
if (!Digit.Utils.tpAccess()) {
|
|
19136
|
-
return null;
|
|
19137
|
-
}
|
|
19138
19129
|
const links = [{
|
|
19139
19130
|
count: isLoading ? "-" : total === null || total === void 0 ? void 0 : total.totalCount,
|
|
19140
19131
|
label: t("ES_COMMON_INBOX"),
|
|
@@ -20412,9 +20403,6 @@ const MTCitizenCard = () => {
|
|
|
20412
20403
|
useEffect(() => {
|
|
20413
20404
|
if (!isFetching && isSuccess) setTotal(data);
|
|
20414
20405
|
}, [isFetching]);
|
|
20415
|
-
if (!Digit.Utils.mtAccess()) {
|
|
20416
|
-
return null;
|
|
20417
|
-
}
|
|
20418
20406
|
const links = [{
|
|
20419
20407
|
label: t("ES_COMMON_INBOX"),
|
|
20420
20408
|
link: `${APPLICATION_PATH}/citizen/wt/mt/inbox`
|
|
@@ -20435,35 +20423,6 @@ const MTCitizenCard = () => {
|
|
|
20435
20423
|
return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
|
|
20436
20424
|
};
|
|
20437
20425
|
|
|
20438
|
-
const componentsToRegister = {
|
|
20439
|
-
ApplicantDetails,
|
|
20440
|
-
AddressDetails,
|
|
20441
|
-
WTCreate,
|
|
20442
|
-
InfoPage,
|
|
20443
|
-
RequestDetails,
|
|
20444
|
-
WTCheckPage,
|
|
20445
|
-
WTAcknowledgement,
|
|
20446
|
-
WTApplicationDetails: WTApplicationDetails,
|
|
20447
|
-
MTApplicationDetails: MTApplicationDetails,
|
|
20448
|
-
TPApplicationDetails: TPApplicationDetails,
|
|
20449
|
-
WTMyApplications: WTMyApplications,
|
|
20450
|
-
ApplicationDetails: ApplicationDetails$2,
|
|
20451
|
-
WFApplicationTimeline: WFApplicationTimeline,
|
|
20452
|
-
WFCaption,
|
|
20453
|
-
WTEmpInbox: Inbox,
|
|
20454
|
-
WTCitizenCard: WTCitizenCard,
|
|
20455
|
-
ServiceTypes,
|
|
20456
|
-
ToiletRequestDetails,
|
|
20457
|
-
TreePruningRequestDetails,
|
|
20458
|
-
MTAcknowledgement,
|
|
20459
|
-
TPAcknowledgement,
|
|
20460
|
-
MTCitizenCard: MTCitizenCard
|
|
20461
|
-
};
|
|
20462
|
-
const addComponentsToRegistry = () => {
|
|
20463
|
-
Object.entries(componentsToRegister).forEach(([key, value]) => {
|
|
20464
|
-
Digit.ComponentRegistryService.setComponent(key, value);
|
|
20465
|
-
});
|
|
20466
|
-
};
|
|
20467
20426
|
const WTModule = ({
|
|
20468
20427
|
stateCode,
|
|
20469
20428
|
userType,
|
|
@@ -20483,7 +20442,6 @@ const WTModule = ({
|
|
|
20483
20442
|
moduleCode,
|
|
20484
20443
|
language
|
|
20485
20444
|
});
|
|
20486
|
-
addComponentsToRegistry();
|
|
20487
20445
|
Digit.SessionStorage.set("WT_TENANTS", tenants);
|
|
20488
20446
|
useEffect(() => userType === "employee" && Digit.LocalizationService.getLocale({
|
|
20489
20447
|
modules: [`rainmaker-${Digit.ULBService.getCurrentTenantId()}`],
|
|
@@ -20533,6 +20491,35 @@ const WTComponents = {
|
|
|
20533
20491
|
WT_INBOX_FILTER: props => /*#__PURE__*/React.createElement(Filter, props),
|
|
20534
20492
|
WTInboxTableConfig: TableConfig
|
|
20535
20493
|
};
|
|
20494
|
+
const componentsToRegister = {
|
|
20495
|
+
ApplicantDetails,
|
|
20496
|
+
AddressDetails,
|
|
20497
|
+
WTCreate,
|
|
20498
|
+
InfoPage,
|
|
20499
|
+
RequestDetails,
|
|
20500
|
+
WTCheckPage,
|
|
20501
|
+
WTAcknowledgement,
|
|
20502
|
+
WTApplicationDetails: WTApplicationDetails,
|
|
20503
|
+
MTApplicationDetails: MTApplicationDetails,
|
|
20504
|
+
TPApplicationDetails: TPApplicationDetails,
|
|
20505
|
+
WTMyApplications: WTMyApplications,
|
|
20506
|
+
ApplicationDetails: ApplicationDetails$2,
|
|
20507
|
+
WFApplicationTimeline: WFApplicationTimeline,
|
|
20508
|
+
WFCaption,
|
|
20509
|
+
WTEmpInbox: Inbox,
|
|
20510
|
+
WTCitizenCard: WTCitizenCard,
|
|
20511
|
+
ServiceTypes,
|
|
20512
|
+
ToiletRequestDetails,
|
|
20513
|
+
TreePruningRequestDetails,
|
|
20514
|
+
MTAcknowledgement,
|
|
20515
|
+
TPAcknowledgement,
|
|
20516
|
+
MTCitizenCard: MTCitizenCard
|
|
20517
|
+
};
|
|
20518
|
+
const initWTComponents = () => {
|
|
20519
|
+
Object.entries(componentsToRegister).forEach(([key, value]) => {
|
|
20520
|
+
Digit.ComponentRegistryService.setComponent(key, value);
|
|
20521
|
+
});
|
|
20522
|
+
};
|
|
20536
20523
|
|
|
20537
|
-
export { WTComponents, WTLinks, WTModule };
|
|
20524
|
+
export { WTComponents, WTLinks, WTModule, initWTComponents };
|
|
20538
20525
|
//# sourceMappingURL=index.modern.js.map
|