antd-management-fast-framework 2.1.0 → 2.1.2

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 (197) hide show
  1. package/es/components/ApplicationWrapper/index.d.ts +9 -9
  2. package/es/components/Bootstrap/index.d.ts +3 -3
  3. package/es/components/DataPreviewDrawer/index.d.ts +31 -31
  4. package/es/components/LoadingOverlay/index.d.ts +6 -6
  5. package/es/components/MobileContainor/MobileHtmlPreviewBox/index.d.ts +10 -10
  6. package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +75 -75
  7. package/es/components/MobileContainor/MobilePreviewDrawer/index.d.ts +54 -54
  8. package/es/components/MobileContainor/index.d.ts +8 -8
  9. package/es/components/index.d.ts +5 -5
  10. package/es/configs/index.d.ts +2 -2
  11. package/es/configs/themeCollection.d.ts +7 -7
  12. package/es/configs/webpackPlugin.d.ts +4 -4
  13. package/es/framework/AuthorizationWrapper/index.d.ts +11 -12
  14. package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +14 -14
  15. package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +18 -18
  16. package/es/framework/ButtonExtension/SelectButton/index.d.ts +6 -6
  17. package/es/framework/ButtonExtension/index.d.ts +1 -1
  18. package/es/framework/Common/InternalBuild/index.d.ts +26 -26
  19. package/es/framework/Common/InternalFlow/index.d.ts +149 -149
  20. package/es/framework/Common/InternalLayout/index.d.ts +9 -9
  21. package/es/framework/Common/InternalTabFlow/index.d.ts +12 -12
  22. package/es/framework/Common/index.d.ts +3 -3
  23. package/es/framework/Core/index.d.ts +20 -20
  24. package/es/framework/CustomWrapper/Supplement/index.d.ts +9 -9
  25. package/es/framework/CustomWrapper/SupplementCore/index.d.ts +18 -18
  26. package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +3 -3
  27. package/es/framework/CustomWrapper/index.d.ts +3 -3
  28. package/es/framework/DataDrawer/Base/index.d.ts +55 -55
  29. package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +19 -19
  30. package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +4 -4
  31. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +6 -6
  32. package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +4 -4
  33. package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +3 -3
  34. package/es/framework/DataDrawer/index.d.ts +14 -14
  35. package/es/framework/DataForm/BaseAddForm/index.d.ts +34 -34
  36. package/es/framework/DataForm/BaseUpdateForm/index.d.ts +9 -9
  37. package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +3 -3
  38. package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +4 -4
  39. package/es/framework/DataForm/index.d.ts +10 -10
  40. package/es/framework/DataListView/Base/index.d.ts +180 -180
  41. package/es/framework/DataListView/BatchAction/index.d.ts +21 -21
  42. package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +7 -7
  43. package/es/framework/DataListView/ColumnSetting/index.d.ts +2 -2
  44. package/es/framework/DataListView/DensityAction/index.d.ts +6 -6
  45. package/es/framework/DataListView/index.d.ts +10 -10
  46. package/es/framework/DataMenuContainer/index.d.ts +28 -28
  47. package/es/framework/DataModal/Base/index.d.ts +65 -65
  48. package/es/framework/DataModal/BaseAddModal/index.d.ts +3 -3
  49. package/es/framework/DataModal/BaseLoadModal/index.d.ts +4 -4
  50. package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +35 -35
  51. package/es/framework/DataModal/BaseSelectModal/index.d.ts +28 -28
  52. package/es/framework/DataModal/BaseUpdateModal/index.d.ts +3 -3
  53. package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +44 -44
  54. package/es/framework/DataModal/index.d.ts +16 -16
  55. package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +4 -4
  56. package/es/framework/DataMultiPageView/MultiPage/index.d.ts +32 -32
  57. package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +69 -69
  58. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +10 -10
  59. package/es/framework/DataMultiPageView/index.d.ts +10 -10
  60. package/es/framework/DataOperation/Base/index.d.ts +76 -76
  61. package/es/framework/DataOperation/BaseView/index.d.ts +10 -10
  62. package/es/framework/DataOperation/BaseWindow/index.d.ts +89 -89
  63. package/es/framework/DataOperation/index.d.ts +8 -8
  64. package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +5 -5
  65. package/es/framework/DataSinglePageView/SinglePage/index.d.ts +32 -32
  66. package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +71 -71
  67. package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +13 -13
  68. package/es/framework/DataSinglePageView/index.d.ts +10 -10
  69. package/es/framework/DataSingleView/DataCore/index.d.ts +30 -30
  70. package/es/framework/DataSingleView/DataLoad/index.d.ts +51 -51
  71. package/es/framework/DataSingleView/index.d.ts +6 -6
  72. package/es/framework/DataTabContainer/index.d.ts +36 -36
  73. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +24 -24
  74. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldInteractiveBase/index.d.ts +19 -19
  75. package/es/framework/FieldExtension/SelectFieldDrawer/index.d.ts +6 -6
  76. package/es/framework/FieldExtension/index.d.ts +4 -4
  77. package/es/framework/Wrapper/index.d.ts +3 -3
  78. package/es/framework/index.d.ts +17 -17
  79. package/es/index.css +1 -1
  80. package/es/index.d.ts +5 -5
  81. package/es/index.js +3 -9771
  82. package/es/modelBuilders/currentOperator.d.ts +26 -0
  83. package/es/modelBuilders/entrance.d.ts +40 -0
  84. package/es/modelBuilders/index.d.ts +1 -1
  85. package/es/modelBuilders/schedulingControl.d.ts +48 -68
  86. package/es/services/currentOperator.d.ts +2 -0
  87. package/es/services/entrance.d.ts +6 -0
  88. package/es/services/schedulingControl.d.ts +4 -4
  89. package/es/utils/applicationListDataAssist.d.ts +5 -4
  90. package/es/utils/applicationListDataCacheAssist.d.ts +24 -24
  91. package/es/utils/bootstrap.d.ts +4 -4
  92. package/es/utils/configAssist.d.ts +1 -1
  93. package/es/utils/currentOperatorAssist.d.ts +19 -5
  94. package/es/utils/definition.d.ts +4 -4
  95. package/es/utils/index.d.ts +10 -8
  96. package/es/utils/interfaceSettingAssist.d.ts +10 -0
  97. package/es/utils/interfaceSettingCacheAssist.d.ts +18 -0
  98. package/es/utils/metaDataAssist.d.ts +5 -5
  99. package/es/utils/schedulingControlAssist.d.ts +34 -10
  100. package/es/utils/signInAssist.d.ts +6 -0
  101. package/package.json +24 -21
  102. package/es/configGroup/configGeneral.d.ts +0 -28
  103. package/es/configGroup/configGeneral.js +0 -36
  104. package/es/configGroup/index.d.ts +0 -2
  105. package/es/configGroup/themeCollection.d.ts +0 -7
  106. package/es/configGroup/themeCollection.js +0 -9
  107. package/es/configGroup/webpackPlugin.d.ts +0 -4
  108. package/es/configGroup/webpackPlugin.js +0 -351
  109. package/es/customComponents/ApplicationProvider/index.d.ts +0 -12
  110. package/es/customComponents/ApplicationWrapper/index.d.ts +0 -9
  111. package/es/customComponents/Bootstrap/index.d.ts +0 -3
  112. package/es/customComponents/Bootstrap/index.js +0 -67
  113. package/es/customComponents/DataPreviewDrawer/index.d.ts +0 -31
  114. package/es/customComponents/DataPreviewDrawer/index.js +0 -169
  115. package/es/customComponents/LoadingOverlay/index.d.ts +0 -6
  116. package/es/customComponents/LoadingOverloay/index.d.ts +0 -3
  117. package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +0 -10
  118. package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +0 -83
  119. package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +0 -75
  120. package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +0 -193
  121. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +0 -54
  122. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +0 -157
  123. package/es/customComponents/MobileContainor/index.d.ts +0 -8
  124. package/es/customComponents/index.d.ts +0 -5
  125. package/es/framework/AuthorizationWrapper/index.js +0 -108
  126. package/es/framework/ButtonExtension/SelectButton/Base/index.js +0 -98
  127. package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +0 -149
  128. package/es/framework/Common/CardCollectionItemContent/index.d.ts +0 -14
  129. package/es/framework/Common/CommonInternal/index.d.ts +0 -167
  130. package/es/framework/Common/InternalMake/index.d.ts +0 -9
  131. package/es/framework/Common/index.js +0 -39
  132. package/es/framework/Core/index.js +0 -38
  133. package/es/framework/CustomWrapper/Supplement/index.js +0 -67
  134. package/es/framework/CustomWrapper/SupplementCore/index.js +0 -131
  135. package/es/framework/CustomWrapper/SupplementWrapper/index.js +0 -61
  136. package/es/framework/DataDrawer/Base/index.js +0 -335
  137. package/es/framework/DataDrawer/BaseAddDrawer/index.js +0 -95
  138. package/es/framework/DataDrawer/BaseLoadDrawer/index.js +0 -82
  139. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +0 -94
  140. package/es/framework/DataDrawer/BaseSaveDrawer/index.js +0 -85
  141. package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +0 -83
  142. package/es/framework/DataForm/BaseAddForm/index.js +0 -261
  143. package/es/framework/DataForm/BaseUpdateForm/index.js +0 -183
  144. package/es/framework/DataForm/BaseUpdateFormContent/index.js +0 -72
  145. package/es/framework/DataForm/BaseUpdateFormTab/index.js +0 -66
  146. package/es/framework/DataListView/Base/index.js +0 -1261
  147. package/es/framework/DataListView/BatchAction/index.js +0 -73
  148. package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -116
  149. package/es/framework/DataListView/ColumnSetting/index.js +0 -319
  150. package/es/framework/DataListView/DensityAction/index.js +0 -63
  151. package/es/framework/DataMenuContainer/index.js +0 -282
  152. package/es/framework/DataModal/Base/index.js +0 -231
  153. package/es/framework/DataModal/BaseAddModal/index.js +0 -72
  154. package/es/framework/DataModal/BaseLoadModal/index.js +0 -80
  155. package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +0 -106
  156. package/es/framework/DataModal/BaseSelectModal/index.js +0 -74
  157. package/es/framework/DataModal/BaseUpdateModal/index.js +0 -62
  158. package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -140
  159. package/es/framework/DataMultiPageView/InnerMultiPage/index.js +0 -82
  160. package/es/framework/DataMultiPageView/MultiPage/index.js +0 -299
  161. package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +0 -457
  162. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +0 -123
  163. package/es/framework/DataOperation/Base/index.js +0 -322
  164. package/es/framework/DataOperation/BaseView/index.js +0 -83
  165. package/es/framework/DataOperation/BaseWindow/index.js +0 -330
  166. package/es/framework/DataSinglePageView/InnerSinglePage/index.js +0 -82
  167. package/es/framework/DataSinglePageView/SinglePage/index.js +0 -254
  168. package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +0 -438
  169. package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +0 -126
  170. package/es/framework/DataSingleView/DataCore/index.js +0 -260
  171. package/es/framework/DataSingleView/DataLoad/index.js +0 -151
  172. package/es/framework/DataTabContainer/index.js +0 -254
  173. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +0 -158
  174. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +0 -159
  175. package/es/framework/LayoutWrapper/index.d.ts +0 -2
  176. package/es/framework/Wrapper/index.js +0 -59
  177. package/es/get.js +0 -28
  178. package/es/getPrototypeOf.js +0 -76
  179. package/es/index2.js +0 -2075
  180. package/es/index3.js +0 -383
  181. package/es/models/index.d.ts +0 -1
  182. package/es/models/schedulingControl.d.ts +0 -46
  183. package/es/models/schedulingControl.js +0 -171
  184. package/es/objectSpread2.js +0 -40
  185. package/es/services/schedulingControl.js +0 -135
  186. package/es/slicedToArray.js +0 -43
  187. package/es/toConsumableArray.js +0 -19
  188. package/es/toPropertyKey.js +0 -19
  189. package/es/typeof.js +0 -11
  190. package/es/unsupportedIterableToArray.js +0 -16
  191. package/es/utils/appListDataAssist.js +0 -69
  192. package/es/utils/applicationAssist.js +0 -28
  193. package/es/utils/bootstrap.js +0 -58
  194. package/es/utils/layoutSettingAssist.d.ts +0 -2
  195. package/es/utils/layoutSettingAssist.js +0 -60
  196. package/es/utils/metaDataAssist.js +0 -69
  197. package/es/utils/storageAssist.js +0 -153
