namirasoft-site-react 1.4.60 → 1.4.62
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/NSActionMenu.module.css +1 -3
- package/dist/components/NSTabPage.d.ts +1 -0
- package/dist/components/NSTabPage.js +7 -1
- package/dist/components/NSTabPage.js.map +1 -1
- package/dist/components/NSTable.module.css +11 -9
- package/package.json +5 -5
- package/src/components/NSActionMenu.module.css +1 -3
- package/src/components/NSTabPage.tsx +8 -3
- package/src/components/NSTable.module.css +11 -9
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
.ns_action_menu_icon {
|
|
26
26
|
position: absolute;
|
|
27
|
-
right:
|
|
27
|
+
right: 5px;
|
|
28
28
|
top: 12px;
|
|
29
29
|
z-index: 1;
|
|
30
30
|
}
|
|
@@ -60,8 +60,6 @@
|
|
|
60
60
|
background-color: #141B5C66;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.ns_active_item {}
|
|
64
|
-
|
|
65
63
|
.ns_deActive_item {
|
|
66
64
|
color: #D1D1D1;
|
|
67
65
|
cursor: not-allowed;
|
|
@@ -14,5 +14,6 @@ export interface NSTabPageState {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class NSTabPage extends Component<NSTabPageProps, NSTabPageState> {
|
|
16
16
|
constructor(props: NSTabPageProps);
|
|
17
|
+
setClicked(indices: number[], callback: () => void): void;
|
|
17
18
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
}
|
|
@@ -10,8 +10,14 @@ export class NSTabPage extends Component {
|
|
|
10
10
|
isClicked: [true]
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
+
setClicked(indices, callback) {
|
|
14
|
+
let isClicked = this.state.isClicked;
|
|
15
|
+
for (let i = 0; i < indices.length; i++)
|
|
16
|
+
isClicked[indices[i]] = true;
|
|
17
|
+
this.setState({ isClicked }, callback);
|
|
18
|
+
}
|
|
13
19
|
render() {
|
|
14
|
-
return (_jsxs("div", { className:
|
|
20
|
+
return (_jsxs("div", { className: `${Styles.ns_tab_page_panel} ${this.props.classList}`, style: this.props.style, children: [_jsx("ul", { children: this.props.tabs.map((tab, index) => (_jsx("li", { className: this.state.activeTabIndex === index ? Styles.active : '', onClick: () => {
|
|
15
21
|
let isClicked = this.state.isClicked;
|
|
16
22
|
isClicked[index] = true;
|
|
17
23
|
this.setState({ activeTabIndex: index, isClicked });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSTabPage.js","sourceRoot":"","sources":["../../src/components/NSTabPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAoBlC,MAAM,OAAO,SAAU,SAAQ,SAAyC;IAEvE,YAAY,KAAqB;QAEhC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACZ,cAAc,EAAE,CAAC;YACjB,SAAS,EAAE,CAAC,IAAI,CAAC;SACjB,CAAC;IACH,CAAC;IACQ,MAAM;
|
|
1
|
+
{"version":3,"file":"NSTabPage.js","sourceRoot":"","sources":["../../src/components/NSTabPage.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAoBlC,MAAM,OAAO,SAAU,SAAQ,SAAyC;IAEvE,YAAY,KAAqB;QAEhC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACZ,cAAc,EAAE,CAAC;YACjB,SAAS,EAAE,CAAC,IAAI,CAAC;SACjB,CAAC;IACH,CAAC;IACD,UAAU,CAAC,OAAiB,EAAE,QAAoB;QAEjD,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;QACrC,KAAK,IA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AC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,YAGxE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,mBAAK,IALlD,KAAK,CAOL,CACN,CAAC,IAEE,CACN,CAAC;IACH,CAAC;CACD"}
|
|
@@ -158,15 +158,6 @@
|
|
|
158
158
|
justify-content: center;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.ns_button {
|
|
162
|
-
display: flex;
|
|
163
|
-
flex-direction: row;
|
|
164
|
-
flex-wrap: nowrap;
|
|
165
|
-
align-items: center;
|
|
166
|
-
gap: 24px;
|
|
167
|
-
width: 100%;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
161
|
.ns_check_box {
|
|
171
162
|
display: flex;
|
|
172
163
|
align-items: center;
|
|
@@ -191,6 +182,17 @@
|
|
|
191
182
|
width: 100%;
|
|
192
183
|
padding: 16px 0;
|
|
193
184
|
}
|
|
185
|
+
|
|
186
|
+
.ns_button {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: row;
|
|
189
|
+
flex-wrap: nowrap;
|
|
190
|
+
justify-content: flex-end;
|
|
191
|
+
align-items: center;
|
|
192
|
+
gap: 24px;
|
|
193
|
+
width: 100%;
|
|
194
|
+
}
|
|
195
|
+
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
.ns_table th {
|
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.62",
|
|
12
12
|
"author": "Amir Abolhasani, Alireza Esmaeeli",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ant-design/charts": "^2.2.3",
|
|
25
|
-
"@types/node": "^22.9.
|
|
25
|
+
"@types/node": "^22.9.3",
|
|
26
26
|
"@types/react": "^18.3.12",
|
|
27
27
|
"@types/react-bootstrap": "^0.32.37",
|
|
28
28
|
"@types/react-dom": "^18.3.1",
|
|
29
|
-
"antd": "^5.22.
|
|
29
|
+
"antd": "^5.22.2",
|
|
30
30
|
"bootstrap": "^5.3.3",
|
|
31
31
|
"chart.js": "^4.4.6",
|
|
32
32
|
"copyfiles": "^2.4.1",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"path-browserify": "^1.0.1",
|
|
38
38
|
"react": "^18.3.1",
|
|
39
39
|
"react-app-rewired": "^2.2.1",
|
|
40
|
-
"react-bootstrap": "^2.10.
|
|
40
|
+
"react-bootstrap": "^2.10.6",
|
|
41
41
|
"react-chartjs-2": "^5.2.0",
|
|
42
42
|
"react-dom": "^18.3.1",
|
|
43
43
|
"react-phone-input-2": "^2.15.1",
|
|
44
44
|
"react-phone-number-input": "^3.4.9",
|
|
45
|
-
"react-router-dom": "^
|
|
45
|
+
"react-router-dom": "^7.0.1",
|
|
46
46
|
"react-scripts": "5.0.1",
|
|
47
47
|
"styled-components": "^6.1.13",
|
|
48
48
|
"xlsx": "^0.18.5"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
.ns_action_menu_icon {
|
|
26
26
|
position: absolute;
|
|
27
|
-
right:
|
|
27
|
+
right: 5px;
|
|
28
28
|
top: 12px;
|
|
29
29
|
z-index: 1;
|
|
30
30
|
}
|
|
@@ -60,8 +60,6 @@
|
|
|
60
60
|
background-color: #141B5C66;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.ns_active_item {}
|
|
64
|
-
|
|
65
63
|
.ns_deActive_item {
|
|
66
64
|
color: #D1D1D1;
|
|
67
65
|
cursor: not-allowed;
|
|
@@ -31,11 +31,17 @@ export class NSTabPage extends Component<NSTabPageProps, NSTabPageState>
|
|
|
31
31
|
isClicked: [true]
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
setClicked(indices: number[], callback: () => void)
|
|
35
|
+
{
|
|
36
|
+
let isClicked = this.state.isClicked;
|
|
37
|
+
for (let i = 0; i < indices.length; i++)
|
|
38
|
+
isClicked[indices[i]] = true;
|
|
39
|
+
this.setState({ isClicked }, callback);
|
|
40
|
+
}
|
|
34
41
|
override render()
|
|
35
42
|
{
|
|
36
|
-
|
|
37
43
|
return (
|
|
38
|
-
<div className={
|
|
44
|
+
<div className={`${Styles.ns_tab_page_panel} ${this.props.classList}`} style={this.props.style}>
|
|
39
45
|
<ul>
|
|
40
46
|
{
|
|
41
47
|
this.props.tabs.map((tab, index) => (
|
|
@@ -63,7 +69,6 @@ export class NSTabPage extends Component<NSTabPageProps, NSTabPageState>
|
|
|
63
69
|
>
|
|
64
70
|
{
|
|
65
71
|
this.state.isClicked[index] ? tab.getContent() : <></>
|
|
66
|
-
|
|
67
72
|
}
|
|
68
73
|
</div>
|
|
69
74
|
))
|
|
@@ -158,15 +158,6 @@
|
|
|
158
158
|
justify-content: center;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.ns_button {
|
|
162
|
-
display: flex;
|
|
163
|
-
flex-direction: row;
|
|
164
|
-
flex-wrap: nowrap;
|
|
165
|
-
align-items: center;
|
|
166
|
-
gap: 24px;
|
|
167
|
-
width: 100%;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
161
|
.ns_check_box {
|
|
171
162
|
display: flex;
|
|
172
163
|
align-items: center;
|
|
@@ -191,6 +182,17 @@
|
|
|
191
182
|
width: 100%;
|
|
192
183
|
padding: 16px 0;
|
|
193
184
|
}
|
|
185
|
+
|
|
186
|
+
.ns_button {
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: row;
|
|
189
|
+
flex-wrap: nowrap;
|
|
190
|
+
justify-content: flex-end;
|
|
191
|
+
align-items: center;
|
|
192
|
+
gap: 24px;
|
|
193
|
+
width: 100%;
|
|
194
|
+
}
|
|
195
|
+
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
.ns_table th {
|