@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,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/booking/info/clientVariant/index.tsx
30
+ var clientVariant_exports = {};
31
+ __export(clientVariant_exports, {
32
+ VerticalClient: () => import_vertical.default
33
+ });
34
+ module.exports = __toCommonJS(clientVariant_exports);
35
+ var import_vertical = __toESM(require("./vertical"));
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ VerticalClient
39
+ });
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import "./SelectDrawer.less";
3
+ interface SelectDrawerProps {
4
+ autoFocus?: boolean;
5
+ onClose: () => void;
6
+ handleSelectClient: (val: any) => void;
7
+ handleCreateItem: () => void;
8
+ handleSelectPet: (val: any) => void;
9
+ childrenValue: any[];
10
+ formData: any;
11
+ searchChange: (val: string) => void;
12
+ options: any;
13
+ loading: boolean;
14
+ client: any;
15
+ loadMore: any;
16
+ showPet: boolean;
17
+ holder: any;
18
+ handleAddPet: any;
19
+ modalOpen: boolean;
20
+ }
21
+ declare const _default: React.ForwardRefExoticComponent<SelectDrawerProps & React.RefAttributes<unknown>>;
22
+ export default _default;
@@ -0,0 +1,356 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/booking/info/clientVariant/vertical/SelectDrawer.tsx
30
+ var SelectDrawer_exports = {};
31
+ __export(SelectDrawer_exports, {
32
+ default: () => SelectDrawer_default
33
+ });
34
+ module.exports = __toCommonJS(SelectDrawer_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_drawer = __toESM(require("../../../components/drawer"));
37
+ var import_antd = require("antd");
38
+ var import_SearchLg = __toESM(require("@pisell/icon/es/SearchLg"));
39
+ var import_utils = require("@pisell/utils");
40
+ var import_Plus = __toESM(require("@pisell/icon/es/Plus"));
41
+ var import_User01 = __toESM(require("@pisell/icon/es/User01"));
42
+ var import_utils2 = require("../../../utils");
43
+ var import_classnames = __toESM(require("classnames"));
44
+ var import_SelectDrawer = require("./SelectDrawer.less");
45
+ var import_format = require("../../../forms/format");
46
+ var import_utils3 = require("../../utils");
47
+ var import_PlusCircle = __toESM(require("@pisell/icon/es/PlusCircle"));
48
+ var ActionItem = (props) => {
49
+ return /* @__PURE__ */ import_react.default.createElement(
50
+ "div",
51
+ {
52
+ className: "vertical-client-select-drawer-item-wrap",
53
+ onClick: props.onClick
54
+ },
55
+ /* @__PURE__ */ import_react.default.createElement("span", { className: "vertical-client-item-icon-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_Plus.default, { style: { fontSize: 28, color: "#7F56D9" } })),
56
+ /* @__PURE__ */ import_react.default.createElement("span", { className: "vertical-client-item-title" }, props.title)
57
+ );
58
+ };
59
+ var Item = ({
60
+ cover,
61
+ onClick,
62
+ title,
63
+ desc,
64
+ coverSize,
65
+ checked,
66
+ style
67
+ }) => {
68
+ return /* @__PURE__ */ import_react.default.createElement(
69
+ "div",
70
+ {
71
+ className: (0, import_classnames.default)("vertical-client-select-drawer-item-wrap", {
72
+ ["checked"]: checked
73
+ }),
74
+ onClick,
75
+ style
76
+ },
77
+ /* @__PURE__ */ import_react.default.createElement(
78
+ import_antd.Avatar,
79
+ {
80
+ className: "pisell-lowcode__booking-client-list-item-avatar",
81
+ src: import_utils.image.ali(cover, 100) || void 0,
82
+ size: coverSize || 56,
83
+ icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
84
+ }
85
+ ),
86
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-name" }, title), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-desc" }, (desc || []).map((d) => /* @__PURE__ */ import_react.default.createElement("div", { className: "", title: d }, d))))
87
+ );
88
+ };
89
+ var defaultArr = [];
90
+ var SelectDrawer = (props, ref) => {
91
+ const {
92
+ autoFocus,
93
+ onClose,
94
+ handleSelectClient,
95
+ handleCreateItem,
96
+ childrenValue,
97
+ handleSelectPet,
98
+ formData,
99
+ searchChange,
100
+ options,
101
+ loading,
102
+ holder,
103
+ client,
104
+ loadMore,
105
+ showPet,
106
+ handleAddPet,
107
+ modalOpen
108
+ } = props;
109
+ const form = (formData == null ? void 0 : formData[0]) || {};
110
+ const valList = (childrenValue == null ? void 0 : childrenValue[form.id]) || defaultArr;
111
+ const [_value, setValue] = (0, import_react.useState)(valList);
112
+ const clientRef = (0, import_react.useRef)();
113
+ (0, import_react.useEffect)(() => {
114
+ setValue(valList.map((item) => ({ ...item, id: item.id || item.form_record_id })));
115
+ }, [valList]);
116
+ const searchRef = (0, import_react.useRef)();
117
+ const [open, setOpen] = (0, import_react.useState)(false);
118
+ const [search, setSearch] = (0, import_react.useState)("");
119
+ (0, import_react.useEffect)(() => {
120
+ if (!modalOpen) {
121
+ setOpen(false);
122
+ }
123
+ }, [modalOpen]);
124
+ const closeDrawer = () => {
125
+ setOpen(false);
126
+ setSearch("");
127
+ onClose == null ? void 0 : onClose();
128
+ };
129
+ const handleOpenModal = () => {
130
+ setOpen(true);
131
+ if (autoFocus) {
132
+ setTimeout(() => {
133
+ var _a, _b;
134
+ (_b = (_a = searchRef.current) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
135
+ }, 400);
136
+ }
137
+ };
138
+ (0, import_react.useImperativeHandle)(ref, () => {
139
+ return {
140
+ open: handleOpenModal,
141
+ close: () => {
142
+ setOpen(false);
143
+ }
144
+ // setValue: set_value,
145
+ };
146
+ });
147
+ (0, import_react.useEffect)(() => {
148
+ if (!open) {
149
+ clientRef.current = null;
150
+ }
151
+ }, [open]);
152
+ const getNickname = (0, import_react.useCallback)(
153
+ (item) => {
154
+ if ((0, import_utils2.isWalkIn)(item == null ? void 0 : item.id)) {
155
+ return import_utils.locales.getText("pisell2.text.select-a-customer");
156
+ }
157
+ return item.name || (item.display_name || "").trim() || (item.nickname || "").trim() || "";
158
+ },
159
+ [import_utils.locales.localeMap]
160
+ );
161
+ const handleAddClient = () => {
162
+ handleCreateItem();
163
+ };
164
+ const handleChildrenValueChange = (value, item) => {
165
+ var _a;
166
+ let clientId = client.id;
167
+ if (!(client == null ? void 0 : client.id) || client.id === 1) {
168
+ clientId = ((_a = clientRef.current) == null ? void 0 : _a.id) || item.id;
169
+ }
170
+ if (mode === "single") {
171
+ if (!(client == null ? void 0 : client.id) || client.id === 1) {
172
+ handleSelectClient([item]);
173
+ }
174
+ handleSelectPet({
175
+ [form.id]: (0, import_format.formatAddFormValues)({
176
+ clientId,
177
+ value: [value],
178
+ data_range: holder.data_range
179
+ })
180
+ });
181
+ setTimeout(() => {
182
+ closeDrawer();
183
+ });
184
+ } else {
185
+ const index = _value.findIndex(
186
+ (item2) => item2.id === value.id || item2.form_record_id === value.id
187
+ );
188
+ if (!clientRef.current) {
189
+ clientRef.current = item;
190
+ }
191
+ if (index >= 0) {
192
+ const newList = [..._value];
193
+ newList.splice(index, 1);
194
+ setValue(
195
+ (0, import_format.formatAddFormValues)({
196
+ clientId,
197
+ value: newList,
198
+ data_range: holder.data_range
199
+ })
200
+ );
201
+ } else {
202
+ setValue(
203
+ (0, import_format.formatAddFormValues)({
204
+ clientId,
205
+ value: [..._value, value],
206
+ data_range: holder.data_range
207
+ })
208
+ );
209
+ }
210
+ }
211
+ };
212
+ const mode = (0, import_react.useMemo)(() => {
213
+ if (["form"].includes(holder == null ? void 0 : holder.type)) {
214
+ return "single";
215
+ }
216
+ if (["table"].includes(holder == null ? void 0 : holder.type)) {
217
+ return "multiple";
218
+ }
219
+ return holder == null ? void 0 : holder.type;
220
+ }, [holder == null ? void 0 : holder.type]);
221
+ const handleOk = () => {
222
+ var _a;
223
+ if (!(client == null ? void 0 : client.id) || (client == null ? void 0 : client.id) === 1) {
224
+ handleSelectClient([clientRef.current]);
225
+ }
226
+ handleSelectPet({
227
+ [(_a = holder == null ? void 0 : holder.form) == null ? void 0 : _a.id]: _value
228
+ });
229
+ closeDrawer();
230
+ };
231
+ const handleClientClick = (item) => {
232
+ var _a;
233
+ handleSelectClient([item]);
234
+ if (mode === "multiple") {
235
+ const isHasChildren = _value.some(
236
+ (val) => item.form_record.some(
237
+ (f) => f.id || f.form_record_id === val.id || val.form_record_id
238
+ )
239
+ );
240
+ handleSelectPet({
241
+ [form.id]: (0, import_utils3.uniqueByField)(
242
+ [
243
+ ...(0, import_format.sortFormValues)(_value, item.id),
244
+ ...isHasChildren ? [] : (0, import_format.formatAddFormValues)({
245
+ clientId: item.id,
246
+ data_range: holder.data_range,
247
+ value: (_a = item.form_record) == null ? void 0 : _a.map((f) => ({ ...f, customer: item }))
248
+ })
249
+ ],
250
+ "id"
251
+ )
252
+ });
253
+ }
254
+ closeDrawer();
255
+ };
256
+ return /* @__PURE__ */ import_react.default.createElement(
257
+ import_drawer.default,
258
+ {
259
+ title: import_utils.locales.getText("pisell2.text.select-customer"),
260
+ open,
261
+ onClose: closeDrawer,
262
+ header: /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
263
+ import_antd.Input,
264
+ {
265
+ ref: searchRef,
266
+ prefix: /* @__PURE__ */ import_react.default.createElement(import_SearchLg.default, null),
267
+ style: { margin: "16px 0", height: 44 },
268
+ placeholder: import_utils.locales.getText("pisell2.text.search"),
269
+ value: search,
270
+ allowClear: true,
271
+ onChange: (e) => {
272
+ setSearch(e.target.value);
273
+ if (searchChange) {
274
+ searchChange(e.target.value);
275
+ }
276
+ }
277
+ }
278
+ )),
279
+ width: 300,
280
+ getContainer: false,
281
+ destroyOnClose: true,
282
+ push: { distance: 180 },
283
+ footer: mode === "multiple" && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { block: true, type: "primary", onClick: handleOk }, import_utils.locales.getText("pisell2.text.apply")))
284
+ },
285
+ /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: loading }, /* @__PURE__ */ import_react.default.createElement("div", { className: "vertical-client-select-drawer-content-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "vertical-client-select-drawer-top" }, /* @__PURE__ */ import_react.default.createElement(
286
+ ActionItem,
287
+ {
288
+ title: import_utils.locales.getText("pisell2.text.create-new-customer"),
289
+ onClick: handleAddClient
290
+ }
291
+ ), /* @__PURE__ */ import_react.default.createElement(
292
+ ActionItem,
293
+ {
294
+ title: "Walk-In",
295
+ onClick: () => {
296
+ handleSelectClient([]);
297
+ closeDrawer();
298
+ }
299
+ }
300
+ )), !!options.length ? options.map((item) => {
301
+ var _a;
302
+ return /* @__PURE__ */ import_react.default.createElement(
303
+ "div",
304
+ {
305
+ className: "vertical-client-select-drawer-content-item",
306
+ key: item.id
307
+ },
308
+ /* @__PURE__ */ import_react.default.createElement(
309
+ Item,
310
+ {
311
+ onClick: () => handleClientClick(item),
312
+ cover: item.cover,
313
+ title: getNickname(item),
314
+ desc: [item.email, item.phone],
315
+ checked: item.id === client.id,
316
+ style: showPet ? { marginBottom: 6 } : {}
317
+ }
318
+ ),
319
+ showPet && /* @__PURE__ */ import_react.default.createElement("div", { className: "vertical-client-select-drawer-content-item-children" }, ((item == null ? void 0 : item.form_record) || []).map((f) => {
320
+ const checked = _value.some(
321
+ (item2) => item2.id === f.id || item2.form_record_id === f.id
322
+ );
323
+ return /* @__PURE__ */ import_react.default.createElement(
324
+ "div",
325
+ {
326
+ onClick: () => {
327
+ handleChildrenValueChange({ ...f, customer: item }, item);
328
+ },
329
+ id: `${f.id}`,
330
+ key: f.id,
331
+ className: (0, import_classnames.default)(
332
+ "vertical-client-select-drawer-content-item-children-item",
333
+ {
334
+ ["checked"]: checked
335
+ }
336
+ )
337
+ },
338
+ mode === "multiple" && /* @__PURE__ */ import_react.default.createElement(import_antd.Checkbox, { checked }),
339
+ /* @__PURE__ */ import_react.default.createElement(Item, { coverSize: 48, title: f.main_field })
340
+ );
341
+ }), /* @__PURE__ */ import_react.default.createElement(
342
+ "div",
343
+ {
344
+ className: "pisell-lowcode__custom-select-create",
345
+ onClick: () => {
346
+ handleAddPet == null ? void 0 : handleAddPet(item);
347
+ },
348
+ style: { padding: 16 }
349
+ },
350
+ /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_PlusCircle.default, { className: "pisell-lowcode__custom-select-create-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__custom-select-create-txt" }, `${import_utils.locales.getText("pisell2.text.create-new")} ${((_a = holder.form) == null ? void 0 : _a.title) || "-"}`))
351
+ ), /* @__PURE__ */ import_react.default.createElement("div", null))
352
+ );
353
+ }) : /* @__PURE__ */ import_react.default.createElement(import_antd.Empty, { image: import_antd.Empty.PRESENTED_IMAGE_SIMPLE }), /* @__PURE__ */ import_react.default.createElement("div", null, loadMore)))
354
+ );
355
+ };
356
+ var SelectDrawer_default = (0, import_react.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;