@next-core/brick-kit 2.96.0 → 2.99.1
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 +46 -0
- package/dist/index.bundle.js +354 -35
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +375 -74
- package/dist/index.esm.js.map +1 -1
- package/dist/types/EasyopsEmpty/EasyopsEmpty.d.ts.map +1 -1
- package/dist/types/core/MockRegistry.d.ts +3 -4
- package/dist/types/core/MockRegistry.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/bindListeners.d.ts.map +1 -1
- package/dist/types/internal/evaluate.d.ts.map +1 -1
- package/dist/types/themeAndMode.d.ts +1 -0
- package/dist/types/themeAndMode.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/assets/big-empty-image.397ff6359f4066d8.png +0 -0
- package/dist/assets/empty-image.8e18d87fea570ef0.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,52 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.99.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.0...@next-core/brick-kit@2.99.1) (2021-12-31)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @next-core/brick-kit
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [2.99.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.98.0...@next-core/brick-kit@2.99.0) (2021-12-31)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* dark theme ([c6709a7](https://github.com/easyops-cn/next-core/commit/c6709a7a30a8860a6cb3e0245967c9bcfd5e78f5))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [2.98.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.97.0...@next-core/brick-kit@2.98.0) (2021-12-30)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* support dark-v2 ([0434b7e](https://github.com/easyops-cn/next-core/commit/0434b7e34c441c28ceb75ba753f46e3cd5ccc5c8))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [2.97.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.96.0...@next-core/brick-kit@2.97.0) (2021-12-29)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* fix accessing not-existed property of QUERY ([edcf0b1](https://github.com/easyops-cn/next-core/commit/edcf0b168e27f7b89ba2debde5a779c89500a0dd))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* **MockRegistry:** update mocks data ([10fed90](https://github.com/easyops-cn/next-core/commit/10fed9053e62af9cc52d994772343d629f45afac))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
6
52
|
# [2.96.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.95.1...@next-core/brick-kit@2.96.0) (2021-12-29)
|
|
7
53
|
|
|
8
54
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('history'), require('@babel/runtime/helpers/objectSpread2'), require('@babel/runtime/helpers/objectWithoutProperties'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/helpers/defineProperty'), require('react'), require('lodash'), require('@next-core/brick-utils'), require('@next-core/brick-http'), require('moment'), require('@next-core/pipes'), require('i18next'), require('@next-core/easyops-analytics'), require('js-yaml'), require('antd'), require('@ant-design/icons'), require('react-i18next'), require('@babel/runtime/helpers/esm/extends'), require('@next-core/illustrations'), require('@babel/runtime/helpers/decorate')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'history', '@babel/runtime/helpers/objectSpread2', '@babel/runtime/helpers/objectWithoutProperties', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/helpers/defineProperty', 'react', 'lodash', '@next-core/brick-utils', '@next-core/brick-http', 'moment', '@next-core/pipes', 'i18next', '@next-core/easyops-analytics', 'js-yaml', 'antd', '@ant-design/icons', 'react-i18next', '@babel/runtime/helpers/esm/extends', '@next-core/illustrations', '@babel/runtime/helpers/decorate'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$1, global.React, global.lodash, global.brickUtils, global.brickHttp, global.moment, global.pipes, global.i18next, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends, global.illustrations, global._decorate));
|
|
5
|
-
})(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, moment, pipes, i18next, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends, illustrations, _decorate) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$1, global.React, global.lodash, global.brickUtils, global.brickHttp, global.moment, global.pipes, global.i18next, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends$2, global.illustrations, global._decorate));
|
|
5
|
+
})(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, moment, pipes, i18next, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends$2, illustrations, _decorate) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
9
27
|
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
10
28
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
11
29
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator$4);
|
|
12
30
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$1);
|
|
13
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
14
33
|
var lodash__default = /*#__PURE__*/_interopDefaultLegacy(lodash);
|
|
15
34
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
16
35
|
var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
|
|
17
36
|
var yaml__default = /*#__PURE__*/_interopDefaultLegacy(yaml);
|
|
18
|
-
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
37
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends$2);
|
|
19
38
|
var _decorate__default = /*#__PURE__*/_interopDefaultLegacy(_decorate);
|
|
20
39
|
|
|
21
40
|
class BaseBar {
|
|
@@ -286,7 +305,7 @@
|
|
|
286
305
|
var DEFAULT_THEME = "light";
|
|
287
306
|
var theme = DEFAULT_THEME;
|
|
288
307
|
function setTheme(value) {
|
|
289
|
-
if (value !== "dark" && value !== "light") {
|
|
308
|
+
if (value !== "dark" && value !== "light" && value !== "dark-v2") {
|
|
290
309
|
throw new Error("Unsupported theme: ".concat(value));
|
|
291
310
|
}
|
|
292
311
|
|
|
@@ -1876,7 +1895,7 @@
|
|
|
1876
1895
|
case "QUERY":
|
|
1877
1896
|
return getDynamicReadOnlyProxy({
|
|
1878
1897
|
get(target, key) {
|
|
1879
|
-
return query.get(key);
|
|
1898
|
+
return query.has(key) ? query.get(key) : undefined;
|
|
1880
1899
|
},
|
|
1881
1900
|
|
|
1882
1901
|
ownKeys() {
|
|
@@ -1888,7 +1907,7 @@
|
|
|
1888
1907
|
case "QUERY_ARRAY":
|
|
1889
1908
|
return getDynamicReadOnlyProxy({
|
|
1890
1909
|
get(target, key) {
|
|
1891
|
-
return query.getAll(key);
|
|
1910
|
+
return query.has(key) ? query.getAll(key) : undefined;
|
|
1892
1911
|
},
|
|
1893
1912
|
|
|
1894
1913
|
ownKeys() {
|
|
@@ -1902,6 +1921,11 @@
|
|
|
1902
1921
|
getUrl: getUrlBySegueFactory(app, segues)
|
|
1903
1922
|
};
|
|
1904
1923
|
|
|
1924
|
+
case "THEME":
|
|
1925
|
+
return {
|
|
1926
|
+
getTheme
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1905
1929
|
case "SESSION_STORAGE":
|
|
1906
1930
|
return {
|
|
1907
1931
|
getItem: getItemFactory("session")
|
|
@@ -5302,6 +5326,9 @@
|
|
|
5302
5326
|
applyTheme(handler.action === "theme.setDarkTheme" ? "dark" : "light");
|
|
5303
5327
|
};
|
|
5304
5328
|
|
|
5329
|
+
case "theme.setTheme":
|
|
5330
|
+
return builtinThemeListenerFactory(handler.args, handler, context);
|
|
5331
|
+
|
|
5305
5332
|
case "mode.setDashboardMode":
|
|
5306
5333
|
case "mode.setDefaultMode":
|
|
5307
5334
|
return event => {
|
|
@@ -5595,6 +5622,19 @@
|
|
|
5595
5622
|
};
|
|
5596
5623
|
}
|
|
5597
5624
|
|
|
5625
|
+
function builtinThemeListenerFactory(args, ifContainer, context) {
|
|
5626
|
+
return function (event) {
|
|
5627
|
+
if (!looseCheckIf(ifContainer, _objectSpread__default["default"](_objectSpread__default["default"]({}, context), {}, {
|
|
5628
|
+
event
|
|
5629
|
+
}))) {
|
|
5630
|
+
return;
|
|
5631
|
+
}
|
|
5632
|
+
|
|
5633
|
+
var [theme] = argsFactory(args, context, event);
|
|
5634
|
+
applyTheme(theme);
|
|
5635
|
+
};
|
|
5636
|
+
}
|
|
5637
|
+
|
|
5598
5638
|
function findRefElement(brick, ref) {
|
|
5599
5639
|
var _getParentTemplate, _getParentTemplate$$$;
|
|
5600
5640
|
|
|
@@ -9154,21 +9194,24 @@
|
|
|
9154
9194
|
return defaultCollapsed || defaultCollapsedBreakpoint && document.documentElement.clientWidth < defaultCollapsedBreakpoint;
|
|
9155
9195
|
}
|
|
9156
9196
|
|
|
9157
|
-
var
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
}
|
|
9161
|
-
|
|
9162
|
-
function getUrlRegExp(str) {
|
|
9163
|
-
return new RegExp("".concat(str.replace(/:\w+/g, "[\\w|-]+"), "$"));
|
|
9164
|
-
}
|
|
9165
|
-
|
|
9166
|
-
var isMatchMockUrl = (requestUrl, uri) => {
|
|
9167
|
-
var reg = getUrlRegExp(uri);
|
|
9168
|
-
return reg.test(requestUrl);
|
|
9197
|
+
var mocks = {
|
|
9198
|
+
mockId: null,
|
|
9199
|
+
mockList: []
|
|
9169
9200
|
};
|
|
9170
|
-
|
|
9171
|
-
|
|
9201
|
+
function registerMock(useMocks) {
|
|
9202
|
+
var _useMocks$mockList;
|
|
9203
|
+
|
|
9204
|
+
if (useMocks) mocks = _objectSpread__default["default"](_objectSpread__default["default"]({}, useMocks), {}, {
|
|
9205
|
+
mockList: (_useMocks$mockList = useMocks.mockList) === null || _useMocks$mockList === void 0 ? void 0 : _useMocks$mockList.map(item => _objectSpread__default["default"](_objectSpread__default["default"]({}, item), {}, {
|
|
9206
|
+
uri: item.uri.replace(/(easyops\.api\.)(.+)(@\d+\.\d+\.\d+(?=\/))(.+)/, (_match, p1, p2, _p3, p4) => {
|
|
9207
|
+
return "(".concat(p1, ")?").concat(p2, "(@\\d+\\.\\d+\\.\\d+)?").concat(p4, "$");
|
|
9208
|
+
}).replace(/:\w+/g, "[\\w|-]+")
|
|
9209
|
+
}))
|
|
9210
|
+
});
|
|
9211
|
+
}
|
|
9212
|
+
var getMockId = requestUrl => {
|
|
9213
|
+
if (mocks.mockList.find(item => new RegExp(item.uri).test(requestUrl))) return mocks.mockId;
|
|
9214
|
+
return undefined;
|
|
9172
9215
|
};
|
|
9173
9216
|
|
|
9174
9217
|
class Router {
|
|
@@ -9397,7 +9440,7 @@
|
|
|
9397
9440
|
};
|
|
9398
9441
|
|
|
9399
9442
|
if (storyboard) {
|
|
9400
|
-
var _currentApp$breadcrum, _currentApp$breadcrum2;
|
|
9443
|
+
var _currentApp$breadcrum, _currentApp$breadcrum2, _currentApp$theme;
|
|
9401
9444
|
|
|
9402
9445
|
if (appChanged && currentApp.id && isLoggedIn()) {
|
|
9403
9446
|
var usedCustomApis = brickUtils.mapCustomApisToNameAndNamespace(brickUtils.scanCustomApisInStoryboard(storyboard));
|
|
@@ -9496,7 +9539,7 @@
|
|
|
9496
9539
|
legacy: actualLegacy
|
|
9497
9540
|
});
|
|
9498
9541
|
|
|
9499
|
-
setTheme("light");
|
|
9542
|
+
setTheme((_currentApp$theme = currentApp.theme) !== null && _currentApp$theme !== void 0 ? _currentApp$theme : "light");
|
|
9500
9543
|
setMode("default"); // There is a window to set theme and mode by `lifeCycle.onBeforePageLoad`.
|
|
9501
9544
|
|
|
9502
9545
|
_this3.locationContext.handleBeforePageLoad();
|
|
@@ -10862,9 +10905,289 @@
|
|
|
10862
10905
|
};
|
|
10863
10906
|
var defaultLocale = localeValues;
|
|
10864
10907
|
|
|
10865
|
-
var
|
|
10908
|
+
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); }
|
|
10909
|
+
|
|
10910
|
+
var _ref$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
10911
|
+
x1: "5.718%",
|
|
10912
|
+
y1: "4.311%",
|
|
10913
|
+
x2: "83.05%",
|
|
10914
|
+
y2: "88.915%",
|
|
10915
|
+
id: "empty-image_svg__a"
|
|
10916
|
+
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10917
|
+
stopColor: "#D4D8E4",
|
|
10918
|
+
offset: "0%"
|
|
10919
|
+
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10920
|
+
stopColor: "#A9B0C4",
|
|
10921
|
+
offset: "100%"
|
|
10922
|
+
})), /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
10923
|
+
x1: "0%",
|
|
10924
|
+
y1: "11.08%",
|
|
10925
|
+
x2: "80.548%",
|
|
10926
|
+
y2: "107.704%",
|
|
10927
|
+
id: "empty-image_svg__d"
|
|
10928
|
+
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10929
|
+
stopColor: "#C2C7DA",
|
|
10930
|
+
offset: "0%"
|
|
10931
|
+
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10932
|
+
stopColor: "#8F96B3",
|
|
10933
|
+
offset: "100%"
|
|
10934
|
+
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10935
|
+
d: "M23.672 23.607h2.492a4 4 0 0 1 4 4v2.491a4 4 0 0 1-4 4h-2.492a4 4 0 0 1-4-4v-2.491a4 4 0 0 1 4-4z",
|
|
10936
|
+
id: "empty-image_svg__c"
|
|
10937
|
+
}), /*#__PURE__*/React__namespace.createElement("filter", {
|
|
10938
|
+
x: "-57.2%",
|
|
10939
|
+
y: "-47.7%",
|
|
10940
|
+
width: "233.4%",
|
|
10941
|
+
height: "233.4%",
|
|
10942
|
+
filterUnits: "objectBoundingBox",
|
|
10943
|
+
id: "empty-image_svg__b"
|
|
10944
|
+
}, /*#__PURE__*/React__namespace.createElement("feOffset", {
|
|
10945
|
+
dx: 1,
|
|
10946
|
+
dy: 2,
|
|
10947
|
+
in: "SourceAlpha",
|
|
10948
|
+
result: "shadowOffsetOuter1"
|
|
10949
|
+
}), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
|
|
10950
|
+
stdDeviation: 2,
|
|
10951
|
+
in: "shadowOffsetOuter1",
|
|
10952
|
+
result: "shadowBlurOuter1"
|
|
10953
|
+
}), /*#__PURE__*/React__namespace.createElement("feComposite", {
|
|
10954
|
+
in: "shadowBlurOuter1",
|
|
10955
|
+
in2: "SourceAlpha",
|
|
10956
|
+
operator: "out",
|
|
10957
|
+
result: "shadowBlurOuter1"
|
|
10958
|
+
}), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
|
|
10959
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
|
|
10960
|
+
in: "shadowBlurOuter1"
|
|
10961
|
+
})), /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
10962
|
+
x1: "41.823%",
|
|
10963
|
+
y1: "24.795%",
|
|
10964
|
+
x2: "8.813%",
|
|
10965
|
+
y2: "86.427%",
|
|
10966
|
+
id: "empty-image_svg__g"
|
|
10967
|
+
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10968
|
+
stopColor: "#CCD0DD",
|
|
10969
|
+
offset: "0%"
|
|
10970
|
+
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10971
|
+
stopColor: "#9DA3B9",
|
|
10972
|
+
offset: "100%"
|
|
10973
|
+
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10974
|
+
d: "M37.311 12.459a4 4 0 0 1 4 4v3.419l-7.418-7.419h3.418z",
|
|
10975
|
+
id: "empty-image_svg__f"
|
|
10976
|
+
}), /*#__PURE__*/React__namespace.createElement("filter", {
|
|
10977
|
+
x: "-94.4%",
|
|
10978
|
+
y: "-121.3%",
|
|
10979
|
+
width: "288.7%",
|
|
10980
|
+
height: "288.7%",
|
|
10981
|
+
filterUnits: "objectBoundingBox",
|
|
10982
|
+
id: "empty-image_svg__e"
|
|
10983
|
+
}, /*#__PURE__*/React__namespace.createElement("feOffset", {
|
|
10984
|
+
dy: -2,
|
|
10985
|
+
in: "SourceAlpha",
|
|
10986
|
+
result: "shadowOffsetOuter1"
|
|
10987
|
+
}), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
|
|
10988
|
+
stdDeviation: 2,
|
|
10989
|
+
in: "shadowOffsetOuter1",
|
|
10990
|
+
result: "shadowBlurOuter1"
|
|
10991
|
+
}), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
|
|
10992
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
|
|
10993
|
+
in: "shadowBlurOuter1"
|
|
10994
|
+
})));
|
|
10995
|
+
|
|
10996
|
+
var _ref2$1 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
10997
|
+
fill: "none",
|
|
10998
|
+
fillRule: "evenodd"
|
|
10999
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
11000
|
+
d: "M39.682 33.967H10.81a2.8 2.8 0 0 0-1.94.782l-5.197 4.999v6.98a5.6 5.6 0 0 0 5.6 5.6H41.22a5.6 5.6 0 0 0 5.6-5.6v-6.98l-5.196-4.999a2.8 2.8 0 0 0-1.942-.782z",
|
|
11001
|
+
fill: "#A6AAC3"
|
|
11002
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11003
|
+
d: "M33.893 12.459l7.418 7.419v22.568a2.8 2.8 0 0 1-2.8 2.8h-26.53a2.8 2.8 0 0 1-2.8-2.8V18.459a6 6 0 0 1 6-6h18.712z",
|
|
11004
|
+
fill: "url(#empty-image_svg__a)"
|
|
11005
|
+
}), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("use", {
|
|
11006
|
+
fill: "#000",
|
|
11007
|
+
filter: "url(#empty-image_svg__b)",
|
|
11008
|
+
xlinkHref: "#empty-image_svg__c"
|
|
11009
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11010
|
+
stroke: "#FFF",
|
|
11011
|
+
d: "M26.164 24.107c.966 0 1.841.391 2.475 1.025a3.489 3.489 0 0 1 1.025 2.475h0v2.491c0 .967-.392 1.842-1.025 2.475a3.489 3.489 0 0 1-2.475 1.025h0-2.492a3.489 3.489 0 0 1-2.475-1.025 3.489 3.489 0 0 1-1.025-2.475h0v-2.491c0-.967.392-1.842 1.025-2.475a3.489 3.489 0 0 1 2.475-1.025h0z",
|
|
11012
|
+
strokeLinejoin: "square",
|
|
11013
|
+
fill: "url(#empty-image_svg__d)"
|
|
11014
|
+
})), /*#__PURE__*/React__namespace.createElement("g", {
|
|
11015
|
+
transform: "rotate(180 37.602 16.168)"
|
|
11016
|
+
}, /*#__PURE__*/React__namespace.createElement("use", {
|
|
11017
|
+
fill: "#000",
|
|
11018
|
+
filter: "url(#empty-image_svg__e)",
|
|
11019
|
+
xlinkHref: "#empty-image_svg__f"
|
|
11020
|
+
}), /*#__PURE__*/React__namespace.createElement("use", {
|
|
11021
|
+
fill: "url(#empty-image_svg__g)",
|
|
11022
|
+
xlinkHref: "#empty-image_svg__f"
|
|
11023
|
+
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11024
|
+
d: "M54.164 27.541c.253 0 .459.205.459.459v.918h.918a.459.459 0 1 1 0 .918h-.918v.918a.459.459 0 0 1-.918 0v-.918h-.918a.459.459 0 0 1 0-.918h.918V28c0-.254.205-.459.459-.459zM1.377 20.197c.19 0 .344.154.344.344v.574h.574a.459.459 0 1 1 0 .918h-.574v.574a.344.344 0 0 1-.688 0l-.001-.574H.459a.459.459 0 0 1 0-.918h.573v-.574c0-.19.155-.344.345-.344z",
|
|
11025
|
+
fill: "#D6D8E4",
|
|
11026
|
+
opacity: 0.3
|
|
11027
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11028
|
+
d: "M24.787 43.53h.014c7.087.143 9.817-3.834 12.785-4.046l.19-.008h9.044v10.052a2.8 2.8 0 0 1-2.63 2.795l-.17.005H6.472l-.17-.005a2.8 2.8 0 0 1-2.63-2.795V39.475h8.126l.144-.004c2.485.004 5.214 3.898 12.83 4.06l.015-.002z",
|
|
11029
|
+
fill: "#D6D8E4"
|
|
11030
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11031
|
+
d: "M13.77 2.2s2.308-.555 2.962-2.2c.943 1.35 1.429 1.933 2.547 2.189-1.522.453-2.183.963-2.704 2.401-.598-1.695-1.142-1.914-2.805-2.39",
|
|
11032
|
+
fill: "#D6D8E4",
|
|
11033
|
+
opacity: 0.5
|
|
11034
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11035
|
+
d: "M41.311 6.64S47.464 5.194 49.21.917c2.514 3.508 3.81 5.025 6.791 5.691-4.059 1.18-5.822 2.503-7.21 6.243-1.594-4.406-3.045-4.976-7.479-6.213",
|
|
11036
|
+
fill: "#D6D8E4",
|
|
11037
|
+
opacity: 0.8
|
|
11038
|
+
}));
|
|
10866
11039
|
|
|
10867
|
-
|
|
11040
|
+
function SvgEmptyImage(props) {
|
|
11041
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
11042
|
+
width: 56,
|
|
11043
|
+
height: 53,
|
|
11044
|
+
viewBox: "0 0 56 53",
|
|
11045
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11046
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
11047
|
+
}, props), _ref$1, _ref2$1);
|
|
11048
|
+
}
|
|
11049
|
+
|
|
11050
|
+
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); }
|
|
11051
|
+
|
|
11052
|
+
var _ref = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
11053
|
+
x1: "5.718%",
|
|
11054
|
+
y1: "4.311%",
|
|
11055
|
+
x2: "83.05%",
|
|
11056
|
+
y2: "88.915%",
|
|
11057
|
+
id: "big-empty-image_svg__a"
|
|
11058
|
+
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
11059
|
+
stopColor: "#D4D8E4",
|
|
11060
|
+
offset: "0%"
|
|
11061
|
+
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
11062
|
+
stopColor: "#A9B0C4",
|
|
11063
|
+
offset: "100%"
|
|
11064
|
+
})), /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
11065
|
+
x1: "0%",
|
|
11066
|
+
y1: "11.08%",
|
|
11067
|
+
x2: "80.548%",
|
|
11068
|
+
y2: "107.704%",
|
|
11069
|
+
id: "big-empty-image_svg__d"
|
|
11070
|
+
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
11071
|
+
stopColor: "#C2C7DA",
|
|
11072
|
+
offset: "0%"
|
|
11073
|
+
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
11074
|
+
stopColor: "#8F96B3",
|
|
11075
|
+
offset: "100%"
|
|
11076
|
+
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11077
|
+
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",
|
|
11078
|
+
id: "big-empty-image_svg__c"
|
|
11079
|
+
}), /*#__PURE__*/React__namespace.createElement("filter", {
|
|
11080
|
+
x: "-37.5%",
|
|
11081
|
+
y: "-31.3%",
|
|
11082
|
+
width: "187.5%",
|
|
11083
|
+
height: "187.5%",
|
|
11084
|
+
filterUnits: "objectBoundingBox",
|
|
11085
|
+
id: "big-empty-image_svg__b"
|
|
11086
|
+
}, /*#__PURE__*/React__namespace.createElement("feOffset", {
|
|
11087
|
+
dx: 1,
|
|
11088
|
+
dy: 2,
|
|
11089
|
+
in: "SourceAlpha",
|
|
11090
|
+
result: "shadowOffsetOuter1"
|
|
11091
|
+
}), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
|
|
11092
|
+
stdDeviation: 2,
|
|
11093
|
+
in: "shadowOffsetOuter1",
|
|
11094
|
+
result: "shadowBlurOuter1"
|
|
11095
|
+
}), /*#__PURE__*/React__namespace.createElement("feComposite", {
|
|
11096
|
+
in: "shadowBlurOuter1",
|
|
11097
|
+
in2: "SourceAlpha",
|
|
11098
|
+
operator: "out",
|
|
11099
|
+
result: "shadowBlurOuter1"
|
|
11100
|
+
}), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
|
|
11101
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
|
|
11102
|
+
in: "shadowBlurOuter1"
|
|
11103
|
+
})), /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
11104
|
+
x1: "41.823%",
|
|
11105
|
+
y1: "24.795%",
|
|
11106
|
+
x2: "8.813%",
|
|
11107
|
+
y2: "86.427%",
|
|
11108
|
+
id: "big-empty-image_svg__g"
|
|
11109
|
+
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
11110
|
+
stopColor: "#CCD0DD",
|
|
11111
|
+
offset: "0%"
|
|
11112
|
+
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
11113
|
+
stopColor: "#9DA3B9",
|
|
11114
|
+
offset: "100%"
|
|
11115
|
+
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11116
|
+
d: "M59 19a4 4 0 0 1 4 4v7.314L51.686 19H59z",
|
|
11117
|
+
id: "big-empty-image_svg__f"
|
|
11118
|
+
}), /*#__PURE__*/React__namespace.createElement("filter", {
|
|
11119
|
+
x: "-61.9%",
|
|
11120
|
+
y: "-79.5%",
|
|
11121
|
+
width: "223.7%",
|
|
11122
|
+
height: "223.7%",
|
|
11123
|
+
filterUnits: "objectBoundingBox",
|
|
11124
|
+
id: "big-empty-image_svg__e"
|
|
11125
|
+
}, /*#__PURE__*/React__namespace.createElement("feOffset", {
|
|
11126
|
+
dy: -2,
|
|
11127
|
+
in: "SourceAlpha",
|
|
11128
|
+
result: "shadowOffsetOuter1"
|
|
11129
|
+
}), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
|
|
11130
|
+
stdDeviation: 2,
|
|
11131
|
+
in: "shadowOffsetOuter1",
|
|
11132
|
+
result: "shadowBlurOuter1"
|
|
11133
|
+
}), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
|
|
11134
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
|
|
11135
|
+
in: "shadowBlurOuter1"
|
|
11136
|
+
})));
|
|
11137
|
+
|
|
11138
|
+
var _ref2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
11139
|
+
fill: "none",
|
|
11140
|
+
fillRule: "evenodd"
|
|
11141
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
11142
|
+
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",
|
|
11143
|
+
fill: "#A6AAC3"
|
|
11144
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11145
|
+
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",
|
|
11146
|
+
fill: "url(#big-empty-image_svg__a)"
|
|
11147
|
+
}), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("use", {
|
|
11148
|
+
fill: "#000",
|
|
11149
|
+
filter: "url(#big-empty-image_svg__b)",
|
|
11150
|
+
xlinkHref: "#big-empty-image_svg__c"
|
|
11151
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11152
|
+
stroke: "#FFF",
|
|
11153
|
+
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",
|
|
11154
|
+
strokeLinejoin: "square",
|
|
11155
|
+
fill: "url(#big-empty-image_svg__d)"
|
|
11156
|
+
})), /*#__PURE__*/React__namespace.createElement("g", {
|
|
11157
|
+
transform: "rotate(180 57.343 24.657)"
|
|
11158
|
+
}, /*#__PURE__*/React__namespace.createElement("use", {
|
|
11159
|
+
fill: "#000",
|
|
11160
|
+
filter: "url(#big-empty-image_svg__e)",
|
|
11161
|
+
xlinkHref: "#big-empty-image_svg__f"
|
|
11162
|
+
}), /*#__PURE__*/React__namespace.createElement("use", {
|
|
11163
|
+
fill: "url(#big-empty-image_svg__g)",
|
|
11164
|
+
xlinkHref: "#big-empty-image_svg__f"
|
|
11165
|
+
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11166
|
+
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",
|
|
11167
|
+
fill: "#D6D8E4",
|
|
11168
|
+
opacity: 0.3
|
|
11169
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11170
|
+
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",
|
|
11171
|
+
fill: "#D6D8E4"
|
|
11172
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11173
|
+
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",
|
|
11174
|
+
fill: "#D6D8E4",
|
|
11175
|
+
opacity: 0.5
|
|
11176
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
11177
|
+
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",
|
|
11178
|
+
fill: "#D6D8E4",
|
|
11179
|
+
opacity: 0.8
|
|
11180
|
+
}));
|
|
11181
|
+
|
|
11182
|
+
function SvgBigEmptyImage(props) {
|
|
11183
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
11184
|
+
width: 86,
|
|
11185
|
+
height: 80,
|
|
11186
|
+
viewBox: "0 0 86 80",
|
|
11187
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11188
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
11189
|
+
}, props), _ref, _ref2);
|
|
11190
|
+
}
|
|
10868
11191
|
|
|
10869
11192
|
/**
|
|
10870
11193
|
* 用于展示空数据的 React 组件。
|
|
@@ -10874,29 +11197,25 @@
|
|
|
10874
11197
|
|
|
10875
11198
|
var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
|
|
10876
11199
|
|
|
10877
|
-
var _emptyImage = props.useBigEmptyImage ?
|
|
11200
|
+
var _emptyImage = props.useBigEmptyImage ? SvgBigEmptyImage : SvgEmptyImage;
|
|
10878
11201
|
|
|
10879
|
-
var image = props.illustration ? illustration :
|
|
11202
|
+
var image = props.illustration ? illustration : /*#__PURE__*/React__default["default"].createElement(_emptyImage);
|
|
10880
11203
|
var imageStyle = (_props$imageStyle = props.imageStyle) !== null && _props$imageStyle !== void 0 ? _props$imageStyle : props.useBigEmptyImage ? undefined : {
|
|
10881
11204
|
height: "60px"
|
|
10882
11205
|
};
|
|
10883
11206
|
return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {
|
|
10884
11207
|
image: image,
|
|
10885
11208
|
imageStyle: imageStyle,
|
|
10886
|
-
description: props.description
|
|
11209
|
+
description: props.description,
|
|
11210
|
+
style: {
|
|
11211
|
+
color: "var(--text-color-secondary)"
|
|
11212
|
+
}
|
|
10887
11213
|
});
|
|
10888
11214
|
}
|
|
10889
|
-
|
|
10890
|
-
function getImageUrl(url) {
|
|
10891
|
-
var _window$CORE_ROOT;
|
|
10892
|
-
|
|
10893
|
-
return "".concat((_window$CORE_ROOT = window.CORE_ROOT) !== null && _window$CORE_ROOT !== void 0 ? _window$CORE_ROOT : "", "assets/").concat(url);
|
|
10894
|
-
}
|
|
10895
11215
|
/**
|
|
10896
11216
|
* 调用后获得一个默认的展示空数据的 React 组件。
|
|
10897
11217
|
*/
|
|
10898
11218
|
|
|
10899
|
-
|
|
10900
11219
|
function renderEasyopsEmpty() {
|
|
10901
11220
|
return /*#__PURE__*/React__default["default"].createElement(EasyopsEmpty, null);
|
|
10902
11221
|
}
|
|
@@ -11394,7 +11713,7 @@
|
|
|
11394
11713
|
exports.event = event;
|
|
11395
11714
|
exports.getAuth = getAuth;
|
|
11396
11715
|
exports.getHistory = getHistory;
|
|
11397
|
-
exports.
|
|
11716
|
+
exports.getMockId = getMockId;
|
|
11398
11717
|
exports.getRuntime = getRuntime;
|
|
11399
11718
|
exports.handleHttpError = handleHttpError;
|
|
11400
11719
|
exports.httpErrorToString = httpErrorToString;
|