sales-frontend-components 0.0.157 → 0.0.158
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 +10 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +24 -2
- package/dist/index.esm.js +10 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -9
package/dist/index.cjs.js
CHANGED
|
@@ -2820,6 +2820,7 @@ function useJobSearchModal() {
|
|
|
2820
2820
|
isLoading
|
|
2821
2821
|
} = useJobSearch();
|
|
2822
2822
|
const { isOpen, openModal, closeModal } = salesFrontendDesignSystem.useModalState();
|
|
2823
|
+
const [isConfirmed, setIsConfirmed] = React.useState(false);
|
|
2823
2824
|
const onTabChange = (value) => {
|
|
2824
2825
|
reset();
|
|
2825
2826
|
setActiveTab(value);
|
|
@@ -2831,6 +2832,7 @@ function useJobSearchModal() {
|
|
|
2831
2832
|
openModal();
|
|
2832
2833
|
};
|
|
2833
2834
|
const closeModalWithCheck = () => {
|
|
2835
|
+
setIsConfirmed(true);
|
|
2834
2836
|
if (!selectedJob) {
|
|
2835
2837
|
salesFrontendDesignSystem.ModalUtils.alert("\uC9C1\uC885\uC744 \uC120\uD0DD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uC9C1\uC885 \uC120\uD0DD \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.", "\uC9C1\uC885\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694.", {
|
|
2836
2838
|
modalId: "job-search-alert-no-selected"
|
|
@@ -2898,6 +2900,7 @@ function useJobSearchModal() {
|
|
|
2898
2900
|
}
|
|
2899
2901
|
),
|
|
2900
2902
|
isJobSearchOpen: isOpen,
|
|
2903
|
+
isConfirmed,
|
|
2901
2904
|
openJobSearchModal: openInitModal,
|
|
2902
2905
|
closeJobSearchModal: closeModal,
|
|
2903
2906
|
selectedJob,
|
|
@@ -3045,6 +3048,7 @@ function useJobVehicleSearchModal() {
|
|
|
3045
3048
|
selectedJobDetail
|
|
3046
3049
|
} = useJobVehicleSearch();
|
|
3047
3050
|
const { isOpen, openModal, closeModal } = salesFrontendDesignSystem.useModalState();
|
|
3051
|
+
const [isConfirmed, setIsConfirmed] = React.useState(false);
|
|
3048
3052
|
const validate = () => {
|
|
3049
3053
|
if (!selectedJob && !selectedVehicle) {
|
|
3050
3054
|
return salesFrontendDesignSystem.ModalUtils.alert(
|
|
@@ -3078,6 +3082,7 @@ function useJobVehicleSearchModal() {
|
|
|
3078
3082
|
riskGrade,
|
|
3079
3083
|
hospitalizationGrade,
|
|
3080
3084
|
isOpenJobVehicleModal: isOpen,
|
|
3085
|
+
isConfirmed,
|
|
3081
3086
|
openJobVehicleModal: openInitModal,
|
|
3082
3087
|
closeJobVehicleModal: closeModal,
|
|
3083
3088
|
JobVehicleSearchModalComponent: /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
|
|
@@ -3125,7 +3130,10 @@ function useJobVehicleSearchModal() {
|
|
|
3125
3130
|
] }),
|
|
3126
3131
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$5("right-panel"), children: rightPanelView === "jobSearch" ? JobSearch : VehicleSearch })
|
|
3127
3132
|
] }) }),
|
|
3128
|
-
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { variant: "primary", size: "medium", appearance: "filled", width: "full", onClick:
|
|
3133
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { variant: "primary", size: "medium", appearance: "filled", width: "full", onClick: () => {
|
|
3134
|
+
validate();
|
|
3135
|
+
setIsConfirmed(true);
|
|
3136
|
+
}, children: "\uD655\uC778" }) })
|
|
3129
3137
|
] })
|
|
3130
3138
|
] })
|
|
3131
3139
|
};
|
|
@@ -4465,6 +4473,7 @@ exports.useAddressComponent = useAddressComponent;
|
|
|
4465
4473
|
exports.useBankStockSearch = useBankStockSearch;
|
|
4466
4474
|
exports.useCamera = useCamera;
|
|
4467
4475
|
exports.useCanvasPaint = useCanvasPaint;
|
|
4476
|
+
exports.useCustomerSearch = useCustomerSearch;
|
|
4468
4477
|
exports.useDownloader = useDownloader;
|
|
4469
4478
|
exports.useJobSearchModal = useJobSearchModal;
|
|
4470
4479
|
exports.useJobVehicleSearchModal = useJobVehicleSearchModal;
|