@pisell/private-materials 3.0.37 → 3.0.38
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 +8 -8
- 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 +8 -8
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/index.js +26 -10
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/components/customSelect/index.js +13 -3
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/client/index.js +5 -6
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +1 -2
- package/es/components/booking/info/pet/index.js +59 -31
- package/es/components/booking/info/service/addService/index.js +6 -9
- package/es/components/booking/model.d.ts +1 -2
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +1 -2
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +1 -2
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/index.js +23 -8
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/components/customSelect/index.js +11 -2
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/client/index.js +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +1 -2
- package/lib/components/booking/info/pet/index.js +36 -16
- package/lib/components/booking/info/service/addService/index.js +5 -5
- package/lib/components/booking/model.d.ts +1 -2
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +1 -2
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +1 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/package.json +3 -3
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
2
|
export declare const walkInData: {
|
|
4
3
|
id: number;
|
|
5
4
|
nickname: string;
|
|
6
5
|
};
|
|
7
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
6
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
8
7
|
state: FormState;
|
|
9
8
|
} & {
|
|
10
9
|
dispatch: (params: {
|
|
@@ -76,10 +76,10 @@ var Pet = () => {
|
|
|
76
76
|
formData: [
|
|
77
77
|
{
|
|
78
78
|
...formData,
|
|
79
|
-
...formData.form,
|
|
80
|
-
form_id: formData.form.id,
|
|
81
|
-
options: _list
|
|
82
|
-
type: formData.type
|
|
79
|
+
// ...formData.form,
|
|
80
|
+
// form_id: formData.form.id,
|
|
81
|
+
options: _list
|
|
82
|
+
// type: formData.type,
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
85
|
pets: _list
|
|
@@ -89,7 +89,6 @@ var Pet = () => {
|
|
|
89
89
|
};
|
|
90
90
|
const getForms = async (isUpdateValue = true) => {
|
|
91
91
|
var _a2, _b2;
|
|
92
|
-
setLoading(true);
|
|
93
92
|
let values = {
|
|
94
93
|
...state.pet.value
|
|
95
94
|
};
|
|
@@ -106,17 +105,26 @@ var Pet = () => {
|
|
|
106
105
|
formData = (formData || []).filter(
|
|
107
106
|
(d) => d.form_id === (params == null ? void 0 : params.form_id)
|
|
108
107
|
)[0];
|
|
108
|
+
let payload = {
|
|
109
|
+
formData: [
|
|
110
|
+
{
|
|
111
|
+
...formData,
|
|
112
|
+
...formData.form,
|
|
113
|
+
form_id: formData.form.id,
|
|
114
|
+
options: [],
|
|
115
|
+
type: formData.type
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
};
|
|
109
119
|
if (isSetValue) {
|
|
110
120
|
values[params == null ? void 0 : params.form_id] = formData.form_record;
|
|
121
|
+
payload.value = values;
|
|
111
122
|
setValueLoading(false);
|
|
112
|
-
dispatch({
|
|
113
|
-
type: "setPet",
|
|
114
|
-
payload: {
|
|
115
|
-
value: values
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
123
|
}
|
|
119
|
-
|
|
124
|
+
dispatch({
|
|
125
|
+
type: "setPet",
|
|
126
|
+
payload
|
|
127
|
+
});
|
|
120
128
|
} catch (err) {
|
|
121
129
|
setValueLoading(false);
|
|
122
130
|
setLoading(false);
|
|
@@ -213,13 +221,20 @@ var Pet = () => {
|
|
|
213
221
|
params.type,
|
|
214
222
|
(_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.id
|
|
215
223
|
]);
|
|
216
|
-
|
|
224
|
+
const addCallback = () => {
|
|
225
|
+
var _a2, _b2;
|
|
226
|
+
let _formData = (_b2 = (_a2 = state.pet) == null ? void 0 : _a2.formData) == null ? void 0 : _b2[0];
|
|
227
|
+
if ((_formData == null ? void 0 : _formData.type) === "multiple" || (_formData == null ? void 0 : _formData.type) === "single") {
|
|
228
|
+
getFormData({ formData: _formData });
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-wraps" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: valueLoading, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
217
232
|
import_forms.default,
|
|
218
233
|
{
|
|
219
234
|
hideTitle: true,
|
|
220
235
|
watch: { value: state.pet.value },
|
|
221
236
|
addCallback: () => {
|
|
222
|
-
|
|
237
|
+
addCallback();
|
|
223
238
|
},
|
|
224
239
|
loading: valueLoading,
|
|
225
240
|
forms: state.pet.formData,
|
|
@@ -229,7 +244,7 @@ var Pet = () => {
|
|
|
229
244
|
onChange: onValueChange,
|
|
230
245
|
client: (_g = state.client) == null ? void 0 : _g.value,
|
|
231
246
|
customSelectProps: {
|
|
232
|
-
|
|
247
|
+
loading,
|
|
233
248
|
handleViewItem,
|
|
234
249
|
virtualListHeight: window.innerHeight - 213 - 57 - 16,
|
|
235
250
|
disabled: state.disabledEdit
|
|
@@ -266,7 +281,12 @@ var Pet = () => {
|
|
|
266
281
|
import_utils.locales.getText("pisell2.text.edit")
|
|
267
282
|
)));
|
|
268
283
|
},
|
|
269
|
-
addButtonProps: {
|
|
284
|
+
addButtonProps: {
|
|
285
|
+
style: { margin: 0 },
|
|
286
|
+
addCallback: async () => {
|
|
287
|
+
addCallback();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
270
290
|
}
|
|
271
291
|
)));
|
|
272
292
|
};
|
|
@@ -116,7 +116,10 @@ var Info = () => {
|
|
|
116
116
|
ids: state.renderType === "eventBooking" ? (_a2 = state.eventOtherParams) == null ? void 0 : _a2.productIds : void 0,
|
|
117
117
|
open_quotation: 1,
|
|
118
118
|
with_schedule: 1,
|
|
119
|
-
with_count: ["bundleGroup", "optionGroup"]
|
|
119
|
+
with_count: ["bundleGroup", "optionGroup"],
|
|
120
|
+
_config: {
|
|
121
|
+
useCache: true
|
|
122
|
+
}
|
|
120
123
|
});
|
|
121
124
|
setLoading(false);
|
|
122
125
|
setDefaultService(data == null ? void 0 : data.list);
|
|
@@ -128,6 +131,7 @@ var Info = () => {
|
|
|
128
131
|
});
|
|
129
132
|
};
|
|
130
133
|
const handleSelectService = () => {
|
|
134
|
+
getServices();
|
|
131
135
|
setSearch("");
|
|
132
136
|
dispatch({
|
|
133
137
|
type: "setService",
|
|
@@ -200,12 +204,8 @@ var Info = () => {
|
|
|
200
204
|
const isService = (0, import_react.useMemo)(() => {
|
|
201
205
|
return state.service.value.length > 0;
|
|
202
206
|
}, [state.service.value]);
|
|
203
|
-
(0, import_react.useEffect)(() => {
|
|
204
|
-
getServices();
|
|
205
|
-
}, []);
|
|
206
207
|
(0, import_react.useEffect)(() => {
|
|
207
208
|
if (state.modalOpen) {
|
|
208
|
-
getServices();
|
|
209
209
|
}
|
|
210
210
|
}, [state.modalOpen]);
|
|
211
211
|
const showAddButton = (0, import_react.useMemo)(() => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -87,7 +86,7 @@ export declare const walkInData: {
|
|
|
87
86
|
id: number;
|
|
88
87
|
nickname: string;
|
|
89
88
|
};
|
|
90
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
89
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
91
90
|
state: FormState;
|
|
92
91
|
} & {
|
|
93
92
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
2
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
4
3
|
state: FormState;
|
|
5
4
|
} & {
|
|
6
5
|
dispatch: (params: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,7 +68,7 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
71
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
|
|
73
72
|
state: FormState;
|
|
74
73
|
} & {
|
|
75
74
|
dispatch: (params: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.38",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"ahooks": "^3.7.6",
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
|
-
"@pisell/icon": "0.0.8",
|
|
62
61
|
"@pisell/utils": "1.0.24",
|
|
63
|
-
"@pisell/date-picker": "1.0.69"
|
|
62
|
+
"@pisell/date-picker": "1.0.69",
|
|
63
|
+
"@pisell/icon": "0.0.8"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "^18.0.0",
|