@pisell/private-materials 3.0.148 → 3.0.149

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 (36) 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 +2 -2
  7. package/build/lowcode/view.js +2 -2
  8. package/es/components/booking/addons/index.js +1 -0
  9. package/es/components/booking/addons/model.d.ts +1 -2
  10. package/es/components/booking/forms/model.d.ts +1 -2
  11. package/es/components/booking/info/service/addService/index.js +1 -0
  12. package/es/components/booking/info/service/addTimeModal/index.js +3 -2
  13. package/es/components/booking/notes/index.d.ts +1 -1
  14. package/es/components/booking/notes/model.d.ts +1 -2
  15. package/es/components/booking/payments/model.d.ts +1 -2
  16. package/es/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
  17. package/es/components/productExtension/fields/SelectProducts/index.js +12 -11
  18. package/es/components/schedules/index.d.ts +1 -1
  19. package/es/components/schedules/model.d.ts +1 -2
  20. package/es/components/schedules/products/index.d.ts +2 -2
  21. package/es/components/schedules/products/index.js +8 -7
  22. package/lib/components/booking/addons/index.js +1 -0
  23. package/lib/components/booking/addons/model.d.ts +1 -2
  24. package/lib/components/booking/forms/model.d.ts +1 -2
  25. package/lib/components/booking/info/service/addService/index.js +1 -0
  26. package/lib/components/booking/info/service/addTimeModal/index.js +2 -1
  27. package/lib/components/booking/notes/index.d.ts +1 -1
  28. package/lib/components/booking/notes/model.d.ts +1 -2
  29. package/lib/components/booking/payments/model.d.ts +1 -2
  30. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
  31. package/lib/components/productExtension/fields/SelectProducts/index.js +2 -1
  32. package/lib/components/schedules/index.d.ts +1 -1
  33. package/lib/components/schedules/model.d.ts +1 -2
  34. package/lib/components/schedules/products/index.d.ts +2 -2
  35. package/lib/components/schedules/products/index.js +1 -0
  36. package/package.json +3 -3
