@pisell/private-materials 3.0.83 → 3.0.85

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 (75) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +2 -2
  9. package/es/components/booking/components/addButton/index.js +3 -3
  10. package/es/components/booking/components/customSelect/index.d.ts +3 -0
  11. package/es/components/booking/components/customSelect/index.js +10 -4
  12. package/es/components/booking/components/customSelect/index.less +0 -1
  13. package/es/components/booking/components/drawer/index.d.ts +1 -0
  14. package/es/components/booking/components/drawer/index.js +4 -2
  15. package/es/components/booking/forms/format.d.ts +1 -0
  16. package/es/components/booking/forms/format.js +14 -0
  17. package/es/components/booking/info/client/index.js +3 -0
  18. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +40 -0
  19. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +379 -0
  20. package/es/components/booking/info/clientVariant/index.d.ts +1 -0
  21. package/es/components/booking/info/clientVariant/index.js +1 -0
  22. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +22 -0
  23. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +348 -0
  24. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
  25. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  26. package/es/components/booking/info/clientVariant/vertical/index.js +247 -0
  27. package/es/components/booking/info/clientVariant/vertical/index.less +83 -0
  28. package/es/components/booking/info/index.js +1 -1
  29. package/es/components/booking/info/pet/index.d.ts +11 -1
  30. package/es/components/booking/info/pet/index.js +44 -29
  31. package/es/components/booking/info/pet/index.less +3 -0
  32. package/es/components/booking/info/service/addService/index.js +1 -1
  33. package/es/components/booking/info/service/editService/index.js +12 -4
  34. package/es/components/booking/info/utils.d.ts +1 -0
  35. package/es/components/booking/info/utils.js +12 -0
  36. package/es/components/booking/locales.d.ts +6 -0
  37. package/es/components/booking/locales.js +9 -3
  38. package/es/components/booking/model.d.ts +2 -0
  39. package/es/index.d.ts +1 -0
  40. package/es/index.js +1 -0
  41. package/lib/components/booking/components/addButton/index.js +2 -2
  42. package/lib/components/booking/components/customSelect/index.d.ts +3 -0
  43. package/lib/components/booking/components/customSelect/index.js +10 -4
  44. package/lib/components/booking/components/customSelect/index.less +0 -1
  45. package/lib/components/booking/components/drawer/index.d.ts +1 -0
  46. package/lib/components/booking/components/drawer/index.js +2 -2
  47. package/lib/components/booking/forms/format.d.ts +1 -0
  48. package/lib/components/booking/forms/format.js +17 -2
  49. package/lib/components/booking/info/client/index.js +2 -1
  50. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +40 -0
  51. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +309 -0
  52. package/lib/components/booking/info/clientVariant/index.d.ts +1 -0
  53. package/lib/components/booking/info/clientVariant/index.js +39 -0
  54. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +22 -0
  55. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +356 -0
  56. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
  57. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  58. package/lib/components/booking/info/clientVariant/vertical/index.js +277 -0
  59. package/lib/components/booking/info/clientVariant/vertical/index.less +83 -0
  60. package/lib/components/booking/info/index.js +1 -1
  61. package/lib/components/booking/info/pet/index.d.ts +11 -1
  62. package/lib/components/booking/info/pet/index.js +23 -12
  63. package/lib/components/booking/info/pet/index.less +3 -0
  64. package/lib/components/booking/info/service/addService/index.js +1 -1
  65. package/lib/components/booking/info/service/editService/index.js +18 -14
  66. package/lib/components/booking/info/utils.d.ts +1 -0
  67. package/lib/components/booking/info/utils.js +16 -2
  68. package/lib/components/booking/locales.d.ts +6 -0
  69. package/lib/components/booking/locales.js +9 -3
  70. package/lib/components/booking/model.d.ts +2 -0
  71. package/lib/index.d.ts +1 -0
  72. package/lib/index.js +5 -2
  73. package/lowcode/booking-vertical-client/meta.ts +124 -0
  74. package/lowcode/vertical-client/meta.ts +71 -0
  75. package/package.json +1 -1
