@pisell/private-materials 6.3.107 → 6.3.109
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/meta.js +2 -2
- 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 +1 -1
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useClearCart.d.ts +1 -1
- package/es/components/booking/hooks/useClearCart.js +39 -9
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/index.less +4 -2
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/locales.d.ts +20 -0
- package/es/components/booking/locales.js +20 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +142 -165
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/es/components/pay/toC/index.js +31 -65
- package/es/components/pay/toC/model.d.ts +1 -10
- package/es/components/pay/toC/serve.d.ts +0 -18
- package/es/components/pay/toC/serve.js +1 -29
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +0 -4
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/index.less +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/es/components/shoppingCart/hooks/useClearCart.js +41 -11
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +13 -5
- package/es/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/es/plus/walletPassGallery/locales.d.ts +10 -0
- package/es/plus/walletPassGallery/locales.js +26 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -1
- package/lib/components/booking/hooks/useClearCart.js +28 -6
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/index.less +4 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/locales.d.ts +20 -0
- package/lib/components/booking/locales.js +20 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -5
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +100 -90
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +1 -3
- package/lib/components/pay/toC/index.js +19 -52
- package/lib/components/pay/toC/model.d.ts +1 -10
- package/lib/components/pay/toC/serve.d.ts +0 -18
- package/lib/components/pay/toC/serve.js +0 -6
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +0 -4
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/index.less +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/lib/components/shoppingCart/hooks/useClearCart.js +42 -11
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -5
- package/lib/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/lib/plus/walletPassGallery/locales.d.ts +10 -0
- package/lib/plus/walletPassGallery/locales.js +20 -5
- package/lowcode/eco-cup-list/meta.ts +20 -56
- package/lowcode/eco-customer-list/meta.ts +20 -56
- package/package.json +2 -2
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -2,29 +2,59 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
4
|
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); }
|
|
5
|
-
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
+
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."); }
|
|
7
|
+
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); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
import React, { useMemo, useState, useCallback } from 'react';
|
|
6
12
|
import classNames from 'classnames';
|
|
7
|
-
import { Iconfont } from '@pisell/materials';
|
|
13
|
+
import { Iconfont, PisellModal } from '@pisell/materials';
|
|
8
14
|
import { locales } from "@pisell/utils";
|
|
9
15
|
var useClearCart = function useClearCart(state, dispatch) {
|
|
10
16
|
var _state$service3;
|
|
11
|
-
var
|
|
12
|
-
|
|
17
|
+
var _useState = useState(false),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
open = _useState2[0],
|
|
20
|
+
setOpen = _useState2[1];
|
|
21
|
+
var handleOpenModal = useCallback(function () {
|
|
22
|
+
setOpen(true);
|
|
23
|
+
}, []);
|
|
24
|
+
var handleConfirm = useCallback(function () {
|
|
13
25
|
dispatch({
|
|
14
26
|
type: 'setService',
|
|
15
27
|
payload: {
|
|
16
28
|
value: []
|
|
17
29
|
}
|
|
18
30
|
});
|
|
19
|
-
|
|
31
|
+
setOpen(false);
|
|
32
|
+
}, []);
|
|
33
|
+
var handleCancel = useCallback(function () {
|
|
34
|
+
setOpen(false);
|
|
35
|
+
}, []);
|
|
20
36
|
return useMemo(function () {
|
|
21
37
|
var _state$service, _state$service2;
|
|
22
|
-
|
|
38
|
+
var showClearBtn = !!((_state$service = state.service) !== null && _state$service !== void 0 && (_state$service = _state$service.value) !== null && _state$service !== void 0 && _state$service.length) && !state.channelDisabledEdit;
|
|
39
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, showClearBtn && /*#__PURE__*/React.createElement("span", {
|
|
23
40
|
className: classNames('pisell-lowcode__booking-service-clear-btn', _defineProperty({}, 'pisell-lowcode__booking-service-clear-btn-disabled', !((_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length))),
|
|
24
|
-
onClick:
|
|
41
|
+
onClick: handleOpenModal
|
|
25
42
|
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
26
43
|
type: "pisell2-trash-01"
|
|
27
|
-
}), " ", /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart')))
|
|
28
|
-
|
|
44
|
+
}), " ", /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart'))), /*#__PURE__*/React.createElement(PisellModal, {
|
|
45
|
+
open: open,
|
|
46
|
+
platform: "pc",
|
|
47
|
+
title: locales.getText('pisell2.booking.info.text.clear-cart-modal.title'),
|
|
48
|
+
onOk: handleConfirm,
|
|
49
|
+
onCancel: handleCancel,
|
|
50
|
+
okText: locales.getText('pisell2.booking.info.text.clear-cart-modal.confirm'),
|
|
51
|
+
cancelText: locales.getText('pisell2.booking.info.text.clear-cart-modal.cancel'),
|
|
52
|
+
destroyOnClose: true
|
|
53
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
+
style: {
|
|
55
|
+
margin: '24px 0'
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.booking.info.text.clear-cart-modal.content')))));
|
|
58
|
+
}, [(_state$service3 = state.service) === null || _state$service3 === void 0 || (_state$service3 = _state$service3.value) === null || _state$service3 === void 0 ? void 0 : _state$service3.length, state.channelDisabledEdit, open]);
|
|
29
59
|
};
|
|
30
60
|
export default useClearCart;
|
|
@@ -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:
|
|
8
|
-
state: FormState;
|
|
9
|
-
} & {
|
|
10
|
-
dispatch: (params: {
|
|
11
|
-
type: string;
|
|
12
|
-
payload: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}>;
|
|
5
|
+
export declare const Provider: any, Context: any;
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
line-height: 24px; /* 150% */
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
|
-
margin-bottom:
|
|
12
|
-
padding: 12px 0;
|
|
11
|
+
margin-bottom: 16px !important;
|
|
12
|
+
// padding: 12px 0;
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
width: max-content;
|
|
13
15
|
.anticon {
|
|
14
16
|
font-size: 18px;
|
|
15
17
|
margin-right: 6px;
|
|
@@ -227,6 +227,10 @@ declare const _default: {
|
|
|
227
227
|
'pisell2.booking.dashboard.default': string;
|
|
228
228
|
'pisell2.booking.info.text.clear-cart': string;
|
|
229
229
|
'pisell2.booking.info.text.clear-all': string;
|
|
230
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
231
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
232
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
233
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
230
234
|
'pisell2.booking.info.text.create-new': string;
|
|
231
235
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
232
236
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -508,6 +512,10 @@ declare const _default: {
|
|
|
508
512
|
'pisell2.booking.dashboard.default': string;
|
|
509
513
|
'pisell2.booking.info.text.clear-cart': string;
|
|
510
514
|
'pisell2.booking.info.text.clear-all': string;
|
|
515
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
516
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
517
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
518
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
511
519
|
'pisell2.booking.info.text.create-new': string;
|
|
512
520
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
513
521
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -789,6 +797,10 @@ declare const _default: {
|
|
|
789
797
|
'pisell2.booking.dashboard.default': string;
|
|
790
798
|
'pisell2.booking.info.text.clear-cart': string;
|
|
791
799
|
'pisell2.booking.info.text.clear-all': string;
|
|
800
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
801
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
802
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
803
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
792
804
|
'pisell2.booking.info.text.create-new': string;
|
|
793
805
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
794
806
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
@@ -1076,6 +1088,10 @@ declare const _default: {
|
|
|
1076
1088
|
'pisell2.booking.info.text.clear': string;
|
|
1077
1089
|
'pisell2.booking.info.text.clear-cart': string;
|
|
1078
1090
|
'pisell2.booking.info.text.clear-all': string;
|
|
1091
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
1092
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
1093
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
1094
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
1079
1095
|
'pisell2.booking.info.text.add-holder': string;
|
|
1080
1096
|
'pisell2.booking.info.text.select-holder-title': string;
|
|
1081
1097
|
'pisell2.booking.info.text.create-new': string;
|
|
@@ -1390,6 +1406,10 @@ declare const _default: {
|
|
|
1390
1406
|
'pisell2.booking.info.text.clear': string;
|
|
1391
1407
|
'pisell2.booking.info.text.clear-cart': string;
|
|
1392
1408
|
'pisell2.booking.info.text.clear-all': string;
|
|
1409
|
+
'pisell2.booking.info.text.clear-cart-modal.title': string;
|
|
1410
|
+
'pisell2.booking.info.text.clear-cart-modal.content': string;
|
|
1411
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': string;
|
|
1412
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': string;
|
|
1393
1413
|
'pisell2.booking.info.text.add-holder': string;
|
|
1394
1414
|
'pisell2.booking.info.text.select-holder-title': string;
|
|
1395
1415
|
'pisell2.booking.info.text.create-new': string;
|
|
@@ -264,6 +264,10 @@ export default {
|
|
|
264
264
|
'pisell2.booking.dashboard.default': "Default",
|
|
265
265
|
'pisell2.booking.info.text.clear-cart': "Clear cart",
|
|
266
266
|
'pisell2.booking.info.text.clear-all': "Clear all",
|
|
267
|
+
'pisell2.booking.info.text.clear-cart-modal.title': 'Clear Cart',
|
|
268
|
+
'pisell2.booking.info.text.clear-cart-modal.content': 'This will remove all items from the cart and cannot be undone. Continue?',
|
|
269
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': 'Clear All',
|
|
270
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': 'Cancel',
|
|
267
271
|
'pisell2.booking.info.text.create-new': "Create new",
|
|
268
272
|
'pisell2.booking.info.text.form-agreement-yes': "Yes",
|
|
269
273
|
'pisell2.booking.info.text.form-agreement-no': "No",
|
|
@@ -595,6 +599,10 @@ export default {
|
|
|
595
599
|
'pisell2.booking.dashboard.default': "默认",
|
|
596
600
|
'pisell2.booking.info.text.clear-cart': "清空购物车",
|
|
597
601
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
602
|
+
'pisell2.booking.info.text.clear-cart-modal.title': '清空购物车',
|
|
603
|
+
'pisell2.booking.info.text.clear-cart-modal.content': '此操作将移除购物车中的所有商品,且无法恢复,是否继续?',
|
|
604
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': '确认清空',
|
|
605
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': '取消',
|
|
598
606
|
'pisell2.booking.info.text.create-new': "新建",
|
|
599
607
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
600
608
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -926,6 +934,10 @@ export default {
|
|
|
926
934
|
'pisell2.booking.dashboard.default': "默认",
|
|
927
935
|
'pisell2.booking.info.text.clear-cart': "清空購物車",
|
|
928
936
|
'pisell2.booking.info.text.clear-all': "清空",
|
|
937
|
+
'pisell2.booking.info.text.clear-cart-modal.title': '清空購物車',
|
|
938
|
+
'pisell2.booking.info.text.clear-cart-modal.content': '此操作將移除購物車中的所有商品,且無法恢復,是否繼續?',
|
|
939
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': '確認清空',
|
|
940
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': '取消',
|
|
929
941
|
'pisell2.booking.info.text.create-new': "新建",
|
|
930
942
|
'pisell2.booking.info.text.form-agreement-yes': "是",
|
|
931
943
|
'pisell2.booking.info.text.form-agreement-no': "否",
|
|
@@ -1259,6 +1271,10 @@ export default {
|
|
|
1259
1271
|
'pisell2.booking.info.text.clear': "クリア",
|
|
1260
1272
|
'pisell2.booking.info.text.clear-cart': "カートをクリア",
|
|
1261
1273
|
'pisell2.booking.info.text.clear-all': "すべてクリア",
|
|
1274
|
+
'pisell2.booking.info.text.clear-cart-modal.title': 'カートを空にする',
|
|
1275
|
+
'pisell2.booking.info.text.clear-cart-modal.content': 'この操作によりカート内のすべての商品が削除され、元に戻せません。続行しますか?',
|
|
1276
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': 'すべて削除',
|
|
1277
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': 'キャンセル',
|
|
1262
1278
|
'pisell2.booking.info.text.add-holder': "選択",
|
|
1263
1279
|
'pisell2.booking.info.text.select-holder-title': "このイベントを誰のために予約しますか?",
|
|
1264
1280
|
'pisell2.booking.info.text.create-new': "新規作成",
|
|
@@ -1620,6 +1636,10 @@ export default {
|
|
|
1620
1636
|
'pisell2.booking.info.text.clear': "Limpar",
|
|
1621
1637
|
'pisell2.booking.info.text.clear-cart': "Limpar carrinho",
|
|
1622
1638
|
'pisell2.booking.info.text.clear-all': "Limpar tudo",
|
|
1639
|
+
'pisell2.booking.info.text.clear-cart-modal.title': 'Esvaziar carrinho',
|
|
1640
|
+
'pisell2.booking.info.text.clear-cart-modal.content': 'Esta ação irá remover todos os itens do carrinho e não pode ser desfeita. Deseja continuar?',
|
|
1641
|
+
'pisell2.booking.info.text.clear-cart-modal.confirm': 'Esvaziar tudo',
|
|
1642
|
+
'pisell2.booking.info.text.clear-cart-modal.cancel': 'Cancelar',
|
|
1623
1643
|
'pisell2.booking.info.text.add-holder': "Selecionar",
|
|
1624
1644
|
'pisell2.booking.info.text.select-holder-title': "Para quem você gostaria de reservar este evento?",
|
|
1625
1645
|
'pisell2.booking.info.text.create-new': "Criar novo",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -110,11 +109,4 @@ export declare const walkInData: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
nickname: string;
|
|
112
111
|
};
|
|
113
|
-
export declare const Provider:
|
|
114
|
-
state: FormState;
|
|
115
|
-
} & {
|
|
116
|
-
dispatch: (params: {
|
|
117
|
-
type: string;
|
|
118
|
-
payload: any;
|
|
119
|
-
}) => void;
|
|
120
|
-
}>;
|
|
112
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -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 {};
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "success" | "page" | "
|
|
12
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "success" | "page" | "
|
|
14
|
+
onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
name?: string | undefined;
|
|
298
298
|
symbol?: string | undefined;
|
|
299
299
|
amount?: string | number | undefined;
|
|
300
|
-
mode?: "
|
|
300
|
+
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
301
301
|
order_id?: string | number | undefined;
|
|
302
302
|
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
303
303
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
@@ -15,16 +15,11 @@ export interface WalletPassProps {
|
|
|
15
15
|
walletPass: {
|
|
16
16
|
cards: WalletPassDataType[];
|
|
17
17
|
amount: number;
|
|
18
|
-
recommended?: WalletPassDataType[];
|
|
19
|
-
transformList?: WalletPassDataType[];
|
|
20
|
-
noApplicableVoucher?: WalletPassDataType[];
|
|
21
18
|
};
|
|
22
19
|
walletSetting: {
|
|
23
20
|
name: string;
|
|
24
21
|
popup_status: 0 | 1;
|
|
25
22
|
};
|
|
26
|
-
orderDetail: any;
|
|
27
|
-
total_amount: number;
|
|
28
23
|
}
|
|
29
24
|
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<WalletPassProps & React.RefAttributes<WalletPassRef>>>;
|
|
30
25
|
export default _default;
|