@pisell/lowcode-renderer 1.0.31 → 1.0.33

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/es/api/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  report: {
3
- getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD") => Promise<any>;
3
+ getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER") => Promise<any>;
4
4
  };
5
5
  utils: {};
6
6
  };
@@ -1,13 +1,22 @@
1
- import { isMobile, isIos, isAndroid } from "@pisell/utils";
1
+ import { isMobile, isIos, isAndroid, EscPosPrinter, ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, columnWidthWithAlignment, preparing } from "@pisell/utils";
2
2
  import { getTimezone } from "./others";
3
3
  import api from "../api";
4
+ var printerApi = {
5
+ EscPosPrinter: EscPosPrinter,
6
+ ALIGN_LEFT: ALIGN_LEFT,
7
+ ALIGN_CENTER: ALIGN_CENTER,
8
+ ALIGN_RIGHT: ALIGN_RIGHT,
9
+ columnWidthWithAlignment: columnWidthWithAlignment,
10
+ preparing: preparing
11
+ };
4
12
  var appHelper = {
5
13
  utils: {
6
14
  api: api,
7
15
  isMobile: isMobile,
8
16
  isIos: isIos,
9
17
  isAndroid: isAndroid,
10
- getTimezone: getTimezone
18
+ getTimezone: getTimezone,
19
+ printerApi: printerApi
11
20
  }
12
21
  };
13
22
  export default appHelper;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  report: {
3
- getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD") => Promise<any>;
3
+ getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER") => Promise<any>;
4
4
  };
5
5
  utils: {};
6
6
  };
@@ -35,13 +35,22 @@ module.exports = __toCommonJS(appHelper_exports);
35
35
  var import_utils = require("@pisell/utils");
36
36
  var import_others = require("./others");
37
37
  var import_api = __toESM(require("../api"));
38
+ var printerApi = {
39
+ EscPosPrinter: import_utils.EscPosPrinter,
40
+ ALIGN_LEFT: import_utils.ALIGN_LEFT,
41
+ ALIGN_CENTER: import_utils.ALIGN_CENTER,
42
+ ALIGN_RIGHT: import_utils.ALIGN_RIGHT,
43
+ columnWidthWithAlignment: import_utils.columnWidthWithAlignment,
44
+ preparing: import_utils.preparing
45
+ };
38
46
  var appHelper = {
39
47
  utils: {
40
48
  api: import_api.default,
41
49
  isMobile: import_utils.isMobile,
42
50
  isIos: import_utils.isIos,
43
51
  isAndroid: import_utils.isAndroid,
44
- getTimezone: import_others.getTimezone
52
+ getTimezone: import_others.getTimezone,
53
+ printerApi
45
54
  }
46
55
  };
47
56
  var appHelper_default = appHelper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/lowcode-renderer",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "sideEffects": false,
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",
@@ -18,7 +18,7 @@
18
18
  "@alifd/next": "^1.25.44",
19
19
  "lodash-es": "^4.17.21",
20
20
  "dayjs": "^1.11.9",
21
- "@pisell/utils": "1.0.15"
21
+ "@pisell/utils": "1.0.16"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.9.0",