namirasoft-account-react 1.4.438 → 1.5.1
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/NSARouterMaker.js +4 -2
- package/dist/NSARouterMaker.js.map +1 -1
- package/dist/components/NSAAccessListDialog.d.ts +1 -1
- package/dist/components/NSAAccessListDialog.js +4 -4
- package/dist/components/NSAAccessListDialog.js.map +1 -1
- package/dist/components/NSAMessageListDialog.js +1 -1
- package/dist/components/NSAMessageListDialog.js.map +1 -1
- package/dist/components/NSATable.d.ts +5 -0
- package/dist/components/NSATable.js +45 -11
- package/dist/components/NSATable.js.map +1 -1
- package/dist/components/NSAWorkspaceListDialog.js +1 -1
- package/dist/components/NSAWorkspaceListDialog.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxBase.d.ts +9 -0
- package/dist/components/quickfilter/NSAFilterBoxBase.js +25 -0
- package/dist/components/quickfilter/NSAFilterBoxBase.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxBoolean.d.ts +1 -0
- package/dist/components/quickfilter/NSAFilterBoxBoolean.js +12 -2
- package/dist/components/quickfilter/NSAFilterBoxBoolean.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxDate.js +7 -5
- package/dist/components/quickfilter/NSAFilterBoxDate.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxDateTime.js +7 -5
- package/dist/components/quickfilter/NSAFilterBoxDateTime.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxEnum.js +2 -2
- package/dist/components/quickfilter/NSAFilterBoxEnum.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxNumber.js +11 -5
- package/dist/components/quickfilter/NSAFilterBoxNumber.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxString.js +3 -3
- package/dist/components/quickfilter/NSAFilterBoxString.js.map +1 -1
- package/dist/components/quickfilter/NSAFilterBoxTime.js +6 -5
- package/dist/components/quickfilter/NSAFilterBoxTime.js.map +1 -1
- package/dist/components/quickfilter/NSAQuickFilterBar.d.ts +2 -0
- package/dist/components/quickfilter/NSAQuickFilterBar.js +26 -2
- package/dist/components/quickfilter/NSAQuickFilterBar.js.map +1 -1
- package/dist/layouts/NSALayout.js +3 -6
- package/dist/layouts/NSALayout.js.map +1 -1
- package/dist/layouts/NSASectionViewTabPage.js +1 -1
- package/dist/layouts/NSASectionViewTabPage.js.map +1 -1
- package/dist/pages/NSAHomePage.d.ts +6 -2
- package/dist/pages/NSAHomePage.js +4 -4
- package/dist/pages/NSAHomePage.js.map +1 -1
- package/package.json +17 -17
- package/src/NSARouterMaker.tsx +4 -2
- package/src/components/NSAAccessListDialog.tsx +4 -4
- package/src/components/NSAMessageListDialog.tsx +4 -4
- package/src/components/NSATable.tsx +503 -455
- package/src/components/NSAWorkspaceListDialog.tsx +1 -1
- package/src/components/quickfilter/NSAFilterBoxBase.tsx +34 -0
- package/src/components/quickfilter/NSAFilterBoxBoolean.tsx +13 -1
- package/src/components/quickfilter/NSAFilterBoxDate.tsx +8 -2
- package/src/components/quickfilter/NSAFilterBoxDateTime.tsx +8 -3
- package/src/components/quickfilter/NSAFilterBoxEnum.tsx +2 -2
- package/src/components/quickfilter/NSAFilterBoxNumber.tsx +11 -2
- package/src/components/quickfilter/NSAFilterBoxString.tsx +3 -1
- package/src/components/quickfilter/NSAFilterBoxTime.tsx +7 -2
- package/src/components/quickfilter/NSAQuickFilterBar.tsx +30 -2
- package/src/layouts/NSALayout.tsx +3 -6
- package/src/layouts/NSASectionViewTabPage.tsx +1 -1
- package/src/pages/NSAHomePage.tsx +26 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { SetTimeouService } from 'namirasoft-core';
|
|
4
|
-
import { NSBox, NSBoxSearch, NSListProduct, NSLoading, NSSpace, NSSpaceSizeType, ProductCacheService } from 'namirasoft-site-react';
|
|
4
|
+
import { NSBox, NSBoxSearch, NSLine, NSListMenu, NSListProduct, NSLoading, NSSpace, NSSpaceSizeType, NSTitle, ProductCacheService } from 'namirasoft-site-react';
|
|
5
5
|
import Styles from './NSAHomePage.module.css';
|
|
6
6
|
export function NSAHomePage(props) {
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
7
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
8
8
|
let cache = ProductCacheService.get(props.product_id, props.notifier.onError);
|
|
9
9
|
let [state, setState] = useState({ product: null });
|
|
10
10
|
useEffect(() => {
|
|
@@ -19,11 +19,11 @@ export function NSAHomePage(props) {
|
|
|
19
19
|
let logo = (_h = (_g = (_f = props.custom) === null || _f === void 0 ? void 0 : _f.logo) !== null && _g !== void 0 ? _g : state.product.logo) !== null && _h !== void 0 ? _h : "";
|
|
20
20
|
let description = (_l = (_k = (_j = props.custom) === null || _j === void 0 ? void 0 : _j.description) !== null && _k !== void 0 ? _k : state.product.description) !== null && _l !== void 0 ? _l : "";
|
|
21
21
|
return (_jsxs("div", { className: Styles.nsa_home_container, children: [props.show_image &&
|
|
22
|
-
_jsx("img", { src: logo, alt: state.product.name, width: 256, height: 256 }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsx("h2", { children: headline }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsx("p", { children: description }), ((
|
|
22
|
+
_jsx("img", { src: logo, alt: state.product.name, width: 256, height: 256 }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), (_o = (_m = props.getChildren) === null || _m === void 0 ? void 0 : _m.getChildrenBeforeTitle) === null || _o === void 0 ? void 0 : _o.call(_m), _jsx("h2", { children: headline }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsx("p", { children: description }), (_q = (_p = props.getChildren) === null || _p === void 0 ? void 0 : _p.getChildrenAfterTitle) === null || _q === void 0 ? void 0 : _q.call(_p), ((_r = props.product) === null || _r === void 0 ? void 0 : _r.search) &&
|
|
23
23
|
_jsxs(_Fragment, { children: [_jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx(NSBoxSearch, { title: "", required: false, hideHeader: true, placeholder: "Search products . . .", classList: [Styles.nsa_home_search_wrapper], style: { width: NSBox.width.double }, input: { classList: [Styles.nsa_home_search_box] }, onChanged: (box) => {
|
|
24
24
|
new SetTimeouService().setTimeoutIfNotCalledAgain(() => {
|
|
25
25
|
setState((prev) => { var _a; return (Object.assign(Object.assign({}, prev), { search_text: (_a = box.getValue()) !== null && _a !== void 0 ? _a : "" })); });
|
|
26
26
|
}, 1500);
|
|
27
|
-
} })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), props.
|
|
27
|
+
} })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), (_t = (_s = props.getChildren) === null || _s === void 0 ? void 0 : _s.getChildrenBeforeMenuList) === null || _t === void 0 ? void 0 : _t.call(_s), _jsx(NSListMenu, { scope: scope, name: "Header", isLoggedIn: () => props.account.token_manager.exists(), onError: props.notifier.onError }), (_v = (_u = props.getChildren) === null || _u === void 0 ? void 0 : _u.getChildrenAfterMenuList) === null || _v === void 0 ? void 0 : _v.call(_u), _jsx(NSSpace, { size: NSSpaceSizeType.NORMAL }), _jsx(NSLine, {}), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsx(NSTitle, { title: "Related Products", style: { marginBottom: 32, fontSize: 32 } }), _jsx(NSListProduct, { scope: scope, name: "Home", search: state.search_text, getChildrenBefore: (_w = props.product) === null || _w === void 0 ? void 0 : _w.getChildrenBefore, getChildrenAfter: (_x = props.product) === null || _x === void 0 ? void 0 : _x.getChildrenAfter })] }));
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=NSAHomePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSAHomePage.js","sourceRoot":"","sources":["../../src/pages/NSAHomePage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAuB,KAAK,EAAE,WAAW,EAAE,aAAa,EAA0B,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSAHomePage.js","sourceRoot":"","sources":["../../src/pages/NSAHomePage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAuB,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAA0B,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE9M,OAAO,MAAM,MAAM,0BAA0B,CAAC;AA8B9C,MAAM,UAAU,WAAW,CAAC,KAAuB;;IAE/C,IAAI,KAAK,GAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9E,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAmB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtE,SAAS,CAAC,GAAG,EAAE;QAEX,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;YAEvB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;IAEP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,KAAK,CAAC,OAAO;QACd,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IACV,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,KAAK,CAAC,WAAW,EACzB,iBAAiB,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,iBAAiB,EACnD,gBAAgB,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,gBAAgB,GACnD,IACA,CACT,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.
|
|
11
|
+
"version": "1.5.1",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
"@types/react": "^18.3.13",
|
|
27
27
|
"@types/react-helmet": "^6.1.11",
|
|
28
28
|
"bootstrap": "^5.3.8",
|
|
29
|
-
"namirasoft-access": "^1.
|
|
30
|
-
"namirasoft-account": "^1.
|
|
31
|
-
"namirasoft-account-client": "^1.
|
|
32
|
-
"namirasoft-api-link": "^1.
|
|
33
|
-
"namirasoft-api-product": "^1.
|
|
34
|
-
"namirasoft-core": "^1.
|
|
35
|
-
"namirasoft-field": "^1.
|
|
36
|
-
"namirasoft-history": "^1.
|
|
37
|
-
"namirasoft-message": "^1.
|
|
38
|
-
"namirasoft-payment": "^1.
|
|
39
|
-
"namirasoft-schema": "^1.
|
|
40
|
-
"namirasoft-secret": "^1.
|
|
41
|
-
"namirasoft-site-map": "^1.
|
|
42
|
-
"namirasoft-site-react": "^1.
|
|
43
|
-
"namirasoft-workspace": "^1.
|
|
29
|
+
"namirasoft-access": "^1.5.1",
|
|
30
|
+
"namirasoft-account": "^1.5.0",
|
|
31
|
+
"namirasoft-account-client": "^1.5.0",
|
|
32
|
+
"namirasoft-api-link": "^1.5.0",
|
|
33
|
+
"namirasoft-api-product": "^1.5.0",
|
|
34
|
+
"namirasoft-core": "^1.5.1",
|
|
35
|
+
"namirasoft-field": "^1.5.0",
|
|
36
|
+
"namirasoft-history": "^1.5.0",
|
|
37
|
+
"namirasoft-message": "^1.5.0",
|
|
38
|
+
"namirasoft-payment": "^1.5.0",
|
|
39
|
+
"namirasoft-schema": "^1.5.0",
|
|
40
|
+
"namirasoft-secret": "^1.5.1",
|
|
41
|
+
"namirasoft-site-map": "^1.5.0",
|
|
42
|
+
"namirasoft-site-react": "^1.5.3",
|
|
43
|
+
"namirasoft-workspace": "^1.5.0",
|
|
44
44
|
"os-browserify": "^0.3.0",
|
|
45
45
|
"path-browserify": "^1.0.1",
|
|
46
46
|
"query-string": "^9.4.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react-helmet": "^6.1.0",
|
|
52
52
|
"react-router-dom": "7.9.1",
|
|
53
53
|
"react-scripts": "5.0.1",
|
|
54
|
-
"webpack": "^5.108.
|
|
54
|
+
"webpack": "^5.108.3"
|
|
55
55
|
},
|
|
56
56
|
"eslintConfig": {
|
|
57
57
|
"extends": [
|
package/src/NSARouterMaker.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NamirasoftAccountServer, TokenManager } from "namirasoft-account";
|
|
2
2
|
import { EncodingOperation, EnvService, IStorage, IStorageCookie, ObjectService, ParsedNameValue, URLOperation } from "namirasoft-core";
|
|
3
|
-
import { NSRouterMaker, NSRouterMakerProps } from 'namirasoft-site-react';
|
|
3
|
+
import { KeyOperation, LinkOperation, NSRouterMaker, NSRouterMakerProps } from 'namirasoft-site-react';
|
|
4
4
|
import queryString, { ParsedQuery } from 'query-string';
|
|
5
5
|
import type { NavigateFunction } from 'react-router-dom';
|
|
6
6
|
import { NSARouterMakerConfig } from "./NSARouterMakerConfig";
|
|
@@ -23,6 +23,8 @@ export class NSARouterMaker
|
|
|
23
23
|
this.setState = setState;
|
|
24
24
|
this.config = config;
|
|
25
25
|
this.navigate = navigate;
|
|
26
|
+
LinkOperation.setNavigate(navigate);
|
|
27
|
+
KeyOperation.start();
|
|
26
28
|
this.getProps = this.getProps.bind(this);
|
|
27
29
|
this.getQueryStrings = this.getQueryStrings.bind(this);
|
|
28
30
|
this.getQuery = this.getQuery.bind(this);
|
|
@@ -93,7 +95,7 @@ export class NSARouterMaker
|
|
|
93
95
|
redirect(sub: string, customQuery: { [name: string]: ParsedNameValue }): void
|
|
94
96
|
{
|
|
95
97
|
let ans = this.getLink(sub, customQuery);
|
|
96
|
-
|
|
98
|
+
LinkOperation.open(ans);
|
|
97
99
|
}
|
|
98
100
|
onRender(): React.JSX.Element
|
|
99
101
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { Component, createRef } from 'react';
|
|
2
|
-
import { EnvService } from 'namirasoft-core'
|
|
3
1
|
import { NamirasoftAccessServer, PermissionRow } from 'namirasoft-access';
|
|
4
|
-
import {
|
|
2
|
+
import { EnvService } from 'namirasoft-core';
|
|
3
|
+
import { NSCopy, NSDialog, NSDialogProps, NSLine, NSLoading, NSSpace, NSSpaceSizeType } from 'namirasoft-site-react';
|
|
4
|
+
import React, { Component, createRef } from 'react';
|
|
5
5
|
import { NSARouterMakerProps } from '../NSARouterMakerProps';
|
|
6
6
|
import Styles from './NSAAccessListDialog.module.css';
|
|
7
7
|
|
|
@@ -32,7 +32,7 @@ export class NSAAccessListDialog extends Component<NSAAccessListDialogProps, NSA
|
|
|
32
32
|
document.addEventListener('mousedown', this.handleClickOutside);
|
|
33
33
|
let REACT_APP_BASE_URL_ACCESS = new EnvService("REACT_APP_BASE_URL_ACCESS", true).getString();
|
|
34
34
|
let server = new NamirasoftAccessServer(REACT_APP_BASE_URL_ACCESS, this.props.account.token_manager, this.props.notifier.onError);
|
|
35
|
-
server.permission.ListIncoming([], null, null, []).then(res =>
|
|
35
|
+
server.permission.ListIncoming([], null, null, [], null).then(res =>
|
|
36
36
|
{
|
|
37
37
|
this.setState({ permissions: res.rows, current_id: res.current_id });
|
|
38
38
|
}).catch(() => { });
|
|
@@ -32,7 +32,7 @@ export class NSAMessageListDialog extends Component<NSAMessageListDialogProps, N
|
|
|
32
32
|
let server = new NamirasoftMessageServer(REACT_APP_BASE_URL_MESSAGE, this.props.account.token_manager, this.props.notifier.onError);
|
|
33
33
|
let filters = [new FilterItem(meta.tables.message, meta.tables.message.columns.seen_at, false, FilterItemOperator.all.empty)];
|
|
34
34
|
let sorts = [new SortItem(meta.tables.message, meta.tables.message.columns.created_at, false)];
|
|
35
|
-
server.message.List(filters, 1, 4, sorts).then(res =>
|
|
35
|
+
server.message.List(filters, 1, 4, sorts, null).then(res =>
|
|
36
36
|
{
|
|
37
37
|
this.setState({ messages: res.rows });
|
|
38
38
|
}).catch(() => { });
|
|
@@ -57,7 +57,7 @@ export class NSAMessageListDialog extends Component<NSAMessageListDialogProps, N
|
|
|
57
57
|
onClick={{
|
|
58
58
|
action: () =>
|
|
59
59
|
{
|
|
60
|
-
|
|
60
|
+
LinkOperation.open(REACT_APP_BASE_URL_MESSAGE_CONSOLE + "/message/list");
|
|
61
61
|
},
|
|
62
62
|
showLoading: false
|
|
63
63
|
}}
|
|
@@ -86,8 +86,8 @@ export class NSAMessageListDialog extends Component<NSAMessageListDialogProps, N
|
|
|
86
86
|
onClick={() =>
|
|
87
87
|
{
|
|
88
88
|
this.props.onMessageClick();
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
let link = REACT_APP_BASE_URL_MESSAGE_CONSOLE + "/message/" + message.id + "/view";
|
|
90
|
+
LinkOperation.open(link);
|
|
91
91
|
this.props.onClose();
|
|
92
92
|
}}
|
|
93
93
|
>
|