@mseva/digit-ui-module-core 1.0.65 → 1.0.66-dev.1.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.
@@ -6182,122 +6182,41 @@ const EmployeeQuickServicesCard = ({
6182
6182
  return item.code === ((_updatedModuleData$ = updatedModuleData[0]) === null || _updatedModuleData$ === void 0 ? void 0 : _updatedModuleData$.Access);
6183
6183
  }) ? /*#__PURE__*/React.createElement(Link, {
6184
6184
  to: `${(_updatedModuleData$2 = updatedModuleData[0]) === null || _updatedModuleData$2 === void 0 ? void 0 : _updatedModuleData$2.routes}`,
6185
- style: {
6186
- textDecoration: "none",
6187
- display: "block"
6188
- },
6185
+ className: "employee-quick-service-link",
6189
6186
  onMouseEnter: () => setIsHovered(true),
6190
6187
  onMouseLeave: () => setIsHovered(false)
6191
6188
  }, /*#__PURE__*/React.createElement("div", {
6192
- style: {
6193
- display: "flex",
6194
- alignItems: "stretch",
6195
- borderRadius: "16px",
6196
- overflow: "hidden",
6197
- boxShadow: isHovered ? "0 12px 40px rgba(0, 0, 0, 0.15)" : "0 4px 20px rgba(0, 0, 0, 0.08)",
6198
- transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
6199
- transform: isHovered ? "translateY(-4px) scale(1.02)" : "translateY(0) scale(1)",
6200
- background: "white",
6201
- position: "relative",
6202
- border: isHovered ? "2px solid rgba(79, 101, 216, 0.3)" : "2px solid transparent"
6203
- }
6189
+ className: `employee-quick-service-card ${isHovered ? 'hovered' : ''}`
6204
6190
  }, /*#__PURE__*/React.createElement("div", {
6191
+ className: "card-icon-container",
6205
6192
  style: {
6206
- display: "flex",
6207
- justifyContent: "center",
6208
- alignItems: "center",
6209
- minWidth: "120px",
6210
- padding: "24px",
6211
- background: ((_updatedModuleData$3 = updatedModuleData[0]) === null || _updatedModuleData$3 === void 0 ? void 0 : _updatedModuleData$3.bgColor) || "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
6212
- position: "relative",
6213
- overflow: "hidden"
6193
+ background: ((_updatedModuleData$3 = updatedModuleData[0]) === null || _updatedModuleData$3 === void 0 ? void 0 : _updatedModuleData$3.bgColor) || "linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
6214
6194
  }
6215
6195
  }, /*#__PURE__*/React.createElement("div", {
6216
- style: {
6217
- position: "absolute",
6218
- width: "150px",
6219
- height: "150px",
6220
- background: "rgba(255, 255, 255, 0.1)",
6221
- borderRadius: "50%",
6222
- top: "-50px",
6223
- right: "-50px",
6224
- transition: "transform 0.5s ease",
6225
- transform: isHovered ? "scale(1.5)" : "scale(1)"
6226
- }
6196
+ className: "card-background-circle"
6227
6197
  }), /*#__PURE__*/React.createElement("div", {
6228
- style: {
6229
- transform: isHovered ? "scale(1.15) rotate(5deg)" : "scale(1) rotate(0deg)",
6230
- transition: "transform 0.3s ease",
6231
- zIndex: 1,
6232
- filter: "drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2))"
6233
- }
6198
+ className: "card-icon-wrapper"
6234
6199
  }, iconSelector(moduleData.code))), /*#__PURE__*/React.createElement("div", {
6235
- style: {
6236
- flex: 1,
6237
- display: "flex",
6238
- alignItems: "center",
6239
- justifyContent: "space-between",
6240
- padding: "24px 32px",
6241
- background: "white"
6242
- }
6200
+ className: "card-content-container"
6243
6201
  }, /*#__PURE__*/React.createElement("div", {
6244
- style: {
6245
- flex: 1
6246
- }
6202
+ className: "card-text-content"
6247
6203
  }, /*#__PURE__*/React.createElement("h3", {
6248
- style: {
6249
- fontSize: "22px",
6250
- fontWeight: "700",
6251
- color: "#1a202c",
6252
- margin: 0,
6253
- lineHeight: "1.3",
6254
- transition: "color 0.3s ease"
6255
- }
6204
+ className: "card-module-title"
6256
6205
  }, (_updatedModuleData$4 = updatedModuleData[0]) === null || _updatedModuleData$4 === void 0 ? void 0 : _updatedModuleData$4.moduleName), /*#__PURE__*/React.createElement("p", {
6257
- style: {
6258
- fontSize: "14px",
6259
- color: "#718096",
6260
- margin: "6px 0 0 0",
6261
- fontWeight: "400"
6262
- }
6206
+ className: "card-module-description"
6263
6207
  }, "Quick access to module")), /*#__PURE__*/React.createElement("div", {
6264
- style: {
6265
- display: "flex",
6266
- alignItems: "center",
6267
- justifyContent: "center",
6268
- width: "40px",
6269
- height: "40px",
6270
- borderRadius: "50%",
6271
- background: isHovered ? "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" : "#f7fafc",
6272
- transition: "all 0.3s ease",
6273
- transform: isHovered ? "translateX(4px)" : "translateX(0)"
6274
- }
6208
+ className: "card-arrow-container"
6275
6209
  }, /*#__PURE__*/React.createElement("svg", {
6276
- width: "20",
6277
- height: "20",
6210
+ width: window.Digit.Utils.browser.isMobile() ? "16" : "20",
6211
+ height: window.Digit.Utils.browser.isMobile() ? "16" : "20",
6278
6212
  viewBox: "0 0 20 20",
6279
6213
  fill: "none",
6280
- style: {
6281
- transition: "transform 0.3s ease",
6282
- transform: isHovered ? "translateX(2px)" : "translateX(0)"
6283
- }
6214
+ className: "card-arrow-svg"
6284
6215
  }, /*#__PURE__*/React.createElement("path", {
6285
6216
  d: "M7.5 15L12.5 10L7.5 5",
6286
- stroke: isHovered ? "white" : "#4a5568",
6287
- strokeWidth: "2",
6288
- strokeLinecap: "round",
6289
- strokeLinejoin: "round"
6217
+ className: "card-arrow-path"
6290
6218
  })))), isHovered && /*#__PURE__*/React.createElement("div", {
6291
- style: {
6292
- position: "absolute",
6293
- top: 0,
6294
- left: "-100%",
6295
- width: "100%",
6296
- height: "100%",
6297
- background: "linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent)",
6298
- animation: "shine 0.6s ease",
6299
- pointerEvents: "none"
6300
- }
6219
+ className: "card-shine-effect"
6301
6220
  }))) : null;
