@pisell/private-materials 3.4.82 → 3.4.84

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 (156) 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 +2 -2
  6. package/build/lowcode/preview.js +152 -152
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +18 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +18 -10
  11. package/es/components/booking/info/header/index.js +7 -7
  12. package/es/components/booking/info/header/index.less +5 -5
  13. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  14. package/es/components/booking/notes/NoteBlock/index.js +3 -2
  15. package/es/components/booking/utils.d.ts +2 -2
  16. package/es/components/eftposPay/amount.d.ts +1 -1
  17. package/es/components/eftposPay/device.d.ts +1 -1
  18. package/es/components/eftposPay/hooks.d.ts +2 -2
  19. package/es/components/eftposPay/store/index.d.ts +6 -6
  20. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  21. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  22. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  23. package/es/index.d.ts +4 -2
  24. package/es/index.js +3 -1
  25. package/es/plus/contactInfo/components/SwipeAction/index.js +1 -1
  26. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  27. package/es/plus/orderList/components/HandleActions.js +5 -2
  28. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  29. package/es/plus/orderList/components/Toolbar.js +4 -2
  30. package/es/plus/orderList/index.d.ts +1 -0
  31. package/es/plus/orderList/index.js +7 -2
  32. package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +5 -0
  33. package/es/plus/pisellSalesGrid/PisellSalesGrid.js +363 -0
  34. package/es/plus/pisellSalesGrid/PisellSalesGrid.less +16 -0
  35. package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +14 -0
  36. package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.js +559 -0
  37. package/es/plus/pisellSalesGrid/hooks/useActions.d.ts +19 -0
  38. package/es/plus/pisellSalesGrid/hooks/useActions.js +723 -0
  39. package/es/plus/pisellSalesGrid/index.d.ts +4 -0
  40. package/es/plus/pisellSalesGrid/index.js +3 -0
  41. package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
  42. package/es/plus/pisellSalesGrid/locales.js +8 -0
  43. package/es/plus/pisellSalesGrid/serve.d.ts +19 -0
  44. package/es/plus/pisellSalesGrid/serve.js +151 -0
  45. package/es/plus/pisellSalesGrid/types.d.ts +170 -0
  46. package/es/plus/pisellSalesGrid/types.js +1 -0
  47. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +15 -0
  48. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +211 -0
  49. package/es/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +19 -0
  50. package/es/plus/pisellSalesManagement/components/BookingNotesPreview.js +167 -0
  51. package/es/plus/pisellSalesManagement/components/ResourceSelector.d.ts +9 -0
  52. package/es/plus/pisellSalesManagement/components/ResourceSelector.js +102 -0
  53. package/es/plus/pisellSalesManagement/config/booking.d.ts +186 -0
  54. package/es/plus/pisellSalesManagement/config/booking.js +380 -0
  55. package/es/plus/pisellSalesManagement/config/index.d.ts +2 -0
  56. package/es/plus/pisellSalesManagement/config/index.js +11 -0
  57. package/es/plus/pisellSalesManagement/config/order.d.ts +172 -0
  58. package/es/plus/pisellSalesManagement/config/order.js +460 -0
  59. package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
  60. package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.js +66 -0
  61. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +2 -0
  62. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +651 -0
  63. package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +2 -0
  64. package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.js +656 -0
  65. package/es/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +5 -0
  66. package/es/plus/pisellSalesManagement/hooks/usePerspectives.js +12 -0
  67. package/es/plus/pisellSalesManagement/index.d.ts +10 -0
  68. package/es/plus/pisellSalesManagement/index.js +84 -0
  69. package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
  70. package/es/plus/pisellSalesManagement/locales.js +302 -0
  71. package/es/plus/pisellSalesManagement/serve.d.ts +26 -0
  72. package/es/plus/pisellSalesManagement/serve.js +222 -0
  73. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  74. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  75. package/es/plus/walletPassGallery/components/passDetail/index.js +2 -26
  76. package/es/plus/walletPassGallery/components/passList/index.js +12 -4
  77. package/es/plus/walletPassGallery/index.js +5 -35
  78. package/es/pro/Login2.0/Login2.js +8 -8
  79. package/es/pro/Login2.0/locales.d.ts +5 -0
  80. package/es/pro/Login2.0/locales.js +5 -0
  81. package/es/pro/Selector/Selector.d.ts +1 -1
  82. package/lib/components/booking/info/header/index.js +7 -7
  83. package/lib/components/booking/info/header/index.less +5 -5
  84. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  85. package/lib/components/booking/notes/NoteBlock/index.js +2 -1
  86. package/lib/components/booking/utils.d.ts +2 -2
  87. package/lib/components/eftposPay/amount.d.ts +1 -1
  88. package/lib/components/eftposPay/device.d.ts +1 -1
  89. package/lib/components/eftposPay/hooks.d.ts +2 -2
  90. package/lib/components/eftposPay/store/index.d.ts +6 -6
  91. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  92. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  93. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  94. package/lib/index.d.ts +4 -2
  95. package/lib/index.js +8 -2
  96. package/lib/plus/contactInfo/components/SwipeAction/index.js +23 -23
  97. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  98. package/lib/plus/orderList/components/HandleActions.js +2 -2
  99. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  100. package/lib/plus/orderList/components/Toolbar.js +2 -2
  101. package/lib/plus/orderList/index.d.ts +1 -0
  102. package/lib/plus/orderList/index.js +3 -3
  103. package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +5 -0
  104. package/lib/plus/pisellSalesGrid/PisellSalesGrid.js +339 -0
  105. package/lib/plus/pisellSalesGrid/PisellSalesGrid.less +16 -0
  106. package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +14 -0
  107. package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.js +455 -0
  108. package/lib/plus/pisellSalesGrid/hooks/useActions.d.ts +19 -0
  109. package/lib/plus/pisellSalesGrid/hooks/useActions.js +545 -0
  110. package/lib/plus/pisellSalesGrid/index.d.ts +4 -0
  111. package/lib/plus/pisellSalesGrid/index.js +42 -0
  112. package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
  113. package/lib/plus/pisellSalesGrid/locales.js +29 -0
  114. package/lib/plus/pisellSalesGrid/serve.d.ts +19 -0
  115. package/lib/plus/pisellSalesGrid/serve.js +142 -0
  116. package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
  117. package/lib/plus/pisellSalesGrid/types.js +17 -0
  118. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +15 -0
  119. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +250 -0
  120. package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +19 -0
  121. package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.js +193 -0
  122. package/lib/plus/pisellSalesManagement/components/ResourceSelector.d.ts +9 -0
  123. package/lib/plus/pisellSalesManagement/components/ResourceSelector.js +106 -0
  124. package/lib/plus/pisellSalesManagement/config/booking.d.ts +186 -0
  125. package/lib/plus/pisellSalesManagement/config/booking.js +500 -0
  126. package/lib/plus/pisellSalesManagement/config/index.d.ts +2 -0
  127. package/lib/plus/pisellSalesManagement/config/index.js +43 -0
  128. package/lib/plus/pisellSalesManagement/config/order.d.ts +172 -0
  129. package/lib/plus/pisellSalesManagement/config/order.js +492 -0
  130. package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
  131. package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.js +113 -0
  132. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +2 -0
  133. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +699 -0
  134. package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +2 -0
  135. package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.js +700 -0
  136. package/lib/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +5 -0
  137. package/lib/plus/pisellSalesManagement/hooks/usePerspectives.js +42 -0
  138. package/lib/plus/pisellSalesManagement/index.d.ts +10 -0
  139. package/lib/plus/pisellSalesManagement/index.js +113 -0
  140. package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
  141. package/lib/plus/pisellSalesManagement/locales.js +326 -0
  142. package/lib/plus/pisellSalesManagement/serve.d.ts +26 -0
  143. package/lib/plus/pisellSalesManagement/serve.js +120 -0
  144. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  145. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  146. package/lib/plus/walletPassGallery/components/passDetail/index.js +1 -16
  147. package/lib/plus/walletPassGallery/components/passList/index.js +12 -5
  148. package/lib/plus/walletPassGallery/index.js +4 -32
  149. package/lib/pro/Login2.0/Login2.js +8 -8
  150. package/lib/pro/Login2.0/locales.d.ts +5 -0
  151. package/lib/pro/Login2.0/locales.js +5 -0
  152. package/lib/pro/Selector/Selector.d.ts +1 -1
  153. package/lowcode/eco-cup-list/meta.ts +1 -1
  154. package/lowcode/eco-customer-list/meta.ts +1 -1
  155. package/lowcode/pisell-sales-management/meta.ts +88 -0
  156. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- var _excluded = ["id", "tag", "product_title", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "par_value", "unified_messages", "holder", "metadata"];
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", "metadata"];
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; }
@@ -6,7 +6,9 @@ import React from 'react';
6
6
  import { Button, List } from 'antd';
