namirasoft-site-react 1.3.189 → 1.3.190
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/NSBoxBoolean.js +1 -1
- package/dist/components/NSBoxDate.js +1 -1
- package/dist/components/NSBoxDateTime.js +1 -1
- package/dist/components/NSBoxDouble.js +1 -1
- package/dist/components/NSBoxDuration.js +1 -1
- package/dist/components/NSBoxEmail.js +2 -2
- package/dist/components/NSBoxIPV4.js +2 -2
- package/dist/components/NSBoxIPV6.js +2 -2
- package/dist/components/NSBoxInteger.js +1 -1
- package/dist/components/NSBoxPassword.js +1 -1
- package/dist/components/NSBoxPhone.js +1 -1
- package/dist/components/NSBoxPrice.js +1 -1
- package/dist/components/NSBoxSearch.js +1 -1
- package/dist/components/NSBoxString.js +1 -1
- package/dist/components/NSBoxText.js +1 -1
- package/dist/components/NSBoxTextArea.js +1 -1
- package/dist/components/NSBoxTime.js +2 -2
- package/package.json +1 -1
- package/src/components/NSBoxBoolean.tsx +1 -1
- package/src/components/NSBoxDate.tsx +1 -1
- package/src/components/NSBoxDateTime.tsx +1 -1
- package/src/components/NSBoxDouble.tsx +1 -1
- package/src/components/NSBoxDuration.tsx +1 -1
- package/src/components/NSBoxEmail.tsx +2 -2
- package/src/components/NSBoxIPV4.tsx +2 -2
- package/src/components/NSBoxIPV6.tsx +2 -2
- package/src/components/NSBoxInteger.tsx +1 -1
- package/src/components/NSBoxPassword.tsx +1 -1
- package/src/components/NSBoxPhone.tsx +1 -1
- package/src/components/NSBoxPrice.tsx +1 -1
- package/src/components/NSBoxSearch.tsx +1 -1
- package/src/components/NSBoxString.tsx +1 -1
- package/src/components/NSBoxText.tsx +1 -1
- package/src/components/NSBoxTextArea.tsx +1 -1
- package/src/components/NSBoxTime.tsx +2 -2
|
@@ -14,7 +14,7 @@ export class NSBoxBoolean extends React.Component {
|
|
|
14
14
|
this.onChanged = this.onChanged.bind(this);
|
|
15
15
|
}
|
|
16
16
|
getError() {
|
|
17
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
17
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
18
18
|
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
19
19
|
}
|
|
20
20
|
getValue() {
|
|
@@ -14,7 +14,7 @@ export class NSBoxDate extends React.Component {
|
|
|
14
14
|
this.onChanged = this.onChanged.bind(this);
|
|
15
15
|
}
|
|
16
16
|
getError() {
|
|
17
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
17
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
18
18
|
Validator.getErrorDate(this.props.title, this.state.value));
|
|
19
19
|
}
|
|
20
20
|
getValue() {
|
|
@@ -14,7 +14,7 @@ export class NSBoxDateTime extends React.Component {
|
|
|
14
14
|
this.onChanged = this.onChanged.bind(this);
|
|
15
15
|
}
|
|
16
16
|
getError() {
|
|
17
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
17
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
18
18
|
Validator.getErrorDate(this.props.title, this.state.value));
|
|
19
19
|
}
|
|
20
20
|
getValue() {
|
|
@@ -14,7 +14,7 @@ export class NSBoxDouble extends React.Component {
|
|
|
14
14
|
this.onChanged = this.onChanged.bind(this);
|
|
15
15
|
}
|
|
16
16
|
getError() {
|
|
17
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
17
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
18
18
|
Validator.getErrorNumber(this.props.title, this.state.value, this.props));
|
|
19
19
|
}
|
|
20
20
|
getValue() {
|
|
@@ -15,7 +15,7 @@ export class NSBoxDuration extends React.Component {
|
|
|
15
15
|
this.onChanged = this.onChanged.bind(this);
|
|
16
16
|
}
|
|
17
17
|
getError() {
|
|
18
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
18
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
19
19
|
Validator.getErrorDuration(this.props.title, this.state.value));
|
|
20
20
|
}
|
|
21
21
|
getValue() {
|
|
@@ -16,8 +16,8 @@ export class NSBoxEmail extends React.Component {
|
|
|
16
16
|
this.copyToClipboard = this.copyToClipboard.bind(this);
|
|
17
17
|
}
|
|
18
18
|
getError() {
|
|
19
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
20
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
19
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
20
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
21
21
|
Validator.getErrorEmail(this.props.title, this.state.value));
|
|
22
22
|
}
|
|
23
23
|
getValue() {
|
|
@@ -16,8 +16,8 @@ export class NSBoxIPV4 extends React.Component {
|
|
|
16
16
|
this.onChanged = this.onChanged.bind(this);
|
|
17
17
|
}
|
|
18
18
|
getError() {
|
|
19
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
20
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
19
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
20
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
21
21
|
Validator.getErrorIP(this.props.title, this.state.value));
|
|
22
22
|
}
|
|
23
23
|
getValue() {
|
|
@@ -16,8 +16,8 @@ export class NSBoxIPV6 extends React.Component {
|
|
|
16
16
|
this.onChanged = this.onChanged.bind(this);
|
|
17
17
|
}
|
|
18
18
|
getError() {
|
|
19
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
20
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
19
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
20
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
21
21
|
Validator.getErrorIP(this.props.title, this.state.value));
|
|
22
22
|
}
|
|
23
23
|
getValue() {
|
|
@@ -14,7 +14,7 @@ export class NSBoxInteger extends React.Component {
|
|
|
14
14
|
this.onChanged = this.onChanged.bind(this);
|
|
15
15
|
}
|
|
16
16
|
getError() {
|
|
17
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
17
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
18
18
|
Validator.getErrorNumber(this.props.title, this.state.value, this.props));
|
|
19
19
|
}
|
|
20
20
|
getValue() {
|
|
@@ -15,7 +15,7 @@ export class NSBoxPassword extends React.Component {
|
|
|
15
15
|
this.onChanged = this.onChanged.bind(this);
|
|
16
16
|
}
|
|
17
17
|
getError() {
|
|
18
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
18
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
19
19
|
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
20
20
|
}
|
|
21
21
|
getValue() {
|
|
@@ -16,7 +16,7 @@ export class NSBoxPhone extends React.Component {
|
|
|
16
16
|
this.getValue = this.getValue.bind(this);
|
|
17
17
|
}
|
|
18
18
|
getError() {
|
|
19
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
19
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
20
20
|
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
21
21
|
}
|
|
22
22
|
getValue() {
|
|
@@ -14,7 +14,7 @@ export class NSBoxPrice extends React.Component {
|
|
|
14
14
|
this.onChanged = this.onChanged.bind(this);
|
|
15
15
|
}
|
|
16
16
|
getError() {
|
|
17
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
17
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
18
18
|
Validator.getErrorNumber(this.props.title, this.state.value, this.props));
|
|
19
19
|
}
|
|
20
20
|
getValue() {
|
|
@@ -28,7 +28,7 @@ export class NSBoxSearch extends React.Component {
|
|
|
28
28
|
this.onChanged = this.onChanged.bind(this);
|
|
29
29
|
}
|
|
30
30
|
getError() {
|
|
31
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
31
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
32
32
|
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
33
33
|
}
|
|
34
34
|
getValue() {
|
|
@@ -15,7 +15,7 @@ export class NSBoxString extends React.Component {
|
|
|
15
15
|
this.onChanged = this.onChanged.bind(this);
|
|
16
16
|
}
|
|
17
17
|
getError() {
|
|
18
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
18
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
19
19
|
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
20
20
|
}
|
|
21
21
|
getValue() {
|
|
@@ -15,7 +15,7 @@ export class NSBoxText extends React.Component {
|
|
|
15
15
|
this.onChanged = this.onChanged.bind(this);
|
|
16
16
|
}
|
|
17
17
|
getError() {
|
|
18
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
18
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
19
19
|
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
20
20
|
}
|
|
21
21
|
getValue() {
|
|
@@ -29,7 +29,7 @@ export class NSBoxTextArea extends React.Component {
|
|
|
29
29
|
this.onChanged = this.onChanged.bind(this);
|
|
30
30
|
}
|
|
31
31
|
getError() {
|
|
32
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
32
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
33
33
|
Validator.getErrorString(this.props.title, this.state.value, this.props));
|
|
34
34
|
}
|
|
35
35
|
getValue() {
|
|
@@ -15,8 +15,8 @@ export class NSBoxTime extends React.Component {
|
|
|
15
15
|
this.onChanged = this.onChanged.bind(this);
|
|
16
16
|
}
|
|
17
17
|
getError() {
|
|
18
|
-
return (Validator.getError(this.props.title, this.state.value, this.props)
|
|
19
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
18
|
+
return (Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
19
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
20
20
|
Validator.getErrorTime(this.props.title, this.state.value));
|
|
21
21
|
}
|
|
22
22
|
getValue() {
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export class NSBoxBoolean extends React.Component<INSBoxBooleanProps, INSBoxBooe
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
40
|
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -34,7 +34,7 @@ export class NSBoxDate extends React.Component<INSBoxDateProps, INSBoxDateState>
|
|
|
34
34
|
getError(): string | null
|
|
35
35
|
{
|
|
36
36
|
return (
|
|
37
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
37
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
38
38
|
Validator.getErrorDate(this.props.title, this.state.value)
|
|
39
39
|
);
|
|
40
40
|
}
|
|
@@ -34,7 +34,7 @@ export class NSBoxDateTime extends React.Component<INSBoxDateTimeProps, INSBoxDa
|
|
|
34
34
|
getError(): string | null
|
|
35
35
|
{
|
|
36
36
|
return (
|
|
37
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
37
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
38
38
|
Validator.getErrorDate(this.props.title, this.state.value)
|
|
39
39
|
);
|
|
40
40
|
}
|
|
@@ -36,7 +36,7 @@ export class NSBoxDouble extends React.Component<INSBoxDoubleProps, INSBoxDouble
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
40
|
Validator.getErrorNumber(this.props.title, this.state.value, this.props)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -37,7 +37,7 @@ export class NSBoxDuration extends React.Component<INSBoxDurationProps, INSBoxDu
|
|
|
37
37
|
getError(): string | null
|
|
38
38
|
{
|
|
39
39
|
return (
|
|
40
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
40
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
41
41
|
Validator.getErrorDuration(this.props.title, this.state.value)
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -37,8 +37,8 @@ export class NSBoxEmail extends React.Component<INSBoxEmailProps, INSBoxEmailSta
|
|
|
37
37
|
getError(): string | null
|
|
38
38
|
{
|
|
39
39
|
return (
|
|
40
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
41
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
40
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
41
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
42
42
|
Validator.getErrorEmail(this.props.title, this.state.value)
|
|
43
43
|
);
|
|
44
44
|
}
|
|
@@ -38,8 +38,8 @@ export class NSBoxIPV4 extends React.Component<INSBoxIPV4Props, INSBoxIPV4State>
|
|
|
38
38
|
getError(): string | null
|
|
39
39
|
{
|
|
40
40
|
return (
|
|
41
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
42
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
41
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
42
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
43
43
|
Validator.getErrorIP(this.props.title, this.state.value)
|
|
44
44
|
);
|
|
45
45
|
}
|
|
@@ -38,8 +38,8 @@ export class NSBoxIPV6 extends React.Component<INSBoxIPV6Props, INSBoxIPV6State>
|
|
|
38
38
|
getError(): string | null
|
|
39
39
|
{
|
|
40
40
|
return (
|
|
41
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
42
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
41
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
42
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
43
43
|
Validator.getErrorIP(this.props.title, this.state.value)
|
|
44
44
|
);
|
|
45
45
|
}
|
|
@@ -36,7 +36,7 @@ export class NSBoxInteger extends React.Component<INSBoxIntegerProps, INSBoxInte
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
40
|
Validator.getErrorNumber(this.props.title, this.state.value, this.props)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -36,7 +36,7 @@ export class NSBoxPassword extends React.Component<INSBoxPasswordProps, INSBoxPa
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
40
|
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -37,7 +37,7 @@ export class NSBoxPhone extends React.Component<INSBoxPhoneProps, INSBoxPhoneSta
|
|
|
37
37
|
getError(): string | null
|
|
38
38
|
{
|
|
39
39
|
return (
|
|
40
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
40
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
41
41
|
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -36,7 +36,7 @@ export class NSBoxPrice extends React.Component<INSBoxPriceProps, INSBoxPriceSta
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
40
|
Validator.getErrorNumber(this.props.title, this.state.value, this.props)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -35,7 +35,7 @@ export class NSBoxSearch extends React.Component<INSBoxSearchProps, INSBoxSearch
|
|
|
35
35
|
getError(): string | null
|
|
36
36
|
{
|
|
37
37
|
return (
|
|
38
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
38
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
39
39
|
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
40
40
|
);
|
|
41
41
|
}
|
|
@@ -36,7 +36,7 @@ export class NSBoxString extends React.Component<INSBoxStringProps, INSBoxString
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
40
|
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -36,7 +36,7 @@ export class NSBoxText extends React.Component<INSBoxTextProps, INSBoxTextState>
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
40
|
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -37,7 +37,7 @@ export class NSBoxTextArea extends React.Component<INSBoxTextAreaProps, INSBoxTe
|
|
|
37
37
|
getError(): string | null
|
|
38
38
|
{
|
|
39
39
|
return (
|
|
40
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
40
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
41
41
|
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -36,8 +36,8 @@ export class NSBoxTime extends React.Component<INSBoxTimeProps, INSBoxTimeState>
|
|
|
36
36
|
getError(): string | null
|
|
37
37
|
{
|
|
38
38
|
return (
|
|
39
|
-
Validator.getError(this.props.title, this.state.value, this.props)
|
|
40
|
-
Validator.getErrorString(this.props.title, this.state.value, this.props)
|
|
39
|
+
Validator.getError(this.props.title, this.state.value, this.props) ||
|
|
40
|
+
Validator.getErrorString(this.props.title, this.state.value, this.props) ||
|
|
41
41
|
Validator.getErrorTime(this.props.title, this.state.value)
|
|
42
42
|
);
|
|
43
43
|
}
|