@pisell/private-materials 3.0.88 → 3.0.89

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 (42) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.js +1 -1
  8. package/es/components/booking/addons/index.d.ts +1 -1
  9. package/es/components/booking/addons/model.d.ts +1 -2
  10. package/es/components/booking/forms/forms.d.ts +1 -1
  11. package/es/components/booking/forms/index.d.ts +1 -1
  12. package/es/components/booking/forms/model.d.ts +1 -2
  13. package/es/components/booking/index.d.ts +1 -1
  14. package/es/components/booking/info/index.d.ts +1 -1
  15. package/es/components/booking/info/model.d.ts +1 -2
  16. package/es/components/booking/info/service/editService/index.d.ts +2 -2
  17. package/es/components/booking/info/service/editService/index.js +60 -59
  18. package/es/components/booking/model.d.ts +1 -2
  19. package/es/components/booking/notes/index.d.ts +1 -1
  20. package/es/components/booking/notes/model.d.ts +1 -2
  21. package/es/components/booking/payments/index.d.ts +1 -1
  22. package/es/components/booking/payments/model.d.ts +1 -2
  23. package/es/components/schedules/index.d.ts +1 -1
  24. package/es/components/schedules/model.d.ts +1 -2
  25. package/lib/components/booking/addons/index.d.ts +1 -1
  26. package/lib/components/booking/addons/model.d.ts +1 -2
  27. package/lib/components/booking/forms/forms.d.ts +1 -1
  28. package/lib/components/booking/forms/index.d.ts +1 -1
  29. package/lib/components/booking/forms/model.d.ts +1 -2
  30. package/lib/components/booking/index.d.ts +1 -1
  31. package/lib/components/booking/info/index.d.ts +1 -1
  32. package/lib/components/booking/info/model.d.ts +1 -2
  33. package/lib/components/booking/info/service/editService/index.d.ts +2 -2
  34. package/lib/components/booking/info/service/editService/index.js +16 -15
  35. package/lib/components/booking/model.d.ts +1 -2
  36. package/lib/components/booking/notes/index.d.ts +1 -1
  37. package/lib/components/booking/notes/model.d.ts +1 -2
  38. package/lib/components/booking/payments/index.d.ts +1 -1
  39. package/lib/components/booking/payments/model.d.ts +1 -2
  40. package/lib/components/schedules/index.d.ts +1 -1
  41. package/lib/components/schedules/model.d.ts +1 -2
  42. package/package.json +1 -1
@@ -48,7 +48,7 @@ var import_like = __toESM(require("../like"));
48
48
  var import_mock = require("../../../mock");
49
49
  var import_utils4 = require("../addService/utils");
50
50
  var Info = () => {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
52
52
  const [form] = import_antd.Form.useForm();
53
53
  const useTotal = import_antd.Form.useWatch("total", form);
54
54
  const useLikeStatus = import_antd.Form.useWatch("like_status", form);
@@ -276,14 +276,18 @@ var Info = () => {
276
276
  return (0, import_utils3.getErrorList)(currentResource, getCurrentCacheItem());
277
277
  }, [currentResource, useDuration, useStartTime]);
