tntd 1.4.32 → 1.4.33-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Ellipsis/index.js +47 -15
- package/components/QueryListScene/QueryForm.js +4 -4
- package/components/QueryListScene/createActions.js +4 -4
- package/dist/1.tntd.js +1 -1
- package/dist/stats.json +24089 -23289
- package/dist/tntd.css +1 -1
- package/dist/tntd.js +7 -10
- package/es/ArrayInput/icon.js +5 -5
- package/es/ArrayInput/index.js +79 -111
- package/es/AuthContext.js +1 -1
- package/es/Columns/index.js +33 -40
- package/es/DevelopmentLogin/LoginModal.js +33 -46
- package/es/DevelopmentLogin/index.js +14 -18
- package/es/Ellipsis/Svg/CopySVG.js +13 -13
- package/es/Ellipsis/Svg/TickSVG.js +8 -8
- package/es/Ellipsis/index.js +100 -79
- package/es/Handle/index.js +46 -64
- package/es/Icon/fonts/iconfont.js +7 -12
- package/es/Icon/index.js +12 -15
- package/es/Img/Contain.js +26 -31
- package/es/Img/Cover.js +43 -57
- package/es/Img/index.js +39 -48
- package/es/Layout/ActionsContext.js +3 -2
- package/es/Layout/AppList.js +39 -94
- package/es/Layout/Application.js +28 -74
- package/es/Layout/Avatar.js +30 -67
- package/es/Layout/CompatibleLanguage.js +41 -96
- package/es/Layout/EnterpriseLayout/Avatar.js +39 -77
- package/es/Layout/EnterpriseLayout/Language.js +16 -34
- package/es/Layout/EnterpriseLayout/Theme.js +18 -36
- package/es/Layout/EnterpriseLayout/index.js +14 -16
- package/es/Layout/GlobalNavigation/NavigationPopup.js +61 -172
- package/es/Layout/GlobalNavigation/index.js +22 -56
- package/es/Layout/Header.js +26 -47
- package/es/Layout/HeaderActions.js +45 -59
- package/es/Layout/HeaderNavs.js +24 -51
- package/es/Layout/HeaderTabs.js +53 -106
- package/es/Layout/Iconfont.js +1 -1
- package/es/Layout/Language.js +16 -34
- package/es/Layout/Layout.js +88 -110
- package/es/Layout/Logo.js +17 -33
- package/es/Layout/OrgAppList.js +64 -109
- package/es/Layout/SideMenu.js +67 -128
- package/es/Layout/Theme.js +25 -63
- package/es/Layout/index.js +28 -37
- package/es/Layout/paaslayout/CompactSideMenu.js +37 -76
- package/es/Layout/paaslayout/Header.js +23 -46
- package/es/Layout/paaslayout/Logo.js +4 -14
- package/es/Layout/paaslayout/SideMenu.js +41 -80
- package/es/Layout/paaslayout/index.js +77 -104
- package/es/Layout/storage.js +10 -9
- package/es/LoadingButton/index.js +18 -27
- package/es/Modal/index.js +42 -51
- package/es/Page/Box.js +36 -43
- package/es/Page/index.js +56 -71
- package/es/Page/utils.js +0 -5
- package/es/QueryForm/Field/Checkbox.js +7 -11
- package/es/QueryForm/Field/Select.js +34 -44
- package/es/QueryForm/Field/SelectInput.js +31 -46
- package/es/QueryForm/Field/fieldsMap.js +0 -1
- package/es/QueryForm/Field/index.js +46 -78
- package/es/QueryForm/createActions.js +6 -7
- package/es/QueryForm/index.js +79 -140
- package/es/QueryListScene/List.js +83 -139
- package/es/QueryListScene/QueryForm.js +54 -91
- package/es/QueryListScene/QueryListScene.js +29 -47
- package/es/QueryListScene/Title.js +3 -3
- package/es/QueryListScene/Toolbar.js +13 -14
- package/es/QueryListScene/createActions.js +4 -4
- package/es/Select/DropDownWrap.js +32 -55
- package/es/Select/index.js +140 -232
- package/es/Table/ResizableTable/index.js +29 -43
- package/es/Table/index.js +20 -19
- package/es/Title/index.js +23 -25
- package/es/locale.js +1 -5
- package/es/utils/checkAuth.js +6 -8
- package/es/utils/findMenuInfoByPath.js +0 -4
- package/es/utils/index.js +17 -27
- package/lib/ArrayInput/icon.js +7 -9
- package/lib/ArrayInput/index.js +82 -131
- package/lib/AuthContext.js +2 -6
- package/lib/Columns/index.js +36 -54
- package/lib/DevelopmentLogin/LoginModal.js +36 -63
- package/lib/DevelopmentLogin/index.js +21 -31
- package/lib/Ellipsis/Svg/CopySVG.js +15 -18
- package/lib/Ellipsis/Svg/TickSVG.js +10 -13
- package/lib/Ellipsis/index.js +105 -93
- package/lib/Handle/index.js +51 -87
- package/lib/Icon/fonts/iconfont.js +7 -12
- package/lib/Icon/iconList.js +1 -2
- package/lib/Icon/index.js +16 -26
- package/lib/Img/Contain.js +29 -40
- package/lib/Img/Cover.js +48 -72
- package/lib/Img/index.js +42 -58
- package/lib/Layout/ActionsContext.js +1 -5
- package/lib/Layout/AppList.js +45 -124
- package/lib/Layout/Application.js +31 -92
- package/lib/Layout/Avatar.js +36 -91
- package/lib/Layout/CompatibleLanguage.js +44 -116
- package/lib/Layout/EnterpriseLayout/Avatar.js +45 -105
- package/lib/Layout/EnterpriseLayout/Language.js +22 -54
- package/lib/Layout/EnterpriseLayout/Theme.js +21 -50
- package/lib/Layout/EnterpriseLayout/index.js +17 -27
- package/lib/Layout/GlobalNavigation/NavigationPopup.js +64 -192
- package/lib/Layout/GlobalNavigation/index.js +28 -80
- package/lib/Layout/Header.js +36 -68
- package/lib/Layout/HeaderActions.js +51 -81
- package/lib/Layout/HeaderNavs.js +30 -70
- package/lib/Layout/HeaderTabs.js +58 -127
- package/lib/Layout/Iconfont.js +4 -9
- package/lib/Layout/Language.js +22 -54
- package/lib/Layout/Layout.js +93 -134
- package/lib/Layout/Logo.js +26 -47
- package/lib/Layout/OrgAppList.js +69 -133
- package/lib/Layout/SideMenu.js +72 -151
- package/lib/Layout/Theme.js +28 -79
- package/lib/Layout/createActions.js +3 -9
- package/lib/Layout/images/index.js +5 -36
- package/lib/Layout/index.js +35 -63
- package/lib/Layout/paaslayout/CompactSideMenu.js +40 -90
- package/lib/Layout/paaslayout/Header.js +30 -60
- package/lib/Layout/paaslayout/Logo.js +11 -24
- package/lib/Layout/paaslayout/SideMenu.js +44 -93
- package/lib/Layout/paaslayout/index.js +82 -128
- package/lib/Layout/storage.js +26 -68
- package/lib/LoadingButton/index.js +21 -36
- package/lib/Modal/index.js +45 -62
- package/lib/Page/Box.js +38 -50
- package/lib/Page/index.js +58 -84
- package/lib/Page/utils.js +5 -16
- package/lib/QueryForm/Field/Checkbox.js +10 -19
- package/lib/QueryForm/Field/Select.js +39 -60
- package/lib/QueryForm/Field/SelectInput.js +36 -65
- package/lib/QueryForm/Field/fieldsMap.js +6 -23
- package/lib/QueryForm/Field/index.js +50 -91
- package/lib/QueryForm/createActions.js +9 -16
- package/lib/QueryForm/index.js +83 -165
- package/lib/QueryForm/useForm.js +1 -6
- package/lib/QueryListScene/List.js +89 -153
- package/lib/QueryListScene/QueryForm.js +58 -101
- package/lib/QueryListScene/QueryListScene.js +31 -56
- package/lib/QueryListScene/Title.js +6 -11
- package/lib/QueryListScene/Toolbar.js +16 -22
- package/lib/QueryListScene/createActions.js +7 -13
- package/lib/QueryListScene/index.js +5 -19
- package/lib/QueryListScene/useActions.js +1 -6
- package/lib/Select/DropDownWrap.js +35 -63
- package/lib/Select/index.js +142 -245
- package/lib/Table/ResizableTable/index.js +31 -54
- package/lib/Table/index.js +21 -34
- package/lib/Title/index.js +26 -34
- package/lib/index.js +36 -57
- package/lib/locale.js +9 -25
- package/lib/utils/checkAuth.js +9 -16
- package/lib/utils/findMenuInfoByPath.js +3 -12
- package/lib/utils/index.js +26 -60
- package/package.json +3 -2
|
@@ -1,75 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
4
|
-
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = require("react");
|
|
11
|
-
|
|
12
9
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
13
|
-
|
|
14
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
11
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
17
|
-
|
|
18
12
|
var _lodash = require("lodash");
|
|
19
|
-
|
|
20
13
|
var _ActionsContext = _interopRequireDefault(require("../ActionsContext"));
|
|
21
|
-
|
|
22
14
|
var _utils = require("../../utils");
|
|
23
|
-
|
|
24
15
|
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
25
|
-
|
|
26
16
|
var _NavigationPopup = _interopRequireDefault(require("./NavigationPopup"));
|
|
27
|
-
|
|
28
|
-
function _getRequireWildcardCache() { if (typeof WeakMap
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
function
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
45
|
-
|
|
46
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
47
|
-
|
|
48
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
|
-
|
|
50
|
-
function _templateObject2() {
|
|
51
|
-
var data = _taggedTemplateLiteral(["\n .tnt-navigation-popup {\n position: absolute;\n left: 0;\n top: ", ";\n width: 100%;\n height: ", ";\n background: #FFF;\n box-shadow: 0 10px 10px -8px rgba(0,0,0,.1) inset,\n 0 10px 10px -8px rgba(0,0,0,.1);\n transition: all .15s ease-in-out;\n overflow: hidden;\n padding: 20px 16px;\n box-sizing: border-box;\n &.hide {\n height: 0;\n padding: 0;\n }\n }\n"]);
|
|
52
|
-
|
|
53
|
-
_templateObject2 = function _templateObject2() {
|
|
54
|
-
return data;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return data;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function _templateObject() {
|
|
61
|
-
var data = _taggedTemplateLiteral(["\n &.active {\n color: ", " !important;\n }\n font-size: ", ";\n .tnt-icon {\n font-size: ", ";\n margin-right: 4px;\n }\n span {\n position: relative;\n font-size: ", ";\n top: ", ";\n font-family: auto;\n .tnt-themeS1 & {\n /* color: rgba(255,255,255,.85); */\n }\n }\n .isInIframe & {\n display: none;\n }\n"]);
|
|
62
|
-
|
|
63
|
-
_templateObject = function _templateObject() {
|
|
64
|
-
return data;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
return data;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
71
|
-
|
|
72
|
-
var Navigation = _styledComponents["default"].li(_templateObject(), function (_ref) {
|
|
17
|
+
var _templateObject, _templateObject2;
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
21
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
22
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
23
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
24
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
25
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
26
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
28
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
30
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
31
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
32
|
+
var Navigation = _styledComponents["default"].li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.active {\n color: ", " !important;\n }\n font-size: ", ";\n .tnt-icon {\n font-size: ", ";\n margin-right: 4px;\n }\n span {\n position: relative;\n font-size: ", ";\n top: ", ";\n font-family: auto;\n .tnt-themeS1 & {\n /* color: rgba(255,255,255,.85); */\n }\n }\n .isInIframe & {\n display: none;\n }\n"])), function (_ref) {
|
|
73
33
|
var theme = _ref.theme;
|
|
74
34
|
return theme.primaryColor;
|
|
75
35
|
}, function (_ref2) {
|
|
@@ -85,47 +45,39 @@ var Navigation = _styledComponents["default"].li(_templateObject(), function (_r
|
|
|
85
45
|
var size = _ref5.theme.size;
|
|
86
46
|
return size === 'large' ? '-3px' : '-2px';
|
|
87
47
|
});
|
|
88
|
-
|
|
89
48
|
var createPopupContainer = function createPopupContainer() {
|
|
90
49
|
var div = document.createElement('div');
|
|
91
50
|
div.setAttribute('class', 'tnt-navigation-popup');
|
|
92
51
|
return div;
|
|
93
52
|
};
|
|
94
|
-
|
|
95
|
-
var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject2(), function (props) {
|
|
53
|
+
var GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .tnt-navigation-popup {\n position: absolute;\n left: 0;\n top: ", ";\n width: 100%;\n height: ", ";\n background: #FFF;\n box-shadow: 0 10px 10px -8px rgba(0,0,0,.1) inset,\n 0 10px 10px -8px rgba(0,0,0,.1);\n transition: all .15s ease-in-out;\n overflow: hidden;\n padding: 20px 16px;\n box-sizing: border-box;\n &.hide {\n height: 0;\n padding: 0;\n }\n }\n"])), function (props) {
|
|
96
54
|
return props.theme.size === 'large' ? '60px' : '50px';
|
|
97
55
|
}, function (props) {
|
|
98
56
|
return props.hasLevel3 ? '560px' : '530px';
|
|
99
57
|
});
|
|
100
|
-
|
|
101
|
-
var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
58
|
+
var _default = exports["default"] = (0, _styledComponents.withTheme)(function (props) {
|
|
102
59
|
var actions = (0, _react.useContext)(_ActionsContext["default"]);
|
|
103
60
|
var getText = actions.getText;
|
|
104
61
|
var headerRef = props.headerRef,
|
|
105
|
-
|
|
106
|
-
|
|
62
|
+
menus = props.menus;
|
|
107
63
|
var _useState = (0, _react.useState)(false),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
64
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
65
|
+
visible = _useState2[0],
|
|
66
|
+
setVisible = _useState2[1];
|
|
112
67
|
var popupRef = (0, _react.useRef)();
|
|
113
68
|
(0, _react.useEffect)(function () {
|
|
114
69
|
var _headerRef$current;
|
|
115
|
-
|
|
116
70
|
popupRef.current = createPopupContainer();
|
|
117
71
|
headerRef == null ? void 0 : (_headerRef$current = headerRef.current) == null ? void 0 : _headerRef$current.appendChild(popupRef.current);
|
|
118
72
|
return function () {
|
|
119
73
|
var _headerRef$current2;
|
|
120
|
-
|
|
121
74
|
headerRef == null ? void 0 : (_headerRef$current2 = headerRef.current) == null ? void 0 : _headerRef$current2.removeChild(popupRef.current);
|
|
122
75
|
};
|
|
123
76
|
}, []);
|
|
124
77
|
(0, _react.useEffect)(function () {
|
|
125
78
|
var classNames = popupRef.current.getAttribute('class').split(' ');
|
|
126
|
-
|
|
127
79
|
if (visible) {
|
|
128
|
-
_reactDom["default"].render(React.createElement(_NavigationPopup["default"], {
|
|
80
|
+
_reactDom["default"].render(/*#__PURE__*/React.createElement(_NavigationPopup["default"], {
|
|
129
81
|
actions: actions,
|
|
130
82
|
theme: props.theme,
|
|
131
83
|
menus: menus,
|
|
@@ -135,7 +87,6 @@ var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
|
135
87
|
return setVisible(false);
|
|
136
88
|
}
|
|
137
89
|
}), popupRef.current);
|
|
138
|
-
|
|
139
90
|
popupRef.current.setAttribute('class', classNames.filter(function (item) {
|
|
140
91
|
return item !== 'hide';
|
|
141
92
|
}).join(' '));
|
|
@@ -143,10 +94,9 @@ var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
|
143
94
|
popupRef.current.setAttribute('class', (0, _lodash.uniq)([].concat(_toConsumableArray(classNames), ['hide'])).join(' '));
|
|
144
95
|
}
|
|
145
96
|
}, [visible]);
|
|
146
|
-
return React.createElement(Navigation, {
|
|
97
|
+
return /*#__PURE__*/React.createElement(Navigation, {
|
|
147
98
|
onClick: function onClick(evt) {
|
|
148
99
|
var _evt$nativeEvent, _evt$nativeEvent2;
|
|
149
|
-
|
|
150
100
|
evt.stopPropagation();
|
|
151
101
|
(_evt$nativeEvent = evt.nativeEvent) == null ? void 0 : _evt$nativeEvent.stopImmediatePropagation();
|
|
152
102
|
(_evt$nativeEvent2 = evt.nativeEvent) == null ? void 0 : _evt$nativeEvent2.stopPropagation();
|
|
@@ -155,11 +105,9 @@ var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
|
155
105
|
className: (0, _classnames["default"])({
|
|
156
106
|
active: visible
|
|
157
107
|
})
|
|
158
|
-
}, React.createElement(_Iconfont["default"], {
|
|
108
|
+
}, /*#__PURE__*/React.createElement(_Iconfont["default"], {
|
|
159
109
|
type: "unordered-list"
|
|
160
|
-
}), React.createElement("span", null, getText('globalNavigation')), React.createElement(GlobalStyle, {
|
|
110
|
+
}), /*#__PURE__*/React.createElement("span", null, getText('globalNavigation')), /*#__PURE__*/React.createElement(GlobalStyle, {
|
|
161
111
|
hasLevel3: (0, _utils.hasLevel3)(menus)
|
|
162
112
|
}));
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
exports["default"] = _default;
|
|
113
|
+
});
|
package/lib/Layout/Header.js
CHANGED
|
@@ -1,55 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
4
|
-
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = require("react");
|
|
11
|
-
|
|
12
9
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
13
|
-
|
|
14
10
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
15
|
-
|
|
16
11
|
var _HeaderActions = _interopRequireDefault(require("./HeaderActions"));
|
|
17
|
-
|
|
18
12
|
var _AppList = _interopRequireDefault(require("./AppList"));
|
|
19
|
-
|
|
20
13
|
var _OrgAppList = _interopRequireDefault(require("./OrgAppList"));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
_templateObject2 = function _templateObject2() {
|
|
34
|
-
return data;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return data;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _templateObject() {
|
|
41
|
-
var data = _taggedTemplateLiteral(["\n position: relative;\n z-index: 201;\n height: ", ";\n display: flex;\n color: rgba(255,255,255,.85);\n background: #fff;\n .hasHeaderTabs & {\n // background: #191D29;\n background: #fff !important;\n box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.18);\n .tnt-layout-header-content {\n display: none;\n }\n }\n\n // .tnt-themeS3.hasHeaderTabs &{\n // background: ", "; //#1D4295 !important;\n // }\n\n .isInIframe.noAppList &,\n .isEmptyLayout & {\n display: none;\n }\n .tnt-themeS1 & {\n background: #FFFFFF;\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.15);\n }\n .tnt-themeS1.compatible & {\n /* background: #323b4a; */\n }\n padding-right: 20px;\n background: #FFFFFF;\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.10);\n .compatible & {\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.10);\n }\n transition: box-shadow .2s cubic-bezier(.4,0,.2,1), -webkit-box-shadow .2s cubic-bezier(.4,0,.2,1);\n\n .sidebar-collapsed-controller {\n text-align: center;\n width: ", ";\n line-height: ", ";\n height: ", ";\n cursor: pointer;\n color: ", ";\n margin-right: 10px;\n\n & > .tnt-icon {\n font-size: 16px;\n .large-size & {\n font-size: 20px;\n }\n }\n\n i {\n position: relative;\n top: -1px;\n vertical-align: sub;\n }\n\n &:hover {\n background-color: rgba(0,0,0,.06);\n }\n\n .tnt-themeS1 & {\n /* color: rgba(255,255,255,.85); */\n color: ", ";\n }\n .large-size & {\n font-size: 18px;\n }\n .isInIframe & {\n display: none;\n }\n }\n"]);
|
|
42
|
-
|
|
43
|
-
_templateObject = function _templateObject() {
|
|
44
|
-
return data;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
return data;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
51
|
-
|
|
52
|
-
var Header = _styledComponents["default"].div(_templateObject(), function (props) {
|
|
14
|
+
var _templateObject, _templateObject2;
|
|
15
|
+
/**
|
|
16
|
+
* @file Layout header
|
|
17
|
+
* @author zhangyou
|
|
18
|
+
*/
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
23
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
24
|
+
var Header = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n z-index: 201;\n height: ", ";\n display: flex;\n color: rgba(255,255,255,.85);\n background: #fff;\n .hasHeaderTabs & {\n // background: #191D29;\n background: #fff !important;\n box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.18);\n .tnt-layout-header-content {\n display: none;\n }\n }\n\n // .tnt-themeS3.hasHeaderTabs &{\n // background: ", "; //#1D4295 !important;\n // }\n\n .isInIframe.noAppList &,\n .isEmptyLayout & {\n display: none;\n }\n .tnt-themeS1 & {\n background: #FFFFFF;\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.15);\n }\n .tnt-themeS1.compatible & {\n /* background: #323b4a; */\n }\n padding-right: 20px;\n background: #FFFFFF;\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.10);\n .compatible & {\n box-shadow: 0 1px 10px 0 rgba(0,0,0,0.10);\n }\n transition: box-shadow .2s cubic-bezier(.4,0,.2,1), -webkit-box-shadow .2s cubic-bezier(.4,0,.2,1);\n\n .sidebar-collapsed-controller {\n text-align: center;\n width: ", ";\n line-height: ", ";\n height: ", ";\n cursor: pointer;\n color: ", ";\n margin-right: 10px;\n\n & > .tnt-icon {\n font-size: 16px;\n .large-size & {\n font-size: 20px;\n }\n }\n\n i {\n position: relative;\n top: -1px;\n vertical-align: sub;\n }\n\n &:hover {\n background-color: rgba(0,0,0,.06);\n }\n\n .tnt-themeS1 & {\n /* color: rgba(255,255,255,.85); */\n color: ", ";\n }\n .large-size & {\n font-size: 18px;\n }\n .isInIframe & {\n display: none;\n }\n }\n"])), function (props) {
|
|
53
25
|
return "".concat(props.theme.headerHeight, "px");
|
|
54
26
|
}, function (props) {
|
|
55
27
|
return "".concat(props.theme.blueBgColor, " !important");
|
|
@@ -64,35 +36,33 @@ var Header = _styledComponents["default"].div(_templateObject(), function (props
|
|
|
64
36
|
}, function (props) {
|
|
65
37
|
return "".concat(props.theme.primaryTextColor);
|
|
66
38
|
});
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
39
|
+
var Content = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1;\n .isInIframe & {\n display: none;\n }\n"])));
|
|
40
|
+
var _default = exports["default"] = (0, _styledComponents.withTheme)(function (props) {
|
|
71
41
|
var collapsed = props.collapsed,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
42
|
+
_props$collapseIconPl = props.collapseIconPlacement,
|
|
43
|
+
collapseIconPlacement = _props$collapseIconPl === void 0 ? 'right' : _props$collapseIconPl,
|
|
44
|
+
selectedAppKey = props.selectedAppKey,
|
|
45
|
+
appList = props.appList,
|
|
46
|
+
orgAppShow = props.orgAppShow,
|
|
47
|
+
orgAppList = props.orgAppList,
|
|
48
|
+
orgTreeConfig = props.orgTreeConfig,
|
|
49
|
+
selectedOrgKey = props.selectedOrgKey,
|
|
50
|
+
orgList = props.orgList,
|
|
51
|
+
headerTabs = props.headerTabs,
|
|
52
|
+
onAppChange = props.onAppChange,
|
|
53
|
+
onOrgChange = props.onOrgChange,
|
|
54
|
+
onCollapseChange = props.onCollapseChange,
|
|
55
|
+
extraActions = props.extraActions;
|
|
86
56
|
var headerRef = (0, _react.useRef)();
|
|
87
|
-
return React.createElement(Header, {
|
|
57
|
+
return /*#__PURE__*/React.createElement(Header, {
|
|
88
58
|
className: "tnt-layout-header",
|
|
89
59
|
ref: headerRef
|
|
90
|
-
}, collapseIconPlacement === 'right' && React.createElement("div", {
|
|
60
|
+
}, collapseIconPlacement === 'right' && /*#__PURE__*/React.createElement("div", {
|
|
91
61
|
className: "sidebar-collapsed-controller",
|
|
92
62
|
onClick: onCollapseChange
|
|
93
|
-
}, React.createElement(_Icon["default"], {
|
|
63
|
+
}, /*#__PURE__*/React.createElement(_Icon["default"], {
|
|
94
64
|
type: "menu-".concat(collapsed ? 'unfold' : 'fold')
|
|
95
|
-
})), headerTabs, orgList && React.createElement(_OrgAppList["default"], {
|
|
65
|
+
})), headerTabs, orgList && /*#__PURE__*/React.createElement(_OrgAppList["default"], {
|
|
96
66
|
orgAppShow: orgAppShow,
|
|
97
67
|
selectedOrgKey: selectedOrgKey,
|
|
98
68
|
orgList: orgList,
|
|
@@ -102,15 +72,13 @@ var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
|
102
72
|
orgAppList: orgAppList,
|
|
103
73
|
onAppChange: onAppChange,
|
|
104
74
|
headerTabs: headerTabs
|
|
105
|
-
}), appList && !orgList && React.createElement(_AppList["default"], {
|
|
75
|
+
}), appList && !orgList && /*#__PURE__*/React.createElement(_AppList["default"], {
|
|
106
76
|
items: appList,
|
|
107
77
|
selectedKey: selectedAppKey,
|
|
108
78
|
onChange: onAppChange
|
|
109
|
-
}), React.createElement(Content, {
|
|
79
|
+
}), /*#__PURE__*/React.createElement(Content, {
|
|
110
80
|
className: "tnt-layout-header-content"
|
|
111
|
-
}, props.children), React.createElement(_HeaderActions["default"], _extends({}, props, {
|
|
81
|
+
}, props.children), /*#__PURE__*/React.createElement(_HeaderActions["default"], _extends({}, props, {
|
|
112
82
|
headerRef: headerRef
|
|
113
83
|
}), extraActions));
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
exports["default"] = _default;
|
|
84
|
+
});
|
|
@@ -1,115 +1,87 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
4
|
-
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
require("antd/lib/divider/style");
|
|
11
|
-
|
|
12
9
|
var _divider = _interopRequireDefault(require("antd/lib/divider"));
|
|
13
|
-
|
|
14
10
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
15
|
-
|
|
16
11
|
var _GlobalNavigation = _interopRequireDefault(require("./GlobalNavigation"));
|
|
17
|
-
|
|
18
12
|
var _Language = _interopRequireDefault(require("./Language"));
|
|
19
|
-
|
|
20
13
|
var _Theme = _interopRequireDefault(require("./Theme"));
|
|
21
|
-
|
|
22
14
|
var _CompatibleLanguage = _interopRequireDefault(require("./CompatibleLanguage"));
|
|
23
|
-
|
|
24
15
|
var _Application = _interopRequireDefault(require("./Application"));
|
|
25
|
-
|
|
26
16
|
var _Avatar = _interopRequireDefault(require("./Avatar"));
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function _interopRequireWildcard(
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
37
|
-
|
|
38
|
-
function _templateObject() {
|
|
39
|
-
var data = _taggedTemplateLiteral(["\n list-style: none;\n display: inline-block;\n line-height: ", ";\n margin: 0 0 0 20px;\n .hasHeaderTabs & {\n margin: 0;\n }\n padding: 0;\n white-space: nowrap;\n\n .isInIframe & {\n display: none;\n }\n\n & > li {\n height: 100%;\n display: inline-block;\n vertical-align: top;\n cursor: pointer;\n font-size: 20px;\n margin: 0 7.5px;\n color: ", ";\n .large-size & {\n margin: 0 10px;\n }\n .tnt-themeS1 & {\n /* color: rgba(255,255,255,.85); */\n }\n &:last-of-type {\n margin-right: 0;\n }\n .hasHeaderTabs & {\n color: #455064;\n }\n // \u5220\u9664\u8272\u7CFB\u533A\u5206 \u7EDF\u4E00\u8272\u8C03\n // .hasHeaderTabs:not(.tnt-themeS1) & {\n // color: rgba(255,255,255,.8);\n // }\n .hasHeaderTabs:not(.tnt-themeS1) & {\n color: #455064 !important;\n }\n }\n"]);
|
|
40
|
-
|
|
41
|
-
_templateObject = function _templateObject() {
|
|
42
|
-
return data;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return data;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
49
|
-
|
|
50
|
-
var Actions = _styledComponents["default"].ul(_templateObject(), function (props) {
|
|
17
|
+
var _excluded = ["type", "config", "theme", "userInfo", "menus", "apps", "extraActions", "headerRef", "onLanguageChange", "onThemeChange", "onApplicationChange", "onAppChange", "onOrgChange", "onCollapseChange", "onPersonalSetting", "onChangePassword", "onLogout", "onLogoClick", "AvatarCustom"];
|
|
18
|
+
var _templateObject;
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
21
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
22
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
23
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
24
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
25
|
+
var Actions = _styledComponents["default"].ul(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n list-style: none;\n display: inline-block;\n line-height: ", ";\n margin: 0 0 0 20px;\n .hasHeaderTabs & {\n margin: 0;\n }\n padding: 0;\n white-space: nowrap;\n\n .isInIframe & {\n display: none;\n }\n\n & > li {\n height: 100%;\n display: inline-block;\n vertical-align: top;\n cursor: pointer;\n font-size: 20px;\n margin: 0 7.5px;\n color: ", ";\n .large-size & {\n margin: 0 10px;\n }\n .tnt-themeS1 & {\n /* color: rgba(255,255,255,.85); */\n }\n &:last-of-type {\n margin-right: 0;\n }\n .hasHeaderTabs & {\n color: #455064;\n }\n // \u5220\u9664\u8272\u7CFB\u533A\u5206 \u7EDF\u4E00\u8272\u8C03\n // .hasHeaderTabs:not(.tnt-themeS1) & {\n // color: rgba(255,255,255,.8);\n // }\n .hasHeaderTabs:not(.tnt-themeS1) & {\n color: #455064 !important;\n }\n }\n"])), function (props) {
|
|
51
26
|
return "".concat(props.theme.headerHeight, "px");
|
|
52
27
|
}, function (props) {
|
|
53
28
|
return "".concat(props.theme.headerActionsColor);
|
|
54
29
|
});
|
|
55
|
-
|
|
56
|
-
var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
30
|
+
var _default = exports["default"] = (0, _styledComponents.withTheme)(function (props) {
|
|
57
31
|
var type = props.type,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return React.createElement(Actions, rest, extraActions, globalNavigation && React.createElement(_GlobalNavigation["default"], {
|
|
32
|
+
_props$config = props.config,
|
|
33
|
+
_props$config2 = _props$config === void 0 ? {} : _props$config,
|
|
34
|
+
_props$config2$theme = _props$config2.theme,
|
|
35
|
+
theme = _props$config2$theme === void 0 ? true : _props$config2$theme,
|
|
36
|
+
_props$config2$avatar = _props$config2.avatar,
|
|
37
|
+
avatar = _props$config2$avatar === void 0 ? true : _props$config2$avatar,
|
|
38
|
+
_props$config2$langua = _props$config2.language,
|
|
39
|
+
language = _props$config2$langua === void 0 ? true : _props$config2$langua,
|
|
40
|
+
_props$config2$applic = _props$config2.application,
|
|
41
|
+
application = _props$config2$applic === void 0 ? false : _props$config2$applic,
|
|
42
|
+
_props$config2$global = _props$config2.globalNavigation,
|
|
43
|
+
globalNavigation = _props$config2$global === void 0 ? false : _props$config2$global,
|
|
44
|
+
compatible = props.theme.compatible,
|
|
45
|
+
_props$userInfo = props.userInfo,
|
|
46
|
+
userInfo = _props$userInfo === void 0 ? {} : _props$userInfo,
|
|
47
|
+
menus = props.menus,
|
|
48
|
+
apps = props.apps,
|
|
49
|
+
extraActions = props.extraActions,
|
|
50
|
+
headerRef = props.headerRef,
|
|
51
|
+
onLanguageChange = props.onLanguageChange,
|
|
52
|
+
onThemeChange = props.onThemeChange,
|
|
53
|
+
onApplicationChange = props.onApplicationChange,
|
|
54
|
+
onAppChange = props.onAppChange,
|
|
55
|
+
onOrgChange = props.onOrgChange,
|
|
56
|
+
onCollapseChange = props.onCollapseChange,
|
|
57
|
+
onPersonalSetting = props.onPersonalSetting,
|
|
58
|
+
onChangePassword = props.onChangePassword,
|
|
59
|
+
onLogout = props.onLogout,
|
|
60
|
+
onLogoClick = props.onLogoClick,
|
|
61
|
+
AvatarCustom = props.AvatarCustom,
|
|
62
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
63
|
+
return /*#__PURE__*/React.createElement(Actions, rest, extraActions, globalNavigation && /*#__PURE__*/React.createElement(_GlobalNavigation["default"], {
|
|
92
64
|
headerRef: headerRef,
|
|
93
65
|
menus: menus
|
|
94
|
-
}), type !== 'enterprise' && (!compatible ? React.createElement(React.Fragment, null, language && React.createElement(_Language["default"], {
|
|
66
|
+
}), type !== 'enterprise' && (!compatible ? /*#__PURE__*/React.createElement(React.Fragment, null, language && /*#__PURE__*/React.createElement(_Language["default"], {
|
|
95
67
|
language: userInfo.lang,
|
|
96
68
|
onChange: onLanguageChange
|
|
97
|
-
}), theme && React.createElement(_Theme["default"], {
|
|
69
|
+
}), theme && /*#__PURE__*/React.createElement(_Theme["default"], {
|
|
98
70
|
theme: userInfo.theme,
|
|
99
71
|
onChange: onThemeChange
|
|
100
|
-
})) : React.createElement(_CompatibleLanguage["default"], {
|
|
72
|
+
})) : /*#__PURE__*/React.createElement(_CompatibleLanguage["default"], {
|
|
101
73
|
config: props.config,
|
|
102
74
|
language: userInfo.lang,
|
|
103
75
|
theme: userInfo.theme,
|
|
104
76
|
onLanguageChange: onLanguageChange,
|
|
105
77
|
onThemeChange: onThemeChange
|
|
106
|
-
})), application && React.createElement(_Application["default"], {
|
|
78
|
+
})), application && /*#__PURE__*/React.createElement(_Application["default"], {
|
|
107
79
|
language: userInfo.lang,
|
|
108
80
|
apps: apps,
|
|
109
81
|
onChange: onApplicationChange
|
|
110
|
-
}), avatar && React.createElement(React.Fragment, null, React.createElement(_divider["default"], {
|
|
82
|
+
}), avatar && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_divider["default"], {
|
|
111
83
|
type: "vertical"
|
|
112
|
-
}), AvatarCustom ? React.createElement(AvatarCustom, {
|
|
84
|
+
}), AvatarCustom ? /*#__PURE__*/React.createElement(AvatarCustom, {
|
|
113
85
|
userInfo: userInfo,
|
|
114
86
|
onPersonalSetting: onPersonalSetting,
|
|
115
87
|
onChangePassword: onChangePassword,
|
|
@@ -120,7 +92,7 @@ var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
|
120
92
|
language: language
|
|
121
93
|
},
|
|
122
94
|
onLanguageChange: onLanguageChange
|
|
123
|
-
}) : React.createElement(_Avatar["default"], {
|
|
95
|
+
}) : /*#__PURE__*/React.createElement(_Avatar["default"], {
|
|
124
96
|
userInfo: userInfo,
|
|
125
97
|
onPersonalSetting: onPersonalSetting,
|
|
126
98
|
onChangePassword: onChangePassword,
|
|
@@ -131,6 +103,4 @@ var _default = (0, _styledComponents.withTheme)(function (props) {
|
|
|
131
103
|
language: language
|
|
132
104
|
}
|
|
133
105
|
})));
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
exports["default"] = _default;
|
|
106
|
+
});
|