@pisell/private-materials 3.0.136 → 3.0.137

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 (231) 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 +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/booking/addons/model.d.ts +1 -2
  12. package/es/components/booking/forms/model.d.ts +1 -2
  13. package/es/components/booking/notes/index.d.ts +1 -1
  14. package/es/components/booking/notes/model.d.ts +1 -2
  15. package/es/components/booking/payments/model.d.ts +1 -2
  16. package/es/components/eftpos/const.d.ts +26 -0
  17. package/es/components/eftpos/const.js +40 -8
  18. package/es/components/eftpos/device.d.ts +3 -2
  19. package/es/components/eftpos/device.js +6 -5
  20. package/es/components/eftpos/form/index.d.ts +5 -0
  21. package/es/components/eftpos/form/index.js +8 -0
  22. package/es/components/eftpos/hooks.d.ts +34 -0
  23. package/es/components/{eftposPay/windcave/hook.js → eftpos/hooks.js} +96 -122
  24. package/es/components/eftpos/icon/apiKey.d.ts +5 -0
  25. package/es/components/eftpos/icon/apiKey.js +17 -0
  26. package/es/components/eftpos/icon/device.d.ts +5 -0
  27. package/es/components/eftpos/icon/device.js +19 -0
  28. package/es/components/eftpos/index.d.ts +10 -0
  29. package/es/components/eftpos/index.js +329 -46
  30. package/es/components/eftpos/index.less +38 -1
  31. package/es/components/eftpos/locales.d.ts +12 -0
  32. package/es/components/eftpos/locales.js +15 -3
  33. package/es/components/eftpos/log.d.ts +8 -0
  34. package/es/components/eftpos/log.js +85 -0
  35. package/es/components/eftpos/pos.d.ts +1 -1
  36. package/es/components/eftpos/pos.js +8 -5
  37. package/es/components/eftpos/surcharge/index.d.ts +25 -2
  38. package/es/components/eftpos/surcharge/index.js +100 -16
  39. package/es/components/eftpos/table.d.ts +4 -0
  40. package/es/components/eftpos/table.js +102 -10
  41. package/es/components/eftposPay/amount.d.ts +7 -1
  42. package/es/components/eftposPay/amount.js +65 -38
  43. package/es/components/eftposPay/component/fail/failCustom.js +65 -20
  44. package/es/components/eftposPay/component/fail/index.js +60 -30
  45. package/es/components/eftposPay/component/fail/network.d.ts +5 -0
  46. package/es/components/eftposPay/component/fail/network.js +13 -0
  47. package/es/components/eftposPay/component/fail/unknow.d.ts +6 -0
  48. package/es/components/eftposPay/component/fail/unknow.js +18 -3
  49. package/es/components/eftposPay/component/header/index.d.ts +2 -1
  50. package/es/components/eftposPay/component/header/index.js +4 -1
  51. package/es/components/eftposPay/component/header/index.less +1 -10
  52. package/es/components/eftposPay/component/manual/index.d.ts +6 -1
  53. package/es/components/eftposPay/component/manual/index.js +174 -23
  54. package/es/components/eftposPay/component/manual/index.less +42 -14
  55. package/es/components/eftposPay/component/signature/index.d.ts +5 -0
  56. package/es/components/eftposPay/component/signature/index.js +20 -2
  57. package/es/components/eftposPay/component/step/index.d.ts +7 -7
  58. package/es/components/eftposPay/component/step/step.d.ts +4 -4
  59. package/es/components/eftposPay/const.d.ts +19 -4
  60. package/es/components/eftposPay/const.js +4 -2
  61. package/es/components/eftposPay/device.d.ts +7 -0
  62. package/es/components/eftposPay/device.js +22 -0
  63. package/es/components/eftposPay/helper.d.ts +54 -0
  64. package/es/components/eftposPay/helper.js +93 -1
  65. package/es/components/eftposPay/hooks.d.ts +30 -1
  66. package/es/components/eftposPay/hooks.js +181 -26
  67. package/es/components/eftposPay/index.d.ts +2 -4
  68. package/es/components/eftposPay/index.js +119 -31
  69. package/es/components/eftposPay/index.less +27 -19
  70. package/es/components/eftposPay/locales.d.ts +45 -0
  71. package/es/components/eftposPay/locales.js +348 -3
  72. package/es/components/eftposPay/manufacturer.d.ts +2 -2
  73. package/es/components/eftposPay/manufacturer.js +9 -10
  74. package/es/components/eftposPay/pay.d.ts +10 -1
  75. package/es/components/eftposPay/pay.js +112 -34
  76. package/es/components/eftposPay/payo/config.js +137 -270
  77. package/es/components/eftposPay/payo/const.d.ts +22 -2
  78. package/es/components/eftposPay/payo/const.js +83 -33
  79. package/es/components/eftposPay/payo/hooks.d.ts +5 -0
  80. package/es/components/eftposPay/payo/hooks.js +19 -2
  81. package/es/components/eftposPay/store/index.d.ts +154 -53
  82. package/es/components/eftposPay/store/index.js +112 -60
  83. package/es/components/eftposPay/tyro/const.d.ts +17 -0
  84. package/es/components/eftposPay/{eftpos → tyro}/const.js +71 -90
  85. package/es/components/eftposPay/tyro/hooks.d.ts +14 -0
  86. package/es/components/eftposPay/tyro/hooks.js +40 -0
  87. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  88. package/es/components/eftposPay/tyro/index.js +575 -0
  89. package/es/components/eftposPay/windcave/const.d.ts +24 -9
  90. package/es/components/eftposPay/windcave/const.js +90 -81
  91. package/es/components/eftposPay/windcave/helper.d.ts +16 -2
  92. package/es/components/eftposPay/windcave/helper.js +175 -42
  93. package/es/components/eftposPay/windcave/receiptAction.d.ts +12 -0
  94. package/es/components/eftposPay/windcave/receiptAction.js +91 -43
  95. package/es/components/eftposPay/windcave/timer.d.ts +13 -1
  96. package/es/components/eftposPay/windcave/timer.js +18 -1
  97. package/es/components/eftposPay/windcave/windcave.d.ts +2 -1
  98. package/es/components/eftposPay/windcave/windcave.js +155 -139
  99. package/es/components/schedules/index.d.ts +1 -1
  100. package/es/components/schedules/model.d.ts +1 -2
  101. package/es/utils/load.d.ts +11 -0
  102. package/es/utils/load.js +85 -0
  103. package/lib/components/booking/addons/model.d.ts +1 -2
  104. package/lib/components/booking/forms/model.d.ts +1 -2
  105. package/lib/components/booking/notes/index.d.ts +1 -1
  106. package/lib/components/booking/notes/model.d.ts +1 -2
  107. package/lib/components/booking/payments/model.d.ts +1 -2
  108. package/lib/components/eftpos/const.d.ts +26 -0
  109. package/lib/components/eftpos/const.js +13 -1
  110. package/lib/components/eftpos/device.d.ts +3 -2
  111. package/lib/components/eftpos/device.js +2 -2
  112. package/lib/components/eftpos/form/index.d.ts +5 -0
  113. package/lib/components/eftpos/hooks.d.ts +34 -0
  114. package/lib/components/eftpos/hooks.js +106 -0
  115. package/lib/components/eftpos/icon/apiKey.d.ts +5 -0
  116. package/lib/components/eftpos/icon/apiKey.js +57 -0
  117. package/lib/components/eftpos/icon/device.d.ts +5 -0
  118. package/lib/components/eftpos/icon/device.js +57 -0
  119. package/lib/components/eftpos/index.d.ts +10 -0
  120. package/lib/components/eftpos/index.js +262 -97
  121. package/lib/components/eftpos/index.less +38 -1
  122. package/lib/components/eftpos/locales.d.ts +12 -0
  123. package/lib/components/eftpos/locales.js +15 -3
  124. package/lib/components/eftpos/log.d.ts +8 -0
  125. package/lib/components/eftpos/log.js +87 -0
  126. package/lib/components/eftpos/pos.d.ts +1 -1
  127. package/lib/components/eftpos/pos.js +5 -4
  128. package/lib/components/eftpos/surcharge/index.d.ts +25 -2
  129. package/lib/components/eftpos/surcharge/index.js +36 -6
  130. package/lib/components/eftpos/table.d.ts +4 -0
  131. package/lib/components/eftpos/table.js +40 -8
  132. package/lib/components/eftposPay/amount.d.ts +7 -1
  133. package/lib/components/eftposPay/amount.js +10 -33
  134. package/lib/components/eftposPay/component/fail/failCustom.js +27 -6
  135. package/lib/components/eftposPay/component/fail/index.js +39 -18
  136. package/lib/components/eftposPay/component/fail/network.d.ts +5 -0
  137. package/lib/components/eftposPay/component/fail/unknow.d.ts +6 -0
  138. package/lib/components/eftposPay/component/fail/unknow.js +3 -3
  139. package/lib/components/eftposPay/component/header/index.d.ts +2 -1
  140. package/lib/components/eftposPay/component/header/index.js +2 -1
  141. package/lib/components/eftposPay/component/header/index.less +1 -10
  142. package/lib/components/eftposPay/component/manual/index.d.ts +6 -1
  143. package/lib/components/eftposPay/component/manual/index.js +122 -31
  144. package/lib/components/eftposPay/component/manual/index.less +42 -14
  145. package/lib/components/eftposPay/component/signature/index.d.ts +5 -0
  146. package/lib/components/eftposPay/component/signature/index.js +2 -2
  147. package/lib/components/eftposPay/component/step/index.d.ts +7 -7
  148. package/lib/components/eftposPay/component/step/step.d.ts +4 -4
  149. package/lib/components/eftposPay/const.d.ts +19 -4
  150. package/lib/components/eftposPay/const.js +3 -1
  151. package/lib/components/eftposPay/device.d.ts +7 -0
  152. package/lib/components/eftposPay/helper.d.ts +54 -0
  153. package/lib/components/eftposPay/helper.js +64 -0
  154. package/lib/components/eftposPay/hooks.d.ts +30 -1
  155. package/lib/components/eftposPay/hooks.js +182 -44
  156. package/lib/components/eftposPay/index.d.ts +2 -4
  157. package/lib/components/eftposPay/index.js +74 -27
  158. package/lib/components/eftposPay/index.less +27 -19
  159. package/lib/components/eftposPay/locales.d.ts +45 -0
  160. package/lib/components/eftposPay/locales.js +352 -3
  161. package/lib/components/eftposPay/manufacturer.d.ts +2 -2
  162. package/lib/components/eftposPay/manufacturer.js +13 -13
  163. package/lib/components/eftposPay/pay.d.ts +10 -1
  164. package/lib/components/eftposPay/pay.js +86 -25
  165. package/lib/components/eftposPay/payo/config.js +121 -268
  166. package/lib/components/eftposPay/payo/const.d.ts +22 -2
  167. package/lib/components/eftposPay/payo/const.js +55 -36
  168. package/lib/components/eftposPay/payo/hooks.d.ts +5 -0
  169. package/lib/components/eftposPay/payo/hooks.js +1 -1
  170. package/lib/components/eftposPay/store/index.d.ts +154 -53
  171. package/lib/components/eftposPay/store/index.js +7 -66
  172. package/lib/components/eftposPay/tyro/const.d.ts +17 -0
  173. package/lib/components/eftposPay/tyro/const.js +114 -0
  174. package/lib/components/eftposPay/tyro/hooks.d.ts +14 -0
  175. package/lib/components/eftposPay/{eftpos/index.js → tyro/hooks.js} +31 -36
  176. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  177. package/lib/components/eftposPay/tyro/index.js +558 -0
  178. package/lib/components/eftposPay/windcave/const.d.ts +24 -9
  179. package/lib/components/eftposPay/windcave/const.js +53 -104
  180. package/lib/components/eftposPay/windcave/helper.d.ts +16 -2
  181. package/lib/components/eftposPay/windcave/helper.js +163 -48
  182. package/lib/components/eftposPay/windcave/receiptAction.d.ts +12 -0
  183. package/lib/components/eftposPay/windcave/receiptAction.js +15 -47
  184. package/lib/components/eftposPay/windcave/timer.d.ts +13 -1
  185. package/lib/components/eftposPay/windcave/timer.js +5 -0
  186. package/lib/components/eftposPay/windcave/windcave.d.ts +2 -1
  187. package/lib/components/eftposPay/windcave/windcave.js +130 -130
  188. package/lib/components/schedules/index.d.ts +1 -1
  189. package/lib/components/schedules/model.d.ts +1 -2
  190. package/lib/utils/load.d.ts +11 -0
  191. package/lib/utils/load.js +100 -0
  192. package/lowcode/eftpos/meta.ts +202 -160
  193. package/lowcode/eftpos-pay/meta.ts +45 -12
  194. package/package.json +4 -4
  195. package/es/components/eftposPay/eftpos/config.d.ts +0 -11
  196. package/es/components/eftposPay/eftpos/config.js +0 -178
  197. package/es/components/eftposPay/eftpos/const.d.ts +0 -10
  198. package/es/components/eftposPay/eftpos/index.d.ts +0 -7
  199. package/es/components/eftposPay/eftpos/index.js +0 -35
  200. package/es/components/eftposPay/windcave/action.d.ts +0 -8
  201. package/es/components/eftposPay/windcave/action.js +0 -104
  202. package/es/components/eftposPay/windcave/hook.d.ts +0 -14
  203. package/es/components/eftposPay/windcave/index.d.ts +0 -8
  204. package/es/components/eftposPay/windcave/index.js +0 -49
  205. package/es/components/eftposPay/windcave/pos.d.ts +0 -8
  206. package/es/components/eftposPay/windcave/pos.js +0 -180
  207. package/es/components/eftposPay/windcave/pwd.d.ts +0 -8
  208. package/es/components/eftposPay/windcave/pwd.js +0 -124
  209. package/es/components/eftposPay/windcave/receipet.d.ts +0 -6
  210. package/es/components/eftposPay/windcave/receipet.js +0 -67
  211. package/es/components/eftposPay/windcave/wait.d.ts +0 -12
  212. package/es/components/eftposPay/windcave/wait.js +0 -139
  213. package/lib/components/eftposPay/eftpos/config.d.ts +0 -11
  214. package/lib/components/eftposPay/eftpos/config.js +0 -199
  215. package/lib/components/eftposPay/eftpos/const.d.ts +0 -10
  216. package/lib/components/eftposPay/eftpos/const.js +0 -165
  217. package/lib/components/eftposPay/eftpos/index.d.ts +0 -7
  218. package/lib/components/eftposPay/windcave/action.d.ts +0 -8
  219. package/lib/components/eftposPay/windcave/action.js +0 -143
  220. package/lib/components/eftposPay/windcave/hook.d.ts +0 -14
  221. package/lib/components/eftposPay/windcave/hook.js +0 -139
  222. package/lib/components/eftposPay/windcave/index.d.ts +0 -8
  223. package/lib/components/eftposPay/windcave/index.js +0 -78
  224. package/lib/components/eftposPay/windcave/pos.d.ts +0 -8
  225. package/lib/components/eftposPay/windcave/pos.js +0 -197
  226. package/lib/components/eftposPay/windcave/pwd.d.ts +0 -8
  227. package/lib/components/eftposPay/windcave/pwd.js +0 -143
  228. package/lib/components/eftposPay/windcave/receipet.d.ts +0 -6
  229. package/lib/components/eftposPay/windcave/receipet.js +0 -93
  230. package/lib/components/eftposPay/windcave/wait.d.ts +0 -12
  231. package/lib/components/eftposPay/windcave/wait.js +0 -163
