@pisell/private-materials 6.2.41 → 6.2.44

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 (187) 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 +13 -29
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  12. package/es/components/booking/addons/index.js +12 -8
  13. package/es/components/booking/components/footer/index.d.ts +0 -1
  14. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  15. package/es/components/booking/components/voucher/index.d.ts +0 -1
  16. package/es/components/booking/editBookingModal/index.js +3 -4
  17. package/es/components/booking/hooks/useQuotation.d.ts +0 -1
  18. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  19. package/es/components/booking/info/service/Lists.d.ts +0 -1
  20. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  22. package/es/components/booking/info/service2/utils.d.ts +1 -1
  23. package/es/components/booking/info/utils.js +1 -1
  24. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  25. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  26. package/es/components/booking/info2/service/addService/utils.js +16 -1
  27. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  28. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  29. package/es/components/booking/notes/addNote/index.d.ts +0 -1
  30. package/es/components/eftposPay/amount.d.ts +1 -1
  31. package/es/components/eftposPay/device.d.ts +1 -1
  32. package/es/components/eftposPay/hooks.d.ts +2 -2
  33. package/es/components/eftposPay/store/index.d.ts +5 -5
  34. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  35. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  36. package/es/components/schedules/utils.d.ts +1 -1
  37. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  38. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  39. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  40. package/es/components/ticketBooking/components/ticketBooking/index.js +3 -0
  41. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  42. package/es/components/ticketBooking/index.d.ts +0 -1
  43. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  44. package/es/index.d.ts +3 -0
  45. package/es/index.js +4 -1
  46. package/es/plus/clientName/index.d.ts +0 -1
  47. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  48. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  49. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  50. package/es/plus/noteModal/AddTempModal.d.ts +0 -1
  51. package/es/plus/productSelect/ProductCard/index.less +5 -22
  52. package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  53. package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
  54. package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
  55. package/es/plus/saasCreateOrganization/components/Header.d.ts +4 -0
  56. package/es/plus/saasCreateOrganization/components/Header.js +62 -0
  57. package/es/plus/saasCreateOrganization/index.d.ts +5 -0
  58. package/es/plus/saasCreateOrganization/index.js +15 -0
  59. package/es/plus/saasCreateOrganization/index.less +55 -0
  60. package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
  61. package/es/plus/saasCreateOrganization/locales.js +14 -0
  62. package/es/plus/saasCreateOrganization/types.d.ts +69 -0
  63. package/es/plus/saasCreateOrganization/types.js +1 -0
  64. package/es/plus/saasLogin/index.d.ts +5 -0
  65. package/es/plus/saasLogin/index.js +165 -0
  66. package/es/plus/saasLogin/index.less +136 -0
  67. package/es/plus/saasLogin/locales.d.ts +51 -0
  68. package/es/plus/saasLogin/locales.js +50 -0
  69. package/es/plus/saasLogin/types.d.ts +62 -0
  70. package/es/plus/saasLogin/types.js +1 -0
  71. package/es/plus/saasLogin/utils.d.ts +35 -0
  72. package/es/plus/saasLogin/utils.js +31 -0
  73. package/es/plus/saasRegister/components/EntryEmail.d.ts +10 -0
  74. package/es/plus/saasRegister/components/EntryEmail.js +92 -0
  75. package/es/plus/saasRegister/components/EntryInfo.d.ts +10 -0
  76. package/es/plus/saasRegister/components/EntryInfo.js +145 -0
  77. package/es/plus/saasRegister/components/GoLogin.d.ts +5 -0
  78. package/es/plus/saasRegister/components/GoLogin.js +27 -0
  79. package/es/plus/saasRegister/components/Header.d.ts +4 -0
  80. package/es/plus/saasRegister/components/Header.js +62 -0
  81. package/es/plus/saasRegister/components/VerifyError.d.ts +9 -0
  82. package/es/plus/saasRegister/components/VerifyError.js +68 -0
  83. package/es/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
  84. package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
  85. package/es/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
  86. package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
  87. package/es/plus/saasRegister/index.d.ts +5 -0
  88. package/es/plus/saasRegister/index.js +246 -0
  89. package/es/plus/saasRegister/index.less +218 -0
  90. package/es/plus/saasRegister/locales.d.ts +117 -0
  91. package/es/plus/saasRegister/locales.js +116 -0
  92. package/es/plus/saasRegister/types.d.ts +114 -0
  93. package/es/plus/saasRegister/types.js +24 -0
  94. package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  95. package/es/utils/index.d.ts +1 -1
  96. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
  97. package/lib/components/booking/addons/index.js +1 -11
  98. package/lib/components/booking/components/footer/index.d.ts +0 -1
  99. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  100. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  101. package/lib/components/booking/editBookingModal/index.js +3 -4
  102. package/lib/components/booking/hooks/useQuotation.d.ts +0 -1
  103. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  104. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  105. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  106. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  107. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  108. package/lib/components/booking/info/utils.js +2 -1
  109. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  110. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  111. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  112. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  113. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  114. package/lib/components/booking/notes/addNote/index.d.ts +0 -1
  115. package/lib/components/eftposPay/amount.d.ts +1 -1
  116. package/lib/components/eftposPay/device.d.ts +1 -1
  117. package/lib/components/eftposPay/hooks.d.ts +2 -2
  118. package/lib/components/eftposPay/store/index.d.ts +5 -5
  119. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  120. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  121. package/lib/components/schedules/utils.d.ts +1 -1
  122. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  123. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  124. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  125. package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -0
  126. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  127. package/lib/components/ticketBooking/index.d.ts +0 -1
  128. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  129. package/lib/index.d.ts +3 -0
  130. package/lib/index.js +9 -0
  131. package/lib/plus/clientName/index.d.ts +0 -1
  132. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  133. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  134. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -1
  135. package/lib/plus/noteModal/AddTempModal.d.ts +0 -1
  136. package/lib/plus/productSelect/ProductCard/index.less +5 -22
  137. package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
  138. package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
  139. package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
  140. package/lib/plus/saasCreateOrganization/components/Header.d.ts +4 -0
  141. package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
  142. package/lib/plus/saasCreateOrganization/index.d.ts +5 -0
  143. package/lib/plus/saasCreateOrganization/index.js +47 -0
  144. package/lib/plus/saasCreateOrganization/index.less +55 -0
  145. package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
  146. package/lib/plus/saasCreateOrganization/locales.js +38 -0
  147. package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
  148. package/lib/plus/saasCreateOrganization/types.js +17 -0
  149. package/lib/plus/saasLogin/index.d.ts +5 -0
  150. package/lib/plus/saasLogin/index.js +171 -0
  151. package/lib/plus/saasLogin/index.less +136 -0
  152. package/lib/plus/saasLogin/locales.d.ts +51 -0
  153. package/lib/plus/saasLogin/locales.js +74 -0
  154. package/lib/plus/saasLogin/types.d.ts +62 -0
  155. package/lib/plus/saasLogin/types.js +17 -0
  156. package/lib/plus/saasLogin/utils.d.ts +35 -0
  157. package/lib/plus/saasLogin/utils.js +50 -0
  158. package/lib/plus/saasRegister/components/EntryEmail.d.ts +10 -0
  159. package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
  160. package/lib/plus/saasRegister/components/EntryInfo.d.ts +10 -0
  161. package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
  162. package/lib/plus/saasRegister/components/GoLogin.d.ts +5 -0
  163. package/lib/plus/saasRegister/components/GoLogin.js +58 -0
  164. package/lib/plus/saasRegister/components/Header.d.ts +4 -0
  165. package/lib/plus/saasRegister/components/Header.js +99 -0
  166. package/lib/plus/saasRegister/components/VerifyError.d.ts +9 -0
  167. package/lib/plus/saasRegister/components/VerifyError.js +123 -0
  168. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +6 -0
  169. package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
  170. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +8 -0
  171. package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
  172. package/lib/plus/saasRegister/index.d.ts +5 -0
  173. package/lib/plus/saasRegister/index.js +205 -0
  174. package/lib/plus/saasRegister/index.less +218 -0
  175. package/lib/plus/saasRegister/locales.d.ts +117 -0
  176. package/lib/plus/saasRegister/locales.js +140 -0
  177. package/lib/plus/saasRegister/types.d.ts +114 -0
  178. package/lib/plus/saasRegister/types.js +54 -0
  179. package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
  180. package/lib/utils/index.d.ts +1 -1
  181. package/lowcode/saas-create-organization/meta.ts +214 -0
  182. package/lowcode/saas-create-organization/snippets.ts +25 -0
  183. package/lowcode/saas-login/meta.ts +370 -0
  184. package/lowcode/saas-login/snippets.ts +38 -0
  185. package/lowcode/saas-register/meta.ts +386 -0
  186. package/lowcode/saas-register/snippets.ts +31 -0
  187. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DepositModal: (props: any) => JSX.Element;