7
7
  import { PisellWalletPassCard } from '@pisell/materials';
8
8
  import { locales } from '@pisell/utils';
9
+ import useEngineContext from "../../../../hooks/useEngineContext";
9
10
  var PassList = function PassList(props) {
11
+ var _context$appHelper;
10
12
  var _props$dataSource = props.dataSource,
11
13
  dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
12
14
  value = props.value,
@@ -17,6 +19,11 @@ var PassList = function PassList(props) {
17
19
  onLoadMore = props.onLoadMore,
18
20
  loading = props.loading,
19
21
  onEditHolder = props.onEditHolder;
22
+ var context = useEngineContext();
23
+ var utils = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {};
24
+ var isTerminal = utils.isTerminal,
25
+ isApp = utils.isApp;
26
+ var isTerminalEnv = (typeof isTerminal === 'function' ? isTerminal() : !!isTerminal) || (isApp === null || isApp === void 0 ? void 0 : isApp());
20
27
  var _loadMore = /*#__PURE__*/React.createElement("div", {
21
28
  style: {
22
29
  textAlign: 'center',
@@ -61,6 +68,7 @@ var PassList = function PassList(props) {
61
68
  product_cover = _item$product_cover === void 0 ? '' : _item$product_cover,
62
69
  _item$par_value = item.par_value,
63
70
  par_value = _item$par_value === void 0 ? '' : _item$par_value,
71
+ unified_available_status = item.unified_available_status,
64
72
  _item$unified_message = item.unified_messages,
65
73
  unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
66
74
  holder = item.holder,
@@ -94,8 +102,8 @@ var PassList = function PassList(props) {
94
102
  showQrCode: true,
95
103
  showBalance: !isDiscountCard,
96
104
  cover: product_cover,
97
- disabled: limit_status !== 'enable',
98
- showDisabledReason: limit_status !== 'enable',
105
+ disabled: unified_available_status === 0,
106
+ showDisabledReason: unified_available_status === 0,
99
107
  disabledReason: disabledReason,
100
108
  style: {
101
109
  marginBottom: 16,
@@ -112,7 +120,7 @@ var PassList = function PassList(props) {
112
120
  code: encoded,
113
121
  validDate: expire_date,
114
122
  holder: holder,
115
- onSetHolder: function onSetHolder() {
123
+ onSetHolder: isTerminalEnv ? undefined : function () {
116
124
  var _holder$metadata;
117
125
  onEditHolder === null || onEditHolder === void 0 || onEditHolder({
118
126
  wallet_pass_detail_id: id,
@@ -1,5 +1,5 @@
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
- var _excluded = ["id", "product_name", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "unified_messages", "par_value", "tag"];
2
+ var _excluded = ["id", "product_name", "balance", "code", "encoded", "expire_date", "shop", "limit_status", "product_cover", "unified_available_status", "unified_messages", "par_value", "tag"];
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; }
5
5
  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); }
@@ -498,34 +498,6 @@ var WalletPassGallery = function WalletPassGallery(props) {
498
498
  console.log('pass not found', passId);
499
499
  }
500
500
  };
501
- var _handleDetailRefresh = function _handleDetailRefresh(passId, patch) {
502
- if (_avaliable.find(function (item) {
503
- return item.id === passId;
504
- })) {
505
- _getAvailableList.mutate(function (data) {
506
- var newList = data.list.map(function (item) {
507
- return item.id === passId ? _objectSpread(_objectSpread({}, item), patch) : item;
508
- });
509
- return _objectSpread(_objectSpread({}, data), {}, {
510
- list: newList
511
- });
512
- });
513
- return;
514
- }
515
- if (_unavailable.find(function (item) {
516
- return item.id === passId;
517
- })) {
518
- _getUnavailableList.mutate(function (data) {
519
- var newList = data.list.map(function (item) {
520
- return item.id === passId ? _objectSpread(_objectSpread({}, item), patch) : item;
521
- });
522
- return _objectSpread(_objectSpread({}, data), {}, {
523
- list: newList
524
- });
525
- });
526
- return;
527
- }
528
- };
529
501
  var _handleBindHolder = /*#__PURE__*/function () {
530
502
  var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(holderId) {
531
503
  var passId, res;
@@ -618,7 +590,6 @@ var WalletPassGallery = function WalletPassGallery(props) {
618
590
  }, /*#__PURE__*/React.createElement(PassDetail, {
619
591
  dataSource: _currentItem,
620
592
  platform: platform,
621
- onDetailRefresh: _handleDetailRefresh,
622
593
  onListRefresh: listReload
623
594
  })));
624
595
  };
@@ -656,7 +627,6 @@ var WalletPassGallery = function WalletPassGallery(props) {
656
627
  }, /*#__PURE__*/React.createElement(PassDetail, {
657
628
  dataSource: _currentItem,
658
629
  platform: platform,
659
- onDetailRefresh: _handleDetailRefresh,
660
630
  onListRefresh: listReload
661
631
  })));
662
632
  };
@@ -722,6 +692,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
722
692
  limit_status = item.limit_status,
723
693
  _item$product_cover = item.product_cover,
724
694
  product_cover = _item$product_cover === void 0 ? '' : _item$product_cover,
695
+ unified_available_status = item.unified_available_status,
725
696
  _item$unified_message = item.unified_messages,
726
697
  unified_messages = _item$unified_message === void 0 ? {} : _item$unified_message,
727
698
  _item$par_value = item.par_value,
@@ -734,7 +705,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
734
705
  var _shop$name = shop.name,
735
706
  name = _shop$name === void 0 ? '' : _shop$name;
736
707
  var isActive = id === (currentUnbindItem === null || currentUnbindItem === void 0 ? void 0 : currentUnbindItem.id) && platform === 'pc';
737
- var isEnabled = limit_status === 'enable';
708
+ var isDisabled = unified_available_status === 0;
738
709
  var isDiscountCard = tag === 'product_discount_card';
739
710
  var getBalanceTitle = function getBalanceTitle() {
740
711
  if (tag === 'point_card') {
@@ -753,8 +724,8 @@ var WalletPassGallery = function WalletPassGallery(props) {
753
724
  showRedeem: false,
754
725
  showQrCode: false,
755
726
  cover: product_cover,
756
- disabled: !isEnabled,
757
- showDisabledReason: !isEnabled,
727
+ disabled: isDisabled,
728
+ showDisabledReason: isDisabled,
758
729
  disabledReason: title,
759
730
  propStyle: {
760
731
  marginBottom: 10
@@ -815,7 +786,6 @@ var WalletPassGallery = function WalletPassGallery(props) {
815
786
  }, /*#__PURE__*/React.createElement(PassDetail, {
816
787
  dataSource: _currentItem,
817
788
  platform: platform,
818
- onDetailRefresh: _handleDetailRefresh,
819
789
  onListRefresh: listReload
820
790
  })));
821
791
  };
@@ -1039,7 +1039,7 @@ var Login2 = function Login2(_ref) {
1039
1039
  _context9.next = 10;
1040
1040
  break;
1041
1041
  }
1042
- throw new Error((res === null || res === void 0 ? void 0 : res.message) || '密码重置失败');
1042
+ throw new Error((res === null || res === void 0 ? void 0 : res.message) || locales.getText('pisell-forgot-password-failed'));
1043
1043
  case 10:
1044
1044
  // 重置成功后关闭忘记密码流程
1045
1045
  handleCloseForgotPassword();
@@ -1085,7 +1085,7 @@ var Login2 = function Login2(_ref) {
1085
1085
  case 16:
1086
1086
  _context9.prev = 16;
1087
1087
  _context9.t0 = _context9["catch"](0);
1088
- message.error((_context9.t0 === null || _context9.t0 === void 0 ? void 0 : _context9.t0.message) || '密码重置失败');
1088
+ message.error((_context9.t0 === null || _context9.t0 === void 0 ? void 0 : _context9.t0.message) || locales.getText('pisell-forgot-password-failed'));
1089
1089
  // throw error;
1090
1090
  case 19:
1091
1091
  _context9.prev = 19;
@@ -1126,18 +1126,18 @@ var Login2 = function Login2(_ref) {
1126
1126
  _context10.next = 8;
1127
1127
  break;
1128
1128
  }
1129
- throw new Error((res === null || res === void 0 ? void 0 : res.message) || '密码重置失败');
1129
+ throw new Error((res === null || res === void 0 ? void 0 : res.message) || locales.getText('pisell-forgot-password-failed'));
1130
1130
  case 8:
1131
1131
  // 重置成功后关闭忘记密码流程并重置邮件链接验证状态
1132
1132
  handleCloseForgotPassword();
1133
1133
  setEmailLinkVerifyStatus(null);
1134
- message.success('密码重置成功');
1134
+ message.success(locales.getText('pisell-forgot-password-success'));
1135
1135
  _context10.next = 17;
1136
1136
  break;
1137
1137
  case 13:
1138
1138
  _context10.prev = 13;
1139
1139
  _context10.t0 = _context10["catch"](0);
1140
- message.error((_context10.t0 === null || _context10.t0 === void 0 ? void 0 : _context10.t0.message) || '密码重置失败');
1140
+ message.error((_context10.t0 === null || _context10.t0 === void 0 ? void 0 : _context10.t0.message) || locales.getText('pisell-forgot-password-failed'));
1141
1141
  throw _context10.t0;
1142
1142
  case 17:
1143
1143
  _context10.prev = 17;
@@ -2085,7 +2085,7 @@ var Login2 = function Login2(_ref) {
2085
2085
  case 4:
2086
2086
  result = _context14.sent;
2087
2087
  if (result.status) {
2088
- message.success('密码重置成功');
2088
+ message.success(locales.getText('pisell-forgot-password-success'));
2089
2089
  // 重置状态
2090
2090
  setEmailLinkVerifyStatus(null);
2091
2091
  setEmailLinkError('');
@@ -2111,7 +2111,7 @@ var Login2 = function Login2(_ref) {
2111
2111
  setLoginStep('account');
2112
2112
  }
2113
2113
  } else {
2114
- message.error(result.message || '密码重置失败');
2114
+ message.error(result.message || locales.getText('pisell-forgot-password-failed'));
2115
2115
  }
2116
2116
  _context14.next = 9;
2117
2117
  break;
@@ -2123,7 +2123,7 @@ var Login2 = function Login2(_ref) {
2123
2123
  case 11:
2124
2124
  _context14.prev = 11;
2125
2125
  _context14.t0 = _context14["catch"](0);
2126
- message.error((_context14.t0 === null || _context14.t0 === void 0 ? void 0 : _context14.t0.message) || '密码重置失败');
2126
+ message.error((_context14.t0 === null || _context14.t0 === void 0 ? void 0 : _context14.t0.message) || locales.getText('pisell-forgot-password-failed'));
2127
2127
  case 14:
2128
2128
  case "end":
2129
2129
  return _context14.stop();
@@ -75,6 +75,7 @@ declare const _default: {
75
75
  'pisell-forgot-password-send-link': string;
76
76
  'pisell-forgot-password-link-sent': string;
77
77
  'pisell-forgot-password-success': string;
78
+ 'pisell-forgot-password-failed': string;
78
79
  'pisell-forgot-password-verify': string;
79
80
  'pisell-common-resend': string;
80
81
  'pisell-common-verify': string;
@@ -255,6 +256,7 @@ declare const _default: {
255
256
  'pisell-forgot-password-send-link': string;
256
257
  'pisell-forgot-password-link-sent': string;
257
258
  'pisell-forgot-password-success': string;
259
+ 'pisell-forgot-password-failed': string;
258
260
  'pisell-forgot-password-verify': string;
259
261
  'pisell-common-resend': string;
260
262
  'pisell-common-verify': string;
@@ -447,6 +449,7 @@ declare const _default: {
447
449
  'pisell-forgot-password-send-link': string;
448
450
  'pisell-forgot-password-link-sent': string;
449
451
  'pisell-forgot-password-success': string;
452
+ 'pisell-forgot-password-failed': string;
450
453
  'pisell-forgot-password-verify': string;
451
454
  'pisell-common-resend': string;
452
455
  'pisell-common-verify': string;
@@ -615,6 +618,7 @@ declare const _default: {
615
618
  'pisell-forgot-password-send-link': string;
616
619
  'pisell-forgot-password-link-sent': string;
617
620
  'pisell-forgot-password-success': string;
621
+ 'pisell-forgot-password-failed': string;
618
622
  'pisell-forgot-password-verify': string;
619
623
  'pisell-common-resend': string;
620
624
  'pisell-common-verify': string;
@@ -795,6 +799,7 @@ declare const _default: {
795
799
  'pisell-forgot-password-send-link': string;
796
800
  'pisell-forgot-password-link-sent': string;
797
801
  'pisell-forgot-password-success': string;
802
+ 'pisell-forgot-password-failed': string;
798
803
  'pisell-forgot-password-verify': string;
799
804
  'pisell-common-resend': string;
800
805
  'pisell-common-verify': string;
@@ -85,6 +85,7 @@ export default {
85
85
  'pisell-forgot-password-send-link': 'Send reset password link',
86
86
  'pisell-forgot-password-link-sent': 'Reset password link sent',
87
87
  'pisell-forgot-password-success': 'Password reset successfully',
88
+ 'pisell-forgot-password-failed': 'Password reset failed',
88
89
  'pisell-forgot-password-verify': 'Verify',
89
90
  // Common buttons and actions
90
91
  'pisell-common-resend': 'Resend',
@@ -291,6 +292,7 @@ export default {
291
292
  'pisell-forgot-password-send-link': '发送重置密码链接',
292
293
  'pisell-forgot-password-link-sent': '重置密码链接已发送',
293
294
  'pisell-forgot-password-success': '密码重置成功',
295
+ 'pisell-forgot-password-failed': '密码重置失败',
294
296
  'pisell-forgot-password-verify': '验证',
295
297
  // Common buttons and actions
296
298
  'pisell-common-resend': '重新发送',
@@ -513,6 +515,7 @@ export default {
513
515
  'pisell-forgot-password-send-link': '發送重置密碼連結',
514
516
  'pisell-forgot-password-link-sent': '重置密碼連結已發送',
515
517
  'pisell-forgot-password-success': '密碼重設成功',
518
+ 'pisell-forgot-password-failed': '密碼重設失敗',
516
519
  'pisell-forgot-password-verify': '驗證',
517
520
  // Common buttons and actions
518
521
  'pisell-common-resend': '重新發送',
@@ -695,6 +698,7 @@ export default {
695
698
  'pisell-forgot-password-send-link': 'パスワードリセットリンクを送信',
696
699
  'pisell-forgot-password-link-sent': 'パスワードリセットリンクが送信されました',
697
700
  'pisell-forgot-password-success': 'パスワードリセット成功',
701
+ 'pisell-forgot-password-failed': 'パスワードリセット失敗',
698
702
  'pisell-forgot-password-verify': '確認',
699
703
  'pisell-common-resend': '再送信',
700
704
  'pisell-common-verify': '確認',
@@ -875,6 +879,7 @@ export default {
875
879
  'pisell-forgot-password-send-link': 'Enviar link de redefinição de senha',
876
880
  'pisell-forgot-password-link-sent': 'Link de redefinição de senha enviado',
877
881
  'pisell-forgot-password-success': 'Redefinição de senha bem-sucedida',
882
+ 'pisell-forgot-password-failed': 'Falha na redefinição de senha',
878
883
  'pisell-forgot-password-verify': 'Verificar',
879
884
  'pisell-common-resend': 'Reenviar',
880
885
  'pisell-common-verify': 'Verificar',
@@ -3,7 +3,7 @@ import { ItemLayout, ItemProps, PresetConfig, SelectorProps, SelectorVariant } f
3
3
  import './selector.less';
4
4
  export declare const SelectorContext: React.Context<{
5
5
  disabled?: boolean | undefined;
6
- mode?: "single" | "multiple" | undefined;
6
+ mode?: "multiple" | "single" | undefined;
7
7
  itemLayout?: ItemLayout | undefined;
8
8
  valueType?: "object" | "primitive" | undefined;
9
9
  variant?: SelectorVariant | undefined;
@@ -59,37 +59,37 @@ var header = ({ state, dispatch }) => {
59
59
  {
60
60
  label: import_utils.locales.getText("pisell2.text.status.new"),
61
61
  key: "new",
62
- color: "#079455"
62
+ color: "#91caff"
63
63
  },
64
64
  {
65
65
  label: import_utils.locales.getText("pisell2.text.status.confirmed"),
66
66
  key: "confirmed",
67
- color: "#7F56D9"
67
+ color: "#b7eb8f"
68
68
  },
69
69
  {
70
70
  label: import_utils.locales.getText("pisell2.text.status.arrived"),
71
71
  key: "arrived",
72
- color: "#088AB2"
72
+ color: "#d3adf7"
73
73
  },
74
74
  {
75
75
  label: import_utils.locales.getText("pisell2.text.status.started"),
76
76
  key: "started",
77
- color: "#155EEF"
77
+ color: "#fffb8f"
78
78
  },
79
79
  {
80
80
  label: /* @__PURE__ */ import_react.default.createElement("span", { style: { color: "#D92D20" } }, import_utils.locales.getText("pisell2.text.status.cancelled")),
81
81
  key: "cancelled",
82
- color: "#DC6803"
82
+ color: "#bfbfbf"
83
83
  },
84
84
  {
85
85
  label: /* @__PURE__ */ import_react.default.createElement("span", { style: { color: "#D92D20" } }, import_utils.locales.getText("pisell2.text.status.no_show")),
86
86
  key: "no_show",
87
- color: "#D92D20"
87
+ color: "#ffa39e"
88
88
  },
89
89
  {
90
90
  label: import_utils.locales.getText("pisell2.text.status.completed"),
91
91
  key: "completed",
92
- color: "#4A5578"
92
+ color: "#ffd591"
93
93
  }
94
94
  ];
95
95
  const orderSalesChannel = {
@@ -21,7 +21,7 @@
21
21
 
22
22
  .booking-order-sales-channel {
23
23
  width: 100%;
24
- color: var(--Base-White, #FFF);
24
+ color: var(--Gray-900, #101828);
25
25
  font-size: 14px;
26
26
  font-style: normal;
27
27
  font-weight: 400;
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  .booking-header-left {
40
- color: var(--Base-White, #FFF);
40
+ color: var(--Gray-900, #101828);
41
41
  font-size: 18px;
42
42
  font-style: normal;
43
43
  font-weight: 400;
@@ -48,17 +48,17 @@
48
48
  display: flex;
49
49
  align-items: center;
50
50
  gap: 10px;
51
- color: var(--Base-White, #FFF) !important;
51
+ color: var(--Gray-900, #101828) !important;
52
52
  font-size: 18px;
53
53
  font-style: normal;
54
54
  font-weight: 400;
55
55
  cursor: pointer;
56
- border: 1px solid #fff;
56
+ border: 1px solid var(--Gray-900, #101828);
57
57
  padding: 4px 12px;
58
58
  border-radius: 24px;
59
59
 
60
60
  span {
61
- color: var(--Base-White, #FFF) !important;
61
+ color: var(--Gray-900, #101828) !important;
62
62
  }
63
63
 
64
64
  .booking-header-right-status-icon {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -34,6 +34,7 @@ __export(NoteBlock_exports, {
34
34
  module.exports = __toCommonJS(NoteBlock_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
+ var import_materials = require("@pisell/materials");
37
38
  var import_ahooks = require("ahooks");
38
39
  var import_NoteItem = __toESM(require("./NoteItem"));
39
40
  var import_addNote = __toESM(require("../addNote"));
@@ -159,7 +160,7 @@ var NoteBlock = (props) => {
159
160
  }
160
161
  );
161
162
  })), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
162
- import_antd.Modal,
163
+ import_materials.PisellModal,
163
164
  {
164
165
  title: editNote ? import_utils.locales.getText("pisell2.text.status.edit-note") : import_utils.locales.getText("pisell2.text.status.add-note"),
165
166
  open: isModalOpen,
@@ -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 | "flexible" | {
170
170
  type: string;
171
171
  value: number;
172
- } | "flexible";
172
+ };
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: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "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: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
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<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
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
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "warn" | "success" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -195,7 +195,7 @@ export declare const updateComponent: (component: string, render?: boolean) => {
195
195
  } | {
196
196
  readonly type: "step";
197
197
  readonly render: boolean;
198
- readonly component?: undefined;
198
+ component?: undefined;
199
199
  };
200
200
  };
201
201
  /**
@@ -295,10 +295,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
- action?: "pay" | "amount" | "deviceList" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
+ action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => import("react").JSX.Element;
3
2
  export default StripePayment;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => import("react").JSX.Element;
3
2
  export default PageLoading;
package/lib/index.d.ts CHANGED
@@ -52,8 +52,8 @@ export { default as SaasRegister } from './plus/saasRegister';
52
52
  export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
53
53
  export { default as PinModal } from './components/pinModal';
54
54
  export { default as PinVerifyModal } from './components/pinVerifyModal';
55
- export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth } from './components/authentication/admin';
56
- export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps } from './components/authentication/admin';
55
+ export { OAuthConfig, SaaSAdminAuth, OrgAdminAuth, CustomerAuth, CustomerOAuthConfig, DeviceAuth, POSOperatorAuth, OnlineShopAuth, SaaSManagermentAuth, } from './components/authentication/admin';
56
+ export type { SaaSAdminAuthProps, OrgAdminAuthProps, DeviceAuthProps, POSOperatorAuthProps, CustomerOAuthConfigProps, } from './components/authentication/admin';
57
57
  export { default as ContactInfo } from './plus/contactInfo';
58
58
  export { default as ContactInfoModal } from './plus/contactInfoModal';
59
59
  export { Login2, Register2, AuthModal } from './pro/Login2.0';
@@ -71,7 +71,9 @@ export { default as ProNumberSelector } from './pro/pisellNumberSelector';
71
71
  export { default as SKUOptionsSelection } from './plus/skuOptionsSelection';
72
72
  export { default as SaasAttendance } from './plus/saasAttendance';
73
73
  export { default as Selector } from './pro/Selector';
74
+ export { default as PisellSalesGrid } from './plus/pisellSalesGrid';
74
75
  export { default as EcoCupProject } from './components/ecocup/cupProject';
75
76
  export { default as EcoCupList } from './components/ecocup/cupList';
76
77
  export { default as EcoCustomerList } from './components/ecocup/customerList';
77
78
  export { default as OrderList } from './plus/orderList';
79
+ export { default as pisellSalesManagement } from './plus/pisellSalesManagement';
package/lib/index.js CHANGED
@@ -81,6 +81,7 @@ __export(src_exports, {
81
81
  POSOperatorAuth: () => import_admin.POSOperatorAuth,
82
82
  PinModal: () => import_pinModal.default,
83
83
  PinVerifyModal: () => import_pinVerifyModal.default,
84
+ PisellSalesGrid: () => import_pisellSalesGrid.default,
84
85
  PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
85
86
  ProNumberSelector: () => import_pisellNumberSelector.default,
86
87
  ProductExtension: () => import_productExtension.default,
@@ -112,7 +113,8 @@ __export(src_exports, {
112
113
  WalletPassDetail: () => import_passDetail.default,
113
114
  WalletPassGallery: () => import_walletPassGallery.default,
114
115
  WorkspaceList: () => import_workSpaceList.default,
115
- WorkspaceListDetail: () => import_workSpaceListDetail.default
116
+ WorkspaceListDetail: () => import_workSpaceListDetail.default,
117
+ pisellSalesManagement: () => import_pisellSalesManagement.default
116
118
  });
117
119
  module.exports = __toCommonJS(src_exports);
118
120
  var import_weekday = __toESM(require("dayjs/plugin/weekday"));
@@ -188,10 +190,12 @@ var import_pisellNumberSelector = __toESM(require("./pro/pisellNumberSelector"))
188
190
  var import_skuOptionsSelection = __toESM(require("./plus/skuOptionsSelection"));
189
191
  var import_saasAttendance = __toESM(require("./plus/saasAttendance"));
190
192
  var import_Selector = __toESM(require("./pro/Selector"));
193
+ var import_pisellSalesGrid = __toESM(require("./plus/pisellSalesGrid"));
191
194
  var import_cupProject = __toESM(require("./components/ecocup/cupProject"));
192
195
  var import_cupList = __toESM(require("./components/ecocup/cupList"));
193
196
  var import_customerList = __toESM(require("./components/ecocup/customerList"));
194
197
  var import_orderList = __toESM(require("./plus/orderList"));
198
+ var import_pisellSalesManagement = __toESM(require("./plus/pisellSalesManagement"));
195
199
  import_dayjs.default.extend(import_weekday.default);
196
200
  import_dayjs.default.extend(import_localeData.default);
197
201
  // Annotate the CommonJS export names for ESM import in node:
@@ -248,6 +252,7 @@ import_dayjs.default.extend(import_localeData.default);
248
252
  POSOperatorAuth,
249
253
  PinModal,
250
254
  PinVerifyModal,
255
+ PisellSalesGrid,
251
256
  PisellSelectCustomerModal,
252
257
  ProNumberSelector,
253
258
  ProductExtension,
@@ -279,5 +284,6 @@ import_dayjs.default.extend(import_localeData.default);
279
284
  WalletPassDetail,
280
285
  WalletPassGallery,
281
286
  WorkspaceList,
282
- WorkspaceListDetail
287
+ WorkspaceListDetail,
288
+ pisellSalesManagement
283
289
  });