sales-frontend-components 0.0.159 → 0.0.161
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 +24 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.esm.js +23 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -15
package/dist/index.cjs.js
CHANGED
|
@@ -1412,15 +1412,20 @@ const useNationalityComponent = () => {
|
|
|
1412
1412
|
const onConfirm = () => {
|
|
1413
1413
|
setIsConfirmed(true);
|
|
1414
1414
|
};
|
|
1415
|
+
const openInitModal = () => {
|
|
1416
|
+
setIsConfirmed(false);
|
|
1417
|
+
openModal();
|
|
1418
|
+
};
|
|
1415
1419
|
const NationalitySearchComponent = () => /* @__PURE__ */ jsxRuntime.jsx(NationalityComponent, { isOpen, onClose: closeModal, setValue: setNationality, onConfirm });
|
|
1416
1420
|
return {
|
|
1417
1421
|
isOpen,
|
|
1418
1422
|
closeModal,
|
|
1419
1423
|
setNationality,
|
|
1420
1424
|
nationality,
|
|
1421
|
-
openModal,
|
|
1425
|
+
openModal: openInitModal,
|
|
1422
1426
|
NationalitySearchComponent,
|
|
1423
|
-
isConfirmed
|
|
1427
|
+
isConfirmed,
|
|
1428
|
+
setIsConfirmed
|
|
1424
1429
|
};
|
|
1425
1430
|
};
|
|
1426
1431
|
|
|
@@ -1922,7 +1927,10 @@ function useSearchVisa({ setValue, onClose, isOpen }) {
|
|
|
1922
1927
|
const [searchKeyword, setSearchKeyword] = React.useState("");
|
|
1923
1928
|
const [selectedVisa, setSelectedVisa] = React.useState();
|
|
1924
1929
|
const [searchInput, setSearchInput] = React.useState("");
|
|
1925
|
-
const { data: visaList } = method.useSearchVisaQuery(
|
|
1930
|
+
const { data: visaList } = method.useSearchVisaQuery({
|
|
1931
|
+
staleTime: Infinity,
|
|
1932
|
+
gcTime: Infinity
|
|
1933
|
+
});
|
|
1926
1934
|
const searchList = visaList?.data?.visaStatusList || [];
|
|
1927
1935
|
const onSearch = (e) => {
|
|
1928
1936
|
const typeStr = e.target.value;
|
|
@@ -1980,15 +1988,20 @@ const useVisaComponent = () => {
|
|
|
1980
1988
|
const onConfirm = () => {
|
|
1981
1989
|
setIsConfirmed(true);
|
|
1982
1990
|
};
|
|
1991
|
+
const openInitModal = () => {
|
|
1992
|
+
setIsConfirmed(false);
|
|
1993
|
+
openModal();
|
|
1994
|
+
};
|
|
1983
1995
|
const VisaSearchComponent = () => /* @__PURE__ */ jsxRuntime.jsx(VisaComponent, { isOpen, onClose: closeModal, setValue: setVisa, onConfirm });
|
|
1984
1996
|
return {
|
|
1985
1997
|
visa,
|
|
1986
|
-
openModal,
|
|
1998
|
+
openModal: openInitModal,
|
|
1987
1999
|
VisaSearchComponent,
|
|
1988
2000
|
isOpen,
|
|
1989
2001
|
closeModal,
|
|
1990
2002
|
setVisa,
|
|
1991
|
-
isConfirmed
|
|
2003
|
+
isConfirmed,
|
|
2004
|
+
setIsConfirmed
|
|
1992
2005
|
};
|
|
1993
2006
|
};
|
|
1994
2007
|
|
|
@@ -2848,6 +2861,7 @@ function useJobSearchModal() {
|
|
|
2848
2861
|
reset();
|
|
2849
2862
|
setSelectedJob(null);
|
|
2850
2863
|
setActiveTab("jobName");
|
|
2864
|
+
setIsConfirmed(false);
|
|
2851
2865
|
openModal();
|
|
2852
2866
|
};
|
|
2853
2867
|
const closeModalWithCheck = () => {
|
|
@@ -2920,6 +2934,7 @@ function useJobSearchModal() {
|
|
|
2920
2934
|
),
|
|
2921
2935
|
isJobSearchOpen: isOpen,
|
|
2922
2936
|
isConfirmed,
|
|
2937
|
+
setIsConfirmed,
|
|
2923
2938
|
openJobSearchModal: openInitModal,
|
|
2924
2939
|
closeJobSearchModal: closeModal,
|
|
2925
2940
|
selectedJob,
|
|
@@ -3092,6 +3107,7 @@ function useJobVehicleSearchModal() {
|
|
|
3092
3107
|
};
|
|
3093
3108
|
const openInitModal = () => {
|
|
3094
3109
|
resetJobVehicleSearch();
|
|
3110
|
+
setIsConfirmed(false);
|
|
3095
3111
|
openModal();
|
|
3096
3112
|
};
|
|
3097
3113
|
return {
|
|
@@ -3102,6 +3118,7 @@ function useJobVehicleSearchModal() {
|
|
|
3102
3118
|
hospitalizationGrade,
|
|
3103
3119
|
isOpenJobVehicleModal: isOpen,
|
|
3104
3120
|
isConfirmed,
|
|
3121
|
+
setIsConfirmed,
|
|
3105
3122
|
openJobVehicleModal: openInitModal,
|
|
3106
3123
|
closeJobVehicleModal: closeModal,
|
|
3107
3124
|
JobVehicleSearchModalComponent: /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
|
|
@@ -4486,6 +4503,8 @@ exports.JobVehicleSearchModal = JobVehicleSearchModal;
|
|
|
4486
4503
|
exports.OrganizationSearchModal = OrganizationSearchModal;
|
|
4487
4504
|
exports.RIV_SEARCH_PARAM_MAP = RIV_SEARCH_PARAM_MAP;
|
|
4488
4505
|
exports.StepIndicator = StepIndicator;
|
|
4506
|
+
exports.getGenderName = getGenderName;
|
|
4507
|
+
exports.highlightOnSearchKeyword = highlightOnSearchKeyword;
|
|
4489
4508
|
exports.resize = resize;
|
|
4490
4509
|
exports.testSignatureBase64Data = testSignatureBase64Data;
|
|
4491
4510
|
exports.useAddressComponent = useAddressComponent;
|