antd-management-fast-framework 1.11.39 → 1.11.44

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 (48) hide show
  1. package/es/configGroup/configGeneral.d.ts +7 -0
  2. package/es/configGroup/configGeneral.js +83 -1
  3. package/es/customComponents/AnimalBox/FadeBox/index.less +6 -6
  4. package/es/customComponents/AudioUpload/index.d.ts +30 -0
  5. package/es/customComponents/AudioUpload/index.js +478 -0
  6. package/es/customComponents/EllipsisCustom/index.less +1 -1
  7. package/es/customComponents/FunctionComponent/index.js +0 -1
  8. package/es/customComponents/ImageBox/index.less +4 -4
  9. package/es/customComponents/ImageUpload/index.d.ts +3 -0
  10. package/es/customComponents/ImageUpload/index.js +32 -8
  11. package/es/customComponents/ImageUpload/index.less +13 -2
  12. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +6 -0
  13. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +89 -0
  14. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +11 -0
  15. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +95 -0
  16. package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +11 -0
  17. package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +95 -0
  18. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +11 -0
  19. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +95 -0
  20. package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +6 -0
  21. package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +97 -0
  22. package/es/customComponents/MobileContainor/Devices/devices.less +2815 -0
  23. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +9 -0
  24. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +209 -0
  25. package/es/customComponents/MobileContainor/{index.d.ts → RoughSketch/index.d.ts} +0 -0
  26. package/es/customComponents/MobileContainor/{index.js → RoughSketch/index.js} +1 -11
  27. package/es/customComponents/MobileContainor/RoughSketch/index.less +58 -0
  28. package/es/customComponents/NoticeIconCustom/NoticeList.less +1 -1
  29. package/es/customComponents/VideoUpload/index.js +1 -1
  30. package/es/framework/Common/index.d.ts +1 -0
  31. package/es/framework/Common/index.js +59 -14
  32. package/es/framework/CustomWrapper/SupplementCore/index.js +17 -0
  33. package/es/framework/DataDrawer/Base/index.d.ts +5 -0
  34. package/es/framework/DataDrawer/Base/index.js +142 -11
  35. package/es/framework/DataListView/Base/index.js +5 -1
  36. package/es/framework/DataModal/Base/index.js +0 -2
  37. package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -2
  38. package/es/utils/actionAssist.d.ts +11 -18
  39. package/es/utils/actionAssist.js +10 -0
  40. package/es/utils/constants.d.ts +121 -38
  41. package/es/utils/constants.js +135 -3
  42. package/es/utils/defaultSettingsSpecial.d.ts +1 -0
  43. package/es/utils/defaultSettingsSpecial.js +10 -0
  44. package/es/utils/mediaDefault.d.ts +7 -0
  45. package/es/utils/mediaDefault.js +19 -0
  46. package/es/utils/tools.d.ts +1 -0
  47. package/package.json +13 -13
  48. package/es/customComponents/MobileContainor/index.less +0 -60