6302
6221
  };
6303
6222
 
@@ -13079,6 +12998,8 @@ const TopBar = ({
13079
12998
  }), /*#__PURE__*/React.createElement("div", {
13080
12999
  className: "ulb-info",
13081
13000
  style: {
13001
+ display: "flex",
13002
+ gap: "10px",
13082
13003
  marginLeft: "1rem"
13083
13004
  }
13084
13005
  }, /*#__PURE__*/React.createElement("img", {
@@ -13090,7 +13011,17 @@ const TopBar = ({
13090
13011
  height: "25px"
13091
13012
  }
13092
13013
  }), /*#__PURE__*/React.createElement("span", {
13093
- className: "ulb-name"
13014
+ className: "ulb-name",
13015
+ style: mobileView ? {
13016
+ display: "flex",
13017
+ justifyContent: "center",
13018
+ alignItems: "center",
13019
+ fontSize: "12px",
13020
+ whiteSpace: "nowrap",
13021
+ maxWidth: "200px",
13022
+ overflow: "hidden",
13023
+ textOverflow: "ellipsis"
13024
+ } : {}
13094
13025
  }, ulbName))), /*#__PURE__*/React.createElement("div", {
13095
13026
  className: "right-wrapper_navbar",
13096
13027
  style: {}
@@ -13165,7 +13096,8 @@ const TopBar = ({
13165
13096
  right: 0
13166
13097
  } : {},
13167
13098
  optionCardStyles: {
13168
- overflow: "revert"
13099
+ overflow: "revert",
13100
+ left: "-56px"
13169
13101
  },
13170
13102
  customSelector: profilePic == null ? /*#__PURE__*/React.createElement(TextToImg, {
13171
13103
  name: (userDetails === null || userDetails === void 0 ? void 0 : (_userDetails$info3 = userDetails.info) === null || _userDetails$info3 === void 0 ? void 0 : _userDetails$info3.name) || (userDetails === null || userDetails === void 0 ? void 0 : (_userDetails$info4 = userDetails.info) === null || _userDetails$info4 === void 0 ? void 0 : (_userDetails$info4$us = _userDetails$info4.userInfo) === null || _userDetails$info4$us === void 0 ? void 0 : _userDetails$info4$us.name) || "Employee"
@@ -13639,16 +13571,6 @@ const StaticCitizenSideBar = ({
13639
13571
  populators: {
13640
13572
  onClick: handleLogout
13641
13573
  }
13642
- }, {
13643
- text: /*#__PURE__*/React.createElement(React.Fragment, null, t("CS_COMMON_HELPLINE"), /*#__PURE__*/React.createElement("div", {
13644
- className: "telephone"
13645
- }, /*#__PURE__*/React.createElement("div", {
13646
- className: "link"
13647
- }, /*#__PURE__*/React.createElement("a", {
13648
- href: `tel:${filteredTenantContact}`
13649
- }, filteredTenantContact)))),
13650
- element: "Helpline",
13651
- icon: "Phone"
13652
13574
  }];
13653
13575
  }
13654
13576
  (_Object$keys = Object.keys(linkData)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$sort = _Object$keys.sort((x, y) => y.localeCompare(x))) === null || _Object$keys$sort === void 0 ? void 0 : _Object$keys$sort.map(key => {
@@ -13824,16 +13746,6 @@ const CitizenSideBar = ({
13824
13746
  populators: {
13825
13747
  onClick: onLogout
13826
13748
  }
13827
- }, {
13828
- text: /*#__PURE__*/React.createElement(React.Fragment, null, t("CS_COMMON_HELPLINE"), /*#__PURE__*/React.createElement("div", {
13829
- className: "telephone"
13830
- }, /*#__PURE__*/React.createElement("div", {
13831
- className: "link"
13832
- }, /*#__PURE__*/React.createElement("a", {
13833
- href: `tel:${filteredTenantContact}`
13834
- }, filteredTenantContact)))),
13835
- element: "Helpline",
13836
- icon: "Phone"
13837
13749
  }];
13838
13750
  }
13839
13751
  let configEmployeeSideBar = {};
@@ -16316,18 +16228,6 @@ const EmployeeApp = ({
16316
16228
  onClick: () => {
16317
16229
  window.open("", "_blank").focus();
16318
16230
  }
16319
- }, "Copyright \xA9 ", new Date().getFullYear())), /*#__PURE__*/React.createElement("div", {
16320
- className: "upyog-copyright-footer-web"
16321
- }, /*#__PURE__*/React.createElement("span", {
16322
- className: "",
16323
- style: {
16324
- cursor: "pointer",
16325
- fontSize: window.Digit.Utils.browser.isMobile() ? "12px" : "14px",
16326
- fontWeight: "400"
16327
- },
16328
- onClick: () => {
16329
- window.open("", "_blank").focus();
16330
- }
16331
16231
  }, "Copyright \xA9 ", new Date().getFullYear()))))), /*#__PURE__*/React.createElement(Route, null, /*#__PURE__*/React.createElement(Redirect, {
16332
16232
  to: `${path}/user/language-selection`
16333
16233
  }))));
