@d-mok/quasar-app-extension-quasar-axe 1.0.21 → 1.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/package.json +1 -1
- package/src/utils/ORM/basic.ts +8 -3
- package/src/utils/ORM/rpc.ts +0 -4
package/package.json
CHANGED
package/src/utils/ORM/basic.ts
CHANGED
|
@@ -52,6 +52,11 @@ export abstract class BasicTable<T extends R, R extends object> extends Sheet<T>
|
|
|
52
52
|
*/
|
|
53
53
|
public readonly ordering: Readonly<Ordering<T>> = []
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* The row class (for extracting fields in select)
|
|
57
|
+
*/
|
|
58
|
+
public readonly rowClass: undefined | (new (_: Partial<R>) => R) = undefined
|
|
59
|
+
|
|
55
60
|
|
|
56
61
|
|
|
57
62
|
private convert(data: R[]): T[] {
|
|
@@ -70,9 +75,9 @@ export abstract class BasicTable<T extends R, R extends object> extends Sheet<T>
|
|
|
70
75
|
|
|
71
76
|
|
|
72
77
|
private fields(): string {
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
-
return
|
|
78
|
+
if (this.rowClass === undefined) return '*'
|
|
79
|
+
let newObj = new this.rowClass({})
|
|
80
|
+
return Object.keys(newObj).join(',')
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
|