@pisell/private-materials 3.2.25 โ 3.2.27
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 +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +5 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.less +8 -1
- package/es/components/appointmentBooking/components/Header/index.js +4 -1
- package/es/components/booking/addons/index.js +7 -5
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.js +1 -6
- package/es/components/booking/components/footer/utils.js +8 -5
- package/es/components/booking/forms/footer.d.ts +6 -0
- package/es/components/booking/forms/footer.js +88 -0
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/index.js +25 -20
- package/es/components/booking/forms/index.less +7 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/index.d.ts +27 -0
- package/es/components/booking/forms/sendModal/index.js +82 -0
- package/es/components/booking/forms/sendModal/index.less +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.js +79 -0
- package/es/components/booking/forms/serve.d.ts +9 -0
- package/es/components/booking/forms/serve.js +20 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/info/service/editService/index.js +71 -51
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.js +57 -5
- package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
- package/es/components/booking/info2/service/editService/index.js +5 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/locales.d.ts +39 -0
- package/es/components/booking/locales.js +39 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +2 -2
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/serve.js +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +8 -8
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +8 -1
- package/lib/components/appointmentBooking/components/Header/index.js +4 -1
- package/lib/components/booking/addons/index.js +7 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.js +1 -2
- package/lib/components/booking/components/footer/utils.js +4 -5
- package/lib/components/booking/forms/footer.d.ts +6 -0
- package/lib/components/booking/forms/footer.js +81 -0
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/index.js +4 -2
- package/lib/components/booking/forms/index.less +7 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
- package/lib/components/booking/forms/sendModal/index.js +128 -0
- package/lib/components/booking/forms/sendModal/index.less +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
- package/lib/components/booking/forms/serve.d.ts +9 -0
- package/lib/components/booking/forms/serve.js +5 -2
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/editService/index.js +12 -2
- package/lib/components/booking/info2/service/addService/index.js +3 -2
- package/lib/components/booking/info2/service/addService/utils.js +36 -1
- package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
- package/lib/components/booking/info2/service/editService/index.js +4 -2
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/locales.d.ts +39 -0
- package/lib/components/booking/locales.js +39 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +1 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/serve.js +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/package.json +3 -3
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
.select-product-container {
|
|
2
|
-
padding: 24px;
|
|
3
|
-
background: #fff;
|
|
4
|
-
|
|
5
|
-
.step-header {
|
|
6
|
-
margin-bottom: 24px;
|
|
7
|
-
|
|
8
|
-
.step-number {
|
|
9
|
-
font-size: 14px;
|
|
10
|
-
color: #666;
|
|
11
|
-
margin-bottom: 8px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.step-title {
|
|
15
|
-
font-size: 24px;
|
|
16
|
-
font-weight: 500;
|
|
17
|
-
color: #333;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.category-section {
|
|
22
|
-
margin-bottom: 24px;
|
|
23
|
-
|
|
24
|
-
.category-title {
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
color: #333;
|
|
28
|
-
margin-bottom: 16px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.product-list {
|
|
32
|
-
display: grid;
|
|
33
|
-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
34
|
-
gap: 16px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.product-card {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
transition: all 0.3s;
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
transform: translateY(-2px);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.product-card-selected {
|
|
47
|
-
.pisell-card {
|
|
48
|
-
border-color: #1890ff;
|
|
49
|
-
background: rgba(24, 144, 255, 0.05);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.product-content {
|
|
54
|
-
text-align: center;
|
|
55
|
-
|
|
56
|
-
.product-title {
|
|
57
|
-
font-size: 16px;
|
|
58
|
-
color: #333;
|
|
59
|
-
margin-bottom: 8px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.product-price {
|
|
63
|
-
font-size: 14px;
|
|
64
|
-
color: #666;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.cart-section {
|
|
70
|
-
background: #f5f5f5;
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
padding: 24px;
|
|
73
|
-
|
|
74
|
-
.cart-title {
|
|
75
|
-
font-size: 18px;
|
|
76
|
-
font-weight: 500;
|
|
77
|
-
color: #333;
|
|
78
|
-
margin-bottom: 16px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.cart-empty {
|
|
82
|
-
text-align: center;
|
|
83
|
-
padding: 32px 0;
|
|
84
|
-
|
|
85
|
-
.cart-empty-icon {
|
|
86
|
-
font-size: 24px;
|
|
87
|
-
margin-bottom: 8px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.cart-empty-text {
|
|
91
|
-
color: #999;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.cart-items {
|
|
96
|
-
.cart-item {
|
|
97
|
-
padding: 12px;
|
|
98
|
-
background: #fff;
|
|
99
|
-
border-radius: 4px;
|
|
100
|
-
margin-bottom: 8px;
|
|
101
|
-
|
|
102
|
-
&:last-child {
|
|
103
|
-
margin-bottom: 0;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// ็งปๅจ็ซฏ้้
|
|
111
|
-
@media screen and (max-width: 768px) {
|
|
112
|
-
.select-product-container {
|
|
113
|
-
padding: 16px;
|
|
114
|
-
|
|
115
|
-
.step-header {
|
|
116
|
-
margin-bottom: 16px;
|
|
117
|
-
|
|
118
|
-
.step-title {
|
|
119
|
-
font-size: 20px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.product-list {
|
|
124
|
-
grid-template-columns: 1fr !important;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.cart-section {
|
|
128
|
-
padding: 16px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
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/eventBooking/components/Provider/SelectProduct/index.tsx
|
|
30
|
-
var SelectProduct_exports = {};
|
|
31
|
-
__export(SelectProduct_exports, {
|
|
32
|
-
default: () => SelectProduct_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(SelectProduct_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_Sales = require("../../../Sales");
|
|
37
|
-
var import_utils = require("@pisell/utils");
|
|
38
|
-
var import_materials = require("@pisell/materials");
|
|
39
|
-
var import_index = require("./index.less");
|
|
40
|
-
var SelectProduct = () => {
|
|
41
|
-
var _a;
|
|
42
|
-
const { data } = (0, import_Sales.useSales)();
|
|
43
|
-
const { addToCart, cartData } = (0, import_Sales.useCart)();
|
|
44
|
-
const handleAddToCart = (product) => {
|
|
45
|
-
addToCart(product);
|
|
46
|
-
};
|
|
47
|
-
const renderProductCard = (product) => {
|
|
48
|
-
var _a2;
|
|
49
|
-
const isSelected = (_a2 = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a2.some(
|
|
50
|
-
(item) => item.id === product.id
|
|
51
|
-
);
|
|
52
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
53
|
-
"div",
|
|
54
|
-
{
|
|
55
|
-
key: product.id,
|
|
56
|
-
className: `product-card ${isSelected ? "product-card-selected" : ""}`,
|
|
57
|
-
onClick: () => handleAddToCart(product)
|
|
58
|
-
},
|
|
59
|
-
/* @__PURE__ */ import_react.default.createElement(import_materials.PisellCard, { bodyStyle: { padding: "16px" } }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "product-title" }, product.title), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-price" }, product.price, " ", product.currency)))
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "select-product-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "step-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "step-number" }, "Step 1"), /* @__PURE__ */ import_react.default.createElement("div", { className: "step-title" }, "Select Product")), /* @__PURE__ */ import_react.default.createElement("div", { className: "category-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "category-title" }, "Other"), /* @__PURE__ */ import_react.default.createElement("div", { className: "product-list" }, renderProductCard({
|
|
63
|
-
id: "1",
|
|
64
|
-
title: "appointment",
|
|
65
|
-
price: "1.00",
|
|
66
|
-
currency: "AUD"
|
|
67
|
-
}))), /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-title" }, "Your cart"), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-items" }, cartData.cartItems.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.id, className: "cart-item" }, item.title))) : /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-empty" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-empty-icon" }, "๐"), /* @__PURE__ */ import_react.default.createElement("div", { className: "cart-empty-text" }, import_utils.locales.getText("pisell2.event.cart.empty")))));
|
|
68
|
-
};
|
|
69
|
-
var SelectProduct_default = SelectProduct;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
.select-product-container {
|
|
2
|
-
padding: 24px;
|
|
3
|
-
background: #fff;
|
|
4
|
-
|
|
5
|
-
.step-header {
|
|
6
|
-
margin-bottom: 24px;
|
|
7
|
-
|
|
8
|
-
.step-number {
|
|
9
|
-
font-size: 14px;
|
|
10
|
-
color: #666;
|
|
11
|
-
margin-bottom: 8px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.step-title {
|
|
15
|
-
font-size: 24px;
|
|
16
|
-
font-weight: 500;
|
|
17
|
-
color: #333;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.category-section {
|
|
22
|
-
margin-bottom: 24px;
|
|
23
|
-
|
|
24
|
-
.category-title {
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
color: #333;
|
|
28
|
-
margin-bottom: 16px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.product-list {
|
|
32
|
-
display: grid;
|
|
33
|
-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
34
|
-
gap: 16px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.product-card {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
transition: all 0.3s;
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
transform: translateY(-2px);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.product-card-selected {
|
|
47
|
-
.pisell-card {
|
|
48
|
-
border-color: #1890ff;
|
|
49
|
-
background: rgba(24, 144, 255, 0.05);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.product-content {
|
|
54
|
-
text-align: center;
|
|
55
|
-
|
|
56
|
-
.product-title {
|
|
57
|
-
font-size: 16px;
|
|
58
|
-
color: #333;
|
|
59
|
-
margin-bottom: 8px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.product-price {
|
|
63
|
-
font-size: 14px;
|
|
64
|
-
color: #666;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.cart-section {
|
|
70
|
-
background: #f5f5f5;
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
padding: 24px;
|
|
73
|
-
|
|
74
|
-
.cart-title {
|
|
75
|
-
font-size: 18px;
|
|
76
|
-
font-weight: 500;
|
|
77
|
-
color: #333;
|
|
78
|
-
margin-bottom: 16px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.cart-empty {
|
|
82
|
-
text-align: center;
|
|
83
|
-
padding: 32px 0;
|
|
84
|
-
|
|
85
|
-
.cart-empty-icon {
|
|
86
|
-
font-size: 24px;
|
|
87
|
-
margin-bottom: 8px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.cart-empty-text {
|
|
91
|
-
color: #999;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.cart-items {
|
|
96
|
-
.cart-item {
|
|
97
|
-
padding: 12px;
|
|
98
|
-
background: #fff;
|
|
99
|
-
border-radius: 4px;
|
|
100
|
-
margin-bottom: 8px;
|
|
101
|
-
|
|
102
|
-
&:last-child {
|
|
103
|
-
margin-bottom: 0;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// ็งปๅจ็ซฏ้้
|
|
111
|
-
@media screen and (max-width: 768px) {
|
|
112
|
-
.select-product-container {
|
|
113
|
-
padding: 16px;
|
|
114
|
-
|
|
115
|
-
.step-header {
|
|
116
|
-
margin-bottom: 16px;
|
|
117
|
-
|
|
118
|
-
.step-title {
|
|
119
|
-
font-size: 20px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.product-list {
|
|
124
|
-
grid-template-columns: 1fr !important;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.cart-section {
|
|
128
|
-
padding: 16px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|