@smartsoft001-mobilems/models 1.0.62 → 2.2.0
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 +4 -24
- package/src/index.d.ts +2 -3
- package/src/index.js +0 -3
- package/src/index.js.map +1 -1
- package/src/lib/config.d.ts +15 -14
- package/src/lib/config.js +4 -4
- package/src/lib/config.js.map +1 -1
- package/src/lib/entities/file.entity.d.ts +3 -4
- package/src/lib/entities/file.entity.js +5 -5
- package/src/lib/entities/file.entity.js.map +1 -1
- package/src/lib/entities/index.d.ts +2 -2
- package/src/lib/entities/index.js.map +1 -1
- package/src/lib/entities/page.entity.d.ts +2 -2
- package/src/lib/entities/page.entity.js +4 -4
- package/src/lib/entities/page.entity.js.map +1 -1
- package/src/test-setup.js.map +1 -1
- package/src/lib/api.config.d.ts +0 -2
- package/src/lib/api.config.js +0 -7
- package/src/lib/api.config.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001-mobilems/models",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"@angular/animations": "15.1.1",
|
|
6
|
-
"@angular/common": "15.1.1",
|
|
7
|
-
"@angular/compiler": "15.1.1",
|
|
8
|
-
"@angular/core": "15.1.1",
|
|
9
|
-
"@angular/platform-browser": "15.1.1",
|
|
10
|
-
"@angular/platform-browser-dynamic": "15.1.1",
|
|
11
|
-
"@smartsoft001/domain-core": "1.1.55",
|
|
12
|
-
"@smartsoft001/models": "1.1.55",
|
|
13
|
-
"@smartsoft001/users": "1.1.55",
|
|
14
|
-
"@smartsoft001/utils": "1.1.55",
|
|
15
|
-
"rxjs": "7.5.6",
|
|
16
|
-
"tslib": "2.4.1",
|
|
17
|
-
"zone.js": "0.11.5"
|
|
18
|
-
},
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"@angular-devkit/build-angular": "15.1.2",
|
|
21
|
-
"@angular/compiler-cli": "15.1.1",
|
|
22
|
-
"jest": "28.1.3",
|
|
23
|
-
"typescript": "4.8.4"
|
|
24
|
-
},
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"types": "./src/index.d.ts",
|
|
25
5
|
"main": "./src/index.js",
|
|
26
|
-
"
|
|
27
|
-
}
|
|
6
|
+
"type": "commonjs"
|
|
7
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export declare const config: any[];
|
|
1
|
+
export * from './lib/config';
|
|
2
|
+
export * from './lib/entities';
|
package/src/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.config = void 0;
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
tslib_1.__exportStar(require("./lib/config"), exports);
|
|
6
5
|
tslib_1.__exportStar(require("./lib/entities"), exports);
|
|
7
|
-
// export * from "./lib/api.config";
|
|
8
|
-
exports.config = [];
|
|
9
6
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/shared/models/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,yDAA+B"}
|
package/src/lib/config.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IEntity } from
|
|
1
|
+
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
2
|
export declare enum ConfigPageType {
|
|
3
3
|
dynamic = 2,
|
|
4
4
|
static = 1
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type ConfigMenuItem = {
|
|
7
7
|
type: ConfigPageType.dynamic;
|
|
8
8
|
title: string;
|
|
9
9
|
} | {
|
|
@@ -14,22 +14,23 @@ export declare type ConfigMenuItem = {
|
|
|
14
14
|
title: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
export interface ITheme {
|
|
18
|
+
footer?: {
|
|
19
|
+
menu?: Array<ConfigMenuItem>;
|
|
20
|
+
};
|
|
21
|
+
parameters?: {
|
|
22
|
+
homepageVideo?: string;
|
|
23
|
+
cookiesText?: {
|
|
24
|
+
pl?: string;
|
|
25
|
+
en?: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
17
29
|
export declare class Config implements IEntity<string> {
|
|
18
30
|
id: string;
|
|
19
31
|
objectOfTheDay?: {
|
|
20
32
|
id: number;
|
|
21
33
|
title: string;
|
|
22
34
|
};
|
|
23
|
-
theme?:
|
|
24
|
-
footer?: {
|
|
25
|
-
menu?: Array<ConfigMenuItem>;
|
|
26
|
-
};
|
|
27
|
-
parameters?: {
|
|
28
|
-
homepageVideo?: string;
|
|
29
|
-
cookiesText?: {
|
|
30
|
-
pl?: string;
|
|
31
|
-
en?: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
+
theme?: ITheme;
|
|
35
36
|
}
|
package/src/lib/config.js
CHANGED
|
@@ -7,12 +7,13 @@ var ConfigPageType;
|
|
|
7
7
|
(function (ConfigPageType) {
|
|
8
8
|
ConfigPageType[ConfigPageType["dynamic"] = 2] = "dynamic";
|
|
9
9
|
ConfigPageType[ConfigPageType["static"] = 1] = "static";
|
|
10
|
-
})(ConfigPageType
|
|
10
|
+
})(ConfigPageType || (exports.ConfigPageType = ConfigPageType = {}));
|
|
11
11
|
let Config = class Config {
|
|
12
12
|
constructor() {
|
|
13
|
-
this.id =
|
|
13
|
+
this.id = '';
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
+
exports.Config = Config;
|
|
16
17
|
tslib_1.__decorate([
|
|
17
18
|
(0, models_1.Field)(),
|
|
18
19
|
tslib_1.__metadata("design:type", Object)
|
|
@@ -21,8 +22,7 @@ tslib_1.__decorate([
|
|
|
21
22
|
(0, models_1.Field)(),
|
|
22
23
|
tslib_1.__metadata("design:type", Object)
|
|
23
24
|
], Config.prototype, "theme", void 0);
|
|
24
|
-
Config = tslib_1.__decorate([
|
|
25
|
+
exports.Config = Config = tslib_1.__decorate([
|
|
25
26
|
(0, models_1.Model)({})
|
|
26
27
|
], Config);
|
|
27
|
-
exports.Config = Config;
|
|
28
28
|
//# sourceMappingURL=config.js.map
|
package/src/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../../
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../../packages/shared/models/src/lib/config.ts"],"names":[],"mappings":";;;;AACA,iDAAoD;AAEpD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yDAAW,CAAA;IACX,uDAAU,CAAA;AACZ,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAwBM,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QACL,OAAE,GAAG,EAAE,CAAC;IAOV,CAAC;CAAA,CAAA;AARY,wBAAM;AAIjB;IADC,IAAA,cAAK,GAAE;;8CACuC;AAG/C;IADC,IAAA,cAAK,GAAE;;qCACO;iBAPJ,MAAM;IADlB,IAAA,cAAK,EAAC,EAAE,CAAC;GACG,MAAM,CAQlB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEntity } from
|
|
1
|
+
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
2
|
export declare enum MsFileFromFeature {
|
|
3
3
|
object3d = 1,
|
|
4
4
|
object360 = 2,
|
|
@@ -7,7 +7,7 @@ export declare enum MsFileFromFeature {
|
|
|
7
7
|
leadPhoto = 5,
|
|
8
8
|
leadPhotoFolded = 6,
|
|
9
9
|
audioFile = 7,
|
|
10
|
-
|
|
10
|
+
audioDescriptionFile = 8,
|
|
11
11
|
videoFile = 9,
|
|
12
12
|
orthography = 10,
|
|
13
13
|
presentation = 11,
|
|
@@ -16,7 +16,7 @@ export declare enum MsFileFromFeature {
|
|
|
16
16
|
osd = 14,
|
|
17
17
|
htmlCatalog = 15,
|
|
18
18
|
book = 16,
|
|
19
|
-
|
|
19
|
+
videoPjw = 17,
|
|
20
20
|
imageAutismSpectrum = 18
|
|
21
21
|
}
|
|
22
22
|
export declare class MsFile implements IEntity<number> {
|
|
@@ -26,7 +26,6 @@ export declare class MsFile implements IEntity<number> {
|
|
|
26
26
|
extension?: string;
|
|
27
27
|
altText?: string;
|
|
28
28
|
altTextEn?: string;
|
|
29
|
-
formFeature?: MsFileFromFeature;
|
|
30
29
|
files?: string;
|
|
31
30
|
description?: string;
|
|
32
31
|
iframeSource?: string;
|
|
@@ -12,7 +12,7 @@ var MsFileFromFeature;
|
|
|
12
12
|
MsFileFromFeature[MsFileFromFeature["leadPhoto"] = 5] = "leadPhoto";
|
|
13
13
|
MsFileFromFeature[MsFileFromFeature["leadPhotoFolded"] = 6] = "leadPhotoFolded";
|
|
14
14
|
MsFileFromFeature[MsFileFromFeature["audioFile"] = 7] = "audioFile";
|
|
15
|
-
MsFileFromFeature[MsFileFromFeature["
|
|
15
|
+
MsFileFromFeature[MsFileFromFeature["audioDescriptionFile"] = 8] = "audioDescriptionFile";
|
|
16
16
|
MsFileFromFeature[MsFileFromFeature["videoFile"] = 9] = "videoFile";
|
|
17
17
|
MsFileFromFeature[MsFileFromFeature["orthography"] = 10] = "orthography";
|
|
18
18
|
MsFileFromFeature[MsFileFromFeature["presentation"] = 11] = "presentation";
|
|
@@ -21,14 +21,15 @@ var MsFileFromFeature;
|
|
|
21
21
|
MsFileFromFeature[MsFileFromFeature["osd"] = 14] = "osd";
|
|
22
22
|
MsFileFromFeature[MsFileFromFeature["htmlCatalog"] = 15] = "htmlCatalog";
|
|
23
23
|
MsFileFromFeature[MsFileFromFeature["book"] = 16] = "book";
|
|
24
|
-
MsFileFromFeature[MsFileFromFeature["
|
|
24
|
+
MsFileFromFeature[MsFileFromFeature["videoPjw"] = 17] = "videoPjw";
|
|
25
25
|
MsFileFromFeature[MsFileFromFeature["imageAutismSpectrum"] = 18] = "imageAutismSpectrum";
|
|
26
|
-
})(MsFileFromFeature
|
|
26
|
+
})(MsFileFromFeature || (exports.MsFileFromFeature = MsFileFromFeature = {}));
|
|
27
27
|
let MsFile = class MsFile {
|
|
28
28
|
constructor() {
|
|
29
29
|
this.id = 0;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
+
exports.MsFile = MsFile;
|
|
32
33
|
tslib_1.__decorate([
|
|
33
34
|
(0, models_1.Field)(),
|
|
34
35
|
tslib_1.__metadata("design:type", Number)
|
|
@@ -69,8 +70,7 @@ tslib_1.__decorate([
|
|
|
69
70
|
(0, models_1.Field)(),
|
|
70
71
|
tslib_1.__metadata("design:type", Boolean)
|
|
71
72
|
], MsFile.prototype, "isRemote", void 0);
|
|
72
|
-
MsFile = tslib_1.__decorate([
|
|
73
|
+
exports.MsFile = MsFile = tslib_1.__decorate([
|
|
73
74
|
(0, models_1.Model)()
|
|
74
75
|
], MsFile);
|
|
75
|
-
exports.MsFile = MsFile;
|
|
76
76
|
//# sourceMappingURL=file.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../../../../../
|
|
1
|
+
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../../../../../packages/shared/models/src/lib/entities/file.entity.ts"],"names":[],"mappings":";;;;AACA,iDAAoD;AAEpD,IAAY,iBAmBX;AAnBD,WAAY,iBAAiB;IAC3B,iEAAY,CAAA;IACZ,mEAAa,CAAA;IACb,2DAAS,CAAA;IACT,iFAAoB,CAAA;IACpB,mEAAa,CAAA;IACb,+EAAmB,CAAA;IACnB,mEAAa,CAAA;IACb,yFAAwB,CAAA;IACxB,mEAAa,CAAA;IACb,wEAAgB,CAAA;IAChB,0EAAiB,CAAA;IACjB,0DAAS,CAAA;IACT,4DAAU,CAAA;IACV,wDAAQ,CAAA;IACR,wEAAgB,CAAA;IAChB,0DAAS,CAAA;IACT,kEAAa,CAAA;IACb,wFAAwB,CAAA;AAC1B,CAAC,EAnBW,iBAAiB,iCAAjB,iBAAiB,QAmB5B;AAGM,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QACL,OAAE,GAAG,CAAC,CAAC;IA+BT,CAAC;CAAA,CAAA;AAhCY,wBAAM;AAIjB;IADC,IAAA,cAAK,GAAE;;wCACU;AAGlB;IADC,IAAA,cAAK,GAAE;;wCACU;AAGlB;IADC,IAAA,cAAK,GAAE;;yCACW;AAGnB;IADC,IAAA,cAAK,GAAE;;uCACS;AAGjB;IADC,IAAA,cAAK,GAAE;;yCACW;AAGnB;IADC,IAAA,cAAK,GAAE;;qCACO;AAGf;IADC,IAAA,cAAK,GAAE;;2CACa;AAGrB;IADC,IAAA,cAAK,GAAE;;4CACc;AAGtB;IADC,IAAA,cAAK,GAAE;;0CACY;AAGpB;IADC,IAAA,cAAK,GAAE;;wCACW;iBA/BR,MAAM;IADlB,IAAA,cAAK,GAAE;GACK,MAAM,CAgClB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './file.entity';
|
|
2
|
+
export * from './page.entity';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/shared/models/src/lib/entities/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,wDAA8B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEntity } from
|
|
1
|
+
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
2
|
export declare class Page implements IEntity<number> {
|
|
3
3
|
id: number;
|
|
4
4
|
title: string;
|
|
@@ -8,7 +8,7 @@ export declare class Page implements IEntity<number> {
|
|
|
8
8
|
export declare class PageSlide {
|
|
9
9
|
id: number;
|
|
10
10
|
title: string;
|
|
11
|
-
textPosition:
|
|
11
|
+
textPosition: 'left' | 'right';
|
|
12
12
|
imageDesktop: string;
|
|
13
13
|
imageTablet: string;
|
|
14
14
|
imageMobile: string;
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const models_1 = require("@smartsoft001/models");
|
|
6
6
|
let Page = class Page {
|
|
7
7
|
};
|
|
8
|
+
exports.Page = Page;
|
|
8
9
|
tslib_1.__decorate([
|
|
9
10
|
(0, models_1.Field)(),
|
|
10
11
|
tslib_1.__metadata("design:type", String)
|
|
@@ -17,12 +18,12 @@ tslib_1.__decorate([
|
|
|
17
18
|
(0, models_1.Field)(),
|
|
18
19
|
tslib_1.__metadata("design:type", Array)
|
|
19
20
|
], Page.prototype, "slides", void 0);
|
|
20
|
-
Page = tslib_1.__decorate([
|
|
21
|
+
exports.Page = Page = tslib_1.__decorate([
|
|
21
22
|
(0, models_1.Model)()
|
|
22
23
|
], Page);
|
|
23
|
-
exports.Page = Page;
|
|
24
24
|
let PageSlide = class PageSlide {
|
|
25
25
|
};
|
|
26
|
+
exports.PageSlide = PageSlide;
|
|
26
27
|
tslib_1.__decorate([
|
|
27
28
|
(0, models_1.Field)(),
|
|
28
29
|
tslib_1.__metadata("design:type", Number)
|
|
@@ -47,8 +48,7 @@ tslib_1.__decorate([
|
|
|
47
48
|
(0, models_1.Field)(),
|
|
48
49
|
tslib_1.__metadata("design:type", String)
|
|
49
50
|
], PageSlide.prototype, "imageMobile", void 0);
|
|
50
|
-
PageSlide = tslib_1.__decorate([
|
|
51
|
+
exports.PageSlide = PageSlide = tslib_1.__decorate([
|
|
51
52
|
(0, models_1.Model)()
|
|
52
53
|
], PageSlide);
|
|
53
|
-
exports.PageSlide = PageSlide;
|
|
54
54
|
//# sourceMappingURL=page.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../../../
|
|
1
|
+
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../../../packages/shared/models/src/lib/entities/page.entity.ts"],"names":[],"mappings":";;;;AAAA,iDAAoD;AAI7C,IAAM,IAAI,GAAV,MAAM,IAAI;CAWhB,CAAA;AAXY,oBAAI;AAIf;IADC,IAAA,cAAK,GAAE;;mCACM;AAGd;IADC,IAAA,cAAK,GAAE;;qCACK;AAGb;IADC,IAAA,cAAK,GAAE;sCACA,KAAK;oCAAY;eAVd,IAAI;IADhB,IAAA,cAAK,GAAE;GACK,IAAI,CAWhB;AAGM,IAAM,SAAS,GAAf,MAAM,SAAS;CAkBrB,CAAA;AAlBY,8BAAS;AAEpB;IADC,IAAA,cAAK,GAAE;;qCACG;AAGX;IADC,IAAA,cAAK,GAAE;;wCACM;AAGd;IADC,IAAA,cAAK,GAAE;;+CACuB;AAG/B;IADC,IAAA,cAAK,GAAE;;+CACa;AAGrB;IADC,IAAA,cAAK,GAAE;;8CACY;AAGpB;IADC,IAAA,cAAK,GAAE;;8CACY;oBAjBT,SAAS;IADrB,IAAA,cAAK,GAAE;GACK,SAAS,CAkBrB"}
|
package/src/test-setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"test-setup.js","sourceRoot":"","sources":["../../../../../packages/shared/models/src/test-setup.ts"],"names":[],"mappings":";;AAAA,+BAA6B"}
|
package/src/lib/api.config.d.ts
DELETED
package/src/lib/api.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.config.js","sourceRoot":"","sources":["../../../../../../libs/shared/models/src/lib/api.config.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
|