@pisell/private-materials 3.0.60 → 3.0.62
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.js +6 -6
- package/build/lowcode/view.js +5 -5
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/customSelect/index.js +40 -7
- package/es/components/booking/components/footer/index.js +11 -10
- package/es/components/booking/components/footer/utils.js +12 -7
- package/es/components/booking/deposit/index.js +2 -1
- 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/index.js +136 -63
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/forms/single/index.js +1 -1
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/client/index.js +124 -31
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/client/serve.js +51 -0
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/index.js +8 -5
- package/es/components/booking/info/model.d.ts +2 -1
- package/es/components/booking/info/pet/index.js +4 -2
- package/es/components/booking/info/service/addService/index.js +0 -1
- package/es/components/booking/model.d.ts +3 -1
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +2 -1
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/components/customSelect/index.js +4 -4
- package/lib/components/booking/components/footer/index.js +3 -2
- package/lib/components/booking/components/footer/utils.js +8 -5
- package/lib/components/booking/deposit/index.js +2 -1
- 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/index.js +38 -3
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/forms/single/index.js +1 -1
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/client/index.js +40 -9
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/client/serve.js +39 -0
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/index.js +5 -2
- package/lib/components/booking/info/model.d.ts +2 -1
- package/lib/components/booking/info/pet/index.js +2 -1
- package/lib/components/booking/info/service/addService/index.js +0 -1
- package/lib/components/booking/model.d.ts +3 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +2 -1
- package/package.json +3 -3
|
@@ -60,12 +60,43 @@ var Forms = (0, import_model.Provider)((props) => {
|
|
|
60
60
|
geForms();
|
|
61
61
|
}
|
|
62
62
|
}, [(_f = (_e = state.bookingDetail) == null ? void 0 : _e.bookings) == null ? void 0 : _f.id, (_h = (_g = state.client) == null ? void 0 : _g.value) == null ? void 0 : _h.id]);
|
|
63
|
+
const getFranchiseeCompositeData = async ({ request, params: params2 }) => {
|
|
64
|
+
let arr = [];
|
|
65
|
+
arr.push(request(params2));
|
|
66
|
+
if (state.isFranchisee) {
|
|
67
|
+
arr.push(request({ ...params2, source_shop_customer: 1 }));
|
|
68
|
+
}
|
|
69
|
+
const res = await Promise.all(arr);
|
|
70
|
+
return res;
|
|
71
|
+
};
|
|
72
|
+
const getFranchiseeForms = async (params2) => {
|
|
73
|
+
const res = await getFranchiseeCompositeData({
|
|
74
|
+
request: state.apis.getForms,
|
|
75
|
+
params: params2
|
|
76
|
+
});
|
|
77
|
+
if (state.isFranchisee) {
|
|
78
|
+
let arr = [];
|
|
79
|
+
res.forEach((item, index) => {
|
|
80
|
+
arr = arr.concat(
|
|
81
|
+
item.map((d) => {
|
|
82
|
+
return {
|
|
83
|
+
...d,
|
|
84
|
+
is_franchisor: index === 1 ? 1 : 0
|
|
85
|
+
};
|
|
86
|
+
})
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
return arr;
|
|
90
|
+
}
|
|
91
|
+
return res[0];
|
|
92
|
+
};
|
|
63
93
|
const getFormDataById = async (item) => {
|
|
64
94
|
var _a2, _b2;
|
|
65
95
|
let _params = {
|
|
66
96
|
form_id: item.form_id,
|
|
67
97
|
skip: 1,
|
|
68
|
-
num: 999
|
|
98
|
+
num: 999,
|
|
99
|
+
source_shop_customer: item.is_franchisor ? 1 : 0
|
|
69
100
|
};
|
|
70
101
|
let options = [];
|
|
71
102
|
const isCustomerForm = item.data_range === "customer" && !(0, import_utils2.isWalkIn)((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id);
|
|
@@ -96,7 +127,7 @@ var Forms = (0, import_model.Provider)((props) => {
|
|
|
96
127
|
const geForms = async () => {
|
|
97
128
|
setLoading(true);
|
|
98
129
|
try {
|
|
99
|
-
let data = await
|
|
130
|
+
let data = await getFranchiseeForms({
|
|
100
131
|
relation_type,
|
|
101
132
|
relation_id: state.bookingDetail.bookings.id
|
|
102
133
|
// _config: { useCache: true },
|
|
@@ -105,6 +136,7 @@ var Forms = (0, import_model.Provider)((props) => {
|
|
|
105
136
|
if (params.type === "form") {
|
|
106
137
|
data = data.filter((d) => d.form_id !== (params == null ? void 0 : params.form_id));
|
|
107
138
|
}
|
|
139
|
+
console.log("datadata", data);
|
|
108
140
|
const formData = await getFormData(data);
|
|
109
141
|
dispatch({
|
|
110
142
|
type: "setForm",
|
|
@@ -131,10 +163,13 @@ var Forms = (0, import_model.Provider)((props) => {
|
|
|
131
163
|
});
|
|
132
164
|
}, []);
|
|
133
165
|
(0, import_react.useEffect)(() => {
|
|
166
|
+
var _a2, _b2, _c2, _d2;
|
|
167
|
+
const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
|
|
134
168
|
dispatch({
|
|
135
169
|
type: "setState",
|
|
136
170
|
payload: {
|
|
137
|
-
...globalState
|
|
171
|
+
...globalState,
|
|
172
|
+
isFranchisee
|
|
138
173
|
}
|
|
139
174
|
});
|
|
140
175
|
}, [globalState]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -122,7 +122,7 @@ var Single = ({
|
|
|
122
122
|
if (optionRender) {
|
|
123
123
|
return optionRender(item);
|
|
124
124
|
}
|
|
125
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1 } }, item["main_field"] || "-");
|
|
125
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1 } }, item["main_field"] || item[form.option_key] || "-");
|
|
126
126
|
};
|
|
127
127
|
const _addButtonProps = (0, import_react.useMemo)(() => {
|
|
128
128
|
var _a2, _b2;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const Booking: (props: any) =>
|
|
1
|
+
declare const Booking: (props: any) => any;
|
|
2
2
|
export default Booking;
|
|
@@ -42,20 +42,20 @@ var import_customSelect = __toESM(require("../../components/customSelect"));
|
|
|
42
42
|
var import_index = require("./index.less");
|
|
43
43
|
var import_utils = require("@pisell/utils");
|
|
44
44
|
var import_utils2 = require("../../utils");
|
|
45
|
-
var
|
|
45
|
+
var import_serve = require("./serve");
|
|
46
46
|
var Info = () => {
|
|
47
47
|
var _a, _b, _c, _d, _e, _f;
|
|
48
48
|
const modalRef = (0, import_react.useRef)();
|
|
49
49
|
const [loadLoading, setLoadLoading] = (0, import_react.useState)(false);
|
|
50
50
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
51
51
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
52
|
+
const [franchiseeLoading, setFranchiseeLoading] = (0, import_react.useState)(0);
|
|
52
53
|
const [params, setParams] = (0, import_react.useState)({
|
|
53
54
|
skip: 1,
|
|
54
55
|
num: 50,
|
|
55
56
|
total: 0,
|
|
56
57
|
search: ""
|
|
57
58
|
});
|
|
58
|
-
const context = (0, import_useEngineContext.default)();
|
|
59
59
|
const menus = (0, import_react.useMemo)(() => {
|
|
60
60
|
let list = [
|
|
61
61
|
{ key: "view", label: import_utils.locales.getText("pisell2.text.view-profile") },
|
|
@@ -73,11 +73,17 @@ var Info = () => {
|
|
|
73
73
|
}) => {
|
|
74
74
|
let _setLoading = resetParams.skip === 1 ? setLoading : setLoadLoading;
|
|
75
75
|
_setLoading(true);
|
|
76
|
-
const
|
|
76
|
+
const api = state.isFranchisee ? import_serve.getFranchiseeCustomerList : state.apis.getClients;
|
|
77
|
+
const data = await api({
|
|
77
78
|
...resetParams,
|
|
78
|
-
_config: { abort: true }
|
|
79
|
+
...!state.isFranchisee ? { _config: { abort: true } } : {}
|
|
80
|
+
});
|
|
81
|
+
const list = ((data == null ? void 0 : data.list) || []).map((d) => {
|
|
82
|
+
return {
|
|
83
|
+
...d,
|
|
84
|
+
id: d.franchisee_customer_id || d.id
|
|
85
|
+
};
|
|
79
86
|
});
|
|
80
|
-
const list = (data == null ? void 0 : data.list) || [];
|
|
81
87
|
let _payload = {
|
|
82
88
|
clients: list
|
|
83
89
|
};
|
|
@@ -124,11 +130,35 @@ var Info = () => {
|
|
|
124
130
|
},
|
|
125
131
|
[import_utils.locales.localeMap]
|
|
126
132
|
);
|
|
127
|
-
const
|
|
133
|
+
const _getFranchiseeCustomerInfo = async (customer) => {
|
|
134
|
+
try {
|
|
135
|
+
setFranchiseeLoading(customer.id);
|
|
136
|
+
const res = await (0, import_serve.getFranchiseeCustomerInfo)({
|
|
137
|
+
franchisor_customer_id: customer.id
|
|
138
|
+
});
|
|
139
|
+
setFranchiseeLoading(0);
|
|
140
|
+
return {
|
|
141
|
+
...customer,
|
|
142
|
+
id: res.franchisee_customer_id
|
|
143
|
+
};
|
|
144
|
+
} catch (err) {
|
|
145
|
+
setFranchiseeLoading(0);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const handleSelectClient = async (value) => {
|
|
128
149
|
let _value = (value == null ? void 0 : value[value.length - 1]) || import_model.walkInData;
|
|
129
150
|
if (_value.loading) {
|
|
130
151
|
return;
|
|
131
152
|
}
|
|
153
|
+
if (state.isFranchisee && _value.franchisee_customer_id === 0) {
|
|
154
|
+
try {
|
|
155
|
+
_value = await _getFranchiseeCustomerInfo(_value);
|
|
156
|
+
} catch (err) {
|
|
157
|
+
}
|
|
158
|
+
if (!_value) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
132
162
|
dispatch({
|
|
133
163
|
type: "setClient",
|
|
134
164
|
payload: {
|
|
@@ -139,6 +169,9 @@ var Info = () => {
|
|
|
139
169
|
edit: true
|
|
140
170
|
}
|
|
141
171
|
});
|
|
172
|
+
return new Promise((resolve) => {
|
|
173
|
+
resolve(0);
|
|
174
|
+
});
|
|
142
175
|
};
|
|
143
176
|
const handleViewClient = () => {
|
|
144
177
|
state.action({
|
|
@@ -195,8 +228,6 @@ var Info = () => {
|
|
|
195
228
|
var _a2;
|
|
196
229
|
return (0, import_utils2.isWalkIn)((_a2 = state.client.value) == null ? void 0 : _a2.id);
|
|
197
230
|
}, [(_a = state.client.value) == null ? void 0 : _a.id]);
|
|
198
|
-
(0, import_react.useEffect)(() => {
|
|
199
|
-
}, []);
|
|
200
231
|
(0, import_react.useEffect)(() => {
|
|
201
232
|
if (state.action) {
|
|
202
233
|
state.action({
|
|
@@ -296,7 +327,7 @@ var Info = () => {
|
|
|
296
327
|
src: import_utils.image.ali(item.cover, 100) || void 0,
|
|
297
328
|
icon: /* @__PURE__ */ import_react.default.createElement(import_User01.default, { className: "pisell-lowcode__booking-client-list-item-avatar-icon" })
|
|
298
329
|
}
|
|
299
|
-
), /* @__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" }, getNickname(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-desc" }, item.email ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, item.email) : null, item.phone ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, item.phone) : null)));
|
|
330
|
+
), /* @__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" }, getNickname(item)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-info-desc" }, item.email ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, item.email) : null, item.phone ? /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, item.phone) : null)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-client-list-item-loading" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { spinning: franchiseeLoading === item.id })));
|
|
300
331
|
},
|
|
301
332
|
searchChange,
|
|
302
333
|
searchValue: params.search,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/booking/info/client/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
getFranchiseeCustomerInfo: () => getFranchiseeCustomerInfo,
|
|
23
|
+
getFranchiseeCustomerList: () => getFranchiseeCustomerList
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(serve_exports);
|
|
26
|
+
var import_utils = require("../../utils");
|
|
27
|
+
var getFranchiseeCustomerInfo = async (params) => {
|
|
28
|
+
let { data } = await import_utils.request.getRequest().get(`/shop/franchisee/customer/id`, params);
|
|
29
|
+
return data;
|
|
30
|
+
};
|
|
31
|
+
var getFranchiseeCustomerList = async (params) => {
|
|
32
|
+
let { data } = await import_utils.request.getRequest().get(`/shop/franchisee/customer/select-list`, params, { abort: true });
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
getFranchiseeCustomerInfo,
|
|
38
|
+
getFranchiseeCustomerList
|
|
39
|
+
});
|
|
@@ -62,6 +62,7 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
62
62
|
const { style, globalState, modules = defaultModules, slot } = props;
|
|
63
63
|
const modal = (0, import_react.useContext)(import_model.Context);
|
|
64
64
|
const context = (0, import_useEngineContext.default)();
|
|
65
|
+
import_utils2.request.setRequest(context.appHelper.utils.request);
|
|
65
66
|
const params = (0, import_react.useMemo)(() => {
|
|
66
67
|
var _a2, _b2, _c2, _d2;
|
|
67
68
|
return ((_d2 = (_c2 = (_b2 = (_a2 = modal.state) == null ? void 0 : _a2.bookingConfig) == null ? void 0 : _b2.config) == null ? void 0 : _c2.basic) == null ? void 0 : _d2.appointment_subject) || {};
|
|
@@ -82,13 +83,15 @@ var Info = (0, import_model.Provider)((props) => {
|
|
|
82
83
|
}
|
|
83
84
|
}, []);
|
|
84
85
|
(0, import_react.useEffect)(() => {
|
|
85
|
-
var _a2, _b2, _c2;
|
|
86
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
87
|
+
const isFranchisee = (_d2 = (_c2 = (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.businessUtils) == null ? void 0 : _c2.getAppByModal) == null ? void 0 : _d2.call(_c2, "franchisee");
|
|
86
88
|
modal.dispatch({
|
|
87
89
|
type: "setState",
|
|
88
90
|
payload: {
|
|
89
91
|
setGlobalState: props.setGlobalState,
|
|
90
92
|
...globalState,
|
|
91
|
-
isTerminal: (
|
|
93
|
+
isTerminal: (_g2 = (_f2 = (_e2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _e2.utils) == null ? void 0 : _f2.isTerminal) == null ? void 0 : _g2.call(_f2),
|
|
94
|
+
isFranchisee
|
|
92
95
|
}
|
|
93
96
|
});
|
|
94
97
|
}, [globalState]);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
3
|
export declare const walkInData: {
|
|
3
4
|
id: number;
|
|
4
5
|
nickname: string;
|
|
5
6
|
};
|
|
6
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
7
8
|
state: FormState;
|
|
8
9
|
} & {
|
|
9
10
|
dispatch: (params: {
|
|
@@ -85,7 +85,8 @@ var Pet = () => {
|
|
|
85
85
|
if (!noClient) {
|
|
86
86
|
let _values = {
|
|
87
87
|
form_id: boardParams.form_id,
|
|
88
|
-
..._params
|
|
88
|
+
..._params,
|
|
89
|
+
source_shop_customer: petForm == null ? void 0 : petForm.is_franchisor
|
|
89
90
|
};
|
|
90
91
|
if (formData.data_range === "customer") {
|
|
91
92
|
_values.customer_id = (_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id;
|
|
@@ -277,7 +277,6 @@ var Info = () => {
|
|
|
277
277
|
state.service.value,
|
|
278
278
|
loading
|
|
279
279
|
]);
|
|
280
|
-
console.log(state.service.addModal, "state.service.addModal");
|
|
281
280
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_c = (_b = state.service) == null ? void 0 : _b.cacheItem) == null ? void 0 : _c.autoClose) && /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }), addButton, /* @__PURE__ */ import_react.default.createElement(
|
|
282
281
|
import_drawer.default,
|
|
283
282
|
{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -73,6 +74,7 @@ export interface FormState {
|
|
|
73
74
|
renderType?: "eventBooking";
|
|
74
75
|
modalOpen?: boolean;
|
|
75
76
|
isTerminal?: boolean;
|
|
77
|
+
isFranchisee?: boolean;
|
|
76
78
|
eventOtherParams?: {
|
|
77
79
|
relation_id: number;
|
|
78
80
|
number: number;
|
|
@@ -88,7 +90,7 @@ export declare const walkInData: {
|
|
|
88
90
|
id: number;
|
|
89
91
|
nickname: string;
|
|
90
92
|
};
|
|
91
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
93
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
92
94
|
state: FormState;
|
|
93
95
|
} & {
|
|
94
96
|
dispatch: (params: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FormState } from "../model";
|
|
2
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
3
4
|
state: FormState;
|
|
4
5
|
} & {
|
|
5
6
|
dispatch: (params: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,7 +69,7 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: (ComponentUi: any) => (props: any) =>
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
|
|
72
73
|
state: FormState;
|
|
73
74
|
} & {
|
|
74
75
|
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.62",
|
|
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/date-picker": "1.0.69",
|
|
62
61
|
"@pisell/icon": "0.0.8",
|
|
63
|
-
"@pisell/utils": "1.0.24"
|
|
62
|
+
"@pisell/utils": "1.0.24",
|
|
63
|
+
"@pisell/date-picker": "1.0.69"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "^18.0.0",
|