namirasoft-site-react 1.4.318 → 1.4.320

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 (34) hide show
  1. package/dist/components/NSHeader.d.ts +2 -2
  2. package/dist/components/NSLayout.d.ts +2 -2
  3. package/dist/main.d.ts +2 -4
  4. package/dist/main.js +2 -4
  5. package/dist/main.js.map +1 -1
  6. package/dist/routing/{Notifier.d.ts → NSNotifier.d.ts} +7 -8
  7. package/dist/routing/{Notifier.js → NSNotifier.js} +28 -30
  8. package/dist/routing/NSNotifier.js.map +1 -0
  9. package/dist/routing/NSRouterMaker.d.ts +5 -7
  10. package/dist/routing/NSRouterMaker.js +5 -15
  11. package/dist/routing/NSRouterMaker.js.map +1 -1
  12. package/dist/routing/NSRouterMakerProps.d.ts +4 -0
  13. package/dist/routing/NSRouterMakerProps.js +2 -0
  14. package/dist/routing/NSRouterMakerProps.js.map +1 -0
  15. package/package.json +1 -1
  16. package/src/components/NSHeader.tsx +2 -2
  17. package/src/components/NSLayout.tsx +2 -2
  18. package/src/main.ts +2 -4
  19. package/src/routing/{Notifier.ts → NSNotifier.ts} +31 -33
  20. package/src/routing/NSRouterMaker.tsx +9 -24
  21. package/src/routing/NSRouterMakerProps.ts +6 -0
  22. package/dist/routing/INSRouterMaker.d.ts +0 -5
  23. package/dist/routing/INSRouterMaker.js +0 -2
  24. package/dist/routing/INSRouterMaker.js.map +0 -1
  25. package/dist/routing/INSRouterProps.d.ts +0 -4
  26. package/dist/routing/INSRouterProps.js +0 -2
  27. package/dist/routing/INSRouterProps.js.map +0 -1
  28. package/dist/routing/INSRouterState.d.ts +0 -4
  29. package/dist/routing/INSRouterState.js +0 -2
  30. package/dist/routing/INSRouterState.js.map +0 -1
  31. package/dist/routing/Notifier.js.map +0 -1
  32. package/src/routing/INSRouterMaker.ts +0 -7
  33. package/src/routing/INSRouterProps.ts +0 -6
  34. package/src/routing/INSRouterState.ts +0 -6
@@ -2,8 +2,8 @@ import React, { ReactNode } from "react";
2
2
  import { FilterLinkFullRow } from 'namirasoft-api-link';
3
3
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
4
  import { IHeaderProps } from "../props/IHeaderProps";
