@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
|
@@ -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;
|
|
@@ -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
|
-
}
|
|
@@ -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 {};
|
|
@@ -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
|
}
|
|
@@ -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/lib/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;
|
|
@@ -48,6 +48,7 @@ var import_swipeAction = require("../cartSkuCard/components/swipeAction");
|
|
|
48
48
|
var import_Action = __toESM(require("../components/Action"));
|
|
49
49
|
var import_TimeRange = __toESM(require("./components/TimeRange"));
|
|
50
50
|
var import_Resources = __toESM(require("./components/Resources"));
|
|
51
|
+
var import_Holders = __toESM(require("./components/Holders"));
|
|
51
52
|
var import_iconfont = __toESM(require("../../iconfont"));
|
|
52
53
|
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
53
54
|
var PREFIX = "pisell-line-item";
|
|
@@ -59,47 +60,18 @@ var getStatusOption = (status, statusOptions = []) => {
|
|
|
59
60
|
color: DEFAULT_STATUS_COLOR
|
|
60
61
|
};
|
|
61
62
|
};
|
|
62
|
-
var formatBookingTime = (booking, locale) => {
|
|
63
|
-
const start = (0, import_dayjs.default)(`${booking.start_date || ""} ${booking.start_time || ""}`);
|
|
64
|
-
const end = (0, import_dayjs.default)(`${booking.end_date || ""} ${booking.end_time || ""}`);
|
|
65
|
-
if (!start.isValid() || !end.isValid()) return "";
|
|
66
|
-
const isEn = locale === "en-US" || locale === "en";
|
|
67
|
-
const dateFormat = isEn ? "DD/MM/YYYY" : "YYYY-MM-DD";
|
|
68
|
-
const startTime = booking.start_time || start.format("HH:mm");
|
|
69
|
-
const endTime = booking.end_time || end.format("HH:mm");
|
|
70
|
-
if (start.isSame(end, "day")) {
|
|
71
|
-
return isEn ? `${startTime} ~ ${endTime} ${start.format(dateFormat)}` : `${start.format(dateFormat)} ${startTime} ~ ${endTime}`;
|
|
72
|
-
}
|
|
73
|
-
return isEn ? `${startTime} ${start.format(dateFormat)} ~ ${endTime} ${end.format(
|
|
74
|
-
dateFormat
|
|
75
|
-
)}` : `${start.format(dateFormat)} ${startTime} ~ ${end.format(
|
|
76
|
-
dateFormat
|
|
77
|
-
)} ${endTime}`;
|
|
78
|
-
};
|
|
79
|
-
var translateText = (text, translationOriginal) => {
|
|
80
|
-
if (typeof text === "string") return text;
|
|
81
|
-
if (!text) return "";
|
|
82
|
-
return translationOriginal(text);
|
|
83
|
-
};
|
|
84
|
-
var getResourceName = (booking, translationOriginal) => {
|
|
85
|
-
if (booking == null ? void 0 : booking.relation_form_name) return booking.relation_form_name;
|
|
86
|
-
return ((booking == null ? void 0 : booking.resources) || []).map(
|
|
87
|
-
(resource) => {
|
|
88
|
-
var _a;
|
|
89
|
-
return translateText((_a = resource == null ? void 0 : resource.metadata) == null ? void 0 : _a.resource_name, translationOriginal);
|
|
90
|
-
}
|
|
91
|
-
).filter(Boolean).join(", ");
|
|
92
|
-
};
|
|
93
63
|
var BookingLineItem = (props) => {
|
|
94
64
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
95
65
|
const {
|
|
96
66
|
dataSource,
|
|
97
67
|
type,
|
|
98
68
|
cartSkuType,
|
|
69
|
+
isShowBookingHeader,
|
|
99
70
|
relatedProductDataSource,
|
|
100
71
|
rightActions = [],
|
|
101
72
|
escapeDom,
|
|
102
73
|
isShowImage,
|
|
74
|
+
isFormSubject,
|
|
103
75
|
isShowDelete,
|
|
104
76
|
isShowNote,
|
|
105
77
|
isShowAmountFooter,
|
|
@@ -109,6 +81,7 @@ var BookingLineItem = (props) => {
|
|
|
109
81
|
statusLoading = false,
|
|
110
82
|
statusDisabled = false,
|
|
111
83
|
isShowRelatedProduct = true,
|
|
84
|
+
holderOptions,
|
|
112
85
|
onBookingStatusChange,
|
|
113
86
|
onAction,
|
|
114
87
|
onDelete,
|
|
@@ -146,9 +119,24 @@ var BookingLineItem = (props) => {
|
|
|
146
119
|
}
|
|
147
120
|
};
|
|
148
121
|
const bookingRightActions = isShowDelete ? [deleteAction, ...rightActions] : rightActions;
|
|
149
|
-
const
|
|
150
|
-
const
|
|
151
|
-
const
|
|
122
|
+
const resolvedHolderOptions = holderOptions ?? (dataSource == null ? void 0 : dataSource.holderOptions) ?? (dataSource == null ? void 0 : dataSource.holders) ?? [];
|
|
123
|
+
const resolvedIsFormSubject = isFormSubject ?? (dataSource == null ? void 0 : dataSource.isFormSubject);
|
|
124
|
+
const bookingTitle = String((dataSource == null ? void 0 : dataSource.booking_id) || "");
|
|
125
|
+
const renderDeleteButton = (inline = false) => isShowDelete ? /* @__PURE__ */ import_react.default.createElement(
|
|
126
|
+
"button",
|
|
127
|
+
{
|
|
128
|
+
className: (0, import_classnames.default)(`${PREFIX}__delete-btn`, {
|
|
129
|
+
[`${PREFIX}__delete-btn--inline`]: inline
|
|
130
|
+
}),
|
|
131
|
+
type: "button",
|
|
132
|
+
onClick: (e) => {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
e.stopPropagation();
|
|
135
|
+
onDelete == null ? void 0 : onDelete(dataSource);
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
/* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-trash-01" })
|
|
139
|
+
) : null;
|
|
152
140
|
const renderStatusButton = () => /* @__PURE__ */ import_react.default.createElement(
|
|
153
141
|
import_antd.Button,
|
|
154
142
|
{
|
|
@@ -191,7 +179,7 @@ var BookingLineItem = (props) => {
|
|
|
191
179
|
onCard == null ? void 0 : onCard(dataSource);
|
|
192
180
|
}
|
|
193
181
|
},
|
|
194
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
182
|
+
isShowBookingHeader ? /* @__PURE__ */ import_react.default.createElement(
|
|
195
183
|
"div",
|
|
196
184
|
{
|
|
197
185
|
className: `${PREFIX}__booking-header`,
|
|
@@ -209,21 +197,25 @@ var BookingLineItem = (props) => {
|
|
|
209
197
|
trigger: ["click"]
|
|
210
198
|
},
|
|
211
199
|
renderStatusButton()
|
|
212
|
-
) : renderStatusButton(),
|
|
213
|
-
|
|
200
|
+
) : renderStatusButton(), renderDeleteButton()))
|
|
201
|
+
) : null,
|
|
202
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
className: (0, import_classnames.default)(`${PREFIX}__booking-detail`, {
|
|
206
|
+
[`${PREFIX}__booking-detail--with-delete`]: !isShowBookingHeader && isShowDelete
|
|
207
|
+
})
|
|
208
|
+
},
|
|
209
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__booking-detail-content` }, /* @__PURE__ */ import_react.default.createElement(import_Resources.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_TimeRange.default, { dataSource }), resolvedIsFormSubject ? /* @__PURE__ */ import_react.default.createElement(
|
|
210
|
+
import_Holders.default,
|
|
214
211
|
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
/* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-trash-01" })
|
|
224
|
-
) : null))
|
|
212
|
+
dataSource,
|
|
213
|
+
holderOptions: resolvedHolderOptions,
|
|
214
|
+
isFormSubject: resolvedIsFormSubject
|
|
215
|
+
}
|
|
216
|
+
) : null),
|
|
217
|
+
!isShowBookingHeader ? renderDeleteButton(true) : null
|
|
225
218
|
),
|
|
226
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__booking-detail` }, /* @__PURE__ */ import_react.default.createElement(import_Resources.default, { dataSource }), /* @__PURE__ */ import_react.default.createElement(import_TimeRange.default, { dataSource })),
|
|
227
219
|
isShowRelatedProduct && relatedProductDataSource ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: 0 } }), /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__related-product` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__related-product-card` }, /* @__PURE__ */ import_react.default.createElement(
|
|
228
220
|
import_basicInfo.default,
|
|
229
221
|
{
|
|
@@ -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;
|