@next-core/brick-kit 2.89.2 → 2.91.0
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 +48 -0
- package/dist/index.bundle.js +299 -251
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +397 -349
- 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/Resolver.d.ts.map +1 -1
- package/dist/types/core/Runtime.d.ts +2 -0
- package/dist/types/core/Runtime.d.ts.map +1 -1
- package/dist/types/core/StoryboardFunctionRegistryFactory.d.ts +6 -3
- package/dist/types/core/StoryboardFunctionRegistryFactory.d.ts.map +1 -1
- package/dist/types/core/StoryboardFunctions.d.ts +1 -1
- package/dist/types/core/StoryboardFunctions.d.ts.map +1 -1
- package/dist/types/core/WidgetI18n.d.ts +5 -0
- package/dist/types/core/WidgetI18n.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +2 -0
- package/dist/types/i18n/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/internal/checkPermissions.d.ts.map +1 -1
- package/dist/types/internal/evaluate.d.ts.map +1 -1
- package/dist/types/internal/images.d.ts +2 -4
- package/dist/types/internal/images.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -2,13 +2,13 @@ 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
|
-
import lodash, { set, get, difference, cloneDeep, isNil, sortBy, merge, clamp, uniqueId, orderBy, omit, isEmpty } from 'lodash';
|
|
8
|
+
import lodash, { set, get, difference, identity, cloneDeep, isNil, sortBy, merge, clamp, uniqueId, orderBy, omit, isEmpty } from 'lodash';
|
|
9
9
|
import { toPath, computeRealRoutePath, hasOwnProperty, isObject, isEvaluable, transformAndInject, transform, trackContext, scanPermissionActionsInStoryboard, precookFunction, cook, shouldAllowRecursiveEvaluations, preevaluate, inject, deepFreeze, createProviderClass, scanRouteAliasInStoryboard, loadScript, getTemplateDepsOfStoryboard, getDllAndDepsOfStoryboard, asyncProcessStoryboard, prefetchScript, scanBricksInBrickConf, scanProcessorsInAny, getDllAndDepsByResource, resolveContextConcurrently, matchPath, asyncProcessBrick, restoreDynamicTemplates, mapCustomApisToNameAndNamespace, scanCustomApisInStoryboard } from '@next-core/brick-utils';
|
|
10
10
|
import { http, HttpResponseError, HttpFetchError } from '@next-core/brick-http';
|
|
11
|
-
import i18next from 'i18next';
|
|
11
|
+
import i18next, { getFixedT } from 'i18next';
|
|
12
12
|
import moment from 'moment';
|
|
13
13
|
import { pipes } from '@next-core/pipes';
|
|
14
14
|
import { userAnalytics, apiAnalyzer } from '@next-core/easyops-analytics';
|
|
@@ -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
|
);
|
|
@@ -668,12 +668,12 @@ function getUrlBySegueFactory(app, segues) {
|
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
-
function imagesFactory(
|
|
671
|
+
function imagesFactory(appId, isBuildPush) {
|
|
672
672
|
return {
|
|
673
673
|
get(name) {
|
|
674
674
|
var _window$PUBLIC_ROOT;
|
|
675
675
|
|
|
676
|
-
return
|
|
676
|
+
return isBuildPush ? "api/gateway/object_store.object_store.GetObject/api/v1/objectStore/bucket/next-builder/object/".concat(name) : "".concat((_window$PUBLIC_ROOT = window.PUBLIC_ROOT) !== null && _window$PUBLIC_ROOT !== void 0 ? _window$PUBLIC_ROOT : "", "micro-apps/").concat(appId, "/images/").concat(name);
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
};
|
|
@@ -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
|
}
|
|
@@ -1372,11 +1424,55 @@ function i18nText(data) {
|
|
|
1372
1424
|
}
|
|
1373
1425
|
}
|
|
1374
1426
|
|
|
1427
|
+
var locale$7 = {
|
|
1428
|
+
[K.REQUEST_FAILED]: "Request Failed",
|
|
1429
|
+
[K.MODAL_OK]: "Ok",
|
|
1430
|
+
[K.MODAL_CANCEL]: "Cancel",
|
|
1431
|
+
[K.SOMETHING_WENT_WRONG]: "Something went wrong!",
|
|
1432
|
+
[K.LOGIN_TIMEOUT_MESSAGE]: "You haven't logged in or your login session has expired. Login right now?",
|
|
1433
|
+
[K.NETWORK_ERROR]: "Network error, please check your network."
|
|
1434
|
+
};
|
|
1435
|
+
var en = locale$7;
|
|
1436
|
+
|
|
1437
|
+
var locale$6 = {
|
|
1438
|
+
[K.REQUEST_FAILED]: "请求失败",
|
|
1439
|
+
[K.MODAL_OK]: "确认",
|
|
1440
|
+
[K.MODAL_CANCEL]: "取消",
|
|
1441
|
+
[K.SOMETHING_WENT_WRONG]: "出现了一些问题!",
|
|
1442
|
+
[K.LOGIN_TIMEOUT_MESSAGE]: "您还未登录或登录信息已过期,现在重新登录?",
|
|
1443
|
+
[K.NETWORK_ERROR]: "网络错误,请检查您的网络连接。"
|
|
1444
|
+
};
|
|
1445
|
+
var zh = locale$6;
|
|
1446
|
+
|
|
1447
|
+
/** @internal */
|
|
1448
|
+
|
|
1449
|
+
var initI18n = () => {
|
|
1450
|
+
i18next.addResourceBundle("en", NS_BRICK_KIT, en);
|
|
1451
|
+
i18next.addResourceBundle("zh", NS_BRICK_KIT, zh);
|
|
1452
|
+
};
|
|
1453
|
+
/** @internal */
|
|
1454
|
+
|
|
1455
|
+
function getI18nNamespace(type, id) {
|
|
1456
|
+
return "$".concat(type, "-").concat(id);
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
function registerWidgetI18n(widgetId, i18n) {
|
|
1460
|
+
var ns = getI18nNamespace("widget", widgetId);
|
|
1461
|
+
Object.entries(i18n).forEach(_ref => {
|
|
1462
|
+
var [lang, resources] = _ref;
|
|
1463
|
+
i18next.addResourceBundle(lang, ns, resources);
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1466
|
+
function widgetI18nFactory(widgetId) {
|
|
1467
|
+
return getFixedT(null, getI18nNamespace("widget", widgetId));
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1375
1470
|
/** @internal */
|
|
1376
1471
|
|
|
1377
1472
|
/** @internal */
|
|
1378
1473
|
function StoryboardFunctionRegistryFactory() {
|
|
1379
1474
|
var {
|
|
1475
|
+
widgetId,
|
|
1380
1476
|
collectCoverage
|
|
1381
1477
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1382
1478
|
var registeredFunctions = new Map(); // Use `Proxy` with a frozen target, to make a readonly function registry.
|
|
@@ -1388,7 +1484,30 @@ function StoryboardFunctionRegistryFactory() {
|
|
|
1388
1484
|
|
|
1389
1485
|
});
|
|
1390
1486
|
|
|
1391
|
-
|
|
1487
|
+
var builtinSupply = _objectSpread({
|
|
1488
|
+
// Functions can call other functions.
|
|
1489
|
+
FN: storyboardFunctions
|
|
1490
|
+
}, collectCoverage ? {
|
|
1491
|
+
// Fake builtin methods for tests.
|
|
1492
|
+
I18N: identity,
|
|
1493
|
+
I18N_TEXT: fakeI18nText,
|
|
1494
|
+
IMG: fakeImageFactory()
|
|
1495
|
+
} : widgetId ? {
|
|
1496
|
+
I18N: widgetI18nFactory(widgetId),
|
|
1497
|
+
I18N_TEXT: i18nText,
|
|
1498
|
+
IMG: widgetImagesFactory(widgetId)
|
|
1499
|
+
} : {
|
|
1500
|
+
I18N_TEXT: i18nText
|
|
1501
|
+
});
|
|
1502
|
+
|
|
1503
|
+
function registerStoryboardFunctions(functions, app) {
|
|
1504
|
+
if (app) {
|
|
1505
|
+
Object.assign(builtinSupply, {
|
|
1506
|
+
I18N: getFixedT(null, getI18nNamespace("app", app.id)),
|
|
1507
|
+
IMG: imagesFactory(app.id, app.isBuildPush)
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1392
1511
|
registeredFunctions.clear();
|
|
1393
1512
|
|
|
1394
1513
|
if (Array.isArray(functions)) {
|
|
@@ -1428,10 +1547,7 @@ function StoryboardFunctionRegistryFactory() {
|
|
|
1428
1547
|
rules: {
|
|
1429
1548
|
noVar: true
|
|
1430
1549
|
},
|
|
1431
|
-
globalVariables: supply(precooked.attemptToVisitGlobals,
|
|
1432
|
-
// Functions can call other functions.
|
|
1433
|
-
FN: storyboardFunctions
|
|
1434
|
-
}),
|
|
1550
|
+
globalVariables: supply(precooked.attemptToVisitGlobals, builtinSupply),
|
|
1435
1551
|
hooks: collector && {
|
|
1436
1552
|
beforeEvaluate: collector.beforeEvaluate,
|
|
1437
1553
|
beforeCall: collector.beforeCall,
|
|
@@ -1456,6 +1572,19 @@ function StoryboardFunctionRegistryFactory() {
|
|
|
1456
1572
|
};
|
|
1457
1573
|
}
|
|
1458
1574
|
|
|
1575
|
+
function fakeI18nText(data) {
|
|
1576
|
+
return data === null || data === void 0 ? void 0 : data.en;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
function fakeImageFactory() {
|
|
1580
|
+
return {
|
|
1581
|
+
get(name) {
|
|
1582
|
+
return "mock/images/".concat(name);
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1459
1588
|
var {
|
|
1460
1589
|
storyboardFunctions,
|
|
1461
1590
|
registerStoryboardFunctions
|
|
@@ -1477,7 +1606,9 @@ function registerWidgetFunctions(widgetId, functions) {
|
|
|
1477
1606
|
var {
|
|
1478
1607
|
storyboardFunctions,
|
|
1479
1608
|
registerStoryboardFunctions
|
|
1480
|
-
} = StoryboardFunctionRegistryFactory(
|
|
1609
|
+
} = StoryboardFunctionRegistryFactory({
|
|
1610
|
+
widgetId
|
|
1611
|
+
});
|
|
1481
1612
|
widgetFunctionRegistry.set(widgetId, storyboardFunctions);
|
|
1482
1613
|
registerStoryboardFunctions(functions);
|
|
1483
1614
|
}
|
|
@@ -1648,7 +1779,7 @@ function evaluate(raw) {
|
|
|
1648
1779
|
}
|
|
1649
1780
|
|
|
1650
1781
|
if (attemptToVisitGlobals.has("IMG")) {
|
|
1651
|
-
globalVariables.IMG = imagesFactory(app);
|
|
1782
|
+
globalVariables.IMG = imagesFactory(app.id, app.isBuildPush);
|
|
1652
1783
|
}
|
|
1653
1784
|
|
|
1654
1785
|
if (attemptToVisitGlobals.has("__WIDGET_IMG__")) {
|
|
@@ -1656,7 +1787,11 @@ function evaluate(raw) {
|
|
|
1656
1787
|
}
|
|
1657
1788
|
|
|
1658
1789
|
if (attemptToVisitGlobals.has("I18N")) {
|
|
1659
|
-
globalVariables.I18N = i18next.getFixedT(null, "
|
|
1790
|
+
globalVariables.I18N = i18next.getFixedT(null, getI18nNamespace("app", app.id));
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
if (attemptToVisitGlobals.has("__WIDGET_I18N__")) {
|
|
1794
|
+
globalVariables.__WIDGET_I18N__ = widgetI18nFactory;
|
|
1660
1795
|
}
|
|
1661
1796
|
|
|
1662
1797
|
if (attemptToVisitGlobals.has("I18N_TEXT")) {
|
|
@@ -2438,21 +2573,23 @@ function _dev_only_getFakeKernel(overrides) {
|
|
|
2438
2573
|
}
|
|
2439
2574
|
class Runtime {
|
|
2440
2575
|
constructor() {
|
|
2441
|
-
_defineProperty$
|
|
2576
|
+
_defineProperty$1(this, "registerBrickTemplate", registerBrickTemplate);
|
|
2577
|
+
|
|
2578
|
+
_defineProperty$1(this, "registerCustomTemplate", registerCustomTemplate);
|
|
2442
2579
|
|
|
2443
|
-
_defineProperty$
|
|
2580
|
+
_defineProperty$1(this, "registerCustomProcessor", registerCustomProcessor);
|
|
2444
2581
|
|
|
2445
|
-
_defineProperty$
|
|
2582
|
+
_defineProperty$1(this, "registerLazyBricks", registerLazyBricks);
|
|
2446
2583
|
|
|
2447
|
-
_defineProperty$
|
|
2584
|
+
_defineProperty$1(this, "registerWidgetFunctions", registerWidgetFunctions);
|
|
2448
2585
|
|
|
2449
|
-
_defineProperty$
|
|
2586
|
+
_defineProperty$1(this, "registerWidgetI18n", registerWidgetI18n);
|
|
2450
2587
|
|
|
2451
|
-
_defineProperty$
|
|
2588
|
+
_defineProperty$1(this, "getBasePath", getBasePath);
|
|
2452
2589
|
|
|
2453
|
-
_defineProperty$
|
|
2590
|
+
_defineProperty$1(this, "getCurrentTheme", getCurrentTheme);
|
|
2454
2591
|
|
|
2455
|
-
_defineProperty$
|
|
2592
|
+
_defineProperty$1(this, "getCurrentMode", getCurrentMode);
|
|
2456
2593
|
}
|
|
2457
2594
|
|
|
2458
2595
|
bootstrap(mountPoints) {
|
|
@@ -3011,13 +3148,13 @@ function LoginTimeoutMessage() {
|
|
|
3011
3148
|
|
|
3012
3149
|
class WebsocketMessageRequest {
|
|
3013
3150
|
constructor(event, topic) {
|
|
3014
|
-
_defineProperty$
|
|
3151
|
+
_defineProperty$1(this, "topic", void 0);
|
|
3015
3152
|
|
|
3016
|
-
_defineProperty$
|
|
3153
|
+
_defineProperty$1(this, "data", void 0);
|
|
3017
3154
|
|
|
3018
|
-
_defineProperty$
|
|
3155
|
+
_defineProperty$1(this, "event", void 0);
|
|
3019
3156
|
|
|
3020
|
-
_defineProperty$
|
|
3157
|
+
_defineProperty$1(this, "message", void 0);
|
|
3021
3158
|
|
|
3022
3159
|
this.event = event;
|
|
3023
3160
|
this.topic = JSON.stringify(topic);
|
|
@@ -3062,13 +3199,13 @@ var PluginWebSocketMessageEvent;
|
|
|
3062
3199
|
|
|
3063
3200
|
class WebsocketMessageResponse {
|
|
3064
3201
|
constructor(response) {
|
|
3065
|
-
_defineProperty$
|
|
3202
|
+
_defineProperty$1(this, "topic", void 0);
|
|
3066
3203
|
|
|
3067
|
-
_defineProperty$
|
|
3204
|
+
_defineProperty$1(this, "data", void 0);
|
|
3068
3205
|
|
|
3069
|
-
_defineProperty$
|
|
3206
|
+
_defineProperty$1(this, "event", void 0);
|
|
3070
3207
|
|
|
3071
|
-
_defineProperty$
|
|
3208
|
+
_defineProperty$1(this, "message", void 0);
|
|
3072
3209
|
|
|
3073
3210
|
this.data = response;
|
|
3074
3211
|
this.message = JSON.parse(response);
|
|
@@ -3116,19 +3253,19 @@ class WebsocketMessageResponse {
|
|
|
3116
3253
|
|
|
3117
3254
|
class WebSocketService {
|
|
3118
3255
|
constructor(options) {
|
|
3119
|
-
_defineProperty$
|
|
3256
|
+
_defineProperty$1(this, "retryCount", 0);
|
|
3120
3257
|
|
|
3121
|
-
_defineProperty$
|
|
3258
|
+
_defineProperty$1(this, "ws", null);
|
|
3122
3259
|
|
|
3123
|
-
_defineProperty$
|
|
3260
|
+
_defineProperty$1(this, "lockReconnect", false);
|
|
3124
3261
|
|
|
3125
|
-
_defineProperty$
|
|
3262
|
+
_defineProperty$1(this, "options", void 0);
|
|
3126
3263
|
|
|
3127
|
-
_defineProperty$
|
|
3264
|
+
_defineProperty$1(this, "messageQueue", new Set());
|
|
3128
3265
|
|
|
3129
|
-
_defineProperty$
|
|
3266
|
+
_defineProperty$1(this, "state", "initial");
|
|
3130
3267
|
|
|
3131
|
-
_defineProperty$
|
|
3268
|
+
_defineProperty$1(this, "defaultOptions", {
|
|
3132
3269
|
url: null,
|
|
3133
3270
|
reconnectTimeout: 1000,
|
|
3134
3271
|
retryLimit: 6
|
|
@@ -4429,15 +4566,15 @@ function getMessageDispatcher() {
|
|
|
4429
4566
|
}
|
|
4430
4567
|
class MessageDispatcher {
|
|
4431
4568
|
constructor() {
|
|
4432
|
-
_defineProperty$
|
|
4569
|
+
_defineProperty$1(this, "ws", void 0);
|
|
4433
4570
|
|
|
4434
|
-
_defineProperty$
|
|
4571
|
+
_defineProperty$1(this, "context", void 0);
|
|
4435
4572
|
|
|
4436
|
-
_defineProperty$
|
|
4573
|
+
_defineProperty$1(this, "messages", new Map());
|
|
4437
4574
|
|
|
4438
|
-
_defineProperty$
|
|
4575
|
+
_defineProperty$1(this, "messageCallbackHandlers", new Map());
|
|
4439
4576
|
|
|
4440
|
-
_defineProperty$
|
|
4577
|
+
_defineProperty$1(this, "channels", new Map());
|
|
4441
4578
|
}
|
|
4442
4579
|
|
|
4443
4580
|
create(brickAndMessages, context) {
|
|
@@ -5625,9 +5762,9 @@ function argsFactory(args, context, event) {
|
|
|
5625
5762
|
|
|
5626
5763
|
class BrickNode {
|
|
5627
5764
|
constructor(brick) {
|
|
5628
|
-
_defineProperty$
|
|
5765
|
+
_defineProperty$1(this, "$$brick", void 0);
|
|
5629
5766
|
|
|
5630
|
-
_defineProperty$
|
|
5767
|
+
_defineProperty$1(this, "children", []);
|
|
5631
5768
|
|
|
5632
5769
|
this.$$brick = brick;
|
|
5633
5770
|
}
|
|
@@ -5726,55 +5863,6 @@ function _asyncToGenerator$1(fn) {
|
|
|
5726
5863
|
};
|
|
5727
5864
|
}
|
|
5728
5865
|
|
|
5729
|
-
function _defineProperty(obj, key, value) {
|
|
5730
|
-
if (key in obj) {
|
|
5731
|
-
Object.defineProperty(obj, key, {
|
|
5732
|
-
value: value,
|
|
5733
|
-
enumerable: true,
|
|
5734
|
-
configurable: true,
|
|
5735
|
-
writable: true
|
|
5736
|
-
});
|
|
5737
|
-
} else {
|
|
5738
|
-
obj[key] = value;
|
|
5739
|
-
}
|
|
5740
|
-
|
|
5741
|
-
return obj;
|
|
5742
|
-
}
|
|
5743
|
-
|
|
5744
|
-
function ownKeys(object, enumerableOnly) {
|
|
5745
|
-
var keys = Object.keys(object);
|
|
5746
|
-
|
|
5747
|
-
if (Object.getOwnPropertySymbols) {
|
|
5748
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
5749
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
5750
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
5751
|
-
});
|
|
5752
|
-
keys.push.apply(keys, symbols);
|
|
5753
|
-
}
|
|
5754
|
-
|
|
5755
|
-
return keys;
|
|
5756
|
-
}
|
|
5757
|
-
|
|
5758
|
-
function _objectSpread2(target) {
|
|
5759
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
5760
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
5761
|
-
|
|
5762
|
-
if (i % 2) {
|
|
5763
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
5764
|
-
_defineProperty(target, key, source[key]);
|
|
5765
|
-
});
|
|
5766
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
5767
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5768
|
-
} else {
|
|
5769
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
5770
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5771
|
-
});
|
|
5772
|
-
}
|
|
5773
|
-
}
|
|
5774
|
-
|
|
5775
|
-
return target;
|
|
5776
|
-
}
|
|
5777
|
-
|
|
5778
5866
|
var checkLogin = /*#__PURE__*/function () {
|
|
5779
5867
|
var _ref2 = _asyncToGenerator$1(function* (options) {
|
|
5780
5868
|
return (yield http.get("api/auth/login", options)).data;
|
|
@@ -5785,30 +5873,6 @@ var checkLogin = /*#__PURE__*/function () {
|
|
|
5785
5873
|
};
|
|
5786
5874
|
}();
|
|
5787
5875
|
|
|
5788
|
-
var bootstrap = /*#__PURE__*/function () {
|
|
5789
|
-
var _ref3 = _asyncToGenerator$1(function* (params, options) {
|
|
5790
|
-
return (yield http.get("api/auth/bootstrap", _objectSpread2(_objectSpread2({}, options), {}, {
|
|
5791
|
-
params
|
|
5792
|
-
}))).data;
|
|
5793
|
-
});
|
|
5794
|
-
|
|
5795
|
-
return function bootstrap(_x4, _x5) {
|
|
5796
|
-
return _ref3.apply(this, arguments);
|
|
5797
|
-
};
|
|
5798
|
-
}();
|
|
5799
|
-
|
|
5800
|
-
var getAppStoryboard = /*#__PURE__*/function () {
|
|
5801
|
-
var _ref4 = _asyncToGenerator$1(function* (appId, params, options) {
|
|
5802
|
-
return (yield http.get("api/auth/bootstrap/".concat(appId), _objectSpread2(_objectSpread2({}, options), {}, {
|
|
5803
|
-
params
|
|
5804
|
-
}))).data;
|
|
5805
|
-
});
|
|
5806
|
-
|
|
5807
|
-
return function getAppStoryboard(_x6, _x7, _x8) {
|
|
5808
|
-
return _ref4.apply(this, arguments);
|
|
5809
|
-
};
|
|
5810
|
-
}();
|
|
5811
|
-
|
|
5812
5876
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5813
5877
|
try {
|
|
5814
5878
|
var info = gen[key](arg);
|
|
@@ -5863,52 +5927,6 @@ var UserAdminApi_searchAllUsersInfo = /*#__PURE__*/function () {
|
|
|
5863
5927
|
};
|
|
5864
5928
|
}();
|
|
5865
5929
|
|
|
5866
|
-
var auth = {};
|
|
5867
|
-
/** @internal */
|
|
5868
|
-
|
|
5869
|
-
function authenticate(newAuth) {
|
|
5870
|
-
Object.assign(auth, {
|
|
5871
|
-
org: newAuth.org,
|
|
5872
|
-
username: newAuth.username,
|
|
5873
|
-
userInstanceId: newAuth.userInstanceId,
|
|
5874
|
-
loginFrom: newAuth.loginFrom,
|
|
5875
|
-
accessRule: newAuth.accessRule
|
|
5876
|
-
}); // re-init analytics to set user_id
|
|
5877
|
-
|
|
5878
|
-
if (userAnalytics.initialized) {
|
|
5879
|
-
userAnalytics.setUserId(newAuth.userInstanceId);
|
|
5880
|
-
}
|
|
5881
|
-
}
|
|
5882
|
-
/**
|
|
5883
|
-
* 获取当前登录认证信息。
|
|
5884
|
-
*
|
|
5885
|
-
* @returns 当前登录认证信息。
|
|
5886
|
-
*/
|
|
5887
|
-
|
|
5888
|
-
function getAuth() {
|
|
5889
|
-
return _objectSpread({}, auth);
|
|
5890
|
-
}
|
|
5891
|
-
/** @internal */
|
|
5892
|
-
|
|
5893
|
-
function logout() {
|
|
5894
|
-
auth.org = undefined;
|
|
5895
|
-
auth.username = undefined;
|
|
5896
|
-
auth.userInstanceId = undefined;
|
|
5897
|
-
auth.accessRule = undefined;
|
|
5898
|
-
resetPermissionPreChecks(); // re-init analytics to clear user_id
|
|
5899
|
-
|
|
5900
|
-
userAnalytics.setUserId();
|
|
5901
|
-
}
|
|
5902
|
-
/**
|
|
5903
|
-
* 查看当前是否已登录。
|
|
5904
|
-
*
|
|
5905
|
-
* @returns 当前是否已登录。
|
|
5906
|
-
*/
|
|
5907
|
-
|
|
5908
|
-
function isLoggedIn() {
|
|
5909
|
-
return auth.username !== undefined;
|
|
5910
|
-
}
|
|
5911
|
-
|
|
5912
5930
|
/**
|
|
5913
5931
|
* Merge `app.defaultConfig` and `app.userConfig` to `app.config`.
|
|
5914
5932
|
*
|
|
@@ -6068,57 +6086,57 @@ function _standaloneBootstrap() {
|
|
|
6068
6086
|
|
|
6069
6087
|
class Kernel {
|
|
6070
6088
|
constructor() {
|
|
6071
|
-
_defineProperty$
|
|
6089
|
+
_defineProperty$1(this, "mountPoints", void 0);
|
|
6072
6090
|
|
|
6073
|
-
_defineProperty$
|
|
6091
|
+
_defineProperty$1(this, "bootstrapData", void 0);
|
|
6074
6092
|
|
|
6075
|
-
_defineProperty$
|
|
6093
|
+
_defineProperty$1(this, "presetBricks", void 0);
|
|
6076
6094
|
|
|
6077
|
-
_defineProperty$
|
|
6095
|
+
_defineProperty$1(this, "menuBar", void 0);
|
|
6078
6096
|
|
|
6079
|
-
_defineProperty$
|
|
6097
|
+
_defineProperty$1(this, "appBar", void 0);
|
|
6080
6098
|
|
|
6081
|
-
_defineProperty$
|
|
6099
|
+
_defineProperty$1(this, "loadingBar", void 0);
|
|
6082
6100
|
|
|
6083
|
-
_defineProperty$
|
|
6101
|
+
_defineProperty$1(this, "navBar", void 0);
|
|
6084
6102
|
|
|
6085
|
-
_defineProperty$
|
|
6103
|
+
_defineProperty$1(this, "sideBar", void 0);
|
|
6086
6104
|
|
|
6087
|
-
_defineProperty$
|
|
6105
|
+
_defineProperty$1(this, "footer", void 0);
|
|
6088
6106
|
|
|
6089
|
-
_defineProperty$
|
|
6107
|
+
_defineProperty$1(this, "breadcrumb", void 0);
|
|
6090
6108
|
|
|
6091
|
-
_defineProperty$
|
|
6109
|
+
_defineProperty$1(this, "router", void 0);
|
|
6092
6110
|
|
|
6093
|
-
_defineProperty$
|
|
6111
|
+
_defineProperty$1(this, "currentApp", void 0);
|
|
6094
6112
|
|
|
6095
|
-
_defineProperty$
|
|
6113
|
+
_defineProperty$1(this, "previousApp", void 0);
|
|
6096
6114
|
|
|
6097
|
-
_defineProperty$
|
|
6115
|
+
_defineProperty$1(this, "nextApp", void 0);
|
|
6098
6116
|
|
|
6099
|
-
_defineProperty$
|
|
6117
|
+
_defineProperty$1(this, "currentUrl", void 0);
|
|
6100
6118
|
|
|
6101
|
-
_defineProperty$
|
|
6119
|
+
_defineProperty$1(this, "currentRoute", void 0);
|
|
6102
6120
|
|
|
6103
|
-
_defineProperty$
|
|
6121
|
+
_defineProperty$1(this, "workspaceStack", []);
|
|
6104
6122
|
|
|
6105
|
-
_defineProperty$
|
|
6123
|
+
_defineProperty$1(this, "currentLayout", void 0);
|
|
6106
6124
|
|
|
6107
|
-
_defineProperty$
|
|
6125
|
+
_defineProperty$1(this, "enableUiV8", false);
|
|
6108
6126
|
|
|
6109
|
-
_defineProperty$
|
|
6127
|
+
_defineProperty$1(this, "allUserMapPromise", Promise.resolve(new Map()));
|
|
6110
6128
|
|
|
6111
|
-
_defineProperty$
|
|
6129
|
+
_defineProperty$1(this, "allMagicBrickConfigMapPromise", Promise.resolve(new Map()));
|
|
6112
6130
|
|
|
6113
|
-
_defineProperty$
|
|
6131
|
+
_defineProperty$1(this, "allRelatedAppsPromise", Promise.resolve([]));
|
|
6114
6132
|
|
|
6115
|
-
_defineProperty$
|
|
6133
|
+
_defineProperty$1(this, "allMicroAppApiOrchestrationPromise", Promise.resolve(new Map()));
|
|
6116
6134
|
|
|
6117
|
-
_defineProperty$
|
|
6135
|
+
_defineProperty$1(this, "providerRepository", new Map());
|
|
6118
6136
|
|
|
6119
|
-
_defineProperty$
|
|
6137
|
+
_defineProperty$1(this, "loadUsersStarted", false);
|
|
6120
6138
|
|
|
6121
|
-
_defineProperty$
|
|
6139
|
+
_defineProperty$1(this, "loadMagicBrickConfigStarted", false);
|
|
6122
6140
|
}
|
|
6123
6141
|
|
|
6124
6142
|
bootstrap(mountPoints) {
|
|
@@ -6234,17 +6252,12 @@ class Kernel {
|
|
|
6234
6252
|
var _this3 = this;
|
|
6235
6253
|
|
|
6236
6254
|
return _asyncToGenerator$4(function* () {
|
|
6237
|
-
|
|
6238
|
-
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : localStorage.getItem("__$$use-bootstrap-v2-provider$$__") ? BootstrapV2Api_bootstrapV2(_objectSpread({
|
|
6255
|
+
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2(_objectSpread({
|
|
6239
6256
|
appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status",
|
|
6240
6257
|
ignoreTemplateFields: "templates",
|
|
6241
6258
|
ignoreBrickFields: "bricks,processors,providers,editors"
|
|
6242
6259
|
}, params), {
|
|
6243
6260
|
interceptorParams
|
|
6244
|
-
}) : bootstrap(_objectSpread({
|
|
6245
|
-
brief: true
|
|
6246
|
-
}, params), {
|
|
6247
|
-
interceptorParams
|
|
6248
6261
|
});
|
|
6249
6262
|
|
|
6250
6263
|
var bootstrapResponse = _objectSpread({
|
|
@@ -6291,12 +6304,11 @@ class Kernel {
|
|
|
6291
6304
|
$$fulfilled: true
|
|
6292
6305
|
});
|
|
6293
6306
|
} else {
|
|
6294
|
-
/* istanbul ignore next */
|
|
6295
6307
|
var {
|
|
6296
6308
|
routes,
|
|
6297
6309
|
meta,
|
|
6298
6310
|
app
|
|
6299
|
-
} = yield
|
|
6311
|
+
} = yield BootstrapV2Api_getAppStoryboardV2(storyboard.app.id, {});
|
|
6300
6312
|
Object.assign(storyboard, {
|
|
6301
6313
|
routes,
|
|
6302
6314
|
meta,
|
|
@@ -6309,7 +6321,7 @@ class Kernel {
|
|
|
6309
6321
|
|
|
6310
6322
|
if ((_storyboard$meta = storyboard.meta) !== null && _storyboard$meta !== void 0 && _storyboard$meta.i18n) {
|
|
6311
6323
|
// Prefix to avoid conflict between brick package's i18n namespace.
|
|
6312
|
-
var i18nNamespace = "
|
|
6324
|
+
var i18nNamespace = getI18nNamespace("app", storyboard.app.id); // Support any language in `meta.i18n`.
|
|
6313
6325
|
|
|
6314
6326
|
Object.entries(storyboard.meta.i18n).forEach(_ref => {
|
|
6315
6327
|
var [lang, resources] = _ref;
|
|
@@ -7771,11 +7783,11 @@ function registerCustomTemplate(tplName, tplConstructor, appId) {
|
|
|
7771
7783
|
|
|
7772
7784
|
class CustomTemplateContext {
|
|
7773
7785
|
constructor() {
|
|
7774
|
-
_defineProperty$
|
|
7786
|
+
_defineProperty$1(this, "contextMap", new Map());
|
|
7775
7787
|
|
|
7776
|
-
_defineProperty$
|
|
7788
|
+
_defineProperty$1(this, "brickMap", new Map());
|
|
7777
7789
|
|
|
7778
|
-
_defineProperty$
|
|
7790
|
+
_defineProperty$1(this, "propsMap", new Map());
|
|
7779
7791
|
}
|
|
7780
7792
|
|
|
7781
7793
|
createContext() {
|
|
@@ -7831,35 +7843,35 @@ function listenOnTrackingContext(brick, trackingContextList, context) {
|
|
|
7831
7843
|
|
|
7832
7844
|
class LocationContext {
|
|
7833
7845
|
constructor(kernel, location) {
|
|
7834
|
-
_defineProperty$
|
|
7846
|
+
_defineProperty$1(this, "query", void 0);
|
|
7835
7847
|
|
|
7836
|
-
_defineProperty$
|
|
7848
|
+
_defineProperty$1(this, "resolver", void 0);
|
|
7837
7849
|
|
|
7838
|
-
_defineProperty$
|
|
7850
|
+
_defineProperty$1(this, "messageDispatcher", void 0);
|
|
7839
7851
|
|
|
7840
|
-
_defineProperty$
|
|
7852
|
+
_defineProperty$1(this, "beforePageLoadHandlers", []);
|
|
7841
7853
|
|
|
7842
|
-
_defineProperty$
|
|
7854
|
+
_defineProperty$1(this, "pageLoadHandlers", []);
|
|
7843
7855
|
|
|
7844
|
-
_defineProperty$
|
|
7856
|
+
_defineProperty$1(this, "beforePageLeaveHandlers", []);
|
|
7845
7857
|
|
|
7846
|
-
_defineProperty$
|
|
7858
|
+
_defineProperty$1(this, "pageLeaveHandlers", []);
|
|
7847
7859
|
|
|
7848
|
-
_defineProperty$
|
|
7860
|
+
_defineProperty$1(this, "anchorLoadHandlers", []);
|
|
7849
7861
|
|
|
7850
|
-
_defineProperty$
|
|
7862
|
+
_defineProperty$1(this, "anchorUnloadHandlers", []);
|
|
7851
7863
|
|
|
7852
|
-
_defineProperty$
|
|
7864
|
+
_defineProperty$1(this, "messageCloseHandlers", []);
|
|
7853
7865
|
|
|
7854
|
-
_defineProperty$
|
|
7866
|
+
_defineProperty$1(this, "messageHandlers", []);
|
|
7855
7867
|
|
|
7856
|
-
_defineProperty$
|
|
7868
|
+
_defineProperty$1(this, "segues", {});
|
|
7857
7869
|
|
|
7858
|
-
_defineProperty$
|
|
7870
|
+
_defineProperty$1(this, "currentMatch", void 0);
|
|
7859
7871
|
|
|
7860
|
-
_defineProperty$
|
|
7872
|
+
_defineProperty$1(this, "storyboardContext", new Map());
|
|
7861
7873
|
|
|
7862
|
-
_defineProperty$
|
|
7874
|
+
_defineProperty$1(this, "tplContext", new CustomTemplateContext());
|
|
7863
7875
|
|
|
7864
7876
|
this.kernel = kernel;
|
|
7865
7877
|
this.location = location;
|
|
@@ -7884,7 +7896,8 @@ class LocationContext {
|
|
|
7884
7896
|
username: auth.username,
|
|
7885
7897
|
userInstanceId: auth.userInstanceId,
|
|
7886
7898
|
loginFrom: auth.loginFrom,
|
|
7887
|
-
accessRule: auth.accessRule
|
|
7899
|
+
accessRule: auth.accessRule,
|
|
7900
|
+
isAdmin: auth.isAdmin
|
|
7888
7901
|
}, getRuntimeMisc()),
|
|
7889
7902
|
flags: this.kernel.getFeatureFlags(),
|
|
7890
7903
|
segues: this.segues,
|
|
@@ -8294,7 +8307,7 @@ class LocationContext {
|
|
|
8294
8307
|
|
|
8295
8308
|
preCheckPermissions(container, context) {
|
|
8296
8309
|
return _asyncToGenerator$4(function* () {
|
|
8297
|
-
if (isLoggedIn() && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
|
|
8310
|
+
if (isLoggedIn() && !getAuth().isAdmin && container.permissionsPreCheck && Array.isArray(container.permissionsPreCheck)) {
|
|
8298
8311
|
var usedActions = computeRealValue(container.permissionsPreCheck, context, true);
|
|
8299
8312
|
yield validatePermissions(usedActions);
|
|
8300
8313
|
}
|
|
@@ -8811,13 +8824,13 @@ function makeProviderRefreshable(providerBrick) {
|
|
|
8811
8824
|
|
|
8812
8825
|
class Resolver {
|
|
8813
8826
|
constructor(kernel) {
|
|
8814
|
-
_defineProperty$
|
|
8827
|
+
_defineProperty$1(this, "cache", new Map());
|
|
8815
8828
|
|
|
8816
|
-
_defineProperty$
|
|
8829
|
+
_defineProperty$1(this, "refreshQueue", new Map());
|
|
8817
8830
|
|
|
8818
|
-
_defineProperty$
|
|
8831
|
+
_defineProperty$1(this, "definedResolves", new Map());
|
|
8819
8832
|
|
|
8820
|
-
_defineProperty$
|
|
8833
|
+
_defineProperty$1(this, "active", true);
|
|
8821
8834
|
|
|
8822
8835
|
this.kernel = kernel;
|
|
8823
8836
|
}
|
|
@@ -8959,12 +8972,13 @@ class Resolver {
|
|
|
8959
8972
|
} else {
|
|
8960
8973
|
var actualArgs = args ? ref ? args // `args` are already computed for `defineResolves`
|
|
8961
8974
|
: context ? computeRealValue(args, context, true) : args : providerBrick.args || [];
|
|
8975
|
+
promise = _asyncToGenerator$4(function* () {
|
|
8976
|
+
if (useProvider) {
|
|
8977
|
+
actualArgs = yield getArgsOfCustomApi(useProvider, actualArgs);
|
|
8978
|
+
}
|
|
8962
8979
|
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
}
|
|
8966
|
-
|
|
8967
|
-
promise = providerBrick[method](...actualArgs);
|
|
8980
|
+
return providerBrick[method](...actualArgs);
|
|
8981
|
+
})();
|
|
8968
8982
|
|
|
8969
8983
|
_this2.cache.set(cacheKey, promise);
|
|
8970
8984
|
}
|
|
@@ -9032,7 +9046,7 @@ class Resolver {
|
|
|
9032
9046
|
|
|
9033
9047
|
var _loop = function (providerBrick, interval) {
|
|
9034
9048
|
var request = /*#__PURE__*/function () {
|
|
9035
|
-
var
|
|
9049
|
+
var _ref2 = _asyncToGenerator$4(function* () {
|
|
9036
9050
|
yield providerBrick.$refresh({
|
|
9037
9051
|
ignoreErrors: interval.ignoreErrors,
|
|
9038
9052
|
throwErrors: true,
|
|
@@ -9046,7 +9060,7 @@ class Resolver {
|
|
|
9046
9060
|
});
|
|
9047
9061
|
|
|
9048
9062
|
return function request() {
|
|
9049
|
-
return
|
|
9063
|
+
return _ref2.apply(this, arguments);
|
|
9050
9064
|
};
|
|
9051
9065
|
}();
|
|
9052
9066
|
|
|
@@ -9073,7 +9087,7 @@ class ResolveRequestError extends Error {
|
|
|
9073
9087
|
// Pass remaining arguments (including vendor specific ones) to parent constructor
|
|
9074
9088
|
super(rawError.message);
|
|
9075
9089
|
|
|
9076
|
-
_defineProperty$
|
|
9090
|
+
_defineProperty$1(this, "rawError", void 0);
|
|
9077
9091
|
|
|
9078
9092
|
this.name = "ResolveRequestError"; // Maintains proper stack trace for where our error was thrown (only available on V8)
|
|
9079
9093
|
// istanbul ignore else
|
|
@@ -9093,21 +9107,21 @@ function shouldBeDefaultCollapsed(defaultCollapsed, defaultCollapsedBreakpoint)
|
|
|
9093
9107
|
|
|
9094
9108
|
class Router {
|
|
9095
9109
|
constructor(kernel) {
|
|
9096
|
-
_defineProperty$
|
|
9110
|
+
_defineProperty$1(this, "defaultCollapsed", false);
|
|
9097
9111
|
|
|
9098
|
-
_defineProperty$
|
|
9112
|
+
_defineProperty$1(this, "locationContext", void 0);
|
|
9099
9113
|
|
|
9100
|
-
_defineProperty$
|
|
9114
|
+
_defineProperty$1(this, "rendering", false);
|
|
9101
9115
|
|
|
9102
|
-
_defineProperty$
|
|
9116
|
+
_defineProperty$1(this, "nextLocation", void 0);
|
|
9103
9117
|
|
|
9104
|
-
_defineProperty$
|
|
9118
|
+
_defineProperty$1(this, "prevLocation", void 0);
|
|
9105
9119
|
|
|
9106
|
-
_defineProperty$
|
|
9120
|
+
_defineProperty$1(this, "state", "initial");
|
|
9107
9121
|
|
|
9108
|
-
_defineProperty$
|
|
9122
|
+
_defineProperty$1(this, "renderId", void 0);
|
|
9109
9123
|
|
|
9110
|
-
_defineProperty$
|
|
9124
|
+
_defineProperty$1(this, "featureFlags", void 0);
|
|
9111
9125
|
|
|
9112
9126
|
this.kernel = kernel;
|
|
9113
9127
|
this.featureFlags = this.kernel.getFeatureFlags();
|
|
@@ -9277,7 +9291,7 @@ class Router {
|
|
|
9277
9291
|
|
|
9278
9292
|
restoreDynamicTemplates(storyboard); // 预加载权限信息
|
|
9279
9293
|
|
|
9280
|
-
if (isLoggedIn()) {
|
|
9294
|
+
if (isLoggedIn() && !getAuth().isAdmin) {
|
|
9281
9295
|
yield preCheckPermissions(storyboard);
|
|
9282
9296
|
} // 如果找到匹配的 storyboard,那么根据路由匹配得到的 sub-storyboard 加载它的依赖库。
|
|
9283
9297
|
|
|
@@ -9288,7 +9302,7 @@ class Router {
|
|
|
9288
9302
|
|
|
9289
9303
|
_this3.kernel.registerCustomTemplatesInStoryboard(storyboard);
|
|
9290
9304
|
|
|
9291
|
-
registerStoryboardFunctions((_storyboard$meta = storyboard.meta) === null || _storyboard$meta === void 0 ? void 0 : _storyboard$meta.functions);
|
|
9305
|
+
registerStoryboardFunctions((_storyboard$meta = storyboard.meta) === null || _storyboard$meta === void 0 ? void 0 : _storyboard$meta.functions, storyboard.app);
|
|
9292
9306
|
}
|
|
9293
9307
|
|
|
9294
9308
|
var {
|
|
@@ -9614,33 +9628,6 @@ function getRuntime() {
|
|
|
9614
9628
|
return runtime;
|
|
9615
9629
|
}
|
|
9616
9630
|
|
|
9617
|
-
var locale$7 = {
|
|
9618
|
-
[K.REQUEST_FAILED]: "Request Failed",
|
|
9619
|
-
[K.MODAL_OK]: "Ok",
|
|
9620
|
-
[K.MODAL_CANCEL]: "Cancel",
|
|
9621
|
-
[K.SOMETHING_WENT_WRONG]: "Something went wrong!",
|
|
9622
|
-
[K.LOGIN_TIMEOUT_MESSAGE]: "You haven't logged in or your login session has expired. Login right now?",
|
|
9623
|
-
[K.NETWORK_ERROR]: "Network error, please check your network."
|
|
9624
|
-
};
|
|
9625
|
-
var en = locale$7;
|
|
9626
|
-
|
|
9627
|
-
var locale$6 = {
|
|
9628
|
-
[K.REQUEST_FAILED]: "请求失败",
|
|
9629
|
-
[K.MODAL_OK]: "确认",
|
|
9630
|
-
[K.MODAL_CANCEL]: "取消",
|
|
9631
|
-
[K.SOMETHING_WENT_WRONG]: "出现了一些问题!",
|
|
9632
|
-
[K.LOGIN_TIMEOUT_MESSAGE]: "您还未登录或登录信息已过期,现在重新登录?",
|
|
9633
|
-
[K.NETWORK_ERROR]: "网络错误,请检查您的网络连接。"
|
|
9634
|
-
};
|
|
9635
|
-
var zh = locale$6;
|
|
9636
|
-
|
|
9637
|
-
/** @internal */
|
|
9638
|
-
|
|
9639
|
-
var initI18n = () => {
|
|
9640
|
-
i18next.addResourceBundle("en", NS_BRICK_KIT, en);
|
|
9641
|
-
i18next.addResourceBundle("zh", NS_BRICK_KIT, zh);
|
|
9642
|
-
};
|
|
9643
|
-
|
|
9644
9631
|
// Ref https://reactjs.org/docs/error-boundaries.html
|
|
9645
9632
|
class LegacyErrorBoundary extends React__default.Component {
|
|
9646
9633
|
constructor(props) {
|
|
@@ -10467,7 +10454,7 @@ var locale$4 = {
|
|
|
10467
10454
|
var TimePicker$1 = locale$4;
|
|
10468
10455
|
|
|
10469
10456
|
var locale$3 = {
|
|
10470
|
-
lang: _extends$
|
|
10457
|
+
lang: _extends$1({
|
|
10471
10458
|
placeholder: '请选择日期',
|
|
10472
10459
|
yearPlaceholder: '请选择年份',
|
|
10473
10460
|
quarterPlaceholder: '请选择季度',
|
|
@@ -10478,7 +10465,7 @@ var locale$3 = {
|
|
|
10478
10465
|
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
|
10479
10466
|
rangeWeekPlaceholder: ['开始周', '结束周']
|
|
10480
10467
|
}, locale$5),
|
|
10481
|
-
timePickerLocale: _extends$
|
|
10468
|
+
timePickerLocale: _extends$1({}, TimePicker$1)
|
|
10482
10469
|
}; // should add whitespace between char in Button
|
|
10483
10470
|
|
|
10484
10471
|
locale$3.lang.ok = '确 定'; // All settings at:
|
|
@@ -10664,7 +10651,7 @@ var locale$1 = {
|
|
|
10664
10651
|
var TimePicker = locale$1;
|
|
10665
10652
|
|
|
10666
10653
|
var locale = {
|
|
10667
|
-
lang: _extends$
|
|
10654
|
+
lang: _extends$1({
|
|
10668
10655
|
placeholder: 'Select date',
|
|
10669
10656
|
yearPlaceholder: 'Select year',
|
|
10670
10657
|
quarterPlaceholder: 'Select quarter',
|
|
@@ -10675,7 +10662,7 @@ var locale = {
|
|
|
10675
10662
|
rangeMonthPlaceholder: ['Start month', 'End month'],
|
|
10676
10663
|
rangeWeekPlaceholder: ['Start week', 'End week']
|
|
10677
10664
|
}, locale$2),
|
|
10678
|
-
timePickerLocale: _extends$
|
|
10665
|
+
timePickerLocale: _extends$1({}, TimePicker)
|
|
10679
10666
|
}; // All settings at:
|
|
10680
10667
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
10681
10668
|
|
|
@@ -10808,92 +10795,153 @@ var localeValues = {
|
|
|
10808
10795
|
};
|
|
10809
10796
|
var defaultLocale = localeValues;
|
|
10810
10797
|
|
|
10811
|
-
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); }
|
|
10812
|
-
|
|
10813
|
-
var _ref$1 = /*#__PURE__*/React.createElement("g", {
|
|
10814
|
-
fill: "none"
|
|
10815
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
10816
|
-
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",
|
|
10817
|
-
fill: "#C4C4C4"
|
|
10818
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10819
|
-
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",
|
|
10820
|
-
fill: "#F7F7F7"
|
|
10821
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10822
|
-
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",
|
|
10823
|
-
fill: "#E5E5E5"
|
|
10824
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10825
|
-
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",
|
|
10826
|
-
fill: "#CDCDCD"
|
|
10827
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10828
|
-
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",
|
|
10829
|
-
fill: "#E5E5E5"
|
|
10830
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10831
|
-
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",
|
|
10832
|
-
fill: "#F5F5F5"
|
|
10833
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10834
|
-
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",
|
|
10835
|
-
fill: "#E5E5E5"
|
|
10836
|
-
}));
|
|
10837
|
-
|
|
10838
|
-
function SvgEmptyGreyImage(props) {
|
|
10839
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
10840
|
-
width: 86,
|
|
10841
|
-
height: 80,
|
|
10842
|
-
viewBox: "0 0 86 80",
|
|
10843
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10844
|
-
}, props), _ref$1);
|
|
10845
|
-
}
|
|
10846
|
-
|
|
10847
10798
|
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); }
|
|
10848
10799
|
|
|
10849
|
-
var _ref = /*#__PURE__*/React.createElement("
|
|
10850
|
-
|
|
10800
|
+
var _ref = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
10801
|
+
x1: "5.718%",
|
|
10802
|
+
y1: "4.311%",
|
|
10803
|
+
x2: "83.05%",
|
|
10804
|
+
y2: "88.915%",
|
|
10805
|
+
id: "empty-image_svg__a"
|
|
10806
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10807
|
+
stopColor: "#D4D8E4",
|
|
10808
|
+
offset: "0%"
|
|
10809
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10810
|
+
stopColor: "#A9B0C4",
|
|
10811
|
+
offset: "100%"
|
|
10812
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
10813
|
+
x1: "0%",
|
|
10814
|
+
y1: "11.08%",
|
|
10815
|
+
x2: "80.548%",
|
|
10816
|
+
y2: "107.704%",
|
|
10817
|
+
id: "empty-image_svg__d"
|
|
10818
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10819
|
+
stopColor: "#C2C7DA",
|
|
10820
|
+
offset: "0%"
|
|
10821
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10822
|
+
stopColor: "#8F96B3",
|
|
10823
|
+
offset: "100%"
|
|
10824
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10825
|
+
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",
|
|
10826
|
+
id: "empty-image_svg__c"
|
|
10827
|
+
}), /*#__PURE__*/React.createElement("filter", {
|
|
10828
|
+
x: "-37.5%",
|
|
10829
|
+
y: "-31.3%",
|
|
10830
|
+
width: "187.5%",
|
|
10831
|
+
height: "187.5%",
|
|
10832
|
+
filterUnits: "objectBoundingBox",
|
|
10833
|
+
id: "empty-image_svg__b"
|
|
10834
|
+
}, /*#__PURE__*/React.createElement("feOffset", {
|
|
10835
|
+
dx: 1,
|
|
10836
|
+
dy: 2,
|
|
10837
|
+
in: "SourceAlpha",
|
|
10838
|
+
result: "shadowOffsetOuter1"
|
|
10839
|
+
}), /*#__PURE__*/React.createElement("feGaussianBlur", {
|
|
10840
|
+
stdDeviation: 2,
|
|
10841
|
+
in: "shadowOffsetOuter1",
|
|
10842
|
+
result: "shadowBlurOuter1"
|
|
10843
|
+
}), /*#__PURE__*/React.createElement("feComposite", {
|
|
10844
|
+
in: "shadowBlurOuter1",
|
|
10845
|
+
in2: "SourceAlpha",
|
|
10846
|
+
operator: "out",
|
|
10847
|
+
result: "shadowBlurOuter1"
|
|
10848
|
+
}), /*#__PURE__*/React.createElement("feColorMatrix", {
|
|
10849
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
|
|
10850
|
+
in: "shadowBlurOuter1"
|
|
10851
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
10852
|
+
x1: "41.823%",
|
|
10853
|
+
y1: "24.795%",
|
|
10854
|
+
x2: "8.813%",
|
|
10855
|
+
y2: "86.427%",
|
|
10856
|
+
id: "empty-image_svg__g"
|
|
10857
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
10858
|
+
stopColor: "#CCD0DD",
|
|
10859
|
+
offset: "0%"
|
|
10860
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
10861
|
+
stopColor: "#9DA3B9",
|
|
10862
|
+
offset: "100%"
|
|
10863
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10864
|
+
d: "M59 19a4 4 0 0 1 4 4v7.314L51.686 19H59z",
|
|
10865
|
+
id: "empty-image_svg__f"
|
|
10866
|
+
}), /*#__PURE__*/React.createElement("filter", {
|
|
10867
|
+
x: "-61.9%",
|
|
10868
|
+
y: "-79.5%",
|
|
10869
|
+
width: "223.7%",
|
|
10870
|
+
height: "223.7%",
|
|
10871
|
+
filterUnits: "objectBoundingBox",
|
|
10872
|
+
id: "empty-image_svg__e"
|
|
10873
|
+
}, /*#__PURE__*/React.createElement("feOffset", {
|
|
10874
|
+
dy: -2,
|
|
10875
|
+
in: "SourceAlpha",
|
|
10876
|
+
result: "shadowOffsetOuter1"
|
|
10877
|
+
}), /*#__PURE__*/React.createElement("feGaussianBlur", {
|
|
10878
|
+
stdDeviation: 2,
|
|
10879
|
+
in: "shadowOffsetOuter1",
|
|
10880
|
+
result: "shadowBlurOuter1"
|
|
10881
|
+
}), /*#__PURE__*/React.createElement("feColorMatrix", {
|
|
10882
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
|
|
10883
|
+
in: "shadowBlurOuter1"
|
|
10884
|
+
})));
|
|
10885
|
+
|
|
10886
|
+
var _ref2 = /*#__PURE__*/React.createElement("g", {
|
|
10887
|
+
fill: "none",
|
|
10888
|
+
fillRule: "evenodd"
|
|
10851
10889
|
}, /*#__PURE__*/React.createElement("path", {
|
|
10852
|
-
d: "
|
|
10853
|
-
|
|
10854
|
-
fill: "#FDFDFD"
|
|
10855
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10856
|
-
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",
|
|
10857
|
-
stroke: "#EEE",
|
|
10858
|
-
fill: "#F7F7F7"
|
|
10859
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
10860
|
-
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",
|
|
10861
|
-
fill: "#E5E5E5"
|
|
10890
|
+
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",
|
|
10891
|
+
fill: "#A6AAC3"
|
|
10862
10892
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10863
|
-
d: "
|
|
10864
|
-
fill: "#
|
|
10893
|
+
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",
|
|
10894
|
+
fill: "url(#empty-image_svg__a)"
|
|
10895
|
+
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("use", {
|
|
10896
|
+
fill: "#000",
|
|
10897
|
+
filter: "url(#empty-image_svg__b)",
|
|
10898
|
+
xlinkHref: "#empty-image_svg__c"
|
|
10865
10899
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10866
|
-
|
|
10867
|
-
|
|
10900
|
+
stroke: "#FFF",
|
|
10901
|
+
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",
|
|
10902
|
+
strokeLinejoin: "square",
|
|
10903
|
+
fill: "url(#empty-image_svg__d)"
|
|
10904
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
10905
|
+
transform: "rotate(180 57.343 24.657)"
|
|
10906
|
+
}, /*#__PURE__*/React.createElement("use", {
|
|
10907
|
+
fill: "#000",
|
|
10908
|
+
filter: "url(#empty-image_svg__e)",
|
|
10909
|
+
xlinkHref: "#empty-image_svg__f"
|
|
10910
|
+
}), /*#__PURE__*/React.createElement("use", {
|
|
10911
|
+
fill: "url(#empty-image_svg__g)",
|
|
10912
|
+
xlinkHref: "#empty-image_svg__f"
|
|
10913
|
+
})), /*#__PURE__*/React.createElement("path", {
|
|
10914
|
+
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",
|
|
10915
|
+
fill: "#D6D8E4",
|
|
10916
|
+
opacity: 0.3
|
|
10868
10917
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10869
|
-
d: "
|
|
10870
|
-
|
|
10871
|
-
fill: "#F7F5F5"
|
|
10918
|
+
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",
|
|
10919
|
+
fill: "#D6D8E4"
|
|
10872
10920
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10873
10921
|
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",
|
|
10874
|
-
fill: "#
|
|
10922
|
+
fill: "#D6D8E4",
|
|
10923
|
+
opacity: 0.5
|
|
10875
10924
|
}), /*#__PURE__*/React.createElement("path", {
|
|
10876
10925
|
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",
|
|
10877
|
-
fill: "#
|
|
10926
|
+
fill: "#D6D8E4",
|
|
10927
|
+
opacity: 0.8
|
|
10878
10928
|
}));
|
|
10879
10929
|
|
|
10880
|
-
function
|
|
10930
|
+
function SvgEmptyImage(props) {
|
|
10881
10931
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10882
10932
|
width: 86,
|
|
10883
10933
|
height: 80,
|
|
10884
10934
|
viewBox: "0 0 86 80",
|
|
10885
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10886
|
-
|
|
10935
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10936
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
10937
|
+
}, props), _ref, _ref2);
|
|
10887
10938
|
}
|
|
10888
10939
|
|
|
10889
10940
|
/**
|
|
10890
10941
|
* 用于展示空数据的 React 组件。
|
|
10891
10942
|
*/
|
|
10892
10943
|
function EasyopsEmpty(props) {
|
|
10893
|
-
var
|
|
10894
|
-
|
|
10895
|
-
var background = (_props$background = props.background) !== null && _props$background !== void 0 ? _props$background : "white";
|
|
10896
|
-
var emptyImage = background === "white" ? SvgEmptyGreyImage : SvgEmptyLightGreyImage;
|
|
10944
|
+
var emptyImage = SvgEmptyImage;
|
|
10897
10945
|
var illustration = useMemo(() => props.illustration && getIllustration(props.illustration), [props.illustration]);
|
|
10898
10946
|
var image = props.illustration ? illustration : /*#__PURE__*/React__default.createElement(emptyImage);
|
|
10899
10947
|
return /*#__PURE__*/React__default.createElement(Empty, {
|
|
@@ -11102,7 +11150,7 @@ class UpdatingElement extends HTMLElement {
|
|
|
11102
11150
|
constructor() {
|
|
11103
11151
|
super(...arguments);
|
|
11104
11152
|
|
|
11105
|
-
_defineProperty$
|
|
11153
|
+
_defineProperty$1(this, "_hasRequestedRender", false);
|
|
11106
11154
|
}
|
|
11107
11155
|
|
|
11108
11156
|
/** @internal */
|
|
@@ -11313,13 +11361,13 @@ class UpdatingElement extends HTMLElement {
|
|
|
11313
11361
|
|
|
11314
11362
|
}
|
|
11315
11363
|
|
|
11316
|
-
_defineProperty$
|
|
11364
|
+
_defineProperty$1(UpdatingElement, "_observedAttributes", new Set());
|
|
11317
11365
|
|
|
11318
|
-
_defineProperty$
|
|
11366
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedProperties", new Set());
|
|
11319
11367
|
|
|
11320
|
-
_defineProperty$
|
|
11368
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedMethods", new Set());
|
|
11321
11369
|
|
|
11322
|
-
_defineProperty$
|
|
11370
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedEvents", new Set());
|
|
11323
11371
|
|
|
11324
11372
|
/**
|
|
11325
11373
|
* 模态框类构件的抽象基类。
|