@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
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/productCard/lineItem/components/Holders/index.tsx
|
|
30
|
+
var Holders_exports = {};
|
|
31
|
+
__export(Holders_exports, {
|
|
32
|
+
default: () => Holders_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Holders_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_iconfont = __toESM(require("../../../../iconfont"));
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var PREFIX = "pisell-line-item";
|
|
40
|
+
var holderIconMap = {
|
|
41
|
+
form: "pisell2-file-05",
|
|
42
|
+
minors: "pisell2-user-check-01",
|
|
43
|
+
waiver: "pisell2-file-lock-03"
|
|
44
|
+
};
|
|
45
|
+
var isEmptyHolderId = (value) => {
|
|
46
|
+
if (Array.isArray(value)) return value.length === 0;
|
|
47
|
+
return value === void 0 || value === null || value === "";
|
|
48
|
+
};
|
|
49
|
+
var normalizeHolderIds = (value) => {
|
|
50
|
+
if (isEmptyHolderId(value)) return [];
|
|
51
|
+
return Array.isArray(value) ? value : [value];
|
|
52
|
+
};
|
|
53
|
+
var pickHolderId = (dataSource) => {
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
|
+
return (dataSource == null ? void 0 : dataSource.holder_id) ?? ((_a = dataSource == null ? void 0 : dataSource.metadata) == null ? void 0 : _a.holder_id) ?? ((_d = (_c = (_b = dataSource == null ? void 0 : dataSource._extend) == null ? void 0 : _b.product) == null ? void 0 : _c.metadata) == null ? void 0 : _d.holder_id) ?? ((_g = (_f = (_e = dataSource == null ? void 0 : dataSource._extend) == null ? void 0 : _e.product) == null ? void 0 : _f._extend) == null ? void 0 : _g.holder_id);
|
|
56
|
+
};
|
|
57
|
+
var pickHolderMaxCount = (dataSource, holderIds) => {
|
|
58
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
59
|
+
const count = ((dataSource == null ? void 0 : dataSource.holderMaxCount) ?? (dataSource == null ? void 0 : dataSource.holder_max_count) ?? (dataSource == null ? void 0 : dataSource.number) ?? ((_b = (_a = dataSource == null ? void 0 : dataSource._extend) == null ? void 0 : _a.product) == null ? void 0 : _b.num) ?? ((_d = (_c = dataSource == null ? void 0 : dataSource._extend) == null ? void 0 : _c.product) == null ? void 0 : _d.product_quantity) ?? ((_g = (_f = (_e = dataSource == null ? void 0 : dataSource._extend) == null ? void 0 : _e.product) == null ? void 0 : _f._extend) == null ? void 0 : _g.quantity) ?? holderIds.length) || 1;
|
|
60
|
+
return Number(count) || 1;
|
|
61
|
+
};
|
|
62
|
+
var LineItemHolders = (props) => {
|
|
63
|
+
const { dataSource = {}, holderOptions = [], isFormSubject } = props;
|
|
64
|
+
const holderIds = (0, import_react.useMemo)(
|
|
65
|
+
() => normalizeHolderIds(pickHolderId(dataSource)),
|
|
66
|
+
[dataSource]
|
|
67
|
+
);
|
|
68
|
+
const holderMaxCount = pickHolderMaxCount(dataSource, holderIds);
|
|
69
|
+
const showUnassigned = Boolean(isFormSubject || (dataSource == null ? void 0 : dataSource.isFormSubject));
|
|
70
|
+
const holderType = (dataSource == null ? void 0 : dataSource.holderType) || (dataSource == null ? void 0 : dataSource.holder_type) || "minors";
|
|
71
|
+
const holderIcon = holderIconMap[holderType] || holderIconMap.minors;
|
|
72
|
+
if (!holderIds.length) {
|
|
73
|
+
if (!showUnassigned) return null;
|
|
74
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__holders` }, /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item unassigned" }, holderMaxCount > 1 ? /* @__PURE__ */ import_react.default.createElement("span", null, holderMaxCount, "/", holderMaxCount, " ") : null, /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, import_utils.locales.getText("pisell2.cart.sku-card.unassigned"))));
|
|
75
|
+
}
|
|
76
|
+
const renderHolder = (id, index) => {
|
|
77
|
+
const holder = holderOptions.find((item) => String(item.id) === String(id));
|
|
78
|
+
const label = (holder == null ? void 0 : holder.label) ?? String(id);
|
|
79
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "holder-item", key: `${id}-${index}` }, /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-icon" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: holderIcon })), /* @__PURE__ */ import_react.default.createElement("span", { className: "holder-label" }, label));
|
|
80
|
+
};
|
|
81
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${PREFIX}__holders` }, holderIds.map((id, index) => renderHolder(id, index)));
|
|
82
|
+
};
|
|
83
|
+
var Holders_default = LineItemHolders;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.pisell-line-item__holders {
|
|
2
|
+
user-select: none;
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
|
|
7
|
+
.holder-item {
|
|
8
|
+
min-width: 30px;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
|
|
14
|
+
.holder-icon {
|
|
15
|
+
margin-right: 2px;
|
|
16
|
+
color: #7f56da;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.holder-label {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
color: #667085;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
line-height: 20px;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.unassigned {
|
|
33
|
+
color: red;
|
|
34
|
+
|
|
35
|
+
.holder-label {
|
|
36
|
+
color: red;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import type { ProductCardTypes } from '../types';
|
|
2
|
-
import type { itemType, LineItemStatusOption, LineItemType } from './types';
|
|
2
|
+
import type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType } from './types';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const PREFIX = "pisell-line-item";
|
|
5
|
-
export type { itemType, LineItemStatusOption, LineItemType } from './types';
|
|
5
|
+
export type { itemType, LineItemHolderOption, LineItemStatusOption, LineItemType, } from './types';
|
|
6
6
|
declare type LocalizedText = string | Record<string, unknown> | null | undefined;
|
|
7
7
|
export interface LineItemProps extends Omit<ProductCardTypes, 'dataSource'> {
|
|
8
8
|
dataSource: any;
|
|
9
9
|
itemType?: itemType;
|
|
10
10
|
type?: LineItemType;
|
|
11
|
+
isShowBookingHeader: boolean;
|
|
11
12
|
rightActions?: any[];
|
|
12
13
|
escapeDom?: string;
|
|
13
14
|
statusOptions?: LineItemStatusOption[];
|
|
14
15
|
statusLoading?: boolean;
|
|
15
16
|
statusDisabled?: boolean;
|
|
16
17
|
isShowRelatedProduct?: boolean;
|
|
18
|
+
holderOptions?: LineItemHolderOption[];
|
|
17
19
|
onBookingStatusChange?: (status: string, item: any) => void;
|
|
18
20
|
}
|
|
19
21
|
export declare const convertProductToLineItemProduct: (product: any, translationOriginal: (text: LocalizedText) => string, symbol: string) => {
|
|
@@ -30,8 +32,8 @@ export declare const convertProductToLineItemProduct: (product: any, translation
|
|
|
30
32
|
quantity: any;
|
|
31
33
|
price: any;
|
|
32
34
|
total: any;
|
|
33
|
-
origin_total:
|
|
34
|
-
original_total:
|
|
35
|
+
origin_total: string | number | undefined;
|
|
36
|
+
original_total: string | number | undefined;
|
|
35
37
|
source_product_price: any;
|
|
36
38
|
selling_price: any;
|
|
37
39
|
payment_price: any;
|
|
@@ -41,23 +43,25 @@ export declare const convertProductToLineItemProduct: (product: any, translation
|
|
|
41
43
|
product_sku: any;
|
|
42
44
|
product_bundle: any;
|
|
43
45
|
bundle: any;
|
|
44
|
-
product_option_string:
|
|
46
|
+
product_option_string: any;
|
|
47
|
+
options: any[];
|
|
45
48
|
discount_list: any;
|
|
46
49
|
promotions: any;
|
|
50
|
+
discount_reason: any;
|
|
47
51
|
isGift: boolean;
|
|
48
52
|
giftData: any;
|
|
49
53
|
_origin: any;
|
|
50
54
|
_extend: {
|
|
51
55
|
other: {
|
|
52
56
|
product_id: any;
|
|
53
|
-
option: any;
|
|
57
|
+
option: any[];
|
|
54
58
|
bundle: any;
|
|
55
59
|
product_variant_id: any;
|
|
56
60
|
quantity: any;
|
|
57
61
|
};
|
|
58
62
|
note: any;
|
|
59
63
|
total: any;
|
|
60
|
-
origin_total:
|
|
64
|
+
origin_total: string | number | undefined;
|
|
61
65
|
payment_price: any;
|
|
62
66
|
};
|
|
63
67
|
};
|
|
@@ -55,10 +55,27 @@ var translateText = (text, translationOriginal) => {
|
|
|
55
55
|
if (!text) return "";
|
|
56
56
|
return translationOriginal(text);
|
|
57
57
|
};
|
|
58
|
+
var resolveLineOriginTotal = (product) => {
|
|
59
|
+
var _a, _b, _c, _d;
|
|
60
|
+
const candidates = [
|
|
61
|
+
product == null ? void 0 : product.original_total,
|
|
62
|
+
product == null ? void 0 : product.original_price,
|
|
63
|
+
(_a = product == null ? void 0 : product._extend) == null ? void 0 : _a.origin_total,
|
|
64
|
+
(_d = (_c = (_b = product == null ? void 0 : product.metadata) == null ? void 0 : _b.origin) == null ? void 0 : _c._extend) == null ? void 0 : _d.origin_total
|
|
65
|
+
];
|
|
66
|
+
for (const candidate of candidates) {
|
|
67
|
+
if (candidate !== void 0 && candidate !== null && candidate !== "") {
|
|
68
|
+
return candidate;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return void 0;
|
|
72
|
+
};
|
|
58
73
|
var convertBundleOption = (option, translationOriginal) => ({
|
|
59
74
|
...option,
|
|
60
75
|
id: option.option_group_item_id,
|
|
61
|
-
name: translateText(option.name, translationOriginal)
|
|
76
|
+
name: translateText(option.name, translationOriginal),
|
|
77
|
+
price: option.add_price ?? option.price,
|
|
78
|
+
num: option.num ?? option.quantity ?? 1
|
|
62
79
|
});
|
|
63
80
|
var convertBundle = (bundle, translationOriginal) => {
|
|
64
81
|
const title = translateText(bundle.bundle_title, translationOriginal);
|
|
@@ -72,15 +89,8 @@ var convertBundle = (bundle, translationOriginal) => {
|
|
|
72
89
|
product_id: bundle.bundle_product_id,
|
|
73
90
|
_bundle_product_id: bundle.bundle_product_id,
|
|
74
91
|
product_variant_id: bundle.bundle_variant_id,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
bundle_title: title,
|
|
78
|
-
num: bundle.num,
|
|
79
|
-
quantity: bundle.num,
|
|
80
|
-
price,
|
|
81
|
-
total: bundle.bundle_payment_price,
|
|
82
|
-
origin_total: bundle.bundle_selling_price,
|
|
83
|
-
original_total: bundle.bundle_selling_price,
|
|
92
|
+
total: bundle.bundle_selling_price,
|
|
93
|
+
origin_total: bundle.original_total,
|
|
84
94
|
custom_price: bundle.custom_price,
|
|
85
95
|
custom_price_type: bundle.custom_price_type,
|
|
86
96
|
custom_price_type_ext: bundle.price_type_ext,
|
|
@@ -89,13 +99,35 @@ var convertBundle = (bundle, translationOriginal) => {
|
|
|
89
99
|
_origin: bundle
|
|
90
100
|
};
|
|
91
101
|
};
|
|
102
|
+
var resolveLineItemOptions = (product) => {
|
|
103
|
+
var _a;
|
|
104
|
+
const skuOptions = (_a = product == null ? void 0 : product.product_sku) == null ? void 0 : _a.option;
|
|
105
|
+
if (Array.isArray(skuOptions) && skuOptions.length > 0) {
|
|
106
|
+
return skuOptions;
|
|
107
|
+
}
|
|
108
|
+
if (Array.isArray(product == null ? void 0 : product.product_option_item)) {
|
|
109
|
+
return product.product_option_item;
|
|
110
|
+
}
|
|
111
|
+
return [];
|
|
112
|
+
};
|
|
113
|
+
var mapLineItemOptions = (options, translationOriginal) => options.map((option) => ({
|
|
114
|
+
...option,
|
|
115
|
+
name: translateText(option.name ?? option.title, translationOriginal),
|
|
116
|
+
price: option.add_price ?? option.price,
|
|
117
|
+
num: option.num ?? option.quantity ?? 1
|
|
118
|
+
}));
|
|
92
119
|
var convertProductToLineItemProduct = (product, translationOriginal, symbol) => {
|
|
93
|
-
var _a, _b, _c, _d;
|
|
120
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
94
121
|
const title = translateText(product.product_title || product.title, translationOriginal);
|
|
95
122
|
const bundle = (product.product_bundle || []).map(
|
|
96
123
|
(bundleItem) => convertBundle(bundleItem, translationOriginal)
|
|
97
124
|
);
|
|
98
|
-
|
|
125
|
+
const lineOriginTotal = resolveLineOriginTotal(product);
|
|
126
|
+
const lineOptions = mapLineItemOptions(
|
|
127
|
+
resolveLineItemOptions(product),
|
|
128
|
+
translationOriginal
|
|
129
|
+
);
|
|
130
|
+
const mapped = {
|
|
99
131
|
_id: ((_a = product.metadata) == null ? void 0 : _a.unique_identification_number) || product.order_detail_id || product.product_id,
|
|
100
132
|
id: product.product_id,
|
|
101
133
|
product_id: product.product_id,
|
|
@@ -107,10 +139,10 @@ var convertProductToLineItemProduct = (product, translationOriginal, symbol) =>
|
|
|
107
139
|
image: product.cover,
|
|
108
140
|
num: product.num ?? product.product_quantity ?? 1,
|
|
109
141
|
quantity: product.num ?? product.product_quantity ?? 1,
|
|
110
|
-
price: (
|
|
111
|
-
total: product.
|
|
112
|
-
origin_total:
|
|
113
|
-
original_total:
|
|
142
|
+
price: (_b = product.metadata) == null ? void 0 : _b.source_product_price,
|
|
143
|
+
total: product.selling_price,
|
|
144
|
+
origin_total: lineOriginTotal,
|
|
145
|
+
original_total: lineOriginTotal,
|
|
114
146
|
source_product_price: (_c = product.metadata) == null ? void 0 : _c.source_product_price,
|
|
115
147
|
selling_price: product.selling_price,
|
|
116
148
|
payment_price: product.payment_price,
|
|
@@ -120,26 +152,32 @@ var convertProductToLineItemProduct = (product, translationOriginal, symbol) =>
|
|
|
120
152
|
product_sku: product.product_sku,
|
|
121
153
|
product_bundle: bundle,
|
|
122
154
|
bundle,
|
|
123
|
-
product_option_string: product.
|
|
155
|
+
product_option_string: product.product_option_string,
|
|
156
|
+
options: lineOptions,
|
|
124
157
|
discount_list: product.discount_list,
|
|
125
158
|
promotions: product.promotions,
|
|
126
|
-
|
|
159
|
+
discount_reason: ((_f = (_e = (_d = product.discount_list) == null ? void 0 : _d.find((d) => (d == null ? void 0 : d.type) === "product")) == null ? void 0 : _e.discount) == null ? void 0 : _f.message) ?? ((_g = product.metadata) == null ? void 0 : _g.product_discount_reason),
|
|
160
|
+
// 促销赠品走 metadata._giftInfo;礼品卡走 gift_card(对齐 legacy formatProducts isGift)
|
|
161
|
+
isGift: Boolean(
|
|
162
|
+
product.gift_card || product.isGift || product._isGiftPromotion || ((_h = product.metadata) == null ? void 0 : _h._giftInfo) || product._giftInfo
|
|
163
|
+
),
|
|
127
164
|
giftData: product.giftData,
|
|
128
165
|
_origin: product,
|
|
129
166
|
_extend: {
|
|
130
167
|
other: {
|
|
131
168
|
product_id: product.product_id,
|
|
132
|
-
option:
|
|
169
|
+
option: lineOptions,
|
|
133
170
|
bundle: product.product_bundle,
|
|
134
171
|
product_variant_id: product.product_variant_id,
|
|
135
172
|
quantity: product.num ?? product.product_quantity ?? 1
|
|
136
173
|
},
|
|
137
174
|
note: product.note,
|
|
138
|
-
total: product.
|
|
139
|
-
origin_total:
|
|
175
|
+
total: product.selling_price,
|
|
176
|
+
origin_total: lineOriginTotal,
|
|
140
177
|
payment_price: product.payment_price
|
|
141
178
|
}
|
|
142
179
|
};
|
|
180
|
+
return mapped;
|
|
143
181
|
};
|
|
144
182
|
var LineItem = (props) => {
|
|
145
183
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -147,6 +185,7 @@ var LineItem = (props) => {
|
|
|
147
185
|
dataSource = import_status.defaultValue.dataSource,
|
|
148
186
|
itemType,
|
|
149
187
|
type = "a9",
|
|
188
|
+
isShowBookingHeader,
|
|
150
189
|
rightActions = [],
|
|
151
190
|
escapeDom,
|
|
152
191
|
isShowImage = import_status.defaultValue.isShowImage,
|
|
@@ -159,6 +198,7 @@ var LineItem = (props) => {
|
|
|
159
198
|
statusLoading = false,
|
|
160
199
|
statusDisabled = false,
|
|
161
200
|
isShowRelatedProduct = true,
|
|
201
|
+
holderOptions,
|
|
162
202
|
onBookingStatusChange,
|
|
163
203
|
onAction,
|
|
164
204
|
onDelete,
|
|
@@ -221,6 +261,7 @@ var LineItem = (props) => {
|
|
|
221
261
|
dataSource,
|
|
222
262
|
type,
|
|
223
263
|
cartSkuType: type,
|
|
264
|
+
isShowBookingHeader,
|
|
224
265
|
relatedProductDataSource,
|
|
225
266
|
rightActions,
|
|
226
267
|
escapeDom,
|
|
@@ -234,6 +275,7 @@ var LineItem = (props) => {
|
|
|
234
275
|
statusLoading,
|
|
235
276
|
statusDisabled,
|
|
236
277
|
isShowRelatedProduct,
|
|
278
|
+
holderOptions,
|
|
237
279
|
onBookingStatusChange,
|
|
238
280
|
onAction,
|
|
239
281
|
onDelete,
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
&__delete-btn {
|
|
19
19
|
width: 34px;
|
|
20
20
|
height: 34px;
|
|
21
|
-
border: 1px solid
|
|
21
|
+
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
22
22
|
border-radius: 8px;
|
|
23
|
-
background:
|
|
24
|
-
color: #
|
|
23
|
+
background: var(--Gray-100, #f2f4f7);
|
|
24
|
+
color: var(--Gray-500, #667085);
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
padding: 0;
|
|
27
27
|
display: inline-flex;
|
|
@@ -33,6 +33,21 @@
|
|
|
33
33
|
color: currentColor;
|
|
34
34
|
font-size: 20px;
|
|
35
35
|
}
|
|
36
|
+
|
|
37
|
+
&--inline {
|
|
38
|
+
width: auto;
|
|
39
|
+
height: auto;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: #667085;
|
|
44
|
+
padding: 10px;
|
|
45
|
+
|
|
46
|
+
> span {
|
|
47
|
+
color: currentColor;
|
|
48
|
+
font-size: 20px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
36
51
|
}
|
|
37
52
|
|
|
38
53
|
&__swipe-delete {
|
|
@@ -148,6 +163,28 @@
|
|
|
148
163
|
padding: 8px;
|
|
149
164
|
}
|
|
150
165
|
|
|
166
|
+
&__booking-detail--with-delete {
|
|
167
|
+
position: relative;
|
|
168
|
+
|
|
169
|
+
.pisell-line-item__booking-detail-content {
|
|
170
|
+
padding-right: 40px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.pisell-line-item__delete-btn--inline {
|
|
174
|
+
position: absolute;
|
|
175
|
+
top: 0;
|
|
176
|
+
right: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&__booking-detail-content {
|
|
181
|
+
min-width: 0;
|
|
182
|
+
flex: 1;
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: 4px;
|
|
186
|
+
}
|
|
187
|
+
|
|
151
188
|
&__booking-field {
|
|
152
189
|
min-width: 0;
|
|
153
190
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.line-item.resource': string;
|
|
4
|
+
'pisell2.line-item.time': string;
|
|
5
|
+
};
|
|
6
|
+
'zh-CN': {
|
|
7
|
+
'pisell2.line-item.resource': string;
|
|
8
|
+
'pisell2.line-item.time': string;
|
|
9
|
+
};
|
|
10
|
+
'zh-HK': {
|
|
11
|
+
'pisell2.line-item.resource': string;
|
|
12
|
+
'pisell2.line-item.time': string;
|
|
13
|
+
};
|
|
14
|
+
ja: {
|
|
15
|
+
'pisell2.line-item.resource': string;
|
|
16
|
+
'pisell2.line-item.time': string;
|
|
17
|
+
};
|
|
18
|
+
pt: {
|
|
19
|
+
'pisell2.line-item.resource': string;
|
|
20
|
+
'pisell2.line-item.time': string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
5
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
6
|
+
'pisell2.product.card.discount.reason': string;
|
|
7
|
+
'pisell2.product.card.discount.note': string;
|
|
8
|
+
'pisell2.product.card.edit': string;
|
|
9
|
+
'pisell2.product.card.discount.add.note': string;
|
|
10
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
11
|
+
'pisell2.product.card.confirm': string;
|
|
12
|
+
'pisell2.product.card.cancel': string;
|
|
13
|
+
'pisell2.product.card.note.pla': string;
|
|
14
|
+
'pisell2.product.card.items.package': string;
|
|
15
|
+
'pisell2.product.card.view-all': string;
|
|
16
|
+
'pisell2.product.card.view-less': string;
|
|
17
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
18
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
19
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
20
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
21
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
22
|
+
'pisell2.product.card.sales': string;
|
|
23
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
24
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
25
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
26
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
27
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
28
|
+
};
|
|
29
|
+
'zh-CN': {
|
|
30
|
+
'pisell2.product.card.edit': string;
|
|
31
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
32
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
33
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
34
|
+
'pisell2.product.card.discount.reason': string;
|
|
35
|
+
'pisell2.product.card.discount.note': string;
|
|
36
|
+
'pisell2.product.card.discount.add.note': string;
|
|
37
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
38
|
+
'pisell2.product.card.confirm': string;
|
|
39
|
+
'pisell2.product.card.cancel': string;
|
|
40
|
+
'pisell2.product.card.note.pla': string;
|
|
41
|
+
'pisell2.product.card.items.package': string;
|
|
42
|
+
'pisell2.product.card.view-all': string;
|
|
43
|
+
'pisell2.product.card.view-less': string;
|
|
44
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
45
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
46
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
47
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
48
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
49
|
+
'pisell2.product.card.sales': string;
|
|
50
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
51
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
52
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
53
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
54
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
55
|
+
};
|
|
56
|
+
'zh-HK': {
|
|
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.reason': string;
|
|
62
|
+
'pisell2.product.card.discount.note': string;
|
|
63
|
+
'pisell2.product.card.discount.add.note': string;
|
|
64
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
65
|
+
'pisell2.product.card.confirm': string;
|
|
66
|
+
'pisell2.product.card.cancel': string;
|
|
67
|
+
'pisell2.product.card.note.pla': string;
|
|
68
|
+
'pisell2.product.card.items.package': string;
|
|
69
|
+
'pisell2.product.card.view-all': string;
|
|
70
|
+
'pisell2.product.card.view-less': string;
|
|
71
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
72
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
73
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
74
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
75
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
76
|
+
'pisell2.product.card.sales': string;
|
|
77
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
78
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
79
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
80
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
81
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
82
|
+
};
|
|
83
|
+
ja: {
|
|
84
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
85
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
86
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
87
|
+
'pisell2.product.card.discount.reason': string;
|
|
88
|
+
'pisell2.product.card.discount.note': string;
|
|
89
|
+
'pisell2.product.card.edit': string;
|
|
90
|
+
'pisell2.product.card.discount.add.note': string;
|
|
91
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
92
|
+
'pisell2.product.card.confirm': string;
|
|
93
|
+
'pisell2.product.card.cancel': string;
|
|
94
|
+
'pisell2.product.card.note.pla': string;
|
|
95
|
+
'pisell2.product.card.items.package': string;
|
|
96
|
+
'pisell2.product.card.view-all': string;
|
|
97
|
+
'pisell2.product.card.view-less': string;
|
|
98
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
99
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
100
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
101
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
102
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
103
|
+
'pisell2.product.card.sales': string;
|
|
104
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
105
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
106
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
107
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
108
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
109
|
+
};
|
|
110
|
+
pt: {
|
|
111
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
112
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
113
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
114
|
+
'pisell2.product.card.discount.reason': string;
|
|
115
|
+
'pisell2.product.card.discount.note': string;
|
|
116
|
+
'pisell2.product.card.edit': string;
|
|
117
|
+
'pisell2.product.card.discount.add.note': string;
|
|
118
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
119
|
+
'pisell2.product.card.confirm': string;
|
|
120
|
+
'pisell2.product.card.cancel': string;
|
|
121
|
+
'pisell2.product.card.note.pla': string;
|
|
122
|
+
'pisell2.product.card.items.package': string;
|
|
123
|
+
'pisell2.product.card.view-all': string;
|
|
124
|
+
'pisell2.product.card.view-less': string;
|
|
125
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
126
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
127
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
128
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
129
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
130
|
+
'pisell2.product.card.sales': string;
|
|
131
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
132
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
133
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
134
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
135
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Select as OriginalSelect } from 'antd';
|
|
3
|
+
import type { SelectProps } from 'antd';
|
|
4
|
+
import './index.less';
|
|
5
|
+
interface CompoundedComponent extends React.ForwardRefExoticComponent<SelectProps> {
|
|
6
|
+
Option: typeof OriginalSelect.Option;
|
|
7
|
+
}
|
|
8
|
+
declare const Select: CompoundedComponent;
|
|
9
|
+
export default Select;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting" | "filters")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|