sales-frontend-components 0.0.116 → 0.0.117
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.cjs.js +78 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +79 -63
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -9
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useController } from 'react-hook-form';
|
|
3
|
-
import { CheckboxButton, Checkbox, isDate, DatePicker, DateRangePicker, FormCore, Modal, Button, RadioGroup, Radio, FormField, useModalState, ModalUtils, useDropDown, List, ListItem, Table, Select, Accordion, Tab, SegmentGroup, Loading } from 'sales-frontend-design-system';
|
|
3
|
+
import { CheckboxButton, Checkbox, isDate, DatePicker, DateRangePicker, FormCore, Modal, Button, RadioGroup, Radio, FormField, useModalState, ModalUtils, useDropDown, List, ListItem, convertDateString, Table, Select, Accordion, Tab, SegmentGroup, Loading } from 'sales-frontend-design-system';
|
|
4
4
|
import React, { useState, useCallback, useEffect, useRef } from 'react';
|
|
5
5
|
import { useSearchAddressQuery, useSearchPostalCodeQuery, useSearchAddressStandardizationQuery, useSearchCommonCodeQuery, useSearchCustomerListQuery, useSearchNationalityQuery, useSearchVisaQuery, getDspCustomerListMethod, useSearchEmployeeProfileQuery, useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchVehicleQuery, useSearchRiskGradeQuery, useSearchOrganizationQuery, getRemoteIdentityVerificationSystemToken } from 'sales-frontend-api/method';
|
|
6
6
|
import { IconMainUiSearch, IconGraphicsBankSaneop, IconGraphicsBankKiup, IconGraphicsBankKukmin, IconGraphicsBankSuhyeop, IconGraphicsBankJangGiSinYong, IconGraphicsBankNhNonghyeop, IconGraphicsBankJiyeokNonghyeop, IconGraphicsBankWoori, IconGraphicsBankScJeil, IconGraphicsBankSinhan, IconGraphicsBankHankookCity, IconGraphicsBankDaegu, IconGraphicsBankBusan, IconGraphicsBankGwangju, IconGraphicsBankJeju, IconGraphicsBankJeonbuk, IconGraphicsBankGyeongnam, IconGraphicsBankSaemaulGeumgo, IconGraphicsBankSinhyeop, IconGraphicsBankJeochuk, IconGraphicsBankHsbc, IconGraphicsBankABNAMRO, IconGraphicsBankSanlim, IconGraphicsBankPost, IconGraphicsBankKebHana, IconGraphicsBankKBank, IconGraphicsBankKakaoBank, IconGraphicsBankTossBank, IconGraphicsStockYuantaJeungkwon, IconGraphicsStockKbJeungkwon, IconGraphicsStockMiraeAssetJeungkwon, IconGraphicsStockSamsungJeungkwon, IconGraphicsStockHankookTujajeungkwon, IconGraphicsStockNhWooriTujajeungkwon, IconGraphicsStockGyoboJeungkwon, IconGraphicsStockHiTujajeungkwon, IconGraphicsStockHyundaiChaJeungkwon, IconGraphicsStockKiwoomJeungkwon, IconGraphicsStockSkJeungkwon, IconGraphicsStockDaesinJeungkwon, IconGraphicsStockHanwhaTujajeungkwon, IconGraphicsStockHanaGeumyungTujajeungkwon, IconGraphicsStockSinhanTujajeungkwon, IconGraphicsStockDbGeumyungTujajeungkwon, IconGraphicsStockYujinTujajeungkwon, IconGraphicsStockMeritzJeungkwon, IconGraphicsStockKakaoPayJeungkwon, IconGraphicsStockNhTujajeungkwon, IconGraphicsStockBugukJeungkwon, IconGraphicsStockSinyeongJeungkwon, IconGraphicsStockHochulEopsum, IconGraphicsFeedbackEmpty, IconIllustGrade, IconIllustJob, IconSubUiArrowRight, IconIllustVehicle, IconIllustCamera } from 'sales-frontend-assets';
|
|
@@ -219,19 +219,33 @@ function requireBind () {
|
|
|
219
219
|
var bindExports = requireBind();
|
|
220
220
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(bindExports);
|
|
221
221
|
|
|
222
|
-
const highlightOnSearchKeyword
|
|
223
|
-
if (originalText?.includes(targetString)) {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
222
|
+
const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
223
|
+
if (!targetString || !originalText?.includes(targetString)) {
|
|
224
|
+
return originalText;
|
|
225
|
+
}
|
|
226
|
+
const replacedText = [];
|
|
227
|
+
const splitText = originalText.split(targetString);
|
|
228
|
+
for (let i = 0; i < splitText.length; i++) {
|
|
229
|
+
replacedText.push(splitText[i] || "");
|
|
230
|
+
if (i < splitText.length - 1) {
|
|
231
|
+
replacedText.push(
|
|
232
|
+
/* @__PURE__ */ jsx("span", { className: "text-primary", children: targetString }, `search-keyword-highlight-${i}-${Math.random()}`)
|
|
233
|
+
);
|
|
231
234
|
}
|
|
232
|
-
return replacedText;
|
|
233
235
|
}
|
|
234
|
-
return
|
|
236
|
+
return replacedText;
|
|
237
|
+
};
|
|
238
|
+
const getGenderName = (genderCode) => {
|
|
239
|
+
switch (genderCode) {
|
|
240
|
+
case "1":
|
|
241
|
+
case "3":
|
|
242
|
+
return "\uB0A8\uC131";
|
|
243
|
+
case "2":
|
|
244
|
+
case "4":
|
|
245
|
+
return "\uC5EC\uC131";
|
|
246
|
+
default:
|
|
247
|
+
return "";
|
|
248
|
+
}
|
|
235
249
|
};
|
|
236
250
|
|
|
237
251
|
const cx$k = classNames.bind(styles);
|
|
@@ -269,14 +283,14 @@ const AddressSearchResult = ({
|
|
|
269
283
|
value: JSON.stringify(item),
|
|
270
284
|
select: item.roadNameBaseAddress === selectedAddress?.roadNameBaseAddress && item.roadNameDetailAddress === selectedAddress?.roadNameDetailAddress && item.mainBuildingName === selectedAddress?.mainBuildingName,
|
|
271
285
|
label: /* @__PURE__ */ jsxs("div", { className: cx$k("search-result"), children: [
|
|
272
|
-
/* @__PURE__ */ jsx("div", { className: cx$k("zipcode"), children: highlightOnSearchKeyword
|
|
286
|
+
/* @__PURE__ */ jsx("div", { className: cx$k("zipcode"), children: highlightOnSearchKeyword(`${item.firstPostalCode}${item.secondPostalCode}`, searchKeyword) }),
|
|
273
287
|
/* @__PURE__ */ jsx("div", { className: cx$k("divider") }),
|
|
274
288
|
/* @__PURE__ */ jsxs("div", { className: cx$k("address-info"), children: [
|
|
275
|
-
/* @__PURE__ */ jsx("span", { className: cx$k("address"), children: highlightOnSearchKeyword
|
|
289
|
+
/* @__PURE__ */ jsx("span", { className: cx$k("address"), children: highlightOnSearchKeyword(
|
|
276
290
|
`${item.roadNameBaseAddress} ${item.roadNameDetailAddress} ${item.mainBuildingName}`,
|
|
277
291
|
searchKeyword
|
|
278
292
|
) }),
|
|
279
|
-
/* @__PURE__ */ jsx("span", { className: cx$k("old-address"), children: highlightOnSearchKeyword
|
|
293
|
+
/* @__PURE__ */ jsx("span", { className: cx$k("old-address"), children: highlightOnSearchKeyword(
|
|
280
294
|
`${item.landNumberBaseAddress} ${item.landNumberDetailAddress}`,
|
|
281
295
|
searchKeyword
|
|
282
296
|
) })
|
|
@@ -968,7 +982,7 @@ function BankStockSearchModal({ open, onClose, onSelect }) {
|
|
|
968
982
|
" ",
|
|
969
983
|
convertedItem?.replaceName
|
|
970
984
|
] })
|
|
971
|
-
] }, item.codeVal);
|
|
985
|
+
] }, `${item.codeVal}-${chunkIndex}`);
|
|
972
986
|
}),
|
|
973
987
|
chunk2.length < 5 && Array.from({ length: 5 - chunk2.length }).map((_, i) => /* @__PURE__ */ jsx("div", { className: styles$1.item, style: { visibility: "hidden" } }, `placeholder-${chunkIndex}-${i}`))
|
|
974
988
|
] }, chunkIndex)) });
|
|
@@ -1001,10 +1015,6 @@ const useCustomerSearch = (onSelect) => {
|
|
|
1001
1015
|
const search = () => {
|
|
1002
1016
|
if (searchInput.length >= 2) {
|
|
1003
1017
|
setSearchKeyword(searchInput);
|
|
1004
|
-
const filtered = data?.data?.custList?.filter(
|
|
1005
|
-
(c) => c.customerName?.toLowerCase().includes(searchInput.toLowerCase())
|
|
1006
|
-
);
|
|
1007
|
-
setCustomerList(filtered || []);
|
|
1008
1018
|
setIsOpen(true);
|
|
1009
1019
|
} else {
|
|
1010
1020
|
setCustomerList([]);
|
|
@@ -1041,6 +1051,12 @@ const useCustomerSearch = (onSelect) => {
|
|
|
1041
1051
|
onSelect(customer);
|
|
1042
1052
|
}
|
|
1043
1053
|
};
|
|
1054
|
+
useEffect(() => {
|
|
1055
|
+
const filtered = data?.data?.custList?.filter(
|
|
1056
|
+
(c) => c.customerName?.toLowerCase().includes(searchInput.toLowerCase())
|
|
1057
|
+
);
|
|
1058
|
+
setCustomerList(filtered || []);
|
|
1059
|
+
}, [data, searchInput]);
|
|
1044
1060
|
return {
|
|
1045
1061
|
triggerRef,
|
|
1046
1062
|
isOpen,
|
|
@@ -1062,22 +1078,6 @@ const useCustomerSearch = (onSelect) => {
|
|
|
1062
1078
|
};
|
|
1063
1079
|
|
|
1064
1080
|
const cx$j = classNames.bind(styles$2);
|
|
1065
|
-
const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
1066
|
-
if (!targetString || !originalText?.includes(targetString)) {
|
|
1067
|
-
return originalText;
|
|
1068
|
-
}
|
|
1069
|
-
const replacedText = [];
|
|
1070
|
-
const splitText = originalText.split(targetString);
|
|
1071
|
-
for (let i = 0; i < splitText.length; i++) {
|
|
1072
|
-
replacedText.push(splitText[i] || "");
|
|
1073
|
-
if (i < splitText.length - 1) {
|
|
1074
|
-
replacedText.push(
|
|
1075
|
-
/* @__PURE__ */ jsx("span", { className: "text-primary", children: targetString }, i)
|
|
1076
|
-
);
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
return replacedText;
|
|
1080
|
-
};
|
|
1081
1081
|
const { InputBox: InputBox$3, Input: Input$3 } = FormCore;
|
|
1082
1082
|
const CustomerSearch = ({ onSelectCustomer, placeholder, rootProps, ...props }) => {
|
|
1083
1083
|
const {
|
|
@@ -1106,18 +1106,30 @@ const CustomerSearch = ({ onSelectCustomer, placeholder, rootProps, ...props })
|
|
|
1106
1106
|
ref: triggerRef
|
|
1107
1107
|
}
|
|
1108
1108
|
) }) }),
|
|
1109
|
-
isOpen && customerList.length > 0 && /* @__PURE__ */ jsx(DropDown, { children: /* @__PURE__ */ jsx("div", { className: cx$j("result-container"), children: /* @__PURE__ */ jsx(List, { children: customerList.map((customer
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
|
|
1109
|
+
isOpen && customerList.length > 0 && /* @__PURE__ */ jsx(DropDown, { children: /* @__PURE__ */ jsx("div", { className: cx$j("result-container"), children: /* @__PURE__ */ jsx(List, { children: customerList.map((customer, index) => /* @__PURE__ */ jsx(
|
|
1110
|
+
ListItem,
|
|
1111
|
+
{
|
|
1112
|
+
onClick: () => handleSelectItem(customer),
|
|
1113
|
+
selectable: true,
|
|
1114
|
+
children: /* @__PURE__ */ jsxs("div", { className: cx$j("customer-item"), children: [
|
|
1115
|
+
/* @__PURE__ */ jsx("div", { className: cx$j("name"), children: highlightOnSearchKeyword(customer.customerName || "", searchKeyword) }),
|
|
1116
|
+
/* @__PURE__ */ jsxs("div", { className: cx$j("details"), children: [
|
|
1117
|
+
/* @__PURE__ */ jsx("span", { children: customer.birthDate && convertDateString({
|
|
1118
|
+
dateString: customer.birthDate,
|
|
1119
|
+
fromFormat: "YYYYMMDD",
|
|
1120
|
+
toFormat: "YYYY.MM.DD"
|
|
1121
|
+
}) }),
|
|
1122
|
+
/* @__PURE__ */ jsx("span", { className: cx$j("separator"), children: "|" }),
|
|
1123
|
+
/* @__PURE__ */ jsx("span", { children: getGenderName(customer.genderCode) }),
|
|
1124
|
+
customer.baseAddress && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1125
|
+
/* @__PURE__ */ jsx("span", { className: cx$j("separator"), children: "|" }),
|
|
1126
|
+
/* @__PURE__ */ jsx("span", { children: customer.baseAddress })
|
|
1127
|
+
] })
|
|
1128
|
+
] })
|
|
1118
1129
|
] })
|
|
1119
|
-
|
|
1120
|
-
|
|
1130
|
+
},
|
|
1131
|
+
`cust-item-${customer.customerId}-${index}`
|
|
1132
|
+
)) }) }) })
|
|
1121
1133
|
] });
|
|
1122
1134
|
};
|
|
1123
1135
|
|
|
@@ -1164,7 +1176,7 @@ function CustomerSearchModal({ isOpen, closeModal, onSelect }) {
|
|
|
1164
1176
|
/* @__PURE__ */ jsx("span", { className: "text-primary", children: searchKeyword }),
|
|
1165
1177
|
"`\uC5D0 \uB300\uD55C \uAC80\uC0C9\uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."
|
|
1166
1178
|
] }),
|
|
1167
|
-
searchKeyword && customerList.length > 0 && /* @__PURE__ */ jsx("div", { children: customerList.length > 0 && /* @__PURE__ */ jsx(List, { rootProps: { style: { width: "100%" } }, children: customerList.map((customer) => /* @__PURE__ */ jsx(
|
|
1179
|
+
searchKeyword && customerList.length > 0 && /* @__PURE__ */ jsx("div", { children: customerList.length > 0 && /* @__PURE__ */ jsx(List, { rootProps: { style: { width: "100%" } }, children: customerList.map((customer, index) => /* @__PURE__ */ jsx(
|
|
1168
1180
|
ListItem,
|
|
1169
1181
|
{
|
|
1170
1182
|
onClick: () => {
|
|
@@ -1176,11 +1188,15 @@ function CustomerSearchModal({ isOpen, closeModal, onSelect }) {
|
|
|
1176
1188
|
},
|
|
1177
1189
|
selectable: true,
|
|
1178
1190
|
children: /* @__PURE__ */ jsxs("div", { className: cx$i("customer-item", "modal"), children: [
|
|
1179
|
-
/* @__PURE__ */ jsx("div", { className: cx$i("name"), children: highlightOnSearchKeyword
|
|
1191
|
+
/* @__PURE__ */ jsx("div", { className: cx$i("name"), children: highlightOnSearchKeyword(customer.customerName || "", searchKeyword) }),
|
|
1180
1192
|
/* @__PURE__ */ jsxs("div", { className: cx$i("details", "modal"), children: [
|
|
1181
|
-
/* @__PURE__ */ jsx("span", { children: customer.birthDate
|
|
1193
|
+
/* @__PURE__ */ jsx("span", { children: customer.birthDate && convertDateString({
|
|
1194
|
+
dateString: customer.birthDate,
|
|
1195
|
+
fromFormat: "YYYYMMDD",
|
|
1196
|
+
toFormat: "YYYY.MM.DD"
|
|
1197
|
+
}) }),
|
|
1182
1198
|
/* @__PURE__ */ jsx("span", { className: cx$i("separator"), children: "|" }),
|
|
1183
|
-
/* @__PURE__ */ jsx("span", { children: customer.genderCode }),
|
|
1199
|
+
/* @__PURE__ */ jsx("span", { children: getGenderName(customer.genderCode) }),
|
|
1184
1200
|
customer.baseAddress && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1185
1201
|
/* @__PURE__ */ jsx("span", { className: cx$i("separator"), children: "|" }),
|
|
1186
1202
|
/* @__PURE__ */ jsx("span", { children: customer.baseAddress })
|
|
@@ -1188,7 +1204,7 @@ function CustomerSearchModal({ isOpen, closeModal, onSelect }) {
|
|
|
1188
1204
|
] })
|
|
1189
1205
|
] })
|
|
1190
1206
|
},
|
|
1191
|
-
customer.customerId
|
|
1207
|
+
`cust-item-${customer.customerId}-${index}`
|
|
1192
1208
|
)) }) })
|
|
1193
1209
|
] })
|
|
1194
1210
|
] })
|
|
@@ -1239,7 +1255,7 @@ const NationalitySearchInitialText = ({
|
|
|
1239
1255
|
};
|
|
1240
1256
|
return /* @__PURE__ */ jsxs("div", { className: cx$h("favorite-container"), children: [
|
|
1241
1257
|
/* @__PURE__ */ jsx("p", { className: cx$h("favorite-title"), children: "\uB9CE\uC774 \uCC3E\uB294 \uAD6D\uC801" }),
|
|
1242
|
-
/* @__PURE__ */ jsx("ul", { className: cx$h("favorite"), children: favoriteList.map((item) => /* @__PURE__ */ jsx("li", { onClick: () => set(item.nationalityCodeName), children: /* @__PURE__ */ jsx("button", { children: item.nationalityCodeName }) }, item.nationalityCode)) })
|
|
1258
|
+
/* @__PURE__ */ jsx("ul", { className: cx$h("favorite"), children: favoriteList.map((item, index) => /* @__PURE__ */ jsx("li", { onClick: () => set(item.nationalityCodeName), children: /* @__PURE__ */ jsx("button", { children: item.nationalityCodeName }) }, `${item.nationalityCode}-${index}`)) })
|
|
1243
1259
|
] });
|
|
1244
1260
|
};
|
|
1245
1261
|
const NationalitySearchResult = ({ nationalityList, searchKeyWord, onSelect }) => {
|
|
@@ -1255,7 +1271,7 @@ const NationalitySearchResult = ({ nationalityList, searchKeyWord, onSelect }) =
|
|
|
1255
1271
|
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
1256
1272
|
] }),
|
|
1257
1273
|
/* @__PURE__ */ jsx("ul", { className: cx$h("favorite"), children: filterList.length > 0 && filterList.map((item, index) => {
|
|
1258
|
-
return /* @__PURE__ */ jsx("li", { onClick: () => onSelect(item.nationalityCodeName), children: /* @__PURE__ */ jsx("button", { children: highlightOnSearchKeyword
|
|
1274
|
+
return /* @__PURE__ */ jsx("li", { onClick: () => onSelect(item.nationalityCodeName), children: /* @__PURE__ */ jsx("button", { children: highlightOnSearchKeyword(item.nationalityCodeName, searchKeyWord) }) }, `${index}-${item.nationalityCode}`);
|
|
1259
1275
|
}) }),
|
|
1260
1276
|
filterList.length === 0 && /* @__PURE__ */ jsxs("div", { className: cx$h("search-result"), children: [
|
|
1261
1277
|
"`",
|
|
@@ -1679,7 +1695,7 @@ const VisaSearchResult = ({ visaList, searchKeyword, onSelect }) => {
|
|
|
1679
1695
|
"\uAC74\uC758 \uAC80\uC0C9\uACB0\uACFC"
|
|
1680
1696
|
] }),
|
|
1681
1697
|
/* @__PURE__ */ jsx("ul", { className: cx$g("favorite"), children: filterList.length > 0 && filterList.map((item, index) => {
|
|
1682
|
-
return /* @__PURE__ */ jsx("li", { onClick: () => onSelect(item), children: /* @__PURE__ */ jsx("button", { children: highlightOnSearchKeyword
|
|
1698
|
+
return /* @__PURE__ */ jsx("li", { onClick: () => onSelect(item), children: /* @__PURE__ */ jsx("button", { children: highlightOnSearchKeyword(`${item.integrationCodeValueName}`, searchKeyword) }) }, `${index}-${item.integrationCodeValueName}`);
|
|
1683
1699
|
}) }),
|
|
1684
1700
|
filterList.length === 0 && /* @__PURE__ */ jsxs("div", { className: cx$g("search-result"), children: [
|
|
1685
1701
|
"`",
|
|
@@ -1813,7 +1829,7 @@ function DeaCustomerSearchResult({
|
|
|
1813
1829
|
/* @__PURE__ */ jsx("th", { className: cx$f("th-padding"), children: "\uC804\uD654\uBC88\uD638" }),
|
|
1814
1830
|
/* @__PURE__ */ jsx("th", { className: cx$f("th-padding"), children: "\uC8FC\uC18C" })
|
|
1815
1831
|
] }) }),
|
|
1816
|
-
/* @__PURE__ */ jsx("tbody", { children: customerList.length > 0 ? customerList.map((customer) => /* @__PURE__ */ jsxs("tr", { children: [
|
|
1832
|
+
/* @__PURE__ */ jsx("tbody", { children: customerList.length > 0 ? customerList.map((customer, index) => /* @__PURE__ */ jsxs("tr", { children: [
|
|
1817
1833
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
|
|
1818
1834
|
"input",
|
|
1819
1835
|
{
|
|
@@ -1830,7 +1846,7 @@ function DeaCustomerSearchResult({
|
|
|
1830
1846
|
/* @__PURE__ */ jsx("td", { children: customer.occupationKindName }),
|
|
1831
1847
|
/* @__PURE__ */ jsx("td", { children: customer.mobilePhoneNumber }),
|
|
1832
1848
|
/* @__PURE__ */ jsx("td", { children: customer.address })
|
|
1833
|
-
] }, customer.customerId)) : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 7, children: /* @__PURE__ */ jsxs("div", { className: cx$f("no-result"), children: [
|
|
1849
|
+
] }, `cust-item-${customer.customerId}-${index}}`)) : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: 7, children: /* @__PURE__ */ jsxs("div", { className: cx$f("no-result"), children: [
|
|
1834
1850
|
/* @__PURE__ */ jsx(IconGraphicsFeedbackEmpty, {}),
|
|
1835
1851
|
/* @__PURE__ */ jsx("p", { children: "\uC870\uD68C \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
1836
1852
|
/* @__PURE__ */ jsx("p", { children: "\uC785\uB825\uD55C \uC815\uBCF4\uB97C \uB2E4\uC2DC \uD655\uC778\uD574\uC8FC\uC138\uC694." })
|
|
@@ -2105,7 +2121,7 @@ function EmployeeSearch({
|
|
|
2105
2121
|
onChange: (value) => onTabChange(value),
|
|
2106
2122
|
className: styles$6.select,
|
|
2107
2123
|
size: "medium",
|
|
2108
|
-
children: EMPLOYEE_SEARCH_TABS.map((option) => /* @__PURE__ */ jsx(Select.Option, { value: option.value, children: option.label }, option.value))
|
|
2124
|
+
children: EMPLOYEE_SEARCH_TABS.map((option, index) => /* @__PURE__ */ jsx(Select.Option, { value: option.value, children: option.label }, `${option.value}-${index}`))
|
|
2109
2125
|
}
|
|
2110
2126
|
)
|
|
2111
2127
|
] }),
|
|
@@ -2277,7 +2293,7 @@ function JobSearchCategory({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
2277
2293
|
id: `item-${job.occupationIndustryCode}-${index}-accordion`,
|
|
2278
2294
|
children: [
|
|
2279
2295
|
/* @__PURE__ */ jsx(Accordion.HeaderDiv, { children: /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsxs(Radio.Item, { size: "small", value: job.occupationIndustryCode, onChange: () => onJobSelect(job), children: [
|
|
2280
|
-
highlightOnSearchKeyword
|
|
2296
|
+
highlightOnSearchKeyword(job.occupationIndustryName, searchTerm),
|
|
2281
2297
|
"(",
|
|
2282
2298
|
job.occupationIndustryCode,
|
|
2283
2299
|
")"
|
|
@@ -2362,7 +2378,7 @@ function JobSearchResult({ filteredJobs, onJobSelect, searchTerm }) {
|
|
|
2362
2378
|
onChange: () => {
|
|
2363
2379
|
onJobSelect(job);
|
|
2364
2380
|
},
|
|
2365
|
-
children: highlightOnSearchKeyword
|
|
2381
|
+
children: highlightOnSearchKeyword(job.occupationIndustryName, searchTerm)
|
|
2366
2382
|
}
|
|
2367
2383
|
) }) }),
|
|
2368
2384
|
/* @__PURE__ */ jsx(Accordion.Content, { variant: "text", children: /* @__PURE__ */ jsx(
|
|
@@ -2419,7 +2435,7 @@ function JobSearch({
|
|
|
2419
2435
|
size: "small",
|
|
2420
2436
|
variant: "sub",
|
|
2421
2437
|
style: { gap: 0, overflow: "visible" },
|
|
2422
|
-
children: JOB_SEARCH_TABS.map((tab) => /* @__PURE__ */ jsx(Tab.Item, { value: tab.value, children: tab.label }, tab.value))
|
|
2438
|
+
children: JOB_SEARCH_TABS.map((tab, index) => /* @__PURE__ */ jsx(Tab.Item, { value: tab.value, children: tab.label }, `${tab.value}-${index}`))
|
|
2423
2439
|
}
|
|
2424
2440
|
),
|
|
2425
2441
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -2960,7 +2976,7 @@ function OrganizationSearchResult({
|
|
|
2960
2976
|
/* @__PURE__ */ jsx("th", { className: cx$4("th-padding"), children: "\uAE30\uAD00\uCF54\uB4DC" }),
|
|
2961
2977
|
/* @__PURE__ */ jsx("th", { className: cx$4("th-padding"), children: "\uAE30\uAD00\uBA85" })
|
|
2962
2978
|
] }) }),
|
|
2963
|
-
/* @__PURE__ */ jsx("tbody", { children: filteredOrganizations.map((organization) => {
|
|
2979
|
+
/* @__PURE__ */ jsx("tbody", { children: filteredOrganizations.map((organization, index) => {
|
|
2964
2980
|
return /* @__PURE__ */ jsxs("tr", { children: [
|
|
2965
2981
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
|
|
2966
2982
|
"input",
|
|
@@ -2973,7 +2989,7 @@ function OrganizationSearchResult({
|
|
|
2973
2989
|
) }),
|
|
2974
2990
|
/* @__PURE__ */ jsx("td", { children: organization.organizationCode }),
|
|
2975
2991
|
/* @__PURE__ */ jsx("td", { children: organization.organizationName })
|
|
2976
|
-
] }, organization.organizationCode);
|
|
2992
|
+
] }, `${organization.organizationCode}-${index}`);
|
|
2977
2993
|
}) })
|
|
2978
2994
|
] }) : /* @__PURE__ */ jsxs(Table, { variant: "horizontal", children: [
|
|
2979
2995
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|