namirasoft-site-react 1.5.7 → 1.5.9
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/dist/components/NSHeader.d.ts +3 -2
- package/dist/components/NSHeader.js +8 -6
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSLayout.d.ts +2 -0
- package/dist/components/NSLayout.js +1 -1
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/main.d.ts +14 -13
- package/dist/main.js +14 -13
- package/dist/main.js.map +1 -1
- package/dist/routing/NSRoutes.d.ts +11 -0
- package/dist/routing/NSRoutes.js +14 -0
- package/dist/routing/NSRoutes.js.map +1 -0
- package/package.json +1 -1
- package/src/components/NSHeader.tsx +10 -7
- package/src/components/NSLayout.tsx +3 -0
- package/src/main.ts +15 -14
- package/src/routing/NSRoutes.tsx +31 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Component, ReactNode } from "react";
|
|
2
1
|
import { FilterLinkFullRow } from 'namirasoft-api-link';
|
|
2
|
+
import { Component, ReactNode } from "react";
|
|
3
3
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
4
|
-
import { IHeaderRightProps } from "../props/IHeaderRightProps";
|
|
5
4
|
import { IHeaderLeftProps } from "../props/IHeaderLeftProps";
|
|
5
|
+
import { IHeaderRightProps } from "../props/IHeaderRightProps";
|
|
6
6
|
import { NSRouterMakerProps } from "../routing/NSRouterMakerProps";
|
|
7
7
|
import { NSBoxSearch } from "./NSBoxSearch";
|
|
8
8
|
import { NSProductSearch } from "./NSProductSearch";
|
|
@@ -14,6 +14,7 @@ export interface NSHeaderProps extends IBaseComponentProps, NSRouterMakerProps {
|
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
onCollapse?: () => void;
|
|
16
16
|
isLoggedIn: () => boolean;
|
|
17
|
+
filters_postprocessor?: (filters: FilterLinkFullRow[]) => FilterLinkFullRow[];
|
|
17
18
|
}
|
|
18
19
|
export interface NSHeaderState {
|
|
19
20
|
filters: FilterLinkFullRow[];
|
|
@@ -9,16 +9,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
import { NamirasoftAPILinkServer } from 'namirasoft-api-link';
|
|
13
|
+
import { CacheService, EnvService, IStorageLocal, SetTimeouService } from "namirasoft-core";
|
|
12
14
|
import { Component, createRef } from "react";
|
|
13
|
-
import Styles from "./NSHeader.module.css";
|
|
14
15
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
15
|
-
import { NamirasoftAPILinkServer } from 'namirasoft-api-link';
|
|
16
|
-
import { IStorageLocal, CacheService, SetTimeouService } from "namirasoft-core";
|
|
17
|
-
import { EnvService } from 'namirasoft-core';
|
|
18
16
|
import { NSBoxSearch } from "./NSBoxSearch";
|
|
19
17
|
import { NSDialog } from "./NSDialog";
|
|
20
|
-
import
|
|
18
|
+
import Styles from "./NSHeader.module.css";
|
|
21
19
|
import NSMegaMenu from "./NSMegaMenu";
|
|
20
|
+
import { NSProductSearch } from "./NSProductSearch";
|
|
22
21
|
export class NSHeader extends Component {
|
|
23
22
|
constructor(props) {
|
|
24
23
|
super(props);
|
|
@@ -55,7 +54,10 @@ export class NSHeader extends Component {
|
|
|
55
54
|
getFilters() {
|
|
56
55
|
var _a, _b;
|
|
57
56
|
let loggedin = this.props.isLoggedIn();
|
|
58
|
-
let
|
|
57
|
+
let raw = (_a = this.state.filters) !== null && _a !== void 0 ? _a : [];
|
|
58
|
+
if (this.props.filters_postprocessor)
|
|
59
|
+
raw = this.props.filters_postprocessor(raw);
|
|
60
|
+
let ans = (_b = raw.filter(f => {
|
|
59
61
|
if (f.link) {
|
|
60
62
|
if (loggedin)
|
|
61
63
|
return f.link.private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSHeader.js","sourceRoot":"","sources":["../../src/components/NSHeader.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,OAAO,
|
|
1
|
+
{"version":3,"file":"NSHeader.js","sourceRoot":"","sources":["../../src/components/NSHeader.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,OAAO,EAAqB,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AACxD,OAAO,WAAW,MAAM,6BAA6B,CAAC;AAKtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAsBpD,MAAM,OAAO,QAAS,SAAQ,SAAuC;IAWjE,YAAY,KAAoB;QAE5B,KAAK,CAAC,KAAK,CAAC,CAAC;QAPT,YAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;QAEzC,oBAAe,GAAG,SAAS,EAAe,CAAC;QAC3C,wBAAmB,GAAG,SAAS,EAAmB,CAAC;QAK/C,IAAI,CAAC,KAAK,GAAG;YACT,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,KAAK;YAClB,MAAM,EAAE,EAAE;SACb,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,WAAW,GAAG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ilterLinkFullRow } from 'namirasoft-api-link';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { IBackgroundProps } from '../props/IBackgroundProps';
|
|
3
4
|
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
@@ -18,6 +19,7 @@ export interface NSLayoutProps extends IBaseComponentProps, NSRouterMakerProps {
|
|
|
18
19
|
};
|
|
19
20
|
mega_menu?: boolean;
|
|
20
21
|
onCollapse?: () => void;
|
|
22
|
+
filters_postprocessor?: (filters: FilterLinkFullRow[]) => FilterLinkFullRow[];
|
|
21
23
|
};
|
|
22
24
|
background?: IBackgroundProps;
|
|
23
25
|
notifications: NSBarNotificationProps[];
|
|
@@ -31,7 +31,7 @@ export function NSLayout(props) {
|
|
|
31
31
|
name: "Header",
|
|
32
32
|
logo: props.logo,
|
|
33
33
|
title: (_k = props.header.left) === null || _k === void 0 ? void 0 : _k.title
|
|
34
|
-
}, right: props.header.right, isLoggedIn: props.isLoggedIn, notifier: props.notifier, mega_menu: props.header.mega_menu, onCollapse: props.header.onCollapse, children: [props.notifications.length !== 0 &&
|
|
34
|
+
}, right: props.header.right, isLoggedIn: props.isLoggedIn, notifier: props.notifier, mega_menu: props.header.mega_menu, onCollapse: props.header.onCollapse, filters_postprocessor: props.header.filters_postprocessor, children: [props.notifications.length !== 0 &&
|
|
35
35
|
_jsx(_Fragment, { children: props.notifications.map((notification, index) => _jsx(Fragment, { children: _jsx(NSBarNotification, Object.assign({}, notification, { onClose: () => {
|
|
36
36
|
props.notifier.delNotification(notification.id);
|
|
37
37
|
}, onChangeState: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AAK5C,OAAO,EAA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C,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAC,UAAU,oBAA8C,KAAK,GAA7C,2BAA2B,KAAK,EAAE,CAAe,CAAC,EAGvH,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC;oCAC3B,KAAC,WAAW,oBACJ,KAAK,CAAC,MAAM,EAClB,IAEJ,IAEC,EAEf,eAAK,SAAS,EAAC,mBAAmB,aAG1B,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAC,UAAU,oBAA8C,KAAK,GAA7C,2BAA2B,KAAK,EAAE,CAAe,CAAC,EAGvH,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAC,WAAW,oBAAK,KAAK,CAAC,MAAM,EAAI,IAElE,EAGF,KAAK,CAAC,KAAK;gBACX,8BACI,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,IAAI,GACxB,EACX,KAAC,UAAU,oBAAK,KAAK,CAAC,KAAK,EAAiB,IAC7C,EAEP,eAAM,SAAS,EAAE,sBAAsB,MAAM,CAAC,cAAc,EAAE,YACzD,KAAK,CAAC,QAAQ,GACZ,EACP,KAAC,QAAQ,IACL,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,UAAU,EAAE,KAAK,CAAC,UAAU,GAC9B,IACC,CACV,CAAC;AACN,CAAC"}
|
package/dist/main.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export * from "./components/NSBarTitle";
|
|
|
5
5
|
export * from "./components/NSBanner";
|
|
6
6
|
export * from "./components/INSBox";
|
|
7
7
|
export * from "./components/NSBox";
|
|
8
|
-
export * from "./components/NSBoxBaseLayout";
|
|
9
8
|
export * from "./components/NSBoxBaseCombo";
|
|
9
|
+
export * from "./components/NSBoxBaseLayout";
|
|
10
10
|
export * from "./components/NSBoxBoolean";
|
|
11
11
|
export * from "./components/NSBoxBooleans";
|
|
12
12
|
export * from "./components/NSBoxCombo";
|
|
@@ -23,17 +23,17 @@ export * from "./components/NSBoxEmail";
|
|
|
23
23
|
export * from "./components/NSBoxEntity";
|
|
24
24
|
export * from "./components/NSBoxEnum";
|
|
25
25
|
export * from "./components/NSBoxFile";
|
|
26
|
+
export * from "./components/NSBoxInteger";
|
|
26
27
|
export * from "./components/NSBoxIPV4";
|
|
27
28
|
export * from "./components/NSBoxIPV6";
|
|
28
|
-
export * from "./components/NSBoxInteger";
|
|
29
29
|
export * from "./components/NSBoxMoney";
|
|
30
|
-
export * from "./components/
|
|
30
|
+
export * from "./components/NSBoxOptions";
|
|
31
31
|
export * from "./components/NSBoxPhone";
|
|
32
32
|
export * from "./components/NSBoxRadio";
|
|
33
|
-
export * from "./components/NSBoxOptions";
|
|
34
33
|
export * from "./components/NSBoxSchemaBase";
|
|
35
34
|
export * from "./components/NSBoxSchemaVariable";
|
|
36
35
|
export * from "./components/NSBoxSearch";
|
|
36
|
+
export * from "./components/NSBoxSensitive";
|
|
37
37
|
export * from "./components/NSBoxString";
|
|
38
38
|
export * from "./components/NSBoxTextArea";
|
|
39
39
|
export * from "./components/NSBoxTime";
|
|
@@ -48,13 +48,13 @@ export * from "./components/NSButtonRed";
|
|
|
48
48
|
export * from "./components/NSCard";
|
|
49
49
|
export * from "./components/NSCardScreenshot";
|
|
50
50
|
export * from "./components/NSChartBar";
|
|
51
|
-
export * from "./components/NSChartLine";
|
|
52
51
|
export * from "./components/NSChartDoughnut";
|
|
52
|
+
export * from "./components/NSChartLine";
|
|
53
53
|
export * from "./components/NSChartPie";
|
|
54
54
|
export * from "./components/NSChartRange";
|
|
55
55
|
export * from "./components/NSTableChart";
|
|
56
|
-
export * from "./components/NSCopyBox";
|
|
57
56
|
export * from "./components/NSCopy";
|
|
57
|
+
export * from "./components/NSCopyBox";
|
|
58
58
|
export * from "./components/NSColumn";
|
|
59
59
|
export * from "./components/NSDialog";
|
|
60
60
|
export * from "./components/NSDialogDelete";
|
|
@@ -101,8 +101,8 @@ export * from "./components/NSRepeaterNSBoxSchemaVariable";
|
|
|
101
101
|
export * from "./components/NSRepeaterNSTag";
|
|
102
102
|
export * from "./components/NSRow";
|
|
103
103
|
export * from "./components/NSSection";
|
|
104
|
-
export * from "./components/NSSectionTiles";
|
|
105
104
|
export * from "./components/NSSectionCards";
|
|
105
|
+
export * from "./components/NSSectionTiles";
|
|
106
106
|
export * from "./components/NSSectionTitle";
|
|
107
107
|
export * from "./components/NSSpace";
|
|
108
108
|
export * from "./components/NSTable";
|
|
@@ -110,8 +110,8 @@ export * from "./components/NSTabPage";
|
|
|
110
110
|
export * from "./components/NSTag";
|
|
111
111
|
export * from "./components/NSTitle";
|
|
112
112
|
export * from "./components/NSGauge";
|
|
113
|
-
export * from "./components/NSGaugeNumber";
|
|
114
113
|
export * from "./components/NSGaugeDate";
|
|
114
|
+
export * from "./components/NSGaugeNumber";
|
|
115
115
|
export * from "./components/NSSplitter";
|
|
116
116
|
export * from "./formatter/BackColorFormatter";
|
|
117
117
|
export * from "./formatter/BaseColumnFormatter";
|
|
@@ -130,9 +130,9 @@ export * from "./formatter/IntegerFormatter";
|
|
|
130
130
|
export * from "./formatter/IPFormatter";
|
|
131
131
|
export * from "./formatter/JsonFormatter";
|
|
132
132
|
export * from "./formatter/MoneyFormatter";
|
|
133
|
-
export * from "./formatter/SensitiveFormatter";
|
|
134
133
|
export * from "./formatter/PercentFormatter";
|
|
135
134
|
export * from "./formatter/PhoneFormatter";
|
|
135
|
+
export * from "./formatter/SensitiveFormatter";
|
|
136
136
|
export * from "./formatter/StringFormatter";
|
|
137
137
|
export * from "./formatter/TimeFormatter";
|
|
138
138
|
export * from "./formatter/UnknowFormatter";
|
|
@@ -143,8 +143,8 @@ export * from "./pages/NSUpdating";
|
|
|
143
143
|
export * from "./props/IBackgroundProps";
|
|
144
144
|
export * from "./props/IBaseComponentProps";
|
|
145
145
|
export * from "./props/IHeaderIconProps";
|
|
146
|
-
export * from "./props/IHeaderRightProps";
|
|
147
146
|
export * from "./props/IHeaderLeftProps";
|
|
147
|
+
export * from "./props/IHeaderRightProps";
|
|
148
148
|
export * from "./props/IImageProps";
|
|
149
149
|
export * from "./props/ILinkProps";
|
|
150
150
|
export * from "./props/IValidationNumberProps";
|
|
@@ -156,11 +156,12 @@ export * from "./routing/NSNotifier";
|
|
|
156
156
|
export * from "./routing/NSRouterMaker";
|
|
157
157
|
export * from "./routing/NSRouterMakerComponent";
|
|
158
158
|
export * from "./routing/NSRouterMakerProps";
|
|
159
|
-
export * from "./
|
|
160
|
-
export * from "./NSBoxBuilder";
|
|
161
|
-
export * from "./ProductCacheService";
|
|
159
|
+
export * from "./routing/NSRoutes";
|
|
162
160
|
export * from "./BrowserDetector";
|
|
163
161
|
export * from "./CopyToClipboard";
|
|
164
162
|
export * from "./EncryptionOperation";
|
|
165
163
|
export * from "./KeyOperation";
|
|
166
164
|
export * from "./LinkOperation";
|
|
165
|
+
export * from "./NSBoxBuilder";
|
|
166
|
+
export * from "./ProductCacheService";
|
|
167
|
+
export * from "./Validator";
|
package/dist/main.js
CHANGED
|
@@ -7,8 +7,8 @@ export * from "./components/NSBarTitle";
|
|
|
7
7
|
export * from "./components/NSBanner";
|
|
8
8
|
export * from "./components/INSBox";
|
|
9
9
|
export * from "./components/NSBox";
|
|
10
|
-
export * from "./components/NSBoxBaseLayout";
|
|
11
10
|
export * from "./components/NSBoxBaseCombo";
|
|
11
|
+
export * from "./components/NSBoxBaseLayout";
|
|
12
12
|
export * from "./components/NSBoxBoolean";
|
|
13
13
|
export * from "./components/NSBoxBooleans";
|
|
14
14
|
export * from "./components/NSBoxCombo";
|
|
@@ -25,17 +25,17 @@ export * from "./components/NSBoxEmail";
|
|
|
25
25
|
export * from "./components/NSBoxEntity";
|
|
26
26
|
export * from "./components/NSBoxEnum";
|
|
27
27
|
export * from "./components/NSBoxFile";
|
|
28
|
+
export * from "./components/NSBoxInteger";
|
|
28
29
|
export * from "./components/NSBoxIPV4";
|
|
29
30
|
export * from "./components/NSBoxIPV6";
|
|
30
|
-
export * from "./components/NSBoxInteger";
|
|
31
31
|
export * from "./components/NSBoxMoney";
|
|
32
|
-
export * from "./components/
|
|
32
|
+
export * from "./components/NSBoxOptions";
|
|
33
33
|
export * from "./components/NSBoxPhone";
|
|
34
34
|
export * from "./components/NSBoxRadio";
|
|
35
|
-
export * from "./components/NSBoxOptions";
|
|
36
35
|
export * from "./components/NSBoxSchemaBase";
|
|
37
36
|
export * from "./components/NSBoxSchemaVariable";
|
|
38
37
|
export * from "./components/NSBoxSearch";
|
|
38
|
+
export * from "./components/NSBoxSensitive";
|
|
39
39
|
export * from "./components/NSBoxString";
|
|
40
40
|
export * from "./components/NSBoxTextArea";
|
|
41
41
|
export * from "./components/NSBoxTime";
|
|
@@ -50,13 +50,13 @@ export * from "./components/NSButtonRed";
|
|
|
50
50
|
export * from "./components/NSCard";
|
|
51
51
|
export * from "./components/NSCardScreenshot";
|
|
52
52
|
export * from "./components/NSChartBar";
|
|
53
|
-
export * from "./components/NSChartLine";
|
|
54
53
|
export * from "./components/NSChartDoughnut";
|
|
54
|
+
export * from "./components/NSChartLine";
|
|
55
55
|
export * from "./components/NSChartPie";
|
|
56
56
|
export * from "./components/NSChartRange";
|
|
57
57
|
export * from "./components/NSTableChart";
|
|
58
|
-
export * from "./components/NSCopyBox";
|
|
59
58
|
export * from "./components/NSCopy";
|
|
59
|
+
export * from "./components/NSCopyBox";
|
|
60
60
|
export * from "./components/NSColumn";
|
|
61
61
|
export * from "./components/NSDialog";
|
|
62
62
|
export * from "./components/NSDialogDelete";
|
|
@@ -103,8 +103,8 @@ export * from "./components/NSRepeaterNSBoxSchemaVariable";
|
|
|
103
103
|
export * from "./components/NSRepeaterNSTag";
|
|
104
104
|
export * from "./components/NSRow";
|
|
105
105
|
export * from "./components/NSSection";
|
|
106
|
-
export * from "./components/NSSectionTiles";
|
|
107
106
|
export * from "./components/NSSectionCards";
|
|
107
|
+
export * from "./components/NSSectionTiles";
|
|
108
108
|
export * from "./components/NSSectionTitle";
|
|
109
109
|
export * from "./components/NSSpace";
|
|
110
110
|
export * from "./components/NSTable";
|
|
@@ -112,8 +112,8 @@ export * from "./components/NSTabPage";
|
|
|
112
112
|
export * from "./components/NSTag";
|
|
113
113
|
export * from "./components/NSTitle";
|
|
114
114
|
export * from "./components/NSGauge";
|
|
115
|
-
export * from "./components/NSGaugeNumber";
|
|
116
115
|
export * from "./components/NSGaugeDate";
|
|
116
|
+
export * from "./components/NSGaugeNumber";
|
|
117
117
|
export * from "./components/NSSplitter";
|
|
118
118
|
export * from "./formatter/BackColorFormatter";
|
|
119
119
|
export * from "./formatter/BaseColumnFormatter";
|
|
@@ -132,9 +132,9 @@ export * from "./formatter/IntegerFormatter";
|
|
|
132
132
|
export * from "./formatter/IPFormatter";
|
|
133
133
|
export * from "./formatter/JsonFormatter";
|
|
134
134
|
export * from "./formatter/MoneyFormatter";
|
|
135
|
-
export * from "./formatter/SensitiveFormatter";
|
|
136
135
|
export * from "./formatter/PercentFormatter";
|
|
137
136
|
export * from "./formatter/PhoneFormatter";
|
|
137
|
+
export * from "./formatter/SensitiveFormatter";
|
|
138
138
|
export * from "./formatter/StringFormatter";
|
|
139
139
|
export * from "./formatter/TimeFormatter";
|
|
140
140
|
export * from "./formatter/UnknowFormatter";
|
|
@@ -145,8 +145,8 @@ export * from "./pages/NSUpdating";
|
|
|
145
145
|
export * from "./props/IBackgroundProps";
|
|
146
146
|
export * from "./props/IBaseComponentProps";
|
|
147
147
|
export * from "./props/IHeaderIconProps";
|
|
148
|
-
export * from "./props/IHeaderRightProps";
|
|
149
148
|
export * from "./props/IHeaderLeftProps";
|
|
149
|
+
export * from "./props/IHeaderRightProps";
|
|
150
150
|
export * from "./props/IImageProps";
|
|
151
151
|
export * from "./props/ILinkProps";
|
|
152
152
|
export * from "./props/IValidationNumberProps";
|
|
@@ -158,14 +158,15 @@ export * from "./routing/NSNotifier";
|
|
|
158
158
|
export * from "./routing/NSRouterMaker";
|
|
159
159
|
export * from "./routing/NSRouterMakerComponent";
|
|
160
160
|
export * from "./routing/NSRouterMakerProps";
|
|
161
|
-
export * from "./
|
|
162
|
-
export * from "./NSBoxBuilder";
|
|
163
|
-
export * from "./ProductCacheService";
|
|
161
|
+
export * from "./routing/NSRoutes";
|
|
164
162
|
export * from "./BrowserDetector";
|
|
165
163
|
export * from "./CopyToClipboard";
|
|
166
164
|
export * from "./EncryptionOperation";
|
|
167
165
|
export * from "./KeyOperation";
|
|
168
166
|
export * from "./LinkOperation";
|
|
167
|
+
export * from "./NSBoxBuilder";
|
|
168
|
+
export * from "./ProductCacheService";
|
|
169
|
+
export * from "./Validator";
|
|
169
170
|
function main() {
|
|
170
171
|
NSBaseMetaDatabase.getServerBaseURL = function (name) {
|
|
171
172
|
name = name.replace("Namirasoft", "").trim();
|
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,
|
|
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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|
|
5
|
+
interface NSRoutesState {
|
|
6
|
+
}
|
|
7
|
+
export declare class NSRoutes extends Component<NSRoutesProps, NSRoutesState> {
|
|
8
|
+
constructor(props: NSRoutesProps);
|
|
9
|
+
render(): import("react").JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import { Route, Routes } from 'react-router-dom';
|
|
4
|
+
import { NSNotFoundPage } from '../pages/NSNotFoundPage';
|
|
5
|
+
export class NSRoutes extends Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.state = {};
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (_jsxs(Routes, { children: [this.props.children, _jsx(Route, { path: "*", element: _jsx(NSNotFoundPage, {}) })] }));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=NSRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSRoutes.js","sourceRoot":"","sources":["../../src/routing/NSRoutes.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAWzD,MAAM,OAAO,QAAS,SAAQ,SAAuC;IAEjE,YAAY,KAAoB;QAE5B,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,MAAC,MAAM,eACF,IAAI,CAAC,KAAK,CAAC,QAAQ,EACpB,KAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,KAAC,cAAc,KAAG,GAAI,IAC1C,CACZ,CAAC;IACN,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import { FilterLinkFullRow, NamirasoftAPILinkServer } from 'namirasoft-api-link';
|
|
4
|
+
import { CacheService, EnvService, IStorageLocal, SetTimeouService } from "namirasoft-core";
|
|
3
5
|
import { Component, createRef, ReactNode } from "react";
|
|
4
|
-
import Styles from "./NSHeader.module.css";
|
|
5
6
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
6
|
-
import { NamirasoftAPILinkServer, FilterLinkFullRow } from 'namirasoft-api-link';
|
|
7
7
|
import { IBaseComponentProps } from "../props/IBaseComponentProps";
|
|
8
|
-
import { IHeaderRightProps } from "../props/IHeaderRightProps";
|
|
9
8
|
import { IHeaderLeftProps } from "../props/IHeaderLeftProps";
|
|
10
|
-
import {
|
|
11
|
-
import { EnvService } from 'namirasoft-core'
|
|
9
|
+
import { IHeaderRightProps } from "../props/IHeaderRightProps";
|
|
12
10
|
import { NSRouterMakerProps } from "../routing/NSRouterMakerProps";
|
|
13
11
|
import { NSBoxSearch } from "./NSBoxSearch";
|
|
14
12
|
import { NSDialog } from "./NSDialog";
|
|
15
|
-
import
|
|
13
|
+
import Styles from "./NSHeader.module.css";
|
|
16
14
|
import NSMegaMenu from "./NSMegaMenu";
|
|
15
|
+
import { NSProductSearch } from "./NSProductSearch";
|
|
17
16
|
|
|
18
17
|
export interface NSHeaderProps extends IBaseComponentProps, NSRouterMakerProps
|
|
19
18
|
{
|
|
@@ -24,6 +23,7 @@ export interface NSHeaderProps extends IBaseComponentProps, NSRouterMakerProps
|
|
|
24
23
|
children?: ReactNode;
|
|
25
24
|
onCollapse?: () => void;
|
|
26
25
|
isLoggedIn: () => boolean;
|
|
26
|
+
filters_postprocessor?: (filters: FilterLinkFullRow[]) => FilterLinkFullRow[];
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface NSHeaderState
|
|
@@ -85,7 +85,10 @@ export class NSHeader extends Component<NSHeaderProps, NSHeaderState>
|
|
|
85
85
|
private getFilters(): FilterLinkFullRow[]
|
|
86
86
|
{
|
|
87
87
|
let loggedin = this.props.isLoggedIn();
|
|
88
|
-
let
|
|
88
|
+
let raw = this.state.filters ?? [];
|
|
89
|
+
if (this.props.filters_postprocessor)
|
|
90
|
+
raw = this.props.filters_postprocessor(raw);
|
|
91
|
+
let ans = raw.filter(f =>
|
|
89
92
|
{
|
|
90
93
|
if (f.link)
|
|
91
94
|
{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FilterLinkFullRow } from 'namirasoft-api-link';
|
|
1
2
|
import { Fragment, ReactNode } from 'react';
|
|
2
3
|
import { IBackgroundProps } from '../props/IBackgroundProps';
|
|
3
4
|
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
@@ -22,6 +23,7 @@ export interface NSLayoutProps extends IBaseComponentProps, NSRouterMakerProps
|
|
|
22
23
|
left?: { title?: string }
|
|
23
24
|
mega_menu?: boolean;
|
|
24
25
|
onCollapse?: () => void;
|
|
26
|
+
filters_postprocessor?: (filters: FilterLinkFullRow[]) => FilterLinkFullRow[];
|
|
25
27
|
};
|
|
26
28
|
background?: IBackgroundProps;
|
|
27
29
|
notifications: NSBarNotificationProps[];
|
|
@@ -71,6 +73,7 @@ export function NSLayout(props: NSLayoutProps)
|
|
|
71
73
|
notifier={props.notifier}
|
|
72
74
|
mega_menu={props.header.mega_menu}
|
|
73
75
|
onCollapse={props.header.onCollapse}
|
|
76
|
+
filters_postprocessor={props.header.filters_postprocessor}
|
|
74
77
|
>
|
|
75
78
|
{
|
|
76
79
|
props.notifications.length !== 0 &&
|
package/src/main.ts
CHANGED
|
@@ -13,8 +13,8 @@ export * from "./components/NSBanner";
|
|
|
13
13
|
// Box
|
|
14
14
|
export * from "./components/INSBox";
|
|
15
15
|
export * from "./components/NSBox";
|
|
16
|
-
export * from "./components/NSBoxBaseLayout";
|
|
17
16
|
export * from "./components/NSBoxBaseCombo";
|
|
17
|
+
export * from "./components/NSBoxBaseLayout";
|
|
18
18
|
export * from "./components/NSBoxBoolean";
|
|
19
19
|
export * from "./components/NSBoxBooleans";
|
|
20
20
|
export * from "./components/NSBoxCombo";
|
|
@@ -31,17 +31,17 @@ export * from "./components/NSBoxEmail";
|
|
|
31
31
|
export * from "./components/NSBoxEntity";
|
|
32
32
|
export * from "./components/NSBoxEnum";
|
|
33
33
|
export * from "./components/NSBoxFile";
|
|
34
|
+
export * from "./components/NSBoxInteger";
|
|
34
35
|
export * from "./components/NSBoxIPV4";
|
|
35
36
|
export * from "./components/NSBoxIPV6";
|
|
36
|
-
export * from "./components/NSBoxInteger";
|
|
37
37
|
export * from "./components/NSBoxMoney";
|
|
38
|
-
export * from "./components/
|
|
38
|
+
export * from "./components/NSBoxOptions";
|
|
39
39
|
export * from "./components/NSBoxPhone";
|
|
40
40
|
export * from "./components/NSBoxRadio";
|
|
41
|
-
export * from "./components/NSBoxOptions";
|
|
42
41
|
export * from "./components/NSBoxSchemaBase";
|
|
43
42
|
export * from "./components/NSBoxSchemaVariable";
|
|
44
43
|
export * from "./components/NSBoxSearch";
|
|
44
|
+
export * from "./components/NSBoxSensitive";
|
|
45
45
|
export * from "./components/NSBoxString";
|
|
46
46
|
export * from "./components/NSBoxTextArea";
|
|
47
47
|
export * from "./components/NSBoxTime";
|
|
@@ -58,19 +58,19 @@ export * from "./components/NSButtonRed";
|
|
|
58
58
|
|
|
59
59
|
// Card
|
|
60
60
|
export * from "./components/NSCard";
|
|
61
|
-
export * from "./components/NSCardScreenshot"
|
|
61
|
+
export * from "./components/NSCardScreenshot";
|
|
62
62
|
|
|
63
63
|
// Chart
|
|
64
64
|
export * from "./components/NSChartBar";
|
|
65
|
-
export * from "./components/NSChartLine";
|
|
66
65
|
export * from "./components/NSChartDoughnut";
|
|
66
|
+
export * from "./components/NSChartLine";
|
|
67
67
|
export * from "./components/NSChartPie";
|
|
68
68
|
export * from "./components/NSChartRange";
|
|
69
69
|
export * from "./components/NSTableChart";
|
|
70
70
|
|
|
71
71
|
// Copy
|
|
72
|
-
export * from "./components/NSCopyBox";
|
|
73
72
|
export * from "./components/NSCopy";
|
|
73
|
+
export * from "./components/NSCopyBox";
|
|
74
74
|
|
|
75
75
|
// Column
|
|
76
76
|
export * from "./components/NSColumn";
|
|
@@ -165,8 +165,8 @@ export * from "./components/NSRow";
|
|
|
165
165
|
|
|
166
166
|
// Section
|
|
167
167
|
export * from "./components/NSSection";
|
|
168
|
-
export * from "./components/NSSectionTiles";
|
|
169
168
|
export * from "./components/NSSectionCards";
|
|
169
|
+
export * from "./components/NSSectionTiles";
|
|
170
170
|
export * from "./components/NSSectionTitle";
|
|
171
171
|
|
|
172
172
|
// Space
|
|
@@ -186,8 +186,8 @@ export * from "./components/NSTitle";
|
|
|
186
186
|
|
|
187
187
|
// Gauge
|
|
188
188
|
export * from "./components/NSGauge";
|
|
189
|
-
export * from "./components/NSGaugeNumber";
|
|
190
189
|
export * from "./components/NSGaugeDate";
|
|
190
|
+
export * from "./components/NSGaugeNumber";
|
|
191
191
|
|
|
192
192
|
// Splitter
|
|
193
193
|
export * from "./components/NSSplitter";
|
|
@@ -210,9 +210,9 @@ export * from "./formatter/IntegerFormatter";
|
|
|
210
210
|
export * from "./formatter/IPFormatter";
|
|
211
211
|
export * from "./formatter/JsonFormatter";
|
|
212
212
|
export * from "./formatter/MoneyFormatter";
|
|
213
|
-
export * from "./formatter/SensitiveFormatter";
|
|
214
213
|
export * from "./formatter/PercentFormatter";
|
|
215
214
|
export * from "./formatter/PhoneFormatter";
|
|
215
|
+
export * from "./formatter/SensitiveFormatter";
|
|
216
216
|
export * from "./formatter/StringFormatter";
|
|
217
217
|
export * from "./formatter/TimeFormatter";
|
|
218
218
|
export * from "./formatter/UnknowFormatter";
|
|
@@ -227,8 +227,8 @@ export * from "./pages/NSUpdating";
|
|
|
227
227
|
export * from "./props/IBackgroundProps";
|
|
228
228
|
export * from "./props/IBaseComponentProps";
|
|
229
229
|
export * from "./props/IHeaderIconProps";
|
|
230
|
-
export * from "./props/IHeaderRightProps";
|
|
231
230
|
export * from "./props/IHeaderLeftProps";
|
|
231
|
+
export * from "./props/IHeaderRightProps";
|
|
232
232
|
export * from "./props/IImageProps";
|
|
233
233
|
export * from "./props/ILinkProps";
|
|
234
234
|
export * from "./props/IValidationNumberProps";
|
|
@@ -242,15 +242,16 @@ export * from "./routing/NSNotifier";
|
|
|
242
242
|
export * from "./routing/NSRouterMaker";
|
|
243
243
|
export * from "./routing/NSRouterMakerComponent";
|
|
244
244
|
export * from "./routing/NSRouterMakerProps";
|
|
245
|
+
export * from "./routing/NSRoutes";
|
|
245
246
|
|
|
246
|
-
export * from "./Validator";
|
|
247
|
-
export * from "./NSBoxBuilder";
|
|
248
|
-
export * from "./ProductCacheService";
|
|
249
247
|
export * from "./BrowserDetector";
|
|
250
248
|
export * from "./CopyToClipboard";
|
|
251
249
|
export * from "./EncryptionOperation";
|
|
252
250
|
export * from "./KeyOperation";
|
|
253
251
|
export * from "./LinkOperation";
|
|
252
|
+
export * from "./NSBoxBuilder";
|
|
253
|
+
export * from "./ProductCacheService";
|
|
254
|
+
export * from "./Validator";
|
|
254
255
|
|
|
255
256
|
function main()
|
|
256
257
|
{
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
import { Route, Routes } from 'react-router-dom';
|
|
3
|
+
import { NSNotFoundPage } from '../pages/NSNotFoundPage';
|
|
4
|
+
|
|
5
|
+
export interface NSRoutesProps
|
|
6
|
+
{
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface NSRoutesState
|
|
11
|
+
{
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class NSRoutes extends Component<NSRoutesProps, NSRoutesState>
|
|
15
|
+
{
|
|
16
|
+
constructor(props: NSRoutesProps)
|
|
17
|
+
{
|
|
18
|
+
super(props);
|
|
19
|
+
|
|
20
|
+
this.state = {};
|
|
21
|
+
}
|
|
22
|
+
override render()
|
|
23
|
+
{
|
|
24
|
+
return (
|
|
25
|
+
<Routes>
|
|
26
|
+
{this.props.children}
|
|
27
|
+
<Route path="*" element={<NSNotFoundPage />} />
|
|
28
|
+
</Routes>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|