sales-frontend-components 0.0.159 → 0.0.160
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 +20 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.esm.js +19 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +12 -12
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
|
|
|
@@ -1978,15 +1983,20 @@ const useVisaComponent = () => {
|
|
|
1978
1983
|
const onConfirm = () => {
|
|
1979
1984
|
setIsConfirmed(true);
|
|
1980
1985
|
};
|
|
1986
|
+
const openInitModal = () => {
|
|
1987
|
+
setIsConfirmed(false);
|
|
1988
|
+
openModal();
|
|
1989
|
+
};
|
|
1981
1990
|
const VisaSearchComponent = () => /* @__PURE__ */ jsx(VisaComponent, { isOpen, onClose: closeModal, setValue: setVisa, onConfirm });
|
|
1982
1991
|
return {
|
|
1983
1992
|
visa,
|
|
1984
|
-
openModal,
|
|
1993
|
+
openModal: openInitModal,
|
|
1985
1994
|
VisaSearchComponent,
|
|
1986
1995
|
isOpen,
|
|
1987
1996
|
closeModal,
|
|
1988
1997
|
setVisa,
|
|
1989
|
-
isConfirmed
|
|
1998
|
+
isConfirmed,
|
|
1999
|
+
setIsConfirmed
|
|
1990
2000
|
};
|
|
1991
2001
|
};
|
|
1992
2002
|
|
|
@@ -2846,6 +2856,7 @@ function useJobSearchModal() {
|
|
|
2846
2856
|
reset();
|
|
2847
2857
|
setSelectedJob(null);
|
|
2848
2858
|
setActiveTab("jobName");
|
|
2859
|
+
setIsConfirmed(false);
|
|
2849
2860
|
openModal();
|
|
2850
2861
|
};
|
|
2851
2862
|
const closeModalWithCheck = () => {
|
|
@@ -2918,6 +2929,7 @@ function useJobSearchModal() {
|
|
|
2918
2929
|
),
|
|
2919
2930
|
isJobSearchOpen: isOpen,
|
|
2920
2931
|
isConfirmed,
|
|
2932
|
+
setIsConfirmed,
|
|
2921
2933
|
openJobSearchModal: openInitModal,
|
|
2922
2934
|
closeJobSearchModal: closeModal,
|
|
2923
2935
|
selectedJob,
|
|
@@ -3090,6 +3102,7 @@ function useJobVehicleSearchModal() {
|
|
|
3090
3102
|
};
|
|
3091
3103
|
const openInitModal = () => {
|
|
3092
3104
|
resetJobVehicleSearch();
|
|
3105
|
+
setIsConfirmed(false);
|
|
3093
3106
|
openModal();
|
|
3094
3107
|
};
|
|
3095
3108
|
return {
|
|
@@ -3100,6 +3113,7 @@ function useJobVehicleSearchModal() {
|
|
|
3100
3113
|
hospitalizationGrade,
|
|
3101
3114
|
isOpenJobVehicleModal: isOpen,
|
|
3102
3115
|
isConfirmed,
|
|
3116
|
+
setIsConfirmed,
|
|
3103
3117
|
openJobVehicleModal: openInitModal,
|
|
3104
3118
|
closeJobVehicleModal: closeModal,
|
|
3105
3119
|
JobVehicleSearchModalComponent: /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
|
|
@@ -4461,5 +4475,5 @@ const useDownloader = () => {
|
|
|
4461
4475
|
};
|
|
4462
4476
|
};
|
|
4463
4477
|
|
|
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 };
|
|
4478
|
+
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
4479
|
//# sourceMappingURL=index.esm.js.map
|