antd-management-fast-framework 2.1.0 → 2.1.1

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.
Files changed (97) hide show
  1. package/es/index.js +3 -9771
  2. package/package.json +7 -7
  3. package/es/configGroup/configGeneral.d.ts +0 -28
  4. package/es/configGroup/configGeneral.js +0 -36
  5. package/es/configGroup/index.d.ts +0 -2
  6. package/es/configGroup/themeCollection.d.ts +0 -7
  7. package/es/configGroup/themeCollection.js +0 -9
  8. package/es/configGroup/webpackPlugin.d.ts +0 -4
  9. package/es/configGroup/webpackPlugin.js +0 -351
  10. package/es/customComponents/ApplicationProvider/index.d.ts +0 -12
  11. package/es/customComponents/ApplicationWrapper/index.d.ts +0 -9
  12. package/es/customComponents/Bootstrap/index.d.ts +0 -3
  13. package/es/customComponents/Bootstrap/index.js +0 -67
  14. package/es/customComponents/DataPreviewDrawer/index.d.ts +0 -31
  15. package/es/customComponents/DataPreviewDrawer/index.js +0 -169
  16. package/es/customComponents/LoadingOverlay/index.d.ts +0 -6
  17. package/es/customComponents/LoadingOverloay/index.d.ts +0 -3
  18. package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +0 -10
  19. package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +0 -83
  20. package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +0 -75
  21. package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +0 -193
  22. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +0 -54
  23. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +0 -157
  24. package/es/customComponents/MobileContainor/index.d.ts +0 -8
  25. package/es/customComponents/index.d.ts +0 -5
  26. package/es/framework/AuthorizationWrapper/index.js +0 -108
  27. package/es/framework/ButtonExtension/SelectButton/Base/index.js +0 -98
  28. package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +0 -149
  29. package/es/framework/Common/CardCollectionItemContent/index.d.ts +0 -14
  30. package/es/framework/Common/CommonInternal/index.d.ts +0 -167
  31. package/es/framework/Common/InternalMake/index.d.ts +0 -9
  32. package/es/framework/Common/index.js +0 -39
  33. package/es/framework/Core/index.js +0 -38
  34. package/es/framework/CustomWrapper/Supplement/index.js +0 -67
  35. package/es/framework/CustomWrapper/SupplementCore/index.js +0 -131
  36. package/es/framework/CustomWrapper/SupplementWrapper/index.js +0 -61
  37. package/es/framework/DataDrawer/Base/index.js +0 -335
  38. package/es/framework/DataDrawer/BaseAddDrawer/index.js +0 -95
  39. package/es/framework/DataDrawer/BaseLoadDrawer/index.js +0 -82
  40. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +0 -94
  41. package/es/framework/DataDrawer/BaseSaveDrawer/index.js +0 -85
  42. package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +0 -83
  43. package/es/framework/DataForm/BaseAddForm/index.js +0 -261
  44. package/es/framework/DataForm/BaseUpdateForm/index.js +0 -183
  45. package/es/framework/DataForm/BaseUpdateFormContent/index.js +0 -72
  46. package/es/framework/DataForm/BaseUpdateFormTab/index.js +0 -66
  47. package/es/framework/DataListView/Base/index.js +0 -1261
  48. package/es/framework/DataListView/BatchAction/index.js +0 -73
  49. package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -116
  50. package/es/framework/DataListView/ColumnSetting/index.js +0 -319
  51. package/es/framework/DataListView/DensityAction/index.js +0 -63
  52. package/es/framework/DataMenuContainer/index.js +0 -282
  53. package/es/framework/DataModal/Base/index.js +0 -231
  54. package/es/framework/DataModal/BaseAddModal/index.js +0 -72
  55. package/es/framework/DataModal/BaseLoadModal/index.js +0 -80
  56. package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +0 -106
  57. package/es/framework/DataModal/BaseSelectModal/index.js +0 -74
  58. package/es/framework/DataModal/BaseUpdateModal/index.js +0 -62
  59. package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -140
  60. package/es/framework/DataMultiPageView/InnerMultiPage/index.js +0 -82
  61. package/es/framework/DataMultiPageView/MultiPage/index.js +0 -299
  62. package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +0 -457
  63. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +0 -123
  64. package/es/framework/DataOperation/Base/index.js +0 -322
  65. package/es/framework/DataOperation/BaseView/index.js +0 -83
  66. package/es/framework/DataOperation/BaseWindow/index.js +0 -330
  67. package/es/framework/DataSinglePageView/InnerSinglePage/index.js +0 -82
  68. package/es/framework/DataSinglePageView/SinglePage/index.js +0 -254
  69. package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +0 -438
  70. package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +0 -126
  71. package/es/framework/DataSingleView/DataCore/index.js +0 -260
  72. package/es/framework/DataSingleView/DataLoad/index.js +0 -151
  73. package/es/framework/DataTabContainer/index.js +0 -254
  74. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +0 -158
  75. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +0 -159
  76. package/es/framework/LayoutWrapper/index.d.ts +0 -2
  77. package/es/framework/Wrapper/index.js +0 -59
  78. package/es/get.js +0 -28
  79. package/es/getPrototypeOf.js +0 -76
  80. package/es/index2.js +0 -2075
  81. package/es/index3.js +0 -383
  82. package/es/models/index.d.ts +0 -1
  83. package/es/models/schedulingControl.d.ts +0 -46
  84. package/es/models/schedulingControl.js +0 -171
  85. package/es/objectSpread2.js +0 -40
  86. package/es/services/schedulingControl.js +0 -135
  87. package/es/slicedToArray.js +0 -43
  88. package/es/toConsumableArray.js +0 -19
  89. package/es/toPropertyKey.js +0 -19
  90. package/es/typeof.js +0 -11
  91. package/es/unsupportedIterableToArray.js +0 -16
  92. package/es/utils/appListDataAssist.js +0 -69
  93. package/es/utils/applicationAssist.js +0 -28
  94. package/es/utils/bootstrap.js +0 -58
  95. package/es/utils/layoutSettingAssist.js +0 -60
  96. package/es/utils/metaDataAssist.js +0 -69
  97. package/es/utils/storageAssist.js +0 -153
