antd-management-fast-framework 1.11.37 → 1.11.42

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/License.txt +21 -0
  2. package/es/configGroup/configGeneral.d.ts +7 -0
  3. package/es/configGroup/configGeneral.js +83 -1
  4. package/es/customComponents/AnimalBox/FadeBox/index.less +6 -6
  5. package/es/customComponents/AudioUpload/index.d.ts +30 -0
  6. package/es/customComponents/AudioUpload/index.js +480 -0
  7. package/es/customComponents/EllipsisCustom/index.less +1 -1
  8. package/es/customComponents/FunctionComponent/index.js +0 -1
  9. package/es/customComponents/ImageBox/index.less +4 -4
  10. package/es/customComponents/ImageUpload/index.less +2 -2
  11. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +6 -0
  12. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +89 -0
  13. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +11 -0
  14. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +95 -0
  15. package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +11 -0
  16. package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +95 -0
  17. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +11 -0
  18. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +95 -0
  19. package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +6 -0
  20. package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +97 -0
  21. package/es/customComponents/MobileContainor/Devices/devices.less +2815 -0
  22. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +9 -0
  23. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +209 -0
  24. package/es/customComponents/MobileContainor/{index.d.ts → RoughSketch/index.d.ts} +0 -0
  25. package/es/customComponents/MobileContainor/{index.js → RoughSketch/index.js} +1 -11
  26. package/es/customComponents/MobileContainor/RoughSketch/index.less +58 -0
  27. package/es/customComponents/NoticeIconCustom/NoticeList.less +1 -1
  28. package/es/customComponents/VideoUpload/index.js +1 -1
  29. package/es/framework/Common/index.d.ts +1 -0
  30. package/es/framework/Common/index.js +43 -1
  31. package/es/framework/CustomWrapper/SupplementCore/index.js +17 -0
  32. package/es/framework/DataDrawer/Base/index.d.ts +5 -0
  33. package/es/framework/DataDrawer/Base/index.js +142 -11
  34. package/es/framework/DataListView/Base/index.js +6 -2
  35. package/es/framework/DataModal/Base/index.js +0 -2
  36. package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -2
  37. package/es/utils/actionAssist.d.ts +6 -4
  38. package/es/utils/actionAssist.js +5 -0
  39. package/es/utils/authority.js +3 -4
  40. package/es/utils/constants.d.ts +122 -38
  41. package/es/utils/constants.js +138 -4
  42. package/es/utils/defaultSettingsSpecial.d.ts +1 -0
  43. package/es/utils/defaultSettingsSpecial.js +10 -0
  44. package/es/utils/mediaDefault.d.ts +2 -0
  45. package/es/utils/mediaDefault.js +10 -0
  46. package/es/utils/tools.d.ts +1 -0
  47. package/package.json +14 -14
  48. package/es/customComponents/MobileContainor/index.less +0 -60
