namirasoft-site-react 1.4.268 → 1.4.298

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.
@@ -11,7 +11,7 @@ export class MoneyFormatter extends BaseColumnFormatter {
11
11
  format(value) {
12
12
  try {
13
13
  if (value != null)
14
- return this.dollor_sigh + PriceOperation.toNormal(value).toLocaleString(undefined, {
14
+ return this.dollor_sigh + PriceOperation.toNormal(value, this.maximumFractionDigits).toLocaleString(undefined, {
15
15
  minimumFractionDigits: this.minimumFractionDigits,
16
16
  maximumFractionDigits: this.maximumFractionDigits
17
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyFormatter.js","sourceRoot":"","sources":["../../src/formatter/MoneyFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,cAAe,SAAQ,mBAAmB;IAKnD,YAAY,QAAgB,OAAO,EAAE,cAAsB,GAAG,EAAE,wBAAgC,CAAC,EAAE,wBAAgC,CAAC;QAEhI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACvD,CAAC;IACQ,MAAM,CAAC,KAAU;QAEtB,IACA,CAAC;YACG,IAAI,KAAK,IAAI,IAAI;gBACb,OAAO,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,KAAe,CAAC,CAAC,cAAc,CAAC,SAAS,EAAE;oBACzF,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;oBACjD,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;iBACpD,CAAC,CAAC;QACX,CAAC;QAAC,OAAO,CAAC,EACV,CAAC;QACD,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"}
1
+ {"version":3,"file":"MoneyFormatter.js","sourceRoot":"","sources":["../../src/formatter/MoneyFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,OAAO,cAAe,SAAQ,mBAAmB;IAKnD,YAAY,QAAgB,OAAO,EAAE,cAAsB,GAAG,EAAE,wBAAgC,CAAC,EAAE,wBAAgC,CAAC;QAEhI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACvD,CAAC;IACQ,MAAM,CAAC,KAAU;QAEtB,IACA,CAAC;YACG,IAAI,KAAK,IAAI,IAAI;gBACb,OAAO,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,KAAe,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC,cAAc,CAAC,SAAS,EAAE;oBACrH,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;oBACjD,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;iBACpD,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.268",
11
+ "version": "1.4.298",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -34,7 +34,7 @@
34
34
  "link-react": "^3.0.0",
35
35
  "namirasoft-api-link": "^1.4.11",
36
36
  "namirasoft-api-product": "^1.4.17",
37
- "namirasoft-core": "^1.4.51",
37
+ "namirasoft-core": "^1.4.52",
38
38
  "namirasoft-schema": "^1.4.25",
39
39
  "namirasoft-site-map": "^1.4.14",
40
40
  "os-browserify": "^0.3.0",
@@ -19,7 +19,7 @@ export class MoneyFormatter extends BaseColumnFormatter
19
19
  try
20
20
  {
21
21
  if (value != null)
22
- return this.dollor_sigh + PriceOperation.toNormal(value as number).toLocaleString(undefined, {
22
+ return this.dollor_sigh + PriceOperation.toNormal(value as number, this.maximumFractionDigits).toLocaleString(undefined, {
23
23
  minimumFractionDigits: this.minimumFractionDigits,
24
24
  maximumFractionDigits: this.maximumFractionDigits
25
25
  });