@pisell/private-materials 6.3.153 → 6.3.154
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.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/eventBooking/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/venueBooking/index.js +10 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/orderList/components/HandleActions.d.ts +0 -1
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/es/plus/orderList/components/Reset.d.ts +0 -1
- package/es/plus/orderList/components/Toolbar.d.ts +0 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +4 -0
- package/es/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +1 -1
- package/es/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.less +5 -1
- package/es/plus/saasDevice/deviceProfile/index.js +4 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passList/index.js +1 -2
- package/es/pro/Login2.0/Login2.js +60 -60
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/eventBooking/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/venueBooking/index.js +9 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/lib/plus/orderList/components/Reset.d.ts +0 -1
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
- package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.js +4 -0
- package/lib/plus/saasDevice/devicePlanning/components/DeviceTable/index.less +1 -1
- package/lib/plus/saasDevice/deviceProfile/components/TwoColumnPageLayout/index.less +5 -1
- package/lib/plus/saasDevice/deviceProfile/index.js +4 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passList/index.js +0 -1
- package/lib/pro/Login2.0/Login2.js +50 -50
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/package.json +1 -1
|
@@ -30,11 +30,15 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&-content {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
33
35
|
background: #fff;
|
|
34
36
|
border-radius: 12px;
|
|
35
37
|
padding: 16px;
|
|
36
38
|
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
|
|
37
39
|
height: 100%;
|
|
38
|
-
|
|
40
|
+
min-width: 0;
|
|
41
|
+
min-height: 0;
|
|
42
|
+
overflow: hidden;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
@@ -492,6 +492,10 @@ var SaasDeviceProfile = function SaasDeviceProfile(_ref) {
|
|
|
492
492
|
loading: detailRequest.loading || profileRequest.loading,
|
|
493
493
|
filter: filterConfig,
|
|
494
494
|
onValuesChange: handleValuesChange,
|
|
495
|
+
scroll: {
|
|
496
|
+
autoCalc: true,
|
|
497
|
+
scrollToFirstRowOnChange: true
|
|
498
|
+
},
|
|
495
499
|
pagination: {
|
|
496
500
|
localPagination: false,
|
|
497
501
|
current: page,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_available_status", "unified_messages", "holder"
|
|
1
|
+
var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_available_status", "unified_messages", "holder"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -72,7 +72,6 @@ var PassList = function PassList(props) {
|
|
|
72
72
|
_item$unified_message = item.unified_messages,
|
|
73
73
|
unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
|
|
74
74
|
holder = item.holder,
|
|
75
|
-
metadata = item.metadata,
|
|
76
75
|
rest = _objectWithoutProperties(item, _excluded);
|
|
77
76
|
// 用于选中状态和变更回调的值(支持自定义属性名)
|
|
78
77
|
var itemValue = item === null || item === void 0 ? void 0 : item[valuePropName];
|
|
@@ -1218,66 +1218,6 @@ var Login2 = function Login2(_ref) {
|
|
|
1218
1218
|
trailing: false
|
|
1219
1219
|
}),
|
|
1220
1220
|
handleGuestLogin = _useDebounceFn4.run;
|
|
1221
|
-
var oauthProviders = useMemo(function () {
|
|
1222
|
-
return loginMethods.filter(function (method) {
|
|
1223
|
-
return ['google', 'facebook', 'apple', 'guest'].includes(method.type);
|
|
1224
|
-
}).map(function (method) {
|
|
1225
|
-
var isLast = isLastLoginMethod(method.type);
|
|
1226
|
-
var commonConfig = {
|
|
1227
|
-
className: classNames('login2-oauth-button', method.type, {
|
|
1228
|
-
'has-last-login-badge': isLast
|
|
1229
|
-
}),
|
|
1230
|
-
badge: isLast ? locales.getText('pisell-login2-last-login-badge') : undefined,
|
|
1231
|
-
badgeClassName: 'last-login-badge'
|
|
1232
|
-
};
|
|
1233
|
-
switch (method.type) {
|
|
1234
|
-
case 'google':
|
|
1235
|
-
return _objectSpread({
|
|
1236
|
-
key: 'google',
|
|
1237
|
-
label: /*#__PURE__*/React.createElement("span", null, locales.getText('pisell-login2-continue-with'), " Google"),
|
|
1238
|
-
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1239
|
-
type: "pisell2-google"
|
|
1240
|
-
}),
|
|
1241
|
-
onClick: function onClick() {
|
|
1242
|
-
return handleOAuthClick('google');
|
|
1243
|
-
}
|
|
1244
|
-
}, commonConfig);
|
|
1245
|
-
case 'facebook':
|
|
1246
|
-
return _objectSpread({
|
|
1247
|
-
key: 'facebook',
|
|
1248
|
-
label: /*#__PURE__*/React.createElement("span", null, locales.getText('pisell-login2-continue-with'), " Facebook"),
|
|
1249
|
-
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1250
|
-
type: "pisell2-facebook"
|
|
1251
|
-
}),
|
|
1252
|
-
onClick: function onClick() {
|
|
1253
|
-
return handleOAuthClick('facebook');
|
|
1254
|
-
}
|
|
1255
|
-
}, commonConfig);
|
|
1256
|
-
case 'apple':
|
|
1257
|
-
return _objectSpread({
|
|
1258
|
-
key: 'apple',
|
|
1259
|
-
label: /*#__PURE__*/React.createElement("span", null, locales.getText('pisell-login2-continue-with'), " Apple"),
|
|
1260
|
-
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1261
|
-
type: "pisell2-apple"
|
|
1262
|
-
}),
|
|
1263
|
-
onClick: function onClick() {
|
|
1264
|
-
return handleOAuthClick('apple');
|
|
1265
|
-
}
|
|
1266
|
-
}, commonConfig);
|
|
1267
|
-
case 'guest':
|
|
1268
|
-
return _objectSpread({
|
|
1269
|
-
key: 'guest',
|
|
1270
|
-
label: locales.getText('pisell-login2-login-as-guest'),
|
|
1271
|
-
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1272
|
-
type: "pisell2-user-01"
|
|
1273
|
-
}),
|
|
1274
|
-
onClick: handleGuestLogin
|
|
1275
|
-
}, commonConfig);
|
|
1276
|
-
default:
|
|
1277
|
-
return null;
|
|
1278
|
-
}
|
|
1279
|
-
}).filter(Boolean);
|
|
1280
|
-
}, [handleGuestLogin, handleOAuthClick, isLastLoginMethod, loginMethods]);
|
|
1281
1221
|
|
|
1282
1222
|
// 处理登录
|
|
1283
1223
|
var handleLoginInternal = /*#__PURE__*/function () {
|
|
@@ -1548,6 +1488,66 @@ var Login2 = function Login2(_ref) {
|
|
|
1548
1488
|
trailing: false
|
|
1549
1489
|
}),
|
|
1550
1490
|
handleOAuthClick = _useDebounceFn6.run;
|
|
1491
|
+
var oauthProviders = useMemo(function () {
|
|
1492
|
+
return loginMethods.filter(function (method) {
|
|
1493
|
+
return ['google', 'facebook', 'apple', 'guest'].includes(method.type);
|
|
1494
|
+
}).map(function (method) {
|
|
1495
|
+
var isLast = isLastLoginMethod(method.type);
|
|
1496
|
+
var commonConfig = {
|
|
1497
|
+
className: classNames('login2-oauth-button', method.type, {
|
|
1498
|
+
'has-last-login-badge': isLast
|
|
1499
|
+
}),
|
|
1500
|
+
badge: isLast ? locales.getText('pisell-login2-last-login-badge') : undefined,
|
|
1501
|
+
badgeClassName: 'last-login-badge'
|
|
1502
|
+
};
|
|
1503
|
+
switch (method.type) {
|
|
1504
|
+
case 'google':
|
|
1505
|
+
return _objectSpread({
|
|
1506
|
+
key: 'google',
|
|
1507
|
+
label: /*#__PURE__*/React.createElement("span", null, locales.getText('pisell-login2-continue-with'), " Google"),
|
|
1508
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1509
|
+
type: "pisell2-google"
|
|
1510
|
+
}),
|
|
1511
|
+
onClick: function onClick() {
|
|
1512
|
+
return handleOAuthClick('google');
|
|
1513
|
+
}
|
|
1514
|
+
}, commonConfig);
|
|
1515
|
+
case 'facebook':
|
|
1516
|
+
return _objectSpread({
|
|
1517
|
+
key: 'facebook',
|
|
1518
|
+
label: /*#__PURE__*/React.createElement("span", null, locales.getText('pisell-login2-continue-with'), " Facebook"),
|
|
1519
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1520
|
+
type: "pisell2-facebook"
|
|
1521
|
+
}),
|
|
1522
|
+
onClick: function onClick() {
|
|
1523
|
+
return handleOAuthClick('facebook');
|
|
1524
|
+
}
|
|
1525
|
+
}, commonConfig);
|
|
1526
|
+
case 'apple':
|
|
1527
|
+
return _objectSpread({
|
|
1528
|
+
key: 'apple',
|
|
1529
|
+
label: /*#__PURE__*/React.createElement("span", null, locales.getText('pisell-login2-continue-with'), " Apple"),
|
|
1530
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1531
|
+
type: "pisell2-apple"
|
|
1532
|
+
}),
|
|
1533
|
+
onClick: function onClick() {
|
|
1534
|
+
return handleOAuthClick('apple');
|
|
1535
|
+
}
|
|
1536
|
+
}, commonConfig);
|
|
1537
|
+
case 'guest':
|
|
1538
|
+
return _objectSpread({
|
|
1539
|
+
key: 'guest',
|
|
1540
|
+
label: locales.getText('pisell-login2-login-as-guest'),
|
|
1541
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
1542
|
+
type: "pisell2-user-01"
|
|
1543
|
+
}),
|
|
1544
|
+
onClick: handleGuestLogin
|
|
1545
|
+
}, commonConfig);
|
|
1546
|
+
default:
|
|
1547
|
+
return null;
|
|
1548
|
+
}
|
|
1549
|
+
}).filter(Boolean);
|
|
1550
|
+
}, [handleGuestLogin, handleOAuthClick, isLastLoginMethod, loginMethods]);
|
|
1551
1551
|
|
|
1552
1552
|
// 渲染主登录表单
|
|
1553
1553
|
var renderMainLoginForm = function renderMainLoginForm() {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
5
|
* 包括如何通过 Context 访问父组件配置
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const BasicExample: () => JSX.Element;
|
|
9
8
|
export declare const ChildrenExample: () => JSX.Element;
|
|
10
9
|
export declare const CustomItemExample: () => JSX.Element;
|
|
@@ -166,10 +166,10 @@ export declare const getProductTotalPrice: (item: any) => number;
|
|
|
166
166
|
export declare const getDuration: (duration: number | {
|
|
167
167
|
type: string;
|
|
168
168
|
value: number;
|
|
169
|
-
}) => number |
|
|
169
|
+
}) => number | {
|
|
170
170
|
type: string;
|
|
171
171
|
value: number;
|
|
172
|
-
};
|
|
172
|
+
} | "flexible";
|
|
173
173
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
174
174
|
export declare const getIsEdit: (state: any) => boolean;
|
|
175
175
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PosProps, RouteType } from './const';
|
|
2
3
|
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
3
4
|
action: RouteType;
|
|
@@ -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" | "
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -299,7 +299,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
299
299
|
amount?: string | number | undefined;
|
|
300
300
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
301
301
|
order_id?: string | number | undefined;
|
|
302
|
-
eftpos?: "stripe" | "
|
|
302
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
303
303
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
304
304
|
key?: number | undefined;
|
|
305
305
|
step?: number | undefined;
|