namirasoft-site-react 1.3.402 → 1.3.404
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 +3 -3
- package/dist/App.js.map +1 -1
- package/dist/CopyToClipboard.d.ts +1 -1
- package/dist/CopyToClipboard.js +1 -1
- package/dist/CopyToClipboard.js.map +1 -1
- package/dist/components/NSAssistantButton.d.ts +1 -2
- package/dist/components/NSAssistantButton.js +3 -4
- package/dist/components/NSAssistantButton.js.map +1 -1
- package/dist/components/NSBoxEmail.d.ts +0 -1
- package/dist/components/NSBoxEmail.js +3 -4
- package/dist/components/NSBoxEmail.js.map +1 -1
- package/dist/components/NSBoxOTP.d.ts +3 -3
- package/dist/components/NSBoxOTP.js +1 -2
- package/dist/components/NSBoxOTP.js.map +1 -1
- package/dist/components/NSBoxSearch.js +2 -2
- package/dist/components/NSBoxSearch.js.map +1 -1
- package/dist/components/NSBoxString.js +3 -3
- package/dist/components/NSBoxString.js.map +1 -1
- package/dist/components/NSButton.d.ts +1 -1
- package/dist/components/NSButton.js +1 -1
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButtonBlue.js +1 -1
- package/dist/components/NSButtonBlue.js.map +1 -1
- package/dist/components/NSButtonGreen.js +1 -1
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonRed.js +1 -1
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSDialog.d.ts +2 -3
- package/dist/components/NSDialog.js +1 -2
- package/dist/components/NSDialog.js.map +1 -1
- package/dist/components/NSElectronicCard.d.ts +1 -2
- package/dist/components/NSElectronicCard.js +1 -2
- package/dist/components/NSElectronicCard.js.map +1 -1
- package/dist/components/NSFilterBox.d.ts +1 -1
- package/dist/components/NSFilterBox.js +3 -3
- package/dist/components/NSFilterBox.js.map +1 -1
- package/dist/components/NSGroupedList.d.ts +2 -2
- package/dist/components/NSGroupedList.js +1 -1
- package/dist/components/NSGroupedList.js.map +1 -1
- package/dist/components/NSInfoDialog.d.ts +1 -1
- package/dist/components/NSInfoDialog.js +3 -2
- package/dist/components/NSInfoDialog.js.map +1 -1
- package/dist/components/NSPageSelectionModal.d.ts +1 -1
- package/dist/components/NSPageSelectionModal.js +2 -4
- package/dist/components/NSPageSelectionModal.js.map +1 -1
- package/dist/components/NSProductList.js +1 -1
- package/dist/components/NSProductList.js.map +1 -1
- package/dist/components/NSTable.d.ts +2 -2
- package/dist/components/NSTable.js +6 -6
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTag.d.ts +1 -2
- package/dist/components/NSTag.js +2 -3
- package/dist/components/NSTag.js.map +1 -1
- package/dist/components/NSVerification.d.ts +4 -3
- package/dist/components/NSVerification.js +3 -4
- package/dist/components/NSVerification.js.map +1 -1
- package/dist/formatter/BackColorFormatter.d.ts +1 -1
- package/dist/formatter/BaseColumnFormatter.d.ts +1 -1
- package/dist/formatter/ForeColorFormatter.d.ts +1 -1
- package/dist/pages/NSNotFoundPage.js +1 -1
- package/dist/pages/NSNotFoundPage.js.map +1 -1
- package/package.json +1 -1
- package/src/App.tsx +3 -3
- package/src/CopyToClipboard.ts +1 -1
- package/src/components/NSAssistantButton.tsx +4 -6
- package/src/components/NSBoxEmail.tsx +4 -7
- package/src/components/NSBoxOTP.tsx +3 -5
- package/src/components/NSBoxSearch.tsx +2 -3
- package/src/components/NSBoxString.tsx +3 -4
- package/src/components/NSButton.tsx +1 -1
- package/src/components/NSButtonBlue.tsx +1 -2
- package/src/components/NSButtonGreen.tsx +1 -2
- package/src/components/NSButtonRed.tsx +1 -2
- package/src/components/NSDialog.tsx +3 -5
- package/src/components/NSElectronicCard.tsx +2 -4
- package/src/components/NSFilterBox.tsx +4 -5
- package/src/components/NSGroupedList.tsx +2 -2
- package/src/components/NSInfoDialog.tsx +3 -2
- package/src/components/NSPageSelectionModal.tsx +3 -6
- package/src/components/NSProductList.tsx +1 -1
- package/src/components/NSTable.tsx +7 -8
- package/src/components/NSTag.tsx +60 -61
- package/src/components/NSVerification.tsx +6 -7
- package/src/formatter/BackColorFormatter.tsx +1 -1
- package/src/formatter/BaseColumnFormatter.ts +1 -1
- package/src/formatter/ForeColorFormatter.tsx +1 -1
- package/src/pages/NSNotFoundPage.tsx +1 -1
package/src/components/NSTag.tsx
CHANGED
|
@@ -1,75 +1,74 @@
|
|
|
1
1
|
import { Component, createRef } from 'react';
|
|
2
2
|
import { NSBoxString } from './NSBoxString';
|
|
3
|
-
import NSButton from './NSButton';
|
|
3
|
+
import { NSButton } from './NSButton';
|
|
4
4
|
import Styles from './NSTag.module.css';
|
|
5
5
|
|
|
6
6
|
export interface NSTagProps
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
onChanged?: () => void;
|
|
9
|
+
onDeleted?: () => void;
|
|
10
10
|
}
|
|
11
11
|
export interface NSTagValue
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
description?: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
class NSTag extends Component<NSTagProps>
|
|
18
|
+
export class NSTag extends Component<NSTagProps>
|
|
19
19
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
static isEmpty(value: NSTagValue)
|
|
21
|
+
{
|
|
22
|
+
if (value.name || value.value || value.description)
|
|
23
|
+
return false
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
private NSBoxString_Key = createRef<NSBoxString>();
|
|
28
|
+
private NSBoxString_Value = createRef<NSBoxString>();
|
|
29
|
+
private NSBoxString_Description = createRef<NSBoxString>();
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
export default NSTag;
|
|
31
|
+
getValue(checkError: boolean = true): NSTagValue
|
|
32
|
+
{
|
|
33
|
+
let name = this.NSBoxString_Key.current?.getValue(checkError) ?? "";
|
|
34
|
+
let value = this.NSBoxString_Value.current?.getValue(checkError) ?? "";
|
|
35
|
+
let description = this.NSBoxString_Description.current?.getValue(checkError) ?? "";
|
|
36
|
+
return {
|
|
37
|
+
name,
|
|
38
|
+
value,
|
|
39
|
+
description
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
setValue(value: NSTagValue)
|
|
43
|
+
{
|
|
44
|
+
this.NSBoxString_Key.current?.setValue(value.name);
|
|
45
|
+
this.NSBoxString_Value.current?.setValue(value.value);
|
|
46
|
+
this.NSBoxString_Description.current?.setValue(value.description ?? "");
|
|
47
|
+
}
|
|
48
|
+
override render()
|
|
49
|
+
{
|
|
50
|
+
return (
|
|
51
|
+
<section className={Styles.ns_tag_input_container} >
|
|
52
|
+
<div className={Styles.ns_tag_input_group}>
|
|
53
|
+
<NSBoxString ref={this.NSBoxString_Key} title='Name' required onChanged={this.props.onChanged} />
|
|
54
|
+
<NSBoxString ref={this.NSBoxString_Value} title='Value' required onChanged={this.props.onChanged} />
|
|
55
|
+
<NSBoxString ref={this.NSBoxString_Description} title='Description' required={false} onChanged={this.props.onChanged} />
|
|
56
|
+
<NSButton
|
|
57
|
+
title='Remove'
|
|
58
|
+
onClick={() =>
|
|
59
|
+
{
|
|
60
|
+
if (this.props.onDeleted)
|
|
61
|
+
this.props.onDeleted();
|
|
62
|
+
}}
|
|
63
|
+
style={{
|
|
64
|
+
backgroundColor: "transparent",
|
|
65
|
+
border: "1px solid rgba(3, 119, 255, 1)",
|
|
66
|
+
width: "145px",
|
|
67
|
+
marginTop: "28px"
|
|
68
|
+
}}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
</section>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import NSBoxOTP from './NSBoxOTP';
|
|
2
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
3
|
+
import { IImageProps } from '../props/IImageProps';
|
|
4
|
+
import { NSBoxOTP } from './NSBoxOTP';
|
|
5
5
|
import Styles from './NSVerification.module.css'
|
|
6
|
+
import vector from '../assets/images/verify.png'
|
|
6
7
|
|
|
7
8
|
interface INSVerificationProps extends IBaseComponentProps {
|
|
8
9
|
verificationType : string;
|
|
@@ -12,7 +13,7 @@ interface INSVerificationProps extends IBaseComponentProps {
|
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
function NSVerification(props:INSVerificationProps) {
|
|
16
|
+
export function NSVerification(props:INSVerificationProps) {
|
|
16
17
|
const [values, setValue] = useState<string>('')
|
|
17
18
|
|
|
18
19
|
function onChanged(event: React.ChangeEvent<HTMLInputElement>): string | undefined
|
|
@@ -37,6 +38,4 @@ function NSVerification(props:INSVerificationProps) {
|
|
|
37
38
|
<NSBoxOTP onChanged={onChanged}/>
|
|
38
39
|
</div>
|
|
39
40
|
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default NSVerification;
|
|
41
|
+
}
|