@pisell/private-materials 3.4.10 → 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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/forms/single/RenderValueById.d.ts +1 -0
- package/es/components/booking/forms/single/RenderValueById.js +66 -15
- package/es/components/booking/forms/single/index.less +67 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/forms/single/RenderValueById.d.ts +1 -0
- package/lib/components/booking/forms/single/RenderValueById.js +35 -7
- package/lib/components/booking/forms/single/index.less +67 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +3 -3
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
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
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)),
|
|
@@ -18,7 +32,7 @@ var RenderValueById = function RenderValueById(props) {
|
|
|
18
32
|
});
|
|
19
33
|
var value = useMemo(function () {
|
|
20
34
|
var v = propsValue;
|
|
21
|
-
if (field.filed_type ===
|
|
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 ===
|
|
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 ===
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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$
|
|
69
|
-
if ((field === null || field === void 0 ? void 0 : field.filed_type) ===
|
|
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$
|
|
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
|
+
}
|
|
@@ -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
|
};
|