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
|
@@ -5,6 +5,7 @@ import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
|
5
5
|
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
6
6
|
import { INSBox } from "./INSBox";
|
|
7
7
|
export interface NSBoxURLProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxURL> {
|
|
8
|
+
input?: IBaseComponentProps;
|
|
8
9
|
}
|
|
9
10
|
export interface NSBoxURLState {
|
|
10
11
|
value: string | null;
|
|
@@ -36,13 +36,11 @@ export class NSBoxURL extends React.Component {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
+
var _a, _b, _c, _d, _e;
|
|
39
40
|
let menu = safeMenuMenuItem(this.props, () => { });
|
|
40
41
|
menu.builtin.copy = { enabled: true, getValue: () => { var _a; return (_a = this.state.value) !== null && _a !== void 0 ? _a : ""; } };
|
|
41
42
|
menu.builtin.fullscreen = { enabled: true, getValue: () => { var _a; return (_a = this.state.value) !== null && _a !== void 0 ? _a : ""; }, setValue: this.setValue };
|
|
42
|
-
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { menu: menu, children: _jsx("div", { id: this.props.id, className: StylesNSBox.ns_box_input, style:
|
|
43
|
-
background: `url("https://static.namirasoft.com/image/concept/type/url.png") white no-repeat scroll center right 4px`,
|
|
44
|
-
backgroundSize: "24px"
|
|
45
|
-
}, children: "Not implemented" }) })));
|
|
43
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { menu: menu, children: _jsx("div", { id: (_a = this.props.input) === null || _a === void 0 ? void 0 : _a.id, className: `${StylesNSBox.ns_box_input} ${(_d = (_c = (_b = this.props.input) === null || _b === void 0 ? void 0 : _b.classList) === null || _c === void 0 ? void 0 : _c.join(" ")) !== null && _d !== void 0 ? _d : ""}`, style: Object.assign({ background: `url("https://static.namirasoft.com/image/concept/type/url.png") white no-repeat scroll center right 4px`, backgroundSize: "24px" }, (_e = this.props.input) === null || _e === void 0 ? void 0 : _e.style), children: "Not implemented" }) })));
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
//# sourceMappingURL=NSBoxURL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxURL.js","sourceRoot":"","sources":["../../src/components/NSBoxURL.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAyB,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"NSBoxURL.js","sourceRoot":"","sources":["../../src/components/NSBoxURL.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAyB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAa3E,MAAM,OAAO,QAAS,SAAQ,KAAK,CAAC,SAAuC;IAG1E,YAAY,KAAoB;;QAE/B,KAAK,CAAC,KAAK,CAAC,CAAC;QAHd,yBAAoB,GAAG,SAAS,EAAmB,CAAC;QAInD,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,IAAI,EAAE,CAAC;QACnD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,I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,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,EAAE,CAAA,EAAA,EAAE,CAAC;QAC9E,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,EAAE,CAAA,EAAA,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;QAE7G,OAAO,CACN,KAAC,eAAe,kBACf,GAAG,EAAE,IAAI,CAAC,oBAAoB,IAC1B,IAAI,CAAC,KAAK,IACd,IAAI,EAAE,IAAI,YAEV,cACC,EAAE,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,EAAE,EAGxB,SAAS,EAAE,GAAG,WAAW,CAAC,YAAY,IAAI,MAAA,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,EAKxF,KAAK,kBACJ,UAAU,EAAE,yGAAyG,EACrH,cAAc,EAAE,MAAM,IACnB,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,KAAK,iCAItB,IACW,CAClB,CAAC;IACH,CAAC;CACD"}
|
|
@@ -5,6 +5,7 @@ import { IValidationStringProps } from "../props/IValidationStringProps";
|
|
|
5
5
|
import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
6
6
|
import { INSBox } from "./INSBox";
|
|
7
7
|
export interface NSBoxVersionProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxVersion> {
|
|
8
|
+
input?: IBaseComponentProps;
|
|
8
9
|
}
|
|
9
10
|
export interface NSBoxVersionState {
|
|
10
11
|
value: string | null;
|
|
@@ -36,12 +36,10 @@ export class NSBoxVersion extends React.Component {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
+
var _a, _b, _c, _d, _e;
|
|
39
40
|
let menu = safeMenuMenuItem(this.props, () => { });
|
|
40
41
|
menu.builtin.copy = { enabled: true, getValue: () => { var _a; return (_a = this.state.value) !== null && _a !== void 0 ? _a : ""; } };
|
|
41
|
-
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { menu: menu, children: _jsx("div", { id: this.props.id, className: StylesNSBox.ns_box_input, style:
|
|
42
|
-
background: `url("https://static.namirasoft.com/image/concept/type/version.png") white no-repeat scroll center right 4px`,
|
|
43
|
-
backgroundSize: "24px"
|
|
44
|
-
}, children: "Not implemented" }) })));
|
|
42
|
+
return (_jsx(NSBoxBaseLayout, Object.assign({ ref: this.NSBoxBaseLayout_Main }, this.props, { menu: menu, children: _jsx("div", { id: (_a = this.props.input) === null || _a === void 0 ? void 0 : _a.id, className: `${StylesNSBox.ns_box_input} ${(_d = (_c = (_b = this.props.input) === null || _b === void 0 ? void 0 : _b.classList) === null || _c === void 0 ? void 0 : _c.join(" ")) !== null && _d !== void 0 ? _d : ""}`, style: Object.assign({ background: `url("https://static.namirasoft.com/image/concept/type/version.png") white no-repeat scroll center right 4px`, backgroundSize: "24px" }, (_e = this.props.input) === null || _e === void 0 ? void 0 : _e.style), children: "Not implemented" }) })));
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
//# sourceMappingURL=NSBoxVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxVersion.js","sourceRoot":"","sources":["../../src/components/NSBoxVersion.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAI7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,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,GAAG,WAAW,CAAC,YAAY,IAAI,MAAA,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,EAKxF,KAAK,kBACJ,UAAU,EAAE,6GAA6G,EACzH,cAAc,EAAE,MAAM,IACnB,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,0CAAE,KAAK,iCAItB,IACW,CAClB,CAAC;IACH,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -59,13 +59,10 @@ export class NSBoxBaseLayout extends React.Component<NSBoxBaseLayoutProps, NSBox
|
|
|
59
59
|
}
|
|
60
60
|
override render()
|
|
61
61
|
{
|
|
62
|
-
let id = undefined;
|
|
63
|
-
if (this.props.id)
|
|
64
|
-
id = this.props.id + "_parent";
|
|
65
62
|
return (
|
|
66
63
|
<>
|
|
67
64
|
<div
|
|
68
|
-
id={id}
|
|
65
|
+
id={this.props.id}
|
|
69
66
|
className={`${StylesNSBox.ns_box_input_parent} ${this.props.classList?.join(" ") ?? ""}`}
|
|
70
67
|
style={this.props.style}
|
|
71
68
|
onKeyUp={e =>
|
|
@@ -12,6 +12,7 @@ import { INSBox } from "./INSBox";
|
|
|
12
12
|
export interface NSBoxBooleanProps extends IBaseComponentProps, IValidationProps, INSBoxBaseLayoutProps<boolean, NSBoxBoolean>
|
|
13
13
|
{
|
|
14
14
|
checked?: (boolean | null);
|
|
15
|
+
input?: IBaseComponentProps;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export interface NSBoxBooleanState
|
|
@@ -100,13 +101,14 @@ export class NSBoxBoolean extends React.Component<NSBoxBooleanProps, NSBoxBoolea
|
|
|
100
101
|
htmlFor={this.props.name}
|
|
101
102
|
>
|
|
102
103
|
<input
|
|
103
|
-
id={this.props.id}
|
|
104
|
-
name={this.props.name}
|
|
104
|
+
id={this.props.input?.id}
|
|
105
|
+
name={this.props.input?.name}
|
|
105
106
|
type="checkbox"
|
|
106
|
-
className={`${Styles.ns_box_boolean_input} ${this.state.value == null ? Styles.ns_box_boolean_indeterminate : ""}`}
|
|
107
|
+
className={`${Styles.ns_box_boolean_input} ${this.state.value == null ? Styles.ns_box_boolean_indeterminate : ""} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
107
108
|
checked={this.state.value ?? false}
|
|
108
109
|
onChange={e => this.setValue(e.target.checked)}
|
|
109
110
|
onClick={() => { this.props.onClicked?.(this); }}
|
|
111
|
+
style={this.props.input?.style}
|
|
110
112
|
/>
|
|
111
113
|
<span style={{ width: "0px" }}></span>
|
|
112
114
|
{this.props.hideHeader && this.props.required && <span style={{ color: "red" }}>*</span>}
|
|
@@ -11,7 +11,9 @@ import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
|
11
11
|
import { INSBox } from "./INSBox";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxColorProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxColor>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxColorState
|
|
17
19
|
{
|
|
@@ -67,17 +69,18 @@ export class NSBoxColor extends React.Component<NSBoxColorProps, NSBoxColorState
|
|
|
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/color.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
|
|
@@ -9,6 +9,7 @@ import { INSBox } from "./INSBox";
|
|
|
9
9
|
export interface NSBoxComboProps extends IBaseComponentProps, IValidationProps, INSBoxBaseComboProps<NSBoxCombo>
|
|
10
10
|
{
|
|
11
11
|
getOptions: () => NSBoxBaseComboOption[];
|
|
12
|
+
input?: IBaseComponentProps;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export class NSBoxCombo extends React.Component<NSBoxComboProps> implements INSBox
|
|
@@ -12,7 +12,9 @@ import { NamingConvention } from "namirasoft-core";
|
|
|
12
12
|
import { INSBox } from "./INSBox";
|
|
13
13
|
|
|
14
14
|
export interface NSBoxDateProps extends IBaseComponentProps, IValidationProps, INSBoxBaseLayoutProps<string, NSBoxDate>
|
|
15
|
-
{
|
|
15
|
+
{
|
|
16
|
+
input?: IBaseComponentProps;
|
|
17
|
+
}
|
|
16
18
|
|
|
17
19
|
export interface NSBoxDateState
|
|
18
20
|
{
|
|
@@ -68,10 +70,10 @@ export class NSBoxDate extends React.Component<NSBoxDateProps, NSBoxDateState> i
|
|
|
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="date"
|
|
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)}
|
|
@@ -79,7 +81,8 @@ export class NSBoxDate extends React.Component<NSBoxDateProps, NSBoxDateState> i
|
|
|
79
81
|
style={{
|
|
80
82
|
background: `url("https://static.namirasoft.com/image/concept/type/date.png") white no-repeat scroll center right 4px`,
|
|
81
83
|
backgroundSize: "24px",
|
|
82
|
-
paddingRight: "8px"
|
|
84
|
+
paddingRight: "8px",
|
|
85
|
+
...this.props.input?.style
|
|
83
86
|
}}
|
|
84
87
|
/>
|
|
85
88
|
</NSBoxBaseLayout>
|
|
@@ -12,7 +12,9 @@ import { NamingConvention } from "namirasoft-core";
|
|
|
12
12
|
import { INSBox } from "./INSBox";
|
|
13
13
|
|
|
14
14
|
export interface NSBoxDateTimeProps extends IBaseComponentProps, IValidationProps, INSBoxBaseLayoutProps<Date, NSBoxDateTime>
|
|
15
|
-
{
|
|
15
|
+
{
|
|
16
|
+
input?: IBaseComponentProps;
|
|
17
|
+
}
|
|
16
18
|
|
|
17
19
|
export interface NSBoxDateTimeState
|
|
18
20
|
{
|
|
@@ -83,10 +85,10 @@ export class NSBoxDateTime extends React.Component<NSBoxDateTimeProps, NSBoxDate
|
|
|
83
85
|
menu={menu}
|
|
84
86
|
>
|
|
85
87
|
<input
|
|
86
|
-
id={this.props.id}
|
|
87
|
-
name={this.props.name}
|
|
88
|
+
id={this.props.input?.id}
|
|
89
|
+
name={this.props.input?.name}
|
|
88
90
|
type="datetime-local"
|
|
89
|
-
className={StylesNSBox.ns_box_input}
|
|
91
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
90
92
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
91
93
|
value={getFormattedValue(this.state.value)}
|
|
92
94
|
onChange={e => this.setValue(e.target.value)}
|
|
@@ -94,7 +96,8 @@ export class NSBoxDateTime extends React.Component<NSBoxDateTimeProps, NSBoxDate
|
|
|
94
96
|
style={{
|
|
95
97
|
background: `url("https://static.namirasoft.com/image/concept/type/date-time.png") white no-repeat scroll center right 4px`,
|
|
96
98
|
backgroundSize: "24px",
|
|
97
|
-
paddingRight: "8px"
|
|
99
|
+
paddingRight: "8px",
|
|
100
|
+
...this.props.input?.style
|
|
98
101
|
}}
|
|
99
102
|
/>
|
|
100
103
|
</NSBoxBaseLayout>
|
|
@@ -13,7 +13,9 @@ import { IValidationPrecisionProps } from "../props/IValidationPrecisionProps";
|
|
|
13
13
|
import { INSBox } from "./INSBox";
|
|
14
14
|
|
|
15
15
|
export interface NSBoxDoubleProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps, IValidationPrecisionProps, INSBoxBaseLayoutProps<number, NSBoxDouble>
|
|
16
|
-
{
|
|
16
|
+
{
|
|
17
|
+
input?: IBaseComponentProps;
|
|
18
|
+
}
|
|
17
19
|
|
|
18
20
|
export interface NSBoxDoubleState
|
|
19
21
|
{
|
|
@@ -69,10 +71,10 @@ export class NSBoxDouble extends React.Component<NSBoxDoubleProps, NSBoxDoubleSt
|
|
|
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))}
|
|
@@ -83,7 +85,8 @@ export class NSBoxDouble extends React.Component<NSBoxDoubleProps, NSBoxDoubleSt
|
|
|
83
85
|
pattern={"[0-9]*[.,]?[0-9]" + (this.props.precision ? `{0,${this.props.precision}}` : "*")}
|
|
84
86
|
style={{
|
|
85
87
|
background: `url("https://static.namirasoft.com/image/concept/type/float.png") white no-repeat scroll center right 4px`,
|
|
86
|
-
backgroundSize: "24px"
|
|
88
|
+
backgroundSize: "24px",
|
|
89
|
+
...this.props.input?.style
|
|
87
90
|
}}
|
|
88
91
|
/>
|
|
89
92
|
</NSBoxBaseLayout>
|
|
@@ -14,7 +14,9 @@ import { NamingConvention } from "namirasoft-core";
|
|
|
14
14
|
import { INSBox } from "./INSBox";
|
|
15
15
|
|
|
16
16
|
export interface NSBoxDurationProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, IValidationNumberProps, INSBoxBaseLayoutProps<string, NSBoxDuration>
|
|
17
|
-
{
|
|
17
|
+
{
|
|
18
|
+
input?: IBaseComponentProps;
|
|
19
|
+
}
|
|
18
20
|
|
|
19
21
|
export interface NSBoxDurationState
|
|
20
22
|
{
|
|
@@ -72,10 +74,10 @@ export class NSBoxDuration extends React.Component<NSBoxDurationProps, NSBoxDura
|
|
|
72
74
|
menu={menu}
|
|
73
75
|
>
|
|
74
76
|
<input
|
|
75
|
-
id={this.props.id}
|
|
76
|
-
name={this.props.name}
|
|
77
|
+
id={this.props.input?.id}
|
|
78
|
+
name={this.props.input?.name}
|
|
77
79
|
type="time"
|
|
78
|
-
className={StylesNSBox.ns_box_input}
|
|
80
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
79
81
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
80
82
|
value={this.state.value ?? ""}
|
|
81
83
|
onChange={e => this.setValue(e.target.value)}
|
|
@@ -84,7 +86,8 @@ export class NSBoxDuration extends React.Component<NSBoxDurationProps, NSBoxDura
|
|
|
84
86
|
style={{
|
|
85
87
|
background: `url("https://static.namirasoft.com/image/concept/type/duration.png") white no-repeat scroll center right 4px`,
|
|
86
88
|
backgroundSize: "24px",
|
|
87
|
-
paddingRight: "7px"
|
|
89
|
+
paddingRight: "7px",
|
|
90
|
+
...this.props.input?.style
|
|
88
91
|
}}
|
|
89
92
|
/>
|
|
90
93
|
</NSBoxBaseLayout>
|
|
@@ -10,11 +10,11 @@ import { INSBox } from "./INSBox";
|
|
|
10
10
|
export interface NSBoxDynamicProps extends IBaseComponentProps, INSBoxBaseLayoutProps<string, NSBoxDynamic>
|
|
11
11
|
{
|
|
12
12
|
variable: BaseVariableSchema;
|
|
13
|
+
input?: IBaseComponentProps;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export interface NSBoxDynamicState
|
|
16
|
-
{
|
|
17
|
-
}
|
|
17
|
+
{ }
|
|
18
18
|
|
|
19
19
|
export class NSBoxDynamic extends React.Component<NSBoxDynamicProps, NSBoxDynamicState> implements INSBox
|
|
20
20
|
{
|
|
@@ -12,6 +12,7 @@ import { INSBox } from "./INSBox";
|
|
|
12
12
|
|
|
13
13
|
export interface NSBoxEmailProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxEmail>
|
|
14
14
|
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export interface NSBoxEmailState
|
|
@@ -78,17 +79,18 @@ export class NSBoxEmail extends React.Component<NSBoxEmailProps, NSBoxEmailState
|
|
|
78
79
|
menu={menu}
|
|
79
80
|
>
|
|
80
81
|
<input
|
|
81
|
-
id={this.props.id}
|
|
82
|
-
name={this.props.name}
|
|
82
|
+
id={this.props.input?.id}
|
|
83
|
+
name={this.props.input?.name}
|
|
83
84
|
type="email"
|
|
84
|
-
className={StylesNSBox.ns_box_input}
|
|
85
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
85
86
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
86
87
|
value={this.state.value ?? ""}
|
|
87
88
|
onChange={e => this.setValue(e.target.value)}
|
|
88
89
|
onClick={() => { this.props.onClicked?.(this); }}
|
|
89
90
|
style={{
|
|
90
91
|
background: `url("https://static.namirasoft.com/image/concept/type/email.png") white no-repeat scroll center right 4px`,
|
|
91
|
-
backgroundSize: "24px"
|
|
92
|
+
backgroundSize: "24px",
|
|
93
|
+
...this.props.input?.style
|
|
92
94
|
}}
|
|
93
95
|
/>
|
|
94
96
|
</NSBoxBaseLayout>
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
import React, { createRef } from "react";
|
|
4
4
|
import { NSBoxBaseCombo, NSBoxBaseComboProps } from "../components/NSBoxBaseCombo";
|
|
5
5
|
import { INSBox } from "./INSBox";
|
|
6
|
+
import { IBaseComponentProps } from "../main";
|
|
6
7
|
|
|
7
8
|
export interface NSBoxEntityProps<Data> extends NSBoxBaseComboProps<Data, NSBoxEntity<Data>>
|
|
8
|
-
{
|
|
9
|
+
{
|
|
10
|
+
input?: IBaseComponentProps;
|
|
11
|
+
}
|
|
9
12
|
|
|
10
13
|
export class NSBoxEntity<Data> extends React.Component<NSBoxEntityProps<Data>> implements INSBox
|
|
11
14
|
{
|
|
@@ -10,6 +10,7 @@ import { INSBox } from "./INSBox";
|
|
|
10
10
|
interface NSBoxEnumProps<Data> extends IBaseComponentProps, IValidationProps, INSBoxBaseComboProps<NSBoxEnum<Data>>
|
|
11
11
|
{
|
|
12
12
|
getEnumObject: () => { [s: string]: Data };
|
|
13
|
+
input?: IBaseComponentProps;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export class NSBoxEnum<Data> extends React.Component<NSBoxEnumProps<Data>> implements INSBox
|
|
@@ -11,7 +11,9 @@ import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
|
11
11
|
import { INSBox } from "./INSBox";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxFilePathProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxFilePath>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxFilePathState
|
|
17
19
|
{
|
|
@@ -67,17 +69,18 @@ export class NSBoxFilePath extends React.Component<NSBoxFilePathProps, NSBoxFile
|
|
|
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: `FilePath("https://static.namirasoft.com/image/concept/type/file-path.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 NSBoxFontProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxFont>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxFontState
|
|
17
19
|
{
|
|
@@ -67,17 +69,18 @@ export class NSBoxFont extends React.Component<NSBoxFontProps, NSBoxFontState> i
|
|
|
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/font.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
|
|
@@ -13,7 +13,9 @@ import { NamingConvention } from "namirasoft-core";
|
|
|
13
13
|
import { INSBox } from "./INSBox";
|
|
14
14
|
|
|
15
15
|
export interface NSBoxIPV4Props extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxIPV4>
|
|
16
|
-
{
|
|
16
|
+
{
|
|
17
|
+
input?: IBaseComponentProps;
|
|
18
|
+
}
|
|
17
19
|
|
|
18
20
|
export interface NSBoxIPV4State
|
|
19
21
|
{
|
|
@@ -70,10 +72,10 @@ export class NSBoxIPV4 extends React.Component<NSBoxIPV4Props, NSBoxIPV4State> 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="text"
|
|
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)}
|
|
@@ -84,7 +86,8 @@ export class NSBoxIPV4 extends React.Component<NSBoxIPV4Props, NSBoxIPV4State> i
|
|
|
84
86
|
pattern={IPV4Schema.REGEX + ""}
|
|
85
87
|
style={{
|
|
86
88
|
background: `url("https://static.namirasoft.com/image/concept/type/ipv4%266.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>
|
|
@@ -11,7 +11,9 @@ import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
|
11
11
|
import { INSBox } from "./INSBox";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxIPV4RangeProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxIPV4Range>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxIPV4RangeState
|
|
17
19
|
{
|
|
@@ -67,17 +69,18 @@ export class NSBoxIPV4Range extends React.Component<NSBoxIPV4RangeProps, NSBoxIP
|
|
|
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/ip-range.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
|
|
@@ -13,7 +13,9 @@ import { NamingConvention } from "namirasoft-core";
|
|
|
13
13
|
import { INSBox } from "./INSBox";
|
|
14
14
|
|
|
15
15
|
export interface NSBoxIPV6Props extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxIPV6>
|
|
16
|
-
{
|
|
16
|
+
{
|
|
17
|
+
input?: IBaseComponentProps;
|
|
18
|
+
}
|
|
17
19
|
|
|
18
20
|
export interface NSBoxIPV6State
|
|
19
21
|
{
|
|
@@ -70,10 +72,10 @@ export class NSBoxIPV6 extends React.Component<NSBoxIPV6Props, NSBoxIPV6State> 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="text"
|
|
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)}
|
|
@@ -81,7 +83,8 @@ export class NSBoxIPV6 extends React.Component<NSBoxIPV6Props, NSBoxIPV6State> i
|
|
|
81
83
|
pattern={IPV6Schema.REGEX + ""}
|
|
82
84
|
style={{
|
|
83
85
|
background: `url("https://static.namirasoft.com/image/concept/type/ipv4%266.png") white no-repeat scroll center right 4px`,
|
|
84
|
-
backgroundSize: "24px"
|
|
86
|
+
backgroundSize: "24px",
|
|
87
|
+
...this.props.input?.style
|
|
85
88
|
}}
|
|
86
89
|
/>
|
|
87
90
|
</NSBoxBaseLayout>
|
|
@@ -11,7 +11,9 @@ import { INSBoxBaseLayoutProps, NSBoxBaseLayout } from "./NSBoxBaseLayout";
|
|
|
11
11
|
import { INSBox } from "./INSBox";
|
|
12
12
|
|
|
13
13
|
export interface NSBoxIPV6RangeProps extends IBaseComponentProps, IValidationProps, IValidationStringProps, INSBoxBaseLayoutProps<string, NSBoxIPV6Range>
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
input?: IBaseComponentProps;
|
|
16
|
+
}
|
|
15
17
|
|
|
16
18
|
export interface NSBoxIPV6RangeState
|
|
17
19
|
{
|
|
@@ -67,17 +69,18 @@ export class NSBoxIPV6Range extends React.Component<NSBoxIPV6RangeProps, NSBoxIP
|
|
|
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/ip-range.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
|
|
@@ -13,6 +13,7 @@ import { INSBox } from "./INSBox";
|
|
|
13
13
|
|
|
14
14
|
export interface NSBoxIntegerProps extends IBaseComponentProps, IValidationProps, IValidationNumberProps, INSBoxBaseLayoutProps<number, NSBoxInteger>
|
|
15
15
|
{
|
|
16
|
+
input?: IBaseComponentProps;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export interface NSBoxIntegerState
|
|
@@ -69,10 +70,10 @@ export class NSBoxInteger extends React.Component<NSBoxIntegerProps, NSBoxIntege
|
|
|
69
70
|
menu={menu}
|
|
70
71
|
>
|
|
71
72
|
<input
|
|
72
|
-
id={this.props.id}
|
|
73
|
-
name={this.props.name}
|
|
73
|
+
id={this.props.input?.id}
|
|
74
|
+
name={this.props.input?.name}
|
|
74
75
|
type="number"
|
|
75
|
-
className={StylesNSBox.ns_box_input}
|
|
76
|
+
className={`${StylesNSBox.ns_box_input} ${this.props.input?.classList?.join(" ") ?? ""}`}
|
|
76
77
|
placeholder={this.props.placeholder ?? `Please enter ${NamingConvention.auto.convert(this.props.title, NamingConvention.lower_case_space)}`}
|
|
77
78
|
value={this.state.value ?? ""}
|
|
78
79
|
onChange={e => this.setValue(parseInt(e.target.value))}
|
|
@@ -81,7 +82,8 @@ export class NSBoxInteger extends React.Component<NSBoxIntegerProps, NSBoxIntege
|
|
|
81
82
|
max={this.props.max}
|
|
82
83
|
style={{
|
|
83
84
|
background: `url("https://static.namirasoft.com/image/concept/type/integer.png") white no-repeat scroll center right 4px`,
|
|
84
|
-
backgroundSize: "24px"
|
|
85
|
+
backgroundSize: "24px",
|
|
86
|
+
...this.props.input?.style
|
|
85
87
|
}}
|
|
86
88
|
/>
|
|
87
89
|
</NSBoxBaseLayout>
|