@@ -0,0 +1,9 @@
1
+ export default MobilePreviewDrawer;
2
+ declare class MobilePreviewDrawer extends Base {
3
+ constructor(props: any);
4
+ renderInnerView: () => null;
5
+ }
6
+ declare namespace MobilePreviewDrawer {
7
+ export const defaultProps: {};
8
+ }
9
+ import Base from "../../../framework/DataDrawer/Base";
@@ -0,0 +1,209 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _icons = require("@ant-design/icons");
13
+
14
+ var _tools = require("../../../utils/tools");
15
+
16
+ var _constants = require("../../../utils/constants");
17
+
18
+ var _Base2 = _interopRequireDefault(require("../../../framework/DataDrawer/Base"));
19
+
20
+ var _VerticalBox = _interopRequireDefault(require("../../VerticalBox"));
21
+
22
+ var _RoughSketch = _interopRequireDefault(require("../RoughSketch"));
23
+
24
+ var _IphoneX = _interopRequireDefault(require("../Devices/IphoneX"));
25
+
26
+ var _Iphone8plus = _interopRequireDefault(require("../Devices/Iphone8plus"));
27
+
28
+ var _Iphone = _interopRequireDefault(require("../Devices/Iphone8"));
29
+
30
+ var _IPhone5S = _interopRequireDefault(require("../Devices/IPhone5S"));
31
+
32
+ var _GalaxyNote = _interopRequireDefault(require("../Devices/GalaxyNote8"));
33
+
34
+ var _FunctionComponent = require("../../FunctionComponent");
35
+
36
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
+
38
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
39
+
40
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
41
+
42
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
43
+
44
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
45
+
46
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
47
+
48
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
49
+
50
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
51
+
52
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
53
+
54
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55
+
56
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
57
+
58
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
59
+
60
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
61
+
62
+ 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); }; }
63
+
64
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
65
+
66
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
67
+
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
+
70
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
71
+
72
+ var MobilePreviewDrawer = /*#__PURE__*/function (_Base) {
73
+ _inherits(MobilePreviewDrawer, _Base);
74
+
75
+ var _super = _createSuper(MobilePreviewDrawer);
76
+
77
+ function MobilePreviewDrawer(props) {
78
+ var _this;
79
+
80
+ _classCallCheck(this, MobilePreviewDrawer);
81
+
82
+ _this = _super.call(this, props);
83
+ _this.resetDataAfterLoad = false;
84
+
85
+ _this.renderTitleIcon = function () {
86
+ return /*#__PURE__*/_react.default.createElement(_icons.PictureOutlined, null);
87
+ };
88
+
89
+ _this.renderTitle = function () {
90
+ return '设备预览';
91
+ };
92
+
93
+ _this.establishExtraActionConfig = function () {
94
+ var mobileType = _this.state.mobileType;
95
+ var listConfig = [];
96
+ Object.entries(_constants.mobileTypeCollection).forEach(function (o, index) {
97
+ var _o = _slicedToArray(o, 2),
98
+ k = _o[0],
99
+ v = _o[1];
100
+
101
+ if ((0, _tools.isObject)(v)) {
102
+ var key = "mobileType_".concat(index);
103
+ listConfig.push({
104
+ key: key,
105
+ flag: k,
106
+ name: v.label,
107
+ alias: v.label,
108
+ description: '',
109
+ availability: _constants.whetherNumber.yes
110
+ });
111
+ }
112
+ });
113
+ return {
114
+ list: [{
115
+ buildType: _constants.drawerConfig.extraBuildType.flexSelect,
116
+ label: '模拟设备',
117
+ value: mobileType,
118
+ renderItemFunction: function renderItemFunction() {
119
+ return (0, _FunctionComponent.buildOptionItem)({
120
+ list: listConfig
121
+ });
122
+ },
123
+ onChangeCallback: function onChangeCallback(v) {
124
+ _this.setState({
125
+ mobileType: v
126
+ });
127
+ }
128
+ }]
129
+ };
130
+ };
131
+
132
+ _this.establishCardCollectionConfig = function () {
133
+ var mobileType = _this.state.mobileType;
134
+ var mobileView = null;
135
+
136
+ switch (mobileType) {
137
+ case _constants.mobileTypeCollection.roughSketch.name:
138
+ mobileView = /*#__PURE__*/_react.default.createElement(_RoughSketch.default, null, _this.renderInnerView());
139
+ break;
140
+
141
+ case _constants.mobileTypeCollection.iphoneX.name:
142
+ mobileView = /*#__PURE__*/_react.default.createElement(_IphoneX.default, null, _this.renderInnerView());
143
+ break;
144
+
145
+ case _constants.mobileTypeCollection.iphone8.name:
146
+ mobileView = /*#__PURE__*/_react.default.createElement(_Iphone.default, null, _this.renderInnerView());
147
+ break;
148
+
149
+ case _constants.mobileTypeCollection.iphone8plus.name:
150
+ mobileView = /*#__PURE__*/_react.default.createElement(_Iphone8plus.default, null, _this.renderInnerView());
151
+ break;
152
+
153
+ case _constants.mobileTypeCollection.iPhone5S.name:
154
+ mobileView = /*#__PURE__*/_react.default.createElement(_IPhone5S.default, null, _this.renderInnerView());
155
+ break;
156
+
157
+ case _constants.mobileTypeCollection.galaxyNote8.name:
158
+ mobileView = /*#__PURE__*/_react.default.createElement(_GalaxyNote.default, null, _this.renderInnerView());
159
+ break;
160
+
161
+ default:
162
+ mobileView = null;
163
+ var text = 'invalid mobile type,please check in console';
164
+ (0, _tools.showErrorMessage)({
165
+ message: text
166
+ });
167
+ (0, _tools.recordObject)({
168
+ message: 'available mobile type list',
169
+ mobileTypeCollection: _constants.mobileTypeCollection
170
+ });
171
+ break;
172
+ }
173
+
174
+ return {
175
+ list: [{
176
+ items: [{
177
+ lg: 24,
178
+ type: _constants.cardConfig.contentItemType.component,
179
+ component: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_VerticalBox.default, {
180
+ align: "center",
181
+ alignJustify: "center",
182
+ style: {
183
+ height: '100%'
184
+ }
185
+ }, mobileView))
186
+ }]
187
+ }]
188
+ };
189
+ };
190
+
191
+ _this.renderInnerView = function () {
192
+ return null;
193
+ };
194
+
195
+ _this.state = _objectSpread(_objectSpread({}, _this.state), {
196
+ placement: 'top',
197
+ height: '100vh',
198
+ showBottomBar: false,
199
+ mobileType: _constants.mobileTypeCollection.roughSketch.name
200
+ });
201
+ return _this;
202
+ }
203
+
204
+ return MobilePreviewDrawer;
205
+ }(_Base2.default);
206
+
207
+ MobilePreviewDrawer.defaultProps = {};
208
+ var _default = MobilePreviewDrawer;
209
+ exports.default = _default;
@@ -9,8 +9,6 @@ exports.default = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _VerticalBox = _interopRequireDefault(require("../VerticalBox"));
13
-
14
12
  var _index = _interopRequireDefault(require("./index.less"));
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -55,18 +53,10 @@ var MobileContainor = /*#__PURE__*/function (_PureComponent) {
55
53
  value: function render() {
56
54
  var children = this.props.children;
57
55
  return /*#__PURE__*/_react.default.createElement("div", {
58
- className: _index.default.deviceContainor
59
- }, /*#__PURE__*/_react.default.createElement(_VerticalBox.default, {
60
- align: "center",
61
- alignJustify: "center",
62
- style: {
63
- height: '100%'
64
- }
65
- }, /*#__PURE__*/_react.default.createElement("div", {
66
56
  className: _index.default.device
67
57
  }, /*#__PURE__*/_react.default.createElement("div", {
68
58
  className: _index.default.deviceInner
69
- }, children))));
59
+ }, children));
70
60
  }
