@pisell/private-materials 3.4.41 → 3.4.42

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 (119) 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 +151 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +1 -1
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +11 -9
  13. package/es/components/authentication/admin/AuthMethods/index.js +29 -6
  14. package/es/components/booking/addons/model.d.ts +1 -10
  15. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  16. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  17. package/es/components/booking/forms/model.d.ts +1 -10
  18. package/es/components/booking/forms/table/index.d.ts +0 -1
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  20. package/es/components/booking/info/model.d.ts +1 -10
  21. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  22. package/es/components/booking/info/service/like/index.d.ts +0 -1
  23. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/model.d.ts +1 -9
  25. package/es/components/booking/notes/model.d.ts +1 -10
  26. package/es/components/booking/payments/model.d.ts +1 -10
  27. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  28. package/es/components/eftpos/form/index.d.ts +0 -1
  29. package/es/components/eftpos/group/index.d.ts +0 -1
  30. package/es/components/eftpos/hooks.d.ts +0 -1
  31. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  32. package/es/components/eftpos/icon/device.d.ts +0 -1
  33. package/es/components/eftpos/receipt/index.d.ts +0 -1
  34. package/es/components/eftposPay/app.d.ts +1 -1
  35. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  36. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  37. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  38. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  39. package/es/components/eftposPay/hooks.d.ts +1 -1
  40. package/es/components/eftposPay/store/index.d.ts +1 -1
  41. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  42. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  44. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  45. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  46. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  47. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  48. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  49. package/es/components/pay/toC/model.d.ts +1 -9
  50. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  51. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  52. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  53. package/es/components/schedules/model.d.ts +1 -9
  54. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  55. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  56. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  57. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  58. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  59. package/es/components/wallet/Detail/model.d.ts +1 -13
  60. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  61. package/es/components/wallet/PointCard/model.d.ts +1 -13
  62. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  63. package/es/components/wallet/Voucher/model.d.ts +1 -13
  64. package/es/components/wallet/model.d.ts +1 -9
  65. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  66. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +11 -9
  67. package/lib/components/authentication/admin/AuthMethods/index.js +23 -7
  68. package/lib/components/booking/addons/model.d.ts +1 -10
  69. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  70. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  71. package/lib/components/booking/forms/model.d.ts +1 -10
  72. package/lib/components/booking/forms/table/index.d.ts +0 -1
  73. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  74. package/lib/components/booking/info/model.d.ts +1 -10
  75. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  76. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  77. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  78. package/lib/components/booking/model.d.ts +1 -9
  79. package/lib/components/booking/notes/model.d.ts +1 -10
  80. package/lib/components/booking/payments/model.d.ts +1 -10
  81. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  82. package/lib/components/eftpos/form/index.d.ts +0 -1
  83. package/lib/components/eftpos/group/index.d.ts +0 -1
  84. package/lib/components/eftpos/hooks.d.ts +0 -1
  85. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  86. package/lib/components/eftpos/icon/device.d.ts +0 -1
  87. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  88. package/lib/components/eftposPay/app.d.ts +1 -1
  89. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  90. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  91. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  92. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  93. package/lib/components/eftposPay/hooks.d.ts +1 -1
  94. package/lib/components/eftposPay/store/index.d.ts +1 -1
  95. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  96. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  97. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  98. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  99. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  100. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  101. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  102. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  103. package/lib/components/pay/toC/model.d.ts +1 -9
  104. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  105. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  106. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  107. package/lib/components/schedules/model.d.ts +1 -9
  108. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  109. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  110. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  111. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  112. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  113. package/lib/components/wallet/Detail/model.d.ts +1 -13
  114. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  115. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  116. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  117. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  118. package/lib/components/wallet/model.d.ts +1 -9
  119. package/package.json +4 -4
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -6,13 +6,17 @@
6
6
  .auth-methods-item {
7
7
  display: flex;
8
8
  align-items: center;
9
- padding: 20px 24px;
10
9
  border: 1px solid #f0f0f0;
11
10
  border-radius: 8px;
12
11
  background: #fff;
13
12
  margin-bottom: 12px;
14
- transition: all 0.3s;
15
- cursor: move;
13
+ }
14
+
15
+ .auth-methods-item-body {
16
+ display: flex;
17
+ flex: 1;
18
+ padding: 20px 24px 20px 0;
19
+ align-items: center;
16
20
  }
17
21
 