@@ -38,7 +38,7 @@ var import_utils = require("@pisell/utils");
38
38
  var import_const = require("./const");
39
39
  var import_form = __toESM(require("./form"));
40
40
  var Device = (props) => {
41
- const { onSave, formItemList } = props;
41
+ const { onSave, children, formItemList } = props;
42
42
  const initialValues = (0, import_const.getDefaultValue)(formItemList);
43
43
  return /* @__PURE__ */ import_react.default.createElement(
44
44
  import_antd.Form,
@@ -48,7 +48,7 @@ var Device = (props) => {
48
48
  initialValues,
49
49
  className: "pisell-lowcode__pos-device"
50
50
  },
51
- /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, overflow: "auto", padding: "0 0 60px 0" } }, /* @__PURE__ */ import_react.default.createElement(import_form.default, { formItemList })),
51
+ /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, overflow: "auto", padding: "0 0 60px 0" } }, /* @__PURE__ */ import_react.default.createElement(import_form.default, { formItemList }), children),
52
52
  /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { className: "pisell-lowcode__pos-device-btn" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { htmlType: "submit", block: true, style: { height: "48px" } }, import_utils.locales.getText("page.eftpos.text.save")))
53
53
  );
54
54
  };
@@ -1,4 +1,9 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @title: 递归循环表单数据
4
+ * @Author: hongbing.wang
5
+ * @Date: 2024-08-20 13:21
6
+ */
2
7
  declare const CustomFormItem: ({ formItemList, level, onChange, }: {
3
8
  formItemList: any[];
4
9
  level?: number | undefined;
@@ -0,0 +1,34 @@
1
+ /// <reference types="react" />
2
+ import { Eftpos } from './const';
3
+ /**
4
+ * @title: tyro 设备连接
5
+ * @Author: hongbing.wang
6
+ * @Date: 2024-08-20 13:23
7
+ */
8
+ export declare const usePairTerminalo: (type: Eftpos, params: {
9
+ url?: string | undefined;
10
+ version?: string | undefined;
11
+ }) => ({ mid, tid, apiKey, posProductData, }: {
12
+ mid: string;
13
+ tid: string;
14
+ apiKey: string;
15
+ posProductData: {
16
+ posProductVendor: string;
17
+ posProductName: string;
18
+ posProductVersion: string;
19
+ siteReference: string;
20
+ };
21
+ }, cb: (...agrn: unknown[]) => void) => Promise<void>;
22
+ /**
23
+ * @title: 获取 Tyro 资源
24
+ * @description:
25
+ * @param {Eftpos} type 类型
26
+ * @param {string} url 链接
27
+ * @return {*}
28
+ * @Author: hongbing.wang
29
+ * @Date: 2024-08-19 18:36
30
+ */
31
+ export declare const useTyro: (params: {
32
+ url?: string | undefined;
33
+ version?: string | undefined;
34
+ }) => readonly [import("react").MutableRefObject<any>, boolean];
@@ -0,0 +1,106 @@
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/components/eftpos/hooks.tsx
30
+ var hooks_exports = {};
31
+ __export(hooks_exports, {
32
+ usePairTerminalo: () => usePairTerminalo,
33
+ useTyro: () => useTyro
34
+ });
35
+ module.exports = __toCommonJS(hooks_exports);
36
+ var import_react = require("react");
37
+ var import_load = __toESM(require("../../utils/load"));
38
+ var usePairTerminalo = (type, params) => {
39
+ const ref = (0, import_react.useRef)();
40
+ const iclientRef = (0, import_react.useRef)();
41
+ const url = (0, import_react.useMemo)(() => {
42
+ return params && params.url && params.version ? `${params.url}/${params.version}` : "https://iclientsimulator.test.tyro.com/iclient-v1.js";
43
+ }, [params]);
44
+ const loadSDK = () => {
45
+ if (window == null ? void 0 : window.TYRO) {
46
+ return Promise.resolve(window == null ? void 0 : window.TYRO);
47
+ }
48
+ return (0, import_load.default)(url, document.head).then(() => {
49
+ console.log(window == null ? void 0 : window.TYRO);
50
+ return window == null ? void 0 : window.TYRO;
51
+ });
52
+ };
53
+ const pair = async ({
54
+ mid,
55
+ tid,
56
+ apiKey,
57
+ posProductData
58
+ }, cb) => {
59
+ if (type !== "tyro") {
60
+ cb({});
61
+ return;
62
+ }
63
+ if (!ref.current) {
64
+ ref.current = await loadSDK();
65
+ }
66
+ if (!ref.current) {
67
+ cb({});
68
+ return;
69
+ }
70
+ if (!iclientRef.current) {
71
+ const TYRO = ref.current;
72
+ iclientRef.current = new TYRO.IClient(apiKey, posProductData);
73
+ }
74
+ iclientRef.current.pairTerminal(mid, tid, (response) => {
75
+ console.log(response);
76
+ cb(response);
77
+ });
78
+ };
79
+ return pair;
80
+ };
81
+ var useTyro = (params) => {
82
+ const ref = (0, import_react.useRef)();
83
+ const [load, setLoad] = (0, import_react.useState)(false);
84
+ const url = (0, import_react.useMemo)(() => {
85
+ return params && params.url && params.version ? `${params.url}/${params.version}` : "https://iclientsimulator.test.tyro.com/iclient-v1.js";
86
+ }, [params]);
87
+ (0, import_react.useEffect)(() => {
88
+ (0, import_load.default)(url, document.head).then(() => {
89
+ return window == null ? void 0 : window.TYRO;
90
+ }).then(
91
+ (res) => {
92
+ setLoad(true);
93
+ ref.current = res;
94
+ },
95
+ () => {
96
+ setLoad(true);
97
+ }
98
+ );
99
+ }, [url]);
100
+ return [ref, load];
101
+ };
102
+ // Annotate the CommonJS export names for ESM import in node:
103
+ 0 && (module.exports = {
104
+ usePairTerminalo,
105
+ useTyro
106
+ });
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const _default: ({ color }: {
3
+ color?: string | undefined;
4
+ }) => React.JSX.Element;
5
+ export default _default;
@@ -0,0 +1,57 @@
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/components/eftpos/icon/apiKey.tsx
30
+ var apiKey_exports = {};
31
+ __export(apiKey_exports, {
32
+ default: () => apiKey_default
33
+ });
34
+ module.exports = __toCommonJS(apiKey_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var apiKey_default = ({ color }) => {
37
+ return /* @__PURE__ */ import_react.default.createElement(
38
+ "svg",
39
+ {
40
+ width: "24",
41
+ height: "24",
42
+ viewBox: "0 0 24 24",
43
+ fill: "none",
44
+ xmlns: "http://www.w3.org/2000/svg"
45
+ },
46
+ /* @__PURE__ */ import_react.default.createElement("g", null, /* @__PURE__ */ import_react.default.createElement(
47
+ "path",
48
+ {
49
+ d: "M18 17V19.4C18 19.9601 18 20.2401 17.891 20.454C17.7951 20.6422 17.6422 20.7951 17.454 20.891C17.2401 21 16.9601 21 16.4 21H7.6C7.03995 21 6.75992 21 6.54601 20.891C6.35785 20.7951 6.20487 20.6422 6.10899 20.454C6 20.2401 6 19.9601 6 19.4V17M6.8 17H17.2C18.8802 17 19.7202 17 20.362 16.673C20.9265 16.3854 21.3854 15.9265 21.673 15.362C22 14.7202 22 13.8802 22 12.2V7.8C22 6.11984 22 5.27976 21.673 4.63803C21.3854 4.07354 20.9265 3.6146 20.362 3.32698C19.7202 3 18.8802 3 17.2 3H6.8C5.11984 3 4.27976 3 3.63803 3.32698C3.07354 3.6146 2.6146 4.07354 2.32698 4.63803C2 5.27976 2 6.11984 2 7.8V12.2C2 13.8802 2 14.7202 2.32698 15.362C2.6146 15.9265 3.07354 16.3854 3.63803 16.673C4.27976 17 5.11984 17 6.8 17Z",
50
+ stroke: color || "white",
51
+ "stroke-width": "1.67",
52
+ "stroke-linecap": "round",
53
+ "stroke-linejoin": "round"
54
+ }
55
+ ))
56
+ );
57
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const _default: ({ color }: {
3
+ color?: string | undefined;
4
+ }) => React.JSX.Element;
5
+ export default _default;
@@ -0,0 +1,57 @@
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/components/eftpos/icon/device.tsx
30
+ var device_exports = {};
31
+ __export(device_exports, {
32
+ default: () => device_default
33
+ });
34
+ module.exports = __toCommonJS(device_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var device_default = ({ color }) => {
37
+ return /* @__PURE__ */ import_react.default.createElement(
38
+ "svg",
39
+ {
40
+ width: "24",
41
+ height: "24",
42
+ viewBox: "0 0 24 24",
43
+ fill: "none",
44
+ xmlns: "http://www.w3.org/2000/svg"
45
+ },
46
+ /* @__PURE__ */ import_react.default.createElement("g", null, /* @__PURE__ */ import_react.default.createElement(
47
+ "path",
48
+ {
49
+ d: "M18.5708 20C19.8328 20 20.8568 18.977 20.8568 17.714V13.143L21.9998 12L20.8568 10.857V6.286C20.8568 5.023 19.8338 4 18.5708 4M5.429 4C4.166 4 3.143 5.023 3.143 6.286V10.857L2 12L3.143 13.143V17.714C3.143 18.977 4.166 20 5.429 20M7.5 12H7.51M12 12H12.01M16.5 12H16.51M8 12C8 12.2761 7.77614 12.5 7.5 12.5C7.22386 12.5 7 12.2761 7 12C7 11.7239 7.22386 11.5 7.5 11.5C7.77614 11.5 8 11.7239 8 12ZM12.5 12C12.5 12.2761 12.2761 12.5 12 12.5C11.7239 12.5 11.5 12.2761 11.5 12C11.5 11.7239 11.7239 11.5 12 11.5C12.2761 11.5 12.5 11.7239 12.5 12ZM17 12C17 12.2761 16.7761 12.5 16.5 12.5C16.2239 12.5 16 12.2761 16 12C16 11.7239 16.2239 11.5 16.5 11.5C16.7761 11.5 17 11.7239 17 12Z",
50
+ stroke: color || "white",
51
+ "stroke-width": "1.67",
52
+ "stroke-linecap": "round",
53
+ "stroke-linejoin": "round"
54
+ }
55
+ ))
56
+ );
57
+ };
@@ -6,10 +6,20 @@ interface PosProps {
6
6
  type: Eftpos;
7
7
  /** 厂商名称 */
8
8
  name: string;
9
+ /** 厂商额外信息 */
10
+ config: {
11
+ [key: string]: unknown;
12
+ };
9
13
  /** 编辑页面zIndex */
10
14
  zIndex?: number;
11
15
  /** table 列表宽度 */
12
16
  tableSize: number[];
17
+ /** tyro sdk url */
18
+ tyroUrl: string;
19
+ /** tyro sdk version */
20
+ tyroVersion: string;
21
+ /** tyro log 是否展示 */
22
+ useTyroLog?: boolean;
13
23
  /** 获取字段匹配数据项 */
14
24
  getComm: (params: {
15
25
  field: string;