namirasoft-site-react 1.5.6 → 1.5.7
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.
|
@@ -18,12 +18,10 @@ export class NSBoxDynamic extends React.Component {
|
|
|
18
18
|
return (_b = (_a = this.box_ref.current) === null || _a === void 0 ? void 0 : _a.getError()) !== null && _b !== void 0 ? _b : null;
|
|
19
19
|
}
|
|
20
20
|
getValue(checkError = true) {
|
|
21
|
-
|
|
22
|
-
return this.builder.getValue(checkError);
|
|
21
|
+
return this.builder.getValue(checkError);
|
|
23
22
|
}
|
|
24
23
|
setValue(value, callback) {
|
|
25
|
-
|
|
26
|
-
this.builder.setValue(value, callback);
|
|
24
|
+
this.builder.setValue(value, callback);
|
|
27
25
|
}
|
|
28
26
|
isEmpty(value) {
|
|
29
27
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBoxDynamic.js","sourceRoot":"","sources":["../../src/components/NSBoxDynamic.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAYhC,MAAM,OAAO,YAAa,SAAQ,KAAK,CAAC,SAA+C;IAKtF,YAAY,KAAwB;QAEnC,KAAK,CAAC,KAAK,CAAC,CAAC;QAJN,YAAO,GAAG,SAAS,EAAU,CAAC;QAKrC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACpE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC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IAAI,CAAC,OAAO,CAAC,OAAO,0CAAE,QAAQ,EAAE,mCAAI,IAAI,CAAC;IACjD,CAAC;IACD,QAAQ,CAAC,aAAsB,IAAI;QAGlC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IACD,QAAQ,CAAC,KAAiB,EAAE,QAAqB;QAGhD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,CAAC,KAAU;;QAEjB,OAAO,MAAA,MAAA,IAAI,CAAC,OAAO,CAAC,OAAO,0CAAE,OAAO,CAAC,KAAK,CAAC,mCAAI,IAAI,CAAC;IACrD,CAAC;IACD,WAAW,CAAC,QAAiB;;QAE5B,MAAA,IAAI,CAAC,OAAO,CAAC,OAAO,0CAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACQ,MAAM;QAEd,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG;YACP,OAAO,cACN,KAAK,EAAE;oBACN,OAAO,EAAE,MAAM;oBACf,UAAU,EAAE,QAAQ;oBACpB,cAAc,EAAE,QAAQ;oBACxB,KAAK,EAAE,OAAO;oBACd,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG;oBACxB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG;oBACtB,MAAM,EAAE,iBAAiB;iBACzB,gCACoB,CAAA;QACvB,OAAO,GAAG,CAAC;IACZ,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.5.
|
|
11
|
+
"version": "1.5.7",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/main.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dayjs": "^1.11.21",
|
|
40
40
|
"namirasoft-api-link": "^1.5.0",
|
|
41
41
|
"namirasoft-api-product": "^1.5.0",
|
|
42
|
-
"namirasoft-core": "^1.5.
|
|
42
|
+
"namirasoft-core": "^1.5.2",
|
|
43
43
|
"namirasoft-schema": "^1.5.0",
|
|
44
44
|
"namirasoft-site": "^1.5.0",
|
|
45
45
|
"namirasoft-site-map": "^1.5.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-phone-input-2": "^2.15.1",
|
|
57
57
|
"react-router-dom": "7.9.1",
|
|
58
58
|
"react-scripts": "^5.0.1",
|
|
59
|
-
"webpack": "^5.108.
|
|
59
|
+
"webpack": "^5.108.4",
|
|
60
60
|
"xlsx": "^0.18.5"
|
|
61
61
|
},
|
|
62
62
|
"eslintConfig": {
|
|
@@ -38,26 +38,22 @@ export class NSBoxDynamic extends React.Component<NSBoxDynamicProps, NSBoxDynami
|
|
|
38
38
|
}
|
|
39
39
|
getValue(checkError: boolean = true): any
|
|
40
40
|
{
|
|
41
|
-
|
|
42
|
-
// TODO: nullable must be handled
|
|
43
|
-
|
|
41
|
+
// TODO: nullable must be handled
|
|
44
42
|
return this.builder.getValue(checkError);
|
|
45
43
|
}
|
|
46
44
|
setValue(value: any | null, callback?: () => void): void
|
|
47
45
|
{
|
|
48
|
-
|
|
49
|
-
// TODO: nullable must be handled
|
|
50
|
-
|
|
46
|
+
// TODO: nullable must be handled
|
|
51
47
|
this.builder.setValue(value, callback);
|
|
52
48
|
}
|
|
53
49
|
isEmpty(value: any)
|
|
54
50
|
{
|
|
55
51
|
return this.box_ref.current?.isEmpty(value) ?? true;
|
|
56
52
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
setDisabled(disabled: boolean): void
|
|
54
|
+
{
|
|
55
|
+
this.box_ref.current?.setDisabled(disabled);
|
|
56
|
+
}
|
|
61
57
|
override render()
|
|
62
58
|
{
|
|
63
59
|
let ans = this.builder.runSynch(() => { });
|