@commercetools-frontend/application-shell 21.20.1 → 21.20.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/{application-entry-point-00b3448b.esm.js → application-entry-point-1aca41cb.esm.js} +2 -2
- package/dist/{application-entry-point-02e7becc.cjs.prod.js → application-entry-point-b0366ae4.cjs.prod.js} +2 -2
- package/dist/{application-entry-point-b7581f58.cjs.dev.js → application-entry-point-d4366e21.cjs.dev.js} +2 -2
- package/dist/box-d849ea03.cjs.prod.js +34 -0
- package/dist/box-dd9e7e68.esm.js +21 -0
- package/dist/box-fdb2ccb6.cjs.dev.js +34 -0
- package/dist/cart-167fea3b.esm.js +21 -0
- package/dist/cart-ad0aba9b.cjs.prod.js +34 -0
- package/dist/cart-b92f3a8e.cjs.dev.js +34 -0
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +4 -4
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +4 -4
- package/dist/commercetools-frontend-application-shell.esm.js +4 -4
- package/dist/connected-square-4743b7de.esm.js +21 -0
- package/dist/connected-square-abf36852.cjs.prod.js +34 -0
- package/dist/connected-square-ac52014f.cjs.dev.js +34 -0
- package/dist/{constants-41338dec.cjs.dev.js → constants-22e3b93b.cjs.dev.js} +1 -1
- package/dist/{constants-0d48a7ae.esm.js → constants-84bfc123.esm.js} +1 -1
- package/dist/{constants-9ffc458b.cjs.prod.js → constants-d3b01ef6.cjs.prod.js} +1 -1
- package/dist/declarations/src/components/navbar/compiled/navbar.css.json.d.ts +1 -1
- package/dist/declarations/src/components/navbar/legacy-icons/box.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/cart.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/connected-square.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/gear.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/heart.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/list-with-search.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/paperclip.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/plugin.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/rocket.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/speedometer.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/star.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/tag-multi.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/tree-structure.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/user-filled.d.ts +2 -0
- package/dist/declarations/src/components/navbar/legacy-icons/world.d.ts +2 -0
- package/dist/declarations/src/components/navbar/navbar.d.ts +1 -1
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +3 -2
- package/dist/declarations/src/constants.d.ts +1 -1
- package/dist/declarations/src/types/generated/proxy.d.ts +0 -1
- package/dist/gear-28ff4f04.cjs.dev.js +34 -0
- package/dist/gear-6f8c30e3.cjs.prod.js +34 -0
- package/dist/gear-8418cd46.esm.js +21 -0
- package/dist/heart-33cd94c6.cjs.prod.js +34 -0
- package/dist/heart-48c28091.esm.js +21 -0
- package/dist/heart-fb31cf30.cjs.dev.js +34 -0
- package/dist/{index-df03ccb2.cjs.prod.js → index-0640c1a3.cjs.prod.js} +210 -131
- package/dist/{index-68548adf.cjs.dev.js → index-38d6bc43.cjs.dev.js} +211 -132
- package/dist/{index-207f5c81.esm.js → index-c828d4d5.esm.js} +199 -120
- package/dist/list-with-search-34cd926c.cjs.dev.js +34 -0
- package/dist/list-with-search-a0b22169.cjs.prod.js +34 -0
- package/dist/list-with-search-c154a56e.esm.js +21 -0
- package/dist/{oidc-a2126dac.cjs.dev.js → oidc-6c75da08.cjs.dev.js} +1 -1
- package/dist/{oidc-4c509f49.esm.js → oidc-78a9ec10.esm.js} +1 -1
- package/dist/{oidc-d13fc045.cjs.prod.js → oidc-8f79eea8.cjs.prod.js} +1 -1
- package/dist/paperclip-18785dda.esm.js +21 -0
- package/dist/paperclip-2cd45b86.cjs.dev.js +34 -0
- package/dist/paperclip-b1b806ab.cjs.prod.js +34 -0
- package/dist/plugin-53c047bb.esm.js +21 -0
- package/dist/plugin-7cb7827e.cjs.dev.js +34 -0
- package/dist/plugin-e97ae3e6.cjs.prod.js +34 -0
- package/dist/{project-expired-ee249410.esm.js → project-expired-70751095.esm.js} +5 -5
- package/dist/{project-expired-d0249e2f.cjs.prod.js → project-expired-90f6bbf5.cjs.prod.js} +5 -5
- package/dist/{project-expired-d023f40e.cjs.dev.js → project-expired-fb5f83a9.cjs.dev.js} +5 -5
- package/dist/{project-not-found-7692aaa6.cjs.prod.js → project-not-found-9dbfe0c4.cjs.prod.js} +5 -5
- package/dist/{project-not-found-ed9156ef.esm.js → project-not-found-eda93717.esm.js} +5 -5
- package/dist/{project-not-found-a5a71075.cjs.dev.js → project-not-found-eee8530b.cjs.dev.js} +5 -5
- package/dist/{project-not-initialized-2a5bfaa8.cjs.dev.js → project-not-initialized-2cf57a32.cjs.dev.js} +5 -5
- package/dist/{project-not-initialized-60ff7512.cjs.prod.js → project-not-initialized-9cd511ca.cjs.prod.js} +5 -5
- package/dist/{project-not-initialized-bd37966e.esm.js → project-not-initialized-ffc72a7b.esm.js} +5 -5
- package/dist/{project-suspended-a9542758.cjs.prod.js → project-suspended-0fdbcf50.cjs.prod.js} +5 -5
- package/dist/{project-suspended-cdfacb79.esm.js → project-suspended-a2836938.esm.js} +5 -5
- package/dist/{project-suspended-decfe5cf.cjs.dev.js → project-suspended-c63e2c55.cjs.dev.js} +5 -5
- package/dist/{quick-access-bce69ccc.cjs.prod.js → quick-access-1c9b4a9b.cjs.prod.js} +4 -4
- package/dist/{quick-access-5db0d976.esm.js → quick-access-1d95646e.esm.js} +4 -4
- package/dist/{quick-access-4cb36c6f.cjs.dev.js → quick-access-adb93f12.cjs.dev.js} +4 -4
- package/dist/rocket-37c1aa11.cjs.dev.js +34 -0
- package/dist/rocket-b2dbda7f.cjs.prod.js +34 -0
- package/dist/rocket-ba116b5e.esm.js +21 -0
- package/dist/{service-page-project-switcher-99549f6d.cjs.dev.js → service-page-project-switcher-0955a880.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-b816f019.cjs.prod.js → service-page-project-switcher-bbdbeafb.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-f5cda3e7.esm.js → service-page-project-switcher-c2c4aee2.esm.js} +1 -1
- package/dist/speedometer-13b393fb.cjs.dev.js +34 -0
- package/dist/speedometer-1e69fd13.cjs.prod.js +34 -0
- package/dist/speedometer-c1b94505.esm.js +21 -0
- package/dist/star-ab4be629.cjs.prod.js +34 -0
- package/dist/star-da9123e0.esm.js +21 -0
- package/dist/star-e165111e.cjs.dev.js +34 -0
- package/dist/tag-multi-5f498a7d.cjs.dev.js +34 -0
- package/dist/tag-multi-c650b738.esm.js +21 -0
- package/dist/tag-multi-fb817131.cjs.prod.js +34 -0
- package/dist/tree-structure-6af6fc3a.esm.js +21 -0
- package/dist/tree-structure-779fcc36.cjs.prod.js +34 -0
- package/dist/tree-structure-ed6cdff8.cjs.dev.js +34 -0
- package/dist/user-filled-384a2eaf.cjs.prod.js +34 -0
- package/dist/user-filled-41729d77.esm.js +21 -0
- package/dist/user-filled-53d2eae0.cjs.dev.js +34 -0
- package/dist/world-12528632.cjs.prod.js +34 -0
- package/dist/world-6471d9f6.cjs.dev.js +34 -0
- package/dist/world-d91df1ee.esm.js +21 -0
- package/package.json +27 -27
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var applicationEntryPoint = require('./application-entry-point-
|
|
3
|
+
var applicationEntryPoint = require('./application-entry-point-b0366ae4.cjs.prod.js');
|
|
4
4
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
5
5
|
var _styled = require('@emotion/styled/base');
|
|
6
6
|
var _pt = require('prop-types');
|
|
@@ -24,7 +24,7 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
|
|
|
24
24
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
25
25
|
var reactNotifications = require('@commercetools-frontend/react-notifications');
|
|
26
26
|
var i18n = require('@commercetools-frontend/i18n');
|
|
27
|
-
var constants = require('./constants-
|
|
27
|
+
var constants = require('./constants-d3b01ef6.cjs.prod.js');
|
|
28
28
|
var uuid = require('uuid');
|
|
29
29
|
var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
|
|
30
30
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
@@ -38,7 +38,7 @@ var reactRedux = require('react-redux');
|
|
|
38
38
|
var history = require('@commercetools-frontend/browser-history');
|
|
39
39
|
var reactIntl = require('react-intl');
|
|
40
40
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
41
|
-
var oidc = require('./oidc-
|
|
41
|
+
var oidc = require('./oidc-8f79eea8.cjs.prod.js');
|
|
42
42
|
var qss = require('qss');
|
|
43
43
|
var jwtDecode = require('jwt-decode');
|
|
44
44
|
var FailedAuthenticationSVG = require('@commercetools-frontend/assets/images/locked-diamond.svg');
|
|
@@ -1443,7 +1443,7 @@ FetchProject.displayName = 'FetchProject';
|
|
|
1443
1443
|
function ownKeys$a(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1444
1444
|
|
|
1445
1445
|
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$a(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$a(Object(source))).call(_context4, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
1446
|
-
var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "navBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "
|
|
1446
|
+
var FetchApplicationsMenu = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchApplicationsMenu" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applicationsMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "navBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "dataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "menuVisibility" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "actionRights" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "dataFences" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "group" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "appBar" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 823, source: { body: "query FetchApplicationsMenu {\n applicationsMenu {\n navBar {\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n dataFences {\n group\n name\n type\n }\n actionRights {\n group\n name\n }\n submenu {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n menuVisibility\n permissions\n actionRights {\n group\n name\n }\n dataFences {\n group\n name\n type\n }\n }\n }\n appBar {\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
1447
1447
|
var supportedLocales = ['en', 'de', 'es', 'fr-FR', 'zh-CN', 'ja'];
|
|
1448
1448
|
var defaultApiUrl$1 = window.location.origin;
|
|
1449
1449
|
|
|
@@ -1492,7 +1492,6 @@ var mapApplicationMenuConfigToGraqhQLQueryResult = function mapApplicationMenuCo
|
|
|
1492
1492
|
__typename: 'ApplicationsMenu',
|
|
1493
1493
|
navBar: menuLinks ? [{
|
|
1494
1494
|
__typename: 'NavbarMenu',
|
|
1495
|
-
shouldRenderDivider: false,
|
|
1496
1495
|
key: entryPointUriPath,
|
|
1497
1496
|
uriPath: entryPointUriPath,
|
|
1498
1497
|
icon: menuLinks.icon,
|
|
@@ -2392,19 +2391,19 @@ var LocaleSwitcher = function LocaleSwitcher(props) {
|
|
|
2392
2391
|
LocaleSwitcher.propTypes = {};
|
|
2393
2392
|
|
|
2394
2393
|
var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
|
|
2395
|
-
return Promise.resolve().then(function () { return require('./project-not-found-
|
|
2394
|
+
return Promise.resolve().then(function () { return require('./project-not-found-9dbfe0c4.cjs.prod.js'
|
|
2396
2395
|
/* webpackChunkName: "project-not-found" */
|
|
2397
2396
|
); });
|
|
2398
2397
|
});
|
|
2399
2398
|
|
|
2400
2399
|
var ProjectExpired = /*#__PURE__*/react.lazy(function () {
|
|
2401
|
-
return Promise.resolve().then(function () { return require('./project-expired-
|
|
2400
|
+
return Promise.resolve().then(function () { return require('./project-expired-90f6bbf5.cjs.prod.js'
|
|
2402
2401
|
/* webpackChunkName: "project-expired" */
|
|
2403
2402
|
); });
|
|
2404
2403
|
});
|
|
2405
2404
|
|
|
2406
2405
|
var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
|
|
2407
|
-
return Promise.resolve().then(function () { return require('./project-not-initialized-
|
|
2406
|
+
return Promise.resolve().then(function () { return require('./project-not-initialized-9cd511ca.cjs.prod.js'
|
|
2408
2407
|
/* webpackChunkName: "project-not-initialized" */
|
|
2409
2408
|
); });
|
|
2410
2409
|
});
|
|
@@ -2451,7 +2450,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
|
|
|
2451
2450
|
RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
|
|
2452
2451
|
|
|
2453
2452
|
var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
|
|
2454
|
-
return Promise.resolve().then(function () { return require('./project-suspended-
|
|
2453
|
+
return Promise.resolve().then(function () { return require('./project-suspended-0fdbcf50.cjs.prod.js'
|
|
2455
2454
|
/* webpackChunkName: "project-suspended" */
|
|
2456
2455
|
); });
|
|
2457
2456
|
});
|
|
@@ -2781,8 +2780,10 @@ SetupFlopFlipProvider.displayName = 'SetupFlopFlipProvider';
|
|
|
2781
2780
|
|
|
2782
2781
|
var ThemeSwitcher = function ThemeSwitcher() {
|
|
2783
2782
|
var isNewThemeEnabled = reactBroadcast.useFeatureToggle(UI_REDESIGN);
|
|
2783
|
+
var theme = isNewThemeEnabled ? 'test' : 'default';
|
|
2784
2784
|
return jsxRuntime.jsx(designSystem.ThemeProvider, {
|
|
2785
|
-
theme:
|
|
2785
|
+
theme: theme,
|
|
2786
|
+
themeOverrides: applicationComponents.themesOverrides[theme]
|
|
2786
2787
|
});
|
|
2787
2788
|
};
|
|
2788
2789
|
|
|
@@ -2840,7 +2841,7 @@ function nonNullable(value) {
|
|
|
2840
2841
|
|
|
2841
2842
|
function ownKeys$4(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2842
2843
|
|
|
2843
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var
|
|
2844
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$4(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$4(Object(source))).call(_context8, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
2844
2845
|
var FetchProjectExtensionsNavbar = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProjectExtensionsNavbar" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "projectExtension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "applications" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "ObjectValue", fields: [{ kind: "ObjectField", name: { kind: "Name", value: "isActive" }, value: { kind: "BooleanValue", value: true } }] } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "navbarMenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "submenu" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "featureToggle" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "installedApplications" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "application" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "entryPointUriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "mainMenuLink" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "submenuLinks" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 984, source: { body: "query FetchProjectExtensionsNavbar {\n projectExtension {\n id\n applications(where: { isActive: true }) {\n id\n navbarMenu {\n id\n key\n uriPath\n icon\n labelAllLocales {\n locale\n value\n }\n featureToggle\n permissions\n submenu {\n id\n key\n uriPath\n labelAllLocales {\n locale\n value\n }\n permissions\n featureToggle\n }\n }\n }\n installedApplications {\n application {\n id\n entryPointUriPath\n icon\n mainMenuLink {\n id\n permissions\n defaultLabel\n labelAllLocales {\n locale\n value\n }\n }\n submenuLinks {\n id\n uriPath\n permissions\n defaultLabel\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
2845
2846
|
|
|
2846
2847
|
var getInitialState = function getInitialState(isForcedMenuOpen) {
|
|
@@ -2890,7 +2891,7 @@ var reducer = function reducer(state, action) {
|
|
|
2890
2891
|
};
|
|
2891
2892
|
|
|
2892
2893
|
var useNavbarStateManager = function useNavbarStateManager(props) {
|
|
2893
|
-
var _context, _context2, _context4, _context5
|
|
2894
|
+
var _context, _context2, _context4, _context5;
|
|
2894
2895
|
|
|
2895
2896
|
var navBarNode = react.useRef(null);
|
|
2896
2897
|
var applicationsNavBarMenu = useApplicationsMenu('navBar', {
|
|
@@ -2939,8 +2940,7 @@ var useNavbarStateManager = function useNavbarStateManager(props) {
|
|
|
2939
2940
|
}),
|
|
2940
2941
|
menuVisibility: undefined,
|
|
2941
2942
|
actionRights: undefined,
|
|
2942
|
-
dataFences: undefined
|
|
2943
|
-
shouldRenderDivider: false
|
|
2943
|
+
dataFences: undefined
|
|
2944
2944
|
};
|
|
2945
2945
|
})).call(_context, nonNullable) : [];
|
|
2946
2946
|
var organizationCustomAppsMenu = projectExtensionsQuery && projectExtensionsQuery.projectExtension && projectExtensionsQuery.projectExtension.installedApplications ? _filterInstanceProperty__default["default"](_context4 = _mapInstanceProperty__default["default"](_context5 = projectExtensionsQuery.projectExtension.installedApplications).call(_context5, function (installedApplication) {
|
|
@@ -2962,7 +2962,6 @@ var useNavbarStateManager = function useNavbarStateManager(props) {
|
|
|
2962
2962
|
menuVisibility: undefined,
|
|
2963
2963
|
actionRights: undefined,
|
|
2964
2964
|
dataFences: undefined,
|
|
2965
|
-
shouldRenderDivider: false,
|
|
2966
2965
|
submenu: _mapInstanceProperty__default["default"](_context6 = application.submenuLinks || []).call(_context6, function (submenuLink) {
|
|
2967
2966
|
return {
|
|
2968
2967
|
key: submenuLink.id,
|
|
@@ -3062,15 +3061,17 @@ var useNavbarStateManager = function useNavbarStateManager(props) {
|
|
|
3062
3061
|
|
|
3063
3062
|
window.localStorage.setItem(constants.STORAGE_KEYS.IS_FORCED_MENU_OPEN, String(!state.isMenuOpen));
|
|
3064
3063
|
}, [state.activeItemIndex, state.isMenuOpen]);
|
|
3064
|
+
var allInternalApplicationsNavbarMenu = applicationsNavBarMenu || [];
|
|
3065
3065
|
|
|
3066
|
-
var
|
|
3066
|
+
var allCustomApplicationsNavbarMenu = _concatInstanceProperty__default["default"](legacyCustomAppsMenu).call(legacyCustomAppsMenu, organizationCustomAppsMenu);
|
|
3067
3067
|
|
|
3068
3068
|
return _objectSpread$4(_objectSpread$4({}, state), {}, {
|
|
3069
3069
|
navBarNode: navBarNode,
|
|
3070
3070
|
handleToggleItem: handleToggleItem,
|
|
3071
3071
|
handleToggleMenu: handleToggleMenu,
|
|
3072
3072
|
shouldCloseMenuFly: shouldCloseMenuFly,
|
|
3073
|
-
|
|
3073
|
+
allInternalApplicationsNavbarMenu: allInternalApplicationsNavbarMenu,
|
|
3074
|
+
allCustomApplicationsNavbarMenu: allCustomApplicationsNavbarMenu
|
|
3074
3075
|
});
|
|
3075
3076
|
};
|
|
3076
3077
|
|
|
@@ -3098,21 +3099,20 @@ function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys__default["d
|
|
|
3098
3099
|
|
|
3099
3100
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context11, _context12; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context11 = ownKeys$3(Object(source), !0)).call(_context11, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context12 = ownKeys$3(Object(source))).call(_context12, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
3100
3101
|
var compiledStyles = {
|
|
3101
|
-
"global": ":root {\n\n /* Left navigation */\n}\n\n/* Left Nav */\n\n.navbar-mod__left-navigation___n7yUt {\n display: flex;\n flex-grow: 1;\n width: 64px;\n z-index: 19999;\n background: var(--color-accent);\n}\n\n.navbar-mod__list___RCV3J {\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1 1 0;\n}\n\n.body__menu-open .navbar-mod__scrollable-menu___64pxJ {\n flex: 1 1 0;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.navbar-mod__list-item___MjK6t {\n width: 64px;\n height:
|
|
3102
|
+
"global": ":root {\n\n /* Left navigation */\n}\n\n/* Left Nav */\n\n.navbar-mod__left-navigation___n7yUt {\n display: flex;\n flex-grow: 1;\n width: 64px;\n z-index: 19999;\n background: var(--color-accent);\n}\n\n.navbar-mod__list___RCV3J {\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1 1 0;\n}\n\n.body__menu-open .navbar-mod__scrollable-menu___64pxJ {\n flex: 1 1 0;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.navbar-mod__list-item___MjK6t {\n width: 64px;\n height: 56px;\n background: var(--color-accent);\n margin: 0;\n list-style: none;\n cursor: pointer;\n}\n\n.navbar-mod__item-link___X2Ina {\n color: var(--color-surface);\n padding: var(--spacing-m);\n width: 100%;\n position: relative;\n display: block;\n}\n\n.navbar-mod__item__active___lo1sr .navbar-mod__item-link___X2Ina {\n padding-right: var(--spacing-l);\n}\n\n.navbar-mod__list-item___MjK6t .navbar-mod__item-icon-text___a-8JY {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n\n.navbar-mod__list-item___MjK6t .navbar-mod__icon___bLsep {\n width: 24px;\n height: 24px;\n}\n\n.navbar-mod__list-item___MjK6t .navbar-mod__title___eRWUj {\n flex: 1;\n font-weight: 500;\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n font-size: var(--font-size-for-nav-bar-link);\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n line-height: var(--line-height-for-nav-bar-link);\n color: var(--color-surface);\n display: none;\n opacity: 0;\n transition: all 0.25s ease-in-out;\n text-align: left;\n text-decoration: none;\n}\n\n.navbar-mod__expander___jyAUi {\n border-top: 1px solid var(--color-neutral-40);\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: transparent;\n}\n\n.navbar-mod__expander___jyAUi:hover {\n background: transparent !important;\n}\n\n.navbar-mod__expand-icon___BtmRa {\n align-items: center;\n border-radius: 32px;\n cursor: pointer;\n display: flex;\n height: 24px;\n justify-content: center;\n transform: translateX(0) rotateZ(0deg);\n width: 24px;\n}\n\n.navbar-mod__item--bottom___eW7nh {\n position: absolute;\n bottom: 50px;\n}\n\n.navbar-mod__list-item___MjK6t:hover {\n background-color: var(--color-accent-30);\n}\n\n.navbar-mod__item__active___lo1sr .navbar-mod__title___eRWUj {\n opacity: 1;\n display: block;\n transition: all 0.2s ease;\n}\n\n.navbar-mod__item_menu-open___zk0zh {\n height: auto !important;\n}\n\n/* NO SUBMENU */\n\n.navbar-mod__item__no-submenu___0lmiH,\n.navbar-mod__item_menu-collapsed___cluyY {\n height: 56px !important;\n}\n\n.navbar-mod__item_menu-collapsed___cluyY .navbar-mod__item-link___X2Ina {\n text-align: center;\n}\n\n.navbar-mod__item__no-submenu___0lmiH .navbar-mod__title___eRWUj {\n border-bottom: 0;\n}\n\n.navbar-mod__item__no-submenu___0lmiH .navbar-mod__sublist___os1s7 {\n padding-top: 40px;\n}\n\n/* left-nav open */\n\n.body__menu-open .navbar-mod__title___eRWUj {\n color: var(--color-surface);\n font-weight: 500;\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n font-size: var(--font-size-for-nav-bar-link);\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n line-height: var(--line-height-for-nav-bar-link);\n}\n\n.body__menu-open .navbar-mod__left-navigation___n7yUt {\n box-shadow: 6px 0 10px rgba(0, 0, 0, 0.16);\n}\n\n.body__menu-open .navbar-mod__list-item___MjK6t {\n height: auto;\n min-height: 56px;\n max-height: 0;\n transition: max-height 0.15s ease-out;\n overflow: hidden;\n}\n\n.body__menu-open .navbar-mod__left-navigation___n7yUt,\n.body__menu-open .navbar-mod__list-item___MjK6t {\n width: 245px;\n}\n\n.body__menu-open .navbar-mod__list-item___MjK6t .navbar-mod__title___eRWUj {\n display: block;\n opacity: 1;\n margin-left: var(--spacing-m);\n color: var(--color-surface);\n}\n\n.body__menu-open .navbar-mod__expand-icon___BtmRa {\n transform: translateX(0) rotateZ(180deg);\n}\n\n.body__menu-open .navbar-mod__item__active___lo1sr {\n max-height: 500px;\n transition: max-height 0.25s ease-in;\n}\n\n.body__menu-open .navbar-mod__sublist___os1s7 {\n position: relative;\n z-index: 1;\n left: 0;\n margin: 0 0 0 calc(\n 24px + var(--spacing-m) + 4px + 4px\n );\n padding: var(--spacing-m) 0 0;\n background-color: transparent;\n}\n\n.body__menu-open .navbar-mod__sublist___os1s7.navbar-mod__sublist-no-children___Dy-h- {\n border: 0;\n}\n\n.body__menu-open .navbar-mod__title-copy___o2y1q {\n font-weight: 400;\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n font-size: var(--font-size-for-nav-bar-link);\n color: white;\n text-decoration: none;\n transition: all 0.15s ease;\n}\n\n.body__menu-open .navbar-mod__title-copy___o2y1q:hover {\n color: var(--color-primary-40);\n}\n\n.body__menu-open .navbar-mod__expander___jyAUi {\n min-height: 50px;\n justify-content: flex-end;\n padding: var(--spacing-m);\n}\n\n/* Second level menu */\n\n.navbar-mod__sublist___os1s7 {\n padding: 55px var(--spacing-l) var(--spacing-m);\n font-weight: 400;\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n font-size: var(--font-size-for-nav-bar-link);\n position: absolute;\n background-color: var(--color-accent-30);\n top: 0;\n left: 64px;\n z-index: -1;\n list-style: none;\n opacity: 0.01;\n visibility: hidden;\n}\n\n.navbar-mod__sublist__inactive___kJvf- {\n /* empty block */\n}\n\n.navbar-mod__sublist-item___gafkS {\n padding: var(--spacing-s) 0 0;\n}\n\n.navbar-mod__sublist-item___gafkS:first-of-type {\n padding: 0;\n}\n\n.navbar-mod__sublist-item___gafkS:hover {\n color: var(--color-primary-40);\n}\n\n.navbar-mod__text___ccHEu {\n font-weight: 400;\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n font-size: var(--font-size-for-nav-bar-link);\n /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */\n line-height: var(--line-height-for-nav-bar-link);\n}\n\n.navbar-mod__text-link___dhtj6 {\n color: white;\n text-decoration: none;\n transition: all 0.15s ease;\n}\n\n.navbar-mod__text-link___dhtj6:hover {\n color: var(--color-primary-40);\n}\n\n/* Item active */\n\n.navbar-mod__item__active___lo1sr {\n background: var(--color-accent-30);\n}\n\n.navbar-mod__list-item___MjK6t.navbar-mod__item__active___lo1sr .navbar-mod__item-icon-text___a-8JY {\n width: calc(\n 205px + 64px -\n var(--spacing-m) * 2\n );\n justify-content: flex-start;\n}\n\n.navbar-mod__list-item___MjK6t .navbar-mod__icon-container___w3FtA {\n width: calc(24px + 4px * 2);\n display: flex;\n justify-content: center;\n align-self: flex-start;\n}\n\n.navbar-mod__fixed-menu___42tD9 .navbar-mod__list-item___MjK6t .navbar-mod__item-icon-text___a-8JY {\n justify-content: flex-start;\n display: flex;\n width: 100%;\n}\n\n.navbar-mod__fixed-menu___42tD9 .navbar-mod__list-item___MjK6t .navbar-mod__icon-container___w3FtA {\n /* empty block */\n}\n\n.body__menu-open .navbar-mod__list-item___MjK6t.navbar-mod__item__active___lo1sr .navbar-mod__item-icon-text___a-8JY {\n position: relative;\n width: auto;\n}\n\n.navbar-mod__list-item___MjK6t.navbar-mod__item__active___lo1sr .navbar-mod__item-icon-text___a-8JY .navbar-mod__title___eRWUj {\n margin-left: 40px;\n}\n\n.body__menu-open .navbar-mod__list-item___MjK6t.navbar-mod__item__active___lo1sr .navbar-mod__item-icon-text___a-8JY .navbar-mod__title___eRWUj {\n margin-left: var(--spacing-m);\n}\n\n.body__menu-open .navbar-mod__list-item___MjK6t.navbar-mod__item__active___lo1sr .navbar-mod__item-icon-text___a-8JY {\n margin-left: 0;\n}\n\n.navbar-mod__list-item___MjK6t.navbar-mod__item__active___lo1sr .navbar-mod__sublist___os1s7 {\n width: 205px;\n}\n\n.body__menu-open .navbar-mod__list-item___MjK6t.navbar-mod__item__active___lo1sr .navbar-mod__sublist___os1s7 {\n width: calc(100% - calc(\n 24px + var(--spacing-m) + 4px + 4px\n ));\n}\n\n.navbar-mod__sublist-expanded__active___240JK,\n.navbar-mod__sublist-collapsed__active___-9vYh {\n opacity: 1;\n visibility: visible;\n text-align: left;\n}\n\n.navbar-mod__highlighted___oJWkA {\n color: var(--color-primary-40) !important;\n}\n\n.navbar-mod__hidden___TQLSs {\n display: none;\n}\n\n.navbar-mod__divider___TpVzu {\n border-top: 1px solid var(--color-neutral-40);\n}\n\n.navbar-mod__loading-dot-container___G2LVb {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.navbar-mod__scrollable-menu___64pxJ {\n flex: 1 1 0;\n}\n\n.navbar-mod__fixed-menu___42tD9 {\n flex: 0 0 0;\n}\n",
|
|
3102
3103
|
"jsonMap": {
|
|
3103
3104
|
"left-navigation": "navbar-mod__left-navigation___n7yUt",
|
|
3104
3105
|
"list": "navbar-mod__list___RCV3J",
|
|
3105
3106
|
"scrollable-menu": "navbar-mod__scrollable-menu___64pxJ",
|
|
3106
3107
|
"list-item": "navbar-mod__list-item___MjK6t",
|
|
3107
3108
|
"item-link": "navbar-mod__item-link___X2Ina",
|
|
3109
|
+
"item__active": "navbar-mod__item__active___lo1sr",
|
|
3108
3110
|
"item-icon-text": "navbar-mod__item-icon-text___a-8JY",
|
|
3109
3111
|
"icon": "navbar-mod__icon___bLsep",
|
|
3110
3112
|
"title": "navbar-mod__title___eRWUj",
|
|
3111
|
-
"title-user-voice": "navbar-mod__title-user-voice___oOLj8 navbar-mod__title___eRWUj",
|
|
3112
3113
|
"expander": "navbar-mod__expander___jyAUi",
|
|
3113
3114
|
"expand-icon": "navbar-mod__expand-icon___BtmRa",
|
|
3114
3115
|
"item--bottom": "navbar-mod__item--bottom___eW7nh",
|
|
3115
|
-
"item__active": "navbar-mod__item__active___lo1sr",
|
|
3116
3116
|
"item_menu-open": "navbar-mod__item_menu-open___zk0zh",
|
|
3117
3117
|
"item__no-submenu": "navbar-mod__item__no-submenu___0lmiH",
|
|
3118
3118
|
"item_menu-collapsed": "navbar-mod__item_menu-collapsed___cluyY",
|
|
@@ -3123,19 +3123,77 @@ var compiledStyles = {
|
|
|
3123
3123
|
"sublist-item": "navbar-mod__sublist-item___gafkS",
|
|
3124
3124
|
"text": "navbar-mod__text___ccHEu",
|
|
3125
3125
|
"text-link": "navbar-mod__text-link___dhtj6",
|
|
3126
|
-
"
|
|
3126
|
+
"icon-container": "navbar-mod__icon-container___w3FtA",
|
|
3127
|
+
"fixed-menu": "navbar-mod__fixed-menu___42tD9",
|
|
3127
3128
|
"sublist-expanded__active": "navbar-mod__sublist-expanded__active___240JK",
|
|
3128
3129
|
"sublist-collapsed__active": "navbar-mod__sublist-collapsed__active___-9vYh",
|
|
3129
3130
|
"highlighted": "navbar-mod__highlighted___oJWkA",
|
|
3130
3131
|
"hidden": "navbar-mod__hidden___TQLSs",
|
|
3131
|
-
"divider
|
|
3132
|
-
"
|
|
3133
|
-
"loading-dot-container": "navbar-mod__loading-dot-container___G2LVb",
|
|
3134
|
-
"fixed-menu": "navbar-mod__fixed-menu___42tD9"
|
|
3132
|
+
"divider": "navbar-mod__divider___TpVzu",
|
|
3133
|
+
"loading-dot-container": "navbar-mod__loading-dot-container___G2LVb"
|
|
3135
3134
|
}
|
|
3136
3135
|
};
|
|
3137
3136
|
var styles$1 = compiledStyles.jsonMap;
|
|
3138
3137
|
|
|
3138
|
+
/*
|
|
3139
|
+
<DataMenu data={[]}>
|
|
3140
|
+
<MenuGroup>
|
|
3141
|
+
<MenuItem>
|
|
3142
|
+
<MenuItemLink linkTo="/foo">(icon) Products</MenuItemLink>
|
|
3143
|
+
<MenuGroup>
|
|
3144
|
+
<MenuItemLink linkTo="/foo/new">Add product</MenuItemLink>
|
|
3145
|
+
</MenuGroup>
|
|
3146
|
+
</MenuItem>
|
|
3147
|
+
</MenuGroup>
|
|
3148
|
+
<MenuExpander/>
|
|
3149
|
+
</DataMenu>
|
|
3150
|
+
*/
|
|
3151
|
+
var HeartIcon = /*#__PURE__*/react.lazy(function () {
|
|
3152
|
+
return Promise.resolve().then(function () { return require('./heart-33cd94c6.cjs.prod.js'); });
|
|
3153
|
+
});
|
|
3154
|
+
var PaperclipIcon = /*#__PURE__*/react.lazy(function () {
|
|
3155
|
+
return Promise.resolve().then(function () { return require('./paperclip-b1b806ab.cjs.prod.js'); });
|
|
3156
|
+
});
|
|
3157
|
+
var PluginIcon = /*#__PURE__*/react.lazy(function () {
|
|
3158
|
+
return Promise.resolve().then(function () { return require('./plugin-e97ae3e6.cjs.prod.js'); });
|
|
3159
|
+
});
|
|
3160
|
+
var RocketIcon = /*#__PURE__*/react.lazy(function () {
|
|
3161
|
+
return Promise.resolve().then(function () { return require('./rocket-b2dbda7f.cjs.prod.js'); });
|
|
3162
|
+
});
|
|
3163
|
+
var StarIcon = /*#__PURE__*/react.lazy(function () {
|
|
3164
|
+
return Promise.resolve().then(function () { return require('./star-ab4be629.cjs.prod.js'); });
|
|
3165
|
+
});
|
|
3166
|
+
var ConnectedSquareIcon = /*#__PURE__*/react.lazy(function () {
|
|
3167
|
+
return Promise.resolve().then(function () { return require('./connected-square-abf36852.cjs.prod.js'); });
|
|
3168
|
+
});
|
|
3169
|
+
var WorldIcon = /*#__PURE__*/react.lazy(function () {
|
|
3170
|
+
return Promise.resolve().then(function () { return require('./world-12528632.cjs.prod.js'); });
|
|
3171
|
+
});
|
|
3172
|
+
var TreeStructureIcon = /*#__PURE__*/react.lazy(function () {
|
|
3173
|
+
return Promise.resolve().then(function () { return require('./tree-structure-779fcc36.cjs.prod.js'); });
|
|
3174
|
+
});
|
|
3175
|
+
var UserFilledIcon = /*#__PURE__*/react.lazy(function () {
|
|
3176
|
+
return Promise.resolve().then(function () { return require('./user-filled-384a2eaf.cjs.prod.js'); });
|
|
3177
|
+
});
|
|
3178
|
+
var SpeedometerIcon = /*#__PURE__*/react.lazy(function () {
|
|
3179
|
+
return Promise.resolve().then(function () { return require('./speedometer-1e69fd13.cjs.prod.js'); });
|
|
3180
|
+
});
|
|
3181
|
+
var TagMultiIcon = /*#__PURE__*/react.lazy(function () {
|
|
3182
|
+
return Promise.resolve().then(function () { return require('./tag-multi-fb817131.cjs.prod.js'); });
|
|
3183
|
+
});
|
|
3184
|
+
var CartIcon = /*#__PURE__*/react.lazy(function () {
|
|
3185
|
+
return Promise.resolve().then(function () { return require('./cart-ad0aba9b.cjs.prod.js'); });
|
|
3186
|
+
});
|
|
3187
|
+
var BoxIcon = /*#__PURE__*/react.lazy(function () {
|
|
3188
|
+
return Promise.resolve().then(function () { return require('./box-d849ea03.cjs.prod.js'); });
|
|
3189
|
+
});
|
|
3190
|
+
var GearIcon = /*#__PURE__*/react.lazy(function () {
|
|
3191
|
+
return Promise.resolve().then(function () { return require('./gear-6f8c30e3.cjs.prod.js'); });
|
|
3192
|
+
});
|
|
3193
|
+
var ListWithSearchIcon = /*#__PURE__*/react.lazy(function () {
|
|
3194
|
+
return Promise.resolve().then(function () { return require('./list-with-search-a0b22169.cjs.prod.js'); });
|
|
3195
|
+
});
|
|
3196
|
+
|
|
3139
3197
|
// The icon is expected to be the `svg` document as a string.
|
|
3140
3198
|
// For backwards compatibility purposes, we still support the legacy "icon name",
|
|
3141
3199
|
// which we then map to one of the pre-defined icons.
|
|
@@ -3152,53 +3210,54 @@ var IconSwitcher = function IconSwitcher(_ref) {
|
|
|
3152
3210
|
|
|
3153
3211
|
|
|
3154
3212
|
switch (icon) {
|
|
3155
|
-
//
|
|
3213
|
+
// Legacy application icons
|
|
3214
|
+
// TODO: To be removed once MC applications icons updates are published
|
|
3156
3215
|
case 'TreeStructureIcon':
|
|
3157
|
-
return jsxRuntime.jsx(
|
|
3216
|
+
return jsxRuntime.jsx(TreeStructureIcon, _objectSpread$3({}, iconProps));
|
|
3158
3217
|
|
|
3159
3218
|
case 'UserFilledIcon':
|
|
3160
|
-
return jsxRuntime.jsx(
|
|
3219
|
+
return jsxRuntime.jsx(UserFilledIcon, _objectSpread$3({}, iconProps));
|
|
3161
3220
|
|
|
3162
3221
|
case 'SpeedometerIcon':
|
|
3163
|
-
return jsxRuntime.jsx(
|
|
3222
|
+
return jsxRuntime.jsx(SpeedometerIcon, _objectSpread$3({}, iconProps));
|
|
3164
3223
|
|
|
3165
3224
|
case 'TagMultiIcon':
|
|
3166
|
-
return jsxRuntime.jsx(
|
|
3225
|
+
return jsxRuntime.jsx(TagMultiIcon, _objectSpread$3({}, iconProps));
|
|
3167
3226
|
|
|
3168
3227
|
case 'CartIcon':
|
|
3169
|
-
return jsxRuntime.jsx(
|
|
3228
|
+
return jsxRuntime.jsx(CartIcon, _objectSpread$3({}, iconProps));
|
|
3170
3229
|
|
|
3171
3230
|
case 'BoxIcon':
|
|
3172
|
-
return jsxRuntime.jsx(
|
|
3231
|
+
return jsxRuntime.jsx(BoxIcon, _objectSpread$3({}, iconProps));
|
|
3173
3232
|
|
|
3174
3233
|
case 'GearIcon':
|
|
3175
|
-
return jsxRuntime.jsx(
|
|
3234
|
+
return jsxRuntime.jsx(GearIcon, _objectSpread$3({}, iconProps));
|
|
3176
3235
|
|
|
3177
3236
|
case 'ListWithSearchIcon':
|
|
3178
|
-
return jsxRuntime.jsx(
|
|
3237
|
+
return jsxRuntime.jsx(ListWithSearchIcon, _objectSpread$3({}, iconProps));
|
|
3179
3238
|
// Custom application icons set
|
|
3180
3239
|
|
|
3181
3240
|
case 'HeartIcon':
|
|
3182
|
-
return jsxRuntime.jsx(
|
|
3241
|
+
return jsxRuntime.jsx(HeartIcon, _objectSpread$3({}, iconProps));
|
|
3183
3242
|
|
|
3184
3243
|
case 'PaperclipIcon':
|
|
3185
|
-
return jsxRuntime.jsx(
|
|
3244
|
+
return jsxRuntime.jsx(PaperclipIcon, _objectSpread$3({}, iconProps));
|
|
3186
3245
|
|
|
3187
3246
|
case 'PluginIcon':
|
|
3188
|
-
return jsxRuntime.jsx(
|
|
3247
|
+
return jsxRuntime.jsx(PluginIcon, _objectSpread$3({}, iconProps));
|
|
3189
3248
|
|
|
3190
3249
|
case 'RocketIcon':
|
|
3191
|
-
return jsxRuntime.jsx(
|
|
3250
|
+
return jsxRuntime.jsx(RocketIcon, _objectSpread$3({}, iconProps));
|
|
3192
3251
|
|
|
3193
3252
|
case 'StarIcon':
|
|
3194
|
-
return jsxRuntime.jsx(
|
|
3253
|
+
return jsxRuntime.jsx(StarIcon, _objectSpread$3({}, iconProps));
|
|
3195
3254
|
|
|
3196
3255
|
case 'ConnectedSquareIcon':
|
|
3197
|
-
return jsxRuntime.jsx(
|
|
3256
|
+
return jsxRuntime.jsx(ConnectedSquareIcon, _objectSpread$3({}, iconProps));
|
|
3198
3257
|
// For backwards compatibility
|
|
3199
3258
|
|
|
3200
3259
|
case 'WorldIcon':
|
|
3201
|
-
return jsxRuntime.jsx(
|
|
3260
|
+
return jsxRuntime.jsx(WorldIcon, _objectSpread$3({}, iconProps));
|
|
3202
3261
|
|
|
3203
3262
|
default:
|
|
3204
3263
|
return jsxRuntime.jsx("img", {
|
|
@@ -3226,7 +3285,7 @@ var MenuExpander = function MenuExpander(props) {
|
|
|
3226
3285
|
},
|
|
3227
3286
|
className: styles$1['expand-icon'],
|
|
3228
3287
|
"data-testid": "menu-expander",
|
|
3229
|
-
children: jsxRuntime.jsx(icons.
|
|
3288
|
+
children: jsxRuntime.jsx(icons.ArrowRightIcon, {
|
|
3230
3289
|
color: "surface",
|
|
3231
3290
|
size: "big"
|
|
3232
3291
|
})
|
|
@@ -3308,15 +3367,11 @@ var MenuItemLink = function MenuItemLink(props) {
|
|
|
3308
3367
|
|
|
3309
3368
|
MenuItemLink.propTypes = {};
|
|
3310
3369
|
MenuItemLink.displayName = 'MenuItemLink';
|
|
3311
|
-
MenuItemLink.defaultProps = menuItemLinkDefaultProps;
|
|
3312
|
-
// the settings plugin from the other ones
|
|
3370
|
+
MenuItemLink.defaultProps = menuItemLinkDefaultProps;
|
|
3313
3371
|
|
|
3314
3372
|
var MenuItemDivider = function MenuItemDivider() {
|
|
3315
3373
|
return jsxRuntime.jsx("div", {
|
|
3316
|
-
className: styles$1
|
|
3317
|
-
children: jsxRuntime.jsx("div", {
|
|
3318
|
-
className: styles$1['divider-second-item']
|
|
3319
|
-
})
|
|
3374
|
+
className: styles$1.divider
|
|
3320
3375
|
});
|
|
3321
3376
|
};
|
|
3322
3377
|
|
|
@@ -3376,9 +3431,9 @@ var RestrictedMenuItem = function RestrictedMenuItem(props) {
|
|
|
3376
3431
|
RestrictedMenuItem.propTypes = {};
|
|
3377
3432
|
RestrictedMenuItem.displayName = 'RestrictedMenuItem';
|
|
3378
3433
|
RestrictedMenuItem.defaultProps = restrictedMenuItemDefaultProps;
|
|
3379
|
-
var getIconColor = function getIconColor(isActive
|
|
3434
|
+
var getIconColor = function getIconColor(isActive) {
|
|
3380
3435
|
if (isActive) return 'primary40';
|
|
3381
|
-
return
|
|
3436
|
+
return 'surface';
|
|
3382
3437
|
};
|
|
3383
3438
|
|
|
3384
3439
|
var getMenuVisibilitiesOfSubmenus = function getMenuVisibilitiesOfSubmenus(menu) {
|
|
@@ -3442,86 +3497,87 @@ var ApplicationMenu = function ApplicationMenu(props) {
|
|
|
3442
3497
|
!props.isMenuOpen || // 2. When there is no submenu
|
|
3443
3498
|
!hasSubmenu || // 3. When the submenu group is active/visible
|
|
3444
3499
|
props.isActive;
|
|
3445
|
-
return jsxRuntime.
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3500
|
+
return jsxRuntime.jsx(RestrictedMenuItem, {
|
|
3501
|
+
keyOfMenuItem: props.menu.key,
|
|
3502
|
+
featureToggle: (_props$menu$featureTo = props.menu.featureToggle) !== null && _props$menu$featureTo !== void 0 ? _props$menu$featureTo : undefined,
|
|
3503
|
+
permissions: props.menu.permissions,
|
|
3504
|
+
actionRights: (_props$menu$actionRig = props.menu.actionRights) !== null && _props$menu$actionRig !== void 0 ? _props$menu$actionRig : undefined,
|
|
3505
|
+
dataFences: (_props$menu$dataFence = props.menu.dataFences) !== null && _props$menu$dataFence !== void 0 ? _props$menu$dataFence : undefined,
|
|
3506
|
+
projectPermissions: props.projectPermissions,
|
|
3507
|
+
menuVisibilities: props.menuVisibilities,
|
|
3508
|
+
namesOfMenuVisibilities: namesOfMenuVisibilitiesOfAllSubmenus,
|
|
3509
|
+
children: jsxRuntime.jsxs(MenuItem, {
|
|
3510
|
+
hasSubmenu: hasSubmenu,
|
|
3511
|
+
isActive: props.isActive,
|
|
3512
|
+
isMenuOpen: props.isMenuOpen,
|
|
3513
|
+
onClick: props.handleToggleItem,
|
|
3514
|
+
onMouseEnter: props.isMenuOpen ? undefined : props.handleToggleItem,
|
|
3515
|
+
onMouseLeave: props.isMenuOpen ? undefined : props.shouldCloseMenuFly,
|
|
3516
|
+
children: [jsxRuntime.jsx(MenuItemLink, {
|
|
3517
|
+
linkTo: isMainMenuItemALink ? _concatInstanceProperty__default["default"](_context6 = "/".concat(props.projectKey, "/")).call(_context6, props.menu.uriPath) : undefined,
|
|
3518
|
+
useFullRedirectsForLinks: props.useFullRedirectsForLinks,
|
|
3519
|
+
onClick: props.onMenuItemClick,
|
|
3520
|
+
children: jsxRuntime.jsxs("div", {
|
|
3521
|
+
className: styles$1['item-icon-text'],
|
|
3522
|
+
children: [jsxRuntime.jsx("div", {
|
|
3523
|
+
className: styles$1['icon-container'],
|
|
3524
|
+
children: jsxRuntime.jsx("div", {
|
|
3469
3525
|
className: styles$1.icon,
|
|
3470
3526
|
children: jsxRuntime.jsx(IconSwitcher, {
|
|
3471
3527
|
icon: props.menu.icon,
|
|
3472
3528
|
size: "scale",
|
|
3473
|
-
color: getIconColor(props.isActive || isMainMenuRouteActive
|
|
3474
|
-
})
|
|
3475
|
-
}), jsxRuntime.jsx("div", {
|
|
3476
|
-
className: styles$1.title,
|
|
3477
|
-
"aria-owns": "group-".concat(props.menu.key),
|
|
3478
|
-
children: jsxRuntime.jsx(MenuLabel, {
|
|
3479
|
-
labelAllLocales: props.menu.labelAllLocales,
|
|
3480
|
-
defaultLabel: props.menu.defaultLabel,
|
|
3481
|
-
applicationLocale: props.applicationLocale
|
|
3529
|
+
color: getIconColor(props.isActive || isMainMenuRouteActive)
|
|
3482
3530
|
})
|
|
3483
|
-
})
|
|
3484
|
-
})
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3531
|
+
})
|
|
3532
|
+
}), jsxRuntime.jsx("div", {
|
|
3533
|
+
className: styles$1.title,
|
|
3534
|
+
"aria-owns": "group-".concat(props.menu.key),
|
|
3535
|
+
children: jsxRuntime.jsx(MenuLabel, {
|
|
3536
|
+
labelAllLocales: props.menu.labelAllLocales,
|
|
3537
|
+
defaultLabel: props.menu.defaultLabel,
|
|
3538
|
+
applicationLocale: props.applicationLocale
|
|
3539
|
+
})
|
|
3540
|
+
})]
|
|
3541
|
+
})
|
|
3542
|
+
}), jsxRuntime.jsx(MenuGroup, {
|
|
3543
|
+
id: props.menu.key,
|
|
3544
|
+
level: 2,
|
|
3545
|
+
isActive: props.isActive,
|
|
3546
|
+
isExpanded: props.isMenuOpen,
|
|
3547
|
+
children: hasSubmenu ? _mapInstanceProperty__default["default"](_context7 = props.menu.submenu).call(_context7, function (submenu) {
|
|
3548
|
+
var _context8, _submenu$featureToggl, _submenu$actionRights, _submenu$dataFences, _context9;
|
|
3549
|
+
|
|
3550
|
+
return jsxRuntime.jsx(RestrictedMenuItem, {
|
|
3551
|
+
keyOfMenuItem: submenu.key,
|
|
3552
|
+
featureToggle: (_submenu$featureToggl = submenu.featureToggle) !== null && _submenu$featureToggl !== void 0 ? _submenu$featureToggl : undefined,
|
|
3553
|
+
permissions: submenu.permissions,
|
|
3554
|
+
actionRights: (_submenu$actionRights = submenu.actionRights) !== null && _submenu$actionRights !== void 0 ? _submenu$actionRights : undefined,
|
|
3555
|
+
dataFences: (_submenu$dataFences = submenu.dataFences) !== null && _submenu$dataFences !== void 0 ? _submenu$dataFences : undefined,
|
|
3556
|
+
projectPermissions: props.projectPermissions,
|
|
3557
|
+
menuVisibilities: props.menuVisibilities,
|
|
3558
|
+
namesOfMenuVisibilities: submenu.menuVisibility ? [submenu.menuVisibility] : undefined,
|
|
3559
|
+
children: jsxRuntime.jsx("li", {
|
|
3560
|
+
className: styles$1['sublist-item'],
|
|
3561
|
+
children: jsxRuntime.jsx("div", {
|
|
3562
|
+
className: styles$1.text,
|
|
3563
|
+
children: jsxRuntime.jsx(MenuItemLink, {
|
|
3564
|
+
linkTo: _concatInstanceProperty__default["default"](_context9 = "/".concat(props.projectKey, "/")).call(_context9, submenu.uriPath),
|
|
3565
|
+
exactMatch: true,
|
|
3566
|
+
useFullRedirectsForLinks: props.useFullRedirectsForLinks,
|
|
3567
|
+
onClick: props.onMenuItemClick,
|
|
3568
|
+
children: jsxRuntime.jsx(MenuLabel, {
|
|
3569
|
+
labelAllLocales: submenu.labelAllLocales,
|
|
3570
|
+
defaultLabel: submenu.defaultLabel,
|
|
3571
|
+
applicationLocale: props.applicationLocale
|
|
3516
3572
|
})
|
|
3517
3573
|
})
|
|
3518
3574
|
})
|
|
3519
|
-
}
|
|
3520
|
-
})
|
|
3521
|
-
})
|
|
3522
|
-
})
|
|
3523
|
-
}
|
|
3524
|
-
});
|
|
3575
|
+
})
|
|
3576
|
+
}, _concatInstanceProperty__default["default"](_context8 = "".concat(props.menu.key, "-submenu-")).call(_context8, submenu.key));
|
|
3577
|
+
}) : null
|
|
3578
|
+
})]
|
|
3579
|
+
})
|
|
3580
|
+
}, props.menu.key);
|
|
3525
3581
|
};
|
|
3526
3582
|
|
|
3527
3583
|
ApplicationMenu.propTypes = {};
|
|
@@ -3553,7 +3609,8 @@ var NavBar = function NavBar(props) {
|
|
|
3553
3609
|
_handleToggleItem = _useNavbarStateManage.handleToggleItem,
|
|
3554
3610
|
handleToggleMenu = _useNavbarStateManage.handleToggleMenu,
|
|
3555
3611
|
shouldCloseMenuFly = _useNavbarStateManage.shouldCloseMenuFly,
|
|
3556
|
-
|
|
3612
|
+
allInternalApplicationsNavbarMenu = _useNavbarStateManage.allInternalApplicationsNavbarMenu,
|
|
3613
|
+
allCustomApplicationsNavbarMenu = _useNavbarStateManage.allCustomApplicationsNavbarMenu;
|
|
3557
3614
|
|
|
3558
3615
|
var useFullRedirectsForLinks = Boolean(props.environment.useFullRedirectsForLinks);
|
|
3559
3616
|
var location = reactRouterDom.useLocation();
|
|
@@ -3577,9 +3634,9 @@ var NavBar = function NavBar(props) {
|
|
|
3577
3634
|
children: jsxRuntime.jsxs(MenuGroup, {
|
|
3578
3635
|
id: "main",
|
|
3579
3636
|
level: 1,
|
|
3580
|
-
children: [jsxRuntime.
|
|
3637
|
+
children: [jsxRuntime.jsxs("div", {
|
|
3581
3638
|
className: styles$1['scrollable-menu'],
|
|
3582
|
-
children: _mapInstanceProperty__default["default"](
|
|
3639
|
+
children: [_mapInstanceProperty__default["default"](allInternalApplicationsNavbarMenu).call(allInternalApplicationsNavbarMenu, function (menu) {
|
|
3583
3640
|
var menuType = 'scrollable';
|
|
3584
3641
|
var itemIndex = "".concat(menuType, "-").concat(menu.key);
|
|
3585
3642
|
return jsxRuntime.jsx(ApplicationMenu, {
|
|
@@ -3598,7 +3655,26 @@ var NavBar = function NavBar(props) {
|
|
|
3598
3655
|
useFullRedirectsForLinks: useFullRedirectsForLinks,
|
|
3599
3656
|
onMenuItemClick: props.onMenuItemClick
|
|
3600
3657
|
}, menu.key);
|
|
3601
|
-
})
|
|
3658
|
+
}), jsxRuntime.jsx(MenuItemDivider, {}), _mapInstanceProperty__default["default"](allCustomApplicationsNavbarMenu).call(allCustomApplicationsNavbarMenu, function (menu) {
|
|
3659
|
+
var menuType = 'scrollable';
|
|
3660
|
+
var itemIndex = "".concat(menuType, "-").concat(menu.key);
|
|
3661
|
+
return jsxRuntime.jsx(ApplicationMenu, {
|
|
3662
|
+
location: location,
|
|
3663
|
+
menu: menu,
|
|
3664
|
+
isActive: activeItemIndex === itemIndex,
|
|
3665
|
+
handleToggleItem: function handleToggleItem() {
|
|
3666
|
+
return _handleToggleItem(itemIndex);
|
|
3667
|
+
},
|
|
3668
|
+
isMenuOpen: isMenuOpen,
|
|
3669
|
+
shouldCloseMenuFly: shouldCloseMenuFly,
|
|
3670
|
+
projectPermissions: projectPermissions,
|
|
3671
|
+
menuVisibilities: menuVisibilities,
|
|
3672
|
+
applicationLocale: props.applicationLocale,
|
|
3673
|
+
projectKey: props.projectKey,
|
|
3674
|
+
useFullRedirectsForLinks: useFullRedirectsForLinks,
|
|
3675
|
+
onMenuItemClick: props.onMenuItemClick
|
|
3676
|
+
}, menu.key);
|
|
3677
|
+
})]
|
|
3602
3678
|
}), jsxRuntime.jsxs("div", {
|
|
3603
3679
|
className: styles$1['fixed-menu'],
|
|
3604
3680
|
children: [jsxRuntime.jsx(MenuItem, {
|
|
@@ -3621,10 +3697,13 @@ var NavBar = function NavBar(props) {
|
|
|
3621
3697
|
children: jsxRuntime.jsxs("div", {
|
|
3622
3698
|
className: styles$1['item-icon-text'],
|
|
3623
3699
|
children: [jsxRuntime.jsx("div", {
|
|
3624
|
-
className: styles$1
|
|
3625
|
-
children: jsxRuntime.jsx(
|
|
3626
|
-
|
|
3627
|
-
|
|
3700
|
+
className: styles$1['icon-container'],
|
|
3701
|
+
children: jsxRuntime.jsx("div", {
|
|
3702
|
+
className: styles$1.icon,
|
|
3703
|
+
children: jsxRuntime.jsx(icons.SupportIcon, {
|
|
3704
|
+
size: "scale",
|
|
3705
|
+
color: getIconColor(activeItemIndex === 'fixed-support')
|
|
3706
|
+
})
|
|
3628
3707
|
})
|
|
3629
3708
|
}), jsxRuntime.jsx("div", {
|
|
3630
3709
|
className: styles$1.title,
|
|
@@ -3704,7 +3783,7 @@ var pimIndexerStates = {
|
|
|
3704
3783
|
};
|
|
3705
3784
|
|
|
3706
3785
|
var QuickAccess = /*#__PURE__*/react.lazy(function () {
|
|
3707
|
-
return Promise.resolve().then(function () { return require('./quick-access-
|
|
3786
|
+
return Promise.resolve().then(function () { return require('./quick-access-1c9b4a9b.cjs.prod.js'
|
|
3708
3787
|
/* webpackChunkName: "quick-access" */
|
|
3709
3788
|
); });
|
|
3710
3789
|
});
|