strata.client.mui 0.0.0-snapshot.4 → 0.0.0-snapshot.40
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/LoginOrRegister/LoginOrRegisterMenu.d.ts +3 -2
- package/LoginOrRegister/LoginOrRegisterMenu.js +17 -13
- package/LoginOrRegister/LoginOrRegisterMenu.js.map +1 -1
- package/Navigation/HamburgerMenu.d.ts +13 -0
- package/Navigation/HamburgerMenu.js +38 -0
- package/Navigation/HamburgerMenu.js.map +1 -0
- package/Navigation/IHamburgerMenuPropertySet.d.ts +10 -0
- package/Navigation/IHamburgerMenuPropertySet.js +3 -0
- package/Navigation/IHamburgerMenuPropertySet.js.map +1 -0
- package/Navigation/IHamburgerMenuState.d.ts +4 -0
- package/Navigation/IHamburgerMenuState.js +3 -0
- package/Navigation/IHamburgerMenuState.js.map +1 -0
- package/Navigation/IMenuItemLinkPropertySet.d.ts +1 -1
- package/Navigation/IMenuItemPropertySet.d.ts +7 -0
- package/Navigation/IMenuItemPropertySet.js +3 -0
- package/Navigation/IMenuItemPropertySet.js.map +1 -0
- package/Navigation/INavigationMenuBarPropertySet.d.ts +3 -0
- package/Navigation/INavigationMenuBarState.d.ts +3 -0
- package/Navigation/INavigationMenuBarState.js +3 -0
- package/Navigation/INavigationMenuBarState.js.map +1 -0
- package/Navigation/INavigationMenuPropertySet.d.ts +1 -0
- package/Navigation/MenuItemLink.d.ts +2 -1
- package/Navigation/MenuItemLink.js +10 -5
- package/Navigation/MenuItemLink.js.map +1 -1
- package/Navigation/NavigationMenu.js +1 -1
- package/Navigation/NavigationMenu.js.map +1 -1
- package/Navigation/NavigationMenuBar.d.ts +12 -3
- package/Navigation/NavigationMenuBar.js +39 -7
- package/Navigation/NavigationMenuBar.js.map +1 -1
- package/Navigation/SearchInput.js +4 -4
- package/Navigation/SearchInput.js.map +1 -1
- package/Navigation/StandardNavigationMenuBar.d.ts +3 -2
- package/Navigation/StandardNavigationMenuBar.js +49 -14
- package/Navigation/StandardNavigationMenuBar.js.map +1 -1
- package/package.json +2 -1
- package/strata.client.mui-v0.0.0-snapshot.40.tgz +0 -0
- package/strata.client.mui-v0.0.0-snapshot.4.tgz +0 -0
|
@@ -2,9 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { INavigationMenuPropertySet } from '../Navigation/INavigationMenuPropertySet';
|
|
3
3
|
import { NavigationMenu } from '../Navigation/NavigationMenu';
|
|
4
4
|
import MouseEvent = React.MouseEvent;
|
|
5
|
+
import Element = React.JSX.Element;
|
|
5
6
|
export declare class LoginOrRegisterMenu extends NavigationMenu {
|
|
6
|
-
router?: History;
|
|
7
7
|
constructor(props: INavigationMenuPropertySet);
|
|
8
|
-
render():
|
|
8
|
+
render(): Element;
|
|
9
9
|
protected handleClick(event: MouseEvent<HTMLButtonElement>): void;
|
|
10
|
+
protected handleClose(): void;
|
|
10
11
|
}
|
|
@@ -3,34 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LoginOrRegisterMenu = void 0;
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
|
+
const AccountCircle_1 = require("@mui/icons-material/AccountCircle");
|
|
6
7
|
const NavigationMenu_1 = require("../Navigation/NavigationMenu");
|
|
7
8
|
const MenuItemLink_1 = require("../Navigation/MenuItemLink");
|
|
8
9
|
class LoginOrRegisterMenu extends NavigationMenu_1.NavigationMenu {
|
|
9
|
-
router;
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
|
12
|
+
this.state = {
|
|
13
|
+
selected: props.selected,
|
|
14
|
+
anchor: null,
|
|
15
|
+
open: false
|
|
16
|
+
};
|
|
12
17
|
}
|
|
13
18
|
render() {
|
|
14
19
|
let className;
|
|
15
|
-
const [anchor, setAnchor] = React.useState(null);
|
|
16
|
-
const open = Boolean(anchor);
|
|
17
|
-
const handleClick = (event) => {
|
|
18
|
-
setAnchor(event.currentTarget);
|
|
19
|
-
};
|
|
20
|
-
const handleClose = () => {
|
|
21
|
-
setAnchor(null);
|
|
22
|
-
};
|
|
23
20
|
if (this.state.selected)
|
|
24
21
|
className = ".Button menu-selected";
|
|
25
22
|
else
|
|
26
23
|
className = ".Button";
|
|
27
24
|
return (React.createElement("div", null,
|
|
28
|
-
React.createElement(material_1.
|
|
29
|
-
|
|
25
|
+
React.createElement(material_1.Tooltip, { title: 'click to login or register' },
|
|
26
|
+
React.createElement(material_1.Button, { id: 'basic-button', "aria-controls": 'basic-menu', "aria-haspopup": 'menu', "aria-expanded": this.state.open, startIcon: React.createElement(AccountCircle_1.default, null), size: 'small', sx: { textTransform: 'none' }, onClick: (event) => this.handleClick(event) }, this.props.text)),
|
|
27
|
+
React.createElement(material_1.Menu, { id: "basic-menu", anchorEl: this.state.anchor, open: this.state.open, onClose: () => this.handleClose(), MenuListProps: {
|
|
30
28
|
'aria-labelledby': 'basic-button',
|
|
31
29
|
} },
|
|
32
|
-
React.createElement(MenuItemLink_1.default, { to: "/login", content: "Login",
|
|
33
|
-
React.createElement(MenuItemLink_1.default, { to: "/register", content: "Register",
|
|
30
|
+
React.createElement(MenuItemLink_1.default, { to: "/login", content: "Login", onClick: () => this.handleClose() }),
|
|
31
|
+
React.createElement(MenuItemLink_1.default, { to: "/register", content: "Register", onClick: () => this.handleClose() }))));
|
|
34
32
|
/*
|
|
35
33
|
<Popover
|
|
36
34
|
className="bp5-minimal"
|
|
@@ -48,6 +46,12 @@ class LoginOrRegisterMenu extends NavigationMenu_1.NavigationMenu {
|
|
|
48
46
|
*/
|
|
49
47
|
}
|
|
50
48
|
handleClick(event) {
|
|
49
|
+
this.setState({ anchor: event.currentTarget });
|
|
50
|
+
this.setState({ open: true });
|
|
51
|
+
}
|
|
52
|
+
handleClose() {
|
|
53
|
+
this.setState({ open: false });
|
|
54
|
+
this.setState({ anchor: null });
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
57
|
exports.LoginOrRegisterMenu = LoginOrRegisterMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginOrRegisterMenu.js","sourceRoot":"","sources":["../../../main/typescript/LoginOrRegister/LoginOrRegisterMenu.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"LoginOrRegisterMenu.js","sourceRoot":"","sources":["../../../main/typescript/LoginOrRegister/LoginOrRegisterMenu.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,4CAAkD;AAClD,qEAAkE;AAElE,iEAA4D;AAC5D,6DAAsD;AAItD,MACM,mBACF,SAAQ,+BAAc;IAEtB,YAAY,KAAiC;QAEzC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,KAAK;SAAC,CAAA;IACpB,CAAC;IAED,MAAM;QAEF,IAAI,SAAiB,CAAC;QAEtB,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ;YACnB,SAAS,GAAG,uBAAuB,CAAC;;YAEpC,SAAS,GAAG,SAAS,CAAC;QAE1B,OAAO,CACH;YACI,oBAAC,kBAAO,IAAC,KAAK,EAAE,4BAA4B;gBACxC,oBAAC,iBAAM,IACH,EAAE,EAAE,cAAc,mBACH,YAAY,mBACZ,MAAM,mBACN,IAAI,CAAC,KAAK,CAAC,IAAI,EAC9B,SAAS,EAAE,oBAAC,uBAAiB,OAAE,EAC/B,IAAI,EAAE,OAAO,EACb,EAAE,EAAE,EAAC,aAAa,EAAC,MAAM,EAAC,EAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAC1C,IAAI,CAAC,KAAK,CAAC,IAAI,CACX,CACH;YACV,oBAAC,eAAI,IACD,EAAE,EAAC,YAAY,EACf,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAC3B,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,EACjC,aAAa,EAAE;oBACX,iBAAiB,EAAE,cAAc;iBACpC;gBACD,oBAAC,sBAAY,IAAE,EAAE,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG;gBAC/E,oBAAC,sBAAY,IAAC,EAAE,EAAC,WAAW,EAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CACjF,CACL,CAAC,CAAC;QACZ;;;;;;;;;;;;;;WAcG;IACP,CAAC;IAES,WAAW,CAAC,KAAoC;QAEtD,IAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAC,KAAK,CAAC,aAAa,EAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,IAAI,EAAC,CAAC,CAAC;IAC/B,CAAC;IAES,WAAW;QAEjB,IAAI,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,KAAK,EAAC,CAAC,CAAC;QAC5B,IAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,CAAC,CAAC;IACjC,CAAC;CACJ;AA7ED,kDA6EC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Component } from "react";
|
|
3
|
+
import Element = React.JSX.Element;
|
|
4
|
+
import MouseEvent = React.MouseEvent;
|
|
5
|
+
import { IHamburgerMenuPropertySet } from "./IHamburgerMenuPropertySet";
|
|
6
|
+
import { IHamburgerMenuState } from "./IHamburgerMenuState";
|
|
7
|
+
export declare class HamburgerMenu extends Component<IHamburgerMenuPropertySet, IHamburgerMenuState> {
|
|
8
|
+
constructor(props: IHamburgerMenuPropertySet);
|
|
9
|
+
render(): Element;
|
|
10
|
+
protected openMenu(event: MouseEvent<HTMLButtonElement>): void;
|
|
11
|
+
protected closeMenu(): void;
|
|
12
|
+
private getMenuItems;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HamburgerMenu = void 0;
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
const Menu_1 = require("@mui/icons-material/Menu");
|
|
8
|
+
const MenuItemLink_1 = require("./MenuItemLink");
|
|
9
|
+
class HamburgerMenu extends react_1.Component {
|
|
10
|
+
constructor(props) {
|
|
11
|
+
super(props);
|
|
12
|
+
this.state = {
|
|
13
|
+
anchor: null,
|
|
14
|
+
open: false
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return (React.createElement(material_1.Box, { sx: { display: { xs: 'flex', md: 'none' } } },
|
|
19
|
+
React.createElement(material_1.IconButton, { id: 'hamburger-button', "aria-controls": 'hamburger-menu', "aria-haspopup": 'menu', "aria-expanded": this.state.open, size: 'large', onClick: (event) => this.openMenu(event) },
|
|
20
|
+
React.createElement(Menu_1.default, null)),
|
|
21
|
+
React.createElement(material_1.Menu, { id: "hamburger-menu", anchorEl: this.state.anchor, open: this.state.open, onClose: () => this.closeMenu(), MenuListProps: {
|
|
22
|
+
'aria-labelledby': 'hamburger-button',
|
|
23
|
+
} }, this.getMenuItems().map((item) => (React.createElement(MenuItemLink_1.default, { to: item.to, content: item.text, onClick: () => this.closeMenu() }))))));
|
|
24
|
+
}
|
|
25
|
+
openMenu(event) {
|
|
26
|
+
this.setState({ anchor: event.currentTarget });
|
|
27
|
+
this.setState({ open: true });
|
|
28
|
+
}
|
|
29
|
+
closeMenu() {
|
|
30
|
+
this.setState({ open: false });
|
|
31
|
+
this.setState({ anchor: null });
|
|
32
|
+
}
|
|
33
|
+
getMenuItems() {
|
|
34
|
+
return this.props.menuItems;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.HamburgerMenu = HamburgerMenu;
|
|
38
|
+
//# sourceMappingURL=HamburgerMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HamburgerMenu.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/HamburgerMenu.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAEhC,4CAAkD;AAClD,mDAAgD;AAEhD,iDAA0C;AAK1C,MACM,aACF,SAAQ,iBAAwD;IAEhE,YAAY,KAA+B;QAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,MAAM,EAAC,IAAI;YACX,IAAI,EAAC,KAAK;SAAC,CAAC;IACpB,CAAC;IAED,MAAM;QAEF,OAAO,CACH,oBAAC,cAAG,IAAC,EAAE,EAAE,EAAC,OAAO,EAAE,EAAC,EAAE,EAAC,MAAM,EAAE,EAAE,EAAC,MAAM,EAAC,EAAC;YACtC,oBAAC,qBAAU,IACP,EAAE,EAAE,kBAAkB,mBACP,gBAAgB,mBAChB,MAAM,mBACN,IAAI,CAAC,KAAK,CAAC,IAAI,EAC9B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;gBACxC,oBAAC,cAAQ,OAAE,CACF;YACb,oBAAC,eAAI,IACD,EAAE,EAAC,gBAAgB,EACnB,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAC3B,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,EAC/B,aAAa,EAAE;oBACX,iBAAiB,EAAE,kBAAkB;iBACxC,IACA,IAAI,CAAC,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC/B,oBAAC,sBAAY,IACT,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CACzC,CAAC,CACC,CACL,CACT,CAAC;IACN,CAAC;IAES,QAAQ,CAAC,KAAoC;QAEnD,IAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAC,KAAK,CAAC,aAAa,EAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,IAAI,EAAC,CAAC,CAAC;IAC/B,CAAC;IAES,SAAS;QAEf,IAAI,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAC,KAAK,EAAC,CAAC,CAAC;QAC5B,IAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,CAAC,CAAC;IACjC,CAAC;IAEO,YAAY;QAEhB,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;IAChC,CAAC;CACJ;AA5DD,sCA4DC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonProps as IButtonProps } from '@mui/material';
|
|
2
|
+
import { NavigationMenuBar } from "./NavigationMenuBar";
|
|
3
|
+
import { BrowserRouter } from "react-router-dom";
|
|
4
|
+
import { IMenuItemPropertySet } from "./IMenuItemPropertySet";
|
|
5
|
+
export interface IHamburgerMenuPropertySet extends IButtonProps {
|
|
6
|
+
id: string;
|
|
7
|
+
menubar: NavigationMenuBar;
|
|
8
|
+
menuItems: Array<IMenuItemPropertySet>;
|
|
9
|
+
router?: BrowserRouter;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHamburgerMenuPropertySet.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/IHamburgerMenuPropertySet.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHamburgerMenuState.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/IHamburgerMenuState.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMenuItemPropertySet.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/IMenuItemPropertySet.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"INavigationMenuBarState.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/INavigationMenuBarState.ts"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,7 @@ import { ButtonProps as IButtonProps } from "@mui/material";
|
|
|
2
2
|
import { NavigationMenuBar } from './NavigationMenuBar';
|
|
3
3
|
import { BrowserRouter } from 'react-router-dom';
|
|
4
4
|
export interface INavigationMenuPropertySet extends IButtonProps {
|
|
5
|
+
userType: string;
|
|
5
6
|
id: string;
|
|
6
7
|
to: string;
|
|
7
8
|
text: string;
|
|
@@ -2,11 +2,12 @@ import * as React from 'react';
|
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { RouteComponentProps } from 'react-router-dom';
|
|
4
4
|
import { IMenuItemLinkPropertySet } from './IMenuItemLinkPropertySet';
|
|
5
|
+
import MouseEvent = React.MouseEvent;
|
|
5
6
|
import Element = React.JSX.Element;
|
|
6
7
|
export declare class MenuItemLink extends Component<IMenuItemLinkPropertySet & RouteComponentProps, any> {
|
|
7
8
|
constructor(props: IMenuItemLinkPropertySet & RouteComponentProps);
|
|
8
9
|
render(): Element;
|
|
9
|
-
doClick(): void;
|
|
10
|
+
doClick(event: MouseEvent<HTMLLIElement>): void;
|
|
10
11
|
}
|
|
11
12
|
declare const _default: React.ComponentClass<Pick<IMenuItemLinkPropertySet & RouteComponentProps<{}, import("react-router").StaticContext, unknown>, keyof IMenuItemLinkPropertySet> & {
|
|
12
13
|
wrappedComponentRef?: React.Ref<MenuItemLink>;
|
|
@@ -10,16 +10,21 @@ class MenuItemLink extends react_1.Component {
|
|
|
10
10
|
super(props);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (React.createElement(material_1.MenuItem, {
|
|
13
|
+
return (React.createElement(material_1.MenuItem, { dense: true, onClick: (event) => this.doClick(event) }, this.props.content));
|
|
14
14
|
}
|
|
15
|
-
doClick() {
|
|
15
|
+
doClick(event) {
|
|
16
16
|
this
|
|
17
17
|
.props
|
|
18
18
|
.history
|
|
19
19
|
.push(this.props.to);
|
|
20
|
-
this
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
if (this.props.callback != null)
|
|
21
|
+
this
|
|
22
|
+
.props
|
|
23
|
+
.callback();
|
|
24
|
+
if (this.props.onClick != null)
|
|
25
|
+
this
|
|
26
|
+
.props
|
|
27
|
+
.onClick(event);
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
exports.MenuItemLink = MenuItemLink;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItemLink.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/MenuItemLink.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAChC,uDAAgE;AAEhE,4CAAuC;
|
|
1
|
+
{"version":3,"file":"MenuItemLink.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/MenuItemLink.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAChC,uDAAgE;AAEhE,4CAAuC;AAKvC,MACM,YACF,SAAQ,iBAA6D;IAErE,YAAY,KAAqD;QAE7D,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,MAAM;QAEF,OAAO,CACH,oBAAC,mBAAQ,IACL,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IACtC,IAAI,CAAC,KAAK,CAAC,OAAO,CACZ,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,CAAC,KAAgC;QAEpC,IAAI;aACC,KAAK;aACL,OAAO;aACP,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAEzB,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI;YAC3B,IAAI;iBACC,KAAK;iBACL,QAAQ,EAAE,CAAC;QAEpB,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI;YAC1B,IAAI;iBACC,KAAK;iBACL,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AApCD,oCAoCC;AAED,kBAAe,IAAA,6BAAU,EAAC,YAAY,CAAC,CAAC"}
|
|
@@ -15,7 +15,7 @@ class NavigationMenu extends react_1.Component {
|
|
|
15
15
|
return (React.createElement(react_router_dom_1.NavLink, { className: ".MuiButton-text nav-menu", role: "button", activeClassName: "menu-selected", id: this.props.id, to: this.props.to, onClick: () => this.select() }, this.props.text));
|
|
16
16
|
}
|
|
17
17
|
select() {
|
|
18
|
-
this.setState(
|
|
18
|
+
this.setState({ selected: true });
|
|
19
19
|
this.props.menubar.onSelectionChange(this);
|
|
20
20
|
}
|
|
21
21
|
unselect() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenu.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/NavigationMenu.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAChC,uDAAyC;AAIzC,MACM,cACF,SAAQ,iBAAyC;IAEjD,YAAY,KAAgC;QAExC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC1C,IAAI,KAAK,CAAC,OAAO,IAAI,IAAI;YACrB,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,MAAM;QAEF,OAAO,CACH,oB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C,GAAG,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,CAAC,CAAC,CAAC;IAC5C,CAAC;CACL;AApCD,wCAoCC"}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { INavigationMenuBarPropertySet } from './INavigationMenuBarPropertySet';
|
|
4
|
+
import { INavigationMenuBarState } from "./INavigationMenuBarState";
|
|
4
5
|
import { NavigationMenu } from './NavigationMenu';
|
|
5
6
|
import Element = React.JSX.Element;
|
|
6
|
-
|
|
7
|
+
import { IMenuItemPropertySet } from "./IMenuItemPropertySet";
|
|
8
|
+
export declare abstract class NavigationMenuBar extends Component<INavigationMenuBarPropertySet, INavigationMenuBarState> {
|
|
7
9
|
private menus;
|
|
8
10
|
protected constructor(props: INavigationMenuBarPropertySet);
|
|
9
11
|
render(): Element;
|
|
10
12
|
register(menu: NavigationMenu): void;
|
|
13
|
+
onUserTypeChange(newUserType: string): void;
|
|
11
14
|
onSelectionChange(selected: NavigationMenu): void;
|
|
12
|
-
protected
|
|
13
|
-
protected
|
|
15
|
+
protected renderLeft(): Element;
|
|
16
|
+
protected renderRight(): Element;
|
|
17
|
+
protected renderHeading(): Element;
|
|
18
|
+
protected renderMenus(): Element;
|
|
19
|
+
protected abstract renderControls(): Element;
|
|
20
|
+
protected abstract getMenuItems(): Array<IMenuItemPropertySet>;
|
|
21
|
+
private initializeIfNeeded;
|
|
22
|
+
private getMenus;
|
|
14
23
|
}
|
|
@@ -4,30 +4,62 @@ exports.NavigationMenuBar = void 0;
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
|
+
const NavigationMenu_1 = require("./NavigationMenu");
|
|
8
|
+
const HamburgerMenu_1 = require("./HamburgerMenu");
|
|
7
9
|
class NavigationMenuBar extends react_1.Component {
|
|
8
10
|
menus;
|
|
9
11
|
constructor(props) {
|
|
10
12
|
super(props);
|
|
11
13
|
this.menus = new Map();
|
|
14
|
+
this.state = { currentUserType: this.props.initialUserType };
|
|
12
15
|
}
|
|
13
16
|
render() {
|
|
14
|
-
return (React.createElement(material_1.AppBar,
|
|
15
|
-
React.createElement(material_1.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.renderRight()))));
|
|
17
|
+
return (React.createElement(material_1.AppBar, { position: 'static' },
|
|
18
|
+
React.createElement(material_1.Toolbar, { disableGutters: true, sx: { justifyContent: 'space-between' } },
|
|
19
|
+
this.renderLeft(),
|
|
20
|
+
this.renderRight())));
|
|
19
21
|
}
|
|
20
22
|
register(menu) {
|
|
21
|
-
this.
|
|
23
|
+
this.initializeIfNeeded(menu);
|
|
24
|
+
this.menus.get(menu.props.userType).push(menu);
|
|
25
|
+
}
|
|
26
|
+
onUserTypeChange(newUserType) {
|
|
27
|
+
if (this.menus.has(newUserType))
|
|
28
|
+
this.setState({ currentUserType: newUserType });
|
|
22
29
|
}
|
|
23
30
|
onSelectionChange(selected) {
|
|
24
31
|
this
|
|
25
|
-
.
|
|
32
|
+
.getMenus()
|
|
26
33
|
.forEach((menu) => {
|
|
27
34
|
if (menu.props.id != selected.props.id)
|
|
28
35
|
menu.unselect();
|
|
29
36
|
});
|
|
30
37
|
}
|
|
38
|
+
renderLeft() {
|
|
39
|
+
return (React.createElement(material_1.Stack, { direction: 'row', alignItems: 'center', spacing: 2, marginLeft: 2 },
|
|
40
|
+
this.renderHeading(),
|
|
41
|
+
React.createElement(material_1.Divider, { orientation: 'vertical', flexItem: true }),
|
|
42
|
+
this.renderMenus()));
|
|
43
|
+
}
|
|
44
|
+
renderRight() {
|
|
45
|
+
return (React.createElement(material_1.Stack, { direction: 'row', alignItems: 'center', spacing: 2, marginRight: 2 }, this.renderControls()));
|
|
46
|
+
}
|
|
47
|
+
renderHeading() {
|
|
48
|
+
return (React.createElement(material_1.Stack, { direction: 'row', alignItems: 'center', spacing: 2 },
|
|
49
|
+
React.createElement(HamburgerMenu_1.HamburgerMenu, { id: 'main.hamburger', menubar: this, menuItems: this.getMenuItems() }),
|
|
50
|
+
this.props.icon != null && this.props.icon,
|
|
51
|
+
React.createElement(material_1.Typography, null, this.props.heading)));
|
|
52
|
+
}
|
|
53
|
+
renderMenus() {
|
|
54
|
+
return (React.createElement(material_1.Box, { sx: { display: { xs: 'none', md: 'flex' } } }, this.getMenuItems().map((menu) => (React.createElement(NavigationMenu_1.NavigationMenu, { userType: menu.userType, id: menu.id, to: menu.to, text: menu.text, selected: menu.selected, menubar: this })))));
|
|
55
|
+
}
|
|
56
|
+
initializeIfNeeded(menu) {
|
|
57
|
+
if (!this.menus.has(menu.props.userType))
|
|
58
|
+
this.menus.set(menu.props.userType, new Array());
|
|
59
|
+
}
|
|
60
|
+
getMenus() {
|
|
61
|
+
return this.menus.get(this.state.currentUserType);
|
|
62
|
+
}
|
|
31
63
|
}
|
|
32
64
|
exports.NavigationMenuBar = NavigationMenuBar;
|
|
33
65
|
//# sourceMappingURL=NavigationMenuBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenuBar.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/NavigationMenuBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"NavigationMenuBar.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/NavigationMenuBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAChC,4CAQuB;AAGvB,qDAAgD;AAEhD,mDAA8C;AAG9C,MACe,iBACX,SAAQ,iBAAgE;IAEhE,KAAK,CAAoC;IAEjD,YAAsB,KAAoC;QAEtD,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAgC,CAAC;QACrD,IAAI,CAAC,KAAK,GAAG,EAAC,eAAe,EAAC,IAAI,CAAC,KAAK,CAAC,eAA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AAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAC,IAAI,KAAK,EAAkB,CAAC,CAAC;IACxE,CAAC;IAEO,QAAQ;QAEZ,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACtD,CAAC;CACJ;AAhHD,8CAgHC"}
|
|
@@ -4,16 +4,16 @@ exports.SearchInput = void 0;
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
|
-
const
|
|
7
|
+
const Search_1 = require("@mui/icons-material/Search");
|
|
8
8
|
class SearchInput extends react_1.Component {
|
|
9
9
|
constructor(props) {
|
|
10
10
|
super(props);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (React.createElement(material_1.TextField, { id: "search",
|
|
13
|
+
return (React.createElement(material_1.TextField, { id: "search", placeholder: "Search", size: 'small', InputProps: {
|
|
14
14
|
startAdornment: (React.createElement(material_1.InputAdornment, { position: "start" },
|
|
15
|
-
React.createElement(
|
|
16
|
-
}, variant:
|
|
15
|
+
React.createElement(Search_1.default, null)))
|
|
16
|
+
}, variant: 'outlined' }));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.SearchInput = SearchInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/SearchInput.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAEhC,4CAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/SearchInput.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAEhC,4CAAuD;AACvD,uDAAoD;AAGpD,MACM,WACF,SAAQ,iBAAsC;IAG9C,YAAY,KAA8B;QAEtC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,MAAM;QAEF,OAAO,CACH,oBAAC,oBAAS,IACN,EAAE,EAAC,QAAQ,EACX,WAAW,EAAC,QAAQ,EACpB,IAAI,EAAE,OAAO,EACb,UAAU,EAAE;gBACR,cAAc,EAAE,CACZ,oBAAC,yBAAc,IAAC,QAAQ,EAAC,OAAO;oBAC5B,oBAAC,gBAAU,OAAE,CACA,CAAC;aAAC,EAC3B,OAAO,EAAE,UAAU,GAAI,CAAC,CAAC;IACrC,CAAC;CACJ;AAxBD,kCAwBC"}
|
|
@@ -2,8 +2,9 @@ import * as React from "react";
|
|
|
2
2
|
import { NavigationMenuBar } from "./NavigationMenuBar";
|
|
3
3
|
import { INavigationMenuBarPropertySet } from "./INavigationMenuBarPropertySet";
|
|
4
4
|
import Element = React.JSX.Element;
|
|
5
|
+
import { IMenuItemPropertySet } from "./IMenuItemPropertySet";
|
|
5
6
|
export declare class StandardNavigationMenuBar extends NavigationMenuBar {
|
|
6
7
|
constructor(props: INavigationMenuBarPropertySet);
|
|
7
|
-
protected
|
|
8
|
-
protected
|
|
8
|
+
protected renderControls(): Element;
|
|
9
|
+
protected getMenuItems(): Array<IMenuItemPropertySet>;
|
|
9
10
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StandardNavigationMenuBar = void 0;
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const NavigationMenuBar_1 = require("./NavigationMenuBar");
|
|
6
|
-
const NavigationMenu_1 = require("./NavigationMenu");
|
|
7
6
|
const SearchInput_1 = require("./SearchInput");
|
|
8
7
|
const material_1 = require("@mui/material");
|
|
9
8
|
const Icon_1 = require("@mui/material/Icon");
|
|
@@ -12,23 +11,59 @@ class StandardNavigationMenuBar extends NavigationMenuBar_1.NavigationMenuBar {
|
|
|
12
11
|
constructor(props) {
|
|
13
12
|
super(props);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
|
-
return (React.createElement(material_1.Box, { sx: { justifyContext: 'flex-start' } },
|
|
17
|
-
React.createElement(material_1.Typography, null, "Granite"),
|
|
18
|
-
React.createElement(material_1.Divider, null),
|
|
19
|
-
React.createElement(NavigationMenu_1.NavigationMenu, { id: "main.home", to: "/home", text: "Home", selected: true, menubar: this }),
|
|
20
|
-
React.createElement(NavigationMenu_1.NavigationMenu, { id: "main.user", to: "/user", text: "User", selected: false, menubar: this }),
|
|
21
|
-
React.createElement(NavigationMenu_1.NavigationMenu, { id: "main.group", to: "/group", text: "Group", selected: false, menubar: this }),
|
|
22
|
-
React.createElement(NavigationMenu_1.NavigationMenu, { id: "main.role", to: "/role", text: "Role", selected: false, menubar: this }),
|
|
23
|
-
React.createElement(NavigationMenu_1.NavigationMenu, { id: "main.tenant", to: "/tenant", text: "Tenant", selected: false, menubar: this }),
|
|
24
|
-
React.createElement(NavigationMenu_1.NavigationMenu, { id: "main.help", to: "/help", text: "Help", selected: false, menubar: this })));
|
|
25
|
-
}
|
|
26
|
-
renderRight() {
|
|
14
|
+
renderControls() {
|
|
27
15
|
return (React.createElement(material_1.Box, { sx: { justifyContext: 'flex-end' } },
|
|
28
|
-
React.createElement(LoginOrRegister_1.LoginOrRegisterMenu, { id: "main.login-profile", to: "", startIcon: React.createElement(Icon_1.default, null), text: "guest", selected: false, menubar: this }),
|
|
16
|
+
React.createElement(LoginOrRegister_1.LoginOrRegisterMenu, { userType: 'Guest', id: "main.login-profile", to: "", startIcon: React.createElement(Icon_1.default, null), text: "guest", selected: false, menubar: this }),
|
|
29
17
|
React.createElement(material_1.Divider, null),
|
|
30
18
|
React.createElement(SearchInput_1.SearchInput, null)));
|
|
31
19
|
}
|
|
20
|
+
getMenuItems() {
|
|
21
|
+
const menuItems = [
|
|
22
|
+
{
|
|
23
|
+
userType: 'Guest',
|
|
24
|
+
id: 'main.home',
|
|
25
|
+
to: '/home',
|
|
26
|
+
text: 'Home',
|
|
27
|
+
selected: true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
userType: 'Guest',
|
|
31
|
+
id: 'main.user',
|
|
32
|
+
to: '/user',
|
|
33
|
+
text: 'User',
|
|
34
|
+
selected: false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
userType: 'Guest',
|
|
38
|
+
id: 'main.group',
|
|
39
|
+
to: '/group',
|
|
40
|
+
text: 'Group',
|
|
41
|
+
selected: false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
userType: 'Guest',
|
|
45
|
+
id: 'main.role',
|
|
46
|
+
to: '/role',
|
|
47
|
+
text: 'Role',
|
|
48
|
+
selected: false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
userType: 'Guest',
|
|
52
|
+
id: 'main.tenant',
|
|
53
|
+
to: '/tenant',
|
|
54
|
+
text: 'Tenant',
|
|
55
|
+
selected: false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
userType: 'Guest',
|
|
59
|
+
id: 'main.help',
|
|
60
|
+
to: '/help',
|
|
61
|
+
text: 'Help',
|
|
62
|
+
selected: false
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
return menuItems;
|
|
66
|
+
}
|
|
32
67
|
}
|
|
33
68
|
exports.StandardNavigationMenuBar = StandardNavigationMenuBar;
|
|
34
69
|
//# sourceMappingURL=StandardNavigationMenuBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardNavigationMenuBar.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/StandardNavigationMenuBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,2DAAsD;AAEtD
|
|
1
|
+
{"version":3,"file":"StandardNavigationMenuBar.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/StandardNavigationMenuBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,2DAAsD;AAEtD,+CAA0C;AAC1C,4CAA0C;AAC1C,6CAAgD;AAChD,wDAAuD;AAIvD,MACM,yBACF,SAAQ,qCAAiB;IAEzB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,EAAE,OAAO;gBACX,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,KAAK;aAClB;SACJ,CAAC;QAEN,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AA5ED,8DA4EC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strata.client.mui",
|
|
3
|
-
"version": "0.0.0-snapshot.
|
|
3
|
+
"version": "0.0.0-snapshot.40",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"increment-snapshot": "npm version prerelease",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@emotion/react": "^11.11.1",
|
|
13
13
|
"@emotion/styled": "^11.11.0",
|
|
14
|
+
"@mui/icons-material": "^5.14.9",
|
|
14
15
|
"@mui/material": "^5.14.9",
|
|
15
16
|
"@types/react": "^18.2.21",
|
|
16
17
|
"@types/react-dom": "^18.2.7",
|
|
Binary file
|
|
Binary file
|