@next-core/brick-kit 2.90.1 → 2.90.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 +11 -0
- package/dist/index.bundle.js +12 -91
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +105 -184
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Kernel.d.ts.map +1 -1
- package/package.json +2 -2
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';
|
|
@@ -22,9 +22,9 @@ 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
|
);
|
|
@@ -2521,23 +2521,23 @@ function _dev_only_getFakeKernel(overrides) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
class Runtime {
|
|
2523
2523
|
constructor() {
|
|
2524
|
-
_defineProperty$
|
|
2524
|
+
_defineProperty$1(this, "registerBrickTemplate", registerBrickTemplate);
|
|
2525
2525
|
|
|
2526
|
-
_defineProperty$
|
|
2526
|
+
_defineProperty$1(this, "registerCustomTemplate", registerCustomTemplate);
|
|
2527
2527
|
|
|
2528
|
-
_defineProperty$
|
|
2528
|
+
_defineProperty$1(this, "registerCustomProcessor", registerCustomProcessor);
|
|
2529
2529
|
|
|
2530
|
-
_defineProperty$
|
|
2530
|
+
_defineProperty$1(this, "registerLazyBricks", registerLazyBricks);
|
|
2531
2531
|
|
|
2532
|
-
_defineProperty$
|
|
2532
|
+
_defineProperty$1(this, "registerWidgetFunctions", registerWidgetFunctions);
|
|
2533
2533
|
|
|
2534
|
-
_defineProperty$
|
|
2534
|
+
_defineProperty$1(this, "registerWidgetI18n", registerWidgetI18n);
|
|
2535
2535
|
|
|
2536
|
-
_defineProperty$
|
|
2536
|
+
_defineProperty$1(this, "getBasePath", getBasePath);
|
|
2537
2537
|
|
|
2538
|
-
_defineProperty$
|
|
2538
|
+
_defineProperty$1(this, "getCurrentTheme", getCurrentTheme);
|
|
2539
2539
|
|
|
2540
|
-
_defineProperty$
|
|
2540
|
+
_defineProperty$1(this, "getCurrentMode", getCurrentMode);
|
|
2541
2541
|
}
|
|
2542
2542
|
|
|
2543
2543
|
bootstrap(mountPoints) {
|
|
@@ -3096,13 +3096,13 @@ function LoginTimeoutMessage() {
|
|
|
3096
3096
|
|
|
3097
3097
|
class WebsocketMessageRequest {
|
|
3098
3098
|
constructor(event, topic) {
|
|
3099
|
-
_defineProperty$
|
|
3099
|
+
_defineProperty$1(this, "topic", void 0);
|
|
3100
3100
|
|
|
3101
|
-
_defineProperty$
|
|
3101
|
+
_defineProperty$1(this, "data", void 0);
|
|
3102
3102
|
|
|
3103
|
-
_defineProperty$
|
|
3103
|
+
_defineProperty$1(this, "event", void 0);
|
|
3104
3104
|
|
|
3105
|
-
_defineProperty$
|
|
3105
|
+
_defineProperty$1(this, "message", void 0);
|
|
3106
3106
|
|
|
3107
3107
|
this.event = event;
|
|
3108
3108
|
this.topic = JSON.stringify(topic);
|
|
@@ -3147,13 +3147,13 @@ var PluginWebSocketMessageEvent;
|
|
|
3147
3147
|
|
|
3148
3148
|
class WebsocketMessageResponse {
|
|
3149
3149
|
constructor(response) {
|
|
3150
|
-
_defineProperty$
|
|
3150
|
+
_defineProperty$1(this, "topic", void 0);
|
|
3151
3151
|
|
|
3152
|
-
_defineProperty$
|
|
3152
|
+
_defineProperty$1(this, "data", void 0);
|
|
3153
3153
|
|
|
3154
|
-
_defineProperty$
|
|
3154
|
+
_defineProperty$1(this, "event", void 0);
|
|
3155
3155
|
|
|
3156
|
-
_defineProperty$
|
|
3156
|
+
_defineProperty$1(this, "message", void 0);
|
|
3157
3157
|
|
|
3158
3158
|
this.data = response;
|
|
3159
3159
|
this.message = JSON.parse(response);
|
|
@@ -3201,19 +3201,19 @@ class WebsocketMessageResponse {
|
|
|
3201
3201
|
|
|
3202
3202
|
class WebSocketService {
|
|
3203
3203
|
constructor(options) {
|
|
3204
|
-
_defineProperty$
|
|
3204
|
+
_defineProperty$1(this, "retryCount", 0);
|
|
3205
3205
|
|
|
3206
|
-
_defineProperty$
|
|
3206
|
+
_defineProperty$1(this, "ws", null);
|
|
3207
3207
|
|
|
3208
|
-
_defineProperty$
|
|
3208
|
+
_defineProperty$1(this, "lockReconnect", false);
|
|
3209
3209
|
|
|
3210
|
-
_defineProperty$
|
|
3210
|
+
_defineProperty$1(this, "options", void 0);
|
|
3211
3211
|
|
|
3212
|
-
_defineProperty$
|
|
3212
|
+
_defineProperty$1(this, "messageQueue", new Set());
|
|
3213
3213
|
|
|
3214
|
-
_defineProperty$
|
|
3214
|
+
_defineProperty$1(this, "state", "initial");
|
|
3215
3215
|
|
|
3216
|
-
_defineProperty$
|
|
3216
|
+
_defineProperty$1(this, "defaultOptions", {
|
|
3217
3217
|
url: null,
|
|
3218
3218
|
reconnectTimeout: 1000,
|
|
3219
3219
|
retryLimit: 6
|
|
@@ -4514,15 +4514,15 @@ function getMessageDispatcher() {
|
|
|
4514
4514
|
}
|
|
4515
4515
|
class MessageDispatcher {
|
|
4516
4516
|
constructor() {
|
|
4517
|
-
_defineProperty$
|
|
4517
|
+
_defineProperty$1(this, "ws", void 0);
|
|
4518
4518
|
|
|
4519
|
-
_defineProperty$
|
|
4519
|
+
_defineProperty$1(this, "context", void 0);
|
|
4520
4520
|
|
|
4521
|
-
_defineProperty$
|
|
4521
|
+
_defineProperty$1(this, "messages", new Map());
|
|
4522
4522
|
|
|
4523
|
-
_defineProperty$
|
|
4523
|
+
_defineProperty$1(this, "messageCallbackHandlers", new Map());
|
|
4524
4524
|
|
|
4525
|
-
_defineProperty$
|
|
4525
|
+
_defineProperty$1(this, "channels", new Map());
|
|
4526
4526
|
}
|
|
4527
4527
|
|
|
4528
4528
|
create(brickAndMessages, context) {
|
|
@@ -5710,9 +5710,9 @@ function argsFactory(args, context, event) {
|
|
|
5710
5710
|
|
|
5711
5711
|
class BrickNode {
|
|
5712
5712
|
constructor(brick) {
|
|
5713
|
-
_defineProperty$
|
|
5713
|
+
_defineProperty$1(this, "$$brick", void 0);
|
|
5714
5714
|
|
|
5715
|
-
_defineProperty$
|
|
5715
|
+
_defineProperty$1(this, "children", []);
|
|
5716
5716
|
|
|
5717
5717
|
this.$$brick = brick;
|
|
5718
5718
|
}
|
|
@@ -5811,55 +5811,6 @@ function _asyncToGenerator$1(fn) {
|
|
|
5811
5811
|
};
|
|
5812
5812
|
}
|
|
5813
5813
|
|
|
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
5814
|
var checkLogin = /*#__PURE__*/function () {
|
|
5864
5815
|
var _ref2 = _asyncToGenerator$1(function* (options) {
|
|
5865
5816
|
return (yield http.get("api/auth/login", options)).data;
|
|
@@ -5870,30 +5821,6 @@ var checkLogin = /*#__PURE__*/function () {
|
|
|
5870
5821
|
};
|
|
5871
5822
|
}();
|
|
5872
5823
|
|
|
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
5824
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5898
5825
|
try {
|
|
5899
5826
|
var info = gen[key](arg);
|
|
@@ -6153,57 +6080,57 @@ function _standaloneBootstrap() {
|
|
|
6153
6080
|
|
|
6154
6081
|
class Kernel {
|
|
6155
6082
|
constructor() {
|
|
6156
|
-
_defineProperty$
|
|
6083
|
+
_defineProperty$1(this, "mountPoints", void 0);
|
|
6157
6084
|
|
|
6158
|
-
_defineProperty$
|
|
6085
|
+
_defineProperty$1(this, "bootstrapData", void 0);
|
|
6159
6086
|
|
|
6160
|
-
_defineProperty$
|
|
6087
|
+
_defineProperty$1(this, "presetBricks", void 0);
|
|
6161
6088
|
|
|
6162
|
-
_defineProperty$
|
|
6089
|
+
_defineProperty$1(this, "menuBar", void 0);
|
|
6163
6090
|
|
|
6164
|
-
_defineProperty$
|
|
6091
|
+
_defineProperty$1(this, "appBar", void 0);
|
|
6165
6092
|
|
|
6166
|
-
_defineProperty$
|
|
6093
|
+
_defineProperty$1(this, "loadingBar", void 0);
|
|
6167
6094
|
|
|
6168
|
-
_defineProperty$
|
|
6095
|
+
_defineProperty$1(this, "navBar", void 0);
|
|
6169
6096
|
|
|
6170
|
-
_defineProperty$
|
|
6097
|
+
_defineProperty$1(this, "sideBar", void 0);
|
|
6171
6098
|
|
|
6172
|
-
_defineProperty$
|
|
6099
|
+
_defineProperty$1(this, "footer", void 0);
|
|
6173
6100
|
|
|
6174
|
-
_defineProperty$
|
|
6101
|
+
_defineProperty$1(this, "breadcrumb", void 0);
|
|
6175
6102
|
|
|
6176
|
-
_defineProperty$
|
|
6103
|
+
_defineProperty$1(this, "router", void 0);
|
|
6177
6104
|
|
|
6178
|
-
_defineProperty$
|
|
6105
|
+
_defineProperty$1(this, "currentApp", void 0);
|
|
6179
6106
|
|
|
6180
|
-
_defineProperty$
|
|
6107
|
+
_defineProperty$1(this, "previousApp", void 0);
|
|
6181
6108
|
|
|
6182
|
-
_defineProperty$
|
|
6109
|
+
_defineProperty$1(this, "nextApp", void 0);
|
|
6183
6110
|
|
|
6184
|
-
_defineProperty$
|
|
6111
|
+
_defineProperty$1(this, "currentUrl", void 0);
|
|
6185
6112
|
|
|
6186
|
-
_defineProperty$
|
|
6113
|
+
_defineProperty$1(this, "currentRoute", void 0);
|
|
6187
6114
|
|
|
6188
|
-
_defineProperty$
|
|
6115
|
+
_defineProperty$1(this, "workspaceStack", []);
|
|
6189
6116
|
|
|
6190
|
-
_defineProperty$
|
|
6117
|
+
_defineProperty$1(this, "currentLayout", void 0);
|
|
6191
6118
|
|
|
6192
|
-
_defineProperty$
|
|
6119
|
+
_defineProperty$1(this, "enableUiV8", false);
|
|
6193
6120
|
|
|
6194
|
-
_defineProperty$
|
|
6121
|
+
_defineProperty$1(this, "allUserMapPromise", Promise.resolve(new Map()));
|
|
6195
6122
|
|
|
6196
|
-
_defineProperty$
|
|
6123
|
+
_defineProperty$1(this, "allMagicBrickConfigMapPromise", Promise.resolve(new Map()));
|
|
6197
6124
|
|
|
6198
|
-
_defineProperty$
|
|
6125
|
+
_defineProperty$1(this, "allRelatedAppsPromise", Promise.resolve([]));
|
|
6199
6126
|
|
|
6200
|
-
_defineProperty$
|
|
6127
|
+
_defineProperty$1(this, "allMicroAppApiOrchestrationPromise", Promise.resolve(new Map()));
|
|
6201
6128
|
|
|
6202
|
-
_defineProperty$
|
|
6129
|
+
_defineProperty$1(this, "providerRepository", new Map());
|
|
6203
6130
|
|
|
6204
|
-
_defineProperty$
|
|
6131
|
+
_defineProperty$1(this, "loadUsersStarted", false);
|
|
6205
6132
|
|
|
6206
|
-
_defineProperty$
|
|
6133
|
+
_defineProperty$1(this, "loadMagicBrickConfigStarted", false);
|
|
6207
6134
|
}
|
|
6208
6135
|
|
|
6209
6136
|
bootstrap(mountPoints) {
|
|
@@ -6319,17 +6246,12 @@ class Kernel {
|
|
|
6319
6246
|
var _this3 = this;
|
|
6320
6247
|
|
|
6321
6248
|
return _asyncToGenerator$4(function* () {
|
|
6322
|
-
|
|
6323
|
-
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : localStorage.getItem("__$$use-bootstrap-v2-provider$$__") ? BootstrapV2Api_bootstrapV2(_objectSpread({
|
|
6249
|
+
var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2(_objectSpread({
|
|
6324
6250
|
appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status",
|
|
6325
6251
|
ignoreTemplateFields: "templates",
|
|
6326
6252
|
ignoreBrickFields: "bricks,processors,providers,editors"
|
|
6327
6253
|
}, params), {
|
|
6328
6254
|
interceptorParams
|
|
6329
|
-
}) : bootstrap(_objectSpread({
|
|
6330
|
-
brief: true
|
|
6331
|
-
}, params), {
|
|
6332
|
-
interceptorParams
|
|
6333
6255
|
});
|
|
6334
6256
|
|
|
6335
6257
|
var bootstrapResponse = _objectSpread({
|
|
@@ -6376,12 +6298,11 @@ class Kernel {
|
|
|
6376
6298
|
$$fulfilled: true
|
|
6377
6299
|
});
|
|
6378
6300
|
} else {
|
|
6379
|
-
/* istanbul ignore next */
|
|
6380
6301
|
var {
|
|
6381
6302
|
routes,
|
|
6382
6303
|
meta,
|
|
6383
6304
|
app
|
|
6384
|
-
} = yield
|
|
6305
|
+
} = yield BootstrapV2Api_getAppStoryboardV2(storyboard.app.id, {});
|
|
6385
6306
|
Object.assign(storyboard, {
|
|
6386
6307
|
routes,
|
|
6387
6308
|
meta,
|
|
@@ -7856,11 +7777,11 @@ function registerCustomTemplate(tplName, tplConstructor, appId) {
|
|
|
7856
7777
|
|
|
7857
7778
|
class CustomTemplateContext {
|
|
7858
7779
|
constructor() {
|
|
7859
|
-
_defineProperty$
|
|
7780
|
+
_defineProperty$1(this, "contextMap", new Map());
|
|
7860
7781
|
|
|
7861
|
-
_defineProperty$
|
|
7782
|
+
_defineProperty$1(this, "brickMap", new Map());
|
|
7862
7783
|
|
|
7863
|
-
_defineProperty$
|
|
7784
|
+
_defineProperty$1(this, "propsMap", new Map());
|
|
7864
7785
|
}
|
|
7865
7786
|
|
|
7866
7787
|
createContext() {
|
|
@@ -7916,35 +7837,35 @@ function listenOnTrackingContext(brick, trackingContextList, context) {
|
|
|
7916
7837
|
|
|
7917
7838
|
class LocationContext {
|
|
7918
7839
|
constructor(kernel, location) {
|
|
7919
|
-
_defineProperty$
|
|
7840
|
+
_defineProperty$1(this, "query", void 0);
|
|
7920
7841
|
|
|
7921
|
-
_defineProperty$
|
|
7842
|
+
_defineProperty$1(this, "resolver", void 0);
|
|
7922
7843
|
|
|
7923
|
-
_defineProperty$
|
|
7844
|
+
_defineProperty$1(this, "messageDispatcher", void 0);
|
|
7924
7845
|
|
|
7925
|
-
_defineProperty$
|
|
7846
|
+
_defineProperty$1(this, "beforePageLoadHandlers", []);
|
|
7926
7847
|
|
|
7927
|
-
_defineProperty$
|
|
7848
|
+
_defineProperty$1(this, "pageLoadHandlers", []);
|
|
7928
7849
|
|
|
7929
|
-
_defineProperty$
|
|
7850
|
+
_defineProperty$1(this, "beforePageLeaveHandlers", []);
|
|
7930
7851
|
|
|
7931
|
-
_defineProperty$
|
|
7852
|
+
_defineProperty$1(this, "pageLeaveHandlers", []);
|
|
7932
7853
|
|
|
7933
|
-
_defineProperty$
|
|
7854
|
+
_defineProperty$1(this, "anchorLoadHandlers", []);
|
|
7934
7855
|
|
|
7935
|
-
_defineProperty$
|
|
7856
|
+
_defineProperty$1(this, "anchorUnloadHandlers", []);
|
|
7936
7857
|
|
|
7937
|
-
_defineProperty$
|
|
7858
|
+
_defineProperty$1(this, "messageCloseHandlers", []);
|
|
7938
7859
|
|
|
7939
|
-
_defineProperty$
|
|
7860
|
+
_defineProperty$1(this, "messageHandlers", []);
|
|
7940
7861
|
|
|
7941
|
-
_defineProperty$
|
|
7862
|
+
_defineProperty$1(this, "segues", {});
|
|
7942
7863
|
|
|
7943
|
-
_defineProperty$
|
|
7864
|
+
_defineProperty$1(this, "currentMatch", void 0);
|
|
7944
7865
|
|
|
7945
|
-
_defineProperty$
|
|
7866
|
+
_defineProperty$1(this, "storyboardContext", new Map());
|
|
7946
7867
|
|
|
7947
|
-
_defineProperty$
|
|
7868
|
+
_defineProperty$1(this, "tplContext", new CustomTemplateContext());
|
|
7948
7869
|
|
|
7949
7870
|
this.kernel = kernel;
|
|
7950
7871
|
this.location = location;
|
|
@@ -8896,13 +8817,13 @@ function makeProviderRefreshable(providerBrick) {
|
|
|
8896
8817
|
|
|
8897
8818
|
class Resolver {
|
|
8898
8819
|
constructor(kernel) {
|
|
8899
|
-
_defineProperty$
|
|
8820
|
+
_defineProperty$1(this, "cache", new Map());
|
|
8900
8821
|
|
|
8901
|
-
_defineProperty$
|
|
8822
|
+
_defineProperty$1(this, "refreshQueue", new Map());
|
|
8902
8823
|
|
|
8903
|
-
_defineProperty$
|
|
8824
|
+
_defineProperty$1(this, "definedResolves", new Map());
|
|
8904
8825
|
|
|
8905
|
-
_defineProperty$
|
|
8826
|
+
_defineProperty$1(this, "active", true);
|
|
8906
8827
|
|
|
8907
8828
|
this.kernel = kernel;
|
|
8908
8829
|
}
|
|
@@ -9159,7 +9080,7 @@ class ResolveRequestError extends Error {
|
|
|
9159
9080
|
// Pass remaining arguments (including vendor specific ones) to parent constructor
|
|
9160
9081
|
super(rawError.message);
|
|
9161
9082
|
|
|
9162
|
-
_defineProperty$
|
|
9083
|
+
_defineProperty$1(this, "rawError", void 0);
|
|
9163
9084
|
|
|
9164
9085
|
this.name = "ResolveRequestError"; // Maintains proper stack trace for where our error was thrown (only available on V8)
|
|
9165
9086
|
// istanbul ignore else
|
|
@@ -9179,21 +9100,21 @@ function shouldBeDefaultCollapsed(defaultCollapsed, defaultCollapsedBreakpoint)
|
|
|
9179
9100
|
|
|
9180
9101
|
class Router {
|
|
9181
9102
|
constructor(kernel) {
|
|
9182
|
-
_defineProperty$
|
|
9103
|
+
_defineProperty$1(this, "defaultCollapsed", false);
|
|
9183
9104
|
|
|
9184
|
-
_defineProperty$
|
|
9105
|
+
_defineProperty$1(this, "locationContext", void 0);
|
|
9185
9106
|
|
|
9186
|
-
_defineProperty$
|
|
9107
|
+
_defineProperty$1(this, "rendering", false);
|
|
9187
9108
|
|
|
9188
|
-
_defineProperty$
|
|
9109
|
+
_defineProperty$1(this, "nextLocation", void 0);
|
|
9189
9110
|
|
|
9190
|
-
_defineProperty$
|
|
9111
|
+
_defineProperty$1(this, "prevLocation", void 0);
|
|
9191
9112
|
|
|
9192
|
-
_defineProperty$
|
|
9113
|
+
_defineProperty$1(this, "state", "initial");
|
|
9193
9114
|
|
|
9194
|
-
_defineProperty$
|
|
9115
|
+
_defineProperty$1(this, "renderId", void 0);
|
|
9195
9116
|
|
|
9196
|
-
_defineProperty$
|
|
9117
|
+
_defineProperty$1(this, "featureFlags", void 0);
|
|
9197
9118
|
|
|
9198
9119
|
this.kernel = kernel;
|
|
9199
9120
|
this.featureFlags = this.kernel.getFeatureFlags();
|
|
@@ -11161,7 +11082,7 @@ class UpdatingElement extends HTMLElement {
|
|
|
11161
11082
|
constructor() {
|
|
11162
11083
|
super(...arguments);
|
|
11163
11084
|
|
|
11164
|
-
_defineProperty$
|
|
11085
|
+
_defineProperty$1(this, "_hasRequestedRender", false);
|
|
11165
11086
|
}
|
|
11166
11087
|
|
|
11167
11088
|
/** @internal */
|
|
@@ -11372,13 +11293,13 @@ class UpdatingElement extends HTMLElement {
|
|
|
11372
11293
|
|
|
11373
11294
|
}
|
|
11374
11295
|
|
|
11375
|
-
_defineProperty$
|
|
11296
|
+
_defineProperty$1(UpdatingElement, "_observedAttributes", new Set());
|
|
11376
11297
|
|
|
11377
|
-
_defineProperty$
|
|
11298
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedProperties", new Set());
|
|
11378
11299
|
|
|
11379
|
-
_defineProperty$
|
|
11300
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedMethods", new Set());
|
|
11380
11301
|
|
|
11381
|
-
_defineProperty$
|
|
11302
|
+
_defineProperty$1(UpdatingElement, "__dev_only_definedEvents", new Set());
|
|
11382
11303
|
|
|
11383
11304
|
/**
|
|
11384
11305
|
* 模态框类构件的抽象基类。
|