namirasoft-site-react 1.4.307 → 1.4.310
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/NSID.d.ts +3 -4
- package/dist/components/NSID.js +12 -16
- package/dist/components/NSID.js.map +1 -1
- package/dist/formatter/IDFormatter.d.ts +3 -3
- package/dist/formatter/IDFormatter.js +2 -2
- package/dist/formatter/IDFormatter.js.map +1 -1
- package/package.json +3 -3
- package/src/NSBoxBuilder.tsx +1 -1
- package/src/components/NSID.tsx +9 -18
- package/src/formatter/IDFormatter.tsx +5 -5
- package/dist/components/NSID.module.css +0 -18
- package/src/components/NSID.module.css +0 -18
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IBaseComponentProps } from '../main';
|
|
3
3
|
import { IStorage } from 'namirasoft-core';
|
|
4
|
-
import {
|
|
4
|
+
import { NamirasoftMap } from 'namirasoft-site-map';
|
|
5
5
|
export interface NSIDProps extends IBaseComponentProps {
|
|
6
6
|
id: string;
|
|
7
|
-
globe:
|
|
7
|
+
globe: NamirasoftMap | null;
|
|
8
8
|
storage: IStorage | null;
|
|
9
9
|
}
|
|
10
10
|
export interface NSIDState {
|
|
11
|
-
tried: boolean;
|
|
12
11
|
text?: string;
|
|
13
12
|
}
|
|
14
13
|
export declare class NSID extends React.Component<NSIDProps, NSIDState> {
|
|
15
14
|
private static mutex;
|
|
16
15
|
private static mutexes;
|
|
17
|
-
private
|
|
16
|
+
private namriasoft;
|
|
18
17
|
private info;
|
|
19
18
|
constructor(props: NSIDProps);
|
|
20
19
|
componentDidMount(): void;
|
package/dist/components/NSID.js
CHANGED
|
@@ -7,21 +7,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { jsx as _jsx
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { BaseURLImageFormatter, NSCopy } from '../main';
|
|
13
13
|
import { BaseUUID, CacheService } from 'namirasoft-core';
|
|
14
|
-
import {
|
|
15
|
-
import Styles from './NSID.module.css';
|
|
14
|
+
import { NamirasoftMap } from 'namirasoft-site-map';
|
|
16
15
|
import { Mutex } from 'async-mutex';
|
|
17
16
|
export class NSID extends React.Component {
|
|
18
17
|
constructor(props) {
|
|
19
18
|
var _a;
|
|
20
19
|
super(props);
|
|
21
|
-
this.state = {
|
|
20
|
+
this.state = {};
|
|
22
21
|
let short = BaseUUID.getShort(this.props.id);
|
|
23
|
-
this.
|
|
24
|
-
this.info = this.
|
|
22
|
+
this.namriasoft = (_a = this.props.globe) !== null && _a !== void 0 ? _a : new NamirasoftMap();
|
|
23
|
+
this.info = this.namriasoft.getByShortName(short);
|
|
25
24
|
}
|
|
26
25
|
componentDidMount() {
|
|
27
26
|
this.reload();
|
|
@@ -30,7 +29,7 @@ export class NSID extends React.Component {
|
|
|
30
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
30
|
let cache = null;
|
|
32
31
|
if (this.props.storage) {
|
|
33
|
-
cache = new CacheService(this.info.product.id + ":" + this.info.table.name + ":" + this.props.id, this.props.storage,
|
|
32
|
+
cache = new CacheService(this.info.product.id + ":" + this.info.table.name + ":" + this.props.id, this.props.storage, 60, () => __awaiter(this, void 0, void 0, function* () { return "0.0.0"; }), () => __awaiter(this, void 0, void 0, function* () {
|
|
34
33
|
var _a, _b;
|
|
35
34
|
if (this.info.table.back_end.get) {
|
|
36
35
|
try {
|
|
@@ -59,10 +58,8 @@ export class NSID extends React.Component {
|
|
|
59
58
|
}
|
|
60
59
|
if (cache)
|
|
61
60
|
cache.get().then(text => {
|
|
62
|
-
this.setState({
|
|
61
|
+
this.setState({ text });
|
|
63
62
|
});
|
|
64
|
-
else
|
|
65
|
-
this.setState({ tried: true });
|
|
66
63
|
});
|
|
67
64
|
}
|
|
68
65
|
render() {
|
|
@@ -70,12 +67,11 @@ export class NSID extends React.Component {
|
|
|
70
67
|
if (!text)
|
|
71
68
|
text = this.props.id;
|
|
72
69
|
let formatter = new BaseURLImageFormatter();
|
|
73
|
-
return (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
})] }));
|
|
70
|
+
return (_jsx(NSCopy, { value: this.props.id, children: formatter.format({
|
|
71
|
+
text,
|
|
72
|
+
href: this.info.table.front_end.getViewLink(this.props.id + ""),
|
|
73
|
+
image: { url: this.info.product.logo, alt: this.info.product.logo }
|
|
74
|
+
}) }));
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
NSID.mutex = new Mutex();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSID.js","sourceRoot":"","sources":["../../src/components/NSID.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAuB,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAY,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NSID.js","sourceRoot":"","sources":["../../src/components/NSID.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAuB,MAAM,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAY,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAcpC,MAAM,OAAO,IAAK,SAAQ,KAAK,CAAC,SAA+B;IAgB9D,YAAY,KAAgB;;QAE3B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC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KAAK,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,IAAI;YACR,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAEtB,IAAI,SAAS,GAAG,IAAI,qBAAqB,EAAE,CAAC;QAC5C,OAAO,CACN,KAAC,MAAM,IACN,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,YAGnB,SAAS,CAAC,MAAM,CAAC;gBAChB,IAAI;gBACJ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;gBAC/D,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;aACnE,CAAC,GAEK,CACT,CAAC;IACH,CAAC;;AAzFc,UAAK,GAAU,IAAI,KAAK,EAAE,CAAC;AAC3B,YAAO,GAAoC,EAAE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IStorage } from "namirasoft-core";
|
|
2
2
|
import { BaseColumnFormatter } from "./BaseColumnFormatter";
|
|
3
3
|
import { TableColumnInfo, TableRowInfo } from "../components/NSTable";
|
|
4
|
-
import {
|
|
4
|
+
import { NamirasoftMap } from "namirasoft-site-map";
|
|
5
5
|
export declare class IDFormatter extends BaseColumnFormatter {
|
|
6
|
-
private
|
|
6
|
+
private namirasoft;
|
|
7
7
|
private storage;
|
|
8
|
-
constructor(globe:
|
|
8
|
+
constructor(globe: NamirasoftMap | null, storage: IStorage | null, width?: string);
|
|
9
9
|
format(value: any, _: TableColumnInfo, __: TableRowInfo<any>, printable: boolean): any;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ import { NSID } from "../components/NSID";
|
|
|
4
4
|
export class IDFormatter extends BaseColumnFormatter {
|
|
5
5
|
constructor(globe, storage, width = "224px") {
|
|
6
6
|
super();
|
|
7
|
-
this.
|
|
7
|
+
this.namirasoft = globe;
|
|
8
8
|
this.storage = storage;
|
|
9
9
|
this.onclick_overrided = true;
|
|
10
10
|
this.width = width;
|
|
@@ -12,7 +12,7 @@ export class IDFormatter extends BaseColumnFormatter {
|
|
|
12
12
|
format(value, _, __, printable) {
|
|
13
13
|
try {
|
|
14
14
|
if (!printable)
|
|
15
|
-
return _jsx(NSID, { id: value, globe: this.
|
|
15
|
+
return _jsx(NSID, { id: value, globe: this.namirasoft, storage: this.storage });
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDFormatter.js","sourceRoot":"","sources":["../../src/formatter/IDFormatter.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,OAAO,WAAY,SAAQ,mBAAmB;IAKhD,YAAY,
|
|
1
|
+
{"version":3,"file":"IDFormatter.js","sourceRoot":"","sources":["../../src/formatter/IDFormatter.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,OAAO,WAAY,SAAQ,mBAAmB;IAKhD,YAAY,KAA2B,EAAE,OAAwB,EAAE,QAAgB,OAAO;QAEtF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IACQ,MAAM,CAAC,KAAU,EAAE,CAAkB,EAAE,EAAqB,EAAE,SAAkB;QAErF,IACA,CAAC;YACG,IAAI,CAAC,SAAS;gBACV,OAAO,KAAC,IAAI,IAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,GAAS,CAAC;QACvF,CAAC;QAAC,OAAO,KAAK,EACd,CAAC;QACD,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.310",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"link-react": "^3.0.0",
|
|
36
36
|
"namirasoft-api-link": "^1.4.13",
|
|
37
37
|
"namirasoft-api-product": "^1.4.19",
|
|
38
|
-
"namirasoft-core": "^1.4.
|
|
38
|
+
"namirasoft-core": "^1.4.55",
|
|
39
39
|
"namirasoft-schema": "^1.4.25",
|
|
40
40
|
"namirasoft-site": "^1.4.24",
|
|
41
|
-
"namirasoft-site-map": "^1.4.
|
|
41
|
+
"namirasoft-site-map": "^1.4.16",
|
|
42
42
|
"os-browserify": "^0.3.0",
|
|
43
43
|
"path-browserify": "^1.0.1",
|
|
44
44
|
"react": "^18.3.1",
|
package/src/NSBoxBuilder.tsx
CHANGED
|
@@ -760,7 +760,7 @@ export class NSBoxBuilder extends BaseTypeBuilder<React.JSX.Element | null>
|
|
|
760
760
|
|
|
761
761
|
getItems={async () =>
|
|
762
762
|
{
|
|
763
|
-
// let product =
|
|
763
|
+
// let product = NamirasoftMap.namirasoft.getByProductID(schema.product);
|
|
764
764
|
// product.meta.tables[schema.table];
|
|
765
765
|
// product.server.List;
|
|
766
766
|
// todo
|
package/src/components/NSID.tsx
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseURLImageFormatter, IBaseComponentProps, NSCopy } from '../main';
|
|
3
3
|
import { BaseUUID, CacheService, IStorage } from 'namirasoft-core';
|
|
4
|
-
import {
|
|
5
|
-
import Styles from './NSID.module.css';
|
|
4
|
+
import { NamirasoftMap } from 'namirasoft-site-map';
|
|
6
5
|
import { NSBaseMetaTable, NSBaseServer } from 'namirasoft-site';
|
|
7
6
|
import { Mutex } from 'async-mutex';
|
|
8
7
|
|
|
9
8
|
export interface NSIDProps extends IBaseComponentProps
|
|
10
9
|
{
|
|
11
10
|
id: string;
|
|
12
|
-
globe:
|
|
11
|
+
globe: NamirasoftMap | null;
|
|
13
12
|
storage: IStorage | null;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export interface NSIDState
|
|
17
16
|
{
|
|
18
|
-
tried: boolean;
|
|
19
17
|
text?: string;
|
|
20
18
|
}
|
|
21
19
|
|
|
@@ -23,7 +21,7 @@ export class NSID extends React.Component<NSIDProps, NSIDState>
|
|
|
23
21
|
{
|
|
24
22
|
private static mutex: Mutex = new Mutex();
|
|
25
23
|
private static mutexes: { [product_id: string]: Mutex } = {};
|
|
26
|
-
private
|
|
24
|
+
private namriasoft: NamirasoftMap;
|
|
27
25
|
private info: {
|
|
28
26
|
product: {
|
|
29
27
|
id: string;
|
|
@@ -38,10 +36,10 @@ export class NSID extends React.Component<NSIDProps, NSIDState>
|
|
|
38
36
|
constructor(props: NSIDProps)
|
|
39
37
|
{
|
|
40
38
|
super(props);
|
|
41
|
-
this.state = {
|
|
39
|
+
this.state = {};
|
|
42
40
|
let short = BaseUUID.getShort(this.props.id);
|
|
43
|
-
this.
|
|
44
|
-
this.info = this.
|
|
41
|
+
this.namriasoft = this.props.globe ?? new NamirasoftMap();
|
|
42
|
+
this.info = this.namriasoft.getByShortName(short);
|
|
45
43
|
}
|
|
46
44
|
override componentDidMount(): void
|
|
47
45
|
{
|
|
@@ -52,7 +50,7 @@ export class NSID extends React.Component<NSIDProps, NSIDState>
|
|
|
52
50
|
let cache = null;
|
|
53
51
|
if (this.props.storage)
|
|
54
52
|
{
|
|
55
|
-
cache = new CacheService<string>(this.info.product.id + ":" + this.info.table.name + ":" + this.props.id, this.props.storage,
|
|
53
|
+
cache = new CacheService<string>(this.info.product.id + ":" + this.info.table.name + ":" + this.props.id, this.props.storage, 60, async () => "0.0.0", async () =>
|
|
56
54
|
{
|
|
57
55
|
if (this.info.table.back_end.get)
|
|
58
56
|
{
|
|
@@ -86,10 +84,8 @@ export class NSID extends React.Component<NSIDProps, NSIDState>
|
|
|
86
84
|
if (cache)
|
|
87
85
|
cache.get().then(text =>
|
|
88
86
|
{
|
|
89
|
-
this.setState({
|
|
87
|
+
this.setState({ text });
|
|
90
88
|
});
|
|
91
|
-
else
|
|
92
|
-
this.setState({ tried: true });
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
override render()
|
|
@@ -103,11 +99,6 @@ export class NSID extends React.Component<NSIDProps, NSIDState>
|
|
|
103
99
|
<NSCopy
|
|
104
100
|
value={this.props.id}
|
|
105
101
|
>
|
|
106
|
-
{
|
|
107
|
-
!this.state.tried &&
|
|
108
|
-
<div className={Styles.ns_loader}>
|
|
109
|
-
</div>
|
|
110
|
-
}
|
|
111
102
|
{
|
|
112
103
|
formatter.format({
|
|
113
104
|
text,
|
|
@@ -118,4 +109,4 @@ export class NSID extends React.Component<NSIDProps, NSIDState>
|
|
|
118
109
|
</NSCopy>
|
|
119
110
|
);
|
|
120
111
|
}
|
|
121
|
-
}
|
|
112
|
+
}
|
|
@@ -2,17 +2,17 @@ import { IStorage } from "namirasoft-core";
|
|
|
2
2
|
import { BaseColumnFormatter } from "./BaseColumnFormatter";
|
|
3
3
|
import { TableColumnInfo, TableRowInfo } from "../components/NSTable";
|
|
4
4
|
import { NSID } from "../components/NSID";
|
|
5
|
-
import {
|
|
5
|
+
import { NamirasoftMap } from "namirasoft-site-map";
|
|
6
6
|
|
|
7
7
|
export class IDFormatter extends BaseColumnFormatter
|
|
8
8
|
{
|
|
9
|
-
private
|
|
9
|
+
private namirasoft: NamirasoftMap | null;
|
|
10
10
|
private storage: IStorage | null;
|
|
11
11
|
|
|
12
|
-
constructor(globe:
|
|
12
|
+
constructor(globe: NamirasoftMap | null, storage: IStorage | null, width: string = "224px")
|
|
13
13
|
{
|
|
14
14
|
super();
|
|
15
|
-
this.
|
|
15
|
+
this.namirasoft = globe;
|
|
16
16
|
this.storage = storage;
|
|
17
17
|
this.onclick_overrided = true;
|
|
18
18
|
this.width = width;
|
|
@@ -22,7 +22,7 @@ export class IDFormatter extends BaseColumnFormatter
|
|
|
22
22
|
try
|
|
23
23
|
{
|
|
24
24
|
if (!printable)
|
|
25
|
-
return <NSID id={value} globe={this.
|
|
25
|
+
return <NSID id={value} globe={this.namirasoft} storage={this.storage}></NSID>;
|
|
26
26
|
} catch (error)
|
|
27
27
|
{
|
|
28
28
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.ns_id_loader {
|
|
2
|
-
margin: 0;
|
|
3
|
-
width: 24px;
|
|
4
|
-
height: 24px;
|
|
5
|
-
border-radius: 50%;
|
|
6
|
-
background: conic-gradient(#0000 10%, #001664) content-box;
|
|
7
|
-
-webkit-mask:
|
|
8
|
-
repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
|
|
9
|
-
radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
|
|
10
|
-
-webkit-mask-composite: destination-in;
|
|
11
|
-
animation: rotate 1s infinite steps(10);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@keyframes rotate {
|
|
15
|
-
to {
|
|
16
|
-
transform: rotate(1turn)
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.ns_id_loader {
|
|
2
|
-
margin: 0;
|
|
3
|
-
width: 24px;
|
|
4
|
-
height: 24px;
|
|
5
|
-
border-radius: 50%;
|
|
6
|
-
background: conic-gradient(#0000 10%, #001664) content-box;
|
|
7
|
-
-webkit-mask:
|
|
8
|
-
repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
|
|
9
|
-
radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
|
|
10
|
-
-webkit-mask-composite: destination-in;
|
|
11
|
-
animation: rotate 1s infinite steps(10);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@keyframes rotate {
|
|
15
|
-
to {
|
|
16
|
-
transform: rotate(1turn)
|
|
17
|
-
}
|
|
18
|
-
}
|