@pisell/private-materials 3.4.86 → 3.4.87
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/serve.js +2 -2
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/serve.js +2 -2
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +11 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/serve.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/serve.js +1 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +5 -2
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/package.json +4 -4
|
@@ -15,7 +15,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
15
15
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
16
|
import { request } from "../../../../utils";
|
|
17
17
|
import { paymentKeys } from "./status";
|
|
18
|
-
import { isWx, isIOS } from '@pisell/utils';
|
|
18
|
+
import { isWx, isSafari, isIOS } from '@pisell/utils';
|
|
19
19
|
import { paymentTypes, isCustomPayment } from "./status";
|
|
20
20
|
import { formatCreditCardSurchargeList, formatCreditCardSurchargeText } from "./utils";
|
|
21
21
|
|
|
@@ -106,7 +106,7 @@ export var filterPaymentList = function filterPaymentList(list) {
|
|
|
106
106
|
// }
|
|
107
107
|
|
|
108
108
|
// 非IOS 隐藏苹果支付
|
|
109
|
-
if (!isIOS()) {
|
|
109
|
+
if (!isIOS() && !isSafari()) {
|
|
110
110
|
arr = arr.concat(['mw.apple']);
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -9,7 +9,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
9
9
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
10
|
import { request } from "../../../utils";
|
|
11
11
|
import { paymentKeys } from "./status";
|
|
12
|
-
import { isWx, isIOS } from '@pisell/utils';
|
|
12
|
+
import { isWx, isSafari, isIOS } from '@pisell/utils';
|
|
13
13
|
|
|
14
14
|
// 获取支付列表
|
|
15
15
|
export var getPaymentList = /*#__PURE__*/function () {
|
|
@@ -44,7 +44,7 @@ export var getPaymentList = /*#__PURE__*/function () {
|
|
|
44
44
|
// }
|
|
45
45
|
|
|
46
46
|
// 非IOS 隐藏苹果支付
|
|
47
|
-
if (!isIOS()) {
|
|
47
|
+
if (!isIOS() && !isSafari()) {
|
|
48
48
|
arr = arr.concat(['mw.apple']);
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -104,7 +104,14 @@ var BookingFormsPreview = function BookingFormsPreview(props) {
|
|
|
104
104
|
});
|
|
105
105
|
return matchedRecord;
|
|
106
106
|
}, [activeTable, relationRecords]);
|
|
107
|
-
if (tableItems.length === 0)
|
|
107
|
+
if (tableItems.length === 0) {
|
|
108
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
style: {
|
|
110
|
+
minWidth: 88,
|
|
111
|
+
textAlign: 'center'
|
|
112
|
+
}
|
|
113
|
+
}, "-");
|
|
114
|
+
}
|
|
108
115
|
var tooltipContent = /*#__PURE__*/React.createElement("div", {
|
|
109
116
|
style: {
|
|
110
117
|
display: 'flex',
|
|
@@ -132,6 +139,9 @@ var BookingFormsPreview = function BookingFormsPreview(props) {
|
|
|
132
139
|
return /*#__PURE__*/React.createElement("div", {
|
|
133
140
|
onClick: function onClick(event) {
|
|
134
141
|
return event.stopPropagation();
|
|
142
|
+
},
|
|
143
|
+
style: {
|
|
144
|
+
minWidth: 88
|
|
135
145
|
}
|
|
136
146
|
}, showAll ? /*#__PURE__*/React.createElement("div", {
|
|
137
147
|
style: {
|
|
@@ -55,7 +55,7 @@ var filterPaymentList = (list, platform = "h5", isApp, amount) => {
|
|
|
55
55
|
if (platform === "h5") {
|
|
56
56
|
arr = arr.concat(["globepay.wechat.qrcode", "globepay.alipay.qrcode"]);
|
|
57
57
|
}
|
|
58
|
-
if (!(0, import_utils2.isIOS)()) {
|
|
58
|
+
if (!(0, import_utils2.isIOS)() && !(0, import_utils2.isSafari)()) {
|
|
59
59
|
arr = arr.concat(["mw.apple"]);
|
|
60
60
|
}
|
|
61
61
|
if ((0, import_utils2.isIOS)() && isApp) {
|
|
@@ -42,7 +42,7 @@ var getPaymentList = async (values) => {
|
|
|
42
42
|
if (!(0, import_utils2.isWx)()) {
|
|
43
43
|
arr = arr.concat(["globepay.wechat.jsapi", "superpay.wechat.h5"]);
|
|
44
44
|
}
|
|
45
|
-
if (!(0, import_utils2.isIOS)()) {
|
|
45
|
+
if (!(0, import_utils2.isIOS)() && !(0, import_utils2.isSafari)()) {
|
|
46
46
|
arr = arr.concat(["mw.apple"]);
|
|
47
47
|
}
|
|
48
48
|
paymentList = paymentList.filter((d) => !arr.includes(d.service));
|
|
@@ -120,7 +120,9 @@ var BookingFormsPreview = (props) => {
|
|
|
120
120
|
);
|
|
121
121
|
return matchedRecord;
|
|
122
122
|
}, [activeTable, relationRecords]);
|
|
123
|
-
if (tableItems.length === 0)
|
|
123
|
+
if (tableItems.length === 0) {
|
|
124
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { minWidth: 88, textAlign: "center" } }, "-");
|
|
125
|
+
}
|
|
124
126
|
const tooltipContent = /* @__PURE__ */ import_react.default.createElement(
|
|
125
127
|
"div",
|
|
126
128
|
{
|
|
@@ -156,7 +158,8 @@ var BookingFormsPreview = (props) => {
|
|
|
156
158
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
157
159
|
"div",
|
|
158
160
|
{
|
|
159
|
-
onClick: (event) => event.stopPropagation()
|
|
161
|
+
onClick: (event) => event.stopPropagation(),
|
|
162
|
+
style: { minWidth: 88 }
|
|
160
163
|
},
|
|
161
164
|
showAll ? /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", flexDirection: "column" } }, displayItems.map((item, idx) => /* @__PURE__ */ import_react.default.createElement(
|
|
162
165
|
"div",
|
|
@@ -9,7 +9,7 @@ const EcoCustomerListMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/private-materials",
|
|
12
|
-
"version": "
|
|
12
|
+
"version": "3.4.86",
|
|
13
13
|
"exportName": "EcoCustomerList",
|
|
14
14
|
"main": "src/index.ts",
|
|
15
15
|
"destructuring": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.87",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"react-infinite-scroll-component": "^6.1.0",
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
|
-
"@pisell/
|
|
79
|
+
"@pisell/utils": "3.0.2",
|
|
80
80
|
"@pisell/icon": "0.0.11",
|
|
81
|
-
"@pisell/
|
|
82
|
-
"@pisell/
|
|
81
|
+
"@pisell/date-picker": "3.0.4",
|
|
82
|
+
"@pisell/materials": "3.3.88"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|