@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,22 @@
|
|
|
1
|
+
export interface PisellAdjustPriceProps {
|
|
2
|
+
value?: number;
|
|
3
|
+
originValue: number;
|
|
4
|
+
defaultValue?: number;
|
|
5
|
+
onChange?: (val: number) => void;
|
|
6
|
+
selectType?: 'light' | 'dark';
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
containerBackgroundColor?: string;
|
|
9
|
+
buttonBackgroundColor?: string;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
resetButtonBackgroundColor?: string;
|
|
12
|
+
resetButtonTextColor?: string;
|
|
13
|
+
isDoneButtonFollowTheme?: boolean;
|
|
14
|
+
doneButtonBackgroundColor?: string;
|
|
15
|
+
doneButtonTextColor?: string;
|
|
16
|
+
isShowMainText?: boolean;
|
|
17
|
+
mainTextColor?: string;
|
|
18
|
+
isShowSubText?: boolean;
|
|
19
|
+
subTextColor?: string;
|
|
20
|
+
resetText?: string;
|
|
21
|
+
doneText?: string;
|
|
22
|
+
}
|
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PisellLookupProps, PisellLookupRef } from '../pisellLookup';
|
|
3
|
+
/**
|
|
4
|
+
* 原生扫码事件名,对齐宿主端约定。
|
|
5
|
+
*/
|
|
6
|
+
export declare const SCAN_RESULT_EVENT = "nativeScanResult";
|
|
7
|
+
/**
|
|
8
|
+
* 扫码枪回传数据(对齐宿主 ScanResultPayload)
|
|
9
|
+
* - code: 条码标识(如条码格式 / 业务字段)
|
|
10
|
+
* - data: 扫描得到的字符串值(写入输入框的内容)
|
|
11
|
+
*/
|
|
12
|
+
export interface PisellFindScannerData {
|
|
13
|
+
code: string;
|
|
14
|
+
data: string;
|
|
15
|
+
}
|
|
3
16
|
/**
|
|
4
17
|
* PisellFind Props
|
|
5
|
-
* 继承 PisellLookup 的所有 Props
|
|
18
|
+
* 继承 PisellLookup 的所有 Props,并扩展扫码枪监听相关字段。
|
|
6
19
|
*/
|
|
7
|
-
export
|
|
20
|
+
export interface PisellFindProps extends PisellLookupProps {
|
|
21
|
+
/**
|
|
22
|
+
* 是否开启扫码枪监听
|
|
23
|
+
* 通过宿主 `app.pubsub.subscribe('nativeScanResult', ...)` 订阅;
|
|
24
|
+
* 切换 false 时会 unsubscribe,停止接收事件。
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
enableScanner?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 扫码枪回调
|
|
30
|
+
* 监听到扫码枪事件时触发,参数为原始 payload 对象(含 `data` 字段)。
|
|
31
|
+
* 注意:仅在 enableScanner 为 true 时才会触发。
|
|
32
|
+
*/
|
|
33
|
+
onScannerData?: (data: PisellFindScannerData) => void;
|
|
34
|
+
}
|
|
8
35
|
/**
|
|
9
36
|
* PisellFind Ref
|
|
10
37
|
* 继承 PisellLookup 的所有 Ref 方法
|
|
@@ -19,22 +46,17 @@ export declare type PisellFindRef = PisellLookupRef;
|
|
|
19
46
|
* - 默认不显示确认按钮(输入即搜索)
|
|
20
47
|
* - 默认开启搜索历史
|
|
21
48
|
* - 默认不展示结果区(结果在页面其他位置展示)
|
|
49
|
+
* - 通过 `enableScanner` 接入扫码枪:使用宿主 `app.pubsub.subscribe(SCAN_RESULT_EVENT, ...)`,
|
|
50
|
+
* 每次扫码直接覆盖输入框内容并触发 onSearch / onScannerData;切回 false 时自动 unsubscribe。
|
|
22
51
|
*
|
|
23
52
|
* @example
|
|
24
53
|
* ```tsx
|
|
25
|
-
* // 基础用法
|
|
26
|
-
* <PisellFind
|
|
27
|
-
* onSearch={(keyword) => {
|
|
28
|
-
* const filtered = data.filter(item => item.name.includes(keyword));
|
|
29
|
-
* setFilteredData(filtered);
|
|
30
|
-
* }}
|
|
31
|
-
* />
|
|
32
|
-
*
|
|
33
|
-
* // 切换为 Input 模式
|
|
34
54
|
* <PisellFind
|
|
35
55
|
* triggerType="input"
|
|
56
|
+
* enableScanner={isActive}
|
|
57
|
+
* onScannerData={(payload) => console.log('scan:', payload.data)}
|
|
36
58
|
* onSearch={(keyword) => filterData(keyword)}
|
|
37
59
|
* />
|
|
38
60
|
* ```
|
|
39
61
|
*/
|
|
40
|
-
export declare const PisellFind: React.ForwardRefExoticComponent<
|
|
62
|
+
export declare const PisellFind: React.ForwardRefExoticComponent<PisellFindProps & React.RefAttributes<PisellLookupRef>>;
|
|
@@ -29,16 +29,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/pisellFind/index.tsx
|
|
30
30
|
var pisellFind_exports = {};
|
|
31
31
|
__export(pisellFind_exports, {
|
|
32
|
-
PisellFind: () => PisellFind
|
|
32
|
+
PisellFind: () => PisellFind,
|
|
33
|
+
SCAN_RESULT_EVENT: () => SCAN_RESULT_EVENT
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(pisellFind_exports);
|
|
35
36
|
var import_react = __toESM(require("react"));
|
|
36
37
|
var import_utils = require("@pisell/utils");
|
|
37
38
|
var import_pisellLookup = require("../pisellLookup");
|
|
39
|
+
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
38
40
|
var import_locales = require("../../locales");
|
|
41
|
+
var SCAN_RESULT_EVENT = "nativeScanResult";
|
|
39
42
|
var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
43
|
+
var _a, _b;
|
|
40
44
|
const {
|
|
41
|
-
// 提取需要设置默认值的 Props
|
|
42
45
|
triggerType = "button",
|
|
43
46
|
buttonText = (() => {
|
|
44
47
|
const key = "pisell2.recordBoard.toolbar.find";
|
|
@@ -53,19 +56,90 @@ var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
|
53
56
|
showConfirmButton = false,
|
|
54
57
|
showHistory = true,
|
|
55
58
|
historyKey = "pisell_find_history",
|
|
56
|
-
|
|
59
|
+
enableScanner = false,
|
|
60
|
+
onScannerData,
|
|
61
|
+
onSearch,
|
|
57
62
|
...restProps
|
|
58
63
|
} = props;
|
|
64
|
+
const lookupRef = (0, import_react.useRef)(null);
|
|
65
|
+
const onScannerDataRef = (0, import_react.useRef)(onScannerData);
|
|
66
|
+
const onSearchRef = (0, import_react.useRef)(onSearch);
|
|
67
|
+
(0, import_react.useEffect)(() => {
|
|
68
|
+
onScannerDataRef.current = onScannerData;
|
|
69
|
+
}, [onScannerData]);
|
|
70
|
+
(0, import_react.useEffect)(() => {
|
|
71
|
+
onSearchRef.current = onSearch;
|
|
72
|
+
}, [onSearch]);
|
|
73
|
+
(0, import_react.useImperativeHandle)(
|
|
74
|
+
ref,
|
|
75
|
+
() => ({
|
|
76
|
+
open: () => {
|
|
77
|
+
var _a2;
|
|
78
|
+
return (_a2 = lookupRef.current) == null ? void 0 : _a2.open();
|
|
79
|
+
},
|
|
80
|
+
close: () => {
|
|
81
|
+
var _a2;
|
|
82
|
+
return (_a2 = lookupRef.current) == null ? void 0 : _a2.close();
|
|
83
|
+
},
|
|
84
|
+
getKeyword: () => {
|
|
85
|
+
var _a2;
|
|
86
|
+
return ((_a2 = lookupRef.current) == null ? void 0 : _a2.getKeyword()) ?? "";
|
|
87
|
+
},
|
|
88
|
+
setKeyword: (v) => {
|
|
89
|
+
var _a2;
|
|
90
|
+
return (_a2 = lookupRef.current) == null ? void 0 : _a2.setKeyword(v);
|
|
91
|
+
}
|
|
92
|
+
}),
|
|
93
|
+
[]
|
|
94
|
+
);
|
|
95
|
+
const engineContext = (0, import_useEngineContext.default)();
|
|
96
|
+
const getAppRef = (0, import_react.useRef)(void 0);
|
|
97
|
+
getAppRef.current = typeof ((_b = (_a = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) === "function" ? engineContext.appHelper.utils.getApp : void 0;
|
|
98
|
+
(0, import_react.useEffect)(() => {
|
|
99
|
+
if (!enableScanner) return void 0;
|
|
100
|
+
const getApp = getAppRef.current;
|
|
101
|
+
if (typeof getApp !== "function") return void 0;
|
|
102
|
+
const app = getApp();
|
|
103
|
+
const pubsub = app == null ? void 0 : app.pubsub;
|
|
104
|
+
if (!pubsub || typeof pubsub.subscribe !== "function") {
|
|
105
|
+
return void 0;
|
|
106
|
+
}
|
|
107
|
+
const onScan = (payload) => {
|
|
108
|
+
var _a2, _b2, _c;
|
|
109
|
+
const data = payload == null ? void 0 : payload.data;
|
|
110
|
+
if (typeof data !== "string" || data.length === 0) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
(_a2 = lookupRef.current) == null ? void 0 : _a2.setKeyword(data);
|
|
114
|
+
(_b2 = onSearchRef.current) == null ? void 0 : _b2.call(onSearchRef, data);
|
|
115
|
+
(_c = onScannerDataRef.current) == null ? void 0 : _c.call(onScannerDataRef, payload);
|
|
116
|
+
};
|
|
117
|
+
try {
|
|
118
|
+
pubsub.subscribe(SCAN_RESULT_EVENT, onScan);
|
|
119
|
+
} catch (e) {
|
|
120
|
+
console.warn("[PisellFind] subscribe scanner failed:", e);
|
|
121
|
+
return void 0;
|
|
122
|
+
}
|
|
123
|
+
return () => {
|
|
124
|
+
var _a2;
|
|
125
|
+
try {
|
|
126
|
+
(_a2 = pubsub.unsubscribe) == null ? void 0 : _a2.call(pubsub, SCAN_RESULT_EVENT, onScan);
|
|
127
|
+
} catch (e) {
|
|
128
|
+
console.warn("[PisellFind] unsubscribe scanner failed:", e);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}, [enableScanner]);
|
|
59
132
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
60
133
|
import_pisellLookup.PisellLookup,
|
|
61
134
|
{
|
|
62
|
-
ref,
|
|
135
|
+
ref: lookupRef,
|
|
63
136
|
triggerType,
|
|
64
137
|
buttonText,
|
|
65
138
|
placeholder,
|
|
66
139
|
showConfirmButton,
|
|
67
140
|
showHistory,
|
|
68
141
|
historyKey,
|
|
142
|
+
onSearch,
|
|
69
143
|
...restProps
|
|
70
144
|
}
|
|
71
145
|
);
|
|
@@ -73,5 +147,6 @@ var PisellFind = (0, import_react.forwardRef)((props, ref) => {
|
|
|
73
147
|
PisellFind.displayName = "PisellFind";
|
|
74
148
|
// Annotate the CommonJS export names for ESM import in node:
|
|
75
149
|
0 && (module.exports = {
|
|
76
|
-
PisellFind
|
|
150
|
+
PisellFind,
|
|
151
|
+
SCAN_RESULT_EVENT
|
|
77
152
|
});
|
|
@@ -142,7 +142,12 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
142
142
|
layoutPrefix: import_floorMapLayoutConstants.FLOOR_MAP_LAYOUT_CLASS_PREFIX,
|
|
143
143
|
contentOffsetRef,
|
|
144
144
|
showDataSourceRecordFormBlock,
|
|
145
|
-
focusViewportOnBoundsRef
|
|
145
|
+
focusViewportOnBoundsRef,
|
|
146
|
+
/**
|
|
147
|
+
* 网格显隐缓存与视口持久化共用同一命名空间,按业务/门店/平面图隔离;
|
|
148
|
+
* 与视口 `viewportPersistKey` 同源,避免换门店/平面图读到别家的网格偏好。
|
|
149
|
+
*/
|
|
150
|
+
gridPersistNamespace: viewportPersistNamespace
|
|
146
151
|
});
|
|
147
152
|
const {
|
|
148
153
|
config,
|
|
@@ -20,6 +20,12 @@ export interface UseFloorMapEditStateParams<T extends FloorMapItemBase> {
|
|
|
20
20
|
showDataSourceRecordFormBlock?: boolean;
|
|
21
21
|
/** 批量落点后由布局层注入:将视口移至新增图元区域 */
|
|
22
22
|
focusViewportOnBoundsRef?: MutableRefObject<((bounds: PlacementBoundingBox) => void) | null>;
|
|
23
|
+
/**
|
|
24
|
+
* 网格显隐缓存命名空间(通常与视口 `viewportPersistNamespace` 同源,拼自业务/门店/平面图)。
|
|
25
|
+
* 传入后网格 localStorage key 变为 `prefix:namespace:canvasId`,隔离不同门店/场景;
|
|
26
|
+
* 不传则沿用 `prefix:canvasId`(向后兼容,跨场景可能共享)。
|
|
27
|
+
*/
|
|
28
|
+
gridPersistNamespace?: string;
|
|
23
29
|
}
|
|
24
30
|
export declare function useFloorMapEditState<T extends FloorMapItemBase>(params: UseFloorMapEditStateParams<T>): {
|
|
25
31
|
config: FloorMapViewConfig | null;
|
|
@@ -55,12 +55,12 @@ var I18N_PLACEMENT_FALLBACK_IMAGE = "pisell-floor-map-layout.placement.fallback-
|
|
|
55
55
|
var I18N_PLACEMENT_ZONE_NAME = "pisell-floor-map-layout.zone.unnamed";
|
|
56
56
|
var ZONE_PLACE_DEFAULT = { width: 240, height: 160 };
|
|
57
57
|
var GRID_VIS_STORAGE_PREFIX = "pisell-floor-map-layout.grid-visible";
|
|
58
|
-
function getGridVisStorageKey(canvasId) {
|
|
59
|
-
return `${GRID_VIS_STORAGE_PREFIX}:${canvasId}`;
|
|
58
|
+
function getGridVisStorageKey(canvasId, namespace) {
|
|
59
|
+
return namespace ? `${GRID_VIS_STORAGE_PREFIX}:${namespace}:${canvasId}` : `${GRID_VIS_STORAGE_PREFIX}:${canvasId}`;
|
|
60
60
|
}
|
|
61
|
-
function readStoredGridVisible(canvasId) {
|
|
61
|
+
function readStoredGridVisible(canvasId, namespace) {
|
|
62
62
|
try {
|
|
63
|
-
const raw = localStorage.getItem(getGridVisStorageKey(canvasId));
|
|
63
|
+
const raw = localStorage.getItem(getGridVisStorageKey(canvasId, namespace));
|
|
64
64
|
if (raw == null) return null;
|
|
65
65
|
if (raw === "1") return true;
|
|
66
66
|
if (raw === "0") return false;
|
|
@@ -69,18 +69,21 @@ function readStoredGridVisible(canvasId) {
|
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function writeStoredGridVisible(canvasId, visible) {
|
|
72
|
+
function writeStoredGridVisible(canvasId, visible, namespace) {
|
|
73
73
|
try {
|
|
74
|
-
localStorage.setItem(
|
|
74
|
+
localStorage.setItem(
|
|
75
|
+
getGridVisStorageKey(canvasId, namespace),
|
|
76
|
+
visible ? "1" : "0"
|
|
77
|
+
);
|
|
75
78
|
} catch {
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
|
-
function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp) {
|
|
81
|
+
function normalizeFloorMapConfigWithStoredGrid(floorMapConfigProp, namespace) {
|
|
79
82
|
const baseConfig = (0, import_floorMapViewConfigDiff.normalizeFloorMapViewConfigFromProp)(floorMapConfigProp);
|
|
80
83
|
return {
|
|
81
84
|
...baseConfig,
|
|
82
85
|
canvases: baseConfig.canvases.map((canvas) => {
|
|
83
|
-
const stored = readStoredGridVisible(canvas.id);
|
|
86
|
+
const stored = readStoredGridVisible(canvas.id, namespace);
|
|
84
87
|
if (stored == null) return canvas;
|
|
85
88
|
return {
|
|
86
89
|
...canvas,
|
|
@@ -174,7 +177,8 @@ function useFloorMapEditState(params) {
|
|
|
174
177
|
layoutPrefix,
|
|
175
178
|
contentOffsetRef,
|
|
176
179
|
showDataSourceRecordFormBlock,
|
|
177
|
-
focusViewportOnBoundsRef
|
|
180
|
+
focusViewportOnBoundsRef,
|
|
181
|
+
gridPersistNamespace
|
|
178
182
|
} = params;
|
|
179
183
|
const scheduleFocusOnPlacements = (0, import_react.useCallback)(
|
|
180
184
|
(positions, sizes) => {
|
|
@@ -210,7 +214,10 @@ function useFloorMapEditState(params) {
|
|
|
210
214
|
lastSyncedPropConfigRef.current = null;
|
|
211
215
|
return;
|
|
212
216
|
}
|
|
213
|
-
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
217
|
+
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
218
|
+
floorMapConfigProp,
|
|
219
|
+
gridPersistNamespace
|
|
220
|
+
);
|
|
214
221
|
const lastSynced = lastSyncedPropConfigRef.current;
|
|
215
222
|
if (draftConfig && lastSynced != null) {
|
|
216
223
|
const propMatchesDraft = (0, import_floorMapViewConfigDiff.floorMapViewConfigsEqual)(
|
|
@@ -237,12 +244,21 @@ function useFloorMapEditState(params) {
|
|
|
237
244
|
return prev && enabled.some((c) => c.id === prev) ? prev : ((_a2 = enabled[0]) == null ? void 0 : _a2.id) ?? null;
|
|
238
245
|
}
|
|
239
246
|
);
|
|
240
|
-
}, [floorMapConfigProp]);
|
|
247
|
+
}, [floorMapConfigProp, gridPersistNamespace]);
|
|
241
248
|
const isLayoutDirty = (0, import_react.useMemo)(() => {
|
|
242
249
|
if (!isFloorMapView || !draftConfig || !floorMapConfigProp) return false;
|
|
243
|
-
const baseline = savedBaselineConfig ?? normalizeFloorMapConfigWithStoredGrid(
|
|
250
|
+
const baseline = savedBaselineConfig ?? normalizeFloorMapConfigWithStoredGrid(
|
|
251
|
+
floorMapConfigProp,
|
|
252
|
+
gridPersistNamespace
|
|
253
|
+
);
|
|
244
254
|
return !(0, import_floorMapViewConfigDiff.floorMapViewConfigsEqual)(draftConfig, baseline);
|
|
245
|
-
}, [
|
|
255
|
+
}, [
|
|
256
|
+
isFloorMapView,
|
|
257
|
+
draftConfig,
|
|
258
|
+
floorMapConfigProp,
|
|
259
|
+
savedBaselineConfig,
|
|
260
|
+
gridPersistNamespace
|
|
261
|
+
]);
|
|
246
262
|
(0, import_react.useEffect)(() => {
|
|
247
263
|
if (!selectedId || !draftConfig) return;
|
|
248
264
|
const exists = (draftConfig.sceneElements ?? []).some(
|
|
@@ -672,11 +688,14 @@ function useFloorMapEditState(params) {
|
|
|
672
688
|
setSavedBaselineConfig(null);
|
|
673
689
|
return;
|
|
674
690
|
}
|
|
675
|
-
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
691
|
+
const nextConfig = normalizeFloorMapConfigWithStoredGrid(
|
|
692
|
+
floorMapConfigProp,
|
|
693
|
+
gridPersistNamespace
|
|
694
|
+
);
|
|
676
695
|
replaceDraft(nextConfig);
|
|
677
696
|
lastSyncedPropConfigRef.current = nextConfig;
|
|
678
697
|
setSavedBaselineConfig(null);
|
|
679
|
-
}, [floorMapConfigProp, replaceDraft]);
|
|
698
|
+
}, [floorMapConfigProp, replaceDraft, gridPersistNamespace]);
|
|
680
699
|
const toggleDraftCanvasShowGrid = (0, import_react.useCallback)(() => {
|
|
681
700
|
commitDraft((prev) => {
|
|
682
701
|
if (!prev || !currentCanvasId) return prev;
|
|
@@ -686,7 +705,7 @@ function useFloorMapEditState(params) {
|
|
|
686
705
|
var _a2;
|
|
687
706
|
if (c.id !== currentCanvasId) return c;
|
|
688
707
|
const nextShow = !Boolean((_a2 = c.mapLayer) == null ? void 0 : _a2.showGrid);
|
|
689
|
-
writeStoredGridVisible(currentCanvasId, nextShow);
|
|
708
|
+
writeStoredGridVisible(currentCanvasId, nextShow, gridPersistNamespace);
|
|
690
709
|
return {
|
|
691
710
|
...c,
|
|
692
711
|
mapLayer: { ...c.mapLayer, showGrid: nextShow }
|
|
@@ -694,7 +713,7 @@ function useFloorMapEditState(params) {
|
|
|
694
713
|
})
|
|
695
714
|
};
|
|
696
715
|
});
|
|
697
|
-
}, [currentCanvasId]);
|
|
716
|
+
}, [currentCanvasId, gridPersistNamespace]);
|
|
698
717
|
const handleEditPanelUpdate = (0, import_react.useCallback)(
|
|
699
718
|
(patch) => {
|
|
700
719
|
var _a2;
|
|
@@ -32,8 +32,8 @@ async function fetchShopFloorPlanByCodeResponse(http, trimmedCode, subscribe) {
|
|
|
32
32
|
{},
|
|
33
33
|
{
|
|
34
34
|
fullResult: true,
|
|
35
|
-
isShopApi: true,
|
|
36
35
|
...(subscribe == null ? void 0 : subscribe.subscriberId) != null && subscribe.subscriberId !== "" ? {
|
|
36
|
+
isShopApi: true,
|
|
37
37
|
abort: true,
|
|
38
38
|
osServer: subscribe.osServer !== false,
|
|
39
39
|
subscriberId: subscribe.subscriberId,
|
|
@@ -49,8 +49,7 @@ function createShopFloorPlanClient(options) {
|
|
|
49
49
|
async function postShopFloorPlan(body) {
|
|
50
50
|
var _a;
|
|
51
51
|
const res = await http.post("/shop/schedule/floor-plan", body, {
|
|
52
|
-
fullResult: true
|
|
53
|
-
isShopApi: true
|
|
52
|
+
fullResult: true
|
|
54
53
|
});
|
|
55
54
|
const ok = (res == null ? void 0 : res.code) === 200 || (res == null ? void 0 : res.status) === true || ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status) === true;
|
|
56
55
|
if (ok) {
|
|
@@ -136,8 +135,7 @@ function createShopFloorPlanClient(options) {
|
|
|
136
135
|
`/shop/schedule/floor-plan/${id}`,
|
|
137
136
|
body,
|
|
138
137
|
{
|
|
139
|
-
fullResult: true
|
|
140
|
-
isShopApi: true
|
|
138
|
+
fullResult: true
|
|
141
139
|
}
|
|
142
140
|
);
|
|
143
141
|
const ok = (res == null ? void 0 : res.code) === 200 || (res == null ? void 0 : res.status) === true || ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status) === true;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PisellHierarchicalSummaryListProps } from './types';
|
|
3
|
+
import './PisellHierarchicalSummaryList.less';
|
|
4
|
+
/** 根节点类名,供上层用同一 DOM 包裹列表与其它区块时使用 */
|
|
5
|
+
export declare const PREFIX_CLS = "pisell-hierarchical-summary-list";
|
|
6
|
+
export declare const PisellHierarchicalSummaryList: React.FC<PisellHierarchicalSummaryListProps>;
|
package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PisellHierarchicalSummaryList } from './PisellHierarchicalSummaryList';
|
|
3
|
+
declare const meta: Meta<typeof PisellHierarchicalSummaryList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof PisellHierarchicalSummaryList>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Accordion: Story;
|
|
8
|
+
export declare const MaxExpandLevel: Story;
|
|
9
|
+
export declare const AggregateSum: Story;
|
|
10
|
+
export declare const FullFeatured: Story;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PisellHierarchicalSummaryListAggregateConfig, PisellHierarchicalSummaryListItem, PisellHierarchicalSummaryListKey, PisellHierarchicalSummaryListLevelConfig, PisellHierarchicalSummaryListRenderContext } from '../types';
|
|
3
|
+
export interface RowProps {
|
|
4
|
+
prefixCls: string;
|
|
5
|
+
item: PisellHierarchicalSummaryListItem;
|
|
6
|
+
level: number;
|
|
7
|
+
index: number;
|
|
8
|
+
parentPathKeys: PisellHierarchicalSummaryListKey[];
|
|
9
|
+
expandedKeySet: ReadonlySet<PisellHierarchicalSummaryListKey>;
|
|
10
|
+
toggleExpanded: (key: PisellHierarchicalSummaryListKey, options?: {
|
|
11
|
+
siblingKeys?: PisellHierarchicalSummaryListKey[];
|
|
12
|
+
}) => void;
|
|
13
|
+
getKey: (item: PisellHierarchicalSummaryListItem, ctx: {
|
|
14
|
+
level: number;
|
|
15
|
+
index: number;
|
|
16
|
+
parentPathKeys: PisellHierarchicalSummaryListKey[];
|
|
17
|
+
}) => PisellHierarchicalSummaryListKey;
|
|
18
|
+
levelConfig?: Record<number, PisellHierarchicalSummaryListLevelConfig>;
|
|
19
|
+
indent: number;
|
|
20
|
+
rowGap: number;
|
|
21
|
+
gaps?: {
|
|
22
|
+
row?: number;
|
|
23
|
+
rowLeft?: number;
|
|
24
|
+
meta?: number;
|
|
25
|
+
rowRight?: number;
|
|
26
|
+
};
|
|
27
|
+
maxRenderLevel?: number;
|
|
28
|
+
maxExpandLevel?: number;
|
|
29
|
+
aggregate?: PisellHierarchicalSummaryListAggregateConfig;
|
|
30
|
+
renderLabel?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
|
|
31
|
+
renderValue?: (item: PisellHierarchicalSummaryListItem, ctx: PisellHierarchicalSummaryListRenderContext) => React.ReactNode;
|
|
32
|
+
/** 父行是否带有 itemsCount(仅此类子项显示圆点 + #667085,其他保持黑色) */
|
|
33
|
+
parentHasItemsCount?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const Row: React.FC<RowProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Row } from './Row';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PisellHierarchicalSummaryListKey } from '../types';
|
|
2
|
+
export interface UseExpandedKeysOptions {
|
|
3
|
+
expandedKeys?: PisellHierarchicalSummaryListKey[];
|
|
4
|
+
defaultExpandedKeys?: PisellHierarchicalSummaryListKey[];
|
|
5
|
+
onExpandedKeysChange?: (keys: PisellHierarchicalSummaryListKey[]) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface ExpandedKeysController {
|
|
8
|
+
expandedKeys: PisellHierarchicalSummaryListKey[];
|
|
9
|
+
expandedKeySet: ReadonlySet<PisellHierarchicalSummaryListKey>;
|
|
10
|
+
setExpandedKeys: (next: PisellHierarchicalSummaryListKey[]) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 展开态管理(兼容受控/非受控)。
|
|
14
|
+
*/
|
|
15
|
+
export declare function useExpandedKeys(options: UseExpandedKeysOptions): ExpandedKeysController;
|