71
61
  }]);
72
62
 
@@ -0,0 +1,58 @@
1
+ .device {
2
+ position: relative;
3
+ width: 320px;
4
+ height: 700px;
5
+ padding: 105px 20px;
6
+ background: #111;
7
+ border-radius: 55px;
8
+ box-shadow: 0 0 0 2px #aaa;
9
+
10
+ &::before {
11
+ position: absolute;
12
+ top: 50px;
13
+ left: 50%;
14
+ width: 60px;
15
+ height: 10px;
16
+ margin-left: -30px;
17
+ background: #333;
18
+ border-radius: 10px;
19
+ content: '';
20
+ }
21
+
22
+ &::after {
23
+ position: absolute;
24
+ bottom: 20px;
25
+ left: 50%;
26
+ box-sizing: border-box;
27
+ width: 60px;
28
+ height: 60px;
29
+ margin-left: -30px;
30
+ border: 5px solid #333;
31
+ border-radius: 100%;
32
+ content: '';
33
+ }
34
+
35
+ .deviceInner {
36
+ height: 100%;
37
+ overflow: auto;
38
+ background-color: #fff;
39
+
40
+ /* 设置滚动条的样式 */
41
+ &::-webkit-scrollbar {
42
+ width: 5px;
43
+ }
44
+
45
+ /* 滚动槽 */
46
+ &::-webkit-scrollbar-track {
47
+ border-radius: 5px;
48
+ box-shadow: inset 0 0 3px rgb(0 0 0 / 30%);
49
+ }
50
+
51
+ /* 滚动条滑块 */
52
+ &::-webkit-scrollbar-thumb {
53
+ background: rgb(0 0 0 / 80%);
54
+ border-radius: 5px;
55
+ box-shadow: inset 0 0 3px rgb(243 243 244);
56
+ }
57
+ }
58
+ }
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  &.read {
28
- opacity: 40%;
28
+ opacity: 0.4;
29
29
  }