5
- import { INSRouterProps } from "../routing/INSRouterProps";
6
- export interface NSHeaderProps extends IBaseComponentProps, INSRouterProps {
5
+ import { NSRouterMakerProps } from "../routing/NSRouterMakerProps";
6
+ export interface NSHeaderProps extends IBaseComponentProps, NSRouterMakerProps {
7
7
  scope: string;
8
8
  name: string;
9
9
  logo: string;
@@ -4,10 +4,10 @@ import { NSBarNotificationProps } from './NSBarNotification';
4
4
  import { IHeaderProps } from '../props/IHeaderProps';
5
5
  import { NSBarActionProps } from './NSBarAction';
6
6
  import { NSBarTitleProps } from './NSBarTitle';
7
- import { INSRouterProps } from '../routing/INSRouterProps';
7
+ import { NSRouterMakerProps } from '../routing/NSRouterMakerProps';
8
8
  import { NSBarAlertProps } from './NSBarAlert';
9
9
  import { IBackgroundPropps } from '../props/IBackgroundPropps';
10
- export interface NSLayoutProps extends IBaseComponentProps, INSRouterProps {
10
+ export interface NSLayoutProps extends IBaseComponentProps, NSRouterMakerProps {
11
11
  scope: string;
12
12
  logo: string;
13
13
  background?: IBackgroundPropps;
package/dist/main.d.ts CHANGED
@@ -125,11 +125,9 @@ export * from "./props/IValidationPrecisionProps";
125
125
  export * from "./props/IValidationProps";
126
126
  export * from "./props/IValidationRegexProps";
127
127
  export * from "./props/IValidationStringProps";
128
- export * from "./routing/INSRouterMaker";
129
- export * from "./routing/INSRouterProps";
130
- export * from "./routing/INSRouterState";
131
- export * from "./routing/Notifier";
128
+ export * from "./routing/NSNotifier";
132
129
  export * from "./routing/NSRouterMaker";
130
+ export * from "./routing/NSRouterMakerProps";
133
131
  export * from "./Validator";
134
132
  export * from "./NSBoxBuilder";
135
133
  export * from "./CopyToClipboard";
package/dist/main.js CHANGED
@@ -127,11 +127,9 @@ export * from "./props/IValidationPrecisionProps";
127
127
  export * from "./props/IValidationProps";
128
128
  export * from "./props/IValidationRegexProps";
129
129
  export * from "./props/IValidationStringProps";
130
- export * from "./routing/INSRouterMaker";
131
- export * from "./routing/INSRouterProps";
132
- export * from "./routing/INSRouterState";
133
- export * from "./routing/Notifier";
130
+ export * from "./routing/NSNotifier";
134
131
  export * from "./routing/NSRouterMaker";
132
+ export * from "./routing/NSRouterMakerProps";
135
133
  export * from "./Validator";
136
134
  export * from "./NSBoxBuilder";
137
135
  export * from "./CopyToClipboard";
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,C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AAC,CAAA;AACL,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -1,15 +1,14 @@
1
1
  import { NSBarNotificationProps } from "../components/NSBarNotification";
2
- import { INSRouterState } from "./INSRouterState";
3
- export declare class Notifier {
4
- private static Counter;
5
- private state;
6
- private setState;
7
- constructor(state: INSRouterState | undefined, setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>);
2
+ import { IStorage } from "namirasoft-core";
3
+ export declare class NSNotifier {
4
+ private storage;
5
+ constructor(storage: IStorage);
6
+ getNotifications(): NSBarNotificationProps[];
7
+ setNotifications(notifications: NSBarNotificationProps[]): void;
8
+ delNotification(id: string): void;
8
9
  private notify;
9
10
  onInformation(text: string): void;
10
11
  onSuccess(text: string): void;
11
12
  onWarning(text: string): void;
12
13
  onError(error: Error | string): void;
13
- delNotification(id: string): void;
14
- getNotifications(): NSBarNotificationProps[];
15
14
  }
@@ -1,44 +1,56 @@
1
1
  import axios from "axios";
2
2
  import { NSBarNotificationColor, NotificationType } from "../components/NSBarNotification";
3
- export class Notifier {
4
- constructor(state, setState) {
5
- this.state = state;
6
- this.setState = setState;
3
+ import { BaseUUID } from "namirasoft-core";
4
+ export class NSNotifier {
5
+ constructor(storage) {
6
+ this.storage = storage;
7
+ this.getNotifications = this.getNotifications.bind(this);
8
+ this.setNotifications = this.setNotifications.bind(this);
9
+ this.delNotification = this.delNotification.bind(this);
7
10
  this.notify = this.notify.bind(this);
8
11
  this.onInformation = this.onInformation.bind(this);
9
12
  this.onSuccess = this.onSuccess.bind(this);
10
13
  this.onWarning = this.onWarning.bind(this);
11
14
  this.onError = this.onError.bind(this);
12
- this.delNotification = this.delNotification.bind(this);
13
- this.getNotifications = this.getNotifications.bind(this);
15
+ }
16
+ getNotifications() {
17
+ let value = this.storage.get("ns-notifications", "");
18
+ if (value)
19
+ return JSON.parse(value);
20
+ return [];
21
+ }
22
+ setNotifications(notifications) {
23
+ this.storage.set("ns-notifications", JSON.stringify(notifications));
24
+ }
25
+ delNotification(id) {
26
+ let notifications = this.getNotifications();
27
+ notifications = notifications.filter(x => x.id !== id);
28
+ this.setNotifications(notifications);
14
29
  }
15
30
  notify(message) {
16
- var _a;
17
- let notifications = [];
18
- if ((_a = this.state) === null || _a === void 0 ? void 0 : _a.notifications)
19
- notifications.push(...this.state.notifications);
31
+ let notifications = this.getNotifications();
20
32
  notifications.push(message);
21
- this.setState({ notifications });
33
+ this.setNotifications(notifications);
22
34
  setTimeout(() => {
23
35
  message.onClose();
24
36
  }, 5000);
25
37
  window.scrollTo({ top: 0, left: 0, behavior: 'smooth' });
26
38
  }
27
39
  onInformation(text) {
28
- let id = Notifier.Counter++ + "";
40
+ let id = BaseUUID.uuid();
29
41
  this.notify({ id, text, type: NotificationType.Information, color: NSBarNotificationColor.GRAY, onClose: () => this.delNotification(id) });
30
42
  }
31
43
  onSuccess(text) {
32
- let id = Notifier.Counter++ + "";
44
+ let id = BaseUUID.uuid();
33
45
  this.notify({ id, text, type: NotificationType.Success, color: NSBarNotificationColor.GREEN, onClose: () => this.delNotification(id) });
34
46
  }
35
47
  onWarning(text) {
36
- let id = Notifier.Counter++ + "";
48
+ let id = BaseUUID.uuid();
37
49
  this.notify({ id, text, type: NotificationType.Warning, color: NSBarNotificationColor.YELLOW, onClose: () => this.delNotification(id) });
38
50
  }
39
51
  onError(error) {
40
52
  var _a;
41
- let id = Notifier.Counter++ + "";
53
+ let id = BaseUUID.uuid();
42
54
  let text = "";
43
55
  if (error instanceof Error) {
44
56
  text = error.message;
@@ -50,19 +62,5 @@ export class Notifier {
50
62
  text = error;
51
63
  this.notify({ id, text, type: NotificationType.Error, color: NSBarNotificationColor.RED, onClose: () => this.delNotification(id) });
52
64
  }
53
- delNotification(id) {
54
- if (!this.state)
55
- return;
56
- let notifications = [];
57
- if (this.state.notifications)
58
- notifications.push(...this.state.notifications);
59
- notifications = notifications.filter(x => x.id !== id);
60
- this.setState({ notifications });
61
- }
62
- getNotifications() {
63
- var _a, _b;
64
- return (_b = (_a = this.state) === null || _a === void 0 ? void 0 : _a.notifications) !== null && _b !== void 0 ? _b : [];
65
- }
66
65
  }
67
- Notifier.Counter = 1;
68
- //# sourceMappingURL=Notifier.js.map
66
+ //# sourceMappingURL=NSNotifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSNotifier.js","sourceRoot":"","sources":["../../src/routing/NSNotifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAA0B,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnH,OAAO,EAAE,QAAQ,EAAY,MAAM,iBAAiB,CAAC;AAErD,MAAM,OAAO,UAAU;IAGnB,YAAY,OAAiB;QAEzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IACD,gBAAgB;QAEZ,IAAI,KAAK,GAAG,IAAI,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AE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACxI,CAAC;CACJ"}
@@ -1,10 +1,8 @@
1
- import { INSRouterMaker } from './INSRouterMaker';
2
- import { INSRouterState } from './INSRouterState';
1
+ import { NSRouterMakerProps } from './NSRouterMakerProps';
2
+ import { IStorage } from 'namirasoft-core';
3
3
  export declare class NSRouterMaker {
4
- private state;
5
- private setState;
6
- private component;
7
- constructor(state: INSRouterState | undefined, setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>, component: INSRouterMaker);
8
- private init;
4
+ private innerOnRender;
5
+ private storage;
6
+ constructor(innerOnRender: (props: NSRouterMakerProps) => React.JSX.Element, storage: IStorage);
9
7
  onRender(): React.JSX.Element;
10
8
  }
@@ -1,22 +1,12 @@
1
- import { Notifier } from './Notifier';
1
+ import { NSNotifier } from './NSNotifier';
2
2
  export class NSRouterMaker {
3
- constructor(state, setState, component) {
4
- this.state = state;
5
- this.setState = setState;
6
- this.component = component;
7
- this.init = this.init.bind(this);
3
+ constructor(innerOnRender, storage) {
4
+ this.innerOnRender = innerOnRender;
5
+ this.storage = storage;
8
6
  this.onRender = this.onRender.bind(this);
9
7
  }
10
- init() {
11
- let notifier = new Notifier(this.state, this.setState);
12
- let props = {
13
- notifier
14
- };
15
- return { props };
16
- }
17
8
  onRender() {
18
- let { props } = this.init();
19
- return this.component.onRender(props);
9
+ return this.innerOnRender({ notifier: new NSNotifier(this.storage) });
20
10
  }
21
11
  }
22
12
  ;
@@ -1 +1 @@
1
- {"version":3,"file":"NSRouterMaker.js","sourceRoot":"","sources":["../../src/routing/NSRouterMaker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,aAAa;IAKtB,YAAY,KAAiC,EAAE,QAA0E,EAAE,SAAyB;QAEhJ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,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SNotifier";
2
+ export interface NSRouterMakerProps {
3
+ notifier: NSNotifier;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NSRouterMakerProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSRouterMakerProps.js","sourceRoot":"","sources":["../../src/routing/NSRouterMakerProps.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.318",
11
+ "version": "1.4.320",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -8,8 +8,8 @@ import { IBaseComponentProps } from "../props/IBaseComponentProps";
8
8
  import { IHeaderProps } from "../props/IHeaderProps";
9
9
  import { IStorageLocal, CacheService } from "namirasoft-core";
10
10
  import { EnvService } from 'namirasoft-core'
11
- import { INSRouterProps } from "../routing/INSRouterProps";
12
- export interface NSHeaderProps extends IBaseComponentProps, INSRouterProps
11
+ import { NSRouterMakerProps } from "../routing/NSRouterMakerProps";
12
+ export interface NSHeaderProps extends IBaseComponentProps, NSRouterMakerProps
13
13
  {
14
14
  scope: string;
15
15
  name: string;
@@ -7,12 +7,12 @@ import { NSBarNotification, NSBarNotificationProps } from './NSBarNotification';
7
7
  import { IHeaderProps } from '../props/IHeaderProps';
8
8
  import { NSBarActionProps, NSBarAction, isValidAction } from './NSBarAction';
9
9
  import { NSBarTitleProps, NSBarTitle } from './NSBarTitle';
10
- import { INSRouterProps } from '../routing/INSRouterProps';
10
+ import { NSRouterMakerProps } from '../routing/NSRouterMakerProps';
11
11
  import { NSBarAlertProps, NSBarAlert } from './NSBarAlert';
12
12
  import { NSSpace, NSSpaceSizeType } from './NSSpace';
13
13
  import { IBackgroundPropps } from '../props/IBackgroundPropps';
14
14
 
15
- export interface NSLayoutProps extends IBaseComponentProps, INSRouterProps
15
+ export interface NSLayoutProps extends IBaseComponentProps, NSRouterMakerProps
16
16
  {
17
17
  scope: string;
18
18
  logo: string;
package/src/main.ts CHANGED
@@ -201,11 +201,9 @@ export * from "./props/IValidationRegexProps";
201
201
  export * from "./props/IValidationStringProps";
202
202
 
203
203
  // routing
204
- export * from "./routing/INSRouterMaker";
205
- export * from "./routing/INSRouterProps";
206
- export * from "./routing/INSRouterState";
207
- export * from "./routing/Notifier";
204
+ export * from "./routing/NSNotifier";
208
205
  export * from "./routing/NSRouterMaker";
206
+ export * from "./routing/NSRouterMakerProps";
209
207
 
210
208
  export * from "./Validator";
211
209
  export * from "./NSBoxBuilder";
@@ -1,31 +1,44 @@
1
1
  import axios from "axios";
2
2
  import { NSBarNotificationColor, NSBarNotificationProps, NotificationType } from "../components/NSBarNotification";
3
- import { INSRouterState } from "./INSRouterState";
3
+ import { BaseUUID, IStorage } from "namirasoft-core";
4
4
 
5
- export class Notifier
5
+ export class NSNotifier
6
6
  {
7
- private static Counter: number = 1;
8
- private state: INSRouterState | undefined;
9
- private setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>;
10
- constructor(state: INSRouterState | undefined, setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>)
7
+ private storage: IStorage;
8
+ constructor(storage: IStorage)
11
9
  {
12
- this.state = state;
13
- this.setState = setState;
10
+ this.storage = storage;
11
+ this.getNotifications = this.getNotifications.bind(this);
12
+ this.setNotifications = this.setNotifications.bind(this);
13
+ this.delNotification = this.delNotification.bind(this);
14
14
  this.notify = this.notify.bind(this);
15
15
  this.onInformation = this.onInformation.bind(this);
16
16
  this.onSuccess = this.onSuccess.bind(this);
17
17
  this.onWarning = this.onWarning.bind(this);
18
18
  this.onError = this.onError.bind(this);
19
- this.delNotification = this.delNotification.bind(this);
20
- this.getNotifications = this.getNotifications.bind(this);
19
+ }
20
+ getNotifications(): NSBarNotificationProps[]
21
+ {
22
+ let value = this.storage.get("ns-notifications", "");
23
+ if (value)
24
+ return JSON.parse(value);
25
+ return [];
26
+ }
27
+ setNotifications(notifications: NSBarNotificationProps[]): void
28
+ {
29
+ this.storage.set("ns-notifications", JSON.stringify(notifications));
30
+ }
31
+ delNotification(id: string): void
32
+ {
33
+ let notifications: NSBarNotificationProps[] = this.getNotifications();
34
+ notifications = notifications.filter(x => x.id !== id);
35
+ this.setNotifications(notifications);
21
36
  }
22
37
  private notify(message: NSBarNotificationProps)
23
38
  {
24
- let notifications: NSBarNotificationProps[] = [];
25
- if (this.state?.notifications)
26
- notifications.push(...this.state.notifications);
39
+ let notifications: NSBarNotificationProps[] = this.getNotifications();
27
40
  notifications.push(message);
28
- this.setState({ notifications });
41
+ this.setNotifications(notifications);
29
42
  setTimeout(() =>
30
43
  {
31
44
  message.onClose();
@@ -34,22 +47,22 @@ export class Notifier
34
47
  }
35
48
  onInformation(text: string)
36
49
  {
37
- let id = Notifier.Counter++ + "";
50
+ let id = BaseUUID.uuid();
38
51
  this.notify({ id, text, type: NotificationType.Information, color: NSBarNotificationColor.GRAY, onClose: () => this.delNotification(id) });
39
52
  }
40
53
  onSuccess(text: string)
41
54
  {
42
- let id = Notifier.Counter++ + "";
55
+ let id = BaseUUID.uuid();
43
56
  this.notify({ id, text, type: NotificationType.Success, color: NSBarNotificationColor.GREEN, onClose: () => this.delNotification(id) });
44
57
  }
45
58
  onWarning(text: string)
46
59
  {
47
- let id = Notifier.Counter++ + "";
60
+ let id = BaseUUID.uuid();
48
61
  this.notify({ id, text, type: NotificationType.Warning, color: NSBarNotificationColor.YELLOW, onClose: () => this.delNotification(id) });
49
62
  }
50
63
  onError(error: Error | string)
51
64
  {
52
- let id = Notifier.Counter++ + "";
65
+ let id = BaseUUID.uuid();
53
66
  let text: string = "";
54
67
  if (error instanceof Error)
55
68
  {
@@ -62,19 +75,4 @@ export class Notifier
62
75
  text = error;
63
76
  this.notify({ id, text, type: NotificationType.Error, color: NSBarNotificationColor.RED, onClose: () => this.delNotification(id) });
64
77
  }
65
- delNotification(id: string): void
66
- {
67
- if (!this.state)
68
- return;
69
-
70
- let notifications: NSBarNotificationProps[] = [];
71
- if (this.state.notifications)
72
- notifications.push(...this.state.notifications);
73
- notifications = notifications.filter(x => x.id !== id);
74
- this.setState({ notifications });
75
- }
76
- getNotifications(): NSBarNotificationProps[]
77
- {
78
- return this.state?.notifications ?? [];
79
- }
80
78
  }
@@ -1,34 +1,19 @@
1
- import { INSRouterProps } from './INSRouterProps';
2
- import { INSRouterMaker } from './INSRouterMaker';
3
- import { INSRouterState } from './INSRouterState';
4
- import { Notifier } from './Notifier';
1
+ import { NSRouterMakerProps } from './NSRouterMakerProps';
2
+ import { NSNotifier } from './NSNotifier';
3
+ import { IStorage } from 'namirasoft-core';
5
4
 
6
5
  export class NSRouterMaker
7
6
  {
8
- private state: INSRouterState | undefined;
9
- private setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>;
10
- private component: INSRouterMaker;
11
- constructor(state: INSRouterState | undefined, setState: React.Dispatch<React.SetStateAction<INSRouterState | undefined>>, component: INSRouterMaker)
7
+ private innerOnRender: (props: NSRouterMakerProps) => React.JSX.Element;
8
+ private storage: IStorage;
9
+ constructor(innerOnRender: (props: NSRouterMakerProps) => React.JSX.Element, storage: IStorage)
12
10
  {
13
- this.state = state;
14
- this.setState = setState;
15
- this.component = component;
16
- this.init = this.init.bind(this);
11
+ this.innerOnRender = innerOnRender;
12
+ this.storage = storage;
17
13
  this.onRender = this.onRender.bind(this);
18
14
  }
19
- private init(): { props: INSRouterProps }
20
- {
21
- let notifier: Notifier = new Notifier(this.state, this.setState);
22
-
23
- let props: INSRouterProps = {
24
- notifier
25
- };
26
-
27
- return { props };
28
- }
29
15
  onRender(): React.JSX.Element
30
16
  {
31
- let { props } = this.init();
32
- return this.component.onRender(props);
17
+ return this.innerOnRender({ notifier: new NSNotifier(this.storage) });
33
18
  }
34
19
  };
@@ -0,0 +1,6 @@
1
+ import { NSNotifier } from "./NSNotifier";
2
+
3
+ export interface NSRouterMakerProps
4
+ {
5
+ notifier: NSNotifier;
6
+ }
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { INSRouterProps } from "./INSRouterProps";
3
- export interface INSRouterMaker {
4
- onRender(props: INSRouterProps): React.JSX.Element;
5
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=INSRouterMaker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"INSRouterMaker.js","sourceRoot":"","sources":["../../src/routing/INSRouterMaker.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { Notifier } from "../routing/Notifier";
2
- export interface INSRouterProps {
3
- notifier: Notifier;
4
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=INSRouterProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"INSRouterProps.js","sourceRoot":"","sources":["../../src/routing/INSRouterProps.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { NSBarNotificationProps } from "../components/NSBarNotification";
2
- export interface INSRouterState {
3
- notifications?: NSBarNotificationProps[];
4
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=INSRouterState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"INSRouterState.js","sourceRoot":"","sources":["../../src/routing/INSRouterState.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Notifier.js","sourceRoot":"","sources":["../../src/routing/Notifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAA0B,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnH,MAAM,OAAO,QAAQ;IAKjB,YAAY,KAAiC,EAAE,QAA0E;QAErH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,C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AE,IAAI,EAAE,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACxI,CAAC;IACD,eAAe,CAAC,EAAU;QAEtB,IAAI,CAAC,IAAI,CAAC,KAAK;YACX,OAAO;QAEX,IAAI,aAAa,GAA6B,EAAE,CAAC;QACjD,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa;YACxB,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpD,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACvD,IAAI,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC;IACrC,CAAC;IACD,gBAAgB;;QAEZ,OAAO,MAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,aAAa,mCAAI,EAAE,CAAC;IAC3C,CAAC;;AAxEc,gBAAO,GAAW,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { INSRouterProps } from "./INSRouterProps";
3
-
4
- export interface INSRouterMaker
5
- {
6
- onRender(props: INSRouterProps): React.JSX.Element;
7
- }
@@ -1,6 +0,0 @@
1
- import { Notifier } from "../routing/Notifier";
2
-
3
- export interface INSRouterProps
4
- {
5
- notifier: Notifier;
6
- }
@@ -1,6 +0,0 @@
1
- import { NSBarNotificationProps } from "../components/NSBarNotification";
2
-
3
- export interface INSRouterState
4
- {
5
- notifications?: NSBarNotificationProps[];
6
- }