@pisell/materials 6.11.107 → 6.11.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/buttonGroupPreview/index.js +2 -1
- package/es/components/pisellFind/index.js +114 -18
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +24 -18
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +4 -6
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +4 -2
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +3 -14
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +2 -3
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -11
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -8
- package/es/components/productCard/cartSkuCard/components/resources/index.less +4 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.js +5 -1
- package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -24
- package/es/components/productCard/cartSkuCard/components/weighing/index.js +1 -4
- package/es/components/productCard/cartSkuCard/components/weighing/index.less +2 -10
- package/es/components/productCard/cartSkuCard/index.less +0 -2
- package/es/components/productCard/lineItem/BookingLineItem.js +39 -21
- package/es/components/productCard/lineItem/components/Holders/index.js +74 -0
- package/es/components/productCard/lineItem/components/Holders/index.less +39 -0
- package/es/components/productCard/lineItem/index.d.ts +11 -7
- package/es/components/productCard/lineItem/index.js +89 -27
- package/es/components/productCard/lineItem/index.less +40 -3
- package/lib/components/buttonGroupPreview/index.js +2 -1
- package/lib/components/pisellFind/index.js +80 -5
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +36 -17
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +3 -5
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +2 -11
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +2 -3
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +10 -22
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -8
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +4 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +11 -1
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -24
- package/lib/components/productCard/cartSkuCard/components/weighing/index.js +4 -6
- package/lib/components/productCard/cartSkuCard/components/weighing/index.less +2 -10
- package/lib/components/productCard/cartSkuCard/index.less +0 -2
- package/lib/components/productCard/lineItem/BookingLineItem.js +40 -48
- package/lib/components/productCard/lineItem/components/Holders/index.js +83 -0
- package/lib/components/productCard/lineItem/components/Holders/index.less +39 -0
- package/lib/components/productCard/lineItem/index.d.ts +11 -7
- package/lib/components/productCard/lineItem/index.js +63 -21
- package/lib/components/productCard/lineItem/index.less +40 -3
- package/lowcode/pisell-find/meta.ts +19 -0
- package/package.json +1 -1
- package/es/components/Pagination/index.d.ts +0 -14
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/es/components/PisellCards/index.d.ts +0 -15
- package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/es/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/es/components/PisellScrollView/types.d.ts +0 -203
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/es/components/appVersionControl/index.d.ts +0 -5
- package/es/components/buttonGroupPreview/index.d.ts +0 -19
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +0 -48
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -4
- package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/drawer/index.d.ts +0 -3
- package/es/components/filter/components/Dropdown/index.d.ts +0 -10
- package/es/components/filter/components/FilterButton/index.d.ts +0 -5
- package/es/components/filter/components/FilterItem/index.d.ts +0 -9
- package/es/components/filter/components/QuickFilter/index.d.ts +0 -16
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellCurrency/PisellCurrency.d.ts +0 -39
- package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/es/components/pisellEmail/PisellEmail.d.ts +0 -37
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/pisellFilter/index.d.ts +0 -4
- package/es/components/pisellFind/index.d.ts +0 -40
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -59
- package/es/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -29
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/components/EdgeLayer.d.ts +0 -37
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -66
- package/es/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -39
- package/es/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +0 -7
- package/es/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -11
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -44
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +0 -6
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +0 -59
- package/es/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -61
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -28
- package/es/components/pisellFloorMapLayout/components/index.d.ts +0 -23
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.d.ts +0 -61
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.d.ts +0 -15
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -79
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -91
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -37
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/types.d.ts +0 -778
- package/es/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.d.ts +0 -45
- package/es/components/pisellFloorMapLayout/utils/edgeRouting.d.ts +0 -267
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasStage.d.ts +0 -83
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/es/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +0 -44
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/es/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +0 -34
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
- package/es/components/pisellGridPro/index.d.ts +0 -4
- package/es/components/pisellLongText/PisellLongText.d.ts +0 -39
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
- package/es/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/es/components/pisellNumber/PisellNumber.d.ts +0 -42
- package/es/components/pisellPhone/PisellPhone.d.ts +0 -36
- package/es/components/pisellPhone/components/EditView.d.ts +0 -19
- package/es/components/pisellPhone/constants/countryCodes.d.ts +0 -20
- package/es/components/pisellPhone/types.d.ts +0 -209
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
- package/es/components/pisellRating/PisellRating.d.ts +0 -31
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellRecordBoard/index.d.ts +0 -53
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -5
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -11
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +0 -7
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.d.ts +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -19
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +0 -10
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -236
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.d.ts +0 -7
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +0 -21
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -49
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +0 -23
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -27
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.d.ts +0 -10
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.d.ts +0 -11
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.d.ts +0 -3
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.d.ts +0 -3
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +0 -13
- package/es/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -19
- package/es/components/pisellRecordBoard/shellFrame/index.d.ts +0 -30
- package/es/components/pisellRecordBoard/types.d.ts +0 -874
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
- package/es/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +0 -27
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/es/components/pisellReservationScheduleBand/index.d.ts +0 -3
- package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
- package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
- package/es/components/pisellStatisticList/index.d.ts +0 -22
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/es/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/es/components/pisellTimeNavigator/index.d.ts +0 -5
- package/es/components/pisellUrl/PisellUrl.d.ts +0 -37
- package/es/components/pisellWalletPassCard/index.d.ts +0 -146
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/BookingItem/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -22
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -13
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -19
- package/es/components/productCard/components/Time/index.d.ts +0 -4
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +0 -17
- package/es/components/productCard/lineItem/components/Resources/index.d.ts +0 -6
- package/es/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -12
- package/es/components/productCard/lineItem/types.d.ts +0 -9
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -95
- package/es/components/select-time/index.d.ts +0 -14
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -8
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -9
- package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/es/components/table/BasicTable/index.d.ts +0 -4
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/es/components/table/Gallery/index.d.ts +0 -5
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/Table/utils.d.ts +0 -161
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/es/components/table/types.d.ts +0 -268
- package/es/components/translation/index.d.ts +0 -17
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/index.d.ts +0 -271
- package/lib/components/Pagination/index.d.ts +0 -14
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/lib/components/PisellCards/index.d.ts +0 -15
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/lib/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/lib/components/PisellScrollView/types.d.ts +0 -203
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/lib/components/appVersionControl/index.d.ts +0 -5
- package/lib/components/buttonGroupPreview/index.d.ts +0 -19
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -5
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +0 -48
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -100
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +0 -4
- package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +0 -3
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/drawer/index.d.ts +0 -3
- package/lib/components/filter/components/Dropdown/index.d.ts +0 -10
- package/lib/components/filter/components/FilterButton/index.d.ts +0 -5
- package/lib/components/filter/components/FilterItem/index.d.ts +0 -9
- package/lib/components/filter/components/QuickFilter/index.d.ts +0 -16
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellCurrency/PisellCurrency.d.ts +0 -39
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/lib/components/pisellEmail/PisellEmail.d.ts +0 -37
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/pisellFilter/index.d.ts +0 -4
- package/lib/components/pisellFind/index.d.ts +0 -40
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +0 -59
- package/lib/components/pisellFloorMapLayout/appearance/floorMapAppearance.d.ts +0 -29
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/components/EdgeLayer.d.ts +0 -37
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -66
- package/lib/components/pisellFloorMapLayout/components/FigmaTableCard.d.ts +0 -39
- package/lib/components/pisellFloorMapLayout/components/FloorMapBuiltinShapeElement.d.ts +0 -7
- package/lib/components/pisellFloorMapLayout/components/FloorMapEdgeEditPanel.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -11
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -44
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/components/FloorMapZoneElement.d.ts +0 -6
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +0 -59
- package/lib/components/pisellFloorMapLayout/components/NodePortMarkers.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +0 -61
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +0 -28
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +0 -23
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +0 -5
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeEditing.d.ts +0 -61
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEdgeViewModel.d.ts +0 -15
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -79
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +0 -91
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +0 -19
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -37
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/types.d.ts +0 -778
- package/lib/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/utils/batchScenePlacementLayout.d.ts +0 -45
- package/lib/components/pisellFloorMapLayout/utils/edgeRouting.d.ts +0 -267
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasStage.d.ts +0 -83
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementKindUtils.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/lib/components/pisellFloorMapLayout/utils/floorMapOverviewLayout.d.ts +0 -44
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/lib/components/pisellFloorMapLayout/utils/floorMapToolbarPalette.d.ts +0 -34
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +0 -8
- package/lib/components/pisellGridPro/index.d.ts +0 -4
- package/lib/components/pisellLongText/PisellLongText.d.ts +0 -39
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +0 -9
- package/lib/components/pisellMultipleSelect/components/EditView.d.ts +0 -8
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/lib/components/pisellNumber/PisellNumber.d.ts +0 -42
- package/lib/components/pisellPhone/PisellPhone.d.ts +0 -36
- package/lib/components/pisellPhone/components/EditView.d.ts +0 -19
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +0 -20
- package/lib/components/pisellPhone/types.d.ts +0 -209
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +0 -35
- package/lib/components/pisellRating/PisellRating.d.ts +0 -31
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellRecordBoard/index.d.ts +0 -53
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -5
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +0 -11
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -26
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/hooks/useBookingCalendarDayOverlayLayout.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +0 -7
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarBlockPanel.d.ts +0 -26
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/MoveConfirmModal.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -19
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -236
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarSelectionUtils.d.ts +0 -7
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDaySelectionBar.d.ts +0 -21
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -49
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarGroupRowHeader.d.ts +0 -23
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -27
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/bookingCalendarDayViewContext.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDayHourRemaining.d.ts +0 -10
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/day/useBookingCalendarDaySelection.d.ts +0 -11
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceCellToggle.d.ts +0 -3
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/resource/useBookingCalendarResourceDayHeaderRemaining.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/useBookingCalendarGoToDayFromCell.d.ts +0 -3
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/PisellRecordBoardResourceWallView.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/RecordBoardResourceWall.d.ts +0 -8
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanel.d.ts +0 -50
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelColorTab.d.ts +0 -17
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallControlPanelLayoutTab.d.ts +0 -28
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/VenueWallCard.d.ts +0 -22
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallCardPresentation.d.ts +0 -58
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/venueWallUtils.d.ts +0 -64
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +0 -24
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.d.ts +0 -12
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarI18n.d.ts +0 -13
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarQuickFilter/index.d.ts +0 -19
- package/lib/components/pisellRecordBoard/shellFrame/index.d.ts +0 -30
- package/lib/components/pisellRecordBoard/types.d.ts +0 -874
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +0 -23
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +0 -52
- package/lib/components/pisellRecordBoard/utils/recordBoardPhoneGrid.d.ts +0 -27
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.d.ts +0 -10
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.d.ts +0 -10
- package/lib/components/pisellReservationScheduleBand/index.d.ts +0 -3
- package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +0 -40
- package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +0 -9
- package/lib/components/pisellStatisticList/index.d.ts +0 -22
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/index.d.ts +0 -5
- package/lib/components/pisellUrl/PisellUrl.d.ts +0 -37
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/BookingItem/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -22
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -13
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -19
- package/lib/components/productCard/components/Time/index.d.ts +0 -4
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +0 -17
- package/lib/components/productCard/lineItem/components/Resources/index.d.ts +0 -6
- package/lib/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -12
- package/lib/components/productCard/lineItem/types.d.ts +0 -9
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -95
- package/lib/components/select-time/index.d.ts +0 -14
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -8
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -9
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -9
- package/lib/components/table/BasicTable/index.d.ts +0 -4
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
- package/lib/components/table/Gallery/index.d.ts +0 -5
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/Table/utils.d.ts +0 -161
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/table/hooks/useTransDataSource.d.ts +0 -11
- package/lib/components/table/types.d.ts +0 -268
- package/lib/components/translation/index.d.ts +0 -17
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/index.d.ts +0 -271
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["dataSource", "type", "cartSkuType", "isShowBookingHeader", "relatedProductDataSource", "rightActions", "escapeDom", "isShowImage", "isFormSubject", "isShowDelete", "isShowNote", "isShowAmountFooter", "disabledClick", "disabledEdit", "statusOptions", "statusLoading", "statusDisabled", "isShowRelatedProduct", "holderOptions", "onBookingStatusChange", "onAction", "onDelete", "onNote", "onCard", "onPromotion", "onGift"];
|
|
2
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3
7
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
8
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -24,6 +28,7 @@ import { SwipeAction } from "../cartSkuCard/components/swipeAction";
|
|
|
24
28
|
import Action from "../components/Action";
|
|
25
29
|
import TimeRange from "./components/TimeRange";
|
|
26
30
|
import Resources from "./components/Resources";
|
|
31
|
+
import Holders from "./components/Holders";
|
|
27
32
|
import Iconfont from "../../iconfont";
|
|
28
33
|
import useEngineContext from "../../../hooks/useEngineContext";
|
|
29
34
|
var PREFIX = 'pisell-line-item';
|
|
@@ -64,15 +69,17 @@ var getResourceName = function getResourceName(booking, translationOriginal) {
|
|
|
64
69
|
}).filter(Boolean).join(', ');
|
|
65
70
|
};
|
|
66
71
|
var BookingLineItem = function BookingLineItem(props) {
|
|
67
|
-
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _dataSource$promotion;
|
|
72
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _ref, _ref2, _dataSource$promotion;
|
|
68
73
|
var dataSource = props.dataSource,
|
|
69
74
|
type = props.type,
|
|
70
75
|
cartSkuType = props.cartSkuType,
|
|
76
|
+
isShowBookingHeader = props.isShowBookingHeader,
|
|
71
77
|
relatedProductDataSource = props.relatedProductDataSource,
|
|
72
78
|
_props$rightActions = props.rightActions,
|
|
73
79
|
rightActions = _props$rightActions === void 0 ? [] : _props$rightActions,
|
|
74
80
|
escapeDom = props.escapeDom,
|
|
75
81
|
isShowImage = props.isShowImage,
|
|
82
|
+
isFormSubject = props.isFormSubject,
|
|
76
83
|
isShowDelete = props.isShowDelete,
|
|
77
84
|
isShowNote = props.isShowNote,
|
|
78
85
|
isShowAmountFooter = props.isShowAmountFooter,
|
|
@@ -86,6 +93,7 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
86
93
|
statusDisabled = _props$statusDisabled === void 0 ? false : _props$statusDisabled,
|
|
87
94
|
_props$isShowRelatedP = props.isShowRelatedProduct,
|
|
88
95
|
isShowRelatedProduct = _props$isShowRelatedP === void 0 ? true : _props$isShowRelatedP,
|
|
96
|
+
holderOptions = props.holderOptions,
|
|
89
97
|
onBookingStatusChange = props.onBookingStatusChange,
|
|
90
98
|
_onAction = props.onAction,
|
|
91
99
|
onDelete = props.onDelete,
|
|
@@ -131,9 +139,23 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
131
139
|
}
|
|
132
140
|
};
|
|
133
141
|
var bookingRightActions = isShowDelete ? [deleteAction].concat(_toConsumableArray(rightActions)) : rightActions;
|
|
134
|
-
var
|
|
135
|
-
var
|
|
136
|
-
var
|
|
142
|
+
var resolvedHolderOptions = (_ref = (_ref2 = holderOptions !== null && holderOptions !== void 0 ? holderOptions : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderOptions) !== null && _ref2 !== void 0 ? _ref2 : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holders) !== null && _ref !== void 0 ? _ref : [];
|
|
143
|
+
var resolvedIsFormSubject = isFormSubject !== null && isFormSubject !== void 0 ? isFormSubject : dataSource === null || dataSource === void 0 ? void 0 : dataSource.isFormSubject;
|
|
144
|
+
var bookingTitle = String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.booking_id) || '');
|
|
145
|
+
var renderDeleteButton = function renderDeleteButton() {
|
|
146
|
+
var inline = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
147
|
+
return isShowDelete ? /*#__PURE__*/React.createElement("button", {
|
|
148
|
+
className: classNames("".concat(PREFIX, "__delete-btn"), _defineProperty({}, "".concat(PREFIX, "__delete-btn--inline"), inline)),
|
|
149
|
+
type: "button",
|
|
150
|
+
onClick: function onClick(e) {
|
|
151
|
+
e.preventDefault();
|
|
152
|
+
e.stopPropagation();
|
|
153
|
+
onDelete === null || onDelete === void 0 || onDelete(dataSource);
|
|
154
|
+
}
|
|
155
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
156
|
+
type: "pisell2-trash-01"
|
|
157
|
+
})) : null;
|
|
158
|
+
};
|
|
137
159
|
var renderStatusButton = function renderStatusButton() {
|
|
138
160
|
return /*#__PURE__*/React.createElement(Button, {
|
|
139
161
|
className: "".concat(PREFIX, "__status"),
|
|
@@ -170,7 +192,7 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
170
192
|
e.stopPropagation();
|
|
171
193
|
onCard === null || onCard === void 0 || onCard(dataSource);
|
|
172
194
|
}
|
|
173
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
195
|
+
}, isShowBookingHeader ? /*#__PURE__*/React.createElement("div", {
|
|
174
196
|
className: "".concat(PREFIX, "__booking-header"),
|
|
175
197
|
style: {
|
|
176
198
|
'--pisell-line-item-header-color': currentStatus.color || DEFAULT_STATUS_COLOR
|
|
@@ -184,29 +206,25 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
184
206
|
}, canChangeStatus ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
185
207
|
menu: {
|
|
186
208
|
items: statusMenuItems,
|
|
187
|
-
onClick: function onClick(
|
|
188
|
-
var key =
|
|
209
|
+
onClick: function onClick(_ref3) {
|
|
210
|
+
var key = _ref3.key;
|
|
189
211
|
return onBookingStatusChange === null || onBookingStatusChange === void 0 ? void 0 : onBookingStatusChange(String(key), dataSource);
|
|
190
212
|
}
|
|
191
213
|
},
|
|
192
214
|
trigger: ['click']
|
|
193
|
-
}, renderStatusButton()) : renderStatusButton(),
|
|
194
|
-
className: "".concat(PREFIX, "
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
e.preventDefault();
|
|
198
|
-
e.stopPropagation();
|
|
199
|
-
onDelete === null || onDelete === void 0 || onDelete(dataSource);
|
|
200
|
-
}
|
|
201
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
202
|
-
type: "pisell2-trash-01"
|
|
203
|
-
})) : null))), /*#__PURE__*/React.createElement("div", {
|
|
204
|
-
className: "".concat(PREFIX, "__booking-detail")
|
|
215
|
+
}, renderStatusButton()) : renderStatusButton(), renderDeleteButton()))) : null, /*#__PURE__*/React.createElement("div", {
|
|
216
|
+
className: classNames("".concat(PREFIX, "__booking-detail"), _defineProperty({}, "".concat(PREFIX, "__booking-detail--with-delete"), !isShowBookingHeader && isShowDelete))
|
|
217
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
218
|
+
className: "".concat(PREFIX, "__booking-detail-content")
|
|
205
219
|
}, /*#__PURE__*/React.createElement(Resources, {
|
|
206
220
|
dataSource: dataSource
|
|
207
221
|
}), /*#__PURE__*/React.createElement(TimeRange, {
|
|
208
222
|
dataSource: dataSource
|
|
209
|
-
})
|
|
223
|
+
}), resolvedIsFormSubject ? /*#__PURE__*/React.createElement(Holders, {
|
|
224
|
+
dataSource: dataSource,
|
|
225
|
+
holderOptions: resolvedHolderOptions,
|
|
226
|
+
isFormSubject: resolvedIsFormSubject
|
|
227
|
+
}) : null), !isShowBookingHeader ? renderDeleteButton(true) : null), isShowRelatedProduct && relatedProductDataSource ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
210
228
|
style: {
|
|
211
229
|
margin: 0
|
|
212
230
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { locales } from '@pisell/utils';
|
|
3
|
+
import Iconfont from "../../../../iconfont";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
var PREFIX = 'pisell-line-item';
|
|
6
|
+
var holderIconMap = {
|
|
7
|
+
form: 'pisell2-file-05',
|
|
8
|
+
minors: 'pisell2-user-check-01',
|
|
9
|
+
waiver: 'pisell2-file-lock-03'
|
|
10
|
+
};
|
|
11
|
+
var isEmptyHolderId = function isEmptyHolderId(value) {
|
|
12
|
+
if (Array.isArray(value)) return value.length === 0;
|
|
13
|
+
return value === undefined || value === null || value === '';
|
|
14
|
+
};
|
|
15
|
+
var normalizeHolderIds = function normalizeHolderIds(value) {
|
|
16
|
+
if (isEmptyHolderId(value)) return [];
|
|
17
|
+
return Array.isArray(value) ? value : [value];
|
|
18
|
+
};
|
|
19
|
+
var pickHolderId = function pickHolderId(dataSource) {
|
|
20
|
+
var _ref, _ref2, _dataSource$holder_id, _dataSource$metadata, _dataSource$_extend, _dataSource$_extend2;
|
|
21
|
+
return (_ref = (_ref2 = (_dataSource$holder_id = dataSource === null || dataSource === void 0 ? void 0 : dataSource.holder_id) !== null && _dataSource$holder_id !== void 0 ? _dataSource$holder_id : dataSource === null || dataSource === void 0 || (_dataSource$metadata = dataSource.metadata) === null || _dataSource$metadata === void 0 ? void 0 : _dataSource$metadata.holder_id) !== null && _ref2 !== void 0 ? _ref2 : dataSource === null || dataSource === void 0 || (_dataSource$_extend = dataSource._extend) === null || _dataSource$_extend === void 0 || (_dataSource$_extend = _dataSource$_extend.product) === null || _dataSource$_extend === void 0 || (_dataSource$_extend = _dataSource$_extend.metadata) === null || _dataSource$_extend === void 0 ? void 0 : _dataSource$_extend.holder_id) !== null && _ref !== void 0 ? _ref : dataSource === null || dataSource === void 0 || (_dataSource$_extend2 = dataSource._extend) === null || _dataSource$_extend2 === void 0 || (_dataSource$_extend2 = _dataSource$_extend2.product) === null || _dataSource$_extend2 === void 0 || (_dataSource$_extend2 = _dataSource$_extend2._extend) === null || _dataSource$_extend2 === void 0 ? void 0 : _dataSource$_extend2.holder_id;
|
|
22
|
+
};
|
|
23
|
+
var pickHolderMaxCount = function pickHolderMaxCount(dataSource, holderIds) {
|
|
24
|
+
var _ref3, _ref4, _ref5, _ref6, _ref7, _dataSource$holderMax, _dataSource$_extend3, _dataSource$_extend4, _dataSource$_extend5;
|
|
25
|
+
var count = ((_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_dataSource$holderMax = dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderMaxCount) !== null && _dataSource$holderMax !== void 0 ? _dataSource$holderMax : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holder_max_count) !== null && _ref7 !== void 0 ? _ref7 : dataSource === null || dataSource === void 0 ? void 0 : dataSource.number) !== null && _ref6 !== void 0 ? _ref6 : dataSource === null || dataSource === void 0 || (_dataSource$_extend3 = dataSource._extend) === null || _dataSource$_extend3 === void 0 || (_dataSource$_extend3 = _dataSource$_extend3.product) === null || _dataSource$_extend3 === void 0 ? void 0 : _dataSource$_extend3.num) !== null && _ref5 !== void 0 ? _ref5 : dataSource === null || dataSource === void 0 || (_dataSource$_extend4 = dataSource._extend) === null || _dataSource$_extend4 === void 0 || (_dataSource$_extend4 = _dataSource$_extend4.product) === null || _dataSource$_extend4 === void 0 ? void 0 : _dataSource$_extend4.product_quantity) !== null && _ref4 !== void 0 ? _ref4 : dataSource === null || dataSource === void 0 || (_dataSource$_extend5 = dataSource._extend) === null || _dataSource$_extend5 === void 0 || (_dataSource$_extend5 = _dataSource$_extend5.product) === null || _dataSource$_extend5 === void 0 || (_dataSource$_extend5 = _dataSource$_extend5._extend) === null || _dataSource$_extend5 === void 0 ? void 0 : _dataSource$_extend5.quantity) !== null && _ref3 !== void 0 ? _ref3 : holderIds.length) || 1;
|
|
26
|
+
return Number(count) || 1;
|
|
27
|
+
};
|
|
28
|
+
var LineItemHolders = function LineItemHolders(props) {
|
|
29
|
+
var _props$dataSource = props.dataSource,
|
|
30
|
+
dataSource = _props$dataSource === void 0 ? {} : _props$dataSource,
|
|
31
|
+
_props$holderOptions = props.holderOptions,
|
|
32
|
+
holderOptions = _props$holderOptions === void 0 ? [] : _props$holderOptions,
|
|
33
|
+
isFormSubject = props.isFormSubject;
|
|
34
|
+
var holderIds = useMemo(function () {
|
|
35
|
+
return normalizeHolderIds(pickHolderId(dataSource));
|
|
36
|
+
}, [dataSource]);
|
|
37
|
+
var holderMaxCount = pickHolderMaxCount(dataSource, holderIds);
|
|
38
|
+
var showUnassigned = Boolean(isFormSubject || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.isFormSubject));
|
|
39
|
+
var holderType = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderType) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.holder_type) || 'minors';
|
|
40
|
+
var holderIcon = holderIconMap[holderType] || holderIconMap.minors;
|
|
41
|
+
if (!holderIds.length) {
|
|
42
|
+
if (!showUnassigned) return null;
|
|
43
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: "".concat(PREFIX, "__holders")
|
|
45
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: "holder-item unassigned"
|
|
47
|
+
}, holderMaxCount > 1 ? /*#__PURE__*/React.createElement("span", null, holderMaxCount, "/", holderMaxCount, ' ') : null, /*#__PURE__*/React.createElement("span", {
|
|
48
|
+
className: "holder-label"
|
|
49
|
+
}, locales.getText('pisell2.cart.sku-card.unassigned'))));
|
|
50
|
+
}
|
|
51
|
+
var renderHolder = function renderHolder(id, index) {
|
|
52
|
+
var _holder$label;
|
|
53
|
+
var holder = holderOptions.find(function (item) {
|
|
54
|
+
return String(item.id) === String(id);
|
|
55
|
+
});
|
|
56
|
+
var label = (_holder$label = holder === null || holder === void 0 ? void 0 : holder.label) !== null && _holder$label !== void 0 ? _holder$label : String(id);
|
|
57
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: "holder-item",
|
|
59
|
+
key: "".concat(id, "-").concat(index)
|
|
60
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
61
|
+
className: "holder-icon"
|
|
62
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
63
|
+
type: holderIcon
|
|
64
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
65
|
+
className: "holder-label"
|
|
66
|
+
}, label));
|
|
67
|
+
};
|
|
68
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: "".concat(PREFIX, "__holders")
|
|
70
|
+
}, holderIds.map(function (id, index) {
|
|
71
|
+
return renderHolder(id, index);
|
|
72
|
+
}));
|
|
73
|
+
};
|
|
74
|
+
export default LineItemHolders;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.pisell-line-item__holders {
|
|
2
|
+
user-select: none;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
|
|
7
|
+
.holder-item {
|
|
8
|
+
min-width: 30px;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
|
|
14
|
+
.holder-icon {
|
|
15
|
+
margin-right: 2px;
|
|
16
|
+
color: #7f56da;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.holder-label {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
color: #667085;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
line-height: 20px;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.unassigned {
|
|
33
|
+
color: red;
|
|
34
|
+
|
|
35
|
+
.holder-label {
|
|
36
|
+
color: red;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import type { ProductCardTypes } from '../types';
|
|
2
|
-
import type { itemType, LineItemStatusOption, LineItemType } from './types';
|
|
2
|
+
import type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const PREFIX = "pisell-line-item";
|
|
5
|
-
export type { itemType, LineItemStatusOption, LineItemType } from './types';
|
|
5
|
+
export type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType, } from './types';
|
|
6
6
|
declare type LocalizedText = string | Record<string, unknown> | null | undefined;
|
|
7
7
|
export interface LineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
8
8
|
dataSource: any;
|
|
9
9
|
itemType?: itemType;
|
|
10
10
|
type?: LineItemType;
|
|
11
|
+
isShowBookingHeader: boolean;
|
|
11
12
|
rightActions?: any[];
|
|
12
13
|
escapeDom?: string;
|
|
13
14
|
statusOptions?: LineItemStatusOption[];
|
|
14
15
|
statusLoading?: boolean;
|
|
15
16
|
statusDisabled?: boolean;
|
|
16
17
|
isShowRelatedProduct?: boolean;
|
|
18
|
+
holderOptions?: LineItemHolderOption[];
|
|
17
19
|
onBookingStatusChange?: (status: string, item: any) => void;
|
|
18
20
|
}
|
|
19
21
|
export declare const convertProductToLineItemProduct: (product: any, translationOriginal: (text: LocalizedText) => string, symbol: string) => {
|
|
@@ -30,8 +32,8 @@ export declare const convertProductToLineItemProduct: (product: any, translation
|
|
|
30
32
|
quantity: any;
|
|
31
33
|
price: any;
|
|
32
34
|
total: any;
|
|
33
|
-
origin_total:
|
|
34
|
-
original_total:
|
|
35
|
+
origin_total: string | number | undefined;
|
|
36
|
+
original_total: string | number | undefined;
|
|
35
37
|
source_product_price: any;
|
|
36
38
|
selling_price: any;
|
|
37
39
|
payment_price: any;
|
|
@@ -41,23 +43,25 @@ export declare const convertProductToLineItemProduct: (product: any, translation
|
|
|
41
43
|
product_sku: any;
|
|
42
44
|
product_bundle: any;
|
|
43
45
|
bundle: any;
|
|
44
|
-
product_option_string:
|
|
46
|
+
product_option_string: any;
|
|
47
|
+
options: any[];
|
|
45
48
|
discount_list: any;
|
|
46
49
|
promotions: any;
|
|
50
|
+
discount_reason: any;
|
|
47
51
|
isGift: boolean;
|
|
48
52
|
giftData: any;
|
|
49
53
|
_origin: any;
|
|
50
54
|
_extend: {
|
|
51
55
|
other: {
|
|
52
56
|
product_id: any;
|
|
53
|
-
option: any;
|
|
57
|
+
option: any[];
|
|
54
58
|
bundle: any;
|
|
55
59
|
product_variant_id: any;
|
|
56
60
|
quantity: any;
|
|
57
61
|
};
|
|
58
62
|
note: any;
|
|
59
63
|
total: any;
|
|
60
|
-
origin_total:
|
|
64
|
+
origin_total: string | number | undefined;
|
|
61
65
|
payment_price: any;
|
|
62
66
|
};
|
|
63
67
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["dataSource", "itemType", "type", "rightActions", "escapeDom", "isShowImage", "isShowDelete", "isShowNote", "isShowAmountFooter", "disabledClick", "disabledEdit", "statusOptions", "statusLoading", "statusDisabled", "isShowRelatedProduct", "onBookingStatusChange", "onAction", "onDelete", "onNote", "onCard", "onPromotion", "onGift"];
|
|
1
|
+
var _excluded = ["dataSource", "itemType", "type", "isShowBookingHeader", "rightActions", "escapeDom", "isShowImage", "isShowDelete", "isShowNote", "isShowAmountFooter", "disabledClick", "disabledEdit", "statusOptions", "statusLoading", "statusDisabled", "isShowRelatedProduct", "holderOptions", "onBookingStatusChange", "onAction", "onDelete", "onNote", "onCard", "onPromotion", "onGift"];
|
|
2
2
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -27,10 +27,32 @@ var translateText = function translateText(text, translationOriginal) {
|
|
|
27
27
|
if (!text) return '';
|
|
28
28
|
return translationOriginal(text);
|
|
29
29
|
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 解析行级划线原价(composite 单价)。
|
|
33
|
+
* SalesSdk/OS 行数据用 original_price;legacy cacheItem 用 original_total / _extend.origin_total。
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* resolveLineOriginTotal({ original_price: '8.00', selling_price: '5.00' }); // '8.00'
|
|
37
|
+
*/
|
|
38
|
+
var resolveLineOriginTotal = function resolveLineOriginTotal(product) {
|
|
39
|
+
var _product$_extend, _product$metadata;
|
|
40
|
+
var candidates = [product === null || product === void 0 ? void 0 : product.original_total, product === null || product === void 0 ? void 0 : product.original_price, product === null || product === void 0 || (_product$_extend = product._extend) === null || _product$_extend === void 0 ? void 0 : _product$_extend.origin_total, product === null || product === void 0 || (_product$metadata = product.metadata) === null || _product$metadata === void 0 || (_product$metadata = _product$metadata.origin) === null || _product$metadata === void 0 || (_product$metadata = _product$metadata._extend) === null || _product$metadata === void 0 ? void 0 : _product$metadata.origin_total];
|
|
41
|
+
for (var _i = 0, _candidates = candidates; _i < _candidates.length; _i++) {
|
|
42
|
+
var candidate = _candidates[_i];
|
|
43
|
+
if (candidate !== undefined && candidate !== null && candidate !== '') {
|
|
44
|
+
return candidate;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return undefined;
|
|
48
|
+
};
|
|
30
49
|
var convertBundleOption = function convertBundleOption(option, translationOriginal) {
|
|
50
|
+
var _option$add_price, _ref, _option$num;
|
|
31
51
|
return _objectSpread(_objectSpread({}, option), {}, {
|
|
32
52
|
id: option.option_group_item_id,
|
|
33
|
-
name: translateText(option.name, translationOriginal)
|
|
53
|
+
name: translateText(option.name, translationOriginal),
|
|
54
|
+
price: (_option$add_price = option.add_price) !== null && _option$add_price !== void 0 ? _option$add_price : option.price,
|
|
55
|
+
num: (_ref = (_option$num = option.num) !== null && _option$num !== void 0 ? _option$num : option.quantity) !== null && _ref !== void 0 ? _ref : 1
|
|
34
56
|
});
|
|
35
57
|
};
|
|
36
58
|
var convertBundle = function convertBundle(bundle, translationOriginal) {
|
|
@@ -44,15 +66,8 @@ var convertBundle = function convertBundle(bundle, translationOriginal) {
|
|
|
44
66
|
product_id: bundle.bundle_product_id,
|
|
45
67
|
_bundle_product_id: bundle.bundle_product_id,
|
|
46
68
|
product_variant_id: bundle.bundle_variant_id,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
bundle_title: title,
|
|
50
|
-
num: bundle.num,
|
|
51
|
-
quantity: bundle.num,
|
|
52
|
-
price: price,
|
|
53
|
-
total: bundle.bundle_payment_price,
|
|
54
|
-
origin_total: bundle.bundle_selling_price,
|
|
55
|
-
original_total: bundle.bundle_selling_price,
|
|
69
|
+
total: bundle.bundle_selling_price,
|
|
70
|
+
origin_total: bundle.original_total,
|
|
56
71
|
custom_price: bundle.custom_price,
|
|
57
72
|
custom_price_type: bundle.custom_price_type,
|
|
58
73
|
custom_price_type_ext: bundle.price_type_ext,
|
|
@@ -61,14 +76,51 @@ var convertBundle = function convertBundle(bundle, translationOriginal) {
|
|
|
61
76
|
_origin: bundle
|
|
62
77
|
});
|
|
63
78
|
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 读取行级规格:优先 product_sku.option,回落 legacy product_option_item。
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* resolveLineItemOptions({ product_sku: { option: [{ name: 'Large' }] } });
|
|
85
|
+
*/
|
|
86
|
+
var resolveLineItemOptions = function resolveLineItemOptions(product) {
|
|
87
|
+
var _product$product_sku;
|
|
88
|
+
var skuOptions = product === null || product === void 0 || (_product$product_sku = product.product_sku) === null || _product$product_sku === void 0 ? void 0 : _product$product_sku.option;
|
|
89
|
+
if (Array.isArray(skuOptions) && skuOptions.length > 0) {
|
|
90
|
+
return skuOptions;
|
|
91
|
+
}
|
|
92
|
+
if (Array.isArray(product === null || product === void 0 ? void 0 : product.product_option_item)) {
|
|
93
|
+
return product.product_option_item;
|
|
94
|
+
}
|
|
95
|
+
return [];
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 将 OS 规格项映射为 CartSkuCard 可直接渲染的 options。
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* mapLineItemOptions([{ name: 'Large', add_price: 1, num: 2 }], translateText);
|
|
103
|
+
*/
|
|
104
|
+
var mapLineItemOptions = function mapLineItemOptions(options, translationOriginal) {
|
|
105
|
+
return options.map(function (option) {
|
|
106
|
+
var _option$name, _option$add_price2, _ref2, _option$num2;
|
|
107
|
+
return _objectSpread(_objectSpread({}, option), {}, {
|
|
108
|
+
name: translateText((_option$name = option.name) !== null && _option$name !== void 0 ? _option$name : option.title, translationOriginal),
|
|
109
|
+
price: (_option$add_price2 = option.add_price) !== null && _option$add_price2 !== void 0 ? _option$add_price2 : option.price,
|
|
110
|
+
num: (_ref2 = (_option$num2 = option.num) !== null && _option$num2 !== void 0 ? _option$num2 : option.quantity) !== null && _ref2 !== void 0 ? _ref2 : 1
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
};
|
|
64
114
|
export var convertProductToLineItemProduct = function convertProductToLineItemProduct(product, translationOriginal, symbol) {
|
|
65
|
-
var _product$
|
|
115
|
+
var _product$metadata2, _ref3, _product$num, _ref4, _product$num2, _product$metadata3, _product$metadata4, _product$discount_lis, _product$discount_lis2, _product$metadata5, _product$metadata6, _ref5, _product$num3;
|
|
66
116
|
var title = translateText(product.product_title || product.title, translationOriginal);
|
|
67
117
|
var bundle = (product.product_bundle || []).map(function (bundleItem) {
|
|
68
118
|
return convertBundle(bundleItem, translationOriginal);
|
|
69
119
|
});
|
|
70
|
-
|
|
71
|
-
|
|
120
|
+
var lineOriginTotal = resolveLineOriginTotal(product);
|
|
121
|
+
var lineOptions = mapLineItemOptions(resolveLineItemOptions(product), translationOriginal);
|
|
122
|
+
var mapped = {
|
|
123
|
+
_id: ((_product$metadata2 = product.metadata) === null || _product$metadata2 === void 0 ? void 0 : _product$metadata2.unique_identification_number) || product.order_detail_id || product.product_id,
|
|
72
124
|
id: product.product_id,
|
|
73
125
|
product_id: product.product_id,
|
|
74
126
|
product_variant_id: product.product_variant_id,
|
|
@@ -77,13 +129,13 @@ export var convertProductToLineItemProduct = function convertProductToLineItemPr
|
|
|
77
129
|
name: title,
|
|
78
130
|
cover: product.cover,
|
|
79
131
|
image: product.cover,
|
|
80
|
-
num: (
|
|
81
|
-
quantity: (
|
|
82
|
-
price: (_product$
|
|
83
|
-
total:
|
|
84
|
-
origin_total:
|
|
85
|
-
original_total:
|
|
86
|
-
source_product_price: (_product$
|
|
132
|
+
num: (_ref3 = (_product$num = product.num) !== null && _product$num !== void 0 ? _product$num : product.product_quantity) !== null && _ref3 !== void 0 ? _ref3 : 1,
|
|
133
|
+
quantity: (_ref4 = (_product$num2 = product.num) !== null && _product$num2 !== void 0 ? _product$num2 : product.product_quantity) !== null && _ref4 !== void 0 ? _ref4 : 1,
|
|
134
|
+
price: (_product$metadata3 = product.metadata) === null || _product$metadata3 === void 0 ? void 0 : _product$metadata3.source_product_price,
|
|
135
|
+
total: product.selling_price,
|
|
136
|
+
origin_total: lineOriginTotal,
|
|
137
|
+
original_total: lineOriginTotal,
|
|
138
|
+
source_product_price: (_product$metadata4 = product.metadata) === null || _product$metadata4 === void 0 ? void 0 : _product$metadata4.source_product_price,
|
|
87
139
|
selling_price: product.selling_price,
|
|
88
140
|
payment_price: product.payment_price,
|
|
89
141
|
tax_fee: product.tax_fee,
|
|
@@ -92,26 +144,32 @@ export var convertProductToLineItemProduct = function convertProductToLineItemPr
|
|
|
92
144
|
product_sku: product.product_sku,
|
|
93
145
|
product_bundle: bundle,
|
|
94
146
|
bundle: bundle,
|
|
95
|
-
product_option_string: product.
|
|
147
|
+
product_option_string: product.product_option_string,
|
|
148
|
+
options: lineOptions,
|
|
96
149
|
discount_list: product.discount_list,
|
|
97
150
|
promotions: product.promotions,
|
|
98
|
-
|
|
151
|
+
discount_reason: (_product$discount_lis = (_product$discount_lis2 = product.discount_list) === null || _product$discount_lis2 === void 0 || (_product$discount_lis2 = _product$discount_lis2.find(function (d) {
|
|
152
|
+
return (d === null || d === void 0 ? void 0 : d.type) === 'product';
|
|
153
|
+
})) === null || _product$discount_lis2 === void 0 || (_product$discount_lis2 = _product$discount_lis2.discount) === null || _product$discount_lis2 === void 0 ? void 0 : _product$discount_lis2.message) !== null && _product$discount_lis !== void 0 ? _product$discount_lis : (_product$metadata5 = product.metadata) === null || _product$metadata5 === void 0 ? void 0 : _product$metadata5.product_discount_reason,
|
|
154
|
+
// 促销赠品走 metadata._giftInfo;礼品卡走 gift_card(对齐 legacy formatProducts isGift)
|
|
155
|
+
isGift: Boolean(product.gift_card || product.isGift || product._isGiftPromotion || ((_product$metadata6 = product.metadata) === null || _product$metadata6 === void 0 ? void 0 : _product$metadata6._giftInfo) || product._giftInfo),
|
|
99
156
|
giftData: product.giftData,
|
|
100
157
|
_origin: product,
|
|
101
158
|
_extend: {
|
|
102
159
|
other: {
|
|
103
160
|
product_id: product.product_id,
|
|
104
|
-
option:
|
|
161
|
+
option: lineOptions,
|
|
105
162
|
bundle: product.product_bundle,
|
|
106
163
|
product_variant_id: product.product_variant_id,
|
|
107
|
-
quantity: (
|
|
164
|
+
quantity: (_ref5 = (_product$num3 = product.num) !== null && _product$num3 !== void 0 ? _product$num3 : product.product_quantity) !== null && _ref5 !== void 0 ? _ref5 : 1
|
|
108
165
|
},
|
|
109
166
|
note: product.note,
|
|
110
|
-
total: product.
|
|
111
|
-
origin_total:
|
|
167
|
+
total: product.selling_price,
|
|
168
|
+
origin_total: lineOriginTotal,
|
|
112
169
|
payment_price: product.payment_price
|
|
113
170
|
}
|
|
114
171
|
};
|
|
172
|
+
return mapped;
|
|
115
173
|
};
|
|
116
174
|
var LineItem = function LineItem(props) {
|
|
117
175
|
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _dataSource$_extend2;
|
|
@@ -120,6 +178,7 @@ var LineItem = function LineItem(props) {
|
|
|
120
178
|
itemType = props.itemType,
|
|
121
179
|
_props$type = props.type,
|
|
122
180
|
type = _props$type === void 0 ? 'a9' : _props$type,
|
|
181
|
+
isShowBookingHeader = props.isShowBookingHeader,
|
|
123
182
|
_props$rightActions = props.rightActions,
|
|
124
183
|
rightActions = _props$rightActions === void 0 ? [] : _props$rightActions,
|
|
125
184
|
escapeDom = props.escapeDom,
|
|
@@ -143,6 +202,7 @@ var LineItem = function LineItem(props) {
|
|
|
143
202
|
statusDisabled = _props$statusDisabled === void 0 ? false : _props$statusDisabled,
|
|
144
203
|
_props$isShowRelatedP = props.isShowRelatedProduct,
|
|
145
204
|
isShowRelatedProduct = _props$isShowRelatedP === void 0 ? true : _props$isShowRelatedP,
|
|
205
|
+
holderOptions = props.holderOptions,
|
|
146
206
|
onBookingStatusChange = props.onBookingStatusChange,
|
|
147
207
|
onAction = props.onAction,
|
|
148
208
|
onDelete = props.onDelete,
|
|
@@ -190,6 +250,7 @@ var LineItem = function LineItem(props) {
|
|
|
190
250
|
dataSource: dataSource,
|
|
191
251
|
type: type,
|
|
192
252
|
cartSkuType: type,
|
|
253
|
+
isShowBookingHeader: isShowBookingHeader,
|
|
193
254
|
relatedProductDataSource: relatedProductDataSource,
|
|
194
255
|
rightActions: rightActions,
|
|
195
256
|
escapeDom: escapeDom,
|
|
@@ -203,6 +264,7 @@ var LineItem = function LineItem(props) {
|
|
|
203
264
|
statusLoading: statusLoading,
|
|
204
265
|
statusDisabled: statusDisabled,
|
|
205
266
|
isShowRelatedProduct: isShowRelatedProduct,
|
|
267
|
+
holderOptions: holderOptions,
|
|
206
268
|
onBookingStatusChange: onBookingStatusChange,
|
|
207
269
|
onAction: onAction,
|
|
208
270
|
onDelete: onDelete,
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
&__delete-btn {
|
|
19
19
|
width: 34px;
|
|
20
20
|
height: 34px;
|
|
21
|
-
border: 1px solid
|
|
21
|
+
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
22
22
|
border-radius: 8px;
|
|
23
|
-
background:
|
|
24
|
-
color: #
|
|
23
|
+
background: var(--Gray-100, #f2f4f7);
|
|
24
|
+
color: var(--Gray-500, #667085);
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
padding: 0;
|
|
27
27
|
display: inline-flex;
|
|
@@ -33,6 +33,21 @@
|
|
|
33
33
|
color: currentColor;
|
|
34
34
|
font-size: 20px;
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
&--inline {
|
|
38
|
+
width: auto;
|
|
39
|
+
height: auto;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: #667085;
|
|
44
|
+
padding: 10px;
|
|
45
|
+
|
|
46
|
+
> span {
|
|
47
|
+
color: currentColor;
|
|
48
|
+
font-size: 20px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
36
51
|
}
|
|
37
52
|
|
|
38
53
|
&__swipe-delete {
|
|
@@ -148,6 +163,28 @@
|
|
|
148
163
|
padding: 8px;
|
|
149
164
|
}
|
|
150
165
|
|
|
166
|
+
&__booking-detail--with-delete {
|
|
167
|
+
position: relative;
|
|
168
|
+
|
|
169
|
+
.pisell-line-item__booking-detail-content {
|
|
170
|
+
padding-right: 40px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.pisell-line-item__delete-btn--inline {
|
|
174
|
+
position: absolute;
|
|
175
|
+
top: 0;
|
|
176
|
+
right: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&__booking-detail-content {
|
|
181
|
+
min-width: 0;
|
|
182
|
+
flex: 1;
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: 4px;
|
|
186
|
+
}
|
|
187
|
+
|
|
151
188
|
&__booking-field {
|
|
152
189
|
min-width: 0;
|
|
153
190
|
}
|
|
@@ -71,7 +71,8 @@ var ButtonGroupPreview = (0, import_react.forwardRef)(
|
|
|
71
71
|
} = items;
|
|
72
72
|
const btnProps = { ...buttonProps, ...props.updateButtonProps };
|
|
73
73
|
const { children, ...dropdownButtonProps } = btnProps;
|
|
74
|
-
|
|
74
|
+
const moreButtonChildren = children ?? (dropdownButtonProps.icon ? null : /* @__PURE__ */ import_react.default.createElement(import_icons.MoreOutlined, null));
|
|
75
|
+
return isMore ? /* @__PURE__ */ import_react.default.createElement(import_antd.Dropdown, { menu: { items: menuData }, trigger: ["click"] }, /* @__PURE__ */ import_react.default.createElement(import_button.default, { key: id, ...dropdownButtonProps }, moreButtonChildren)) : /* @__PURE__ */ import_react.default.createElement(
|
|
75
76
|
import_button.default,
|
|
76
77
|
{
|
|
77
78
|
key: id,
|