@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.
- 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/render/default/view.js +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/addons/index.js +1 -0
- package/es/components/booking/addons/model.d.ts +1 -2
- package/es/components/booking/forms/model.d.ts +1 -2
- package/es/components/booking/info/service/addService/index.js +1 -0
- package/es/components/booking/info/service/addTimeModal/index.js +3 -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/model.d.ts +1 -2
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/es/components/productExtension/fields/SelectProducts/index.js +12 -11
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +1 -2
- package/es/components/schedules/products/index.d.ts +2 -2
- package/es/components/schedules/products/index.js +8 -7
- package/lib/components/booking/addons/index.js +1 -0
- package/lib/components/booking/addons/model.d.ts +1 -2
- package/lib/components/booking/forms/model.d.ts +1 -2
- package/lib/components/booking/info/service/addService/index.js +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.js +2 -1
- 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/model.d.ts +1 -2
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +2 -2
- package/lib/components/productExtension/fields/SelectProducts/index.js +2 -1
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +1 -2
- package/lib/components/schedules/products/index.d.ts +2 -2
- package/lib/components/schedules/products/index.js +1 -0
- package/package.json +3 -3
|
@@ -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: {
|
|
@@ -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:
|
|
466
|
+
callbackType: 'pisell2'
|
|
466
467
|
}
|
|
467
468
|
}));
|
|
468
469
|
case 2:
|
|
@@ -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: {
|
|
@@ -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
|
|
8
|
-
import { useRequest } from
|
|
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
|
|
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: [
|
|
44
|
+
with: ['category'],
|
|
45
45
|
open_quotation: 1,
|
|
46
|
-
exclude_extension_type: [
|
|
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(
|
|
85
|
-
subTitle: locales.getText(
|
|
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(
|
|
90
|
-
rootClassName:
|
|
90
|
+
title: locales.getText('pisell2.text.product-extension.add-product'),
|
|
91
|
+
rootClassName: 'select-product-drawer'
|
|
91
92
|
},
|
|
92
93
|
tabProductProps: {
|
|
93
|
-
warpClassName:
|
|
94
|
+
warpClassName: 'select-product-warp',
|
|
94
95
|
stickyTop: 188,
|
|
95
|
-
scrollDom:
|
|
96
|
+
scrollDom: '.select-product-drawer .pisell-lowcode-drawer-body'
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
99
|
};
|
|
@@ -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: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { useEffect, useContext } from
|
|
2
|
-
import { useRequest } from
|
|
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:
|
|
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:
|
|
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: [
|
|
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:
|
|
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) =>
|
|
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: {
|
|
@@ -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
|
|
@@ -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: {
|
|
@@ -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,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.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/
|
|
62
|
+
"@pisell/materials": "3.0.48",
|
|
63
63
|
"@pisell/utils": "1.0.42",
|
|
64
64
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/
|
|
65
|
+
"@pisell/date-picker": "1.0.100"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|