@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
|
@@ -29,16 +29,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/pisellFind/index.tsx
|
|
30
30
|
var pisellFind_exports = {};
|
|
31
31
|
__export(pisellFind_exports, {
|
|
32
|
-
PisellFind: () => PisellFind
|
|
32
|
+
PisellFind: () => PisellFind,
|
|
33
|
+
SCAN_RESULT_EVENT: () => SCAN_RESULT_EVENT
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(pisellFind_exports);
|
|
35
36
|
var import_react = __toESM(require("react"));
|
|
36
37
|
var import_utils = require("@pisell/utils");
|
|
37
38
|
var import_pisellLookup = require("../pisellLookup");
|
|
39
|
+
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
38
40
|
var import_locales = require("../../locales");
|
|
41
|
+
var SCAN_RESULT_EVENT = "nativeScanResult";
|
|
39
42
|
var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
43
|
+
var _a, _b;
|
|
40
44
|
const {
|
|
41
|
-
// 提取需要设置默认值的 Props
|
|
42
45
|
triggerType = "button",
|
|
43
46
|
buttonText = (() => {
|
|
44
47
|
const key = "pisell2.recordBoard.toolbar.find";
|
|
@@ -53,19 +56,90 @@ var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
|
53
56
|
showConfirmButton = false,
|
|
54
57
|
showHistory = true,
|
|
55
58
|
historyKey = "pisell_find_history",
|
|
56
|
-
|
|
59
|
+
enableScanner = false,
|
|
60
|
+
onScannerData,
|
|
61
|
+
onSearch,
|
|
57
62
|
...restProps
|
|
58
63
|
} = props;
|
|
64
|
+
const lookupRef = (0, import_react.useRef)(null);
|
|
65
|
+
const onScannerDataRef = (0, import_react.useRef)(onScannerData);
|
|
66
|
+
const onSearchRef = (0, import_react.useRef)(onSearch);
|
|
67
|
+
(0, import_react.useEffect)(() => {
|
|
68
|
+
onScannerDataRef.current = onScannerData;
|
|
69
|
+
}, [onScannerData]);
|
|
70
|
+
(0, import_react.useEffect)(() => {
|
|
71
|
+
onSearchRef.current = onSearch;
|
|
72
|
+
}, [onSearch]);
|
|
73
|
+
(0, import_react.useImperativeHandle)(
|
|
74
|
+
ref,
|
|
75
|
+
() => ({
|
|
76
|
+
open: () => {
|
|
77
|
+
var _a2;
|
|
78
|
+
return (_a2 = lookupRef.current) == null ? void 0 : _a2.open();
|
|
79
|
+
},
|
|
80
|
+
close: () => {
|
|
81
|
+
var _a2;
|
|
82
|
+
return (_a2 = lookupRef.current) == null ? void 0 : _a2.close();
|
|
83
|
+
},
|
|
84
|
+
getKeyword: () => {
|
|
85
|
+
var _a2;
|
|
86
|
+
return ((_a2 = lookupRef.current) == null ? void 0 : _a2.getKeyword()) ?? "";
|
|
87
|
+
},
|
|
88
|
+
setKeyword: (v) => {
|
|
89
|
+
var _a2;
|
|
90
|
+
return (_a2 = lookupRef.current) == null ? void 0 : _a2.setKeyword(v);
|
|
91
|
+
}
|
|
92
|
+
}),
|
|
93
|
+
[]
|
|
94
|
+
);
|
|
95
|
+
const engineContext = (0, import_useEngineContext.default)();
|
|
96
|
+
const getAppRef = (0, import_react.useRef)(void 0);
|
|
97
|
+
getAppRef.current = typeof ((_b = (_a = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) === "function" ? engineContext.appHelper.utils.getApp : void 0;
|
|
98
|
+
(0, import_react.useEffect)(() => {
|
|
99
|
+
if (!enableScanner) return void 0;
|
|
100
|
+
const getApp = getAppRef.current;
|
|
101
|
+
if (typeof getApp !== "function") return void 0;
|
|
102
|
+
const app = getApp();
|
|
103
|
+
const pubsub = app == null ? void 0 : app.pubsub;
|
|
104
|
+
if (!pubsub || typeof pubsub.subscribe !== "function") {
|
|
105
|
+
return void 0;
|
|
106
|
+
}
|
|
107
|
+
const onScan = (payload) => {
|
|
108
|
+
var _a2, _b2, _c;
|
|
109
|
+
const data = payload == null ? void 0 : payload.data;
|
|
110
|
+
if (typeof data !== "string" || data.length === 0) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
(_a2 = lookupRef.current) == null ? void 0 : _a2.setKeyword(data);
|
|
114
|
+
(_b2 = onSearchRef.current) == null ? void 0 : _b2.call(onSearchRef, data);
|
|
115
|
+
(_c = onScannerDataRef.current) == null ? void 0 : _c.call(onScannerDataRef, payload);
|
|
116
|
+
};
|
|
117
|
+
try {
|
|
118
|
+
pubsub.subscribe(SCAN_RESULT_EVENT, onScan);
|
|
119
|
+
} catch (e) {
|
|
120
|
+
console.warn("[PisellFind] subscribe scanner failed:", e);
|
|
121
|
+
return void 0;
|
|
122
|
+
}
|
|
123
|
+
return () => {
|
|
124
|
+
var _a2;
|
|
125
|
+
try {
|
|
126
|
+
(_a2 = pubsub.unsubscribe) == null ? void 0 : _a2.call(pubsub, SCAN_RESULT_EVENT, onScan);
|
|
127
|
+
} catch (e) {
|
|
128
|
+
console.warn("[PisellFind] unsubscribe scanner failed:", e);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}, [enableScanner]);
|
|
59
132
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
60
133
|
import_pisellLookup.PisellLookup,
|
|
61
134
|
{
|
|
62
|
-
ref,
|
|
135
|
+
ref: lookupRef,
|
|
63
136
|
triggerType,
|
|
64
137
|
buttonText,
|
|
65
138
|
placeholder,
|
|
66
139
|
showConfirmButton,
|
|
67
140
|
showHistory,
|
|
68
141
|
historyKey,
|
|
142
|
+
onSearch,
|
|
69
143
|
...restProps
|
|
70
144
|
}
|
|
71
145
|
);
|
|
@@ -73,5 +147,6 @@ var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
|
73
147
|
PisellFind.displayName = "PisellFind";
|
|
74
148
|
// Annotate the CommonJS export names for ESM import in node:
|
|
75
149
|
0 && (module.exports = {
|
|
76
|
-
PisellFind
|
|
150
|
+
PisellFind,
|
|
151
|
+
SCAN_RESULT_EVENT
|
|
77
152
|
});
|
|
@@ -142,7 +142,12 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
142
142
|
layoutPrefix: import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX,
|
|
143
143
|
contentOffsetRef,
|
|
144
144
|
showDataSourceRecordFormBlock,
|
|
145
|
-
focusViewportOnBoundsRef
|
|
145
|
+
focusViewportOnBoundsRef,
|
|
146
|
+
/**
|
|
147
|
+
* 网格显隐缓存与视口持久化共用同一命名空间,按业务/门店/平面图隔离;
|
|
148
|
+
* 与视口 `viewportPersistKey` 同源,避免换门店/平面图读到别家的网格偏好。
|
|
149
|
+
*/
|
|
150
|
+
gridPersistNamespace: viewportPersistNamespace
|
|
146
151
|
});
|
|
147
152
|
const {
|
|
148
153
|
config,
|
|
@@ -55,12 +55,12 @@ var I18N_PLACEMENT_FALLBACK_IMAGE = "pisell-floor-map-layout.placement.fallback-
|
|
|
55
55
|
var I18N_PLACEMENT_ZONE_NAME = "pisell-floor-map-layout.zone.unnamed";
|
|
56
56
|
var ZONE_PLACE_DEFAULT = { width: 240, height: 160 };
|
|
57
57
|
var GRID_VIS_STORAGE_PREFIX = "pisell-floor-map-layout.grid-visible";
|
|
58
|
-
function getGridVisStorageKey(canvasId) {
|
|
59
|
-
return `${GRID_VIS_STORAGE_PREFIX}:${canvasId}`;
|
|
58
|
+
function getGridVisStorageKey(canvasId, namespace) {
|
|
59
|
+
return namespace ? `${GRID_VIS_STORAGE_PREFIX}:${namespace}:${canvasId}` : `${GRID_VIS_STORAGE_PREFIX}:${canvasId}`;
|
|
60
60
|
}
|
|
61
|
-
function readStoredGridVisible(canvasId) {
|
|
61
|
+
function readStoredGridVisible(canvasId, namespace) {
|
|
62
62
|
try {
|
|
63
|
-
const raw = localStorage.getItem(getGridVisStorageKey(canvasId));
|
|
63
|
+
const raw = localStorage.getItem(getGridVisStorageKey(canvasId, namespace));
|
|
64
64
|
if (raw == null) return null;
|
|
65
65
|
if (raw === "1") return true;
|
|
66
66
|
if (raw === "0") return false;
|
|
@@ -69,18 +69,21 @@ function readStoredGridVisible(canvasId) {
|
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function writeStoredGridVisible(canvasId, visible) {
|
|
72
|
+
function writeStoredGridVisible(canvasId, visible, namespace) {
|
|
73
73
|
try {
|
|
74
|
-
localStorage.setItem(
|
|
74
|
+
localStorage.setItem(
|
|
75
|
+
getGridVisStorageKey(canvasId, namespace),
|
|
76
|
+
visible ? "1" : "0"
|
|
77
|
+
);
|
|
75
78
|
} catch {
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
|
-
function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp) {
|
|
81
|
+
function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, namespace) {
|
|
79
82
|
const baseConfig = (0, import_floorMapViewConfigDiff.normalizeFloorMapViewConfigFromProp)(floorMapConfigProp);
|
|
80
83
|
return {
|
|
81
84
|
...baseConfig,
|
|
82
85
|
canvases: baseConfig.canvases.map((canvas) => {
|
|
83
|
-
const stored = readStoredGridVisible(canvas.id);
|
|
86
|
+
const stored = readStoredGridVisible(canvas.id, namespace);
|
|
84
87
|
if (stored == null) return canvas;
|
|
85
88
|
return {
|
|
86
89
|
...canvas,
|
|
@@ -174,7 +177,8 @@ function useFloorMapEditState(params) {
|
|
|
174
177
|
layoutPrefix,
|
|
175
178
|
contentOffsetRef,
|
|
176
179
|
showDataSourceRecordFormBlock,
|
|
177
|
-
focusViewportOnBoundsRef
|
|
180
|
+
focusViewportOnBoundsRef,
|
|
181
|
+
gridPersistNamespace
|
|
178
182
|
} = params;
|
|
179
183
|
const scheduleFocusOnPlacements = (0, import_react.useCallback)(
|
|
180
184
|
(positions, sizes) => {
|
|
@@ -210,7 +214,10 @@ function useFloorMapEditState(params) {
|
|
|
210
214
|
lastSyncedPropConfigRef.current = null;
|
|
211
215
|
return;
|
|
212
216
|
}
|
|
213
|
-
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
217
|
+
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
218
|
+
floorMapConfigProp,
|
|
219
|
+
gridPersistNamespace
|
|
220
|
+
);
|
|
214
221
|
const lastSynced = lastSyncedPropConfigRef.current;
|
|
215
222
|
if (draftConfig && lastSynced != null) {
|
|
216
223
|
const propMatchesDraft = (0, import_floorMapViewConfigDiff.floorMapViewConfigsEqual)(
|
|
@@ -237,12 +244,21 @@ function useFloorMapEditState(params) {
|
|
|
237
244
|
return prev && enabled.some((c) => c.id === prev) ? prev : ((_a2 = enabled[0]) == null ? void 0 : _a2.id) ?? null;
|
|
238
245
|
}
|
|
239
246
|
);
|
|
240
|
-
}, [floorMapConfigProp]);
|
|
247
|
+
}, [floorMapConfigProp, gridPersistNamespace]);
|
|
241
248
|
const isLayoutDirty = (0, import_react.useMemo)(() => {
|
|
242
249
|
if (!isFloorMapView || !draftConfig || !floorMapConfigProp) return false;
|
|
243
|
-
const baseline = savedBaselineConfig ?? normalizeFloorMapConfigWithStoredGrid(
|
|
250
|
+
const baseline = savedBaselineConfig ?? normalizeFloorMapConfigWithStoredGrid(
|
|
251
|
+
floorMapConfigProp,
|
|
252
|
+
gridPersistNamespace
|
|
253
|
+
);
|
|
244
254
|
return !(0, import_floorMapViewConfigDiff.floorMapViewConfigsEqual)(draftConfig, baseline);
|
|
245
|
-
}, [
|
|
255
|
+
}, [
|
|
256
|
+
isFloorMapView,
|
|
257
|
+
draftConfig,
|
|
258
|
+
floorMapConfigProp,
|
|
259
|
+
savedBaselineConfig,
|
|
260
|
+
gridPersistNamespace
|
|
261
|
+
]);
|
|
246
262
|
(0, import_react.useEffect)(() => {
|
|
247
263
|
if (!selectedId || !draftConfig) return;
|
|
248
264
|
const exists = (draftConfig.sceneElements ?? []).some(
|
|
@@ -672,11 +688,14 @@ function useFloorMapEditState(params) {
|
|
|
672
688
|
setSavedBaselineConfig(null);
|
|
673
689
|
return;
|
|
674
690
|
}
|
|
675
|
-
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
691
|
+
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
692
|
+
floorMapConfigProp,
|
|
693
|
+
gridPersistNamespace
|
|
694
|
+
);
|
|
676
695
|
replaceDraft(nextConfig);
|
|
677
696
|
lastSyncedPropConfigRef.current = nextConfig;
|
|
678
697
|
setSavedBaselineConfig(null);
|
|
679
|
-
}, [floorMapConfigProp, replaceDraft]);
|
|
698
|
+
}, [floorMapConfigProp, replaceDraft, gridPersistNamespace]);
|
|
680
699
|
const toggleDraftCanvasShowGrid = (0, import_react.useCallback)(() => {
|
|
681
700
|
commitDraft((prev) => {
|
|
682
701
|
if (!prev || !currentCanvasId) return prev;
|
|
@@ -686,7 +705,7 @@ function useFloorMapEditState(params) {
|
|
|
686
705
|
var _a2;
|
|
687
706
|
if (c.id !== currentCanvasId) return c;
|
|
688
707
|
const nextShow = !Boolean((_a2 = c.mapLayer) == null ? void 0 : _a2.showGrid);
|
|
689
|
-
writeStoredGridVisible(currentCanvasId, nextShow);
|
|
708
|
+
writeStoredGridVisible(currentCanvasId, nextShow, gridPersistNamespace);
|
|
690
709
|
return {
|
|
691
710
|
...c,
|
|
692
711
|
mapLayer: { ...c.mapLayer, showGrid: nextShow }
|
|
@@ -694,7 +713,7 @@ function useFloorMapEditState(params) {
|
|
|
694
713
|
})
|
|
695
714
|
};
|
|
696
715
|
});
|
|
697
|
-
}, [currentCanvasId]);
|
|
716
|
+
}, [currentCanvasId, gridPersistNamespace]);
|
|
698
717
|
const handleEditPanelUpdate = (0, import_react.useCallback)(
|
|
699
718
|
(patch) => {
|
|
700
719
|
var _a2;
|
|
@@ -32,8 +32,8 @@ async function fetchShopFloorPlanByCodeResponse(http, trimmedCode, subscribe) {
|
|
|
32
32
|
{},
|
|
33
33
|
{
|
|
34
34
|
fullResult: true,
|
|
35
|
-
isShopApi: true,
|
|
36
35
|
...(subscribe == null ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== "" ? {
|
|
36
|
+
isShopApi: true,
|
|
37
37
|
abort: true,
|
|
38
38
|
osServer: subscribe.osServer !== false,
|
|
39
39
|
subscriberId: subscribe.subscriberId,
|
|
@@ -49,8 +49,7 @@ function createShopFloorPlanClient(options) {
|
|
|
49
49
|
async function postShopFloorPlan(body) {
|
|
50
50
|
var _a;
|
|
51
51
|
const res = await http.post("/shop/schedule/floor-plan", body, {
|
|
52
|
-
fullResult: true
|
|
53
|
-
isShopApi: true
|
|
52
|
+
fullResult: true
|
|
54
53
|
});
|
|
55
54
|
const ok = (res == null ? void 0 : res.code) === 200 || (res == null ? void 0 : res.status) === true || ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status) === true;
|
|
56
55
|
if (ok) {
|
|
@@ -136,8 +135,7 @@ function createShopFloorPlanClient(options) {
|
|
|
136
135
|
`/shop/schedule/floor-plan/${id}`,
|
|
137
136
|
body,
|
|
138
137
|
{
|
|
139
|
-
fullResult: true
|
|
140
|
-
isShopApi: true
|
|
138
|
+
fullResult: true
|
|
141
139
|
}
|
|
142
140
|
);
|
|
143
141
|
const ok = (res == null ? void 0 : res.code) === 200 || (res == null ? void 0 : res.status) === true || ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status) === true;
|
|
@@ -238,7 +238,7 @@ var RecordBoardGridView = (props) => {
|
|
|
238
238
|
}) : rawScrollX;
|
|
239
239
|
if ((scroll == null ? void 0 : scroll.autoCalc) && typeof ctx.scrollAreaHeight === "number") {
|
|
240
240
|
const wrapHeight = ctx.scrollAreaHeight;
|
|
241
|
-
const reservedHeight = 40 + uniformSummaryHeight +
|
|
241
|
+
const reservedHeight = 40 + (uniformSummaryHeight > 0 ? uniformSummaryHeight + 25 : 0);
|
|
242
242
|
return {
|
|
243
243
|
x: scrollX ?? sumColumnWidths,
|
|
244
244
|
y: Math.max(wrapHeight - reservedHeight, 100),
|
|
@@ -45,15 +45,6 @@ var Footer = ({ item, hideDivider, type, isOnlyTotal }) => {
|
|
|
45
45
|
var _a, _b;
|
|
46
46
|
const { total, origin_total, symbol, tip, num, discount_reason } = item;
|
|
47
47
|
const weighingInfo = (_b = (_a = item == null ? void 0 : item._origin) == null ? void 0 : _a._extend) == null ? void 0 : _b.weighing;
|
|
48
|
-
const formatFooterAmount = (amount, precision = 2) => {
|
|
49
|
-
if (!weighingInfo) {
|
|
50
|
-
return (0, import_utils._formatAmount)(amount, symbol, precision);
|
|
51
|
-
}
|
|
52
|
-
return (0, import_utils2.formatAmountWithOptions)(amount, symbol, {
|
|
53
|
-
precision,
|
|
54
|
-
hideDecimalForWholeNumbers: false
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
48
|
const isDiscount = (0, import_react.useMemo)(() => {
|
|
58
49
|
if (!origin_total) return false;
|
|
59
50
|
return Number(total) != Number(origin_total);
|
|
@@ -88,13 +79,13 @@ var Footer = ({ item, hideDivider, type, isOnlyTotal }) => {
|
|
|
88
79
|
weighingInfo && `${import__.PREFIX}__footer-price-wrap--weighing`
|
|
89
80
|
)
|
|
90
81
|
},
|
|
91
|
-
!isOnlyTotal ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${import__.PREFIX}__footer-price`) }, /* @__PURE__ */ import_react.default.createElement("span", null,
|
|
82
|
+
!isOnlyTotal ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${import__.PREFIX}__footer-price`) }, /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_utils._formatAmount)(total, symbol)), tip ? /* @__PURE__ */ import_react.default.createElement(import_antd2.Tooltip, { title: import_utils2.locales.getText(tip), destroyTooltipOnHide: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
92
83
|
import_icons.QuestionCircleOutlined,
|
|
93
84
|
{
|
|
94
85
|
style: { fontSize: "16px", color: "#1570ef" }
|
|
95
86
|
}
|
|
96
87
|
)) : null), /* @__PURE__ */ import_react.default.createElement("span", null, `×${num}`)) : null,
|
|
97
|
-
/* @__PURE__ */ import_react.default.createElement("span", { className: `${import__.PREFIX}__footer-total` }, isDiscount ? /* @__PURE__ */ import_react.default.createElement("span", { className: `${import__.PREFIX}__footer-origin-total` },
|
|
88
|
+
/* @__PURE__ */ import_react.default.createElement("span", { className: `${import__.PREFIX}__footer-total` }, isDiscount ? /* @__PURE__ */ import_react.default.createElement("span", { className: `${import__.PREFIX}__footer-origin-total` }, (0, import_utils._formatAmount)(origin_total * num, symbol, 2)) : null, /* @__PURE__ */ import_react.default.createElement("span", null, (0, import_utils._formatAmount)(total * num, symbol)))
|
|
98
89
|
)
|
|
99
90
|
), renderDiscountReason());
|
|
100
91
|
};
|
|
@@ -89,30 +89,18 @@ var BasicInfo = (props) => {
|
|
|
89
89
|
weighingInfo && (Number.isFinite(Number(weighingInfo == null ? void 0 : weighingInfo.weight)) || Number.isFinite(Number(weighingInfo == null ? void 0 : weighingInfo.net_weight)))
|
|
90
90
|
);
|
|
91
91
|
const hasProductMeta = hasSpecs || hasWeighingInfo;
|
|
92
|
-
const basicInfoClassName = (0, import_classnames.default)(`${import__.PREFIX}__basic-info`, {
|
|
93
|
-
[`${import__.PREFIX}__basic-info--weighing`]: hasWeighingInfo
|
|
94
|
-
});
|
|
95
92
|
const renderProductMeta = () => {
|
|
96
93
|
if (!hasProductMeta) {
|
|
97
94
|
return null;
|
|
98
95
|
}
|
|
99
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
100
|
-
|
|
96
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, hasWeighingInfo ? /* @__PURE__ */ import_react.default.createElement(import_weighing.default, { dataSource: weighingInfo, symbol }) : null, hasSpecs ? /* @__PURE__ */ import_react.default.createElement(
|
|
97
|
+
import_specs.default,
|
|
101
98
|
{
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
hasSpecs ? /* @__PURE__ */ import_react.default.createElement(
|
|
108
|
-
import_specs.default,
|
|
109
|
-
{
|
|
110
|
-
dataSource,
|
|
111
|
-
maxSpecsCount,
|
|
112
|
-
type
|
|
113
|
-
}
|
|
114
|
-
) : null
|
|
115
|
-
);
|
|
99
|
+
dataSource,
|
|
100
|
+
maxSpecsCount,
|
|
101
|
+
type
|
|
102
|
+
}
|
|
103
|
+
) : null);
|
|
116
104
|
};
|
|
117
105
|
const renderProductPrice = () => {
|
|
118
106
|
if (weighingInfo) {
|
|
@@ -147,7 +135,7 @@ var BasicInfo = (props) => {
|
|
|
147
135
|
return _originalTotal !== 0 && _originalTotal != _total;
|
|
148
136
|
}, [isShowOriginalPrice, origin_total, total, hasSpecs, hasWeighingInfo]);
|
|
149
137
|
if (type === "a5") {
|
|
150
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
138
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info product-info-a5` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-basic-info-wrap` }, /* @__PURE__ */ import_react.default.createElement(
|
|
151
139
|
"div",
|
|
152
140
|
{
|
|
153
141
|
className: `product-name ${renderEdit ? "product-name-edit" : ""}`
|
|
@@ -158,7 +146,7 @@ var BasicInfo = (props) => {
|
|
|
158
146
|
if (type === "a9") {
|
|
159
147
|
const showAmount = isBundle && !showFooter;
|
|
160
148
|
const _price = showAmount ? Number(price ?? 0) * num : price;
|
|
161
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
149
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info product-info-a9` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-basic-info-wrap` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-basic-info ${isBundle ? "row" : ""}` }, /* @__PURE__ */ import_react.default.createElement(
|
|
162
150
|
"div",
|
|
163
151
|
{
|
|
164
152
|
className: `product-name ${renderEdit ? "product-name-edit" : ""}`
|
|
@@ -166,6 +154,6 @@ var BasicInfo = (props) => {
|
|
|
166
154
|
name
|
|
167
155
|
), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, /* @__PURE__ */ import_react.default.createElement("span", null, renderProductPrice()), _isShowOriginalPrice ? /* @__PURE__ */ import_react.default.createElement("span", { className: `original-price` }, (0, import_utils.formatAmount)(origin_total, 2, symbol)) : null)), renderProductMeta()), renderEdit));
|
|
168
156
|
}
|
|
169
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className:
|
|
157
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 20 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), hasProductMeta ? renderProductMeta() : /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, renderProductPrice())), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-amount` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `total-amont` }, (0, import_utils.formatAmount)(total * num - (totalDifference ?? 0), 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `origin-amount` }, (0, import_utils.formatAmount)(origin_total * num, 2, symbol)) : null));
|
|
170
158
|
};
|
|
171
159
|
var basicInfo_default = BasicInfo;
|
|
@@ -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;
|
|
@@ -40,7 +40,17 @@ var import_options = __toESM(require("../../../components/Packages/components/op
|
|
|
40
40
|
var Specs = (props) => {
|
|
41
41
|
const { dataSource = {}, maxSpecsCount = 1, type } = props;
|
|
42
42
|
const { bundle, options, product_option_string, symbol } = dataSource;
|
|
43
|
-
const more = /* @__PURE__ */ import_react.default.createElement(
|
|
43
|
+
const more = /* @__PURE__ */ import_react.default.createElement(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
style: {
|
|
47
|
+
color: "#667085",
|
|
48
|
+
fontSize: 10,
|
|
49
|
+
lineHeight: "10px"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
import_utils.locales.getText("pisell2.cart.sku-card.more")
|
|
53
|
+
);
|
|
44
54
|
const renderOptionString = () => {
|
|
45
55
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__specs` }, /* @__PURE__ */ import_react.default.createElement("div", null, product_option_string));
|
|
46
56
|
};
|
|
@@ -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
|
-
}
|
|
@@ -69,10 +69,6 @@ var Weighing = (props) => {
|
|
|
69
69
|
const netLabel = import_utils.locales.getText("pisell2.cart.sku-card.weighing.net");
|
|
70
70
|
const unitPriceText = `${symbol || ""}${unit_price ?? "0.00"}`;
|
|
71
71
|
const manualPrefix = isManualWeight ? "(M) " : "";
|
|
72
|
-
const netWeightText = `${tareValue > 0 ? "" : manualPrefix}${formatWeight(
|
|
73
|
-
net_weight,
|
|
74
|
-
unit
|
|
75
|
-
)} ${netLabel}`;
|
|
76
72
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__weighing` }, tareValue > 0 ? /* @__PURE__ */ import_react.default.createElement(
|
|
77
73
|
"div",
|
|
78
74
|
{
|
|
@@ -96,8 +92,10 @@ var Weighing = (props) => {
|
|
|
96
92
|
{
|
|
97
93
|
className: `${import__.PREFIX}__weighing-row ${import__.PREFIX}__weighing-row--large`
|
|
98
94
|
},
|
|
99
|
-
/* @__PURE__ */ import_react.default.createElement("span", null,
|
|
100
|
-
|
|
95
|
+
/* @__PURE__ */ import_react.default.createElement("span", null, `${tareValue > 0 ? "" : manualPrefix}${formatWeight(
|
|
96
|
+
net_weight,
|
|
97
|
+
unit
|
|
98
|
+
)} ${netLabel} @ ${unitPriceText}/${unitLabel}`)
|
|
101
99
|
));
|
|
102
100
|
};
|
|
103
101
|
var weighing_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
|
}
|