strata.client.mui 0.0.0-snapshot.1 → 0.0.0-snapshot.11
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 +12 -0
- package/{Navigation/LoginAndProfileMenu.js → LoginOrRegister/LoginOrRegisterMenu.js} +18 -10
- package/LoginOrRegister/LoginOrRegisterMenu.js.map +1 -0
- package/LoginOrRegister/index.d.ts +1 -0
- package/LoginOrRegister/index.js +6 -0
- package/LoginOrRegister/index.js.map +1 -0
- package/Navigation/IMenuItemLinkPropertySet.d.ts +1 -1
- package/Navigation/MenuItemLink.d.ts +2 -1
- package/Navigation/MenuItemLink.js +6 -5
- package/Navigation/MenuItemLink.js.map +1 -1
- package/Navigation/NavigationMenu.js +1 -1
- package/Navigation/NavigationMenu.js.map +1 -1
- package/Navigation/SearchInput.js +3 -3
- package/Navigation/SearchInput.js.map +1 -1
- package/Navigation/StandardNavigationMenuBar.js +2 -2
- package/Navigation/StandardNavigationMenuBar.js.map +1 -1
- package/Navigation/index.d.ts +0 -1
- package/Navigation/index.js +1 -3
- package/Navigation/index.js.map +1 -1
- package/package.json +1 -1
- package/strata.client.mui-v0.0.0-snapshot.11.tgz +0 -0
- package/Main/ReactApplication.d.ts +0 -10
- package/Main/ReactApplication.js +0 -22
- package/Main/ReactApplication.js.map +0 -1
- package/Main/index.d.ts +0 -1
- package/Main/index.js +0 -6
- package/Main/index.js.map +0 -1
- package/Navigation/LoginAndProfileMenu.d.ts +0 -7
- package/Navigation/LoginAndProfileMenu.js.map +0 -1
- package/Presenter/IPresenterViewProperty.d.ts +0 -3
- package/Presenter/IPresenterViewProperty.js +0 -3
- package/Presenter/IPresenterViewProperty.js.map +0 -1
- package/Presenter/IRenderable.d.ts +0 -5
- package/Presenter/IRenderable.js +0 -3
- package/Presenter/IRenderable.js.map +0 -1
- package/Presenter/IRenderableViewProperty.d.ts +0 -4
- package/Presenter/IRenderableViewProperty.js +0 -3
- package/Presenter/IRenderableViewProperty.js.map +0 -1
- package/Presenter/PresenterView.d.ts +0 -12
- package/Presenter/PresenterView.js +0 -14
- package/Presenter/PresenterView.js.map +0 -1
- package/Presenter/RenderableView.d.ts +0 -9
- package/Presenter/RenderableView.js +0 -14
- package/Presenter/RenderableView.js.map +0 -1
- package/Presenter/index.d.ts +0 -5
- package/Presenter/index.js +0 -8
- package/Presenter/index.js.map +0 -1
- package/strata.client.mui-v0.0.0-snapshot.1.tgz +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { INavigationMenuPropertySet } from '../Navigation/INavigationMenuPropertySet';
|
|
3
|
+
import { NavigationMenu } from '../Navigation/NavigationMenu';
|
|
4
|
+
import MouseEvent = React.MouseEvent;
|
|
5
|
+
import Element = React.JSX.Element;
|
|
6
|
+
export declare class LoginOrRegisterMenu extends NavigationMenu {
|
|
7
|
+
router?: History;
|
|
8
|
+
constructor(props: INavigationMenuPropertySet);
|
|
9
|
+
render(): Element;
|
|
10
|
+
protected handleClick(event: MouseEvent<HTMLButtonElement>): void;
|
|
11
|
+
protected handleClose(): void;
|
|
12
|
+
}
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LoginOrRegisterMenu = void 0;
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
|
-
const NavigationMenu_1 = require("
|
|
7
|
-
const MenuItemLink_1 = require("
|
|
8
|
-
class
|
|
6
|
+
const NavigationMenu_1 = require("../Navigation/NavigationMenu");
|
|
7
|
+
const MenuItemLink_1 = require("../Navigation/MenuItemLink");
|
|
8
|
+
class LoginOrRegisterMenu extends NavigationMenu_1.NavigationMenu {
|
|
9
9
|
router;
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
|
12
|
+
this.setState({ anchor: null });
|
|
12
13
|
}
|
|
13
14
|
render() {
|
|
14
15
|
let className;
|
|
16
|
+
const open = Boolean(this.state.anchor);
|
|
15
17
|
if (this.state.selected)
|
|
16
18
|
className = ".Button menu-selected";
|
|
17
19
|
else
|
|
18
20
|
className = ".Button";
|
|
19
21
|
return (React.createElement("div", null,
|
|
20
|
-
React.createElement(material_1.Button, { id: "basic-button", "aria-controls":
|
|
21
|
-
React.createElement(material_1.Menu, { id: "basic-menu", open: false, onClose: () => this.
|
|
22
|
+
React.createElement(material_1.Button, { id: "basic-button", "aria-controls": open ? 'basic-menu' : undefined, "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, startIcon: this.props.startIcon, size: 'small', sx: { textTransform: 'none' }, onClick: (event) => this.handleClick(event) }, this.props.text),
|
|
23
|
+
React.createElement(material_1.Menu, { id: "basic-menu", anchorEl: this.state.anchor, open: false, onClose: () => this.handleClose(), MenuListProps: {
|
|
22
24
|
'aria-labelledby': 'basic-button',
|
|
23
25
|
} },
|
|
24
|
-
React.createElement(MenuItemLink_1.default, { to: "/login", content: "Login",
|
|
25
|
-
React.createElement(MenuItemLink_1.default, { to: "/
|
|
26
|
+
React.createElement(MenuItemLink_1.default, { to: "/login", content: "Login", onClick: (event) => this.handleClose() }),
|
|
27
|
+
React.createElement(MenuItemLink_1.default, { to: "/register", content: "Register", onClick: (event) => this.handleClose() }))));
|
|
26
28
|
/*
|
|
27
29
|
<Popover
|
|
28
30
|
className="bp5-minimal"
|
|
@@ -39,6 +41,12 @@ class LoginAndProfileMenu extends NavigationMenu_1.NavigationMenu {
|
|
|
39
41
|
|
|
40
42
|
*/
|
|
41
43
|
}
|
|
44
|
+
handleClick(event) {
|
|
45
|
+
this.setState({ anchor: event.currentTarget });
|
|
46
|
+
}
|
|
47
|
+
handleClose() {
|
|
48
|
+
this.setState({ anchor: null });
|
|
49
|
+
}
|
|
42
50
|
}
|
|
43
|
-
exports.
|
|
44
|
-
//# sourceMappingURL=
|
|
51
|
+
exports.LoginOrRegisterMenu = LoginOrRegisterMenu;
|
|
52
|
+
//# sourceMappingURL=LoginOrRegisterMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginOrRegisterMenu.js","sourceRoot":"","sources":["../../../main/typescript/LoginOrRegister/LoginOrRegisterMenu.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,4CAA0C;AAE1C,iEAA4D;AAC5D,6DAAsD;AAItD,MACM,mBACF,SAAQ,+BAAc;IAEtB,MAAM,CAAW;IAEjB,YAAY,KAAiC;QAEzC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,CAAC,CAAC;IACjC,CAAC;IAED,MAAM;QAEF,IAAI,SAAiB,CAAC;QACtB,MAAM,IAAI,GAAY,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjD,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ;YACnB,SAAS,GAAG,uBAAuB,CAAC;;YAEpC,SAAS,GAAG,SAAS,CAAC;QAE1B,OAAO,CACH;YACI,oBAAC,iBAAM,IACH,EAAE,EAAC,cAAc,mBACF,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,mBAChC,MAAM,mBACL,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EACxC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,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;YACT,oBAAC,eAAI,IACD,EAAE,EAAC,YAAY,EACf,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAC3B,IAAI,EAAE,KAAK,EACX,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,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG;gBACpF,oBAAC,sBAAY,IAAC,EAAE,EAAC,WAAW,EAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CACtF,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;IAChD,CAAC;IAES,WAAW;QAEjB,IAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAC,IAAI,EAAC,CAAC,CAAC;IACjC,CAAC;CACJ;AAzED,kDAyEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LoginOrRegisterMenu } from './LoginOrRegisterMenu';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoginOrRegisterMenu = void 0;
|
|
4
|
+
var LoginOrRegisterMenu_1 = require("./LoginOrRegisterMenu");
|
|
5
|
+
Object.defineProperty(exports, "LoginOrRegisterMenu", { enumerable: true, get: function () { return LoginOrRegisterMenu_1.LoginOrRegisterMenu; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../main/typescript/LoginOrRegister/index.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAAlD,0HAAA,mBAAmB,OAAA"}
|
|
@@ -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,17 @@ 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, { 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();
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
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,
|
|
1
|
+
{"version":3,"file":"MenuItemLink.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/MenuItemLink.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAkD;AAClD,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,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;IACxB,CAAC;CACJ;AA9BD,oCA8BC;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":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AAI,CAAC,KAAK,CAAC,EAAE,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,IAC3B,IAAI,CAAC,KAAK,CAAC,IAAI,CACV,CAAC,CAAC;IACnB,CAAC;IAED,MAAM;QAEF,IAAI,CAAC,QAAQ,CAAC,EAAC,QAAQ,EAAC,IAAI,EAAC,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,QAAQ;QAEJ,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,CAAC,CAAC,CAAC;IAC5C,CAAC;CACL;AApCD,wCAoCC"}
|
|
@@ -10,10 +10,10 @@ class SearchInput extends react_1.Component {
|
|
|
10
10
|
super(props);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (React.createElement(material_1.TextField, { id: "search", label: "Search", InputProps: {
|
|
13
|
+
return (React.createElement(material_1.TextField, { id: "search", label: "Search", size: 'small', InputProps: {
|
|
14
14
|
startAdornment: (React.createElement(material_1.InputAdornment, { position: "start" },
|
|
15
|
-
React.createElement(Icon_1.default, null)))
|
|
16
|
-
}, variant:
|
|
15
|
+
React.createElement(Icon_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,6CAA4C;AAG5C,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,KAAK,EAAC,QAAQ,EACd,UAAU,EAAE;gBACR,cAAc,EAAE,CACZ,oBAAC,yBAAc,IAAC,QAAQ,EAAC,OAAO;oBAC5B,oBAAC,cAAU,OAAE,CACA,CACpB;
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/SearchInput.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAEhC,4CAAuD;AACvD,6CAA4C;AAG5C,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,KAAK,EAAC,QAAQ,EACd,IAAI,EAAE,OAAO,EACb,UAAU,EAAE;gBACR,cAAc,EAAE,CACZ,oBAAC,yBAAc,IAAC,QAAQ,EAAC,OAAO;oBAC5B,oBAAC,cAAU,OAAE,CACA,CACpB;aAAC,EACN,OAAO,EAAE,UAAU,GAAI,CAAC,CAAC;IACrC,CAAC;CACJ;AAzBD,kCAyBC"}
|
|
@@ -4,10 +4,10 @@ exports.StandardNavigationMenuBar = void 0;
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const NavigationMenuBar_1 = require("./NavigationMenuBar");
|
|
6
6
|
const NavigationMenu_1 = require("./NavigationMenu");
|
|
7
|
-
const LoginAndProfileMenu_1 = require("./LoginAndProfileMenu");
|
|
8
7
|
const SearchInput_1 = require("./SearchInput");
|
|
9
8
|
const material_1 = require("@mui/material");
|
|
10
9
|
const Icon_1 = require("@mui/material/Icon");
|
|
10
|
+
const LoginOrRegister_1 = require("../LoginOrRegister");
|
|
11
11
|
class StandardNavigationMenuBar extends NavigationMenuBar_1.NavigationMenuBar {
|
|
12
12
|
constructor(props) {
|
|
13
13
|
super(props);
|
|
@@ -25,7 +25,7 @@ class StandardNavigationMenuBar extends NavigationMenuBar_1.NavigationMenuBar {
|
|
|
25
25
|
}
|
|
26
26
|
renderRight() {
|
|
27
27
|
return (React.createElement(material_1.Box, { sx: { justifyContext: 'flex-end' } },
|
|
28
|
-
React.createElement(
|
|
28
|
+
React.createElement(LoginOrRegister_1.LoginOrRegisterMenu, { id: "main.login-profile", to: "", startIcon: React.createElement(Icon_1.default, null), text: "guest", selected: false, menubar: this }),
|
|
29
29
|
React.createElement(material_1.Divider, null),
|
|
30
30
|
React.createElement(SearchInput_1.SearchInput, null)));
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardNavigationMenuBar.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/StandardNavigationMenuBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,2DAAsD;AAEtD,qDAAgD;AAChD,+
|
|
1
|
+
{"version":3,"file":"StandardNavigationMenuBar.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/StandardNavigationMenuBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,2DAAsD;AAEtD,qDAAgD;AAChD,+CAA0C;AAC1C,4CAAqD;AACrD,6CAAgD;AAChD,wDAAuD;AAGvD,MACM,yBACF,SAAQ,qCAAiB;IAEzB,YAAY,KAAoC;QAE5C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAES,UAAU;QAEhB,OAAO,CACH,oBAAC,cAAG,IAAC,EAAE,EAAE,EAAC,cAAc,EAAC,YAAY,EAAC;YAClC,oBAAC,qBAAU,kBAAqB;YAChC,oBAAC,kBAAO,OAAE;YACV,oBAAC,+BAAc,IAAC,EAAE,EAAC,WAAW,EAAC,EAAE,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG;YACtF,oBAAC,+BAAc,IAAC,EAAE,EAAC,WAAW,EAAC,EAAE,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,GAAG;YACvF,oBAAC,+BAAc,IAAC,EAAE,EAAC,YAAY,EAAC,EAAE,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,GAAG;YAC1F,oBAAC,+BAAc,IAAC,EAAE,EAAC,WAAW,EAAC,EAAE,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,GAAG;YACvF,oBAAC,+BAAc,IAAC,EAAE,EAAC,aAAa,EAAC,EAAE,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,GAAG;YAC7F,oBAAC,+BAAc,IAAC,EAAE,EAAC,WAAW,EAAC,EAAE,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,GAAG,CACrF,CAAC,CAAC;IAChB,CAAC;IAES,WAAW;QAEjB,OAAO,CACH,oBAAC,cAAG,IAAC,EAAE,EAAE,EAAC,cAAc,EAAC,UAAU,EAAC;YAChC,oBAAC,qCAAmB,IAChB,EAAE,EAAC,oBAAoB,EACvB,EAAE,EAAC,EAAE,EACL,SAAS,EAAE,oBAAC,cAAc,OAAE,EAC5B,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,IAAI,GAAG;YACpB,oBAAC,kBAAO,OAAE;YACV,oBAAC,yBAAW,OAAE,CACZ,CAAC,CAAC;IAChB,CAAC;CACJ;AAvCD,8DAuCC"}
|
package/Navigation/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { IMenuItemLinkPropertySet } from './IMenuItemLinkPropertySet';
|
|
|
2
2
|
export { INavigationMenuBarPropertySet } from './INavigationMenuBarPropertySet';
|
|
3
3
|
export { INavigationMenuPropertySet } from './INavigationMenuPropertySet';
|
|
4
4
|
export { ISearchInputPropertySet } from './ISearchInputPropertySet';
|
|
5
|
-
export { LoginAndProfileMenu } from './LoginAndProfileMenu';
|
|
6
5
|
export { MenuItemLink } from './MenuItemLink';
|
|
7
6
|
export { NavigationMenu } from './NavigationMenu';
|
|
8
7
|
export { NavigationMenuBar } from './NavigationMenuBar';
|
package/Navigation/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchInput = exports.NavigationMenuBar = exports.NavigationMenu = exports.MenuItemLink =
|
|
4
|
-
var LoginAndProfileMenu_1 = require("./LoginAndProfileMenu");
|
|
5
|
-
Object.defineProperty(exports, "LoginAndProfileMenu", { enumerable: true, get: function () { return LoginAndProfileMenu_1.LoginAndProfileMenu; } });
|
|
3
|
+
exports.SearchInput = exports.NavigationMenuBar = exports.NavigationMenu = exports.MenuItemLink = void 0;
|
|
6
4
|
var MenuItemLink_1 = require("./MenuItemLink");
|
|
7
5
|
Object.defineProperty(exports, "MenuItemLink", { enumerable: true, get: function () { return MenuItemLink_1.MenuItemLink; } });
|
|
8
6
|
var NavigationMenu_1 = require("./NavigationMenu");
|
package/Navigation/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/index.ts"],"names":[],"mappings":";;;AAIA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../main/typescript/Navigation/index.ts"],"names":[],"mappings":";;;AAIA,+CAA4C;AAApC,4GAAA,YAAY,OAAA;AACpB,mDAAgD;AAAxC,gHAAA,cAAc,OAAA;AACtB,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,6CAA0C;AAAlC,0GAAA,WAAW,OAAA"}
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractApplication, IApplication } from "strata.client.core/Main";
|
|
2
|
-
import { IPresenter } from "strata.client.core/Presenter";
|
|
3
|
-
import { IRenderable } from "../Presenter/IRenderable";
|
|
4
|
-
export declare abstract class ReactApplication<M, V extends IRenderable, P extends IPresenter<M, V>> extends AbstractApplication<M, V, P> implements IApplication {
|
|
5
|
-
private root;
|
|
6
|
-
protected constructor();
|
|
7
|
-
start(): void;
|
|
8
|
-
stop(): void;
|
|
9
|
-
protected abstract getMainView(): any;
|
|
10
|
-
}
|
package/Main/ReactApplication.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactApplication = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const client_1 = require("react-dom/client");
|
|
6
|
-
const Main_1 = require("strata.client.core/Main");
|
|
7
|
-
const react_router_dom_1 = require("react-router-dom");
|
|
8
|
-
class ReactApplication extends Main_1.AbstractApplication {
|
|
9
|
-
root;
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this.root = (0, client_1.createRoot)(document.getElementById('root'));
|
|
13
|
-
}
|
|
14
|
-
start() {
|
|
15
|
-
this.root.render(React.createElement(react_router_dom_1.BrowserRouter, null, this.getMainView()));
|
|
16
|
-
}
|
|
17
|
-
stop() {
|
|
18
|
-
this.root.unmount();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.ReactApplication = ReactApplication;
|
|
22
|
-
//# sourceMappingURL=ReactApplication.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactApplication.js","sourceRoot":"","sources":["../../../main/typescript/Main/ReactApplication.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,6CAAiD;AACjD,kDAAyE;AAEzE,uDAA+C;AAG/C,MACe,gBACX,SAAQ,0BAA0B;IAG1B,IAAI,CAAO;IAEnB;QAEI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,IAAI,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAC3D,CAAC;IAED,KAAK;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,CACZ,oBAAC,gCAAa,QACT,IAAI,CAAC,WAAW,EAAE,CACP,CAAC,CAAC;IAC1B,CAAC;IAED,IAAI;QAEA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAA;IACvB,CAAC;CAGJ;AA3BD,4CA2BC"}
|
package/Main/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ReactApplication } from './ReactApplication';
|
package/Main/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReactApplication = void 0;
|
|
4
|
-
var ReactApplication_1 = require("./ReactApplication");
|
|
5
|
-
Object.defineProperty(exports, "ReactApplication", { enumerable: true, get: function () { return ReactApplication_1.ReactApplication; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/Main/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../main/typescript/Main/index.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAA5C,oHAAA,gBAAgB,OAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { INavigationMenuPropertySet } from './INavigationMenuPropertySet';
|
|
2
|
-
import { NavigationMenu } from './NavigationMenu';
|
|
3
|
-
export declare class LoginAndProfileMenu extends NavigationMenu {
|
|
4
|
-
router?: History;
|
|
5
|
-
constructor(props: INavigationMenuPropertySet);
|
|
6
|
-
render(): any;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoginAndProfileMenu.js","sourceRoot":"","sources":["../../../main/typescript/Navig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+0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPresenterViewProperty.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/IPresenterViewProperty.ts"],"names":[],"mappings":""}
|
package/Presenter/IRenderable.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IRenderable.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/IRenderable.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IRenderableViewProperty.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/IRenderableViewProperty.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Component } from 'react';
|
|
3
|
-
import { IRenderable } from "./IRenderable";
|
|
4
|
-
import { IPresenterViewProperty } from "./IPresenterViewProperty";
|
|
5
|
-
import { IPresentable } from "strata.client.core/Presenter";
|
|
6
|
-
import Element = React.JSX.Element;
|
|
7
|
-
export declare abstract class PresenterView<V, T extends IPresentable<V>, P extends IPresenterViewProperty<T>, S = {}> extends Component<P, S> implements IRenderable {
|
|
8
|
-
protected constructor(props: P);
|
|
9
|
-
componentWillMount(): void;
|
|
10
|
-
abstract render(): Element;
|
|
11
|
-
protected abstract getSelf(): V;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PresenterView = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
class PresenterView extends react_1.Component {
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super(props);
|
|
8
|
-
}
|
|
9
|
-
componentWillMount() {
|
|
10
|
-
this.props.presenter.setView(this.getSelf());
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PresenterView = PresenterView;
|
|
14
|
-
//# sourceMappingURL=PresenterView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PresenterView.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/PresenterView.tsx"],"names":[],"mappings":";;;AACA,iCAAgC;AAMhC,MACe,aAKX,SAAQ,iBAAc;IAGtB,YAAsB,KAAQ;QAE1B,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,kBAAkB;QAEd,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;CAMJ;AAvBD,sCAuBC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { IRenderableViewProperty } from "./IRenderableViewProperty";
|
|
3
|
-
import { IRenderable } from "./IRenderable";
|
|
4
|
-
import { IPresenter } from "strata.client.core/Presenter";
|
|
5
|
-
import Element = React.JSX.Element;
|
|
6
|
-
export declare class RenderableView<M, V extends IRenderable, P extends IPresenter<M, V>> extends Component<IRenderableViewProperty, any> {
|
|
7
|
-
constructor(props: IRenderableViewProperty);
|
|
8
|
-
render(): Element;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RenderableView = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
class RenderableView extends react_1.Component {
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super(props);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return this.props.view.render();
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RenderableView = RenderableView;
|
|
14
|
-
//# sourceMappingURL=RenderableView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RenderableView.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/RenderableView.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAMhC,MACM,cACF,SAAQ,iBAAsC;IAE9C,YAAY,KAA8B;QAEtC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,MAAM;QAEF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC;CACJ;AAbD,wCAaC"}
|
package/Presenter/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { IRenderable } from './IRenderable';
|
|
2
|
-
export { IPresenterViewProperty } from './IPresenterViewProperty';
|
|
3
|
-
export { IRenderableViewProperty } from './IRenderableViewProperty';
|
|
4
|
-
export { RenderableView } from './RenderableView';
|
|
5
|
-
export { PresenterView } from './PresenterView';
|
package/Presenter/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PresenterView = exports.RenderableView = void 0;
|
|
4
|
-
var RenderableView_1 = require("./RenderableView");
|
|
5
|
-
Object.defineProperty(exports, "RenderableView", { enumerable: true, get: function () { return RenderableView_1.RenderableView; } });
|
|
6
|
-
var PresenterView_1 = require("./PresenterView");
|
|
7
|
-
Object.defineProperty(exports, "PresenterView", { enumerable: true, get: function () { return PresenterView_1.PresenterView; } });
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/Presenter/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../main/typescript/Presenter/index.ts"],"names":[],"mappings":";;;AAGA,mDAAgD;AAAxC,gHAAA,cAAc,OAAA;AACtB,iDAA8C;AAAtC,8GAAA,aAAa,OAAA"}
|
|
Binary file
|