strata.client.react 0.0.0 → 1.0.0-release.1795479620652

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.
Files changed (87) hide show
  1. package/{dist/Main → Main}/ReactApplication.d.ts +12 -8
  2. package/Main/ReactApplication.js +22 -0
  3. package/Main/ReactApplication.js.map +1 -0
  4. package/Main/index.d.ts +1 -0
  5. package/Main/index.js +6 -0
  6. package/Main/index.js.map +1 -0
  7. package/{dist/Presenter → Presenter}/IPresenterViewProperty.d.ts +3 -3
  8. package/{dist/Presenter → Presenter}/IPresenterViewProperty.js +2 -2
  9. package/Presenter/IPresenterViewProperty.js.map +1 -0
  10. package/Presenter/IRenderable.d.ts +4 -0
  11. package/{dist/Presenter → Presenter}/IRenderable.js +2 -2
  12. package/Presenter/IRenderable.js.map +1 -0
  13. package/{dist/Presenter → Presenter}/IRenderableViewProperty.d.ts +4 -4
  14. package/{dist/Presenter → Presenter}/IRenderableViewProperty.js +2 -2
  15. package/Presenter/IRenderableViewProperty.js.map +1 -0
  16. package/{dist/Presenter → Presenter}/PresenterView.d.ts +12 -10
  17. package/{dist/Presenter → Presenter}/PresenterView.js +13 -13
  18. package/Presenter/PresenterView.js.map +1 -0
  19. package/{dist/Presenter → Presenter}/RenderableView.d.ts +9 -8
  20. package/{dist/Presenter → Presenter}/RenderableView.js +13 -13
  21. package/Presenter/RenderableView.js.map +1 -0
  22. package/Presenter/index.d.ts +5 -0
  23. package/Presenter/index.js +8 -0
  24. package/Presenter/index.js.map +1 -0
  25. package/package.json +22 -24
  26. package/strata.client.react-v1.0.0-snapshot.1795479620652.tgz +0 -0
  27. package/Strata.Client.React.iml +0 -10
  28. package/dist/Main/ReactApplication.js +0 -19
  29. package/dist/Main/ReactApplication.js.map +0 -1
  30. package/dist/Navigation/IMenuItemLinkPropertySet.d.ts +0 -5
  31. package/dist/Navigation/IMenuItemLinkPropertySet.js +0 -3
  32. package/dist/Navigation/IMenuItemLinkPropertySet.js.map +0 -1
  33. package/dist/Navigation/INavigationMenuBarPropertySet.d.ts +0 -3
  34. package/dist/Navigation/INavigationMenuBarPropertySet.js +0 -3
  35. package/dist/Navigation/INavigationMenuBarPropertySet.js.map +0 -1
  36. package/dist/Navigation/INavigationMenuPropertySet.d.ts +0 -11
  37. package/dist/Navigation/INavigationMenuPropertySet.js +0 -3
  38. package/dist/Navigation/INavigationMenuPropertySet.js.map +0 -1
  39. package/dist/Navigation/ISearchInputPropertySet.d.ts +0 -2
  40. package/dist/Navigation/ISearchInputPropertySet.js +0 -3
  41. package/dist/Navigation/ISearchInputPropertySet.js.map +0 -1
  42. package/dist/Navigation/LoginAndProfileMenu.d.ts +0 -7
  43. package/dist/Navigation/LoginAndProfileMenu.js +0 -25
  44. package/dist/Navigation/LoginAndProfileMenu.js.map +0 -1
  45. package/dist/Navigation/MenuItemLink.d.ts +0 -13
  46. package/dist/Navigation/MenuItemLink.js +0 -27
  47. package/dist/Navigation/MenuItemLink.js.map +0 -1
  48. package/dist/Navigation/NavigationMenu.d.ts +0 -8
  49. package/dist/Navigation/NavigationMenu.js +0 -26
  50. package/dist/Navigation/NavigationMenu.js.map +0 -1
  51. package/dist/Navigation/NavigationMenuBar.d.ts +0 -12
  52. package/dist/Navigation/NavigationMenuBar.js +0 -30
  53. package/dist/Navigation/NavigationMenuBar.js.map +0 -1
  54. package/dist/Navigation/SearchInput.d.ts +0 -6
  55. package/dist/Navigation/SearchInput.js +0 -16
  56. package/dist/Navigation/SearchInput.js.map +0 -1
  57. package/dist/Navigation/StandardNavigationMenuBar.d.ts +0 -7
  58. package/dist/Navigation/StandardNavigationMenuBar.js +0 -34
  59. package/dist/Navigation/StandardNavigationMenuBar.js.map +0 -1
  60. package/dist/Presenter/IPresenterViewProperty.js.map +0 -1
  61. package/dist/Presenter/IRenderable.d.ts +0 -3
  62. package/dist/Presenter/IRenderable.js.map +0 -1
  63. package/dist/Presenter/IRenderableViewProperty.js.map +0 -1
  64. package/dist/Presenter/PresenterView.js.map +0 -1
  65. package/dist/Presenter/RenderableView.js.map +0 -1
  66. package/dist/index.d.ts +0 -15
  67. package/dist/index.js +0 -19
  68. package/dist/index.js.map +0 -1
  69. package/src/Main/ReactApplication.tsx +0 -38
  70. package/src/Navigation/IMenuItemLinkPropertySet.ts +0 -9
  71. package/src/Navigation/INavigationMenuBarPropertySet.ts +0 -5
  72. package/src/Navigation/INavigationMenuPropertySet.ts +0 -15
  73. package/src/Navigation/ISearchInputPropertySet.ts +0 -5
  74. package/src/Navigation/LoginAndProfileMenu.tsx +0 -42
  75. package/src/Navigation/MenuItemLink.tsx +0 -35
  76. package/src/Navigation/NavigationMenu.tsx +0 -40
  77. package/src/Navigation/NavigationMenuBar.tsx +0 -50
  78. package/src/Navigation/SearchInput.tsx +0 -28
  79. package/src/Navigation/StandardNavigationMenuBar.tsx +0 -44
  80. package/src/Presenter/IPresenterViewProperty.ts +0 -5
  81. package/src/Presenter/IRenderable.ts +0 -5
  82. package/src/Presenter/IRenderableViewProperty.ts +0 -7
  83. package/src/Presenter/PresenterView.tsx +0 -30
  84. package/src/Presenter/RenderableView.ts +0 -19
  85. package/src/index.ts +0 -17
  86. package/strata.client.react-0.0.0.tgz +0 -0
  87. package/tsconfig.json +0 -19
