@pisell/private-materials 3.4.9 → 3.4.11

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 (149) 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 +1 -1
  6. package/build/lowcode/preview.js +5 -5
  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 +6 -6
  11. package/es/businessModel/SalesModel/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  14. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  15. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  16. package/es/components/booking/forms/single/RenderValueById.d.ts +1 -0
  17. package/es/components/booking/forms/single/RenderValueById.js +68 -17
  18. package/es/components/booking/forms/single/index.less +67 -1
  19. package/es/components/booking/forms/table/index.d.ts +0 -1
  20. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  21. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  22. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  23. package/es/components/booking/info/index.d.ts +0 -1
  24. package/es/components/booking/info/service/like/index.d.ts +0 -1
  25. package/es/components/booking/info/utils.js +1 -1
  26. package/es/components/booking/info2/service/addService/utils.js +2 -1
  27. package/es/components/booking/info2/utilsByBooking.js +3 -2
  28. package/es/components/booking/locales.d.ts +3 -0
  29. package/es/components/booking/locales.js +6 -3
  30. package/es/components/booking/materiels/duration/index.js +1 -1
  31. package/es/components/booking/materiels/startTime/index.js +2 -2
  32. package/es/components/booking/utils.js +3 -3
  33. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  34. package/es/components/eftpos/form/index.d.ts +0 -1
  35. package/es/components/eftpos/group/index.d.ts +0 -1
  36. package/es/components/eftpos/hooks.d.ts +0 -1
  37. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  38. package/es/components/eftpos/icon/device.d.ts +0 -1
  39. package/es/components/eftpos/receipt/index.d.ts +0 -1
  40. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  41. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  42. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  43. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  44. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  45. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  46. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  50. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  51. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  52. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  53. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  54. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  55. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  56. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  57. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  58. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  59. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  60. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  61. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  62. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  64. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  65. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  66. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  67. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  68. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  69. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  70. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  71. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  72. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  73. package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  74. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  75. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  76. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  77. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  78. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  79. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  80. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  81. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  82. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  83. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  84. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  85. package/lib/components/booking/forms/single/RenderValueById.d.ts +1 -0
  86. package/lib/components/booking/forms/single/RenderValueById.js +37 -9
  87. package/lib/components/booking/forms/single/index.less +67 -1
  88. package/lib/components/booking/forms/table/index.d.ts +0 -1
  89. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  90. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  91. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  92. package/lib/components/booking/info/index.d.ts +0 -1
  93. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  94. package/lib/components/booking/info/utils.js +2 -1
  95. package/lib/components/booking/info2/service/addService/utils.js +3 -3
  96. package/lib/components/booking/info2/utilsByBooking.js +4 -4
  97. package/lib/components/booking/locales.d.ts +3 -0
  98. package/lib/components/booking/locales.js +6 -3
  99. package/lib/components/booking/materiels/duration/index.js +1 -1
  100. package/lib/components/booking/materiels/startTime/index.js +1 -1
  101. package/lib/components/booking/utils.js +3 -3
  102. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  103. package/lib/components/eftpos/form/index.d.ts +0 -1
  104. package/lib/components/eftpos/group/index.d.ts +0 -1
  105. package/lib/components/eftpos/hooks.d.ts +0 -1
  106. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  107. package/lib/components/eftpos/icon/device.d.ts +0 -1
  108. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  109. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  110. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  111. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  112. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  113. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  114. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  115. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  116. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  117. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  118. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  119. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  120. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  121. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  122. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  123. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  124. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  125. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  126. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  127. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  128. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  129. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  130. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  131. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  132. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  133. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  134. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  135. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  136. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  137. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  138. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  139. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  140. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  141. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  142. package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
  143. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  144. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  145. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  146. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  147. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  148. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
  149. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SalesModel: ({ children, hooks, config }: any) => JSX.Element;
3
2
  export * from './Sales';
4
3
  export default SalesModel;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const GuestOptionsModal: (props: any) => JSX.Element;
4
3
  export default GuestOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,3 +1,4 @@
