@pisell/materials 6.11.204 → 6.11.205
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/MultilevelCard/components/PanelWrapper.d.ts +7 -0
- package/es/components/PisellCards/index.d.ts +1 -0
- package/es/components/PisellLayouts/index.d.ts +1 -0
- package/es/components/PisellMetrics/index.d.ts +1 -0
- package/es/components/PisellProcedure/PisellProcedure.d.ts +22 -0
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/es/components/PisellProcedure/components/FooterActions.d.ts +24 -0
- package/es/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
- package/es/components/PisellProcedure/components/ProcedureContent.d.ts +23 -0
- package/es/components/PisellProcedure/components/ProcedureSidebar.d.ts +38 -0
- package/es/components/PisellProcedure/components/index.d.ts +12 -0
- package/es/components/PisellProcedure/hooks/index.d.ts +8 -0
- package/es/components/PisellProcedure/hooks/useStepManager.d.ts +50 -0
- package/es/components/PisellProcedure/index.d.ts +5 -0
- package/es/components/PisellProcedure/types.d.ts +363 -0
- package/es/components/PisellProcedure/utils/footerPosition.d.ts +41 -0
- package/es/components/PisellProcedure/utils/index.d.ts +8 -0
- package/es/components/PisellProcedure/utils/layoutRatio.d.ts +42 -0
- package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
- package/es/components/PisellScrollView/components/Actions/index.d.ts +18 -0
- package/es/components/PisellScrollView/hooks/index.d.ts +3 -0
- package/es/components/PisellScrollView/hooks/useIntersection.d.ts +8 -0
- package/es/components/PisellScrollView/hooks/useScrollEvents.d.ts +20 -0
- package/es/components/PisellScrollView/index.d.ts +3 -0
- package/es/components/PisellScrollView/types.d.ts +203 -0
- package/es/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
- package/es/components/PisellSteps/hooks/index.d.ts +4 -0
- package/es/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
- package/es/components/PisellSteps/index.d.ts +3 -0
- package/es/components/PisellSteps/types.d.ts +257 -0
- package/es/components/PisellSteps/utils/index.d.ts +54 -0
- package/es/components/PisellSuperTabs/hooks/index.d.ts +1 -0
- package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
- package/es/components/PisellSuperTabs/index.d.ts +3 -0
- package/es/components/PisellSuperTabs/types.d.ts +212 -0
- package/es/components/PisellTabbar/constants.d.ts +47 -0
- package/es/components/PisellTabbar/hooks/index.d.ts +2 -0
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/es/components/PisellTabbar/types.d.ts +90 -0
- package/es/components/PisellTabbar/utils/index.d.ts +69 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +18 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +35 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +121 -0
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/pisellFind/PisellFind.stories.d.ts +45 -0
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +26 -0
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +39 -0
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +35 -0
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +25 -0
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +18 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
- package/es/components/pisellFloorMapLayout/utils/alignSnap.d.ts +64 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +59 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +33 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +50 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +27 -0
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +109 -0
- package/es/components/pisellGridPro/GridView/index.d.ts +6 -0
- package/es/components/pisellGridPro/GridView/type.d.ts +3 -0
- package/es/components/pisellLookup/PisellLookup.js +5 -3
- package/es/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
- package/es/components/pisellLookup/components/HotWords.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
- package/es/components/pisellLookup/components/SearchHistory.d.ts +7 -0
- package/es/components/pisellLookup/components/SuggestWords.d.ts +7 -0
- package/es/components/pisellLookup/components/index.d.ts +9 -0
- package/es/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
- package/es/components/pisellLookup/index.d.ts +6 -0
- package/es/components/pisellLookup/types.d.ts +672 -0
- package/es/components/pisellLookup/utils/index.d.ts +5 -0
- package/es/components/pisellLookup/utils/trigger.d.ts +42 -0
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +8 -0
- package/es/components/pisellMobileDateRangePicker/index.d.ts +2 -0
- package/es/components/pisellMobileDateRangePicker/types.d.ts +28 -0
- package/es/components/pisellModal/components/index.d.ts +1 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +4 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +73 -0
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +14 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +18 -0
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +2 -0
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +8 -0
- package/es/components/pisellReservationSchedule/locales.d.ts +43 -0
- package/es/components/pisellReservationSchedule/types.d.ts +52 -0
- package/es/components/pisellReservationScheduleBand/types.d.ts +68 -0
- package/es/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +9 -0
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +29 -0
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +41 -0
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +40 -0
- package/es/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +37 -0
- package/es/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +20 -0
- package/es/components/pisellTimeNavigator/types.d.ts +175 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +79 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/date/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/index.d.ts +1 -0
- package/es/components/table/Table/fields/number/index.d.ts +1 -0
- package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/es/components/table/Table/fields/search/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/Edit/index.d.ts +4 -0
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
- package/lib/components/PisellCards/index.d.ts +1 -0
- package/lib/components/PisellLayouts/index.d.ts +1 -0
- package/lib/components/PisellMetrics/index.d.ts +1 -0
- package/lib/components/PisellProcedure/PisellProcedure.d.ts +22 -0
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/lib/components/PisellProcedure/components/FooterActions.d.ts +24 -0
- package/lib/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
- package/lib/components/PisellProcedure/components/ProcedureContent.d.ts +23 -0
- package/lib/components/PisellProcedure/components/ProcedureSidebar.d.ts +38 -0
- package/lib/components/PisellProcedure/components/index.d.ts +12 -0
- package/lib/components/PisellProcedure/hooks/index.d.ts +8 -0
- package/lib/components/PisellProcedure/hooks/useStepManager.d.ts +50 -0
- package/lib/components/PisellProcedure/index.d.ts +5 -0
- package/lib/components/PisellProcedure/types.d.ts +363 -0
- package/lib/components/PisellProcedure/utils/footerPosition.d.ts +41 -0
- package/lib/components/PisellProcedure/utils/index.d.ts +8 -0
- package/lib/components/PisellProcedure/utils/layoutRatio.d.ts +42 -0
- package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +87 -0
- package/lib/components/PisellScrollView/components/Actions/index.d.ts +18 -0
- package/lib/components/PisellScrollView/hooks/index.d.ts +3 -0
- package/lib/components/PisellScrollView/hooks/useIntersection.d.ts +8 -0
- package/lib/components/PisellScrollView/hooks/useScrollEvents.d.ts +20 -0
- package/lib/components/PisellScrollView/index.d.ts +3 -0
- package/lib/components/PisellScrollView/types.d.ts +203 -0
- package/lib/components/PisellSteps/PisellSteps.stories.d.ts +155 -0
- package/lib/components/PisellSteps/hooks/index.d.ts +4 -0
- package/lib/components/PisellSteps/hooks/useStepClick.d.ts +11 -0
- package/lib/components/PisellSteps/index.d.ts +3 -0
- package/lib/components/PisellSteps/types.d.ts +257 -0
- package/lib/components/PisellSteps/utils/index.d.ts +54 -0
- package/lib/components/PisellSuperTabs/hooks/index.d.ts +1 -0
- package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
- package/lib/components/PisellSuperTabs/index.d.ts +3 -0
- package/lib/components/PisellSuperTabs/types.d.ts +212 -0
- package/lib/components/PisellTabbar/constants.d.ts +47 -0
- package/lib/components/PisellTabbar/hooks/index.d.ts +2 -0
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/lib/components/PisellTabbar/types.d.ts +90 -0
- package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +18 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +201 -0
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +35 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceSubForm/types.d.ts +117 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/ReadPretty.d.ts +9 -0
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/type.d.ts +87 -0
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.d.ts +23 -0
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Tabs/type.d.ts +38 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +121 -0
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/pisellFind/PisellFind.stories.d.ts +45 -0
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +26 -0
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +39 -0
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +35 -0
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +25 -0
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +18 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapPaletteTouchDrag.d.ts +21 -0
- package/lib/components/pisellFloorMapLayout/utils/alignSnap.d.ts +64 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +59 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +33 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +50 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +27 -0
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +109 -0
- package/lib/components/pisellGridPro/GridView/index.d.ts +6 -0
- package/lib/components/pisellGridPro/GridView/type.d.ts +3 -0
- package/lib/components/pisellLookup/PisellLookup.js +3 -2
- package/lib/components/pisellLookup/PisellLookup.stories.d.ts +129 -0
- package/lib/components/pisellLookup/components/HotWords.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupAuxiliary.d.ts +7 -0
- package/lib/components/pisellLookup/components/SearchHistory.d.ts +7 -0
- package/lib/components/pisellLookup/components/SuggestWords.d.ts +7 -0
- package/lib/components/pisellLookup/components/index.d.ts +9 -0
- package/lib/components/pisellLookup/hooks/useSearchHistory.d.ts +48 -0
- package/lib/components/pisellLookup/index.d.ts +6 -0
- package/lib/components/pisellLookup/types.d.ts +672 -0
- package/lib/components/pisellLookup/utils/index.d.ts +5 -0
- package/lib/components/pisellLookup/utils/trigger.d.ts +42 -0
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +8 -0
- package/lib/components/pisellMobileDateRangePicker/index.d.ts +2 -0
- package/lib/components/pisellMobileDateRangePicker/types.d.ts +28 -0
- package/lib/components/pisellModal/components/index.d.ts +1 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +4 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +73 -0
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/BookingCalendarStyle.d.ts +1 -1
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +14 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +18 -0
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +2 -0
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +8 -0
- package/lib/components/pisellReservationSchedule/locales.d.ts +43 -0
- package/lib/components/pisellReservationSchedule/types.d.ts +52 -0
- package/lib/components/pisellReservationScheduleBand/types.d.ts +68 -0
- package/lib/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +9 -0
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +29 -0
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +41 -0
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +40 -0
- package/lib/components/pisellTimeNavigator/hooks/index.d.ts +5 -0
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +37 -0
- package/lib/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +20 -0
- package/lib/components/pisellTimeNavigator/types.d.ts +175 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +79 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/date/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/index.d.ts +1 -0
- package/lib/components/table/Table/fields/number/index.d.ts +1 -0
- package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
- package/lib/components/table/Table/fields/search/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/Edit/index.d.ts +4 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RecordListWrapperProps } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* @title: RecordListWrapper 只读态
|
|
5
|
+
* @description: 低代码详情模式下展示每个 option 对应的 record 数据。
|
|
6
|
+
* 值结构: { optionValue: { field1: v1, field2: v2 } }
|
|
7
|
+
*/
|
|
8
|
+
declare const RecordListWrapperReadPretty: React.FC<RecordListWrapperProps>;
|
|
9
|
+
export default RecordListWrapperReadPretty;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const RecordListWrapperWithDataSource: (props: import("./type").RecordListWrapperProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
3
|
options?: any;
|
|
4
|
-
optionSourceType?: "default" | "
|
|
4
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
5
5
|
labelField: string;
|
|
6
6
|
valueField: string;
|
|
7
7
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModeType } from '../../dataSourceForm/type';
|
|
3
|
+
export interface RecordListWrapperOption {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
value: string | number;
|
|
6
|
+
}
|
|
7
|
+
export interface RecordListWrapperFieldSchema {
|
|
8
|
+
name: string;
|
|
9
|
+
label?: React.ReactNode;
|
|
10
|
+
component?: string;
|
|
11
|
+
componentName?: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
/** 接口类型,用于映射到具体组件(如 Select、Input 等) */
|
|
14
|
+
interface?: string;
|
|
15
|
+
options?: RecordListWrapperOption[];
|
|
16
|
+
props?: Record<string, any>;
|
|
17
|
+
/** 子字段(用于嵌套结构,如 Input.JSON) */
|
|
18
|
+
children?: RecordListWrapperFieldSchema[];
|
|
19
|
+
_children?: RecordListWrapperFieldSchema[];
|
|
20
|
+
schema?: Record<string, any>;
|
|
21
|
+
uiSchema?: {
|
|
22
|
+
title?: React.ReactNode;
|
|
23
|
+
enum?: RecordListWrapperOption[];
|
|
24
|
+
'x-component'?: string;
|
|
25
|
+
'x-component-props'?: Record<string, any>;
|
|
26
|
+
'x-read-pretty'?: boolean;
|
|
27
|
+
'x-validator'?: string;
|
|
28
|
+
'x-display'?: 'visible' | 'hidden' | 'none';
|
|
29
|
+
'x-pattern'?: 'editable' | 'disabled' | 'readPretty';
|
|
30
|
+
'x-data-source'?: {
|
|
31
|
+
type?: string;
|
|
32
|
+
options?: Array<{
|
|
33
|
+
id?: string;
|
|
34
|
+
label: string | Record<string, any>;
|
|
35
|
+
value: string;
|
|
36
|
+
color?: string;
|
|
37
|
+
}>;
|
|
38
|
+
labelField?: string;
|
|
39
|
+
valueField?: string;
|
|
40
|
+
dataSource?: any;
|
|
41
|
+
extraParams?: Record<string, any>;
|
|
42
|
+
};
|
|
43
|
+
'x-record-schema'?: RecordListWrapperSchema | RecordListWrapperFieldSchema[] | string;
|
|
44
|
+
default?: any;
|
|
45
|
+
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export interface RecordListWrapperSchema {
|
|
49
|
+
fields?: RecordListWrapperFieldSchema[];
|
|
50
|
+
properties?: Record<string, any>;
|
|
51
|
+
children?: RecordListWrapperFieldSchema[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @title RecordListWrapper 组件 Props
|
|
55
|
+
* @description
|
|
56
|
+
* 值结构为 Map:key 是 xDataSource option 的 value,value 是该 option 对应的表单字段值。
|
|
57
|
+
* 例如:{ "5": { "code": "xxx", "type": "yyy" }, "3": { "code": "aaa" } }
|
|
58
|
+
*/
|
|
59
|
+
export interface RecordListWrapperProps {
|
|
60
|
+
renderMode: ModeType;
|
|
61
|
+
/**
|
|
62
|
+
* 值: Map 结构
|
|
63
|
+
* - key: xDataSource option 的 value
|
|
64
|
+
* - value: 该 option 对应的 xRecordSchema 字段值对象
|
|
65
|
+
*/
|
|
66
|
+
value?: Record<string, Record<string, any>>;
|
|
67
|
+
onChange?: (value: Record<string, Record<string, any>>) => void;
|
|
68
|
+
/** xDataSource 选项列表,驱动 tabs 导航和 records 结构 */
|
|
69
|
+
options?: RecordListWrapperOption[];
|
|
70
|
+
/**
|
|
71
|
+
* 上部插槽:用户可在低代码平台拖入自定义导航组件。
|
|
72
|
+
* RecordListWrapper 会通过 cloneElement 注入 options、value(activeKey)、onChange。
|
|
73
|
+
*/
|
|
74
|
+
topSlot?: React.ReactNode;
|
|
75
|
+
slot?: React.ReactNode;
|
|
76
|
+
/** xRecordSchema:定义每条记录的子字段结构 */
|
|
77
|
+
xRecordSchema?: string | RecordListWrapperSchema | RecordListWrapperFieldSchema[];
|
|
78
|
+
/** 容器 children:低代码引擎渲染的子组件节点 */
|
|
79
|
+
children?: React.ReactNode;
|
|
80
|
+
/** 低代码设计模式标识 */
|
|
81
|
+
__designMode?: string;
|
|
82
|
+
/**
|
|
83
|
+
* 默认激活的 Tab key,外部传入时优先于 options[0].value
|
|
84
|
+
*/
|
|
85
|
+
defaultValue?: string;
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
3
|
options?: any;
|
|
4
|
-
optionSourceType?: "default" | "
|
|
4
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
5
5
|
labelField: string;
|
|
6
6
|
valueField: string;
|
|
7
7
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TabsProps } from './type';
|
|
3
|
+
import './Tabs.less';
|
|
4
|
+
/**
|
|
5
|
+
* Tabs 胶囊风格选项卡组件
|
|
6
|
+
*
|
|
7
|
+
* @description 提供类似 Segmented 控件的胶囊风格选项卡,支持受控与非受控模式。
|
|
8
|
+
* 用于表单中替代 Radio.Group,展示更为直观的标签页切换交互。
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Tabs
|
|
13
|
+
* value={current}
|
|
14
|
+
* options={[
|
|
15
|
+
* { label: '校区', value: 'campus' },
|
|
16
|
+
* { label: '场地', value: 'venue' },
|
|
17
|
+
* ]}
|
|
18
|
+
* onChange={(val) => setCurrent(val)}
|
|
19
|
+
* />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
declare const Tabs: React.FC<TabsProps>;
|
|
23
|
+
export default Tabs;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/** 包装 DataSource 层(提供数据源上下文) */
|
|
2
3
|
declare const FormItemTabs: (props: import("./type").TabsProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
|
|
3
4
|
options?: any;
|
|
4
|
-
optionSourceType?: "default" | "
|
|
5
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
5
6
|
labelField: string;
|
|
6
7
|
valueField: string;
|
|
7
8
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModeType } from '../../dataSourceForm/type';
|
|
3
|
+
/**
|
|
4
|
+
* Tabs 选项配置
|
|
5
|
+
*/
|
|
6
|
+
export interface TabOption {
|
|
7
|
+
/** 选项显示文本 */
|
|
8
|
+
label: React.ReactNode;
|
|
9
|
+
/** 选项对应的值 */
|
|
10
|
+
value: string | number;
|
|
11
|
+
/** 是否禁用该选项 */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Tabs 基础 Props(编辑态组件使用,不含 renderMode)
|
|
16
|
+
*/
|
|
17
|
+
export interface TabsProps {
|
|
18
|
+
/** 当前选中的值(受控) */
|
|
19
|
+
value?: string | number;
|
|
20
|
+
/** 默认选中的值(非受控) */
|
|
21
|
+
defaultValue?: string | number;
|
|
22
|
+
/** 选项列表 */
|
|
23
|
+
options?: TabOption[];
|
|
24
|
+
/** 是否禁用整个组件 */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** 选中值变化时的回调 */
|
|
27
|
+
onChange?: (value: string | number) => void;
|
|
28
|
+
/** 自定义类名 */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** 自定义样式 */
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Tabs ReadPretty Props(只读态组件使用,包含必填 renderMode)
|
|
35
|
+
*/
|
|
36
|
+
export interface TabsReadPrettyProps extends TabsProps {
|
|
37
|
+
renderMode: ModeType;
|
|
38
|
+
}
|
|
@@ -20,7 +20,7 @@ declare const formFieldMap: {
|
|
|
20
20
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
21
|
onChange: (value: string) => void;
|
|
22
22
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "
|
|
23
|
+
rootDomain: "saas" | "custom" | "xzero";
|
|
24
24
|
customDomain?: string | undefined;
|
|
25
25
|
value?: string | undefined;
|
|
26
26
|
tenantId: string;
|
|
@@ -35,7 +35,7 @@ declare const formFieldMap: {
|
|
|
35
35
|
};
|
|
36
36
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
37
|
options?: any;
|
|
38
|
-
optionSourceType?: "default" | "
|
|
38
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
39
39
|
labelField: string;
|
|
40
40
|
valueField: string;
|
|
41
41
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -62,7 +62,7 @@ declare const formFieldMap: {
|
|
|
62
62
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
63
63
|
FormItemRecordListWrapper: (props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
64
64
|
options?: any;
|
|
65
|
-
optionSourceType?: "default" | "
|
|
65
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
66
66
|
labelField: string;
|
|
67
67
|
valueField: string;
|
|
68
68
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -72,7 +72,7 @@ declare const formFieldMap: {
|
|
|
72
72
|
}) => import("react").JSX.Element;
|
|
73
73
|
FormItemTabs: (props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
74
74
|
options?: any;
|
|
75
|
-
optionSourceType?: "default" | "
|
|
75
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
76
76
|
labelField: string;
|
|
77
77
|
valueField: string;
|
|
78
78
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -81,11 +81,7 @@ declare const formFieldMap: {
|
|
|
81
81
|
extraParams?: Record<string, any> | undefined;
|
|
82
82
|
}) => import("react").JSX.Element;
|
|
83
83
|
};
|
|
84
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./
|
|
85
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
86
|
-
} & {
|
|
87
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
84
|
+
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
|
|
89
85
|
JSON: import("react").FC<any>;
|
|
90
86
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
91
87
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -98,7 +94,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
98
94
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
99
95
|
onChange: (value: string) => void;
|
|
100
96
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
101
|
-
rootDomain: "
|
|
97
|
+
rootDomain: "saas" | "custom" | "xzero";
|
|
102
98
|
customDomain?: string | undefined;
|
|
103
99
|
value?: string | undefined;
|
|
104
100
|
tenantId: string;
|
|
@@ -106,12 +102,16 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
106
102
|
fieldKey?: string | undefined;
|
|
107
103
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
108
104
|
}) | (import("react").FC<{}> & {
|
|
105
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
106
|
+
} & {
|
|
107
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
108
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
109
109
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
110
110
|
} & {
|
|
111
111
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
112
112
|
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
113
113
|
options?: any;
|
|
114
|
-
optionSourceType?: "default" | "
|
|
114
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
115
115
|
labelField: string;
|
|
116
116
|
valueField: string;
|
|
117
117
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -120,9 +120,9 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
120
120
|
extraParams?: Record<string, any> | undefined;
|
|
121
121
|
}) => import("react").JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
122
122
|
onChange: (value: string) => void;
|
|
123
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
123
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
124
124
|
options?: any;
|
|
125
|
-
optionSourceType?: "default" | "
|
|
125
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
126
126
|
labelField: string;
|
|
127
127
|
valueField: string;
|
|
128
128
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -131,7 +131,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
131
131
|
extraParams?: Record<string, any> | undefined;
|
|
132
132
|
}) => import("react").JSX.Element) | ((props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
133
133
|
options?: any;
|
|
134
|
-
optionSourceType?: "default" | "
|
|
134
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
135
135
|
labelField: string;
|
|
136
136
|
valueField: string;
|
|
137
137
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DataSourceType } from '../provider/dataSource/DataSourceContext';
|
|
2
|
+
export interface UseActionsParams {
|
|
3
|
+
dataSource?: DataSourceType;
|
|
4
|
+
currentValue?: 'server' | 'local';
|
|
5
|
+
__designMode?: string;
|
|
6
|
+
extraParams?: Record<string, any>;
|
|
7
|
+
}
|
|
8
|
+
declare const useActions: ({ dataSource: propsDataSource, currentValue: propsCurrentValue, __designMode, extraParams: propsExtraParams, }?: UseActionsParams) => {
|
|
9
|
+
create: (this: unknown, values: Record<string, any>) => Promise<any>;
|
|
10
|
+
get: (this: unknown) => Promise<any>;
|
|
11
|
+
update: (this: unknown, values: Record<string, any>) => Promise<any>;
|
|
12
|
+
list: (this: unknown, params: {
|
|
13
|
+
page: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
destroy: (this: unknown, id: string) => Promise<any>;
|
|
17
|
+
};
|
|
18
|
+
export default useActions;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Result } from 'ahooks/es/useRequest/src/types';
|
|
3
|
+
import { ActionsItem } from '../../dataSourceForm/serve';
|
|
4
|
+
export interface Field {
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
allowNull: boolean;
|
|
8
|
+
primaryKey: boolean;
|
|
9
|
+
unique: boolean;
|
|
10
|
+
autoIncrement: boolean;
|
|
11
|
+
description?: (null | string)[];
|
|
12
|
+
possibleTypes?: string[];
|
|
13
|
+
rawType: string;
|
|
14
|
+
interface: string;
|
|
15
|
+
uiSchema: UiSchema;
|
|
16
|
+
key?: string;
|
|
17
|
+
collectionName?: string;
|
|
18
|
+
collectionKey?: any;
|
|
19
|
+
dataSourceKey?: string;
|
|
20
|
+
defaultValue?: any;
|
|
21
|
+
}
|
|
22
|
+
interface UiSchema {
|
|
23
|
+
type?: string;
|
|
24
|
+
'x-component': string;
|
|
25
|
+
'x-component-props'?: Xcomponentprops;
|
|
26
|
+
'x-validator'?: string;
|
|
27
|
+
title: string;
|
|
28
|
+
default?: any;
|
|
29
|
+
enum?: any[];
|
|
30
|
+
}
|
|
31
|
+
interface Xcomponentprops {
|
|
32
|
+
style?: Style;
|
|
33
|
+
autoSize?: AutoSize;
|
|
34
|
+
stringMode?: boolean;
|
|
35
|
+
step?: string;
|
|
36
|
+
dateFormat?: string;
|
|
37
|
+
showTime?: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface AutoSize {
|
|
40
|
+
minRows: number;
|
|
41
|
+
}
|
|
42
|
+
interface Style {
|
|
43
|
+
width: string;
|
|
44
|
+
}
|
|
45
|
+
export declare type ActionTypes = 'list' | 'get' | 'update' | 'create' | 'destroy';
|
|
46
|
+
export declare type DataSourceType = {
|
|
47
|
+
fromSettingMeta: boolean;
|
|
48
|
+
fromDeviceSettingMeta?: boolean;
|
|
49
|
+
actions: {
|
|
50
|
+
get: ActionsItem;
|
|
51
|
+
update: ActionsItem;
|
|
52
|
+
create: ActionsItem;
|
|
53
|
+
delete: ActionsItem;
|
|
54
|
+
list: ActionsItem;
|
|
55
|
+
};
|
|
56
|
+
headerDataSource: string;
|
|
57
|
+
dataSourceKey: string;
|
|
58
|
+
filterTargetKey: string;
|
|
59
|
+
introspected: boolean;
|
|
60
|
+
isCustomApi: boolean;
|
|
61
|
+
key: string;
|
|
62
|
+
tableName: string;
|
|
63
|
+
logging: boolean;
|
|
64
|
+
name: string;
|
|
65
|
+
title: string;
|
|
66
|
+
titleField: string;
|
|
67
|
+
types: ActionTypes[];
|
|
68
|
+
fields: Field[];
|
|
69
|
+
options: {
|
|
70
|
+
apiType: string;
|
|
71
|
+
baseUrl: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare type DataSourceContextProps = {
|
|
75
|
+
dataSource: DataSourceType;
|
|
76
|
+
children?: React.ReactNode;
|
|
77
|
+
currentValue?: string;
|
|
78
|
+
actions?: {
|
|
79
|
+
list?: () => Promise<any>;
|
|
80
|
+
get?: () => Promise<any>;
|
|
81
|
+
update?: () => Promise<any>;
|
|
82
|
+
create?: () => Promise<any>;
|
|
83
|
+
destroy?: () => Promise<any>;
|
|
84
|
+
};
|
|
85
|
+
requestOptions?: {
|
|
86
|
+
list?: any;
|
|
87
|
+
get?: any;
|
|
88
|
+
update?: any;
|
|
89
|
+
create?: any;
|
|
90
|
+
destroy?: any;
|
|
91
|
+
};
|
|
92
|
+
overrideData?: {
|
|
93
|
+
list?: any;
|
|
94
|
+
get?: any;
|
|
95
|
+
};
|
|
96
|
+
autoRun?: {
|
|
97
|
+
list?: boolean;
|
|
98
|
+
get?: boolean;
|
|
99
|
+
};
|
|
100
|
+
extraParams?: {
|
|
101
|
+
list?: Record<string, any>;
|
|
102
|
+
get?: Record<string, any>;
|
|
103
|
+
update?: Record<string, any>;
|
|
104
|
+
create?: Record<string, any>;
|
|
105
|
+
destroy?: Record<string, any>;
|
|
106
|
+
};
|
|
107
|
+
__id?: string;
|
|
108
|
+
__designMode?: string;
|
|
109
|
+
};
|
|
110
|
+
export interface DataSourceContextType {
|
|
111
|
+
dataSource?: DataSourceType;
|
|
112
|
+
list: Result<any, any>;
|
|
113
|
+
destroy: Result<any, any>;
|
|
114
|
+
get: Result<any, any>;
|
|
115
|
+
update: Result<any, any>;
|
|
116
|
+
create: Result<any, any>;
|
|
117
|
+
__designMode?: string;
|
|
118
|
+
getCurrentRecord: () => any;
|
|
119
|
+
}
|
|
120
|
+
export declare const DataSourceContext: import("react").Context<DataSourceContextType>;
|
|
121
|
+
export default DataSourceContext;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface VariablesContextType {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
variables?: Record<string, any>;
|
|
5
|
+
registerVariable?: (value: Record<string, any>) => void;
|
|
6
|
+
parseVariable?: (str: string, localVariables?: Record<string, any>) => any;
|
|
7
|
+
registerValueVariable?: (componentId: string, value: Record<string, any>) => void;
|
|
8
|
+
registerFunctionVariable?: (componentId: string, value: Record<string, any>) => void;
|
|
9
|
+
subscribeVariables?: (listener: (allVariables: Record<string, any>, updateVariables: Record<string, any>) => void) => () => void;
|
|
10
|
+
config?: {
|
|
11
|
+
disabledHistoryListener?: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const VariablesContext: import("react").Context<VariablesContextType>;
|
|
15
|
+
export default VariablesContext;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string |
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string |
|
|
3
|
+
dataSourceKey: string | undefined;
|
|
4
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
4
5
|
};
|
|
5
6
|
export default useDataSourceKey;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PisellFind } from './index';
|
|
3
|
+
/**
|
|
4
|
+
* PisellFind 组件 Storybook
|
|
5
|
+
* 基于 PisellLookup 的组件内查找优化版本
|
|
6
|
+
*/
|
|
7
|
+
declare const meta: Meta<typeof PisellFind>;
|
|
8
|
+
export default meta;
|
|
9
|
+
declare type Story = StoryObj<typeof PisellFind>;
|
|
10
|
+
/**
|
|
11
|
+
* 基础示例 - 列表查找
|
|
12
|
+
*/
|
|
13
|
+
export declare const Basic: Story;
|
|
14
|
+
/**
|
|
15
|
+
* 表格查找
|
|
16
|
+
*/
|
|
17
|
+
export declare const TableFind: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Input 模式查找
|
|
20
|
+
*/
|
|
21
|
+
export declare const InputMode: Story;
|
|
22
|
+
/**
|
|
23
|
+
* 使用 Ref 控制
|
|
24
|
+
*/
|
|
25
|
+
export declare const WithRef: Story;
|
|
26
|
+
/**
|
|
27
|
+
* 显示确认按钮
|
|
28
|
+
*/
|
|
29
|
+
export declare const WithConfirmButton: Story;
|
|
30
|
+
/**
|
|
31
|
+
* 关闭历史记录
|
|
32
|
+
*/
|
|
33
|
+
export declare const NoHistory: Story;
|
|
34
|
+
/**
|
|
35
|
+
* 多字段搜索
|
|
36
|
+
*/
|
|
37
|
+
export declare const MultiFieldSearch: Story;
|
|
38
|
+
/**
|
|
39
|
+
* Drawer 模式
|
|
40
|
+
*/
|
|
41
|
+
export declare const DrawerMode: Story;
|
|
42
|
+
/**
|
|
43
|
+
* Playground - 自由配置
|
|
44
|
+
*/
|
|
45
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 编辑态选中图元旁的快捷操作:锁定 / 复制 / 删除(与侧栏同源逻辑)
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
export interface FloorMapEditQuickActionLabels {
|
|
6
|
+
lock: string;
|
|
7
|
+
unlock: string;
|
|
8
|
+
duplicate: string;
|
|
9
|
+
delete: string;
|
|
10
|
+
popTitle: string;
|
|
11
|
+
popDesc: string;
|
|
12
|
+
cancel: string;
|
|
13
|
+
okDelete: string;
|
|
14
|
+
ariaToolbar: string;
|
|
15
|
+
}
|
|
16
|
+
export interface FloorMapEditQuickActionsProps {
|
|
17
|
+
className?: string;
|
|
18
|
+
labels: FloorMapEditQuickActionLabels;
|
|
19
|
+
isLocked: boolean;
|
|
20
|
+
onToggleLock: () => void;
|
|
21
|
+
onDuplicate: () => void;
|
|
22
|
+
onDelete: () => void;
|
|
23
|
+
/** 画布 viewport scale,用于按 1/scale 反向缩放整个工具条,保持视觉尺寸恒定 */
|
|
24
|
+
viewportScale?: number;
|
|
25
|
+
}
|
|
26
|
+
export declare function FloorMapEditQuickActions(props: FloorMapEditQuickActionsProps): React.JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 编辑顶栏 Undo / Redo 自定义 SVG icon。
|
|
3
|
+
*
|
|
4
|
+
* 设计来源:业务方提供的「圆勾箭头」风格 —— 整圈 ~270° 回环 + 末端三角箭头。
|
|
5
|
+
* 替换 antd 的 `UndoOutlined` / `RedoOutlined`:原版箭头偏方、回勾过短,
|
|
6
|
+
* 在 24/16px 的小尺寸下与界面其它细线 icon 不齐,且 Undo/Redo 镜像不够直观。
|
|
7
|
+
*
|
|
8
|
+
* 实现要点:
|
|
9
|
+
* - `stroke="currentColor"`、无填充:颜色完全跟随父级 `color`,与 Ant Button text 模式一致;
|
|
10
|
+
* - viewBox 14×14,配合 `font-size: 14px` 自动得到 14px icon;调用方可通过 fontSize/CSS 调整;
|
|
11
|
+
* - `stroke-linecap=round` + `stroke-linejoin=round`:在 1.5px 细线下保持圆润、抗锯齿友好;
|
|
12
|
+
* - 箭头用同色 `path` 三角,避免 marker-end 在不同浏览器下的尺寸漂移;
|
|
13
|
+
* - 接受 `className` / `style` / 其它 SVG 属性透传(与 antd icon 体感一致)。
|
|
14
|
+
*/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
declare type HistoryIconProps = React.SVGProps<SVGSVGElement> & {
|
|
17
|
+
/** 与 antd icon 类似:用于覆盖默认 1em 尺寸 */
|
|
18
|
+
size?: number | string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Undo 图标:「↰」L 形带小圆角 —— 箭头在左侧水平指向左,主干由箭头水平向右、
|
|
22
|
+
* 经一个 1.5 半径的圆角折下、再竖直向下。
|
|
23
|
+
*
|
|
24
|
+
* 关于"看起来偏上":antd `.anticon { vertical-align: -0.125em }` 已经把整个 svg
|
|
25
|
+
* 相对文字基线下移 ~0.125em,但我们的形状在 viewBox 内是几何居中的(y ∈ [3,11]),
|
|
26
|
+
* 与 antd 自家 outline icon(路径几乎铺满 viewBox)在视觉密度上不同 ——
|
|
27
|
+
* 留白对称会让人眼判断"图形在 viewBox 上半"。
|
|
28
|
+
*
|
|
29
|
+
* 解决:把形状整体下移 1 单位到 y ∈ [4, 12],上侧留 4 / 下侧留 2,
|
|
30
|
+
* 让 icon 视觉中心匹配文字 x-height 中心,与 "Undo" 文本视觉齐平。
|
|
31
|
+
* x 仍保持 [3, 11] 居中。
|
|
32
|
+
*/
|
|
33
|
+
export declare function UndoHistoryIcon(props: HistoryIconProps): React.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Redo 图标:与 Undo 水平镜像,箭头在右侧指向右,干线右→左→下。
|
|
36
|
+
* 几何范围与 Undo 完全对称:x ∈ [3, 11]、y ∈ [4, 12]。
|
|
37
|
+
*/
|
|
38
|
+
export declare function RedoHistoryIcon(props: HistoryIconProps): React.JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 平面图布局根节点 BEM 前缀,与 `PisellFloorMapLayout.less` 中主 class 一致。
|
|
3
|
+
*/
|
|
4
|
+
export declare const FLOOR_MAP_LAYOUT_CLASS_PREFIX = "pisell-floor-map-layout";
|
|
5
|
+
/** 手机左侧图元栏 Drawer,低于右侧属性抽屉 */
|
|
6
|
+
export declare const FLOOR_MAP_PHONE_TOOLBAR_DRAWER_Z_INDEX = 2001;
|
|
7
|
+
/** 手机右侧图元详情 Drawer */
|
|
8
|
+
export declare const FLOOR_MAP_PHONE_EDIT_DRAWER_Z_INDEX = 2002;
|
|
9
|
+
/**
|
|
10
|
+
* 高于 {@link FLOOR_MAP_PHONE_EDIT_DRAWER_Z_INDEX},用于面板内 Popconfirm 等,避免被抽屉挡住。
|
|
11
|
+
*/
|
|
12
|
+
export declare const FLOOR_MAP_CONFIRM_OVERLAY_Z_INDEX = 2100;
|
|
13
|
+
/**
|
|
14
|
+
* 「全览」伪画布 Tab id。
|
|
15
|
+
* 仅在阅读态、启用画布 > 1 时插入到画布 Tab 列表末尾,用来承载「同时查看所有画布」的入口。
|
|
16
|
+
* 不会写入 `config.canvases`,也不参与视口持久化、items 计算等真实画布逻辑。
|
|
17
|
+
*/
|
|
18
|
+
export declare const FLOOR_MAP_OVERVIEW_TAB_ID = "__pisell_floor_map_overview__";
|
|
19
|
+
/**
|
|
20
|
+
* 全览视图:每个画布区块上方预留的标题带高度(像素)。
|
|
21
|
+
* 装箱时计入画布有效高度,保证画布之间的 gap 能容纳外置标题条。
|
|
22
|
+
*/
|
|
23
|
+
export declare const FLOOR_MAP_OVERVIEW_TITLE_BAND_HEIGHT = 36;
|
|
24
|
+
/** 全览视图:画布区块之间的最小间距(像素,含标题带外的净距) */
|
|
25
|
+
export declare const FLOOR_MAP_OVERVIEW_AREA_GAP = 40;
|
|
26
|
+
/**
|
|
27
|
+
* 编辑态侧栏调色板:每个分类直接展示的图元数量上限。
|
|
28
|
+
* 超出时显示「查看全部」,在弹窗内选择数量并批量落点(所有分类通用)。
|
|
29
|
+
*/
|
|
30
|
+
export declare const FLOOR_MAP_TOOLBAR_PALETTE_SIDEBAR_LIMIT = 5;
|
|
31
|
+
/**
|
|
32
|
+
* 右下 ViewControls Dock 底部留白(px):`bottom: 14` + chrome `56` + 与面板间距 `8`。
|
|
33
|
+
* 编辑/连线属性面板滚动区 `padding-bottom` 引用同名 CSS 变量。
|
|
34
|
+
*/
|
|
35
|
+
export declare const FLOOR_MAP_VIEWPORT_DOCK_BOTTOM_CLEARANCE = 78;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 平面图视口缓存:localStorage 读写、锁定态;供 useFloorMapTransformMetrics 使用。
|
|
3
|
+
*/
|
|
4
|
+
/** 平面图包围盒单侧默认外扩(像素);过大会导致首屏大量空白 */
|
|
5
|
+
export declare const DEFAULT_BOUNDING_PADDING = 56;
|
|
6
|
+
/** 视口内与首屏对齐时,图元束左上与容器边缘的留白 */
|
|
7
|
+
export declare const VIEWPORT_TOP_LEFT_MARGIN = 16;
|
|
8
|
+
/** 平面图视口(缩放 + 平移)持久化到 localStorage 的 key 前缀 */
|
|
9
|
+
export declare const VIEWPORT_STORAGE_PREFIX = "pisell-floor-map-layout.viewport:";
|
|
10
|
+
/** 视口锁定态持久化前缀(与视口位置分开存储) */
|
|
11
|
+
export declare const VIEWPORT_LOCK_STORAGE_PREFIX = "pisell-floor-map-layout.viewport-lock:";
|
|
12
|
+
/** 视口持久化写入节流(避免拖动 / 缩放过程中高频写 localStorage) */
|
|
13
|
+
export declare const VIEWPORT_PERSIST_DEBOUNCE_MS = 300;
|
|
14
|
+
/** 判定当前 transform 是否处于「适配视口」结果时的容差 */
|
|
15
|
+
export declare const FIT_BOUNDS_MATCH_POS_EPSILON = 0.5;
|
|
16
|
+
export declare const FIT_BOUNDS_MATCH_SCALE_EPSILON = 0.005;
|
|
17
|
+
export interface ViewportSnapshot {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
scale: number;
|
|
21
|
+
}
|
|
22
|
+
export declare function readPersistedViewport(key: string): ViewportSnapshot | null;
|
|
23
|
+
export declare function writePersistedViewport(key: string, snapshot: ViewportSnapshot): void;
|
|
24
|
+
export declare function readPersistedViewportLock(key: string): boolean;
|
|
25
|
+
export declare function writePersistedViewportLock(key: string, locked: boolean): void;
|