@@ -16371,15 +16271,7 @@ const DashboardFooter = () => {
16371
16271
  }, "FAQ"), /*#__PURE__*/React.createElement("a", {
16372
16272
  className: "new-df-link",
16373
16273
  onClick: () => handleNavigation("/digit-ui/citizen/contact-us")
16374
- }, "Contact Us")), /*#__PURE__*/React.createElement("div", {
16375
- className: "new-df-column"
16376
- }, /*#__PURE__*/React.createElement("h3", {
16377
- className: "new-df-heading"
16378
- }, "Contact"), /*#__PURE__*/React.createElement("p", {
16379
- className: "new-df-text"
16380
- }, /*#__PURE__*/React.createElement("strong", null, "Helpline:"), " 01821-260114"), /*#__PURE__*/React.createElement("p", {
16381
- className: "new-df-text"
16382
- }, /*#__PURE__*/React.createElement("strong", null, "Email:"), " support@msevapunjab.gov.in"))), /*#__PURE__*/React.createElement("div", {
16274
+ }, "Contact Us"))), /*#__PURE__*/React.createElement("div", {
16383
16275
  className: "new-df-bottom"
16384
16276
  }, /*#__PURE__*/React.createElement("p", {
16385
16277
  className: "new-df-copyright"
@@ -16625,12 +16517,12 @@ const Home = () => {
16625
16517
  Icon: /*#__PURE__*/React.createElement(ComplaintIcon, null),
16626
16518
  onClick: () => {
16627
16519
  var _citizenServicesObj$p3, _citizenServicesObj$p4;
16628
- return history.push(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p3 = citizenServicesObj.props) === null || _citizenServicesObj$p3 === void 0 ? void 0 : (_citizenServicesObj$p4 = _citizenServicesObj$p3[7]) === null || _citizenServicesObj$p4 === void 0 ? void 0 : _citizenServicesObj$p4.navigationUrl);
16520
+ return toDigitUrl(citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p3 = citizenServicesObj.props) === null || _citizenServicesObj$p3 === void 0 ? void 0 : (_citizenServicesObj$p4 = _citizenServicesObj$p3[7]) === null || _citizenServicesObj$p4 === void 0 ? void 0 : _citizenServicesObj$p4.navigationUrl);
16629
16521
  }
16630
16522
  }] : (citizenServicesObj === null || citizenServicesObj === void 0 ? void 0 : (_citizenServicesObj$p5 = citizenServicesObj.props) === null || _citizenServicesObj$p5 === void 0 ? void 0 : (_citizenServicesObj$p6 = _citizenServicesObj$p5.filter(item => item === null || item === void 0 ? void 0 : item.enabled)) === null || _citizenServicesObj$p6 === void 0 ? void 0 : _citizenServicesObj$p6.map(item => ({
16631
16523
  name: t(item.label),
16632
16524
  Icon: getIconForService(item.code),
16633
- onClick: () => history.push(item.navigationUrl)
16525
+ onClick: () => toDigitUrl(item.navigationUrl)
16634
16526
  }))) || [];