4
3
  export default DepositModal;
@@ -434,13 +434,15 @@ var Addons = Provider(function (props) {
434
434
  }
435
435
  });
436
436
  }
437
- if (state.channelDisabledEdit) {
438
- modal.warning({
439
- okText: locales.getText('pisell2.text.ok'),
440
- content: locales.getText('pisell2.text.terminal-edit-message')
441
- });
442
- return;
443
- }
437
+ /*
438
+ if (state.channelDisabledEdit) {
439
+ modal.warning({
440
+ okText: locales.getText('pisell2.text.ok'),
441
+ content: locales.getText('pisell2.text.terminal-edit-message'),
442
+ });
443
+ return;
444
+ }
445
+ */
444
446
  getProducts();
445
447
  setSearch('');
446
448
  dispatch({
@@ -496,9 +498,11 @@ var Addons = Provider(function (props) {
496
498
  if (state.disabledEdit) {
497
499
  return;
498
500
  }
501
+ /*
499
502
  if (state.channelDisabledEdit) {
500
503
  return;
501
504
  }
505
+ */
502
506
  var isSession = isSessionProduct(item);
503
507
  state.action({
504
508
  type: 'pisell1.handleOpenProductModal',
@@ -563,7 +567,7 @@ var Addons = Provider(function (props) {
563
567
  }
564
568
  }, state.addons.value.map(function (d) {
565
569
  return /*#__PURE__*/React.createElement(ProductItem, {
566
- disabled: state.disabledEdit || state.channelDisabledEdit,
570
+ disabled: state.disabledEdit,
567
571
  item: d,
568
572
  key: d.id,
569
573
  amountSymbol: state.amountSymbol,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface IProps {
4
3
  modal: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const VoucherCard: (props: any) => JSX.Element | null;
4
3
  export default VoucherCard;
@@ -62,6 +62,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
62
62
  return {
63
63
  open: function open(params) {
64
64
  console.log('change', params);
65
+ form.resetFields();
65
66
  setParams(params);
66
67
  setOpen(true);
67
68
  }
@@ -173,9 +174,7 @@ var EditBookingModal = function EditBookingModal(props, ref) {
173
174
  });
174
175
  }, [data]);
175
176
  var updateResource = function updateResource(resource) {
176
- form.setFieldsValue({
177
- resource: resource
178
- });
177
+ form.setFieldValue('resource', resource);
179
178
  };
180
179
  var originCacheItem = useMemo(function () {
181
180
  if (!data) {
@@ -224,9 +223,9 @@ var EditBookingModal = function EditBookingModal(props, ref) {
224
223
  });
225
224
  }, [data, useToDate, useResource]);
226
225
  var initState = function initState() {
227
- form.resetFields();
228
226
  setData(null);
229
227
  setOpen(false);
228
+ form.resetFields();
230
229
  };
231
230
  var onCancel = function onCancel() {
232
231
  initState();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const calculateTotalPrice: (data: any) => number;
3
2
  declare const useQuotation: (state: any, dispatch: any) => {
4
3
  dom: JSX.Element;
@@ -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>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, resourceItem, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
251
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
@@ -95,7 +95,7 @@ export var isBooking4Shop = function isBooking4Shop(shopId, renderType, business
95
95
  if (renderType === 'eventBooking') {
96
96
  return false;
97
97
  }
98
- var booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913, 8918, 6413];
98
+ var booking4Shops = [8390, 1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191, 6812, 6813, 6814, 7651, 8586, 8581, 9, 2155, 8030, 1749, 8194, 2327, 8609, 8610, 8782, 1285, 6124, 8727, 5538, 6988, 8872, 6930, 8824, 8913, 8918, 6413, 8943];
99
99
 
100
100
  // 固定的shopId 或者安装 Resource Kit 应用,则认为是booking4Shop
101
101
  return booking4Shops.includes(shopId) || (businessUtils === null || businessUtils === void 0 ? void 0 : businessUtils.getAppByModal('resourcekit'));
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -277,8 +277,23 @@ export var setDefaultResource = function setDefaultResource(_ref6) {
277
277
  try {
278
278
  var _loop2 = function _loop2() {
279
279
  var item = _step.value;
280
+ var _item$select_type = item.select_type,
281
+ select_type = _item$select_type === void 0 ? {} : _item$select_type,
282
+ _item$optional_resour = item.optional_resource,
283
+ optional_resource = _item$optional_resour === void 0 ? [] : _item$optional_resour,
284
+ _item$default_resourc = item.default_resource,
285
+ default_resource = _item$default_resourc === void 0 ? [] : _item$default_resourc;
280
286
  var renderList = item.renderList.filter(function (d) {
281
- return d.is_default == 1 || d.id === resourceId;
287
+ if ((select_type === null || select_type === void 0 ? void 0 : select_type.type) === 'single') {
288
+ // 单选:
289
+ if (resourceId && (optional_resource.includes(resourceId) || default_resource.includes(resourceId))) {
290
+ return d.id === resourceId;
291
+ }
292
+ return d.is_default === 1;
293
+ } else {
294
+ // 多选
295
+ return d.is_default === 1 || d.id === resourceId;
296
+ }
282
297
  });
283
298
  var defaultOriginalResource = [];
284
299
  if (renderList.length === 0) {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceItem: ({ d, handleEditService, state, handleLike, errorMessage, handleDeleteService, }: any) => JSX.Element;
4
3
  export default ServiceItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddNote: ({ value, onChange, title, placeholder }: any) => JSX.Element;
4
3
  export default AddNote;
@@ -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" | "print" | "fail" | "mark_tx_processed", params?: string | {
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" | "print" | "fail" | "mark_tx_processed", params?: string | {
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;
@@ -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<"warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "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: "warn" | "success" | "loading" | "fail" | "question";
177
+ status: "success" | "warn" | "loading" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -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?: "refund" | "pay" | "fullPay" | "query" | undefined;
298
+ mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
300
+ eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
301
+ action?: "amount" | "deviceList" | "pay" | 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?: "warn" | "success" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TabProduct: (props: any) => JSX.Element;
3
2
  export default TabProduct;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type BoolConfigVal = 0 | 1;
4
3
  export interface ProductCardConfig {
@@ -17,6 +17,6 @@ declare let modal: Omit<ModalStaticFunctions, "warn">;
17
17
  export declare const setModal: (m: Omit<ModalStaticFunctions, "warn">) => void;
18
18
  export declare const saveConfirm: () => Promise<{
19
19
  destroy: () => void;
20
- update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
20
+ update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
21
21
  }>;
22
22
  export { modal };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductProps } from '../../type';
3
2
  declare const Product: (props: ProductProps) => JSX.Element;
4
3
  export default Product;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface AddServiceProps {
4
3
  onEdit?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
4
3
  declare const TicketBooking: () => JSX.Element;
@@ -306,6 +306,9 @@ var TicketBooking = function TicketBooking() {
306
306
  selectCustomer(null);
307
307
  enableAllScanListeners();
308
308
  shopDiscount === null || shopDiscount === void 0 || (_shopDiscount$clear = shopDiscount.clear) === null || _shopDiscount$clear === void 0 || _shopDiscount$clear.call(shopDiscount);
309
+ setState({
310
+ createCount: state.createCount + 1
311
+ });
309
312
  });
310
313
 
311
314
  // 作废预约
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Dayjs } from 'dayjs';
3
2
  import './index.less';
4
3
  interface ITimeBarProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface TicketBookingProps {
4
3
  productExtensionType: string[];
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "walletPass" | "product" | "customer" | "wallet" | "local_product";
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
package/es/index.d.ts CHANGED
@@ -49,3 +49,6 @@ export { default as ClientCard } from './plus/clientCard';
49
49
  export { default as ClientSearch } from './plus/clinetSearch';
50
50
  export { default as ComprehensiveSearch } from './pro/comprehensiveSearch';
51
51
  export { default as NoteModal } from './plus/noteModal';
52
+ export { default as SaasLogin } from './plus/saasLogin';
53
+ export { default as SaasRegister } from './plus/saasRegister';
54
+ export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
package/es/index.js CHANGED
@@ -52,4 +52,7 @@ export { default as StepController } from "./components/stepController";
52
52
  export { default as ClientCard } from "./plus/clientCard";
53
53
  export { default as ClientSearch } from "./plus/clinetSearch";
54
54
  export { default as ComprehensiveSearch } from "./pro/comprehensiveSearch";
55
- export { default as NoteModal } from "./plus/noteModal";
55
+ export { default as NoteModal } from "./plus/noteModal";
56
+ export { default as SaasLogin } from "./plus/saasLogin";
57
+ export { default as SaasRegister } from "./plus/saasRegister";
58
+ export { default as SaasCreateOrganization } from "./plus/saasCreateOrganization";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { IClientNameProps } from './type';
4
3
  declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
3
2
  export default DateSectionCom;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GenderField: (props: any) => JSX.Element;
3
2
  export default GenderField;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PhoneField: ({ value, onChange }: any) => JSX.Element;
3
2
  export default PhoneField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTempModal: ({ open, onCancel, onConfirm, }: {
4
3
  open: boolean;
@@ -201,7 +201,8 @@
201
201
  .price-info {
202
202
  display: flex;
203
203
  align-items: center;
204
- gap: 8px;
204
+ flex-wrap: wrap;
205
+ gap: unset;
205
206
  }
206
207
 
207
208
  .price {
@@ -210,6 +211,8 @@
210
211
  font-style: normal;
211
212
  font-weight: 600;
212
213
  line-height: 28px;
214
+ overflow: hidden;
215
+ margin-right: 8px;
213
216
  }
214
217
 
215
218
  .original-price {
@@ -219,6 +222,7 @@
219
222
  font-weight: 400;
220
223
  line-height: 24px;
221
224
  position: relative;
225
+ overflow: hidden;
222
226
 
223
227
  &::before {
224
228
  content: '';
@@ -246,25 +250,4 @@
246
250
  }
247
251
  }
248
252
  }
249
-
250
- // 网格布局中的产品卡片样式调整
251
- .product-grid-wrapper {
252
- .pisell-product-select__product-card {
253
- min-width: unset;
254
- width: 100%;
255
- }
256
- }
257
-
258
- // 列表布局中的产品卡片样式调整
259
- .product-list-wrapper {
260
- .pisell-product-select__product-card {
261
- min-width: 363px;
262
- max-width: unset;
263
- margin-top: 12px;
264
-
265
- &:first-child {
266
- margin-top: 0;
267
- }
268
- }
269
- }
270
253
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import './index.less';
2
3
  interface IProps {
3
4
  value: string | number;
4
5
  isMini?: boolean;
@@ -8,6 +8,7 @@ import React, { useMemo } from 'react';
8
8
  import { PisellText } from '@pisell/materials';
9
9
  import classNames from 'classnames';
10
10
  import useEngineContext from "../../../../hooks/useEngineContext";
11
+ import "./index.less";
11
12
  var index = function index(props) {
12
13
  var _context$appHelper$ut;
13
14
  var context = useEngineContext();
@@ -0,0 +1,4 @@
1
+ .pisell-price-text {
2
+ overflow: hidden;
3
+ text-overflow: ellipsis;
4
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SCOProps } from '../types';
3
+ import '../index.less';
4
+ export declare const Header: (props: SCOProps) => JSX.Element;
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import { locales } from '@pisell/utils';
3
+ import "../index.less";
4
+ export var Header = function Header(props) {
5
+ var _props$showLogo = props.showLogo,
6
+ showLogo = _props$showLogo === void 0 ? true : _props$showLogo,
7
+ _props$logo = props.logo,
8
+ logo = _props$logo === void 0 ? '' : _props$logo,
9
+ _props$logoSize = props.logoSize,
10
+ logoSize = _props$logoSize === void 0 ? {
11
+ width: 48,
12
+ height: 48
13
+ } : _props$logoSize,
14
+ _props$logoPosition = props.logoPosition,
15
+ logoPosition = _props$logoPosition === void 0 ? 'center' : _props$logoPosition,
16
+ _props$showWelcomeMes = props.showWelcomeMessage,
17
+ showWelcomeMessage = _props$showWelcomeMes === void 0 ? true : _props$showWelcomeMes,
18
+ _props$welcomeMessage = props.welcomeMessage,
19
+ welcomeMessage = _props$welcomeMessage === void 0 ? locales.getText('pisell-saas-create-org-welcome-message') : _props$welcomeMessage,
20
+ _props$welcomeMessage2 = props.welcomeMessageAlign,
21
+ welcomeMessageAlign = _props$welcomeMessage2 === void 0 ? 'center' : _props$welcomeMessage2,
22
+ _props$showTitle = props.showTitle,
23
+ showTitle = _props$showTitle === void 0 ? true : _props$showTitle,
24
+ _props$title = props.title,
25
+ title = _props$title === void 0 ? locales.getText('pisell-saas-create-org-title') : _props$title,
26
+ _props$titleAlign = props.titleAlign,
27
+ titleAlign = _props$titleAlign === void 0 ? 'center' : _props$titleAlign,
28
+ _props$showSubtitle = props.showSubtitle,
29
+ showSubtitle = _props$showSubtitle === void 0 ? true : _props$showSubtitle,
30
+ _props$subtitle = props.subtitle,
31
+ subtitle = _props$subtitle === void 0 ? '' : _props$subtitle,
32
+ _props$subtitleAlign = props.subtitleAlign,
33
+ subtitleAlign = _props$subtitleAlign === void 0 ? 'center' : _props$subtitleAlign;
34
+ return /*#__PURE__*/React.createElement(React.Fragment, null, showLogo && /*#__PURE__*/React.createElement("div", {
35
+ className: "pisell-saas-create-org-logo ".concat(logoPosition),
36
+ style: {
37
+ width: logoSize.width,
38
+ height: logoSize.height
39
+ }
40
+ }, logo && /*#__PURE__*/React.createElement("img", {
41
+ src: logo,
42
+ alt: "logo",
43
+ style: {
44
+ height: (logoSize === null || logoSize === void 0 ? void 0 : logoSize.height) || 48
45
+ }
46
+ })), showWelcomeMessage && /*#__PURE__*/React.createElement("h1", {
47
+ className: "pisell-saas-create-org-welcome-message",
48
+ style: {
49
+ textAlign: welcomeMessageAlign
50
+ }
51
+ }, welcomeMessage || ''), showTitle && /*#__PURE__*/React.createElement("h1", {
52
+ className: "pisell-saas-create-org-title",
53
+ style: {
54
+ textAlign: titleAlign
55
+ }
56
+ }, title || ''), showSubtitle && /*#__PURE__*/React.createElement("div", {
57
+ className: "pisell-saas-create-org-subtitle",
58
+ style: {
59
+ textAlign: subtitleAlign
60
+ }
61
+ }, subtitle || ''));
62
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { SCOProps } from './types';
3
+ import './index.less';
4
+ declare const SaasCreateOrganization: (props: SCOProps) => JSX.Element;
5
+ export default SaasCreateOrganization;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { locales } from '@pisell/utils';
3
+ import useEngineContext from "../../hooks/useEngineContext";
4
+ import { Header } from "./components/Header";
5
+ import localeTexts from "./locales";
6
+ import "./index.less";
7
+ var SaasCreateOrganization = function SaasCreateOrganization(props) {
8
+ var _context$engine;
9
+ var context = useEngineContext();
10
+ locales.init(localeTexts, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en');
11
+ return /*#__PURE__*/React.createElement("div", {
12
+ className: "pisell-saas-create-org-container"
13
+ }, /*#__PURE__*/React.createElement(Header, props), /*#__PURE__*/React.createElement("div", null, props === null || props === void 0 ? void 0 : props.children));
14
+ };
15
+ export default SaasCreateOrganization;
@@ -0,0 +1,55 @@
1
+ .pisell-saas-create-org-container {
2
+ width: 360px;
3
+ max-width: 360px;
4
+ min-width: 266px;
5
+ margin: 0 20px;
6
+ overflow-x: hidden;
7
+
8
+ // Logo样式
9
+ .pisell-saas-create-org-logo {
10
+ width: fit-content;
11
+ height: 48px;
12
+ border-radius: 8px;
13
+
14
+ &.left {
15
+ margin-right: auto;
16
+ margin-left: 0;
17
+ }
18
+
19
+ &.center {
20
+ margin: 0 auto;
21
+ }
22
+
23
+ &.right {
24
+ margin-left: auto;
25
+ margin-right: 0;
26
+ }
27
+
28
+ img {
29
+ height: 48px;
30
+ object-fit: contain;
31
+ }
32
+ }
33
+
34
+ .pisell-saas-create-org-welcome-message {
35
+ margin-top: 10px;
36
+ color: #101828;
37
+ text-align: center;
38
+ font-size: 20px;
39
+ font-weight: 500;
40
+ }
41
+
42
+ .pisell-saas-create-org-title {
43
+ margin-top: 24px;
44
+ font-size: 30px;
45
+ font-weight: 600;
46
+ color: #101828;
47
+ }
48
+
49
+ .pisell-saas-create-org-subtitle {
50
+ margin-top: 12px;
51
+ font-size: 16px;
52
+ color: #475467;
53
+ font-weight: 400;
54
+ }
55
+ }