pict-section-form 1.0.86 → 1.0.87

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.
@@ -14,7 +14,11 @@
14
14
  [
15
15
  "Area = Height * Width",
16
16
  "WidthCubeArea = Width ^ 3",
17
- "HeightCubeArea = Height ^ 3"
17
+ "HeightCubeArea = Height ^ 3",
18
+ "DTPN = Height * Width",
19
+ "ITPNRO = Height * Width",
20
+ "ITDRO = Height * Width",
21
+ "ITPRO = Height * Width"
18
22
  ],
19
23
  "MetaTemplates":
20
24
  [
@@ -81,39 +85,29 @@
81
85
  "Hash":"Area",
82
86
  "DataType":"PreciseNumber"
83
87
 
84
- ,"PictForm": {"InputType": "PreciseNumberReadOnly", "DecimalPrecision": 3, "DigitsPrefix": "$", "DigitsPostfix": " DOllars", "Section":"Area", "Row":4, "Width":2 }
88
+ ,"PictForm": {"Section":"Area", "Row":4, "Width":2 }
85
89
  },
86
90
 
87
- "PreciseNumberOutputExercise":
91
+ "DTPN":
88
92
  {
89
93
  "Name":"DataType PreciseNumber",
90
94
  "Hash":"DTPN",
91
95
  "DataType":"PreciseNumber"
92
96
  ,"PictForm": {"InputType": "PreciseNumberReadOnly", "Section":"Marshaling", "Row":1, "Width":3 }
93
97
  },
94
- "PreciseNumberInputOutputExercise":
98
+ "ITPNRO":
95
99
  {
96
100
  "Name":"InputType PreciseNumberReadOnly",
97
101
  "Hash":"ITPNRO",
98
102
  "DataType":"PreciseNumber",
99
103
  "InputType": "PreciseNumberReadOnly"
100
- ,"PictForm": { "Section":"Marshaling", "Row":1, "Width":3 }
101
- },
102
- "DollarsOutputExercise":
103
- {
104
- "Name":"InputType DollarsReadOnly",
105
- "Hash":"ITDRO",
106
- "DataType":"PreciseNumber",
107
- "InputType": "DollarsReadOnly"
108
- ,"PictForm": { "Section":"Marshaling", "Row":1, "Width":3 }
109
- },
110
- "PercentOutputExercise":
111
- {
112
- "Name":"InputType PercentReadOnly",
113
- "Hash":"ITPRO",
114
- "DataType":"PreciseNumber",
115
- "InputType": "PercentReadOnly"
116
- ,"PictForm": { "Section":"Marshaling", "Row":1, "Width":3 }
104
+ ,"PictForm": {
105
+ "InputType": "PreciseNumberReadOnly",
106
+ "DecimalPrecision": 2,
107
+ "AddCommas": false,
108
+ "DigitsPrefix": "$",
109
+ "DigitsPostfix": " (estimated)",
110
+ "Section":"Marshaling", "Row":1, "Width":3 }
117
111
  }
118
112
  }
119
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-form",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "Pict dynamic form sections",
5
5
  "main": "source/Pict-Section-Form.js",
6
6
  "directories": {
@@ -15,7 +15,7 @@ class CustomInputHandler extends libPictSectionInputExtension
15
15
 
16
16
  /** @type {import('pict')} */
17
17
  this.pict;
18
- /** @type {import('pict') & { Math: any }} */
18
+ /** @type {import('pict') & { Math: any } & { DataFormat: any }} */
19
19
  this.fable;
20
20
  /** @type {any} */
21
21
  this.log;
@@ -42,6 +42,11 @@ class CustomInputHandler extends libPictSectionInputExtension
42
42
  tmpValue = this.fable.Math.roundPrecise(tmpValue, pInput.PictForm.DecimalPrecision, tmpRoundingMethod);
43
43
  }
44
44
 
45
+ if (('AddCommas' in pInput.PictForm) && pInput.PictForm.AddCommas)
46
+ {
47
+ tmpValue = this.fable.DataFormat.formatterAddCommasToNumber(tmpValue);
48
+ }
49
+
45
50
  if ('DigitsPrefix' in pInput.PictForm)
46
51
  {
47
52
  tmpValue = pInput.PictForm.DigitsPrefix + tmpValue;
@@ -10,9 +10,11 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
10
10
  constructor(pFable: any, pOptions: any, pServiceHash: any);
11
11
  /** @type {import('pict')} */
12
12
  pict: import("pict");
13
- /** @type {import('pict') & { Math: any }} */
13
+ /** @type {import('pict') & { Math: any } & { DataFormat: any }} */
14
14
  fable: import("pict") & {
15
15
  Math: any;
16
+ } & {
17
+ DataFormat: any;
16
18
  };
17
19
  /** @type {any} */
18
20
  log: any;
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-Input-PreciseNumber.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-PreciseNumber.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAEC,2DAUC;IANA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6CAA6C;IAC7C,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE,CAC/B;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAGT,0CA+BC;IAED;;;;;;;;;;OAUG;IACH,6EAJW,GAAG,iBACH,MAAM,GACJ,OAAO,CAMnB;IAED;;;;;;;;;;OAUG;IACH,yEALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,GAAG,CAMf;CACD"}
1
+ {"version":3,"file":"Pict-Provider-Input-PreciseNumber.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-PreciseNumber.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAEC,2DAUC;IANA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,mEAAmE;IACnE,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE,GAAG;QAAE,UAAU,EAAE,GAAG,CAAA;KAAE,CACrD;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAGT,0CAoCC;IAED;;;;;;;;;;OAUG;IACH,6EAJW,GAAG,iBACH,MAAM,GACJ,OAAO,CAMnB;IAED;;;;;;;;;;OAUG;IACH,yEALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,GAAG,CAMf;CACD"}