16635
16527
  const filtered = allServices.filter(service => service.name.toLowerCase().includes(query));
16636
16528
  setFilteredServices(filtered);
@@ -17106,7 +16998,6 @@ const NewLogin = ({
17106
16998
  const handleMobileChange = val => {
17107
16999
  setMobileNumber(val || "");
17108
17000
  };
17109
- const getUserType = () => Digit.UserService.getType();
17110
17001
  const getFromLocation = state => {
17111
17002
  var _user$info, _user$info$roles, _user$info2, _user$info2$roles, _user$info3, _user$info3$roles;
17112
17003
  const userRoles = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.map(roleData => roleData === null || roleData === void 0 ? void 0 : roleData.code);
@@ -17131,7 +17022,7 @@ const NewLogin = ({
17131
17022
  const data = {
17132
17023
  mobileNumber,
17133
17024
  tenantId: stateCode,
17134
- userType: getUserType(),
17025
+ userType: "citizen",
17135
17026
  type: "login"
17136
17027
  };
17137
17028
  const [res, err] = await sendOtp({
@@ -17168,7 +17059,7 @@ const NewLogin = ({
17168
17059
  username: mobileNumber,
17169
17060
  password: otp,
17170
17061
  tenantId: stateCode,
17171
- userType: getUserType()
17062
+ userType: "citizen"
17172
17063
  };
17173
17064
  const {
17174
17065
  ResponseInfo,
@@ -17199,7 +17090,7 @@ const NewLogin = ({
17199
17090
  const data = {
17200
17091
  mobileNumber,
17201
17092
  tenantId: stateCode,
17202
- userType: getUserType(),
17093
+ userType: "citizen",
17203
17094
  type: "login"
17204
17095
  };
17205
17096
  const [res, err] = await sendOtp({
@@ -20734,6 +20625,9 @@ const CitizenHomeCardSecond = ({
20734
20625
  const isMobile = typeof window !== "undefined" ? window.innerWidth <= 768 : false;
20735
20626
  const location = useLocation();
20736
20627
  const shouldRemoveGrid = location.pathname.endsWith("all-services");
20628
+ const {
20629
+ t
20630
+ } = useTranslation();
20737
20631
  const cardColors = [{
20738
20632
  bg: "linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(208 189 227) 100%)",
20739
20633
  iconBg: "#667eea",
@@ -21033,7 +20927,7 @@ const CitizenHomeCardSecond = ({
21033
20927
  style: contentStyle
21034
20928
  }, /*#__PURE__*/React.createElement("div", {
21035
20929
  style: titleStyle
21036
- }, link.i18nKey), link.description && /*#__PURE__*/React.createElement("div", {
20930
+ }, t(link.i18nKey)), link.description && /*#__PURE__*/React.createElement("div", {
21037
20931
  style: descriptionStyle
21038
20932
  }, link.description)), /*#__PURE__*/React.createElement("div", {
21039
20933
  style: getArrowContainerStyle(isHovered, index)
@@ -21045,7 +20939,7 @@ const CitizenHomeCardSecond = ({
21045
20939
  style: rootStyle
21046
20940
  }, header && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h2", {
21047
20941
  style: headerStyle
21048
- }, header, /*#__PURE__*/React.createElement("div", {
20942
+ }, t(header), /*#__PURE__*/React.createElement("div", {
21049
20943
  style: headerUnderlineStyle
21050
20944
  }))), /*#__PURE__*/React.createElement("div", {
21051
20945
  style: containerStyle
@@ -21176,7 +21070,6 @@ const Home$1 = ({
21176
21070
  width: "100%",
21177
21071
  minHeight: "100vh",
21178
21072
  backgroundColor: "#F9FAFB",
21179
- paddingTop: isMobile ? "20px" : "",
21180
21073
  paddingBottom: "80px",
21181
21074
  marginTop: "3rem"
21182
21075
  }