@next-core/brick-kit 2.160.1 → 2.160.3
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/dist/index.bundle.js +23 -17
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +23 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Runtime.d.ts.map +1 -1
- package/dist/types/core/StoryboardContext.d.ts.map +1 -1
- package/dist/types/internal/menu.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.bundle.js
CHANGED
|
@@ -1872,8 +1872,10 @@
|
|
|
1872
1872
|
mergedContext,
|
|
1873
1873
|
keyword
|
|
1874
1874
|
} = this.getResolveOptions(coreContext);
|
|
1875
|
-
|
|
1876
|
-
|
|
1875
|
+
if (Array.isArray(contextConfs) && contextConfs.length > 0) {
|
|
1876
|
+
var pending = brickUtils.deferResolveContextConcurrently(contextConfs, contextConf => resolveStoryboardContext(contextConf, mergedContext, this, brick), keyword);
|
|
1877
|
+
this.pendingStack.push(pending);
|
|
1878
|
+
}
|
|
1877
1879
|
}
|
|
1878
1880
|
define(contextConfs, coreContext, brick) {
|
|
1879
1881
|
var _this3 = this;
|
|
@@ -2772,20 +2774,23 @@
|
|
|
2772
2774
|
function _constructMenu() {
|
|
2773
2775
|
_constructMenu = _asyncToGenerator__default["default"](function* (menuBar, context, kernel) {
|
|
2774
2776
|
var hasSubMenu = !!menuBar.subMenuId;
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2777
|
+
yield Promise.all([_asyncToGenerator__default["default"](function* () {
|
|
2778
|
+
if (menuBar.menuId) {
|
|
2779
|
+
var _menuBar$menu;
|
|
2780
|
+
var defaultCollapsed = (_menuBar$menu = menuBar.menu) === null || _menuBar$menu === void 0 ? void 0 : _menuBar$menu.defaultCollapsed;
|
|
2781
|
+
var menu = yield processMenu(menuBar.menuId, context, kernel, hasSubMenu);
|
|
2782
|
+
if (!_.isNil(defaultCollapsed)) {
|
|
2783
|
+
menu.defaultCollapsed = defaultCollapsed;
|
|
2784
|
+
}
|
|
2785
|
+
menuBar.menu = menu;
|
|
2786
|
+
}
|
|
2787
|
+
})(), _asyncToGenerator__default["default"](function* () {
|
|
2788
|
+
if (hasSubMenu) {
|
|
2789
|
+
menuBar.subMenu = yield processMenu(menuBar.subMenuId, context, kernel);
|
|
2790
|
+
} else {
|
|
2791
|
+
menuBar.subMenu = null;
|
|
2781
2792
|
}
|
|
2782
|
-
|
|
2783
|
-
}
|
|
2784
|
-
if (hasSubMenu) {
|
|
2785
|
-
menuBar.subMenu = yield processMenu(menuBar.subMenuId, context, kernel);
|
|
2786
|
-
} else {
|
|
2787
|
-
menuBar.subMenu = null;
|
|
2788
|
-
}
|
|
2793
|
+
})()]);
|
|
2789
2794
|
});
|
|
2790
2795
|
return _constructMenu.apply(this, arguments);
|
|
2791
2796
|
}
|
|
@@ -2866,8 +2871,8 @@
|
|
|
2866
2871
|
(function () {
|
|
2867
2872
|
var menuI18nNamespace = getI18nNamespace("menu", "".concat(menu.menuId, "~").concat(menu.app[0].appId, "+").concat(menu.instanceId));
|
|
2868
2873
|
// Support any language in `meta.i18n`.
|
|
2869
|
-
Object.entries(menu.i18n).forEach(
|
|
2870
|
-
var [lang, resources] =
|
|
2874
|
+
Object.entries(menu.i18n).forEach(_ref6 => {
|
|
2875
|
+
var [lang, resources] = _ref6;
|
|
2871
2876
|
i18next__default["default"].addResourceBundle(lang, menuI18nNamespace, resources);
|
|
2872
2877
|
});
|
|
2873
2878
|
menuWithI18n.set(menu, menuI18nNamespace);
|
|
@@ -3260,6 +3265,7 @@
|
|
|
3260
3265
|
bootstrapData: kernel.bootstrapData,
|
|
3261
3266
|
getFeatureFlags: kernel.getFeatureFlags.bind(kernel),
|
|
3262
3267
|
loadDynamicBricksInBrickConf: kernel.loadDynamicBricksInBrickConf.bind(kernel),
|
|
3268
|
+
loadDynamicBricks: kernel.loadDynamicBricks.bind(kernel),
|
|
3263
3269
|
getProviderBrick: kernel.getProviderBrick.bind(kernel)
|
|
3264
3270
|
}, overrides);
|
|
3265
3271
|
}
|