@next-core/brick-kit 2.90.1 → 2.91.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.
- package/CHANGELOG.md +44 -0
- package/dist/index.bundle.js +203 -212
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +300 -309
- package/dist/index.esm.js.map +1 -1
- package/dist/types/EasyopsEmpty/EasyopsEmpty.d.ts.map +1 -1
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/core/Kernel.d.ts.map +1 -1
- package/dist/types/core/LocationContext.d.ts.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/internal/checkPermissions.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createBrowserHistory, locationsAreEqual, createPath } from 'history';
|
|
|
2
2
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
4
|
import _asyncToGenerator$4 from '@babel/runtime/helpers/asyncToGenerator';
|
|
5
|
-
import _defineProperty$
|
|
5
|
+
import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default, { useState, useEffect, forwardRef, useRef, useImperativeHandle, useMemo, useContext, createContext } from 'react';
|
|
8
8
|
import lodash, { set, get, difference, identity, cloneDeep, isNil, sortBy, merge, clamp, uniqueId, orderBy, omit, isEmpty } from 'lodash';
|
|
@@ -16,15 +16,15 @@ import yaml from 'js-yaml';
|
|
|
16
16
|
import { Modal, message, Empty, ConfigProvider } from 'antd';
|
|
17
17
|
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
|
18
18
|
import { withTranslation } from 'react-i18next';
|
|
19
|
-
import _extends$
|
|
19
|
+
import _extends$1 from '@babel/runtime/helpers/esm/extends';
|
|
20
20
|
import { getIllustration } from '@next-core/illustrations';
|
|
21
21
|
import _decorate from '@babel/runtime/helpers/decorate';
|
|
22
22
|
|
|
23
23
|
class BaseBar {
|
|
24
24
|
constructor(kernel, mountPoint) {
|
|
25
|
-
_defineProperty$
|
|
25
|
+
_defineProperty$1(this, "element", void 0);
|
|
26
26
|
|
|
27
|
-
_defineProperty$
|
|
27
|
+
_defineProperty$1(this, "brick", void 0);
|
|
28
28
|
|
|
29
29
|
this.kernel = kernel;
|
|
30
30
|
this.mountPoint = mountPoint;
|
|
@@ -409,7 +409,7 @@ function _asyncToGenerator$3(fn) {
|
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
-
function _defineProperty
|
|
412
|
+
function _defineProperty(obj, key, value) {
|
|
413
413
|
if (key in obj) {
|
|
414
414
|
Object.defineProperty(obj, key, {
|
|
415
415
|
value: value,
|
|
@@ -424,7 +424,7 @@ function _defineProperty$1(obj, key, value) {
|
|
|
424
424
|
return obj;
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
-
function ownKeys
|
|
427
|
+
function ownKeys(object, enumerableOnly) {
|
|
428
428
|
var keys = Object.keys(object);
|
|
429
429
|
|
|
430
430
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -438,18 +438,18 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
438
438
|
return keys;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
function _objectSpread2
|
|
441
|
+
function _objectSpread2(target) {
|
|
442
442
|
for (var i = 1; i < arguments.length; i++) {
|
|
443
443
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
444
444
|
|
|
445
445
|
if (i % 2) {
|
|
446
|
-
ownKeys
|
|
447
|
-
_defineProperty
|
|
446
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
447
|
+
_defineProperty(target, key, source[key]);
|
|
448
448
|
});
|
|
449
449
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
450
450
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
451
451
|
} else {
|
|
452
|
-
ownKeys
|
|
452
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
453
453
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
454
454
|
});
|
|
455
455
|
}
|
|
@@ -467,7 +467,7 @@ var InstanceApi_getDetail = /*#__PURE__*/function () {
|
|
|
467
467
|
var _ref = _asyncToGenerator$3(function* (objectId, instanceId, params, options) {
|
|
468
468
|
return (
|
|
469
469
|
/**! @contract easyops.api.cmdb.instance.GetDetail */
|
|
470
|
-
(yield http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(objectId, "/instance/").concat(instanceId), _objectSpread2
|
|
470
|
+
(yield http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(objectId, "/instance/").concat(instanceId), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
471
471
|
params
|
|
472
472
|
}))).data
|
|
473
473
|
);
|
|
@@ -1243,6 +1243,54 @@ var PermissionApi_validatePermissions = /*#__PURE__*/function () {
|
|
|
1243
1243
|
};
|
|
1244
1244
|
}();
|
|
1245
1245
|
|
|
1246
|
+
var auth = {};
|
|
1247
|
+
/** @internal */
|
|
1248
|
+
|
|
1249
|
+
function authenticate(newAuth) {
|
|
1250
|
+
Object.assign(auth, {
|
|
1251
|
+
org: newAuth.org,
|
|
1252
|
+
username: newAuth.username,
|
|
1253
|
+
userInstanceId: newAuth.userInstanceId,
|
|
1254
|
+
loginFrom: newAuth.loginFrom,
|
|
1255
|
+
accessRule: newAuth.accessRule,
|
|
1256
|
+
isAdmin: newAuth.isAdmin
|
|
1257
|
+
}); // re-init analytics to set user_id
|
|
1258
|
+
|
|
1259
|
+
if (userAnalytics.initialized) {
|
|
1260
|
+
userAnalytics.setUserId(newAuth.userInstanceId);
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* 获取当前登录认证信息。
|
|
1265
|
+
*
|
|
1266
|
+
* @returns 当前登录认证信息。
|
|
1267
|
+
*/
|
|
1268
|
+
|
|
1269
|
+
function getAuth() {
|
|
1270
|
+
return _objectSpread({}, auth);
|
|
1271
|
+
}
|
|
1272
|
+
/** @internal */
|
|
1273
|
+
|
|
1274
|
+
function logout() {
|
|
1275
|
+
auth.org = undefined;
|
|
1276
|
+
auth.username = undefined;
|
|
1277
|
+
auth.userInstanceId = undefined;
|
|
1278
|
+
auth.accessRule = undefined;
|
|
1279
|
+
auth.isAdmin = undefined;
|
|
1280
|
+
resetPermissionPreChecks(); // re-init analytics to clear user_id
|
|
1281
|
+
|
|
1282
|
+
userAnalytics.setUserId();
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* 查看当前是否已登录。
|
|
1286
|
+
*
|
|
1287
|
+
* @returns 当前是否已登录。
|
|
1288
|
+
*/
|
|
1289
|
+
|
|
1290
|
+
function isLoggedIn() {
|
|
1291
|
+
return auth.username !== undefined;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1246
1294
|
var permissionMap = new Map();
|
|
1247
1295
|
function preCheckPermissions(_x) {
|
|
1248
1296
|
return _preCheckPermissions.apply(this, arguments);
|
|
@@ -1299,6 +1347,10 @@ function _validatePermissions() {
|
|
|
1299
1347
|
}
|
|
1300
1348
|
|
|
1301
1349
|
function checkPermissions() {
|
|
1350
|
+
if (getAuth().isAdmin) {
|
|
1351
|
+
return true;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1302
1354
|
for (var _len = arguments.length, actions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1303
1355
|
actions[_key] = arguments[_key];
|
|
1304
1356
|
}
|
|
@@ -2521,23 +2573,23 @@ function _dev_only_getFakeKernel(overrides) {
|
|
|
2521
2573
|
}
|
|
2522
2574
|
class Runtime {
|
|
2523
2575
|
constructor() {
|
|
2524
|
-
_defineProperty$
|
|
2576
|
+
_defineProperty$1(this, "registerBrickTemplate", registerBrickTemplate);
|
|
2525
2577
|
|
|
2526
|
-
_defineProperty$
|
|
2578
|
+
_defineProperty$1(this, "registerCustomTemplate", registerCustomTemplate);
|
|
2527
2579
|
|
|
2528
|
-
_defineProperty$
|
|
2580
|
+
_defineProperty$1(this, "registerCustomProcessor", registerCustomProcessor);
|
|
2529
2581
|
|
|
2530
|
-
_defineProperty$
|
|
2582
|
+
_defineProperty$1(this, "registerLazyBricks", registerLazyBricks);
|
|
2531
2583
|
|
|
2532
|
-
_defineProperty$
|
|
2584
|
+
_defineProperty$1(this, "registerWidgetFunctions", registerWidgetFunctions);
|
|
2533
2585
|
|
|
2534
|
-
_defineProperty$
|
|
2586
|
+
_defineProperty$1(this, "registerWidgetI18n", registerWidgetI18n);
|
|
2535
2587
|
|
|
2536
|
-
_defineProperty$
|
|
2588
|
+
_defineProperty$1(this, "getBasePath", getBasePath);
|
|
2537
2589
|
|
|
2538
|
-
_defineProperty$
|
|
2590
|
+
_defineProperty$1(this, "getCurrentTheme", getCurrentTheme);
|
|
2539
2591
|
|
|
2540
|
-
_defineProperty$
|
|
2592
|
+
_defineProperty$1(this, "getCurrentMode", getCurrentMode);
|
|
2541
2593
|
}
|
|
2542
2594
|
|
|
2543
2595
|
bootstrap(mountPoints) {
|
|
@@ -3096,13 +3148,13 @@ function LoginTimeoutMessage() {
|
|
|
3096
3148
|
|
|
3097
3149
|
class WebsocketMessageRequest {
|
|
3098
3150
|
constructor(event, topic) {
|
|
3099
|
-
_defineProperty$
|
|
3151
|
+
_defineProperty$1(this, "topic", void 0);
|
|
3100
3152
|
|
|
3101
|
-
_defineProperty$
|
|
3153
|
+
_defineProperty$1(this, "data", void 0);
|
|
3102
3154
|
|
|
3103
|
-
_defineProperty$
|
|
3155
|
+
_defineProperty$1(this, "event", void 0);
|
|
3104
3156
|
|
|
3105
|
-
_defineProperty$
|
|
3157
|
+
_defineProperty$1(this, "message", void 0);
|
|
3106
3158
|
|
|
3107
3159
|
this.event = event;
|
|
3108
3160
|
this.topic = JSON.stringify(topic);
|
|
@@ -3147,13 +3199,13 @@ var PluginWebSocketMessageEvent;
|
|
|
3147
3199
|
|
|
3148
3200
|
class WebsocketMessageResponse {
|
|
3149
3201
|
constructor(response) {
|
|
3150
|
-
_defineProperty$
|
|
3202
|
+
_defineProperty$1(this, "topic", void 0);
|
|
3151
3203
|
|
|
3152
|
-
_defineProperty$
|
|
3204
|
+
_defineProperty$1(this, "data", void 0);
|
|
3153
3205
|
|
|
3154
|
-
_defineProperty$
|
|
3206
|
+
_defineProperty$1(this, "event", void 0);
|
|
3155
3207
|
|
|
3156
|
-
_defineProperty$
|
|
3208
|
+
_defineProperty$1(this, "message", void 0);
|
|
3157
3209
|
|
|
3158
3210
|
this.data = response;
|
|
3159
3211
|
this.message = JSON.parse(response);
|
|
@@ -3201,19 +3253,19 @@ class WebsocketMessageResponse {
|
|
|
3201
3253
|
|
|
3202
3254
|
class WebSocketService {
|
|
3203
3255
|
constructor(options) {
|
|
3204
|
-
_defineProperty$
|
|
3256
|
+
_defineProperty$1(this, "retryCount", 0);
|
|
3205
3257
|
|
|
3206
|
-
_defineProperty$
|
|
3258
|
+
_defineProperty$1(this, "ws", null);
|
|
3207
3259
|
|
|
3208
|
-
_defineProperty$
|
|
3260
|
+
_defineProperty$1(this, "lockReconnect", false);
|
|
3209
3261
|
|
|
3210
|
-
_defineProperty$
|
|
3262
|
+
_defineProperty$1(this, "options", void 0);
|
|
3211
3263
|
|
|
3212
|
-
_defineProperty$
|
|
3264
|
+
_defineProperty$1(this, "messageQueue", new Set());
|
|
3213
3265
|
|
|
3214
|
-
_defineProperty$
|
|
3266
|
+
_defineProperty$1(this, "state", "initial");
|
|
3215
3267
|
|
|
3216
|
-
_defineProperty$
|
|
3268
|
+
_defineProperty$1(this, "defaultOptions", {
|
|
3217
3269
|
url: null,
|
|
3218
3270
|
reconnectTimeout: 1000,
|
|
3219
3271
|
retryLimit: 6
|
|
@@ -4514,15 +4566,15 @@ function getMessageDispatcher() {
|
|
|
4514
4566
|
}
|
|
4515
4567
|
class MessageDispatcher {
|
|
4516
4568
|
constructor() {
|
|
4517
|
-
_defineProperty$
|
|
4569
|
+
_defineProperty$1(this, "ws", void 0);
|
|
4518
4570
|
|
|
4519
|
-
_defineProperty$
|
|
4571
|
+
_defineProperty$1(this, "context", void 0);
|
|
4520
4572
|
|
|
4521
|
-
_defineProperty$
|
|
4573
|
+
_defineProperty$1(this, "messages", new Map());
|
|
4522
4574
|
|
|
4523
|
-
_defineProperty$
|
|
4575
|
+
_defineProperty$1(this, "messageCallbackHandlers", new Map());
|
|
4524
4576
|
|
|
4525
|
-
_defineProperty$
|
|
4577
|
+
_defineProperty$1(this, "channels", new Map());
|
|
4526
4578
|
}
|
|
4527
4579
|
|
|
4528
4580
|
create(brickAndMessages, context) {
|
|
@@ -5710,9 +5762,9 @@ function argsFactory(args, context, event) {
|
|
|
5710
5762
|
|
|
5711
5763
|
class BrickNode {
|
|
5712
5764
|
constructor(brick) {
|
|
5713
|
-
_defineProperty$
|
|
5765
|
+
_defineProperty$1(this, "$$brick", void 0);
|
|
5714
5766
|
|
|
5715
|
-
_defineProperty$
|
|
5767
|
+
_defineProperty$1(this, "children", []);
|
|
5716
5768
|
|
|
5717
5769
|
this.$$brick = brick;
|
|
5718
5770
|
}
|
|
@@ -5811,55 +5863,6 @@ function _asyncToGenerator$1(fn) {
|
|
|
5811
5863
|
};
|
|
5812
5864
|
}
|
|
5813
5865
|
|
|
5814
|
-
function _defineProperty(obj, key, value) {
|
|
5815
|
-
if (key in obj) {
|
|
5816
|
-
Object.defineProperty(obj, key, {
|
|
5817
|
-
value: value,
|
|
5818
|
-
enumerable: true,
|
|
5819
|
-
configurable: true,
|
|
5820
|
-
writable: true
|
|
5821
|
-
});
|
|
5822
|
-
} else {
|
|
5823
|
-
obj[key] = value;
|
|
5824
|
-
}
|
|
5825
|
-
|
|
5826
|
-
return obj;
|
|
5827
|
-
}
|
|
5828
|
-
|
|
5829
|
-
function ownKeys(object, enumerableOnly) {
|
|
5830
|
-
var keys = Object.keys(object);
|
|
5831
|
-
|
|
5832
|
-
if (Object.getOwnPropertySymbols) {
|
|
5833
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
5834
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
5835
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
5836
|
-
});
|
|
5837
|
-
keys.push.apply(keys, symbols);
|
|
5838
|
-
}
|
|
5839
|
-
|
|
5840
|
-
return keys;
|
|
5841
|
-
}
|
|
5842
|
-
|
|
5843
|
-
function _objectSpread2(target) {
|
|
5844
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
5845
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
5846
|
-
|
|
5847
|
-
if (i % 2) {
|
|
5848
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
5849
|
-
_defineProperty(target, key, source[key]);
|
|
5850
|
-
});
|
|
5851
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
5852
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5853
|
-
} else {
|
|
5854
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
5855
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5856
|
-
});
|
|
5857
|
-
}
|
|
5858
|
-
}
|
|
5859
|
-
|
|
5860
|
-
return target;
|
|
5861
|
-
}
|
|
5862
|
-
|
|
5863
5866
|
var checkLogin = /*#__PURE__*/function () {
|
|
5864
5867
|
var _ref2 = _asyncToGenerator$1(function* (options) {
|
|
5865
5868
|
return (yield http.get("api/auth/login", options)).data;
|
|
@@ -5870,30 +5873,6 @@ var checkLogin = /*#__PURE__*/function () {
|
|
|
5870
5873
|
};
|
|
5871
5874
|
}();
|
|
5872
5875
|
|
|
5873
|
-
var bootstrap = /*#__PURE__*/function () {
|
|
5874
|
-
var _ref3 = _asyncToGenerator$1(function* (params, options) {
|
|
5875
|
-
return (yield http.get("api/auth/bootstrap", _objectSpread2(_objectSpread2({}, options), {}, {
|
|
5876
|
-
params
|
|
5877
|
-
}))).data;
|
|
5878
|
-
});
|
|
5879
|
-
|
|
5880
|
-
return function bootstrap(_x4, _x5) {
|
|
5881
|
-
return _ref3.apply(this, arguments);
|
|
5882
|
-
};
|
|
5883
|
-
}();
|
|
5884
|
-
|
|
5885
|
-
var getAppStoryboard = /*#__PURE__*/function () {
|
|
5886
|
-
var _ref4 = _asyncToGenerator$1(function* (appId, params, options) {
|
|
5887
|
-
return (yield http.get("api/auth/bootstrap/".concat(appId), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
5888
|
-
params
|
|
5889
|
-
}))).data;
|
|
5890
|
-
});
|
|
5891
|
-
|
|
5892
|
-
return function getAppStoryboard(_x6, _x7, _x8) {
|
|
5893
|
-
return _ref4.apply(this, arguments);
|
|
5894
|
-
};
|
|
5895
|
-
}();
|
|
5896
|
-
|
|
5897
5876
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5898
5877
|
try {
|
|
5899
5878
|
var info = gen[key](arg);
|
|
@@ -5948,52 +5927,6 @@ var UserAdminApi_searchAllUsersInfo = /*#__PURE__*/function () {
|
|
|
5948
5927
|
};
|
|
5949
5928
|
}();
|
|
5950
5929
|
|
|
5951
|
-
var auth = {};
|
|
5952
|
-
/** @internal */
|
|
5953
|
-
|
|
5954
|
-
function authenticate(newAuth) {
|
|
5955
|
-
Object.assign(auth, {
|
|
5956
|
-
org: newAuth.org,
|
|
5957
|
-
username: newAuth.username,
|
|
5958
|
-
userInstanceId: newAuth.userInstanceId,
|
|
5959
|
-
loginFrom: newAuth.loginFrom,
|
|
5960
|
-
accessRule: newAuth.accessRule
|
|
5961
|
-
}); // re-init analytics to set user_id
|
|
5962
|
-
|
|
5963
|
-
if (userAnalytics.initialized) {
|
|
5964
|
-
userAnalytics.setUserId(newAuth.userInstanceId);
|
|
5965
|
-
}
|
|
5966
|
-
}
|
|
5967
|
-
/**
|
|
5968
|
-
* 获取当前登录认证信息。
|
|
5969
|
-
*
|
|
5970
|
-
* @returns 当前登录认证信息。
|
|
5971
|
-
*/
|
|
5972
|
-
|
|
5973
|
-
function getAuth() {
|
|
5974
|
-
return _objectSpread({}, auth);
|
|
5975
|
-
}
|
|
5976
|
-
/** @internal */
|
|
5977
|
-
|
|
5978
|
-
function logout() {
|
|
5979
|
-
auth.org = undefined;
|
|
5980
|
-
auth.username = undefined;
|
|
5981
|
-
auth.userInstanceId = undefined;
|
|
5982
|
-
auth.accessRule = undefined;
|
|
5983
|
-
resetPermissionPreChecks(); // re-init analytics to clear user_id
|
|
5984
|
-
|
|
5985
|
-
userAnalytics.setUserId();
|
|
5986
|
-
}
|
|
5987
|
-
/**
|
|
5988
|
-
* 查看当前是否已登录。
|
|
5989
|
-
*
|
|
5990
|
-
* @returns 当前是否已登录。
|
|
5991
|
-
*/
|
|
5992
|
-
|
|
5993
|
-
function isLoggedIn() {
|
|
5994
|
-
return auth.username !== undefined;
|
|
5995
|
-
}
|
|
5996
|
-
|
|
5997
5930
|
/**
|
|
5998
5931
|
* Merge `app.defaultConfig` and `app.userConfig` to `app.config`.
|
|
5999
5932
|
*
|
|
@@ -6153,57 +6086,57 @@ function _standaloneBootstrap() {
|
|
|
6153
6086
|
|
|
6154
6087
|
class Kernel {
|
|
6155
6088
|
constructor() {
|
|
6156
|
-
_defineProperty$
|
|
6089
|
+
_defineProperty$1(this, "mountPoints", void 0);
|
|
6157
6090
|
|
|
6158
|
-
_defineProperty$
|
|
6091
|
+
_defineProperty$1(this, "bootstrapData", void 0);
|
|
6159
6092
|
|
|
6160
|
-
_defineProperty$
|
|
6093
|
+
_defineProperty$1(this, "presetBricks", void 0);
|
|
6161
6094
|
|
|
6162
|
-
_defineProperty$
|
|
6095
|
+
_defineProperty$1(this, "menuBar", void 0);
|
|
6163
6096
|
|
|
6164
|
-
_defineProperty$
|
|
6097
|
+
_defineProperty$1(this, "appBar", void 0);
|
|
6165
6098
|
|
|
6166
|
-
_defineProperty$
|
|
6099
|
+
_defineProperty$1(this, "loadingBar", void 0);
|
|
6167
6100
|
|
|
6168
|
-
_defineProperty$
|
|
6101
|
+
_defineProperty$1(this, "navBar", void 0);
|
|
6169
6102
|
|
|
6170
|
-
_defineProperty$
|
|
6103
|
+
_defineProperty$1(this, "sideBar", void 0);
|
|
6171
6104
|
|
|
6172
|
-
_defineProperty$
|
|
6105
|
+
_defineProperty$1(this, "footer", void 0);
|
|
6173
6106
|
|
|
6174
|
-
_defineProperty$
|
|
6107
|
+
_defineProperty$1(this, "breadcrumb", void 0);
|
|
6175
6108
|
|
|
6176
|
-
_defineProperty$
|
|
6109
|
+
_defineProperty$1(this, "router", void 0);
|
|
6177
6110
|
|
|
6178
|
-
_defineProperty$
|
|
6111
|
+
_defineProperty$1(this, "currentApp", void 0);
|
|
6179
6112
|
|
|
6180
|
-
_defineProperty$
|
|
6113
|
+
_defineProperty$1(this, "previousApp", void 0);
|
|
6181
6114
|
|
|
6182
|
-
_defineProperty$
|
|
6115
|
+
_defineProperty$1(this, "nextApp", void 0);
|
|
6183
6116
|
|
|
6184
|
-
_defineProperty$
|
|
6117
|
+
_defineProperty$1(this, "currentUrl", void 0);
|
|
6185
6118
|
|
|
6186
|
-
_defineProperty$
|
|
6119
|
+
_defineProperty$1(this, "currentRoute", void 0);
|
|
6187
6120
|
|
|
6188
|
-
_defineProperty$
|
|
6121
|
+
_defineProperty$1(this, "workspaceStack", []);
|
|
6189
6122
|
|
|
6190
|
-
_defineProperty$
|
|
6123
|
+
_defineProperty$1(this, "currentLayout", void 0);
|
|
6191
6124
|
|
|
6192
|
-
_defineProperty$
|
|
6125
|
+
_defineProperty$1(this, "enableUiV8", false);
|
|
6193
6126
|
|
|
6194
|
-
_defineProperty$
|
|
6127
|
+
_defineProperty$1(this, "allUserMapPromise", Promise.resolve(new Map()));
|
|
6195
6128
|
|
|
6196
|
-
_defineProperty$
|
|
6129
|
+
_defineProperty$1(this, "allMagicBrickConfigMapPromise", Promise.resolve(new Map()));
|
|
6197
6130
|
|
|
6198
|
-
_defineProperty$
|
|
6131
|
+
_defineProperty$1(this, "allRelatedAppsPromise", Promise.resolve([]));
|
|
6199
6132
|
|
|
6200
|
-
_defineProperty$
|
|
6133
|
+
_defineProperty$1(this, "allMicroAppApiOrchestrationPromise", Promise.resolve(new Map()));
|
|
6201
6134
|
|
|
6202
|
-
_defineProperty$
|
|
6135
|
+
_defineProperty$1(this, "providerRepository", new Map());
|
|
6203
6136
|
|
|
6204
|
-
_defineProperty$
|
|
6137
|
+
_defineProperty$1(this, "loadUsersStarted", false);
|
|
6205
6138
|
|
|
6206
|
-
_defineProperty$
|
|
6139
|
+
_defineProperty$1(this, "loadMagicBrickConfigStarted", false);
|
|
6207
6140
|
}
|
|
6208
6141
|
|
|
6209
6142
|
bootstrap(mountPoints) {
|
|
@@ -6319,17 +6252,12 @@ class Kernel {
|
|
|
6319
6252
|
var _this3 = this;
|
|
6320
6253
|
|
|
6321
6254
|
return _asyncToGenerator$4(function* () {
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status",
|
|
6255
|
+
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2(_objectSpread({
|
|
6256
|
+
appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status,icons",
|
|
6325
6257
|
ignoreTemplateFields: "templates",
|
|
6326
6258
|
ignoreBrickFields: "bricks,processors,providers,editors"
|
|
6327
6259
|
}, params), {
|
|
6328
6260
|
interceptorParams
|
|
6329
|
-
}) : bootstrap(_objectSpread({
|
|
6330
|
-
brief: true
|
|
6331
|
-
}, params), {
|
|
6332
|
-
interceptorParams
|
|
6333
6261
|
});
|
|
6334
6262
|
|
|
6335
6263
|
var bootstrapResponse = _objectSpread({
|
|
@@ -6376,12 +6304,11 @@ class Kernel {
|
|
|
6376
6304
|
$$fulfilled: true
|
|
6377
6305
|
});
|
|
6378
6306
|
} else {
|
|
6379
|
-
/* istanbul ignore next */
|
|
6380
6307
|
var {
|
|
6381
6308
|
routes,
|
|
6382
6309
|
meta,
|
|
6383
6310
|
app
|
|
6384
|
-
} = yield
|
|
6311
|
+
} = yield BootstrapV2Api_getAppStoryboardV2(storyboard.app.id, {});
|
|
6385
6312
|
Object.assign(storyboard, {
|
|
6386
6313
|
routes,
|
|
6387
6314
|
meta,
|
|
@@ -7856,11 +7783,11 @@ function registerCustomTemplate(tplName, tplConstructor, appId) {
|
|
|
7856
7783
|
|
|
7857
7784
|
class CustomTemplateContext {
|
|
7858
7785
|
constructor() {
|
|
7859
|
-
_defineProperty$
|
|
7786
|
+
_defineProperty$1(this, "contextMap", new Map());
|
|
7860
7787
|
|
|
7861
|
-
_defineProperty$
|
|
7788
|
+
_defineProperty$1(this, "brickMap", new Map());
|
|
7862
7789
|
|
|
7863
|
-
_defineProperty$
|
|
7790
|
+
_defineProperty$1(this, "propsMap", new Map());
|
|
7864
7791
|
}
|
|
7865
7792
|
|
|
7866
7793
|
createContext() {
|
|
@@ -7916,35 +7843,35 @@ function listenOnTrackingContext(brick, trackingContextList, context) {
|
|
|
7916
7843
|
|
|
7917
7844
|
class LocationContext {
|
|
7918
7845
|
constructor(kernel, location) {
|
|
7919
|
-
_defineProperty$
|
|
7846
|
+
_defineProperty$1(this, "query", void 0);
|
|
7920
7847
|
|
|
7921
|
-
_defineProperty$
|
|
7848
|
+
_defineProperty$1(this, "resolver", void 0);
|
|
7922
7849
|
|
|
7923
|
-
_defineProperty$
|
|
7850
|
+
_defineProperty$1(this, "messageDispatcher", void 0);
|
|
7924
7851
|
|
|
7925
|
-
_defineProperty$
|
|
7852
|
+
_defineProperty$1(this, "beforePageLoadHandlers", []);
|
|
7926
7853
|
|
|
7927
|
-
_defineProperty$
|
|
7854
|
+
_defineProperty$1(this, "pageLoadHandlers", []);
|
|
7928
7855
|
|
|
7929
|
-
_defineProperty$
|
|
7856
|
+
_defineProperty$1(this, "beforePageLeaveHandlers", []);
|
|
7930
7857
|
|
|
7931
|
-
_defineProperty$
|
|
7858
|
+
_defineProperty$1(this, "pageLeaveHandlers", []);
|
|
7932
7859
|
|
|
7933
|
-
_defineProperty$
|
|
7860
|
+
_defineProperty$1(this, "anchorLoadHandlers", []);
|
|
7934
7861
|
|
|
7935
|
-
_defineProperty$
|
|
7862
|
+
_defineProperty$1(this, "anchorUnloadHandlers", []);
|
|
7936
7863
|
|
|
7937
|
-
_defineProperty$
|
|
7864
|
+
_defineProperty$1(this, "messageCloseHandlers", []);
|
|
7938
7865
|
|
|
7939
|
-
_defineProperty$
|
|
7866
|
+
_defineProperty$1(this, "messageHandlers", []);
|
|
7940
7867
|
|
|
7941
|
-
_defineProperty$
|
|
7868
|
+
_defineProperty$1(this, "segues", {});
|
|
7942
7869
|
|
|
7943
|
-
_defineProperty$
|
|
7870
|
+
_defineProperty$1(this, "currentMatch", void 0);
|
|
7944
7871
|
|
|
7945
|
-
_defineProperty$
|
|
7872
|
+
_defineProperty$1(this, "storyboardContext", new Map());
|
|
7946
7873
|
|
|
7947
|
-
_defineProperty$
|
|
7874
|
+
_defineProperty$1(this, "tplContext", new CustomTemplateContext());
|
|
7948
7875
|
|
|
7949
7876
|
this.kernel = kernel;
|
|
7950
7877
|
this.location = location;
|
|
@@ -7969,7 +7896,8 @@ class LocationContext {
|
|
|
7969
7896
|
username: auth.username,
|
|
7970
7897
|
userInstanceId: auth.userInstanceId,
|
|
7971
7898
|
loginFrom: auth.loginFrom,
|
|
7972
|
-
accessRule: auth.accessRule
|
|
7899
|
+
accessRule: auth.accessRule,
|
|
7900
|
+
isAdmin: auth.isAdmin
|
|
7973
7901
|
}, getRuntimeMisc()),
|
|
7974
7902
|
flags: this.kernel.getFeatureFlags(),
|
|
7975
7903
|
segues: this.segues,
|
|
@@ -8379,7 +8307,7 @@ class LocationContext {
|
|
|
8379
8307
|
|
|
8380
8308
|
preCheckPermissions(container, context) {
|
|
8381
8309
|
return _asyncToGenerator$4(function* () {
|
|
8382
|
-
if (isLoggedIn() && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
|
|
8310
|
+
if (isLoggedIn() && !getAuth().isAdmin && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
|
|
8383
8311
|
var usedActions = computeRealValue(container.permissionsPreCheck, context, true);
|
|
8384
8312
|
yield validatePermissions(usedActions);
|
|
8385
8313
|
}
|
|
@@ -8896,13 +8824,13 @@ function makeProviderRefreshable(providerBrick) {
|
|
|
8896
8824
|
|
|
8897
8825
|
class Resolver {
|
|
8898
8826
|
constructor(kernel) {
|
|
8899
|
-
_defineProperty$
|
|
8827
|
+
_defineProperty$1(this, "cache", new Map());
|
|
8900
8828
|
|
|
8901
|
-
_defineProperty$
|
|
8829
|
+
_defineProperty$1(this, "refreshQueue", new Map());
|
|
8902
8830
|
|
|
8903
|
-
_defineProperty$
|
|
8831
|
+
_defineProperty$1(this, "definedResolves", new Map());
|
|
8904
8832
|
|
|
8905
|
-
_defineProperty$
|
|
8833
|
+
_defineProperty$1(this, "active", true);
|
|
8906
8834
|
|
|
8907
8835
|
this.kernel = kernel;
|
|
8908
8836
|
}
|
|
@@ -9159,7 +9087,7 @@ class ResolveRequestError extends Error {
|
|
|
9159
9087
|
// Pass remaining arguments (including vendor specific ones) to parent constructor
|
|
9160
9088
|
super(rawError.message);
|
|
9161
9089
|
|
|
9162
|
-
_defineProperty$
|
|
9090
|
+
_defineProperty$1(this, "rawError", void 0);
|
|
9163
9091
|
|
|
9164
9092
|
this.name = "ResolveRequestError"; // Maintains proper stack trace for where our error was thrown (only available on V8)
|
|
9165
9093
|
// istanbul ignore else
|
|
@@ -9179,21 +9107,21 @@ function shouldBeDefaultCollapsed(defaultCollapsed, defaultCollapsedBreakpoint)
|
|
|
9179
9107
|
|
|
9180
9108
|
class Router {
|
|
9181
9109
|
constructor(kernel) {
|
|
9182
|
-
_defineProperty$
|
|
9110
|
+
_defineProperty$1(this, "defaultCollapsed", false);
|
|
9183
9111
|
|
|
9184
|
-
_defineProperty$
|
|
9112
|
+
_defineProperty$1(this, "locationContext", void 0);
|
|
9185
9113
|
|
|
9186
|
-
_defineProperty$
|
|
9114
|
+
_defineProperty$1(this, "rendering", false);
|
|
9187
9115
|
|
|
9188
|
-
_defineProperty$
|
|
9116
|
+
_defineProperty$1(this, "nextLocation", void 0);
|
|
9189
9117
|
|
|
9190
|
-
_defineProperty$
|
|
9118
|
+
_defineProperty$1(this, "prevLocation", void 0);
|
|
9191
9119
|
|
|
9192
|
-
_defineProperty$
|
|
9120
|
+
_defineProperty$1(this, "state", "initial");
|
|
9193
9121
|
|
|
9194
|
-
_defineProperty$
|
|
9122
|
+
_defineProperty$1(this, "renderId", void 0);
|
|
9195
9123
|
|
|
9196
|
-
_defineProperty$
|
|
9124
|
+
_defineProperty$1(this, "featureFlags", void 0);
|
|
9197
9125
|
|
|
9198
9126
|
this.kernel = kernel;
|
|
9199
9127
|
this.featureFlags = this.kernel.getFeatureFlags();
|
|
@@ -9342,6 +9270,8 @@ class Router {
|
|
|
9342
9270
|
var _this3 = this;
|
|
9343
9271
|
|
|
9344
9272
|
return _asyncToGenerator$4(function* () {
|
|
9273
|
+
var _apiAnalyzer$getInsta;
|
|
9274
|
+
|
|
9345
9275
|
_this3.state = "initial";
|
|
9346
9276
|
_this3.renderId = uniqueId("render-id-");
|
|
9347
9277
|
resetAllInjected();
|
|
@@ -9352,7 +9282,10 @@ class Router {
|
|
|
9352
9282
|
}
|
|
9353
9283
|
|
|
9354
9284
|
var history = getHistory();
|
|
9355
|
-
history.unblock();
|
|
9285
|
+
history.unblock(); // Create the page tracker before page load.
|
|
9286
|
+
// And the API Analyzer maybe disabled.
|
|
9287
|
+
|
|
9288
|
+
var pageTracker = (_apiAnalyzer$getInsta = apiAnalyzer.getInstance()) === null || _apiAnalyzer$getInsta === void 0 ? void 0 : _apiAnalyzer$getInsta.pageTracker();
|
|
9356
9289
|
var locationContext = _this3.locationContext = new LocationContext(_this3.kernel, location);
|
|
9357
9290
|
var storyboard = locationContext.matchStoryboard(_this3.kernel.bootstrapData.storyboards);
|
|
9358
9291
|
|
|
@@ -9363,7 +9296,7 @@ class Router {
|
|
|
9363
9296
|
|
|
9364
9297
|
restoreDynamicTemplates(storyboard); // 预加载权限信息
|
|
9365
9298
|
|
|
9366
|
-
if (isLoggedIn()) {
|
|
9299
|
+
if (isLoggedIn() && !getAuth().isAdmin) {
|
|
9367
9300
|
yield preCheckPermissions(storyboard);
|
|
9368
9301
|
} // 如果找到匹配的 storyboard,那么根据路由匹配得到的 sub-storyboard 加载它的依赖库。
|
|
9369
9302
|
|
|
@@ -9548,8 +9481,6 @@ class Router {
|
|
|
9548
9481
|
});
|
|
9549
9482
|
|
|
9550
9483
|
if (main.length > 0 || portal.length > 0) {
|
|
9551
|
-
var _apiAnalyzer$getInsta;
|
|
9552
|
-
|
|
9553
9484
|
main.length > 0 && mountTree(main, mountPoints.main);
|
|
9554
9485
|
portal.length > 0 && mountTree(portal, mountPoints.portal);
|
|
9555
9486
|
afterMountTree(mountPoints.main);
|
|
@@ -9568,9 +9499,8 @@ class Router {
|
|
|
9568
9499
|
// See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
|
|
9569
9500
|
|
|
9570
9501
|
|
|
9571
|
-
window.scrollTo(0, 0);
|
|
9572
|
-
|
|
9573
|
-
(_apiAnalyzer$getInsta = apiAnalyzer.getInstance()) === null || _apiAnalyzer$getInsta === void 0 ? void 0 : _apiAnalyzer$getInsta.pageTracker()(locationContext.getCurrentMatch().path); // analytics page_view event
|
|
9502
|
+
window.scrollTo(0, 0);
|
|
9503
|
+
pageTracker === null || pageTracker === void 0 ? void 0 : pageTracker(locationContext.getCurrentMatch().path); // analytics page_view event
|
|
9574
9504
|
|
|
9575
9505
|
userAnalytics.event("page_view", _objectSpread({
|
|
9576
9506
|
micro_app_id: _this3.kernel.currentApp.id,
|
|
@@ -10526,7 +10456,7 @@ var locale$4 = {
|
|
|
10526
10456
|
var TimePicker$1 = locale$4;
|
|
10527
10457
|
|
|
10528
10458
|
var locale$3 = {
|
|
10529
|
-
lang: _extends$
|
|
10459
|
+
lang: _extends$1({
|
|
10530
10460
|
placeholder: '请选择日期',
|
|
10531
10461
|
yearPlaceholder: '请选择年份',
|
|
10532
10462
|
quarterPlaceholder: '请选择季度',
|
|
@@ -10537,7 +10467,7 @@ var locale$3 = {
|
|
|
10537
10467
|
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
|
10538
10468
|
rangeWeekPlaceholder: ['开始周', '结束周']
|
|
10539
10469
|
}, locale$5),
|
|
10540
|
-
timePickerLocale: _extends$
|
|
10470
|
+
timePickerLocale: _extends$1({}, TimePicker$1)
|
|
10541
10471
|
}; // should add whitespace between char in Button
|
|
10542
10472
|
|
|
10543
10473
|
locale$3.lang.ok = '确 定'; // All settings at:
|
|
@@ -10723,7 +10653,7 @@ var locale$1 = {
|
|
|
10723
10653
|
var TimePicker = locale$1;
|
|
10724
10654
|
|
|
10725
10655
|
var locale = {
|
|
10726
|
-
lang: _extends$
|
|
10656
|
+
lang: _extends$1({
|
|
10727
10657
|
placeholder: 'Select date',
|
|
10728
10658
|
yearPlaceholder: 'Select year',
|
|
10729
10659
|
quarterPlaceholder: 'Select quarter',
|
|
@@ -10734,7 +10664,7 @@ var locale = {
|
|
|
10734
10664
|
rangeMonthPlaceholder: ['Start month', 'End month'],
|
|
10735
10665
|
rangeWeekPlaceholder: ['Start week', 'End week']
|
|
10736
10666
|
}, locale$2),
|
|
10737
|
-
timePickerLocale: _extends$
|
|
10667
|
+
timePickerLocale: _extends$1({}, TimePicker)
|
|
10738
10668
|
}; // All settings at:
|
|
10739
10669
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
10740
10670
|
|
|
@@ -10867,92 +10797,153 @@ var localeValues = {
|
|
|
10867
10797
|
};
|
|
10868
10798
|
var defaultLocale = localeValues;
|
|
10869
10799
|
|
|
10870
|
-
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
10871
|
-
|
|
10872
|
-
var _ref$1 = /*#__PURE__*/React.createElement("g", {
|
|
10873
|
-
fill: "none"
|
|
10874
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
10875
|
-
d: "M61.108 51.8H15.892a2.8 2.8 0 0 0-1.941.782L5.6 60.615V74.2a5.6 5.6 0 0 0 5.6 5.6h54.6a5.6 5.6 0 0 0 5.6-5.6V60.615l-8.35-8.033a2.8 2.8 0 0 0-1.942-.782z",
|
|
10876
|
-
fill: "#C4C4C4"
|
|
10877
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10878
|
-
d: "M16.8 19.6h43.4a2.8 2.8 0 0 1 2.8 2.8v44.8a2.8 2.8 0 0 1-2.8 2.8H16.8a2.8 2.8 0 0 1-2.8-2.8V22.4a2.8 2.8 0 0 1 2.8-2.8z",
|
|
10879
|
-
fill: "#F7F7F7"
|
|
10880
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10881
|
-
d: "M23.8 26.6h29.4a2.8 2.8 0 0 1 2.8 2.8v9.8a2.8 2.8 0 0 1-2.8 2.8H23.8a2.8 2.8 0 0 1-2.8-2.8v-9.8a2.8 2.8 0 0 1 2.8-2.8zm0 26.6h22.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8zm0-7h29.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8z",
|
|
10882
|
-
fill: "#E5E5E5"
|
|
10883
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10884
|
-
d: "M82.6 42a.7.7 0 0 1 .7.7v1.399l1.4.001a.7.7 0 0 1 0 1.4l-1.4-.001V46.9a.7.7 0 0 1-1.4 0v-1.401l-1.4.001a.7.7 0 0 1 0-1.4l1.4-.001V42.7a.7.7 0 0 1 .7-.7z",
|
|
10885
|
-
fill: "#CDCDCD"
|
|
10886
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10887
|
-
d: "M2.1 30.8c.29 0 .525.235.525.525l-.001.874.876.001a.7.7 0 0 1 0 1.4h-.876l.001.875a.525.525 0 1 1-1.05 0l-.001-.875H.7a.7.7 0 0 1 0-1.4l.874-.001.001-.874c0-.29.235-.525.525-.525zm6.3 49l-.17-.005A2.8 2.8 0 0 1 5.6 77V60.2h12.393l.175-.006c3.802-.04 7.95 5.943 19.61 6.19l.022-.002.022.002c10.856.218 15.009-5.902 19.558-6.175l.227-.009H71.4V77a2.8 2.8 0 0 1-2.63 2.795l-.17.005H8.4z",
|
|
10888
|
-
fill: "#E5E5E5"
|
|
10889
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10890
|
-
d: "M21 3.356S24.518 2.509 25.516 0c1.438 2.057 2.18 2.947 3.884 3.338-2.321.692-3.33 1.468-4.123 3.662-.912-2.584-1.741-2.919-4.277-3.644",
|
|
10891
|
-
fill: "#F5F5F5"
|
|
10892
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10893
|
-
d: "M63 10.125S72.382 7.923 75.044 1.4c3.834 5.35 5.81 7.663 10.356 8.68-6.19 1.797-8.878 3.816-10.995 9.52-2.43-6.72-4.643-7.59-11.405-9.475",
|
|
10894
|
-
fill: "#E5E5E5"
|
|
10895
|
-
}));
|
|
10896
|
-
|
|
10897
|
-
function SvgEmptyGreyImage(props) {
|
|
10898
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
10899
|
-
width: 86,
|
|
10900
|
-
height: 80,
|
|
10901
|
-
viewBox: "0 0 86 80",
|
|
10902
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10903
|
-
}, props), _ref$1);
|
|
10904
|
-
}
|
|
10905
|
-
|
|
10906
10800
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
10907
10801
|
|
|
10908
|
-
var _ref = /*#__PURE__*/React.createElement("
|
|
10909
|
-
|
|
10802
|
+
var _ref = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
10803
|
+
x1: "5.718%",
|
|
10804
|
+
y1: "4.311%",
|
|
10805
|
+
x2: "83.05%",
|
|
10806
|
+
y2: "88.915%",
|
|
10807
|
+
id: "empty-image_svg__a"
|
|
10808
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10809
|
+
stopColor: "#D4D8E4",
|
|
10810
|
+
offset: "0%"
|
|
10811
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10812
|
+
stopColor: "#A9B0C4",
|
|
10813
|
+
offset: "100%"
|
|
10814
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
10815
|
+
x1: "0%",
|
|
10816
|
+
y1: "11.08%",
|
|
10817
|
+
x2: "80.548%",
|
|
10818
|
+
y2: "107.704%",
|
|
10819
|
+
id: "empty-image_svg__d"
|
|
10820
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10821
|
+
stopColor: "#C2C7DA",
|
|
10822
|
+
offset: "0%"
|
|
10823
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10824
|
+
stopColor: "#8F96B3",
|
|
10825
|
+
offset: "100%"
|
|
10826
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10827
|
+
d: "M34 36h8a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4h-8a4 4 0 0 1-4-4v-8a4 4 0 0 1 4-4z",
|
|
10828
|
+
id: "empty-image_svg__c"
|
|
10829
|
+
}), /*#__PURE__*/React.createElement("filter", {
|
|
10830
|
+
x: "-37.5%",
|
|
10831
|
+
y: "-31.3%",
|
|
10832
|
+
width: "187.5%",
|
|
10833
|
+
height: "187.5%",
|
|
10834
|
+
filterUnits: "objectBoundingBox",
|
|
10835
|
+
id: "empty-image_svg__b"
|
|
10836
|
+
}, /*#__PURE__*/React.createElement("feOffset", {
|
|
10837
|
+
dx: 1,
|
|
10838
|
+
dy: 2,
|
|
10839
|
+
in: "SourceAlpha",
|
|
10840
|
+
result: "shadowOffsetOuter1"
|
|
10841
|
+
}), /*#__PURE__*/React.createElement("feGaussianBlur", {
|
|
10842
|
+
stdDeviation: 2,
|
|
10843
|
+
in: "shadowOffsetOuter1",
|
|
10844
|
+
result: "shadowBlurOuter1"
|
|
10845
|
+
}), /*#__PURE__*/React.createElement("feComposite", {
|
|
10846
|
+
in: "shadowBlurOuter1",
|
|
10847
|
+
in2: "SourceAlpha",
|
|
10848
|
+
operator: "out",
|
|
10849
|
+
result: "shadowBlurOuter1"
|
|
10850
|
+
}), /*#__PURE__*/React.createElement("feColorMatrix", {
|
|
10851
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
|
|
10852
|
+
in: "shadowBlurOuter1"
|
|
10853
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
10854
|
+
x1: "41.823%",
|
|
10855
|
+
y1: "24.795%",
|
|
10856
|
+
x2: "8.813%",
|
|
10857
|
+
y2: "86.427%",
|
|
10858
|
+
id: "empty-image_svg__g"
|
|
10859
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10860
|
+
stopColor: "#CCD0DD",
|
|
10861
|
+
offset: "0%"
|
|
10862
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10863
|
+
stopColor: "#9DA3B9",
|
|
10864
|
+
offset: "100%"
|
|
10865
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10866
|
+
d: "M59 19a4 4 0 0 1 4 4v7.314L51.686 19H59z",
|
|
10867
|
+
id: "empty-image_svg__f"
|
|
10868
|
+
}), /*#__PURE__*/React.createElement("filter", {
|
|
10869
|
+
x: "-61.9%",
|
|
10870
|
+
y: "-79.5%",
|
|
10871
|
+
width: "223.7%",
|
|
10872
|
+
height: "223.7%",
|
|
10873
|
+
filterUnits: "objectBoundingBox",
|
|
10874
|
+
id: "empty-image_svg__e"
|
|
10875
|
+
}, /*#__PURE__*/React.createElement("feOffset", {
|
|
10876
|
+
dy: -2,
|
|
10877
|
+
in: "SourceAlpha",
|
|
10878
|
+
result: "shadowOffsetOuter1"
|
|
10879
|
+
}), /*#__PURE__*/React.createElement("feGaussianBlur", {
|
|
10880
|
+
stdDeviation: 2,
|
|
10881
|
+
in: "shadowOffsetOuter1",
|
|
10882
|
+
result: "shadowBlurOuter1"
|
|
10883
|
+
}), /*#__PURE__*/React.createElement("feColorMatrix", {
|
|
10884
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
|
|
10885
|
+
in: "shadowBlurOuter1"
|
|
10886
|
+
})));
|
|
10887
|
+
|
|
10888
|
+
var _ref2 = /*#__PURE__*/React.createElement("g", {
|
|
10889
|
+
fill: "none",
|
|
10890
|
+
fillRule: "evenodd"
|
|
10910
10891
|
}, /*#__PURE__*/React.createElement("path", {
|
|
10911
|
-
d: "
|
|
10912
|
-
|
|
10913
|
-
fill: "#FDFDFD"
|
|
10914
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10915
|
-
d: "M16.8 19.6h43.4a2.8 2.8 0 0 1 2.8 2.8v44.8a2.8 2.8 0 0 1-2.8 2.8H16.8a2.8 2.8 0 0 1-2.8-2.8V22.4a2.8 2.8 0 0 1 2.8-2.8z",
|
|
10916
|
-
stroke: "#EEE",
|
|
10917
|
-
fill: "#F7F7F7"
|
|
10918
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10919
|
-
d: "M23.8 26.6h29.4a2.8 2.8 0 0 1 2.8 2.8v9.8a2.8 2.8 0 0 1-2.8 2.8H23.8a2.8 2.8 0 0 1-2.8-2.8v-9.8a2.8 2.8 0 0 1 2.8-2.8zm0 26.6h22.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8zm0-7h29.4a1.4 1.4 0 0 1 0 2.8H23.8a1.4 1.4 0 0 1 0-2.8z",
|
|
10920
|
-
fill: "#E5E5E5"
|
|
10892
|
+
d: "M61.108 51.8H15.892a2.8 2.8 0 0 0-1.941.782L5.6 60.615V74.2a5.6 5.6 0 0 0 5.6 5.6h54.6a5.6 5.6 0 0 0 5.6-5.6V60.615l-8.35-8.033a2.8 2.8 0 0 0-1.942-.782z",
|
|
10893
|
+
fill: "#A6AAC3"
|
|
10921
10894
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10922
|
-
d: "
|
|
10923
|
-
fill: "#
|
|
10895
|
+
d: "M51.686 19L63 30.314V66.2a2.8 2.8 0 0 1-2.8 2.8H16.8a2.8 2.8 0 0 1-2.8-2.8V25a6 6 0 0 1 6-6h31.686z",
|
|
10896
|
+
fill: "url(#empty-image_svg__a)"
|
|
10897
|
+
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("use", {
|
|
10898
|
+
fill: "#000",
|
|
10899
|
+
filter: "url(#empty-image_svg__b)",
|
|
10900
|
+
xlinkHref: "#empty-image_svg__c"
|
|
10924
10901
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10925
|
-
|
|
10926
|
-
|
|
10902
|
+
stroke: "#FFF",
|
|
10903
|
+
d: "M42 36.5c.966 0 1.841.392 2.475 1.025A3.489 3.489 0 0 1 45.5 40h0v8c0 .966-.392 1.841-1.025 2.475A3.489 3.489 0 0 1 42 51.5h0-8a3.489 3.489 0 0 1-2.475-1.025A3.489 3.489 0 0 1 30.5 48h0v-8c0-.966.392-1.841 1.025-2.475A3.489 3.489 0 0 1 34 36.5h0z",
|
|
10904
|
+
strokeLinejoin: "square",
|
|
10905
|
+
fill: "url(#empty-image_svg__d)"
|
|
10906
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
10907
|
+
transform: "rotate(180 57.343 24.657)"
|
|
10908
|
+
}, /*#__PURE__*/React.createElement("use", {
|
|
10909
|
+
fill: "#000",
|
|
10910
|
+
filter: "url(#empty-image_svg__e)",
|
|
10911
|
+
xlinkHref: "#empty-image_svg__f"
|
|
10912
|
+
}), /*#__PURE__*/React.createElement("use", {
|
|
10913
|
+
fill: "url(#empty-image_svg__g)",
|
|
10914
|
+
xlinkHref: "#empty-image_svg__f"
|
|
10915
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10916
|
+
d: "M82.6 42a.7.7 0 0 1 .7.7v1.399l1.4.001a.7.7 0 0 1 0 1.4l-1.4-.001V46.9a.7.7 0 0 1-1.4 0v-1.401l-1.4.001a.7.7 0 0 1 0-1.4l1.4-.001V42.7a.7.7 0 0 1 .7-.7zM2.1 30.8c.29 0 .525.235.525.525l-.001.874.876.001a.7.7 0 0 1 0 1.4h-.876l.001.875a.525.525 0 1 1-1.05 0l-.001-.875H.7a.7.7 0 0 1 0-1.4l.874-.001.001-.874c0-.29.235-.525.525-.525z",
|
|
10917
|
+
fill: "#D6D8E4",
|
|
10918
|
+
opacity: 0.3
|
|
10927
10919
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10928
|
-
d: "
|
|
10929
|
-
|
|
10930
|
-
fill: "#F7F5F5"
|
|
10920
|
+
d: "M8.4 79.8l-.17-.005A2.8 2.8 0 0 1 5.6 77V60.2h12.393l.175-.006c3.802-.04 7.95 5.943 19.61 6.19l.022-.002.022.002c10.856.218 15.009-5.902 19.558-6.175l.227-.009H71.4V77a2.8 2.8 0 0 1-2.63 2.795l-.17.005H8.4z",
|
|
10921
|
+
fill: "#D6D8E4"
|
|
10931
10922
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10932
10923
|
d: "M21 3.356S24.518 2.509 25.516 0c1.438 2.057 2.18 2.947 3.884 3.338-2.321.692-3.33 1.468-4.123 3.662-.912-2.584-1.741-2.919-4.277-3.644",
|
|
10933
|
-
fill: "#
|
|
10924
|
+
fill: "#D6D8E4",
|
|
10925
|
+
opacity: 0.5
|
|
10934
10926
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10935
10927
|
d: "M63 10.125S72.382 7.923 75.044 1.4c3.834 5.35 5.81 7.663 10.356 8.68-6.19 1.797-8.878 3.816-10.995 9.52-2.43-6.72-4.643-7.59-11.405-9.475",
|
|
10936
|
-
fill: "#
|
|
10928
|
+
fill: "#D6D8E4",
|
|
10929
|
+
opacity: 0.8
|
|
10937
10930
|
}));
|
|
10938
10931
|
|
|
10939
|
-
function
|
|
10932
|
+
function SvgEmptyImage(props) {
|
|
10940
10933
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10941
10934
|
width: 86,
|
|
10942
10935
|
height: 80,
|
|
10943
10936
|
viewBox: "0 0 86 80",
|
|
10944
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10945
|
-
|
|
10937
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10938
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
10939
|
+
}, props), _ref, _ref2);
|
|
10946
10940
|
}
|
|
10947
10941
|
|
|
10948
10942
|
/**
|
|
10949
10943
|
* 用于展示空数据的 React 组件。
|
|
10950
10944
|
*/
|
|
10951
10945
|
function EasyopsEmpty(props) {
|
|
10952
|
-
var
|
|
10953
|
-
|
|
10954
|
-
var background = (_props$background = props.background) !== null && _props$background !== void 0 ? _props$background : "white";
|
|
10955
|
-
var emptyImage = background === "white" ? SvgEmptyGreyImage : SvgEmptyLightGreyImage;
|
|
10946
|
+
var emptyImage = SvgEmptyImage;
|
|
10956
10947
|
var illustration = useMemo(() => props.illustration && getIllustration(props.illustration), [props.illustration]);
|
|
10957
10948
|
var image = props.illustration ? illustration : /*#__PURE__*/React__default.createElement(emptyImage);
|
|
10958
10949
|
return /*#__PURE__*/React__default.createElement(Empty, {
|
|
@@ -11161,7 +11152,7 @@ class UpdatingElement extends HTMLElement {
|
|
|
11161
11152
|
constructor() {
|
|
11162
11153
|
super(...arguments);
|
|
11163
11154
|
|
|
11164
|
-
_defineProperty$
|
|
11155
|
+
_defineProperty$1(this, "_hasRequestedRender", false);
|
|
11165
11156
|
}
|
|
11166
11157
|
|
|
11167
11158
|
/** @internal */
|
|
@@ -11372,13 +11363,13 @@ class UpdatingElement extends HTMLElement {
|
|
|
11372
11363
|
|
|
11373
11364
|
}
|
|
11374
11365
|
|
|
11375
|
-
_defineProperty$
|
|
11366
|
+
_defineProperty$1(UpdatingElement, "_observedAttributes", new Set());
|
|
11376
11367
|
|
|
11377
|
-
_defineProperty$
|
|
11368
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedProperties", new Set());
|
|
11378
11369
|
|
|
11379
|
-
_defineProperty$
|
|
11370
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedMethods", new Set());
|
|
11380
11371
|
|
|
11381
|
-
_defineProperty$
|
|
11372
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedEvents", new Set());
|
|
11382
11373
|
|
|
11383
11374
|
/**
|
|
11384
11375
|
* 模态框类构件的抽象基类。
|