namirasoft-site-react 1.4.77 → 1.4.79
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.js +4 -4
- package/dist/App.js.map +1 -1
- package/dist/components/NSActionMenu.js +1 -1
- package/dist/components/NSActionMenu.js.map +1 -1
- package/dist/components/NSActionMenu.module.css +10 -3
- package/dist/components/NSAssistantButton.module.css +5 -0
- package/dist/components/NSBarAction.module.css +5 -0
- package/dist/components/NSBox.module.css +5 -0
- package/dist/components/NSBoxBoolean.module.css +5 -0
- package/dist/components/NSBoxDate.module.css +5 -0
- package/dist/components/NSBoxDateTime.module.css +5 -0
- package/dist/components/NSBoxRadio.module.css +5 -0
- package/dist/components/NSBoxTextArea.module.css +5 -0
- package/dist/components/NSButton.module.css +6 -1
- package/dist/components/NSFilterBox.module.css +5 -0
- package/dist/components/NSPageSelectionModal.module.css +4 -7
- package/package.json +2 -2
- package/src/App.tsx +11 -5
- package/src/components/NSActionMenu.module.css +10 -3
- package/src/components/NSActionMenu.tsx +0 -1
- package/src/components/NSAssistantButton.module.css +5 -0
- package/src/components/NSBarAction.module.css +5 -0
- package/src/components/NSBox.module.css +5 -0
- package/src/components/NSBoxBoolean.module.css +5 -0
- package/src/components/NSBoxDate.module.css +5 -0
- package/src/components/NSBoxDateTime.module.css +5 -0
- package/src/components/NSBoxRadio.module.css +5 -0
- package/src/components/NSBoxTextArea.module.css +5 -0
- package/src/components/NSButton.module.css +6 -1
- package/src/components/NSFilterBox.module.css +5 -0
- package/src/components/NSPageSelectionModal.module.css +4 -7
package/dist/App.js
CHANGED
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
11
11
|
import './App.css';
|
|
12
12
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
13
13
|
import { NSTable } from './components/NSTable';
|
|
14
|
-
import { NSBarAlert, NSBoxBoolean, NSBoxBooleans, NSBoxDate, NSBoxEnum, NSBoxInteger, NSBoxPhone, NSBoxSearch, NSButtonBlue, NSCard, NSChartPie, NSDownTimer, NSNotFoundPage } from './main';
|
|
14
|
+
import { NSBarAlert, NSBoxBoolean, NSBoxBooleans, NSBoxDate, NSBoxEnum, NSBoxInteger, NSBoxPhone, NSBoxRadio, NSBoxSearch, NSBoxTextArea, NSButtonBlue, NSCard, NSChartPie, NSDownTimer, NSNotFoundPage } from './main';
|
|
15
15
|
import { useState } from 'react';
|
|
16
16
|
const fakeFormatter = {
|
|
17
17
|
format: (value) => { return value; }
|
|
@@ -150,7 +150,7 @@ const fakeData = [
|
|
|
150
150
|
];
|
|
151
151
|
let getFakeRows = (page, size) => __awaiter(void 0, void 0, void 0, function* () {
|
|
152
152
|
console.log(page, size);
|
|
153
|
-
const rows =
|
|
153
|
+
const rows = fakeData;
|
|
154
154
|
return { rows, count: fakeData.length };
|
|
155
155
|
});
|
|
156
156
|
const getFakeRowKey = (row) => { return `${row.index}`; };
|
|
@@ -166,12 +166,12 @@ export function App() {
|
|
|
166
166
|
setState(e.getValue());
|
|
167
167
|
} }), _jsx(NSButtonBlue, { onClick: () => {
|
|
168
168
|
setState(!state);
|
|
169
|
-
} }), _jsx(NSTable, Object.assign({}, tableProps)), _jsx(NSNotFoundPage, {}), _jsx(NSBoxDate, { required: true, title: '' }), _jsx(NSBoxPhone, { required: true, title: '' }), _jsx(NSBoxInteger, { required: true, title: '', min: 8, max: 12 }), _jsx(NSBoxEnum, { title: 'Retention Unit', required: true, multiple: false, options: [
|
|
169
|
+
} }), _jsx(NSTable, Object.assign({}, tableProps)), _jsx(NSNotFoundPage, {}), _jsx(NSBoxDate, { required: true, title: '' }), _jsx(NSBoxPhone, { required: true, title: '' }), _jsx(NSBoxInteger, { required: true, title: '', min: 8, max: 12 }), _jsx(NSBoxTextArea, { required: true, title: 'asd' }), _jsx(NSBoxEnum, { title: 'Retention Unit', required: true, multiple: false, options: [
|
|
170
170
|
{ title: "LogGroupRetentionUnit.Day", value: "LogGroupRetentionUnit.Day" },
|
|
171
171
|
{ title: "LogGroupRetentionUnit.Week", value: "LogGroupRetentionUnit.Week" },
|
|
172
172
|
{ title: "LogGroupRetentionUnit.Month", value: "LogGroupRetentionUnit.Month" },
|
|
173
173
|
{ title: "LogGroupRetentionUnit.Year", value: "LogGroupRetentionUnit.Year" },
|
|
174
|
-
] }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
|
|
174
|
+
] }), _jsx(NSBoxRadio, { required: true, title: 'asd' }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
|
|
175
175
|
title: "Verify Your Email",
|
|
176
176
|
description: "Lorem ipsum dolor sit amet consectetur. In ipsum gravida libero vitae tempor.Ipsum"
|
|
177
177
|
} }), _jsx(NSBarAlert, { isVisible: () => true, onContinue: () => window.open("/"), title: {
|
package/dist/App.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAgD,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAuB,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAgD,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAuB,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,YA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AE,CAAC,CAAC;gBAC9B,CAAC,GACA,IACA,CACH,CAAC;AACH,CAAC"}
|
|
@@ -25,7 +25,7 @@ export function NSActionMenu(props) {
|
|
|
25
25
|
if (props.items.length === 0)
|
|
26
26
|
return _jsx(_Fragment, {});
|
|
27
27
|
if (props.items.length === 1)
|
|
28
|
-
return _jsx(NSButtonBlue, { title: props.items[0].menu_item, onClick: () => onClick(props.items[0]), disabled: props.items[0].isActive() ? false : true, classList: [Styles.single_action_button]
|
|
28
|
+
return _jsx(NSButtonBlue, { title: props.items[0].menu_item, onClick: () => onClick(props.items[0]), disabled: props.items[0].isActive() ? false : true, classList: [Styles.single_action_button] });
|
|
29
29
|
return (_jsxs("div", { className: Styles.ns_action_bar, ref: menuRef, children: [_jsxs("button", { onClick: () => setState((prevState) => (Object.assign(Object.assign({}, prevState), { isShow: !state.isShow }))), children: [props.name, _jsx("img", { className: Styles.ns_action_menu_icon, src: "https://static.namirasoft.com/image/concept/ellipsis/vertical-blue.svg", alt: "Icon", width: 24, height: 24 })] }), _jsx("ul", { className: `${Styles.ns_action_item_holder} ${state.isShow ? Styles.ns_show : Styles.ns_hide}`, children: props.items.map((item) => _jsx("li", { onClick: () => onClick(item), className: `${Styles.ns_action_item}
|
|
30
30
|
${item.isActive() ? Styles.ns_active_item : Styles.ns_deActive_item}
|
|
31
31
|
`, children: item.menu_item }, item.id)) })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSActionMenu.js","sourceRoot":"","sources":["../../src/components/NSActionMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAe/C,MAAM,UAAU,YAAY,CAAC,KAAoD;IAEhF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAq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@ -6,10 +6,12 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
margin: 16px 0;
|
|
9
|
+
width: 100%;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
.single_action_button {
|
|
12
|
+
.single_action_button {
|
|
12
13
|
margin-top: 16px;
|
|
14
|
+
width: 100%;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.ns_action_bar>button {
|
|
@@ -78,8 +80,13 @@
|
|
|
78
80
|
display: none;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
@media only screen and (min-width: 480px) {
|
|
82
|
-
.single_action_button {
|
|
83
|
+
@media only screen and (min-width: 480px) {
|
|
84
|
+
.single_action_button {
|
|
83
85
|
margin-top: 0;
|
|
86
|
+
width: 180px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ns_action_bar {
|
|
90
|
+
width: 180px;
|
|
84
91
|
}
|
|
85
92
|
}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
flex-direction: column;
|
|
35
35
|
flex-wrap: wrap;
|
|
36
36
|
gap: 0 16px;
|
|
37
|
+
width: 100%;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.ns_info_container {
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
@media only screen and (min-width: 480px) {
|
|
66
67
|
.ns_actions_holder {
|
|
67
68
|
flex-direction: row;
|
|
69
|
+
flex: 1 1 0;
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -73,6 +75,9 @@
|
|
|
73
75
|
justify-content: space-between;
|
|
74
76
|
min-height: 80px;
|
|
75
77
|
}
|
|
78
|
+
.ns_actions_holder {
|
|
79
|
+
justify-content: flex-end;
|
|
80
|
+
}
|
|
76
81
|
|
|
77
82
|
.ns_desktop_action_bar_title {
|
|
78
83
|
display: flex;
|
|
@@ -29,9 +29,14 @@
|
|
|
29
29
|
scale: 1.02;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.ns_button:focus-visible {
|
|
33
|
+
border-color: rgba(0, 0, 0, 1) !important;
|
|
34
|
+
outline: solid 1px #4096ff !important;
|
|
35
|
+
}
|
|
32
36
|
|
|
33
37
|
@media only screen and (min-width: 380px) {
|
|
34
|
-
.ns_button,
|
|
38
|
+
.ns_button,
|
|
39
|
+
.ns_button_disabled {
|
|
35
40
|
width: 272px;
|
|
36
41
|
}
|
|
37
42
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
transform: translate(-50%, -50%);
|
|
12
12
|
z-index: 100;
|
|
13
13
|
width: 100%;
|
|
14
|
+
border: 8px solid rgb(233, 232, 232);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.ns_header_print {
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
display: flex;
|
|
43
44
|
flex-wrap: wrap;
|
|
44
45
|
justify-content: center;
|
|
45
|
-
gap:
|
|
46
|
+
gap: 16px;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.ns_w_box_boolean div {
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
.ns_print_container {
|
|
71
|
-
max-width:
|
|
72
|
+
max-width: 610px;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.ns_w_box_boolean div {
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
.ns_toast_background {
|
|
92
93
|
width: 100vw;
|
|
93
94
|
height: 100vh;
|
|
94
|
-
background-color: #
|
|
95
|
+
background-color: #00000080;
|
|
95
96
|
position: fixed;
|
|
96
97
|
top: 0;
|
|
97
98
|
left: 0;
|
|
@@ -100,8 +101,4 @@
|
|
|
100
101
|
align-items: center;
|
|
101
102
|
cursor: default;
|
|
102
103
|
z-index: 99;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ns_parent_modal {
|
|
106
|
-
/* position: relative; */
|
|
107
104
|
}
|
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.79",
|
|
12
12
|
"author": "Amir Abolhasani, Alireza Esmaeeli",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
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
|
-
"react-phone-number-input": "^3.4.
|
|
44
|
+
"react-phone-number-input": "^3.4.10",
|
|
45
45
|
"react-router-dom": "^7.0.2",
|
|
46
46
|
"react-scripts": "5.0.1",
|
|
47
47
|
"styled-components": "^6.1.13",
|
package/src/App.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './App.css';
|
|
2
2
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
3
3
|
import { NSTable, INSTableProps, TableColumnInfo, TableRowInfo } from './components/NSTable';
|
|
4
|
-
import { BaseColumnFormatter, NSBarAlert, NSBoxBoolean, NSBoxBooleans, NSBoxDate, NSBoxEnum, NSBoxInteger, NSBoxPhone, NSBoxSearch, NSButtonBlue, NSCard, NSChartPie, NSDownTimer, NSNotFoundPage } from './main';
|
|
4
|
+
import { BaseColumnFormatter, NSBarAlert, NSBoxBoolean, NSBoxBooleans, NSBoxDate, NSBoxEnum, NSBoxInteger, NSBoxPhone, NSBoxRadio, NSBoxSearch, NSBoxTextArea, NSButtonBlue, NSCard, NSChartPie, NSDownTimer, NSNotFoundPage } from './main';
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
|
|
7
7
|
export interface INSBarActionState
|
|
@@ -153,8 +153,8 @@ const fakeData = [
|
|
|
153
153
|
let getFakeRows = async (page: number, size: number) =>
|
|
154
154
|
{
|
|
155
155
|
console.log(page, size);
|
|
156
|
-
|
|
157
|
-
const rows: any[] = [];
|
|
156
|
+
const rows = fakeData;
|
|
157
|
+
// const rows: any[] = [];
|
|
158
158
|
return { rows, count: fakeData.length };
|
|
159
159
|
};
|
|
160
160
|
|
|
@@ -207,7 +207,10 @@ export function App()
|
|
|
207
207
|
min={8}
|
|
208
208
|
max={12}
|
|
209
209
|
/>
|
|
210
|
-
|
|
210
|
+
<NSBoxTextArea
|
|
211
|
+
required
|
|
212
|
+
title='asd'
|
|
213
|
+
/>
|
|
211
214
|
<NSBoxEnum
|
|
212
215
|
title='Retention Unit'
|
|
213
216
|
required
|
|
@@ -219,7 +222,10 @@ export function App()
|
|
|
219
222
|
{ title: "LogGroupRetentionUnit.Year", value: "LogGroupRetentionUnit.Year" },
|
|
220
223
|
]}
|
|
221
224
|
/>
|
|
222
|
-
|
|
225
|
+
<NSBoxRadio
|
|
226
|
+
required
|
|
227
|
+
title='asd'
|
|
228
|
+
/>
|
|
223
229
|
<NSBarAlert
|
|
224
230
|
isVisible={() => true}
|
|
225
231
|
onContinue={() => window.open("/")}
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
position: relative;
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
margin: 16px 0;
|
|
9
|
+
width: 100%;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
.single_action_button {
|
|
12
|
+
.single_action_button {
|
|
12
13
|
margin-top: 16px;
|
|
14
|
+
width: 100%;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.ns_action_bar>button {
|
|
@@ -78,8 +80,13 @@
|
|
|
78
80
|
display: none;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
@media only screen and (min-width: 480px) {
|
|
82
|
-
.single_action_button {
|
|
83
|
+
@media only screen and (min-width: 480px) {
|
|
84
|
+
.single_action_button {
|
|
83
85
|
margin-top: 0;
|
|
86
|
+
width: 180px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ns_action_bar {
|
|
90
|
+
width: 180px;
|
|
84
91
|
}
|
|
85
92
|
}
|
|
@@ -55,7 +55,6 @@ export function NSActionMenu(props: { name: string, items: INSActionMenuProps[]
|
|
|
55
55
|
onClick={() => onClick(props.items[0])}
|
|
56
56
|
disabled={props.items[0].isActive() ? false : true}
|
|
57
57
|
classList={[Styles.single_action_button]}
|
|
58
|
-
style={{ width: "180px" }}
|
|
59
58
|
/>;
|
|
60
59
|
return (
|
|
61
60
|
<div className={Styles.ns_action_bar} ref={menuRef}>
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
flex-direction: column;
|
|
35
35
|
flex-wrap: wrap;
|
|
36
36
|
gap: 0 16px;
|
|
37
|
+
width: 100%;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.ns_info_container {
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
@media only screen and (min-width: 480px) {
|
|
66
67
|
.ns_actions_holder {
|
|
67
68
|
flex-direction: row;
|
|
69
|
+
flex: 1 1 0;
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -73,6 +75,9 @@
|
|
|
73
75
|
justify-content: space-between;
|
|
74
76
|
min-height: 80px;
|
|
75
77
|
}
|
|
78
|
+
.ns_actions_holder {
|
|
79
|
+
justify-content: flex-end;
|
|
80
|
+
}
|
|
76
81
|
|
|
77
82
|
.ns_desktop_action_bar_title {
|
|
78
83
|
display: flex;
|
|
@@ -29,9 +29,14 @@
|
|
|
29
29
|
scale: 1.02;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
.ns_button:focus-visible {
|
|
33
|
+
border-color: rgba(0, 0, 0, 1) !important;
|
|
34
|
+
outline: solid 1px #4096ff !important;
|
|
35
|
+
}
|
|
32
36
|
|
|
33
37
|
@media only screen and (min-width: 380px) {
|
|
34
|
-
.ns_button,
|
|
38
|
+
.ns_button,
|
|
39
|
+
.ns_button_disabled {
|
|
35
40
|
width: 272px;
|
|
36
41
|
}
|
|
37
42
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
transform: translate(-50%, -50%);
|
|
12
12
|
z-index: 100;
|
|
13
13
|
width: 100%;
|
|
14
|
+
border: 8px solid rgb(233, 232, 232);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.ns_header_print {
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
display: flex;
|
|
43
44
|
flex-wrap: wrap;
|
|
44
45
|
justify-content: center;
|
|
45
|
-
gap:
|
|
46
|
+
gap: 16px;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.ns_w_box_boolean div {
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
.ns_print_container {
|
|
71
|
-
max-width:
|
|
72
|
+
max-width: 610px;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.ns_w_box_boolean div {
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
.ns_toast_background {
|
|
92
93
|
width: 100vw;
|
|
93
94
|
height: 100vh;
|
|
94
|
-
background-color: #
|
|
95
|
+
background-color: #00000080;
|
|
95
96
|
position: fixed;
|
|
96
97
|
top: 0;
|
|
97
98
|
left: 0;
|
|
@@ -100,8 +101,4 @@
|
|
|
100
101
|
align-items: center;
|
|
101
102
|
cursor: default;
|
|
102
103
|
z-index: 99;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ns_parent_modal {
|
|
106
|
-
/* position: relative; */
|
|
107
104
|
}
|