@pisell/private-materials 3.0.13 → 3.0.14
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.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/booking/components/addButton/index.d.ts +8 -8
- package/es/components/booking/components/addButton/index.js +1 -1
- package/es/components/booking/components/drawer/index.d.ts +1 -1
- package/es/components/booking/components/footer/FooterMenus/index.js +1 -1
- package/es/components/booking/components/footer/index.js +23 -21
- package/es/components/booking/components/footer/utils.js +4 -3
- package/es/components/booking/forms/forms.js +2 -1
- package/es/components/booking/info/client/index.js +0 -1
- package/es/components/booking/info/date/index.less +1 -1
- package/es/components/booking/info/index.js +10 -4
- package/es/components/booking/info/pet/index.js +5 -7
- package/es/components/booking/info/service/addService/index.js +27 -11
- package/es/components/booking/info/service/editService/index.js +8 -7
- package/es/components/booking/info/service/index.js +1 -1
- package/es/components/booking/info/service/index.less +3 -0
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +3 -0
- package/es/components/booking/model.d.ts +11 -0
- package/es/components/booking/utils.js +2 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/productExtension/card/index.d.ts +10 -0
- package/es/components/productExtension/card/index.js +20 -0
- package/es/components/productExtension/card/index.less +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/es/components/productExtension/fields/Actor/Container/index.js +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +94 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/es/components/productExtension/fields/Actor/index.js +23 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/es/components/productExtension/fields/Forms/index.js +184 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +30 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/es/components/productExtension/fields/SelectProducts/index.js +91 -0
- package/es/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/es/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/es/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/es/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +29 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.js +198 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.js +5072 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +49 -0
- package/es/components/productExtension/fields/index.d.ts +1 -0
- package/es/components/productExtension/fields/index.js +33 -0
- package/es/components/productExtension/index.d.ts +7 -0
- package/es/components/productExtension/index.js +77 -0
- package/es/components/productExtension/index.less +0 -0
- package/es/components/productExtension/locales.d.ts +48 -0
- package/es/components/productExtension/locales.js +47 -0
- package/es/components/productExtension/server.d.ts +1 -0
- package/es/components/productExtension/server.js +29 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +21 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +20 -5
- package/es/components/selectModal/index.d.ts +24 -0
- package/es/components/selectModal/index.js +108 -0
- package/es/components/selectModal/index.less +0 -0
- package/es/components/tabProduct/card/index.d.ts +2 -2
- package/es/components/tabProduct/card/index.js +3 -4
- package/es/components/tabProduct/index.d.ts +4 -2
- package/es/components/tabProduct/index.js +10 -9
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/utils/index.d.ts +22 -0
- package/es/utils/index.js +56 -0
- package/lib/components/booking/components/addButton/index.d.ts +8 -8
- package/lib/components/booking/components/addButton/index.js +1 -1
- package/lib/components/booking/components/drawer/index.d.ts +1 -1
- package/lib/components/booking/components/footer/FooterMenus/index.js +1 -1
- package/lib/components/booking/components/footer/index.js +3 -1
- package/lib/components/booking/components/footer/utils.js +4 -2
- package/lib/components/booking/forms/forms.js +1 -1
- package/lib/components/booking/info/client/index.js +0 -1
- package/lib/components/booking/info/date/index.less +1 -1
- package/lib/components/booking/info/index.js +7 -1
- package/lib/components/booking/info/pet/index.js +5 -7
- package/lib/components/booking/info/service/addService/index.js +25 -10
- package/lib/components/booking/info/service/editService/index.js +7 -5
- package/lib/components/booking/info/service/index.js +1 -1
- package/lib/components/booking/info/service/index.less +3 -0
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +3 -0
- package/lib/components/booking/model.d.ts +11 -0
- package/lib/components/booking/utils.js +2 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/productExtension/card/index.d.ts +10 -0
- package/lib/components/productExtension/card/index.js +57 -0
- package/lib/components/productExtension/card/index.less +34 -0
- package/lib/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/lib/components/productExtension/fields/Actor/Container/index.js +64 -0
- package/lib/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.js +128 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/lib/components/productExtension/fields/Actor/index.js +56 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Forms/index.js +108 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +65 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/lib/components/productExtension/fields/SelectProducts/index.js +111 -0
- package/lib/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/lib/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/server.js +33 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.js +179 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.js +12723 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.js +39 -0
- package/lib/components/productExtension/fields/index.d.ts +1 -0
- package/lib/components/productExtension/fields/index.js +69 -0
- package/lib/components/productExtension/index.d.ts +7 -0
- package/lib/components/productExtension/index.js +108 -0
- package/lib/components/productExtension/index.less +0 -0
- package/lib/components/productExtension/locales.d.ts +48 -0
- package/lib/components/productExtension/locales.js +71 -0
- package/lib/components/productExtension/server.d.ts +1 -0
- package/lib/components/productExtension/server.js +33 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +11 -6
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +18 -4
- package/lib/components/selectModal/index.d.ts +24 -0
- package/lib/components/selectModal/index.js +133 -0
- package/lib/components/selectModal/index.less +0 -0
- package/lib/components/tabProduct/card/index.d.ts +2 -2
- package/lib/components/tabProduct/card/index.js +1 -2
- package/lib/components/tabProduct/index.d.ts +4 -2
- package/lib/components/tabProduct/index.js +7 -8
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/utils/index.d.ts +22 -0
- package/lib/utils/index.js +59 -0
- package/lowcode/product-extension/meta.ts +120 -0
- package/package.json +1 -1
|
@@ -128,7 +128,7 @@ var Info = () => {
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
d.id ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-title" }, d.title) : null,
|
|
131
|
-
d._extend ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-date" }, (0, import_utils2.getServiceTime)(d, state.date.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-technician" }, d._extend.resource ? /* @__PURE__ */ import_react.default.createElement(
|
|
131
|
+
d._extend ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, state.renderType !== "eventBooking" && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-date" }, (0, import_utils2.getServiceTime)(d, state.date.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-item-technician" }, d._extend.resource ? /* @__PURE__ */ import_react.default.createElement(
|
|
132
132
|
import_like.default,
|
|
133
133
|
{
|
|
134
134
|
style: { marginRight: 4 },
|
|
@@ -40,6 +40,7 @@ declare const _default: {
|
|
|
40
40
|
'pisell2.text.add-notes': string;
|
|
41
41
|
'pisell2.text.notes': string;
|
|
42
42
|
'pisell2.text.new-appointment': string;
|
|
43
|
+
'pisell2.text.enroll': string;
|
|
43
44
|
'pisell2.text.add-products-successfully': string;
|
|
44
45
|
'pisell2.text.add': string;
|
|
45
46
|
'pisell2.text.created-successfully': string;
|
|
@@ -168,6 +169,7 @@ declare const _default: {
|
|
|
168
169
|
'pisell2.text.add-notes': string;
|
|
169
170
|
'pisell2.text.notes': string;
|
|
170
171
|
'pisell2.text.new-appointment': string;
|
|
172
|
+
'pisell2.text.enroll': string;
|
|
171
173
|
'pisell2.text.add-products-successfully': string;
|
|
172
174
|
'pisell2.text.refund': string;
|
|
173
175
|
'pisell2.text.refund-amount': string;
|
|
@@ -291,6 +293,7 @@ declare const _default: {
|
|
|
291
293
|
'pisell2.text.add-notes': string;
|
|
292
294
|
'pisell2.text.notes': string;
|
|
293
295
|
'pisell2.text.new-appointment': string;
|
|
296
|
+
'pisell2.text.enroll': string;
|
|
294
297
|
'pisell2.text.add-products-successfully': string;
|
|
295
298
|
'pisell2.text.add': string;
|
|
296
299
|
'pisell2.text.created-successfully': string;
|
|
@@ -64,6 +64,7 @@ var locales_default = {
|
|
|
64
64
|
"pisell2.text.add-notes": "Add Notes",
|
|
65
65
|
"pisell2.text.notes": "Notes",
|
|
66
66
|
"pisell2.text.new-appointment": "New appointment",
|
|
67
|
+
"pisell2.text.enroll": "Enroll",
|
|
67
68
|
"pisell2.text.add-products-successfully": "Add products successfully",
|
|
68
69
|
"pisell2.text.add": "Add",
|
|
69
70
|
"pisell2.text.created-successfully": "Appointment created",
|
|
@@ -201,6 +202,7 @@ var locales_default = {
|
|
|
201
202
|
"pisell2.text.add-notes": "添加备注",
|
|
202
203
|
"pisell2.text.notes": "备注",
|
|
203
204
|
"pisell2.text.new-appointment": "新预约",
|
|
205
|
+
"pisell2.text.enroll": "报名",
|
|
204
206
|
"pisell2.text.add-products-successfully": "添加商品成功",
|
|
205
207
|
"pisell2.text.refund": "退款",
|
|
206
208
|
"pisell2.text.refund-amount": "退款金额",
|
|
@@ -338,6 +340,7 @@ var locales_default = {
|
|
|
338
340
|
"pisell2.text.add-notes": "添加備注",
|
|
339
341
|
"pisell2.text.notes": "備注",
|
|
340
342
|
"pisell2.text.new-appointment": "新預約",
|
|
343
|
+
"pisell2.text.enroll": "报名",
|
|
341
344
|
"pisell2.text.add-products-successfully": "添加商品成功",
|
|
342
345
|
//
|
|
343
346
|
"pisell2.text.add": "添加",
|
|
@@ -70,6 +70,17 @@ export interface FormState {
|
|
|
70
70
|
bookingId: string | number;
|
|
71
71
|
bookingDetail: any;
|
|
72
72
|
channelDisabledEdit: boolean;
|
|
73
|
+
renderType?: 'eventBooking';
|
|
74
|
+
eventOtherParams?: {
|
|
75
|
+
relation_id: number;
|
|
76
|
+
number: number;
|
|
77
|
+
registration_type: 'single' | 'all' | 'extra_include';
|
|
78
|
+
start_date: string;
|
|
79
|
+
start_time: string;
|
|
80
|
+
end_date: string;
|
|
81
|
+
end_time: string;
|
|
82
|
+
productIds: number[];
|
|
83
|
+
};
|
|
73
84
|
}
|
|
74
85
|
export declare const walkInData: {
|
|
75
86
|
id: number;
|
|
@@ -368,6 +368,7 @@ var deleteCacheParams = () => {
|
|
|
368
368
|
sessionStorage.removeItem("pisell2.booking.serviceParams");
|
|
369
369
|
};
|
|
370
370
|
var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
371
|
+
var _a;
|
|
371
372
|
if (!cacheItem.new && cacheItem._extend.endDate) {
|
|
372
373
|
return cacheItem._extend;
|
|
373
374
|
}
|
|
@@ -376,7 +377,7 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
|
376
377
|
duration: findNextDuration(
|
|
377
378
|
cacheItem.duration,
|
|
378
379
|
timeObj.durationSlicesBasedOnTime,
|
|
379
|
-
cacheItem.duration.value
|
|
380
|
+
(_a = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _a.value
|
|
380
381
|
)
|
|
381
382
|
};
|
|
382
383
|
if (lastServer) {
|
|
@@ -5,4 +5,5 @@ import BookingNotes from './booking/notes';
|
|
|
5
5
|
import BookingAddons from './booking/addons';
|
|
6
6
|
import BookingForms from './booking/forms';
|
|
7
7
|
import Schedules from './schedules';
|
|
8
|
-
|
|
8
|
+
import ProductExtension from './productExtension';
|
|
9
|
+
export { Login, BookingInfo, Booking, BookingNotes, BookingAddons, BookingForms, Schedules, ProductExtension };
|
package/lib/components/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(components_exports, {
|
|
|
35
35
|
BookingInfo: () => import_info.default,
|
|
36
36
|
BookingNotes: () => import_notes.default,
|
|
37
37
|
Login: () => import_login.default,
|
|
38
|
+
ProductExtension: () => import_productExtension.default,
|
|
38
39
|
Schedules: () => import_schedules.default
|
|
39
40
|
});
|
|
40
41
|
module.exports = __toCommonJS(components_exports);
|
|
@@ -45,6 +46,7 @@ var import_notes = __toESM(require("./booking/notes"));
|
|
|
45
46
|
var import_addons = __toESM(require("./booking/addons"));
|
|
46
47
|
var import_forms = __toESM(require("./booking/forms"));
|
|
47
48
|
var import_schedules = __toESM(require("./schedules"));
|
|
49
|
+
var import_productExtension = __toESM(require("./productExtension"));
|
|
48
50
|
// Annotate the CommonJS export names for ESM import in node:
|
|
49
51
|
0 && (module.exports = {
|
|
50
52
|
Booking,
|
|
@@ -53,5 +55,6 @@ var import_schedules = __toESM(require("./schedules"));
|
|
|
53
55
|
BookingInfo,
|
|
54
56
|
BookingNotes,
|
|
55
57
|
Login,
|
|
58
|
+
ProductExtension,
|
|
56
59
|
Schedules
|
|
57
60
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
interface LmCardProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
|
+
header: React.ReactNode;
|
|
5
|
+
headerClassName: string;
|
|
6
|
+
extra: React.ReactNode;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const LmCard: React.FC<Partial<LmCardProps>>;
|
|
10
|
+
export default LmCard;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productExtension/card/index.tsx
|
|
30
|
+
var card_exports = {};
|
|
31
|
+
__export(card_exports, {
|
|
32
|
+
default: () => card_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(card_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_index = require("./index.less");
|
|
38
|
+
var LmCard = (props) => {
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: (0, import_classnames.default)("pisell_card", props.className, {
|
|
43
|
+
["pisell_card-hidden"]: props.hidden
|
|
44
|
+
}),
|
|
45
|
+
style: props.style
|
|
46
|
+
},
|
|
47
|
+
props.header ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell_card-header" }, /* @__PURE__ */ import_react.default.createElement(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
className: (0, import_classnames.default)("pisell_card-title", props.headerClassName)
|
|
51
|
+
},
|
|
52
|
+
props.header
|
|
53
|
+
), props.extra) : null,
|
|
54
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell_card-content") }, props.children)
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
var card_default = LmCard;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.pisell_card {
|
|
2
|
+
width: 100%;
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
opacity: 1;
|
|
5
|
+
border-radius: 12px;
|
|
6
|
+
padding: 20px;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
margin-bottom: 20px;
|
|
9
|
+
// overflow: hidden;
|
|
10
|
+
|
|
11
|
+
&.pisell_card-hidden {
|
|
12
|
+
height: 0;
|
|
13
|
+
width: 0;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pisell_card-header {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
margin-bottom: 20px;
|
|
24
|
+
|
|
25
|
+
.pisell_card-title {
|
|
26
|
+
height: 28px;
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
// font-weight: 650;
|
|
29
|
+
line-height: 28px;
|
|
30
|
+
color: #252a2d;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
interface ContainerProps {
|
|
4
|
+
title: string;
|
|
5
|
+
children: any;
|
|
6
|
+
desc: string | ReactElement;
|
|
7
|
+
isMargin: boolean;
|
|
8
|
+
hint: string | ReactElement;
|
|
9
|
+
hintProps: object;
|
|
10
|
+
}
|
|
11
|
+
declare const Container: React.FC<Partial<ContainerProps>>;
|
|
12
|
+
export default Container;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productExtension/fields/Actor/Container/index.tsx
|
|
30
|
+
var Container_exports = {};
|
|
31
|
+
__export(Container_exports, {
|
|
32
|
+
default: () => Container_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Container_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_icons = require("@ant-design/icons");
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var Container = ({
|
|
40
|
+
title,
|
|
41
|
+
children,
|
|
42
|
+
desc,
|
|
43
|
+
isMargin = false,
|
|
44
|
+
hint,
|
|
45
|
+
hintProps
|
|
46
|
+
}) => {
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2_product-extension-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2_product-extension-container-title-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2_product-extension-container-title" }, title), hint ? /* @__PURE__ */ import_react.default.createElement(import_antd.Tooltip, { title: hint, ...hintProps }, /* @__PURE__ */ import_react.default.createElement(
|
|
48
|
+
import_icons.QuestionCircleOutlined,
|
|
49
|
+
{
|
|
50
|
+
style: {
|
|
51
|
+
marginLeft: 4,
|
|
52
|
+
cursor: "pointer"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
)) : null), children, /* @__PURE__ */ import_react.default.createElement(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: "pisell2_product-extension-container-desc",
|
|
59
|
+
style: { marginBottom: isMargin ? "15px" : "" }
|
|
60
|
+
},
|
|
61
|
+
desc
|
|
62
|
+
));
|
|
63
|
+
};
|
|
64
|
+
var Container_default = Container;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.pisell2_product-extension-container {
|
|
2
|
+
.pisell2_product-extension-container-title-wrap {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
margin-bottom: 6px;
|
|
6
|
+
|
|
7
|
+
.pisell2_product-extension-container-title {
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
color: #222b45;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pisell2_product-extension-container-desc {
|
|
14
|
+
color: rgba(0, 0, 0, 0.45);
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
17
|
+
margin-top: 8px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
export declare const maxNumber: any;
|
|
4
|
+
interface CutOffTimeProps {
|
|
5
|
+
value?: any;
|
|
6
|
+
onChange?: (e: any) => void;
|
|
7
|
+
name: string[];
|
|
8
|
+
}
|
|
9
|
+
declare const CutOffTime: React.FC<CutOffTimeProps>;
|
|
10
|
+
export default CutOffTime;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productExtension/fields/Actor/CutOffTime/index.tsx
|
|
30
|
+
var CutOffTime_exports = {};
|
|
31
|
+
__export(CutOffTime_exports, {
|
|
32
|
+
default: () => CutOffTime_default,
|
|
33
|
+
maxNumber: () => maxNumber
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(CutOffTime_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_antd = require("antd");
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var import_Container = __toESM(require("../Container"));
|
|
40
|
+
var import_utils = require("@pisell/utils");
|
|
41
|
+
var { Option } = import_antd.Select;
|
|
42
|
+
var maxNumber = {
|
|
43
|
+
days: 365,
|
|
44
|
+
hours: 8760,
|
|
45
|
+
minutes: 525600
|
|
46
|
+
};
|
|
47
|
+
var CutOffTime = ({ value, onChange, name }) => {
|
|
48
|
+
const [cutTimeMax, setCutTimeMax] = (0, import_react.useState)(365);
|
|
49
|
+
const timeOptions = [
|
|
50
|
+
{
|
|
51
|
+
label: import_utils.locales.getText("pisell2.text.product-extension.days"),
|
|
52
|
+
value: "days"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: import_utils.locales.getText("pisell2.text.product-extension.hours"),
|
|
56
|
+
value: "hours"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: import_utils.locales.getText("pisell2.text.product-extension.minutes"),
|
|
60
|
+
value: "minutes"
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
(0, import_react.useEffect)(() => {
|
|
64
|
+
if (value) {
|
|
65
|
+
setCutTimeMax(maxNumber[value == null ? void 0 : value.unit_type]);
|
|
66
|
+
}
|
|
67
|
+
}, [value]);
|
|
68
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2_product-extension-cut-off-time-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_Container.default,
|
|
70
|
+
{
|
|
71
|
+
title: import_utils.locales.getText("pisell2.text.product-extension.cut-off-time"),
|
|
72
|
+
desc: import_utils.locales.getText(
|
|
73
|
+
"pisell2.text.product-extension.cut-off-time.desc"
|
|
74
|
+
),
|
|
75
|
+
isMargin: true
|
|
76
|
+
},
|
|
77
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2_product-extension-cut-off-time-input-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: [...name, "unit"], noStyle: true, initialValue: 1 }, /* @__PURE__ */ import_react.default.createElement(
|
|
78
|
+
import_antd.InputNumber,
|
|
79
|
+
{
|
|
80
|
+
min: 1,
|
|
81
|
+
size: "large",
|
|
82
|
+
max: cutTimeMax,
|
|
83
|
+
className: "pisell2_product-extension-cut-off-time-input-small"
|
|
84
|
+
}
|
|
85
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
86
|
+
import_antd.Form.Item,
|
|
87
|
+
{
|
|
88
|
+
name: [...name, "unit_type"],
|
|
89
|
+
noStyle: true,
|
|
90
|
+
initialValue: "days"
|
|
91
|
+
},
|
|
92
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
93
|
+
import_antd.Select,
|
|
94
|
+
{
|
|
95
|
+
size: "large",
|
|
96
|
+
className: "pisell2_product-extension-cut-off-time-select-wrap",
|
|
97
|
+
onChange: (value2) => {
|
|
98
|
+
setCutTimeMax(maxNumber[value2]);
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
timeOptions.map((i) => /* @__PURE__ */ import_react.default.createElement(Option, { key: i.value }, i.label))
|
|
102
|
+
)
|
|
103
|
+
))
|
|
104
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
105
|
+
import_Container.default,
|
|
106
|
+
{
|
|
107
|
+
title: import_utils.locales.getText("pisell2.text.product-extension.future-day"),
|
|
108
|
+
desc: import_utils.locales.getText("pisell2.text.product-extension.future-day.hint")
|
|
109
|
+
},
|
|
110
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell2_product-extension-cut-off-time-input-wrap" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: [...name, "future_day"], noStyle: true, initialValue: 365 }, /* @__PURE__ */ import_react.default.createElement(
|
|
111
|
+
import_antd.InputNumber,
|
|
112
|
+
{
|
|
113
|
+
size: "large",
|
|
114
|
+
min: 0,
|
|
115
|
+
max: 365,
|
|
116
|
+
addonAfter: import_utils.locales.getText(
|
|
117
|
+
"pisell2.text.product-extension.days"
|
|
118
|
+
),
|
|
119
|
+
className: "pisell2_product-extension-cut-off-time-input-big"
|
|
120
|
+
}
|
|
121
|
+
)))
|
|
122
|
+
));
|
|
123
|
+
};
|
|
124
|
+
var CutOffTime_default = CutOffTime;
|
|
125
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
126
|
+
0 && (module.exports = {
|
|
127
|
+
maxNumber
|
|
128
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.pisell2_product-extension-cut-off-time-wrap {
|
|
2
|
+
.pisell2_product-extension-cut-off-time-title {
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
color: #222b45;
|
|
5
|
+
margin-bottom: 6px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.pisell2_product-extension-cut-off-time-desc {
|
|
9
|
+
color: rgba(0, 0, 0, 0.45);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
12
|
+
margin-top: 8px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pisell2_product-extension-cut-off-time-input-wrap {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
|
|
19
|
+
.pisell2_product-extension-cut-off-time-select-wrap {
|
|
20
|
+
width: 20%;
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pisell2_product-extension-cut-off-time-input-small {
|
|
25
|
+
width: 78%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pisell2_product-extension-cut-off-time-input-big {
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productExtension/fields/Actor/index.tsx
|
|
30
|
+
var Actor_exports = {};
|
|
31
|
+
__export(Actor_exports, {
|
|
32
|
+
default: () => Actor_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Actor_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_SelectProducts = __toESM(require("../SelectProducts"));
|
|
38
|
+
var import_CutOffTime = __toESM(require("./CutOffTime"));
|
|
39
|
+
var Actor = ({ name }) => {
|
|
40
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: [name, "products"] }, /* @__PURE__ */ import_react.default.createElement(import_SelectProducts.default, null)), /* @__PURE__ */ import_react.default.createElement(
|
|
41
|
+
import_antd.Form.Item,
|
|
42
|
+
{
|
|
43
|
+
hidden: true,
|
|
44
|
+
name: [name, "actor_type"],
|
|
45
|
+
initialValue: "product"
|
|
46
|
+
}
|
|
47
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
48
|
+
import_antd.Form.Item,
|
|
49
|
+
{
|
|
50
|
+
hidden: true,
|
|
51
|
+
name: [name, "product_type"],
|
|
52
|
+
initialValue: "products"
|
|
53
|
+
}
|
|
54
|
+
), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, null, /* @__PURE__ */ import_react.default.createElement(import_CutOffTime.default, { name: [name, "cut_off_time"] })));
|
|
55
|
+
};
|
|
56
|
+
var Actor_default = Actor;
|