taon 21.0.10 → 21.0.11
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 +3 -3
- package/browser/package.json +10 -3
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/decorators/classes/controller-config.d.ts +20 -0
- package/lib/decorators/classes/controller-config.js +21 -0
- package/lib/decorators/classes/controller-config.js.map +1 -0
- package/lib/decorators/classes/controller-options.d.ts +16 -0
- package/lib/decorators/classes/controller-options.js +20 -0
- package/lib/decorators/classes/controller-options.js.map +1 -0
- package/lib/formly/formly-group-wrapper-component.d.ts +5 -0
- package/lib/formly/formly-group-wrapper-component.js +51 -0
- package/lib/formly/formly-group-wrapper-component.js.map +1 -0
- package/lib/formly/formly-repeat-component.d.ts +5 -0
- package/lib/formly/formly-repeat-component.js +95 -0
- package/lib/formly/formly-repeat-component.js.map +1 -0
- package/lib/orm.d.ts +68 -0
- package/lib/orm.js +112 -0
- package/lib/orm.js.map +1 -0
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/package.json +2 -1
- package/websql/package.json +10 -3
package/README.md
CHANGED
|
@@ -68,9 +68,9 @@ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo s
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
## Required version of NodeJS
|
|
71
|
-
- Windows 10/11 >=
|
|
72
|
-
- MacOS: >=
|
|
73
|
-
- Linux: >=
|
|
71
|
+
- Windows 10/11 >= v22
|
|
72
|
+
- MacOS: >= v22
|
|
73
|
+
- Linux: >= v22
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
## How to install taon
|
package/browser/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taon/browser",
|
|
3
|
-
"version": "21.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "21.0.11",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^13.2.0",
|
|
6
|
+
"@angular/core": "^13.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"module": "fesm2022/taon-browser.mjs",
|
|
12
|
+
"typings": "types/taon-browser.d.ts",
|
|
6
13
|
"exports": {
|
|
7
14
|
"./package.json": {
|
|
8
15
|
"default": "./package.json"
|
|
@@ -21,6 +21,6 @@ exports.PROJECT_NPM_NAME = 'taon';
|
|
|
21
21
|
/**
|
|
22
22
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
23
23
|
*/
|
|
24
|
-
exports.CURRENT_PACKAGE_VERSION = '21.0.
|
|
24
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.11';
|
|
25
25
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
26
26
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Models } from '../../models';
|
|
2
|
+
import { TaonMiddlewareInheritanceObj } from '../http/http-methods-decorators';
|
|
3
|
+
import { TaonControllerOptions } from './controller-options';
|
|
4
|
+
export declare class ControllerConfig extends TaonControllerOptions {
|
|
5
|
+
methods: {
|
|
6
|
+
[methodName: string]: Models.MethodConfig;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Calculated path from parents controllers
|
|
10
|
+
*/
|
|
11
|
+
calculatedPath?: string;
|
|
12
|
+
/**
|
|
13
|
+
* a way to transform entity before sending to browser
|
|
14
|
+
*/
|
|
15
|
+
browserTransformFn?: (entity: any) => any;
|
|
16
|
+
/**
|
|
17
|
+
* Calculated middlewares object from parents controllers
|
|
18
|
+
*/
|
|
19
|
+
calculatedMiddlewaresControllerObj?: TaonMiddlewareInheritanceObj;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ControllerConfig = void 0;
|
|
4
|
+
const controller_options_1 = require("./controller-options");
|
|
5
|
+
class ControllerConfig extends controller_options_1.TaonControllerOptions {
|
|
6
|
+
methods = {};
|
|
7
|
+
/**
|
|
8
|
+
* Calculated path from parents controllers
|
|
9
|
+
*/
|
|
10
|
+
calculatedPath;
|
|
11
|
+
/**
|
|
12
|
+
* a way to transform entity before sending to browser
|
|
13
|
+
*/
|
|
14
|
+
browserTransformFn;
|
|
15
|
+
/**
|
|
16
|
+
* Calculated middlewares object from parents controllers
|
|
17
|
+
*/
|
|
18
|
+
calculatedMiddlewaresControllerObj;
|
|
19
|
+
}
|
|
20
|
+
exports.ControllerConfig = ControllerConfig;
|
|
21
|
+
//# sourceMappingURL=controller-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-config.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA,6DAA6D;AAE7D,MAAa,gBAAiB,SAAQ,0CAAqB;IACzD,OAAO,GAAkD,EAAE,CAAC;IAC5D;;OAEG;IACH,cAAc,CAAU;IACxB;;OAEG;IACH,kBAAkB,CAAwB;IAC1C;;OAEG;IACH,kCAAkC,CAAgC;CACnE;AAdD,4CAcC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DecoratorAbstractOpt } from '../decorator-abstract-opt';
|
|
2
|
+
import type { TaonMiddlewareFunction } from '../http/http-methods-decorators';
|
|
3
|
+
export declare class TaonControllerOptions<ControllerClass = any> extends DecoratorAbstractOpt {
|
|
4
|
+
/**
|
|
5
|
+
* typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
|
|
6
|
+
*/
|
|
7
|
+
realtime?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* override default path for controller api
|
|
10
|
+
*/
|
|
11
|
+
path?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Middlewares to be applied to all methods in the controller
|
|
14
|
+
*/
|
|
15
|
+
middlewares?: TaonMiddlewareFunction;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaonControllerOptions = void 0;
|
|
4
|
+
const decorator_abstract_opt_1 = require("../decorator-abstract-opt");
|
|
5
|
+
class TaonControllerOptions extends decorator_abstract_opt_1.DecoratorAbstractOpt {
|
|
6
|
+
/**
|
|
7
|
+
* typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s
|
|
8
|
+
*/
|
|
9
|
+
realtime;
|
|
10
|
+
/**
|
|
11
|
+
* override default path for controller api
|
|
12
|
+
*/
|
|
13
|
+
path;
|
|
14
|
+
/**
|
|
15
|
+
* Middlewares to be applied to all methods in the controller
|
|
16
|
+
*/
|
|
17
|
+
middlewares;
|
|
18
|
+
}
|
|
19
|
+
exports.TaonControllerOptions = TaonControllerOptions;
|
|
20
|
+
//# sourceMappingURL=controller-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-options.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sEAAiE;AAGjE,MAAa,qBAEX,SAAQ,6CAAoB;IAC5B;;OAEG;IACH,QAAQ,CAAW;IACnB;;OAEG;IACH,IAAI,CAAU;IACd;;OAEG;IACH,WAAW,CAA0B;CACtC;AAfD,sDAeC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.FormlyHorizontalWrapper = void 0;
|
|
10
|
+
const core_1 = require("@angular/core");
|
|
11
|
+
const core_2 = require("@ngx-formly/core");
|
|
12
|
+
let FormlyHorizontalWrapper = class FormlyHorizontalWrapper extends core_2.FieldWrapper {
|
|
13
|
+
fieldComponent;
|
|
14
|
+
};
|
|
15
|
+
exports.FormlyHorizontalWrapper = FormlyHorizontalWrapper;
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, core_1.ViewChild)('fieldComponent', { read: core_1.ViewContainerRef }) // @ts-ignore
|
|
18
|
+
], FormlyHorizontalWrapper.prototype, "fieldComponent", void 0);
|
|
19
|
+
exports.FormlyHorizontalWrapper = FormlyHorizontalWrapper = __decorate([
|
|
20
|
+
(0, core_1.Component)({
|
|
21
|
+
selector: 'formly-horizontal-wrapper',
|
|
22
|
+
standalone: false,
|
|
23
|
+
template: `
|
|
24
|
+
<div class="form-group row">
|
|
25
|
+
<label
|
|
26
|
+
[attr.for]="id"
|
|
27
|
+
class="col-sm-2 col-form-label"
|
|
28
|
+
*ngIf="to.label">
|
|
29
|
+
{{ to.label }}
|
|
30
|
+
<ng-container *ngIf="to.required && to.hideRequiredMarker !== true"
|
|
31
|
+
>*</ng-container
|
|
32
|
+
>
|
|
33
|
+
</label>
|
|
34
|
+
<div class="col-sm-10">
|
|
35
|
+
<ng-template #fieldComponent></ng-template>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
`,
|
|
39
|
+
styles: [
|
|
40
|
+
`
|
|
41
|
+
:host {
|
|
42
|
+
display: block;
|
|
43
|
+
padding: 5px;
|
|
44
|
+
margin-bottom: 5px;
|
|
45
|
+
border: 1px dotted gray;
|
|
46
|
+
}
|
|
47
|
+
`,
|
|
48
|
+
],
|
|
49
|
+
})
|
|
50
|
+
], FormlyHorizontalWrapper);
|
|
51
|
+
//# sourceMappingURL=formly-group-wrapper-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formly-group-wrapper-component.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;;;;;;AAAA,wCAAuE;AACvE,2CAAgD;AAgCzC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,mBAAY;IAEvD,cAAc,CAAmB;CAClC,CAAA;AAHY,0DAAuB;AAElC;IADC,IAAA,gBAAS,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,uBAAgB,EAAE,CAAC,CAAC,aAAa;+DACrC;kCAFtB,uBAAuB;IA9BnC,IAAA,gBAAS,EAAC;QACT,QAAQ,EAAE,2BAA2B;QACrC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE;;;;;;;;;;;;;;;GAeT;QACD,MAAM,EAAE;YACN;;;;;;;KAOC;SACF;KACF,CAAC;GACW,uBAAuB,CAGnC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.RepeatTypeComponent = void 0;
|
|
10
|
+
const core_1 = require("@angular/core");
|
|
11
|
+
const core_2 = require("@ngx-formly/core");
|
|
12
|
+
/*
|
|
13
|
+
|
|
14
|
+
DON'T FORGET
|
|
15
|
+
...
|
|
16
|
+
FormlyModule.forRoot({
|
|
17
|
+
types: [
|
|
18
|
+
{ name: 'repeat', component: RepeatTypeComponent },
|
|
19
|
+
],
|
|
20
|
+
}),
|
|
21
|
+
...
|
|
22
|
+
|
|
23
|
+
*/
|
|
24
|
+
let RepeatTypeComponent = class RepeatTypeComponent extends core_2.FieldArrayType {
|
|
25
|
+
get labelTemplate() {
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
return this.field.fieldArray.templateOptions.label; // TODO QUICK_FIX
|
|
28
|
+
}
|
|
29
|
+
constructor(builder) {
|
|
30
|
+
// TODO QUICK_FIX
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
super(builder);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.RepeatTypeComponent = RepeatTypeComponent;
|
|
36
|
+
exports.RepeatTypeComponent = RepeatTypeComponent = __decorate([
|
|
37
|
+
(0, core_1.Component)({
|
|
38
|
+
selector: 'formly-repeat-section',
|
|
39
|
+
standalone: false,
|
|
40
|
+
template: `
|
|
41
|
+
<div *ngIf="field.fieldGroup && field.fieldGroup.length === 0">
|
|
42
|
+
Press button to add new element...
|
|
43
|
+
</div>
|
|
44
|
+
<div
|
|
45
|
+
*ngFor="let field of field.fieldGroup; let i = index"
|
|
46
|
+
class="taon-formly-array">
|
|
47
|
+
<formly-group
|
|
48
|
+
[model]="model[i]"
|
|
49
|
+
[field]="field"
|
|
50
|
+
[options]="options"
|
|
51
|
+
[form]="formControl">
|
|
52
|
+
<div>
|
|
53
|
+
<button
|
|
54
|
+
class="btn btn-danger"
|
|
55
|
+
type="button"
|
|
56
|
+
(click)="remove(i)">
|
|
57
|
+
Remove
|
|
58
|
+
</button>
|
|
59
|
+
</div>
|
|
60
|
+
</formly-group>
|
|
61
|
+
</div>
|
|
62
|
+
<div>
|
|
63
|
+
<button
|
|
64
|
+
class="btn btn-primary"
|
|
65
|
+
type="button"
|
|
66
|
+
(click)="add()">
|
|
67
|
+
{{ labelTemplate }}
|
|
68
|
+
</button>
|
|
69
|
+
</div>
|
|
70
|
+
`,
|
|
71
|
+
styles: [
|
|
72
|
+
`
|
|
73
|
+
:host {
|
|
74
|
+
display: block;
|
|
75
|
+
padding: 5px;
|
|
76
|
+
margin-bottom: 5px;
|
|
77
|
+
border: 1px solid gray;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
formly-group {
|
|
81
|
+
display: block;
|
|
82
|
+
border: 1px dashed gray;
|
|
83
|
+
margin-bottom: 5px;
|
|
84
|
+
padding: 5px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.taon-formly-array {
|
|
88
|
+
padding: 5px;
|
|
89
|
+
background: white;
|
|
90
|
+
}
|
|
91
|
+
`,
|
|
92
|
+
],
|
|
93
|
+
})
|
|
94
|
+
], RepeatTypeComponent);
|
|
95
|
+
//# sourceMappingURL=formly-repeat-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formly-repeat-component.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;;;;;;AAAA,wCAA0C;AAC1C,2CAAqE;AAErE;;;;;;;;;;;EAWE;AA2DK,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,qBAAc;IACrD,IAAI,aAAa;QACf,aAAa;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,iBAAiB;IACvE,CAAC;IACD,YAAY,OAA0B;QACpC,iBAAiB;QACjB,aAAa;QACb,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF,CAAA;AAVY,kDAAmB;8BAAnB,mBAAmB;IAzD/B,IAAA,gBAAS,EAAC;QACT,QAAQ,EAAE,uBAAuB;QACjC,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BT;QACD,MAAM,EAAE;YACN;;;;;;;;;;;;;;;;;;;KAmBC;SACF;KACF,CAAC;GACW,mBAAmB,CAU/B"}
|
package/lib/orm.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as tsorm from 'taon-typeorm';
|
|
2
|
+
export declare namespace Orm {
|
|
3
|
+
const Repository: any;
|
|
4
|
+
export import Connection = tsorm.Connection;
|
|
5
|
+
namespace ListenEvent {
|
|
6
|
+
export import AfterInsert = tsorm.AfterInsert;
|
|
7
|
+
export import AfterLoad = tsorm.AfterLoad;
|
|
8
|
+
export import AfterRecover = tsorm.AfterRecover;
|
|
9
|
+
export import AfterRemove = tsorm.AfterRemove;
|
|
10
|
+
export import AfterSoftRemove = tsorm.AfterSoftRemove;
|
|
11
|
+
export import AfterUpdate = tsorm.AfterUpdate;
|
|
12
|
+
export import BeforeInsert = tsorm.BeforeInsert;
|
|
13
|
+
export import BeforeRecover = tsorm.BeforeRecover;
|
|
14
|
+
export import BeforeRemove = tsorm.BeforeRemove;
|
|
15
|
+
export import BeforeSoftRemove = tsorm.BeforeSoftRemove;
|
|
16
|
+
export import BeforeUpdate = tsorm.BeforeUpdate;
|
|
17
|
+
}
|
|
18
|
+
namespace Tree {
|
|
19
|
+
export import Children = tsorm.TreeChildren;
|
|
20
|
+
export import Parent = tsorm.TreeParent;
|
|
21
|
+
}
|
|
22
|
+
namespace Column {
|
|
23
|
+
export import Generated = tsorm.PrimaryGeneratedColumn;
|
|
24
|
+
export import Primary = tsorm.PrimaryColumn;
|
|
25
|
+
export import Index = tsorm.Index;
|
|
26
|
+
export import CreateDate = tsorm.CreateDateColumn;
|
|
27
|
+
export import UpdateDate = tsorm.UpdateDateColumn;
|
|
28
|
+
export import DeleteDate = tsorm.DeleteDateColumn;
|
|
29
|
+
export import Custom = tsorm.Column;
|
|
30
|
+
/**
|
|
31
|
+
* 100 default characters varchar
|
|
32
|
+
*/
|
|
33
|
+
const String: <T = string>(defaultValue?: T, length?: number) => any;
|
|
34
|
+
/**
|
|
35
|
+
* 100 characters varchar
|
|
36
|
+
*/
|
|
37
|
+
const String100: <T = string>(defaultValue?: T) => any;
|
|
38
|
+
/**
|
|
39
|
+
* 100 characters varchar
|
|
40
|
+
*/
|
|
41
|
+
const String45: <T = string>(defaultValue?: T) => any;
|
|
42
|
+
/**
|
|
43
|
+
* 500 characters varchar
|
|
44
|
+
*/
|
|
45
|
+
const String500: <T = string>(defaultValue?: T) => any;
|
|
46
|
+
/**
|
|
47
|
+
* 200 characters varchar
|
|
48
|
+
*/
|
|
49
|
+
const String200: <T = string>(defaultValue?: T) => any;
|
|
50
|
+
const Number: () => any;
|
|
51
|
+
const DecimalNumber: () => any;
|
|
52
|
+
const SimpleJson: () => any;
|
|
53
|
+
const Boolean: (defaultValue: boolean | null) => any;
|
|
54
|
+
const DateTIme: (defaultValue?: boolean | null) => any;
|
|
55
|
+
export import Version = tsorm.VersionColumn;
|
|
56
|
+
export import Virtual = tsorm.VirtualColumn;
|
|
57
|
+
}
|
|
58
|
+
namespace Join {
|
|
59
|
+
export import Table = tsorm.JoinTable;
|
|
60
|
+
export import Column = tsorm.JoinColumn;
|
|
61
|
+
}
|
|
62
|
+
namespace Relation {
|
|
63
|
+
export import OneToMany = tsorm.OneToMany;
|
|
64
|
+
export import OneToOne = tsorm.OneToOne;
|
|
65
|
+
export import ManyToMany = tsorm.ManyToMany;
|
|
66
|
+
export import ManyToOne = tsorm.ManyToOne;
|
|
67
|
+
}
|
|
68
|
+
}
|
package/lib/orm.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Orm = void 0;
|
|
4
|
+
//#region @websql
|
|
5
|
+
const tsorm = require("taon-typeorm/lib");
|
|
6
|
+
//#endregion
|
|
7
|
+
const lib_1 = require("tnp-core/lib");
|
|
8
|
+
//#region orm
|
|
9
|
+
var Orm;
|
|
10
|
+
(function (Orm) {
|
|
11
|
+
//#region @websql
|
|
12
|
+
Orm.Repository = tsorm.Repository;
|
|
13
|
+
Orm.Connection = tsorm.Connection;
|
|
14
|
+
let ListenEvent;
|
|
15
|
+
(function (ListenEvent) {
|
|
16
|
+
ListenEvent.AfterInsert = tsorm.AfterInsert;
|
|
17
|
+
ListenEvent.AfterLoad = tsorm.AfterLoad;
|
|
18
|
+
ListenEvent.AfterRecover = tsorm.AfterRecover;
|
|
19
|
+
ListenEvent.AfterRemove = tsorm.AfterRemove;
|
|
20
|
+
ListenEvent.AfterSoftRemove = tsorm.AfterSoftRemove;
|
|
21
|
+
ListenEvent.AfterUpdate = tsorm.AfterUpdate;
|
|
22
|
+
ListenEvent.BeforeInsert = tsorm.BeforeInsert;
|
|
23
|
+
ListenEvent.BeforeRecover = tsorm.BeforeRecover;
|
|
24
|
+
ListenEvent.BeforeRemove = tsorm.BeforeRemove;
|
|
25
|
+
ListenEvent.BeforeSoftRemove = tsorm.BeforeSoftRemove;
|
|
26
|
+
ListenEvent.BeforeUpdate = tsorm.BeforeUpdate;
|
|
27
|
+
})(ListenEvent = Orm.ListenEvent || (Orm.ListenEvent = {}));
|
|
28
|
+
let Tree;
|
|
29
|
+
(function (Tree) {
|
|
30
|
+
Tree.Children = tsorm.TreeChildren;
|
|
31
|
+
Tree.Parent = tsorm.TreeParent;
|
|
32
|
+
})(Tree = Orm.Tree || (Orm.Tree = {}));
|
|
33
|
+
let Column;
|
|
34
|
+
(function (Column) {
|
|
35
|
+
Column.Generated = tsorm.PrimaryGeneratedColumn;
|
|
36
|
+
Column.Primary = tsorm.PrimaryColumn;
|
|
37
|
+
Column.Index = tsorm.Index;
|
|
38
|
+
Column.CreateDate = tsorm.CreateDateColumn;
|
|
39
|
+
Column.UpdateDate = tsorm.UpdateDateColumn;
|
|
40
|
+
Column.DeleteDate = tsorm.DeleteDateColumn;
|
|
41
|
+
Column.Custom = tsorm.Column;
|
|
42
|
+
/**
|
|
43
|
+
* 100 default characters varchar
|
|
44
|
+
*/
|
|
45
|
+
Column.String = (defaultValue = null, length = 100) => tsorm.Column({
|
|
46
|
+
type: 'varchar',
|
|
47
|
+
length,
|
|
48
|
+
nullable: lib_1._.isNil(defaultValue),
|
|
49
|
+
default: defaultValue,
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* 100 characters varchar
|
|
53
|
+
*/
|
|
54
|
+
Column.String100 = (defaultValue = null) => tsorm.Column({
|
|
55
|
+
type: 'varchar',
|
|
56
|
+
length: 100,
|
|
57
|
+
nullable: lib_1._.isNil(defaultValue),
|
|
58
|
+
default: defaultValue,
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* 100 characters varchar
|
|
62
|
+
*/
|
|
63
|
+
Column.String45 = (defaultValue = null) => tsorm.Column({
|
|
64
|
+
type: 'varchar',
|
|
65
|
+
length: 45,
|
|
66
|
+
nullable: lib_1._.isNil(defaultValue),
|
|
67
|
+
default: defaultValue,
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* 500 characters varchar
|
|
71
|
+
*/
|
|
72
|
+
Column.String500 = (defaultValue = null) => tsorm.Column({
|
|
73
|
+
type: 'varchar',
|
|
74
|
+
length: 500,
|
|
75
|
+
nullable: lib_1._.isNil(defaultValue),
|
|
76
|
+
default: defaultValue,
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* 200 characters varchar
|
|
80
|
+
*/
|
|
81
|
+
Column.String200 = (defaultValue = null) => tsorm.Column({
|
|
82
|
+
type: 'varchar',
|
|
83
|
+
length: 200,
|
|
84
|
+
nullable: lib_1._.isNil(defaultValue),
|
|
85
|
+
default: defaultValue,
|
|
86
|
+
});
|
|
87
|
+
Column.Number = () => tsorm.Column({ type: 'int', nullable: true });
|
|
88
|
+
Column.DecimalNumber = () => tsorm.Column({ type: 'float', nullable: true });
|
|
89
|
+
Column.SimpleJson = () => tsorm.Column({ type: 'simple-json', nullable: true });
|
|
90
|
+
Column.Boolean = (defaultValue) => tsorm.Column({ type: 'boolean', nullable: true, default: defaultValue });
|
|
91
|
+
Column.DateTIme = (defaultValue = null) => tsorm.Column({ type: 'datetime', nullable: true, default: defaultValue });
|
|
92
|
+
// TODO has limitation => comma in name
|
|
93
|
+
// export const SimpleArray = () => tsorm.Column({ type: 'simple-array', nullable: true });
|
|
94
|
+
Column.Version = tsorm.VersionColumn;
|
|
95
|
+
Column.Virtual = tsorm.VirtualColumn;
|
|
96
|
+
})(Column = Orm.Column || (Orm.Column = {}));
|
|
97
|
+
let Join;
|
|
98
|
+
(function (Join) {
|
|
99
|
+
Join.Table = tsorm.JoinTable;
|
|
100
|
+
Join.Column = tsorm.JoinColumn;
|
|
101
|
+
})(Join = Orm.Join || (Orm.Join = {}));
|
|
102
|
+
let Relation;
|
|
103
|
+
(function (Relation) {
|
|
104
|
+
Relation.OneToMany = tsorm.OneToMany;
|
|
105
|
+
Relation.OneToOne = tsorm.OneToOne;
|
|
106
|
+
Relation.ManyToMany = tsorm.ManyToMany;
|
|
107
|
+
Relation.ManyToOne = tsorm.ManyToOne;
|
|
108
|
+
})(Relation = Orm.Relation || (Orm.Relation = {}));
|
|
109
|
+
//#endregion
|
|
110
|
+
})(Orm || (exports.Orm = Orm = {}));
|
|
111
|
+
//#endregion
|
|
112
|
+
//# sourceMappingURL=orm.js.map
|
package/lib/orm.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orm.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,iBAAiB;AACjB,0CAA0C;AAC1C,YAAY;AACZ,sCAAiC;AAEjC,aAAa;AACb,IAAiB,GAAG,CAqHnB;AArHD,WAAiB,GAAG;IAClB,iBAAiB;IACJ,cAAU,GAAG,KAAK,CAAC,UAAU,CAAC;IAC7B,cAAU,GAAG,KAAK,CAAC,UAAU,CAAC;IAC5C,IAAiB,WAAW,CAY3B;IAZD,WAAiB,WAAW;QACZ,uBAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QAChC,qBAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QAC5B,wBAAY,GAAG,KAAK,CAAC,YAAY,CA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__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1766573676102 = dummy1766573676102;
|
|
4
|
+
function dummy1766573676102() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1766573677649 = dummy1766573677649;
|
|
4
|
+
function dummy1766573677649() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taon",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.11",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"mkdocs": "python3 -m mkdocs",
|
|
6
6
|
"taon init": "taon init",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"json10": "~21.0.0",
|
|
56
56
|
"lodash-walk-object": "~21.0.0",
|
|
57
57
|
"taon-type-sql": "~21.0.0",
|
|
58
|
+
"taon-typeorm": "~21.0.0",
|
|
58
59
|
"socket.io": "~4.8.1"
|
|
59
60
|
},
|
|
60
61
|
"description": "Isomorphic solution for backend and frontend",
|
package/websql/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taon/websql",
|
|
3
|
-
"version": "21.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "21.0.11",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^13.2.0",
|
|
6
|
+
"@angular/core": "^13.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"module": "fesm2022/taon-websql.mjs",
|
|
12
|
+
"typings": "types/taon-websql.d.ts",
|
|
6
13
|
"exports": {
|
|
7
14
|
"./package.json": {
|
|
8
15
|
"default": "./package.json"
|