namirasoft-site-react 1.4.525 → 1.4.528
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/App.d.ts +2 -2
- package/dist/App.js +4 -4
- package/dist/App.js.map +1 -1
- package/dist/components/NSLoading.js +2 -1
- package/dist/components/NSLoading.js.map +1 -1
- package/dist/components/NSLoading.module.css +0 -28
- package/dist/components/NSProgressBar.js +1 -0
- package/dist/components/NSProgressBar.js.map +1 -1
- package/package.json +7 -30
- package/src/App.tsx +4 -4
- package/src/components/NSLoading.module.css +0 -28
- package/src/components/NSLoading.tsx +7 -1
- package/src/components/NSProgressBar.tsx +1 -0
- package/src/css.d.ts +14 -0
- package/tsconfig.json +1 -1
package/dist/App.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { NSBoxSensitive } from './main';
|
|
3
1
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
2
|
+
import { Component } from 'react';
|
|
4
3
|
import './App.css';
|
|
4
|
+
import { NSBoxSensitive } from './main';
|
|
5
5
|
interface AppProps {
|
|
6
6
|
}
|
|
7
7
|
interface AppState {
|
package/dist/App.js
CHANGED
|
@@ -8,13 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { Component, createRef } from 'react';
|
|
12
|
-
import { NSLayout } from './components/NSLayout';
|
|
13
|
-
import { EmailFormatter, EncryptionOperation, IDFormatter, IntegerFormatter, NSColumn, NSTable, PhoneFormatter, SensitiveFormatter, StringFormatter, StringFormatterSizeType } from './main';
|
|
14
11
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
15
|
-
import './App.css';
|
|
16
12
|
import { EncodingOperation, IStorageLocal } from 'namirasoft-core';
|
|
17
13
|
import { NamirasoftMap } from 'namirasoft-site-map';
|
|
14
|
+
import { Component, createRef } from 'react';
|
|
15
|
+
import './App.css';
|
|
16
|
+
import { NSLayout } from './components/NSLayout';
|
|
17
|
+
import { EmailFormatter, EncryptionOperation, IDFormatter, IntegerFormatter, NSColumn, NSTable, PhoneFormatter, SensitiveFormatter, StringFormatter, StringFormatterSizeType } from './main';
|
|
18
18
|
export class App extends Component {
|
|
19
19
|
constructor(props) {
|
|
20
20
|
super(props);
|
package/dist/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,WAAW,CAAC;AACnB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,WAAW,EAAE,gBAAgB,EAAkB,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,uBAAuB,EAAgB,MAAM,QAAQ,CAAC;AAiB3N,MAAM,OAAO,GAAI,SAAQ,SAA6B;IAIlD,YAAY,KAAe;QAEvB,KAAK,CAAC,KAAK,CAAC,CAAC;QAJjB,QAAG,GAAG,SAAS,EAAkB,CAAC;QAK9B,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;IAEQ,MAAM;QAEX,IAAI,UAAU,GAAG,IAAI,aAAa,EAAE,CAAC;QAErC,mBAAmB,CAAC,gBAAgB,CAA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
3
3
|
export function NSLoading(props) {
|
|
4
4
|
var _a, _b, _c, _d, _e, _f;
|
|
5
|
+
let size = props.small ? 32 : 96;
|
|
5
6
|
let content = _jsxs(_Fragment, { children: [!((_a = props.hideTitle) !== null && _a !== void 0 ? _a : false) &&
|
|
6
|
-
_jsx("h5", { children: (_b = props.title) !== null && _b !== void 0 ? _b : "Loading" }), _jsx("
|
|
7
|
+
_jsx("h5", { children: (_b = props.title) !== null && _b !== void 0 ? _b : "Loading" }), _jsx("video", { style: { backgroundColor: "transparent", pointerEvents: "none" }, width: size, height: size, loop: true, muted: true, playsInline: true, autoPlay: true, children: _jsx("source", { src: "https://static.namirasoft.com/image/namirasoft/expert/entity/loading/96.webm", type: "video/webm" }) }), !((_c = props.hideDescription) !== null && _c !== void 0 ? _c : false) &&
|
|
7
8
|
_jsx("p", { children: (_d = props.description) !== null && _d !== void 0 ? _d : "Please wait ..." })] });
|
|
8
9
|
if (props.hideContainer)
|
|
9
10
|
return content;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLoading.js","sourceRoot":"","sources":["../../src/components/NSLoading.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAY5C,MAAM,UAAU,SAAS,CAAC,KAAqB;;IAE9C,IAAI,OAAO,GAAG,8BAEZ,CAAC,CAAC,MAAA,KAAK,CAAC,SAAS,mCAAI,KAAK,CAAC;gBAC3B,uBAAK,MAAA,KAAK,CAAC,KAAK,mCAAI,SAAS,GAAM,EAEpC,
|
|
1
|
+
{"version":3,"file":"NSLoading.js","sourceRoot":"","sources":["../../src/components/NSLoading.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAY5C,MAAM,UAAU,SAAS,CAAC,KAAqB;;IAE9C,IAAI,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjC,IAAI,OAAO,GAAG,8BAEZ,CAAC,CAAC,MAAA,KAAK,CAAC,SAAS,mCAAI,KAAK,CAAC;gBAC3B,uBAAK,MAAA,KAAK,CAAC,KAAK,mCAAI,SAAS,GAAM,EAEpC,gBACC,KAAK,EAAE,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAC3F,IAAI,QAAC,KAAK,QAAC,WAAW,QAAC,QAAQ,kBAE/B,iBAAQ,GAAG,EAAC,8EAA8E,EAAC,IAAI,EAAC,YAAY,GAAG,GACxG,EAEP,CAAC,CAAC,MAAA,KAAK,CAAC,eAAe,mCAAI,KAAK,CAAC;gBACjC,sBAAI,MAAA,KAAK,CAAC,WAAW,mCAAI,iBAAiB,GAAK,IAE9C,CAAC;IACJ,IAAI,KAAK,CAAC,aAAa;QACtB,OAAO,OAAO,CAAC;IAChB,OAAO,CACN,cACC,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,iBAAiB,IAAI,MAAA,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EAAE,GAAG,EAC7E,KAAK,EAAE,KAAK,CAAC,KAAK,YAEjB,OAAO,GACH,CACN,CAAC;AACH,CAAC"}
|
|
@@ -8,32 +8,4 @@
|
|
|
8
8
|
padding: 48px 0;
|
|
9
9
|
color: rgba(20, 27, 92, 1);
|
|
10
10
|
gap: 16px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ns_loader {
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
padding: 1px;
|
|
16
|
-
background: conic-gradient(#0000 10%, #001664) content-box;
|
|
17
|
-
-webkit-mask:
|
|
18
|
-
repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
|
|
19
|
-
radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
|
|
20
|
-
-webkit-mask-composite: destination-in;
|
|
21
|
-
animation: s4 1s infinite steps(10);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ns_loader_big {
|
|
25
|
-
margin: 16px 0;
|
|
26
|
-
width: 75px;
|
|
27
|
-
height: 75px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ns_loader_small {
|
|
31
|
-
width: 25px;
|
|
32
|
-
height: 25px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@keyframes s4 {
|
|
36
|
-
to {
|
|
37
|
-
transform: rotate(1turn)
|
|
38
|
-
}
|
|
39
11
|
}
|
|
@@ -4,6 +4,7 @@ import Styles from "./NSProgressBar.module.css";
|
|
|
4
4
|
class NSProgressBar extends Component {
|
|
5
5
|
render() {
|
|
6
6
|
let progress = Math.max(0, Math.min(this.props.progress, 100));
|
|
7
|
+
progress = Math.round(progress * 100) / 100;
|
|
7
8
|
return (_jsxs("div", { className: `${Styles.ns_progress_bar_wrapper} ${this.props.classList}`, children: [_jsx("span", { className: Styles.ns_progress_bar_title, children: this.props.title }), _jsxs("div", { className: Styles.ns_progress_bar, style: this.props.style, children: [_jsx("div", { className: Styles.ns_progress, style: { width: this.props.progress + "%" } }), _jsxs("div", { className: Styles.ns_progress_percent, children: [progress, "%"] })] })] }));
|
|
8
9
|
}
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSProgressBar.js","sourceRoot":"","sources":["../../src/components/NSProgressBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAQhD,MAAM,aAAc,SAAQ,SAA6B;IAE5C,MAAM;QAEX,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"NSProgressBar.js","sourceRoot":"","sources":["../../src/components/NSProgressBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAQhD,MAAM,aAAc,SAAQ,SAA6B;IAE5C,MAAM;QAEX,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC;QAC/D,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;QAE5C,OAAO,CACH,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,uBAAuB,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,aACvE,eAAM,SAAS,EAAE,MAAM,CAAC,qBAAqB,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EACxE,eAAK,SAAS,EAAE,MAAM,CAAC,eAAe,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,aAC3D,cAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,EAAE,GAAQ,EACvF,eAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,aAAG,QAAQ,SAAQ,IAC3D,IACJ,CACT,CAAA;IACL,CAAC;CACJ;AAED,eAAe,aAAa,CAAC"}
|
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.528",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -21,23 +21,21 @@
|
|
|
21
21
|
"copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ant-design/charts": "^2.6.7",
|
|
25
24
|
"@ant-design/icons": "^6.1.1",
|
|
26
25
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
27
26
|
"@babel/plugin-transform-private-property-in-object": "^7.28.6",
|
|
28
|
-
"@types/node": "^25.
|
|
27
|
+
"@types/node": "^25.6.0",
|
|
29
28
|
"@types/react": "^18.3.12",
|
|
30
29
|
"@types/react-bootstrap": "^1.1.0",
|
|
31
30
|
"@types/react-dom": "^18.3.1",
|
|
32
31
|
"@types/react-gtm-module": "^2.0.4",
|
|
33
|
-
"@uiw/react-json-view": "^2.0.0-alpha.
|
|
34
|
-
"antd": "^6.3.
|
|
32
|
+
"@uiw/react-json-view": "^2.0.0-alpha.42",
|
|
33
|
+
"antd": "^6.3.6",
|
|
35
34
|
"async-mutex": "^0.5.0",
|
|
36
|
-
"axios": "^1.
|
|
35
|
+
"axios": "^1.15.1",
|
|
37
36
|
"bootstrap": "^5.3.8",
|
|
38
37
|
"chart.js": "^4.5.1",
|
|
39
38
|
"copyfiles": "^2.4.1",
|
|
40
|
-
"link-react": "^3.0.0",
|
|
41
39
|
"namirasoft-api-link": "^1.4.22",
|
|
42
40
|
"namirasoft-api-product": "^1.4.52",
|
|
43
41
|
"namirasoft-core": "^1.4.114",
|
|
@@ -46,6 +44,7 @@
|
|
|
46
44
|
"namirasoft-site-map": "^1.4.46",
|
|
47
45
|
"os-browserify": "^0.3.0",
|
|
48
46
|
"path-browserify": "^1.0.1",
|
|
47
|
+
"process": "^0.11.10",
|
|
49
48
|
"react": "^18.3.1",
|
|
50
49
|
"react-app-rewired": "^2.2.1",
|
|
51
50
|
"react-bootstrap": "^2.10.10",
|
|
@@ -56,8 +55,7 @@
|
|
|
56
55
|
"react-phone-input-2": "^2.15.1",
|
|
57
56
|
"react-router-dom": "7.9.1",
|
|
58
57
|
"react-scripts": "^5.0.1",
|
|
59
|
-
"
|
|
60
|
-
"webpack": "^5.105.4",
|
|
58
|
+
"webpack": "^5.106.2",
|
|
61
59
|
"xlsx": "^0.18.5"
|
|
62
60
|
},
|
|
63
61
|
"eslintConfig": {
|
|
@@ -82,27 +80,6 @@
|
|
|
82
80
|
"skip": {
|
|
83
81
|
"download": {
|
|
84
82
|
"tsconfig": true
|
|
85
|
-
},
|
|
86
|
-
"content": {
|
|
87
|
-
"dependencies": {
|
|
88
|
-
"unused": {
|
|
89
|
-
"list": [
|
|
90
|
-
"@ant-design/charts",
|
|
91
|
-
"@babel/plugin-proposal-private-property-in-object",
|
|
92
|
-
"@babel/plugin-transform-private-property-in-object",
|
|
93
|
-
"bootstrap",
|
|
94
|
-
"copyfiles",
|
|
95
|
-
"link-react",
|
|
96
|
-
"os-browserify",
|
|
97
|
-
"path-browserify",
|
|
98
|
-
"react-app-rewired",
|
|
99
|
-
"react-gtm-module",
|
|
100
|
-
"react-router-dom",
|
|
101
|
-
"react-scripts",
|
|
102
|
-
"styled-components"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
83
|
}
|
|
107
84
|
}
|
|
108
85
|
}
|
package/src/App.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Component, createRef } from 'react';
|
|
2
|
-
import { NSLayout } from './components/NSLayout';
|
|
3
|
-
import { EmailFormatter, EncryptionOperation, IDFormatter, IntegerFormatter, NSBoxSensitive, NSColumn, NSTable, PhoneFormatter, SensitiveFormatter, StringFormatter, StringFormatterSizeType, TableRowInfo } from './main';
|
|
4
1
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
5
|
-
import './App.css';
|
|
6
2
|
import { EncodingOperation, IStorageLocal } from 'namirasoft-core';
|
|
7
3
|
import { NamirasoftMap } from 'namirasoft-site-map';
|
|
4
|
+
import { Component, createRef } from 'react';
|
|
5
|
+
import './App.css';
|
|
6
|
+
import { NSLayout } from './components/NSLayout';
|
|
7
|
+
import { EmailFormatter, EncryptionOperation, IDFormatter, IntegerFormatter, NSBoxSensitive, NSColumn, NSTable, PhoneFormatter, SensitiveFormatter, StringFormatter, StringFormatterSizeType, TableRowInfo } from './main';
|
|
8
8
|
|
|
9
9
|
interface AppProps { }
|
|
10
10
|
interface AppState { }
|
|
@@ -8,32 +8,4 @@
|
|
|
8
8
|
padding: 48px 0;
|
|
9
9
|
color: rgba(20, 27, 92, 1);
|
|
10
10
|
gap: 16px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ns_loader {
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
padding: 1px;
|
|
16
|
-
background: conic-gradient(#0000 10%, #001664) content-box;
|
|
17
|
-
-webkit-mask:
|
|
18
|
-
repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
|
|
19
|
-
radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
|
|
20
|
-
-webkit-mask-composite: destination-in;
|
|
21
|
-
animation: s4 1s infinite steps(10);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ns_loader_big {
|
|
25
|
-
margin: 16px 0;
|
|
26
|
-
width: 75px;
|
|
27
|
-
height: 75px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ns_loader_small {
|
|
31
|
-
width: 25px;
|
|
32
|
-
height: 25px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@keyframes s4 {
|
|
36
|
-
to {
|
|
37
|
-
transform: rotate(1turn)
|
|
38
|
-
}
|
|
39
11
|
}
|
|
@@ -13,12 +13,18 @@ export interface NSLoadingProps extends IBaseComponentProps
|
|
|
13
13
|
|
|
14
14
|
export function NSLoading(props: NSLoadingProps)
|
|
15
15
|
{
|
|
16
|
+
let size = props.small ? 32 : 96;
|
|
16
17
|
let content = <>
|
|
17
18
|
{
|
|
18
19
|
!(props.hideTitle ?? false) &&
|
|
19
20
|
<h5>{props.title ?? "Loading"}</h5>
|
|
20
21
|
}
|
|
21
|
-
<
|
|
22
|
+
<video
|
|
23
|
+
style={{ backgroundColor: "transparent", pointerEvents: "none" }} width={size} height={size}
|
|
24
|
+
loop muted playsInline autoPlay
|
|
25
|
+
>
|
|
26
|
+
<source src="https://static.namirasoft.com/image/namirasoft/expert/entity/loading/96.webm" type="video/webm" />
|
|
27
|
+
</video>
|
|
22
28
|
{
|
|
23
29
|
!(props.hideDescription ?? false) &&
|
|
24
30
|
<p>{props.description ?? "Please wait ..."}</p>
|
|
@@ -13,6 +13,7 @@ class NSProgressBar extends Component<NSProgressBarProps>
|
|
|
13
13
|
override render()
|
|
14
14
|
{
|
|
15
15
|
let progress = Math.max(0, Math.min(this.props.progress, 100));
|
|
16
|
+
progress = Math.round(progress * 100) / 100;
|
|
16
17
|
|
|
17
18
|
return (
|
|
18
19
|
<div className={`${Styles.ns_progress_bar_wrapper} ${this.props.classList}`}>
|
package/src/css.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
let css_d = "";
|
|
2
|
+
|
|
3
|
+
declare module "*.module.css" {
|
|
4
|
+
const classes: { readonly [key: string]: string };
|
|
5
|
+
export default classes;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare module "*.module.scss" {
|
|
9
|
+
const classes: { readonly [key: string]: string };
|
|
10
|
+
export default classes;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare module "*.css";
|
|
14
|
+
declare module "*.scss";
|