@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
|
@@ -66,6 +66,7 @@ var ButtonGroupPreview = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
66
66
|
var btnProps = _objectSpread(_objectSpread({}, buttonProps), props.updateButtonProps);
|
|
67
67
|
var children = btnProps.children,
|
|
68
68
|
dropdownButtonProps = _objectWithoutProperties(btnProps, _excluded);
|
|
69
|
+
var moreButtonChildren = children !== null && children !== void 0 ? children : dropdownButtonProps.icon ? null : /*#__PURE__*/React.createElement(MoreOutlined, null);
|
|
69
70
|
return isMore ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
70
71
|
menu: {
|
|
71
72
|
items: menuData
|
|
@@ -73,7 +74,7 @@ var ButtonGroupPreview = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
73
74
|
trigger: ['click']
|
|
74
75
|
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
75
76
|
key: id
|
|
76
|
-
}, dropdownButtonProps),
|
|
77
|
+
}, dropdownButtonProps), moreButtonChildren)) : /*#__PURE__*/React.createElement(Button, _extends({
|
|
77
78
|
key: id
|
|
78
79
|
}, btnProps));
|
|
79
80
|
}));
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
var _excluded = ["triggerType", "buttonText", "placeholder", "showConfirmButton", "showHistory", "historyKey"];
|
|
1
|
+
var _excluded = ["triggerType", "buttonText", "placeholder", "showConfirmButton", "showHistory", "historyKey", "enableScanner", "onScannerData", "onSearch"];
|
|
2
2
|
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); }
|
|
3
3
|
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; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React, { forwardRef } from 'react';
|
|
5
|
+
import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
|
|
6
6
|
import { locales as utilsLocales } from '@pisell/utils';
|
|
7
7
|
import { PisellLookup } from "../pisellLookup";
|
|
8
|
+
import useEngineContext from "../../hooks/useEngineContext";
|
|
8
9
|
import { getText } from "../../locales";
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* 原生扫码事件名,对齐宿主端约定。
|
|
13
|
+
*/
|
|
14
|
+
export var SCAN_RESULT_EVENT = 'nativeScanResult';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 扫码枪回传数据(对齐宿主 ScanResultPayload)
|
|
18
|
+
* - code: 条码标识(如条码格式 / 业务字段)
|
|
19
|
+
* - data: 扫描得到的字符串值(写入输入框的内容)
|
|
20
|
+
*/
|
|
21
|
+
|
|
10
22
|
/**
|
|
11
23
|
* PisellFind Props
|
|
12
|
-
* 继承 PisellLookup 的所有 Props
|
|
24
|
+
* 继承 PisellLookup 的所有 Props,并扩展扫码枪监听相关字段。
|
|
13
25
|
*/
|
|
14
26
|
|
|
15
27
|
/**
|
|
@@ -20,31 +32,27 @@ import { getText } from "../../locales";
|
|
|
20
32
|
/**
|
|
21
33
|
* PisellFind 组件
|
|
22
34
|
* 基于 PisellLookup 的组件内查找优化版本
|
|
23
|
-
*
|
|
35
|
+
*
|
|
24
36
|
* 核心特点:
|
|
25
37
|
* - 默认使用 button 触发器
|
|
26
38
|
* - 默认不显示确认按钮(输入即搜索)
|
|
27
39
|
* - 默认开启搜索历史
|
|
28
40
|
* - 默认不展示结果区(结果在页面其他位置展示)
|
|
29
|
-
*
|
|
41
|
+
* - 通过 `enableScanner` 接入扫码枪:使用宿主 `app.pubsub.subscribe(SCAN_RESULT_EVENT, ...)`,
|
|
42
|
+
* 每次扫码直接覆盖输入框内容并触发 onSearch / onScannerData;切回 false 时自动 unsubscribe。
|
|
43
|
+
*
|
|
30
44
|
* @example
|
|
31
45
|
* ```tsx
|
|
32
|
-
* // 基础用法
|
|
33
|
-
* <PisellFind
|
|
34
|
-
* onSearch={(keyword) => {
|
|
35
|
-
* const filtered = data.filter(item => item.name.includes(keyword));
|
|
36
|
-
* setFilteredData(filtered);
|
|
37
|
-
* }}
|
|
38
|
-
* />
|
|
39
|
-
*
|
|
40
|
-
* // 切换为 Input 模式
|
|
41
46
|
* <PisellFind
|
|
42
47
|
* triggerType="input"
|
|
48
|
+
* enableScanner={isActive}
|
|
49
|
+
* onScannerData={(payload) => console.log('scan:', payload.data)}
|
|
43
50
|
* onSearch={(keyword) => filterData(keyword)}
|
|
44
51
|
* />
|
|
45
52
|
* ```
|
|
46
53
|
*/
|
|
47
54
|
export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
55
|
+
var _engineContext$appHel;
|
|
48
56
|
var _props$triggerType = props.triggerType,
|
|
49
57
|
triggerType = _props$triggerType === void 0 ? 'button' : _props$triggerType,
|
|
50
58
|
_props$buttonText = props.buttonText,
|
|
@@ -65,17 +73,105 @@ export var PisellFind = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
65
73
|
showHistory = _props$showHistory === void 0 ? true : _props$showHistory,
|
|
66
74
|
_props$historyKey = props.historyKey,
|
|
67
75
|
historyKey = _props$historyKey === void 0 ? 'pisell_find_history' : _props$historyKey,
|
|
76
|
+
_props$enableScanner = props.enableScanner,
|
|
77
|
+
enableScanner = _props$enableScanner === void 0 ? false : _props$enableScanner,
|
|
78
|
+
onScannerData = props.onScannerData,
|
|
79
|
+
onSearch = props.onSearch,
|
|
68
80
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
81
|
+
var lookupRef = useRef(null);
|
|
82
|
+
|
|
83
|
+
/** 透传给监听回调的最新引用,避免回调闭包 stale */
|
|
84
|
+
var onScannerDataRef = useRef(onScannerData);
|
|
85
|
+
var onSearchRef = useRef(onSearch);
|
|
86
|
+
useEffect(function () {
|
|
87
|
+
onScannerDataRef.current = onScannerData;
|
|
88
|
+
}, [onScannerData]);
|
|
89
|
+
useEffect(function () {
|
|
90
|
+
onSearchRef.current = onSearch;
|
|
91
|
+
}, [onSearch]);
|
|
92
|
+
useImperativeHandle(ref, function () {
|
|
93
|
+
return {
|
|
94
|
+
open: function open() {
|
|
95
|
+
var _lookupRef$current;
|
|
96
|
+
return (_lookupRef$current = lookupRef.current) === null || _lookupRef$current === void 0 ? void 0 : _lookupRef$current.open();
|
|
97
|
+
},
|
|
98
|
+
close: function close() {
|
|
99
|
+
var _lookupRef$current2;
|
|
100
|
+
return (_lookupRef$current2 = lookupRef.current) === null || _lookupRef$current2 === void 0 ? void 0 : _lookupRef$current2.close();
|
|
101
|
+
},
|
|
102
|
+
getKeyword: function getKeyword() {
|
|
103
|
+
var _lookupRef$current$ge, _lookupRef$current3;
|
|
104
|
+
return (_lookupRef$current$ge = (_lookupRef$current3 = lookupRef.current) === null || _lookupRef$current3 === void 0 ? void 0 : _lookupRef$current3.getKeyword()) !== null && _lookupRef$current$ge !== void 0 ? _lookupRef$current$ge : '';
|
|
105
|
+
},
|
|
106
|
+
setKeyword: function setKeyword(v) {
|
|
107
|
+
var _lookupRef$current4;
|
|
108
|
+
return (_lookupRef$current4 = lookupRef.current) === null || _lookupRef$current4 === void 0 ? void 0 : _lookupRef$current4.setKeyword(v);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}, []);
|
|
112
|
+
|
|
113
|
+
/** 通过 useEngineContext 拿到宿主 app(含 pubsub.subscribe / unsubscribe) */
|
|
114
|
+
var engineContext = useEngineContext();
|
|
115
|
+
/**
|
|
116
|
+
* 用 ref 稳定 getApp 引用:低代码环境下 engineContext 每次渲染可能返回新引用,
|
|
117
|
+
* 若把 getApp 直接放进 effect 依赖会导致频繁 unsubscribe/subscribe(甚至漏掉扫码事件)。
|
|
118
|
+
* effect 依赖只保留 enableScanner,运行时通过 ref 拿最新的 getApp。
|
|
119
|
+
*/
|
|
120
|
+
var getAppRef = useRef(undefined);
|
|
121
|
+
getAppRef.current = typeof (engineContext === null || engineContext === void 0 || (_engineContext$appHel = engineContext.appHelper) === null || _engineContext$appHel === void 0 || (_engineContext$appHel = _engineContext$appHel.utils) === null || _engineContext$appHel === void 0 ? void 0 : _engineContext$appHel.getApp) === 'function' ? engineContext.appHelper.utils.getApp : undefined;
|
|
122
|
+
useEffect(function () {
|
|
123
|
+
if (!enableScanner) return undefined;
|
|
124
|
+
var getApp = getAppRef.current;
|
|
125
|
+
if (typeof getApp !== 'function') return undefined;
|
|
126
|
+
var app = getApp();
|
|
127
|
+
var pubsub = app === null || app === void 0 ? void 0 : app.pubsub;
|
|
128
|
+
if (!pubsub || typeof pubsub.subscribe !== 'function') {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 监听回调:每次扫码直接覆盖输入框。
|
|
134
|
+
* ScanResultPayload: { code, data },取 code 作为输入框值与搜索关键词。
|
|
135
|
+
* setKeyword 在受控模式下会触发外部 onChange;onSearch 需要显式触发以驱动后续搜索流程
|
|
136
|
+
* (受控模式下宿主一般只通过 onSearch 拿到新关键词,不会在 onChange 里再触发一次 onSearch,
|
|
137
|
+
* 因此这里不会产生重复请求。如需自定义合流,可绑定 onScannerData 自行处理)。
|
|
138
|
+
*
|
|
139
|
+
* 非法 payload(无 code 或 code 为空串)直接忽略,避免把输入框/搜索条件意外清空。
|
|
140
|
+
*/
|
|
141
|
+
var onScan = function onScan(payload) {
|
|
142
|
+
var _lookupRef$current5, _onSearchRef$current, _onScannerDataRef$cur;
|
|
143
|
+
var data = payload === null || payload === void 0 ? void 0 : payload.data;
|
|
144
|
+
if (typeof data !== 'string' || data.length === 0) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
(_lookupRef$current5 = lookupRef.current) === null || _lookupRef$current5 === void 0 || _lookupRef$current5.setKeyword(data);
|
|
148
|
+
(_onSearchRef$current = onSearchRef.current) === null || _onSearchRef$current === void 0 || _onSearchRef$current.call(onSearchRef, data);
|
|
149
|
+
(_onScannerDataRef$cur = onScannerDataRef.current) === null || _onScannerDataRef$cur === void 0 || _onScannerDataRef$cur.call(onScannerDataRef, payload);
|
|
150
|
+
};
|
|
151
|
+
try {
|
|
152
|
+
pubsub.subscribe(SCAN_RESULT_EVENT, onScan);
|
|
153
|
+
} catch (e) {
|
|
154
|
+
console.warn('[PisellFind] subscribe scanner failed:', e);
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
return function () {
|
|
158
|
+
try {
|
|
159
|
+
var _pubsub$unsubscribe;
|
|
160
|
+
(_pubsub$unsubscribe = pubsub.unsubscribe) === null || _pubsub$unsubscribe === void 0 || _pubsub$unsubscribe.call(pubsub, SCAN_RESULT_EVENT, onScan);
|
|
161
|
+
} catch (e) {
|
|
162
|
+
console.warn('[PisellFind] unsubscribe scanner failed:', e);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}, [enableScanner]);
|
|
69
166
|
return /*#__PURE__*/React.createElement(PisellLookup, _extends({
|
|
70
|
-
ref:
|
|
167
|
+
ref: lookupRef,
|
|
71
168
|
triggerType: triggerType,
|
|
72
169
|
buttonText: buttonText,
|
|
73
170
|
placeholder: placeholder,
|
|
74
171
|
showConfirmButton: showConfirmButton,
|
|
75
172
|
showHistory: showHistory,
|
|
76
|
-
historyKey: historyKey
|
|
173
|
+
historyKey: historyKey,
|
|
174
|
+
onSearch: onSearch
|
|
77
175
|
}, restProps));
|
|
78
176
|
});
|
|
79
|
-
|
|
80
|
-
// 显示名称
|
|
81
177
|
PisellFind.displayName = 'PisellFind';
|
|
@@ -147,7 +147,12 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
147
147
|
layoutPrefix: PREFIX,
|
|
148
148
|
contentOffsetRef: contentOffsetRef,
|
|
149
149
|
showDataSourceRecordFormBlock: showDataSourceRecordFormBlock,
|
|
150
|
-
focusViewportOnBoundsRef: focusViewportOnBoundsRef
|
|
150
|
+
focusViewportOnBoundsRef: focusViewportOnBoundsRef,
|
|
151
|
+
/**
|
|
152
|
+
* 网格显隐缓存与视口持久化共用同一命名空间,按业务/门店/平面图隔离;
|
|
153
|
+
* 与视口 `viewportPersistKey` 同源,避免换门店/平面图读到别家的网格偏好。
|
|
154
|
+
*/
|
|
155
|
+
gridPersistNamespace: viewportPersistNamespace
|
|
151
156
|
});
|
|
152
157
|
var config = edit.config,
|
|
153
158
|
currentCanvasId = edit.currentCanvasId,
|
|
@@ -53,12 +53,17 @@ var ZONE_PLACE_DEFAULT = {
|
|
|
53
53
|
height: 160
|
|
54
54
|
};
|
|
55
55
|
var GRID_VIS_STORAGE_PREFIX = 'pisell-floor-map-layout.grid-visible';
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 网格显隐缓存 key:可选 `namespace`(通常拼自业务/门店/平面图,与视口 `viewportPersistNamespace`
|
|
59
|
+
* 同源)用于隔离不同场景。未传 namespace 时保持原 `prefix:canvasId`,向后兼容。
|
|
60
|
+
*/
|
|
61
|
+
function getGridVisStorageKey(canvasId, namespace) {
|
|
62
|
+
return namespace ? "".concat(GRID_VIS_STORAGE_PREFIX, ":").concat(namespace, ":").concat(canvasId) : "".concat(GRID_VIS_STORAGE_PREFIX, ":").concat(canvasId);
|
|
58
63
|
}
|
|
59
|
-
function readStoredGridVisible(canvasId) {
|
|
64
|
+
function readStoredGridVisible(canvasId, namespace) {
|
|
60
65
|
try {
|
|
61
|
-
var raw = localStorage.getItem(getGridVisStorageKey(canvasId));
|
|
66
|
+
var raw = localStorage.getItem(getGridVisStorageKey(canvasId, namespace));
|
|
62
67
|
if (raw == null) return null;
|
|
63
68
|
if (raw === '1') return true;
|
|
64
69
|
if (raw === '0') return false;
|
|
@@ -67,21 +72,21 @@ function readStoredGridVisible(canvasId) {
|
|
|
67
72
|
return null;
|
|
68
73
|
}
|
|
69
74
|
}
|
|
70
|
-
function writeStoredGridVisible(canvasId, visible) {
|
|
75
|
+
function writeStoredGridVisible(canvasId, visible, namespace) {
|
|
71
76
|
try {
|
|
72
|
-
localStorage.setItem(getGridVisStorageKey(canvasId), visible ? '1' : '0');
|
|
77
|
+
localStorage.setItem(getGridVisStorageKey(canvasId, namespace), visible ? '1' : '0');
|
|
73
78
|
} catch (_unused2) {
|
|
74
79
|
// ignore localStorage failure (private mode / quota / sandbox)
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
/** 与 props 同步 / dirty 基线一致:合并 localStorage 中的网格显隐偏好 */
|
|
79
|
-
function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp) {
|
|
84
|
+
function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, namespace) {
|
|
80
85
|
var baseConfig = normalizeFloorMapViewConfigFromProp(floorMapConfigProp);
|
|
81
86
|
return _objectSpread(_objectSpread({}, baseConfig), {}, {
|
|
82
87
|
canvases: baseConfig.canvases.map(function (canvas) {
|
|
83
88
|
var _canvas$mapLayer;
|
|
84
|
-
var stored = readStoredGridVisible(canvas.id);
|
|
89
|
+
var stored = readStoredGridVisible(canvas.id, namespace);
|
|
85
90
|
if (stored == null) return canvas;
|
|
86
91
|
return _objectSpread(_objectSpread({}, canvas), {}, {
|
|
87
92
|
mapLayer: _objectSpread(_objectSpread({}, (_canvas$mapLayer = canvas.mapLayer) !== null && _canvas$mapLayer !== void 0 ? _canvas$mapLayer : {}), {}, {
|
|
@@ -182,7 +187,8 @@ export function useFloorMapEditState(params) {
|
|
|
182
187
|
layoutPrefix = params.layoutPrefix,
|
|
183
188
|
contentOffsetRef = params.contentOffsetRef,
|
|
184
189
|
showDataSourceRecordFormBlock = params.showDataSourceRecordFormBlock,
|
|
185
|
-
focusViewportOnBoundsRef = params.focusViewportOnBoundsRef
|
|
190
|
+
focusViewportOnBoundsRef = params.focusViewportOnBoundsRef,
|
|
191
|
+
gridPersistNamespace = params.gridPersistNamespace;
|
|
186
192
|
var scheduleFocusOnPlacements = useCallback(function (positions, sizes) {
|
|
187
193
|
var _focusViewportOnBound;
|
|
188
194
|
var box = getPlacementBoundingBox(positions, sizes);
|
|
@@ -244,7 +250,7 @@ export function useFloorMapEditState(params) {
|
|
|
244
250
|
lastSyncedPropConfigRef.current = null;
|
|
245
251
|
return;
|
|
246
252
|
}
|
|
247
|
-
var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp);
|
|
253
|
+
var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, gridPersistNamespace);
|
|
248
254
|
var lastSynced = lastSyncedPropConfigRef.current;
|
|
249
255
|
/**
|
|
250
256
|
* 仅当「自上次 props 同步后用户又改过草稿」时拒绝覆盖:
|
|
@@ -279,16 +285,16 @@ export function useFloorMapEditState(params) {
|
|
|
279
285
|
return c.id === prev;
|
|
280
286
|
}) ? prev : (_enabled$0$id = (_enabled$ = enabled[0]) === null || _enabled$ === void 0 ? void 0 : _enabled$.id) !== null && _enabled$0$id !== void 0 ? _enabled$0$id : null;
|
|
281
287
|
});
|
|
282
|
-
// replaceDraft
|
|
288
|
+
// replaceDraft 是稳定引用;上游 props 或网格命名空间(切门店/平面图)变化时同步
|
|
283
289
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
284
|
-
}, [floorMapConfigProp]);
|
|
290
|
+
}, [floorMapConfigProp, gridPersistNamespace]);
|
|
285
291
|
|
|
286
292
|
/** 当前草稿与上游持久化 `floorMapConfig`(经同等规范化)是否不一致 */
|
|
287
293
|
var isLayoutDirty = useMemo(function () {
|
|
288
294
|
if (!isFloorMapView || !draftConfig || !floorMapConfigProp) return false;
|
|
289
|
-
var baseline = savedBaselineConfig !== null && savedBaselineConfig !== void 0 ? savedBaselineConfig : normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp);
|
|
295
|
+
var baseline = savedBaselineConfig !== null && savedBaselineConfig !== void 0 ? savedBaselineConfig : normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, gridPersistNamespace);
|
|
290
296
|
return !floorMapViewConfigsEqual(draftConfig, baseline);
|
|
291
|
-
}, [isFloorMapView, draftConfig, floorMapConfigProp, savedBaselineConfig]);
|
|
297
|
+
}, [isFloorMapView, draftConfig, floorMapConfigProp, savedBaselineConfig, gridPersistNamespace]);
|
|
292
298
|
|
|
293
299
|
/**
|
|
294
300
|
* 撤销/重做后:若选中的图元已不存在于新草稿(如撤回了刚复制/新建的元素),
|
|
@@ -732,11 +738,11 @@ export function useFloorMapEditState(params) {
|
|
|
732
738
|
setSavedBaselineConfig(null);
|
|
733
739
|
return;
|
|
734
740
|
}
|
|
735
|
-
var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp);
|
|
741
|
+
var nextConfig = normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, gridPersistNamespace);
|
|
736
742
|
replaceDraft(nextConfig);
|
|
737
743
|
lastSyncedPropConfigRef.current = nextConfig;
|
|
738
744
|
setSavedBaselineConfig(null);
|
|
739
|
-
}, [floorMapConfigProp, replaceDraft]);
|
|
745
|
+
}, [floorMapConfigProp, replaceDraft, gridPersistNamespace]);
|
|
740
746
|
|
|
741
747
|
/** 切换当前画布草稿中的 mapLayer.showGrid(随布局保存持久化) */
|
|
742
748
|
var toggleDraftCanvasShowGrid = useCallback(function () {
|
|
@@ -747,7 +753,7 @@ export function useFloorMapEditState(params) {
|
|
|
747
753
|
var _c$mapLayer;
|
|
748
754
|
if (c.id !== currentCanvasId) return c;
|
|
749
755
|
var nextShow = !Boolean((_c$mapLayer = c.mapLayer) === null || _c$mapLayer === void 0 ? void 0 : _c$mapLayer.showGrid);
|
|
750
|
-
writeStoredGridVisible(currentCanvasId, nextShow);
|
|
756
|
+
writeStoredGridVisible(currentCanvasId, nextShow, gridPersistNamespace);
|
|
751
757
|
return _objectSpread(_objectSpread({}, c), {}, {
|
|
752
758
|
mapLayer: _objectSpread(_objectSpread({}, c.mapLayer), {}, {
|
|
753
759
|
showGrid: nextShow
|
|
@@ -756,7 +762,7 @@ export function useFloorMapEditState(params) {
|
|
|
756
762
|
})
|
|
757
763
|
});
|
|
758
764
|
});
|
|
759
|
-
}, [currentCanvasId]);
|
|
765
|
+
}, [currentCanvasId, gridPersistNamespace]);
|
|
760
766
|
var handleEditPanelUpdate = useCallback(function (patch) {
|
|
761
767
|
if (!selectedId) return;
|
|
762
768
|
var bindingPatch = patch.dataBinding;
|
|
@@ -24,9 +24,9 @@ function _fetchShopFloorPlanByCodeResponse() {
|
|
|
24
24
|
case 0:
|
|
25
25
|
_context7.next = 2;
|
|
26
26
|
return http.get("/shop/schedule/floor-plan/code/".concat(encodeURIComponent(trimmedCode)), {}, _objectSpread({
|
|
27
|
-
fullResult: true
|
|
28
|
-
isShopApi: true
|
|
27
|
+
fullResult: true
|
|
29
28
|
}, (subscribe === null || subscribe === void 0 ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== '' ? _objectSpread({
|
|
29
|
+
isShopApi: true,
|
|
30
30
|
abort: true,
|
|
31
31
|
osServer: subscribe.osServer !== false,
|
|
32
32
|
subscriberId: subscribe.subscriberId
|
|
@@ -63,8 +63,7 @@ export function createShopFloorPlanClient(options) {
|
|
|
63
63
|
case 0:
|
|
64
64
|
_context4.next = 2;
|
|
65
65
|
return http.post('/shop/schedule/floor-plan', body, {
|
|
66
|
-
fullResult: true
|
|
67
|
-
isShopApi: true
|
|
66
|
+
fullResult: true
|
|
68
67
|
});
|
|
69
68
|
case 2:
|
|
70
69
|
res = _context4.sent;
|
|
@@ -266,8 +265,7 @@ export function createShopFloorPlanClient(options) {
|
|
|
266
265
|
case 0:
|
|
267
266
|
_context3.next = 2;
|
|
268
267
|
return http.put("/shop/schedule/floor-plan/".concat(id), body, {
|
|
269
|
-
fullResult: true
|
|
270
|
-
isShopApi: true
|
|
268
|
+
fullResult: true
|
|
271
269
|
});
|
|
272
270
|
case 2:
|
|
273
271
|
res = _context3.sent;
|
|
@@ -217,8 +217,10 @@ var RecordBoardGridView = function RecordBoardGridView(props) {
|
|
|
217
217
|
}) : rawScrollX;
|
|
218
218
|
if (scroll !== null && scroll !== void 0 && scroll.autoCalc && typeof ctx.scrollAreaHeight === 'number') {
|
|
219
219
|
var wrapHeight = ctx.scrollAreaHeight;
|
|
220
|
-
// 40
|
|
221
|
-
|
|
220
|
+
// 40:表头固定高;uniformSummaryHeight:同值列总结区高度(ResizeObserver 量出,仅 content-box,不含 padding/border);
|
|
221
|
+
// 25:仅在确实展示 uniformSummary 时补回 padding 12*2 + 1px border-bottom(见 Grid.less .pisell-record-board-uniform-summary)。
|
|
222
|
+
// 无总结时不应再多扣,否则 Table 不能撑满 scroll-body,会在 Table 与底部分页之间留白。
|
|
223
|
+
var reservedHeight = 40 + (uniformSummaryHeight > 0 ? uniformSummaryHeight + 25 : 0);
|
|
222
224
|
return {
|
|
223
225
|
x: scrollX !== null && scrollX !== void 0 ? scrollX : sumColumnWidths,
|
|
224
226
|
y: Math.max(wrapHeight - reservedHeight, 100),
|
|
@@ -5,7 +5,7 @@ import { Tag, Tooltip } from 'antd';
|
|
|
5
5
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
|
6
6
|
import { _formatAmount } from "../packages/utils";
|
|
7
7
|
import "./index.less";
|
|
8
|
-
import { locales
|
|
8
|
+
import { locales } from '@pisell/utils';
|
|
9
9
|
import { PREFIX } from "../../index";
|
|
10
10
|
var Footer = function Footer(_ref) {
|
|
11
11
|
var _item$_origin;
|
|
@@ -20,17 +20,6 @@ var Footer = function Footer(_ref) {
|
|
|
20
20
|
num = item.num,
|
|
21
21
|
discount_reason = item.discount_reason;
|
|
22
22
|
var weighingInfo = item === null || item === void 0 || (_item$_origin = item._origin) === null || _item$_origin === void 0 || (_item$_origin = _item$_origin._extend) === null || _item$_origin === void 0 ? void 0 : _item$_origin.weighing;
|
|
23
|
-
var formatFooterAmount = function formatFooterAmount(amount) {
|
|
24
|
-
var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
25
|
-
if (!weighingInfo) {
|
|
26
|
-
return _formatAmount(amount, symbol, precision);
|
|
27
|
-
}
|
|
28
|
-
return formatAmountWithOptions(amount, symbol, {
|
|
29
|
-
precision: precision,
|
|
30
|
-
hideDecimalForWholeNumbers: false
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
|
|
34
23
|
/**
|
|
35
24
|
* @title: 折扣
|
|
36
25
|
* @description:
|
|
@@ -76,7 +65,7 @@ var Footer = function Footer(_ref) {
|
|
|
76
65
|
className: classNames("".concat(PREFIX, "__footer-price-wrap"), weighingInfo && "".concat(PREFIX, "__footer-price-wrap--weighing"))
|
|
77
66
|
}, !isOnlyTotal ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
78
67
|
className: classNames("".concat(PREFIX, "__footer-price"))
|
|
79
|
-
}, /*#__PURE__*/React.createElement("span", null,
|
|
68
|
+
}, /*#__PURE__*/React.createElement("span", null, _formatAmount(total, symbol)), tip ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
80
69
|
title: locales.getText(tip),
|
|
81
70
|
destroyTooltipOnHide: true
|
|
82
71
|
}, /*#__PURE__*/React.createElement(QuestionCircleOutlined, {
|
|
@@ -88,6 +77,6 @@ var Footer = function Footer(_ref) {
|
|
|
88
77
|
className: "".concat(PREFIX, "__footer-total")
|
|
89
78
|
}, isDiscount ? /*#__PURE__*/React.createElement("span", {
|
|
90
79
|
className: "".concat(PREFIX, "__footer-origin-total")
|
|
91
|
-
},
|
|
80
|
+
}, _formatAmount(origin_total * num, symbol, 2)) : null, /*#__PURE__*/React.createElement("span", null, _formatAmount(total * num, symbol))))), renderDiscountReason());
|
|
92
81
|
};
|
|
93
82
|
export default Footer;
|
|
@@ -1,7 +1,3 @@
|
|
|
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
|
-
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; }
|
|
3
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
-
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); }
|
|
5
1
|
import React, { useMemo } from 'react';
|
|
6
2
|
import classNames from 'classnames';
|
|
7
3
|
import { image as imageAli, formatAmount } from '@pisell/utils';
|
|
@@ -58,14 +54,11 @@ var BasicInfo = function BasicInfo(props) {
|
|
|
58
54
|
var weighingInfo = dataSource === null || dataSource === void 0 || (_origin = dataSource._origin) === null || _origin === void 0 || (_origin = _origin._extend) === null || _origin === void 0 ? void 0 : _origin.weighing;
|
|
59
55
|
var hasWeighingInfo = Boolean(weighingInfo && (Number.isFinite(Number(weighingInfo === null || weighingInfo === void 0 ? void 0 : weighingInfo.weight)) || Number.isFinite(Number(weighingInfo === null || weighingInfo === void 0 ? void 0 : weighingInfo.net_weight))));
|
|
60
56
|
var hasProductMeta = hasSpecs || hasWeighingInfo;
|
|
61
|
-
var basicInfoClassName = classNames("".concat(PREFIX, "__basic-info"), _defineProperty({}, "".concat(PREFIX, "__basic-info--weighing"), hasWeighingInfo));
|
|
62
57
|
var renderProductMeta = function renderProductMeta() {
|
|
63
58
|
if (!hasProductMeta) {
|
|
64
59
|
return null;
|
|
65
60
|
}
|
|
66
|
-
return /*#__PURE__*/React.createElement(
|
|
67
|
-
className: classNames("".concat(PREFIX, "__product-meta"), _defineProperty({}, "".concat(PREFIX, "__product-meta--weighing"), hasWeighingInfo))
|
|
68
|
-
}, hasWeighingInfo ? /*#__PURE__*/React.createElement(Weighing, {
|
|
61
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, hasWeighingInfo ? /*#__PURE__*/React.createElement(Weighing, {
|
|
69
62
|
dataSource: weighingInfo,
|
|
70
63
|
symbol: symbol
|
|
71
64
|
}) : null, hasSpecs ? /*#__PURE__*/React.createElement(Specs, {
|
|
@@ -120,7 +113,7 @@ var BasicInfo = function BasicInfo(props) {
|
|
|
120
113
|
}, [isShowOriginalPrice, origin_total, total, hasSpecs, hasWeighingInfo]);
|
|
121
114
|
if (type === 'a5') {
|
|
122
115
|
return /*#__PURE__*/React.createElement("div", {
|
|
123
|
-
className:
|
|
116
|
+
className: "".concat(PREFIX, "__basic-info"),
|
|
124
117
|
style: style || {}
|
|
125
118
|
}, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
|
|
126
119
|
style: {
|
|
@@ -143,7 +136,7 @@ var BasicInfo = function BasicInfo(props) {
|
|
|
143
136
|
// 套餐列表中,如果没有规格,则显示总价
|
|
144
137
|
var _price = showAmount ? Number(price !== null && price !== void 0 ? price : 0) * num : price;
|
|
145
138
|
return /*#__PURE__*/React.createElement("div", {
|
|
146
|
-
className:
|
|
139
|
+
className: "".concat(PREFIX, "__basic-info"),
|
|
147
140
|
style: style || {}
|
|
148
141
|
}, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
|
|
149
142
|
style: {
|
|
@@ -164,7 +157,7 @@ var BasicInfo = function BasicInfo(props) {
|
|
|
164
157
|
}, formatAmount(origin_total, 2, symbol)) : null)), renderProductMeta()), renderEdit));
|
|
165
158
|
}
|
|
166
159
|
return /*#__PURE__*/React.createElement("div", {
|
|
167
|
-
className:
|
|
160
|
+
className: "".concat(PREFIX, "__basic-info"),
|
|
168
161
|
style: style || {}
|
|
169
162
|
}, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /*#__PURE__*/React.createElement("div", {
|
|
170
163
|
style: {
|
|
@@ -151,14 +151,6 @@
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
&--weighing {
|
|
155
|
-
.product-info .product-name {
|
|
156
|
-
font-size: 18px;
|
|
157
|
-
line-height: 1.3;
|
|
158
|
-
letter-spacing: -0.01em;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
154
|
.product-info-a9, .product-info-a5 {
|
|
163
155
|
display: flex;
|
|
164
156
|
justify-content: space-between;
|
|
@@ -14,7 +14,11 @@ var Specs = function Specs(props) {
|
|
|
14
14
|
product_option_string = dataSource.product_option_string,
|
|
15
15
|
symbol = dataSource.symbol;
|
|
16
16
|
var more = /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
|
|
17
|
+
style: {
|
|
18
|
+
color: '#667085',
|
|
19
|
+
fontSize: 10,
|
|
20
|
+
lineHeight: '10px'
|
|
21
|
+
}
|
|
18
22
|
}, locales.getText('pisell2.cart.sku-card.more'));
|
|
19
23
|
|
|
20
24
|
/**
|
|
@@ -8,13 +8,6 @@
|
|
|
8
8
|
word-wrap: break-word;
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
|
|
11
|
-
&-more {
|
|
12
|
-
color: #667085;
|
|
13
|
-
font-size: 10px;
|
|
14
|
-
line-height: 10px;
|
|
15
|
-
letter-spacing: normal;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
11
|
> div {
|
|
19
12
|
overflow: hidden;
|
|
20
13
|
text-overflow: ellipsis;
|
|
@@ -44,26 +37,9 @@
|
|
|
44
37
|
display: flex;
|
|
45
38
|
flex-direction: column;
|
|
46
39
|
width: 100%;
|
|
47
|
-
|
|
48
|
-
.pisell-cart-sku-card__product-meta--weighing & {
|
|
49
|
-
.pisell-lowcode-packages-product-bundle-option {
|
|
50
|
-
font-size: var(--pisell-cart-sku-card-physical-text-height, 4mm);
|
|
51
|
-
line-height: 1.3;
|
|
52
|
-
letter-spacing: -0.04em;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
40
|
.option-string-wrap {
|
|
57
41
|
.pisell-cart-sku-card__specs > div {
|
|
58
42
|
white-space: normal;
|
|
59
43
|
}
|
|
60
44
|
}
|
|
61
45
|
}
|
|
62
|
-
|
|
63
|
-
.pisell-cart-sku-card__product-meta--weighing {
|
|
64
|
-
.pisell-cart-sku-card__specs {
|
|
65
|
-
font-size: var(--pisell-cart-sku-card-physical-text-height, 4mm);
|
|
66
|
-
line-height: 1.3;
|
|
67
|
-
letter-spacing: -0.04em;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -35,7 +35,6 @@ var Weighing = function Weighing(props) {
|
|
|
35
35
|
var netLabel = locales.getText('pisell2.cart.sku-card.weighing.net');
|
|
36
36
|
var unitPriceText = "".concat(symbol || '').concat(unit_price !== null && unit_price !== void 0 ? unit_price : '0.00');
|
|
37
37
|
var manualPrefix = isManualWeight ? '(M) ' : '';
|
|
38
|
-
var netWeightText = "".concat(tareValue > 0 ? '' : manualPrefix).concat(formatWeight(net_weight, unit), " ").concat(netLabel);
|
|
39
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
40
39
|
className: "".concat(PREFIX, "__weighing")
|
|
41
40
|
}, tareValue > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -44,8 +43,6 @@ var Weighing = function Weighing(props) {
|
|
|
44
43
|
className: "".concat(PREFIX, "__weighing-row ").concat(PREFIX, "__weighing-row--large")
|
|
45
44
|
}, /*#__PURE__*/React.createElement("span", null, "".concat(tareLabel, ": ").concat(formatWeight(tare === null || tare === void 0 ? void 0 : tare.value, (tare === null || tare === void 0 ? void 0 : tare.unit) || unit)))) : null, /*#__PURE__*/React.createElement("div", {
|
|
46
45
|
className: "".concat(PREFIX, "__weighing-row ").concat(PREFIX, "__weighing-row--large")
|
|
47
|
-
}, /*#__PURE__*/React.createElement("span", null,
|
|
48
|
-
className: "".concat(PREFIX, "__weighing-unit-price")
|
|
49
|
-
}, "@ ".concat(unitPriceText, "/").concat(unitLabel))));
|
|
46
|
+
}, /*#__PURE__*/React.createElement("span", null, "".concat(tareValue > 0 ? '' : manualPrefix).concat(formatWeight(net_weight, unit), " ").concat(netLabel, " @ ").concat(unitPriceText, "/").concat(unitLabel))));
|
|
50
47
|
};
|
|
51
48
|
export default Weighing;
|
|
@@ -23,13 +23,10 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&--large {
|
|
26
|
-
font-size:
|
|
27
|
-
line-height:
|
|
28
|
-
letter-spacing: -0.04em;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 20px;
|
|
29
28
|
align-items: flex-start;
|
|
30
29
|
flex-wrap: wrap;
|
|
31
|
-
column-gap: 2px;
|
|
32
|
-
row-gap: 0;
|
|
33
30
|
overflow: visible;
|
|
34
31
|
white-space: normal;
|
|
35
32
|
text-overflow: clip;
|
|
@@ -43,9 +40,4 @@
|
|
|
43
40
|
}
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
|
-
|
|
47
|
-
&-unit-price {
|
|
48
|
-
flex-shrink: 0;
|
|
49
|
-
white-space: nowrap !important;
|
|
50
|
-
}
|
|
51
43
|
}
|