@flatbiz/antd 5.0.33 → 5.0.35
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/dist/_commonjsHelpers-B0GIDhER.js +33 -0
- package/dist/_commonjsHelpers-B0GIDhER.js.map +1 -0
- package/dist/ace-editor-json/index.js +1 -0
- package/dist/ace-editor-json/index.js.map +1 -1
- package/dist/ace-editor-mysql/index.js +1 -0
- package/dist/ace-editor-mysql/index.js.map +1 -1
- package/dist/ace-editor-xml/index.js +1 -0
- package/dist/ace-editor-xml/index.js.map +1 -1
- package/dist/ai-search/index.css +1 -0
- package/dist/ai-search/index.d.ts +25 -0
- package/dist/ai-search/index.js +39 -0
- package/dist/ai-search/index.js.map +1 -0
- package/dist/ai-search-WcG2oakE.js +161 -0
- package/dist/ai-search-WcG2oakE.js.map +1 -0
- package/dist/bootstrap/index.js +1 -0
- package/dist/bootstrap/index.js.map +1 -1
- package/dist/button-operate/index.js +1 -0
- package/dist/button-operate/index.js.map +1 -1
- package/dist/button-wrapper/index.js +1 -0
- package/dist/button-wrapper/index.js.map +1 -1
- package/dist/cascader-wrapper/index.js +1 -0
- package/dist/cascader-wrapper/index.js.map +1 -1
- package/dist/check-list/index.js +1 -0
- package/dist/check-list/index.js.map +1 -1
- package/dist/config-provider-wrapper/index.js +1 -0
- package/dist/config-provider-wrapper/index.js.map +1 -1
- package/dist/date-range-picker-wrapper-form-item/index.js +1 -0
- package/dist/date-range-picker-wrapper-form-item/index.js.map +1 -1
- package/dist/dialog-alert/index.js +1 -0
- package/dist/dialog-alert/index.js.map +1 -1
- package/dist/dialog-confirm/index.js +1 -0
- package/dist/dialog-confirm/index.js.map +1 -1
- package/dist/dialog-drag-modal/index.css +1 -1
- package/dist/dialog-drag-modal/index.d.ts +18 -5
- package/dist/dialog-drag-modal/index.js +5 -2
- package/dist/dialog-drag-modal/index.js.map +1 -1
- package/dist/dialog-drawer/index.js +1 -0
- package/dist/dialog-drawer/index.js.map +1 -1
- package/dist/dialog-drawer-content/index.js +1 -0
- package/dist/dialog-drawer-content/index.js.map +1 -1
- package/dist/dialog-loading/index.js +1 -0
- package/dist/dialog-loading/index.js.map +1 -1
- package/dist/dialog-modal/index.js +1 -0
- package/dist/dialog-modal/index.js.map +1 -1
- package/dist/dialog-preview-image/index.js +1 -0
- package/dist/dialog-preview-image/index.js.map +1 -1
- package/dist/drag-collapse/index.js +1 -0
- package/dist/drag-collapse/index.js.map +1 -1
- package/dist/drag-collapse-form-list/index.js +1 -0
- package/dist/drag-collapse-form-list/index.js.map +1 -1
- package/dist/drag-editable-card/index.d.ts +7 -4
- package/dist/drag-editable-card/index.js +8 -7
- package/dist/drag-editable-card/index.js.map +1 -1
- package/dist/drag-editable-table/index.js +1 -0
- package/dist/drag-editable-table/index.js.map +1 -1
- package/dist/drag-editable-table-pro/index.js +1 -0
- package/dist/drag-editable-table-pro/index.js.map +1 -1
- package/dist/drag-form-list/index.js +1 -0
- package/dist/drag-form-list/index.js.map +1 -1
- package/dist/{drag-modal-DTbr-E0g.js → drag-modal-DVq260Mc.js} +56 -53
- package/dist/drag-modal-DVq260Mc.js.map +1 -0
- package/dist/drawer-BI8T3w7e.js +257 -0
- package/dist/drawer-BI8T3w7e.js.map +1 -0
- package/dist/dropdown-menu-wrapper/index.js +1 -0
- package/dist/dropdown-menu-wrapper/index.js.map +1 -1
- package/dist/easy-form/index.d.ts +0 -4
- package/dist/easy-form/index.js +2 -1
- package/dist/easy-form/index.js.map +1 -1
- package/dist/easy-table/index.d.ts +0 -4
- package/dist/easy-table/index.js +2 -1
- package/dist/easy-table/index.js.map +1 -1
- package/dist/editable-card/index.d.ts +7 -4
- package/dist/editable-card/index.js +7 -6
- package/dist/editable-card/index.js.map +1 -1
- package/dist/{editable-card-DlqrwXa0.js → editable-card-BN9ViZz0.js} +69 -56
- package/dist/editable-card-BN9ViZz0.js.map +1 -0
- package/dist/{editable-card-eGAbYXAH.js → editable-card-BrnWDl8j.js} +2 -2
- package/dist/{editable-card-eGAbYXAH.js.map → editable-card-BrnWDl8j.js.map} +1 -1
- package/dist/editable-field/index.js +1 -0
- package/dist/editable-field/index.js.map +1 -1
- package/dist/editable-table/index.js +1 -0
- package/dist/editable-table/index.js.map +1 -1
- package/dist/editable-table-pro/index.js +1 -0
- package/dist/editable-table-pro/index.js.map +1 -1
- package/dist/fba-app/index.js +1 -0
- package/dist/fba-app/index.js.map +1 -1
- package/dist/fba-hooks/index.d.ts +1 -0
- package/dist/fba-hooks/index.js +10 -1
- package/dist/fba-hooks/index.js.map +1 -1
- package/dist/{form-3qaPduiy.js → form-DNtjXzAW.js} +35 -36
- package/dist/form-DNtjXzAW.js.map +1 -0
- package/dist/form-item-group/index.js +1 -0
- package/dist/form-item-group/index.js.map +1 -1
- package/dist/form-item-text/index.js +1 -0
- package/dist/form-item-text/index.js.map +1 -1
- package/dist/form-item-wrapper/index.js +1 -0
- package/dist/form-item-wrapper/index.js.map +1 -1
- package/dist/form-list-wrapper/index.js +1 -0
- package/dist/form-list-wrapper/index.js.map +1 -1
- package/dist/index.d.ts +507 -444
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/input-search-wrapper/index.js +1 -0
- package/dist/input-search-wrapper/index.js.map +1 -1
- package/dist/input-text-area-wrapper/index.js +1 -0
- package/dist/input-text-area-wrapper/index.js.map +1 -1
- package/dist/input-wrapper/index.js +1 -0
- package/dist/input-wrapper/index.js.map +1 -1
- package/dist/label-value-render/index.js +1 -0
- package/dist/label-value-render/index.js.map +1 -1
- package/dist/local-loading/index.js +1 -0
- package/dist/local-loading/index.js.map +1 -1
- package/dist/mention-editor/index.js +1 -0
- package/dist/mention-editor/index.js.map +1 -1
- package/dist/mentions-wrapper/index.js +1 -0
- package/dist/mentions-wrapper/index.js.map +1 -1
- package/dist/number-range-form-item/index.js +1 -0
- package/dist/number-range-form-item/index.js.map +1 -1
- package/dist/pdf/index.js +1 -0
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf-preview/index.js +1 -0
- package/dist/pdf-preview/index.js.map +1 -1
- package/dist/relation-tree/index.js +1 -0
- package/dist/relation-tree/index.js.map +1 -1
- package/dist/request-status/index.js +1 -0
- package/dist/request-status/index.js.map +1 -1
- package/dist/resizable-drawer/index.css +1 -0
- package/dist/resizable-drawer/index.d.ts +29 -0
- package/dist/resizable-drawer/index.js +41 -0
- package/dist/resizable-drawer/index.js.map +1 -0
- package/dist/rich-text-editor/index.js +1 -0
- package/dist/rich-text-editor/index.js.map +1 -1
- package/dist/rich-text-viewer/index.js +1 -0
- package/dist/rich-text-viewer/index.js.map +1 -1
- package/dist/roll-location-center/index.js +1 -0
- package/dist/roll-location-center/index.js.map +1 -1
- package/dist/roll-location-in-view/index.js +1 -0
- package/dist/roll-location-in-view/index.js.map +1 -1
- package/dist/rule-describe/index.js +1 -0
- package/dist/rule-describe/index.js.map +1 -1
- package/dist/search-form/index.js +1 -0
- package/dist/search-form/index.js.map +1 -1
- package/dist/search-menu/index.js +1 -0
- package/dist/search-menu/index.js.map +1 -1
- package/dist/selector-wrapper/index.js +1 -0
- package/dist/selector-wrapper/index.js.map +1 -1
- package/dist/selector-wrapper-search/index.js +1 -0
- package/dist/selector-wrapper-search/index.js.map +1 -1
- package/dist/selector-wrapper-simple/index.js +1 -0
- package/dist/selector-wrapper-simple/index.js.map +1 -1
- package/dist/simple-layout/index.js +1 -0
- package/dist/simple-layout/index.js.map +1 -1
- package/dist/switch-confirm-wrapper/index.js +1 -0
- package/dist/switch-confirm-wrapper/index.js.map +1 -1
- package/dist/table-cell-render/index.js +1 -0
- package/dist/table-cell-render/index.js.map +1 -1
- package/dist/table-scrollbar/index.js +1 -0
- package/dist/table-scrollbar/index.js.map +1 -1
- package/dist/tag-group/index.js +1 -0
- package/dist/tag-group/index.js.map +1 -1
- package/dist/tag-wrapper/index.js +1 -0
- package/dist/tag-wrapper/index.js.map +1 -1
- package/dist/text-overflow/index.js +1 -0
- package/dist/text-overflow/index.js.map +1 -1
- package/dist/time-range-picker-wrapper-form-item/index.js +1 -0
- package/dist/time-range-picker-wrapper-form-item/index.js.map +1 -1
- package/dist/tips-title/index.css +1 -1
- package/dist/tips-title/index.d.ts +1 -0
- package/dist/tips-title/index.js +1 -1
- package/dist/{tips-title-Bst97YH9.js → tips-title-B7ifvKpk.js} +4 -5
- package/dist/tips-title-B7ifvKpk.js.map +1 -0
- package/dist/tree-modal/index.js +1 -0
- package/dist/tree-modal/index.js.map +1 -1
- package/dist/tree-modal-selector/index.js +1 -0
- package/dist/tree-modal-selector/index.js.map +1 -1
- package/dist/tree-selector-wrapper/index.js +1 -0
- package/dist/tree-selector-wrapper/index.js.map +1 -1
- package/dist/tree-wrapper/index.js +1 -0
- package/dist/tree-wrapper/index.js.map +1 -1
- package/dist/upload-wrapper/index.js +1 -0
- package/dist/upload-wrapper/index.js.map +1 -1
- package/package.json +12 -1
- package/dist/drag-modal-DTbr-E0g.js.map +0 -1
- package/dist/editable-card-DlqrwXa0.js.map +0 -1
- package/dist/form-3qaPduiy.js.map +0 -1
- package/dist/tips-title-Bst97YH9.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -27,6 +27,7 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
27
27
|
import '@dimjs/utils/extend/extend';
|
|
28
28
|
import '../fba-hooks/index.js';
|
|
29
29
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
30
|
+
import '@dimjs/utils/uuid/uuid';
|
|
30
31
|
import 'dayjs/locale/en.js';
|
|
31
32
|
import 'dayjs/locale/zh-cn.js';
|
|
32
33
|
import 'react/jsx-runtime';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -30,6 +30,7 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
30
30
|
import '@dimjs/utils/extend/extend';
|
|
31
31
|
import '../fba-hooks/index.js';
|
|
32
32
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
33
|
+
import '@dimjs/utils/uuid/uuid';
|
|
33
34
|
import 'dayjs/locale/en.js';
|
|
34
35
|
import 'dayjs/locale/zh-cn.js';
|
|
35
36
|
import 'react/jsx-runtime';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -15,6 +15,7 @@ import '@flatbiz/utils';
|
|
|
15
15
|
import '../fba-hooks/index.js';
|
|
16
16
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
17
17
|
import 'antd';
|
|
18
|
+
import '@dimjs/utils/uuid/uuid';
|
|
18
19
|
import '@ant-design/icons/es/icons/DragOutlined.js';
|
|
19
20
|
import '@dnd-kit/utilities';
|
|
20
21
|
import 'react/jsx-runtime';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -15,6 +15,7 @@ import '@dnd-kit/sortable';
|
|
|
15
15
|
import '@flatbiz/utils';
|
|
16
16
|
import '../fba-hooks/index.js';
|
|
17
17
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
18
|
+
import '@dimjs/utils/uuid/uuid';
|
|
18
19
|
import '@ant-design/icons/es/icons/DragOutlined.js';
|
|
19
20
|
import '@dnd-kit/utilities';
|
|
20
21
|
import 'react/jsx-runtime';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -114,10 +114,6 @@ export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
|
114
114
|
* 是否为纯净模式,对EasyForm的子节点不做任何包装处理
|
|
115
115
|
*/
|
|
116
116
|
isPure?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* true: 当前EasyForm组件不使用Antd Form包裹,可在Form、EasyForm、FormWrapper内部使用
|
|
119
|
-
*/
|
|
120
|
-
nonuseFormWrapper?: boolean;
|
|
121
117
|
/**
|
|
122
118
|
* 栅格占位格数,最大值:24
|
|
123
119
|
* ```
|
|
@@ -357,6 +353,13 @@ export type EditableCardProps = {
|
|
|
357
353
|
* ```
|
|
358
354
|
*/
|
|
359
355
|
cardEasyFormProps?: Omit<EasyFormProps, "nonuseFormWrapper" | "isPure" | "children">;
|
|
356
|
+
/**
|
|
357
|
+
* 定义卡片网格水平跨度,最大值:24,默认值:24;设置 onCustomWrapper 后失效
|
|
358
|
+
* ```
|
|
359
|
+
* 1. 外层宽度在 xs、sm 时,强制为24
|
|
360
|
+
* ```
|
|
361
|
+
*/
|
|
362
|
+
boxGridColSpan?: number;
|
|
360
363
|
/**
|
|
361
364
|
* 默认卡片右侧布局,设置 onCustomWrapper 后失效
|
|
362
365
|
* ```
|
|
@@ -5,18 +5,22 @@ import './../pre-defined-class-name/index.css';
|
|
|
5
5
|
import './index.css';
|
|
6
6
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
7
7
|
|
|
8
|
-
export { D as DragEditableCard } from '../editable-card-
|
|
8
|
+
export { D as DragEditableCard } from '../editable-card-BrnWDl8j.js';
|
|
9
9
|
import '../_rollupPluginBabelHelpers-CP5aeNcJ.js';
|
|
10
10
|
import 'antd';
|
|
11
11
|
import '@dnd-kit/core';
|
|
12
12
|
import '@dnd-kit/modifiers';
|
|
13
13
|
import '@dnd-kit/sortable';
|
|
14
14
|
import '@flatbiz/utils';
|
|
15
|
-
import '../editable-card-
|
|
15
|
+
import '../editable-card-BN9ViZz0.js';
|
|
16
16
|
import '@ant-design/icons/es/icons/PlusOutlined.js';
|
|
17
17
|
import '@dimjs/utils/class-names/class-names';
|
|
18
18
|
import '@wove/react/hooks';
|
|
19
19
|
import 'react';
|
|
20
|
+
import '../box-grid/index.js';
|
|
21
|
+
import 'react/jsx-runtime';
|
|
22
|
+
import '@dimjs/lang/is-number';
|
|
23
|
+
import 'ahooks';
|
|
20
24
|
import '../button-wrapper-C2koH6hy.js';
|
|
21
25
|
import '@ant-design/icons/es/icons/LoadingOutlined.js';
|
|
22
26
|
import '@dimjs/lang/is-promise';
|
|
@@ -34,9 +38,9 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
34
38
|
import '@dimjs/utils/extend/extend';
|
|
35
39
|
import '../fba-hooks/index.js';
|
|
36
40
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
41
|
+
import '@dimjs/utils/uuid/uuid';
|
|
37
42
|
import 'dayjs/locale/en.js';
|
|
38
43
|
import 'dayjs/locale/zh-cn.js';
|
|
39
|
-
import 'react/jsx-runtime';
|
|
40
44
|
import '../fba-utils-Dfbczn1S.js';
|
|
41
45
|
import '@dimjs/lang/is-array';
|
|
42
46
|
import '@dimjs/model';
|
|
@@ -46,10 +50,7 @@ import '@ant-design/icons/es/icons/CloseCircleFilled.js';
|
|
|
46
50
|
import '@ant-design/icons/es/icons/DeleteOutlined.js';
|
|
47
51
|
import '../icon-wrapper-GTNh6wtb.js';
|
|
48
52
|
import '@dimjs/lang/is-undefined';
|
|
49
|
-
import '../form-
|
|
50
|
-
import '../box-grid/index.js';
|
|
51
|
-
import '@dimjs/lang/is-number';
|
|
52
|
-
import 'ahooks';
|
|
53
|
+
import '../form-DNtjXzAW.js';
|
|
53
54
|
import '../form-wrapper-BSwxGtCk.js';
|
|
54
55
|
import '../pre-defined-class-name/index.js';
|
|
55
56
|
import '../form-item-hidden-BtQvJEx7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -38,6 +38,7 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
38
38
|
import '@dimjs/utils/extend/extend';
|
|
39
39
|
import '../fba-hooks/index.js';
|
|
40
40
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
41
|
+
import '@dimjs/utils/uuid/uuid';
|
|
41
42
|
import 'dayjs/locale/en.js';
|
|
42
43
|
import 'dayjs/locale/zh-cn.js';
|
|
43
44
|
import 'react/jsx-runtime';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -36,6 +36,7 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
36
36
|
import '@dimjs/utils/extend/extend';
|
|
37
37
|
import '../fba-hooks/index.js';
|
|
38
38
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
39
|
+
import '@dimjs/utils/uuid/uuid';
|
|
39
40
|
import 'dayjs/locale/en.js';
|
|
40
41
|
import 'dayjs/locale/zh-cn.js';
|
|
41
42
|
import 'react/jsx-runtime';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -33,6 +33,7 @@ import 'dayjs/plugin/weekYear.js';
|
|
|
33
33
|
import '@dimjs/utils/extend/extend';
|
|
34
34
|
import '../fba-hooks/index.js';
|
|
35
35
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
36
|
+
import '@dimjs/utils/uuid/uuid';
|
|
36
37
|
import 'dayjs/locale/en.js';
|
|
37
38
|
import 'dayjs/locale/zh-cn.js';
|
|
38
39
|
import '../fba-utils-Dfbczn1S.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { isString } from '@dimjs/lang/is-string';
|
|
4
4
|
import _CloseOutlined from '@ant-design/icons/es/icons/CloseOutlined.js';
|
|
5
|
+
import { classNames } from '@dimjs/utils/class-names/class-names';
|
|
6
|
+
import { isNumber } from '@dimjs/lang/is-number';
|
|
5
7
|
import { b as _objectSpread2, i as _defineProperty, e as _inherits, f as _createClass, g as _classCallCheck, h as _callSuper, a as _slicedToArray, _ as _objectWithoutProperties } from './_rollupPluginBabelHelpers-CP5aeNcJ.js';
|
|
6
8
|
import { hooks } from '@wove/react/hooks';
|
|
7
9
|
import React__default, { useState, useMemo } from 'react';
|
|
8
10
|
import { createRoot } from 'react-dom/client';
|
|
11
|
+
import { a as getAugmentedNamespace, g as getDefaultExportFromCjs } from './_commonjsHelpers-B0GIDhER.js';
|
|
9
12
|
import 'react-is';
|
|
10
13
|
import require$$2 from 'react-dom';
|
|
11
14
|
import { useSize } from 'ahooks';
|
|
@@ -17,35 +20,6 @@ import { G as Gap } from './gap-D_CWfDQP.js';
|
|
|
17
20
|
import { I as IconWrapper } from './icon-wrapper-GTNh6wtb.js';
|
|
18
21
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
19
22
|
|
|
20
|
-
function getDefaultExportFromCjs (x) {
|
|
21
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function getAugmentedNamespace(n) {
|
|
25
|
-
if (n.__esModule) return n;
|
|
26
|
-
var f = n.default;
|
|
27
|
-
if (typeof f == "function") {
|
|
28
|
-
var a = function a () {
|
|
29
|
-
if (this instanceof a) {
|
|
30
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
31
|
-
}
|
|
32
|
-
return f.apply(this, arguments);
|
|
33
|
-
};
|
|
34
|
-
a.prototype = f.prototype;
|
|
35
|
-
} else a = {};
|
|
36
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
37
|
-
Object.keys(n).forEach(function (k) {
|
|
38
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
39
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () {
|
|
42
|
-
return n[k];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
return a;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
23
|
var cjs = {exports: {}};
|
|
50
24
|
|
|
51
25
|
var Draggable$1 = {};
|
|
@@ -159,9 +133,9 @@ function clsx() {
|
|
|
159
133
|
}
|
|
160
134
|
|
|
161
135
|
var clsx_m = /*#__PURE__*/Object.freeze({
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
136
|
+
__proto__: null,
|
|
137
|
+
clsx: clsx,
|
|
138
|
+
default: clsx
|
|
165
139
|
});
|
|
166
140
|
|
|
167
141
|
var require$$3 = /*@__PURE__*/getAugmentedNamespace(clsx_m);
|
|
@@ -1708,7 +1682,7 @@ var cjsExports = requireCjs();
|
|
|
1708
1682
|
var Draggable = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
|
|
1709
1683
|
|
|
1710
1684
|
var ModalRender = function ModalRender(props) {
|
|
1711
|
-
var _props$footerOperateB, _props$footerOperateA;
|
|
1685
|
+
var _props$styles, _props$styles2, _props$styles3, _props$footerOperateB, _props$footerOperateA;
|
|
1712
1686
|
var screenType = fbaHooks.useResponsivePoint() || '';
|
|
1713
1687
|
var _Form$useForm = Form.useForm(),
|
|
1714
1688
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -1717,6 +1691,7 @@ var ModalRender = function ModalRender(props) {
|
|
|
1717
1691
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1718
1692
|
open = _useState2[0],
|
|
1719
1693
|
setOpen = _useState2[1];
|
|
1694
|
+
var xOffset = props.xOffset || 0;
|
|
1720
1695
|
var onClose = hooks.useCallbackRef(function () {
|
|
1721
1696
|
try {
|
|
1722
1697
|
setOpen(false);
|
|
@@ -1732,7 +1707,7 @@ var ModalRender = function ModalRender(props) {
|
|
|
1732
1707
|
fbaHooks.useEffectCustom(function () {
|
|
1733
1708
|
window[props.elementId] = onClose;
|
|
1734
1709
|
}, [onClose]);
|
|
1735
|
-
var hiddenFooter = props.
|
|
1710
|
+
var hiddenFooter = props.footer === null || props.okHidden && props.cancelHidden && !props.footerOperateBeforeRender && !props.footerOperateAfterRender;
|
|
1736
1711
|
var htmlSize = useSize(document.querySelector('html'));
|
|
1737
1712
|
var bodyStyle = useMemo(function () {
|
|
1738
1713
|
var style = {};
|
|
@@ -1750,34 +1725,53 @@ var ModalRender = function ModalRender(props) {
|
|
|
1750
1725
|
var style = {
|
|
1751
1726
|
opacity: open ? 1 : 0
|
|
1752
1727
|
};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
clientX = _props$event.clientX,
|
|
1756
|
-
clientY = _props$event.clientY;
|
|
1757
|
-
style.left = "".concat(clientX + (props.xOffset || 0), "px");
|
|
1758
|
-
var top = clientY - 30 < 0 ? clientY : clientY - 30;
|
|
1759
|
-
style.top = "".concat(top, "px");
|
|
1760
|
-
} else {
|
|
1761
|
-
style.left = props.xOffset;
|
|
1762
|
-
}
|
|
1728
|
+
var hasEvent = props.event && isNumber(props.event.clientX) && isNumber(props.event.clientY);
|
|
1729
|
+
var width = props.width || 500;
|
|
1763
1730
|
var isXsSm = ['xs', 'sm'].includes(screenType);
|
|
1764
1731
|
if (isXsSm) {
|
|
1765
|
-
|
|
1732
|
+
if (props.event && hasEvent) {
|
|
1733
|
+
var clientY = props.event.clientY;
|
|
1734
|
+
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
1735
|
+
top: clientY - 30 < 0 ? clientY : clientY - 30,
|
|
1736
|
+
width: '90%',
|
|
1737
|
+
left: '5%'
|
|
1738
|
+
}, props.style);
|
|
1739
|
+
}
|
|
1740
|
+
return _objectSpread2(_objectSpread2({}, style), {}, {
|
|
1741
|
+
top: 30,
|
|
1766
1742
|
width: '90%',
|
|
1767
1743
|
left: '5%'
|
|
1768
|
-
});
|
|
1744
|
+
}, props.style);
|
|
1745
|
+
}
|
|
1746
|
+
var modalToRightWallCount = 0;
|
|
1747
|
+
if (props.event && hasEvent) {
|
|
1748
|
+
var _props$event = props.event,
|
|
1749
|
+
clientX = _props$event.clientX,
|
|
1750
|
+
_clientY = _props$event.clientY;
|
|
1751
|
+
style.left = "".concat(clientX + xOffset, "px");
|
|
1752
|
+
var top = _clientY - 30 < 0 ? _clientY : _clientY - 30;
|
|
1753
|
+
style.top = "".concat(top, "px");
|
|
1754
|
+
modalToRightWallCount = ((htmlSize === null || htmlSize === void 0 ? void 0 : htmlSize.width) || 0) - clientX - xOffset - width;
|
|
1755
|
+
if (modalToRightWallCount < 0) {
|
|
1756
|
+
style.left = clientX - width - xOffset;
|
|
1757
|
+
}
|
|
1758
|
+
} else {
|
|
1759
|
+
style.top = '100px';
|
|
1760
|
+
style.left = '50%';
|
|
1761
|
+
style.marginLeft = "-".concat(width / 2, "px");
|
|
1769
1762
|
}
|
|
1770
1763
|
return _objectSpread2(_objectSpread2({
|
|
1771
|
-
width:
|
|
1764
|
+
width: width
|
|
1772
1765
|
}, style), props.style);
|
|
1773
|
-
}, [open, props.width, props.event,
|
|
1766
|
+
}, [open, props.width, props.event, xOffset, props.style, screenType, htmlSize]);
|
|
1774
1767
|
return /*#__PURE__*/jsx(Draggable, {
|
|
1775
1768
|
handle: ".dialog-drag-modal-move-handle",
|
|
1776
1769
|
children: /*#__PURE__*/jsxs("div", {
|
|
1777
|
-
className:
|
|
1770
|
+
className: classNames('dialog-drag-modal', props.className),
|
|
1778
1771
|
style: modalStyle,
|
|
1779
1772
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1780
1773
|
className: "dialog-drag-modal-header dialog-drag-modal-move-handle",
|
|
1774
|
+
style: (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.header,
|
|
1781
1775
|
children: [/*#__PURE__*/jsx("div", {
|
|
1782
1776
|
className: "dialog-drag-modal-title",
|
|
1783
1777
|
children: props.title
|
|
@@ -1788,7 +1782,7 @@ var ModalRender = function ModalRender(props) {
|
|
|
1788
1782
|
})]
|
|
1789
1783
|
}), /*#__PURE__*/jsx("div", {
|
|
1790
1784
|
className: "dialog-drag-modal-body",
|
|
1791
|
-
style: _objectSpread2({}, bodyStyle),
|
|
1785
|
+
style: _objectSpread2(_objectSpread2({}, bodyStyle), (_props$styles2 = props.styles) === null || _props$styles2 === void 0 ? void 0 : _props$styles2.body),
|
|
1792
1786
|
children: typeof props.content === 'function' ? props.content(form, {
|
|
1793
1787
|
onClose: onClose
|
|
1794
1788
|
}) : props.content
|
|
@@ -1797,16 +1791,17 @@ var ModalRender = function ModalRender(props) {
|
|
|
1797
1791
|
height: 20
|
|
1798
1792
|
}) : /*#__PURE__*/jsx("div", {
|
|
1799
1793
|
className: "dialog-drag-modal-footer dialog-drag-modal-move-handle",
|
|
1794
|
+
style: (_props$styles3 = props.styles) === null || _props$styles3 === void 0 ? void 0 : _props$styles3.footer,
|
|
1800
1795
|
children: props.footer ? props.footer(form, {
|
|
1801
1796
|
onClose: onClose
|
|
1802
1797
|
}) : /*#__PURE__*/jsxs(Space, {
|
|
1803
1798
|
children: [(_props$footerOperateB = props.footerOperateBeforeRender) === null || _props$footerOperateB === void 0 ? void 0 : _props$footerOperateB.call(props, form, {
|
|
1804
1799
|
onClose: onClose
|
|
1805
|
-
}), /*#__PURE__*/jsx(ButtonWrapper, {
|
|
1800
|
+
}), props.cancelHidden == true ? null : /*#__PURE__*/jsx(ButtonWrapper, {
|
|
1806
1801
|
type: "default",
|
|
1807
1802
|
onClick: onClose,
|
|
1808
1803
|
children: "\u53D6\u6D88"
|
|
1809
|
-
}), /*#__PURE__*/jsx(ButtonWrapper, {
|
|
1804
|
+
}), props.okHidden == true ? null : /*#__PURE__*/jsx(ButtonWrapper, {
|
|
1810
1805
|
type: "primary",
|
|
1811
1806
|
children: "\u63D0\u4EA4"
|
|
1812
1807
|
}), (_props$footerOperateA = props.footerOperateAfterRender) === null || _props$footerOperateA === void 0 ? void 0 : _props$footerOperateA.call(props, form, {
|
|
@@ -1817,6 +1812,14 @@ var ModalRender = function ModalRender(props) {
|
|
|
1817
1812
|
})
|
|
1818
1813
|
});
|
|
1819
1814
|
};
|
|
1815
|
+
|
|
1816
|
+
/**
|
|
1817
|
+
* 可移动弹框
|
|
1818
|
+
* ```
|
|
1819
|
+
* 1. 设置 event 后,弹起位置受鼠标点击位置控制
|
|
1820
|
+
* 2. 相同的modalKey,最多只有一个弹起状态
|
|
1821
|
+
* ```
|
|
1822
|
+
*/
|
|
1820
1823
|
var dialogDragModal = {
|
|
1821
1824
|
open: function open(props) {
|
|
1822
1825
|
if (props.modalKey && document.getElementById(props.modalKey)) {
|
|
@@ -1857,4 +1860,4 @@ var dialogDragModal = {
|
|
|
1857
1860
|
};
|
|
1858
1861
|
|
|
1859
1862
|
export { dialogDragModal as d };
|
|
1860
|
-
//# sourceMappingURL=drag-modal-
|
|
1863
|
+
//# sourceMappingURL=drag-modal-DVq260Mc.js.map
|