namirasoft-site-react 1.4.236 → 1.4.237
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/NSBoxBaseLayout.js +1 -4
- package/dist/components/NSBoxBaseLayout.js.map +1 -1
- package/dist/components/NSBoxBoolean.d.ts +1 -0
- package/dist/components/NSBoxBoolean.js +2 -2
- package/dist/components/NSBoxBoolean.js.map +1 -1
- package/dist/components/NSBoxColor.d.ts +1 -0
- package/dist/components/NSBoxColor.js +2 -4
- package/dist/components/NSBoxColor.js.map +1 -1
- package/dist/components/NSBoxCombo.d.ts +1 -0
- package/dist/components/NSBoxCombo.js.map +1 -1
- package/dist/components/NSBoxDate.d.ts +1 -0
- package/dist/components/NSBoxDate.js +2 -6
- package/dist/components/NSBoxDate.js.map +1 -1
- package/dist/components/NSBoxDateTime.d.ts +1 -0
- package/dist/components/NSBoxDateTime.js +2 -6
- package/dist/components/NSBoxDateTime.js.map +1 -1
- package/dist/components/NSBoxDouble.d.ts +1 -0
- package/dist/components/NSBoxDouble.js +2 -5
- package/dist/components/NSBoxDouble.js.map +1 -1
- package/dist/components/NSBoxDuration.d.ts +1 -0
- package/dist/components/NSBoxDuration.js +2 -6
- package/dist/components/NSBoxDuration.js.map +1 -1
- package/dist/components/NSBoxDynamic.d.ts +1 -0
- package/dist/components/NSBoxEmail.d.ts +1 -0
- package/dist/components/NSBoxEmail.js +2 -5
- package/dist/components/NSBoxEmail.js.map +1 -1
- package/dist/components/NSBoxEntity.d.ts +2 -0
- package/dist/components/NSBoxEntity.js.map +1 -1
- package/dist/components/NSBoxEnum.d.ts +1 -0
- package/dist/components/NSBoxEnum.js.map +1 -1
- package/dist/components/NSBoxFilePath.d.ts +1 -0
- package/dist/components/NSBoxFilePath.js +2 -4
- package/dist/components/NSBoxFilePath.js.map +1 -1
- package/dist/components/NSBoxFont.d.ts +1 -0
- package/dist/components/NSBoxFont.js +2 -4
- package/dist/components/NSBoxFont.js.map +1 -1
- package/dist/components/NSBoxIPV4.d.ts +1 -0
- package/dist/components/NSBoxIPV4.js +2 -5
- package/dist/components/NSBoxIPV4.js.map +1 -1
- package/dist/components/NSBoxIPV4Range.d.ts +1 -0
- package/dist/components/NSBoxIPV4Range.js +2 -4
- package/dist/components/NSBoxIPV4Range.js.map +1 -1
- package/dist/components/NSBoxIPV6.d.ts +1 -0
- package/dist/components/NSBoxIPV6.js +2 -5
- package/dist/components/NSBoxIPV6.js.map +1 -1
- package/dist/components/NSBoxIPV6Range.d.ts +1 -0
- package/dist/components/NSBoxIPV6Range.js +2 -4
- package/dist/components/NSBoxIPV6Range.js.map +1 -1
- package/dist/components/NSBoxInteger.d.ts +1 -0
- package/dist/components/NSBoxInteger.js +2 -5
- package/dist/components/NSBoxInteger.js.map +1 -1
- package/dist/components/NSBoxMoney.d.ts +1 -0
- package/dist/components/NSBoxMoney.js +2 -5
- package/dist/components/NSBoxMoney.js.map +1 -1
- package/dist/components/NSBoxPassword.d.ts +1 -0
- package/dist/components/NSBoxPassword.js +2 -5
- package/dist/components/NSBoxPassword.js.map +1 -1
- package/dist/components/NSBoxRadio.d.ts +1 -0
- package/dist/components/NSBoxRadio.js +2 -1
- package/dist/components/NSBoxRadio.js.map +1 -1
- package/dist/components/NSBoxSearch.d.ts +1 -0
- package/dist/components/NSBoxSearch.js +2 -5
- package/dist/components/NSBoxSearch.js.map +1 -1
- package/dist/components/NSBoxString.d.ts +1 -0
- package/dist/components/NSBoxString.js +2 -5
- package/dist/components/NSBoxString.js.map +1 -1
- package/dist/components/NSBoxTextArea.d.ts +1 -0
- package/dist/components/NSBoxTextArea.js +2 -7
- package/dist/components/NSBoxTextArea.js.map +1 -1
- package/dist/components/NSBoxTime.d.ts +1 -0
- package/dist/components/NSBoxTime.js +2 -6
- package/dist/components/NSBoxTime.js.map +1 -1
- package/dist/components/NSBoxTimeZone.d.ts +1 -0
- package/dist/components/NSBoxTimeZone.js +2 -4
- package/dist/components/NSBoxTimeZone.js.map +1 -1
- package/dist/components/NSBoxURL.d.ts +1 -0
- package/dist/components/NSBoxURL.js +2 -4
- package/dist/components/NSBoxURL.js.map +1 -1
- package/dist/components/NSBoxVersion.d.ts +1 -0
- package/dist/components/NSBoxVersion.js +2 -4
- package/dist/components/NSBoxVersion.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NSBoxBaseLayout.tsx +1 -4
- package/src/components/NSBoxBoolean.tsx +5 -3
- package/src/components/NSBoxColor.tsx +8 -5
- package/src/components/NSBoxCombo.tsx +1 -0
- package/src/components/NSBoxDate.tsx +8 -5
- package/src/components/NSBoxDateTime.tsx +8 -5
- package/src/components/NSBoxDouble.tsx +8 -5
- package/src/components/NSBoxDuration.tsx +8 -5
- package/src/components/NSBoxDynamic.tsx +2 -2
- package/src/components/NSBoxEmail.tsx +6 -4
- package/src/components/NSBoxEntity.tsx +4 -1
- package/src/components/NSBoxEnum.tsx +1 -0
- package/src/components/NSBoxFilePath.tsx +8 -5
- package/src/components/NSBoxFont.tsx +8 -5
- package/src/components/NSBoxIPV4.tsx +8 -5
- package/src/components/NSBoxIPV4Range.tsx +8 -5
- package/src/components/NSBoxIPV6.tsx +8 -5
- package/src/components/NSBoxIPV6Range.tsx +8 -5
- package/src/components/NSBoxInteger.tsx +6 -4
- package/src/components/NSBoxMoney.tsx +8 -5
- package/src/components/NSBoxPassword.tsx +8 -5
- package/src/components/NSBoxRadio.tsx +6 -4
- package/src/components/NSBoxSearch.tsx +5 -3
- package/src/components/NSBoxString.tsx +8 -5
- package/src/components/NSBoxTextArea.tsx +6 -4
- package/src/components/NSBoxTime.tsx +8 -5
- package/src/components/NSBoxTimeZone.tsx +8 -5
- package/src/components/NSBoxURL.tsx +8 -5
- package/src/components/NSBoxVersion.tsx +8 -5
|
@@ -13,7 +13,9 @@ import { IValidationPrecisionProps } from "../props/IValidationPrecisionProps";
|
|
|
13
13
|
import { INSBox } from "./INSBox";
|
|
14
14
|
|
|
15
15
|
export interface NSBoxMoneyProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps, IValidationPrecisionProps, INSBoxBaseLayoutProps<number, NSBoxMoney>
|
|
16
|
-
{
|
|
16
|
+
{
|
|
17
|
+
input?: IBaseComponentProps;
|
|
18
|
+
}
|
|
17
19
|
|
|
18
20
|
export interface NSBoxMoneyState
|
|
19
21
|
{
|
|
@@ -69,10 +71,10 @@ export class NSBoxMoney extends React.Component<NSBoxMoneyProps, NSBoxMoneyState
|
|
|
69
71
|
menu={menu}
|
|
70
72
|
>
|
|
71
73
|
<input
|
|
72
|
-
id={this.props.id}
|
|
73
|
-
name={this.props.name}
|
|
74
|
+
id={this.props.input?.id}
|
|
75
|
+
name={this.props.input?.name}
|
|
74
76
|
type="number"
|
|
75
|
-
className={StylesNSBox.ns_box_input}
|
|
77
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
76
78
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
77
79
|
value={this.state.value ?? ""}
|
|
78
80
|
onChange={e => this.setValue(parseFloat(e.target.value))}
|
|
@@ -84,7 +86,8 @@ export class NSBoxMoney extends React.Component<NSBoxMoneyProps, NSBoxMoneyState
|
|
|
84
86
|
step="0.01"
|
|
85
87
|
style={{
|
|
86
88
|
background: `url("https://static.namirasoft.com/image/concept/type/price.png") white no-repeat scroll center right 4px`,
|
|
87
|
-
backgroundSize: "24px"
|
|
89
|
+
backgroundSize: "24px",
|
|
90
|
+
...this.props.input?.style
|
|
88
91
|
}}
|
|
89
92
|
/>
|
|
90
93
|
</NSBoxBaseLayout>
|
|
@@ -12,7 +12,9 @@ import { NamingConvention, SetTimeouService } from "namirasoft-core";
|
|
|
12
12
|
import { INSBox } from "./INSBox";
|
|
13
13
|
|
|
14
14
|
export interface NSBoxPasswordProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxPassword>
|
|
15
|
-
{
|
|
15
|
+
{
|
|
16
|
+
input?: IBaseComponentProps;
|
|
17
|
+
}
|
|
16
18
|
|
|
17
19
|
export interface NSBoxPasswordState
|
|
18
20
|
{
|
|
@@ -85,17 +87,18 @@ export class NSBoxPassword extends React.Component<NSBoxPasswordProps, NSBoxPass
|
|
|
85
87
|
menu={menu}
|
|
86
88
|
>
|
|
87
89
|
<input
|
|
88
|
-
id={this.props.id}
|
|
89
|
-
name={this.props.name}
|
|
90
|
+
id={this.props.input?.id}
|
|
91
|
+
name={this.props.input?.name}
|
|
90
92
|
type={this.state.show ? "text" : "password"}
|
|
91
|
-
className={StylesNSBox.ns_box_input}
|
|
93
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
92
94
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
93
95
|
value={this.state.value ?? ""}
|
|
94
96
|
onChange={e => this.setValue(e.target.value)}
|
|
95
97
|
onClick={() => { this.props.onClicked?.(this); }}
|
|
96
98
|
style={{
|
|
97
99
|
background: `url("https://static.namirasoft.com/image/concept/type/password.png") white no-repeat scroll center right 4px`,
|
|
98
|
-
backgroundSize: "24px"
|
|
100
|
+
backgroundSize: "24px",
|
|
101
|
+
...this.props.input?.style
|
|
99
102
|
}}
|
|
100
103
|
/>
|
|
101
104
|
</NSBoxBaseLayout>
|
|
@@ -11,6 +11,7 @@ import { INSBox } from "./INSBox";
|
|
|
11
11
|
export interface NSBoxRadioProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<boolean, NSBoxRadio>
|
|
12
12
|
{
|
|
13
13
|
checked?: boolean;
|
|
14
|
+
input?: IBaseComponentProps;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export interface NSBoxRadioState
|
|
@@ -70,15 +71,16 @@ export class NSBoxRadio extends React.Component<NSBoxRadioProps, NSBoxRadioState
|
|
|
70
71
|
title=""
|
|
71
72
|
menu={menu}
|
|
72
73
|
>
|
|
73
|
-
<label className={`ns-font-16-normal ${Styles.ns_box_radio_label}`} htmlFor={this.props.name}>
|
|
74
|
+
<label className={`ns-font-16-normal ${Styles.ns_box_radio_label}`} htmlFor={this.props.input?.name}>
|
|
74
75
|
<input
|
|
75
|
-
id={this.props.id}
|
|
76
|
-
name={this.props.name}
|
|
76
|
+
id={this.props.input?.id}
|
|
77
|
+
name={this.props.input?.name}
|
|
77
78
|
type="radio"
|
|
78
|
-
className={Styles.ns_box_radio_input}
|
|
79
|
+
className={`${Styles.ns_box_radio_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
79
80
|
checked={this.state.value}
|
|
80
81
|
onChange={e => this.setValue(e.target.checked)}
|
|
81
82
|
onClick={() => { this.props.onClicked?.(this); }}
|
|
83
|
+
style={this.props.input?.style}
|
|
82
84
|
/>
|
|
83
85
|
<span style={{ width: "0px" }}></span>
|
|
84
86
|
{this.props.hideHeader && this.props.required && <span style={{ color: "red" }}>*</span>}
|
|
@@ -18,6 +18,7 @@ export interface NSBoxSearchProps extends IBaseComponentProps, IValidationProps,
|
|
|
18
18
|
hideHeader?: boolean;
|
|
19
19
|
onChanged?: (e: NSBoxSearch, callback?: () => void) => void;
|
|
20
20
|
onClicked?: (e: NSBoxSearch) => void;
|
|
21
|
+
input?: IBaseComponentProps;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export interface NSBoxSearchState
|
|
@@ -77,10 +78,10 @@ export class NSBoxSearch extends React.Component<NSBoxSearchProps, NSBoxSearchSt
|
|
|
77
78
|
>
|
|
78
79
|
<input
|
|
79
80
|
ref={this.input}
|
|
80
|
-
id={this.props.id}
|
|
81
|
-
name={this.props.name}
|
|
81
|
+
id={this.props.input?.id}
|
|
82
|
+
name={this.props.input?.name}
|
|
82
83
|
type="text"
|
|
83
|
-
className={StylesNSBox.ns_box_input}
|
|
84
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
84
85
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
85
86
|
value={this.state.value ?? ""}
|
|
86
87
|
onChange={e => this.setValue(e.target.value)}
|
|
@@ -88,6 +89,7 @@ export class NSBoxSearch extends React.Component<NSBoxSearchProps, NSBoxSearchSt
|
|
|
88
89
|
style={{
|
|
89
90
|
background: `url(${"https://static.namirasoft.com/image/concept/search/blue.svg"}) white no-repeat scroll center right 4px`,
|
|
90
91
|
backgroundSize: "24px",
|
|
92
|
+
...this.props.input?.style
|
|
91
93
|
}}
|
|
92
94
|
/>
|
|
93
95
|
</NSBoxBaseLayout>
|
|
@@ -11,7 +11,9 @@ import { INSBox } from "./INSBox";
|
|
|
11
11
|
import { safeMenuMenuItem } from "./NSMenuButton";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxStringProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxString>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxStringState
|
|
17
19
|
{
|
|
@@ -68,10 +70,10 @@ export class NSBoxString extends React.Component<NSBoxStringProps, NSBoxStringSt
|
|
|
68
70
|
menu={menu}
|
|
69
71
|
>
|
|
70
72
|
<input
|
|
71
|
-
id={this.props.id}
|
|
72
|
-
name={this.props.name}
|
|
73
|
+
id={this.props.input?.id}
|
|
74
|
+
name={this.props.input?.name}
|
|
73
75
|
type="text"
|
|
74
|
-
className={StylesNSBox.ns_box_input}
|
|
76
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
75
77
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
76
78
|
value={this.state.value ?? ""}
|
|
77
79
|
onChange={e => this.setValue(e.target.value)}
|
|
@@ -80,7 +82,8 @@ export class NSBoxString extends React.Component<NSBoxStringProps, NSBoxStringSt
|
|
|
80
82
|
maxLength={this.props.max_length}
|
|
81
83
|
style={{
|
|
82
84
|
background: `url("https://static.namirasoft.com/image/concept/type/string.png") white no-repeat scroll center right 4px`,
|
|
83
|
-
backgroundSize: "24px"
|
|
85
|
+
backgroundSize: "24px",
|
|
86
|
+
...this.props.input?.style
|
|
84
87
|
}}
|
|
85
88
|
/>
|
|
86
89
|
</NSBoxBaseLayout>
|
|
@@ -15,6 +15,7 @@ export interface NSBoxTextAreaProps extends IBaseComponentProps, IValidationProp
|
|
|
15
15
|
{
|
|
16
16
|
cols?: number;
|
|
17
17
|
rows?: number;
|
|
18
|
+
textarea?: IBaseComponentProps;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export interface NSBoxTextAreaState
|
|
@@ -75,12 +76,12 @@ export class NSBoxTextArea extends React.Component<NSBoxTextAreaProps, NSBoxText
|
|
|
75
76
|
>
|
|
76
77
|
<textarea
|
|
77
78
|
ref={this.textarea}
|
|
78
|
-
id={this.props.id}
|
|
79
|
-
name={this.props.name}
|
|
79
|
+
id={this.props.textarea?.id}
|
|
80
|
+
name={this.props.textarea?.name}
|
|
80
81
|
cols={this.props.cols}
|
|
81
82
|
rows={this.props.rows ?? 5}
|
|
82
83
|
value={this.state.value ?? ""}
|
|
83
|
-
className={Styles.ns_box_text_area}
|
|
84
|
+
className={`${Styles.ns_box_text_area} ${this.props.textarea?.classList?.join(" ") ?? ""}`}
|
|
84
85
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
85
86
|
onChange={e => this.setValue(e.target.value)}
|
|
86
87
|
onClick={() => { this.props.onClicked?.(this); }}
|
|
@@ -88,7 +89,8 @@ export class NSBoxTextArea extends React.Component<NSBoxTextAreaProps, NSBoxText
|
|
|
88
89
|
height: "100%",
|
|
89
90
|
background: `url("https://static.namirasoft.com/image/concept/type/string.png") white no-repeat scroll top right 4px `,
|
|
90
91
|
backgroundPositionY: "4px",
|
|
91
|
-
backgroundSize: "24px"
|
|
92
|
+
backgroundSize: "24px",
|
|
93
|
+
...this.props.textarea?.style
|
|
92
94
|
}}
|
|
93
95
|
/>
|
|
94
96
|
</NSBoxBaseLayout>
|
|
@@ -13,7 +13,9 @@ import { NamingConvention } from "namirasoft-core";
|
|
|
13
13
|
import { INSBox } from "./INSBox";
|
|
14
14
|
|
|
15
15
|
export interface NSBoxTimeProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxTime>
|
|
16
|
-
{
|
|
16
|
+
{
|
|
17
|
+
input?: IBaseComponentProps;
|
|
18
|
+
}
|
|
17
19
|
|
|
18
20
|
export interface NSBoxTimeState
|
|
19
21
|
{
|
|
@@ -70,10 +72,10 @@ export class NSBoxTime extends React.Component<NSBoxTimeProps, NSBoxTimeState> i
|
|
|
70
72
|
menu={menu}
|
|
71
73
|
>
|
|
72
74
|
<input
|
|
73
|
-
id={this.props.id}
|
|
74
|
-
name={this.props.name}
|
|
75
|
+
id={this.props.input?.id}
|
|
76
|
+
name={this.props.input?.name}
|
|
75
77
|
type="time"
|
|
76
|
-
className={StylesNSBox.ns_box_input}
|
|
78
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
77
79
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
78
80
|
value={this.state.value ?? ""}
|
|
79
81
|
onChange={e => this.setValue(e.target.value)}
|
|
@@ -82,7 +84,8 @@ export class NSBoxTime extends React.Component<NSBoxTimeProps, NSBoxTimeState> i
|
|
|
82
84
|
style={{
|
|
83
85
|
background: `url("https://static.namirasoft.com/image/concept/type/time.png") white no-repeat scroll center right 4px`,
|
|
84
86
|
backgroundSize: "24px",
|
|
85
|
-
paddingRight: "7px"
|
|
87
|
+
paddingRight: "7px",
|
|
88
|
+
...this.props.input?.style
|
|
86
89
|
}}
|
|
87
90
|
/>
|
|
88
91
|
</NSBoxBaseLayout>
|
|
@@ -11,7 +11,9 @@ import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
|
11
11
|
import { INSBox } from "./INSBox";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxTimeZoneProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxTimeZone>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxTimeZoneState
|
|
17
19
|
{
|
|
@@ -67,17 +69,18 @@ export class NSBoxTimeZone extends React.Component<NSBoxTimeZoneProps, NSBoxTime
|
|
|
67
69
|
menu={menu}
|
|
68
70
|
>
|
|
69
71
|
<div
|
|
70
|
-
id={this.props.id}
|
|
71
|
-
// name={this.props.name}
|
|
72
|
+
id={this.props.input?.id}
|
|
73
|
+
// name={this.props.input?.name}
|
|
72
74
|
// type="text"
|
|
73
|
-
className={StylesNSBox.ns_box_input}
|
|
75
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
74
76
|
// placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
75
77
|
// value={this.state.value ?? ""}
|
|
76
78
|
// // onChange={e => this.setValue(e.target.value)}
|
|
77
79
|
// onClick={() => { this.props.onClicked?.(this); }}
|
|
78
80
|
style={{
|
|
79
81
|
background: `url("https://static.namirasoft.com/image/concept/type/timezone.png") white no-repeat scroll center right 4px`,
|
|
80
|
-
backgroundSize: "24px"
|
|
82
|
+
backgroundSize: "24px",
|
|
83
|
+
...this.props.input?.style
|
|
81
84
|
}}
|
|
82
85
|
>
|
|
83
86
|
Not implemented
|
|
@@ -11,7 +11,9 @@ import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
|
11
11
|
import { INSBox } from "./INSBox";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxURLProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxURL>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxURLState
|
|
17
19
|
{
|
|
@@ -68,17 +70,18 @@ export class NSBoxURL extends React.Component<NSBoxURLProps, NSBoxURLState> impl
|
|
|
68
70
|
menu={menu}
|
|
69
71
|
>
|
|
70
72
|
<div
|
|
71
|
-
id={this.props.id}
|
|
72
|
-
// name={this.props.name}
|
|
73
|
+
id={this.props.input?.id}
|
|
74
|
+
// name={this.props.input?.name}
|
|
73
75
|
// type="text"
|
|
74
|
-
className={StylesNSBox.ns_box_input}
|
|
76
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
75
77
|
// placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
76
78
|
// value={this.state.value ?? ""}
|
|
77
79
|
// // onChange={e => this.setValue(e.target.value)}
|
|
78
80
|
// onClick={() => { this.props.onClicked?.(this); }}
|
|
79
81
|
style={{
|
|
80
82
|
background: `url("https://static.namirasoft.com/image/concept/type/url.png") white no-repeat scroll center right 4px`,
|
|
81
|
-
backgroundSize: "24px"
|
|
83
|
+
backgroundSize: "24px",
|
|
84
|
+
...this.props.input?.style
|
|
82
85
|
}}
|
|
83
86
|
>
|
|
84
87
|
Not implemented
|
|
@@ -11,7 +11,9 @@ import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
|
11
11
|
import { INSBox } from "./INSBox";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxVersionProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxVersion>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxVersionState
|
|
17
19
|
{
|
|
@@ -67,17 +69,18 @@ export class NSBoxVersion extends React.Component<NSBoxVersionProps, NSBoxVersio
|
|
|
67
69
|
menu={menu}
|
|
68
70
|
>
|
|
69
71
|
<div
|
|
70
|
-
id={this.props.id}
|
|
71
|
-
// name={this.props.name}
|
|
72
|
+
id={this.props.input?.id}
|
|
73
|
+
// name={this.props.input?.name}
|
|
72
74
|
// type="text"
|
|
73
|
-
className={StylesNSBox.ns_box_input}
|
|
75
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
74
76
|
// placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
75
77
|
// value={this.state.value ?? ""}
|
|
76
78
|
// // onChange={e => this.setValue(e.target.value)}
|
|
77
79
|
// onClick={() => { this.props.onClicked?.(this); }}
|
|
78
80
|
style={{
|
|
79
81
|
background: `url("https://static.namirasoft.com/image/concept/type/version.png") white no-repeat scroll center right 4px`,
|
|
80
|
-
backgroundSize: "24px"
|
|
82
|
+
backgroundSize: "24px",
|
|
83
|
+
...this.props.input?.style
|
|
81
84
|
}}
|
|
82
85
|
>
|
|
83
86
|
Not implemented
|