@pisell/materials 1.0.1078 → 1.0.1079
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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/es/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +301 -0
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/es/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +27 -0
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/TextCard/types.d.ts +277 -0
- package/es/components/PisellCards/components/index.d.ts +10 -0
- package/es/components/PisellCards/index.d.ts +17 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/es/components/PisellContactBrief/components/index.d.ts +5 -0
- package/es/components/PisellContactBrief/index.d.ts +6 -0
- package/es/components/PisellContactBrief/locales.d.ts +55 -0
- package/es/components/PisellContactBrief/types.d.ts +82 -0
- package/es/components/PisellFields/index.d.ts +37 -0
- package/es/components/PisellLayouts/index.d.ts +37 -0
- package/es/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/es/components/PisellTabbar/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar/index.d.ts +9 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
- package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/es/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/es/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
- package/es/components/PisellTabbar2/components/index.d.ts +1 -0
- package/es/components/PisellTabbar2/index.d.ts +6 -0
- package/es/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar3/index.d.ts +6 -0
- package/es/components/Template/[ComponentName].d.ts +0 -0
- package/es/components/appVersionControl/index.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +4 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -15
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/filter/components/Dropdown/types.d.ts +13 -0
- package/es/components/filter/components/FilterButton/types.d.ts +24 -0
- package/es/components/filter/types.d.ts +48 -0
- package/es/components/hardwareErrorTip/demo.d.ts +3 -0
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
- package/es/components/hardwareErrorTip/index.d.ts +19 -0
- package/es/components/hardwareErrorTip/logCard/index.d.ts +28 -0
- package/es/components/hardwareErrorTip/types.d.ts +28 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/login-and-register/index.d.ts +82 -0
- package/es/components/pisell-config-provider/index.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/es/components/pisellActionPanel/index.d.ts +6 -0
- package/es/components/pisellActionPanel/types.d.ts +83 -0
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/es/components/pisellBaseCard/index.d.ts +5 -0
- package/es/components/pisellBaseCard/types.d.ts +45 -0
- package/es/components/pisellBatchActionBar/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/es/components/pisellCustomerBrief/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/types.d.ts +82 -0
- package/es/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
- package/es/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
- package/es/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
- package/es/components/pisellDataSourceContainer/type.d.ts +84 -0
- package/es/components/pisellEmpty/index.d.ts +19 -0
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/es/components/pisellEntityCard/index.d.ts +5 -0
- package/es/components/pisellEntityCard/types.d.ts +144 -0
- package/es/components/pisellExport/PisellExport.d.ts +9 -0
- package/es/components/pisellExport/PisellExport.stories.d.ts +45 -0
- package/es/components/pisellExport/index.d.ts +2 -0
- package/es/components/pisellExport/types.d.ts +63 -0
- package/es/components/pisellFilter/type.d.ts +7 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +46 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.d.ts +53 -0
- package/es/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/es/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +19 -0
- package/es/components/pisellFloorMapLayout/components/index.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/es/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/es/components/pisellFloorMapLayout/index.d.ts +25 -0
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +113 -0
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +113 -0
- package/es/components/pisellFloorMapLayout/locales.d.ts +551 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/es/components/pisellFloorMapLayout/types.d.ts +604 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/es/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/es/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/es/components/pisellGridPro/index.d.ts +4 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -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/pisellImport/PisellImport.d.ts +9 -0
- package/es/components/pisellImport/PisellImport.stories.d.ts +49 -0
- package/es/components/pisellImport/index.d.ts +2 -0
- package/es/components/pisellImport/types.d.ts +85 -0
- package/es/components/pisellList01/index.d.ts +17 -0
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/es/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/es/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/es/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/es/components/pisellPhone/constants/countryCodes.d.ts +21 -0
- package/es/components/pisellPhone/index.d.ts +8 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/es/components/pisellPhone/utils/index.d.ts +6 -0
- package/es/components/pisellQuickFilter/type.d.ts +12 -0
- package/es/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/es/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/es/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/es/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/es/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +3 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +7 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +4 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
- package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/es/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/es/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +21 -0
- package/es/components/pisellRecordBoard/types.d.ts +468 -0
- package/es/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +20 -0
- package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
- package/es/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/es/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/es/components/pisellReservationSchedule/types.d.ts +47 -0
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/es/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/es/components/pisellReservationScheduleBand/types.d.ts +57 -0
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/es/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
- package/es/components/pisellShellFrame/index.d.ts +2 -0
- package/es/components/pisellShellFrame/types.d.ts +56 -0
- package/es/components/pisellStatisticList/index.d.ts +22 -0
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
- package/es/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/es/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/es/components/pisellTimeNavigator/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +35 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +9 -0
- package/es/components/productCard/cartSkuCard/locales.d.ts +163 -0
- package/es/components/productCard/components/Header/Actions/index.d.ts +4 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +85 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/types.d.ts +270 -0
- package/es/components/versionModal/index.d.ts +24 -0
- package/es/locales/en-US.d.ts +439 -0
- package/es/locales/index.d.ts +1 -0
- package/es/locales/ja.d.ts +360 -0
- package/es/locales/pt.d.ts +360 -0
- package/es/locales/zh-CN.d.ts +434 -0
- package/es/locales/zh-TW.d.ts +434 -0
- package/es/theme/pisell-components.d.ts +14 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +9 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/GraphicArea.d.ts +24 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/lib/components/PisellCards/components/GraphicTextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +301 -0
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +8 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +27 -0
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/TextCard/types.d.ts +277 -0
- package/lib/components/PisellCards/components/index.d.ts +10 -0
- package/lib/components/PisellCards/index.d.ts +17 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
- package/lib/components/PisellContactBrief/index.d.ts +6 -0
- package/lib/components/PisellContactBrief/locales.d.ts +55 -0
- package/lib/components/PisellContactBrief/types.d.ts +82 -0
- package/lib/components/PisellFields/index.d.ts +37 -0
- package/lib/components/PisellLayouts/index.d.ts +37 -0
- package/lib/components/PisellSteps/PisellSteps.d.ts +14 -0
- package/lib/components/PisellTabbar/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar/index.d.ts +9 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +5 -0
- package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/lib/components/PisellTabbar2/PisellTabbar.d.ts +23 -0
- package/lib/components/PisellTabbar2/components/TabbarLevel.d.ts +8 -0
- package/lib/components/PisellTabbar2/components/index.d.ts +1 -0
- package/lib/components/PisellTabbar2/index.d.ts +6 -0
- package/lib/components/PisellTabbar3/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar3/index.d.ts +6 -0
- package/lib/components/Template/[ComponentName].d.ts +0 -0
- package/lib/components/appVersionControl/index.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +4 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -15
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
- package/lib/components/filter/types.d.ts +48 -0
- package/lib/components/hardwareErrorTip/demo.d.ts +3 -0
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +29 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +13 -0
- package/lib/components/hardwareErrorTip/index.d.ts +19 -0
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +28 -0
- package/lib/components/hardwareErrorTip/types.d.ts +28 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/login-and-register/index.d.ts +82 -0
- package/lib/components/pisell-config-provider/index.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/lib/components/pisellActionPanel/index.d.ts +6 -0
- package/lib/components/pisellActionPanel/types.d.ts +83 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/lib/components/pisellBaseCard/index.d.ts +5 -0
- package/lib/components/pisellBaseCard/types.d.ts +45 -0
- package/lib/components/pisellBatchActionBar/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
- package/lib/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
- package/lib/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
- package/lib/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
- package/lib/components/pisellDataSourceContainer/type.d.ts +84 -0
- package/lib/components/pisellEmpty/index.d.ts +19 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/lib/components/pisellEntityCard/index.d.ts +5 -0
- package/lib/components/pisellEntityCard/types.d.ts +144 -0
- package/lib/components/pisellExport/PisellExport.d.ts +9 -0
- package/lib/components/pisellExport/PisellExport.stories.d.ts +45 -0
- package/lib/components/pisellExport/index.d.ts +2 -0
- package/lib/components/pisellExport/types.d.ts +63 -0
- package/lib/components/pisellFilter/type.d.ts +7 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.d.ts +55 -0
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +46 -0
- package/lib/components/pisellFloorMapLayout/components/ItemLayer.d.ts +53 -0
- package/lib/components/pisellFloorMapLayout/components/MapLayer.d.ts +27 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControlsWithZoom.d.ts +19 -0
- package/lib/components/pisellFloorMapLayout/components/index.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/context/FloorMapLayoutContext.d.ts +16 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.d.ts +5 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.d.ts +67 -0
- package/lib/components/pisellFloorMapLayout/hooks/useShopFloorPlanSubscription.d.ts +19 -0
- package/lib/components/pisellFloorMapLayout/index.d.ts +25 -0
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +113 -0
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +113 -0
- package/lib/components/pisellFloorMapLayout/locales.d.ts +551 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +10 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanMapping.d.ts +18 -0
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +22 -0
- package/lib/components/pisellFloorMapLayout/types.d.ts +604 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDataBindingUtils.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +11 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapRemotePersist.d.ts +17 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapViewConfigDiff.d.ts +8 -0
- package/lib/components/pisellFloorMapLayout/utils/layoutMeasurements.d.ts +30 -0
- package/lib/components/pisellFloorMapLayout/utils/mergeCanvasesForTabs.d.ts +7 -0
- package/lib/components/pisellGridPro/index.d.ts +4 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -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/pisellImport/PisellImport.d.ts +9 -0
- package/lib/components/pisellImport/PisellImport.stories.d.ts +49 -0
- package/lib/components/pisellImport/index.d.ts +2 -0
- package/lib/components/pisellImport/types.d.ts +85 -0
- package/lib/components/pisellList01/index.d.ts +17 -0
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/lib/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/lib/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +21 -0
- package/lib/components/pisellPhone/index.d.ts +8 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/lib/components/pisellPhone/utils/index.d.ts +6 -0
- package/lib/components/pisellQuickFilter/type.d.ts +12 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardContext.d.ts +3 -0
- package/lib/components/pisellRecordBoard/context/RecordBoardProvider.d.ts +11 -0
- package/lib/components/pisellRecordBoard/hooks/useRecordBoardContext.d.ts +16 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/CardList.d.ts +12 -0
- package/lib/components/pisellRecordBoard/layouts/CardLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +14 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/index.d.ts +13 -0
- package/lib/components/pisellRecordBoard/shellFrame/BatchActionBar/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendarDemo.d.ts +3 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/PisellRecordBoardCalendarView.d.ts +7 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/RecordBoardCalendar.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/index.d.ts +4 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +15 -0
- package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.d.ts +8 -0
- package/lib/components/pisellRecordBoard/shellFrame/FloorMap.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/Search/index.d.ts +10 -0
- package/lib/components/pisellRecordBoard/shellFrame/ShellBodyMetaContext.d.ts +21 -0
- package/lib/components/pisellRecordBoard/types.d.ts +468 -0
- package/lib/components/pisellRecordBoard/utils/partitionShellFrameChildren.d.ts +20 -0
- package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +52 -0
- package/lib/components/pisellRecordBoard/utils/withRecordBoard.d.ts +9 -0
- package/lib/components/pisellReservationSchedule/locales.d.ts +25 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +47 -0
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.stories.d.ts +16 -0
- package/lib/components/pisellReservationScheduleBand/index.d.ts +2 -0
- package/lib/components/pisellReservationScheduleBand/types.d.ts +57 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/lib/components/pisellShellFrame/PisellShellFrame.stories.d.ts +15 -0
- package/lib/components/pisellShellFrame/index.d.ts +2 -0
- package/lib/components/pisellShellFrame/types.d.ts +56 -0
- package/lib/components/pisellStatisticList/index.d.ts +22 -0
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.stories.d.ts +79 -0
- package/lib/components/pisellTimeNavigator/components/BackgroundLayer.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +25 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +33 -0
- package/lib/components/pisellTimeNavigator/components/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/useDragInertia.d.ts +14 -0
- package/lib/components/pisellTimeNavigator/hooks/useRealtime.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +27 -0
- package/lib/components/pisellTimeNavigator/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +35 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +4 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +9 -0
- package/lib/components/productCard/cartSkuCard/locales.d.ts +163 -0
- package/lib/components/productCard/components/Header/Actions/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +85 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/types.d.ts +270 -0
- package/lib/components/versionModal/index.d.ts +24 -0
- package/lib/locales/en-US.d.ts +439 -0
- package/lib/locales/index.d.ts +1 -0
- package/lib/locales/ja.d.ts +360 -0
- package/lib/locales/pt.d.ts +360 -0
- package/lib/locales/zh-CN.d.ts +434 -0
- package/lib/locales/zh-TW.d.ts +434 -0
- package/lib/theme/pisell-components.d.ts +14 -0
- package/package.json +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/es/components/pisellAdjustPrice/index.d.ts +0 -5
- package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/es/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/es/components/pisellText/components/Amount/index.d.ts +0 -20
- package/es/components/pisellToast/index.d.ts +0 -17
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/components/Sales/index.d.ts +0 -4
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/es/components/productCard/utils.d.ts +0 -33
- package/es/components/sort/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +0 -3
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +0 -39
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +0 -18
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -5
- package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
- package/lib/components/pisellFloorMapLayout/components/FloorMapImageElement.d.ts +0 -9
- package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
- package/lib/components/pisellToast/index.d.ts +0 -17
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/components/Sales/index.d.ts +0 -4
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -14
- package/lib/components/productCard/utils.d.ts +0 -33
- package/lib/components/sort/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -6
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GraphicTextCardProps } from './types';
|
|
3
|
+
import './GraphicTextCard.less';
|
|
4
|
+
/**
|
|
5
|
+
* Provider 包装器
|
|
6
|
+
* 兼容 PisellCards 系统的 props 传递方式
|
|
7
|
+
*/
|
|
8
|
+
declare const Provider: (props: GraphicTextCardProps) => React.JSX.Element;
|
|
9
|
+
export default Provider;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import GraphicTextCard from './GraphicTextCard';
|
|
3
|
+
/**
|
|
4
|
+
* GraphicTextCard 图文卡片组件
|
|
5
|
+
*
|
|
6
|
+
* 结合图标/图片、文本和状态标识,专为标签页、分类导航等场景设计。
|
|
7
|
+
* 支持 4 种样式变体、3 种尺寸、4 种状态,以及丰富的自定义配置。
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof GraphicTextCard>;
|
|
10
|
+
export default meta;
|
|
11
|
+
declare type Story = StoryObj<typeof GraphicTextCard>;
|
|
12
|
+
/**
|
|
13
|
+
* 基础用法 - 默认渲染
|
|
14
|
+
*/
|
|
15
|
+
export declare const Default: Story;
|
|
16
|
+
/**
|
|
17
|
+
* 基础用法 - 多个卡片
|
|
18
|
+
*/
|
|
19
|
+
export declare const MultipleCards: Story;
|
|
20
|
+
/**
|
|
21
|
+
* ReactNode 文本
|
|
22
|
+
*/
|
|
23
|
+
export declare const ReactNodeText: Story;
|
|
24
|
+
/**
|
|
25
|
+
* 样式变体 - 垂直布局-图片(vertical-image)
|
|
26
|
+
*/
|
|
27
|
+
export declare const VariantVerticalImage: Story;
|
|
28
|
+
/**
|
|
29
|
+
* 样式变体 - 垂直布局-图标(vertical-icon)
|
|
30
|
+
*/
|
|
31
|
+
export declare const VariantVerticalIcon: Story;
|
|
32
|
+
/**
|
|
33
|
+
* 样式变体 - 横向布局(horizontal)
|
|
34
|
+
*/
|
|
35
|
+
export declare const VariantHorizontal: Story;
|
|
36
|
+
/**
|
|
37
|
+
* 样式变体 - 卡片式(card)
|
|
38
|
+
*/
|
|
39
|
+
export declare const VariantCard: Story;
|
|
40
|
+
/**
|
|
41
|
+
* 尺寸 - Small
|
|
42
|
+
*/
|
|
43
|
+
export declare const SizeSmall: Story;
|
|
44
|
+
/**
|
|
45
|
+
* 尺寸 - Default
|
|
46
|
+
*/
|
|
47
|
+
export declare const SizeDefault: Story;
|
|
48
|
+
/**
|
|
49
|
+
* 尺寸 - Large
|
|
50
|
+
*/
|
|
51
|
+
export declare const SizeLarge: Story;
|
|
52
|
+
/**
|
|
53
|
+
* 状态 - Active
|
|
54
|
+
*/
|
|
55
|
+
export declare const StateActive: Story;
|
|
56
|
+
/**
|
|
57
|
+
* 状态 - Disabled
|
|
58
|
+
*/
|
|
59
|
+
export declare const StateDisabled: Story;
|
|
60
|
+
/**
|
|
61
|
+
* 状态 - Loading
|
|
62
|
+
*/
|
|
63
|
+
export declare const StateLoading: Story;
|
|
64
|
+
/**
|
|
65
|
+
* 状态 - 优先级测试
|
|
66
|
+
*/
|
|
67
|
+
export declare const StatePriority: Story;
|
|
68
|
+
/**
|
|
69
|
+
* 图形区域 - 图片优先
|
|
70
|
+
*/
|
|
71
|
+
export declare const GraphicImagePriority: Story;
|
|
72
|
+
/**
|
|
73
|
+
* 图形区域配置 - 自定义尺寸
|
|
74
|
+
*/
|
|
75
|
+
export declare const GraphicConfigSize: Story;
|
|
76
|
+
/**
|
|
77
|
+
* 图形区域配置 - 图标样式
|
|
78
|
+
*/
|
|
79
|
+
export declare const GraphicConfigIcon: Story;
|
|
80
|
+
/**
|
|
81
|
+
* 图形区域插槽
|
|
82
|
+
*/
|
|
83
|
+
export declare const GraphicSlot: Story;
|
|
84
|
+
/**
|
|
85
|
+
* 角标 - 红点角标
|
|
86
|
+
*/
|
|
87
|
+
export declare const BadgeDot: Story;
|
|
88
|
+
/**
|
|
89
|
+
* 角标 - 数字角标
|
|
90
|
+
*/
|
|
91
|
+
export declare const BadgeNumber: Story;
|
|
92
|
+
/**
|
|
93
|
+
* 角标 - 文本角标
|
|
94
|
+
*/
|
|
95
|
+
export declare const BadgeText: Story;
|
|
96
|
+
/**
|
|
97
|
+
* 角标 - 不同位置(通过 offset 控制)
|
|
98
|
+
*/
|
|
99
|
+
export declare const BadgePositions: Story;
|
|
100
|
+
/**
|
|
101
|
+
* 角标 - 大小控制
|
|
102
|
+
*/
|
|
103
|
+
export declare const BadgeSizes: Story;
|
|
104
|
+
/**
|
|
105
|
+
* 角标 - 显示零值
|
|
106
|
+
*/
|
|
107
|
+
export declare const BadgeShowZero: Story;
|
|
108
|
+
/**
|
|
109
|
+
* 边界值 - 角标大小和 offset 位置
|
|
110
|
+
*/
|
|
111
|
+
export declare const BadgeSizeAndOffset: Story;
|
|
112
|
+
/**
|
|
113
|
+
* 插槽 - 前置插槽
|
|
114
|
+
*/
|
|
115
|
+
export declare const PrefixSlot: Story;
|
|
116
|
+
/**
|
|
117
|
+
* 插槽 - 后置插槽
|
|
118
|
+
*/
|
|
119
|
+
export declare const SuffixSlot: Story;
|
|
120
|
+
/**
|
|
121
|
+
* 文本配置 - 字体样式
|
|
122
|
+
*/
|
|
123
|
+
export declare const TextConfig: Story;
|
|
124
|
+
/**
|
|
125
|
+
* 文本配置 - 文本省略
|
|
126
|
+
*/
|
|
127
|
+
export declare const TextEllipsis: Story;
|
|
128
|
+
/**
|
|
129
|
+
* 文本配置 - 文本对齐
|
|
130
|
+
*/
|
|
131
|
+
export declare const TextAlign: Story;
|
|
132
|
+
/**
|
|
133
|
+
* 宽度模式 - 自动宽度(auto)
|
|
134
|
+
*/
|
|
135
|
+
export declare const WidthModeAuto: Story;
|
|
136
|
+
/**
|
|
137
|
+
* 宽度模式 - 固定宽度(fixed)
|
|
138
|
+
*/
|
|
139
|
+
export declare const WidthModeFixed: Story;
|
|
140
|
+
/**
|
|
141
|
+
* 宽度模式 - 撑满容器(full)
|
|
142
|
+
*/
|
|
143
|
+
export declare const WidthModeFull: Story;
|
|
144
|
+
/**
|
|
145
|
+
* 交互 - 点击事件
|
|
146
|
+
*/
|
|
147
|
+
export declare const ClickInteraction: Story;
|
|
148
|
+
/**
|
|
149
|
+
* 交互 - 不可点击
|
|
150
|
+
*/
|
|
151
|
+
export declare const NotClickable: Story;
|
|
152
|
+
/**
|
|
153
|
+
* 综合示例 - 导航菜单
|
|
154
|
+
*/
|
|
155
|
+
export declare const NavigationMenu: Story;
|
|
156
|
+
/**
|
|
157
|
+
* 综合示例 - 商品分类
|
|
158
|
+
*/
|
|
159
|
+
export declare const ProductCategories: Story;
|
|
160
|
+
/**
|
|
161
|
+
* 综合示例 - 完整配置
|
|
162
|
+
*/
|
|
163
|
+
export declare const CompleteExample: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GraphicAreaProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* GraphicArea 图形区域组件
|
|
5
|
+
* 负责渲染图片或图标
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* // 渲染图片
|
|
11
|
+
* <GraphicArea
|
|
12
|
+
* image="https://example.com/image.png"
|
|
13
|
+
* config={{ width: 60, height: 60, borderRadius: 8 }}
|
|
14
|
+
* />
|
|
15
|
+
*
|
|
16
|
+
* // 渲染图标
|
|
17
|
+
* <GraphicArea
|
|
18
|
+
* icon={<SmileIcon />}
|
|
19
|
+
* config={{ width: 36, height: 36, iconSize: 24, iconColor: '#7F56D9' }}
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const GraphicArea: React.FC<GraphicAreaProps>;
|
|
24
|
+
export default GraphicArea;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextContentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* TextContent 文本内容组件
|
|
5
|
+
* 负责渲染主文本内容,支持省略和多行显示
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* // 单行文本
|
|
11
|
+
* <TextContent text="Tab title" />
|
|
12
|
+
*
|
|
13
|
+
* // 自定义样式
|
|
14
|
+
* <TextContent
|
|
15
|
+
* text="Tab title"
|
|
16
|
+
* textConfig={{
|
|
17
|
+
* fontSize: 16,
|
|
18
|
+
* fontWeight: 600,
|
|
19
|
+
* color: '#101828',
|
|
20
|
+
* maxLines: 2,
|
|
21
|
+
* textAlign: 'center'
|
|
22
|
+
* }}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const TextContent: React.FC<TextContentProps>;
|
|
27
|
+
export default TextContent;
|
package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GraphicTextCardProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* useGraphicTextCardClick Hook
|
|
4
|
+
* 处理组件点击事件的逻辑
|
|
5
|
+
*
|
|
6
|
+
* @param props - GraphicTextCard 组件的 Props
|
|
7
|
+
* @returns 点击事件处理函数
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const handleClick = useGraphicTextCardClick(props);
|
|
12
|
+
* <div onClick={handleClick}>...</div>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const useGraphicTextCardClick: (props: GraphicTextCardProps) => (event: React.MouseEvent<HTMLDivElement>) => void;
|
package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { GraphicTextCardProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* useGraphicTextCardStyle Hook
|
|
5
|
+
* 处理组件样式和类名的合并逻辑
|
|
6
|
+
*
|
|
7
|
+
* @param props - GraphicTextCard 组件的 Props
|
|
8
|
+
* @returns 合并后的样式和类名
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const { mergedStyle, mergedClassName } = useGraphicTextCardStyle(props);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const useGraphicTextCardStyle: (props: GraphicTextCardProps) => {
|
|
16
|
+
mergedStyle: CSSProperties;
|
|
17
|
+
mergedClassName: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { PisellBasicCardProps } from '../../types';
|
|
3
|
+
import { PisellImageCardProps } from '../PisellImageCard/types';
|
|
4
|
+
/**
|
|
5
|
+
* 样式变体类型
|
|
6
|
+
*/
|
|
7
|
+
export declare type GraphicTextCardVariant = 'vertical-image' | 'vertical-icon' | 'horizontal' | 'card';
|
|
8
|
+
/**
|
|
9
|
+
* 尺寸类型
|
|
10
|
+
*/
|
|
11
|
+
export declare type GraphicTextCardSize = 'small' | 'default' | 'large';
|
|
12
|
+
/**
|
|
13
|
+
* 宽度模式
|
|
14
|
+
*/
|
|
15
|
+
export declare type GraphicTextCardWidthMode = 'auto' | 'fixed' | 'full';
|
|
16
|
+
/**
|
|
17
|
+
* 图形区域配置
|
|
18
|
+
*/
|
|
19
|
+
export interface GraphicConfig extends PisellImageCardProps {
|
|
20
|
+
hidden?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 图形区域宽度(单位:px)
|
|
23
|
+
* 如不设置,将根据 variant 和 size 自动计算
|
|
24
|
+
*/
|
|
25
|
+
width?: number;
|
|
26
|
+
/**
|
|
27
|
+
* 图形区域高度(单位:px)
|
|
28
|
+
* 如不设置,将根据 variant 和 size 自动计算
|
|
29
|
+
*/
|
|
30
|
+
height?: number;
|
|
31
|
+
/**
|
|
32
|
+
* 图形区域圆角
|
|
33
|
+
*/
|
|
34
|
+
borderRadius?: number | string;
|
|
35
|
+
/**
|
|
36
|
+
* 图形区域背景色
|
|
37
|
+
*/
|
|
38
|
+
background?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 图形区域边框
|
|
41
|
+
*/
|
|
42
|
+
border?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 图形区域阴影
|
|
45
|
+
*/
|
|
46
|
+
boxShadow?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 图形区域内边距
|
|
49
|
+
*/
|
|
50
|
+
padding?: number | string;
|
|
51
|
+
/**
|
|
52
|
+
* 图标大小(当使用 icon 时有效,单位:px)
|
|
53
|
+
*/
|
|
54
|
+
iconSize?: number;
|
|
55
|
+
/**
|
|
56
|
+
* 图标颜色(当使用 icon 时有效)
|
|
57
|
+
*/
|
|
58
|
+
iconColor?: string;
|
|
59
|
+
/**
|
|
60
|
+
* 自定义样式
|
|
61
|
+
*/
|
|
62
|
+
style?: CSSProperties;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 角标类型
|
|
66
|
+
*/
|
|
67
|
+
export declare type BadgeType = 'dot' | 'number' | 'text';
|
|
68
|
+
/**
|
|
69
|
+
* 角标大小
|
|
70
|
+
*/
|
|
71
|
+
export declare type BadgeSize = 'small' | 'default';
|
|
72
|
+
/**
|
|
73
|
+
* 角标配置
|
|
74
|
+
*/
|
|
75
|
+
export interface BadgeConfig {
|
|
76
|
+
/**
|
|
77
|
+
* 角标类型
|
|
78
|
+
* @default 'dot'
|
|
79
|
+
*/
|
|
80
|
+
type?: BadgeType;
|
|
81
|
+
/**
|
|
82
|
+
* 角标内容(数字或文本)
|
|
83
|
+
* 当 type 为 'number' 或 'text' 时有效
|
|
84
|
+
*/
|
|
85
|
+
content?: ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* 角标偏移量 [x, y]
|
|
88
|
+
* 正数向右/下偏移,负数向左/上偏移
|
|
89
|
+
* 通过 offset 可以控制角标的位置,例如:
|
|
90
|
+
* - [0, 0] 或 不设置:默认右上角
|
|
91
|
+
* - [10, 10]:向右下偏移
|
|
92
|
+
* - [-10, -10]:向左上偏移
|
|
93
|
+
*/
|
|
94
|
+
offset?: [number, number];
|
|
95
|
+
/**
|
|
96
|
+
* 角标大小
|
|
97
|
+
*/
|
|
98
|
+
size?: BadgeSize;
|
|
99
|
+
/**
|
|
100
|
+
* 角标颜色
|
|
101
|
+
*/
|
|
102
|
+
color?: string;
|
|
103
|
+
/**
|
|
104
|
+
* 角标自定义样式
|
|
105
|
+
*/
|
|
106
|
+
style?: CSSProperties;
|
|
107
|
+
/**
|
|
108
|
+
* 角标是否显示零值
|
|
109
|
+
*/
|
|
110
|
+
showZero?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* 角标其他属性
|
|
113
|
+
*/
|
|
114
|
+
[key: string]: any;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 文本配置
|
|
118
|
+
*/
|
|
119
|
+
export interface TextConfig {
|
|
120
|
+
/**
|
|
121
|
+
* 字体大小(单位:px)
|
|
122
|
+
*/
|
|
123
|
+
fontSize?: number;
|
|
124
|
+
/**
|
|
125
|
+
* 字体粗细
|
|
126
|
+
*/
|
|
127
|
+
fontWeight?: string | number;
|
|
128
|
+
/**
|
|
129
|
+
* 文本颜色
|
|
130
|
+
*/
|
|
131
|
+
color?: string;
|
|
132
|
+
/**
|
|
133
|
+
* 最大显示行数
|
|
134
|
+
* @default 1
|
|
135
|
+
*/
|
|
136
|
+
maxLines?: number;
|
|
137
|
+
/**
|
|
138
|
+
* 是否显示省略号
|
|
139
|
+
* @default true
|
|
140
|
+
*/
|
|
141
|
+
ellipsis?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* 文本对齐方式
|
|
144
|
+
* @default 'left'
|
|
145
|
+
*/
|
|
146
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* GraphicTextCard 组件 Props
|
|
150
|
+
* 基于 PisellBasicCardProps 扩展
|
|
151
|
+
* 注意:重写 onClick 为可选属性
|
|
152
|
+
*/
|
|
153
|
+
export interface GraphicTextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
|
|
154
|
+
/**
|
|
155
|
+
* 卡片显示的文本内容(必填)
|
|
156
|
+
*/
|
|
157
|
+
text: ReactNode;
|
|
158
|
+
/**
|
|
159
|
+
* 卡片样式变体
|
|
160
|
+
* @default 'vertical-image'
|
|
161
|
+
*/
|
|
162
|
+
variant?: GraphicTextCardVariant;
|
|
163
|
+
/**
|
|
164
|
+
* 卡片尺寸
|
|
165
|
+
* @default 'default'
|
|
166
|
+
*/
|
|
167
|
+
size?: GraphicTextCardSize;
|
|
168
|
+
/**
|
|
169
|
+
* 是否可点击
|
|
170
|
+
* @default true
|
|
171
|
+
*/
|
|
172
|
+
clickable?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* 图片地址
|
|
175
|
+
* 与 icon 二选一,优先使用 image
|
|
176
|
+
*/
|
|
177
|
+
image?: string;
|
|
178
|
+
/**
|
|
179
|
+
* 图标
|
|
180
|
+
* 支持 ReactNode(如 antd Icon、svg 等)或图标 URL
|
|
181
|
+
* 与 image 二选一
|
|
182
|
+
*/
|
|
183
|
+
icon?: ReactNode;
|
|
184
|
+
/**
|
|
185
|
+
* 图形区域配置
|
|
186
|
+
* 用于自定义图形区域的样式和尺寸
|
|
187
|
+
*/
|
|
188
|
+
graphicConfig?: GraphicConfig;
|
|
189
|
+
/**
|
|
190
|
+
* 图形区域插槽
|
|
191
|
+
* 用于完全自定义图形区域,优先级高于 image 和 icon
|
|
192
|
+
*/
|
|
193
|
+
graphicSlot?: ReactNode;
|
|
194
|
+
/**
|
|
195
|
+
* 角标配置
|
|
196
|
+
* 用于显示红点、数字或文本提示
|
|
197
|
+
*/
|
|
198
|
+
badge?: BadgeConfig;
|
|
199
|
+
/**
|
|
200
|
+
* 前置插槽
|
|
201
|
+
* 用于在图形区域前添加自定义内容
|
|
202
|
+
*/
|
|
203
|
+
prefixSlot?: ReactNode;
|
|
204
|
+
/**
|
|
205
|
+
* 后置插槽
|
|
206
|
+
* 用于在文本内容后添加自定义内容
|
|
207
|
+
*/
|
|
208
|
+
suffixSlot?: ReactNode;
|
|
209
|
+
/**
|
|
210
|
+
* 文本配置
|
|
211
|
+
* 用于自定义文本样式和显示行为
|
|
212
|
+
*/
|
|
213
|
+
textConfig?: TextConfig;
|
|
214
|
+
/**
|
|
215
|
+
* 宽度模式
|
|
216
|
+
* - auto: 内容撑满,最大宽度 maxWidth
|
|
217
|
+
* - fixed: 固定宽度 width
|
|
218
|
+
* - full: 撑满父容器
|
|
219
|
+
* @default 'auto'
|
|
220
|
+
*/
|
|
221
|
+
widthMode?: GraphicTextCardWidthMode;
|
|
222
|
+
/**
|
|
223
|
+
* 固定宽度值
|
|
224
|
+
* 当 widthMode='fixed' 时有效
|
|
225
|
+
*/
|
|
226
|
+
width?: number | string;
|
|
227
|
+
/**
|
|
228
|
+
* 最大宽度
|
|
229
|
+
* 当 widthMode='auto' 时有效
|
|
230
|
+
* @default 400
|
|
231
|
+
*/
|
|
232
|
+
maxWidth?: number | string;
|
|
233
|
+
/**
|
|
234
|
+
* 点击事件
|
|
235
|
+
* 当 clickable=true 且不在 disabled/loading 状态时触发
|
|
236
|
+
* 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
|
|
237
|
+
*/
|
|
238
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
239
|
+
/**
|
|
240
|
+
* 自定义渲染函数
|
|
241
|
+
* 完全自定义组件的渲染内容
|
|
242
|
+
* 当提供此函数时,组件内置的渲染逻辑将被忽略
|
|
243
|
+
*/
|
|
244
|
+
render?: (props: GraphicTextCardProps) => ReactNode;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* GraphicArea 组件 Props
|
|
248
|
+
* 图形区域子组件
|
|
249
|
+
*/
|
|
250
|
+
export interface GraphicAreaProps {
|
|
251
|
+
/**
|
|
252
|
+
* 图片地址
|
|
253
|
+
*/
|
|
254
|
+
image?: string;
|
|
255
|
+
/**
|
|
256
|
+
* 图标内容
|
|
257
|
+
*/
|
|
258
|
+
icon?: ReactNode;
|
|
259
|
+
/**
|
|
260
|
+
* 图形配置
|
|
261
|
+
*/
|
|
262
|
+
config?: GraphicConfig;
|
|
263
|
+
/**
|
|
264
|
+
* 自定义类名
|
|
265
|
+
*/
|
|
266
|
+
className?: string;
|
|
267
|
+
aliWidth?: number;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* TextContent 组件 Props
|
|
271
|
+
* 文本内容子组件
|
|
272
|
+
*/
|
|
273
|
+
export interface TextContentProps {
|
|
274
|
+
/**
|
|
275
|
+
* 文本内容
|
|
276
|
+
*/
|
|
277
|
+
text: ReactNode;
|
|
278
|
+
/**
|
|
279
|
+
* 文本配置
|
|
280
|
+
*/
|
|
281
|
+
textConfig?: TextConfig;
|
|
282
|
+
/**
|
|
283
|
+
* 自定义类名
|
|
284
|
+
*/
|
|
285
|
+
className?: string;
|
|
286
|
+
active: PisellBasicCardProps['active'];
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* BadgeWrapper 组件 Props
|
|
290
|
+
* 角标包装子组件
|
|
291
|
+
*/
|
|
292
|
+
export interface BadgeWrapperProps {
|
|
293
|
+
/**
|
|
294
|
+
* 角标配置
|
|
295
|
+
*/
|
|
296
|
+
badge?: BadgeConfig;
|
|
297
|
+
/**
|
|
298
|
+
* 子元素
|
|
299
|
+
*/
|
|
300
|
+
children: ReactNode;
|
|
301
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GraphicTextCardVariant, GraphicTextCardSize } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* 获取图形区域的默认尺寸
|
|
4
|
+
* 根据样式变体和尺寸返回对应的默认宽高
|
|
5
|
+
*
|
|
6
|
+
* @param variant - 样式变体
|
|
7
|
+
* @param size - 尺寸
|
|
8
|
+
* @returns 默认的宽度和高度
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const size = getDefaultGraphicSize('vertical-image', 'default');
|
|
13
|
+
* // 返回 { width: 36, height: 36 }
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const getDefaultGraphicSize: (variant: GraphicTextCardVariant, size: GraphicTextCardSize) => {
|
|
17
|
+
width: number | string;
|
|
18
|
+
height: number | string;
|
|
19
|
+
};
|