@pisell/private-materials 3.0.21 → 3.0.23

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.
@@ -101,7 +101,7 @@ var DateCom = function DateCom() {
101
101
  bordered: false,
102
102
  suffixIcon: !modal.state.disabledEdit ? /*#__PURE__*/React.createElement(ChevronDown, null) : null,
103
103
  disabledDate: disabledDate,
104
- format: modal.state.locale === "en" ? "dddd, MM DD YYYY" : "YYYY年MM月DD日",
104
+ format: modal.state.locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
105
105
  value: modal.state.date.value,
106
106
  onChange: dateChange,
107
107
  disabled: modal.state.disabledEdit
@@ -21,7 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
21
  import React, { useContext, useEffect, useMemo, useState } from "react";
22
22
  import User01 from "@pisell/icon/es/User01";
23
23
  import { Context } from "../model";
24
- import { Avatar } from "antd";
24
+ import { Avatar, Skeleton } from "antd";
25
25
  import "./index.less";
26
26
  import { locales } from "@pisell/utils";
27
27
  import FormsCom from "../../forms/forms";
@@ -327,6 +327,10 @@ var Pet = function Pet() {
327
327
  }, [state.bookingId, state.bookingDetail, params.form_id, params.type, (_state$client8 = state.client) === null || _state$client8 === void 0 ? void 0 : (_state$client8$value = _state$client8.value) === null || _state$client8$value === void 0 ? void 0 : _state$client8$value.id]);
328
328
  return /*#__PURE__*/React.createElement("div", {
329
329
  className: "pisell-lowcode__booking-pet-wraps"
330
+ }, /*#__PURE__*/React.createElement(Skeleton, {
331
+ loading: loading,
332
+ active: true,
333
+ round: true
330
334
  }, /*#__PURE__*/React.createElement(FormsCom, {
331
335
  hideTitle: true,
332
336
  watch: {
@@ -386,6 +390,6 @@ var Pet = function Pet() {
386
390
  margin: 0
387
391
  }
388
392
  }
389
- }));
393
+ })));
390
394
  };
391
395
  export default Pet;
@@ -141,7 +141,7 @@ var Info = function Info() {
141
141
  return state.apis.getServices({
142
142
  skip: 1,
143
143
  num: 500,
144
- extension_type: state.renderType === "eventBooking" ? undefined : ["product_appointment"],
144
+ extension_type: state.renderType === "eventBooking" ? undefined : ["product_appointment", "appointment_ticket"],
145
145
  with: ["category"],
146
146
  // include_formula: "no",
147
147
  // include_bundle: "no",
@@ -119,7 +119,7 @@ var DateCom = () => {
119
119
  bordered: false,
120
120
  suffixIcon: !modal.state.disabledEdit ? /* @__PURE__ */ import_react.default.createElement(import_ChevronDown.default, null) : null,
121
121
  disabledDate,
122
- format: modal.state.locale === "en" ? "dddd, MM DD YYYY" : "YYYY年MM月DD日",
122
+ format: modal.state.locale === "en" ? "dddd, DD MMM YYYY" : "YYYY年MM月DD日",
123
123
  value: modal.state.date.value,
124
124
  onChange: dateChange,
125
125
  disabled: modal.state.disabledEdit
@@ -213,7 +213,7 @@ var Pet = () => {
213
213
  params.type,
214
214
  (_f = (_e = state.client) == null ? void 0 : _e.value) == null ? void 0 : _f.id
215
215
  ]);
216
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-wraps" }, /* @__PURE__ */ import_react.default.createElement(
216
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-pet-wraps" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading, active: true, round: true }, /* @__PURE__ */ import_react.default.createElement(
217
217
  import_forms.default,
218
218
  {
219
219
  hideTitle: true,
@@ -268,6 +268,6 @@ var Pet = () => {
268
268
  },
269
269
  addButtonProps: { style: { margin: 0 } }
270
270
  }
271
- ));
271
+ )));
272
272
  };
273
273
  var pet_default = Pet;
@@ -107,7 +107,7 @@ var Info = () => {
107
107
  let data = await state.apis.getServices({
108
108
  skip: 1,
109
109
  num: 500,
110
- extension_type: state.renderType === "eventBooking" ? void 0 : ["product_appointment"],
110
+ extension_type: state.renderType === "eventBooking" ? void 0 : ["product_appointment", "appointment_ticket"],
111
111
  with: ["category"],
112
112
  // include_formula: "no",
113
113
  // include_bundle: "no",
@@ -230,7 +230,13 @@ var Info = () => {
230
230
  onClick: handleSelectService
231
231
  }
232
232
  ) : /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } });
233
- }, [state.renderType, showAddButton, isService, state.service.value, loading]);
233
+ }, [
234
+ state.renderType,
235
+ showAddButton,
236
+ isService,
237
+ state.service.value,
238
+ loading
239
+ ]);
234
240
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, addButton, /* @__PURE__ */ import_react.default.createElement(
235
241
  import_drawer.default,
236
242
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.21",
3
+ "version": "3.0.23",
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.68",
61
62
  "@pisell/utils": "1.0.23",
62
- "@pisell/icon": "0.0.8",
63
- "@pisell/date-picker": "1.0.68"
63
+ "@pisell/icon": "0.0.8"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "react": "^18.0.0",