@pisell/materials 6.12.50 → 6.12.52

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.
Files changed (75) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/PisellCards/index.d.ts +0 -1
  10. package/es/components/PisellFields/index.d.ts +0 -1
  11. package/es/components/PisellLayouts/index.d.ts +0 -1
  12. package/es/components/PisellMetrics/index.d.ts +0 -1
  13. package/es/components/appVersionControl/types.d.ts +0 -1
  14. package/es/components/calendar/index.d.ts +0 -1
  15. package/es/components/checkbox/index.d.ts +0 -1
  16. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  18. package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  19. package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  22. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  23. package/es/components/date-picker/index.d.ts +0 -1
  24. package/es/components/drag-sort-tree/types.d.ts +0 -1
  25. package/es/components/filter/components/FilterButton/types.d.ts +0 -1
  26. package/es/components/input/index.d.ts +0 -1
  27. package/es/components/pisell-config-provider/context.d.ts +0 -1
  28. package/es/components/pisellDatePicker/index.d.ts +0 -1
  29. package/es/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  30. package/es/components/pisellMenu/types.d.ts +0 -1
  31. package/es/components/pisellQuickFilter/type.d.ts +0 -1
  32. package/es/components/productCard/cartSkuCard/index.js +22 -13
  33. package/es/components/productCard/cartSkuCard/types.d.ts +1 -0
  34. package/es/components/productCard/cartSkuCard/variants/A12/index.js +8 -6
  35. package/es/components/productCard/cartSkuCard/variants/A12/index.less +47 -13
  36. package/es/components/radio/index.d.ts +0 -1
  37. package/es/components/section-footers/index.d.ts +0 -1
  38. package/es/components/skeleton/index.d.ts +0 -1
  39. package/es/components/time-picker/index.d.ts +0 -1
  40. package/es/components/upload/index.d.ts +0 -1
  41. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -1
  42. package/lib/components/PisellCards/index.d.ts +0 -1
  43. package/lib/components/PisellFields/index.d.ts +0 -1
  44. package/lib/components/PisellLayouts/index.d.ts +0 -1
  45. package/lib/components/PisellMetrics/index.d.ts +0 -1
  46. package/lib/components/appVersionControl/types.d.ts +0 -1
  47. package/lib/components/calendar/index.d.ts +0 -1
  48. package/lib/components/checkbox/index.d.ts +0 -1
  49. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  50. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -1
  51. package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +0 -1
  52. package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +0 -1
  53. package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
  54. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -1
  55. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +0 -1
  56. package/lib/components/date-picker/index.d.ts +0 -1
  57. package/lib/components/drag-sort-tree/types.d.ts +0 -1
  58. package/lib/components/filter/components/FilterButton/types.d.ts +0 -1
  59. package/lib/components/input/index.d.ts +0 -1
  60. package/lib/components/pisell-config-provider/context.d.ts +0 -1
  61. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  62. package/lib/components/pisellGridPro/ToolBar/type.d.ts +0 -1
  63. package/lib/components/pisellMenu/types.d.ts +0 -1
  64. package/lib/components/pisellQuickFilter/type.d.ts +0 -1
  65. package/lib/components/productCard/cartSkuCard/index.js +22 -13
  66. package/lib/components/productCard/cartSkuCard/types.d.ts +1 -0
  67. package/lib/components/productCard/cartSkuCard/variants/A12/index.js +8 -6
  68. package/lib/components/productCard/cartSkuCard/variants/A12/index.less +47 -13
  69. package/lib/components/radio/index.d.ts +0 -1
  70. package/lib/components/section-footers/index.d.ts +0 -1
  71. package/lib/components/skeleton/index.d.ts +0 -1
  72. package/lib/components/time-picker/index.d.ts +0 -1
  73. package/lib/components/upload/index.d.ts +0 -1
  74. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -1
  75. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellBasicCardProps } from "./types.js";
3
2
  import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./components/PisellImageCard/types.js";
4
3
  import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellSingleLineTextProps } from "../pisellSingleLineText/types.js";
3
2
  import { PisellLongTextProps } from "../pisellLongText/types.js";
4
3
  import { PisellNumberProps } from "../pisellNumber/types.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellBasicGridProps } from "../PisellBasicGrid/types.js";
3
2
  import { PisellScrollViewProps, PisellScrollViewRef } from "../PisellScrollView/types.js";
4
3
  import { FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellMetricCardProps } from "../pisellMetricCard/types.js";
3
2
  import { PisellStatisticListProps } from "../pisellStatisticList/index.js";
