@pisell/private-materials 6.4.31 → 6.4.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.
Files changed (94) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +5 -5
  7. package/build/lowcode/render/default/view.js +6 -6
  8. package/build/lowcode/view.js +6 -6
  9. package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/index.d.ts +0 -1
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  14. package/es/components/booking/components/footer/index.js +23 -7
  15. package/es/components/booking/deposit/index.d.ts +0 -1
  16. package/es/components/booking/forms/model.d.ts +1 -10
  17. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  18. package/es/components/booking/info/model.d.ts +1 -10
  19. package/es/components/booking/info/notes/index.d.ts +0 -1
  20. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  21. package/es/components/booking/model.d.ts +1 -9
  22. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  23. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  24. package/es/components/booking/notes/model.d.ts +1 -10
  25. package/es/components/booking/payments/model.d.ts +1 -10
  26. package/es/components/checkout/PaymentModal.js +23 -33
  27. package/es/components/checkout/PaymentPlugin.d.ts +0 -1
  28. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -1
  29. package/es/components/checkout/components/PaymentResultToast/index.js +1 -1
  30. package/es/components/checkout/components/ScrollableList/index.js +0 -1
  31. package/es/components/eftposPay/amount.d.ts +0 -1
  32. package/es/components/eftposPay/app.d.ts +0 -1
  33. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  34. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  35. package/es/components/eftposPay/index.d.ts +0 -1
  36. package/es/components/eftposPay/pay.d.ts +0 -1
  37. package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  38. package/es/components/pay/toB/components/MX51/index.js +14 -44
  39. package/es/components/pay/toB/types/index.d.ts +0 -12
  40. package/es/components/pay/toB/types/index.js +0 -4
  41. package/es/components/pay/toC/model.d.ts +1 -9
  42. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  43. package/es/components/schedules/model.d.ts +1 -9
  44. package/es/components/wallet/Detail/model.d.ts +1 -13
  45. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  46. package/es/components/wallet/PointCard/model.d.ts +1 -13
  47. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  48. package/es/components/wallet/Voucher/model.d.ts +1 -13
  49. package/es/components/wallet/model.d.ts +1 -9
  50. package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
  51. package/lib/components/appointmentBooking/index.d.ts +0 -1
  52. package/lib/components/booking/addons/model.d.ts +1 -10
  53. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  54. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  55. package/lib/components/booking/components/footer/index.js +8 -7
  56. package/lib/components/booking/deposit/index.d.ts +0 -1
  57. package/lib/components/booking/forms/model.d.ts +1 -10
  58. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  59. package/lib/components/booking/info/model.d.ts +1 -10
  60. package/lib/components/booking/info/notes/index.d.ts +0 -1
  61. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  62. package/lib/components/booking/model.d.ts +1 -9
  63. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  64. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  65. package/lib/components/booking/notes/model.d.ts +1 -10
  66. package/lib/components/booking/payments/model.d.ts +1 -10
  67. package/lib/components/checkout/PaymentModal.js +7 -17
  68. package/lib/components/checkout/PaymentPlugin.d.ts +0 -1
  69. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +1 -1
  70. package/lib/components/checkout/components/PaymentResultToast/index.js +1 -1
  71. package/lib/components/checkout/components/ScrollableList/index.js +0 -1
  72. package/lib/components/eftposPay/amount.d.ts +0 -1
  73. package/lib/components/eftposPay/app.d.ts +0 -1
  74. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  75. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  76. package/lib/components/eftposPay/index.d.ts +0 -1
  77. package/lib/components/eftposPay/pay.d.ts +0 -1
  78. package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -1
  79. package/lib/components/pay/toB/components/MX51/index.js +12 -37
  80. package/lib/components/pay/toB/types/index.d.ts +0 -12
  81. package/lib/components/pay/toC/model.d.ts +1 -9
  82. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  83. package/lib/components/schedules/model.d.ts +1 -9
  84. package/lib/components/wallet/Detail/model.d.ts +1 -13
  85. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  86. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  87. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  88. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  89. package/lib/components/wallet/model.d.ts +1 -9
  90. package/package.json +1 -1
  91. package/es/hooks/printer.d.ts +0 -4
  92. package/es/hooks/printer.js +0 -35
  93. package/lib/hooks/printer.d.ts +0 -4
  94. package/lib/hooks/printer.js +0 -60
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.4.31",
3
+ "version": "6.4.33",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",
@@ -1,4 +0,0 @@
1
- declare const usePrinter: () => {
2
- nativePrint: (data: any, callback: (res: any) => void) => void;
3
- };
4
- export default usePrinter;
@@ -1,35 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import useEngineContext from "./useEngineContext";
8
- var usePrinter = function usePrinter() {
9
- var _context$appHelper;
10
- var context = useEngineContext();
11
- var _ref = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
12
- action = _ref.action;
13
- var nativePrint = function nativePrint(data, _callback) {
14
- // 转换注意事项:
15
- // data.type: 0 是JSBridge调用小票打印,nativePlugin中调用时需要转为 'INVOICE'
16
- // data.type: 99 是JSBridge调用全部打印,nativePlugin中调用时需要转为 'ALL'
17
- action({
18
- type: 'webpos.handlePrint',
19
- data: data,
20
- callback: function callback(res) {
21
- if (typeof (res === null || res === void 0 ? void 0 : res.status) === 'string') {
22
- _callback === null || _callback === void 0 || _callback(_objectSpread(_objectSpread({}, res || {}), {}, {
23
- result: (res === null || res === void 0 ? void 0 : res.status) == 'success' ? true : false
24
- }));
25
- } else {
26
- _callback === null || _callback === void 0 || _callback(res);
27
- }
28
- }
29
- });
30
- };
31
- return {
32
- nativePrint: nativePrint
33
- };
34
- };
35
- export default usePrinter;
@@ -1,4 +0,0 @@
1
- declare const usePrinter: () => {
2
- nativePrint: (data: any, callback: (res: any) => void) => void;
3
- };
4
- export default usePrinter;
@@ -1,60 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/hooks/printer.ts
30
- var printer_exports = {};
31
- __export(printer_exports, {
32
- default: () => printer_default
33
- });
34
- module.exports = __toCommonJS(printer_exports);
35
- var import_useEngineContext = __toESM(require("./useEngineContext"));
36
- var usePrinter = () => {
37
- var _a;
38
- const context = (0, import_useEngineContext.default)();
39
- const { action } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
40
- const nativePrint = (data, callback) => {
41
- action({
42
- type: "webpos.handlePrint",
43
- data,
44
- callback: (res) => {
45
- if (typeof (res == null ? void 0 : res.status) === "string") {
46
- callback == null ? void 0 : callback({
47
- ...res || {},
48
- result: (res == null ? void 0 : res.status) == "success" ? true : false
49
- });
50
- } else {
51
- callback == null ? void 0 : callback(res);
52
- }
53
- }
54
- });
55
- };
56
- return {
57
- nativePrint
58
- };
59
- };
60
- var printer_default = usePrinter;