@@ -1,8 +1,12 @@
1
- import { AbstractApplication, IApplication, IPresenter } from "strata.client.core";
2
- import { IRenderable } from "../Presenter/IRenderable";
3
- export declare abstract class ReactApplication<M, V extends IRenderable, P extends IPresenter<M, V>> extends AbstractApplication<M, V, P> implements IApplication {
4
- protected constructor();
5
- start(): void;
6
- stop(): void;
7
- protected abstract getMainView(): any;
8
- }
1
+ import * as React from "react";
2
+ import { AbstractApplication, IApplication } from "strata.client.core/Main";
3
+ import { IPresenter } from "strata.client.core/Presenter";
4
+ import { IRenderable } from "../Presenter/IRenderable";
5
+ import Element = React.JSX.Element;
6
+ export declare abstract class ReactApplication<M, V extends IRenderable, P extends IPresenter<M, V>> extends AbstractApplication<M, V, P> implements IApplication {
7
+ private root;
8
+ protected constructor();
9
+ start(): void;
10
+ stop(): void;
11
+ protected abstract getMainView(): Element;
12
+ }
@@ -0,0 +1,22 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactApplication.js","sourceRoot":"","sources":["../../../src/main/typescript/Main/ReactApplication.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,6CAAiD;AACjD,kDAAyE;AAIzE,uDAA+C;AAE/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"}
@@ -0,0 +1 @@
1
+ export { ReactApplication } from './ReactApplication';
package/Main/index.js ADDED
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/main/typescript/Main/index.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAA5C,oHAAA,gBAAgB,OAAA"}
@@ -1,3 +1,3 @@
1
- export interface IPresenterViewProperty<P> {
2
- presenter: P;
3
- }
1
+ export interface IPresenterViewProperty<P> {
2
+ presenter: P;
3
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IPresenterViewProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPresenterViewProperty.js","sourceRoot":"","sources":["../../../src/main/typescript/Presenter/IPresenterViewProperty.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import Element = React.JSX.Element;
2
+ export interface IRenderable {
3
+ render(): Element;
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IRenderable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRenderable.js","sourceRoot":"","sources":["../../../src/main/typescript/Presenter/IRenderable.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { IRenderable } from "./IRenderable";
2
- export interface IRenderableViewProperty {
3
- view: IRenderable;
4
- }
1
+ import { IRenderable } from "./IRenderable";
2
+ export interface IRenderableViewProperty {
3
+ view: IRenderable;
4
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IRenderableViewProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRenderableViewProperty.js","sourceRoot":"","sources":["../../../src/main/typescript/Presenter/IRenderableViewProperty.ts"],"names":[],"mappings":""}
@@ -1,10 +1,12 @@
1
- import { Component } from 'react';
2
- import { IRenderable } from "./IRenderable";
3
- import { IPresenterViewProperty } from "./IPresenterViewProperty";
4
- import { IPresentable } from "strata.client.core";
5
- export declare abstract class PresenterView<V, T extends IPresentable<V>, P extends IPresenterViewProperty<T>, S = {}> extends Component<P, S> implements IRenderable {
6
- protected constructor(props: P);
7
- componentWillMount(): void;
8
- abstract render(): any;
9
- protected abstract getSelf(): V;
10
- }
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
+ componentDidMount(): void;
10
+ abstract render(): Element;
11
+ protected abstract getSelf(): V;
12
+ }
@@ -1,14 +1,14 @@
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;
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
+ componentDidMount() {
10
+ this.props.presenter.setView(this.getSelf());
11
+ }
12
+ }
13
+ exports.PresenterView = PresenterView;
14
14
  //# sourceMappingURL=PresenterView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresenterView.js","sourceRoot":"","sources":["../../../src/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,iBAAiB;QAEb,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;CAMJ;AAvBD,sCAuBC"}
@@ -1,8 +1,9 @@
1
- import { Component } from 'react';
2
- import { IRenderableViewProperty } from "./IRenderableViewProperty";
3
- import { IRenderable } from "./IRenderable";
4
- import { IPresenter } from "strata.client.core";
5
- export declare class RenderableView<M, V extends IRenderable, P extends IPresenter<M, V>> extends Component<IRenderableViewProperty, any> {
6
- constructor(props: IRenderableViewProperty);
7
- render(): any;
8
- }
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 +1,14 @@
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;
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
14
  //# sourceMappingURL=RenderableView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderableView.js","sourceRoot":"","sources":["../../../src/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"}
@@ -0,0 +1,5 @@
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';
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/main/typescript/Presenter/index.ts"],"names":[],"mappings":";;;AAGA,mDAAgD;AAAxC,gHAAA,cAAc,OAAA;AACtB,iDAA8C;AAAtC,8GAAA,aAAa,OAAA"}
package/package.json CHANGED
@@ -1,31 +1,29 @@
1
1
  {
2
2
  "name": "strata.client.react",
3
- "version": "0.0.0",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
3
+ "version": "1.0.0-release.1795479620652",
4
+ "license": "Apache-2.0",
7
5
  "scripts": {
8
- "install-strata.client.core": "npm install ../Strata.Client.Core/strata.client.core-0.0.0.tgz",
9
- "clean": "del-cli -f ./dist ./*.tgz",
10
- "build": "npm run install-strata.client.core && tsc && npm pack",
11
- "test": "echo \"Error: no test specified\" && exit 1"
6
+ "increment-snapshot": "npm-prerelease-timestamp -v 1.0.0",
7
+ "increment-major": "npm version major",
8
+ "increment-minor": "npm version minor",
9
+ "increment-patch": "npm version patch"
12
10
  },
13
- "keywords": [],
14
- "author": "",
15
- "license": "ISC",
16
11
  "dependencies": {
17
- "@blueprintjs/core": "^3.28.1",
18
- "@blueprintjs/datetime": "^3.18.1",
19
- "@blueprintjs/icons": "^3.18.0",
20
- "@blueprintjs/select": "^3.13.2",
21
- "@blueprintjs/table": "^3.8.8",
22
- "@types/react": "^16.9.35",
23
- "@types/react-dom": "^16.9.8",
24
- "@types/react-router": "^5.1.7",
25
- "@types/react-router-dom": "^5.1.5",
26
- "react": "^16.13.1",
27
- "react-dom": "^16.13.1",
28
- "react-router-dom": "^5.2.0",
29
- "strata.client.core": "file:../Strata.Client.Core/strata.client.core-0.0.0.tgz"
12
+ "@types/react": "^18.3.1",
13
+ "@types/react-router": "^5.1.20",
14
+ "@types/react-router-dom": "^5.3.3",
15
+ "react": "^18.3.1",
16
+ "react-router": "^5.3.4",
17
+ "react-dom": "^18.3.1",
18
+ "react-router-dom": "^5.3.4",
19
+ "rxjs": "^7.8.1",
20
+ "strata.client.core": "1.0.0-release.1795479470760"
21
+ },
22
+ "resolutions": {
23
+ "csstype": "3.1.2",
24
+ "react-router": "5.3.4",
25
+ "react-router-dom": "5.3.4",
26
+ "@types/react": "18.3.1",
27
+ "@types/react-router": "5.1.20"
30
28
  }
31
29
  }
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$">
6
- <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7
- </content>
8
- <orderEntry type="sourceFolder" forTests="false" />
9
- </component>
10
- </module>
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReactApplication = void 0;
4
- const React = require("react");
5
- const ReactDOM = require("react-dom");
6
- const strata_client_core_1 = require("strata.client.core");
7
- const react_router_dom_1 = require("react-router-dom");
8
- class ReactApplication extends strata_client_core_1.AbstractApplication {
9
- constructor() {
10
- super();
11
- }
12
- start() {
13
- ReactDOM.render(React.createElement(react_router_dom_1.BrowserRouter, null, this.getMainView()), document.getElementById('root'));
14
- }
15
- stop() {
16
- }
17
- }
18
- exports.ReactApplication = ReactApplication;
19
- //# sourceMappingURL=ReactApplication.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReactApplication.js","sourceRoot":"","sources":["../../src/Main/ReactApplication.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,sCAAsC;AACtC,2DAI4B;AAC5B,uDAA+C;AAG/C,MACe,gBACX,SAAQ,wCAA0B;IAIlC;QAEI,KAAK,EAAE,CAAC;IACZ,CAAC;IAED,KAAK;QAED,QAAQ,CAAC,MAAM,CACX,oBAAC,gCAAa,QACT,IAAI,CAAC,WAAW,EAAE,CACP,EAChB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAClC,CAAC;IACN,CAAC;IAED,IAAI;IAGJ,CAAC;CAGJ;AA3BD,4CA2BC"}
@@ -1,5 +0,0 @@
1
- import { IMenuItemProps } from '@blueprintjs/core';
2
- export interface IMenuItemLinkPropertySet extends IMenuItemProps {
3
- to: string;
4
- callback: () => void;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IMenuItemLinkPropertySet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IMenuItemLinkPropertySet.js","sourceRoot":"","sources":["../../src/Navigation/IMenuItemLinkPropertySet.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export interface INavigationMenuBarPropertySet {
2
- heading: string;
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=INavigationMenuBarPropertySet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"INavigationMenuBarPropertySet.js","sourceRoot":"","sources":["../../src/Navigation/INavigationMenuBarPropertySet.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { INavbarGroupProps } from '@blueprintjs/core';
2
- import { NavigationMenuBar } from './NavigationMenuBar';
3
- import { BrowserRouter } from 'react-router-dom';
4
- export interface INavigationMenuPropertySet extends INavbarGroupProps {
5
- id: string;
6
- to: string;
7
- text: string;
8
- selected: boolean;
9
- menubar: NavigationMenuBar;
10
- router?: BrowserRouter;
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=INavigationMenuPropertySet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"INavigationMenuPropertySet.js","sourceRoot":"","sources":["../../src/Navigation/INavigationMenuPropertySet.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export interface ISearchInputPropertySet {
2
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ISearchInputPropertySet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISearchInputPropertySet.js","sourceRoot":"","sources":["../../src/Navigation/ISearchInputPropertySet.ts"],"names":[],"mappings":""}
@@ -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,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LoginAndProfileMenu = void 0;
4
- const React = require("react");
5
- const core_1 = require("@blueprintjs/core");
6
- const NavigationMenu_1 = require("./NavigationMenu");
7
- const MenuItemLink_1 = require("./MenuItemLink");
8
- class LoginAndProfileMenu extends NavigationMenu_1.NavigationMenu {
9
- constructor(props) {
10
- super(props);
11
- }
12
- render() {
13
- let className;
14
- if (this.state.selected)
15
- className = "bp3-minimal menu-selected";
16
- else
17
- className = "bp3-minimal";
18
- return (React.createElement(core_1.Popover, { className: "bp3-minimal", popoverClassName: core_1.Classes.POPOVER_DISMISS, content: React.createElement(core_1.Menu, { className: core_1.Classes.POPOVER_DISMISS },
19
- React.createElement(MenuItemLink_1.default, { icon: "log-in", to: "/login", text: "Login", callback: () => this.select() }),
20
- React.createElement(MenuItemLink_1.default, { icon: "cog", to: "/profile", text: "Edit Profile", callback: () => this.select() })), position: core_1.Position.BOTTOM_LEFT },
21
- React.createElement(core_1.Button, { className: className, small: true, icon: "user", rightIcon: "caret-down", text: this.props.text, intent: core_1.Intent.NONE })));
22
- }
23
- }
24
- exports.LoginAndProfileMenu = LoginAndProfileMenu;
25
- //# sourceMappingURL=LoginAndProfileMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoginAndProfileMenu.js","sourceRoot":"","sources":["../../src/Navigation/LoginAndProfileMenu.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,4CAAkG;AAElG,qDAAgD;AAChD,iDAA0C;AAE1C,MACM,mBACF,SAAQ,+BAAc;IAItB,YAAY,KAAiC;QAEzC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,MAAM;QAEF,IAAI,SAAiB,CAAC;QAEtB,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ;YACnB,SAAS,GAAG,2BAA2B,CAAC;;YAExC,SAAS,GAAG,aAAa,CAAC;QAE9B,OAAO,CACH,oBAAC,cAAO,IACJ,SAAS,EAAC,aAAa,EACvB,gBAAgB,EAAE,cAAO,CAAC,eAAe,EACzC,OAAO,EACH,oBAAC,WAAI,IAAC,SAAS,EAAE,cAAO,CAAC,eAAe;gBACpC,oBAAC,sBAAY,IAAC,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG;gBACrF,oBAAC,sBAAY,IAAC,IAAI,EAAC,KAAK,EAAC,EAAE,EAAC,UAAU,EAAC,IAAI,EAAC,cAAc,EAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CACxF,EACX,QAAQ,EAAE,eAAQ,CAAC,WAAW;YAC9B,oBAAC,aAAM,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,YAAY,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,aAAM,CAAC,IAAI,GAAG,CACrH,CAAC,CAAC;IACpB,CAAC;CAEJ;AAlCD,kDAkCC"}
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import { Component } from 'react';
3
- import { RouteComponentProps } from 'react-router-dom';
4
- import { IMenuItemLinkPropertySet } from './IMenuItemLinkPropertySet';
5
- export declare class MenuItemLink extends Component<IMenuItemLinkPropertySet & RouteComponentProps, any> {
6
- constructor(props: IMenuItemLinkPropertySet & RouteComponentProps);
7
- render(): JSX.Element;
8
- doClick(): void;
9
- }
10
- declare const _default: React.ComponentClass<Pick<IMenuItemLinkPropertySet & RouteComponentProps<{}, import("react-router").StaticContext, {}>, "active" | "disabled" | "label" | "text" | "icon" | "children" | "tagName" | "className" | "onClick" | "intent" | "to" | "href" | "target" | "callback" | "labelClassName" | "labelElement" | "multiline" | "popoverProps" | "shouldDismissPopover" | "textClassName"> & {
11
- wrappedComponentRef?: React.Ref<MenuItemLink>;
12
- }, any> & import("react-router").WithRouterStatics<typeof MenuItemLink>;
13
- export default _default;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MenuItemLink = void 0;
4
- const React = require("react");
5
- const react_1 = require("react");
6
- const react_router_dom_1 = require("react-router-dom");
7
- const core_1 = require("@blueprintjs/core");
8
- class MenuItemLink extends react_1.Component {
9
- constructor(props) {
10
- super(props);
11
- }
12
- render() {
13
- return (React.createElement(core_1.MenuItem, { className: "bp3-minimal", icon: this.props.icon, text: this.props.text, onClick: () => this.doClick() }));
14
- }
15
- doClick() {
16
- this
17
- .props
18
- .history
19
- .push(this.props.to);
20
- this
21
- .props
22
- .callback();
23
- }
24
- }
25
- exports.MenuItemLink = MenuItemLink;
26
- exports.default = react_router_dom_1.withRouter(MenuItemLink);
27
- //# sourceMappingURL=MenuItemLink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuItemLink.js","sourceRoot":"","sources":["../../src/Navigation/MenuItemLink.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAChC,uDAAmE;AACnE,4CAA2C;AAI3C,MACM,YACF,SAAQ,iBAA6D;IAErE,YAAY,KAAqD;QAE7D,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,MAAM;QAEF,OAAO,CACH,oBAAC,eAAQ,IAAC,SAAS,EAAC,aAAa,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAC1H,CAAC;IAED,OAAO;QAEH,IAAI;aACC,KAAK;aACL,OAAO;aACP,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACzB,IAAI;aACC,KAAK;aACL,QAAQ,EAAE,CAAC;IACpB,CAAC;CACJ;AAzBD,oCAyBC;AAED,kBAAe,6BAAU,CAAC,YAAY,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { Component } from 'react';
2
- import { INavigationMenuPropertySet } from './INavigationMenuPropertySet';
3
- export declare class NavigationMenu extends Component<INavigationMenuPropertySet, any> {
4
- constructor(props: INavigationMenuPropertySet);
5
- render(): JSX.Element;
6
- select(): void;
7
- unselect(): void;
8
- }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NavigationMenu = void 0;
4
- const React = require("react");
5
- const react_1 = require("react");
6
- const react_router_dom_1 = require("react-router-dom");
7
- class NavigationMenu extends react_1.Component {
8
- constructor(props) {
9
- super(props);
10
- this.state = { selected: props.selected };
11
- if (props.menubar != null)
12
- props.menubar.register(this);
13
- }
14
- render() {
15
- return (React.createElement(react_router_dom_1.NavLink, { className: "bp3-button bp3-minimal", role: "button", activeClassName: "menu-selected", id: this.props.id, to: this.props.to, onClick: () => this.select() }, this.props.text));
16
- }
17
- select() {
18
- this.setState(() => ({ selected: true }));
19
- this.props.menubar.onSelectionChange(this);
20
- }
21
- unselect() {
22
- this.setState(() => ({ selected: false }));
23
- }
24
- }
25
- exports.NavigationMenu = NavigationMenu;
26
- //# sourceMappingURL=NavigationMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavigationMenu.js","sourceRoot":"","sources":["../../src/Navigation/NavigationMenu.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAChC,uDAAyC;AAGzC,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,oBAAC,0BAAO,IACJ,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAC,QAAQ,EACb,eAAe,EAAC,eAAe,EAC/B,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,IAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAW,CAAC,CAAC;IACtE,CAAC;IAED,MAAM;QAEF,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAC,IAAI,EAAC,CAAC,CAAC,CAAC;QACvC,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;AAlCD,wCAkCC"}
@@ -1,12 +0,0 @@
1
- import { Component } from 'react';
2
- import { INavigationMenuBarPropertySet } from './INavigationMenuBarPropertySet';
3
- import { NavigationMenu } from './NavigationMenu';
4
- export declare abstract class NavigationMenuBar extends Component<INavigationMenuBarPropertySet, any> {
5
- private menus;
6
- protected constructor(props: INavigationMenuBarPropertySet);
7
- render(): any;
8
- register(menu: NavigationMenu): void;
9
- onSelectionChange(selected: NavigationMenu): void;
10
- protected abstract renderLeft(): any;
11
- protected abstract renderRight(): any;
12
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NavigationMenuBar = void 0;
4
- const React = require("react");
5
- const react_1 = require("react");
6
- const core_1 = require("@blueprintjs/core");
7
- class NavigationMenuBar extends react_1.Component {
8
- constructor(props) {
9
- super(props);
10
- this.menus = new Map();
11
- }
12
- render() {
13
- return (React.createElement(core_1.Navbar, null,
14
- this.renderLeft(),
15
- this.renderRight()));
16
- }
17
- register(menu) {
18
- this.menus.set(menu.props.id, menu);
19
- }
20
- onSelectionChange(selected) {
21
- this
22
- .menus
23
- .forEach((menu) => {
24
- if (menu.props.id != selected.props.id)
25
- menu.unselect();
26
- });
27
- }
28
- }
29
- exports.NavigationMenuBar = NavigationMenuBar;
30
- //# sourceMappingURL=NavigationMenuBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavigationMenuBar.js","sourceRoot":"","sources":["../../src/Navigation/NavigationMenuBar.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAgC;AAGhC,4CAAqD;AAGrD,MACe,iBACX,SAAQ,iBAA4C;IAIpD,YAAsB,KAAoC;QAEtD,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAyB,CAAC;IAClD,CAAC;IAED,MAAM;QAEF,OAAO,CACH,oBAAC,aAAM;YACF,IAAI,CAAC,UAAU,EAAE;YACjB,IAAI,CAAC,WAAW,EAAE,CACd,CACZ,CAAC;IACN,CAAC;IAED,QAAQ,CAAC,IAAmB;QAExB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,iBAAiB,CAAC,QAAuB;QAErC,IAAI;aACC,KAAK;aACL,OAAO,CACJ,CAAC,IAAI,EAAE,EAAE;YAEL,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;gBAClC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CAAC,CAAC;IACf,CAAC;CAKJ;AA1CD,8CA0CC"}
@@ -1,6 +0,0 @@
1
- import { Component } from 'react';
2
- import { ISearchInputPropertySet } from './ISearchInputPropertySet';
3
- export declare class SearchInput extends Component<ISearchInputPropertySet, any> {
4
- constructor(props: ISearchInputPropertySet);
5
- render(): JSX.Element;
6
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchInput = void 0;
4
- const React = require("react");
5
- const react_1 = require("react");
6
- const core_1 = require("@blueprintjs/core");
7
- class SearchInput extends react_1.Component {
8
- constructor(props) {
9
- super(props);
10
- }
11
- render() {
12
- return (React.createElement(core_1.InputGroup, { className: "bp3-minimal", leftIcon: "search", placeholder: "Search", type: "text", intent: core_1.Intent.NONE, small: true }));
13
- }
14
- }
15
- exports.SearchInput = SearchInput;
16
- //# sourceMappingURL=SearchInput.js.map