package/License.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 luzhitao
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,3 +1,10 @@
1
+ export function buildConfig({ routes, loading, headerExtraLinks, mfsu, proxy, }: {
2
+ routes: any;
3
+ loading?: string | undefined;
4
+ headerExtraLinks?: any[] | undefined;
5
+ mfsu?: boolean | undefined;
6
+ proxy?: any;
7
+ }): any;
1
8
  /**
2
9
  * 占位函数
3
10
  *
@@ -3,9 +3,34 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.buildConfig = buildConfig;
6
7
  exports.configGeneral = void 0;
7
8
  exports.empty = empty;
9
+
10
+ var _umi = require("umi");
11
+
12
+ var _webpackPlugin = require("./webpackPlugin");
13
+
14
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
15
+
16
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+
18
+ 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); }
19
+
20
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
21
+
22
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
23
+
24
+ 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; }
25
+
26
+ 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; }
27
+
28
+ 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; }
29
+
30
+ 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; }
31
+
8
32
  var REACT_APP_ENV = process.env.REACT_APP_ENV;
33
+ var winPath = _umi.utils.winPath;
9
34
  var configGeneral = {
10
35
  hash: true,
11
36
  alias: {},
@@ -47,6 +72,64 @@ var configGeneral = {
47
72
  babelCompact: false
48
73
  }
49
74
  };
75
+ exports.configGeneral = configGeneral;
76
+
77
+ function buildConfig(_ref) {
78
+ var routes = _ref.routes,
79
+ _ref$loading = _ref.loading,
80
+ loading = _ref$loading === void 0 ? '@/components/PageLoading/index' : _ref$loading,
81
+ _ref$headerExtraLinks = _ref.headerExtraLinks,
82
+ headerExtraLinks = _ref$headerExtraLinks === void 0 ? [] : _ref$headerExtraLinks,
83
+ _ref$mfsu = _ref.mfsu,
84
+ mfsu = _ref$mfsu === void 0 ? true : _ref$mfsu,
85
+ _ref$proxy = _ref.proxy,
86
+ proxy = _ref$proxy === void 0 ? null : _ref$proxy;
87
+
88
+ var c = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, configGeneral), {
89
+ dynamicImport: {
90
+ loading: loading
91
+ },
92
+ routes: routes,
93
+ cssLoader: {
94
+ modules: {
95
+ getLocalIdent: function getLocalIdent(context, _, localName) {
96
+ if (context.resourcePath.includes('node_modules') || context.resourcePath.includes('ant.design.pro.less') || context.resourcePath.includes('global.less')) {
97
+ return localName;
98
+ }
99
+
100
+ var match = context.resourcePath.match(/src(.*)/);
101
+
102
+ if (match && match[1]) {
103
+ var antdProPath = match[1].replace('.less', '');
104
+ var arr = winPath(antdProPath).split('/').map(function (a) {
105
+ return a.replace(/([A-Z])/g, '-$1');
106
+ }).map(function (a) {
107
+ return a.toLowerCase();
108
+ });
109
+ return "antd-pro".concat(arr.join('-'), "-").concat(localName).replace(/--/g, '-');
110
+ }
111
+
112
+ return localName;
113
+ }
114
+ }
115
+ }
116
+ }), {
117
+ chainWebpack: _webpackPlugin.webpackPlugin5
118
+ }), (proxy || null) == null ? {} : {
119
+ proxy: proxy
120
+ }), mfsu ? {
121
+ mfsu: {}
122
+ } : {
123
+ mfsu: false
124
+ }), {
125
+ extraCustomOption: {
126
+ headerExtraLinks: _toConsumableArray(headerExtraLinks),
127
+ babelCompact: false
128
+ }
129
+ });
130
+
131
+ return (0, _umi.defineConfig)(c);
132
+ }
50
133
  /**
51
134
  * 占位函数
52
135
  *
@@ -54,7 +137,6 @@ var configGeneral = {
54
137
  * @returns
55
138
  */
56
139
 
57
- exports.configGeneral = configGeneral;
58
140
 
59
141
  function empty() {
60
142
  return {};
@@ -2,7 +2,7 @@
2
2
 
3
3
  .fadeBox {
4
4
  .fade-enter {
5
- opacity: 0%;
5
+ opacity: 0;
6
6
  animation-duration: 0.5s;
7
7
  animation-play-state: paused;
8
8
  animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .fade-appear {
13
- opacity: 0%;
13
+ opacity: 0;
14
14
  animation-duration: 0.5s;
15
15
  animation-play-state: paused;
16
16
  animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
@@ -41,21 +41,21 @@
41
41
 
42
42
  @keyframes fade-in {
43
43
  0% {
44
- opacity: 0%;
44
+ opacity: 0;
45
45
  }
46
46
 
47
47
  100% {
48
- opacity: 100%;
48
+ opacity: 1;
49
49
  }
50
50
  }
51
51
 
52
52
  @keyframes fade-out {
53
53
  0% {
54
- opacity: 100%;
54
+ opacity: 1;
55
55
  }
56
56
 
57
57
  100% {
58
- opacity: 0%;
58
+ opacity: 0;
59
59
  }
60
60
  }
61
61
  }
@@ -0,0 +1,30 @@
1
+ export default AudioUpload;
2
+ declare class AudioUpload extends React.PureComponent<any, any, any> {
3
+ static getDerivedStateFromProps(nextProps: any, prevState: any): {
4
+ audioSource: any;
5
+ audioUrl: any;
6
+ } | null;
7
+ constructor(props: any);
8
+ handleUploadCancel: () => void;
9
+ showPreviewModal: () => void;
10
+ showChangeUrlModal: () => void;
11
+ handleUrlChange: (e: any) => void;
12
+ handleChangeUrlOk: () => void;
13
+ handleChangeUrlCancel: () => void;
14
+ clearUrl: () => void;
15
+ beforeUpload: (file: any) => boolean;
16
+ handleUploadChange: (info: any) => void;
17
+ handleMenuClick: (e: any) => void;
18
+ }
19
+ declare namespace AudioUpload {
20
+ export namespace defaultProps {
21
+ export const action: string;
22
+ export const disabled: boolean;
23
+ export const tokenSet: {};
24
+ export const audio: string;
25
+ export const showPreview: boolean;
26
+ export function pretreatmentRemoteResponse(): void;
27
+ export function afterChangeSuccess(): void;
28
+ }
29
+ }
30
+ import React from "react";