@atomsolution/sdk-merchant 1.5.8 → 1.6.0
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/batch-product-creation.cjs +27 -17
- package/dist/batch-product-creation.cjs.map +1 -1
- package/dist/batch-product-creation.esm.js +27 -17
- package/dist/batch-product-creation.esm.js.map +1 -1
- package/dist/batch-product-creation.js +27 -17
- package/dist/batch-product-creation.js.map +1 -1
- package/dist/components/common/dataTable/dataTable.d.ts +1 -1
- package/dist/dropdownMenuAbsolute-CLsfHK7_.cjs.map +1 -1
- package/dist/dropdownMenuAbsolute-Ds24HaUN.js.map +1 -1
- package/dist/style.css +4 -0
- package/package.json +1 -1
|
@@ -26316,19 +26316,25 @@ function SheetDropdown({
|
|
|
26316
26316
|
]
|
|
26317
26317
|
}
|
|
26318
26318
|
),
|
|
26319
|
-
open && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
26320
|
-
"
|
|
26319
|
+
open && /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
26320
|
+
"div",
|
|
26321
26321
|
{
|
|
26322
|
-
|
|
26323
|
-
|
|
26324
|
-
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26322
|
+
className: "\n absolute z-10 mt-2\n min-w-full\n w-max\n border border-[#E4E7EC]\n rounded-lg bg-white shadow\n max-h-60\n overflow-y-auto\n ",
|
|
26323
|
+
children: sheetNames.map((name) => /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
26324
|
+
"button",
|
|
26325
|
+
{
|
|
26326
|
+
type: "button",
|
|
26327
|
+
className: "\n flex w-full\n px-4 py-2\n text-sm text-gray-700\n hover:bg-gray-100\n whitespace-nowrap\n ",
|
|
26328
|
+
onClick: () => {
|
|
26329
|
+
onSelect(name);
|
|
26330
|
+
setOpen(false);
|
|
26331
|
+
},
|
|
26332
|
+
children: name
|
|
26333
|
+
},
|
|
26334
|
+
name
|
|
26335
|
+
))
|
|
26336
|
+
}
|
|
26337
|
+
)
|
|
26332
26338
|
] });
|
|
26333
26339
|
}
|
|
26334
26340
|
const useMappingStore = create((set) => ({
|
|
@@ -57443,7 +57449,6 @@ const UpdateProductModal = ({
|
|
|
57443
57449
|
taxDeductionMethod
|
|
57444
57450
|
}) => {
|
|
57445
57451
|
var _a, _b;
|
|
57446
|
-
console.log(product == null ? void 0 : product.priceAfterTax);
|
|
57447
57452
|
const schema = createProductPreviewSchema(taxDeductionMethod);
|
|
57448
57453
|
const {
|
|
57449
57454
|
register,
|
|
@@ -57608,7 +57613,7 @@ const UpdateProductModal = ({
|
|
|
57608
57613
|
}
|
|
57609
57614
|
)
|
|
57610
57615
|
] }),
|
|
57611
|
-
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Label, { labelText: translate("
|
|
57616
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(Label, { labelText: translate("price_without_vat"), required: true, children: [
|
|
57612
57617
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(ErrorMessage, { name: "priceBeforeTax", errors }),
|
|
57613
57618
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
57614
57619
|
NumberInput,
|
|
@@ -57676,8 +57681,10 @@ const ProductPreviewTable = ({
|
|
|
57676
57681
|
category: formattedCategory
|
|
57677
57682
|
});
|
|
57678
57683
|
});
|
|
57679
|
-
|
|
57680
|
-
|
|
57684
|
+
const finalFormatedData = formattedData.filter((row) => {
|
|
57685
|
+
return row.code != "" || row.name != "" || row.priceAfterTax != "" || row.priceBeforeTax != "" || row.unit != "" || row.category.length != 0 || row.note != "" || row.tax != "";
|
|
57686
|
+
});
|
|
57687
|
+
setProductsTableData(finalFormatedData);
|
|
57681
57688
|
}, [sheetMappingData2]);
|
|
57682
57689
|
const isMobile = dropdownMenuAbsolute.useMediaQuery("(max-width: 768px)");
|
|
57683
57690
|
const { translate } = useTranslation.useTranslation("batch-create-product");
|
|
@@ -57999,6 +58006,9 @@ const ProductInfoPreview = ({ taxDeductionMethod }) => {
|
|
|
57999
58006
|
const [checkedProducts, setCheckedProducts] = React.useState([]);
|
|
58000
58007
|
const [createdProductsResult, setCreatedProductsResult] = React.useState(null);
|
|
58001
58008
|
const { sheetMappingData, selectedSheet, uploadedFile, reset } = useUploadStore();
|
|
58009
|
+
const filterRow = sheetMappingData.filter((row) => {
|
|
58010
|
+
return row.code || row.name || row.priceAfterTax || row.unit || row.category;
|
|
58011
|
+
});
|
|
58002
58012
|
const { translate } = useTranslation.useTranslation("batch-create-product");
|
|
58003
58013
|
const { translate: t2 } = useTranslation.useTranslation("common");
|
|
58004
58014
|
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex flex-col gap-6 w-full", children: [
|
|
@@ -58019,7 +58029,7 @@ const ProductInfoPreview = ({ taxDeductionMethod }) => {
|
|
|
58019
58029
|
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("span", { className: "text-sm text-[#0E121B]", children: [
|
|
58020
58030
|
translate("upload_information_description1"),
|
|
58021
58031
|
" ",
|
|
58022
|
-
|
|
58032
|
+
filterRow.length,
|
|
58023
58033
|
" ",
|
|
58024
58034
|
translate("upload_information_description2"),
|
|
58025
58035
|
" ",
|