@pisell/materials 6.11.201 → 6.11.203

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.
@@ -245,8 +245,8 @@ var BookingLineItem = function BookingLineItem(props) {
245
245
  item: relatedProductDataSource,
246
246
  hideDivider: false,
247
247
  type: "total"
248
- }) : null))) : null, renderPromotion, isShowNote ? /*#__PURE__*/React.createElement(Note, _extends({}, other, {
249
- item: dataSource,
248
+ }) : null, renderPromotion, isShowNote ? /*#__PURE__*/React.createElement(Note, _extends({}, other, {
249
+ item: relatedProductDataSource,
250
250
  disabledEdit: disabledEdit,
251
251
  openNote: function openNote() {
252
252
  return onNote === null || onNote === void 0 ? void 0 : onNote(dataSource);
@@ -256,7 +256,7 @@ var BookingLineItem = function BookingLineItem(props) {
256
256
  onAction: function onAction() {
257
257
  return _onAction === null || _onAction === void 0 ? void 0 : _onAction(dataSource);
258
258
  }
259
- }) : null)), /*#__PURE__*/React.createElement(Gift, _extends({}, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.giftData) || {}, {
259
+ }) : null))) : null)), /*#__PURE__*/React.createElement(Gift, _extends({}, (dataSource === null || dataSource === void 0 ? void 0 : dataSource.giftData) || {}, {
260
260
  onClick: function onClick() {
261
261
  return onGift === null || onGift === void 0 ? void 0 : onGift(dataSource);
262
262
  }
@@ -56,12 +56,11 @@ var convertBundleOption = function convertBundleOption(option, translationOrigin
56
56
  });
57
57
  };
58
58
  var convertBundle = function convertBundle(bundle, translationOriginal) {
59
- var title = translateText(bundle.bundle_title, translationOriginal);
60
- var price = bundle.bundle_sum_type === 'markdown' ? "-".concat(bundle.bundle_sum_price) : bundle.bundle_sum_price;
61
59
  var options = (bundle.option || []).map(function (option) {
62
60
  return convertBundleOption(option, translationOriginal);
63
61
  });
64
62
  return _objectSpread(_objectSpread({}, bundle), {}, {
63
+ title: bundle.title || bundle.bundle_title,
65
64
  id: bundle.bundle_id,
66
65
  product_id: bundle.bundle_product_id,
67
66
  _bundle_product_id: bundle.bundle_product_id,
@@ -211,6 +210,7 @@ var LineItem = function LineItem(props) {
211
210
  onPromotion = props.onPromotion,
212
211
  onGift = props.onGift,
213
212
  other = _objectWithoutProperties(props, _excluded);
213
+ console.log('LineItem xxxxxxxxx', props);
214
214
  var context = useEngineContext();
215
215
  var translationOriginal = context.appHelper.utils.translationOriginal;
216
216
  var symbol = context.appHelper.utils.getSymbolic();
@@ -231,7 +231,7 @@
231
231
  }
232
232
 
233
233
  &__related-product-card {
234
- padding: 8px;
234
+ padding: 4px 8px 4px 4px;
235
235
  display: flex;
236
236
  flex-direction: column;
237
237
  gap: 4px;
@@ -171,7 +171,11 @@ var BookingLineItem = (props) => {
171
171
  /* @__PURE__ */ import_react.default.createElement(
172
172
  "div",
173
173
  {
174
- className: (0, import_classnames.default)(PREFIX, `${PREFIX}--booking`, `${PREFIX}--${type}`),
174
+ className: (0, import_classnames.default)(
175
+ PREFIX,
176
+ `${PREFIX}--booking`,
177
+ `${PREFIX}--${type}`
178
+ ),
175
179
  onClick: (e) => {
176
180
  if (disabledClick) return;
177
181
  e.preventDefault();
@@ -238,18 +242,21 @@ var BookingLineItem = (props) => {
238
242
  hideDivider: false,
239
243
  type: "total"
240
244
  }
241
- ) : null))) : null,
242
- renderPromotion,
243
- isShowNote ? /* @__PURE__ */ import_react.default.createElement(
245
+ ) : null, renderPromotion, isShowNote ? /* @__PURE__ */ import_react.default.createElement(
244
246
  import_Note.default,
245
247
  {
246
248
  ...other,
247
- item: dataSource,
249
+ item: relatedProductDataSource,
248
250
  disabledEdit,
249
251
  openNote: () => onNote == null ? void 0 : onNote(dataSource)
250
252
  }
251
- ) : null,
252
- isShowAction && actionText ? /* @__PURE__ */ import_react.default.createElement(import_Action.default, { item: dataSource, onAction: () => onAction == null ? void 0 : onAction(dataSource) }) : null
253
+ ) : null, isShowAction && actionText ? /* @__PURE__ */ import_react.default.createElement(
254
+ import_Action.default,
255
+ {
256
+ item: dataSource,
257
+ onAction: () => onAction == null ? void 0 : onAction(dataSource)
258
+ }
259
+ ) : null))) : null
253
260
  )
254
261
  ), /* @__PURE__ */ import_react.default.createElement(
255
262
  import_Gift.default,
@@ -78,13 +78,12 @@ var convertBundleOption = (option, translationOriginal) => ({
78
78
  num: option.num ?? option.quantity ?? 1
79
79
  });
80
80
  var convertBundle = (bundle, translationOriginal) => {
81
- const title = translateText(bundle.bundle_title, translationOriginal);
82
- const price = bundle.bundle_sum_type === "markdown" ? `-${bundle.bundle_sum_price}` : bundle.bundle_sum_price;
83
81
  const options = (bundle.option || []).map(
84
82
  (option) => convertBundleOption(option, translationOriginal)
85
83
  );
86
84
  return {
87
85
  ...bundle,
86
+ title: bundle.title || bundle.bundle_title,
88
87
  id: bundle.bundle_id,
89
88
  product_id: bundle.bundle_product_id,
90
89
  _bundle_product_id: bundle.bundle_product_id,
@@ -208,6 +207,7 @@ var LineItem = (props) => {
208
207
  onGift,
209
208
  ...other
210
209
  } = props;
210
+ console.log("LineItem xxxxxxxxx", props);
211
211
  const context = (0, import_useEngineContext.default)();
212
212
  const translationOriginal = context.appHelper.utils.translationOriginal;
213
213
  const symbol = context.appHelper.utils.getSymbolic();
@@ -231,7 +231,7 @@
231
231
  }
232
232
 
233
233
  &__related-product-card {
234
- padding: 8px;
234
+ padding: 4px 8px 4px 4px;
235
235
  display: flex;
236
236
  flex-direction: column;
237
237
  gap: 4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.11.201",
3
+ "version": "6.11.203",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -98,9 +98,9 @@
98
98
  "swiper": "^8.4.7",
99
99
  "antd-mobile": "^5.38.1",
100
100
  "vod-js-sdk-v6": "^1.4.11",
101
- "@pisell/utils": "3.0.2",
101
+ "@pisell/date-picker": "3.0.8",
102
102
  "@pisell/icon": "0.0.11",
103
- "@pisell/date-picker": "3.0.8"
103
+ "@pisell/utils": "3.0.2"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": "^18.0.0",