18
22
  .auth-methods-item:hover {
@@ -23,14 +27,12 @@
23
27
  display: flex;
24
28
  align-items: center;
25
29
  justify-content: center;
26
- margin-right: 16px;
27
30
  color: #d9d9d9;
28
- font-size: 16px;
31
+ font-size: 20px;
32
+ padding-left: 24px;
33
+ padding-right: 16px;
29
34
  cursor: grab;
30
- }
31
-
32
- .auth-methods-item-drag:active {
33
- cursor: grabbing;
35
+ align-self: stretch;
34
36
  }
35
37
 
36
38
  .auth-methods-item-icon {
@@ -1,6 +1,10 @@
1
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
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
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
7
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
4
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -12,7 +16,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
12
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
17
  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); }
14
18
  import React, { useState, useEffect } from 'react';
15
- import { Switch, Button, Empty } from 'antd';
19
+ import { Switch, Empty } from 'antd';
20
+ import { Button } from '@pisell/materials';
16
21
  import { HolderOutlined, SettingOutlined, InfoCircleOutlined } from '@ant-design/icons';
17
22
  import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';
18
23
  import { arrayMove, SortableContext, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable';
@@ -61,6 +66,8 @@ var SortableItem = function SortableItem(_ref) {
61
66
  }, /*#__PURE__*/React.createElement("div", _extends({
62
67
  className: "auth-methods-item-drag"
63
68
  }, attributes, listeners), /*#__PURE__*/React.createElement(HolderOutlined, null)), /*#__PURE__*/React.createElement("div", {
69
+ className: "auth-methods-item-body"
70
+ }, /*#__PURE__*/React.createElement("div", {
64
71
  className: "auth-methods-item-icon"
65
72
  }, method.icon), /*#__PURE__*/React.createElement("div", {
66
73
  className: "auth-methods-item-content"
@@ -93,12 +100,14 @@ var SortableItem = function SortableItem(_ref) {
93
100
  }, enableSetting && method.hasSettings && /*#__PURE__*/React.createElement(Button, {
94
101
  type: "default",
95
102
  icon: /*#__PURE__*/React.createElement(SettingOutlined, null),
96
- onClick: onSettings
103
+ onClick: function onClick() {
104
+ return onSettings();
105
+ }
97
106
  }, locales.getText('auth.button.settings')), /*#__PURE__*/React.createElement(Switch, {
98
107
  checked: method.enabled,
99
108
  onChange: onToggle,
100
109
  disabled: method.disableToggle
101
- })));
110
+ }))));
102
111
  };
103
112
  var AuthMethods = function AuthMethods(_ref2) {
104
113
  var _context$engine;
@@ -122,7 +131,14 @@ var AuthMethods = function AuthMethods(_ref2) {
122
131
  useEffect(function () {
123
132
  if (initialMethods && initialMethods.length > 0) {
124
133
  console.log('AuthMethods 组件同步父组件数据:', initialMethods);
125
- setMethods(initialMethods);
134
+ // 确保按照 sort 字段排序
135
+ var sortedMethods = _toConsumableArray(initialMethods).sort(function (a, b) {
136
+ var _a$sort, _b$sort;
137
+ var sortA = (_a$sort = a.sort) !== null && _a$sort !== void 0 ? _a$sort : 0;
138
+ var sortB = (_b$sort = b.sort) !== null && _b$sort !== void 0 ? _b$sort : 0;
139
+ return sortA - sortB;
140
+ });
141
+ setMethods(sortedMethods);
126
142
  }
127
143
  }, [initialMethods]);
128
144
  var sensors = useSensors(useSensor(PointerSensor, {
@@ -144,8 +160,15 @@ var AuthMethods = function AuthMethods(_ref2) {
144
160
  return item.id === over.id;
145
161
  });
146
162
  var newItems = arrayMove(items, oldIndex, newIndex);
147
- onOrderChange === null || onOrderChange === void 0 || onOrderChange(newItems);
148
- return newItems;
163
+
164
+ // 更新每个 item 的 sort 字段以反映新的顺序
165
+ var updatedItems = newItems.map(function (item, index) {
166
+ return _objectSpread(_objectSpread({}, item), {}, {
167
+ sort: index
168
+ });
169
+ });
170
+ onOrderChange === null || onOrderChange === void 0 || onOrderChange(updatedItems);
171
+ return updatedItems;
149
172
  });
150
173
  }
151
174
  };
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,5 +1,5 @@
1
1
  import { PosProps, RouteType } from './const';
2
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
2
+ declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
3
3
  action: RouteType;
4
4
  device_number: string | number;
5
5
  api: ReturnType<PosProps['getApi']>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "payo" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -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;
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组