1
+ import './index.less';
1
2
  interface RenderValueByIdProps {
2
3
  field: any;
3
4
  value: any;
@@ -1,24 +1,38 @@
1
- import React, { useEffect, useMemo } from "react";
2
- import { isArr, isUndefined } from "@pisell/utils";
3
- import { Tag } from "antd";
4
- import { useRequest } from "ahooks";
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useEffect, useMemo, useState } from 'react';
8
+ import { isArr, isUndefined, locales } from '@pisell/utils';
9
+ import { Iconfont } from '@pisell/materials';
10
+ import { Tag, Tooltip } from 'antd';
11
+ import { useRequest } from 'ahooks';
5
12
  import useEngineContext from "../../../../hooks/useEngineContext";
6
13
  import { getFormData } from "../serve";
14
+ import "./index.less";
7
15
  var RenderValueById = function RenderValueById(props) {
8
- var _field$setting, _field$setting6;
16
+ var _field$setting, _ref, _ref$toString, _field$setting6;
9
17
  var field = props.field,
10
18
  propsValue = props.value;
11
19
  var _useEngineContext = useEngineContext(),
12
20
  appHelper = _useEngineContext.appHelper;
21
+
22
+ // 关联表单展示数量
23
+ var _useState = useState(10),
24
+ _useState2 = _slicedToArray(_useState, 2),
25
+ displayCount = _useState2[0],
26
+ setDisplayCount = _useState2[1];
13
27
  var _getFormData = useRequest(getFormData, {
14
28
  manual: true,
15
- cacheKey: "formOption-".concat((_field$setting = field.setting) === null || _field$setting === void 0 ? void 0 : _field$setting.linkedTable),
29
+ cacheKey: "formOption-".concat((_field$setting = field.setting) === null || _field$setting === void 0 ? void 0 : _field$setting.linkedTable, "-").concat((_ref = propsValue || []) === null || _ref === void 0 || (_ref$toString = _ref.toString) === null || _ref$toString === void 0 ? void 0 : _ref$toString.call(_ref)),
16
30
  staleTime: 500,
17
31
  cacheTime: 5000
18
32
  });
19
33
  var value = useMemo(function () {
20
34
  var v = propsValue;
21
- if (field.filed_type === "form_to_form") {
35
+ if (field.filed_type === 'form_to_form') {
22
36
  if (isArr(propsValue)) {
23
37
  v = propsValue;
24
38
  } else if (propsValue !== null && propsValue !== void 0 && propsValue.form_ids) {
@@ -31,7 +45,7 @@ var RenderValueById = function RenderValueById(props) {
31
45
  }, [propsValue]);
32
46
  useEffect(function () {
33
47
  var _field$setting2;
34
- if (field.filed_type === "form_to_form" && (_field$setting2 = field.setting) !== null && _field$setting2 !== void 0 && _field$setting2.linkedTable) {
48
+ if (field.filed_type === 'form_to_form' && (_field$setting2 = field.setting) !== null && _field$setting2 !== void 0 && _field$setting2.linkedTable) {
35
49
  var _field$setting3;
36
50
  _getFormData.run({
37
51
  form_record_ids: value,
@@ -43,7 +57,7 @@ var RenderValueById = function RenderValueById(props) {
43
57
  }, [field.filed_type, value]);
44
58
  var options = useMemo(function () {
45
59
  var _field$setting4, _field$setting5;
46
- if (field.filed_type === "form_to_form" && field !== null && field !== void 0 && (_field$setting4 = field.setting) !== null && _field$setting4 !== void 0 && _field$setting4.linkedTable) {
60
+ if (field.filed_type === 'form_to_form' && field !== null && field !== void 0 && (_field$setting4 = field.setting) !== null && _field$setting4 !== void 0 && _field$setting4.linkedTable) {
47
61
  var _getFormData$data;
48
62
  return ((_getFormData$data = _getFormData.data) === null || _getFormData$data === void 0 || (_getFormData$data = _getFormData$data.data) === null || _getFormData$data === void 0 || (_getFormData$data = _getFormData$data.list) === null || _getFormData$data === void 0 ? void 0 : _getFormData$data.map(function (item) {
49
63
  return {
@@ -55,24 +69,61 @@ var RenderValueById = function RenderValueById(props) {
55
69
  return field === null || field === void 0 || (_field$setting5 = field.setting) === null || _field$setting5 === void 0 ? void 0 : _field$setting5.customTypeList;
56
70
  }, [field.filed_type, field === null || field === void 0 || (_field$setting6 = field.setting) === null || _field$setting6 === void 0 ? void 0 : _field$setting6.customTypeList, _getFormData.data]);
57
71
  if (isArr(value)) {
72
+ var _field$setting7;
73
+ // 是否是关联表单列表展示样式
74
+ var formListDisplay = (field === null || field === void 0 || (_field$setting7 = field.setting) === null || _field$setting7 === void 0 ? void 0 : _field$setting7.displayStyle) === 'list' && (field === null || field === void 0 ? void 0 : field.filed_type) === 'form_to_form';
58
75
  var _list = options === null || options === void 0 ? void 0 : options.filter(function (i) {
59
76
  return value === null || value === void 0 ? void 0 : value.includes((i === null || i === void 0 ? void 0 : i.id) || i.value);
60
77
  });
61
- var _str = (_list === null || _list === void 0 ? void 0 : _list.map(function (i) {
78
+ var _str = !formListDisplay && (_list === null || _list === void 0 ? void 0 : _list.map(function (i) {
62
79
  var _appHelper$utils;
63
- return /*#__PURE__*/React.createElement(Tag, null, appHelper === null || appHelper === void 0 || (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 ? void 0 : _appHelper$utils.translationShop((i === null || i === void 0 ? void 0 : i.title) || (i === null || i === void 0 ? void 0 : i.label)));
64
- })) || "-";
65
- return /*#__PURE__*/React.createElement("span", null, _str || "-");
80
+ var title = appHelper === null || appHelper === void 0 || (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 ? void 0 : _appHelper$utils.translationShop((i === null || i === void 0 ? void 0 : i.title) || (i === null || i === void 0 ? void 0 : i.label));
81
+ return /*#__PURE__*/React.createElement(Tooltip, {
82
+ title: title
83
+ }, /*#__PURE__*/React.createElement(Tag, {
84
+ className: "pisell-lowcode__booking-form-link-tag-title"
85
+ }, title));
86
+ })) || '-';
87
+
88
+ // 如果列表式展示
89
+ if (formListDisplay) {
90
+ var displayList = (_list === null || _list === void 0 ? void 0 : _list.slice(0, displayCount)) || [];
91
+ _str = (displayList === null || displayList === void 0 ? void 0 : displayList.map(function (i, index) {
92
+ var _appHelper$utils2;
93
+ var title = appHelper === null || appHelper === void 0 || (_appHelper$utils2 = appHelper.utils) === null || _appHelper$utils2 === void 0 ? void 0 : _appHelper$utils2.translationShop((i === null || i === void 0 ? void 0 : i.title) || (i === null || i === void 0 ? void 0 : i.label));
94
+ return /*#__PURE__*/React.createElement("div", {
95
+ className: "pisell-lowcode__booking-form-link-to-list-item"
96
+ }, /*#__PURE__*/React.createElement("span", {
97
+ className: "pisell-lowcode__booking-form-link-to-list-item-index"
98
+ }, index + 1), /*#__PURE__*/React.createElement(Tooltip, {
99
+ title: title
100
+ }, /*#__PURE__*/React.createElement("span", {
101
+ className: "pisell-lowcode__booking-form-link-to-list-item-title"
102
+ }, title)));
103
+ })) || '-';
104
+ }
105
+ return /*#__PURE__*/React.createElement("span", {
106
+ className: formListDisplay ? 'pisell-lowcode__booking-form-link-to-list-wrap' : ''
107
+ }, _str || '-', formListDisplay && (_list === null || _list === void 0 ? void 0 : _list.length) > displayCount && /*#__PURE__*/React.createElement("div", {
108
+ className: "pisell-lowcode__booking-form-link-to-list-item-more",
109
+ onClick: function onClick() {
110
+ return setDisplayCount(function (prev) {
111
+ return Math.min(prev + 10, (_list === null || _list === void 0 ? void 0 : _list.length) || 0);
112
+ });
113
+ }
114
+ }, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.text.form.link.to.another.record.more')), /*#__PURE__*/React.createElement(Iconfont, {
115
+ type: "icona-IconStroke"
116
+ })));
66
117
  }
67
118
  if (!isUndefined(value)) {
68
- var _field$setting7, _appHelper$utils2, _item$, _item$2;
69
- if ((field === null || field === void 0 ? void 0 : field.filed_type) === "select" && !(field !== null && field !== void 0 && (_field$setting7 = field.setting) !== null && _field$setting7 !== void 0 && _field$setting7.version)) {
70
- return /*#__PURE__*/React.createElement("span", null, value || "-");
119
+ var _field$setting8, _appHelper$utils3, _item$, _item$2;
120
+ if ((field === null || field === void 0 ? void 0 : field.filed_type) === 'select' && !(field !== null && field !== void 0 && (_field$setting8 = field.setting) !== null && _field$setting8 !== void 0 && _field$setting8.version)) {
121
+ return /*#__PURE__*/React.createElement("span", null, value || '-');
71
122
  }
72
123
  var _item = options === null || options === void 0 ? void 0 : options.filter(function (i) {
73
124
  return (i === null || i === void 0 ? void 0 : i.id) == value;
74
125
  });
75
- return (appHelper === null || appHelper === void 0 || (_appHelper$utils2 = appHelper.utils) === null || _appHelper$utils2 === void 0 ? void 0 : _appHelper$utils2.translationShop((_item === null || _item === void 0 || (_item$ = _item[0]) === null || _item$ === void 0 ? void 0 : _item$.title) || (_item === null || _item === void 0 || (_item$2 = _item[0]) === null || _item$2 === void 0 ? void 0 : _item$2.label))) || "-";
126
+ return (appHelper === null || appHelper === void 0 || (_appHelper$utils3 = appHelper.utils) === null || _appHelper$utils3 === void 0 ? void 0 : _appHelper$utils3.translationShop((_item === null || _item === void 0 || (_item$ = _item[0]) === null || _item$ === void 0 ? void 0 : _item$.title) || (_item === null || _item === void 0 || (_item$2 = _item[0]) === null || _item$2 === void 0 ? void 0 : _item$2.label))) || '-';
76
127
  }
77
128
  return null;
78
129
  };
@@ -1,3 +1,69 @@
1
1
  .attachment-item {
2
2
  width: 100%;
3
- }
3
+ }
4
+
5
+ .pisell-lowcode__booking-form-link-tag-title {
6
+ overflow: hidden;
7
+ text-overflow: ellipsis;
8
+ white-space: nowrap;
9
+ display: inline-block;
10
+ max-width: 100%;
11
+ }
12
+
13
+ .pisell-lowcode__booking-form-link-to-list-wrap {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 12px;
17
+
18
+
19
+ .pisell-lowcode__booking-form-link-to-list-item-more {
20
+ padding: 4px 6px;
21
+ color: #705dff;
22
+ font-size: 14px;
23
+ cursor: pointer;
24
+ background-color: #f9fafb;
25
+ border-radius: 8px;
26
+ border: 1px solid #eaecf0;
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
30
+ gap: 4px;
31
+ }
32
+
33
+ .pisell-lowcode__booking-form-link-to-list-item {
34
+ display: flex;
35
+ align-items: center;
36
+ gap: 8px;
37
+ background-color: #f9fafb;
38
+ padding: 12px 14px;
39
+ border-radius: 8px;
40
+ border: 1px solid #eaecf0;
41
+ color: #101828;
42
+ font-size: 16px;
43
+ font-weight: 500;
44
+ white-space: normal;
45
+
46
+ .pisell-lowcode__booking-form-link-to-list-item-index {
47
+ padding: 0 5px;
48
+ min-width: 20px;
49
+ min-height: 20px;
50
+ line-height: 20px;
51
+ border-radius: 20px;
52
+ font-size: 14px;
53
+ font-weight: 600;
54
+ background-color: #705dff;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ color: #fff;
59
+ }
60
+
61
+ .pisell-lowcode__booking-form-link-to-list-item-title {
62
+ flex: 1;
63
+ overflow: hidden;
64
+ text-overflow: ellipsis;
65
+ white-space: nowrap;
66
+ display: block;
67
+ }
68
+ }
69
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
4
3
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -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'));
@@ -584,7 +584,8 @@ export var getProductExtend = function getProductExtend(_ref11) {
584
584
  state: state
585
585
  });
586
586
  if (getDuration(_cacheItem === null || _cacheItem === void 0 ? void 0 : _cacheItem.duration) === 'flexible') {
587
- _cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
587
+ var _cacheItem$_data$time;
588
+ _cacheItem._extend.duration = (_cacheItem$_data$time = _cacheItem._data.timeObj) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time.durationSlicesBasedOnTime) === null || _cacheItem$_data$time === void 0 || (_cacheItem$_data$time = _cacheItem$_data$time[0]) === null || _cacheItem$_data$time === void 0 ? void 0 : _cacheItem$_data$time.value;
588
589
 
589
590
  // 计算服务的开始和结束时间
590
591
  var _getServiceTimes = getServiceTimes({
@@ -328,7 +328,7 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
328
328
  // 下一个商品的扩展参数
329
329
  var _extend = {
330
330
  // 时长: 当前商品时长 > 第一个时长
331
- duration: findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
331
+ duration: findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value)
332
332
  };
333
333
 
334
334
  // 如果有上一个商品, 将上一个商品的某些参数 设置到新商品上
@@ -342,7 +342,8 @@ export var getServiceStartTimeAndEndTime = function getServiceStartTimeAndEndTim
342
342
  } else {
343
343
  // 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
344
344
  if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
345
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
345
+ var _timeObj$timeSlices;
346
+ _extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 || (_timeObj$timeSlices = timeObj.timeSlices) === null || _timeObj$timeSlices === void 0 ? void 0 : _timeObj$timeSlices.length) - 1].value;
346
347
  } else {
347
348
  _extend.start_time = lastServerEndDate.format("HH:mm");
348
349
  }
@@ -270,6 +270,7 @@ declare const _default: {
270
270
  'pisell2.text.validity.valid_through': (str: string) => string;
271
271
  'pisell2.text.quotation.product.change.title': string;
272
272
  'pisell2.text.quotation.product.change.describe': string;
273
+ 'pisell2.text.form.link.to.another.record.more': string;
273
274
  };
274
275
  'zh-CN': {
275
276
  'pisell2.text.refunded-amount': string;
@@ -542,6 +543,7 @@ declare const _default: {
542
543
  'pisell2.text.validity.valid_through': (str: string) => string;
543
544
  'pisell2.text.quotation.product.change.title': string;
544
545
  'pisell2.text.quotation.product.change.describe': string;
546
+ 'pisell2.text.form.link.to.another.record.more': string;
545
547
  };
546
548
  'zh-HK': {
547
549
  'pisell2.text.refunded-amount': string;
@@ -814,6 +816,7 @@ declare const _default: {
814
816
  'pisell2.text.validity.valid_through': (str: string) => string;
815
817
  'pisell2.text.quotation.product.change.title': string;
816
818
  'pisell2.text.quotation.product.change.describe': string;
819
+ 'pisell2.text.form.link.to.another.record.more': string;
817
820
  };
818
821
  };
819
822
  export default _default;
@@ -312,7 +312,8 @@ export default {
312
312
  return "Valid through ".concat(str);
313
313
  },
314
314
  'pisell2.text.quotation.product.change.title': "Notification",
315
- 'pisell2.text.quotation.product.change.describe': "Product updates available: Please refresh the following items to load the latest data."
315
+ 'pisell2.text.quotation.product.change.describe': "Product updates available: Please refresh the following items to load the latest data.",
316
+ 'pisell2.text.form.link.to.another.record.more': 'View More'
316
317
  },
317
318
  'zh-CN': {
318
319
  'pisell2.text.refunded-amount': '已退金额',
@@ -631,7 +632,8 @@ export default {
631
632
  return "\u6709\u6548\u671F\u81F3 ".concat(str, " \uFF08\u542B\u5F53\u65E5\uFF09");
632
633
  },
633
634
  'pisell2.text.quotation.product.change.title': "提示",
634
- 'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
635
+ 'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
636
+ 'pisell2.text.form.link.to.another.record.more': '查看更多'
635
637
  },
636
638
  'zh-HK': {
637
639
  'pisell2.text.refunded-amount': '已退金額',
@@ -950,6 +952,7 @@ export default {
950
952
  return "\u6709\u6548\u671F\u81F3 ".concat(str, " \uFF08\u542B\u7576\u65E5\uFF09");
951
953
  },
952
954
  'pisell2.text.quotation.product.change.title': "提示",
953
- 'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
955
+ 'pisell2.text.quotation.product.change.describe': "以下商品信息已更新,请重新编辑相关商品以同步最新数据。",
956
+ 'pisell2.text.form.link.to.another.record.more': '查看更多'
954
957
  }
955
958
  };
@@ -60,7 +60,7 @@ var Duration = function Duration(props) {
60
60
  });
61
61
  }
62
62
  return durationSlicesBasedOnTime;
63
- }, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
63
+ }, [timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime === null || usableTime === void 0 ? void 0 : usableTime.end_at]);
64
64
  useEffect(function () {
65
65
  timeObjChange === null || timeObjChange === void 0 || timeObjChange(times);
66
66
  }, [times]);
@@ -25,7 +25,7 @@ var StartTime = function StartTime(props) {
25
25
  return sliceDayIntoFiveMinutes(slice, locale);
26
26
  }, [slice, locale]);
27
27
  useEffect(function () {
28
- timeObjChange === null || timeObjChange === void 0 ? void 0 : timeObjChange(timeObj);
28
+ timeObjChange === null || timeObjChange === void 0 || timeObjChange(timeObj);
29
29
  }, [timeObj]);
30
30
  var renderOptions = useCallback(function (array) {
31
31
  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "value";
@@ -37,6 +37,6 @@ var StartTime = function StartTime(props) {
37
37
  }, d[label]);
38
38
  });
39
39
  }, []);
40
- return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj.timeSlices));
40
+ return /*#__PURE__*/React.createElement(Select, _extends({}, selectProps, resetProps), renderOptions(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices));
41
41
  };
42
42
  export default StartTime;
@@ -670,7 +670,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
670
670
  if (isSession) {
671
671
  return getDays(cacheItem, 'minutes');
672
672
  }
673
- return findNextDuration(cacheItem.duration, timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
673
+ return findNextDuration(cacheItem.duration, timeObj === null || timeObj === void 0 ? void 0 : timeObj.durationSlicesBasedOnTime, cacheItem === null || cacheItem === void 0 || (_cacheItem$duration = cacheItem.duration) === null || _cacheItem$duration === void 0 ? void 0 : _cacheItem$duration.value);
674
674
  };
675
675
 
676
676
  // 获取上一个服务商品
@@ -694,7 +694,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
694
694
  } else {
695
695
  // 如果上个服务商品的结束时间跨天, 那么设置为最后一个时间段, 不跨天则取上一个的结束时间
696
696
  if (dayjs(lastServerEndDate).isAfter(lastServerStartDate, 'day')) {
697
- _extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
697
+ _extend.start_time = timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices[(timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices.length) - 1].value;
698
698
  } else {
699
699
  _extend.start_time = lastServerEndDate.format("HH:mm");
700
700
  }
@@ -704,7 +704,7 @@ export var getServerItemExtend = function getServerItemExtend(state, cacheItem,
704
704
  // _extend.resource = 0;
705
705
 
706
706
  var findNextSliceProps = {
707
- timeSlices: timeObj.timeSlices,
707
+ timeSlices: timeObj === null || timeObj === void 0 ? void 0 : timeObj.timeSlices,
708
708
  index: 0,
709
709
  date: ''
710
710
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => JSX.Element;
4
3
  export default ErrorTip;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const InformationOptionsModal: (props: any) => JSX.Element;
4
3
  export default InformationOptionsModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type CallToBookProps = {
3
2
  show: boolean;
4
3
  type: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from '../../type';
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const StripePayment: () => JSX.Element;
3
2
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PageLoading: () => JSX.Element;
3
2
  export default PageLoading;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PaymentRequestForm: () => JSX.Element | null;
3
2
  export default PaymentRequestForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
4
3
  export default SetupForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;