@@ -0,0 +1,348 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ 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."); }
10
+ 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); }
11
+ 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; }
12
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
18
+ import Drawer from "../../../components/drawer";
19
+ import { Avatar, Button, Checkbox, Empty, Input, Spin } from "antd";
20
+ import SearchLg from "@pisell/icon/es/SearchLg";
21
+ import { image, locales } from "@pisell/utils";
22
+ import Plus from "@pisell/icon/es/Plus";
23
+ import User01 from "@pisell/icon/es/User01";
24
+ import { isWalkIn as getIsWalkIn } from "../../../utils";
25
+ import classNames from "classnames";
26
+ import "./SelectDrawer.less";
27
+ import { formatAddFormValues, sortFormValues } from "../../../forms/format";
28
+ import { uniqueByField } from "../../utils";
29
+ import PlusCircle from "@pisell/icon/es/PlusCircle";
30
+ var ActionItem = function ActionItem(props) {
31
+ return /*#__PURE__*/React.createElement("div", {
32
+ className: "vertical-client-select-drawer-item-wrap",
33
+ onClick: props.onClick
34
+ }, /*#__PURE__*/React.createElement("span", {
35
+ className: "vertical-client-item-icon-wrap"
36
+ }, /*#__PURE__*/React.createElement(Plus, {
37
+ style: {
38
+ fontSize: 28,
39
+ color: "#7F56D9"
40
+ }
41
+ })), /*#__PURE__*/React.createElement("span", {
42
+ className: "vertical-client-item-title"
43
+ }, props.title));
44
+ };
45
+ var Item = function Item(_ref) {
46
+ var cover = _ref.cover,
47
+ onClick = _ref.onClick,
48
+ title = _ref.title,
49
+ desc = _ref.desc,
50
+ coverSize = _ref.coverSize,
51
+ checked = _ref.checked,
52
+ style = _ref.style;
53
+ return /*#__PURE__*/React.createElement("div", {
54
+ className: classNames("vertical-client-select-drawer-item-wrap", _defineProperty({}, "checked", checked)),
55
+ onClick: onClick,
56
+ style: style
57
+ }, /*#__PURE__*/React.createElement(Avatar, {
58
+ className: "pisell-lowcode__booking-client-list-item-avatar",
59
+ src: image.ali(cover, 100) || undefined,
60
+ size: coverSize || 56,
61
+ icon: /*#__PURE__*/React.createElement(User01, {
62
+ className: "pisell-lowcode__booking-client-list-item-avatar-icon"
63
+ })
64
+ }), /*#__PURE__*/React.createElement("div", {
65
+ className: "pisell-lowcode__booking-client-list-item-info"
66
+ }, /*#__PURE__*/React.createElement("div", {
67
+ className: "pisell-lowcode__booking-client-list-item-info-name"
68
+ }, title), /*#__PURE__*/React.createElement("div", {
69
+ className: "pisell-lowcode__booking-client-list-item-info-desc"
70
+ }, (desc || []).map(function (d) {
71
+ return /*#__PURE__*/React.createElement("div", {
72
+ className: "",
73
+ title: d
74
+ }, d);
75
+ }))));
76
+ };
77
+ var defaultArr = [];
78
+ var SelectDrawer = function SelectDrawer(props, ref) {
79
+ var autoFocus = props.autoFocus,
80
+ onClose = props.onClose,
81
+ handleSelectClient = props.handleSelectClient,
82
+ handleCreateItem = props.handleCreateItem,
83
+ childrenValue = props.childrenValue,
84
+ handleSelectPet = props.handleSelectPet,
85
+ formData = props.formData,
86
+ searchChange = props.searchChange,
87
+ options = props.options,
88
+ loading = props.loading,
89
+ holder = props.holder,
90
+ client = props.client,
91
+ loadMore = props.loadMore,
92
+ showPet = props.showPet,
93
+ handleAddPet = props.handleAddPet,
94
+ modalOpen = props.modalOpen;
95
+ var form = (formData === null || formData === void 0 ? void 0 : formData[0]) || {};
96
+ var valList = (childrenValue === null || childrenValue === void 0 ? void 0 : childrenValue[form.id]) || defaultArr;
97
+ var _useState = useState(valList),
98
+ _useState2 = _slicedToArray(_useState, 2),
99
+ _value = _useState2[0],
100
+ setValue = _useState2[1];
101
+ var clientRef = useRef();
102
+ useEffect(function () {
103
+ setValue(valList.map(function (item) {
104
+ return _objectSpread(_objectSpread({}, item), {}, {
105
+ id: item.id || item.form_record_id
106
+ });
107
+ }));
108
+ }, [valList]);
109
+ var searchRef = useRef();
110
+
111
+ // 是否打开弹窗
112
+ var _useState3 = useState(false),
113
+ _useState4 = _slicedToArray(_useState3, 2),
114
+ open = _useState4[0],
115
+ setOpen = _useState4[1];
116
+ var _useState5 = useState(""),
117
+ _useState6 = _slicedToArray(_useState5, 2),
118
+ search = _useState6[0],
119
+ setSearch = _useState6[1];
120
+ useEffect(function () {
121
+ if (!modalOpen) {
122
+ setOpen(false);
123
+ }
124
+ }, [modalOpen]);
125
+ var closeDrawer = function closeDrawer() {
126
+ // 关闭
127
+ setOpen(false);
128
+ // 清空搜索
129
+ setSearch("");
130
+ onClose === null || onClose === void 0 ? void 0 : onClose();
131
+ };
132
+ var handleOpenModal = function handleOpenModal() {
133
+ setOpen(true);
134
+ if (autoFocus) {
135
+ setTimeout(function () {
136
+ var _searchRef$current, _searchRef$current$fo;
137
+ (_searchRef$current = searchRef.current) === null || _searchRef$current === void 0 ? void 0 : (_searchRef$current$fo = _searchRef$current.focus) === null || _searchRef$current$fo === void 0 ? void 0 : _searchRef$current$fo.call(_searchRef$current);
138
+ }, 400);
139
+ }
140
+ };
141
+ useImperativeHandle(ref, function () {
142
+ return {
143
+ open: handleOpenModal,
144
+ close: function close() {
145
+ setOpen(false);
146
+ }
147
+ // setValue: set_value,
148
+ };
149
+ });
150
+
151
+ useEffect(function () {
152
+ if (!open) {
153
+ clientRef.current = null;
154
+ }
155
+ }, [open]);
156
+ var getNickname = useCallback(function (item) {
157
+ if (getIsWalkIn(item === null || item === void 0 ? void 0 : item.id)) {
158
+ return locales.getText("pisell2.text.select-a-customer");
159
+ }
160
+ return item.name || (item.display_name || "").trim() || (item.nickname || "").trim() || "";
161
+ }, [locales.localeMap]);
162
+ var handleAddClient = function handleAddClient() {
163
+ handleCreateItem();
164
+ };
165
+ var handleChildrenValueChange = function handleChildrenValueChange(value, item) {
166
+ var clientId = client.id;
167
+ if (!(client !== null && client !== void 0 && client.id) || client.id === 1) {
168
+ var _clientRef$current;
169
+ clientId = ((_clientRef$current = clientRef.current) === null || _clientRef$current === void 0 ? void 0 : _clientRef$current.id) || item.id;
170
+ }
171
+ if (mode === "single") {
172
+ if (!(client !== null && client !== void 0 && client.id) || client.id === 1) {
173
+ handleSelectClient([item]);
174
+ }
175
+ handleSelectPet(_defineProperty({}, form.id, formatAddFormValues({
176
+ clientId: clientId,
177
+ value: [value],
178
+ data_range: holder.data_range
179
+ })));
180
+ setTimeout(function () {
181
+ closeDrawer();
182
+ });
183
+ } else {
184
+ var index = _value.findIndex(function (item) {
185
+ return item.id === value.id || item.form_record_id === value.id;
186
+ });
187
+ if (!clientRef.current) {
188
+ clientRef.current = item;
189
+ }
190
+ if (index >= 0) {
191
+ var newList = _toConsumableArray(_value);
192
+ newList.splice(index, 1);
193
+ setValue(formatAddFormValues({
194
+ clientId: clientId,
195
+ value: newList,
196
+ data_range: holder.data_range
197
+ }));
198
+ } else {
199
+ setValue(formatAddFormValues({
200
+ clientId: clientId,
201
+ value: [].concat(_toConsumableArray(_value), [value]),
202
+ data_range: holder.data_range
203
+ }));
204
+ }
205
+ }
206
+ };
207
+ var mode = useMemo(function () {
208
+ if (["form"].includes(holder === null || holder === void 0 ? void 0 : holder.type)) {
209
+ return "single";
210
+ }
211
+ if (["table"].includes(holder === null || holder === void 0 ? void 0 : holder.type)) {
212
+ return "multiple";
213
+ }
214
+ return holder === null || holder === void 0 ? void 0 : holder.type;
215
+ }, [holder === null || holder === void 0 ? void 0 : holder.type]);
216
+ var handleOk = function handleOk() {
217
+ var _holder$form;
218
+ if (!(client !== null && client !== void 0 && client.id) || (client === null || client === void 0 ? void 0 : client.id) === 1) {
219
+ handleSelectClient([clientRef.current]);
220
+ }
221
+ handleSelectPet(_defineProperty({}, holder === null || holder === void 0 ? void 0 : (_holder$form = holder.form) === null || _holder$form === void 0 ? void 0 : _holder$form.id, _value));
222
+ closeDrawer();
223
+ };
224
+ var handleClientClick = function handleClientClick(item) {
225
+ handleSelectClient([item]);
226
+ if (mode === "multiple") {
227
+ var _item$form_record;
228
+ var isHasChildren = _value.some(function (val) {
229
+ return item.form_record.some(function (f) {
230
+ return f.id || f.form_record_id === val.id || val.form_record_id;
231
+ });
232
+ });
233
+ handleSelectPet(_defineProperty({}, form.id, uniqueByField([].concat(_toConsumableArray(sortFormValues(_value, item.id)), _toConsumableArray(isHasChildren ? [] : formatAddFormValues({
234
+ clientId: item.id,
235
+ data_range: holder.data_range,
236
+ value: (_item$form_record = item.form_record) === null || _item$form_record === void 0 ? void 0 : _item$form_record.map(function (f) {
237
+ return _objectSpread(_objectSpread({}, f), {}, {
238
+ customer: item
239
+ });
240
+ })
241
+ }))), "id")));
242
+ }
243
+ closeDrawer();
244
+ };
245
+ return /*#__PURE__*/React.createElement(Drawer, {
246
+ title: locales.getText("pisell2.text.select-customer"),
247
+ open: open,
248
+ onClose: closeDrawer,
249
+ header: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
250
+ ref: searchRef,
251
+ prefix: /*#__PURE__*/React.createElement(SearchLg, null),
252
+ style: {
253
+ margin: "16px 0",
254
+ height: 44
255
+ },
256
+ placeholder: locales.getText("pisell2.text.search"),
257
+ value: search,
258
+ allowClear: true,
259
+ onChange: function onChange(e) {
260
+ setSearch(e.target.value);
261
+ if (searchChange) {
262
+ searchChange(e.target.value);
263
+ }
264
+ }
265
+ })),
266
+ width: 300
267
+ // titleNoWrap={true}
268
+ ,
269
+ getContainer: false,
270
+ destroyOnClose: true,
271
+ push: {
272
+ distance: 180
273
+ },
274
+ footer: mode === "multiple" && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
275
+ block: true,
276
+ type: "primary",
277
+ onClick: handleOk
278
+ }, locales.getText("pisell2.text.apply")))
279
+ }, /*#__PURE__*/React.createElement(Spin, {
280
+ spinning: loading
281
+ }, /*#__PURE__*/React.createElement("div", {
282
+ className: "vertical-client-select-drawer-content-wrap"
283
+ }, /*#__PURE__*/React.createElement("div", {
284
+ className: "vertical-client-select-drawer-top"
285
+ }, /*#__PURE__*/React.createElement(ActionItem, {
286
+ title: locales.getText("pisell2.text.create-new-customer"),
287
+ onClick: handleAddClient
288
+ }), /*#__PURE__*/React.createElement(ActionItem, {
289
+ title: "Walk-In",
290
+ onClick: function onClick() {
291
+ handleSelectClient([]);
292
+ closeDrawer();
293
+ }
294
+ })), !!options.length ? options.map(function (item) {
295
+ var _holder$form2;
296
+ return /*#__PURE__*/React.createElement("div", {
297
+ className: "vertical-client-select-drawer-content-item",
298
+ key: item.id
299
+ }, /*#__PURE__*/React.createElement(Item, {
300
+ onClick: function onClick() {
301
+ return handleClientClick(item);
302
+ },
303
+ cover: item.cover,
304
+ title: getNickname(item),
305
+ desc: [item.email, item.phone],
306
+ checked: item.id === client.id,
307
+ style: showPet ? {
308
+ marginBottom: 6
309
+ } : {}
310
+ }), showPet && /*#__PURE__*/React.createElement("div", {
311
+ className: "vertical-client-select-drawer-content-item-children"
312
+ }, ((item === null || item === void 0 ? void 0 : item.form_record) || []).map(function (f) {
313
+ var checked = _value.some(function (item) {
314
+ return item.id === f.id || item.form_record_id === f.id;
315
+ });
316
+ return /*#__PURE__*/React.createElement("div", {
317
+ onClick: function onClick() {
318
+ handleChildrenValueChange(_objectSpread(_objectSpread({}, f), {}, {
319
+ customer: item
320
+ }), item);
321
+ },
322
+ id: "".concat(f.id),
323
+ key: f.id,
324
+ className: classNames("vertical-client-select-drawer-content-item-children-item", _defineProperty({}, "checked", checked))
325
+ }, mode === "multiple" && /*#__PURE__*/React.createElement(Checkbox, {
326
+ checked: checked
327
+ }), /*#__PURE__*/React.createElement(Item, {
328
+ coverSize: 48,
329
+ title: f.main_field
330
+ }));
331
+ }), /*#__PURE__*/React.createElement("div", {
332
+ className: "pisell-lowcode__custom-select-create",
333
+ onClick: function onClick() {
334
+ handleAddPet === null || handleAddPet === void 0 ? void 0 : handleAddPet(item);
335
+ },
336
+ style: {
337
+ padding: 16
338
+ }
339
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PlusCircle, {
340
+ className: "pisell-lowcode__custom-select-create-icon"
341
+ }), /*#__PURE__*/React.createElement("span", {
342
+ className: "pisell-lowcode__custom-select-create-txt"
343
+ }, "".concat(locales.getText("pisell2.text.create-new"), " ").concat(((_holder$form2 = holder.form) === null || _holder$form2 === void 0 ? void 0 : _holder$form2.title) || "-")))), /*#__PURE__*/React.createElement("div", null)));
344
+ }) : /*#__PURE__*/React.createElement(Empty, {
345
+ image: Empty.PRESENTED_IMAGE_SIMPLE
346
+ }), /*#__PURE__*/React.createElement("div", null, loadMore))));
347
+ };
348
+ export default /*#__PURE__*/forwardRef(SelectDrawer);
@@ -0,0 +1,86 @@
1
+ .vertical-client-select-drawer-content-wrap {
2
+ padding:0 12px 12px;
3
+ }
4
+ .vertical-client-select-drawer-top {
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: 24px;
8
+ padding: 0 0 12px;
9
+ border-bottom: 1px solid var(--Gray-200, #eaecf0);
10
+ }
11
+
12
+ .vertical-client-select-drawer-item-wrap {
13
+ display: flex;
14
+ padding: 8px 12px;
15
+ align-items: center;
16
+ gap: 10px;
17
+ align-self: stretch;
18
+ cursor: pointer;
19
+ border-radius: 8px;
20
+ overflow: hidden;
21
+ &:hover {
22
+ background: var(--Gray-true-50, #fafafa);
23
+ }
24
+ &.checked {
25
+ background: var(--Gray-true-50, #EAECF0);
26
+ }
27
+ .pisell-lowcode__booking-client-list-item-avatar {
28
+ flex-shrink: 0;
29
+ }
30
+ .pisell-lowcode__booking-client-list-item-info {
31
+ overflow: hidden;
32
+ }
33
+ .vertical-client-item-icon-wrap {
34
+ display: flex;
35
+ width: 56px;
36
+ height: 56px;
37
+ justify-content: center;
38
+ align-items: center;
39
+ gap: 10px;
40
+ border-radius: 50px;
41
+ background: var(--Primary-100, #f4ebff);
42
+ }
43
+ .vertical-client-item-title {
44
+ color: var(--Text-Text_1, #1B1B1B);
45
+ font-size: 16px;
46
+ font-style: normal;
47
+ font-weight: 600;
48
+ line-height: 22px; /* 137.5% */
49
+ }
50
+ }
51
+ .vertical-client-select-drawer-content-item {
52
+ //border-bottom: 1px solid var(--Gray-200, #eaecf0);
53
+ //margin-bottom: 24px;
54
+ padding: 12px 0;
55
+ border: none;
56
+ }
57
+ .vertical-client-select-drawer-content-item-children {
58
+ margin-left: 18px;
59
+ display: flex;
60
+ flex-direction: column;
61
+ gap: 16px;
62
+ border-bottom: 1px solid var(--Gray-200, #eaecf0);
63
+ .pisell-lowcode__custom-select-create {
64
+ border: none;
65
+ }
66
+ .vertical-client-select-drawer-content-item-children-item {
67
+ display: flex;
68
+ border-radius: 8px;
69
+ padding: 0 12px;
70
+ cursor: pointer;
71
+ &:hover {
72
+ background: var(--Gray-true-50, #fafafa);
73
+ }
74
+ &.checked {
75
+ background: var(--Gray-true-50, #EAECF0);
76
+ }
77
+ .vertical-client-select-drawer-item-wrap {
78
+ &:hover {
79
+ background-color: transparent;
80
+ }
81
+ &.checked {
82
+ background-color: transparent;
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface VerticalClientProps {
4
+ globalState: any;
5
+ setGlobalState: any;
6
+ }
7
+ declare const VerticalClient: (props: VerticalClientProps) => React.JSX.Element;
8
+ export default VerticalClient;