4
3
  import { PisellStatisticProps } from "../cardMetricItem/index.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/appVersionControl/types.d.ts
3
2
  interface Version {
4
3
  id: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/calendar/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/checkbox/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocalSettingsType } from "../../table/types.js";
3
2
  import { DataSourceType } from "../provider/dataSource/DataSourceContext.js";
4
3
  import { ColumnType } from "antd/es/table";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxGroupProps } from "./type.js";
3
2
  import { WithModeProps } from "../../dataSourceForm/utils.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { RadioGroupProps } from "./type.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { TabsProps } from "./type.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ModeType } from "../../dataSourceForm/type.js";
3
2
 
4
3
  //#region src/components/dataSourceComponents/fields/Translation/type.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionsItem } from "../../dataSourceForm/serve.js";
3
2
  import { Result } from "ahooks/es/useRequest/src/types";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/date-picker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/drag-sort-tree/types.d.ts
3
2
  type IdType = string | number;
4
3
  type ValueProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../../types.js";
3
2
 
4
3
  //#region src/components/filter/components/FilterButton/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
  import { InputProps, InputRef } from "antd";
4
3
  import * as _$antd_es_input0 from "antd/es/input";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/pisell-config-provider/context.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/pisellDatePicker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/pisellGridPro/ToolBar/type.d.ts
3
2
  interface ToolBarProps {
4
3
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
 
4
3
  //#region src/components/pisellMenu/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../filter/types.js";
3
2
  import { FormInstance } from "antd";
4
3
 
@@ -222,19 +222,28 @@ const CartSkuCard = (props) => {
222
222
  openNote: openNoteEditor
223
223
  })) : null);
224
224
  };
225
- const renderA12 = () => /* @__PURE__ */ React.createElement(A12, {
226
- dataSource,
227
- isShowImage,
228
- isShowDelete,
229
- isShowOriginalPrice,
230
- isShowEditProduct,
231
- disabled: Boolean(disabledClick),
232
- disabledEditClick,
233
- slots: a12Slots,
234
- presentation: a12Presentation,
235
- onDelete,
236
- onEditProduct
237
- });
225
+ const renderA12 = () => {
226
+ var _a12Slots$contentFoot;
227
+ const note = isShowNote ? /* @__PURE__ */ React.createElement(Note, _objectSpread2(_objectSpread2({}, other), {}, {
228
+ item: dataSource,
229
+ disabledEdit: disabledNoteEdit !== null && disabledNoteEdit !== void 0 ? disabledNoteEdit : other.disabledEdit,
230
+ openNote: openNoteEditor
231
+ })) : null;
232
+ const slots = note ? _objectSpread2(_objectSpread2({}, a12Slots), {}, { contentFooter: (_a12Slots$contentFoot = a12Slots === null || a12Slots === void 0 ? void 0 : a12Slots.contentFooter) !== null && _a12Slots$contentFoot !== void 0 ? _a12Slots$contentFoot : (() => note) }) : a12Slots;
233
+ return /* @__PURE__ */ React.createElement(A12, {
234
+ dataSource,
235
+ isShowImage,
236
+ isShowDelete,
237
+ isShowOriginalPrice,
238
+ isShowEditProduct,
239
+ disabled: Boolean(disabledClick),
240
+ disabledEditClick,
241
+ slots,
242
+ presentation: a12Presentation,
243
+ onDelete,
244
+ onEditProduct
245
+ });
246
+ };
238
247
  const renderContent = () => {
239
248
  if (type === "a12") return renderA12();
240
249
  if (type === "a9") return renderA9();
@@ -11,6 +11,7 @@ interface CartSkuCardSlotContext {
11
11
  disabled: boolean;
12
12
  }
13
13
  interface CartSkuCardA12Slots {
14
+ contentFooter?: (context: CartSkuCardSlotContext) => ReactNode;
14
15
  quantityControl?: (context: CartSkuCardSlotContext) => ReactNode;
15
16
  actionRail?: (context: CartSkuCardSlotContext & {
16
17
  defaultPrice: ReactNode;
@@ -63,7 +63,7 @@ function getPresentationStyle(presentation) {
63
63
  return style;
64
64
  }
65
65
  const A12 = ({ dataSource, isShowImage = true, isShowDelete = false, isShowOriginalPrice = false, isShowEditProduct = false, disabled = false, disabledEditClick = false, slots, presentation, onDelete, onEditProduct }) => {
66
- var _ref8, _dataSource$num, _dataSource$total, _dataSource$origin_to;
66
+ var _ref8, _dataSource$num, _dataSource$total, _dataSource$origin_to, _slots$contentFooter;
67
67
  const display = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.a12) || {};
68
68
  const specificationsData = useMemo(() => resolveSpecifications(dataSource), [dataSource]);
69
69
  const weighingInfo = useMemo(() => resolveWeighingSnapshot(dataSource), [dataSource]);
@@ -81,6 +81,7 @@ const A12 = ({ dataSource, isShowImage = true, isShowDelete = false, isShowOrigi
81
81
  key: specification.key
82
82
  }, specification.label ? /* @__PURE__ */ React.createElement("span", { className: `${PREFIX}-a12__specification-label` }, specification.label) : null, /* @__PURE__ */ React.createElement("strong", { className: `${PREFIX}-a12__specification-value` }, specification.value)))) : (dataSource === null || dataSource === void 0 ? void 0 : dataSource.product_option_string) ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__specification-summary` }, dataSource.product_option_string) : null;
83
83
  const specifications = (slots === null || slots === void 0 ? void 0 : slots.specifications) ? slots.specifications(_objectSpread2(_objectSpread2({}, slotContext), {}, { defaultSpecifications })) : defaultSpecifications;
84
+ const contentFooter = slots === null || slots === void 0 || (_slots$contentFooter = slots.contentFooter) === null || _slots$contentFooter === void 0 ? void 0 : _slots$contentFooter.call(slots, slotContext);
84
85
  const defaultPrice = /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__price` }, /* @__PURE__ */ React.createElement("strong", null, formatAmount(lineTotal, 2, symbol)), isShowOriginalPrice && originalTotal > 0 && originalTotal !== lineTotal ? /* @__PURE__ */ React.createElement("del", null, formatAmount(originalTotal, 2, symbol)) : null);
