@pisell/materials 1.0.579 → 1.0.581
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 +6 -6
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +21 -21
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +16 -16
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +5 -9
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +3 -13
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.js +8 -6
- package/es/components/dataSourceComponents/fields/index.d.ts +2 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Header/DeleteButton/index.js +21 -0
- package/es/components/productCard/components/Header/DeleteButton/index.less +15 -0
- package/es/components/productCard/components/Header/index.js +5 -15
- package/es/components/productCard/components/Header/index.less +0 -11
- package/es/components/productCard/index.js +13 -4
- package/es/components/productCard/index.less +25 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +5 -6
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +3 -13
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.js +5 -5
- package/lib/components/dataSourceComponents/fields/index.d.ts +2 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.js +53 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.less +15 -0
- package/lib/components/productCard/components/Header/index.js +3 -14
- package/lib/components/productCard/components/Header/index.less +0 -11
- package/lib/components/productCard/index.js +87 -72
- package/lib/components/productCard/index.less +25 -1
- package/package.json +2 -2
|
@@ -38,6 +38,7 @@ var import_antd = require("antd");
|
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
39
|
var import_cardPro = __toESM(require("../cardPro"));
|
|
40
40
|
var import_Header = __toESM(require("./components/Header"));
|
|
41
|
+
var import_DeleteButton = __toESM(require("./components/Header/DeleteButton"));
|
|
41
42
|
var import_Time = __toESM(require("./components/Time"));
|
|
42
43
|
var import_Packages = __toESM(require("./components/Packages"));
|
|
43
44
|
var import_Sales = __toESM(require("./components/Sales"));
|
|
@@ -89,89 +90,103 @@ var ProductCard = (props) => {
|
|
|
89
90
|
return (bundle == null ? void 0 : bundle.length) || (relation_products == null ? void 0 : relation_products.length);
|
|
90
91
|
}, [bundle, relation_products]);
|
|
91
92
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
92
|
-
|
|
93
|
+
"div",
|
|
93
94
|
{
|
|
94
|
-
className: (0, import_classnames.default)("pisell-lowcode-product-card", {
|
|
95
|
-
["pisell-lowcode-product-card-image"]: !showImage,
|
|
96
|
-
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct,
|
|
95
|
+
className: (0, import_classnames.default)("pisell-lowcode-product-card-wrap", {
|
|
97
96
|
["pisell-lowcode-product-card-disabled"]: dataSource == null ? void 0 : dataSource.disabled
|
|
98
|
-
})
|
|
99
|
-
key: _id
|
|
97
|
+
})
|
|
100
98
|
},
|
|
101
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
102
|
-
|
|
99
|
+
(dataSource == null ? void 0 : dataSource.disabled) && /* @__PURE__ */ import_react.default.createElement("div", { className: "delete-btn-wrapper" }, /* @__PURE__ */ import_react.default.createElement(import_DeleteButton.default, { onDelete: () => onDelete == null ? void 0 : onDelete(dataSource) })),
|
|
100
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
101
|
+
import_cardPro.default,
|
|
103
102
|
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
className: (0, import_classnames.default)("pisell-lowcode-product-card", {
|
|
104
|
+
["pisell-lowcode-product-card-image"]: !showImage,
|
|
105
|
+
["pisell-lowcode-normal-product-card"]: !showImage && isNormalProduct
|
|
106
|
+
}),
|
|
107
|
+
key: _id
|
|
109
108
|
},
|
|
110
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
111
|
-
|
|
109
|
+
/* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
110
|
+
"div",
|
|
112
111
|
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
showImage,
|
|
118
|
-
onDelete: () => {
|
|
119
|
-
onDelete == null ? void 0 : onDelete(dataSource);
|
|
112
|
+
onClick: (e) => {
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
e.stopPropagation();
|
|
115
|
+
onCard == null ? void 0 : onCard(dataSource);
|
|
120
116
|
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
117
|
+
},
|
|
118
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
119
|
+
import_Header.default,
|
|
120
|
+
{
|
|
121
|
+
...other,
|
|
122
|
+
item: dataSource,
|
|
123
|
+
isShowImage,
|
|
124
|
+
isShowDelete,
|
|
125
|
+
showImage,
|
|
126
|
+
onDelete: () => {
|
|
127
|
+
onDelete == null ? void 0 : onDelete(dataSource);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
132
|
+
import_Time.default,
|
|
133
|
+
{
|
|
134
|
+
item: dataSource,
|
|
135
|
+
isShowHolder,
|
|
136
|
+
onLike: (item) => onLike == null ? void 0 : onLike(item)
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ import_react.default.createElement(import_Packages.default, { item: dataSource, isShowPackageNote }),
|
|
140
|
+
/* @__PURE__ */ import_react.default.createElement(import_Sales.default, { item: dataSource, isShowNote }),
|
|
141
|
+
((_b = dataSource.items) == null ? void 0 : _b.length) ? /* @__PURE__ */ import_react.default.createElement(import_MultiDay.default, { dataSource, hideDivider }) : /* @__PURE__ */ import_react.default.createElement(
|
|
142
|
+
import_AmountFooter.default,
|
|
143
|
+
{
|
|
144
|
+
item: dataSource,
|
|
145
|
+
hideDivider,
|
|
146
|
+
type: "total"
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
isShowNote ? /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
import_Note.default,
|
|
151
|
+
{
|
|
152
|
+
...other,
|
|
153
|
+
item: dataSource,
|
|
154
|
+
openNote: () => {
|
|
155
|
+
useOpenNoteRef.current.open({
|
|
156
|
+
item: dataSource
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
) : null,
|
|
161
|
+
isShowAction && actionText ? /* @__PURE__ */ import_react.default.createElement(
|
|
162
|
+
import_Action.default,
|
|
163
|
+
{
|
|
164
|
+
item: dataSource,
|
|
165
|
+
onAction: () => onAction == null ? void 0 : onAction(dataSource)
|
|
166
|
+
}
|
|
167
|
+
) : null,
|
|
168
|
+
errorMessage ? /* @__PURE__ */ import_react.default.createElement(
|
|
169
|
+
import_antd.Alert,
|
|
170
|
+
{
|
|
171
|
+
message: errorMessage,
|
|
172
|
+
type: "warning",
|
|
173
|
+
showIcon: true,
|
|
174
|
+
className: "pisell-lowcode-product-card-error"
|
|
175
|
+
}
|
|
176
|
+
) : null
|
|
177
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
178
|
+
import_useOpenNote.default,
|
|
143
179
|
{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
180
|
+
ref: useOpenNoteRef,
|
|
181
|
+
onNoteChange: (e) => {
|
|
182
|
+
onNote == null ? void 0 : onNote({
|
|
183
|
+
...dataSource,
|
|
184
|
+
note: e || ""
|
|
149
185
|
});
|
|
150
186
|
}
|
|
151
187
|
}
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
errorMessage ? /* @__PURE__ */ import_react.default.createElement(
|
|
155
|
-
import_antd.Alert,
|
|
156
|
-
{
|
|
157
|
-
message: errorMessage,
|
|
158
|
-
type: "warning",
|
|
159
|
-
showIcon: true,
|
|
160
|
-
className: "pisell-lowcode-product-card-error"
|
|
161
|
-
}
|
|
162
|
-
) : null
|
|
163
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
164
|
-
import_useOpenNote.default,
|
|
165
|
-
{
|
|
166
|
-
ref: useOpenNoteRef,
|
|
167
|
-
onNoteChange: (e) => {
|
|
168
|
-
onNote == null ? void 0 : onNote({
|
|
169
|
-
...dataSource,
|
|
170
|
-
note: e || ""
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
))
|
|
188
|
+
))
|
|
189
|
+
)
|
|
175
190
|
);
|
|
176
191
|
};
|
|
177
192
|
var productCard_default = ProductCard;
|
|
@@ -47,8 +47,32 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
.pisell-lowcode-product-card-wrap {
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
50
54
|
.pisell-lowcode-product-card-disabled {
|
|
51
|
-
opacity:
|
|
55
|
+
opacity: 1;
|
|
56
|
+
|
|
57
|
+
.pisell-lowcode-product-card {
|
|
58
|
+
opacity: 0.4;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.delete-btn-wrapper {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
pointer-events: auto;
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 1px;
|
|
67
|
+
right: 1px;
|
|
68
|
+
z-index: 10;
|
|
69
|
+
|
|
70
|
+
.anticon {
|
|
71
|
+
color: red;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
opacity: 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
52
76
|
}
|
|
53
77
|
|
|
54
78
|
.pisell-lowcode-product-card-error {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.581",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"libphonenumber-js": "^1.11.17",
|
|
70
70
|
"swiper": "^8.4.7",
|
|
71
71
|
"react-barcode": "^1.5.3",
|
|
72
|
-
"@pisell/icon": "0.0.10",
|
|
73
72
|
"@pisell/date-picker": "1.0.115",
|
|
73
|
+
"@pisell/icon": "0.0.10",
|
|
74
74
|
"@pisell/utils": "1.0.43"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|