@@ -1,135 +0,0 @@
1
- import { _ as _objectSpread2 } from '../objectSpread2.js';
2
- import { _ as _asyncToGenerator, r as regenerator } from '../index3.js';
3
- import { datetimeFormat } from 'antd-management-fast-common/es/utils/constants';
4
- import { runtimeSettings } from 'antd-management-fast-common/es/utils/dynamicSetting';
5
- import { request } from 'antd-management-fast-common/es/utils/requestAssistor';
6
- import { formatDatetime, getNow, logDebug } from 'antd-management-fast-common/es/utils/tools';
7
- import '../toPropertyKey.js';
8
- import '../typeof.js';
9
-
10
- function getMetaDataData(_x) {
11
- return _getMetaDataData.apply(this, arguments);
12
- }
13
- function _getMetaDataData() {
14
- _getMetaDataData = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(params) {
15
- return regenerator.wrap(function _callee$(_context) {
16
- while (1) switch (_context.prev = _context.next) {
17
- case 0:
18
- return _context.abrupt("return", request({
19
- api: runtimeSettings.getMetaDataPath(),
20
- params: params
21
- }));
22
- case 1:
23
- case "end":
24
- return _context.stop();
25
- }
26
- }, _callee);
27
- }));
28
- return _getMetaDataData.apply(this, arguments);
29
- }
30
- function getMetaDataSimulation(_x2) {
31
- return _getMetaDataSimulation.apply(this, arguments);
32
- }
33
- function _getMetaDataSimulation() {
34
- _getMetaDataSimulation = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(params) {
35
- var simulation;
36
- return regenerator.wrap(function _callee2$(_context2) {
37
- while (1) switch (_context2.prev = _context2.next) {
38
- case 0:
39
- simulation = _objectSpread2({}, {
40
- time: formatDatetime(getNow(), datetimeFormat.monthDayHourMinuteSecond)
41
- });
42
- logDebug("getMetaDataData use simulation mode, if need set it from api, please config getMetaDataPath.");
43
- return _context2.abrupt("return", request({
44
- api: "/schedulingControl/getMetaDataSimulation",
45
- params: params,
46
- useVirtualRequest: true,
47
- virtualNeedAuthorize: false,
48
- virtualSuccessResponse: {
49
- data: simulation,
50
- list: [],
51
- extra: {}
52
- }
53
- }));
54
- case 3:
55
- case "end":
56
- return _context2.stop();
57
- }
58
- }, _callee2);
59
- }));
60
- return _getMetaDataSimulation.apply(this, arguments);
61
- }
62
- function singleListAppListData(_x3) {
63
- return _singleListAppListData.apply(this, arguments);
64
- }
65
- function _singleListAppListData() {
66
- _singleListAppListData = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(params) {
67
- return regenerator.wrap(function _callee3$(_context3) {
68
- while (1) switch (_context3.prev = _context3.next) {
69
- case 0:
70
- return _context3.abrupt("return", request({
71
- api: runtimeSettings.getAppListDataPath(),
72
- params: params
73
- }));
74
- case 1:
75
- case "end":
76
- return _context3.stop();
77
- }
78
- }, _callee3);
79
- }));
80
- return _singleListAppListData.apply(this, arguments);
81
- }
82
- function singleListAppListDataSimulation(_x4) {
83
- return _singleListAppListDataSimulation.apply(this, arguments);
84
- }
85
-
86
- /**
87
- * 占位函数
88
- *
89
- * @export
90
- * @returns
91
- */
92
- function _singleListAppListDataSimulation() {
93
- _singleListAppListDataSimulation = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(params) {
94
- return regenerator.wrap(function _callee4$(_context4) {
95
- while (1) switch (_context4.prev = _context4.next) {
96
- case 0:
97
- logDebug("singleListAppList use simulation mode, if need set it from api, please config getAppListDataPath.");
98
- return _context4.abrupt("return", request({
99
- api: "/schedulingControl/singleListAppListDataSimulation",
100
- params: params,
101
- useVirtualRequest: true,
102
- virtualNeedAuthorize: false,
103
- virtualSuccessResponse: {
104
- data: {},
105
- list: [],
106
- extra: {}
107
- }
108
- }));
109
- case 2:
110
- case "end":
111
- return _context4.stop();
112
- }
113
- }, _callee4);
114
- }));
115
- return _singleListAppListDataSimulation.apply(this, arguments);
116
- }
117
- function empty() {
118
- return _empty.apply(this, arguments);
119
- }
120
- function _empty() {
121
- _empty = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee5() {
122
- return regenerator.wrap(function _callee5$(_context5) {
123
- while (1) switch (_context5.prev = _context5.next) {
124
- case 0:
125
- return _context5.abrupt("return", {});
126
- case 1:
127
- case "end":
128
- return _context5.stop();
129
- }
130
- }, _callee5);
131
- }));
132
- return _empty.apply(this, arguments);
133
- }
134
-
135
- export { empty, getMetaDataData, getMetaDataSimulation, singleListAppListData, singleListAppListDataSimulation };
@@ -1,43 +0,0 @@
1
- import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray.js';
2
-
3
- function _arrayWithHoles(arr) {
4
- if (Array.isArray(arr)) return arr;
5
- }
6
-
7
- function _iterableToArrayLimit(arr, i) {
8
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
9
- if (null != _i) {
10
- var _s,
11
- _e,
12
- _x,
13
- _r,
14
- _arr = [],
15
- _n = !0,
16
- _d = !1;
17
- try {
18
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
19
- if (Object(_i) !== _i) return;
20
- _n = !1;
21
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
22
- } catch (err) {
23
- _d = !0, _e = err;
24
- } finally {
25
- try {
26
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
27
- } finally {
28
- if (_d) throw _e;
29
- }
30
- }
31
- return _arr;
32
- }
33
- }
34
-
35
- function _nonIterableRest() {
36
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
- }
38
-
39
- function _slicedToArray(arr, i) {
40
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
41
- }
42
-
43
- export { _slicedToArray as _ };
@@ -1,19 +0,0 @@
1
- import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray.js';
2
-
3
- function _arrayWithoutHoles(arr) {
4
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
5
- }
6
-
7
- function _iterableToArray(iter) {
8
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
9
- }
10
-
11
- function _nonIterableSpread() {
12
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13
- }
14
-
15
- function _toConsumableArray(arr) {
16
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
17
- }
18
-
19
- export { _toConsumableArray as _ };
@@ -1,19 +0,0 @@
1
- import { _ as _typeof } from './typeof.js';
2
-
3
- function _toPrimitive(input, hint) {
4
- if (_typeof(input) !== "object" || input === null) return input;
5
- var prim = input[Symbol.toPrimitive];
6
- if (prim !== undefined) {
7
- var res = prim.call(input, hint || "default");
8
- if (_typeof(res) !== "object") return res;
9
- throw new TypeError("@@toPrimitive must return a primitive value.");
10
- }
11
- return (hint === "string" ? String : Number)(input);
12
- }
13
-
14
- function _toPropertyKey(arg) {
15
- var key = _toPrimitive(arg, "string");
16
- return _typeof(key) === "symbol" ? key : String(key);
17
- }
18
-
19
- export { _toPropertyKey as _ };
package/es/typeof.js DELETED
@@ -1,11 +0,0 @@
1
- function _typeof(obj) {
2
- "@babel/helpers - typeof";
3
-
4
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
5
- return typeof obj;
6
- } : function (obj) {
7
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8
- }, _typeof(obj);
9
- }
10
-
11
- export { _typeof as _ };
@@ -1,16 +0,0 @@
1
- function _arrayLikeToArray(arr, len) {
2
- if (len == null || len > arr.length) len = arr.length;
3
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
4
- return arr2;
5
- }
6
-
7
- function _unsupportedIterableToArray(o, minLen) {
8
- if (!o) return;
9
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
10
- var n = Object.prototype.toString.call(o).slice(8, -1);
11
- if (n === "Object" && o.constructor) n = o.constructor.name;
12
- if (n === "Map" || n === "Set") return Array.from(o);
13
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
14
- }
15
-
16
- export { _unsupportedIterableToArray as _, _arrayLikeToArray as a };
@@ -1,69 +0,0 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from '../index3.js';
2
- import { _ as _toConsumableArray } from '../toConsumableArray.js';
3
- import { apiRequest } from 'antd-management-fast-common/es/utils/actionAssist';
4
- import { getDispatch } from 'antd-management-fast-common/es/utils/dva';
5
- import { runtimeSettings } from 'antd-management-fast-common/es/utils/dynamicSetting';
6
- import { logExecute, logDebug, isFunction } from 'antd-management-fast-common/es/utils/tools';
7
- import { getAppListDataCache, setAppListDataCache } from './storageAssist.js';
8
- import '../typeof.js';
9
- import '../unsupportedIterableToArray.js';
10
- import 'antd-management-fast-common/es/utils/globalStorageAssist';
11
- import 'antd-management-fast-common/es/utils/localStorageAssist';
12
-
13
- function loadAppListData(_ref) {
14
- var _ref$successCallback = _ref.successCallback,
15
- _successCallback = _ref$successCallback === void 0 ? null : _ref$successCallback;
16
- logExecute('loadAppListData');
17
- var appListDataCatch = getAppListDataCache();
18
- if ((appListDataCatch || null) != null) {
19
- logDebug('app list data first load success, ignore load');
20
- return;
21
- }
22
- var dispatch = getDispatch();
23
- var appListDataPath = runtimeSettings.getAppListDataPath();
24
- var api = checkStringIsNullOrWhiteSpace(appListDataPath) ? 'schedulingControl/singleListAppListSimulation' : 'schedulingControl/singleListAppList';
25
- apiRequest({
26
- api: api,
27
- params: {},
28
- dispatch: dispatch,
29
- successCallback: function successCallback(_ref2) {
30
- var remoteListData = _ref2.remoteListData;
31
- var listData = [].concat(_toConsumableArray(runtimeSettings.getAppListData() || {}), _toConsumableArray(remoteListData));
32
- setAppListDataCache(listData);
33
- if (isFunction(_successCallback)) {
34
- _successCallback();
35
- }
36
- }
37
- });
38
- }
39
- function getAppListData() {
40
- logExecute('getAppListData');
41
- var appListDataCatch = getAppListDataCache();
42
- return appListDataCatch;
43
- }
44
-
45
- /**
46
- * 占位函数
47
- *
48
- * @export
49
- * @returns
50
- */
51
- function empty() {
52
- return _empty.apply(this, arguments);
53
- }
54
- function _empty() {
55
- _empty = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
56
- return regenerator.wrap(function _callee$(_context) {
57
- while (1) switch (_context.prev = _context.next) {
58
- case 0:
59
- return _context.abrupt("return", {});
60
- case 1:
61
- case "end":
62
- return _context.stop();
63
- }
64
- }, _callee);
65
- }));
66
- return _empty.apply(this, arguments);
67
- }
68
-
69
- export { empty, getAppListData, loadAppListData };
@@ -1,28 +0,0 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from '../index3.js';
2
- import '../typeof.js';
3
-
4
- /**
5
- * 占位函数
6
- *
7
- * @export
8
- * @returns
9
- */
10
- function empty() {
11
- return _empty.apply(this, arguments);
12
- }
13
- function _empty() {
14
- _empty = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
15
- return regenerator.wrap(function _callee$(_context) {
16
- while (1) switch (_context.prev = _context.next) {
17
- case 0:
18
- return _context.abrupt("return", {});
19
- case 1:
20
- case "end":
21
- return _context.stop();
22
- }
23
- }, _callee);
24
- }));
25
- return _empty.apply(this, arguments);
26
- }
27
-
28
- export { empty };
@@ -1,58 +0,0 @@
1
- import { getAppInitConfigData } from 'antd-management-fast-common/es/utils/core';
2
- import { getModelNameList } from 'antd-management-fast-common/es/utils/dva';
3
- import { logConfig, showInfoMessage, logExecute, recordInfo } from 'antd-management-fast-common/es/utils/tools';
4
- import { loadAppListData } from './appListDataAssist.js';
5
- import { loadMetaData } from './metaDataAssist.js';
6
- import { removeMetaDataCache, removeAppListDataCache } from './storageAssist.js';
7
- import '../index3.js';
8
- import '../typeof.js';
9
- import '../toConsumableArray.js';
10
- import '../unsupportedIterableToArray.js';
11
- import 'antd-management-fast-common/es/utils/actionAssist';
12
- import 'antd-management-fast-common/es/utils/dynamicSetting';
13
- import '../objectSpread2.js';
14
- import '../toPropertyKey.js';
15
- import 'antd-management-fast-common/es/utils/globalStorageAssist';
16
- import 'antd-management-fast-common/es/utils/localStorageAssist';
17
-
18
- var applicationInitComplete = false;
19
- var showModelNameList = false;
20
- var metaDataFirstLoadSuccess = false;
21
- var appListDataFirstLoadSuccess = false;
22
- function applicationInit() {
23
- if (applicationInitComplete) {
24
- return;
25
- }
26
- logConfig(getAppInitConfigData());
27
- requestAnimationFrame(function () {
28
- var text = '初始数据正在努力加载中,需要一点点时间哦!';
29
- showInfoMessage({
30
- message: text,
31
- duration: 0.8
32
- });
33
- });
34
- applicationInitComplete = true;
35
- logExecute('applicationInit');
36
- if (!showModelNameList) {
37
- recordInfo("current modelNameList: ".concat(getModelNameList().join()));
38
- showModelNameList = true;
39
- }
40
- if (!metaDataFirstLoadSuccess) {
41
- removeMetaDataCache();
42
- loadMetaData({
43
- successCallback: function successCallback() {
44
- metaDataFirstLoadSuccess = true;
45
- }
46
- });
47
- }
48
- if (!appListDataFirstLoadSuccess) {
49
- removeAppListDataCache();
50
- loadAppListData({
51
- successCallback: function successCallback() {
52
- appListDataFirstLoadSuccess = true;
53
- }
54
- });
55
- }
56
- }
57
-
58
- export { applicationInit };
@@ -1,2 +0,0 @@
1
- export function configLayoutSetting(): void;
2
- export function getLayoutSetting(): any;
@@ -1,60 +0,0 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from '../index3.js';
2
- import { _ as _objectSpread2 } from '../objectSpread2.js';
3
- import { getDispatch, getModelState } from 'antd-management-fast-common/es/utils/dva';
4
- import { layoutSettings } from 'antd-management-fast-common/es/utils/dynamicSetting';
5
- import { logExecute, logDebug } from 'antd-management-fast-common/es/utils/tools';
6
- import '../typeof.js';
7
- import '../toPropertyKey.js';
8
-
9
- var configLayoutSettingComplete = false;
10
- function configLayoutSetting() {
11
- logExecute('configLayoutSetting');
12
- var dispatch = getDispatch();
13
- logDebug({
14
- layoutSettings: layoutSettings
15
- });
16
- dispatch({
17
- type: 'schedulingControl/configLayoutSetting',
18
- payload: layoutSettings,
19
- alias: 'setting'
20
- });
21
- }
22
- function getLayoutSetting() {
23
- if (!configLayoutSettingComplete) {
24
- configLayoutSetting();
25
- configLayoutSettingComplete = true;
26
- }
27
- logExecute('getLayoutSetting');
28
- var state = getModelState('schedulingControl');
29
- var _setting$state = _objectSpread2(_objectSpread2({}, {
30
- setting: layoutSettings
31
- }), state),
32
- setting = _setting$state.setting;
33
- return setting || {};
34
- }
35
-
36
- /**
37
- * 占位函数
38
- *
39
- * @export
40
- * @returns
41
- */
42
- function empty() {
43
- return _empty.apply(this, arguments);
44
- }
45
- function _empty() {
46
- _empty = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
47
- return regenerator.wrap(function _callee$(_context) {
48
- while (1) switch (_context.prev = _context.next) {
49
- case 0:
50
- return _context.abrupt("return", {});
51
- case 1:
52
- case "end":
53
- return _context.stop();
54
- }
55
- }, _callee);
56
- }));
57
- return _empty.apply(this, arguments);
58
- }
59
-
60
- export { configLayoutSetting, empty, getLayoutSetting };
@@ -1,69 +0,0 @@
1
- import { _ as _asyncToGenerator, r as regenerator } from '../index3.js';
2
- import { _ as _objectSpread2 } from '../objectSpread2.js';
3
- import { apiRequest } from 'antd-management-fast-common/es/utils/actionAssist';
4
- import { getDispatch } from 'antd-management-fast-common/es/utils/dva';
5
- import { runtimeSettings } from 'antd-management-fast-common/es/utils/dynamicSetting';
6
- import { logExecute, logDebug, isFunction } from 'antd-management-fast-common/es/utils/tools';
7
- import { getMetaDataCache, setMetaDataCache } from './storageAssist.js';
8
- import '../typeof.js';
9
- import '../toPropertyKey.js';
10
- import 'antd-management-fast-common/es/utils/globalStorageAssist';
11
- import 'antd-management-fast-common/es/utils/localStorageAssist';
12
-
13
- function loadMetaData(_ref) {
14
- var _ref$successCallback = _ref.successCallback,
15
- _successCallback = _ref$successCallback === void 0 ? null : _ref$successCallback;
16
- logExecute('loadMetaData');
17
- var metaDataCatch = getMetaDataCache();
18
- if ((metaDataCatch || null) != null) {
19
- logDebug('meta data first load success, ignore load');
20
- return;
21
- }
22
- var dispatch = getDispatch();
23
- var metaDataPath = runtimeSettings.getMetaDataPath();
24
- var api = checkStringIsNullOrWhiteSpace(metaDataPath) ? 'schedulingControl/getMetaDataSimulation' : 'schedulingControl/getMetaData';
25
- apiRequest({
26
- api: api,
27
- params: {},
28
- dispatch: dispatch,
29
- successCallback: function successCallback(_ref2) {
30
- var remoteData = _ref2.remoteData;
31
- var data = _objectSpread2(_objectSpread2({}, runtimeSettings.getMetaData() || {}), remoteData);
32
- setMetaDataCache(data);
33
- if (isFunction(_successCallback)) {
34
- _successCallback();
35
- }
36
- }
37
- });
38
- }
39
- function getMetaData() {
40
- logExecute('getMetaData');
41
- var metaDataCatch = getMetaDataCache();
42
- return metaDataCatch;
43
- }
44
-
45
- /**
46
- * 占位函数
47
- *
48
- * @export
49
- * @returns
50
- */
51
- function empty() {
52
- return _empty.apply(this, arguments);
53
- }
54
- function _empty() {
55
- _empty = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
56
- return regenerator.wrap(function _callee$(_context) {
57
- while (1) switch (_context.prev = _context.next) {
58
- case 0:
59
- return _context.abrupt("return", {});
60
- case 1:
61
- case "end":
62
- return _context.stop();
63
- }
64
- }, _callee);
65
- }));
66
- return _empty.apply(this, arguments);
67
- }
68
-
69
- export { empty, getMetaData, loadMetaData };
@@ -1,153 +0,0 @@
1
- import { getToken } from 'antd-management-fast-common/es/utils/globalStorageAssist';
2
- import { getJsonFromLocalStorage, saveJsonToLocalStorage, removeLocalStorage } from 'antd-management-fast-common/es/utils/localStorageAssist';
3
- import { logExecute } from 'antd-management-fast-common/es/utils/tools';
4
-
5
- var storageKeyCollection = {
6
- appListData: 'appListData',
7
- metaData: 'metaData',
8
- currentOperator: 'currentOperator'
9
- };
10
-
11
- /**
12
- * 获取 appListData 缓存
13
- *
14
- * @export
15
- * @param {*} fn
16
- * @returns
17
- */
18
- function getAppListDataCache() {
19
- logExecute('getAppListDataCache');
20
- var key = storageKeyCollection.appListData;
21
- var d = getJsonFromLocalStorage(key);
22
- if ((d || null) == null) {
23
- return null;
24
- }
25
- return d;
26
- }
27
-
28
- /**
29
- * 设置 appListData 缓存
30
- *
31
- * @export
32
- * @param {o} metaData数据
33
- * @returns
34
- */
35
- function setAppListDataCache(o) {
36
- logExecute('setAppListDataCache');
37
- if ((o || null) == null) {
38
- return;
39
- }
40
- var key = storageKeyCollection.appListData;
41
- return saveJsonToLocalStorage(key, o);
42
- }
43
-
44
- /**
45
- * 移除信息
46
- *
47
- * @export
48
- * @param {*} fn
49
- * @returns
50
- */
51
- function removeAppListDataCache() {
52
- logExecute('removeAppListDataCache');
53
- var key = storageKeyCollection.appListData;
54
- removeLocalStorage(key);
55
- }
56
-
57
- /**
58
- * 获取metaData缓存
59
- *
60
- * @export
61
- * @param {*} fn
62
- * @returns
63
- */
64
- function getMetaDataCache() {
65
- logExecute('getMetaDataCache');
66
- var key = storageKeyCollection.metaData;
67
- var d = getJsonFromLocalStorage(key);
68
- if ((d || null) == null) {
69
- return null;
70
- }
71
- return d;
72
- }
73
-
74
- /**
75
- * 设置metaData缓存
76
- *
77
- * @export
78
- * @param {o} metaData数据
79
- * @returns
80
- */
81
- function setMetaDataCache(o) {
82
- logExecute('setMetaDataCache');
83
- if ((o || null) == null) {
84
- return;
85
- }
86
- var key = storageKeyCollection.metaData;
87
- return saveJsonToLocalStorage(key, o);
88
- }
89
-
90
- /**
91
- * 移除信息
92
- *
93
- * @export
94
- * @param {*} fn
95
- * @returns
96
- */
97
- function removeMetaDataCache() {
98
- logExecute('removeMetaDataCache');
99
- var key = storageKeyCollection.metaData;
100
- removeLocalStorage(key);
101
- }
102
-
103
- /**
104
- * 获取缓存
105
- *
106
- * @export
107
- * @param {*} fn
108
- * @returns
109
- */
110
- function getCurrentOperatorCache() {
111
- logExecute('getCurrentOperatorCache');
112
- var key = storageKeyCollection.currentOperator;
113
- var d = getJsonFromLocalStorage(key);
114
- if ((d || null) == null) {
115
- return null;
116
- }
117
- if (d.flag === '' || d.flag !== getToken()) {
118
- return null;
119
- }
120
- return d.data || null;
121
- }
122
-
123
- /**
124
- * 设置metaData缓存
125
- *
126
- * @export
127
- * @param {o} metaData数据
128
- * @returns
129
- */
130
- function setCurrentOperatorCache(o) {
131
- logExecute('setCurrentOperatorCache');
132
- var key = storageKeyCollection.currentOperator;
133
- var d = {
134
- data: o || null,
135
- flag: getToken() || ''
136
- };
137
- return saveJsonToLocalStorage(key, d);
138
- }
139
-
140
- /**
141
- * 移除经纬度信息
142
- *
143
- * @export
144
- * @param {*} fn
145
- * @returns
146
- */
147
- function removeCurrentOperatorCache() {
148
- logExecute('removeCurrentOperatorCache');
149
- var key = storageKeyCollection.currentOperator;
150
- removeLocalStorage(key);
151
- }
152
-
153
- export { getAppListDataCache, getCurrentOperatorCache, getMetaDataCache, removeAppListDataCache, removeCurrentOperatorCache, removeMetaDataCache, setAppListDataCache, setCurrentOperatorCache, setMetaDataCache };