namirasoft-site-react 1.4.573 → 1.4.574

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.
@@ -1,5 +1,6 @@
1
1
  import { BaseColumnFormatter } from "./BaseColumnFormatter";
2
2
  export declare class FloatFormatter extends BaseColumnFormatter {
3
- constructor(width?: string);
3
+ private maximumFractionDigits?;
4
+ constructor(width?: string, maximumFractionDigits?: number | undefined);
4
5
  format(value: any): any;
5
6
  }
@@ -1,15 +1,17 @@
1
1
  import { BaseColumnFormatter } from "./BaseColumnFormatter";
2
2
  export class FloatFormatter extends BaseColumnFormatter {
3
- constructor(width = "125px") {
3
+ constructor(width = "125px", maximumFractionDigits) {
4
4
  super();
5
+ this.maximumFractionDigits = maximumFractionDigits;
5
6
  this.width = width;
6
7
  }
7
8
  format(value) {
9
+ var _a;
8
10
  try {
9
11
  if (value != null)
10
12
  return value.toLocaleString(undefined, {
11
13
  minimumFractionDigits: 0,
12
- maximumFractionDigits: 100
14
+ maximumFractionDigits: (_a = this.maximumFractionDigits) !== null && _a !== void 0 ? _a : 100
13
15
  });
14
16
  }
15
17
  catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"FloatFormatter.js","sourceRoot":"","sources":["../../src/formatter/FloatFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,cAAe,SAAQ,mBAAmB;IAEnD,YAAY,QAAgB,OAAO;QAE/B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IACQ,MAAM,CAAC,KAAU;QAEtB,IACA,CAAC;YACG,IAAI,KAAK,IAAI,IAAI;gBACb,OAAQ,KAAgB,CAAC,cAAc,CAAC,SAAS,EAAE;oBAC/C,qBAAqB,EAAE,CAAC;oBACxB,qBAAqB,EAAE,GAAG;iBAC7B,CAAC,CAAC;QACX,CAAC;QAAC,OAAO,CAAC,EACV,CAAC;QACD,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"}
1
+ {"version":3,"file":"FloatFormatter.js","sourceRoot":"","sources":["../../src/formatter/FloatFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,cAAe,SAAQ,mBAAmB;IAEnD,YAAY,QAAgB,OAAO,EAAU,qBAA8B;QAEvE,KAAK,EAAE,CAAC;QAFiC,0BAAqB,GAArB,qBAAqB,CAAS;QAGvE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IACQ,MAAM,CAAC,KAAU;;QAEtB,IACA,CAAC;YACG,IAAI,KAAK,IAAI,IAAI;gBACb,OAAQ,KAAgB,CAAC,cAAc,CAAC,SAAS,EAAE;oBAC/C,qBAAqB,EAAE,CAAC;oBACxB,qBAAqB,EAAE,MAAA,IAAI,CAAC,qBAAqB,mCAAI,GAAG;iBAC3D,CAAC,CAAC;QACX,CAAC;QAAC,OAAO,CAAC,EACV,CAAC;QACD,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.573",
11
+ "version": "1.4.574",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -21,7 +21,7 @@
21
21
  "copy": "copyfiles -u 1 \"src/**/*.html\" \"src/**/*.css\" \"src/**/*.svg\" \"src/**/*.png\" \"src/**/*.jpg\" dist/"
22
22
  },
23
23
  "dependencies": {
24
- "@ant-design/icons": "^6.2.5",
24
+ "@ant-design/icons": "^6.3.1",
25
25
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
26
26
  "@babel/plugin-transform-private-property-in-object": "^7.29.7",
27
27
  "@types/node": "^26.0.1",
@@ -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.107.2",
59
+ "webpack": "^5.108.1",
60
60
  "xlsx": "^0.18.5"
61
61
  },
62
62
  "eslintConfig": {
@@ -2,7 +2,7 @@ import { BaseColumnFormatter } from "./BaseColumnFormatter";
2
2
 
3
3
  export class FloatFormatter extends BaseColumnFormatter
4
4
  {
5
- constructor(width: string = "125px")
5
+ constructor(width: string = "125px", private maximumFractionDigits?: number)
6
6
  {
7
7
  super();
8
8
  this.width = width;
@@ -14,7 +14,7 @@ export class FloatFormatter extends BaseColumnFormatter
14
14
  if (value != null)
15
15
  return (value as number).toLocaleString(undefined, {
16
16
  minimumFractionDigits: 0,
17
- maximumFractionDigits: 100
17
+ maximumFractionDigits: this.maximumFractionDigits ?? 100
18
18
  });
19
19
  } catch (e)
20
20
  {