@@ -240,6 +240,7 @@ var Addons = Provider(function (props) {
240
240
  // include_bundle: "no",
241
241
  // include_option: "no",
242
242
  // include_variant: "no",
243
+ status: 'published',
243
244
  open_quotation: 1,
244
245
  with_schedule: 0,
245
246
  with_count: ['bundleGroup', 'optionGroup'],
@@ -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,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: {
@@ -162,6 +162,7 @@ var Info = function Info(_ref) {
162
162
  with_schedule: 1,
163
163
  with_count: ['bundleGroup', 'optionGroup'],
164
164
  order_by_string: 'sort:desc',
165
+ status: 'published',
165
166
  _config: {
166
167
  useCache: true
167
168
  }
@@ -254,7 +254,8 @@ var AddTimeModal = function AddTimeModal() {
254
254
  open_quotation: 1,
255
255
  schedule_date: state.date.value.format('YYYY-MM-DD'),
256
256
  customer_id: isWalkIn((_state$client = state.client) === null || _state$client === void 0 ? void 0 : (_state$client$value = _state$client.value) === null || _state$client$value === void 0 ? void 0 : _state$client$value.id) ? undefined : (_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : (_state$client2$value = _state$client2.value) === null || _state$client2$value === void 0 ? void 0 : _state$client2$value.id,
257
- extension_type: ['product_add_time']
257
+ extension_type: ['product_add_time'],
258
+ status: 'published'
258
259
  }, {
259
260
  useCache: true
260
261
  });
@@ -462,7 +463,7 @@ var AddTimeModal = function AddTimeModal() {
462
463
  key: 'booking_checkout',
463
464
  data: {
464
465
  order_id: state.bookingId,
465
- callbackType: "pisell2"
466
+ callbackType: 'pisell2'
466
467
  }
467
468
  }));
468
469
  case 2:
@@ -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: {
@@ -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,5 +1,5 @@
1
- import React from "react";
2
- import "./index.less";
1
+ import React from 'react';
2
+ import './index.less';
3
3
  interface valueType {
4
4
  }
5
5
  interface SelectProductsProps {
@@ -4,14 +4,14 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React, { useState, useMemo, useEffect } from "react";
8
- import { useRequest } from "ahooks";
7
+ import React, { useState, useMemo, useEffect } from 'react';
8
+ import { useRequest } from 'ahooks';
9
9
  import SelectModal from "../../../selectModal";
10
10
  import { getProductList } from "./server";
11
11
  import ProductItem from "./ProductItem";
12
12
  import ProductItemPreview from "./ProductItemPreview";
13
13
  import "./index.less";
14
- import { locales } from "@pisell/utils";
14
+ import { locales } from '@pisell/utils';
15
15
  var SelectProducts = function SelectProducts(_ref) {
16
16
  var value = _ref.value,
17
17
  _onChange = _ref.onChange;
@@ -41,9 +41,10 @@ var SelectProducts = function SelectProducts(_ref) {
41
41
  _getProductList.run({
42
42
  skip: 1,
43
43
  num: 500,
44
- with: ["category"],
44
+ with: ['category'],
45
45
  open_quotation: 1,
46
- exclude_extension_type: ["event_item"]
46
+ exclude_extension_type: ['event_item'],
47
+ status: 'published'
47
48
  });
48
49
  }, []);
49
50
  var onRemove = function onRemove(item) {
@@ -81,18 +82,18 @@ var SelectProducts = function SelectProducts(_ref) {
81
82
  },
82
83
  buttonProps: {
83
84
  showSub: !!(value !== null && value !== void 0 && value.length),
84
- title: locales.getText("pisell2.text.product-extension.add-product"),
85
- subTitle: locales.getText("pisell2.text.product-extension.add-other-product")
85
+ title: locales.getText('pisell2.text.product-extension.add-product'),
86
+ subTitle: locales.getText('pisell2.text.product-extension.add-other-product')
86
87
  },
87
88
  drawerProps: {
88
89
  width: 500,
89
- title: locales.getText("pisell2.text.product-extension.add-product"),
90
- rootClassName: "select-product-drawer"
90
+ title: locales.getText('pisell2.text.product-extension.add-product'),
91
+ rootClassName: 'select-product-drawer'
91
92
  },
92
93
  tabProductProps: {
93
- warpClassName: "select-product-warp",
94
+ warpClassName: 'select-product-warp',
94
95
  stickyTop: 188,
95
- scrollDom: ".select-product-drawer .pisell-lowcode-drawer-body"
96
+ scrollDom: '.select-product-drawer .pisell-lowcode-drawer-body'
96
97
  }
97
98
  });
98
99
  };
@@ -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: {
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import "./index.less";
1
+ import React from 'react';
2
+ import './index.less';
3
3
  declare const Products: () => React.JSX.Element;
4
4
  export default Products;
@@ -1,5 +1,5 @@
1
- import React, { useEffect, useContext } from "react";
2
- import { useRequest } from "ahooks";
1
+ import React, { useEffect, useContext } from 'react';
2
+ import { useRequest } from 'ahooks';
3
3
  import CurrentDay from "../components/CurrentDay";
4
4
  import List from "./list";
5
5
  import ProductDetailDrawer from "./ProductDetailDrawer";
@@ -20,7 +20,7 @@ var Products = function Products() {
20
20
  // 当获取完商品数据和日程数据时, 进行合并,方便后续处理
21
21
  useEffect(function () {
22
22
  dispatch({
23
- type: "setProducts",
23
+ type: 'setProducts',
24
24
  payload: {
25
25
  list: formatProductSchedules(_getProducts.data || [], state.schedules.scheduleMap)
26
26
  }
@@ -29,9 +29,9 @@ var Products = function Products() {
29
29
  var _init = function _init() {
30
30
  // 获取数据前, 关闭所有的弹窗
31
31
  dispatch({
32
- type: "setProducts",
32
+ type: 'setProducts',
33
33
  payload: {
34
- search: "",
34
+ search: '',
35
35
  currentProduct: null,
36
36
  openProductDetailDrawer: false,
37
37
  openAddSchedulesDrawer: false
@@ -45,7 +45,8 @@ var Products = function Products() {
45
45
  skip: 1,
46
46
  num: 500,
47
47
  // extension_type: ["normal"],
48
- with: ["category"],
48
+ with: ['category'],
49
+ status: 'published',
49
50
  open_quotation: 1,
50
51
  with_schedule: true,
51
52
  schedule: 1,
@@ -58,7 +59,7 @@ var Products = function Products() {
58
59
  }, [currentSelectDayDetail]);
59
60
  var handleClose = function handleClose() {
60
61
  dispatch({
61
- type: "setState",
62
+ type: 'setState',
62
63
  payload: {
63
64
  currentSelectDayDetail: null
64
65
  }
@@ -194,6 +194,7 @@ var Addons = (0, import_model.Provider)((props) => {
194
194
  // include_bundle: "no",
195
195
  // include_option: "no",
196
196
  // include_variant: "no",
197
+ status: "published",
197
198
  open_quotation: 1,
198
199
  with_schedule: 0,
199
200
  with_count: ["bundleGroup", "optionGroup"],
@@ -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,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: {
@@ -133,6 +133,7 @@ var Info = ({ onEdit }) => {
133
133
  with_schedule: 1,
134
134
  with_count: ["bundleGroup", "optionGroup"],
135
135
  order_by_string: "sort:desc",
136
+ status: "published",
136
137
  _config: {
137
138
  useCache: true
138
139
  }
@@ -188,7 +188,8 @@ var AddTimeModal = () => {
188
188
  open_quotation: 1,
189
189
  schedule_date: state.date.value.format("YYYY-MM-DD"),
190
190
  customer_id: (0, import_utils3.isWalkIn)((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) ? void 0 : (_d2 = (_c2 = state.client) == null ? void 0 : _c2.value) == null ? void 0 : _d2.id,
191
- extension_type: ["product_add_time"]
191
+ extension_type: ["product_add_time"],
192
+ status: "published"
192
193
  },
193
194
  {
194
195
  useCache: true
@@ -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: {
@@ -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,5 +1,5 @@
1
- import React from "react";
2
- import "./index.less";
1
+ import React from 'react';
2
+ import './index.less';
3
3
  interface valueType {
4
4
  }
5
5
  interface SelectProductsProps {
@@ -64,7 +64,8 @@ var SelectProducts = ({ value, onChange }) => {
64
64
  num: 500,
65
65
  with: ["category"],
66
66
  open_quotation: 1,
67
- exclude_extension_type: ["event_item"]
67
+ exclude_extension_type: ["event_item"],
68
+ status: "published"
68
69
  });
69
70
  }, []);
70
71
  const onRemove = (item) => {
@@ -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: {
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import "./index.less";
1
+ import React from 'react';
2
+ import './index.less';
3
3
  declare const Products: () => React.JSX.Element;
4
4
  export default Products;
@@ -76,6 +76,7 @@ var Products = () => {
76
76
  num: 500,
77
77
  // extension_type: ["normal"],
78
78
  with: ["category"],
79
+ status: "published",
79
80
  open_quotation: 1,
80
81
  with_schedule: true,
81
82
  schedule: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.148",
3
+ "version": "3.0.149",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/date-picker": "1.0.100",
62
+ "@pisell/materials": "3.0.48",
63
63
  "@pisell/utils": "1.0.42",
64
64
  "@pisell/icon": "0.0.11",
65
- "@pisell/materials": "3.0.48"
65
+ "@pisell/date-picker": "1.0.100"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",