278
278
  (0, import_ahooks.useUpdateEffect)(() => {
279
- if (useStartTime && useDuration && state.renderType !== "eventBooking") {
280
- getResources();
279
+ var _a2;
280
+ if (state.service.cacheItem && !((_a2 = state.service.cacheItem) == null ? void 0 : _a2.autoClose)) {
281
+ if (useStartTime && useDuration && state.renderType !== "eventBooking") {
282
+ getResources();
283
+ }
281
284
  }
282
285
  }, [
283
286
  useStartTime,
284
287
  useDuration,
285
288
  state.renderType,
286
- state.service.resourcesOrigin
289
+ state.service.resourcesOrigin,
290
+ (_d = state.service.cacheItem) == null ? void 0 : _d.autoClose
287
291
  ]);
288
292
  (0, import_react.useEffect)(() => {
289
293
  setEditData();
@@ -300,7 +304,7 @@ var Info = () => {
300
304
  return false;
301
305
  }
302
306
  return useTotal != ((_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend.origin_total);
303
- }, [useTotal, (_e = (_d = state.service) == null ? void 0 : _d.cacheItem) == null ? void 0 : _e._extend.origin_total]);
307
+ }, [useTotal, (_f = (_e = state.service) == null ? void 0 : _e.cacheItem) == null ? void 0 : _f._extend.origin_total]);
304
308
  (0, import_react.useEffect)(() => {
305
309
  if (useResource === 0) {
306
310
  handleLikeResource("common");
@@ -309,7 +313,7 @@ var Info = () => {
309
313
  const bundles = (0, import_react.useMemo)(() => {
310
314
  var _a2, _b2, _c2, _d2;
311
315
  return ((_d2 = (_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.bundle) || [];
312
- }, [(_i = (_h = (_g = (_f = state.service) == null ? void 0 : _f.cacheItem) == null ? void 0 : _g._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.bundle]);
316
+ }, [(_j = (_i = (_h = (_g = state.service) == null ? void 0 : _g.cacheItem) == null ? void 0 : _h._extend) == null ? void 0 : _i.other) == null ? void 0 : _j.bundle]);
313
317
  const getResourcesData = async () => {
314
318
  setResourceLoading(true);
315
319
  try {
@@ -335,13 +339,13 @@ var Info = () => {
335
339
  (0, import_react.useEffect)(() => {
336
340
  getResourcesData();
337
341
  }, [state.date.value]);
338
- const SelectTime = (_j = window.BaseMaterials) == null ? void 0 : _j.SelectTime;
342
+ const SelectTime = (_k = window.BaseMaterials) == null ? void 0 : _k.SelectTime;
339
343
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
340
344
  import_drawer.default,
341
345
  {
342
346
  zIndex: 1e3,
343
347
  forceRender: true,
344
- open: state.service.editModal && !((_k = state.service.cacheItem) == null ? void 0 : _k.autoClose),
348
+ open: state.service.editModal && !((_l = state.service.cacheItem) == null ? void 0 : _l.autoClose),
345
349
  title: import_utils.locales.getText("pisell2.text.edit-service"),
346
350
  onClose: () => {
347
351
  dispatch({
@@ -370,7 +374,7 @@ var Info = () => {
370
374
  });
371
375
  }
372
376
  },
373
- /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_n = (_m = (_l = state.service) == null ? void 0 : _l.cacheItem) == null ? void 0 : _m._extend) == null ? void 0 : _n.product_name) || "-"),
377
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_o = (_n = (_m = state.service) == null ? void 0 : _m.cacheItem) == null ? void 0 : _n._extend) == null ? void 0 : _o.product_name) || "-"),
374
378
  /* @__PURE__ */ import_react.default.createElement(
375
379
  import_collapsibleList.default,
376
380
  {
@@ -395,8 +399,8 @@ var Info = () => {
395
399
  precision: 2,
396
400
  style: { width: "100%" },
397
401
  min: 0,
398
- max: ((_p = (_o = state.service.cacheItem) == null ? void 0 : _o._extend) == null ? void 0 : _p.origin_total) || 0,
399
- placeholder: ((_r = (_q = state.service.cacheItem) == null ? void 0 : _q._extend) == null ? void 0 : _r.origin_total) || "0"
402
+ max: ((_q = (_p = state.service.cacheItem) == null ? void 0 : _p._extend) == null ? void 0 : _q.origin_total) || 0,
403
+ placeholder: ((_s = (_r = state.service.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.origin_total) || "0"
400
404
  }
401
405
  )
402
406
  )), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
@@ -436,10 +440,7 @@ var Info = () => {
436
440
  SelectTime ? /* @__PURE__ */ import_react.default.createElement(
437
441
  SelectTime,
438
442
  {
439
- slice: (_v = (_u = (_t = (_s = state.bookingConfig) == null ? void 0 : _s.config) == null ? void 0 : _t.basic) == null ? void 0 : _u.service_time) == null ? void 0 : _v.value,
440
- onChange: (e) => {
441
- console.log("eeee", e);
442
- },
443
+ slice: (_w = (_v = (_u = (_t = state.bookingConfig) == null ? void 0 : _t.config) == null ? void 0 : _u.basic) == null ? void 0 : _v.service_time) == null ? void 0 : _w.value,
443
444
  timePickerProps: {
444
445
  style: { width: "100%" }
445
446
  },
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -96,7 +95,7 @@ export declare const walkInData: {
96
95
  id: number;
97
96
  nickname: string;
98
97
  };
99
- export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
98
+ export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
100
99
  state: FormState;
101
100
  } & {
102
101
  dispatch: (params: {
@@ -4,5 +4,5 @@ export interface InfoProps {
4
4
  globalState: any;
5
5
  setGlobalState: any;
6
6
  }
7
- declare const Notes: (props: any) => any;
7
+ declare const Notes: (props: any) => JSX.Element;
8
8
  export default Notes;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
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: {
@@ -5,5 +5,5 @@ export interface InfoProps {
5
5
  globalState: any;
6
6
  setGlobalState: any;
7
7
  }
8
- declare const Payments: (props: any) => any;
8
+ declare const Payments: (props: any) => JSX.Element;
9
9
  export default Payments;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
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,3 +1,3 @@
1
1
  import "./index.less";
2
- declare const Schedules: (props: any) => any;
2
+ declare const Schedules: (props: any) => JSX.Element;
3
3
  export default Schedules;
@@ -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) => any, Context: import("react").Context<{
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.88",
3
+ "version": "3.0.89",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",