@@ -1,457 +0,0 @@
1
- import { _ as _objectSpread2 } from '../../../objectSpread2.js';
2
- import { _ as _inherits, a as _classCallCheck, e as _assertThisInitialized, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
3
- import { Card, Row, Col, Tag, Divider, Tooltip, Button, Spin, List, Drawer } from 'antd';
4
- import QueueAnim from 'rc-queue-anim';
5
- import React from 'react';
6
- import { ReadOutlined } from '@ant-design/icons';
7
- import { notificationTypeCollection, contentConfig, listViewConfig } from 'antd-management-fast-common/es/utils/constants';
8
- import { isFunction, notify } from 'antd-management-fast-common/es/utils/tools';
9
- import { buildListViewItemActionSelect } from 'antd-management-fast-component/es/customComponents/FunctionComponent';
10
- import { iconBuilder } from 'antd-management-fast-component/es/customComponents/Icon';
11
- import ColumnSetting from '../../DataListView/ColumnSetting/index.js';
12
- import DensityAction from '../../DataListView/DensityAction/index.js';
13
- import MultiPage from '../MultiPage/index.js';
14
- import '../../../toPropertyKey.js';
15
- import '../../../typeof.js';
16
- import '../../../toConsumableArray.js';
17
- import '../../../unsupportedIterableToArray.js';
18
- import 'react-dnd';
19
- import 'react-dnd-html5-backend';
20
- import '../../DataListView/ColumnSetting/DndItem.js';
21
- import '../../../slicedToArray.js';
22
- import 'antd-management-fast-common/es/utils/globalStorageAssist';
23
- import '../../DataListView/Base/index.js';
24
- import '../../../index2.js';
25
- import 'antd-management-fast-common/es/utils/dynamicSetting';
26
- import 'antd-management-fast-common/es/utils/requestAssistor';
27
- import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
28
- import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
29
- import 'antd-management-fast-component/es/customComponents/AudioUpload';
30
- import 'antd-management-fast-component/es/customComponents/ColorText';
31
- import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
32
- import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
33
- import 'antd-management-fast-component/es/customComponents/FileUpload';
34
- import 'antd-management-fast-component/es/customComponents/FlexBox';
35
- import 'antd-management-fast-component/es/customComponents/FlexText';
36
- import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
37
- import 'antd-management-fast-component/es/customComponents/HelpBox';
38
- import 'antd-management-fast-component/es/customComponents/HelpCard';
39
- import 'antd-management-fast-component/es/customComponents/HtmlBox';
40
- import 'antd-management-fast-component/es/customComponents/IconInfo';
41
- import 'antd-management-fast-component/es/customComponents/ImageBox';
42
- import 'antd-management-fast-component/es/customComponents/ImageUpload';
43
- import 'antd-management-fast-component/es/customComponents/VideoUpload';
44
- import '../../../utils/metaDataAssist.js';
45
- import '../../../index3.js';
46
- import 'antd-management-fast-common/es/utils/actionAssist';
47
- import 'antd-management-fast-common/es/utils/dva';
48
- import '../../../utils/storageAssist.js';
49
- import 'antd-management-fast-common/es/utils/localStorageAssist';
50
- import '../../Core/index.js';
51
- import 'antd-management-fast-component/es/customComponents/BaseComponent';
52
- import 'classnames';
53
- import '@ant-design/pro-layout';
54
- import 'antd-management-fast-common/es/utils/routeAssist';
55
- import 'antd-management-fast-component/es/customComponents/DecorateAvatar';
56
- import 'antd-management-fast-component/es/customComponents/StandardTableCustom';
57
- import '../../AuthorizationWrapper/index.js';
58
- import 'antd-management-fast-common/es/utils/authority';
59
- import '../../CustomWrapper/SupplementWrapper/index.js';
60
- import '../../CustomWrapper/Supplement/index.js';
61
- import '../../CustomWrapper/SupplementCore/index.js';
62
- import '../../DataListView/BatchAction/index.js';
63
- import 'antd/lib/config-provider/context';
64
-
65
- var styles = {"containorBox":"index_containorBox__-rYnz","titleIcon":"index_titleIcon__oftFD","titleText":"index_titleText__0mbfR","mainContainor":"index_mainContainor__hOTmv","contentContainor":"index_contentContainor__IjDYJ","containorTable":"index_containorTable__Scbzl","iconAction":"index_iconAction__aNISl","spinListView":"index_spinListView__JuOZQ","list":"index_list__YXw-y"};
66
-
67
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
68
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
69
- var MultiPageDrawer = /*#__PURE__*/function (_MultiPage) {
70
- _inherits(MultiPageDrawer, _MultiPage);
71
- var _super = _createSuper(MultiPageDrawer);
72
- function MultiPageDrawer(props) {
73
- var _this;
74
- _classCallCheck(this, MultiPageDrawer);
75
- _this = _super.call(this, props);
76
- _this.loadDataAfterMount = false;
77
- _this.resetDataAfterLoad = false;
78
- _this.reloadWhenShow = true;
79
- _this.doWorkWhenDidUpdate = function (preProps, preState, snapshot) {
80
- var visiblePre = preState.visible;
81
- var visible = _this.state.visible;
82
- if (visiblePre !== visible) {
83
- _this.doOtherWhenChangeVisible(preProps, preState, snapshot, visible);
84
- }
85
- };
86
- _this.doOtherWhenChangeVisible = function (preProps, preState, snapshot, currentVisible) {
87
- if (currentVisible) {
88
- _this.doOtherWhenChangeVisibleToShow(preProps, preState, snapshot);
89
- _this.executeAfterDoOtherWhenChangeVisibleToShow(preProps, preState, snapshot);
90
- } else {
91
- _this.doOtherWhenChangeVisibleToHide(preProps, preState, snapshot);
92
- _this.executeAfterDoOtherWhenChangeVisibleToHide(preProps, preState, snapshot);
93
- }
94
- _this.executeOtherAfterDoOtherWhenChangeVisible(preProps, preState, snapshot);
95
- };
96
- _this.doOtherWhenChangeVisibleToShow = function (preProps, preState, snapshot) {
97
- var firstLoadSuccess = _this.state.firstLoadSuccess;
98
-
99
- // 未加载数据过数据的时候,进行加载
100
- if (!firstLoadSuccess) {
101
- // 设置界面效果为加载中,减少用户误解
102
- _this.setState({
103
- dataLoading: true
104
- });
105
- _this.handleSearchReset(false, 700);
106
- } else if (_this.reloadWhenShow) {
107
- _this.reloadData({
108
- reloadAnimalShow: true
109
- }, function () {
110
- _this.setState({
111
- reloadAnimalShow: false
112
- });
113
- }, 700);
114
- }
115
- };
116
- _this.executeAfterDoOtherWhenChangeVisibleToShow = function (
117
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
118
- preProps,
119
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
120
- preState,
121
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
122
- snapshot) {};
123
- _this.doOtherWhenChangeVisibleToHide = function (preProps, preState, snapshot) {};
124
- _this.executeAfterDoOtherWhenChangeVisibleToHide = function (
125
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
126
- preProps,
127
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
128
- preState,
129
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
130
- snapshot) {};
131
- _this.executeOtherAfterDoOtherWhenChangeVisible = function (
132
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
133
- preProps,
134
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
135
- preState,
136
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
137
- snapshot) {};
138
- _this.onClose = function () {
139
- var afterClose = _this.props.afterClose;
140
- if (typeof afterClose === 'function') {
141
- afterClose();
142
- }
143
- };
144
- _this.renderTitleIcon = function () {
145
- return /*#__PURE__*/React.createElement(ReadOutlined, {
146
- className: styles.titleIcon
147
- });
148
- };
149
- _this.hideDrawer = function () {
150
- _this.onClose();
151
- };
152
- _this.selectRecord = function (_ref) {
153
- var handleData = _ref.handleData;
154
- var _this$props = _this.props,
155
- afterSelectSuccess = _this$props.afterSelectSuccess,
156
- hideDrawerAfterSelect = _this$props.hideDrawerAfterSelect;
157
- if (isFunction(afterSelectSuccess)) {
158
- afterSelectSuccess(handleData);
159
- }
160
- if (hideDrawerAfterSelect) {
161
- _this.hideDrawer();
162
- } else {
163
- notify({
164
- type: notificationTypeCollection.success,
165
- placement: 'bottomLeft',
166
- message: '操作结果',
167
- description: '选择成功'
168
- });
169
- }
170
- };
171
- _this.establishWrapperTypeConfig = function () {
172
- return {
173
- mode: contentConfig.wrapperType.drawer
174
- };
175
- };
176
- _this.renderViewContainor = function () {
177
- var _this$state = _this.state,
178
- reloadAnimalShow = _this$state.reloadAnimalShow,
179
- listTitle = _this$state.listTitle,
180
- tableSize = _this$state.tableSize,
181
- dataLoading = _this$state.dataLoading,
182
- reloading = _this$state.reloading,
183
- processing = _this$state.processing,
184
- refreshing = _this$state.refreshing,
185
- listViewMode = _this$state.listViewMode;
186
- var extraAction = _this.renderExtraActionView();
187
- var searchForm = _this.renderForm();
188
- return /*#__PURE__*/React.createElement("div", {
189
- className: styles.tableList,
190
- style: listViewMode === listViewConfig.viewMode.list ? {
191
- height: '100%',
192
- overflow: 'hidden'
193
- } : {}
194
- }, /*#__PURE__*/React.createElement("div", {
195
- className: styles.containorBox,
196
- style: listViewMode === listViewConfig.viewMode.list ? {
197
- height: '100%',
198
- overflow: 'hidden',
199
- display: 'flex',
200
- flexDirection: 'column'
201
- } : {}
202
- }, _this.showSearchForm && (searchForm || null) != null ? /*#__PURE__*/React.createElement("div", {
203
- style: listViewMode === listViewConfig.viewMode.list ? {
204
- flex: 0
205
- } : {}
206
- }, /*#__PURE__*/React.createElement(Card, {
207
- bordered: false,
208
- className: styles.containorSearch,
209
- bodyStyle: {
210
- padding: 0
211
- }
212
- }, /*#__PURE__*/React.createElement("div", {
213
- className: styles.tableListForm
214
- }, _this.renderForm())), /*#__PURE__*/React.createElement("div", {
215
- style: {
216
- height: '1px',
217
- backgroundColor: '#f0f2f5'
218
- }
219
- })) : null, /*#__PURE__*/React.createElement("div", {
220
- style: listViewMode === listViewConfig.viewMode.list ? {
221
- flex: 'auto',
222
- overflow: 'hidden'
223
- } : {}
224
- }, /*#__PURE__*/React.createElement(Card, {
225
- title: /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
226
- flex: "70px"
227
- }, " ", listTitle), /*#__PURE__*/React.createElement(Col, {
228
- flex: "auto"
229
- }, /*#__PURE__*/React.createElement(QueueAnim, null, reloadAnimalShow ? /*#__PURE__*/React.createElement("div", {
230
- key: "3069dd18-f530-43ab-b96d-a86f8079358f"
231
- }, /*#__PURE__*/React.createElement(Tag, {
232
- color: "gold"
233
- }, "\u5373\u5C06\u5237\u65B0")) : null))),
234
- style: listViewMode === listViewConfig.viewMode.list ? {
235
- height: '100%',
236
- overflow: 'hidden',
237
- display: 'flex',
238
- flexDirection: 'column'
239
- } : {},
240
- headStyle: {
241
- borderBottom: 0,
242
- paddingLeft: 0,
243
- paddingRight: 0,
244
- flex: 0
245
- },
246
- bodyStyle: {
247
- paddingTop: 0,
248
- paddingBottom: 0,
249
- paddingLeft: 0,
250
- paddingRight: 0,
251
- flex: 'auto',
252
- overflow: 'hidden'
253
- // height: 'calc(100vh - 103px)',
254
- },
255
-
256
- bordered: false,
257
- className: styles.containorTable,
258
- extra: /*#__PURE__*/React.createElement(React.Fragment, null, extraAction, extraAction == null ? null : /*#__PURE__*/React.createElement(Divider, {
259
- type: "vertical"
260
- }), _this.renderBatchAction(), listViewMode === listViewConfig.viewMode.table ? /*#__PURE__*/React.createElement(DensityAction, {
261
- tableSize: tableSize,
262
- setTableSize: function setTableSize(key) {
263
- _this.setTableSize(key);
264
- }
265
- }) : null, /*#__PURE__*/React.createElement(Tooltip, {
266
- title: "\u5237\u65B0\u672C\u9875"
267
- }, /*#__PURE__*/React.createElement(Button, {
268
- shape: "circle",
269
- className: styles.iconAction,
270
- loading: refreshing,
271
- icon: iconBuilder.reload(),
272
- onClick: function onClick() {
273
- _this.refreshData();
274
- }
275
- })), listViewMode === listViewConfig.viewMode.table ? /*#__PURE__*/React.createElement(ColumnSetting, {
276
- columns: _this.getColumn(),
277
- columnsMap: _this.getColumnsMap(),
278
- setColumnsMap: function setColumnsMap(e) {
279
- _this.setColumnsMap(e);
280
- },
281
- setSortKeyColumns: function setSortKeyColumns(key) {
282
- _this.setSortKeyColumns(key);
283
- }
284
- }) : null)
285
- }, /*#__PURE__*/React.createElement(Spin, {
286
- spinning: dataLoading || reloading || processing,
287
- wrapperClassName: styles.spinListView
288
- }, /*#__PURE__*/React.createElement("div", {
289
- style: listViewMode === listViewConfig.viewMode.list ? {
290
- height: '100%',
291
- overflow: 'hidden',
292
- display: 'flex',
293
- flexDirection: 'column'
294
- } : {}
295
- }, /*#__PURE__*/React.createElement("div", {
296
- style: listViewMode === listViewConfig.viewMode.list ? {
297
- flex: 0
298
- } : {}
299
- }, _this.renderAboveTable()), /*#__PURE__*/React.createElement("div", {
300
- style: listViewMode === listViewConfig.viewMode.list ? {
301
- flex: 'auto',
302
- overflow: 'hidden',
303
- paddingTop: 5
304
- } : {}
305
- }, _this.renderView())))))), _this.renderOther());
306
- };
307
- _this.renderContentContainor = function () {
308
- var listViewMode = _this.state.listViewMode;
309
- return /*#__PURE__*/React.createElement("div", {
310
- className: styles.contentContainor,
311
- style: _objectSpread2(_objectSpread2(_objectSpread2({}, listViewMode === listViewConfig.viewMode.list ? {
312
- paddingBottom: 0,
313
- height: '100%',
314
- overflow: 'hidden'
315
- } : {
316
- paddingBottom: 0
317
- }), _this.showSearchForm ? {} : {
318
- paddingTop: 0
319
- }), {
320
- backgroundColor: '#fff'
321
- })
322
- }, _this.renderViewContainor());
323
- };
324
- _this.renderDrawerInner = function () {
325
- var listViewMode = _this.state.listViewMode;
326
- return /*#__PURE__*/React.createElement("div", {
327
- className: styles.mainContainor,
328
- style: listViewMode === listViewConfig.viewMode.list ? {
329
- height: '100%',
330
- overflow: 'hidden'
331
- } : {}
332
- }, _this.renderContentContainor());
333
- };
334
- _this.establishPaginationViewStyle = function () {
335
- return {
336
- paddingTop: 10,
337
- paddingBottom: 10
338
- };
339
- };
340
- _this.renderListView = function () {
341
- var listViewMode = _this.state.listViewMode;
342
- return /*#__PURE__*/React.createElement("div", {
343
- style: listViewMode === listViewConfig.viewMode.list ? {
344
- height: '100%',
345
- overflow: 'hidden',
346
- display: 'flex',
347
- flexDirection: 'column'
348
- } : {}
349
- }, /*#__PURE__*/React.createElement("div", {
350
- style: listViewMode === listViewConfig.viewMode.list ? {
351
- flex: 'auto',
352
- overflow: 'hidden'
353
- } : {}
354
- }, /*#__PURE__*/React.createElement(List, {
355
- style: listViewMode === listViewConfig.viewMode.list ? {
356
- height: '100%',
357
- overflow: 'auto'
358
- } : {},
359
- className: styles.list,
360
- itemLayout: _this.renderListViewItemLayout(),
361
- dataSource: _this.getCanUseFrontendPagination() ? _this.adjustFrontendPaginationViewDataSource() : _this.adjustViewDataSource(),
362
- pagination: false,
363
- renderItem: function renderItem(item, index) {
364
- return _this.renderListViewItem(item, index);
365
- }
366
- })), /*#__PURE__*/React.createElement("div", {
367
- style: listViewMode === listViewConfig.viewMode.list ? {
368
- flex: 0,
369
- paddingTop: 0,
370
- paddingBottom: 0
371
- } : {}
372
- }, /*#__PURE__*/React.createElement("div", {
373
- style: listViewMode === listViewConfig.viewMode.list ? {
374
- height: '100%',
375
- display: 'flex',
376
- justifyContent: 'space-between'
377
- } : {}
378
- }, /*#__PURE__*/React.createElement("div", {
379
- style: listViewMode === listViewConfig.viewMode.list ? {
380
- flex: 'auto'
381
- } : {}
382
- }), _this.renderPaginationView())));
383
- };
384
- _this.renderListViewItemActionSelect = function (item, index) {
385
- var that = _assertThisInitialized(_this);
386
- return buildListViewItemActionSelect({
387
- index: index,
388
- selectData: item,
389
- selectCallback: function selectCallback(data) {
390
- return that.selectRecord({
391
- handleData: data || null
392
- });
393
- }
394
- });
395
- };
396
- _this.restoreSearch = false;
397
- var s = _this.state;
398
- s.dataLoading = false;
399
- _this.state = _objectSpread2(_objectSpread2({}, s), {
400
- visible: false,
401
- reloadAnimalShow: false,
402
- listViewMode: listViewConfig.viewMode.table
403
- });
404
- return _this;
405
- }
406
-
407
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
408
- _createClass(MultiPageDrawer, [{
409
- key: "renderFurther",
410
- value: function renderFurther() {
411
- var widthDrawer = this.props.width;
412
- var _this$state2 = this.state,
413
- visible = _this$state2.visible,
414
- listViewMode = _this$state2.listViewMode;
415
- return /*#__PURE__*/React.createElement(Drawer, {
416
- title: /*#__PURE__*/React.createElement("span", null, this.renderTitleIcon(), this.getPageName()),
417
- destroyOnClose: false,
418
- className: styles.containorBox,
419
- width: widthDrawer,
420
- placement: "right",
421
- visible: visible || false,
422
- onClose: this.onClose,
423
- bodyStyle: {
424
- padding: 0
425
- }
426
- }, listViewMode === listViewConfig.viewMode.list ? /*#__PURE__*/React.createElement("div", {
427
- style: {
428
- height: 'calc(100vh - 55px)'
429
- }
430
- }, this.renderDrawerInner()) : null, listViewMode === listViewConfig.viewMode.cardCollectionView ? /*#__PURE__*/React.createElement("div", {
431
- style: {
432
- height: 'calc(100vh - 55px)'
433
- }
434
- }, this.renderDrawerInner()) : null, listViewMode === listViewConfig.viewMode.table ? this.renderDrawerInner() : null);
435
- }
436
- }], [{
437
- key: "getDerivedStateFromProps",
438
- value: function getDerivedStateFromProps(nextProps, prevState) {
439
- var visible = nextProps.visible,
440
- externalData = nextProps.externalData;
441
- return {
442
- visible: visible || false,
443
- externalData: externalData || null
444
- };
445
- }
446
-
447
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
448
- }]);
449
- return MultiPageDrawer;
450
- }(MultiPage);
451
- MultiPageDrawer.defaultProps = {
452
- hideDrawerAfterSelect: true,
453
- confirmSelect: true,
454
- width: 820
455
- };
456
-
457
- export { MultiPageDrawer as default };
@@ -1,123 +0,0 @@
1
- import { _ as _objectSpread2 } from '../../../objectSpread2.js';
2
- import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
3
- import { _ as _get } from '../../../get.js';
4
- import { isFunction } from 'antd-management-fast-common/es/utils/tools';
5
- import { buildButton } from 'antd-management-fast-component/es/customComponents/FunctionComponent';
6
- import { iconBuilder } from 'antd-management-fast-component/es/customComponents/Icon';
7
- import MultiPageDrawer from '../MultiPageDrawer/index.js';
8
- import '../../../toPropertyKey.js';
9
- import '../../../typeof.js';
10
- import 'antd';
11
- import 'rc-queue-anim';
12
- import 'react';
13
- import '@ant-design/icons';
14
- import 'antd-management-fast-common/es/utils/constants';
15
- import '../../DataListView/ColumnSetting/index.js';
16
- import '../../../toConsumableArray.js';
17
- import '../../../unsupportedIterableToArray.js';
18
- import 'react-dnd';
19
- import 'react-dnd-html5-backend';
20
- import '../../DataListView/ColumnSetting/DndItem.js';
21
- import '../../../slicedToArray.js';
22
- import '../../DataListView/DensityAction/index.js';
23
- import '../MultiPage/index.js';
24
- import 'antd-management-fast-common/es/utils/globalStorageAssist';
25
- import '../../DataListView/Base/index.js';
26
- import '../../../index2.js';
27
- import 'antd-management-fast-common/es/utils/dynamicSetting';
28
- import 'antd-management-fast-common/es/utils/requestAssistor';
29
- import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
30
- import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
31
- import 'antd-management-fast-component/es/customComponents/AudioUpload';
32
- import 'antd-management-fast-component/es/customComponents/ColorText';
33
- import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
34
- import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
35
- import 'antd-management-fast-component/es/customComponents/FileUpload';
36
- import 'antd-management-fast-component/es/customComponents/FlexBox';
37
- import 'antd-management-fast-component/es/customComponents/FlexText';
38
- import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
39
- import 'antd-management-fast-component/es/customComponents/HelpBox';
40
- import 'antd-management-fast-component/es/customComponents/HelpCard';
41
- import 'antd-management-fast-component/es/customComponents/HtmlBox';
42
- import 'antd-management-fast-component/es/customComponents/IconInfo';
43
- import 'antd-management-fast-component/es/customComponents/ImageBox';
44
- import 'antd-management-fast-component/es/customComponents/ImageUpload';
45
- import 'antd-management-fast-component/es/customComponents/VideoUpload';
46
- import '../../../utils/metaDataAssist.js';
47
- import '../../../index3.js';
48
- import 'antd-management-fast-common/es/utils/actionAssist';
49
- import 'antd-management-fast-common/es/utils/dva';
50
- import '../../../utils/storageAssist.js';
51
- import 'antd-management-fast-common/es/utils/localStorageAssist';
52
- import '../../Core/index.js';
53
- import 'antd-management-fast-component/es/customComponents/BaseComponent';
54
- import 'classnames';
55
- import '@ant-design/pro-layout';
56
- import 'antd-management-fast-common/es/utils/routeAssist';
57
- import 'antd-management-fast-component/es/customComponents/DecorateAvatar';
58
- import 'antd-management-fast-component/es/customComponents/StandardTableCustom';
59
- import '../../AuthorizationWrapper/index.js';
60
- import 'antd-management-fast-common/es/utils/authority';
61
- import '../../CustomWrapper/SupplementWrapper/index.js';
62
- import '../../CustomWrapper/Supplement/index.js';
63
- import '../../CustomWrapper/SupplementCore/index.js';
64
- import '../../DataListView/BatchAction/index.js';
65
- import 'antd/lib/config-provider/context';
66
-
67
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
68
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
69
- var MultiPageSelectDrawer = /*#__PURE__*/function (_MultiPageDrawer) {
70
- _inherits(MultiPageSelectDrawer, _MultiPageDrawer);
71
- var _super = _createSuper(MultiPageSelectDrawer);
72
- function MultiPageSelectDrawer() {
73
- var _this;
74
- _classCallCheck(this, MultiPageSelectDrawer);
75
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
76
- args[_key] = arguments[_key];
77
- }
78
- _this = _super.call.apply(_super, [this].concat(args));
79
- _this.showListViewItemActionSelect = true;
80
- _this.selectRecord = function (_ref) {
81
- var handleData = _ref.handleData;
82
- var afterSelectSuccess = _this.props.afterSelectSuccess;
83
- if (isFunction(afterSelectSuccess)) {
84
- afterSelectSuccess(handleData);
85
- }
86
- _this.hideDrawer();
87
- };
88
- _this.renderSelectButton = function (_ref2) {
89
- var _ref2$confirm = _ref2.confirm,
90
- confirm = _ref2$confirm === void 0 ? false : _ref2$confirm,
91
- _ref2$text = _ref2.text,
92
- textSource = _ref2$text === void 0 ? '选择' : _ref2$text,
93
- _ref2$icon = _ref2.icon,
94
- iconSource = _ref2$icon === void 0 ? iconBuilder["import"]() : _ref2$icon,
95
- _ref2$handleData = _ref2.handleData,
96
- handleData = _ref2$handleData === void 0 ? null : _ref2$handleData,
97
- _ref2$showIcon = _ref2.showIcon,
98
- showIcon = _ref2$showIcon === void 0 ? true : _ref2$showIcon;
99
- return buildButton(_objectSpread2({}, {
100
- confirm: confirm,
101
- size: 'small',
102
- icon: iconSource || iconBuilder["import"](),
103
- text: textSource || '选择',
104
- showIcon: showIcon,
105
- handleClick: function handleClick() {
106
- return _this.selectRecord({
107
- handleData: handleData || null
108
- });
109
- }
110
- }));
111
- };
112
- return _this;
113
- }
114
- _createClass(MultiPageSelectDrawer, null, [{
115
- key: "getDerivedStateFromProps",
116
- value: function getDerivedStateFromProps(nextProps, prevState) {
117
- return _get(_getPrototypeOf(MultiPageSelectDrawer), "getDerivedStateFromProps", this).call(this, nextProps, prevState);
118
- }
119
- }]);
120
- return MultiPageSelectDrawer;
121
- }(MultiPageDrawer);
122
-
123
- export { MultiPageSelectDrawer as default };