@smartsoft001/models 1.0.783 → 1.0.787
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 +3 -4
- package/src/index.js +7 -4
- package/src/index.js.map +1 -1
- package/src/lib/decorators/field/field.decorator.js +16 -12
- package/src/lib/decorators/field/field.decorator.js.map +1 -1
- package/src/lib/decorators/index.js +5 -2
- package/src/lib/decorators/index.js.map +1 -1
- package/src/lib/decorators/model/model.decorator.js +8 -4
- package/src/lib/decorators/model/model.decorator.js.map +1 -1
- package/src/lib/interfaces.js +5 -2
- package/src/lib/interfaces.js.map +1 -1
- package/src/lib/symbols.js +5 -2
- package/src/lib/symbols.js.map +1 -1
- package/src/lib/utils.js +21 -11
- package/src/lib/utils.js.map +1 -1
- package/test-setup.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/models",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.787",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"typings": "./src/index.d.ts",
|
|
6
6
|
"dependencies": {},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"reflect-metadata": "0.1.13",
|
|
9
|
-
"@smartsoft001/utils": "1.0.
|
|
9
|
+
"@smartsoft001/utils": "1.0.822",
|
|
10
10
|
"@angular/common": "13.2.7",
|
|
11
11
|
"@angular/core": "13.2.7",
|
|
12
12
|
"lodash": "^4.17.20",
|
|
13
13
|
"guid-typescript": "1.0.9",
|
|
14
14
|
"flatted": "^3.2.4",
|
|
15
15
|
"md5": "2.3.0",
|
|
16
|
-
"rxjs": "^7.0.0"
|
|
17
|
-
"@angular/platform-browser-dynamic": "13.2.7"
|
|
16
|
+
"rxjs": "^7.0.0"
|
|
18
17
|
}
|
|
19
18
|
}
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./lib/symbols"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./lib/interfaces"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./lib/decorators"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./lib/utils"), exports);
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/shared/models/src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/shared/models/src/index.ts"],"names":[],"mappings":";;;AAAA,6DAA8B;AAC9B,gEAAiC;AACjC,gEAAiC;AAEjC,2DAA4B"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldDecorator = exports.Field = void 0;
|
|
4
|
+
require("reflect-metadata");
|
|
5
|
+
const symbols = require("../../symbols");
|
|
6
|
+
const interfaces_1 = require("../../interfaces");
|
|
7
|
+
const utils_1 = require("@smartsoft001/utils");
|
|
8
|
+
exports.Field = FieldDecorator;
|
|
9
|
+
function FieldDecorator(options) {
|
|
7
10
|
return (target, key) => {
|
|
8
11
|
options = options ? Object.assign({}, options) : {};
|
|
9
12
|
if (!target.constructor['__fields']) {
|
|
@@ -11,25 +14,25 @@ export function FieldDecorator(options) {
|
|
|
11
14
|
}
|
|
12
15
|
target.constructor['__fields'][key] = true;
|
|
13
16
|
if (!options.type && key === 'password') {
|
|
14
|
-
options.type = FieldType.password;
|
|
17
|
+
options.type = interfaces_1.FieldType.password;
|
|
15
18
|
}
|
|
16
19
|
else if (!options.type) {
|
|
17
|
-
options.type = FieldType.text;
|
|
20
|
+
options.type = interfaces_1.FieldType.text;
|
|
18
21
|
}
|
|
19
22
|
if (options.classType) {
|
|
20
23
|
target['_' + key] = target[key];
|
|
21
24
|
delete target[key];
|
|
22
25
|
Object.defineProperty(target, key, {
|
|
23
26
|
get: function () {
|
|
24
|
-
if (!this['_' + key] && options.type === FieldType.array) {
|
|
27
|
+
if (!this['_' + key] && options.type === interfaces_1.FieldType.array) {
|
|
25
28
|
this['_' + key] = [];
|
|
26
29
|
}
|
|
27
30
|
return this['_' + key];
|
|
28
31
|
},
|
|
29
32
|
set: function (v) {
|
|
30
|
-
this['_' + key] = options.type === FieldType.array && v ?
|
|
31
|
-
v.map(i => ObjectService.createByType(i, options.classType))
|
|
32
|
-
: ObjectService.createByType(v, options.classType);
|
|
33
|
+
this['_' + key] = options.type === interfaces_1.FieldType.array && v ?
|
|
34
|
+
v.map(i => utils_1.ObjectService.createByType(i, options.classType))
|
|
35
|
+
: utils_1.ObjectService.createByType(v, options.classType);
|
|
33
36
|
},
|
|
34
37
|
enumerable: true,
|
|
35
38
|
configurable: true
|
|
@@ -42,4 +45,5 @@ export function FieldDecorator(options) {
|
|
|
42
45
|
Reflect.defineMetadata(symbols.SYMBOL_FIELD, options, target, key);
|
|
43
46
|
};
|
|
44
47
|
}
|
|
48
|
+
exports.FieldDecorator = FieldDecorator;
|
|
45
49
|
//# sourceMappingURL=field.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.decorator.js","sourceRoot":"","sources":["../../../../../../../../libs/shared/models/src/lib/decorators/field/field.decorator.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"field.decorator.js","sourceRoot":"","sources":["../../../../../../../../libs/shared/models/src/lib/decorators/field/field.decorator.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1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AAO,CAAC,IAAI,KAAK,sBAAS,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;wBACrD,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,qBAAa,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;wBAC5D,CAAC,CAAC,qBAAa,CAAC,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;gBAC3D,CAAC;gBACD,UAAU,EAAE,IAAI;gBAChB,YAAY,EAAE,IAAI;aACrB,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;gBACrC,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC;aAC3C;YAED,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;SAClD;QAED,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IACvE,CAAC,CAAA;AACL,CAAC;AA9CD,wCA8CC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./model/model.decorator"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./field/field.decorator"), exports);
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/shared/models/src/lib/decorators/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/shared/models/src/lib/decorators/index.ts"],"names":[],"mappings":";;;AAAA,uEAAwC;AACxC,uEAAwC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModelDecorator = exports.Model = void 0;
|
|
4
|
+
require("reflect-metadata");
|
|
5
|
+
const symbols = require("../../symbols");
|
|
6
|
+
exports.Model = ModelDecorator;
|
|
7
|
+
function ModelDecorator(options) {
|
|
5
8
|
return function (target) {
|
|
6
9
|
options = options ? Object.assign({}, options) : {};
|
|
7
10
|
Reflect.defineMetadata(symbols.SYMBOL_MODEL, options, target);
|
|
@@ -16,4 +19,5 @@ export function ModelDecorator(options) {
|
|
|
16
19
|
};
|
|
17
20
|
};
|
|
18
21
|
}
|
|
22
|
+
exports.ModelDecorator = ModelDecorator;
|
|
19
23
|
//# sourceMappingURL=model.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.decorator.js","sourceRoot":"","sources":["../../../../../../../../libs/shared/models/src/lib/decorators/model/model.decorator.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"model.decorator.js","sourceRoot":"","sources":["../../../../../../../../libs/shared/models/src/lib/decorators/model/model.decorator.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1B,yCAAyC;AAG5B,QAAA,KAAK,GAAG,cAAc,CAAC;AACpC,SAAgB,cAAc,CAAC,OAAuB;IACpD,OAAO,UAAY,MAAW;QAC5B,OAAO,GAAG,OAAO,CAAC,CAAC,mBAAM,OAAO,EAAG,CAAC,CAAC,EAAE,CAAC;QAExC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAE9D,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG;YACxB,MAAM,MAAM,qBAAQ,IAAI,CAAE,CAAC;YAE3B,IAAI,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE;gBACpC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;oBAC/D,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC;gBAC1C,CAAC,CAAC,CAAC;aACJ;YAED,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC,CAAA;AACH,CAAC;AAlBD,wCAkBC"}
|
package/src/lib/interfaces.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldType = void 0;
|
|
4
|
+
var FieldType;
|
|
2
5
|
(function (FieldType) {
|
|
3
6
|
FieldType["address"] = "address";
|
|
4
7
|
FieldType["currency"] = "currency";
|
|
@@ -30,5 +33,5 @@ export var FieldType;
|
|
|
30
33
|
FieldType["dateRange"] = "dateRange";
|
|
31
34
|
FieldType["image"] = "image";
|
|
32
35
|
FieldType["float"] = "float";
|
|
33
|
-
})(FieldType || (FieldType = {}));
|
|
36
|
+
})(FieldType = exports.FieldType || (exports.FieldType = {}));
|
|
34
37
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/interfaces.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/interfaces.ts"],"names":[],"mappings":";;;AAEA,IAAY,SA+BX;AA/BD,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0CAA6B,CAAA;IAC7B,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,wCAA2B,CAAA;IAC3B,4CAA+B,CAAA;IAC/B,4BAAe,CAAA;IACf,wBAAW,CAAA;IACX,4BAAe,CAAA;IACf,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,4BAAe,CAAA;AACnB,CAAC,EA/BW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA+BpB"}
|
package/src/lib/symbols.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SYMBOL_FIELD = exports.SYMBOL_MODEL = void 0;
|
|
4
|
+
exports.SYMBOL_MODEL = Symbol.for('smartsoft:model');
|
|
5
|
+
exports.SYMBOL_FIELD = Symbol.for('smartsoft:field');
|
|
3
6
|
//# sourceMappingURL=symbols.js.map
|
package/src/lib/symbols.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/symbols.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"symbols.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/symbols.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAC7C,QAAA,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC"}
|
package/src/lib/utils.js
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.castModel = exports.getInvalidFields = exports.isModel = exports.getModelOptions = exports.getModelFieldsWithOptions = exports.getModelFieldOptions = exports.getModelFieldKeys = void 0;
|
|
4
|
+
const symbols_1 = require("./symbols");
|
|
5
|
+
function getModelFieldKeys(type) {
|
|
3
6
|
if (!type["__fields"])
|
|
4
7
|
return [];
|
|
5
8
|
return Object.keys(type["__fields"]);
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
exports.getModelFieldKeys = getModelFieldKeys;
|
|
11
|
+
function getModelFieldOptions(instance, fieldKey) {
|
|
12
|
+
return Reflect.getMetadata(symbols_1.SYMBOL_FIELD, instance, fieldKey);
|
|
9
13
|
}
|
|
10
|
-
|
|
14
|
+
exports.getModelFieldOptions = getModelFieldOptions;
|
|
15
|
+
function getModelFieldsWithOptions(instance) {
|
|
11
16
|
const keys = getModelFieldKeys(instance.constructor);
|
|
12
17
|
return keys.map((item) => {
|
|
13
18
|
return {
|
|
@@ -16,15 +21,18 @@ export function getModelFieldsWithOptions(instance) {
|
|
|
16
21
|
};
|
|
17
22
|
});
|
|
18
23
|
}
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
exports.getModelFieldsWithOptions = getModelFieldsWithOptions;
|
|
25
|
+
function getModelOptions(type) {
|
|
26
|
+
return Reflect.getMetadata(symbols_1.SYMBOL_MODEL, type);
|
|
21
27
|
}
|
|
22
|
-
|
|
28
|
+
exports.getModelOptions = getModelOptions;
|
|
29
|
+
function isModel(instance) {
|
|
23
30
|
if (!instance || !instance.constructor)
|
|
24
31
|
return false;
|
|
25
|
-
return Reflect.hasMetadata(SYMBOL_MODEL, instance.constructor);
|
|
32
|
+
return Reflect.hasMetadata(symbols_1.SYMBOL_MODEL, instance.constructor);
|
|
26
33
|
}
|
|
27
|
-
|
|
34
|
+
exports.isModel = isModel;
|
|
35
|
+
function getInvalidFields(instance, mode, permissions) {
|
|
28
36
|
const result = [];
|
|
29
37
|
getModelFieldsWithOptions(instance).forEach(({ key, options }) => {
|
|
30
38
|
let required = options.required;
|
|
@@ -43,7 +51,8 @@ export function getInvalidFields(instance, mode, permissions) {
|
|
|
43
51
|
});
|
|
44
52
|
return result;
|
|
45
53
|
}
|
|
46
|
-
|
|
54
|
+
exports.getInvalidFields = getInvalidFields;
|
|
55
|
+
function castModel(instance, mode, permissions) {
|
|
47
56
|
if (!isModel(instance))
|
|
48
57
|
return;
|
|
49
58
|
const fieldsWithOptions = getModelFieldsWithOptions(instance);
|
|
@@ -72,4 +81,5 @@ export function castModel(instance, mode, permissions) {
|
|
|
72
81
|
}
|
|
73
82
|
});
|
|
74
83
|
}
|
|
84
|
+
exports.castModel = castModel;
|
|
75
85
|
//# sourceMappingURL=utils.js.map
|
package/src/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/utils.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/utils.ts"],"names":[],"mappings":";;;AACA,uCAAuD;AAEvD,SAAgB,iBAAiB,CAAI,IAAO;IAC1C,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,EAAE,CAAC;IACjC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AACvC,CAAC;AAHD,8CAGC;AAED,SAAgB,oBAAoB,CAClC,QAAW,EACX,QAAgB;IAEhB,OAAO,OAAO,CAAC,WAAW,CAAC,sBAAY,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC/D,CAAC;AALD,oDAKC;AAED,SAAgB,yBAAyB,CACvC,QAAW;IAEX,MAAM,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IA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CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAClC,CAAC,CAAC,EACP;YACA,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;YACrB,OAAO;SACR;aAAM,IACL,IAAI,KAAK,QAAQ;YACjB,IAAI,KAAK,QAAQ;YACjB,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO;gBACjC,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,EAClE;YACA,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;YACrB,OAAO;SACR;IACH,CAAC,CAAC,CAAC;AACP,CAAC;AA1CD,8BA0CC"}
|
package/test-setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../libs/shared/models/test-setup.ts"],"names":[],"mappings":""
|
|
1
|
+
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../libs/shared/models/test-setup.ts"],"names":[],"mappings":""}
|