@pisell/materials 6.11.24 → 6.11.26
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- package/es/components/PisellLayouts/index.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +0 -1
- package/es/components/pisellFilter/index.js +4 -2
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +4 -1
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.less +6 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +10 -1
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +8 -4
- package/es/components/pisellFloorMapLayout/components/ViewControls.less +14 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +12 -0
- package/es/components/pisellLookup/PisellLookup.less +13 -0
- package/es/components/pisellLookup/components/LookupTrigger.js +2 -1
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +1 -1
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +16 -5
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -5
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +71 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +16 -10
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +38 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +19 -0
- package/es/components/pisellRecordBoard/types.d.ts +5 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +11 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +59 -8
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.js +13 -0
- package/es/components/pisellReservationSchedule/PisellReservationSchedule.less +17 -0
- package/es/components/pisellReservationSchedule/types.d.ts +5 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +2 -1
- package/lib/components/PisellLayouts/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +0 -1
- package/lib/components/pisellFilter/index.js +4 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +20 -6
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.less +6 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +1 -1
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +7 -3
- package/lib/components/pisellFloorMapLayout/components/ViewControls.less +14 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +12 -0
- package/lib/components/pisellLookup/PisellLookup.less +13 -0
- package/lib/components/pisellLookup/components/LookupTrigger.js +4 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +1 -1
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +10 -2
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -5
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/ToolBarFilter.less +71 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +12 -8
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolbar.less +38 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.less +19 -0
- package/lib/components/pisellRecordBoard/types.d.ts +5 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +11 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +45 -8
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.js +22 -0
- package/lib/components/pisellReservationSchedule/PisellReservationSchedule.less +17 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +5 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +2 -1
- package/lowcode/render-figma-style-table-card/meta.ts +1 -1
- package/package.json +1 -1
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/es/components/PisellSuperTabs/types.d.ts +0 -212
- package/es/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/es/components/PisellTabbar/types.d.ts +0 -90
- package/es/components/PisellTabbar/utils/index.d.ts +0 -69
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/page/index.d.ts +0 -9
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/index.d.ts +0 -5
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellCardList/index.d.ts +0 -107
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/es/components/pisellFilter/type.d.ts +0 -7
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -113
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -113
- package/es/components/pisellFloorMapLayout/locales.d.ts +0 -551
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/es/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
- package/es/components/pisellGoodPassCard/index.d.ts +0 -50
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellModal/index.d.ts +0 -62
- package/es/components/pisellReservationSchedule/locales.d.ts +0 -25
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -25
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -33
- package/es/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
- package/es/components/pisellTimeNavigator/components/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
- package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
- package/es/components/pisellTimeNavigator/index.d.ts +0 -5
- package/es/components/pisellTimeNavigator/locales.d.ts +0 -22
- package/es/components/pisellTimeNavigator/types.d.ts +0 -160
- package/es/components/pisellTimeNavigator/utils/index.d.ts +0 -30
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/pisellWalletPassCard/index.d.ts +0 -146
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -178
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/es/components/productCard/components/Header/index.d.ts +0 -4
- package/es/components/productCard/components/Sales/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/locales.d.ts +0 -138
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -95
- package/es/components/productCard/utils.d.ts +0 -33
- package/es/components/select-time/index.d.ts +0 -14
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/es/components/table/index.d.ts +0 -4
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/index.d.ts +0 -251
- package/es/locales/en-US.d.ts +0 -387
- package/es/locales/ja.d.ts +0 -356
- package/es/locales/pt.d.ts +0 -356
- package/es/locales/zh-CN.d.ts +0 -382
- package/es/locales/zh-TW.d.ts +0 -382
- package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/lib/components/PisellSuperTabs/types.d.ts +0 -212
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +0 -20
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +0 -5
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/lib/components/PisellTabbar/types.d.ts +0 -90
- package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/page/index.d.ts +0 -9
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellCardList/index.d.ts +0 -107
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellDataSourceContainer/components/Pagination/index.d.ts +0 -6
- package/lib/components/pisellFilter/type.d.ts +0 -7
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -24
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +0 -21
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -113
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -113
- package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -551
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -72
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataRecordLabel.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapStageDefaults.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/snap.d.ts +0 -10
- package/lib/components/pisellGoodPassCard/index.d.ts +0 -50
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +0 -6
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +0 -10
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +0 -35
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +0 -1
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +0 -2
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +0 -15
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +0 -5
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +0 -248
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellModal/index.d.ts +0 -62
- package/lib/components/pisellReservationSchedule/locales.d.ts +0 -25
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.d.ts +0 -10
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +0 -79
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -25
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -33
- package/lib/components/pisellTimeNavigator/components/NowButton.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -22
- package/lib/components/pisellTimeNavigator/components/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +0 -14
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -27
- package/lib/components/pisellTimeNavigator/index.d.ts +0 -5
- package/lib/components/pisellTimeNavigator/locales.d.ts +0 -22
- package/lib/components/pisellTimeNavigator/types.d.ts +0 -160
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +0 -30
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -146
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -5
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -12
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -13
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -178
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/index.d.ts +0 -4
- package/lib/components/productCard/components/Sales/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/locales.d.ts +0 -138
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -95
- package/lib/components/productCard/utils.d.ts +0 -33
- package/lib/components/select-time/index.d.ts +0 -14
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/table/Table/AddFieldModal/index.d.ts +0 -4
- package/lib/components/table/index.d.ts +0 -4
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/index.d.ts +0 -251
- package/lib/locales/en-US.d.ts +0 -387
- package/lib/locales/ja.d.ts +0 -356
- package/lib/locales/pt.d.ts +0 -356
- package/lib/locales/zh-CN.d.ts +0 -382
- package/lib/locales/zh-TW.d.ts +0 -382
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* <Content />
|
|
14
14
|
* </PisellLayouts.ScrollView>
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" />
|
|
16
17
|
declare const PisellLayouts: {
|
|
17
18
|
BasicGrid: <T>(props: import("../PisellBasicGrid").PisellBasicGridProps<T>) => import("react").JSX.Element;
|
|
18
19
|
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("../PisellScrollView").PisellScrollViewProps, "ref"> & import("react").RefAttributes<import("../PisellScrollView").PisellScrollViewRef>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["value", "quickFilterMaxLength", "formFiltersPrefix", "hiddenQuickFilter", "hiddenOtherFilter", "hasForm", "onChange"];
|
|
1
|
+
var _excluded = ["value", "quickFilterMaxLength", "formFiltersPrefix", "hiddenQuickFilter", "hiddenOtherFilter", "hasForm", "onChange", "size"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -28,6 +28,7 @@ var PisellFilter = function PisellFilter(props) {
|
|
|
28
28
|
_props$hasForm = props.hasForm,
|
|
29
29
|
hasForm = _props$hasForm === void 0 ? true : _props$hasForm,
|
|
30
30
|
onChange = props.onChange,
|
|
31
|
+
size = props.size,
|
|
31
32
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
32
33
|
var _Form$useForm = Form.useForm(),
|
|
33
34
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -97,6 +98,7 @@ var PisellFilter = function PisellFilter(props) {
|
|
|
97
98
|
}, [value.quickFilter, value.otherFilter, value.values, onChange]);
|
|
98
99
|
var content = useMemo(function () {
|
|
99
100
|
return /*#__PURE__*/React.createElement(FilterButton, _extends({}, otherProps, {
|
|
101
|
+
size: size,
|
|
100
102
|
onChange: handleChange,
|
|
101
103
|
value: {
|
|
102
104
|
quickFilter: value.quickFilter,
|
|
@@ -107,7 +109,7 @@ var PisellFilter = function PisellFilter(props) {
|
|
|
107
109
|
quickFilterMaxLength: quickFilterMaxLength || 100,
|
|
108
110
|
formFiltersPrefix: formFiltersPrefix || ''
|
|
109
111
|
}));
|
|
110
|
-
}, [value, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix, handleChange]);
|
|
112
|
+
}, [value, size, hiddenQuickFilter, hiddenOtherFilter, quickFilterMaxLength, formFiltersPrefix, handleChange]);
|
|
111
113
|
if (hasForm) {
|
|
112
114
|
return /*#__PURE__*/React.createElement(Form, _extends({
|
|
113
115
|
form: form,
|
|
@@ -85,6 +85,9 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
85
85
|
floorMapFullscreenMode = p.floorMapFullscreenMode,
|
|
86
86
|
showDataSourceRecordFormBlock = p.showDataSourceRecordFormBlock,
|
|
87
87
|
floorMapViewportOverlay = p.floorMapViewportOverlay,
|
|
88
|
+
_p$viewportOverlayPla = p.viewportOverlayPlacement,
|
|
89
|
+
viewportOverlayPlacement = _p$viewportOverlayPla === void 0 ? 'top-start' : _p$viewportOverlayPla,
|
|
90
|
+
viewportOverlayClassName = p.viewportOverlayClassName,
|
|
88
91
|
canvasTabsBarTrailing = p.canvasTabsBarTrailing,
|
|
89
92
|
viewportDockTrailing = p.viewportDockTrailing;
|
|
90
93
|
var _theme$useToken = theme.useToken(),
|
|
@@ -636,7 +639,7 @@ function PisellFloorMapLayoutInner(props, ref) {
|
|
|
636
639
|
dockExpandedTrailing: viewportDockTrailing,
|
|
637
640
|
autoCollapseDockMs: 10000
|
|
638
641
|
}), isFloorMapView && floorMapViewportOverlay != null ? /*#__PURE__*/React.createElement("div", {
|
|
639
|
-
className: "".concat(PREFIX, "-viewport-overlay")
|
|
642
|
+
className: classNames("".concat(PREFIX, "-viewport-overlay"), _defineProperty({}, "".concat(PREFIX, "-viewport-overlay--bottom-start"), viewportOverlayPlacement === 'bottom-start'), viewportOverlayClassName)
|
|
640
643
|
}, typeof floorMapViewportOverlay === 'function' ? floorMapViewportOverlay({
|
|
641
644
|
items: items,
|
|
642
645
|
dataSources: dataSources,
|
|
@@ -243,7 +243,16 @@ export function FloorMapEditPanel(props) {
|
|
|
243
243
|
});
|
|
244
244
|
var isDragScrollSurface = useCallback(function (target) {
|
|
245
245
|
if (!(target instanceof Element)) return false;
|
|
246
|
-
|
|
246
|
+
/**
|
|
247
|
+
* 侧栏「按住空白拖动滚动」:仅在 scrollHeight > clientHeight 时对 pointerdown 调用 setPointerCapture。
|
|
248
|
+
*
|
|
249
|
+
* 为何常见「桌面点不进 Select 选项、iPad/触控模拟却可以」:
|
|
250
|
+
* - 无绑定的图元会多出「数据源 + 选数据行」两块,侧栏更易纵向溢出 → 桌面宽屏下右侧栏 maxHeight
|
|
251
|
+
* 往往更紧,容易触发可滚动 + 捕获;平板/模拟器视口更高或布局不同,有时内容不溢出则根本不会捕获。
|
|
252
|
+
* - 即便都可滚动:点在选项上时,Ant Design 的下拉层在 DOM 上多为 .ant-select-dropdown,与触发器 .ant-select
|
|
253
|
+
* 兄弟挂载,closest('.ant-select') 命中不了选项节点 → 被当成「空白滚动面」误捕获,表现为下拉展开但点击无响应。
|
|
254
|
+
*/
|
|
255
|
+
return !target.closest('input,textarea,button,select,.ant-select,.ant-select-dropdown,.pisell-lowcode-select-dropdown,.rc-select-dropdown,.ant-input,[contenteditable="true"]');
|
|
247
256
|
}, []);
|
|
248
257
|
var handlePanelPointerDown = useCallback(function (e) {
|
|
249
258
|
if (!isDragScrollSurface(e.target)) return;
|
|
@@ -24,6 +24,7 @@ var I18N_VC = 'pisell-floor-map-layout.view-controls';
|
|
|
24
24
|
/** 从 react-zoom-pan-pinch 拿到的控制 API(由主组件传入) */
|
|
25
25
|
|
|
26
26
|
export function ViewControls(props) {
|
|
27
|
+
var _config$horizontalAli;
|
|
27
28
|
var api = props.api,
|
|
28
29
|
_props$config = props.config,
|
|
29
30
|
config = _props$config === void 0 ? {} : _props$config,
|
|
@@ -45,6 +46,9 @@ export function ViewControls(props) {
|
|
|
45
46
|
var showFitBounds = config.showFitBounds === true;
|
|
46
47
|
var showFullscreen = config.showFullscreen === true;
|
|
47
48
|
var showGridToggle = config.showGridToggle === true && typeof onToggleMapGrid === 'function';
|
|
49
|
+
var horizontalAlign = (_config$horizontalAli = config.horizontalAlign) !== null && _config$horizontalAli !== void 0 ? _config$horizontalAli : 'start';
|
|
50
|
+
/** 右下 Dock:`row-reverse` 后入口在屏缘右侧,箭头与左下镜像(展开朝内左、收起朝外右) */
|
|
51
|
+
var isDockAlignEnd = horizontalAlign === 'end';
|
|
48
52
|
var scalePercent = Math.round(scale * 100);
|
|
49
53
|
var showTools = showReset || showFitBounds || showFullscreen || showGridToggle;
|
|
50
54
|
var hasTrailingSlot = dockExpandedTrailing != null && dockExpandedTrailing !== false;
|
|
@@ -175,14 +179,14 @@ export function ViewControls(props) {
|
|
|
175
179
|
onClick: handleDockCollapseClick,
|
|
176
180
|
"aria-expanded": dockExpanded,
|
|
177
181
|
"aria-label": locales.getText("".concat(I18N_VC, ".collapse-tools-aria"))
|
|
178
|
-
}, /*#__PURE__*/React.createElement(LeftOutlined, null)));
|
|
182
|
+
}, isDockAlignEnd ? /*#__PURE__*/React.createElement(RightOutlined, null) : /*#__PURE__*/React.createElement(LeftOutlined, null)));
|
|
179
183
|
};
|
|
180
184
|
if (!showBar) {
|
|
181
185
|
return null;
|
|
182
186
|
}
|
|
183
187
|
if (dockChrome && dockHasExpandable) {
|
|
184
188
|
return /*#__PURE__*/React.createElement("div", {
|
|
185
|
-
className: classNames("".concat(PREFIX, "-view-controls"), "".concat(PREFIX, "-view-controls--dock"), className)
|
|
189
|
+
className: classNames("".concat(PREFIX, "-view-controls"), "".concat(PREFIX, "-view-controls--dock"), horizontalAlign === 'end' && "".concat(PREFIX, "-view-controls--align-end"), className)
|
|
186
190
|
}, /*#__PURE__*/React.createElement("div", {
|
|
187
191
|
className: "".concat(PREFIX, "-view-controls-dock-row")
|
|
188
192
|
}, /*#__PURE__*/React.createElement("button", {
|
|
@@ -193,7 +197,7 @@ export function ViewControls(props) {
|
|
|
193
197
|
"aria-hidden": dockExpanded,
|
|
194
198
|
tabIndex: dockExpanded ? -1 : 0,
|
|
195
199
|
"aria-label": locales.getText("".concat(I18N_VC, ".expand-tools-aria"))
|
|
196
|
-
}, /*#__PURE__*/React.createElement(RightOutlined, null)), dockPanelMounted ? /*#__PURE__*/React.createElement("div", {
|
|
200
|
+
}, isDockAlignEnd ? /*#__PURE__*/React.createElement(LeftOutlined, null) : /*#__PURE__*/React.createElement(RightOutlined, null)), dockPanelMounted ? /*#__PURE__*/React.createElement("div", {
|
|
197
201
|
className: classNames("".concat(PREFIX, "-view-controls-dock-slide"), _defineProperty({}, "".concat(PREFIX, "-view-controls-dock-slide--open"), dockExpanded)),
|
|
198
202
|
onTransitionEnd: handleDockSlideTransitionEnd
|
|
199
203
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -204,7 +208,7 @@ export function ViewControls(props) {
|
|
|
204
208
|
}
|
|
205
209
|
var barClass = classNames("".concat(PREFIX, "-view-controls-bar"), _defineProperty({}, "".concat(PREFIX, "-view-controls-bar--dock"), dockChrome));
|
|
206
210
|
return /*#__PURE__*/React.createElement("div", {
|
|
207
|
-
className: classNames("".concat(PREFIX, "-view-controls"), className, _defineProperty({}, "".concat(PREFIX, "-view-controls--dock"), dockChrome))
|
|
211
|
+
className: classNames("".concat(PREFIX, "-view-controls"), className, _defineProperty(_defineProperty({}, "".concat(PREFIX, "-view-controls--dock"), dockChrome), "".concat(PREFIX, "-view-controls--align-end"), horizontalAlign === 'end'))
|
|
208
212
|
}, /*#__PURE__*/React.createElement("div", {
|
|
209
213
|
className: barClass,
|
|
210
214
|
role: "group",
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
left: 12px;
|
|
10
10
|
bottom: 12px;
|
|
11
11
|
z-index: 20;
|
|
12
|
+
|
|
13
|
+
&--align-end {
|
|
14
|
+
left: auto;
|
|
15
|
+
right: 12px;
|
|
16
|
+
}
|
|
12
17
|
pointer-events: auto;
|
|
13
18
|
display: flex;
|
|
14
19
|
flex-direction: row;
|
|
@@ -128,6 +133,15 @@
|
|
|
128
133
|
left: 14px;
|
|
129
134
|
bottom: 14px;
|
|
130
135
|
|
|
136
|
+
&.pisell-floor-map-layout-view-controls--align-end {
|
|
137
|
+
left: auto;
|
|
138
|
+
right: 14px;
|
|
139
|
+
|
|
140
|
+
.pisell-floor-map-layout-view-controls-dock-row {
|
|
141
|
+
flex-direction: row-reverse;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
131
145
|
/** 折叠键与可伸缩展开区同一行 */
|
|
132
146
|
|
|
133
147
|
.pisell-floor-map-layout-view-controls-dock-row {
|
|
@@ -114,6 +114,10 @@ export interface FloorMapControlsConfig {
|
|
|
114
114
|
* 是否显示网格开关(写入当前画布 draft 的 mapLayer.showGrid),默认 false
|
|
115
115
|
*/
|
|
116
116
|
showGridToggle?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* 悬浮控件条水平位置:`start` 左下(默认),`end` 右下
|
|
119
|
+
*/
|
|
120
|
+
horizontalAlign?: 'start' | 'end';
|
|
117
121
|
}
|
|
118
122
|
/**
|
|
119
123
|
* 布局模式(规则网格 vs 完全自由坐标)
|
|
@@ -559,6 +563,14 @@ export interface PisellFloorMapLayoutProps<T extends FloorMapItemBase = FloorMap
|
|
|
559
563
|
* 视口左下角 Dock 展开区业务插槽(与缩放/全屏同条),不占用顶栏 Tab 行;平面图模式推荐放「编辑画布」等。
|
|
560
564
|
*/
|
|
561
565
|
viewportDockTrailing?: ReactNode;
|
|
566
|
+
/**
|
|
567
|
+
* 平面图模式:`floorMapViewportOverlay` 锚点;默认左上,预约 HUD 等可用左下。
|
|
568
|
+
*/
|
|
569
|
+
viewportOverlayPlacement?: 'top-start' | 'bottom-start';
|
|
570
|
+
/**
|
|
571
|
+
* 视口悬浮层容器额外类名(如场控抽屉打开时需叠在固定层之上)。
|
|
572
|
+
*/
|
|
573
|
+
viewportOverlayClassName?: string;
|
|
562
574
|
/**
|
|
563
575
|
* 平面图模式:在地图视口内悬浮层(不随画布缩放平移),如状态统计。
|
|
564
576
|
* 传入函数时可拿到当前画布合并后的 items 与数据源。
|
|
@@ -172,8 +172,21 @@
|
|
|
172
172
|
// 小号输入框(同时匹配 ant- / pisell-lowcode-)
|
|
173
173
|
&-trigger-input.pisell-lowcode-input-affix-wrapper-sm,
|
|
174
174
|
&-trigger-input.ant-input-affix-wrapper-sm {
|
|
175
|
+
// 覆盖上方通用 affix 的 min-height:50px,否则 size=small 仍被撑成大号
|
|
176
|
+
min-height: 36px;
|
|
175
177
|
padding: 2px 2px 2px 12px;
|
|
176
178
|
|
|
179
|
+
.pisell-lowcode-input,
|
|
180
|
+
.ant-input {
|
|
181
|
+
font-size: 14px;
|
|
182
|
+
line-height: 22px;
|
|
183
|
+
|
|
184
|
+
&::placeholder {
|
|
185
|
+
font-size: 14px;
|
|
186
|
+
line-height: 22px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
177
190
|
.pisell-lookup-input-clear {
|
|
178
191
|
.anticon {
|
|
179
192
|
font-size: 18px;
|
|
@@ -228,10 +228,11 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
228
228
|
type: "pisell2-scan",
|
|
229
229
|
onClick: handleScanClick,
|
|
230
230
|
style: {
|
|
231
|
-
fontSize: 24
|
|
231
|
+
fontSize: size === 'small' ? 18 : size === 'large' ? 26 : 24
|
|
232
232
|
}
|
|
233
233
|
}), showConfirmButton && /*#__PURE__*/React.createElement(Button, {
|
|
234
234
|
type: "primary",
|
|
235
|
+
size: size,
|
|
235
236
|
onClick: handleConfirm,
|
|
236
237
|
className: "pisell-lookup-input-confirm"
|
|
237
238
|
}, confirmButtonText));
|
|
@@ -1682,7 +1682,7 @@ export var GridLayoutWithCollapseUniformColumns = {
|
|
|
1682
1682
|
parameters: {
|
|
1683
1683
|
docs: {
|
|
1684
1684
|
description: {
|
|
1685
|
-
story: 'grid.collapseUniformColumns: true
|
|
1685
|
+
story: 'grid.collapseUniformColumns: true 时,当前页某列全部同值或全部为空则隐藏该列;总结栏仅展示有意义文案,全空、「-」、空白及 render 为无信息等不展示对应总结项。本示例「支付状态」均已支付、「备注」均为空,两列均折叠,总结区仅出现支付状态。'
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
},
|
|
@@ -19,7 +19,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
19
19
|
import React, { useMemo, useRef, useState, useEffect } from 'react';
|
|
20
20
|
import { Table } from 'antd';
|
|
21
21
|
import { useRecordBoardContext } from "../../hooks/useRecordBoardContext";
|
|
22
|
-
import { processColumnsForGrid, getRecordBoardColumnKey, computeUniformColumnSummary } from "../../utils/recordBoardColumns";
|
|
22
|
+
import { processColumnsForGrid, getRecordBoardColumnKey, computeUniformColumnSummary, isTrivialUniformSummaryReactContent } from "../../utils/recordBoardColumns";
|
|
23
23
|
import { getText } from "../../../../locales";
|
|
24
24
|
import "./Grid.less";
|
|
25
25
|
function getRowKey(record, rowKey) {
|
|
@@ -104,13 +104,24 @@ var RecordBoardGridView = function RecordBoardGridView(props) {
|
|
|
104
104
|
var _computeUniformColumn = computeUniformColumnSummary(data, visibleByUser),
|
|
105
105
|
uniformHiddenColumnKeys = _computeUniformColumn.uniformHiddenColumnKeys,
|
|
106
106
|
items = _computeUniformColumn.summaryItems;
|
|
107
|
+
|
|
108
|
+
/** 有 render 时以实际渲染为准:「-」、空等不展示总结项;列仍按折叠规则隐藏 */
|
|
109
|
+
var finalSummaryItems = items.filter(function (item) {
|
|
110
|
+
var _item$record, _item$displayValue;
|
|
111
|
+
var processedCol = processedAllVisible.find(function (c) {
|
|
112
|
+
return getRecordBoardColumnKey(c) === item.columnKey;
|
|
113
|
+
});
|
|
114
|
+
var useRender = typeof (processedCol === null || processedCol === void 0 ? void 0 : processedCol.render) === 'function';
|
|
115
|
+
var content = useRender ? processedCol.render(item.cellValue, (_item$record = item.record) !== null && _item$record !== void 0 ? _item$record : {}, 0) : item.type === 'empty' ? getText('record-board-uniform-summary-empty') : (_item$displayValue = item.displayValue) !== null && _item$displayValue !== void 0 ? _item$displayValue : getText('record-board-uniform-summary-same');
|
|
116
|
+
return !isTrivialUniformSummaryReactContent(content);
|
|
117
|
+
});
|
|
107
118
|
var columnsForTable = processedAllVisible.filter(function (col) {
|
|
108
119
|
return !uniformHiddenColumnKeys.includes(getRecordBoardColumnKey(col));
|
|
109
120
|
});
|
|
110
121
|
return {
|
|
111
122
|
columns: columnsForTable,
|
|
112
|
-
uniformSummaryItems:
|
|
113
|
-
processedColumnsForSummary:
|
|
123
|
+
uniformSummaryItems: finalSummaryItems,
|
|
124
|
+
processedColumnsForSummary: finalSummaryItems.length > 0 ? processedAllVisible : undefined
|
|
114
125
|
};
|
|
115
126
|
}, [rawColumns, columnVisibility, columnOrder, collapseUniformColumns, ctx.data]),
|
|
116
127
|
columns = _useMemo.columns,
|
|
@@ -214,13 +225,13 @@ var RecordBoardGridView = function RecordBoardGridView(props) {
|
|
|
214
225
|
ref: summaryRef,
|
|
215
226
|
className: "pisell-record-board-uniform-summary"
|
|
216
227
|
}, summaryItems.map(function (item) {
|
|
217
|
-
var _item$
|
|
228
|
+
var _item$record2, _item$displayValue2;
|
|
218
229
|
var processedCol = processedColumnsForSummary === null || processedColumnsForSummary === void 0 ? void 0 : processedColumnsForSummary.find(function (c) {
|
|
219
230
|
return getRecordBoardColumnKey(c) === item.columnKey;
|
|
220
231
|
});
|
|
221
232
|
var useRender = typeof (processedCol === null || processedCol === void 0 ? void 0 : processedCol.render) === 'function';
|
|
222
233
|
// render 只接收表格单元格相同的 (value, record):value 固定用 cellValue(dataIndex 取值),绝不传 uniformCompare 的返回值
|
|
223
|
-
var content = useRender ? processedCol.render(item.cellValue, (_item$
|
|
234
|
+
var content = useRender ? processedCol.render(item.cellValue, (_item$record2 = item.record) !== null && _item$record2 !== void 0 ? _item$record2 : {}, 0) : item.type === 'empty' ? getText('record-board-uniform-summary-empty') : (_item$displayValue2 = item.displayValue) !== null && _item$displayValue2 !== void 0 ? _item$displayValue2 : getText('record-board-uniform-summary-same');
|
|
224
235
|
return /*#__PURE__*/React.createElement("div", {
|
|
225
236
|
key: item.columnKey,
|
|
226
237
|
className: "pisell-record-board-uniform-summary-item"
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
// iOS/WebKit:列表到达边界时不把弹性回弹传给外层(橡皮筋);fillHeight 时外层或表体内层其一滚动
|
|
49
|
+
.pisell-record-board-scroll-body {
|
|
50
|
+
overscroll-behavior: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
// 纯 CSS 占满高度:滚动发生在 .pisell-record-board-scroll-body,表头 sticky 固定;高度传到 table
|
|
49
54
|
.pisell-record-board-scroll-body .pisell-lowcode-record-board-grid {
|
|
50
55
|
height: 100%;
|
|
@@ -94,6 +99,14 @@
|
|
|
94
99
|
}
|
|
95
100
|
}
|
|
96
101
|
|
|
102
|
+
// scroll.y / autoCalc 时表体容器滚动;无 scroll-body 时亦同。统一关闭 iOS 弹性回弹
|
|
103
|
+
.pisell-record-board-root .pisell-lowcode-record-board-grid {
|
|
104
|
+
.pisell-lowcode-table-body,
|
|
105
|
+
.ant-table-body {
|
|
106
|
+
overscroll-behavior: none;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
97
110
|
// 行状态样式示例(如 grid.rowClassName 返回 'pisell-record-board-row-cancelled')
|
|
98
111
|
.pisell-record-board-row-cancelled {
|
|
99
112
|
background: #fff1f0;
|
|
@@ -11,9 +11,10 @@ import { getRecordBoardColumnKey } from "../../utils/recordBoardColumns";
|
|
|
11
11
|
import ColumnSettingPopover from "./ColumnSettingPopover";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
var RecordBoardColumnSetting = function RecordBoardColumnSetting() {
|
|
14
|
-
var _ctx$childComponentPr, _ctx$columnVisibility, _ctx$columnOrder;
|
|
14
|
+
var _ctx$childComponentPr, _ctx$childComponentPr2, _ctx$columnVisibility, _ctx$columnOrder;
|
|
15
15
|
var ctx = useRecordBoardContext();
|
|
16
|
-
var
|
|
16
|
+
var compactToolbar = ((_ctx$childComponentPr = ctx.childComponentProps) === null || _ctx$childComponentPr === void 0 || (_ctx$childComponentPr = _ctx$childComponentPr.toolBar) === null || _ctx$childComponentPr === void 0 ? void 0 : _ctx$childComponentPr.toolbarDensity) === 'compact';
|
|
17
|
+
var gridColumns = (_ctx$childComponentPr2 = ctx.childComponentProps) === null || _ctx$childComponentPr2 === void 0 || (_ctx$childComponentPr2 = _ctx$childComponentPr2.grid) === null || _ctx$childComponentPr2 === void 0 ? void 0 : _ctx$childComponentPr2.columns;
|
|
17
18
|
var columnVisibility = (_ctx$columnVisibility = ctx.columnVisibility) !== null && _ctx$columnVisibility !== void 0 ? _ctx$columnVisibility : {};
|
|
18
19
|
var onColumnVisibilityChange = ctx.onColumnVisibilityChange;
|
|
19
20
|
var columnOrder = (_ctx$columnOrder = ctx.columnOrder) !== null && _ctx$columnOrder !== void 0 ? _ctx$columnOrder : null;
|
|
@@ -48,15 +49,15 @@ var RecordBoardColumnSetting = function RecordBoardColumnSetting() {
|
|
|
48
49
|
display: 'inline-flex',
|
|
49
50
|
alignItems: 'center',
|
|
50
51
|
justifyContent: 'center',
|
|
51
|
-
width: 32,
|
|
52
|
-
height: 32,
|
|
52
|
+
width: compactToolbar ? 28 : 32,
|
|
53
|
+
height: compactToolbar ? 28 : 32,
|
|
53
54
|
cursor: 'pointer',
|
|
54
55
|
borderRadius: 6,
|
|
55
56
|
color: hasHiddenColumns ? 'var(--color-primary, #1890ff)' : undefined
|
|
56
57
|
}
|
|
57
58
|
}, /*#__PURE__*/React.createElement(EyeOutlined, {
|
|
58
59
|
style: {
|
|
59
|
-
fontSize: 18
|
|
60
|
+
fontSize: compactToolbar ? 15 : 18
|
|
60
61
|
}
|
|
61
62
|
})));
|
|
62
63
|
};
|
|
@@ -171,3 +171,74 @@
|
|
|
171
171
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* 紧凑工具栏:介于默认 50px 与 antd small 之间(约 38px),覆盖 Figma 的 !important
|
|
177
|
+
* Find:antd Input size=middle 时 affix 无 -sm 后缀,仍会吃到 PisellLookup 全局 min-height:50px,此处对 find 容器单独压高度
|
|
178
|
+
*/
|
|
179
|
+
.pisell-grid-pro-toolbar.pisell-record-board-toolbar--compact {
|
|
180
|
+
.record-board-toolbar-filter-btn {
|
|
181
|
+
height: auto !important;
|
|
182
|
+
min-height: 38px !important;
|
|
183
|
+
padding: 6px 14px !important;
|
|
184
|
+
font-size: 15px !important;
|
|
185
|
+
font-weight: 600 !important;
|
|
186
|
+
line-height: 22px !important;
|
|
187
|
+
|
|
188
|
+
.anticon {
|
|
189
|
+
font-size: 15px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&.pisell-lowcode-btn-lg {
|
|
193
|
+
height: auto !important;
|
|
194
|
+
min-height: 38px !important;
|
|
195
|
+
padding: 6px 14px !important;
|
|
196
|
+
font-size: 15px !important;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.record-board-toolbar-find-wrap {
|
|
201
|
+
.pisell-lookup-trigger-input.ant-input-affix-wrapper,
|
|
202
|
+
.pisell-lookup-trigger-input.pisell-lowcode-input-affix-wrapper {
|
|
203
|
+
min-height: 38px !important;
|
|
204
|
+
padding: 3px 6px 3px 12px !important;
|
|
205
|
+
|
|
206
|
+
.ant-input,
|
|
207
|
+
.pisell-lowcode-input {
|
|
208
|
+
font-size: 15px !important;
|
|
209
|
+
line-height: 22px !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ant-input::placeholder,
|
|
213
|
+
.pisell-lowcode-input::placeholder {
|
|
214
|
+
font-size: 15px !important;
|
|
215
|
+
line-height: 22px !important;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.pisell-lookup-trigger-input-no-confirm {
|
|
220
|
+
> .ant-input-affix-wrapper,
|
|
221
|
+
> .pisell-lowcode-input-affix-wrapper {
|
|
222
|
+
min-height: 38px !important;
|
|
223
|
+
padding: 3px 6px 3px 12px !important;
|
|
224
|
+
|
|
225
|
+
.ant-input,
|
|
226
|
+
.pisell-lowcode-input {
|
|
227
|
+
font-size: 15px !important;
|
|
228
|
+
line-height: 22px !important;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.ant-input::placeholder,
|
|
232
|
+
.pisell-lowcode-input::placeholder {
|
|
233
|
+
font-size: 15px !important;
|
|
234
|
+
line-height: 22px !important;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.pisell-lookup-input-confirm.pisell-lowcode-btn,
|
|
240
|
+
.pisell-lookup-input-confirm.ant-btn {
|
|
241
|
+
font-size: 14px !important;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -69,7 +69,7 @@ function getDefaultFilterValue() {
|
|
|
69
69
|
* 可透传 topLeft、topRight、bottomLeft、bottomRight、tabs。
|
|
70
70
|
*/
|
|
71
71
|
var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
72
|
-
var _shellMeta$hasGridCon, _shellMeta$hasFloorMa, _shellMeta$effectiveF, _ctx$childComponentPr, _ctx$childComponentPr2, _searchParams$DEFAULT, _ctx$childComponentPr3, _formFiltersPrefix,
|
|
72
|
+
var _shellMeta$hasGridCon, _shellMeta$hasFloorMa, _shellMeta$effectiveF, _ctx$childComponentPr, _ctx$childComponentPr2, _slots$toolbarDensity, _searchParams$DEFAULT, _ctx$childComponentPr3, _formFiltersPrefix, _filterResetKey;
|
|
73
73
|
var ctx = useRecordBoardContext({
|
|
74
74
|
displayName: 'toolBar'
|
|
75
75
|
});
|
|
@@ -86,6 +86,9 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
86
86
|
/** 业务可关闭双视图切换(如场控仅平面图),此时不渲染 Segmented */
|
|
87
87
|
var allowBodyViewToggle = showTableFloorToggle && ctx.bodyViewSwitchable !== false;
|
|
88
88
|
var slots = (_ctx$childComponentPr = (_ctx$childComponentPr2 = ctx.childComponentProps) === null || _ctx$childComponentPr2 === void 0 ? void 0 : _ctx$childComponentPr2.toolBar) !== null && _ctx$childComponentPr !== void 0 ? _ctx$childComponentPr : {};
|
|
89
|
+
var toolbarDensity = (_slots$toolbarDensity = slots.toolbarDensity) !== null && _slots$toolbarDensity !== void 0 ? _slots$toolbarDensity : 'default';
|
|
90
|
+
/** compact 用 middle:比 50px Figma 略紧凑,又比 small 更易点按;与下方 Less 中 ~38px 工具栏样式一致 */
|
|
91
|
+
var barSize = toolbarDensity === 'compact' ? 'middle' : 'large';
|
|
89
92
|
var keyword = (_searchParams$DEFAULT = searchParams === null || searchParams === void 0 ? void 0 : searchParams[DEFAULT_SEARCH_FIELD]) !== null && _searchParams$DEFAULT !== void 0 ? _searchParams$DEFAULT : '';
|
|
90
93
|
var handleSearch = useCallback(function (value) {
|
|
91
94
|
onSearch(_objectSpread(_objectSpread({}, searchParams), {}, _defineProperty({}, DEFAULT_SEARCH_FIELD, value || undefined)));
|
|
@@ -110,7 +113,9 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
110
113
|
return handleSearch(v);
|
|
111
114
|
},
|
|
112
115
|
onSearch: handleSearch
|
|
113
|
-
}, _typeof(searchConfig) === 'object' && searchConfig !== null ? searchConfig : {}
|
|
116
|
+
}, _typeof(searchConfig) === 'object' && searchConfig !== null ? searchConfig : {}, {
|
|
117
|
+
size: toolbarDensity === 'compact' ? barSize : _typeof(searchConfig) === 'object' && searchConfig !== null && 'size' in searchConfig && searchConfig.size != null ? searchConfig.size : barSize
|
|
118
|
+
}));
|
|
114
119
|
|
|
115
120
|
// 快筛统一放在左侧 QuickFilter;右侧 Filter 弹层只保留高级筛选,不展示快筛
|
|
116
121
|
var quickFilterConfig = slots.quickFilter;
|
|
@@ -134,11 +139,11 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
134
139
|
var quickFilterNode = showQuickFilterLeft ? /*#__PURE__*/React.createElement(ToolBarQuickFilter, {
|
|
135
140
|
filterList: quickFilterList,
|
|
136
141
|
formFiltersPrefix: _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null ? (_formFiltersPrefix = quickFilterConfig.formFiltersPrefix) !== null && _formFiltersPrefix !== void 0 ? _formFiltersPrefix : '' : '',
|
|
137
|
-
size: _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null ?
|
|
142
|
+
size: _typeof(quickFilterConfig) === 'object' && quickFilterConfig !== null ? quickFilterConfig.size : undefined
|
|
138
143
|
}) : null;
|
|
139
144
|
var bodyViewToggle = allowBodyViewToggle ? /*#__PURE__*/React.createElement(Segmented, {
|
|
140
145
|
className: "record-board-toolbar-body-view-segmented",
|
|
141
|
-
size:
|
|
146
|
+
size: barSize,
|
|
142
147
|
value: bodyView,
|
|
143
148
|
onChange: function onChange(v) {
|
|
144
149
|
return setBodyView(v);
|
|
@@ -190,7 +195,7 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
190
195
|
button: /*#__PURE__*/React.createElement(Button, {
|
|
191
196
|
className: "record-board-toolbar-filter-btn",
|
|
192
197
|
icon: /*#__PURE__*/React.createElement(SwitchVertical01, null),
|
|
193
|
-
size:
|
|
198
|
+
size: barSize
|
|
194
199
|
}, getSortButtonText())
|
|
195
200
|
}));
|
|
196
201
|
var filterConfig = slots.filter;
|
|
@@ -256,19 +261,20 @@ var RecordBoardToolBar = function RecordBoardToolBar(props) {
|
|
|
256
261
|
hasForm: true,
|
|
257
262
|
quickFilterMaxLength: 100,
|
|
258
263
|
formFiltersPrefix: "",
|
|
259
|
-
size: "large",
|
|
260
|
-
buttonClassName: "record-board-toolbar-filter-btn",
|
|
261
264
|
hiddenQuickFilter: true,
|
|
262
265
|
placement: "bottomLeft"
|
|
263
|
-
}, _typeof(filterConfig) === 'object' && filterConfig !== null ? filterConfig : {}
|
|
266
|
+
}, _typeof(filterConfig) === 'object' && filterConfig !== null ? filterConfig : {}, {
|
|
267
|
+
size: barSize,
|
|
268
|
+
buttonClassName: "record-board-toolbar-filter-btn"
|
|
269
|
+
}));
|
|
264
270
|
var showColumnSetting = slots.columnSetting !== false && Array.isArray(gridColumns) && gridColumns.length > 0;
|
|
265
271
|
var topRight = compactFloorMapToolbar ? null : /*#__PURE__*/React.createElement(Space, {
|
|
266
272
|
className: "record-board-toolbar-right-actions"
|
|
267
273
|
}, showColumnSetting ? /*#__PURE__*/React.createElement(RecordBoardColumnSetting, null) : null, sortNode, filterNode, /*#__PURE__*/React.createElement(ToolBarReset, {
|
|
268
|
-
size:
|
|
274
|
+
size: barSize
|
|
269
275
|
}), slots.topRight);
|
|
270
276
|
return /*#__PURE__*/React.createElement(PisellToolBar, {
|
|
271
|
-
className: classNames(bodyView === 'floorMap' && 'pisell-record-board-toolbar--floor-map', bodyView === 'grid' && 'pisell-record-board-toolbar--grid', slots.className),
|
|
277
|
+
className: classNames(bodyView === 'floorMap' && 'pisell-record-board-toolbar--floor-map', bodyView === 'grid' && 'pisell-record-board-toolbar--grid', toolbarDensity === 'compact' && 'pisell-record-board-toolbar--compact', slots.className),
|
|
272
278
|
style: slots.style,
|
|
273
279
|
tabs: slots.tabs,
|
|
274
280
|
topLeft: topLeft,
|
|
@@ -95,3 +95,41 @@
|
|
|
95
95
|
.pisell-grid-pro-toolbar.pisell-record-board-toolbar--grid.pisell-record-board-toolbar--narrow-stack {
|
|
96
96
|
.record-board-toolbar-grid-narrow-two-rows();
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 紧凑工具栏:与 antd size=small 配套,收紧留白,避免仍像默认大号行高。
|
|
101
|
+
*/
|
|
102
|
+
.pisell-grid-pro-toolbar.pisell-record-board-toolbar--compact {
|
|
103
|
+
padding-bottom: 8px !important;
|
|
104
|
+
gap: 6px !important;
|
|
105
|
+
|
|
106
|
+
> .pisell-grid-pro-toolbar-row.toolbar-row,
|
|
107
|
+
> .toolbar-row {
|
|
108
|
+
gap: 6px !important;
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.toolbar-row-left {
|
|
113
|
+
align-items: center !important;
|
|
114
|
+
gap: 6px !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.toolbar-row-right {
|
|
118
|
+
gap: 6px !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.record-board-toolbar-right-actions.ant-space {
|
|
122
|
+
gap: 6px !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.record-board-toolbar-top-left {
|
|
126
|
+
gap: 6px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.pisell-lookup-input-suffix {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
gap: 4px;
|
|
133
|
+
flex-wrap: nowrap;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -39,3 +39,22 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
/** RecordBoard 紧凑工具栏:与 Sort/Filter 同档(约 38px),避免仍用 Figma 50px */
|
|
44
|
+
.pisell-grid-pro-toolbar.pisell-record-board-toolbar--compact {
|
|
45
|
+
.record-board-toolbar-reset.pisell-lowcode-btn,
|
|
46
|
+
.record-board-toolbar-reset.ant-btn {
|
|
47
|
+
height: auto !important;
|
|
48
|
+
min-height: 38px !important;
|
|
49
|
+
padding: 6px 14px !important;
|
|
50
|
+
font-size: 15px !important;
|
|
51
|
+
line-height: 22px !important;
|
|
52
|
+
|
|
53
|
+
&.pisell-lowcode-btn-lg {
|
|
54
|
+
height: auto !important;
|
|
55
|
+
min-height: 38px !important;
|
|
56
|
+
padding: 6px 14px !important;
|
|
57
|
+
font-size: 15px !important;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -228,6 +228,11 @@ export declare type RecordBoardFilterProps = Record<string, any>;
|
|
|
228
228
|
* - filter:默认在工具栏右侧渲染 PisellFilter;为对象时透传 PisellFilter props;为 false 时不渲染。筛选值绑定 searchParams.filter,变更触发 onSearch。
|
|
229
229
|
*/
|
|
230
230
|
export interface RecordBoardToolBarProps {
|
|
231
|
+
/**
|
|
232
|
+
* `compact`:Find / 快筛 / 排序筛选 / 重置 / 视图切换等统一小号,用于窄容器(如 HUD 内嵌表)。
|
|
233
|
+
* @default 'default'
|
|
234
|
+
*/
|
|
235
|
+
toolbarDensity?: 'default' | 'compact';
|
|
231
236
|
className?: string;
|
|
232
237
|
style?: React.CSSProperties;
|
|
233
238
|
tabs?: React.ReactNode;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { RecordBoardColumnType } from '../types';
|
|
2
3
|
import type { FilterValueType } from '../../filter/components/FilterButton/types';
|
|
3
4
|
import type { SortItemProps } from '../../sort/types';
|
|
4
5
|
/** 获取列唯一 key,供列显示隐藏等使用 */
|
|
5
6
|
export declare function getRecordBoardColumnKey(column: RecordBoardColumnType): string;
|
|
7
|
+
/**
|
|
8
|
+
* 同值列总结栏不展示的内容:null/undefined、空串、纯空白、占位「-」。
|
|
9
|
+
* 列仍可折叠;仅用于不生成总结栏条目(避免「-」、空白等占位)。
|
|
10
|
+
*/
|
|
11
|
+
export declare function isTrivialUniformSummaryDisplayValue(v: any): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 总结区实际渲染的 React 节点是否视为无展示价值(与 {@link isTrivialUniformSummaryDisplayValue} 对齐,含一层子节点)。
|
|
14
|
+
*/
|
|
15
|
+
export declare function isTrivialUniformSummaryReactContent(node: React.ReactNode): boolean;
|
|
6
16
|
export interface UniformColumnSummaryItem {
|
|
7
17
|
columnKey: string;
|
|
8
18
|
title: string;
|
|
@@ -18,6 +28,7 @@ export interface UniformColumnSummaryItem {
|
|
|
18
28
|
}
|
|
19
29
|
/**
|
|
20
30
|
* 根据当前页 data 计算:哪些列「全列同值」或「全空」应隐藏,以及总结区展示项。
|
|
31
|
+
* 折叠列与总结项可不一一对应:全空、整列「-」/空白等同值仍折叠,但不生成无信息总结项。
|
|
21
32
|
* 仅当 grid.collapseUniformColumns 为 true 时使用。
|
|
22
33
|
*/
|
|
23
34
|
export declare function computeUniformColumnSummary(data: any[], columns: RecordBoardColumnType[]): {
|