85
86
  const defaultEdit = Boolean(isShowEditProduct && onEditProduct) ? /* @__PURE__ */ React.createElement("button", {
86
87
  type: "button",
@@ -92,17 +93,18 @@ const A12 = ({ dataSource, isShowImage = true, isShowDelete = false, isShowOrigi
92
93
  onEditProduct === null || onEditProduct === void 0 || onEditProduct(dataSource);
93
94
  }
94
95
  }, locales.getText("pisell2.product.card.edit")) : null;
95
- const defaultQuantityControl = (slots === null || slots === void 0 ? void 0 : slots.quantityControl) ? slots.quantityControl(slotContext) : /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__quantity-fallback` }, isShowDelete && onDelete ? /* @__PURE__ */ React.createElement("button", {
96
+ const defaultQuantityControl = (slots === null || slots === void 0 ? void 0 : slots.quantityControl) ? slots.quantityControl(slotContext) : /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__quantity-fallback` }, /* @__PURE__ */ React.createElement("span", null, display.quantityText || `× ${quantity}`));
97
+ const defaultActionRail = /* @__PURE__ */ React.createElement("aside", { className: `${PREFIX}-a12__rail` }, isShowDelete && onDelete ? /* @__PURE__ */ React.createElement("button", {
96
98
  type: "button",
97
- "aria-label": "Delete item",
99
+ className: `${PREFIX}-a12__delete`,
100
+ "aria-label": locales.getText("pisell2.cart.sku-card.actions.delete"),
98
101
  disabled,
99
102
  onClick: (event) => {
100
103
  event.preventDefault();
101
104
  event.stopPropagation();
102
105
  onDelete(dataSource);
103
106
  }
104
- }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-trash-01" })) : null, /* @__PURE__ */ React.createElement("span", null, display.quantityText || `× ${quantity}`));
105
- const defaultActionRail = /* @__PURE__ */ React.createElement("aside", { className: `${PREFIX}-a12__rail` }, defaultPrice, defaultEdit, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__quantity-control` }, defaultQuantityControl));
107
+ }, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-trash-01" })) : null, defaultPrice, defaultEdit, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__quantity-control` }, defaultQuantityControl));
106
108
  const actionRail = (slots === null || slots === void 0 ? void 0 : slots.actionRail) ? slots.actionRail(_objectSpread2(_objectSpread2({}, slotContext), {}, {
107
109
  defaultPrice,
108
110
  defaultEdit,
@@ -118,7 +120,7 @@ const A12 = ({ dataSource, isShowImage = true, isShowDelete = false, isShowOrigi
118
120
  }) : /* @__PURE__ */ React.createElement("span", { "aria-hidden": "true" }, String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.name) || "").slice(0, 2))) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__content` }, display.eyebrow ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__eyebrow` }, display.eyebrow) : null, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__name` }, dataSource === null || dataSource === void 0 ? void 0 : dataSource.name), weighingInfo ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__weighing` }, /* @__PURE__ */ React.createElement(Weighing, {
119
121
  dataSource: weighingInfo,
120
122
  symbol
121
- })) : null, specifications), actionRail);
123
+ })) : null, specifications, contentFooter ? /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}-a12__content-footer` }, contentFooter) : null), actionRail);
122
124
  };
123
125
  //#endregion
124
126
  export { A12 as default };
@@ -4,7 +4,7 @@
4
4
  --pc-a12-radius: 18px;
5
5
  --pc-a12-min-height: 164px;
6
6
  --pc-a12-media-width: 228px;
7
- --pc-a12-rail-width: 174px;
7
+ --pc-a12-rail-width: 190px;
8
8
  --pc-a12-content-padding: 20px 22px;
9
9
  --pc-a12-rail-padding: 18px 20px;
10
10
  --pc-a12-accent: #b20d12;
@@ -67,6 +67,18 @@
67
67
  padding: var(--pc-a12-content-padding);
68
68
  }
69
69
 
70
+ &__content-footer {
71
+ display: flex;
72
+ flex-direction: column;
73
+ gap: 8px;
74
+ margin-top: auto;
75
+ padding-top: 12px;
76
+
77
+ .ant-divider {
78
+ margin: 0 !important;
79
+ }
80
+ }
81
+
70
82
  &--align-center &__content {
71
83
  justify-content: center;
72
84
  }
@@ -145,6 +157,7 @@
145
157
  }
146
158
 
147
159
  &__rail {
160
+ position: relative;
148
161
  display: flex;
149
162
  min-width: 0;
150
163
  flex-direction: column;
@@ -154,6 +167,39 @@
154
167
  border-left: 1px solid var(--pc-a12-border-color);
155
168
  }
156
169
 
170
+ &__delete {
171
+ position: absolute;
172
+ top: 6px;
173
+ right: 6px;
174
+ display: grid;
175
+ width: 42px;
176
+ height: 42px;
177
+ padding: 0;
178
+ place-items: center;
179
+ border: 0;
180
+ border-radius: 50%;
181
+ background: transparent;
182
+ color: var(--pc-a12-accent);
183
+ font-size: 26px;
184
+ cursor: pointer;
185
+
186
+ .anticon,
187
+ svg {
188
+ width: 30px;
189
+ height: 30px;
190
+ font-size: 30px;
191
+ }
192
+
193
+ &:active {
194
+ background: #fef3f2;
195
+ }
196
+
197
+ &:disabled {
198
+ cursor: not-allowed;
199
+ opacity: 0.5;
200
+ }
201
+ }
202
+
157
203
  &__price {
158
204
  display: flex;
159
205
  flex-direction: column;
@@ -210,18 +256,6 @@
210
256
  justify-content: center;
211
257
  gap: 16px;
212
258
  font-weight: 700;
213
-
214
- button {
215
- display: grid;
216
- width: 40px;
217
- height: 40px;
218
- place-items: center;
219
- border: 1px solid #f5b7ba;
220
- border-radius: 50%;
221
- background: #fff;
222
- color: var(--pc-a12-accent);
223
- cursor: pointer;
224
- }
225
259
  }
226
260
 
227
261
  &--compact {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/radio/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/section-footers/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/skeleton/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/time-picker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/upload/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseNumberKeyboardProps } from "../BaseNumberKeyboard/index.js";
3
2
 
4
3
  //#region src/components/virtual-keyboard/Amount/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellBasicCardProps } from "./types.js";
3
2
  import { ImageDataSource, ImageFillMode, PisellImageCardProps } from "./components/PisellImageCard/types.js";
4
3
  import { GraphicConfig, GraphicTextCardProps, GraphicTextCardSize, GraphicTextCardVariant } from "./components/GraphicTextCard/types.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellSingleLineTextProps } from "../pisellSingleLineText/types.js";
3
2
  import { PisellLongTextProps } from "../pisellLongText/types.js";
4
3
  import { PisellNumberProps } from "../pisellNumber/types.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellBasicGridProps } from "../PisellBasicGrid/types.js";
3
2
  import { PisellScrollViewProps, PisellScrollViewRef } from "../PisellScrollView/types.js";
4
3
  import { FloorMapFullscreenMode, FloorMapItemBase, FloorMapLayoutContextValue, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from "../pisellFloorMapLayout/types.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellMetricCardProps } from "../pisellMetricCard/types.js";
3
2
  import { PisellStatisticListProps } from "../pisellStatisticList/index.js";
4
3
  import { PisellStatisticProps } from "../cardMetricItem/index.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/appVersionControl/types.d.ts
3
2
  interface Version {
4
3
  id: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/calendar/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/checkbox/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocalSettingsType } from "../../table/types.js";
3
2
  import { DataSourceType } from "../provider/dataSource/DataSourceContext.js";
4
3
  import { ColumnType } from "antd/es/table";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxGroupProps } from "./type.js";
3
2
  import { WithModeProps } from "../../dataSourceForm/utils.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { RadioGroupProps } from "./type.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithFormItemProps, WithModeProps } from "../../dataSourceForm/utils.js";
3
2
  import { TabsProps } from "./type.js";
4
3
  import * as _$react from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ModeType } from "../../dataSourceForm/type.js";
3
2
 
4
3
  //#region src/components/dataSourceComponents/fields/Translation/type.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionsItem } from "../../dataSourceForm/serve.js";
3
2
  import { Result } from "ahooks/es/useRequest/src/types";
4
3
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/date-picker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/drag-sort-tree/types.d.ts
3
2
  type IdType = string | number;
4
3
  type ValueProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../../types.js";
3
2
 
4
3
  //#region src/components/filter/components/FilterButton/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
  import { InputProps, InputRef } from "antd";
4
3
  import * as _$antd_es_input0 from "antd/es/input";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/pisell-config-provider/context.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as _$react from "react";
3
2
 
4
3
  //#region src/components/pisellDatePicker/index.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  //#region src/components/pisellGridPro/ToolBar/type.d.ts
3
2
  interface ToolBarProps {
4
3
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuProps } from "antd";
3
2
 
4
3
  //#region src/components/pisellMenu/types.d.ts
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from "../filter/types.js";
3
2
  import { FormInstance } from "antd";
4
3
 
@@ -225,19 +225,28 @@ const CartSkuCard = (props) => {
225
225
  openNote: openNoteEditor
226
226
  })) : null);
227
227
  };
228
- const renderA12 = () => /* @__PURE__ */ react.default.createElement(require_index$16.default, {
229
- dataSource,
230
- isShowImage,
231
- isShowDelete,
232
- isShowOriginalPrice,
233
- isShowEditProduct,
234
- disabled: Boolean(disabledClick),
235
- disabledEditClick,
236
- slots: a12Slots,
237
- presentation: a12Presentation,
238
- onDelete,
239
- onEditProduct
240
- });
228
+ const renderA12 = () => {
229
+ var _a12Slots$contentFoot;
230
+ const note = isShowNote ? /* @__PURE__ */ react.default.createElement(require_index$9.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, other), {}, {
231
+ item: dataSource,
232
+ disabledEdit: disabledNoteEdit !== null && disabledNoteEdit !== void 0 ? disabledNoteEdit : other.disabledEdit,
233
+ openNote: openNoteEditor
234
+ })) : null;
235
+ const slots = note ? require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, a12Slots), {}, { contentFooter: (_a12Slots$contentFoot = a12Slots === null || a12Slots === void 0 ? void 0 : a12Slots.contentFooter) !== null && _a12Slots$contentFoot !== void 0 ? _a12Slots$contentFoot : (() => note) }) : a12Slots;
236
+ return /* @__PURE__ */ react.default.createElement(require_index$16.default, {
237
+ dataSource,
238
+ isShowImage,
239
+ isShowDelete,
240
+ isShowOriginalPrice,
241
+ isShowEditProduct,
242
+ disabled: Boolean(disabledClick),
243
+ disabledEditClick,
244
+ slots,
245
+ presentation: a12Presentation,
246
+ onDelete,
247
+ onEditProduct
248
+ });
249
+ };
241
250
  const renderContent = () => {
242
251
  if (type === "a12") return renderA12();
243
252
  if (type === "a9") return renderA9();
@@ -11,6 +11,7 @@ interface CartSkuCardSlotContext {
11
11
  disabled: boolean;
12
12
  }
13
13
  interface CartSkuCardA12Slots {
14
+ contentFooter?: (context: CartSkuCardSlotContext) => ReactNode;
14
15
  quantityControl?: (context: CartSkuCardSlotContext) => ReactNode;
15
16
  actionRail?: (context: CartSkuCardSlotContext & {
16
17
  defaultPrice: ReactNode;