@commercetools-frontend/application-shell 21.20.0 → 21.20.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/dist/{application-entry-point-c8b1c187.cjs.dev.js → application-entry-point-402a4638.cjs.dev.js} +2 -2
- package/dist/{application-entry-point-6dc9ec3c.cjs.prod.js → application-entry-point-e66b5350.cjs.prod.js} +2 -2
- package/dist/{application-entry-point-2f10c24d.esm.js → application-entry-point-e9361a05.esm.js} +2 -2
- 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/connected-square.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/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/star.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/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-5693a438.cjs.prod.js → index-0251ffd3.cjs.prod.js} +176 -147
- package/dist/{index-9fff944a.esm.js → index-09e12565.esm.js} +173 -144
- package/dist/{index-14ac0ad6.cjs.dev.js → index-ed6b6da0.cjs.dev.js} +177 -148
- 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-733107ee.cjs.dev.js → project-expired-2359dde2.cjs.dev.js} +5 -5
- package/dist/{project-expired-51e9ea34.esm.js → project-expired-5ede8b0a.esm.js} +5 -5
- package/dist/{project-expired-14847008.cjs.prod.js → project-expired-8db09a00.cjs.prod.js} +5 -5
- package/dist/{project-not-found-946204ee.cjs.prod.js → project-not-found-2906fe41.cjs.prod.js} +5 -5
- package/dist/{project-not-found-6cf69bec.esm.js → project-not-found-36c25eed.esm.js} +5 -5
- package/dist/{project-not-found-81918347.cjs.dev.js → project-not-found-3afe9b35.cjs.dev.js} +5 -5
- package/dist/{project-not-initialized-acf9bde8.cjs.dev.js → project-not-initialized-38071e98.cjs.dev.js} +5 -5
- package/dist/{project-not-initialized-7f0124c9.cjs.prod.js → project-not-initialized-4146483c.cjs.prod.js} +5 -5
- package/dist/{project-not-initialized-8f39dddd.esm.js → project-not-initialized-da2d0b9a.esm.js} +5 -5
- package/dist/{project-suspended-6f575ef2.cjs.prod.js → project-suspended-b6b70e31.cjs.prod.js} +5 -5
- package/dist/{project-suspended-25f427da.cjs.dev.js → project-suspended-c2570607.cjs.dev.js} +5 -5
- package/dist/{project-suspended-9b9451bc.esm.js → project-suspended-eb84e5fa.esm.js} +5 -5
- package/dist/{quick-access-55060347.esm.js → quick-access-48a5f8a2.esm.js} +4 -4
- package/dist/{quick-access-3f564da2.cjs.prod.js → quick-access-74b27803.cjs.prod.js} +4 -4
- package/dist/{quick-access-0aec997d.cjs.dev.js → quick-access-a8da45b2.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-4321db75.esm.js → service-page-project-switcher-1b62c486.esm.js} +1 -1
- package/dist/{service-page-project-switcher-72272b8a.cjs.dev.js → service-page-project-switcher-6b49b0f4.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-7ed968b6.cjs.prod.js → service-page-project-switcher-a1f4e47f.cjs.prod.js} +1 -1
- 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/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-e66b5350.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-2906fe41.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-8db09a00.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-4146483c.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-b6b70e31.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,53 @@ 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
|
+
|
|
3139
3173
|
// The icon is expected to be the `svg` document as a string.
|
|
3140
3174
|
// For backwards compatibility purposes, we still support the legacy "icon name",
|
|
3141
3175
|
// which we then map to one of the pre-defined icons.
|
|
@@ -3152,53 +3186,28 @@ var IconSwitcher = function IconSwitcher(_ref) {
|
|
|
3152
3186
|
|
|
3153
3187
|
|
|
3154
3188
|
switch (icon) {
|
|
3155
|
-
// Application icons
|
|
3156
|
-
case 'TreeStructureIcon':
|
|
3157
|
-
return jsxRuntime.jsx(icons.TreeStructureIcon, _objectSpread$3({}, iconProps));
|
|
3158
|
-
|
|
3159
|
-
case 'UserFilledIcon':
|
|
3160
|
-
return jsxRuntime.jsx(icons.UserFilledIcon, _objectSpread$3({}, iconProps));
|
|
3161
|
-
|
|
3162
|
-
case 'SpeedometerIcon':
|
|
3163
|
-
return jsxRuntime.jsx(icons.SpeedometerIcon, _objectSpread$3({}, iconProps));
|
|
3164
|
-
|
|
3165
|
-
case 'TagMultiIcon':
|
|
3166
|
-
return jsxRuntime.jsx(icons.TagMultiIcon, _objectSpread$3({}, iconProps));
|
|
3167
|
-
|
|
3168
|
-
case 'CartIcon':
|
|
3169
|
-
return jsxRuntime.jsx(icons.CartIcon, _objectSpread$3({}, iconProps));
|
|
3170
|
-
|
|
3171
|
-
case 'BoxIcon':
|
|
3172
|
-
return jsxRuntime.jsx(icons.BoxIcon, _objectSpread$3({}, iconProps));
|
|
3173
|
-
|
|
3174
|
-
case 'GearIcon':
|
|
3175
|
-
return jsxRuntime.jsx(icons.GearIcon, _objectSpread$3({}, iconProps));
|
|
3176
|
-
|
|
3177
|
-
case 'ListWithSearchIcon':
|
|
3178
|
-
return jsxRuntime.jsx(icons.ListWithSearchIcon, _objectSpread$3({}, iconProps));
|
|
3179
3189
|
// Custom application icons set
|
|
3180
|
-
|
|
3181
3190
|
case 'HeartIcon':
|
|
3182
|
-
return jsxRuntime.jsx(
|
|
3191
|
+
return jsxRuntime.jsx(HeartIcon, _objectSpread$3({}, iconProps));
|
|
3183
3192
|
|
|
3184
3193
|
case 'PaperclipIcon':
|
|
3185
|
-
return jsxRuntime.jsx(
|
|
3194
|
+
return jsxRuntime.jsx(PaperclipIcon, _objectSpread$3({}, iconProps));
|
|
3186
3195
|
|
|
3187
3196
|
case 'PluginIcon':
|
|
3188
|
-
return jsxRuntime.jsx(
|
|
3197
|
+
return jsxRuntime.jsx(PluginIcon, _objectSpread$3({}, iconProps));
|
|
3189
3198
|
|
|
3190
3199
|
case 'RocketIcon':
|
|
3191
|
-
return jsxRuntime.jsx(
|
|
3200
|
+
return jsxRuntime.jsx(RocketIcon, _objectSpread$3({}, iconProps));
|
|
3192
3201
|
|
|
3193
3202
|
case 'StarIcon':
|
|
3194
|
-
return jsxRuntime.jsx(
|
|
3203
|
+
return jsxRuntime.jsx(StarIcon, _objectSpread$3({}, iconProps));
|
|
3195
3204
|
|
|
3196
3205
|
case 'ConnectedSquareIcon':
|
|
3197
|
-
return jsxRuntime.jsx(
|
|
3206
|
+
return jsxRuntime.jsx(ConnectedSquareIcon, _objectSpread$3({}, iconProps));
|
|
3198
3207
|
// For backwards compatibility
|
|
3199
3208
|
|
|
3200
3209
|
case 'WorldIcon':
|
|
3201
|
-
return jsxRuntime.jsx(
|
|
3210
|
+
return jsxRuntime.jsx(WorldIcon, _objectSpread$3({}, iconProps));
|
|
3202
3211
|
|
|
3203
3212
|
default:
|
|
3204
3213
|
return jsxRuntime.jsx("img", {
|
|
@@ -3226,7 +3235,7 @@ var MenuExpander = function MenuExpander(props) {
|
|
|
3226
3235
|
},
|
|
3227
3236
|
className: styles$1['expand-icon'],
|
|
3228
3237
|
"data-testid": "menu-expander",
|
|
3229
|
-
children: jsxRuntime.jsx(icons.
|
|
3238
|
+
children: jsxRuntime.jsx(icons.ArrowRightIcon, {
|
|
3230
3239
|
color: "surface",
|
|
3231
3240
|
size: "big"
|
|
3232
3241
|
})
|
|
@@ -3308,15 +3317,11 @@ var MenuItemLink = function MenuItemLink(props) {
|
|
|
3308
3317
|
|
|
3309
3318
|
MenuItemLink.propTypes = {};
|
|
3310
3319
|
MenuItemLink.displayName = 'MenuItemLink';
|
|
3311
|
-
MenuItemLink.defaultProps = menuItemLinkDefaultProps;
|
|
3312
|
-
// the settings plugin from the other ones
|
|
3320
|
+
MenuItemLink.defaultProps = menuItemLinkDefaultProps;
|
|
3313
3321
|
|
|
3314
3322
|
var MenuItemDivider = function MenuItemDivider() {
|
|
3315
3323
|
return jsxRuntime.jsx("div", {
|
|
3316
|
-
className: styles$1
|
|
3317
|
-
children: jsxRuntime.jsx("div", {
|
|
3318
|
-
className: styles$1['divider-second-item']
|
|
3319
|
-
})
|
|
3324
|
+
className: styles$1.divider
|
|
3320
3325
|
});
|
|
3321
3326
|
};
|
|
3322
3327
|
|
|
@@ -3376,9 +3381,9 @@ var RestrictedMenuItem = function RestrictedMenuItem(props) {
|
|
|
3376
3381
|
RestrictedMenuItem.propTypes = {};
|
|
3377
3382
|
RestrictedMenuItem.displayName = 'RestrictedMenuItem';
|
|
3378
3383
|
RestrictedMenuItem.defaultProps = restrictedMenuItemDefaultProps;
|
|
3379
|
-
var getIconColor = function getIconColor(isActive
|
|
3384
|
+
var getIconColor = function getIconColor(isActive) {
|
|
3380
3385
|
if (isActive) return 'primary40';
|
|
3381
|
-
return
|
|
3386
|
+
return 'surface';
|
|
3382
3387
|
};
|
|
3383
3388
|
|
|
3384
3389
|
var getMenuVisibilitiesOfSubmenus = function getMenuVisibilitiesOfSubmenus(menu) {
|
|
@@ -3442,86 +3447,87 @@ var ApplicationMenu = function ApplicationMenu(props) {
|
|
|
3442
3447
|
!props.isMenuOpen || // 2. When there is no submenu
|
|
3443
3448
|
!hasSubmenu || // 3. When the submenu group is active/visible
|
|
3444
3449
|
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
|
-
|
|
3450
|
+
return jsxRuntime.jsx(RestrictedMenuItem, {
|
|
3451
|
+
keyOfMenuItem: props.menu.key,
|
|
3452
|
+
featureToggle: (_props$menu$featureTo = props.menu.featureToggle) !== null && _props$menu$featureTo !== void 0 ? _props$menu$featureTo : undefined,
|
|
3453
|
+
permissions: props.menu.permissions,
|
|
3454
|
+
actionRights: (_props$menu$actionRig = props.menu.actionRights) !== null && _props$menu$actionRig !== void 0 ? _props$menu$actionRig : undefined,
|
|
3455
|
+
dataFences: (_props$menu$dataFence = props.menu.dataFences) !== null && _props$menu$dataFence !== void 0 ? _props$menu$dataFence : undefined,
|
|
3456
|
+
projectPermissions: props.projectPermissions,
|
|
3457
|
+
menuVisibilities: props.menuVisibilities,
|
|
3458
|
+
namesOfMenuVisibilities: namesOfMenuVisibilitiesOfAllSubmenus,
|
|
3459
|
+
children: jsxRuntime.jsxs(MenuItem, {
|
|
3460
|
+
hasSubmenu: hasSubmenu,
|
|
3461
|
+
isActive: props.isActive,
|
|
3462
|
+
isMenuOpen: props.isMenuOpen,
|
|
3463
|
+
onClick: props.handleToggleItem,
|
|
3464
|
+
onMouseEnter: props.isMenuOpen ? undefined : props.handleToggleItem,
|
|
3465
|
+
onMouseLeave: props.isMenuOpen ? undefined : props.shouldCloseMenuFly,
|
|
3466
|
+
children: [jsxRuntime.jsx(MenuItemLink, {
|
|
3467
|
+
linkTo: isMainMenuItemALink ? _concatInstanceProperty__default["default"](_context6 = "/".concat(props.projectKey, "/")).call(_context6, props.menu.uriPath) : undefined,
|
|
3468
|
+
useFullRedirectsForLinks: props.useFullRedirectsForLinks,
|
|
3469
|
+
onClick: props.onMenuItemClick,
|
|
3470
|
+
children: jsxRuntime.jsxs("div", {
|
|
3471
|
+
className: styles$1['item-icon-text'],
|
|
3472
|
+
children: [jsxRuntime.jsx("div", {
|
|
3473
|
+
className: styles$1['icon-container'],
|
|
3474
|
+
children: jsxRuntime.jsx("div", {
|
|
3469
3475
|
className: styles$1.icon,
|
|
3470
3476
|
children: jsxRuntime.jsx(IconSwitcher, {
|
|
3471
3477
|
icon: props.menu.icon,
|
|
3472
3478
|
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
|
|
3479
|
+
color: getIconColor(props.isActive || isMainMenuRouteActive)
|
|
3482
3480
|
})
|
|
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
|
-
|
|
3481
|
+
})
|
|
3482
|
+
}), jsxRuntime.jsx("div", {
|
|
3483
|
+
className: styles$1.title,
|
|
3484
|
+
"aria-owns": "group-".concat(props.menu.key),
|
|
3485
|
+
children: jsxRuntime.jsx(MenuLabel, {
|
|
3486
|
+
labelAllLocales: props.menu.labelAllLocales,
|
|
3487
|
+
defaultLabel: props.menu.defaultLabel,
|
|
3488
|
+
applicationLocale: props.applicationLocale
|
|
3489
|
+
})
|
|
3490
|
+
})]
|
|
3491
|
+
})
|
|
3492
|
+
}), jsxRuntime.jsx(MenuGroup, {
|
|
3493
|
+
id: props.menu.key,
|
|
3494
|
+
level: 2,
|
|
3495
|
+
isActive: props.isActive,
|
|
3496
|
+
isExpanded: props.isMenuOpen,
|
|
3497
|
+
children: hasSubmenu ? _mapInstanceProperty__default["default"](_context7 = props.menu.submenu).call(_context7, function (submenu) {
|
|
3498
|
+
var _context8, _submenu$featureToggl, _submenu$actionRights, _submenu$dataFences, _context9;
|
|
3499
|
+
|
|
3500
|
+
return jsxRuntime.jsx(RestrictedMenuItem, {
|
|
3501
|
+
keyOfMenuItem: submenu.key,
|
|
3502
|
+
featureToggle: (_submenu$featureToggl = submenu.featureToggle) !== null && _submenu$featureToggl !== void 0 ? _submenu$featureToggl : undefined,
|
|
3503
|
+
permissions: submenu.permissions,
|
|
3504
|
+
actionRights: (_submenu$actionRights = submenu.actionRights) !== null && _submenu$actionRights !== void 0 ? _submenu$actionRights : undefined,
|
|
3505
|
+
dataFences: (_submenu$dataFences = submenu.dataFences) !== null && _submenu$dataFences !== void 0 ? _submenu$dataFences : undefined,
|
|
3506
|
+
projectPermissions: props.projectPermissions,
|
|
3507
|
+
menuVisibilities: props.menuVisibilities,
|
|
3508
|
+
namesOfMenuVisibilities: submenu.menuVisibility ? [submenu.menuVisibility] : undefined,
|
|
3509
|
+
children: jsxRuntime.jsx("li", {
|
|
3510
|
+
className: styles$1['sublist-item'],
|
|
3511
|
+
children: jsxRuntime.jsx("div", {
|
|
3512
|
+
className: styles$1.text,
|
|
3513
|
+
children: jsxRuntime.jsx(MenuItemLink, {
|
|
3514
|
+
linkTo: _concatInstanceProperty__default["default"](_context9 = "/".concat(props.projectKey, "/")).call(_context9, submenu.uriPath),
|
|
3515
|
+
exactMatch: true,
|
|
3516
|
+
useFullRedirectsForLinks: props.useFullRedirectsForLinks,
|
|
3517
|
+
onClick: props.onMenuItemClick,
|
|
3518
|
+
children: jsxRuntime.jsx(MenuLabel, {
|
|
3519
|
+
labelAllLocales: submenu.labelAllLocales,
|
|
3520
|
+
defaultLabel: submenu.defaultLabel,
|
|
3521
|
+
applicationLocale: props.applicationLocale
|
|
3516
3522
|
})
|
|
3517
3523
|
})
|
|
3518
3524
|
})
|
|
3519
|
-
}
|
|
3520
|
-
})
|
|
3521
|
-
})
|
|
3522
|
-
})
|
|
3523
|
-
}
|
|
3524
|
-
});
|
|
3525
|
+
})
|
|
3526
|
+
}, _concatInstanceProperty__default["default"](_context8 = "".concat(props.menu.key, "-submenu-")).call(_context8, submenu.key));
|
|
3527
|
+
}) : null
|
|
3528
|
+
})]
|
|
3529
|
+
})
|
|
3530
|
+
}, props.menu.key);
|
|
3525
3531
|
};
|
|
3526
3532
|
|
|
3527
3533
|
ApplicationMenu.propTypes = {};
|
|
@@ -3553,7 +3559,8 @@ var NavBar = function NavBar(props) {
|
|
|
3553
3559
|
_handleToggleItem = _useNavbarStateManage.handleToggleItem,
|
|
3554
3560
|
handleToggleMenu = _useNavbarStateManage.handleToggleMenu,
|
|
3555
3561
|
shouldCloseMenuFly = _useNavbarStateManage.shouldCloseMenuFly,
|
|
3556
|
-
|
|
3562
|
+
allInternalApplicationsNavbarMenu = _useNavbarStateManage.allInternalApplicationsNavbarMenu,
|
|
3563
|
+
allCustomApplicationsNavbarMenu = _useNavbarStateManage.allCustomApplicationsNavbarMenu;
|
|
3557
3564
|
|
|
3558
3565
|
var useFullRedirectsForLinks = Boolean(props.environment.useFullRedirectsForLinks);
|
|
3559
3566
|
var location = reactRouterDom.useLocation();
|
|
@@ -3577,9 +3584,9 @@ var NavBar = function NavBar(props) {
|
|
|
3577
3584
|
children: jsxRuntime.jsxs(MenuGroup, {
|
|
3578
3585
|
id: "main",
|
|
3579
3586
|
level: 1,
|
|
3580
|
-
children: [jsxRuntime.
|
|
3587
|
+
children: [jsxRuntime.jsxs("div", {
|
|
3581
3588
|
className: styles$1['scrollable-menu'],
|
|
3582
|
-
children: _mapInstanceProperty__default["default"](
|
|
3589
|
+
children: [_mapInstanceProperty__default["default"](allInternalApplicationsNavbarMenu).call(allInternalApplicationsNavbarMenu, function (menu) {
|
|
3583
3590
|
var menuType = 'scrollable';
|
|
3584
3591
|
var itemIndex = "".concat(menuType, "-").concat(menu.key);
|
|
3585
3592
|
return jsxRuntime.jsx(ApplicationMenu, {
|
|
@@ -3598,7 +3605,26 @@ var NavBar = function NavBar(props) {
|
|
|
3598
3605
|
useFullRedirectsForLinks: useFullRedirectsForLinks,
|
|
3599
3606
|
onMenuItemClick: props.onMenuItemClick
|
|
3600
3607
|
}, menu.key);
|
|
3601
|
-
})
|
|
3608
|
+
}), jsxRuntime.jsx(MenuItemDivider, {}), _mapInstanceProperty__default["default"](allCustomApplicationsNavbarMenu).call(allCustomApplicationsNavbarMenu, function (menu) {
|
|
3609
|
+
var menuType = 'scrollable';
|
|
3610
|
+
var itemIndex = "".concat(menuType, "-").concat(menu.key);
|
|
3611
|
+
return jsxRuntime.jsx(ApplicationMenu, {
|
|
3612
|
+
location: location,
|
|
3613
|
+
menu: menu,
|
|
3614
|
+
isActive: activeItemIndex === itemIndex,
|
|
3615
|
+
handleToggleItem: function handleToggleItem() {
|
|
3616
|
+
return _handleToggleItem(itemIndex);
|
|
3617
|
+
},
|
|
3618
|
+
isMenuOpen: isMenuOpen,
|
|
3619
|
+
shouldCloseMenuFly: shouldCloseMenuFly,
|
|
3620
|
+
projectPermissions: projectPermissions,
|
|
3621
|
+
menuVisibilities: menuVisibilities,
|
|
3622
|
+
applicationLocale: props.applicationLocale,
|
|
3623
|
+
projectKey: props.projectKey,
|
|
3624
|
+
useFullRedirectsForLinks: useFullRedirectsForLinks,
|
|
3625
|
+
onMenuItemClick: props.onMenuItemClick
|
|
3626
|
+
}, menu.key);
|
|
3627
|
+
})]
|
|
3602
3628
|
}), jsxRuntime.jsxs("div", {
|
|
3603
3629
|
className: styles$1['fixed-menu'],
|
|
3604
3630
|
children: [jsxRuntime.jsx(MenuItem, {
|
|
@@ -3621,10 +3647,13 @@ var NavBar = function NavBar(props) {
|
|
|
3621
3647
|
children: jsxRuntime.jsxs("div", {
|
|
3622
3648
|
className: styles$1['item-icon-text'],
|
|
3623
3649
|
children: [jsxRuntime.jsx("div", {
|
|
3624
|
-
className: styles$1
|
|
3625
|
-
children: jsxRuntime.jsx(
|
|
3626
|
-
|
|
3627
|
-
|
|
3650
|
+
className: styles$1['icon-container'],
|
|
3651
|
+
children: jsxRuntime.jsx("div", {
|
|
3652
|
+
className: styles$1.icon,
|
|
3653
|
+
children: jsxRuntime.jsx(icons.SupportIcon, {
|
|
3654
|
+
size: "scale",
|
|
3655
|
+
color: getIconColor(activeItemIndex === 'fixed-support')
|
|
3656
|
+
})
|
|
3628
3657
|
})
|
|
3629
3658
|
}), jsxRuntime.jsx("div", {
|
|
3630
3659
|
className: styles$1.title,
|
|
@@ -3704,7 +3733,7 @@ var pimIndexerStates = {
|
|
|
3704
3733
|
};
|
|
3705
3734
|
|
|
3706
3735
|
var QuickAccess = /*#__PURE__*/react.lazy(function () {
|
|
3707
|
-
return Promise.resolve().then(function () { return require('./quick-access-
|
|
3736
|
+
return Promise.resolve().then(function () { return require('./quick-access-74b27803.cjs.prod.js'
|
|
3708
3737
|
/* webpackChunkName: "quick-access" */
|
|
3709
3738
|
); });
|
|
3710
3739
|
});
|