@pisell/materials 6.11.107 → 6.11.109
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/Pagination/index.d.ts +0 -1
- package/es/components/PisellTabbar/constants.d.ts +47 -0
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/es/components/PisellTabbar/types.d.ts +90 -0
- package/es/components/PisellTabbar/utils/index.d.ts +69 -0
- package/es/components/SafeAreaTop/index.d.ts +5 -0
- package/es/components/SafeAreaTop/types.d.ts +9 -0
- package/es/components/appVersionControl/index.d.ts +0 -1
- package/es/components/buttonGroupPreview/index.js +2 -1
- package/es/components/cardPro/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/es/components/filter/components/Dropdown/types.d.ts +15 -0
- package/es/components/filter/components/FilterButton/types.d.ts +29 -0
- package/es/components/filter/types.d.ts +52 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisell-config-provider/context.d.ts +22 -0
- package/es/components/pisellAdjustPrice/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +22 -0
- package/es/components/pisellFilter/index.d.ts +0 -1
- package/es/components/pisellFilter/type.d.ts +7 -0
- package/es/components/pisellFind/index.d.ts +34 -12
- package/es/components/pisellFind/index.js +114 -18
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +6 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +24 -18
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +4 -6
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +4 -2
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/es/components/pisellShellFrame/types.d.ts +62 -0
- package/es/components/pisellToast/squareToast/index.d.ts +15 -0
- package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
- 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/Gift/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
- 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/discountReason/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.less +4 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- 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/swipeAction/index.d.ts +46 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- 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/cartSkuCard/locales.d.ts +203 -0
- package/es/components/productCard/components/Action/index.d.ts +3 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/es/components/productCard/components/Header/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +3 -1
- package/es/components/productCard/lineItem/BookingLineItem.js +39 -21
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
- 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/components/TimeRange/index.d.ts +0 -1
- 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/es/components/productCard/lineItem/locales.d.ts +23 -0
- package/es/components/productCard/lineItem/types.d.ts +4 -0
- package/es/components/productCard/locales.d.ts +138 -0
- package/es/components/productCard/types.d.ts +1 -0
- package/es/components/select/index.d.ts +9 -0
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/es/hooks/useResponsive.d.ts +1 -1
- package/es/locales/en-US.d.ts +565 -0
- package/es/locales/ja.d.ts +533 -0
- package/es/locales/pt.d.ts +533 -0
- package/es/locales/zh-CN.d.ts +560 -0
- package/es/locales/zh-TW.d.ts +560 -0
- package/lib/components/Pagination/index.d.ts +0 -1
- package/lib/components/PisellTabbar/constants.d.ts +47 -0
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/lib/components/PisellTabbar/types.d.ts +90 -0
- package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
- package/lib/components/SafeAreaTop/index.d.ts +5 -0
- package/lib/components/SafeAreaTop/types.d.ts +9 -0
- package/lib/components/appVersionControl/index.d.ts +0 -1
- package/lib/components/buttonGroupPreview/index.js +2 -1
- package/lib/components/cardPro/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +15 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +29 -0
- package/lib/components/filter/types.d.ts +52 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisell-config-provider/context.d.ts +22 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
- package/lib/components/pisellFilter/index.d.ts +0 -1
- package/lib/components/pisellFilter/type.d.ts +7 -0
- package/lib/components/pisellFind/index.d.ts +34 -12
- package/lib/components/pisellFind/index.js +80 -5
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +6 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +36 -17
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +3 -5
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +1 -1
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/lib/components/pisellShellFrame/types.d.ts +62 -0
- package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
- package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
- 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/Gift/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
- 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/discountReason/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +4 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- 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/swipeAction/index.d.ts +46 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- 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/cartSkuCard/locales.d.ts +203 -0
- package/lib/components/productCard/components/Action/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +3 -1
- package/lib/components/productCard/lineItem/BookingLineItem.js +40 -48
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
- 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/components/TimeRange/index.d.ts +0 -1
- 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/lib/components/productCard/lineItem/locales.d.ts +23 -0
- package/lib/components/productCard/lineItem/types.d.ts +4 -0
- package/lib/components/productCard/locales.d.ts +138 -0
- package/lib/components/productCard/types.d.ts +1 -0
- package/lib/components/select/index.d.ts +9 -0
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/lib/hooks/useResponsive.d.ts +1 -1
- package/lib/locales/en-US.d.ts +565 -0
- package/lib/locales/ja.d.ts +533 -0
- package/lib/locales/pt.d.ts +533 -0
- package/lib/locales/zh-CN.d.ts +560 -0
- package/lib/locales/zh-TW.d.ts +560 -0
- package/lowcode/pisell-find/meta.ts +19 -0
- package/package.json +1 -1
- 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/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/drag-sort-tree/index.d.ts +0 -4
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/es/components/pisellGridPro/index.d.ts +0 -4
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- 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/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/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/lib/components/pisellGridPro/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
|
@@ -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;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -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
|
-
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare type NativeProps<S extends string = never> = {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
6
|
+
};
|
|
7
|
+
declare type PropagationEvent = 'click';
|
|
8
|
+
import './index.less';
|
|
9
|
+
declare type SideType = 'left' | 'right';
|
|
10
|
+
export declare type SwipeActionRef = {
|
|
11
|
+
close: () => void;
|
|
12
|
+
show: (side?: SideType) => void;
|
|
13
|
+
};
|
|
14
|
+
declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
|
+
export declare type Action = {
|
|
16
|
+
key: string | number;
|
|
17
|
+
text: ReactNode;
|
|
18
|
+
color?: ActionColor | string;
|
|
19
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
};
|
|
22
|
+
export declare type SwipeActionProps = {
|
|
23
|
+
rightActions?: Action[];
|
|
24
|
+
leftActions?: Action[];
|
|
25
|
+
onAction?: (action: Action, e: React.MouseEvent) => void;
|
|
26
|
+
closeOnTouchOutside?: boolean;
|
|
27
|
+
closeOnAction?: boolean;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
stopPropagation?: PropagationEvent[];
|
|
30
|
+
onActionsReveal?: (side: SideType) => void;
|
|
31
|
+
onClose?: () => void;
|
|
32
|
+
escapeDom?: string;
|
|
33
|
+
} & NativeProps<'--background'>;
|
|
34
|
+
export declare const SwipeAction: React.ForwardRefExoticComponent<{
|
|
35
|
+
rightActions?: Action[] | undefined;
|
|
36
|
+
leftActions?: Action[] | undefined;
|
|
37
|
+
onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
|
|
38
|
+
closeOnTouchOutside?: boolean | undefined;
|
|
39
|
+
closeOnAction?: boolean | undefined;
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
stopPropagation?: "click"[] | undefined;
|
|
42
|
+
onActionsReveal?: ((side: SideType) => void) | undefined;
|
|
43
|
+
onClose?: (() => void) | undefined;
|
|
44
|
+
escapeDom?: string | undefined;
|
|
45
|
+
} & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
|
|
46
|
+
export {};
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.discount.reason': string;
|
|
4
|
+
'pisell2.cart.sku-card.more': string;
|
|
5
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
6
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
7
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
8
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
9
|
+
'pisell2.cart.sku-card.weighing.gross': string;
|
|
10
|
+
'pisell2.cart.sku-card.weighing.manual': string;
|
|
11
|
+
'pisell2.cart.sku-card.weighing.tare': string;
|
|
12
|
+
'pisell2.cart.sku-card.weighing.net': string;
|
|
13
|
+
'pisell2.cart.sku-card.weighing.noTare': string;
|
|
14
|
+
'pisell2.cart.sku-card.gift.title': string;
|
|
15
|
+
'pisell2.cart.sku-card.gift.select.title': string;
|
|
16
|
+
'pisell2.cart.sku-card.gift.total': (num: number) => string;
|
|
17
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
18
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
19
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
20
|
+
'pisell2.product.card.discount.note': string;
|
|
21
|
+
'pisell2.product.card.edit': string;
|
|
22
|
+
'pisell2.product.card.discount.add.note': string;
|
|
23
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
24
|
+
'pisell2.product.card.confirm': string;
|
|
25
|
+
'pisell2.product.card.cancel': string;
|
|
26
|
+
'pisell2.product.card.note.pla': string;
|
|
27
|
+
'pisell2.product.card.items.package': string;
|
|
28
|
+
'pisell2.product.card.view-all': string;
|
|
29
|
+
'pisell2.product.card.view-less': string;
|
|
30
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
31
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
32
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
33
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
34
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
35
|
+
'pisell2.product.card.sales': string;
|
|
36
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
37
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
38
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
39
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
40
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
41
|
+
};
|
|
42
|
+
'zh-CN': {
|
|
43
|
+
'pisell2.product.card.discount.reason': string;
|
|
44
|
+
'pisell2.cart.sku-card.more': string;
|
|
45
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
46
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
47
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
48
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
49
|
+
'pisell2.cart.sku-card.weighing.gross': string;
|
|
50
|
+
'pisell2.cart.sku-card.weighing.manual': string;
|
|
51
|
+
'pisell2.cart.sku-card.weighing.tare': string;
|
|
52
|
+
'pisell2.cart.sku-card.weighing.net': string;
|
|
53
|
+
'pisell2.cart.sku-card.weighing.noTare': string;
|
|
54
|
+
'pisell2.cart.sku-card.gift.title': string;
|
|
55
|
+
'pisell2.cart.sku-card.gift.select.title': string;
|
|
56
|
+
'pisell2.cart.sku-card.gift.total': (num: number) => string;
|
|
57
|
+
'pisell2.product.card.edit': string;
|
|
58
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
59
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
60
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
61
|
+
'pisell2.product.card.discount.note': string;
|
|
62
|
+
'pisell2.product.card.discount.add.note': string;
|
|
63
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
64
|
+
'pisell2.product.card.confirm': string;
|
|
65
|
+
'pisell2.product.card.cancel': string;
|
|
66
|
+
'pisell2.product.card.note.pla': string;
|
|
67
|
+
'pisell2.product.card.items.package': string;
|
|
68
|
+
'pisell2.product.card.view-all': string;
|
|
69
|
+
'pisell2.product.card.view-less': string;
|
|
70
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
71
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
72
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
73
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
74
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
75
|
+
'pisell2.product.card.sales': string;
|
|
76
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
77
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
78
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
79
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
80
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
81
|
+
};
|
|
82
|
+
'zh-HK': {
|
|
83
|
+
'pisell2.product.card.discount.reason': string;
|
|
84
|
+
'pisell2.cart.sku-card.more': string;
|
|
85
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
86
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
87
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
88
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
89
|
+
'pisell2.cart.sku-card.weighing.gross': string;
|
|
90
|
+
'pisell2.cart.sku-card.weighing.manual': string;
|
|
91
|
+
'pisell2.cart.sku-card.weighing.tare': string;
|
|
92
|
+
'pisell2.cart.sku-card.weighing.net': string;
|
|
93
|
+
'pisell2.cart.sku-card.weighing.noTare': string;
|
|
94
|
+
'pisell2.cart.sku-card.gift.title': string;
|
|
95
|
+
'pisell2.cart.sku-card.gift.select.title': string;
|
|
96
|
+
'pisell2.cart.sku-card.gift.total': (num: number) => string;
|
|
97
|
+
'pisell2.product.card.edit': string;
|
|
98
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
99
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
100
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
101
|
+
'pisell2.product.card.discount.note': string;
|
|
102
|
+
'pisell2.product.card.discount.add.note': string;
|
|
103
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
104
|
+
'pisell2.product.card.confirm': string;
|
|
105
|
+
'pisell2.product.card.cancel': string;
|
|
106
|
+
'pisell2.product.card.note.pla': string;
|
|
107
|
+
'pisell2.product.card.items.package': string;
|
|
108
|
+
'pisell2.product.card.view-all': string;
|
|
109
|
+
'pisell2.product.card.view-less': string;
|
|
110
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
111
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
112
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
113
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
114
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
115
|
+
'pisell2.product.card.sales': string;
|
|
116
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
117
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
118
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
119
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
120
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
121
|
+
};
|
|
122
|
+
ja: {
|
|
123
|
+
'pisell2.product.card.discount.reason': string;
|
|
124
|
+
'pisell2.cart.sku-card.more': string;
|
|
125
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
126
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
127
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
128
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
129
|
+
'pisell2.cart.sku-card.weighing.gross': string;
|
|
130
|
+
'pisell2.cart.sku-card.weighing.manual': string;
|
|
131
|
+
'pisell2.cart.sku-card.weighing.tare': string;
|
|
132
|
+
'pisell2.cart.sku-card.weighing.net': string;
|
|
133
|
+
'pisell2.cart.sku-card.weighing.noTare': string;
|
|
134
|
+
'pisell2.cart.sku-card.gift.title': string;
|
|
135
|
+
'pisell2.cart.sku-card.gift.select.title': string;
|
|
136
|
+
'pisell2.cart.sku-card.gift.total': (num: number) => string;
|
|
137
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
138
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
139
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
140
|
+
'pisell2.product.card.discount.note': string;
|
|
141
|
+
'pisell2.product.card.edit': string;
|
|
142
|
+
'pisell2.product.card.discount.add.note': string;
|
|
143
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
144
|
+
'pisell2.product.card.confirm': string;
|
|
145
|
+
'pisell2.product.card.cancel': string;
|
|
146
|
+
'pisell2.product.card.note.pla': string;
|
|
147
|
+
'pisell2.product.card.items.package': string;
|
|
148
|
+
'pisell2.product.card.view-all': string;
|
|
149
|
+
'pisell2.product.card.view-less': string;
|
|
150
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
151
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
152
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
153
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
154
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
155
|
+
'pisell2.product.card.sales': string;
|
|
156
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
157
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
158
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
159
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
160
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
161
|
+
};
|
|
162
|
+
pt: {
|
|
163
|
+
'pisell2.product.card.discount.reason': string;
|
|
164
|
+
'pisell2.cart.sku-card.more': string;
|
|
165
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
166
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
167
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
168
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
169
|
+
'pisell2.cart.sku-card.weighing.gross': string;
|
|
170
|
+
'pisell2.cart.sku-card.weighing.manual': string;
|
|
171
|
+
'pisell2.cart.sku-card.weighing.tare': string;
|
|
172
|
+
'pisell2.cart.sku-card.weighing.net': string;
|
|
173
|
+
'pisell2.cart.sku-card.weighing.noTare': string;
|
|
174
|
+
'pisell2.cart.sku-card.gift.title': string;
|
|
175
|
+
'pisell2.cart.sku-card.gift.select.title': string;
|
|
176
|
+
'pisell2.cart.sku-card.gift.total': (num: number) => string;
|
|
177
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
178
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
179
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
180
|
+
'pisell2.product.card.discount.note': string;
|
|
181
|
+
'pisell2.product.card.edit': string;
|
|
182
|
+
'pisell2.product.card.discount.add.note': string;
|
|
183
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
184
|
+
'pisell2.product.card.confirm': string;
|
|
185
|
+
'pisell2.product.card.cancel': string;
|
|
186
|
+
'pisell2.product.card.note.pla': string;
|
|
187
|
+
'pisell2.product.card.items.package': string;
|
|
188
|
+
'pisell2.product.card.view-all': string;
|
|
189
|
+
'pisell2.product.card.view-less': string;
|
|
190
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
191
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
192
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
193
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
194
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
195
|
+
'pisell2.product.card.sales': string;
|
|
196
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
197
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
198
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
199
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
200
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
export default _default;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './index.less';
|
|
3
2
|
declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
|
|
4
3
|
export default SelectHolder;
|
package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
|
|
3
2
|
export default SelectHolderMultiple;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ProductCardTypes } from '../types';
|
|
2
|
-
import type { LineItemStatusOption, LineItemType } from './types';
|
|
2
|
+
import type { LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
|
|
3
3
|
interface BookingLineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
4
4
|
dataSource: any;
|
|
5
5
|
type: LineItemType;
|
|
6
6
|
cartSkuType: 'a2' | 'a5' | 'a9';
|
|
7
|
+
isShowBookingHeader: boolean;
|
|
7
8
|
relatedProductDataSource?: any;
|
|
8
9
|
rightActions?: any[];
|
|
9
10
|
escapeDom?: string;
|
|
@@ -11,6 +12,7 @@ interface BookingLineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
|
11
12
|
statusLoading?: boolean;
|
|
12
13
|
statusDisabled?: boolean;
|
|
13
14
|
isShowRelatedProduct?: boolean;
|
|
15
|
+
holderOptions?: LineItemHolderOption[];
|
|
14
16
|
onBookingStatusChange?: (status: string, item: any) => void;
|
|
15
17
|
}
|
|
16
18
|
declare const BookingLineItem: (props: BookingLineItemProps) => JSX.Element | null;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["dataSource", "type", "cartSkuType", "isShowBookingHeader", "relatedProductDataSource", "rightActions", "escapeDom", "isShowImage", "isFormSubject", "isShowDelete", "isShowNote", "isShowAmountFooter", "disabledClick", "disabledEdit", "statusOptions", "statusLoading", "statusDisabled", "isShowRelatedProduct", "holderOptions", "onBookingStatusChange", "onAction", "onDelete", "onNote", "onCard", "onPromotion", "onGift"];
|
|
2
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3
7
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
8
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -24,6 +28,7 @@ import { SwipeAction } from "../cartSkuCard/components/swipeAction";
|
|
|
24
28
|
import Action from "../components/Action";
|
|
25
29
|
import TimeRange from "./components/TimeRange";
|
|
26
30
|
import Resources from "./components/Resources";
|
|
31
|
+
import Holders from "./components/Holders";
|
|
27
32
|
import Iconfont from "../../iconfont";
|
|
28
33
|
import useEngineContext from "../../../hooks/useEngineContext";
|
|
29
34
|
var PREFIX = 'pisell-line-item';
|
|
@@ -64,15 +69,17 @@ var getResourceName = function getResourceName(booking, translationOriginal) {
|
|
|
64
69
|
}).filter(Boolean).join(', ');
|
|
65
70
|
};
|
|
66
71
|
var BookingLineItem = function BookingLineItem(props) {
|
|
67
|
-
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _dataSource$promotion;
|
|
72
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _ref, _ref2, _dataSource$promotion;
|
|
68
73
|
var dataSource = props.dataSource,
|
|
69
74
|
type = props.type,
|
|
70
75
|
cartSkuType = props.cartSkuType,
|
|
76
|
+
isShowBookingHeader = props.isShowBookingHeader,
|
|
71
77
|
relatedProductDataSource = props.relatedProductDataSource,
|
|
72
78
|
_props$rightActions = props.rightActions,
|
|
73
79
|
rightActions = _props$rightActions === void 0 ? [] : _props$rightActions,
|
|
74
80
|
escapeDom = props.escapeDom,
|
|
75
81
|
isShowImage = props.isShowImage,
|
|
82
|
+
isFormSubject = props.isFormSubject,
|
|
76
83
|
isShowDelete = props.isShowDelete,
|
|
77
84
|
isShowNote = props.isShowNote,
|
|
78
85
|
isShowAmountFooter = props.isShowAmountFooter,
|
|
@@ -86,6 +93,7 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
86
93
|
statusDisabled = _props$statusDisabled === void 0 ? false : _props$statusDisabled,
|
|
87
94
|
_props$isShowRelatedP = props.isShowRelatedProduct,
|
|
88
95
|
isShowRelatedProduct = _props$isShowRelatedP === void 0 ? true : _props$isShowRelatedP,
|
|
96
|
+
holderOptions = props.holderOptions,
|
|
89
97
|
onBookingStatusChange = props.onBookingStatusChange,
|
|
90
98
|
_onAction = props.onAction,
|
|
91
99
|
onDelete = props.onDelete,
|
|
@@ -131,9 +139,23 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
131
139
|
}
|
|
132
140
|
};
|
|
133
141
|
var bookingRightActions = isShowDelete ? [deleteAction].concat(_toConsumableArray(rightActions)) : rightActions;
|
|
134
|
-
var
|
|
135
|
-
var
|
|
136
|
-
var
|
|
142
|
+
var resolvedHolderOptions = (_ref = (_ref2 = holderOptions !== null && holderOptions !== void 0 ? holderOptions : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holderOptions) !== null && _ref2 !== void 0 ? _ref2 : dataSource === null || dataSource === void 0 ? void 0 : dataSource.holders) !== null && _ref !== void 0 ? _ref : [];
|
|
143
|
+
var resolvedIsFormSubject = isFormSubject !== null && isFormSubject !== void 0 ? isFormSubject : dataSource === null || dataSource === void 0 ? void 0 : dataSource.isFormSubject;
|
|
144
|
+
var bookingTitle = String((dataSource === null || dataSource === void 0 ? void 0 : dataSource.booking_id) || '');
|
|
145
|
+
var renderDeleteButton = function renderDeleteButton() {
|
|
146
|
+
var inline = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
147
|
+
return isShowDelete ? /*#__PURE__*/React.createElement("button", {
|
|
148
|
+
className: classNames("".concat(PREFIX, "__delete-btn"), _defineProperty({}, "".concat(PREFIX, "__delete-btn--inline"), inline)),
|
|
149
|
+
type: "button",
|
|
150
|
+
onClick: function onClick(e) {
|
|
151
|
+
e.preventDefault();
|
|
152
|
+
e.stopPropagation();
|
|
153
|
+
onDelete === null || onDelete === void 0 || onDelete(dataSource);
|
|
154
|
+
}
|
|
155
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
156
|
+
type: "pisell2-trash-01"
|
|
157
|
+
})) : null;
|
|
158
|
+
};
|
|
137
159
|
var renderStatusButton = function renderStatusButton() {
|
|
138
160
|
return /*#__PURE__*/React.createElement(Button, {
|
|
139
161
|
className: "".concat(PREFIX, "__status"),
|
|
@@ -170,7 +192,7 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
170
192
|
e.stopPropagation();
|
|
171
193
|
onCard === null || onCard === void 0 || onCard(dataSource);
|
|
172
194
|
}
|
|
173
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
195
|
+
}, isShowBookingHeader ? /*#__PURE__*/React.createElement("div", {
|
|
174
196
|
className: "".concat(PREFIX, "__booking-header"),
|
|
175
197
|
style: {
|
|
176
198
|
'--pisell-line-item-header-color': currentStatus.color || DEFAULT_STATUS_COLOR
|
|
@@ -184,29 +206,25 @@ var BookingLineItem = function BookingLineItem(props) {
|
|
|
184
206
|
}, canChangeStatus ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
185
207
|
menu: {
|
|
186
208
|
items: statusMenuItems,
|
|
187
|
-
onClick: function onClick(
|
|
188
|
-
var key =
|
|
209
|
+
onClick: function onClick(_ref3) {
|
|
210
|
+
var key = _ref3.key;
|
|
189
211
|
return onBookingStatusChange === null || onBookingStatusChange === void 0 ? void 0 : onBookingStatusChange(String(key), dataSource);
|
|
190
212
|
}
|
|
191
213
|
},
|
|
192
214
|
trigger: ['click']
|
|
193
|
-
}, renderStatusButton()) : renderStatusButton(),
|
|
194
|
-
className: "".concat(PREFIX, "
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
e.preventDefault();
|
|
198
|
-
e.stopPropagation();
|
|
199
|
-
onDelete === null || onDelete === void 0 || onDelete(dataSource);
|
|
200
|
-
}
|
|
201
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
202
|
-
type: "pisell2-trash-01"
|
|
203
|
-
})) : null))), /*#__PURE__*/React.createElement("div", {
|
|
204
|
-
className: "".concat(PREFIX, "__booking-detail")
|
|
215
|
+
}, renderStatusButton()) : renderStatusButton(), renderDeleteButton()))) : null, /*#__PURE__*/React.createElement("div", {
|
|
216
|
+
className: classNames("".concat(PREFIX, "__booking-detail"), _defineProperty({}, "".concat(PREFIX, "__booking-detail--with-delete"), !isShowBookingHeader && isShowDelete))
|
|
217
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
218
|
+
className: "".concat(PREFIX, "__booking-detail-content")
|
|
205
219
|
}, /*#__PURE__*/React.createElement(Resources, {
|
|
206
220
|
dataSource: dataSource
|
|
207
221
|
}), /*#__PURE__*/React.createElement(TimeRange, {
|
|
208
222
|
dataSource: dataSource
|
|
209
|
-
})
|
|
223
|
+
}), resolvedIsFormSubject ? /*#__PURE__*/React.createElement(Holders, {
|
|
224
|
+
dataSource: dataSource,
|
|
225
|
+
holderOptions: resolvedHolderOptions,
|
|
226
|
+
isFormSubject: resolvedIsFormSubject
|
|
227
|
+
}) : null), !isShowBookingHeader ? renderDeleteButton(true) : null), isShowRelatedProduct && relatedProductDataSource ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, {
|
|
210
228
|
style: {
|
|
211
229
|
margin: 0
|
|
212
230
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LineItemHolderOption } from '../../types';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface LineItemHoldersProps {
|
|
4
|
+
dataSource?: any;
|
|
5
|
+
holderOptions?: LineItemHolderOption[];
|
|
6
|
+
isFormSubject?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const LineItemHolders: (props: LineItemHoldersProps) => JSX.Element | null;
|
|
9
|
+
export default LineItemHolders;
|