@pisell/materials 1.10.30 → 1.10.32
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/meta.js +3 -3
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +1 -1
- package/build/lowcode/render/default/view.js +48 -48
- package/build/lowcode/view.js +48 -48
- package/es/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -1
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -1
- package/es/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -1
- package/es/components/PisellCards/components/TabCard/TabCard.d.ts +2 -1
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +2 -1
- package/es/components/PisellCards/index.d.ts +7 -5
- package/es/components/PisellFields/index.d.ts +1 -0
- package/es/components/PisellGroupView/PisellGroupView.d.ts +2 -1
- package/es/components/PisellLayouts/index.d.ts +3 -2
- package/es/components/PisellMetrics/index.d.ts +3 -2
- package/es/components/appVersionControl/index.d.ts +2 -1
- package/es/components/appVersionControl/types.d.ts +1 -0
- package/es/components/auto-complete-number/index.d.ts +2 -1
- package/es/components/badge/index.d.ts +2 -1
- package/es/components/batch-editor/index.d.ts +2 -1
- package/es/components/calendar/index.d.ts +4 -1
- package/es/components/cardMetricItem/index.d.ts +1 -1
- package/es/components/cardPro/index.d.ts +2 -1
- package/es/components/checkbox/index.d.ts +4 -1
- package/es/components/classicLayout/index.d.ts +2 -1
- package/es/components/config-provider/index.d.ts +2 -1
- package/es/components/customSelect/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +4 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Radio/WithMode.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +3 -1
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
- package/es/components/date-picker/index.d.ts +4 -1
- package/es/components/drag-sort-tree/index.d.ts +2 -1
- package/es/components/drag-sort-tree/types.d.ts +1 -0
- package/es/components/dropdown/index.d.ts +3 -1
- package/es/components/filter/components/FilterButton/types.d.ts +1 -0
- package/es/components/filter/index.d.ts +2 -1
- package/es/components/input/index.d.ts +1 -0
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/list/index.d.ts +2 -1
- package/es/components/lowCodePage/index.d.ts +3 -1
- package/es/components/page/index.d.ts +2 -1
- package/es/components/page-header/index.d.ts +1 -1
- package/es/components/pisell-config-provider/context.d.ts +1 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -1
- package/es/components/pisellAdjustPrice/index.d.ts +2 -1
- package/es/components/pisellAlert/index.d.ts +1 -1
- package/es/components/pisellCard/index.d.ts +2 -1
- package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/es/components/pisellCountdown/index.d.ts +1 -1
- package/es/components/pisellDatePicker/index.d.ts +4 -1
- package/es/components/pisellDraggable/index.d.ts +1 -1
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellFilter/index.d.ts +2 -1
- package/es/components/pisellFloatingPanel/index.d.ts +1 -1
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -4
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -1
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +3 -1
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -1
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/es/components/pisellGoodPassCard/index.d.ts +1 -1
- package/es/components/pisellGridPro/GridView/index.d.ts +2 -1
- package/es/components/pisellGridPro/ToolBar/type.d.ts +1 -0
- package/es/components/pisellInformationEntry/index.d.ts +1 -1
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +5 -4
- package/es/components/pisellLoading/index.d.ts +2 -1
- package/es/components/pisellMenu/types.d.ts +1 -0
- package/es/components/pisellModal/index.d.ts +2 -2
- package/es/components/pisellQuickFilter/type.d.ts +1 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -1
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +2 -1
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -1
- package/es/components/pisellRow/index.d.ts +1 -1
- package/es/components/pisellSort/index.d.ts +2 -1
- package/es/components/pisellStatisticList/index.d.ts +1 -1
- package/es/components/pisellTags/index.d.ts +1 -1
- package/es/components/pisellText/index.d.ts +2 -2
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -1
- package/es/components/pisellTooltip/index.d.ts +2 -1
- package/es/components/pisellUpload/index.d.ts +2 -1
- package/es/components/pisellWalletPassCard/index.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.js +25 -8
- package/es/components/productCard/cartSkuCard/index.js +11 -4
- package/es/components/productCard/cartSkuCard/types.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/variants/A12/index.js +3 -2
- package/es/components/productCard/lineItem/index.js +7 -0
- package/es/components/qrcode/index.d.ts +3 -1
- package/es/components/radio/index.d.ts +4 -1
- package/es/components/section-footers/index.d.ts +4 -1
- package/es/components/segmented/index.d.ts +2 -1
- package/es/components/select-time/index.d.ts +2 -1
- package/es/components/skeleton/index.d.ts +4 -1
- package/es/components/slider/index.d.ts +3 -1
- package/es/components/tabs/index.d.ts +2 -2
- package/es/components/time-picker/index.d.ts +4 -1
- package/es/components/upload/index.d.ts +4 -1
- package/es/components/versionSelect/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Amount/index.d.ts +2 -1
- package/es/components/virtual-keyboard/Amount/types.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +2 -1
- package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/es/components/virtual-keyboard/index.d.ts +1 -1
- package/lib/components/PisellBasicGrid/PisellBasicGrid.d.ts +2 -1
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +2 -1
- package/lib/components/PisellCards/components/MultilevelCard/MultilevelCard.d.ts +1 -1
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +2 -1
- package/lib/components/PisellCards/components/TabCard/TabCard.d.ts +2 -1
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +2 -1
- package/lib/components/PisellCards/index.d.ts +7 -5
- package/lib/components/PisellFields/index.d.ts +1 -0
- package/lib/components/PisellGroupView/PisellGroupView.d.ts +2 -1
- package/lib/components/PisellLayouts/index.d.ts +3 -2
- package/lib/components/PisellMetrics/index.d.ts +3 -2
- package/lib/components/appVersionControl/index.d.ts +2 -1
- package/lib/components/appVersionControl/types.d.ts +1 -0
- package/lib/components/auto-complete-number/index.d.ts +2 -1
- package/lib/components/badge/index.d.ts +2 -1
- package/lib/components/batch-editor/index.d.ts +2 -1
- package/lib/components/calendar/index.d.ts +4 -1
- package/lib/components/cardMetricItem/index.d.ts +1 -1
- package/lib/components/cardPro/index.d.ts +2 -1
- package/lib/components/checkbox/index.d.ts +4 -1
- package/lib/components/classicLayout/index.d.ts +2 -1
- package/lib/components/config-provider/index.d.ts +2 -1
- package/lib/components/customSelect/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +4 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Checkbox/WithMode.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Radio/WithMode.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +3 -1
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
- package/lib/components/date-picker/index.d.ts +4 -1
- package/lib/components/drag-sort-tree/index.d.ts +2 -1
- package/lib/components/drag-sort-tree/types.d.ts +1 -0
- package/lib/components/dropdown/index.d.ts +3 -1
- package/lib/components/filter/components/FilterButton/types.d.ts +1 -0
- package/lib/components/filter/index.d.ts +2 -1
- package/lib/components/input/index.d.ts +1 -0
- package/lib/components/keyboard/index.d.ts +1 -1
- package/lib/components/list/index.d.ts +2 -1
- package/lib/components/lowCodePage/index.d.ts +3 -1
- package/lib/components/page/index.d.ts +2 -1
- package/lib/components/page-header/index.d.ts +1 -1
- package/lib/components/pisell-config-provider/context.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -1
- package/lib/components/pisellAdjustPrice/index.d.ts +2 -1
- package/lib/components/pisellAlert/index.d.ts +1 -1
- package/lib/components/pisellCard/index.d.ts +2 -1
- package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
- package/lib/components/pisellCountdown/index.d.ts +1 -1
- package/lib/components/pisellDatePicker/index.d.ts +4 -1
- package/lib/components/pisellDraggable/index.d.ts +1 -1
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellFilter/index.d.ts +2 -1
- package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +5 -4
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +2 -1
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +3 -1
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +2 -1
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +1 -1
- package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
- package/lib/components/pisellGridPro/GridView/index.d.ts +2 -1
- package/lib/components/pisellGridPro/ToolBar/type.d.ts +1 -0
- package/lib/components/pisellInformationEntry/index.d.ts +1 -1
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +5 -4
- package/lib/components/pisellLoading/index.d.ts +2 -1
- package/lib/components/pisellMenu/types.d.ts +1 -0
- package/lib/components/pisellModal/index.d.ts +2 -2
- package/lib/components/pisellQuickFilter/type.d.ts +1 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +2 -1
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +2 -1
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +2 -1
- package/lib/components/pisellRow/index.d.ts +1 -1
- package/lib/components/pisellSort/index.d.ts +2 -1
- package/lib/components/pisellStatisticList/index.d.ts +1 -1
- package/lib/components/pisellTags/index.d.ts +1 -1
- package/lib/components/pisellText/index.d.ts +2 -2
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +2 -1
- package/lib/components/pisellTooltip/index.d.ts +2 -1
- package/lib/components/pisellUpload/index.d.ts +2 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +25 -8
- package/lib/components/productCard/cartSkuCard/index.js +43 -36
- package/lib/components/productCard/cartSkuCard/types.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/variants/A12/index.js +3 -2
- package/lib/components/productCard/lineItem/index.js +7 -0
- package/lib/components/qrcode/index.d.ts +3 -1
- package/lib/components/radio/index.d.ts +4 -1
- package/lib/components/section-footers/index.d.ts +4 -1
- package/lib/components/segmented/index.d.ts +2 -1
- package/lib/components/select-time/index.d.ts +2 -1
- package/lib/components/skeleton/index.d.ts +4 -1
- package/lib/components/slider/index.d.ts +3 -1
- package/lib/components/tabs/index.d.ts +2 -2
- package/lib/components/time-picker/index.d.ts +4 -1
- package/lib/components/upload/index.d.ts +4 -1
- package/lib/components/versionSelect/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Amount/index.d.ts +2 -1
- package/lib/components/virtual-keyboard/Amount/types.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +2 -1
- package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
- package/lib/components/virtual-keyboard/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PisellFilterProps } from "./type.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/pisellFilter/index.d.ts
|
|
4
|
-
declare const PisellFilter: (props: PisellFilterProps) => JSX.Element;
|
|
5
|
+
declare const PisellFilter: (props: PisellFilterProps) => React.JSX.Element;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { PisellFilter };
|
|
@@ -13,6 +13,6 @@ interface PisellFloatingPanelProps {
|
|
|
13
13
|
style?: React.CSSProperties;
|
|
14
14
|
retractIconStyle?: React.CSSProperties;
|
|
15
15
|
}
|
|
16
|
-
declare const PisellFloatingPanel: (props: PisellFloatingPanelProps) => JSX.Element;
|
|
16
|
+
declare const PisellFloatingPanel: (props: PisellFloatingPanelProps) => React.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { PisellFloatingPanel };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FloorMapDataSources, FloorMapMergedItem } from "../types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts
|
|
4
5
|
type FigmaTableStatus = 'available' | 'reserved' | 'waiting' | 'dining' | 'billed' | 'availableSoon';
|
|
@@ -31,12 +32,12 @@ interface FigmaTableCardItem {
|
|
|
31
32
|
/** 从 merged item + dataSources 得到卡片数据 */
|
|
32
33
|
declare function getFigmaTableCardFromMerged(item: FloorMapMergedItem, dataSources: FloorMapDataSources): FigmaTableCardItem;
|
|
33
34
|
/** 渲染 Figma 样式的方桌卡片(上下小条 + 资源信息标题栏 + 白底卡片 + 状态色边框) */
|
|
34
|
-
declare function renderFigmaStyleTableCard(cardItem: FigmaTableCardItem): JSX.Element;
|
|
35
|
+
declare function renderFigmaStyleTableCard(cardItem: FigmaTableCardItem): React.JSX.Element;
|
|
35
36
|
/** 渲染 Figma 样式的圆桌卡片(顶部资源信息 chip + 圆形主体,圆形主体只展示状态相关内容) */
|
|
36
|
-
declare function renderFigmaStyleRoundTableCard(cardItem: FigmaTableCardItem): JSX.Element;
|
|
37
|
+
declare function renderFigmaStyleRoundTableCard(cardItem: FigmaTableCardItem): React.JSX.Element;
|
|
37
38
|
/** 返回用于 renderItemByKind.table 的渲染函数(方桌) */
|
|
38
|
-
declare function getRenderItemByKindTable(dataSources: FloorMapDataSources): (item: unknown) => JSX.Element;
|
|
39
|
+
declare function getRenderItemByKindTable(dataSources: FloorMapDataSources): (item: unknown) => React.JSX.Element;
|
|
39
40
|
/** 返回用于 renderItemByKind.roundTable 的渲染函数(圆桌) */
|
|
40
|
-
declare function getRenderItemByKindRoundTable(dataSources: FloorMapDataSources): (item: unknown) => JSX.Element;
|
|
41
|
+
declare function getRenderItemByKindRoundTable(dataSources: FloorMapDataSources): (item: unknown) => React.JSX.Element;
|
|
41
42
|
//#endregion
|
|
42
43
|
export { FigmaTableCardItem, FigmaTableStatus, getFigmaTableCardFromMerged, getRenderItemByKindRoundTable, getRenderItemByKindTable, renderFigmaStyleRoundTableCard, renderFigmaStyleTableCard };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FloorMapBuiltinShapeRenderProps } from "../utils/floorMapBuiltinShapes.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts
|
|
4
5
|
interface FloorMapBuiltinShapeElementProps extends FloorMapBuiltinShapeRenderProps {
|
|
5
6
|
builtinShapeKey?: string;
|
|
6
7
|
name?: string;
|
|
7
8
|
}
|
|
8
|
-
declare function FloorMapBuiltinShapeElement(props: FloorMapBuiltinShapeElementProps): JSX.Element;
|
|
9
|
+
declare function FloorMapBuiltinShapeElement(props: FloorMapBuiltinShapeElementProps): React.JSX.Element;
|
|
9
10
|
//#endregion
|
|
10
11
|
export { FloorMapBuiltinShapeElement };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
1
3
|
//#region src/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts
|
|
2
4
|
interface FloorMapImageElementProps {
|
|
3
5
|
imageUrl?: string;
|
|
4
6
|
name?: string;
|
|
5
7
|
}
|
|
6
|
-
declare function FloorMapImageElement(props: FloorMapImageElementProps): JSX.Element;
|
|
8
|
+
declare function FloorMapImageElement(props: FloorMapImageElementProps): React.JSX.Element;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { FloorMapImageElement };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
//#region src/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts
|
|
2
3
|
interface FloorMapSelectionZoneElementProps {
|
|
3
4
|
/** 选区名称;为空时展示「未命名选区」占位 */
|
|
4
5
|
name?: string;
|
|
5
6
|
}
|
|
6
|
-
declare function FloorMapSelectionZoneElement(props: FloorMapSelectionZoneElementProps): JSX.Element;
|
|
7
|
+
declare function FloorMapSelectionZoneElement(props: FloorMapSelectionZoneElementProps): React.JSX.Element;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { FloorMapSelectionZoneElement };
|
|
@@ -15,6 +15,6 @@ interface FloorMapLayoutProviderProps {
|
|
|
15
15
|
declare function FloorMapLayoutProvider({
|
|
16
16
|
value,
|
|
17
17
|
children
|
|
18
|
-
}: FloorMapLayoutProviderProps): JSX.Element;
|
|
18
|
+
}: FloorMapLayoutProviderProps): React.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { EMPTY_FLOOR_MAP_LAYOUT_CONTEXT, FloorMapLayoutProvider, FloorMapLayoutProviderProps, useFloorMapLayoutContext };
|
|
@@ -46,6 +46,6 @@ interface PisellGoodPassCardProps {
|
|
|
46
46
|
mixedSort?: (val: Discount[]) => Discount[];
|
|
47
47
|
isInModal: boolean;
|
|
48
48
|
}
|
|
49
|
-
declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
|
|
49
|
+
declare const index: (props: PisellGoodPassCardProps) => React.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { index };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GridViewProps } from "./type.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/pisellGridPro/GridView/index.d.ts
|
|
3
|
-
declare const GridView: (props: GridViewProps) => JSX.Element;
|
|
4
|
+
declare const GridView: (props: GridViewProps) => React.JSX.Element;
|
|
4
5
|
//#endregion
|
|
5
6
|
export { GridView };
|
|
@@ -29,6 +29,6 @@ interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivE
|
|
|
29
29
|
/** 录入类型切换时候触发的 */
|
|
30
30
|
onChangeType?: (val: null | EntryModeType['type']) => void;
|
|
31
31
|
}
|
|
32
|
-
declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
|
|
32
|
+
declare const PisellInformationEntry: (props: PisellInformationEntryProps) => React.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { PisellInformationEntry };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PisellContextType } from "../../../pisell-config-provider/context.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { InputProps } from "antd";
|
|
3
4
|
//#region src/components/pisellInput/components/SecurityCode/index.d.ts
|
|
4
5
|
interface SecurityCodeProps extends Omit<InputProps, 'onChange'> {
|
|
@@ -2,16 +2,17 @@ import { PisellContextType } from "../pisell-config-provider/context.js";
|
|
|
2
2
|
import { BankCardProps } from "./components/BankCard/index.js";
|
|
3
3
|
import { SecurityCodeProps } from "./components/SecurityCode/index.js";
|
|
4
4
|
import { CopyProps } from "./components/Copy/index.js";
|
|
5
|
+
import React from "react";
|
|
5
6
|
import { InputProps } from "antd";
|
|
6
7
|
|
|
7
8
|
//#region src/components/pisellInput/index.d.ts
|
|
8
9
|
declare const PisellInput: {
|
|
9
10
|
(props: InputProps & {
|
|
10
11
|
/** 平台 */platform?: PisellContextType['platform'];
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
BankCard: (props: BankCardProps) => JSX.Element;
|
|
13
|
-
SecurityCode: (props: SecurityCodeProps) => JSX.Element;
|
|
14
|
-
Copy: (props: CopyProps) => JSX.Element;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
BankCard: (props: BankCardProps) => React.JSX.Element;
|
|
14
|
+
SecurityCode: (props: SecurityCodeProps) => React.JSX.Element;
|
|
15
|
+
Copy: (props: CopyProps) => React.JSX.Element;
|
|
15
16
|
};
|
|
16
17
|
//#endregion
|
|
17
18
|
export { PisellInput };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { SpinProps } from "antd";
|
|
2
3
|
//#region src/components/pisellLoading/index.d.ts
|
|
3
4
|
type MaskType = {
|
|
@@ -15,6 +16,6 @@ interface PisellLoadingProps extends SpinProps {
|
|
|
15
16
|
/** 延迟显示加载效果的时间(防止闪烁) */
|
|
16
17
|
delay?: number;
|
|
17
18
|
}
|
|
18
|
-
declare const PisellLoading: (props: PisellLoadingProps) => JSX.Element;
|
|
19
|
+
declare const PisellLoading: (props: PisellLoadingProps) => React.JSX.Element;
|
|
19
20
|
//#endregion
|
|
20
21
|
export { PisellLoading };
|
|
@@ -40,7 +40,7 @@ interface PisellModalProps extends ModalProps {
|
|
|
40
40
|
maskProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
41
41
|
}
|
|
42
42
|
declare const PisellModal: {
|
|
43
|
-
(props: PisellModalProps): JSX.Element;
|
|
43
|
+
(props: PisellModalProps): React.JSX.Element;
|
|
44
44
|
confirm: (props: PisellModalFuncProps) => {
|
|
45
45
|
destroy: () => void;
|
|
46
46
|
update: (configUpdate: _$antd.ModalFuncProps | ((prevConfig: _$antd.ModalFuncProps) => _$antd.ModalFuncProps)) => void;
|
|
@@ -62,7 +62,7 @@ declare const PisellModal: {
|
|
|
62
62
|
destroy: () => void;
|
|
63
63
|
update: (configUpdate: _$antd.ModalFuncProps | ((prevConfig: _$antd.ModalFuncProps) => _$antd.ModalFuncProps)) => void;
|
|
64
64
|
};
|
|
65
|
-
Information: (props: InformationProps) => JSX.Element;
|
|
65
|
+
Information: (props: InformationProps) => React.JSX.Element;
|
|
66
66
|
};
|
|
67
67
|
//#endregion
|
|
68
68
|
export { PisellModal, PisellModalProps };
|
package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RecordBoardCalendarProps } from "../../types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts
|
|
4
5
|
type PisellRecordBoardCalendarViewProps = RecordBoardCalendarProps;
|
|
@@ -9,6 +10,6 @@ type PisellRecordBoardCalendarViewProps = RecordBoardCalendarProps;
|
|
|
9
10
|
* 只做「占位与裁剪高度」;本组件根节点负责在同一 flex 列里向下传递 **min-height:0**,避免 `BookingCalendar`
|
|
10
11
|
* 撑破壳层(一层即可,历史上曾双包一层重复 flex+overflow)。
|
|
11
12
|
*/
|
|
12
|
-
declare function PisellRecordBoardCalendarView(props: PisellRecordBoardCalendarViewProps): JSX.Element;
|
|
13
|
+
declare function PisellRecordBoardCalendarView(props: PisellRecordBoardCalendarViewProps): React.JSX.Element;
|
|
13
14
|
//#endregion
|
|
14
15
|
export { PisellRecordBoardCalendarView, PisellRecordBoardCalendarViewProps };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PisellReservationScheduleProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/pisellReservationSchedule/PisellReservationSchedule.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* 营业日导航条:上一日、中间日期文案、下一日(深色条样式,适配预约顶栏)
|
|
5
6
|
*/
|
|
6
|
-
declare function PisellReservationSchedule(props: PisellReservationScheduleProps): JSX.Element;
|
|
7
|
+
declare function PisellReservationSchedule(props: PisellReservationScheduleProps): React.JSX.Element;
|
|
7
8
|
declare namespace PisellReservationSchedule {
|
|
8
9
|
var displayName: string;
|
|
9
10
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PisellReservationScheduleBandProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* 预约顶栏组合:营业日切换 + 锚定到选中日的时间导航轴
|
|
5
6
|
*/
|
|
6
|
-
declare function PisellReservationScheduleBand(props: PisellReservationScheduleBandProps): JSX.Element;
|
|
7
|
+
declare function PisellReservationScheduleBand(props: PisellReservationScheduleBandProps): React.JSX.Element;
|
|
7
8
|
declare namespace PisellReservationScheduleBand {
|
|
8
9
|
var displayName: string;
|
|
9
10
|
}
|
|
@@ -18,6 +18,6 @@ interface PisellRowProps extends React.DetailedHTMLProps<React.HTMLAttributes<HT
|
|
|
18
18
|
* @Author: zhiwei.Wang
|
|
19
19
|
* @Date: 2024-08-16 10:38
|
|
20
20
|
*/
|
|
21
|
-
declare const PisellRow: (props: PisellRowProps) => JSX.Element;
|
|
21
|
+
declare const PisellRow: (props: PisellRowProps) => React.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PisellRow, PisellRowProps };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PisellSortProps } from "./type.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/pisellSort/index.d.ts
|
|
4
|
-
declare const PisellSort: (props: PisellSortProps) => JSX.Element;
|
|
5
|
+
declare const PisellSort: (props: PisellSortProps) => React.JSX.Element;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { PisellSort };
|
|
@@ -18,6 +18,6 @@ interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
18
18
|
}[];
|
|
19
19
|
}[];
|
|
20
20
|
}
|
|
21
|
-
declare const PisellStatisticList: (props: PisellStatisticListProps) => JSX.Element;
|
|
21
|
+
declare const PisellStatisticList: (props: PisellStatisticListProps) => React.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PisellStatisticList, PisellStatisticListProps };
|
|
@@ -9,6 +9,6 @@ interface PisellTagsProps extends React.DetailedHTMLProps<React.HTMLAttributes<H
|
|
|
9
9
|
icon?: React.ReactNode;
|
|
10
10
|
color?: PisellTagsColor;
|
|
11
11
|
}
|
|
12
|
-
declare const PisellTags: (props: PisellTagsProps) => JSX.Element;
|
|
12
|
+
declare const PisellTags: (props: PisellTagsProps) => React.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { PisellTags };
|
|
@@ -5,8 +5,8 @@ import React from "react";
|
|
|
5
5
|
//#region src/components/pisellText/index.d.ts
|
|
6
6
|
interface PisellTextProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
7
7
|
declare const PisellText: {
|
|
8
|
-
(props: PisellTextProps): JSX.Element;
|
|
9
|
-
Amount: (props: AmountProps) => JSX.Element;
|
|
8
|
+
(props: PisellTextProps): React.JSX.Element;
|
|
9
|
+
Amount: (props: AmountProps) => React.JSX.Element;
|
|
10
10
|
Editable: React.FC<EditableProps>;
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PisellTimeNavigatorProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
//#region src/components/pisellTimeNavigator/PisellTimeNavigator.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* PisellTimeNavigator:可拖动的时间导航轴,时间范围内浏览、选择、控制
|
|
5
6
|
*/
|
|
6
|
-
declare function PisellTimeNavigator(props: PisellTimeNavigatorProps): JSX.Element;
|
|
7
|
+
declare function PisellTimeNavigator(props: PisellTimeNavigatorProps): React.JSX.Element;
|
|
7
8
|
declare namespace PisellTimeNavigator {
|
|
8
9
|
var displayName: string;
|
|
9
10
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PisellContextType } from "../pisell-config-provider/context.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { TooltipPropsWithTitle } from "antd/es/tooltip";
|
|
3
4
|
|
|
4
5
|
//#region src/components/pisellTooltip/index.d.ts
|
|
@@ -6,6 +7,6 @@ interface PisellTooltipProps extends TooltipPropsWithTitle {
|
|
|
6
7
|
/** 平台 */
|
|
7
8
|
platform?: PisellContextType['platform'];
|
|
8
9
|
}
|
|
9
|
-
declare const PisellTooltip: (props: PisellTooltipProps) => JSX.Element;
|
|
10
|
+
declare const PisellTooltip: (props: PisellTooltipProps) => React.JSX.Element;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { PisellTooltip };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { UploadProps } from "antd";
|
|
2
3
|
//#region src/components/pisellUpload/index.d.ts
|
|
3
4
|
interface PisellUploadProps extends UploadProps {
|
|
@@ -6,6 +7,6 @@ interface PisellUploadProps extends UploadProps {
|
|
|
6
7
|
text2?: string;
|
|
7
8
|
uploadType?: 'button' | 'drop' | 'custom';
|
|
8
9
|
}
|
|
9
|
-
declare const PisellUpload: (props: PisellUploadProps) => JSX.Element;
|
|
10
|
+
declare const PisellUpload: (props: PisellUploadProps) => React.JSX.Element;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { PisellUpload };
|
|
@@ -144,6 +144,6 @@ interface PisellWalletPassCardProps {
|
|
|
144
144
|
onSetHolder?: (currentValue?: any) => void;
|
|
145
145
|
[key: string]: any;
|
|
146
146
|
}
|
|
147
|
-
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => JSX.Element;
|
|
147
|
+
declare const PisellWalletPassCard: (props: PisellWalletPassCardProps) => React.JSX.Element;
|
|
148
148
|
//#endregion
|
|
149
149
|
export { FormatOption, PisellWalletPassCard, PisellWalletPassCardProps };
|
|
@@ -9,7 +9,7 @@ import classNames from "classnames";
|
|
|
9
9
|
import "./index.less";
|
|
10
10
|
//#region src/components/productCard/cartSkuCard/components/basicInfo/index.tsx
|
|
11
11
|
const BasicInfo = (props) => {
|
|
12
|
-
const { isShowImage, isShowQuantityBadge = true, dataSource = {}, style, isMainProduct, type, maxSpecsCount = 1, isBundle, showFooter, isShowOriginalPrice = false, isShowEditProduct = false, onEditProduct, disabledEditClick = false } = props;
|
|
12
|
+
const { isShowImage, isShowQuantityBadge = true, dataSource = {}, style, isMainProduct, type, maxSpecsCount = 1, isBundle, showFooter, isShowOriginalPrice = false, isShowEditProduct = false, onEditProduct, onChangeHolder, disabledEditClick = false } = props;
|
|
13
13
|
const { image: image$1, bundle, options, product_option_string, name, price, symbol, total = 0, origin_total = 0, num = 1, holder_id, isFormSubject, totalDifference = 0, amountFormatter } = dataSource;
|
|
14
14
|
const formatProductAmount = (value, precision = 2) => amountFormatter ? amountFormatter(value, precision) : formatAmount(value, precision, symbol);
|
|
15
15
|
const renderNumTag = () => {
|
|
@@ -73,7 +73,10 @@ const BasicInfo = (props) => {
|
|
|
73
73
|
if (type === "a5") return /* @__PURE__ */ React.createElement("div", {
|
|
74
74
|
className: basicInfoClassName,
|
|
75
75
|
style: style || {}
|
|
76
|
-
}, isShowQuantityBadge ? renderNumTag() : null, renderImage(), !isShowImage || !image$1 && !name ? /* @__PURE__ */ React.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ React.createElement("div", { className: `product-info product-info-a5` }, /* @__PURE__ */ React.createElement("div", { className: `product-basic-info-wrap` }, /* @__PURE__ */ React.createElement("div", { className: `product-name ${renderEdit ? "product-name-edit" : ""}` }, name), renderProductMeta(), (!holder_id || !(holder_id === null || holder_id === void 0 ? void 0 : holder_id.length)) && !isFormSubject ? /* @__PURE__ */ React.createElement("div", { className: `product-price` }, renderProductPrice()) : /* @__PURE__ */ React.createElement(Holders, {
|
|
76
|
+
}, isShowQuantityBadge ? renderNumTag() : null, renderImage(), !isShowImage || !image$1 && !name ? /* @__PURE__ */ React.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ React.createElement("div", { className: `product-info product-info-a5` }, /* @__PURE__ */ React.createElement("div", { className: `product-basic-info-wrap` }, /* @__PURE__ */ React.createElement("div", { className: `product-name ${renderEdit ? "product-name-edit" : ""}` }, name), renderProductMeta(), (!holder_id || !(holder_id === null || holder_id === void 0 ? void 0 : holder_id.length)) && !isFormSubject ? /* @__PURE__ */ React.createElement("div", { className: `product-price` }, renderProductPrice()) : /* @__PURE__ */ React.createElement(Holders, {
|
|
77
|
+
dataSource,
|
|
78
|
+
onChangeHolder: onChangeHolder ? () => onChangeHolder(dataSource) : void 0
|
|
79
|
+
})), renderEdit));
|
|
77
80
|
if (type === "a9") {
|
|
78
81
|
isBundle && !showFooter && Number(price !== null && price !== void 0 ? price : 0) * num;
|
|
79
82
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -10,15 +10,33 @@ const holderIconMap = {
|
|
|
10
10
|
"waiver": "pisell2-file-lock-03"
|
|
11
11
|
};
|
|
12
12
|
const Holders = (props) => {
|
|
13
|
-
const { dataSource = {} } = props;
|
|
14
|
-
const { holders, holder_id } = dataSource;
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const { dataSource = {}, onChangeHolder } = props;
|
|
14
|
+
const { holders, holder_id, holderName, showUnassignedHolder } = dataSource;
|
|
15
|
+
const holderIds = Array.isArray(holder_id) ? holder_id : holder_id === void 0 || holder_id === null || holder_id === "" ? [] : [holder_id];
|
|
16
|
+
const missingCount = Math.max((Number(dataSource.holderMaxCount) || 1) - holderIds.length, 0);
|
|
17
|
+
const wrapContent = (content) => onChangeHolder ? /* @__PURE__ */ React.createElement("div", {
|
|
18
|
+
role: "button",
|
|
19
|
+
tabIndex: 0,
|
|
20
|
+
onClick: (event) => {
|
|
21
|
+
event.preventDefault();
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
onChangeHolder();
|
|
24
|
+
},
|
|
25
|
+
onKeyDown: (event) => {
|
|
26
|
+
if (!["Enter", " "].includes(event.key)) return;
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
event.stopPropagation();
|
|
29
|
+
onChangeHolder();
|
|
30
|
+
}
|
|
31
|
+
}, content) : content;
|
|
32
|
+
const unassigned = /* @__PURE__ */ React.createElement("div", { className: "holder-item unassigned" }, dataSource.holderMaxCount > 1 ? /* @__PURE__ */ React.createElement("span", null, missingCount, "/", dataSource.holderMaxCount, " ") : null, /* @__PURE__ */ React.createElement("span", { className: "holder-label" }, locales.getText("pisell2.cart.sku-card.unassigned")));
|
|
33
|
+
if (!holderIds.length) {
|
|
34
|
+
if (dataSource.isFormSubject) return wrapContent(unassigned);
|
|
17
35
|
return null;
|
|
18
36
|
}
|
|
19
37
|
const renderHolder = (id) => {
|
|
20
38
|
if (!id) return null;
|
|
21
|
-
const holder = (holders || []).find((item) => item.id === id);
|
|
39
|
+
const holder = (holders || []).find((item) => String(item.id) === String(id));
|
|
22
40
|
return /* @__PURE__ */ React.createElement("div", {
|
|
23
41
|
className: "holder-item",
|
|
24
42
|
key: id
|
|
@@ -27,9 +45,8 @@ const Holders = (props) => {
|
|
|
27
45
|
type: holderIconMap[(dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderType) || "minors"]
|
|
28
46
|
}), /* @__PURE__ */ React.createElement("span", { className: "holder-label" }, (holder === null || holder === void 0 ? void 0 : holder.label) || id));
|
|
29
47
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}) : renderHolder(holder_id));
|
|
48
|
+
const useSnapshot = holderName && holderIds.some((id) => !(holders || []).some((item) => String(item.id) === String(id) && item.label));
|
|
49
|
+
return wrapContent(/* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__holders` }, useSnapshot ? /* @__PURE__ */ React.createElement("div", { className: "holder-item" }, /* @__PURE__ */ React.createElement("span", { className: "holder-label" }, holderName)) : holderIds.map(renderHolder), showUnassignedHolder && missingCount > 0 ? unassigned : null));
|
|
33
50
|
};
|
|
34
51
|
//#endregion
|
|
35
52
|
export { Holders as default };
|
|
@@ -5,6 +5,7 @@ import useEngineContext from "../../../hooks/useEngineContext.js";
|
|
|
5
5
|
import Action from "../components/Action/index.js";
|
|
6
6
|
import { defaultValue } from "../status.js";
|
|
7
7
|
import locales_default from "./locales.js";
|
|
8
|
+
import Holders from "./components/holders/index.js";
|
|
8
9
|
import BasicInfo from "./components/basicInfo/index.js";
|
|
9
10
|
import DiscountReason from "./components/discountReason/index.js";
|
|
10
11
|
import TimeRange from "./components/timeRange/index.js";
|
|
@@ -132,6 +133,10 @@ const CartSkuCard = (props) => {
|
|
|
132
133
|
if (rightActionsDisplay !== "inline") return basicInfo;
|
|
133
134
|
return /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__main-row` }, /* @__PURE__ */ React.createElement("div", { className: `${PREFIX}__main-content` }, basicInfo), /* @__PURE__ */ React.createElement(InlineActions, { actions: _rightActions }));
|
|
134
135
|
};
|
|
136
|
+
const productHolders = props.isShowHolder === true && dataSource.showUnassignedHolder !== void 0 ? /* @__PURE__ */ React.createElement(Holders, {
|
|
137
|
+
dataSource,
|
|
138
|
+
onChangeHolder: onChangeHolder ? () => onChangeHolder(dataSource) : void 0
|
|
139
|
+
}) : null;
|
|
135
140
|
const renderA2 = () => {
|
|
136
141
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, renderMainProduct(/* @__PURE__ */ React.createElement(BasicInfo, {
|
|
137
142
|
isShowImage,
|
|
@@ -139,7 +144,7 @@ const CartSkuCard = (props) => {
|
|
|
139
144
|
dataSource,
|
|
140
145
|
isMainProduct: true,
|
|
141
146
|
maxSpecsCount
|
|
142
|
-
})), /* @__PURE__ */ React.createElement(DiscountReason, { dataSource }), renderPromotion, isShowNote ? /* @__PURE__ */ React.createElement(Note, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
147
|
+
})), /* @__PURE__ */ React.createElement(DiscountReason, { dataSource }), renderPromotion, productHolders, isShowNote ? /* @__PURE__ */ React.createElement(Note, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
143
148
|
item: dataSource,
|
|
144
149
|
disabledEdit: disabledNoteEdit !== null && disabledNoteEdit !== void 0 ? disabledNoteEdit : other.disabledEdit,
|
|
145
150
|
openNote: openNoteEditor
|
|
@@ -163,7 +168,8 @@ const CartSkuCard = (props) => {
|
|
|
163
168
|
isShowOriginalPrice,
|
|
164
169
|
isShowEditProduct,
|
|
165
170
|
disabledEditClick,
|
|
166
|
-
onEditProduct
|
|
171
|
+
onEditProduct,
|
|
172
|
+
onChangeHolder: productHolders ? onChangeHolder : void 0
|
|
167
173
|
})), itemType !== "booking" ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(TimeRange, { dataSource }), /* @__PURE__ */ React.createElement(Resources, { dataSource })) : null, /* @__PURE__ */ React.createElement(Packages, {
|
|
168
174
|
dataSource,
|
|
169
175
|
isShowImage,
|
|
@@ -216,7 +222,7 @@ const CartSkuCard = (props) => {
|
|
|
216
222
|
item: dataSource,
|
|
217
223
|
hideDivider,
|
|
218
224
|
type: "total"
|
|
219
|
-
}) : null, /* @__PURE__ */ React.createElement(DiscountReason, { dataSource }), renderPromotion, isShowNote ? /* @__PURE__ */ React.createElement(Note, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
225
|
+
}) : null, /* @__PURE__ */ React.createElement(DiscountReason, { dataSource }), renderPromotion, productHolders, isShowNote ? /* @__PURE__ */ React.createElement(Note, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
220
226
|
item: dataSource,
|
|
221
227
|
disabledEdit: disabledNoteEdit !== null && disabledNoteEdit !== void 0 ? disabledNoteEdit : other.disabledEdit,
|
|
222
228
|
openNote: openNoteEditor
|
|
@@ -229,7 +235,8 @@ const CartSkuCard = (props) => {
|
|
|
229
235
|
disabledEdit: disabledNoteEdit !== null && disabledNoteEdit !== void 0 ? disabledNoteEdit : other.disabledEdit,
|
|
230
236
|
openNote: openNoteEditor
|
|
231
237
|
})) : null;
|
|
232
|
-
const
|
|
238
|
+
const contentFooter = note || productHolders ? () => /* @__PURE__ */ React.createElement(React.Fragment, null, productHolders, note) : void 0;
|
|
239
|
+
const slots = contentFooter ? _objectSpread2(_objectSpread2({}, a12Slots), {}, { contentFooter: (_a12Slots$contentFoot = a12Slots === null || a12Slots === void 0 ? void 0 : a12Slots.contentFooter) !== null && _a12Slots$contentFoot !== void 0 ? _a12Slots$contentFoot : contentFooter }) : a12Slots;
|
|
233
240
|
return /* @__PURE__ */ React.createElement(A12, {
|
|
234
241
|
dataSource,
|
|
235
242
|
isShowImage,
|
|
@@ -12,6 +12,8 @@ interface CartSkuCardSlotContext {
|
|
|
12
12
|
}
|
|
13
13
|
interface CartSkuCardA12Slots {
|
|
14
14
|
contentFooter?: (context: CartSkuCardSlotContext) => ReactNode;
|
|
15
|
+
/** 有内容时替代价格、编辑和数量区域,保留默认删除按钮;空值沿用原展示。 */
|
|
16
|
+
status?: (context: CartSkuCardSlotContext) => ReactNode;
|
|
15
17
|
quantityControl?: (context: CartSkuCardSlotContext) => ReactNode;
|
|
16
18
|
actionRail?: (context: CartSkuCardSlotContext & {
|
|
17
19
|
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, _slots$contentFooter;
|
|
66
|
+
var _ref8, _dataSource$num, _dataSource$total, _dataSource$origin_to, _slots$contentFooter, _slots$status;
|
|
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]);
|
|
@@ -82,6 +82,7 @@ const A12 = ({ dataSource, isShowImage = true, isShowDelete = false, isShowOrigi
|
|
|
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
84
|
const contentFooter = slots === null || slots === void 0 || (_slots$contentFooter = slots.contentFooter) === null || _slots$contentFooter === void 0 ? void 0 : _slots$contentFooter.call(slots, slotContext);
|
|
85
|
+
const status = slots === null || slots === void 0 || (_slots$status = slots.status) === null || _slots$status === void 0 ? void 0 : _slots$status.call(slots, slotContext);
|
|
85
86
|
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);
|
|
86
87
|
const defaultEdit = Boolean(isShowEditProduct && onEditProduct) ? /* @__PURE__ */ React.createElement("button", {
|
|
87
88
|
type: "button",
|
|
@@ -104,7 +105,7 @@ const A12 = ({ dataSource, isShowImage = true, isShowDelete = false, isShowOrigi
|
|
|
104
105
|
event.stopPropagation();
|
|
105
106
|
onDelete(dataSource);
|
|
106
107
|
}
|
|
107
|
-
}, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-trash-01" })) : null, defaultPrice, defaultEdit, /* @__PURE__ */ React.createElement("div", { className:
|
|
108
|
+
}, /* @__PURE__ */ React.createElement(IconFont, { type: "pisell2-trash-01" })) : null, status || /* @__PURE__ */ React.createElement(React.Fragment, null, defaultPrice, defaultEdit, /* @__PURE__ */ React.createElement("div", { className: `pisell-cart-sku-card-a12__quantity-control` }, defaultQuantityControl)));
|
|
108
109
|
const actionRail = (slots === null || slots === void 0 ? void 0 : slots.actionRail) ? slots.actionRail(_objectSpread2(_objectSpread2({}, slotContext), {}, {
|
|
109
110
|
defaultPrice,
|
|
110
111
|
defaultEdit,
|
|
@@ -179,6 +179,13 @@ const convertProductToLineItemProduct = (product, translationOriginal, symbol, a
|
|
|
179
179
|
symbol,
|
|
180
180
|
amountFormatter,
|
|
181
181
|
note: product.note,
|
|
182
|
+
holder_id: product.holder_id,
|
|
183
|
+
holders: product.holders,
|
|
184
|
+
holderName: product.holderName,
|
|
185
|
+
holderType: product.holderType,
|
|
186
|
+
holderMaxCount: product.holderMaxCount,
|
|
187
|
+
isFormSubject: product.isFormSubject,
|
|
188
|
+
showUnassignedHolder: product.showUnassignedHolder,
|
|
182
189
|
product_sku: product.product_sku,
|
|
183
190
|
product_bundle: bundle,
|
|
184
191
|
bundle,
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
1
4
|
//#region src/components/section-footers/index.d.ts
|
|
2
5
|
interface SectionFooterProps {
|
|
3
6
|
left?: React.ReactNode;
|
|
@@ -5,6 +8,6 @@ interface SectionFooterProps {
|
|
|
5
8
|
right?: React.ReactNode;
|
|
6
9
|
className?: string;
|
|
7
10
|
}
|
|
8
|
-
declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
|
|
11
|
+
declare const SectionFooters: (props: SectionFooterProps) => _$react.JSX.Element;
|
|
9
12
|
//#endregion
|
|
10
13
|
export { SectionFooters };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { SegmentedProps } from "antd";
|
|
2
3
|
//#region src/components/segmented/index.d.ts
|
|
3
|
-
declare const Segmented$1: (props: SegmentedProps) => JSX.Element;
|
|
4
|
+
declare const Segmented$1: (props: SegmentedProps) => React.JSX.Element;
|
|
4
5
|
//#endregion
|
|
5
6
|
export { Segmented$1 as Segmented };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time/index.js";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { PopoverProps, TimePickerProps } from "antd";
|
|
3
4
|
//#region src/components/select-time/index.d.ts
|
|
4
5
|
interface SelectTimeProps {
|
|
@@ -11,6 +12,6 @@ interface SelectTimeProps {
|
|
|
11
12
|
theme?: 'light' | 'dark';
|
|
12
13
|
className?: string;
|
|
13
14
|
}
|
|
14
|
-
declare const SelectTime: (props: SelectTimeProps) => JSX.Element;
|
|
15
|
+
declare const SelectTime: (props: SelectTimeProps) => React.JSX.Element;
|
|
15
16
|
//#endregion
|
|
16
17
|
export { SelectTime };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
|
|
1
4
|
//#region src/components/skeleton/index.d.ts
|
|
2
|
-
declare const Skeleton: (props: any) => JSX.Element;
|
|
5
|
+
declare const Skeleton: (props: any) => _$react.JSX.Element;
|
|
3
6
|
//#endregion
|
|
4
7
|
export { Skeleton };
|