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.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { FieldValues, UseControllerProps } from 'react-hook-form';
|
|
3
3
|
import { CheckboxButtonProps, CheckboxProps, DatePickerSingleHtmlProps, DatePickerRangeHtmlProps, FormField, SegmentItems, SegmentGroupHtmlProps, SelectProps, OptionProps, useDropDown } from 'sales-frontend-design-system';
|
|
4
4
|
import * as React$1 from 'react';
|
|
5
|
-
import React__default from 'react';
|
|
5
|
+
import React__default, { JSX } from 'react';
|
|
6
6
|
import * as sales_frontend_api_method from 'sales-frontend-api/method';
|
|
7
7
|
import { AddressStandardizationResponseDto, AddressResponseDto, CodeDto, CustomerSearchProps, CustomerDto, NationalityResponseDto, VisaStatusResponseDto, PersonalCustomerProfileResponseDto, EmployeeProfileResponseDto, OccupationResponseDto, OccupationDetailResponseDto, OrganizationProfileResponse, RemoteIdentityVerificationSystemTokenRequestDto, ApiConfig } from 'sales-frontend-api/method';
|
|
8
8
|
import { NxlOneResponse, NxlOneProps } from 'sales-frontend-solution';
|
|
@@ -348,6 +348,7 @@ declare const useNationalityComponent: () => {
|
|
|
348
348
|
openModal: () => void;
|
|
349
349
|
NationalitySearchComponent: () => react_jsx_runtime.JSX.Element;
|
|
350
350
|
isConfirmed: boolean;
|
|
351
|
+
setIsConfirmed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
351
352
|
};
|
|
352
353
|
|
|
353
354
|
type Step = 'appInit' | 'tabletEformInit' | 'tabletEformRe' | 'tabletEformSubInfo' | 'smartphoneEformSubInfo' | 'smartphoneEformAlimtalkInit' | 'smartphoneEformAlimtalkRe' | 'tabletNewCustomer' | 'tabletNewCustomerLegalRep' | 'tabletCustomerInfoPlanAgreement' | 'tabletCustomerInfoProductAgreement';
|
|
@@ -461,6 +462,7 @@ declare const useVisaComponent: () => {
|
|
|
461
462
|
closeModal: () => void;
|
|
462
463
|
setVisa: React__default.Dispatch<React__default.SetStateAction<VisaStatusResponseDto | undefined>>;
|
|
463
464
|
isConfirmed: boolean;
|
|
465
|
+
setIsConfirmed: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
464
466
|
};
|
|
465
467
|
|
|
466
468
|
interface DeaCustomerSearchModalProps {
|
|
@@ -482,6 +484,7 @@ declare function useJobSearchModal(): {
|
|
|
482
484
|
JobSearchComponent: react_jsx_runtime.JSX.Element;
|
|
483
485
|
isJobSearchOpen: boolean;
|
|
484
486
|
isConfirmed: boolean;
|
|
487
|
+
setIsConfirmed: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
485
488
|
openJobSearchModal: () => void;
|
|
486
489
|
closeJobSearchModal: () => void;
|
|
487
490
|
selectedJob: OccupationResponseDto | null;
|
|
@@ -498,6 +501,7 @@ declare function useJobVehicleSearchModal(): {
|
|
|
498
501
|
hospitalizationGrade: string;
|
|
499
502
|
isOpenJobVehicleModal: boolean;
|
|
500
503
|
isConfirmed: boolean;
|
|
504
|
+
setIsConfirmed: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
501
505
|
openJobVehicleModal: () => void;
|
|
502
506
|
closeJobVehicleModal: () => void;
|
|
503
507
|
JobVehicleSearchModalComponent: react_jsx_runtime.JSX.Element;
|
|
@@ -516,6 +520,9 @@ interface JobVehicleSearchModalProps {
|
|
|
516
520
|
}
|
|
517
521
|
declare function JobVehicleSearchModal({ onClose }: JobVehicleSearchModalProps): react_jsx_runtime.JSX.Element;
|
|
518
522
|
|
|
523
|
+
declare const highlightOnSearchKeyword: (originalText: string, targetString: string) => string | (string | JSX.Element)[];
|
|
524
|
+
declare const getGenderName: (genderCode?: string) => "" | "남성" | "여성";
|
|
525
|
+
|
|
519
526
|
interface VerificationResponse {
|
|
520
527
|
command: 'webClose';
|
|
521
528
|
args: {
|
|
@@ -645,5 +652,5 @@ declare const useDownloader: () => {
|
|
|
645
652
|
isError: boolean;
|
|
646
653
|
};
|
|
647
654
|
|
|
648
|
-
export { Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CODES, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSearchJobField, FormSegmentGroup, FormSelect, FormTextField, JobVehicleSearchModal, OrganizationSearchModal, RIV_SEARCH_PARAM_MAP, StepIndicator, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useRemoteIdentityVerificationPopup, useSearchAddress, useSearchNationality, useSearchVisa, useVisaComponent };
|
|
655
|
+
export { Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CODES, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSearchJobField, FormSegmentGroup, FormSelect, FormTextField, JobVehicleSearchModal, OrganizationSearchModal, RIV_SEARCH_PARAM_MAP, StepIndicator, getGenderName, highlightOnSearchKeyword, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useRemoteIdentityVerificationPopup, useSearchAddress, useSearchNationality, useSearchVisa, useVisaComponent };
|
|
649
656
|
export type { AttachedPhoto, AttachmentProps, BankStockSearchModalProps, CodeSet, DownloadProps, DownloadTargetInfo, DownloaderProps, FormSegmentGroupProps, PaintProps, Pen, RemoteIdentityVerificationSuccess, RivUrlParams, Step, StepIndicatorProps, StepItem, UseRemoteIdentityVerificationProps, VerificationResponse, cameraItemType, cameraOptions };
|
package/dist/index.esm.js
CHANGED
|
@@ -1410,15 +1410,20 @@ const useNationalityComponent = () => {
|
|
|
1410
1410
|
const onConfirm = () => {
|
|
1411
1411
|
setIsConfirmed(true);
|
|
1412
1412
|
};
|
|
1413
|
+
const openInitModal = () => {
|
|
1414
|
+
setIsConfirmed(false);
|
|
1415
|
+
openModal();
|
|
1416
|
+
};
|
|
1413
1417
|
const NationalitySearchComponent = () => /* @__PURE__ */ jsx(NationalityComponent, { isOpen, onClose: closeModal, setValue: setNationality, onConfirm });
|
|
1414
1418
|
return {
|
|
1415
1419
|
isOpen,
|
|
1416
1420
|
closeModal,
|
|
1417
1421
|
setNationality,
|
|
1418
1422
|
nationality,
|
|
1419
|
-
openModal,
|
|
1423
|
+
openModal: openInitModal,
|
|
1420
1424
|
NationalitySearchComponent,
|
|
1421
|
-
isConfirmed
|
|
1425
|
+
isConfirmed,
|
|
1426
|
+
setIsConfirmed
|
|
1422
1427
|
};
|
|
1423
1428
|
};
|
|
1424
1429
|
|
|
@@ -1920,7 +1925,10 @@ function useSearchVisa({ setValue, onClose, isOpen }) {
|
|
|
1920
1925
|
const [searchKeyword, setSearchKeyword] = useState("");
|
|
1921
1926
|
const [selectedVisa, setSelectedVisa] = useState();
|
|
1922
1927
|
const [searchInput, setSearchInput] = useState("");
|
|
1923
|
-
const { data: visaList } = useSearchVisaQuery(
|
|
1928
|
+
const { data: visaList } = useSearchVisaQuery({
|
|
1929
|
+
staleTime: Infinity,
|
|
1930
|
+
gcTime: Infinity
|
|
1931
|
+
});
|
|
1924
1932
|
const searchList = visaList?.data?.visaStatusList || [];
|
|
1925
1933
|
const onSearch = (e) => {
|
|
1926
1934
|
const typeStr = e.target.value;
|
|
@@ -1978,15 +1986,20 @@ const useVisaComponent = () => {
|
|
|
1978
1986
|
const onConfirm = () => {
|
|
1979
1987
|
setIsConfirmed(true);
|
|
1980
1988
|
};
|
|
1989
|
+
const openInitModal = () => {
|
|
1990
|
+
setIsConfirmed(false);
|
|
1991
|
+
openModal();
|
|
1992
|
+
};
|
|
1981
1993
|
const VisaSearchComponent = () => /* @__PURE__ */ jsx(VisaComponent, { isOpen, onClose: closeModal, setValue: setVisa, onConfirm });
|
|
1982
1994
|
return {
|
|
1983
1995
|
visa,
|
|
1984
|
-
openModal,
|
|
1996
|
+
openModal: openInitModal,
|
|
1985
1997
|
VisaSearchComponent,
|
|
1986
1998
|
isOpen,
|
|
1987
1999
|
closeModal,
|
|
1988
2000
|
setVisa,
|
|
1989
|
-
isConfirmed
|
|
2001
|
+
isConfirmed,
|
|
2002
|
+
setIsConfirmed
|
|
1990
2003
|
};
|
|
1991
2004
|
};
|
|
1992
2005
|
|
|
@@ -2846,6 +2859,7 @@ function useJobSearchModal() {
|
|
|
2846
2859
|
reset();
|
|
2847
2860
|
setSelectedJob(null);
|
|
2848
2861
|
setActiveTab("jobName");
|
|
2862
|
+
setIsConfirmed(false);
|
|
2849
2863
|
openModal();
|
|
2850
2864
|
};
|
|
2851
2865
|
const closeModalWithCheck = () => {
|
|
@@ -2918,6 +2932,7 @@ function useJobSearchModal() {
|
|
|
2918
2932
|
),
|
|
2919
2933
|
isJobSearchOpen: isOpen,
|
|
2920
2934
|
isConfirmed,
|
|
2935
|
+
setIsConfirmed,
|
|
2921
2936
|
openJobSearchModal: openInitModal,
|
|
2922
2937
|
closeJobSearchModal: closeModal,
|
|
2923
2938
|
selectedJob,
|
|
@@ -3090,6 +3105,7 @@ function useJobVehicleSearchModal() {
|
|
|
3090
3105
|
};
|
|
3091
3106
|
const openInitModal = () => {
|
|
3092
3107
|
resetJobVehicleSearch();
|
|
3108
|
+
setIsConfirmed(false);
|
|
3093
3109
|
openModal();
|
|
3094
3110
|
};
|
|
3095
3111
|
return {
|
|
@@ -3100,6 +3116,7 @@ function useJobVehicleSearchModal() {
|
|
|
3100
3116
|
hospitalizationGrade,
|
|
3101
3117
|
isOpenJobVehicleModal: isOpen,
|
|
3102
3118
|
isConfirmed,
|
|
3119
|
+
setIsConfirmed,
|
|
3103
3120
|
openJobVehicleModal: openInitModal,
|
|
3104
3121
|
closeJobVehicleModal: closeModal,
|
|
3105
3122
|
JobVehicleSearchModalComponent: /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
|
|
@@ -4461,5 +4478,5 @@ const useDownloader = () => {
|
|
|
4461
4478
|
};
|
|
4462
4479
|
};
|
|
4463
4480
|
|
|
4464
|
-
export { Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CODES, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSearchJobField, FormSegmentGroup, FormSelect, FormTextField, JobVehicleSearchModal, OrganizationSearchModal, RIV_SEARCH_PARAM_MAP, StepIndicator, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useRemoteIdentityVerificationPopup, useSearchAddress, useSearchNationality, useSearchVisa, useVisaComponent };
|
|
4481
|
+
export { Attachment, BANK_STOCK_ICON_LIST, BANK_STOCK_SEARCH_MODAL_TABS, BankStockSearchModal, CODES, CustomerSearch, CustomerSearchModal, DeaCustomerSearchModal, DudDownload, DudUpload, EmployeeSearchModal, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSearchJobField, FormSegmentGroup, FormSelect, FormTextField, JobVehicleSearchModal, OrganizationSearchModal, RIV_SEARCH_PARAM_MAP, StepIndicator, getGenderName, highlightOnSearchKeyword, resize, testSignatureBase64Data, useAddressComponent, useBankStockSearch, useCamera, useCanvasPaint, useCustomerSearch, useDownloader, useJobSearchModal, useJobVehicleSearchModal, useNationalityComponent, useNxlOneModal, useRemoteIdentityVerification, useRemoteIdentityVerificationIframe, useRemoteIdentityVerificationPopup, useSearchAddress, useSearchNationality, useSearchVisa, useVisaComponent };
|
|
4465
4482
|
//# sourceMappingURL=index.esm.js.map
|