etiquetas.js 1.0.0-alpha.4 → 1.0.0-alpha.5
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/etiquetas.es.js +1 -1
- package/dist/etiquetas.umd.js +2 -2
- package/dist/etiquetas.umd.js.map +1 -1
- package/dist/{index-BUpKxNQ0.js → index-B10y8IWE.js} +6 -12
- package/dist/{index-BUpKxNQ0.js.map → index-B10y8IWE.js.map} +1 -1
- package/dist/{index.es-CCAzIpY-.js → index.es-D4Dr85b7.js} +2 -2
- package/dist/{index.es-CCAzIpY-.js.map → index.es-D4Dr85b7.js.map} +1 -1
- package/package.json +1 -1
|
@@ -11303,7 +11303,7 @@ function(t2) {
|
|
|
11303
11303
|
*/
|
|
11304
11304
|
function(t2) {
|
|
11305
11305
|
function e2() {
|
|
11306
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
11306
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-D4Dr85b7.js")).catch(function(t3) {
|
|
11307
11307
|
return Promise.reject(new Error("Could not load canvg: " + t3));
|
|
11308
11308
|
}).then(function(t3) {
|
|
11309
11309
|
return t3.default ? t3.default : t3;
|
|
@@ -58128,7 +58128,7 @@ apiClient$1.interceptors.response.use(
|
|
|
58128
58128
|
return Promise.reject(error);
|
|
58129
58129
|
}
|
|
58130
58130
|
);
|
|
58131
|
-
|
|
58131
|
+
class LabelsAPI {
|
|
58132
58132
|
/**
|
|
58133
58133
|
* Lista etiquetas com filtros opcionais
|
|
58134
58134
|
* GET /v1/labels
|
|
@@ -58321,17 +58321,11 @@ let LabelsAPI$1 = class LabelsAPI {
|
|
|
58321
58321
|
static setBaseURL(baseURL) {
|
|
58322
58322
|
apiClient$1.defaults.baseURL = baseURL;
|
|
58323
58323
|
}
|
|
58324
|
-
}
|
|
58325
|
-
const LabelsAPI2 = {
|
|
58326
|
-
getLabel: (id) => __async(void 0, null, function* () {
|
|
58327
|
-
console.warn("LabelsAPI não carregado - usando placeholder");
|
|
58328
|
-
return null;
|
|
58329
|
-
})
|
|
58330
|
-
};
|
|
58324
|
+
}
|
|
58331
58325
|
function getTemplateById(templateId) {
|
|
58332
58326
|
return __async(this, null, function* () {
|
|
58333
58327
|
try {
|
|
58334
|
-
const labelData = yield
|
|
58328
|
+
const labelData = yield LabelsAPI.getLabel(templateId);
|
|
58335
58329
|
if (!labelData) {
|
|
58336
58330
|
throw new Error(`Template/etiqueta não encontrado com ID: ${templateId}`);
|
|
58337
58331
|
}
|
|
@@ -59394,7 +59388,7 @@ export {
|
|
|
59394
59388
|
labelTypeNames as p,
|
|
59395
59389
|
initialState as q,
|
|
59396
59390
|
reducer as r,
|
|
59397
|
-
LabelsAPI
|
|
59391
|
+
LabelsAPI as s,
|
|
59398
59392
|
init as t,
|
|
59399
59393
|
useLabelData as u,
|
|
59400
59394
|
getPrinterStatus as v,
|
|
@@ -59403,4 +59397,4 @@ export {
|
|
|
59403
59397
|
downloadPDF as y,
|
|
59404
59398
|
sendToPrinter as z
|
|
59405
59399
|
};
|
|
59406
|
-
//# sourceMappingURL=index-
|
|
59400
|
+
//# sourceMappingURL=index-B10y8IWE.js.map
|