30
30
 
31
31
  &:last-child {
@@ -187,7 +187,7 @@ var VideoUpload = /*#__PURE__*/function (_PureComponent) {
187
187
  var isVideo = file.type === 'video/mp4';
188
188
 
189
189
  if (!isVideo) {
190
- var text = '请上传视频文件!';
190
+ var text = '请上传视频文件(*.mp4)!';
191
191
  (0, _tools.showErrorMessage)({
192
192
  message: text
193
193
  });
@@ -139,6 +139,7 @@ declare class Common extends Core {
139
139
  pretreatmentImageUploadRemoteResponse: (response: any) => never;
140
140
  pretreatmentFileBase64UploadRemoteResponse: (response: any) => never;
141
141
  pretreatmentVideoUploadRemoteResponse: (response: any) => never;
142
+ pretreatmentAudioUploadRemoteResponse: (response: any) => never;
142
143
  establishToolBarConfig: () => null;
143
144
  buildToolBar: () => JSX.Element | null;
144
145
  buildToolBarWrapper: () => JSX.Element | null;
@@ -63,6 +63,8 @@ var _ImageUpload = _interopRequireDefault(require("../../customComponents/ImageU
63
63
 
64
64
  var _VideoUpload = _interopRequireDefault(require("../../customComponents/VideoUpload"));
65
65
 
66
+ var _AudioUpload = _interopRequireDefault(require("../../customComponents/AudioUpload"));
67
+
66
68
  var _ImageBox = _interopRequireDefault(require("../../customComponents/ImageBox"));
67
69
 
68
70
  var _HelpBox = _interopRequireDefault(require("../../customComponents/HelpBox"));
@@ -1180,6 +1182,14 @@ var Common = /*#__PURE__*/function (_Core) {
1180
1182
  throw new Error(text);
1181
1183
  };
1182
1184
 
1185
+ _this.pretreatmentAudioUploadRemoteResponse = function (response) {
1186
+ var text = '需要在继承中重新实现 pretreatmentAudioUploadRemoteResponse';
1187
+ (0, _tools.showRuntimeError)({
1188
+ message: text
1189
+ });
1190
+ throw new Error(text);
1191
+ };
1192
+
1183
1193
  _this.establishToolBarConfig = function () {
1184
1194
  return null;
1185
1195
  };
@@ -1694,6 +1704,9 @@ var Common = /*#__PURE__*/function (_Core) {
1694
1704
 
1695
1705
  if (type === _constants.cardConfig.contentItemType.imageUpload) {
1696
1706
  var uploadProps = _objectSpread(_objectSpread({}, {
1707
+ icon: contentItem.icon || null,
1708
+ title: contentItem.title || '',
1709
+ helper: contentItem.helper || '',
1697
1710
  image: contentItem.image || '',
1698
1711
  action: contentItem.action || '',
1699
1712
  tokenSet: _this.getUploadTokenObject(),
@@ -1706,7 +1719,7 @@ var Common = /*#__PURE__*/function (_Core) {
1706
1719
 
1707
1720
  return /*#__PURE__*/_react.default.createElement(_col.default, {
1708
1721
  key: contentItemKey,
1709
- lg: 24,
1722
+ lg: lg || 6,
1710
1723
  md: md,
1711
1724
  sm: sm,
1712
1725
  xs: xs
@@ -1744,10 +1757,10 @@ var Common = /*#__PURE__*/function (_Core) {
1744
1757
 
1745
1758
  return /*#__PURE__*/_react.default.createElement(_col.default, {
1746
1759
  key: contentItemKey,
1747
- lg: 24,
1748
- md: 24,
1749
- sm: 24,
1750
- xs: 24
1760
+ lg: lg || 6,
1761
+ md: md,
1762
+ sm: sm,
1763
+ xs: xs
1751
1764
  }, /*#__PURE__*/_react.default.createElement("div", {
1752
1765
  style: imageBoxContainorStyle
1753
1766
  }, imageBox));
@@ -1813,10 +1826,10 @@ var Common = /*#__PURE__*/function (_Core) {
1813
1826
 
1814
1827
  return /*#__PURE__*/_react.default.createElement(_col.default, {
1815
1828
  key: contentItemKey,
1816
- lg: 24,
1817
- md: 24,
1818
- sm: 24,
1819
- xs: 24
1829
+ lg: lg || 6,
1830
+ md: md,
1831
+ sm: sm,
1832
+ xs: xs
1820
1833
  }, imageBoxListContainorStyle == null ? imageListContainor : /*#__PURE__*/_react.default.createElement("div", {
1821
1834
  style: imageBoxListContainorStyle
1822
1835
  }, imageListContainor));
@@ -1831,10 +1844,10 @@ var Common = /*#__PURE__*/function (_Core) {
1831
1844
 
1832
1845
  return /*#__PURE__*/_react.default.createElement(_col.default, {
1833
1846
  key: contentItemKey,
1834
- lg: 24,
1835
- md: 24,
1836
- sm: 24,
1837
- xs: 24
1847
+ lg: lg || 6,
1848
+ md: md,
1849
+ sm: sm,
1850
+ xs: xs
1838
1851
  }, _this.renderFormInnerComponent(fieldData.label, /*#__PURE__*/_react.default.createElement(_FileBase64Upload.default, _extends({}, _uploadProps, {
1839
1852
  pretreatmentRemoteResponse: _this.pretreatmentFileBase64UploadRemoteResponse,
1840
1853
  afterUploadSuccess: function afterUploadSuccess(fileBase64) {
@@ -1869,6 +1882,30 @@ var Common = /*#__PURE__*/function (_Core) {
1869
1882
  })), fieldData.helper, formItemLayout, require));
1870
1883
  }
1871
1884
 
1885
+ if (type === _constants.cardConfig.contentItemType.audioUpload) {
1886
+ var _uploadProps3 = _objectSpread(_objectSpread({}, contentItem.uploadProps || {}), {
1887
+ audio: contentItem.audio || '',
1888
+ showPreview: contentItem.showPreview || false,
1889
+ action: contentItem.action || '',
1890
+ tokenSet: _this.getUploadTokenObject()
1891
+ });
1892
+
1893
+ return /*#__PURE__*/_react.default.createElement(_col.default, {
1894
+ key: contentItemKey,
1895
+ lg: lg || 6,
1896
+ md: md,
1897
+ sm: sm,
1898
+ xs: xs
1899
+ }, _this.renderFormInnerComponent(fieldData.label, /*#__PURE__*/_react.default.createElement(_AudioUpload.default, _extends({}, _uploadProps3, {
1900
+ pretreatmentRemoteResponse: _this.pretreatmentAudioUploadRemoteResponse,
1901
+ afterChangeSuccess: function afterChangeSuccess(audio) {
1902
+ if ((0, _tools.isFunction)(contentItem.afterChangeSuccess)) {
1903
+ contentItem.afterChangeSuccess(audio);
1904
+ }
1905
+ }
1906
+ })), fieldData.helper, formItemLayout, require));
1907
+ }
1908
+
1872
1909
  return /*#__PURE__*/_react.default.createElement(_col.default, {
1873
1910
  key: contentItemKey,
1874
1911
  lg: lg || 6,
@@ -1935,7 +1972,7 @@ var Common = /*#__PURE__*/function (_Core) {
1935
1972
  formItemLayout: formItemLayout,
1936
1973
  required: true,
1937
1974
  otherProps: _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})
1938
- }) : null, type === _constants.cardConfig.contentItemType.customSelect ? contentItem.component : null, type === _constants.cardConfig.contentItemType.radio ? _this.renderFormSelect(fieldData.label, fieldData.name, function () {
1975
+ }) : null, type === _constants.cardConfig.contentItemType.customSelect ? contentItem.component : null, type === _constants.cardConfig.contentItemType.flexSelect ? (0, _FunctionComponent.buildCustomSelect)(contentItem) : null, type === _constants.cardConfig.contentItemType.radio ? _this.renderFormSelect(fieldData.label, fieldData.name, function () {
1939
1976
  return _this.renderFormRadioCore((0, _tools.refitCommonData)((0, _tools.isArray)(contentItem.listData) ? contentItem.listData : []));
1940
1977
  }, fieldData.helper || '', (0, _tools.isFunction)(contentItem.onChangeCallback) ? contentItem.onChangeCallback : null, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.whetherRadio ? _this.renderFormWhetherRadio(fieldData.label, fieldData.name, fieldData.helper, contentItem.onChangeCallback, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.customRadio ? contentItem.component : null, type === _constants.cardConfig.contentItemType.onlyShowText ? _this.renderFormOnlyShowText(fieldData.label, contentItem.value, ((0, _tools.isUndefined)(contentItem.showHelper) ? false : contentItem.showHelper || false) ? fieldData.helper || '' : '', formItemLayout) : null, type === _constants.cardConfig.contentItemType.innerComponent ? _this.renderFormInnerComponent(fieldData.label, contentItem.component, fieldData.helper, formItemLayout, require) : null, type === _constants.cardConfig.contentItemType.save ? _this.renderFormActionItem(_this.renderSaveButton(contentItem.config || {}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.button ? _this.renderFormButton(contentItem.config || {}, formItemLayout) : null, type === _constants.cardConfig.contentItemType.actionList ? /*#__PURE__*/_react.default.createElement(_space.default, {
1941
1978
  split: (0, _tools.isBoolean)(contentItem.split || false) ? contentItem.split || false ? /*#__PURE__*/_react.default.createElement(_divider.default, {
@@ -1985,6 +2022,10 @@ var Common = /*#__PURE__*/function (_Core) {
1985
2022
  itemAdjust = _this.renderGeneralButton(item);
1986
2023
  break;
1987
2024
 
2025
+ case _constants.cardConfig.extraBuildType.flexSelect:
2026
+ itemAdjust = (0, _FunctionComponent.buildCustomSelect)(item);
2027
+ break;
2028
+
1988
2029
  case _constants.cardConfig.extraBuildType.button:
1989
2030
  itemAdjust = (0, _FunctionComponent.buildButton)(item);
1990
2031
  break;
@@ -2054,6 +2095,10 @@ var Common = /*#__PURE__*/function (_Core) {
2054
2095
  var itemAdjust = item;
2055
2096
 
2056
2097
  switch (buildType) {
2098
+ case _constants.tabBarCollection.extraBuildType.flexSelect:
2099
+ itemAdjust = (0, _FunctionComponent.buildCustomSelect)(item);
2100
+ break;
2101
+
2057
2102
  case _constants.tabBarCollection.extraBuildType.button:
2058
2103
  itemAdjust = (0, _FunctionComponent.buildButton)(item);
2059
2104
  break;
@@ -102,6 +102,23 @@ var SupplementCore = /*#__PURE__*/function (_Common) {
102
102
  return result;
103
103
  };
104
104
 
105
+ _this.pretreatmentAudioUploadRemoteResponse = function (response) {
106
+ var result = {
107
+ audio: ''
108
+ };
109
+ var v = (0, _requestAssistor.pretreatmentRemoteSingleData)(response);
110
+ var dataSuccess = v.dataSuccess;
111
+
112
+ if (dataSuccess) {
113
+ var audioUrl = v.data.audioUrl;
114
+ result = {
115
+ audio: audioUrl || ''
116
+ };
117
+ }
118
+
119
+ return result;
120
+ };
121
+
105
122
  return _this;
106
123
  }
107
124
 
@@ -1,6 +1,7 @@
1
1
  export default Base;
2
2
  declare class Base extends BaseWindow {
3
3
  constructor(props: any);
4
+ showExtraActionDivider: boolean;
4
5
  state: {
5
6
  title: string;
6
7
  width: number;
@@ -39,6 +40,10 @@ declare class Base extends BaseWindow {
39
40
  establishWrapperTypeConfig: () => {
40
41
  mode: string;
41
42
  };
43
+ establishExtraActionConfig: () => null;
44
+ establishExtraActionGroupConfig: () => null;
45
+ establishExtraActionEllipsisConfig: () => null;
46
+ buildExtraAction: () => JSX.Element;
42
47
  formContent: () => any;
43
48
  renderContentContainor: () => JSX.Element;
44
49
  renderCloseButton: (option: any) => any;