jpf 4.0.20 → 4.0.22

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/README.md CHANGED
@@ -13,9 +13,9 @@ The tooling support to make sure that the View with its binding expressions is i
13
13
  #### So the main goals for this library are:
14
14
 
15
15
  1. **Support the MVVM design pattern**
16
- 1. **Have a clear separation between GUI logic and presentation. Separation of concern View, ViewModel**
17
- 1. **Being able to change the presentation without affecting the GUI logic. Change the View without affecting the ViewModel**
16
+ 1. **Have a clear separation between GUI logic and presentation. Clear separation of concern between View and ViewModel**
17
+ 1. **Being able to change the presentation without affecting the GUI logic. Changing the View without affecting the ViewModel**
18
18
  1. **Sharing the same GUI logic for multiple presentations. Having one ViewModel with multiple Views for example for Desktop and Mobile**
19
19
  1. **Eliminate the use of text based templating**
20
- 1. **Support binding expression checking at compile time**
20
+ 1. **Support binding expression checking at development time instead of runtime**
21
21
  1. **Discover programming errors at compile time instead of runtime**
@@ -0,0 +1,9 @@
1
+ export declare function convertDatareaderResultToObjectArray<T>(dataReaderResult: IDataReaderResult): Array<T>;
2
+ export interface IDataReaderColumn {
3
+ field?: string;
4
+ datatype?: string;
5
+ }
6
+ export interface IDataReaderResult {
7
+ rows: Array<Array<any>>;
8
+ columns: Array<IDataReaderColumn>;
9
+ }
@@ -0,0 +1,24 @@
1
+ export function convertDatareaderResultToObjectArray(dataReaderResult) {
2
+ const objects = new Array();
3
+ dataReaderResult.rows.forEach((row) => {
4
+ const object = {};
5
+ for (let index = 0; index < dataReaderResult.columns.length; index++) {
6
+ const column = dataReaderResult.columns[index];
7
+ if (column.datatype === "Date") {
8
+ const value = row[index];
9
+ if (value) {
10
+ object[column.field] = new Date(value);
11
+ }
12
+ else {
13
+ object[column.field] = null;
14
+ }
15
+ }
16
+ else {
17
+ object[column.field] = row[index];
18
+ }
19
+ }
20
+ objects.push(object);
21
+ });
22
+ return objects;
23
+ }
24
+ //# sourceMappingURL=readerResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readerResult.js","sourceRoot":"","sources":["../../../src/utilities/readerResult/readerResult.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,oCAAoC,CAAI,gBAAmC;IACvF,MAAM,OAAO,GAAG,IAAI,KAAK,EAAK,CAAC;IAE/B,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAe,EAAE,EAAE;QAC9C,MAAM,MAAM,GAAG,EAAO,CAAC;QACvB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YAClE,MAAM,MAAM,GAAG,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC/C,IAAI,MAAM,CAAC,QAAQ,KAAK,MAAM,EAAE;gBAC5B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;gBACzB,IAAI,KAAK,EAAE;oBACP,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC1C;qBAAM;oBACH,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;iBAC/B;aACJ;iBAAM;gBACH,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;aACrC;SACJ;QACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jpf",
3
- "version": "4.0.20",
3
+ "version": "4.0.22",
4
4
  "description": "Javascript Presentation Foundation",
5
5
  "keywords": [
6
6
  "mvvm",
@@ -35,7 +35,7 @@
35
35
  "npmAuditFix": "npm audit fix",
36
36
  "npmAuditFixForce": "npm audit fix --force",
37
37
  "npmCacheClean": "npm cache clean --force",
38
- "npmPublish": "tsc & npm publish --otp=558615",
38
+ "npmPublish": "tsc & npm publish --otp=898605",
39
39
  "npmLogin": "npm login",
40
40
  "npmWhoAmI": "npm whoami",
41
41
  "npmAddUser": "npm adduser",