@vicacha-devs/medusa-plugin-barcode 0.1.0 → 0.1.1
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.
|
@@ -2024,78 +2024,78 @@ var GuardedBarcodeLookupPage = () => /* @__PURE__ */ jsx(RbacGuard, {
|
|
|
2024
2024
|
permission: "barcodes.read",
|
|
2025
2025
|
children: /* @__PURE__ */ jsx(BarcodeLookupPage, {})
|
|
2026
2026
|
});
|
|
2027
|
-
// src/admin/routes/barcodes/
|
|
2028
|
-
var
|
|
2027
|
+
// src/admin/routes/barcodes/print/page.tsx
|
|
2028
|
+
var BarcodePrintCenterPage = () => {
|
|
2029
2029
|
const studio = useBarcodeStudio();
|
|
2030
2030
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Toaster, {}), /* @__PURE__ */ jsx(LayoutComposer, {
|
|
2031
|
-
widgetsZonePrefix: "barcodes.
|
|
2031
|
+
widgetsZonePrefix: "barcodes.print.details",
|
|
2032
2032
|
preferredLayoutId: CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2033
2033
|
sections: {
|
|
2034
2034
|
main: /* @__PURE__ */ jsx(LayoutComposer.Entry, {
|
|
2035
|
-
id: "
|
|
2036
|
-
children: /* @__PURE__ */ jsx(
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2035
|
+
id: "BarcodePrintDesignerSection",
|
|
2036
|
+
children: /* @__PURE__ */ jsx(LabelPrintDesignerSection, {
|
|
2037
|
+
form: studio.printForm,
|
|
2038
|
+
onFormChange: studio.setPrintForm,
|
|
2039
|
+
templates: studio.templates,
|
|
2040
|
+
onRenderLabels: () => void studio.handleRenderLabels()
|
|
2040
2041
|
})
|
|
2041
2042
|
}),
|
|
2042
2043
|
side: /* @__PURE__ */ jsx(LayoutComposer.Entry, {
|
|
2043
|
-
id: "
|
|
2044
|
-
children: /* @__PURE__ */ jsx(
|
|
2044
|
+
id: "BarcodePrintOutputSection",
|
|
2045
|
+
children: /* @__PURE__ */ jsx(LabelPrintOutputSection, { output: studio.printOutput })
|
|
2045
2046
|
})
|
|
2046
2047
|
}
|
|
2047
2048
|
})] });
|
|
2048
2049
|
};
|
|
2049
2050
|
var Breadcrumb$3 = () => {
|
|
2050
2051
|
const { t } = useTranslation();
|
|
2051
|
-
return t("
|
|
2052
|
+
return t("tabs.print");
|
|
2052
2053
|
};
|
|
2053
2054
|
var config$3 = defineRouteConfig({
|
|
2054
|
-
label: "
|
|
2055
|
+
label: "tabs.print",
|
|
2055
2056
|
translationNs: "barcodes",
|
|
2056
|
-
icon:
|
|
2057
|
+
icon: DocumentText
|
|
2057
2058
|
});
|
|
2058
2059
|
var handle$3 = { breadcrumb: () => /* @__PURE__ */ jsx(Breadcrumb$3, {}) };
|
|
2059
|
-
var
|
|
2060
|
+
var GuardedBarcodePrintCenterPage = () => /* @__PURE__ */ jsx(RbacGuard, {
|
|
2060
2061
|
permission: "barcodes.read",
|
|
2061
|
-
children: /* @__PURE__ */ jsx(
|
|
2062
|
+
children: /* @__PURE__ */ jsx(BarcodePrintCenterPage, {})
|
|
2062
2063
|
});
|
|
2063
|
-
// src/admin/routes/barcodes/
|
|
2064
|
-
var
|
|
2064
|
+
// src/admin/routes/barcodes/providers/page.tsx
|
|
2065
|
+
var BarcodeProvidersPage = () => {
|
|
2065
2066
|
const studio = useBarcodeStudio();
|
|
2066
2067
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Toaster, {}), /* @__PURE__ */ jsx(LayoutComposer, {
|
|
2067
|
-
widgetsZonePrefix: "barcodes.
|
|
2068
|
+
widgetsZonePrefix: "barcodes.providers.details",
|
|
2068
2069
|
preferredLayoutId: CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2069
2070
|
sections: {
|
|
2070
2071
|
main: /* @__PURE__ */ jsx(LayoutComposer.Entry, {
|
|
2071
|
-
id: "
|
|
2072
|
-
children: /* @__PURE__ */ jsx(
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
onRenderLabels: () => void studio.handleRenderLabels()
|
|
2072
|
+
id: "BarcodeProvidersCacheSection",
|
|
2073
|
+
children: /* @__PURE__ */ jsx(ProvidersCacheSection, {
|
|
2074
|
+
cacheEntries: studio.cacheEntries,
|
|
2075
|
+
onPurgeExpired: () => void studio.handlePurgeCache(false),
|
|
2076
|
+
onClearAllCache: () => void studio.handlePurgeCache(true)
|
|
2077
2077
|
})
|
|
2078
2078
|
}),
|
|
2079
2079
|
side: /* @__PURE__ */ jsx(LayoutComposer.Entry, {
|
|
2080
|
-
id: "
|
|
2081
|
-
children: /* @__PURE__ */ jsx(
|
|
2080
|
+
id: "BarcodeProvidersRegistrySection",
|
|
2081
|
+
children: /* @__PURE__ */ jsx(ProvidersRegistrySection, { overview: studio.overview })
|
|
2082
2082
|
})
|
|
2083
2083
|
}
|
|
2084
2084
|
})] });
|
|
2085
2085
|
};
|
|
2086
2086
|
var Breadcrumb$2 = () => {
|
|
2087
2087
|
const { t } = useTranslation();
|
|
2088
|
-
return t("
|
|
2088
|
+
return t("providersTab.providersTitle");
|
|
2089
2089
|
};
|
|
2090
2090
|
var config$2 = defineRouteConfig({
|
|
2091
|
-
label: "
|
|
2091
|
+
label: "providersTab.providersTitle",
|
|
2092
2092
|
translationNs: "barcodes",
|
|
2093
|
-
icon:
|
|
2093
|
+
icon: CheckCircle
|
|
2094
2094
|
});
|
|
2095
2095
|
var handle$2 = { breadcrumb: () => /* @__PURE__ */ jsx(Breadcrumb$2, {}) };
|
|
2096
|
-
var
|
|
2096
|
+
var GuardedBarcodeProvidersPage = () => /* @__PURE__ */ jsx(RbacGuard, {
|
|
2097
2097
|
permission: "barcodes.read",
|
|
2098
|
-
children: /* @__PURE__ */ jsx(
|
|
2098
|
+
children: /* @__PURE__ */ jsx(BarcodeProvidersPage, {})
|
|
2099
2099
|
});
|
|
2100
2100
|
// src/admin/routes/barcodes/stock-take/page.tsx
|
|
2101
2101
|
var BarcodeStockTakePage = () => {
|
|
@@ -3828,8 +3828,8 @@ var plugin = {
|
|
|
3828
3828
|
}
|
|
3829
3829
|
},
|
|
3830
3830
|
{
|
|
3831
|
-
Component:
|
|
3832
|
-
path: "/barcodes/
|
|
3831
|
+
Component: GuardedBarcodePrintCenterPage,
|
|
3832
|
+
path: "/barcodes/print",
|
|
3833
3833
|
handle: {
|
|
3834
3834
|
label: config$3.label,
|
|
3835
3835
|
translationNs: config$3.translationNs,
|
|
@@ -3838,8 +3838,8 @@ var plugin = {
|
|
|
3838
3838
|
}
|
|
3839
3839
|
},
|
|
3840
3840
|
{
|
|
3841
|
-
Component:
|
|
3842
|
-
path: "/barcodes/
|
|
3841
|
+
Component: GuardedBarcodeProvidersPage,
|
|
3842
|
+
path: "/barcodes/providers",
|
|
3843
3843
|
handle: {
|
|
3844
3844
|
label: config$2.label,
|
|
3845
3845
|
translationNs: config$2.translationNs,
|
|
@@ -3882,15 +3882,6 @@ var plugin = {
|
|
|
3882
3882
|
translationNs: config$5.translationNs,
|
|
3883
3883
|
permissions: void 0
|
|
3884
3884
|
},
|
|
3885
|
-
{
|
|
3886
|
-
label: config$2.label,
|
|
3887
|
-
icon: config$2.icon,
|
|
3888
|
-
path: "/barcodes/print",
|
|
3889
|
-
nested: void 0,
|
|
3890
|
-
rank: void 0,
|
|
3891
|
-
translationNs: config$2.translationNs,
|
|
3892
|
-
permissions: void 0
|
|
3893
|
-
},
|
|
3894
3885
|
{
|
|
3895
3886
|
label: config$4.label,
|
|
3896
3887
|
icon: config$4.icon,
|
|
@@ -3903,12 +3894,21 @@ var plugin = {
|
|
|
3903
3894
|
{
|
|
3904
3895
|
label: config$3.label,
|
|
3905
3896
|
icon: config$3.icon,
|
|
3906
|
-
path: "/barcodes/
|
|
3897
|
+
path: "/barcodes/print",
|
|
3907
3898
|
nested: void 0,
|
|
3908
3899
|
rank: void 0,
|
|
3909
3900
|
translationNs: config$3.translationNs,
|
|
3910
3901
|
permissions: void 0
|
|
3911
3902
|
},
|
|
3903
|
+
{
|
|
3904
|
+
label: config$2.label,
|
|
3905
|
+
icon: config$2.icon,
|
|
3906
|
+
path: "/barcodes/providers",
|
|
3907
|
+
nested: void 0,
|
|
3908
|
+
rank: void 0,
|
|
3909
|
+
translationNs: config$2.translationNs,
|
|
3910
|
+
permissions: void 0
|
|
3911
|
+
},
|
|
3912
3912
|
{
|
|
3913
3913
|
label: config$1.label,
|
|
3914
3914
|
icon: config$1.icon,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vicacha-devs/medusa-plugin-barcode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Unified 4-in-1 Barcode, GS1, Dynamic QR, Multi-Provider GTIN Lookup, Thermal/Sheet Label Printing (HTML/SVG & ZPL II), Anti-Counterfeit Verification & Warehouse Stock-Take Scanner plugin for Medusa v2.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"barcode",
|