@pisell/materials 3.3.93 → 3.3.95
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 +3 -3
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.js +4 -4
- package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
- package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +7 -0
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
- package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/es/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/es/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/es/components/PisellCards/components/TextCard/types.d.ts +270 -0
- package/es/components/PisellMetrics/index.d.ts +1 -0
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/es/components/PisellProcedure/index.d.ts +5 -0
- package/es/components/colorPicker/index.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +27 -19
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +2 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +7 -3
- package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +23 -0
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +99 -0
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +35 -20
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +2 -0
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/es/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/filter/components/Dropdown/types.d.ts +13 -0
- package/es/components/filter/components/FilterButton/types.d.ts +24 -0
- package/es/components/filter/components/items/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/es/components/filter/components/items/text/index.d.ts +1 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/filter/types.d.ts +48 -0
- package/es/components/list/index.d.ts +1 -0
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- package/es/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
- package/es/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
- package/es/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
- package/es/components/pisellDataSourceContainer/type.d.ts +84 -0
- package/es/components/pisellDatePicker/index.d.ts +1 -0
- package/es/components/pisellGridPro/index.d.ts +4 -0
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/es/components/pisellQuickFilter/index.d.ts +11 -0
- package/es/components/pisellQuickFilter/type.d.ts +12 -0
- package/es/components/pisellSort/index.d.ts +4 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
- package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/es/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/View/index.d.ts +1 -0
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/en-US.js +1 -0
- package/es/locales/zh-CN.d.ts +1 -0
- package/es/locales/zh-CN.js +1 -0
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/locales/zh-TW.js +1 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +27 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +5 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +15 -0
- package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +18 -0
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
- package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +19 -0
- package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +7 -0
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
- package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +17 -0
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
- package/lib/components/PisellCards/components/TextCard/components/index.d.ts +6 -0
- package/lib/components/PisellCards/components/TextCard/index.d.ts +5 -0
- package/lib/components/PisellCards/components/TextCard/types.d.ts +270 -0
- package/lib/components/PisellMetrics/index.d.ts +1 -0
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
- package/lib/components/PisellProcedure/index.d.ts +5 -0
- package/lib/components/colorPicker/index.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +26 -13
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +2 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +7 -3
- package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +23 -0
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +69 -1
- package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +8 -1
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +2 -0
- package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/lib/components/dataSourceComponents/hooks/useActions.js +1 -1
- package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +13 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +24 -0
- package/lib/components/filter/components/items/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -0
- package/lib/components/filter/components/items/text/index.d.ts +1 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/filter/types.d.ts +48 -0
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +1 -0
- package/lib/components/pisellDataSourceContainer/hooks/useHandleAction.d.ts +32 -0
- package/lib/components/pisellDataSourceContainer/provider/ChildComponentProps.d.ts +13 -0
- package/lib/components/pisellDataSourceContainer/provider/RefManager.d.ts +9 -0
- package/lib/components/pisellDataSourceContainer/type.d.ts +84 -0
- package/lib/components/pisellDatePicker/index.d.ts +1 -0
- package/lib/components/pisellGridPro/index.d.ts +4 -0
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/lib/components/pisellQuickFilter/index.d.ts +11 -0
- package/lib/components/pisellQuickFilter/type.d.ts +12 -0
- package/lib/components/pisellSort/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
- package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ViewMode/index.d.ts +9 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +1 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/locales/en-US.d.ts +1 -0
- package/lib/locales/en-US.js +1 -0
- package/lib/locales/zh-CN.d.ts +1 -0
- package/lib/locales/zh-CN.js +1 -0
- package/lib/locales/zh-TW.d.ts +1 -0
- package/lib/locales/zh-TW.js +1 -0
- package/lowcode/data-source-form/meta.ts +43 -0
- package/lowcode/data-source-form/utils.ts +21 -2
- package/lowcode/data-source-table/meta.ts +51 -45
- package/package.json +2 -2
- package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/es/components/auto-resize-text/index.d.ts +0 -6
- package/es/components/config-provider/index.d.ts +0 -10
- package/es/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/es/components/translation/utils.d.ts +0 -9
- package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
- package/lib/components/auto-resize-text/index.d.ts +0 -6
- package/lib/components/config-provider/index.d.ts +0 -10
- package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Switch/type.d.ts +0 -16
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
- package/lib/components/translation/utils.d.ts +0 -9
- package/lowcode/pisell-record-board-calendar-view/meta.ts +0 -1569
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import PisellProcedure from './PisellProcedure';
|
|
3
|
+
/**
|
|
4
|
+
* PisellProcedure 流程容器组件
|
|
5
|
+
*
|
|
6
|
+
* 用于管理多步骤流程的复合容器组件,基于 PisellLayout 实现三段式布局
|
|
7
|
+
* 包含头部区域(步骤条)、主体区域(内容区+信息区)、底部区域(操作按钮)
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: Meta<typeof PisellProcedure>;
|
|
10
|
+
export default meta;
|
|
11
|
+
declare type Story = StoryObj<typeof PisellProcedure>;
|
|
12
|
+
/**
|
|
13
|
+
* 基础用法
|
|
14
|
+
* @description 默认流程容器,包含头部、主体、底部三个区域
|
|
15
|
+
*/
|
|
16
|
+
export declare const Default: Story;
|
|
17
|
+
/**
|
|
18
|
+
* 页面模式
|
|
19
|
+
* @description 默认模式,支持响应式和移动端适配
|
|
20
|
+
*/
|
|
21
|
+
export declare const PageMode: Story;
|
|
22
|
+
/**
|
|
23
|
+
* 弹窗模式
|
|
24
|
+
* @description 用于弹窗场景,不应用移动端适配
|
|
25
|
+
*/
|
|
26
|
+
export declare const ModalMode: Story;
|
|
27
|
+
/**
|
|
28
|
+
* 步骤控制
|
|
29
|
+
* @description 使用 onStepsChange 监听步骤变化
|
|
30
|
+
*/
|
|
31
|
+
export declare const StepControl: Story;
|
|
32
|
+
/**
|
|
33
|
+
* 步骤拦截
|
|
34
|
+
* @description 通过 onNext/onPrev 返回 false 阻止步骤切换
|
|
35
|
+
*/
|
|
36
|
+
export declare const StepIntercept: Story;
|
|
37
|
+
/**
|
|
38
|
+
* 无侧边栏
|
|
39
|
+
*/
|
|
40
|
+
export declare const WithoutSidebar: Story;
|
|
41
|
+
/**
|
|
42
|
+
* 无头部
|
|
43
|
+
*/
|
|
44
|
+
export declare const WithoutHeader: Story;
|
|
45
|
+
/**
|
|
46
|
+
* 无底部
|
|
47
|
+
*/
|
|
48
|
+
export declare const WithoutFooter: Story;
|
|
49
|
+
/**
|
|
50
|
+
* 最小配置
|
|
51
|
+
* @description 仅显示主体内容
|
|
52
|
+
*/
|
|
53
|
+
export declare const MinimalConfig: Story;
|
|
54
|
+
/**
|
|
55
|
+
* 头部插槽顺序 - 默认
|
|
56
|
+
* @description left 在左,right 在右
|
|
57
|
+
*/
|
|
58
|
+
export declare const HeaderSlotDefault: Story;
|
|
59
|
+
/**
|
|
60
|
+
* 头部插槽顺序 - 反转
|
|
61
|
+
* @description left 在右,right 在左
|
|
62
|
+
*/
|
|
63
|
+
export declare const HeaderSlotReverse: Story;
|
|
64
|
+
/**
|
|
65
|
+
* 隐藏步骤条
|
|
66
|
+
* @description 仅显示头部插槽,不显示步骤条
|
|
67
|
+
*/
|
|
68
|
+
export declare const HideSteps: Story;
|
|
69
|
+
/**
|
|
70
|
+
* 第一步显示返回按钮
|
|
71
|
+
* @description 通过 showBackOnFirstStep 控制
|
|
72
|
+
*/
|
|
73
|
+
export declare const ShowBackOnFirstStep: Story;
|
|
74
|
+
/**
|
|
75
|
+
* 返回确认弹窗
|
|
76
|
+
* @description 点击返回时弹出确认弹窗
|
|
77
|
+
*/
|
|
78
|
+
export declare const BackConfirmModal: Story;
|
|
79
|
+
/**
|
|
80
|
+
* 关闭确认弹窗
|
|
81
|
+
* @description 点击关闭时弹出确认弹窗
|
|
82
|
+
*/
|
|
83
|
+
export declare const CloseConfirmModal: Story;
|
|
84
|
+
/**
|
|
85
|
+
* 主体布局 - 比例布局
|
|
86
|
+
* @description 使用比例分配内容区和侧边栏宽度
|
|
87
|
+
*/
|
|
88
|
+
export declare const BodyRatioLayout: Story;
|
|
89
|
+
/**
|
|
90
|
+
* 主体布局 - 固定宽度
|
|
91
|
+
* @description 侧边栏使用固定宽度
|
|
92
|
+
*/
|
|
93
|
+
export declare const BodyFixedLayout: Story;
|
|
94
|
+
/**
|
|
95
|
+
* 主体布局 - 垂直布局
|
|
96
|
+
* @description 内容区和侧边栏上下排列
|
|
97
|
+
*/
|
|
98
|
+
export declare const BodyVerticalLayout: Story;
|
|
99
|
+
/**
|
|
100
|
+
* 主体布局 - 内容顺序反转
|
|
101
|
+
* @description 侧边栏在左/上,内容区在右/下
|
|
102
|
+
*/
|
|
103
|
+
export declare const BodyContentOrderReverse: Story;
|
|
104
|
+
/**
|
|
105
|
+
* 底部位置 - 悬浮在侧边栏
|
|
106
|
+
* @description 默认位置,底部悬浮在侧边栏区域
|
|
107
|
+
*/
|
|
108
|
+
export declare const FooterFloatSidebar: Story;
|
|
109
|
+
/**
|
|
110
|
+
* 底部位置 - 固定在整体底部
|
|
111
|
+
*/
|
|
112
|
+
export declare const FooterFixedBottom: Story;
|
|
113
|
+
/**
|
|
114
|
+
* 底部位置 - 悬浮在整体区域
|
|
115
|
+
* @description 移动端默认使用此模式
|
|
116
|
+
*/
|
|
117
|
+
export declare const FooterFloatAll: Story;
|
|
118
|
+
/**
|
|
119
|
+
* 底部位置 - 悬浮在内容区
|
|
120
|
+
*/
|
|
121
|
+
export declare const FooterFloatContent: Story;
|
|
122
|
+
/**
|
|
123
|
+
* 底部位置 - 内嵌在内容区底部
|
|
124
|
+
*/
|
|
125
|
+
export declare const FooterFixedContentBottom: Story;
|
|
126
|
+
/**
|
|
127
|
+
* 底部位置 - 内嵌在侧边栏底部
|
|
128
|
+
*/
|
|
129
|
+
export declare const FooterFixedSidebarBottom: Story;
|
|
130
|
+
/**
|
|
131
|
+
* 移动端总结按钮
|
|
132
|
+
* @description 移动端显示总结按钮,点击可查看侧边栏内容
|
|
133
|
+
*/
|
|
134
|
+
export declare const MobileSummaryButton: Story;
|
|
135
|
+
/**
|
|
136
|
+
* 溢出收纳功能
|
|
137
|
+
* @description 当宽度不足时,按钮会被收纳到 More 菜单中
|
|
138
|
+
*/
|
|
139
|
+
export declare const OverflowActions: Story;
|
|
140
|
+
/**
|
|
141
|
+
* 禁用溢出收纳
|
|
142
|
+
* @description 不启用溢出收纳,按钮会换行显示
|
|
143
|
+
*/
|
|
144
|
+
export declare const DisableOverflow: Story;
|
|
145
|
+
/**
|
|
146
|
+
* 完整示例 - 购物流程
|
|
147
|
+
* @description 模拟真实的购物流程
|
|
148
|
+
*/
|
|
149
|
+
export declare const ShoppingFlow: Story;
|
|
150
|
+
/**
|
|
151
|
+
* 完整示例 - 注册流程
|
|
152
|
+
* @description 模拟用户注册流程
|
|
153
|
+
*/
|
|
154
|
+
export declare const RegistrationFlow: Story;
|
|
155
|
+
/**
|
|
156
|
+
* 完整示例 - 表单向导
|
|
157
|
+
* @description 多步表单向导
|
|
158
|
+
*/
|
|
159
|
+
export declare const FormWizard: Story;
|
|
160
|
+
/**
|
|
161
|
+
* 交互测试 - 组件渲染
|
|
162
|
+
*/
|
|
163
|
+
export declare const InteractionTest: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellProcedure 组件导出
|
|
3
|
+
*/
|
|
4
|
+
export { default } from './PisellProcedure';
|
|
5
|
+
export type { PisellProcedureProps, PisellProcedureRef, ProcedureHeaderProps, ProcedureBodyProps, ProcedureFooterProps, FooterPositionMode, BackConfirmModalConfig, BodyLayoutMode, BodyLayoutRatio, BodyDirection, StepItem, StepChangeResult, } from './types';
|
|
@@ -49,7 +49,7 @@ var import_index = require("./index.less");
|
|
|
49
49
|
var import_utils2 = require("@pisell/utils");
|
|
50
50
|
var BaseForm = (0, import_react.forwardRef)(
|
|
51
51
|
(props, ref) => {
|
|
52
|
-
var _a;
|
|
52
|
+
var _a, _b;
|
|
53
53
|
const {
|
|
54
54
|
title,
|
|
55
55
|
description,
|
|
@@ -69,11 +69,14 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
69
69
|
customSubmit,
|
|
70
70
|
beforeSubmit,
|
|
71
71
|
leaveConfirmConfig,
|
|
72
|
+
scene,
|
|
73
|
+
sceneRequestId,
|
|
72
74
|
...others
|
|
73
75
|
} = props;
|
|
74
76
|
const context = (0, import_useEngineContext.default)();
|
|
77
|
+
console.log("context_pageProps", (_a = context == null ? void 0 : context.pageContext) == null ? void 0 : _a.props);
|
|
75
78
|
const { setBeforeClose } = (0, import_useCtxActions.default)();
|
|
76
|
-
const { getApp } = (
|
|
79
|
+
const { getApp } = (_b = context.appHelper) == null ? void 0 : _b.utils;
|
|
77
80
|
const { scope, target } = (0, import_useFormSettingParams.default)();
|
|
78
81
|
const formRef = (0, import_react.useRef)(null);
|
|
79
82
|
const { get } = (0, import_useDataSource.default)();
|
|
@@ -89,13 +92,21 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
89
92
|
}, []);
|
|
90
93
|
(0, import_react.useImperativeHandle)(ref, () => formRef.current);
|
|
91
94
|
(0, import_ahooks.useDeepCompareEffect)(() => {
|
|
92
|
-
var _a2;
|
|
95
|
+
var _a2, _b2;
|
|
93
96
|
if (["edit", "view"].includes(renderMode || "") && dataSource) {
|
|
94
|
-
if (dataSource == null ? void 0 : dataSource.fromSettingMeta) {
|
|
97
|
+
if ((dataSource == null ? void 0 : dataSource.fromSettingMeta) || (dataSource == null ? void 0 : dataSource.fromDeviceSettingMeta)) {
|
|
95
98
|
if (props.__designMode === "design") return;
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
const fetchMetaData = (dataSource == null ? void 0 : dataSource.fromDeviceSettingMeta) ? (0, import_serve.getDeviceSettingMetaData)({
|
|
100
|
+
scene,
|
|
101
|
+
sceneRequestId: sceneRequestId || "",
|
|
102
|
+
items: ((_a2 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _a2.map((field) => field.name)) || []
|
|
103
|
+
}) : (0, import_serve.getFormSettingMetaData)({
|
|
104
|
+
sectionCodes: Array.from(new Set((_b2 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _b2.map((field) => field.name.split(".").shift()))),
|
|
105
|
+
scope,
|
|
106
|
+
target
|
|
107
|
+
});
|
|
108
|
+
fetchMetaData.then((res) => {
|
|
109
|
+
var _a3, _b3;
|
|
99
110
|
const formattedValues = formatInitialValues ? formatInitialValues(res.data) : res.data || {};
|
|
100
111
|
const fieldNames = new Set(((_a3 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _a3.map((field) => field.name)) || []);
|
|
101
112
|
const filteredValues = Object.keys(formattedValues).reduce((acc, key) => {
|
|
@@ -104,7 +115,7 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
104
115
|
}
|
|
105
116
|
return acc;
|
|
106
117
|
}, {});
|
|
107
|
-
(
|
|
118
|
+
(_b3 = formRef.current) == null ? void 0 : _b3.setFields((0, import_utils.transformFormObjToArrayWithUntouched)({
|
|
108
119
|
...filteredValues
|
|
109
120
|
}));
|
|
110
121
|
onDataSourceLoaded == null ? void 0 : onDataSourceLoaded(filteredValues, res);
|
|
@@ -114,7 +125,7 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
114
125
|
return;
|
|
115
126
|
}
|
|
116
127
|
get == null ? void 0 : get.runAsync().then((res) => {
|
|
117
|
-
var _a3,
|
|
128
|
+
var _a3, _b3;
|
|
118
129
|
const formattedValues = formatInitialValues ? formatInitialValues(res) : res;
|
|
119
130
|
let values = formattedValues;
|
|
120
131
|
if ((0, import_utils2.isArr)(dataSource == null ? void 0 : dataSource.fields)) {
|
|
@@ -126,7 +137,7 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
126
137
|
return acc;
|
|
127
138
|
}, {});
|
|
128
139
|
}
|
|
129
|
-
(
|
|
140
|
+
(_b3 = formRef.current) == null ? void 0 : _b3.setFields((0, import_utils.transformFormObjToArrayWithUntouched)(values));
|
|
130
141
|
onDataSourceLoaded == null ? void 0 : onDataSourceLoaded(values, res);
|
|
131
142
|
});
|
|
132
143
|
}
|
|
@@ -160,9 +171,9 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
160
171
|
}
|
|
161
172
|
}, [leaveConfirmConfig]);
|
|
162
173
|
(0, import_react.useEffect)(() => {
|
|
163
|
-
var _a2,
|
|
174
|
+
var _a2, _b2;
|
|
164
175
|
if (leaveConfirmConfig == null ? void 0 : leaveConfirmConfig.enable) {
|
|
165
|
-
const history = (
|
|
176
|
+
const history = (_b2 = (_a2 = getApp == null ? void 0 : getApp()) == null ? void 0 : _a2.history) == null ? void 0 : _b2.instance;
|
|
166
177
|
let unblock = history == null ? void 0 : history.block((location, action) => {
|
|
167
178
|
var _a3;
|
|
168
179
|
const isFormChanged = (_a3 = formRef.current) == null ? void 0 : _a3.isFieldsTouched();
|
|
@@ -205,7 +216,9 @@ var BaseForm = (0, import_react.forwardRef)(
|
|
|
205
216
|
formatSubmitValues,
|
|
206
217
|
formatInitialValues,
|
|
207
218
|
customSubmit,
|
|
208
|
-
beforeSubmit
|
|
219
|
+
beforeSubmit,
|
|
220
|
+
scene,
|
|
221
|
+
sceneRequestId
|
|
209
222
|
},
|
|
210
223
|
/* @__PURE__ */ import_react.default.createElement(
|
|
211
224
|
import_form.default,
|
|
@@ -11,6 +11,8 @@ export interface FormSettingContextType {
|
|
|
11
11
|
formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
|
|
12
12
|
customSubmit?: (values: Record<string, any>) => Promise<any>;
|
|
13
13
|
beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
|
|
14
|
+
scene?: 'template' | 'profile' | 'instance';
|
|
15
|
+
sceneRequestId?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
|
|
16
18
|
export default FormSettingContext;
|
|
@@ -45,7 +45,9 @@ var FormSettingProvider = (props) => {
|
|
|
45
45
|
formatSubmitValues,
|
|
46
46
|
formatInitialValues,
|
|
47
47
|
customSubmit,
|
|
48
|
-
beforeSubmit
|
|
48
|
+
beforeSubmit,
|
|
49
|
+
scene,
|
|
50
|
+
sceneRequestId
|
|
49
51
|
} = props;
|
|
50
52
|
const value = import_react.default.useMemo(() => {
|
|
51
53
|
return {
|
|
@@ -57,9 +59,11 @@ var FormSettingProvider = (props) => {
|
|
|
57
59
|
formatSubmitValues,
|
|
58
60
|
formatInitialValues,
|
|
59
61
|
customSubmit,
|
|
60
|
-
beforeSubmit
|
|
62
|
+
beforeSubmit,
|
|
63
|
+
scene,
|
|
64
|
+
sceneRequestId
|
|
61
65
|
};
|
|
62
|
-
}, [renderMode, groupInfoPosition, currentValue, size, beforeSubmit]);
|
|
66
|
+
}, [renderMode, groupInfoPosition, currentValue, size, beforeSubmit, scene, sceneRequestId]);
|
|
63
67
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
64
68
|
import_FormSettingContext.default.Provider,
|
|
65
69
|
{
|
|
@@ -175,4 +175,27 @@ export declare const updateTenantSetting: (params: {
|
|
|
175
175
|
target?: string | undefined;
|
|
176
176
|
data: Record<string, any>;
|
|
177
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>;
|
|
178
201
|
export {};
|
|
@@ -32,12 +32,14 @@ __export(serve_exports, {
|
|
|
32
32
|
createNocobaseData: () => createNocobaseData,
|
|
33
33
|
customApi: () => customApi,
|
|
34
34
|
deleteNocobaseData: () => deleteNocobaseData,
|
|
35
|
+
getDeviceSettingMetaData: () => getDeviceSettingMetaData,
|
|
35
36
|
getFormSettingMetaData: () => getFormSettingMetaData,
|
|
36
37
|
getNocobaseData: () => getNocobaseData,
|
|
37
38
|
getNocobaseDataList: () => getNocobaseDataList,
|
|
38
39
|
getNocobaseDataSource: () => getNocobaseDataSource,
|
|
39
40
|
getNocobaseDataSourceOptions: () => getNocobaseDataSourceOptions,
|
|
40
41
|
getNocobaseMainDataSource: () => getNocobaseMainDataSource,
|
|
42
|
+
updateDeviceSetting: () => updateDeviceSetting,
|
|
41
43
|
updateNocobaseData: () => updateNocobaseData,
|
|
42
44
|
updateTenantSetting: () => updateTenantSetting
|
|
43
45
|
});
|
|
@@ -115,7 +117,14 @@ var formatRequestUrl = (url, baseUrl, queryString) => {
|
|
|
115
117
|
return queryString ? `${baseRequestUrl}${baseRequestUrl.includes("?") ? "&" : "?"}${queryString}` : baseRequestUrl;
|
|
116
118
|
};
|
|
117
119
|
var customApi = async (url, data, options) => {
|
|
118
|
-
const {
|
|
120
|
+
const {
|
|
121
|
+
method,
|
|
122
|
+
baseUrl,
|
|
123
|
+
headers = [],
|
|
124
|
+
params = [],
|
|
125
|
+
body = {},
|
|
126
|
+
dataSourceKey
|
|
127
|
+
} = options;
|
|
119
128
|
const requestHeaders = formatHeaders(headers);
|
|
120
129
|
const queryString = formatQueryString(params);
|
|
121
130
|
const requestUrl = formatRequestUrl(url, baseUrl, queryString);
|
|
@@ -194,17 +203,76 @@ var updateTenantSetting = async (params) => {
|
|
|
194
203
|
}
|
|
195
204
|
});
|
|
196
205
|
};
|
|
206
|
+
var buildDeviceSettingUrl = (scene = "template", id) => {
|
|
207
|
+
switch (scene) {
|
|
208
|
+
case "profile":
|
|
209
|
+
return `/tenant/device/profile/${id}/setting`;
|
|
210
|
+
case "instance":
|
|
211
|
+
return `/tenant/device/${id}/setting`;
|
|
212
|
+
case "template":
|
|
213
|
+
default:
|
|
214
|
+
return `/admin/device/profile/template/${id}/setting`;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
var getDeviceSettingMetaData = async (params) => {
|
|
218
|
+
const { scene, sceneRequestId, items } = params;
|
|
219
|
+
console.log("getDeviceSettingMetaData", params);
|
|
220
|
+
if (!sceneRequestId) {
|
|
221
|
+
(0, import_pisellToast.default)({
|
|
222
|
+
content: (0, import_locales.getText)("pisell-data-source-form-scene-request-id-message")
|
|
223
|
+
});
|
|
224
|
+
return {};
|
|
225
|
+
}
|
|
226
|
+
const url = buildDeviceSettingUrl(scene, sceneRequestId);
|
|
227
|
+
return import_utils.request.getRequest().post(
|
|
228
|
+
url,
|
|
229
|
+
{
|
|
230
|
+
items
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
headers: {
|
|
234
|
+
"Content-Type": "application/json"
|
|
235
|
+
},
|
|
236
|
+
isPisell2: true
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
};
|
|
240
|
+
var updateDeviceSetting = async (params) => {
|
|
241
|
+
const { scene, sceneRequestId, data } = params;
|
|
242
|
+
console.log("updateDeviceSetting", params);
|
|
243
|
+
if (!sceneRequestId) {
|
|
244
|
+
(0, import_pisellToast.default)({
|
|
245
|
+
content: (0, import_locales.getText)("pisell-data-source-form-scene-request-id-message")
|
|
246
|
+
});
|
|
247
|
+
return {};
|
|
248
|
+
}
|
|
249
|
+
const url = buildDeviceSettingUrl(scene, sceneRequestId);
|
|
250
|
+
return import_utils.request.getRequest().put(
|
|
251
|
+
url,
|
|
252
|
+
{
|
|
253
|
+
items: data
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
headers: {
|
|
257
|
+
"Content-Type": "application/json"
|
|
258
|
+
},
|
|
259
|
+
isPisell2: true
|
|
260
|
+
}
|
|
261
|
+
);
|
|
262
|
+
};
|
|
197
263
|
// Annotate the CommonJS export names for ESM import in node:
|
|
198
264
|
0 && (module.exports = {
|
|
199
265
|
createNocobaseData,
|
|
200
266
|
customApi,
|
|
201
267
|
deleteNocobaseData,
|
|
268
|
+
getDeviceSettingMetaData,
|
|
202
269
|
getFormSettingMetaData,
|
|
203
270
|
getNocobaseData,
|
|
204
271
|
getNocobaseDataList,
|
|
205
272
|
getNocobaseDataSource,
|
|
206
273
|
getNocobaseDataSourceOptions,
|
|
207
274
|
getNocobaseMainDataSource,
|
|
275
|
+
updateDeviceSetting,
|
|
208
276
|
updateNocobaseData,
|
|
209
277
|
updateTenantSetting
|
|
210
278
|
});
|
|
@@ -61,13 +61,20 @@ var SubmitButton = (props) => {
|
|
|
61
61
|
const [api, contextHolder] = import_antd.notification.useNotification();
|
|
62
62
|
const { scope, target } = (0, import_useFormSettingParams.default)();
|
|
63
63
|
const form = import_antd.Form.useFormInstance();
|
|
64
|
-
const { renderMode, onDataSourceFinish, formatSubmitValues, customSubmit, beforeSubmit } = (0, import_useFormSetting.default)();
|
|
64
|
+
const { renderMode, onDataSourceFinish, formatSubmitValues, customSubmit, beforeSubmit, scene, sceneRequestId } = (0, import_useFormSetting.default)();
|
|
65
65
|
const { setVisible, refreshTableData } = (0, import_useCtxActions.default)();
|
|
66
66
|
const { create, update, dataSource } = (0, import_useDataSource.default)();
|
|
67
67
|
const isDisabled = status === "disabled";
|
|
68
68
|
const onSubmit = async (values) => {
|
|
69
69
|
setLoading(true);
|
|
70
70
|
try {
|
|
71
|
+
if (dataSource == null ? void 0 : dataSource.fromDeviceSettingMeta) {
|
|
72
|
+
return await (0, import_serve.updateDeviceSetting)({
|
|
73
|
+
scene,
|
|
74
|
+
sceneRequestId: sceneRequestId || "",
|
|
75
|
+
data: values
|
|
76
|
+
});
|
|
77
|
+
}
|
|
71
78
|
if (dataSource == null ? void 0 : dataSource.fromSettingMeta) {
|
|
72
79
|
return await (0, import_serve.updateTenantSetting)({
|
|
73
80
|
scope,
|
|
@@ -12,6 +12,8 @@ export interface DataSourceFormProps {
|
|
|
12
12
|
variables: any[];
|
|
13
13
|
renderMode?: ModeType;
|
|
14
14
|
currentValue?: 'server' | 'local';
|
|
15
|
+
scene?: 'template' | 'profile' | 'instance';
|
|
16
|
+
sceneRequestId?: string;
|
|
15
17
|
children: React.ReactNode;
|
|
16
18
|
className?: string;
|
|
17
19
|
size?: 'small' | 'middle' | 'large';
|
|
@@ -105,7 +105,7 @@ var BaseTable = (props, ref) => {
|
|
|
105
105
|
}, [dataSourceKey]);
|
|
106
106
|
(0, import_react.useEffect)(() => {
|
|
107
107
|
if (dataSourceKeyRef.current) {
|
|
108
|
-
if (dataSource == null ? void 0 : dataSource.fromSettingMeta) return;
|
|
108
|
+
if ((dataSource == null ? void 0 : dataSource.fromSettingMeta) || (dataSource == null ? void 0 : dataSource.fromDeviceSettingMeta)) return;
|
|
109
109
|
list == null ? void 0 : list.run(queryPageConfig);
|
|
110
110
|
} else {
|
|
111
111
|
list == null ? void 0 : list.mutate([]);
|
|
@@ -81,11 +81,7 @@ declare const formFieldMap: {
|
|
|
81
81
|
extraParams?: Record<string, any> | undefined;
|
|
82
82
|
}) => JSX.Element;
|
|
83
83
|
};
|
|
84
|
-
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<
|
|
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<any> | (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>;
|
|
@@ -106,6 +102,10 @@ 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>;
|
|
@@ -118,7 +118,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
|
|
|
118
118
|
} & {
|
|
119
119
|
dataSource?: any;
|
|
120
120
|
extraParams?: Record<string, any> | undefined;
|
|
121
|
-
}) => JSX.Element) | import("react").FC<
|
|
121
|
+
}) => JSX.Element) | 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
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;
|
|
@@ -169,7 +169,7 @@ var useActions = ({
|
|
|
169
169
|
designModeToast();
|
|
170
170
|
return Promise.reject();
|
|
171
171
|
}
|
|
172
|
-
if (currentDataSource == null ? void 0 : currentDataSource.fromSettingMeta) {
|
|
172
|
+
if ((currentDataSource == null ? void 0 : currentDataSource.fromSettingMeta) || (currentDataSource == null ? void 0 : currentDataSource.fromDeviceSettingMeta)) {
|
|
173
173
|
return Promise.reject();
|
|
174
174
|
}
|
|
175
175
|
if (isCustomApi) {
|
|
@@ -45,6 +45,7 @@ interface Style {
|
|
|
45
45
|
export declare type ActionTypes = 'list' | 'get' | 'update' | 'create' | 'destroy';
|
|
46
46
|
export declare type DataSourceType = {
|
|
47
47
|
fromSettingMeta: boolean;
|
|
48
|
+
fromDeviceSettingMeta?: boolean;
|
|
48
49
|
actions: {
|
|
49
50
|
get: ActionsItem;
|
|
50
51
|
update: ActionsItem;
|