@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,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellTabbar 工具函数
|
|
3
|
+
*/
|
|
4
|
+
import { TabbarDataSource } from '../../../types';
|
|
5
|
+
/**
|
|
6
|
+
* 向数据源添加特殊项(如 all、search、expand 按钮)
|
|
7
|
+
*
|
|
8
|
+
* @param dataSource - 原始数据源
|
|
9
|
+
* @param keys - 要添加的特殊项 key 数组
|
|
10
|
+
* @returns 添加了特殊项的新数据源
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const newData = addDataSourceItemsByKey(categoryData, ['expand', 'all']);
|
|
15
|
+
* // 返回: [expandItem, allItem, ...categoryData]
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const addDataSourceItemsByKey: (dataSource: TabbarDataSource[], keys: ('all' | 'search' | 'expand')[]) => TabbarDataSource[];
|
|
19
|
+
/**
|
|
20
|
+
* 获取默认激活的 key 数组
|
|
21
|
+
*
|
|
22
|
+
* @param dataSource - 数据源
|
|
23
|
+
* @param rowKey - 用作唯一标识的字段名
|
|
24
|
+
* @returns 默认激活的 key 数组(多层级)
|
|
25
|
+
*
|
|
26
|
+
* @description
|
|
27
|
+
* 默认选中第一项,如果第一项有子级,同时选中第一个子级
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const defaultKeys = getDefaultActiveKey(categoryData, 'id');
|
|
32
|
+
* // 返回: [1, 0] (第一层级的第一项ID,第二层级的第一项ID)
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const getDefaultActiveKey: (dataSource: TabbarDataSource[], rowKey: string) => (string | number)[];
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Tabbar 数据源项类型
|
|
4
|
+
*/
|
|
5
|
+
export interface TabbarDataSource {
|
|
6
|
+
/** 唯一标识 */
|
|
7
|
+
id: string | number;
|
|
8
|
+
/** 店铺ID */
|
|
9
|
+
shop_id?: number;
|
|
10
|
+
/** 父级ID */
|
|
11
|
+
parent_id?: number;
|
|
12
|
+
/** 显示名称 */
|
|
13
|
+
name: string;
|
|
14
|
+
/** URL slug */
|
|
15
|
+
slug?: string;
|
|
16
|
+
/** 图标 URL 或图标名称 */
|
|
17
|
+
icon?: string;
|
|
18
|
+
/** 子级数据 */
|
|
19
|
+
children?: TabbarDataSource[];
|
|
20
|
+
/** 自定义点击事件标识 */
|
|
21
|
+
customClick?: boolean;
|
|
22
|
+
/** 唯一 key */
|
|
23
|
+
key?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 层级配置
|
|
27
|
+
*/
|
|
28
|
+
export interface TabbarLevelConfig {
|
|
29
|
+
/** SuperTabs 背景色 */
|
|
30
|
+
superTabsBg: string;
|
|
31
|
+
/** 卡片宽度 */
|
|
32
|
+
cardWidth: number;
|
|
33
|
+
/** 卡片高度 */
|
|
34
|
+
cardHeight: number;
|
|
35
|
+
/** 左侧缩进 */
|
|
36
|
+
paddingLeft?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 展开配置
|
|
40
|
+
*/
|
|
41
|
+
export interface ExpandConfig {
|
|
42
|
+
/** 激活状态配置 */
|
|
43
|
+
active: {
|
|
44
|
+
icon: string;
|
|
45
|
+
text: string;
|
|
46
|
+
};
|
|
47
|
+
/** 未激活状态配置 */
|
|
48
|
+
inactive: {
|
|
49
|
+
icon: string;
|
|
50
|
+
text: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 展开状态
|
|
55
|
+
*/
|
|
56
|
+
export interface ExpandState {
|
|
57
|
+
level1: boolean;
|
|
58
|
+
level2: boolean;
|
|
59
|
+
level3: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 层级类型
|
|
63
|
+
*/
|
|
64
|
+
export declare type LevelType = 'level1' | 'level2' | 'level3';
|
|
65
|
+
/**
|
|
66
|
+
* PisellTabbar 组件属性
|
|
67
|
+
*/
|
|
68
|
+
export interface PisellTabbarProps {
|
|
69
|
+
/** 数据源 */
|
|
70
|
+
dataSource?: TabbarDataSource[];
|
|
71
|
+
/** 当前选中的值(多层级 key 数组) */
|
|
72
|
+
value?: (string | number)[];
|
|
73
|
+
/** 值变化回调 */
|
|
74
|
+
onChange?: (value: (string | number)[]) => void;
|
|
75
|
+
/** 自定义类名 */
|
|
76
|
+
className?: string;
|
|
77
|
+
/** 自定义样式 */
|
|
78
|
+
style?: CSSProperties;
|
|
79
|
+
/** 层级配置(可按层级自定义) */
|
|
80
|
+
levelConfig?: Partial<Record<LevelType, Partial<TabbarLevelConfig>>>;
|
|
81
|
+
/** 展开配置 */
|
|
82
|
+
expandConfig?: ExpandConfig;
|
|
83
|
+
/** 最大层级数 */
|
|
84
|
+
maxLevel?: 1 | 2 | 3;
|
|
85
|
+
onSearch?: (value: string) => void;
|
|
86
|
+
__designMode?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface PisellTabbarRef {
|
|
89
|
+
closeSearchMode: () => void;
|
|
90
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellTabbar 工具函数
|
|
3
|
+
*/
|
|
4
|
+
import { TabbarDataSource } from '../types';
|
|
5
|
+
/**
|
|
6
|
+
* 默认的特殊项配置
|
|
7
|
+
*/
|
|
8
|
+
export declare const defaultItems: {
|
|
9
|
+
all: {
|
|
10
|
+
id: number;
|
|
11
|
+
shop_id: number;
|
|
12
|
+
parent_id: number;
|
|
13
|
+
name: any;
|
|
14
|
+
slug: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
};
|
|
17
|
+
search: {
|
|
18
|
+
id: number;
|
|
19
|
+
shop_id: number;
|
|
20
|
+
parent_id: number;
|
|
21
|
+
name: any;
|
|
22
|
+
text: any;
|
|
23
|
+
slug: string;
|
|
24
|
+
key: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
customClick: boolean;
|
|
27
|
+
};
|
|
28
|
+
expand: {
|
|
29
|
+
id: number;
|
|
30
|
+
shop_id: number;
|
|
31
|
+
parent_id: number;
|
|
32
|
+
key: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
name: string;
|
|
35
|
+
slug: string;
|
|
36
|
+
customClick: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* 向数据源添加特殊项(如 all、search、expand 按钮)
|
|
41
|
+
*
|
|
42
|
+
* @param dataSource - 原始数据源
|
|
43
|
+
* @param keys - 要添加的特殊项 key 数组
|
|
44
|
+
* @returns 添加了特殊项的新数据源
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```tsx
|
|
48
|
+
* const newData = addDataSourceItemsByKey(categoryData, ['expand', 'all']);
|
|
49
|
+
* // 返回: [expandItem, allItem, ...categoryData]
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare const addDataSourceItemsByKey: (dataSource: TabbarDataSource[], keys: ('all' | 'search' | 'expand')[]) => TabbarDataSource[];
|
|
53
|
+
/**
|
|
54
|
+
* 获取默认激活的 key 数组
|
|
55
|
+
*
|
|
56
|
+
* @param dataSource - 数据源
|
|
57
|
+
* @param rowKey - 用作唯一标识的字段名
|
|
58
|
+
* @returns 默认激活的 key 数组(多层级)
|
|
59
|
+
*
|
|
60
|
+
* @description
|
|
61
|
+
* 默认选中第一项,如果第一项有子级,同时选中第一个子级
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```tsx
|
|
65
|
+
* const defaultKeys = getDefaultActiveKey(categoryData, 'id');
|
|
66
|
+
* // 返回: [1, 0] (第一层级的第一项ID,第二层级的第一项ID)
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare const getDefaultActiveKey: (dataSource: TabbarDataSource[], rowKey: string) => (string | number)[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModeType } from '../../type';
|
|
3
|
+
export interface FormSettingContextType {
|
|
4
|
+
onDataSourceFinish?: (values: any, result: any, form: any) => void;
|
|
5
|
+
renderMode?: ModeType;
|
|
6
|
+
groupInfoPosition?: 'top' | 'side';
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
currentValue?: 'server' | 'local';
|
|
9
|
+
size?: 'small' | 'middle' | 'large';
|
|
10
|
+
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
11
|
+
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
12
|
+
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
13
|
+
beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
|
|
14
|
+
scene?: 'template' | 'profile' | 'instance';
|
|
15
|
+
sceneRequestId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
|
|
18
|
+
export default FormSettingContext;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
export interface DataSourceType {
|
|
2
|
+
key: string;
|
|
3
|
+
displayName: string;
|
|
4
|
+
status: string;
|
|
5
|
+
type: string;
|
|
6
|
+
isDBInstance: boolean;
|
|
7
|
+
collections: Collection[];
|
|
8
|
+
}
|
|
9
|
+
export declare type ActionsItem = {
|
|
10
|
+
method: string;
|
|
11
|
+
path: string;
|
|
12
|
+
params: {
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
headers: {
|
|
17
|
+
name: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
body: Record<string, any>;
|
|
21
|
+
};
|
|
22
|
+
export interface Collection {
|
|
23
|
+
name: string;
|
|
24
|
+
title: string;
|
|
25
|
+
tableName: string;
|
|
26
|
+
timestamps: boolean;
|
|
27
|
+
autoGenId: boolean;
|
|
28
|
+
filterTargetKey: string;
|
|
29
|
+
fields: Field[];
|
|
30
|
+
introspected: boolean;
|
|
31
|
+
unavailableActions: any[];
|
|
32
|
+
actions: {
|
|
33
|
+
get: ActionsItem;
|
|
34
|
+
update: ActionsItem;
|
|
35
|
+
create: ActionsItem;
|
|
36
|
+
delete: ActionsItem;
|
|
37
|
+
list: ActionsItem;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
interface Field {
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
allowNull: boolean;
|
|
44
|
+
primaryKey: boolean;
|
|
45
|
+
unique: boolean;
|
|
46
|
+
autoIncrement: boolean;
|
|
47
|
+
description?: (null | string)[];
|
|
48
|
+
possibleTypes?: string[];
|
|
49
|
+
rawType: string;
|
|
50
|
+
interface: string;
|
|
51
|
+
uiSchema: UiSchema;
|
|
52
|
+
key?: string;
|
|
53
|
+
collectionName?: string;
|
|
54
|
+
collectionKey?: any;
|
|
55
|
+
dataSourceKey?: string;
|
|
56
|
+
defaultValue?: any;
|
|
57
|
+
}
|
|
58
|
+
interface UiSchema {
|
|
59
|
+
type?: string;
|
|
60
|
+
'x-component': string;
|
|
61
|
+
'x-component-props'?: Xcomponentprops;
|
|
62
|
+
'x-validator'?: string;
|
|
63
|
+
title: string;
|
|
64
|
+
default?: any;
|
|
65
|
+
enum?: any[];
|
|
66
|
+
}
|
|
67
|
+
interface Xcomponentprops {
|
|
68
|
+
style?: Style;
|
|
69
|
+
autoSize?: AutoSize;
|
|
70
|
+
stringMode?: boolean;
|
|
71
|
+
step?: string;
|
|
72
|
+
dateFormat?: string;
|
|
73
|
+
showTime?: boolean;
|
|
74
|
+
}
|
|
75
|
+
interface AutoSize {
|
|
76
|
+
minRows: number;
|
|
77
|
+
}
|
|
78
|
+
interface Style {
|
|
79
|
+
width: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 获取nocobase自定义数据源
|
|
83
|
+
*/
|
|
84
|
+
export declare const getNocobaseDataSource: () => Promise<DataSourceType[]>;
|
|
85
|
+
/**
|
|
86
|
+
* 获取nocobase主数据源
|
|
87
|
+
*/
|
|
88
|
+
export declare const getNocobaseMainDataSource: () => Promise<any>;
|
|
89
|
+
/**
|
|
90
|
+
* 获取nocobase数据源设置
|
|
91
|
+
*/
|
|
92
|
+
export declare const getNocobaseDataSourceOptions: () => Promise<any>;
|
|
93
|
+
/**
|
|
94
|
+
* 创建nocobase数据
|
|
95
|
+
*/
|
|
96
|
+
export declare const createNocobaseData: (params: {
|
|
97
|
+
key: string;
|
|
98
|
+
data: any;
|
|
99
|
+
headers?: any;
|
|
100
|
+
}) => Promise<any>;
|
|
101
|
+
/**
|
|
102
|
+
* nocobase get数据
|
|
103
|
+
*/
|
|
104
|
+
export declare const getNocobaseData: (params: {
|
|
105
|
+
key: string;
|
|
106
|
+
query: Record<string, any>;
|
|
107
|
+
headers?: any;
|
|
108
|
+
}) => Promise<any>;
|
|
109
|
+
/**
|
|
110
|
+
* 自定义api接口
|
|
111
|
+
*/
|
|
112
|
+
export declare const customApi: (url: string, data: Record<string, any>, options: {
|
|
113
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
114
|
+
baseUrl?: string | undefined;
|
|
115
|
+
headers?: {
|
|
116
|
+
name: string;
|
|
117
|
+
value: any;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
params?: {
|
|
120
|
+
name: string;
|
|
121
|
+
value: any;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
body?: Record<string, any> | undefined;
|
|
124
|
+
dataSourceKey?: string | undefined;
|
|
125
|
+
}) => Promise<any>;
|
|
126
|
+
/**
|
|
127
|
+
* 更新nocobase数据
|
|
128
|
+
*/
|
|
129
|
+
export declare const updateNocobaseData: (params: {
|
|
130
|
+
key: string;
|
|
131
|
+
data: any;
|
|
132
|
+
headers?: any;
|
|
133
|
+
query?: Record<string, any> | undefined;
|
|
134
|
+
}) => Promise<any>;
|
|
135
|
+
/**
|
|
136
|
+
* 获取nocobase数据列表
|
|
137
|
+
*/
|
|
138
|
+
export declare const getNocobaseDataList: (allParams: {
|
|
139
|
+
key: string;
|
|
140
|
+
params: {
|
|
141
|
+
page: number;
|
|
142
|
+
pageSize: number;
|
|
143
|
+
};
|
|
144
|
+
headers?: any;
|
|
145
|
+
}) => Promise<any>;
|
|
146
|
+
/**
|
|
147
|
+
* 删除nocobase数据
|
|
148
|
+
*/
|
|
149
|
+
export declare const deleteNocobaseData: (key: string, id: string, headers?: any) => Promise<any>;
|
|
150
|
+
/**
|
|
151
|
+
* 获取formSettingMeta数据
|
|
152
|
+
* @param params 请求参数
|
|
153
|
+
* @param params.sectionCodes 配置段代码数组,如 ['payment']
|
|
154
|
+
* @param params.businessCode 业务代码
|
|
155
|
+
* @param params.channelCode 渠道代码
|
|
156
|
+
* @param params.isBoard 是否包含board_code参数
|
|
157
|
+
* @returns Promise<any> 返回设置元数据
|
|
158
|
+
*/
|
|
159
|
+
export declare const getFormSettingMetaData: (params: {
|
|
160
|
+
sectionCodes: string[];
|
|
161
|
+
scope: string;
|
|
162
|
+
target?: string | undefined;
|
|
163
|
+
}) => Promise<any>;
|
|
164
|
+
/**
|
|
165
|
+
* 更新租户设置数据
|
|
166
|
+
* @param params 请求参数
|
|
167
|
+
* @param params.businessCode 业务代码
|
|
168
|
+
* @param params.channelCode 渠道代码
|
|
169
|
+
* @param params.boardCode 板块代码
|
|
170
|
+
* @param params.data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
|
|
171
|
+
* @returns Promise<any> 返回更新结果
|
|
172
|
+
*/
|
|
173
|
+
export declare const updateTenantSetting: (params: {
|
|
174
|
+
scope: string;
|
|
175
|
+
target?: string | undefined;
|
|
176
|
+
data: Record<string, any>;
|
|
177
|
+
}) => Promise<any>;
|
|
178
|
+
export declare type DeviceSettingScene = 'template' | 'profile' | 'instance';
|
|
179
|
+
/**
|
|
180
|
+
* 获取设备设置元数据(POST 类型 GET)
|
|
181
|
+
* @param params.scene 场景,默认 template
|
|
182
|
+
* @param params.sceneRequestId URL 中 {id} 占位符的实际取值
|
|
183
|
+
* @param params.items 需要获取的字段列表,例如 ['order.name', 'order.id']
|
|
184
|
+
*/
|
|
185
|
+
export declare const getDeviceSettingMetaData: (params: {
|
|
186
|
+
scene?: DeviceSettingScene | undefined;
|
|
187
|
+
sceneRequestId: string;
|
|
188
|
+
items: string[];
|
|
189
|
+
}) => Promise<any>;
|
|
190
|
+
/**
|
|
191
|
+
* 更新设备设置数据
|
|
192
|
+
* @param params.scene 场景,默认 template
|
|
193
|
+
* @param params.sceneRequestId URL 中 {id} 占位符的实际取值
|
|
194
|
+
* @param params.data 需要更新的字段值对象
|
|
195
|
+
*/
|
|
196
|
+
export declare const updateDeviceSetting: (params: {
|
|
197
|
+
scene?: DeviceSettingScene | undefined;
|
|
198
|
+
sceneRequestId: string;
|
|
199
|
+
data: Record<string, any>;
|
|
200
|
+
}) => Promise<any>;
|
|
201
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataSourceType } from "../provider/dataSource/DataSourceContext";
|
|
3
|
+
export declare type ModeType = 'edit' | 'add' | 'view' | 'disabled' | 'hidden' | 'tableView';
|
|
4
|
+
export interface DataSourceFormProps {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
dataSource: DataSourceType;
|
|
8
|
+
extraParams?: Record<string, any>;
|
|
9
|
+
showTitle: boolean;
|
|
10
|
+
showDescription: boolean;
|
|
11
|
+
groupInfoPosition: 'top' | 'side';
|
|
12
|
+
variables: any[];
|
|
13
|
+
renderMode?: ModeType;
|
|
14
|
+
currentValue?: 'server' | 'local';
|
|
15
|
+
scene?: 'template' | 'profile' | 'instance';
|
|
16
|
+
sceneRequestId?: string;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
size?: 'small' | 'middle' | 'large';
|
|
20
|
+
onDataSourceFinish?: (values: any, result: any) => void;
|
|
21
|
+
__designMode?: string;
|
|
22
|
+
formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
|
|
23
|
+
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
24
|
+
onDataSourceLoaded?: (values: Record<string, any>, result: any) => void;
|
|
25
|
+
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
26
|
+
beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
|
|
27
|
+
leaveConfirmConfig?: {
|
|
28
|
+
enable: boolean;
|
|
29
|
+
title: string;
|
|
30
|
+
content: string;
|
|
31
|
+
icon: React.ReactNode;
|
|
32
|
+
okText: string;
|
|
33
|
+
cancelText: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -44,7 +44,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
|
|
|
44
44
|
}) => React.JSX.Element;
|
|
45
45
|
export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
|
|
46
46
|
options?: any;
|
|
47
|
-
optionSourceType?: "default" | "
|
|
47
|
+
optionSourceType?: "default" | "api" | "custom" | undefined;
|
|
48
48
|
labelField: string;
|
|
49
49
|
valueField: string;
|
|
50
50
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModeType } from '../dataSourceForm/type';
|
|
3
|
+
/**
|
|
4
|
+
* @title 字段选项接口
|
|
5
|
+
* @description 用于下拉框、单选框等组件的选项配置
|
|
6
|
+
*/
|
|
7
|
+
export interface DataSourceSubFormOption {
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
value: string | number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @title 字段 Schema 接口
|
|
13
|
+
* @description 定义表单字段的结构和配置
|
|
14
|
+
*/
|
|
15
|
+
export interface DataSourceSubFormFieldSchema {
|
|
16
|
+
/** 字段名称(必填) */
|
|
17
|
+
name: string;
|
|
18
|
+
/** 字段标签 */
|
|
19
|
+
label?: React.ReactNode;
|
|
20
|
+
/** 组件类型(兼容多种命名方式) */
|
|
21
|
+
component?: string;
|
|
22
|
+
componentName?: string;
|
|
23
|
+
/** 字段数据类型 */
|
|
24
|
+
type?: string;
|
|
25
|
+
/** 接口类型,用于映射到具体组件(如 Select、Input 等) */
|
|
26
|
+
interface?: string;
|
|
27
|
+
/** 字段选项列表(用于 Select、Radio 等) */
|
|
28
|
+
options?: DataSourceSubFormOption[];
|
|
29
|
+
/** 组件额外配置 */
|
|
30
|
+
props?: Record<string, any>;
|
|
31
|
+
/** 子字段(用于嵌套结构,如 Input.JSON) */
|
|
32
|
+
children?: DataSourceSubFormFieldSchema[];
|
|
33
|
+
_children?: DataSourceSubFormFieldSchema[];
|
|
34
|
+
/** 字段 Schema 配置 */
|
|
35
|
+
schema?: Record<string, any>;
|
|
36
|
+
/** UI Schema 配置(支持低代码平台的各种配置项) */
|
|
37
|
+
uiSchema?: {
|
|
38
|
+
title?: React.ReactNode;
|
|
39
|
+
enum?: DataSourceSubFormOption[];
|
|
40
|
+
'x-component'?: string;
|
|
41
|
+
'x-component-props'?: Record<string, any>;
|
|
42
|
+
'x-read-pretty'?: boolean;
|
|
43
|
+
'x-validator'?: string;
|
|
44
|
+
'x-display'?: 'visible' | 'hidden' | 'none';
|
|
45
|
+
'x-pattern'?: 'editable' | 'disabled' | 'readPretty';
|
|
46
|
+
'x-data-source'?: {
|
|
47
|
+
type?: string;
|
|
48
|
+
options?: Array<{
|
|
49
|
+
id?: string;
|
|
50
|
+
label: string | Record<string, any>;
|
|
51
|
+
value: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
}>;
|
|
54
|
+
labelField?: string;
|
|
55
|
+
valueField?: string;
|
|
56
|
+
dataSource?: any;
|
|
57
|
+
extraParams?: Record<string, any>;
|
|
58
|
+
};
|
|
59
|
+
'x-record-schema'?: DataSourceSubFormSchema | DataSourceSubFormFieldSchema[] | string;
|
|
60
|
+
default?: any;
|
|
61
|
+
type?: 'string' | 'number' | 'integer' | 'boolean' | 'array' | 'object';
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @title Schema 接口
|
|
66
|
+
* @description 表单字段集合的结构定义
|
|
67
|
+
*/
|
|
68
|
+
export interface DataSourceSubFormSchema {
|
|
69
|
+
/** 字段列表 */
|
|
70
|
+
fields?: DataSourceSubFormFieldSchema[];
|
|
71
|
+
/** 属性映射(key-value 形式) */
|
|
72
|
+
properties?: Record<string, any>;
|
|
73
|
+
/** 子字段列表 */
|
|
74
|
+
children?: DataSourceSubFormFieldSchema[];
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @title DataSourceSubForm 组件 Props
|
|
78
|
+
* @description
|
|
79
|
+
* 独立的子表单组件,用于渲染一组表单字段。
|
|
80
|
+
* 支持通过 xRecordSchema 配置字段,或直接传入 children 低代码子组件。
|
|
81
|
+
*/
|
|
82
|
+
export interface DataSourceSubFormProps {
|
|
83
|
+
/** 渲染模式:edit(编辑)、disabled(禁用)、preview(预览) */
|
|
84
|
+
renderMode?: ModeType;
|
|
85
|
+
/**
|
|
86
|
+
* 表单值对象
|
|
87
|
+
* @example { "fieldName1": "value1", "fieldName2": "value2" }
|
|
88
|
+
*/
|
|
89
|
+
value?: Record<string, any>;
|
|
90
|
+
/**
|
|
91
|
+
* 值变化回调
|
|
92
|
+
* @param value 更新后的表单值对象
|
|
93
|
+
*/
|
|
94
|
+
onChange?: (value: Record<string, any>) => void;
|
|
95
|
+
/**
|
|
96
|
+
* xRecordSchema:定义表单字段结构
|
|
97
|
+
* 支持三种格式:
|
|
98
|
+
* 1. JSON 字符串
|
|
99
|
+
* 2. Schema 对象(包含 fields/properties/children)
|
|
100
|
+
* 3. 字段数组
|
|
101
|
+
*/
|
|
102
|
+
xRecordSchema?: string | DataSourceSubFormSchema | DataSourceSubFormFieldSchema[];
|
|
103
|
+
/**
|
|
104
|
+
* 容器 children:低代码引擎渲染的子组件节点
|
|
105
|
+
* 优先使用 children,如果没有则回退到 xRecordSchema 渲染
|
|
106
|
+
*/
|
|
107
|
+
children?: React.ReactNode;
|
|
108
|
+
/** 低代码设计模式标识 */
|
|
109
|
+
__designMode?: string;
|
|
110
|
+
/** 表单布局方式 */
|
|
111
|
+
layout?: 'horizontal' | 'vertical' | 'inline';
|
|
112
|
+
/** 自定义类名 */
|
|
113
|
+
className?: string;
|
|
114
|
+
/** 自定义样式 */
|
|
115
|
+
style?: React.CSSProperties;
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
}
|
|
@@ -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;
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title:
|
|
22
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle:
|
|
31
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
52
52
|
show: boolean;
|
|
53
53
|
title: string;
|
|
54
54
|
width: number;
|
|
55
|
-
align: "
|
|
55
|
+
align: "left" | "right" | "center";
|
|
56
56
|
fixed: false | "left" | "right";
|
|
57
57
|
type: "link" | "button";
|
|
58
58
|
items: OperationItem[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取nocobase数据列表
|
|
3
|
+
*/
|
|
4
|
+
export declare const getCountryDataList: () => Promise<any>;
|
|
5
|
+
export interface Country {
|
|
6
|
+
id: number;
|
|
7
|
+
name: {
|
|
8
|
+
en: string;
|
|
9
|
+
'zh-CN': string;
|
|
10
|
+
'zh-HK': string;
|
|
11
|
+
'ja': string;
|
|
12
|
+
'pt': string;
|
|
13
|
+
original: string;
|
|
14
|
+
};
|
|
15
|
+
code: string;
|
|
16
|
+
calling_code: string;
|
|
17
|
+
currency_code: string;
|
|
18
|
+
sort: number;
|
|
19
|
+
status: string;
|
|
20
|
+
created_at: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
prefix: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const useCountries: () => {
|
|
25
|
+
data: Country[];
|
|
26
|
+
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "
|
|
5
|
+
rootDomain: "saas" | "custom" | "xzero";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|